"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[91853],{5570:(t,e,n)=>{n.d(e,{_:()=>r});function r(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw TypeError("attempted to set read only private field");e.value=n}}},11937:(t,e,n)=>{n.d(e,{K1:()=>r.K1,U0:()=>i.U,Z0:()=>r.Z0,tp:()=>r.tp});var r=n(55966),i=n(84366);n(23635)},18150:(t,e,n)=>{n.d(e,{_:()=>i});var r=n(53482);function i(t,e,n){(0,r._)(t,e),e.set(t,n)}},27552:(t,e,n)=>{n.d(e,{A:()=>a});let r=new WeakMap;let RemoteInputElement=class RemoteInputElement extends HTMLElement{constructor(){super();const t=i.bind(null,this,!0),e={currentQuery:null,oninput:function(t){let e;return function(n){clearTimeout(e),e=setTimeout(()=>{clearTimeout(e),t(n)},300)}}(e=>t(e)),fetch:t,controller:null};r.set(this,e)}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e){e&&"src"===t&&i(this,!1)}connectedCallback(){let t=this.input;if(!t)return;t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false");let e=r.get(this);e&&(t.addEventListener("focus",e.fetch),t.addEventListener("change",e.fetch),t.addEventListener("input",e.oninput))}disconnectedCallback(){let t=this.input;if(!t)return;let e=r.get(this);e&&(t.removeEventListener("focus",e.fetch),t.removeEventListener("change",e.fetch),t.removeEventListener("input",e.oninput))}get input(){let t=this.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}};async function i(t,e,n){let i,a=t.input;if(!a)return;let o=r.get(t);if(!o)return;let l=a.value;if(e&&o.currentQuery===l)return;o.currentQuery=l;let u=t.src;if(!u)return;let d=document.getElementById(t.getAttribute("aria-owns")||"");if(!d)return;let c=new URL(u,window.location.href),f=new URLSearchParams(c.search);f.append(t.getAttribute("param")||"q",l),c.search=f.toString(),o.controller?o.controller.abort():(t.dispatchEvent(new CustomEvent("loadstart")),t.setAttribute("loading","")),o.controller="AbortController"in window?new AbortController:{signal:null,abort(){}};let h="";try{i=await s(t,c.toString(),{signal:o.controller.signal,credentials:"same-origin",headers:{accept:"text/fragment+html"}}),h=await i.text(),t.removeAttribute("loading"),o.controller=null}catch(e){e instanceof Error&&"AbortError"!==e.name&&(t.removeAttribute("loading"),o.controller=null);return}i&&i.ok?(d.innerHTML=h,t.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0,detail:{eventType:n?n.type:void 0}}))):t.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0}))}async function s(t,e,n){try{let r=await fetch(e,n);return t.dispatchEvent(new CustomEvent("load")),t.dispatchEvent(new CustomEvent("loadend")),r}catch(e){throw e instanceof Error&&(null==e?void 0:e.name)!=="AbortError"&&(t.dispatchEvent(new CustomEvent("error")),t.dispatchEvent(new CustomEvent("loadend"))),e}}let a=RemoteInputElement;window.customElements.get("remote-input")||(window.RemoteInputElement=RemoteInputElement,window.customElements.define("remote-input",RemoteInputElement))},29304:(t,e,n)=>{n.d(e,{_:()=>r});function r(t,e,n){if(!e.has(t))throw TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}},35750:(t,e,n)=>{n.d(e,{_:()=>s});var r=n(50894),i=n(29304);function s(t,e){var n=(0,i._)(t,e,"get");return(0,r._)(t,n)}},49728:(t,e,n)=>{function r(t){return Array.from(t.querySelectorAll('[role="tablist"] [role="tab"]')).filter(e=>e instanceof HTMLElement&&e.closest(t.tagName)===t)}n.d(e,{A:()=>TabContainerElement});let TabContainerElement=class TabContainerElement extends HTMLElement{constructor(){super(),this.addEventListener("keydown",t=>{let e=t.target;if(!(e instanceof HTMLElement)||e.closest(this.tagName)!==this||"tab"!==e.getAttribute("role")&&!e.closest('[role="tablist"]'))return;let n=r(this),s=n.indexOf(n.find(t=>t.matches('[aria-selected="true"]')));if("ArrowRight"===t.code){let t=s+1;t>=n.length&&(t=0),i(this,t)}else if("ArrowLeft"===t.code){let t=s-1;t<0&&(t=n.length-1),i(this,t)}else"Home"===t.code?(i(this,0),t.preventDefault()):"End"===t.code&&(i(this,n.length-1),t.preventDefault())}),this.addEventListener("click",t=>{let e=r(this);if(!(t.target instanceof Element)||t.target.closest(this.tagName)!==this)return;let n=t.target.closest('[role="tab"]');n instanceof HTMLElement&&n.closest('[role="tablist"]')&&i(this,e.indexOf(n))})}connectedCallback(){for(let t of r(this))t.hasAttribute("aria-selected")||t.setAttribute("aria-selected","false"),t.hasAttribute("tabindex")||("true"===t.getAttribute("aria-selected")?t.setAttribute("tabindex","0"):t.setAttribute("tabindex","-1"))}};function i(t,e){let n=r(t),i=Array.from(t.querySelectorAll('[role="tabpanel"]')).filter(e=>e.closest(t.tagName)===t),s=n[e],a=i[e];if(t.dispatchEvent(new CustomEvent("tab-container-change",{bubbles:!0,cancelable:!0,detail:{relatedTarget:a}}))){for(let t of n)t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");for(let t of i)t.hidden=!0,t.hasAttribute("tabindex")||t.hasAttribute("data-tab-container-no-tabstop")||t.setAttribute("tabindex","0");s.setAttribute("aria-selected","true"),s.setAttribute("tabindex","0"),s.focus(),a.hidden=!1,t.dispatchEvent(new CustomEvent("tab-container-changed",{bubbles:!0,detail:{relatedTarget:a}}))}}window.customElements.get("tab-container")||(window.TabContainerElement=TabContainerElement,window.customElements.define("tab-container",TabContainerElement))},50894:(t,e,n)=>{n.d(e,{_:()=>r});function r(t,e){return e.get?e.get.call(t):e.value}},53482:(t,e,n)=>{n.d(e,{_:()=>r});function r(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}},62044:(t,e,n)=>{n.d(e,{A:()=>s});let FilterInputElement=class FilterInputElement extends HTMLElement{constructor(){super(),this.currentQuery=null,this.filter=null,this.debounceInputChange=function(t){let e;return function(){clearTimeout(e),e=setTimeout(()=>{clearTimeout(e),t()},300)}}(()=>r(this,!0)),this.boundFilterResults=()=>{r(this,!1)}}static get observedAttributes(){return["aria-owns"]}attributeChangedCallback(t,e){e&&"aria-owns"===t&&r(this,!1)}connectedCallback(){let t=this.input;t&&(t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false"),t.addEventListener("focus",this.boundFilterResults),t.addEventListener("change",this.boundFilterResults),t.addEventListener("input",this.debounceInputChange))}disconnectedCallback(){let t=this.input;t&&(t.removeEventListener("focus",this.boundFilterResults),t.removeEventListener("change",this.boundFilterResults),t.removeEventListener("input",this.debounceInputChange))}get input(){let t=this.querySelector("input");return t instanceof HTMLInputElement?t:null}reset(){let t=this.input;t&&(t.value="",t.dispatchEvent(new Event("change",{bubbles:!0})))}};async function r(t,e=!1){var n,s,a,o,l;let u,d,c,f=t.input;if(!f)return;let h=f.value.trim(),m=t.getAttribute("aria-owns");if(!m)return;let g=document.getElementById(m);if(!g)return;let b=g.hasAttribute("data-filter-list")?g:g.querySelector("[data-filter-list]");if(!b||(t.dispatchEvent(new CustomEvent("filter-input-start",{bubbles:!0})),e&&t.currentQuery===h))return;t.currentQuery=h;let p=t.filter||i,E=b.childElementCount,v=0,w=!1;for(let t of Array.from(b.children)){if(!(t instanceof HTMLElement))continue;let e=(((n=t).querySelector("[data-filter-item-text]")||n).textContent||"").trim(),r=p(t,e,h);!0===r.hideNew&&(w=r.hideNew),t.hidden=!r.match,r.match&&v++}let A=g.querySelector("[data-filter-new-item]"),y=!!A&&h.length>0&&!w;A instanceof HTMLElement&&(A.hidden=!y,y&&(s=A,a=h,(u=s.querySelector("[data-filter-new-item-text]"))&&(u.textContent=a),((d=s.querySelector("[data-filter-new-item-value]"))instanceof HTMLInputElement||d instanceof HTMLButtonElement)&&(d.value=a))),o=g,l=v>0||y,(c=o.querySelector("[data-filter-empty-state]"))instanceof HTMLElement&&(c.hidden=l),t.dispatchEvent(new CustomEvent("filter-input-updated",{bubbles:!0,detail:{count:v,total:E}}))}function i(t,e,n){return{match:-1!==e.toLowerCase().indexOf(n.toLowerCase()),hideNew:e===n}}let s=FilterInputElement;window.customElements.get("filter-input")||(window.FilterInputElement=FilterInputElement,window.customElements.define("filter-input",FilterInputElement))},72705:(t,e,n)=>{n.d(e,{A:()=>TaskListsElement});let r=new WeakMap,i=null;function s(t,e){return t.closest("task-lists")===e.closest("task-lists")}function a(t){if(t.currentTarget!==t.target)return;let e=t.currentTarget;if(!(e instanceof Element))return;let n=e.closest(".contains-task-list");if(!n||(e.classList.add("is-ghost"),t.dataTransfer&&t.dataTransfer.setData("text/plain",(e.textContent||"").trim()),!e.parentElement))return;let s=Array.from(e.parentElement.children),a=s.indexOf(e),o=r.get(e);o&&o.sortStarted(n),i={didDrop:!1,dragging:e,dropzone:e,sourceList:n,sourceSibling:s[a+1]||null,sourceIndex:a}}function o(t){if(!i)return;let e=t.currentTarget;e instanceof Element&&(s(i.dragging,e)?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"),i.dropzone!==e&&(i.dragging.classList.add("is-dragging"),i.dropzone=e,function(t,e){if(t.parentNode===e.parentNode){let n=t;for(;n;){if(n===e)return!0;n=n.previousElementSibling}}return!1}(i.dragging,e)?e.before(i.dragging):e.after(i.dragging))):t.stopPropagation())}function l(t){if(!i)return;t.preventDefault(),t.stopPropagation();let e=t.currentTarget;if(!(e instanceof Element)||(i.didDrop=!0,!i.dragging.parentElement))return;let n=Array.from(i.dragging.parentElement.children).indexOf(i.dragging),s=e.closest(".contains-task-list");if(!s||i.sourceIndex===n&&i.sourceList===s)return;i.sourceList===s&&i.sourceIndex{let e=t.target;e instanceof HTMLInputElement&&e.classList.contains("task-list-item-checkbox")&&this.dispatchEvent(new CustomEvent("task-lists-check",{bubbles:!0,detail:{position:function(t){let e=v(t);if(!e)throw Error(".contains-task-list not found");let n=t.closest(".task-list-item"),r=Array.from(e.children).filter(t=>"LI"===t.tagName),i=n?r.indexOf(n):-1;return[function(t){let e=t.closest("task-lists");if(!e)throw Error("parent not found");return y(e).indexOf(t)}(e),i]}(e),checked:e.checked}}))});let t=new MutationObserver(w.bind(null,this));c.set(this,t),t.observe(this,{childList:!0,subtree:!0}),w(this)}disconnectedCallback(){let t=c.get(this);t&&t.disconnect()}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get sortable(){return this.hasAttribute("sortable")}set sortable(t){t?this.setAttribute("sortable",""):this.removeAttribute("sortable")}static get observedAttributes(){return["disabled"]}attributeChangedCallback(t,e,n){e!==n&&"disabled"===t&&A(this)}};let f=document.createElement("template"),h=document.createElement("span");h.classList.add("handle");let m=document.createElementNS("http://www.w3.org/2000/svg","svg");m.classList.add("drag-handle"),m.setAttribute("aria-hidden","true"),m.setAttribute("width","16"),m.setAttribute("height","16");let g=document.createElementNS("http://www.w3.org/2000/svg","path");g.setAttribute("d","M10 13a1 1 0 100-2 1 1 0 000 2zm-4 0a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zm3 1a1 1 0 100-2 1 1 0 000 2zm1-5a1 1 0 11-2 0 1 1 0 012 0zM6 5a1 1 0 100-2 1 1 0 000 2z"),f.content.appendChild(h),h.appendChild(m),m.appendChild(g);let b=new WeakMap;function p(t){let e=t.currentTarget;if(!(e instanceof Element))return;let n=e.closest("task-lists");n instanceof TaskListsElement&&n.sortable&&!n.disabled&&e.classList.add("hovered")}function E(t){let e=t.currentTarget;e instanceof Element&&e.classList.remove("hovered")}function v(t){let e=t.parentElement;return e?e.closest(".contains-task-list"):null}function w(t){for(let e of t.querySelectorAll(".contains-task-list > .task-list-item"))v(e)===function t(e){let n=v(e);return n?t(n)||n:null}(e)&&function(t){if(b.get(t))return;b.set(t,!0);let e=t.closest("task-lists");if(!(e instanceof TaskListsElement)||e.querySelectorAll(".task-list-item").length<=1)return;let n=f.content.cloneNode(!0),i=n.querySelector(".handle");if(t.prepend(n),!i)throw Error("handle not found");i.addEventListener("mouseenter",C),i.addEventListener("mouseleave",x),r.set(t,{sortStarted:k,sortFinished:T}),t.addEventListener("dragstart",a),t.addEventListener("dragenter",o),t.addEventListener("dragend",u),t.addEventListener("drop",l),t.addEventListener("dragover",d),t.addEventListener("mouseenter",p),t.addEventListener("mouseleave",E)}(e);A(t)}function A(t){for(let e of t.querySelectorAll(".task-list-item"))e.classList.toggle("enabled",!t.disabled);for(let e of t.querySelectorAll(".task-list-item-checkbox"))e instanceof HTMLInputElement&&(e.disabled=t.disabled)}function y(t){return Array.from(t.querySelectorAll("ol, ul")).filter(t=>!t.closest("tracking-block"))}let L=new WeakMap;function k(t){let e=t.closest("task-lists");if(!e)throw Error("parent not found");L.set(e,y(e))}function T({src:t,dst:e}){let n=t.list.closest("task-lists");if(!n)return;let r=L.get(n);r&&(L.delete(n),n.dispatchEvent(new CustomEvent("task-lists-move",{bubbles:!0,detail:{src:[r.indexOf(t.list),t.index],dst:[r.indexOf(e.list),e.index]}})))}function C(t){let e=t.currentTarget;if(!(e instanceof Element))return;let n=e.closest(".task-list-item");if(!n)return;let r=n.closest("task-lists");r instanceof TaskListsElement&&r.sortable&&!r.disabled&&n.setAttribute("draggable","true")}function x(t){if(i)return;let e=t.currentTarget;if(!(e instanceof Element))return;let n=e.closest(".task-list-item");n&&n.setAttribute("draggable","false")}window.customElements.get("task-lists")||(window.TaskListsElement=TaskListsElement,window.customElements.define("task-lists",TaskListsElement))},80147:(t,e,n)=>{n.d(e,{u:()=>ModalDialogElement});var r,i,s,a,o=n(97068),l=n(11937),u=function(t,e,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},d=function(t,e,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};function c(t){document.activeElement!==t&&t?.focus()}let f=[];function h(t){let e=t.target,n=e?.closest("button");if(!n||n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled"))return;let r=n?.getAttribute("data-show-dialog-id");if(r){t.stopPropagation();let e=document.getElementById(r);if(e instanceof ModalDialogElement){e.openButton=n,e.show(),t.preventDefault();return}}if(f.length&&(r=n.getAttribute("data-close-dialog-id")||n.getAttribute("data-submit-dialog-id"))){let t=document.getElementById(r);if(t instanceof ModalDialogElement){let e=f.findIndex(t=>t.id===r);f.splice(e,1),t.close(n.hasAttribute("data-submit-dialog-id"))}}}function m(t){!(t instanceof KeyboardEvent)||"keydown"!==t.type||"Enter"!==t.key||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey||h(t)}function g(t){let e=t.target;if(e?.closest("button"))return;let n=f[f.length-1];!n||e.closest(`#${n.getAttribute("id")}`)||e.ownerDocument.addEventListener("mouseup",t=>{t.target===e&&(f.pop(),n.close())},{once:!0})}let ModalDialogElement=class ModalDialogElement extends HTMLElement{constructor(){super(...arguments),r.add(this),i.set(this,new AbortController)}get open(){return this.hasAttribute("open")}set open(t){if(t)this.open||(this.setAttribute("open",""),this.setAttribute("aria-disabled","false"),document.body.style.paddingRight=`${window.innerWidth-document.body.clientWidth}px`,document.body.style.overflow="hidden",u(this,r,"a",s)?.classList.remove("Overlay--hidden"),u(this,i,"f").signal.aborted&&d(this,i,new AbortController,"f"),(0,o.iE)(this,this.querySelector("[autofocus]"),u(this,i,"f").signal),f.push(this));else{if(!this.open)return;this.removeAttribute("open"),this.setAttribute("aria-disabled","true"),u(this,r,"a",s)?.classList.add("Overlay--hidden"),document.body.style.paddingRight="0",document.body.style.overflow="initial",u(this,i,"f").abort();let t=this.openButton?.closest("details")||this.openButton?.closest("action-menu");t?c((0,l.Z0)(t)):c(this.openButton),this.openButton=null}}get showButtons(){return document.querySelectorAll(`button[data-show-dialog-id='${this.id}']`)}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),document.addEventListener("click",h),document.addEventListener("keydown",m),document.addEventListener("mousedown",g),this.addEventListener("keydown",t=>u(this,r,"m",a).call(this,t))}show(){this.open=!0}close(t=!1){if(!1===this.open)return;let e=new Event(t?"close":"cancel");this.dispatchEvent(e),this.open=!1}};i=new WeakMap,r=new WeakSet,s=function(){return this.parentElement?.hasAttribute("data-modal-dialog-overlay")?this.parentElement:null},a=function(t){if(t instanceof KeyboardEvent&&!t.isComposing&&this.open)switch(t.key){case"Escape":this.close(),t.preventDefault(),t.stopPropagation();break;case"Enter":t.target.getAttribute("data-close-dialog-id")===this.id&&t.stopPropagation()}},window.customElements.get("modal-dialog")||(window.ModalDialogElement=ModalDialogElement,window.customElements.define("modal-dialog",ModalDialogElement))},85242:(t,e,n)=>{n.d(e,{_:()=>s});var r=n(5570),i=n(29304);function s(t,e,n){var s=(0,i._)(t,e,"set");return(0,r._)(t,s,n),n}},91385:(t,e,n)=>{n.d(e,{Xq:()=>o,ai:()=>i,fN:()=>a,qA:()=>l});var r=-1/0,i=1/0;function s(t,e,n,i){for(var s=t.length,a=e.length,o=t.toLowerCase(),l=e.toLowerCase(),u=function(t){for(var e=t.length,n=Array(e),r="/",i=0;i1024)return r;var o=Array(n),l=Array(n);return s(t,e,o,l),l[n-1][a-1]}function o(t,e){var n=t.length,i=e.length,a=Array(n);if(!n||!i)return a;if(n===i){for(var o=0;o1024)return a;var l=Array(n),u=Array(n);s(t,e,l,u);for(var d=!1,o=n-1,c=i-1;o>=0;o--)for(;c>=0;c--)if(l[o][c]!==r&&(d||l[o][c]===u[o][c])){d=o&&c&&u[o][c]===l[o-1][c-1]+1,a[o]=c--;break}return a}function l(t,e){t=t.toLowerCase(),e=e.toLowerCase();for(var n=t.length,r=0,i=0;r