performance.mark("js-parse-end:45885-7a2bdaed5bad350a.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["45885"],{62044(e,t,n){n.d(t,{A:()=>a});class r extends HTMLElement{constructor(){super(),this.currentQuery=null,this.filter=null,this.debounceInputChange=function(e){let t;return function(){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e()},300)}}(()=>o(this,!0)),this.boundFilterResults=()=>{o(this,!1)}}static get observedAttributes(){return["aria-owns"]}attributeChangedCallback(e,t){t&&"aria-owns"===e&&o(this,!1)}connectedCallback(){let e=this.input;e&&(e.setAttribute("autocomplete","off"),e.setAttribute("spellcheck","false"),e.addEventListener("focus",this.boundFilterResults),e.addEventListener("change",this.boundFilterResults),e.addEventListener("input",this.debounceInputChange))}disconnectedCallback(){let e=this.input;e&&(e.removeEventListener("focus",this.boundFilterResults),e.removeEventListener("change",this.boundFilterResults),e.removeEventListener("input",this.debounceInputChange))}get input(){let e=this.querySelector("input");return e instanceof HTMLInputElement?e:null}reset(){let e=this.input;e&&(e.value="",e.dispatchEvent(new Event("change",{bubbles:!0})))}}async function o(e,t=!1){var n,r,a,s,l;let u,c,d,f=e.input;if(!f)return;let h=f.value.trim(),p=e.getAttribute("aria-owns");if(!p)return;let m=document.getElementById(p);if(!m)return;let b=m.hasAttribute("data-filter-list")?m:m.querySelector("[data-filter-list]");if(!b||(e.dispatchEvent(new CustomEvent("filter-input-start",{bubbles:!0})),t&&e.currentQuery===h))return;e.currentQuery=h;let g=e.filter||i,v=b.childElementCount,w=0,y=!1;for(let e of Array.from(b.children)){if(!(e instanceof HTMLElement))continue;let t=(((n=e).querySelector("[data-filter-item-text]")||n).textContent||"").trim(),r=g(e,t,h);!0===r.hideNew&&(y=r.hideNew),e.hidden=!r.match,r.match&&w++}let E=m.querySelector("[data-filter-new-item]"),A=!!E&&h.length>0&&!y;E instanceof HTMLElement&&(E.hidden=!A,A&&(r=E,a=h,(u=r.querySelector("[data-filter-new-item-text]"))&&(u.textContent=a),((c=r.querySelector("[data-filter-new-item-value]"))instanceof HTMLInputElement||c instanceof HTMLButtonElement)&&(c.value=a))),s=m,l=w>0||A,(d=s.querySelector("[data-filter-empty-state]"))instanceof HTMLElement&&(d.hidden=l),e.dispatchEvent(new CustomEvent("filter-input-updated",{bubbles:!0,detail:{count:w,total:v}}))}function i(e,t,n){return{match:-1!==t.toLowerCase().indexOf(n.toLowerCase()),hideNew:t===n}}let a=r;window.customElements.get("filter-input")||(window.FilterInputElement=r,window.customElements.define("filter-input",r))},13937(e,t,n){let r;n.d(t,{Ax:()=>u,JW:()=>c,ZV:()=>l});class o extends Error{constructor(e,t){super(e),this.response=t}}function i(){let e,t;return[new Promise(function(n,r){e=n,t=r}),e,t]}let a=[],s=[];function l(e){a.push(e)}function u(e){s.push(e)}function c(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,u,c]=i();e.preventDefault(),f(n,t,o,l).then(async e=>{if(e){for(let e of s)await e(t);h(o).then(u,c).catch(()=>{}).then(()=>{for(let e of a)e(t)})}else t.submit()},e=>{t.submit(),setTimeout(()=>{throw e})})}async function f(e,t,n,r){let o=!1;for(let a of e){let[e,s]=i(),l=()=>(o=!0,s(),r),u={text:l,json:()=>(n.headers.set("Accept","application/json"),l()),html:()=>(n.headers.set("Accept","text/html"),l())};await Promise.race([e,a(t,u,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,i;let e;return delete this.html,this.html=(r=document,i=this.text,(e=r.createElement("template")).innerHTML=i,r.importNode(e.content,!0)),this.html}};if(n.text=await t.text(),t.ok)return n;throw new o("request failed",n)}},27552(e,t,n){n.d(t,{A:()=>s});let r=new WeakMap;class o extends HTMLElement{constructor(){super();const e=i.bind(null,this,!0),t={currentQuery:null,oninput:function(e){let t;return function(n){clearTimeout(t),t=setTimeout(()=>{clearTimeout(t),e(n)},300)}}(t=>e(t)),fetch:e,controller:null};r.set(this,t)}static get observedAttributes(){return["src"]}attributeChangedCallback(e,t){t&&"src"===e&&i(this,!1)}connectedCallback(){let e=this.input;if(!e)return;e.setAttribute("autocomplete","off"),e.setAttribute("spellcheck","false");let t=r.get(this);t&&(e.addEventListener("focus",t.fetch),e.addEventListener("change",t.fetch),e.addEventListener("input",t.oninput))}disconnectedCallback(){let e=this.input;if(!e)return;let t=r.get(this);t&&(e.removeEventListener("focus",t.fetch),e.removeEventListener("change",t.fetch),e.removeEventListener("input",t.oninput))}get input(){let e=this.querySelector("input, textarea");return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}get src(){return this.getAttribute("src")||""}set src(e){this.setAttribute("src",e)}}async function i(e,t,n){let o,i=e.input;if(!i)return;let s=r.get(e);if(!s)return;let l=i.value;if(t&&s.currentQuery===l)return;s.currentQuery=l;let u=e.src;if(!u)return;let c=document.getElementById(e.getAttribute("aria-owns")||"");if(!c)return;let d=new URL(u,window.location.href),f=new URLSearchParams(d.search);f.append(e.getAttribute("param")||"q",l),d.search=f.toString(),s.controller?s.controller.abort():(e.dispatchEvent(new CustomEvent("loadstart")),e.setAttribute("loading","")),s.controller="AbortController"in window?new AbortController:{signal:null,abort(){}};let h="";try{o=await a(e,d.toString(),{signal:s.controller.signal,credentials:"same-origin",headers:{accept:"text/fragment+html"}}),h=await o.text(),e.removeAttribute("loading"),s.controller=null}catch(t){t instanceof Error&&"AbortError"!==t.name&&(e.removeAttribute("loading"),s.controller=null);return}o&&o.ok?(c.innerHTML=h,e.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0,detail:{eventType:n?n.type:void 0}}))):e.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0}))}async function a(e,t,n){try{let r=await fetch(t,n);return e.dispatchEvent(new CustomEvent("load")),e.dispatchEvent(new CustomEvent("loadend")),r}catch(t){throw t instanceof Error&&(null==t?void 0:t.name)!=="AbortError"&&(e.dispatchEvent(new CustomEvent("error")),e.dispatchEvent(new CustomEvent("loadend"))),t}}let s=o;window.customElements.get("remote-input")||(window.RemoteInputElement=o,window.customElements.define("remote-input",o))},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:()=>S,on:()=>L});var o,i=window.document.documentElement,a=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return a.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 u=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(u))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 c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function d(e,t){var n,r,o,i,a,s,l=(e=e.slice(0).concat(e.default)).length,u=t,d=[];do if(c.exec(""),(o=c.exec(u))&&(u=o[3],o[2]||!u)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},i=!!o.capture,a=i?p:h,s=a[e];s||(s=new r,a[e]=s,document.addEventListener(e,x,i)),s.add(t,n)}function S(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},91385(e,t,n){n.d(t,{Xq:()=>s,ai:()=>o,fN:()=>a,qA:()=>l});var r=-1/0,o=1/0;function i(e,t,n,o){for(var i=e.length,a=t.length,s=e.toLowerCase(),l=t.toLowerCase(),u=function(e){for(var t=e.length,n=Array(t),r="/",o=0;o1024)return r;var s=Array(n),l=Array(n);return i(e,t,s,l),l[n-1][a-1]}function s(e,t){var n=e.length,o=t.length,a=Array(n);if(!n||!o)return a;if(n===o){for(var s=0;s1024)return a;var l=Array(n),u=Array(n);i(e,t,l,u);for(var c=!1,s=n-1,d=o-1;s>=0;s--)for(;d>=0;d--)if(l[s][d]!==r&&(c||l[s][d]===u[s][d])){c=s&&d&&u[s][d]===l[s-1][d-1]+1,a[s]=d--;break}return a}function l(e,t){e=e.toLowerCase(),t=t.toLowerCase();for(var n=e.length,r=0,o=0;rx,FB:()=>d,p_:()=>q,CF:()=>m,aC:()=>T,zV:()=>O});let o=new WeakSet,i=new WeakMap;function a(e=document){if(i.has(e))return i.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)c(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,i.delete(e),n.disconnect()}};return i.set(e,r),r}function s(e){for(let t of e.querySelectorAll("[data-action]"))c(t);e instanceof Element&&e.hasAttribute("data-action")&&c(e)}function l(e){let t=e.currentTarget;for(let n of u(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 i=t.getRootNode();if(i instanceof ShadowRoot&&o.has(i.host)&&i.host.matches(n.tag)){let t=i.host;"function"==typeof t[n.method]&&t[n.method](e)}}}function*u(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 c(e){for(let t of u(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 m(e,t){M(e,p).add(t)}let b=new WeakSet;function g(e,t){if(b.has(e))return;b.add(e);let n=Object.getPrototypeOf(e),r=n?.constructor?.attrPrefix??"data-";for(let o of(t||(t=M(n,p)),t)){let t=e[o],n=h(`${r}${o}`),i={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?i={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(i={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,o,i),o in e&&!e.hasAttribute(n)&&i.set.call(e,t)}}let v=new Map,w=new Promise(e=>{"loading"!==document.readyState?e():document.addEventListener("readystatechange",()=>e(),{once:!0})}),y=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:()=>w,firstInteraction:()=>y,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)})},A=new WeakMap;function C(e){cancelAnimationFrame(A.get(e)||0),A.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),A.delete(e)}}}))}function x(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);L(document)}function L(e){r||(r=new MutationObserver(e=>{if(v.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&C(e)})),C(e),r.observe(e,{subtree:!0,childList:!0})}let S=Symbol.for("catalyst");class k{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 i=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,t,r){n.attributeChangedCallback(this,e,t,r,i)};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-",r=e=>h(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[...M(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));(g(e),o.add(e),e.shadowRoot&&(s(r=e.shadowRoot),a(r)),s(e),a(e.ownerDocument),t?.call(e),e.shadowRoot)&&(s(n=e.shadowRoot),a(n),L(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,r,o){g(e),"data-catalyst"!==t&&o&&o.call(e,t,n,r)}}function M(e,t){if(!Object.prototype.hasOwnProperty.call(e,S)){let t=e[S],n=e[S]=new Map;if(t)for(let[e,r]of t)n.set(e,new Set(r))}let n=e[S];return n.has(t)||n.set(t,new Set),n.get(t)}function T(e,t){M(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return d(this,t)}})}function O(e,t){M(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 q(e){if("string"==typeof e)return t=>{new k(t,e)};new k(e)}}}]); //# sourceMappingURL=45885-7a2bdaed5bad350a-8093caadd7439485.js.map