performance.mark("js-parse-end:11168-97002763663f0af6.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["11168"],{94571(t,e,n){let r;n.d(e,{Se:()=>E,FB:()=>u,p_:()=>N,CF:()=>g,aC:()=>j,zV:()=>L});let o=new WeakSet,i=new WeakMap;function l(t=document){if(i.has(t))return i.get(t);let e=!1,n=new MutationObserver(t=>{for(let e of t)if("attributes"===e.type&&e.target instanceof Element)d(e.target);else if("childList"===e.type&&e.addedNodes.length)for(let t of e.addedNodes)t instanceof Element&&s(t)});n.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let r={get closed(){return e},unsubscribe(){e=!0,i.delete(t),n.disconnect()}};return i.set(t,r),r}function s(t){for(let e of t.querySelectorAll("[data-action]"))d(e);t instanceof Element&&t.hasAttribute("data-action")&&d(t)}function a(t){let e=t.currentTarget;for(let n of c(e))if(t.type===n.type){let r=e.closest(n.tag);o.has(r)&&"function"==typeof r[n.method]&&r[n.method](t);let i=e.getRootNode();if(i instanceof ShadowRoot&&o.has(i.host)&&i.host.matches(n.tag)){let e=i.host;"function"==typeof e[n.method]&&e[n.method](t)}}}function*c(t){for(let e of(t.getAttribute("data-action")||"").trim().split(/\s+/)){let t=e.lastIndexOf(":"),n=Math.max(0,e.lastIndexOf("#"))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,n),method:e.slice(n+1)||"handleEvent"}}}function d(t){for(let e of c(t))t.addEventListener(e.type,a)}function u(t,e){let n=t.tagName.toLowerCase();if(t.shadowRoot){for(let r of t.shadowRoot.querySelectorAll(`[data-target~="${n}.${e}"]`))if(!r.closest(n))return r}for(let r of t.querySelectorAll(`[data-target~="${n}.${e}"]`))if(r.closest(n)===t)return r}let h=t=>String("symbol"==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),f=(t,e="property")=>{let n=h(t);if(!n.includes("-"))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,"SyntaxError");return n},p="attr";function g(t,e){$(t,p).add(e)}let m=new WeakSet;function b(t,e){if(m.has(t))return;m.add(t);let n=Object.getPrototypeOf(t),r=n?.constructor?.attrPrefix??"data-";for(let o of(e||(e=$(n,p)),e)){let e=t[o],n=f(`${r}${o}`),i={configurable:!0,get(){return this.getAttribute(n)||""},set(t){this.setAttribute(n,t||"")}};"number"==typeof e?i={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(t){this.setAttribute(n,t)}}:"boolean"==typeof e&&(i={configurable:!0,get(){return this.hasAttribute(n)},set(t){this.toggleAttribute(n,t)}}),Object.defineProperty(t,o,i),o in t&&!t.hasAttribute(n)&&i.set.call(t,e)}}let y=new Map,w=new Promise(t=>{"loading"!==document.readyState?t():document.addEventListener("readystatechange",()=>t(),{once:!0})}),v=new Promise(t=>{let e=new AbortController;e.signal.addEventListener("abort",()=>t());let n={once:!0,passive:!0,signal:e.signal},r=()=>e.abort();document.addEventListener("mousedown",r,n),document.addEventListener("touchstart",r,n),document.addEventListener("keydown",r,n),document.addEventListener("pointerdown",r,n)}),k={ready:()=>w,firstInteraction:()=>v,visible:t=>new Promise(e=>{let n=new IntersectionObserver(t=>{for(let r of t)if(r.isIntersecting){e(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let e of document.querySelectorAll(t))n.observe(e)})},C=new WeakMap;function A(t){cancelAnimationFrame(C.get(t)||0),C.set(t,requestAnimationFrame(()=>{for(let e of y.keys()){let n=t instanceof Element&&t.matches(e)?t:t.querySelector(e);if(customElements.get(e)||n){let r=n?.getAttribute("data-load-on")||"ready",o=r in k?k[r]:k.ready;for(let t of y.get(e)||[])o(e).then(t);y.delete(e),C.delete(t)}}}))}function E(t,e){for(let[n,r]of("string"==typeof t&&e&&(t={[t]:e}),Object.entries(t)))y.has(n)||y.set(n,new Set),y.get(n).add(r);S(document)}function S(t){r||(r=new MutationObserver(t=>{if(y.size)for(let e of t)for(let t of e.addedNodes)t instanceof Element&&A(t)})),A(t),r.observe(t,{subtree:!0,childList:!0})}let O=Symbol.for("catalyst");class M{constructor(t,e){const n=this,r=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){n.connectedCallback(this,r)};const o=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,o)};const i=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,r){n.attributeChangedCallback(this,t,e,r,i)};let l=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,l)},set(t){l=t}}),function(t){let e=t.observedAttributes||[],n=t.attrPrefix??"data-",r=t=>f(`${n}${t}`);Object.defineProperty(t,"observedAttributes",{configurable:!0,get:()=>[...$(t.prototype,p)].map(r).concat(e),set(t){e=t}})}(t),function(t,e){let n=e||h(t.name).replace(/-element$/,"");try{window.customElements.define(n,t),window[t.name]=customElements.get(n)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){var n,r;for(let e of(t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),t.querySelectorAll("template[data-shadowroot]")))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).append(e.content.cloneNode(!0));(b(t),o.add(t),t.shadowRoot&&(s(r=t.shadowRoot),l(r)),s(t),l(t.ownerDocument),e?.call(t),t.shadowRoot)&&(s(n=t.shadowRoot),l(n),S(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,n,r,o){b(t),"data-catalyst"!==e&&o&&o.call(t,e,n,r)}}function $(t,e){if(!Object.prototype.hasOwnProperty.call(t,O)){let e=t[O],n=t[O]=new Map;if(e)for(let[t,r]of e)n.set(t,new Set(r))}let n=t[O];return n.has(e)||n.set(e,new Set),n.get(e)}function j(t,e){$(t,"target").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return u(this,e)}})}function L(t,e){$(t,"targets").add(e),Object.defineProperty(t,e,{configurable:!0,get(){let t=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~="${t}.${e}"]`))r.closest(t)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~="${t}.${e}"]`))r.closest(t)===this&&n.push(r);return n}})}function N(t){if("string"==typeof t)return e=>{new M(e,t)};new M(t)}},50515(t,e,n){n.d(e,{JC:()=>C,KK:()=>f,Vy:()=>a,ai:()=>k,rd:()=>p});class r{constructor(t){this.children=[],this.parent=t}delete(t){let e=this.children.indexOf(t);return -1!==e&&(this.children=this.children.slice(0,e).concat(this.children.slice(e+1)),0===this.children.length&&this.parent.delete(this),!0)}add(t){return this.children.push(t),this}}class o{constructor(t){this.parent=null,this.children={},this.parent=t||null}get(t){return this.children[t]}insert(t){let e=this;for(let n=0;n","\xbf":"?"},l={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+","[":"{","]":"}","\\":"|",";":":","'":'"',",":"<",".":">","/":"?",q:"Q",w:"W",e:"E",r:"R",t:"T",y:"Y",u:"U",i:"I",o:"O",p:"P",a:"A",s:"S",d:"D",f:"F",g:"G",h:"H",j:"J",k:"K",l:"L",z:"Z",x:"X",c:"C",v:"V",b:"B",n:"N",m:"M"},s={" ":"Space","+":"Plus"};function a(t,e=navigator.platform){var n,r,o;let{ctrlKey:d,altKey:h,metaKey:f,shiftKey:p,key:g}=t,m=[];for(let[t,e]of[d,h,f,p].entries())e&&m.push(c[t]);if(!c.includes(g)){let t=m.includes("Alt")&&u.test(e)&&null!=(n=i[g])?n:g,a=m.includes("Shift")&&u.test(e)&&null!=(r=l[t])?r:t,c=null!=(o=s[a])?o:a;m.push(c)}return m.join("+")}let c=["Control","Alt","Meta","Shift"];function d(t,e){var n,r,o;let i,l,s;return(n=t,r=e,l="u"{var n,r;return(null!=(n=h[t])?n:1/0)-(null!=(r=h[e])?r:1/0)}).join("+")}let u=/Mac|iPod|iPhone|iPad/i,h={Control:0,Alt:1,Meta:2,Shift:3};class f{constructor({onReset:t}={}){this._path=[],this.timer=null,this.onReset=t}get path(){return this._path}get sequence(){return this._path.join(" ")}registerKeypress(t){this._path=[...this._path,a(t)],this.startTimer()}reset(){var t;this.killTimer(),this._path=[],null==(t=this.onReset)||t.call(this)}killTimer(){null!=this.timer&&window.clearTimeout(this.timer),this.timer=null}startTimer(){this.killTimer(),this.timer=window.setTimeout(()=>this.reset(),f.CHORD_TIMEOUT)}}function p(t){return t.split(" ").map(t=>d(t)).join(" ")}function g(t){if(!(t instanceof HTMLElement))return!1;let e=t.nodeName.toLowerCase(),n=(t.getAttribute("type")||"").toLowerCase();return"select"===e||"textarea"===e||"input"===e&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||t.isContentEditable}f.CHORD_TIMEOUT=1500;let m=new o,b=new WeakMap,y=m,w=new f({onReset(){y=m}});function v(t){if(t.defaultPrevented||!(t.target instanceof Node))return;if(g(t.target)){let e=t.target;if(!e.id||!e.ownerDocument.querySelector(`[data-hotkey-scope="${e.id}"]`))return}let e=y.get(a(t));if(!e)return void w.reset();if(w.registerKeypress(t),y=e,e instanceof r){let r,o=t.target,i=!1,l=g(o);for(let t=e.children.length-1;t>=0;t-=1){let n=(r=e.children[t]).getAttribute("data-hotkey-scope");if(!l&&!n||l&&o.id===n){i=!0;break}}if(r&&i){var n;let e;n=r,e=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:w.path}}),n.dispatchEvent(e)&&(g(n)?n.focus():n.click()),t.preventDefault()}w.reset()}}function k(t,e){0===Object.keys(m.children).length&&document.addEventListener("keydown",v);let n=(function(t){let e=[],n=[""],r=!1;for(let o=0;ot.map(t=>d(t)).filter(t=>""!==t)).filter(t=>t.length>0)})(e||t.getAttribute("data-hotkey")||"").map(e=>m.insert(e).add(t));b.set(t,n)}function C(t){let e=b.get(t);if(e&&e.length)for(let n of e)n&&n.delete(t);0===Object.keys(m.children).length&&document.removeEventListener("keydown",v)}},28926(t,e,n){n.d(e,{a:()=>l});let r=new Set(["children","localName","ref","style","className"]),o=new WeakMap,i=(t,e,n,r,i)=>{let l,s,a=null==i?void 0:i[e];void 0===a||n===r?null==n&&e in HTMLElement.prototype?t.removeAttribute(e):t[e]=n:(void 0===(l=o.get(t))&&o.set(t,l=new Map),s=l.get(a),void 0!==n?void 0===s?(l.set(a,s={handleEvent:n}),t.addEventListener(a,s)):s.handleEvent=n:void 0!==s&&(l.delete(a),t.removeEventListener(a,s)))};function l(t=window.React,e,n,o,s){let a,c,d;void 0===e?({tagName:c,elementClass:d,events:o,displayName:s}=t,a=t.react):(a=t,d=n,c=e);let u=a.Component,h=a.createElement,f=new Set(Object.keys(null!=o?o:{}));class p extends u{constructor(){super(...arguments),this.o=null}t(t){if(null!==this.o)for(let e in this.i)i(this.o,e,this.props[e],t?t[e]:void 0,o)}componentDidMount(){var t;this.t(),null==(t=this.o)||t.removeAttribute("defer-hydration")}componentDidUpdate(t){this.t(t)}render(){let{_$Gl:t,...e}=this.props;this.h!==t&&(this.u=e=>{null!==t&&("function"==typeof t?t(e):t.current=e),this.o=e,this.h=t}),this.i={};let n={ref:this.u};for(let[t,o]of Object.entries(e))r.has(t)?n["className"===t?"class":t]=o:f.has(t)||t in d.prototype?this.i[t]=o:n[t]=o;return n.suppressHydrationWarning=!0,h(c,n)}}p.displayName=null!=s?s:d.name;let g=a.forwardRef((t,e)=>h(p,{...t,_$Gl:e},null==t?void 0:t.children));return g.displayName=p.displayName,g}},97665(t,e,n){n.d(e,{Ht:()=>s,jE:()=>l,v4:()=>i});var r=n(96540),o=n(74848),i=r.createContext(void 0),l=t=>{let e=r.useContext(i);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},s=({client:t,children:e})=>(r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,o.jsx)(i.Provider,{value:t,children:e}))},31993(t,e,n){n.d(e,{j:()=>r});function r(t){return t}},34164(t,e,n){n.d(e,{$:()=>r});function r(){for(var t,e,n=0,r="",o=arguments.length;n