performance.mark("js-parse-end:63991-125a5c660965e63e.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["63991"],{49481(e,t,r){r.d(t,{C:()=>i,i:()=>c});var n=r(26316),a=r(73537),o=r(46493);function i(e,t){(0,a.G7)("arianotify_comprehensive_migration")?c(l(e),{...t,element:t?.element??e}):(0,a.G7)("primer_live_region_element")&&t?.element===void 0?(0,o.Cj)(e,{politeness:t?.assertive?"assertive":"polite"}):c(l(e),t)}function c(e,t){let{assertive:r,element:i}=t??{};if((0,a.G7)("arianotify_comprehensive_migration"))try{(i?.isConnected?i:n.XC).ariaNotify(e,{priority:r?"high":"normal"})}catch(e){console.error("Error calling ariaNotify:",e)}else{var c,l;let t;(0,a.G7)("primer_live_region_element")&&void 0===i?(0,o.iP)(e,{politeness:r?"assertive":"polite"}):(c=e,l=r,(t=i??n.XC?.querySelector(l?"#js-global-screen-reader-notice-assertive":"#js-global-screen-reader-notice"))&&(t.textContent===c?t.textContent=`${c}\u00A0`:t.textContent=c))}}function l(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}r(89272)},25649(e,t,r){let n;r.d(t,{N7:()=>S,AW:()=>v,fE:()=>y,ff:()=>_});var a=r(36301),o=r(63371),i=r(7753),c=r(24212);function l(e){return(0,c.q)(e.stack||"").map(e=>({filename:e.file||"",function:String(e.methodName),lineno:(e.lineNumber||0).toString(),colno:(e.column||0).toString()}))}function s(e){let t=document.querySelectorAll(e);if(t.length>0)return t[t.length-1]}var u=r(58209),m=r(26316),d=r(97398),f=r(41763);let h=!1,p=0,g=Date.now(),y=new Set(["AbortError","AuthSessionExpiredError","TypeError","RateLimitError","NotAcceptableError","SecFetchHeaderError","FetchNetworkError","NoiseError","ServiceUnavailableError"]),v=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","Unable to perform this operation. Please try again later."]);function S(e,t={}){if(!(e instanceof Error||"object"==typeof e&&null!==e&&"name"in e&&"string"==typeof e.name&&"message"in e&&"string"==typeof e.message)){if(function(e){if(!e||"boolean"==typeof e||"number"==typeof e)return!0;if("string"==typeof e){if(C.some(t=>e.includes(t)))return!0}else if("object"==typeof e&&"string"==typeof e.message&&"number"==typeof e.code)return!0;return!1}(e))return;let r=Error(),n=function(e){try{return JSON.stringify(e)}catch{return"Unserializable"}}(e);b(w({type:"UnknownError",value:`Unable to report error, due to a thrown non-Error type: ${typeof e}, with value ${n}`,stacktrace:l(r),catalogService:document.head?.querySelector('meta[name="current-catalog-service"]')?.content,catalogServiceHash:document.head?.querySelector('meta[name="current-catalog-service-hash"]')?.content},t));return}e.name&&("AbortError"===e.name||"RateLimitError"===e.name||"NotAcceptableError"===e.name||"SecFetchHeaderError"===e.name||"FetchNetworkError"===e.name||"NoiseError"===e.name||"ServiceUnavailableError"===e.name&&_()||y.has(e.name)&&v.has(e.message)||e.name.startsWith("ApiError")&&v.has(e.message))||b(w({type:e.name,value:e.message,stacktrace:l(e),catalogService:e.catalogService||globalThis.document?.head?.querySelector('meta[name="current-catalog-service"]')?.content,catalogServiceHash:e.catalogServiceHash||globalThis.document?.head?.querySelector('meta[name="current-catalog-service-hash"]')?.content},t))}async function b(e){let t;if(t=Date.now()-g>2592e5,!(!N&&!h&&p<10&&(n??=(0,o.TT)()&&function(){let e=m.cg?.history,t=m.cg?.location;if(!e||!t)return!1;try{return e.replaceState(e.state,document.title,t.href),!0}catch{return!1}}()))||t||(0,i.H)())return;let r=document.head?.querySelector('meta[name="browser-errors-url"]')?.content;if(r){if(e.error.stacktrace.some(e=>E.test(e.filename)||E.test(e.function))){h=!0;return}p++;try{await fetch(r,{method:"post",body:JSON.stringify({context:e,target:document.head?.querySelector('meta[name="ui-target"]')?.content||"full"})})}catch{}}}function w(e,t={}){let r,n={...t};return n.reactAppName||(n.reactAppName=function(e){let t=function(){let e=new Set;for(let[t,r]of A)for(let n of document.querySelectorAll(t))if(n instanceof HTMLElement){let t=n.getAttribute(r);t&&e.add(t)}return Array.from(e)}();if(!t||!t.length||!e||!e.length)return;let r=new Set;for(let n of e){if(!n||!n.filename)continue;let e=n.filename.split(/[\\/]/).pop();if(!e||r.has(e))continue;r.add(e);let a=t.find(t=>e.toLowerCase().includes(t.toLowerCase()));if(a)return a}}(e.stacktrace)),Object.assign({error:e,sanitizedUrl:`${window.location.protocol}//${window.location.host}${((r=s("meta[name=analytics-location]"))?r.content:window.location.pathname)+function(){let e=s("meta[name=analytics-location-query-strip]"),t="";e||(t=window.location.search);let r=s("meta[name=analytics-location-params]");for(let e of(r&&(t+=(t?"&":"?")+r.content),document.querySelectorAll("meta[name=analytics-param-rename]"))){let r=e.content.split(":",2);t=t.replace(RegExp(`(^|[?&])${r[0]}($|=)`,"g"),`$1${r[1]}$2`)}return t}()}`||window.location.href,readyState:document.readyState,referrer:(0,d.dR)(),timeSinceLoad:Math.round(Date.now()-g),user:function(){let e=document.head?.querySelector('meta[name="user-login"]')?.content;if(e)return e;let t=(0,a.y)();return`anonymous-${t}`}()||void 0,actorId:document.head?.querySelector('meta[name="octolytics-actor-id"]')?.content,bundler:u.vV,ui:"vite-tss"===u.vV,release:document.head?.querySelector('meta[name="release"]')?.content,pastRequestIds:(0,f.xA)()},n)}let E=/(chrome|moz|safari)-extension:\/\//;function _(){return!document.head?.querySelector('meta[name="user-login"]')?.content}let N=!1;m.cg?.addEventListener("pageshow",()=>N=!1),m.cg?.addEventListener("pagehide",()=>N=!0),"function"==typeof BroadcastChannel&&new BroadcastChannel("shared-worker-error").addEventListener("message",e=>{S(e.data.error)});let C=["Object Not Found Matching Id","Not implemented on this platform","provider because it's not your default extension"],A=[["react-app","app-name"],["react-partial","partial-name"]]},40914(e,t,r){r.d(t,{Qn:()=>l,T8:()=>u,Y6:()=>d,k6:()=>m});var n=r(74848),a=r(16522),o=r(52870),i=r(96540),c=r(52111);let l=5e3,s=(0,i.createContext)({addToast:c.l,addPersistedToast:c.l,clearPersistedToast:c.l});s.displayName="ToastContext";let u=(0,i.createContext)({toasts:[],persistedToast:null});function m(e){let t,r,c,m,d,f,h,p,g=(0,a.c)(17),{children:y}=e;g[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],g[0]=t):t=g[0];let[v,S]=(0,i.useState)(t),[b,w]=(0,i.useState)(null),{safeSetTimeout:E}=(0,o.A)();g[1]!==E||g[2]!==v?(r=function(e){S([...v,e]),E(()=>S(v.slice(1)),l)},g[1]=E,g[2]=v,g[3]=r):r=g[3];let _=r;g[4]===Symbol.for("react.memo_cache_sentinel")?(c=function(e){w(e)},g[4]=c):c=g[4];let N=c;g[5]===Symbol.for("react.memo_cache_sentinel")?(m=function(){w(null)},g[5]=m):m=g[5];let C=m;g[6]!==_?(d={addToast:_,addPersistedToast:N,clearPersistedToast:C},g[6]=_,g[7]=d):d=g[7];let A=d;g[8]!==b||g[9]!==v?(f={toasts:v,persistedToast:b},g[8]=b,g[9]=v,g[10]=f):f=g[10];let q=f;return g[11]!==y||g[12]!==q?(h=(0,n.jsx)(u,{value:q,children:y}),g[11]=y,g[12]=q,g[13]=h):h=g[13],g[14]!==A||g[15]!==h?(p=(0,n.jsx)(s,{value:A,children:h}),g[14]=A,g[15]=h,g[16]=p):p=g[16],p}function d(){return(0,i.use)(s)}u.displayName="InternalToastsContext",m.displayName="ToastContextProvider"}}]); //# sourceMappingURL=63991-125a5c660965e63e-f7b56c53ce9530f9.js.map