rformance.mark("js-parse-end:25757-bd33e9e6d68fcb59.js");
"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["25757"],{95136(t,e,n){n.d(e,{y:()=>a});var r=n(74848),o=n(16522),i=n(8470);function a(t){let e,n,a=(0,o.c)(7),{children:s,appName:c,category:u,metadata:l}=t;a[0]!==c||a[1]!==u||a[2]!==l?(e={appName:c,category:u,metadata:l},a[0]=c,a[1]=u,a[2]=l,a[3]=e):e=a[3];let d=e;return a[4]!==s||a[5]!==d?(n=(0,r.jsx)(i.I,{value:d,children:s}),a[4]=s,a[5]=d,a[6]=n):n=a[6],n}a.displayName="AnalyticsProvider"},8470(t,e,n){n.d(e,{I:()=>r});let r=(0,n(96540).createContext)(null);r.displayName="AnalyticsContext"},13705(t,e,n){n.d(e,{D:()=>i,Y:()=>a});var r=n(49481),o=n(26316);function i(t){if(!o.XC)return;let e=o.XC.querySelector("title"),n=o.XC.createElement("title");n.textContent=t,e?e.textContent!==t&&(e.replaceWith(n),(0,r.i)(t)):(o.XC.head.appendChild(n),(0,r.i)(t))}function a(t){return document.body.classList.contains("logged-out")?`${t} \xb7 GitHub`:t}},40367(t,e,n){n.d(e,{A:()=>r});let r=(t,e)=>{let n=new URL(t,window.location.origin),r=new URL(e,window.location.origin);return r.href.includes("#")&&n.host===r.host&&n.pathname===r.pathname&&n.search===r.search}},52111(t,e,n){n.d(e,{l:()=>r});let r=()=>void 0},58418(t,e,n){let r;n.d(e,{A:()=>d});var o=n(73537),i=n(35205),a=n(51189);let{getItem:s,setItem:c,removeItem:u}=(0,i.A)("localStorage"),l="REACT_PROFILING_DISABLED_UNTIL",d={enable:()=>{u(l),r=void 0},disable:()=>{c(l,String(Date.now()+864e5)),r=!1},isEnabled:()=>!("u"<typeof window)&&(void 0!==r?r:(0,o.G7)("react_quality_profiling")?r=(0,a.Xl)()?function(){let t=s(l);if(!t)return!0;let e=Number(t);return!!(Number.isNaN(e)||Date.now()>=e)&&(u(l),!0)}():.02>Math.random():(r=!1,!1)),resetCache:()=>{r=void 0}}},41763(t,e,n){n.d(e,{Ex:()=>a,kt:()=>c,xA:()=>s});var r=n(26316);let o=Array(10).fill(null),i=0;function a(t){o[i]=t,i=(i+1)%10}function s(){let t=[];for(let e=0;e<10;e++){let n=o[(i-1-e+10)%10];n&&t.push(n)}return t}function c(){let t=r.XC;if(!t)return;let e=t.querySelector('meta[name="request-id"]'),n=e?.getAttribute("content");n&&a(n)}},14701(t,e,n){n.d(e,{D3:()=>u});var r=n(74848),o=n(16522),i=n(96540),a=n(37337);let s="ClientRender",c=(0,i.createContext)(s);function u(t){let e,n,u,l,d=(0,o.c)(8),{wasServerRendered:f,children:m}=t;d[0]!==f?(e=()=>a.X3?"ServerRender":f?"ClientHydrate":s,d[0]=f,d[1]=e):e=d[1];let[p,h]=(0,i.useState)(e);return d[2]!==p?(n=()=>{p!==s&&h(s)},u=[p],d[2]=p,d[3]=n,d[4]=u):(n=d[3],u=d[4]),(0,i.useLayoutEffect)(n,u),d[5]!==m||d[6]!==p?(l=(0,r.jsx)(c,{value:p,children:m}),d[5]=m,d[6]=p,d[7]=l):l=d[7],l}c.displayName="RenderPhaseContext",u.displayName="RenderPhaseProvider"},35205(t,e,n){n.d(e,{A:()=>a,D:()=>s});var r=n(26316),o=n(51189);class i{getItem(){return null}setItem(){}removeItem(){}clear(){}key(){return null}get length(){return 0}}function a(t,e={throwQuotaErrorsOnSet:!1},n=r.cg,s=t=>t,c=t=>t){let u;try{if(!n)throw Error();u=n[t]||new i}catch{u=new i}let{throwQuotaErrorsOnSet:l}=e;function d(t){e.sendCacheStats&&(0,o.iv)({incrementKey:t})}function f(t){try{if(u.removeItem(t),e.ttl){let e=`${t}:expiry`;u.removeItem(e)}}catch{}}return{getItem:function(t,e=Date.now()){try{let n=u.getItem(t);if(!n)return null;let r=`${t}:expiry`,o=Number(u.getItem(r));if(o&&e>o)return f(t),f(r),d("SAFE_STORAGE_VALUE_EXPIRED"),null;return d("SAFE_STORAGE_VALUE_WITHIN_TTL"),s(n)}catch{return null}},setItem:function(t,n,r=Date.now()){try{if(u.setItem(t,c(n)),e.ttl){let n=`${t}:expiry`,o=r+e.ttl;u.setItem(n,o.toString())}}catch(t){if(l&&t instanceof Error&&t.message.toLowerCase().includes("quota"))throw t}},removeItem:f,clear:()=>u.clear(),getKeys:function(){return Object.keys(u)},get length(){return u.length}}}function s(t){return a(t,{throwQuotaErrorsOnSet:!1},r.cg,JSON.parse,JSON.stringify)}},11730(t,e,n){n.d(e,{Ai:()=>i,Gq:()=>r,SO:()=>o});let{getItem:r,setItem:o,removeItem:i}=(0,n(35205).A)("sessionStorage")},19598(t,e,n){n.d(e,{Kq:()=>s,RQ:()=>c,gh:()=>u,ni:()=>a,sW:()=>i});var r=n(40109);class o extends Event{mechanism;constructor(t,e){super(e),this.mechanism=t}}class i extends o{constructor(t){super(t,r.z.START)}}class a extends o{visitCount;constructor(t,e){super(t,r.z.SUCCESS),this.visitCount=e}}class s extends o{error;constructor(t,e){super(t,r.z.ERROR),this.error=e}}class c extends o{constructor(t){super(t,r.z.END)}}class u extends Event{payload;appPayload;constructor(t){super("soft-nav:payload"),this.payload=t.payload,this.appPayload=t.appPayload}}},73502(t,e,n){n.d(e,{Bu:()=>h,SC:()=>l,Ti:()=>m,iS:()=>d,k5:()=>u,o4:()=>f,rZ:()=>p});var r=n(73537),o=n(40109),i=n(19598),a=n(32664),s=n(97398);let c=0;function u(){c=0,document.dispatchEvent(new Event(o.z.INITIAL)),(0,s.xT)()}function l(t){(0,s.LM)()||(document.dispatchEvent(new Event(o.z.PROGRESS_BAR.START)),document.dispatchEvent(new i.sW(t)),(0,s.Vy)(t),(0,s.ZW)(),(0,s.HK)(),(0,a.E5)())}function d(t={}){E(t)&&(c+=1,document.dispatchEvent(new i.ni((0,s.di)(),c)),m(t))}function f(t={}){if(!E(t))return;c=0;let e=(0,s.my)()||s.BW;document.dispatchEvent(new i.Kq((0,s.di)(),e)),v(),(0,a.Cd)(e),(0,s.xT)()}function m(t={}){if(!E(t))return;let e=(0,s.di)();v(),document.dispatchEvent(new i.RQ(e)),(0,s.Ff)(),(0,s.JA)(e),(0,r.G7)("react_nav_early_soft_nav")&&(0,s.Dm)()}function p(t={}){E(t)&&((0,a.Im)(),document.dispatchEvent(new Event(o.z.RENDER)))}function h(){document.dispatchEvent(new Event(o.z.FRAME_UPDATE))}function v(){document.dispatchEvent(new Event(o.z.PROGRESS_BAR.END))}function E({skipIfGoingToReactApp:t,allowedMechanisms:e=[]}={}){return(0,s.LM)()&&(0===e.length||e.includes((0,s.di)()))&&(!t||!(0,s.gc)())}},32664(t,e,n){n.d(e,{Cd:()=>u,E5:()=>c,Im:()=>l,nW:()=>s});var r=n(51189),o=n(97398),i=n(66953);let a="stats:soft-nav-duration",s={turbo:"TURBO",react:"REACT","turbo.frame":"FRAME","turbo.error":"TURBO.ERROR",ui:"UI",hard:"HARD"};function c(){window.performance.clearResourceTimings(),window.performance.mark(a)}function u(t){(0,r.iv)({turboFailureReason:t,turboStartUrl:(0,o.dR)(),turboEndUrl:window.location.href})}function l(){let t=function(){if(0===performance.getEntriesByName(a).length)return null;performance.measure(a,a);let t=performance.getEntriesByName(a).pop();return t?t.duration:null}();if(!t)return;let e=s[(0,o.di)()],n=Math.round(t);e===s.react&&document.dispatchEvent(new CustomEvent("staffbar-update",{detail:{duration:n}})),(0,r.iv)({requestUrl:window.location.href,softNavigationTiming:{mechanism:e,destination:(0,i.f)()||"rails",duration:n,initiator:(0,o.Pv)()||"rails"}})}},97398(t,e,n){n.d(e,{BW:()=>a,Dm:()=>S,Ff:()=>h,HK:()=>A,JA:()=>I,LM:()=>v,Pv:()=>T,Vy:()=>p,ZW:()=>x,dR:()=>R,di:()=>E,gc:()=>C,k9:()=>w,my:()=>g,wG:()=>y,xT:()=>m});var r=n(11730),o=n(26316),i=n(66953);let a="reload",s="soft-nav:fail",c="soft-nav:fail-referrer",u="soft-nav:referrer",l="soft-nav:marker",d="soft-nav:react-app-name",f="soft-nav:latest-mechanism";function m(){(0,r.SO)(l,"0"),(0,r.Ai)(u),(0,r.Ai)(s),(0,r.Ai)(c),(0,r.Ai)(d),(0,r.Ai)(f)}function p(t){(0,r.SO)(l,t)}function h(){(0,r.SO)(l,"0")}function v(){let t=(0,r.Gq)(l);return t&&"0"!==t}function E(){return(0,r.Gq)(l)}function y(){return!!g()}function g(){return(0,r.Gq)(s)}function w(t){(0,r.SO)(s,t||a),(0,r.SO)(c,window.location.href)}function S(){(0,r.Ai)(s),(0,r.Ai)(c)}function A(){(0,r.SO)(u,window.location.href)}function R(){return(0,r.Gq)(u)||document.referrer}function x(){let t=(0,i.f)();t?(0,r.SO)(d,t):(0,r.Ai)(d)}function T(){return(0,r.Gq)(d)}function C(){return!!o.XC?.querySelector("react-app")?.getAttribute("app-name")||!!o.XC?.querySelector("projects-v2")}function I(t){(0,r.SO)(f,t)}},70247(t,e,n){n.d(e,{V:()=>m});var r=n(74848),o=n(16522),i=n(96540),a=n(40914),s=n(38621),c=n(52870),u=n(56149);let l={info:"",success:"Toast--success",error:"Toast--error"},d={info:(0,r.jsx)(s.InfoIcon,{}),success:(0,r.jsx)(s.CheckIcon,{}),error:(0,r.jsx)(s.StopIcon,{})},f=t=>{let e,n,a,s,f,m=(0,o.c)(14),{message:p,timeToLive:h,icon:v,type:E,role:y}=t,g=void 0===E?"info":E,w=void 0===y?"log":y,[S,A]=i.useState(!0),{safeSetTimeout:R}=(0,c.A)();m[0]!==R||m[1]!==h?(e=()=>{h&&R(()=>A(!1),h-300)},n=[R,h],m[0]=R,m[1]=h,m[2]=e,m[3]=n):(e=m[2],n=m[3]),(0,i.useEffect)(e,n);let x=`Toast ${l[g]} ${S?"Toast--animateIn":"Toast--animateOut"}`,T=`ui-app-toast-${g}`,C=v||d[g];return m[4]!==C?(a=(0,r.jsx)("span",{className:"Toast-icon",children:C}),m[4]=C,m[5]=a):a=m[5],m[6]!==p?(s=(0,r.jsx)("span",{className:"Toast-content",children:p}),m[6]=p,m[7]=s):s=m[7],m[8]!==w||m[9]!==x||m[10]!==T||m[11]!==a||m[12]!==s?(f=(0,r.jsx)(u.ZL,{children:(0,r.jsx)("div",{className:"p-1 position-fixed bottom-0 left-0 tmp-mb-3 tmp-ml-3",children:(0,r.jsxs)("div",{className:x,id:"ui-app-toast","data-testid":T,role:w,children:[a,s]})})}),m[8]=w,m[9]=x,m[10]=T,m[11]=a,m[12]=s,m[13]=f):f=m[13],f};function m(){let t,e,n,s=(0,o.c)(7),{toasts:c,persistedToast:u}=(0,i.use)(a.T8);return s[0]!==c?(t=c.map(p),s[0]=c,s[1]=t):t=s[1],s[2]!==u?(e=u&&(0,r.jsx)(f,{message:u.message,icon:u.icon,type:u.type,role:u.role}),s[2]=u,s[3]=e):e=s[3],s[4]!==t||s[5]!==e?(n=(0,r.jsxs)(r.Fragment,{children:[t,e]}),s[4]=t,s[5]=e,s[6]=n):n=s[6],n}function p(t,e){return(0,r.jsx)(f,{message:t.message,icon:t.icon,timeToLive:a.Qn,type:t.type,role:t.role},e)}f.displayName="Toast",m.displayName="Toasts"}}]);
//# sourceMappingURL=25757-bd33e9e6d68fcb59-5e3dae379c60f37b.js.mapӘ