티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[30721],{4874:(e,t,r)=>{let i;r.d(t,{Zm:()=>x,uY:()=>I,XA:()=>$,hz:()=>L,KE:()=>P});var s=r(69599),a=r(37285),n=r(82518),o=r(35750),l=r(18150),c=r(85242),u=r(50467);let h={status:”CLOSED”,nextAttemptTime:null,failureCount:0},d=”offline_cache.circuit_breaker”;var p,f,_,m,y,w,E=new WeakMap,g=new WeakMap,b=new WeakMap,v=new WeakMap,S=new WeakMap,O=new WeakMap,A=new WeakMap,T=new WeakMap;let CircuitBreaker=class CircuitBreaker{constructor(e,t){(0,l._)(this,E,{writable:!0,value:void 0}),(0,l._)(this,g,{writable:!0,value:void 0}),(0,l._)(this,b,{writable:!0,value:null}),(0,u._)(this,”reportFailure”,(e,t,r)=>{switch((0,o._)(this,g).lastErrorType&&(0,o._)(this,g).lastErrorType!==e&&(0,o._)(this,O).call(this,e),e){case”RateLimitError”:return(0,o._)(this,v).call(this,t,r);case”ServiceUnavailableError”:return(0,o._)(this,S).call(this);default:return}}),(0,u._)(this,”reportSuccess”,()=>{(0,c._)(this,g,{status:”CLOSED”,nextAttemptTime:null,failureCount:0}),null==(p=(0,o._)(f=this,b))||p.call(f,d,”success_reported”)}),(0,u._)(this,”getStatus”,()=>{if(“CLOSED”===(0,o._)(this,g).status)return”CLOSED”;console.log(“nextAttemptTime:”,(0,o._)(this,g).nextAttemptTime,”currentTime:”,Date.now());let e=Date.now();return(0,o._)(this,g).nextAttemptTime&&e>=(0,o._)(this,g).nextAttemptTime?((0,c._)(this,g,{status:”CLOSED”,nextAttemptTime:null,failureCount:0}),”CLOSED”):”OPEN”}),(0,l._)(this,v,{writable:!0,value:(e,t)=>{let r=null;if(void 0!==e){let t=1e3*e,i=Math.random()*t*.05;r=Date.now()+t+i}else r=void 0!==t?1e3*t+5e3*Math.random():(0,o._)(this,A).call(this,(0,o._)(this,g).failureCount+1);let i=((0,o._)(this,g).failureCount||0)+1,s=(0,o._)(this,T).call(this,(0,o._)(this,g),i),a={status:s,nextAttemptTime:r,failureCount:i,lastErrorType:”RateLimitError”};(0,c._)(this,g,a),null==(_=(0,o._)(m=this,b))||_.call(m,d,”error_reported”,{error_type:”RateLimitError”,new_status:s,failure_count:i,next_attempt_time:r})}}),(0,l._)(this,S,{writable:!0,value:()=>{let e=(0,o._)(this,A).call(this,(0,o._)(this,g).failureCount+1),t=((0,o._)(this,g).failureCount||0)+1,r=”OPEN”;(0,c._)(this,g,{status:r,nextAttemptTime:e,failureCount:t,lastErrorType:”ServiceUnavailableError”}),null==(y=(0,o._)(w=this,b))||y.call(w,d,”error_reported”,{error_type:”ServiceUnavailableError”,new_status:r,failure_count:t,next_attempt_time:e})}}),(0,l._)(this,O,{writable:!0,value:e=>{(0,c._)(this,g,{status:”CLOSED”,nextAttemptTime:null,failureCount:0,lastErrorType:e})}}),(0,l._)(this,A,{writable:!0,value:e=>{let t=Math.min(5e3*2**(e-1),3e5),r=Math.random()*t*.25;return Date.now()+(t+r)}}),(0,l._)(this,T,{writable:!0,value:(e,t)=>”OPEN”===e.status||t>=1?”OPEN”:”CLOSED”}),(0,c._)(this,E,e),(0,c._)(this,b,t),(0,c._)(this,g,h)}};var k=new WeakMap,C=new WeakMap;let N=new class LRUCache{get(e){let t=(0,o._)(this,k).get(e);return void 0!==t&&((0,o._)(this,k).delete(e),(0,o._)(this,k).set(e,t)),t}set(e,t){if((0,o._)(this,k).has(e)&&(0,o._)(this,k).delete(e),(0,o._)(this,k).set(e,t),(0,o._)(this,k).size>(0,o._)(this,C)){let e=(0,o._)(this,k).keys().next().value;void 0!==e&&(0,o._)(this,k).delete(e)}}delete(e){(0,o._)(this,k).delete(e)}clear(){(0,o._)(this,k).clear()}get size(){return(0,o._)(this,k).size}constructor(e){(0,l._)(this,k,{writable:!0,value:void 0}),(0,l._)(this,C,{writable:!0,value:void 0}),(0,c._)(this,k,new Map),(0,c._)(this,C,e)}}(250);function D(e,t,r){i&&i(“hot_cache.error”,t,{error_type:e,error_message:r instanceof Error?r.message:”Unknown error”})}let R={init(e){i=e},getItem(e){try{return N.get(e)}catch(t){D(“get_item”,e,t);return}},setItem(e,t){try{N.set(e,t)}catch(t){D(“set_item”,e,t)}},removeItem(e){try{N.delete(e)}catch(t){D(“remove_item”,e,t)}},clear(){N.clear()},size:()=>N.size},x={EXCLUDE_FROM_CACHE_KEY:”exclude_from_cache_key”},I={};function L(e,t,r,i,s){let a={…i,…Object.fromEntries(Object.entries(r).filter(([,e])=>void 0!==e))},n=Object.keys(a).sort(),o={};for(let e of n){if(s&&s.includes(e))continue;let t=a[e];null!=t&&(o[e]=t)}return`${e}-${t}#${JSON.stringify(o)}`}function P(e,t,r,i,s,a){let n=L(e,r,i,s,a),o=R.getItem(n);if(o)return o.queryHash!==t?I:o.state.data}function $({storage:e,prefix:t,maxAgeMs:r,sendAnalyticsEvent:i}){let o=(0,s.G7)(“issues_react_extended_preheat_analytics”),l=(0,s.G7)(“issues_react_client_side_caching_cb”),c=`${t}-circuit-breaker`,u=l?new CircuitBreaker(c,i):void 0;async function h(r,i,s,a,n){if(!e)return;let o=L(t,i,s,n,a?.[x.EXCLUDE_FROM_CACHE_KEY]);try{let t=await e.getItem(o,M(a));if(t&&t.queryHash!==r)return I;return t?.state.data}catch{return}}async function d(t){if(e)try{R.removeItem(t),await e.removeItem(t)}catch{console.warn(`Failed to evict query for key: ${t}`)}}async function p(r,i,s,a,n,o,l,c){if(!e)return;let u=L(t,i,s,l,o?.[x.EXCLUDE_FROM_CACHE_KEY]),h={queryHash:r,queryKey:Object.entries(s).flat(),state:{data:a,dataUpdatedAt:Date.now(),ttl:n,preheatSource:c}};try{c&&R.setItem(u,h),await e.setItem(u,h,void 0,void 0,M(o))}catch{console.warn(`Failed to persist query for key: ${u}`)}}return R.init(i),{persisterFn:async function(s,l,c,f,_,m,y,w,E){var g,b,v,S,O,A,T;let k,C=await h(l,c,f,y,w),N=L(t,c,f,w,y?.[x.EXCLUDE_FROM_CACHE_KEY]),D=void 0!==C&&C!==I,P=y?.preheat_source,$=!!P,M=!!y?.skip_cache,F=null,q=null;if(D&&(“object”==typeof C&&null!==C&&”data”in C&&(F=JSON.stringify(C.data)),(0,a.Av)({__trace:{query_name:y?.query_name,query_id:l,query_variables:f,duration_ms:1,cache_result:”hit”}}),$||M||(E?.(C),_.next(C),”undefined”==typeof window||(0,n.Xl)()&&window.dispatchEvent(new CustomEvent(“relay-cache-hit”)))),$&&D){let e={queryHash:l,queryKey:Object.entries(f).flat(),state:{data:C,dataUpdatedAt:Date.now(),ttl:m,preheatSource:P}};R.setItem(N,e),o&&P&&i(“offline_cache.preheat_noop”,N,{preheatSource:P});return}let G=u?.getStatus()??”CLOSED”;try{if($&&”OPEN”===G)return;k=await s(D)}catch(e){if(D)return U([{message:e instanceof Error?e.message:”Unknown error”}]),C;throw e}let H=j(k);if(D&&H&&U(k.errors),$)if(H){let e=function(e){if(!e)return{shouldBackoff:!1};if(“object”==typeof e&&”extensions”in e&&”object”==typeof e.extensions&&null!==e.extensions&&”backoff”in e.extensions){let t=e.extensions,r=”string”==typeof t.errorType?t.errorType:void 0,i=”number”==typeof t.retryAfter?t.retryAfter:void 0,s=”number”==typeof t.resetTime?t.resetTime:void 0;return{shouldBackoff:!!t.backoff,errorType:r,retryAfter:i,resetTime:s}}return{shouldBackoff:!1}}(k);e.shouldBackoff&&await u?.reportFailure(e.errorType??”Unknown”,e.retryAfter,e.resetTime)}else”OPEN”===G&&u?.reportSuccess();let K=(g=k,!!(b=C)&&(b===I||!!g&&j(g))),V=!(!(v=k)||”object”==typeof v&&”errors”in v&&Array.isArray(v.errors)&&v.errors.length>0);if(e&&K)d(N);else if(V&&e){“object”==typeof k&&null!==k&&”data”in k&&(q=JSON.stringify(k.data));let e=(S=!!C,O=F,A=q,T=$,M?”force_refresh”:S?O!==A?”changed”:”unchanged”:T?”pre_heated”:”new”);p(l,c,f,k,m??r,{…y,update_type:e},w,P)}if(!$)return k},retrieveQuery:h,tryCacheFetchResult:p}}function M(e){if(!e)return;let t={};for(let[r,i]of Object.entries(e))Object.values(x).includes(r)||(t[r]=i);return t}function j(e){return”object”==typeof e&&null!==e&&”errors”in e&&Array.isArray(e.errors)&&e.errors.length>0}function U(e){“undefined”!=typeof window&&window.dispatchEvent(new CustomEvent(“stale-cache-warning”,{detail:{errors:e}}))}},30721:(e,t,r)=>{r.d(t,{mf:()=>L.RelayEnvironmentProvider,VB:()=>SSRNetwork,SD:()=>U,E7:()=>j});var i=r(50467),s=r(40961),a=r(69487),n=r(37285),o=r(96379),l=r(71315),c=r(38102);let u=[“NOT_FOUND”,”SAML”,”SERVICE_UNAVAILABLE”,”FORBIDDEN”,”AUTHENTICATION”];var h=r(51987),d=r(86185);let p=class ValidationError extends Error{constructor(e,t,r){super(e,t),(0,i._)(this,”catalogService”,void 0),this.catalogService=r,this.name=”ValidationError”}},f=class RateLimitError extends Error{constructor(e,t,…r){super(…r),(0,i._)(this,”retryAfter”,void 0),(0,i._)(this,”resetTime”,void 0),this.retryAfter=e,this.resetTime=t,this.name=”RateLimitError”}},_=class ServiceUnavailableError extends Error{constructor(…e){super(…e),this.name=”ServiceUnavailableError”}},m=class NotAcceptableError extends Error{constructor(…e){super(…e),this.name=”NotAcceptableError”}},y=class SecFetchDestError extends Error{constructor(…e){super(…e),this.name=”SecFetchDestError”}},w=class FetchNetworkError extends Error{constructor(…e){super(…e),this.name=”FetchNetworkError”}};async function E(e,t,r){if(e.status>401&&404!==e.status){let i=await e.text(),s={url:e.url,timestamp:new Date().toISOString(),persistedQueryId:t,persistedQueryName:r,failureRequestId:e.headers.get(“X-Github-Request-Id”)},a=`HTTP error (${e.status}): ${i||”No additional text”}. Error Info: ${JSON.stringify(s)}`;if(429===e.status)throw new f(Number(e.headers.get(“Retry-After”)),Number(e.headers.get(“X-RateLimit-Reset”)),a,{cause:e.status});if(503===e.status)throw new _(a,{cause:e.status});if(406===e.status)throw new m(a,{cause:e.status});else if(422===e.status&&i.includes(“sec-fetch-dest”))throw new y(a,{cause:e.status});throw Error(a,{cause:e.status})}}async function g(e,t,r,i=”GET”,s,a,n,o,l){return(await b(e,t,r,i,{isSubscription:!1,scope:void 0,preheatSource:l},s,a,n,o)).response}async function b(e,t,r,i=”POST”,s={},o,h,d,f){let _=JSON.stringify((0,a.stableCopy)({persistedQueryName:t,query:e,variables:r,…s.scopeObject?{scopeObject:s.scopeObject}:{}})),{isSubscription:m,scope:y,subscriptionTopic:w,dispatchTime:E}=s,g=o;void 0===o||””!==o&&o.endsWith(“/_graphql”)||((0,c.N7)(Error(`fetchGraphQL received invalid baseUrl – must end with /_graphql persistedQueryId: ${e}, persistedQueryName: ${t}, invalidBaseUrl: ${o}`)),g=void 0);let S=function(e,t,r,i,s,a,n=”/_graphql”){let o=[];if(“GET”===e&&o.push(`body=${t}`),r&&o.push(“subscription=1”),s&&o.push(`scope=${encodeURIComponent(s)}`),i&&o.push(`subscriptionTopic=${encodeURIComponent(i)}`),a&&o.push(`dispatchTime=${encodeURIComponent(a)}`),l.cg){let e=new URL(l.cg.location.href,l.cg.location.origin).searchParams.get(“_features”);e&&o.push(`_features=${e}`)}return o.length>0?`${n}?${o.join(“&”)}`:n}(i,encodeURIComponent(_),m,w,y,E,g),O=null;try{let{subscriptionId:r,requestId:a,json:o}=await v(S,i,e,t,_,h,s.preheatSource);if(O=r,!function(e,t,r){let i=(“errors”in e?e.errors:[]).filter(e=>!u.includes(e.type));if(“errors”in e&&i.length){let t=i.map(e=>`GraphQL error: ${e.type}: ${e.message} (path: ${e.path})`).join(“, “),s=new p(`${t} (Persisted query id: ${r})`,{cause:i},e.extensions?.query_owning_catalog_service);(0,c.N7)(s)}if(!(“data”in e)){let i=function e(t){if(null==t)return t;if(Array.isArray(t))return t.map(t=>null==t?t:”object”==typeof t?e(t):”[FILTERED]”);if(“object”==typeof t){let r={};for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){let s=t[i];”errors”===i||null==s?r[i]=s:”object”==typeof s?r[i]=e(s):r[i]=”[FILTERED]”}return r}return t}(e),s=Error(`Expected data property in response: ${JSON.stringify(i)}. persistedQueryId: ${r}, requestId: ${t}`);(0,c.N7)(s)}}(o,a,e),o)if(f){let e={__trace:{…o?.__trace,cache_result:”refresh”}};(0,n.Av)(e)}else(0,n.Av)(o);return{subscriptionId:O,response:o}}catch(e){if(d){let t,r=e?.name;”RateLimitError”!==(t=e?.name)&&”SecFetchDestError”!==t&&”NotAcceptableError”!==t&&”FetchNetworkError”!==t&&(0,c.N7)(e);let i={};if((“RateLimitError”===r||”ServiceUnavailableError”===r)&&(i={backoff:!0,errorType:r},”RateLimitError”===r)){let t=e.retryAfter;void 0===t||isNaN(t)||(i={…i,retryAfter:t});let r=e.resetTime;void 0===r||isNaN(r)||(i={…i,resetTime:r})}return d.error(e),{subscriptionId:O,response:{errors:[{message:”An error occurred while fetching data. Please try again later.”}],extensions:i}}}throw e}}async function v(e,t,r,i,s,a,o){return S((0,n.RD)(e),t,r,i,s,a,o)}async function S(e,t,r,i,s,a,n){let u,p,f={…(0,h.kt)(),…n?{“X-GITHUB-PREHEAT”:n}:{}};a?.issues_react_perf_test&&(f[“X-LUC-Environment”]=”issues”);let _=(u=”GET”===t?await fetch(e,{method:t,cache:”no-cache”,credentials:”include”,headers:{Accept:”application/json”,…f}}):await (0,o.DI)(e,{method:t,headers:{Accept:”application/json”,…f},…s?{body:s}:void 0})).headers.get(“X-Subscription-ID”),m=u.headers.get(“X-Github-Request-Id”)||””,y=u.status;if(d.z.checkResponse(u),await E(u,r,i),404===y&&”POST”===t)throw l.cg?.location.reload(),Error(“Reloading page due to 404 on GraphQL mutation for unauthenticated user.”);try{p=await u.json()}catch(r){let t={error:r instanceof Error?`${r.name}: ${r.message}`:String(r),status:y,url:e,requestId:m};if(r instanceof Error&&”TypeError”===r.name&&”Failed to fetch”===r.message)throw new w(`Network error while reading response. Please check your connection and try again. ${JSON.stringify(t)}`);throw(0,c.N7)(Error(`Failed to parse server JSON response ${JSON.stringify(t)}`)),Error(`Failed to parse server response. Please try again later. ${JSON.stringify(t)}`)}return{subscriptionId:_,requestId:m,json:p,status:y}}let O=[{kind:”linked”,handle(e,t,r){if(null!=t&&t.getType()===a.ROOT_TYPE&&”node”===e.name&&r.hasOwnProperty(“id”))return r.id}},{kind:”pluralLinked”,handle(e,t,r){if(null!=t&&t.getType()===a.ROOT_TYPE&&”nodes”===e.name&&r.hasOwnProperty(“ids”))return r.ids}}];var A=r(11418),T=r(73056),k=r(69982);function C(e){return(0,k.unstable_scheduleCallback)(k.unstable_LowPriority,e)}var N=r(87683),D=r(69599),R=r(53419),x=r(21067),I=r(4874),L=r(18312);function P(e){let t=e?.ttl,r=e?.defaultValues,i=e?.[N.Zm.EXCLUDE_FROM_CACHE_KEY],s=e?.preheatSource;return{cacheTTL:t,defaultValues:r,keysToExclude:i,preheatSource:s,skipCache:e?.skipCache,cacheEnabledForQuery:void 0!==t&&t>0}}async function $({params:e,variables:t,baseUrl:r,enabledFeatures:i,observer:s,isClientSideCachingEnabled:a,cache:n,metadata:o,preloadSubscriptions:l}){if(!e.id)throw Error(“Params has no id property!”);let{cacheTTL:c,defaultValues:u,keysToExclude:h,preheatSource:d,skipCache:p,cacheEnabledForQuery:f}=P(o),_=”mutation”===e.operationKind?”POST”:”GET”,m=a=>g(e.id,e.name,t,_,r,i,s,a,p?”force_refresh”:d);return n&&a&&f&&”mutation”!==e.operationKind?n.persisterFn(m,e.id,e.name,t,s,c,{query_name:e.name,preheat_source:d,[N.Zm.EXCLUDE_FROM_CACHE_KEY]:h,skip_cache:p},u,l):m()}let M={cancel:()=>!1,schedule:e=>((0,s.unstable_batchedUpdates)(e),””)};let SSRNetwork=class SSRNetwork{preloadSubscriptions(e){if(e&&”extensions”in e&&e.extensions&&e.extensions.subscriptions){let t=e.extensions.subscriptions;for(let e in t)for(let r in this.preloadedSubscriptions.has(e)||this.preloadedSubscriptions.set(e,new Map),t[e])this.preloadedSubscriptions.get(e)?.set(r,t[e][r])}}execute(e,t,r){return this.relayNetwork.execute(e,t,r)}getPreloadedSubscriptions(){return this.preloadedSubscriptions}constructor(e,t={},r,s,n,o,u,h){(0,i._)(this,”relayNetwork”,void 0),(0,i._)(this,”ssrPreloadedData”,void 0),(0,i._)(this,”preloadedSubscriptions”,void 0),(0,i._)(this,”warningsShown”,void 0),(0,i._)(this,”enabled_features”,void 0),(0,i._)(this,”maxAge”,void 0),(0,i._)(this,”cache”,void 0),(0,i._)(this,”stalePreloadedData”,void 0),(0,i._)(this,”markPreloadedDataAsStale”,void 0),this.ssrPreloadedData=e,this.enabled_features=t,this.preloadedSubscriptions=r,this.warningsShown=new Set,this.maxAge=n,this.cache=o,this.stalePreloadedData=u??!1,this.markPreloadedDataAsStale=h,this.relayNetwork=a.Network.create((e,t,r)=>a.Observable.create(i=>{let a=function({params:e,variables:t,ssrPreloadedQueries:r,baseUrl:i,emitWarning:s,enabledFeatures:a,maxAge:n,observer:o,cache:c,metadata:u,stalePreloadedData:h,preloadSubscriptions:d}){if(!e.id)throw Error(“params has no id property!”);let p=(0,D.G7)(“issues_react_client_side_caching”),f=(0,D.G7)(“issues_react_hot_cache”);if(e.id&&r){let i=JSON.stringify(t),s=r.get(e.id)?.get(i),a=Math.floor(Date.now()/1e3),u=s?.timestamp;if(s&&(o.next(s),!(n&&u&&a>u+n)&&!h)){if(p&&c){let r=e.metadata?.ttl,i=e.metadata?.defaultValues;void 0!==r&&r>0&&c.tryCacheFetchResult(e.id,e.name,t,s,r,{query_name:e.name,update_type:”preloaded”},i)}o.complete();return}e.metadata?.isRelayRouteRequest&&(0,l.g5)()}let _={…u??{},…e.metadata};if(l.KJ&&p&&”mutation”!==e.operationKind&&f){let{defaultValues:r,keysToExclude:i,preheatSource:s,skipCache:a,cacheEnabledForQuery:n}=P(_);if(n&&!s&&!a){let s=`${N.vp}-${(0,x.cj)()}`,a=(0,N.KE)(s,e.id,e.name,t,r,i);a&&a!==I.uY&&o.next(a)}}if(l.KJ)return $({params:e,variables:t,baseUrl:i,enabledFeatures:a,observer:o,isClientSideCachingEnabled:p,cache:c,metadata:_,preloadSubscriptions:d})}({params:e,variables:t,ssrPreloadedQueries:this.ssrPreloadedData,baseUrl:s,emitWarning:e=>{this.warningsShown.has(e)||(this.warningsShown.add(e),console.warn(e))},enabledFeatures:this.enabled_features,maxAge:n,observer:i,cache:this.cache,metadata:r.metadata,stalePreloadedData:this.stalePreloadedData,preloadSubscriptions:this.preloadSubscriptions.bind(this)});a instanceof Promise&&a.then(e=>{Array.isArray(e)||this.preloadSubscriptions(e),e&&i.next(e),i.complete()}),”mutation”===e.operationKind&&(this.stalePreloadedData=!0,this.markPreloadedDataAsStale?.(!0))}),(e,t)=>(function(e,t,r=new Map){let i=e.id,s=e.name;return a.Observable.create(a=>{let n=()=>{},o=!1;return async function(){if(!i)throw Error(“unexpected operation with no id!”);let l=e.metadata?.scope,u=function(e,t,r,i){let s=i.get(e);if(s)e:for(let[e,i]of s){for(let[i,s]of Object.entries(JSON.parse(e)))if(“$scope”===i&&r!==s||t[i]!==s)continue e;return i}}(i,t,l,r),h=null;if(u)h=u.subscriptionId,u.response&&a.next(u.response);else try{let e=await b(i,s,t,”GET”,{isSubscription:!0,scope:l});h=e.subscriptionId,e.response&&a.next(e.response)}catch(e){if(e instanceof Error&&e.message.includes(“Subscription halted”))return;throw e}try{let e=await (0,A.H)();if(o)return;let r=(0,T.$)(e,h,async({scope_object:e,subscription_topic:r,dispatch_time:n})=>{try{let{response:o}=await b(i,s,{…t},”GET”,{isSubscription:!0,scopeObject:e,subscriptionTopic:r,dispatchTime:n,scope:l});o&&a.next(o)}catch(e){(0,c.N7)(e,{message:`Error in fetching update for ${i} with variables ${JSON.stringify(t)}`})}});r?.unsubscribe&&(n=r.unsubscribe)}catch(e){a.error(e)}}(),{get closed(){return o},unsubscribe(){o=!0,n()}}})})(e,t,this.preloadedSubscriptions))}};let j=e=>{let t;if(l.KJ){let e=(0,D.G7)(“issues_react_client_side_caching_analytics”);t=(0,N.VC)({sendAnalyticsEvent:(e,t,r={})=>{let i={react:!0,version:N.L7};(0,R.BI)(e,{…i,…r,target:t})},reportableEvents:e?N.Zf.ANY:N.Zf.NONE})}let r=new SSRNetwork(new Map,{},new Map,e,void 0,t),i=new a.Environment({scheduler:M,store:new a.Store(new a.RecordSource,{gcReleaseBufferSize:50,queryCacheExpirationTime:3e5,gcScheduler:C}),getDataID:(e,t)=>{if(“Viewer”===t)return null==e.id?(0,a.generateClientID)(“client:root”,”viewer”):e.id;if(“ProjectV2SingleSelectFieldOption”===t){let t=[];return e.id&&t.push(e.id),e.name&&t.push(e.name),e.color&&t.push(e.color),e.description&&t.push(function(e){let t=0;if(0===e.length)return t;for(let r=0;rr.getPreloadedSubscriptions()},i};function U({environment:e,query:t,variables:r={},metadata:i}){let s=(0,a.getRequest)(t),n=(0,a.createOperationDescriptor)(s,r);return e.retain(n),(0,a.fetchQuery)(e,t,r,{fetchPolicy:”store-or-network”,networkCacheConfig:{metadata:i}})}},86185:(e,t,r)=>{r.d(t,{z:()=>p});var i=r(35750),s=r(18150),a=r(87057),n=r(69599),o=r(82075);let l=”VERSION_MISMATCH_LAST_TRIGGERED”,c=(0,o.A)(“localStorage”,{ttl:9e7,throwQuotaErrorsOnSet:!1}),u=null;let VersionMismatchRateLimiter=class VersionMismatchRateLimiter{canTrigger(){let e=this.getLastTriggerTime();return null===e||Date.now()-e>=864e5}recordTrigger(){let e=Date.now();c.setItem(l,e.toString()),u=e}getLastTriggerTime(){let e=c.getItem(l);if(e){let t=parseInt(e,10);return isNaN(t)?null:t}return u}clearTriggerRecord(){c.removeItem(l),u=null}};let h=new VersionMismatchRateLimiter;var d=new WeakMap;let p=new class VersionMismatchDetector{registerApp(e,t){(0,i._)(this,d).set(e,t)}unregisterApp(e){(0,i._)(this,d).delete(e)}checkResponse(e,t){if(“true”!==e.headers.get(“X-GitHub-Version-Mismatch”)||!(0,n.G7)(“react_version_mismatch_detection”)||!h.canTrigger())return!1;let r={clientVersion:(0,a.O)(),serverVersion:e.headers.get(“X-GitHub-Server-Version”)||void 0,requestUrl:e.url,responseHeaders:e.headers,appName:t};if(h.recordTrigger(),t){let e=(0,i._)(this,d).get(t);if(e)return e.onMismatchDetected(r),!0}else{let e=!1;for(let[t,s]of(0,i._)(this,d).entries()){let i={…r,appName:t};s.onMismatchDetected(i),e=!0}return e}return!1}constructor(){(0,s._)(this,d,{writable:!0,value:new Map})}}},87683:(e,t,r)=>{r.d(t,{KE:()=>a.KE,L7:()=>c,VC:()=>u,Zf:()=>i.Zf,Zm:()=>a.Zm,vp:()=>o});var i=r(96698),s=r(21067),a=r(4874);let n={Check:e=>”object”==typeof e&&null!==e&&(void 0===e.data||”object”==typeof e.data)&&(void 0===e.errors||!!Array.isArray(e.errors)),Code:()=>”manual-validator”,Errors:()=>[]},o=”relay-query”,l=6048e5,c=”1.0.8″,u=({sendAnalyticsEvent:e,reportableEvents:t=i.Zf.ANY,maxAgeMs:r=l})=>{let c=(0,i.i5)({validator:n,sendAnalyticsEvent:(r,…s)=>{t!==i.Zf.NONE&&(t===i.Zf.ANY||Array.isArray(t)&&t.includes(r))&&e(r,…s)}});return(0,a.XA)({storage:c,prefix:`${o}-${(0,s.cj)()}`,maxAgeMs:r,sendAnalyticsEvent:e})}}}]); //# sourceMappingURL=30721-0167cd4cfe36.js.map