performance.mark("js-parse-end:50938-5b5d5a0255a1f741.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["50938"],{94571(e,t,n){let o;n.d(t,{Se:()=>A,FB:()=>u,p_:()=>L,CF:()=>g,aC:()=>_,zV:()=>O});let i=new WeakSet,r=new WeakMap;function a(e=document){if(r.has(e))return r.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)d(t.target);else if("childList"===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&l(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let o={get closed(){return t},unsubscribe(){t=!0,r.delete(e),n.disconnect()}};return r.set(e,o),o}function l(e){for(let t of e.querySelectorAll("[data-action]"))d(t);e instanceof Element&&e.hasAttribute("data-action")&&d(e)}function s(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let o=t.closest(n.tag);i.has(o)&&"function"==typeof o[n.method]&&o[n.method](e);let r=t.getRootNode();if(r instanceof ShadowRoot&&i.has(r.host)&&r.host.matches(n.tag)){let t=r.host;"function"==typeof t[n.method]&&t[n.method](e)}}}function*c(e){for(let t of(e.getAttribute("data-action")||"").trim().split(/\s+/)){let e=t.lastIndexOf(":"),n=Math.max(0,t.lastIndexOf("#"))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||"handleEvent"}}}function d(e){for(let t of c(e))e.addEventListener(t.type,s)}function u(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let o of e.shadowRoot.querySelectorAll(`[data-target~="${n}.${t}"]`))if(!o.closest(n))return o}for(let o of e.querySelectorAll(`[data-target~="${n}.${t}"]`))if(o.closest(n)===e)return o}let h=e=>String("symbol"==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),f=(e,t="property")=>{let n=h(e);if(!n.includes("-"))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,"SyntaxError");return n},m="attr";function g(e,t){x(e,m).add(t)}let b=new WeakSet;function p(e,t){if(b.has(e))return;b.add(e);let n=Object.getPrototypeOf(e),o=n?.constructor?.attrPrefix??"data-";for(let i of(t||(t=x(n,m)),t)){let t=e[i],n=f(`${o}${i}`),r={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?r={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(r={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,i,r),i in e&&!e.hasAttribute(n)&&r.set.call(e,t)}}let w=new Map,y=new Promise(e=>{"loading"!==document.readyState?e():document.addEventListener("readystatechange",()=>e(),{once:!0})}),v=new Promise(e=>{let t=new AbortController;t.signal.addEventListener("abort",()=>e());let n={once:!0,passive:!0,signal:t.signal},o=()=>t.abort();document.addEventListener("mousedown",o,n),document.addEventListener("touchstart",o,n),document.addEventListener("keydown",o,n),document.addEventListener("pointerdown",o,n)}),C={ready:()=>y,firstInteraction:()=>v,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let o of e)if(o.isIntersecting){t(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},E=new WeakMap;function k(e){cancelAnimationFrame(E.get(e)||0),E.set(e,requestAnimationFrame(()=>{for(let t of w.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let o=n?.getAttribute("data-load-on")||"ready",i=o in C?C[o]:C.ready;for(let e of w.get(t)||[])i(t).then(e);w.delete(t),E.delete(e)}}}))}function A(e,t){for(let[n,o]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))w.has(n)||w.set(n,new Set),w.get(n).add(o);S(document)}function S(e){o||(o=new MutationObserver(e=>{if(w.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&k(e)})),k(e),o.observe(e,{subtree:!0,childList:!0})}let $=Symbol.for("catalyst");class I{constructor(e,t){const n=this,o=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){n.connectedCallback(this,o)};const i=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,i)};const r=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,t,o){n.attributeChangedCallback(this,e,t,o,r)};let a=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,a)},set(e){a=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??"data-",o=e=>f(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[...x(e.prototype,m)].map(o).concat(t),set(e){t=e}})}(e),function(e,t){let n=t||h(e.name).replace(/-element$/,"");try{window.customElements.define(n,e),window[e.name]=customElements.get(n)}catch(e){if(!(e instanceof DOMException&&"NotSupportedError"===e.name))throw e}}(e,t)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,o;for(let t of(e.toggleAttribute("data-catalyst",!0),customElements.upgrade(e),e.querySelectorAll("template[data-shadowroot]")))t.parentElement===e&&e.attachShadow({mode:"closed"===t.getAttribute("data-shadowroot")?"closed":"open"}).append(t.content.cloneNode(!0));(p(e),i.add(e),e.shadowRoot&&(l(o=e.shadowRoot),a(o)),l(e),a(e.ownerDocument),t?.call(e),e.shadowRoot)&&(l(n=e.shadowRoot),a(n),S(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,o,i){p(e),"data-catalyst"!==t&&i&&i.call(e,t,n,o)}}function x(e,t){if(!Object.prototype.hasOwnProperty.call(e,$)){let t=e[$],n=e[$]=new Map;if(t)for(let[e,o]of t)n.set(e,new Set(o))}let n=e[$];return n.has(t)||n.set(t,new Set),n.get(t)}function _(e,t){x(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return u(this,t)}})}function O(e,t){x(e,"targets").add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let o of this.shadowRoot.querySelectorAll(`[data-targets~="${e}.${t}"]`))o.closest(e)||n.push(o);for(let o of this.querySelectorAll(`[data-targets~="${e}.${t}"]`))o.closest(e)===this&&n.push(o);return n}})}function L(e){if("string"==typeof e)return t=>{new I(t,e)};new I(e)}},97088(e,t,n){n.d(t,{s:()=>r});let o=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];var i=n(36301);class r{constructor(e){this.options=e,this.eventBatch=[],this.idleCallbackId=null,this.waitTimerId=null,this.onVisibilityChange=()=>{"hidden"===document.visibilityState&&this.flushBatch()},this.boundFlush=()=>this.flushBatch(),"u">typeof document&&document.addEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.addEventListener("pagehide",this.boundFlush)}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,i.y)()}get maxBatchSize(){return this.options.maxBatchSize??10}get idleTimeout(){return this.options.idleTimeout??1e3}createEvent(e){return{page:location.href,title:document.title,context:{...this.options.baseContext,...function(){let e={};try{for(let[t,n]of new URLSearchParams(window.location.search)){let i=t.toLowerCase();o.includes(i)&&(e[i]=n)}return e}catch(e){return{}}}(),...e}}}sendPageView(e){let t=this.createEvent(e);this.send({page_views:[t]})}sendEvent(e,t){let n={...this.createEvent(t),type:e};this.send({events:[n]})}sendBatchedEvent(e,t){let n={...this.createEvent(t),type:e};this.eventBatch.push(n),this.eventBatch.length>=this.maxBatchSize?this.flushBatch():this.scheduleFlush()}flushBatch(){if(0===this.eventBatch.length)return;this.cancelScheduledFlush();let e=this.eventBatch;this.eventBatch=[],this.send({events:e})}destroy(){this.flushBatch(),"u">typeof document&&document.removeEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.removeEventListener("pagehide",this.boundFlush)}scheduleFlush(){null===this.idleCallbackId&&null===this.waitTimerId&&(this.waitTimerId=setTimeout(()=>{this.waitTimerId=null,"function"==typeof requestIdleCallback?this.idleCallbackId=requestIdleCallback(this.boundFlush):this.boundFlush()},this.idleTimeout))}cancelScheduledFlush(){null!==this.idleCallbackId&&("function"==typeof cancelIdleCallback&&cancelIdleCallback(this.idleCallbackId),this.idleCallbackId=null),null!==this.waitTimerId&&(clearTimeout(this.waitTimerId),this.waitTimerId=null)}send({page_views:e,events:t}){let n=JSON.stringify({client_id:this.clientId,page_views:e,events:t,request_context:{referrer:function(){let e;try{e=window.top.document.referrer}catch(t){if(window.parent)try{e=window.parent.document.referrer}catch(e){}}return""===e&&(e=document.referrer),e}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(e){return"unknown"}}(),browser_resolution:function(){let e=0,t=0;try{return"number"==typeof window.innerWidth?(t=window.innerWidth,e=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(t=document.body.clientWidth,e=document.body.clientHeight),`${t}x${e}`}catch(e){return"unknown"}}(),browser_languages:navigator.languages?navigator.languages.join(","):navigator.language||"",pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:-60*new Date().getTimezoneOffset()}});try{if(navigator.sendBeacon)return void navigator.sendBeacon(this.collectorUrl,n)}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:n,keepalive:!1})}}},70837(e,t,n){n.d(t,{O:()=>o});function o(e="ha"){let t,n={};for(let o of Array.from(document.head.querySelectorAll(`meta[name^="${e}-"]`))){let{name:i,content:r}=o,a=i.replace(`${e}-`,"").replace(/-/g,"_");"url"===a?t=r:n[a]=r}if(!t)throw Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,...Object.keys(n).length>0?{baseContext:n}:{}}}},97665(e,t,n){n.d(t,{Ht:()=>l,jE:()=>a,v4:()=>r});var o=n(96540),i=n(74848),r=o.createContext(void 0),a=e=>{let t=o.useContext(r);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(r.Provider,{value:e,children:t}))},34164(e,t,n){n.d(t,{$:()=>o});function o(){for(var e,t,n=0,o="",i=arguments.length;n