performance.mark("js-parse-end:93504-cc2387c6a39f36a9.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["93504"],{70170(e,t,n){function r(e,t=0,{start:n=!0,middle:o=!0,once:a=!1}={}){let i,s=n,l=0,c=!1;function u(...r){if(c)return;let d=Date.now()-l;l=Date.now(),n&&o&&d>=t&&(s=!0),s?(s=!1,e.apply(this,r),a&&u.cancel()):(o&&d{l=Date.now(),e.apply(this,r),a&&u.cancel()},o?t-d:t))}return u.cancel=()=>{clearTimeout(i),c=!0},u}function o(e,t=0,{start:n=!1,middle:a=!1,once:i=!1}={}){return r(e,t,{start:n,middle:a,once:i})}n.d(t,{n:()=>r,s:()=>o})},13937(e,t,n){let r;n.d(t,{Ax:()=>c,JW:()=>u,ZV:()=>l});class o extends Error{constructor(e,t){super(e),this.response=t}}function a(){let e,t;return[new Promise(function(n,r){e=n,t=r}),e,t]}let i=[],s=[];function l(e){i.push(e)}function c(e){s.push(e)}function u(e,t){!r&&(r=new Map,"u">typeof document&&document.addEventListener("submit",d));let n=r.get(e)||[];r.set(e,[...n,t])}function d(e){if(!(e.target instanceof HTMLFormElement)||e.defaultPrevented)return;let t=e.target,n=function(e){let t=[],n=t=>"object"==typeof t?t===e:"string"==typeof t&&e.matches(t);for(let e of r.keys())if(n(e)){let n=r.get(e)||[];t.push(...n)}return t}(t);if(0===n.length)return;let o=function(e,t){let n={method:t?.formMethod||e.method||"GET",url:e.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===n.method.toUpperCase()){let t=function(e){let t=new URLSearchParams;for(let[n,r]of[...new FormData(e).entries()])t.append(n,r.toString());return t.toString()}(e);t&&(n.url+=(~n.url.indexOf("?")?"&":"?")+t)}else n.body=new FormData(e);return n}(t,e instanceof SubmitEvent?e.submitter:null),[l,c,u]=a();e.preventDefault(),f(n,t,o,l).then(async e=>{if(e){for(let e of s)await e(t);h(o).then(c,u).catch(()=>{}).then(()=>{for(let e of i)e(t)})}else t.submit()},e=>{t.submit(),setTimeout(()=>{throw e})})}async function f(e,t,n,r){let o=!1;for(let i of e){let[e,s]=a(),l=()=>(o=!0,s(),r),c={text:l,json:()=>(n.headers.set("Accept","application/json"),l()),html:()=>(n.headers.set("Accept","text/html"),l())};await Promise.race([e,i(t,c,n)])}return o}async function h(e){let t=await window.fetch(e.url,{method:e.method,body:null!==e.body?e.body:void 0,headers:e.headers,credentials:"same-origin"}),n={url:t.url,status:t.status,statusText:t.statusText,headers:t.headers,text:"",get json(){let e=JSON.parse(this.text);return delete this.json,this.json=e,this.json},get html(){var r,a;let e;return delete this.html,this.html=(r=document,a=this.text,(e=r.createElement("template")).innerHTML=a,r.importNode(e.content,!0)),this.html}};if(n.text=await t.text(),t.ok)return n;throw new o("request failed",n)}},21744(e,t,n){function r(){if(!(this instanceof r))return new r;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>C,on:()=>S});var o,a=window.document.documentElement,i=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return i.call(e,t)},r.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},r.prototype.indexes=[];var s=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(s))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(l))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);else if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(c))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),r.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},o="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function d(e,t){var n,r,o,a,i,s,l=(e=e.slice(0).concat(e.default)).length,c=t,d=[];do if(u.exec(""),(o=u.exec(c))&&(c=o[3],o[2]||!c)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},a=!!o.capture,i=a?p:h,s=i[e];s||(s=new r,i[e]=s,document.addEventListener(e,A,a)),s.add(t,n)}function C(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},95493(e,t,n){function r(e,t){return o(function(e){if(e.activeElement!==e.body)return e.activeElement;var t=e.querySelectorAll(":hover"),n=t.length;if(n)return t[n-1]}(e),t)}function o(e,t){var n=e;if(!n)return Promise.resolve(t());var r=n.ownerDocument.documentElement,o=function(e){for(var t=[];e;){var n=e.getBoundingClientRect(),r=n.top,o=n.left;t.push({element:e,top:r,left:o}),e=e.parentElement}return t}(n);return Promise.resolve(t()).then(function(e){var t=function(e){for(var t=0;tr,_H:()=>o})},94571(e,t,n){let r;n.d(t,{Se:()=>A,FB:()=>d,p_:()=>M,CF:()=>g,aC:()=>T,zV:()=>j});let o=new WeakSet,a=new WeakMap;function i(e=document){if(a.has(e))return a.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)u(t.target);else if("childList"===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&s(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let r={get closed(){return t},unsubscribe(){t=!0,a.delete(e),n.disconnect()}};return a.set(e,r),r}function s(e){for(let t of e.querySelectorAll("[data-action]"))u(t);e instanceof Element&&e.hasAttribute("data-action")&&u(e)}function l(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let r=t.closest(n.tag);o.has(r)&&"function"==typeof r[n.method]&&r[n.method](e);let a=t.getRootNode();if(a instanceof ShadowRoot&&o.has(a.host)&&a.host.matches(n.tag)){let t=a.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 u(e){for(let t of c(e))e.addEventListener(t.type,l)}function d(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let r of e.shadowRoot.querySelectorAll(`[data-target~="${n}.${t}"]`))if(!r.closest(n))return r}for(let r of e.querySelectorAll(`[data-target~="${n}.${t}"]`))if(r.closest(n)===e)return r}let f=e=>String("symbol"==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),h=(e,t="property")=>{let n=f(e);if(!n.includes("-"))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,"SyntaxError");return n},p="attr";function g(e,t){O(e,p).add(t)}let m=new WeakSet;function b(e,t){if(m.has(e))return;m.add(e);let n=Object.getPrototypeOf(e),r=n?.constructor?.attrPrefix??"data-";for(let o of(t||(t=O(n,p)),t)){let t=e[o],n=h(`${r}${o}`),a={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?a={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(a={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,o,a),o in e&&!e.hasAttribute(n)&&a.set.call(e,t)}}let v=new Map,y=new Promise(e=>{"loading"!==document.readyState?e():document.addEventListener("readystatechange",()=>e(),{once:!0})}),w=new Promise(e=>{let t=new AbortController;t.signal.addEventListener("abort",()=>e());let n={once:!0,passive:!0,signal:t.signal},r=()=>t.abort();document.addEventListener("mousedown",r,n),document.addEventListener("touchstart",r,n),document.addEventListener("keydown",r,n),document.addEventListener("pointerdown",r,n)}),E={ready:()=>y,firstInteraction:()=>w,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let r of e)if(r.isIntersecting){t(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},x=new WeakMap;function k(e){cancelAnimationFrame(x.get(e)||0),x.set(e,requestAnimationFrame(()=>{for(let t of v.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let r=n?.getAttribute("data-load-on")||"ready",o=r in E?E[r]:E.ready;for(let e of v.get(t)||[])o(t).then(e);v.delete(t),x.delete(e)}}}))}function A(e,t){for(let[n,r]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))v.has(n)||v.set(n,new Set),v.get(n).add(r);S(document)}function S(e){r||(r=new MutationObserver(e=>{if(v.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&k(e)})),k(e),r.observe(e,{subtree:!0,childList:!0})}let C=Symbol.for("catalyst");class L{constructor(e,t){const n=this,r=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){n.connectedCallback(this,r)};const o=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,o)};const a=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,t,r){n.attributeChangedCallback(this,e,t,r,a)};let i=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,i)},set(e){i=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??"data-",r=e=>h(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[...O(e.prototype,p)].map(r).concat(t),set(e){t=e}})}(e),function(e,t){let n=t||f(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,r;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));(b(e),o.add(e),e.shadowRoot&&(s(r=e.shadowRoot),i(r)),s(e),i(e.ownerDocument),t?.call(e),e.shadowRoot)&&(s(n=e.shadowRoot),i(n),S(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,r,o){b(e),"data-catalyst"!==t&&o&&o.call(e,t,n,r)}}function O(e,t){if(!Object.prototype.hasOwnProperty.call(e,C)){let t=e[C],n=e[C]=new Map;if(t)for(let[e,r]of t)n.set(e,new Set(r))}let n=e[C];return n.has(t)||n.set(t,new Set),n.get(t)}function T(e,t){O(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return d(this,t)}})}function j(e,t){O(e,"targets").add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~="${e}.${t}"]`))r.closest(e)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~="${e}.${t}"]`))r.closest(e)===this&&n.push(r);return n}})}function M(e){if("string"==typeof e)return t=>{new L(t,e)};new L(e)}},74057(e,t,n){n.d(t,{A:()=>b});let r="data-close-dialog",o=`[${r}]`;function a(e){let t=Array.from(e.querySelectorAll("[autofocus]")).filter(s)[0];t||(t=e,e.setAttribute("tabindex","-1")),t.focus()}function i(e){let t=e.currentTarget;t instanceof Element&&("Escape"===e.key||"Esc"===e.key?(d(t,!1),e.stopPropagation()):"Tab"===e.key&&function(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.querySelector("details-dialog");if(!t)return;e.preventDefault();let n=Array.from(t.querySelectorAll("*")).filter(s);if(0===n.length)return;let r=e.shiftKey?-1:1,o=t.getRootNode(),a=t.contains(o.activeElement)?o.activeElement:null,i=-1===r?-1:0;if(a instanceof HTMLElement){let e=n.indexOf(a);-1!==e&&(i=e+r)}i<0?i=n.length-1:i%=n.length,n[i].focus()}(e))}function s(e){var t;return e.tabIndex>=0&&!e.disabled&&!(t=e).hidden&&(!t.type||"hidden"!==t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}function l(e){let t=e.querySelector("details-dialog");return!(t instanceof m)||t.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0}))}function c(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.closest("details");t&&t.hasAttribute("open")&&(l(t)||(e.preventDefault(),e.stopPropagation()))}function u(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.querySelector("details-dialog");if(n instanceof m)if(t.hasAttribute("open")){let e="getRootNode"in n?n.getRootNode():document;e.activeElement instanceof HTMLElement&&g.set(n,{details:t,activeElement:e.activeElement}),a(n),t.addEventListener("keydown",i)}else{var r,o;let e;for(let e of n.querySelectorAll("form"))e.reset();let a=(r=t,o=n,(e=g.get(o))&&e.activeElement instanceof HTMLElement?e.activeElement:r.querySelector("summary"));a&&a.focus(),t.removeEventListener("keydown",i)}}function d(e,t){t!==e.hasAttribute("open")&&(t?e.setAttribute("open",""):l(e)&&e.removeAttribute("open"))}function f(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.querySelector("details-dialog");if(!(n instanceof m))return;let r=n.querySelector("include-fragment:not([src])");if(!r)return;let o=n.src;null!==o&&(r.addEventListener("loadend",()=>{t.hasAttribute("open")&&a(n)}),r.setAttribute("src",o),p(t))}function h(e,t,n){p(e),t&&e.addEventListener("toggle",f,{once:!0}),t&&n&&e.addEventListener("mouseover",f,{once:!0})}function p(e){e.removeEventListener("toggle",f),e.removeEventListener("mouseover",f)}let g=new WeakMap;class m extends HTMLElement{static get CLOSE_ATTR(){return r}static get CLOSE_SELECTOR(){return o}constructor(){super(),g.set(this,{details:null,activeElement:null}),this.addEventListener("click",function({target:e}){if(!(e instanceof Element))return;let t=e.closest("details");t&&e.closest(o)&&d(t,!1)})}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",e||"")}get preload(){return this.hasAttribute("preload")}set preload(e){e?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");let e=g.get(this);if(!e)return;let t=this.parentElement;if(!t)return;let n=t.querySelector("summary");n&&(n.hasAttribute("role")||n.setAttribute("role","button"),n.addEventListener("click",c,{capture:!0})),t.addEventListener("toggle",u),e.details=t,h(t,this.src,this.preload)}disconnectedCallback(){let e=g.get(this);if(!e)return;let{details:t}=e;if(!t)return;t.removeEventListener("toggle",u),p(t);let n=t.querySelector("summary");n&&n.removeEventListener("click",c,{capture:!0}),e.details=null}toggle(e){let t=g.get(this);if(!t)return;let{details:n}=t;n&&d(n,e)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){let e=g.get(this);if(!e)return;let{details:t}=e;t&&h(t,this.src,this.preload)}}let b=m;window.customElements.get("details-dialog")||(window.DetailsDialogElement=m,window.customElements.define("details-dialog",m))},5225(e,t,n){function r(...e){return JSON.stringify(e,(e,t)=>"object"==typeof t?t:String(t))}function o(e,t={}){let{hash:n=r,cache:a=new Map}=t;return function(...t){let r=n.apply(this,t);if(a.has(r))return a.get(r);let o=e.apply(this,t);return o instanceof Promise&&(o=o.catch(e=>{throw a.delete(r),e})),a.set(r,o),o}}n.d(t,{A:()=>o})},85498(e,t,n){n.d(t,{TemplateInstance:()=>v,xr:()=>g});let r=new Map;function o(e){if(r.has(e))return r.get(e);let t=e.length,n=0,o=0,a=0,i=[];for(let r=0;rn&&(i.push(Object.freeze({type:"string",start:n,end:o,value:e.slice(n,o)})),n=o),i.push(Object.freeze({type:"part",start:o,end:r+2,value:e.slice(n+2,r).trim()})),r+=1,n=r+1)}return n"string"==typeof e?e:e.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,e)}}}let c=new WeakMap;class u{constructor(e,t){this.expression=t,c.set(this,[e]),e.textContent=""}get value(){return c.get(this).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return c.get(this)[0].previousSibling}get nextSibling(){return c.get(this)[c.get(this).length-1].nextSibling}replace(...e){var t,n;let r=e.map(e=>"string"==typeof e?new Text(e):e);r.length||r.push(new Text(""));let o=c.get(this)[0];for(let e of r)null==(t=o.parentNode)||t.insertBefore(e,o);for(let e of c.get(this))null==(n=e.parentNode)||n.removeChild(e);c.set(this,r)}}class d extends u{constructor(e){var t;super(e,null!=(t=e.getAttribute("expression"))?t:""),this.template=e}get directive(){var e;return null!=(e=this.template.getAttribute("directive"))?e:""}}function f(e){return{processCallback(t,n,r){var o;if("object"==typeof r&&r){for(let t of n)if(t.expression in r){let n=null!=(o=r[t.expression])?o:"";e(t,n,r)}}}}}function h(e,t){e.value=t instanceof Node?t:String(t)}let p=f(h),g=f((e,t)=>{"boolean"==typeof t&&e instanceof s&&"boolean"==typeof e.element[e.attributeName]&&(e.booleanValue=t,1)||h(e,t)}),m=new WeakMap,b=new WeakMap;class v extends(globalThis.DocumentFragment||EventTarget){constructor(e,t,n=p){var r,a;super(),Object.getPrototypeOf(this)!==v.prototype&&Object.setPrototypeOf(this,v.prototype),this.appendChild(e.content.cloneNode(!0)),b.set(this,Array.from(function* e(t){let n,r=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null);for(;n=r.nextNode();)if(n instanceof HTMLTemplateElement)if(n.hasAttribute("directive"))yield new d(n);else for(let t of e(n.content))yield t;else if(n instanceof Element&&n.hasAttributes())for(let e=0;ea});var r,o=/bot|crawl|http|lighthouse|scan|search|spider/i;function a(e){return!!e&&(function(){if(r instanceof RegExp)return r;try{r=RegExp(" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?