"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["app_components_primer_experimental_select-panel-element_ts"],{91953:(e,t,i)=>{i.r(t),i.d(t,{SelectPanelExperimentalElement:()=>SelectPanelExperimentalElement});var n=i(69676),s=i(39595),r=i(52811);function l(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function o(e,t){var i=a(e,t,"get");return i.get?i.get.call(e):i.value}function h(e,t,i){l(e,t),t.set(e,i)}function c(e,t,i){var n=a(e,t,"set");if(n.set)n.set.call(e,i);else{if(!n.writable)throw TypeError("attempted to set read only private field");n.value=i}return i}function d(e,t,i){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return i}function u(e,t){l(e,t),t.add(e)}function m(e,t,i,n){var s,r=arguments.length,l=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(l=(r<3?s(l):r>3?s(t,i,l):s(t,i))||l);return r>3&&l&&Object.defineProperty(t,i,l),l}let p=['[role="option"]'],f=p.join(","),v=p.map(e=>`:not([hidden]) > ${e}`).join(","),b={REMOTE:"REMOTE",EVENTUALLY_LOCAL:"EVENTUALLY_LOCAL",LOCAL:"LOCAL"},g={BODY:"BODY",BANNER:"BANNER"},E=(()=>{let e=new Set,t=null;function i(){for(let t of e)t.updateAnchorPosition()}return n=>{window.addEventListener("resize",i),window.addEventListener("scroll",i),t||(t=new ResizeObserver(()=>{for(let t of e)t.updateAnchorPosition()})),t.observe(n.ownerDocument.documentElement),n.addEventListener("dialog:close",()=>{e.delete(n)}),n.addEventListener("dialog:open",()=>{e.add(n)})}})();var y=new WeakMap,w=new WeakMap,A=new WeakMap,L=new WeakMap,S=new WeakMap,k=new WeakMap,C=new WeakMap,x=new WeakSet,T=new WeakSet,I=new WeakSet,W=new WeakSet,P=new WeakSet,M=new WeakSet,O=new WeakSet,R=new WeakSet,q=new WeakSet,_=new WeakSet,V=new WeakSet,F=new WeakSet,B=new WeakSet,N=new WeakSet,D=new WeakSet,$=new WeakSet,j=new WeakSet,X=new WeakSet,K=new WeakMap,Y=new WeakMap,H=new WeakSet,G=new WeakSet,U=new WeakSet,J=new WeakSet,z=new WeakSet,Q=new WeakSet,Z=new WeakSet,ee=new WeakSet,et=new WeakMap,ei=new WeakSet;let SelectPanelExperimentalElement=class SelectPanelExperimentalElement extends HTMLElement{get open(){return this.dialog.open}get selectVariant(){return this.getAttribute("data-select-variant")}get ariaSelectionType(){return"multiple"===this.selectVariant?"aria-checked":"aria-selected"}set selectVariant(e){e?this.setAttribute("data-select-variant",e):this.removeAttribute("variant")}get dynamicLabelPrefix(){let e=this.getAttribute("data-dynamic-label-prefix");return e?`${e}:`:""}get dynamicAriaLabelPrefix(){let e=this.getAttribute("data-dynamic-aria-label-prefix");return e?`${e}:`:""}set dynamicLabelPrefix(e){this.setAttribute("data-dynamic-label",e)}get dynamicLabel(){return this.hasAttribute("data-dynamic-label")}set dynamicLabel(e){this.toggleAttribute("data-dynamic-label",e)}get invokerElement(){let e=this.querySelector("dialog")?.id;if(!e)return null;for(let t of this.querySelectorAll("[aria-controls]"))if(t.getAttribute("aria-controls")===e)return t;return null}get closeButton(){return this.querySelector("button[data-close-dialog-id]")}get invokerLabel(){return this.invokerElement?this.invokerElement.querySelector(".Button-label"):null}get selectedItems(){return Array.from(o(this,S).values())}get align(){return this.getAttribute("anchor-align")||"start"}get side(){return this.getAttribute("anchor-side")||"outside-bottom"}updateAnchorPosition(){if(this&&null===this.offsetParent&&this.dialog.close(),this.invokerElement){let{top:e,left:t}=(0,n.uG)(this.dialog,this.invokerElement,{align:this.align,side:this.side,anchorOffset:4});this.dialog.style.top=`${e}px`,this.dialog.style.left=`${t}px`,this.dialog.style.bottom="auto",this.dialog.style.right="auto",this.dialog.scrollIntoView({block:"nearest",inline:"nearest"})}}connectedCallback(){let{signal:e}=c(this,w,new AbortController);if(this.addEventListener("keydown",this,{signal:e}),this.addEventListener("click",this,{signal:e}),this.addEventListener("mousedown",this,{signal:e}),this.addEventListener("input",this,{signal:e}),this.addEventListener("remote-input-success",this,{signal:e}),this.addEventListener("remote-input-error",this,{signal:e}),this.addEventListener("loadstart",this,{signal:e}),d(this,Z,eI).call(this),d(this,ee,eW).call(this),d(this,x,en).call(this),E(this),this.remoteInput)this.remoteInput.addEventListener("loadstart",this,{signal:e}),this.remoteInput.addEventListener("loadend",this,{signal:e});else{let t=new MutationObserver(()=>{this.remoteInput&&(this.remoteInput.addEventListener("loadstart",this,{signal:e}),this.remoteInput.addEventListener("loadend",this,{signal:e}),t.disconnect())});t.observe(this,{childList:!0,subtree:!0})}if(this.includeFragment)this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:e}),this.includeFragment.addEventListener("error",this,{signal:e});else{let t=new MutationObserver(()=>{this.includeFragment&&(this.includeFragment.addEventListener("include-fragment-replaced",this,{signal:e}),this.includeFragment.addEventListener("error",this,{signal:e}),t.disconnect())});t.observe(this,{childList:!0,subtree:!0})}if(this.remoteInput)this.remoteInput.addEventListener("loadstart",this,{signal:e});else{let t=new MutationObserver(()=>{this.remoteInput&&(this.remoteInput.addEventListener("loadstart",this,{signal:e}),t.disconnect())});t.observe(this,{childList:!0,subtree:!0})}if(c(this,y,new IntersectionObserver(e=>{for(let t of e){let e=t.target;t.isIntersecting&&e===this.dialog&&(this.updateAnchorPosition(),o(this,K)===b.LOCAL&&d(this,N,ev).call(this))}})),this.dialog)"true"===this.getAttribute("data-open-on-load")&&d(this,z,ex).call(this),o(this,y).observe(this.dialog);else{let e=new MutationObserver(()=>{this.dialog&&("true"===this.getAttribute("data-open-on-load")&&d(this,z,ex).call(this),o(this,y).observe(this.dialog),e.disconnect())});e.observe(this,{childList:!0,subtree:!0})}}disconnectedCallback(){o(this,w).abort()}handleEvent(e){if(e.target===this.filterInputTextField)return void d(this,B,ef).call(this,e);if(e.target===this.remoteInput)return void d(this,V,em).call(this,e);let t=this.invokerElement?.contains(e.target),i=this.closeButton?.contains(e.target),n=d(this,P,ea).call(this,e);if(t&&"mousedown"===e.type||"mousedown"===e.type&&e.target instanceof HTMLInputElement)return;if("mousedown"===e.type)return void e.preventDefault();if(t&&n)return void d(this,G,eS).call(this,e);if(i&&n)return;let s=e.target.closest(v)?.parentElement;if(null!=s&&n){if(d(this,I,er).call(this,e))return;let t=s.closest("[data-show-dialog-id]");if(t){let i=this.ownerDocument.getElementById(t.getAttribute("data-show-dialog-id")||"");if(i&&this.contains(t)&&this.contains(i))return void d(this,U,ek).call(this,e,i)}d(this,W,el).call(this,e)&&(e.preventDefault(),d(this,ei,eM).call(this,s)?.click()),d(this,J,eC).call(this,s);return}if("click"===e.type){let t=this.dialog.getBoundingClientRect();t.top<=e.clientY&&e.clientY<=t.top+t.height&&t.left<=e.clientX&&e.clientX<=t.left+t.width||d(this,Q,eT).call(this)}(e.target===this.includeFragment||"include-fragment-replaced"===e.type)&&d(this,_,eu).call(this,e)}get visibleItems(){return Array.from(this.querySelectorAll(v)).map(e=>e.parentElement)}get items(){return Array.from(this.querySelectorAll(f)).map(e=>e.parentElement)}get focusableItem(){for(let e of this.items){let t=d(this,ei,eM).call(this,e);if(t&&"0"===t.getAttribute("tabindex"))return t}}getItemById(e){return this.querySelector(`li[data-item-id="${e}"`)}isItemDisabled(e){return!!e&&e.classList.contains("ActionListItem--disabled")}disableItem(e){e&&(e.classList.add("ActionListItem--disabled"),d(this,ei,eM).call(this,e).setAttribute("aria-disabled","true"))}enableItem(e){e&&(e.classList.remove("ActionListItem--disabled"),d(this,ei,eM).call(this,e).removeAttribute("aria-disabled"))}isItemHidden(e){return!!e&&e.hasAttribute("hidden")}hideItem(e){e&&e.setAttribute("hidden","hidden")}showItem(e){e&&e.removeAttribute("hidden")}isItemChecked(e){return!!e&&"true"===d(this,ei,eM).call(this,e).getAttribute(this.ariaSelectionType)}checkItem(e){e&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&!this.isItemChecked(e)&&d(this,J,eC).call(this,e)}uncheckItem(e){e&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&this.isItemChecked(e)&&d(this,J,eC).call(this,e)}constructor(...e){super(...e),u(this,x),u(this,T),u(this,I),u(this,W),u(this,P),u(this,M),u(this,O),u(this,R),u(this,q),u(this,_),u(this,V),u(this,F),u(this,B),u(this,N),u(this,D),u(this,$),u(this,j),u(this,X),h(this,K,{get:ew,set:void 0}),h(this,Y,{get:eA,set:void 0}),u(this,H),u(this,G),u(this,U),u(this,J),u(this,z),u(this,Q),u(this,Z),u(this,ee),h(this,et,{get:eP,set:void 0}),u(this,ei),function(e,t,i){t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"filterFn",void 0),h(this,y,{writable:!0,value:void 0}),h(this,w,{writable:!0,value:void 0}),h(this,A,{writable:!0,value:""}),h(this,L,{writable:!0,value:""}),h(this,S,{writable:!0,value:new Map}),h(this,k,{writable:!0,value:null}),h(this,C,{writable:!0,value:null})}};function en(){let{signal:e}=o(this,w);for(let t of this.querySelectorAll(p.join(",")))t.addEventListener("click",d(this,I,er).bind(this),{signal:e}),t.addEventListener("keydown",d(this,I,er).bind(this),{signal:e})}function es(){let e=!1;if("single"===this.selectVariant)for(let t of this.items){let i=d(this,ei,eM).call(this,t);i&&(!this.isItemHidden(t)&&this.isItemChecked(t)&&!e?(i.setAttribute("tabindex","0"),e=!0):i.setAttribute("tabindex","-1"),t.removeAttribute("tabindex"))}else for(let t of this.items){let i=d(this,ei,eM).call(this,t);i&&(this.isItemHidden(t)||e?i.setAttribute("tabindex","-1"):e=!0,t.removeAttribute("tabindex"))}!e&&o(this,et)&&d(this,ei,eM).call(this,o(this,et))?.setAttribute("tabindex","0")}function er(e){if(!d(this,P,ea).call(this,e))return!1;let t=e.target.closest(v);return!!t&&!!t.getAttribute("aria-disabled")&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!0)}function el(e){return e.target instanceof HTMLAnchorElement&&e instanceof KeyboardEvent&&"keydown"===e.type&&!(e.ctrlKey||e.altKey||e.metaKey||e.shiftKey)&&" "===e.key}function ea(e){return e instanceof MouseEvent&&"click"===e.type||d(this,W,el).call(this,e)}function eo(){for(let e of this.items){let t=e.getAttribute("data-value");t&&o(this,S).has(t)&&e.setAttribute(this.ariaSelectionType,"true")}d(this,ee,eW).call(this)}function eh(e){let t=e.querySelector("button"),i=e.getAttribute("data-value");i&&o(this,S).set(i,{value:i,label:t.querySelector(".ActionListItem-label")?.textContent?.trim(),inputName:t.getAttribute("data-input-name"),element:e})}function ec(e){let t=e.getAttribute("data-value");t&&o(this,S).delete(t)}function ed(){o(this,k)&&clearTimeout(o(this,k)),o(this,C)&&clearTimeout(o(this,C)),c(this,C,setTimeout(()=>{(0,r.i)("Loading",{element:this.ariaLiveContainer})},2e3)),c(this,k,setTimeout(()=>{o(this,Y).showLeadingSpinner()},1e3))}function eu(e){switch(e.type){case"include-fragment-replaced":d(this,N,ev).call(this);break;case"error":{let e=this.fragmentErrorElement;if(e&&!e.hasAttribute("hidden"))return void(0,r.C)(e,{element:this.ariaLiveContainer,assertive:!0})}}}function em(e){switch(e.type){case"remote-input-success":d(this,j,eE).call(this),d(this,N,ev).call(this),d(this,M,eo).call(this);break;case"remote-input-error":this.bodySpinner?.setAttribute("hidden",""),this.includeFragment||0===this.visibleItems.length?d(this,$,eg).call(this,g.BODY):d(this,$,eg).call(this,g.BANNER);break;case"loadstart":if(!d(this,H,eL).call(this)){if(d(this,j,eE).call(this),this.bodySpinner?.removeAttribute("hidden"),this.bodySpinner)break;d(this,q,ed).call(this)}break;case"loadend":o(this,Y).hideLeadingSpinner(),o(this,C)&&clearTimeout(o(this,C)),o(this,k)&&clearTimeout(o(this,k))}}function ep(e,t){return(e.getAttribute("data-filter-string")||e.textContent||"").toLowerCase().indexOf(t.toLowerCase())>-1}function ef(e){if("keydown"===e.type&&"ArrowDown"===e.key&&this.focusableItem&&(this.focusableItem.focus(),e.preventDefault()),"input"===e.type&&(this.bodySpinner||d(this,H,eL).call(this)||d(this,q,ed).call(this),o(this,K)===b.LOCAL||o(this,K)===b.EVENTUALLY_LOCAL)){if(this.includeFragment)return void this.includeFragment.refetch();d(this,N,ev).call(this)}}function ev(){if(!this.list)return;let e=!1;if(d(this,H,eL).call(this)){let t=this.filterInputTextField?.value??"",i=this.filterFn||d(this,F,ep);for(let n of this.items)i(n,t)?(this.showItem(n),e=!0):this.hideItem(n)}else e=this.items.length>0;for(let e of(d(this,T,es).call(this),d(this,X,ey).call(this),this.items)){let t=e.getAttribute("data-value");t&&!o(this,S).has(t)&&this.isItemChecked(e)&&d(this,O,eh).call(this,e)}if(this.noResults){if(d(this,D,eb).call(this))return void this.noResults.setAttribute("hidden","");e?(this.noResults.setAttribute("hidden",""),this.list?.querySelector(".ActionListWrap")?.removeAttribute("hidden")):(this.list?.querySelector(".ActionListWrap")?.setAttribute("hidden",""),this.noResults.removeAttribute("hidden"))}}function eb(){return!(!this.fragmentErrorElement||this.fragmentErrorElement.hasAttribute("hidden"))||!this.errorBannerElement.hasAttribute("hidden")}function eg(e){let t=this.fragmentErrorElement;if(e===g.BODY?(this.fragmentErrorElement?.removeAttribute("hidden"),this.errorBannerElement.setAttribute("hidden","")):(t=this.errorBannerElement,this.errorBannerElement?.removeAttribute("hidden"),this.fragmentErrorElement?.setAttribute("hidden","")),t&&!t.hasAttribute("hidden"))return void(0,r.C)(t,{element:this.ariaLiveContainer,assertive:!0})}function eE(){this.fragmentErrorElement?.setAttribute("hidden",""),this.errorBannerElement.setAttribute("hidden","")}function ey(){if(this.open&&this.list){let e=this.items;if(e.length>0)(0,r.i)(`${e.length} result${1===e.length?"":"s"} tab for results`,{element:this.ariaLiveContainer});else{let e=this.noResults;e&&(0,r.C)(e,{element:this.ariaLiveContainer})}}}function ew(){if(!this.list)return b.REMOTE;switch(this.list.getAttribute("data-fetch-strategy")){case"local":return b.LOCAL;case"eventually_local":return b.EVENTUALLY_LOCAL;default:return b.REMOTE}}function eA(){return this.filterInputTextField.closest("primer-text-field")}function eL(){return o(this,K)===b.LOCAL||o(this,K)===b.EVENTUALLY_LOCAL}function eS(e){e.preventDefault(),e.stopPropagation(),this.open?d(this,Q,eT).call(this):d(this,z,ex).call(this)}function ek(e,t){this.querySelector(".ActionListWrap").style.display="none";let i=new AbortController,{signal:n}=i,s=()=>{i.abort(),this.querySelector(".ActionListWrap").style.display="",this.open&&d(this,Q,eT).call(this);let e=this.ownerDocument.activeElement,t=this.ownerDocument.activeElement===this.ownerDocument.body,n=this.contains(e);(t||n)&&setTimeout(()=>this.invokerElement?.focus(),0)};t.addEventListener("close",s,{signal:n}),t.addEventListener("cancel",s,{signal:n})}function eC(e){if("multiple"!==this.selectVariant&&setTimeout(()=>{this.open&&d(this,Q,eT).call(this)}),"multiple"!==this.selectVariant&&"single"!==this.selectVariant)return;let t=!this.isItemChecked(e);if(!this.dispatchEvent(new CustomEvent("beforeItemActivated",{bubbles:!0,detail:{item:e,checked:t},cancelable:!0})))return;let i=d(this,ei,eM).call(this,e);if("single"===this.selectVariant){for(let n of(t&&(d(this,O,eh).call(this,e),i?.setAttribute(this.ariaSelectionType,"true")),this.querySelectorAll(`[${this.ariaSelectionType}]`)))n!==i&&(d(this,R,ec).call(this,n),n.setAttribute(this.ariaSelectionType,"false"));d(this,Z,eI).call(this)}else i?.setAttribute(this.ariaSelectionType,`${t}`),t?d(this,O,eh).call(this,e):d(this,R,ec).call(this,e);d(this,ee,eW).call(this),this.dispatchEvent(new CustomEvent("itemActivated",{bubbles:!0,detail:{item:e,checked:t}}))}function ex(){this.updateAnchorPosition(),this.dialog.showModal();let e=new CustomEvent("dialog:open",{detail:{dialog:this.dialog}});this.dispatchEvent(e)}function eT(){this.dialog.close(),this.dispatchEvent(new CustomEvent("panelClosed",{detail:{panel:this},bubbles:!0}))}function eI(){if(!this.dynamicLabel)return;let e=this.invokerLabel;if(!e)return;c(this,A,o(this,A)||e.textContent||"");let t=this.querySelector(`[${this.ariaSelectionType}=true] .ActionListItem-label`)?.textContent||o(this,A);if(t){let i=document.createElement("span");i.classList.add("color-fg-muted");let n=document.createElement("span");i.textContent=`${this.dynamicLabelPrefix} `,n.textContent=t,e.replaceChildren(i,n),this.dynamicAriaLabelPrefix&&this.invokerElement?.setAttribute("aria-label",`${this.dynamicAriaLabelPrefix} ${t.trim()}`)}else e.textContent=o(this,A)}function eW(){if("single"===this.selectVariant){let e=this.querySelector("[data-list-inputs=true] input");if(!e)return;let t=this.selectedItems[0];t?(e.value=(t.value||t.label||"").trim(),t.inputName&&(e.name=t.inputName),e.removeAttribute("disabled")):e.setAttribute("disabled","disabled")}else if("none"!==this.selectVariant){let e=this.querySelector("[data-list-inputs=true]");if(!e)return;let t=e.querySelectorAll("input");for(let i of(t.length>0&&c(this,L,o(this,L)||t[0].name),this.selectedItems)){let t=document.createElement("input");t.setAttribute("data-list-input","true"),t.type="hidden",t.autocomplete="off",t.name=i.inputName||o(this,L),t.value=(i.value||i.label||"").trim(),e.append(t)}for(let e of t)e.remove()}}function eP(){return this.querySelector(v)?.parentElement||null}function eM(e){return e.querySelector(".ActionListContent")}m([s.aC],SelectPanelExperimentalElement.prototype,"includeFragment",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"dialog",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"filterInputTextField",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"remoteInput",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"list",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"ariaLiveContainer",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"noResults",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"fragmentErrorElement",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"errorBannerElement",void 0),m([s.aC],SelectPanelExperimentalElement.prototype,"bodySpinner",void 0),SelectPanelExperimentalElement=m([s.p_],SelectPanelExperimentalElement),window.customElements.get("select-panel-experimental")||(window.SelectPanelExperimentalElement=SelectPanelExperimentalElement,window.customElements.define("select-panel-experimental",SelectPanelExperimentalElement))},52811:(e,t,i)=>{i.d(t,{C:()=>l,i:()=>a});var n=i(96679),s=i(27851),r=i(46493);function l(e,t){(0,s.G7)("arianotify_comprehensive_migration")?a(o(e),{...t,element:t?.element??e}):(0,s.G7)("primer_live_region_element")&&t?.element===void 0?(0,r.Cj)(e,{politeness:t?.assertive?"assertive":"polite"}):a(o(e),t)}function a(e,t){let{assertive:i,element:l}=t??{};(0,s.G7)("arianotify_comprehensive_migration")&&"ariaNotify"in Element.prototype?(l||document.body).ariaNotify(e):(0,s.G7)("primer_live_region_element")&&void 0===l?(0,r.iP)(e,{politeness:i?"assertive":"polite"}):function(e,t,i){let s=i??n.XC?.querySelector(t?"#js-global-screen-reader-notice-assertive":"#js-global-screen-reader-notice");s&&(s.textContent===e?s.textContent=`${e}\u00A0`:s.textContent=e)}(e,i,l)}function o(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}},7799:(e,t,i)=>{let n;function s(){if(!n)throw Error("Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.");return n}function r(){return n?.locale??"en-US"}function l(){return!!s().login}i.d(t,{JK:()=>r,M3:()=>l,_$:()=>s});!function(){if("undefined"!=typeof document){let e=document.getElementById("client-env");if(e)try{n=JSON.parse(e.textContent||"")}catch(e){console.error("Error parsing client-env",e)}}}()},27851:(e,t,i)=>{i.d(t,{G7:()=>o,XY:()=>h,fQ:()=>a});var n=i(5225),s=i(7799);function r(){return new Set((0,s._$)().featureFlags)}let l=i(96679).X3||function(){try{return process?.env?.STORYBOOK==="true"}catch{return!1}}()?r:(0,n.A)(r);function a(){return Array.from(l())}function o(e){return l().has(e)}let h={isFeatureEnabled:o}},96679:(e,t,i)=>{i.d(t,{KJ:()=>n.KJ,Kn:()=>s.Kn,X3:()=>n.X3,XC:()=>s.XC,cg:()=>s.cg,fV:()=>s.fV,g5:()=>n.g5});var n=i(28583),s=i(46570)},46570:(e,t,i)=>{i.d(t,{Kn:()=>l,XC:()=>s,cg:()=>r,fV:()=>a});let n="undefined"!=typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,s="undefined"==typeof document||n?void 0:document,r="undefined"==typeof window||n?void 0:window,l="undefined"==typeof history||n?void 0:history,a="undefined"==typeof location||n?{pathname:"",origin:"",search:"",hash:"",href:""}:location},28583:(e,t,i)=>{i.d(t,{KJ:()=>r,X3:()=>s,g5:()=>l});var n=i(46570);let s=void 0===n.XC,r=!s;function l(){return!!s||!n.XC||!!(n.XC.querySelector('react-app[data-ssr="true"]')||n.XC.querySelector('react-partial[data-ssr="true"][partial-name="repos-overview"]'))}},5225:(e,t,i)=>{function n(...e){return JSON.stringify(e,(e,t)=>"object"==typeof t?t:String(t))}function s(e,t={}){let{hash:i=n,cache:r=new Map}=t;return function(...t){let n=i.apply(this,t);if(r.has(n))return r.get(n);let s=e.apply(this,t);return s instanceof Promise&&(s=s.catch(e=>{throw r.delete(n),e})),r.set(n,s),s}}i.d(t,{A:()=>s})},46493:(e,t,i)=>{i.d(t,{Cj:()=>K,iP:()=>X});let n={Less:"less",Equal:"equal",Greater:"greater"};var s,r,l,a,o,h,c,d,u,m,p,f,v,b,g,E,y,w=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},A=(e,t,i)=>(w(e,t,"read from private field"),i?i.call(e):t.get(e)),L=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},S=(e,t,i,n)=>(w(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),k=(e,t,i)=>(w(e,t,"access private method"),i);let MinHeap=class MinHeap{constructor({compareFn:e}){L(this,l),L(this,o),L(this,s,void 0),L(this,r,void 0),S(this,s,e),S(this,r,[])}insert(e){A(this,r).push(e),k(this,o,h).call(this)}pop(){let e=A(this,r)[0];return A(this,r)[A(this,r).length-1]&&(A(this,r)[0]=A(this,r)[A(this,r).length-1],A(this,r).pop()),k(this,l,a).call(this),e}peek(){return A(this,r)[0]}delete(e){let t=A(this,r).indexOf(e);-1!==t&&(x(A(this,r),t,A(this,r).length-1),A(this,r).pop(),k(this,l,a).call(this))}clear(){S(this,r,[])}get size(){return A(this,r).length}};function C(e){return Math.floor((e-1)/2)}function x(e,t,i){let n=e[t];e[t]=e[i],e[i]=n}s=new WeakMap,r=new WeakMap,l=new WeakSet,a=function(){let e=0;for(;2*e+10&&A(this,s).call(this,A(this,r)[t],(e=A(this,r),e[C(t)]))===n.Less;)x(A(this,r),t,C(t)),t=C(t)};var T=Object.defineProperty,I=(e,t,i)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,W=(e,t,i)=>(I(e,"symbol"!=typeof t?t+"":t,i),i),P=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},M=(e,t,i)=>(P(e,t,"read from private field"),i?i.call(e):t.get(e)),O=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},R=(e,t,i,n)=>(P(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i);let Deferred=class Deferred{constructor(){W(this,c,"Deferred"),O(this,d,void 0),O(this,u,void 0),O(this,m,void 0),R(this,d,new Promise((e,t)=>{R(this,u,e),R(this,m,t)}))}then(e,t){return Promise.prototype.then.apply(M(this,d),[e,t])}catch(e){return Promise.prototype.catch.apply(M(this,d),[e])}finally(e){return Promise.prototype.finally.apply(M(this,d),[e])}resolve(e){M(this,u).call(this,e)}reject(e){M(this,m).call(this,e)}getPromise(){return M(this,d)}};c=Symbol.toStringTag,d=new WeakMap,u=new WeakMap,m=new WeakMap;var q=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},_=(e,t,i)=>(q(e,t,"read from private field"),i?i.call(e):t.get(e)),V=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},F=(e,t,i,n)=>(q(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),B=(e,t,i)=>(q(e,t,"access private method"),i);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),V(this,b),V(this,E),V(this,p,void 0),V(this,f,void 0),V(this,v,void 0),!this.shadowRoot){let e=(N||((N=document.createElement("template")).innerHTML=D),N);this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}F(this,p,!1),F(this,v,null),F(this,f,new MinHeap({compareFn:$}))}get delay(){let e=this.getAttribute("delay");return e?parseInt(e,10):150}set delay(e){this.setAttribute("delay",`${e}`)}announce(e,t={}){let{delayMs:i,politeness:n="polite"}=t,s=Date.now(),r=new Deferred,l={deferred:r,politeness:n,contents:e,scheduled:void 0!==i?s+i:s};return _(this,f).insert(l),B(this,b,g).call(this),{...r.getPromise(),cancel:()=>{_(this,f).delete(l),r.resolve()}}}announceFromElement(e,t){var i;let n,s=(n="",(i=e).hasAttribute("aria-label")?n=i.getAttribute("aria-label"):i.innerText?n=i.innerText:i.textContent&&(n=i.textContent),n?n.trim():"");return""!==s?this.announce(s,t):{...Promise.resolve(),cancel:j}}getMessage(e="polite"){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error("Unable to find container for message");return t.textContent}clear(){null!==_(this,v)&&(clearTimeout(_(this,v)),F(this,v,null)),_(this,f).clear()}};p=new WeakMap,f=new WeakMap,v=new WeakMap,b=new WeakSet,g=function(){if(_(this,p))return;let e=_(this,f).peek();if(!e)return;null!==_(this,v)&&(clearTimeout(_(this,v)),F(this,v,null));let t=Date.now();if(e.scheduled<=t){(e=_(this,f).pop())&&B(this,E,y).call(this,e),B(this,b,g).call(this);return}let i=e.scheduled-t;F(this,v,window.setTimeout(()=>{F(this,v,null),B(this,b,g).call(this)},i))},E=new WeakSet,y=function(e){F(this,p,!0);let{contents:t,deferred:i,politeness:n}=e,s=this.shadowRoot?.getElementById(n);if(!s)throw F(this,p,!1),Error(`Unable to find container for message. Expected a container with id="${n}"`);s.textContent===t?s.textContent=`${t}\xa0`:s.textContent=t,null!==_(this,v)&&clearTimeout(_(this,v)),i.resolve(),this.delay>0?F(this,v,window.setTimeout(()=>{F(this,v,null),F(this,p,!1),B(this,b,g).call(this)},this.delay)):(F(this,v,null),F(this,p,!1),B(this,b,g).call(this))};let N=null,D=`
`;function $(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?n.Equal:e.scheduled{n=!0};return{...U(G).then(()=>{if(!n){let n=i.announce(e,t);return s=n.cancel,n}}),cancel:()=>{s()}}}return i.announce(e,t)}function K(e,t={}){let i=Y(t.from);if(!i){i=document.createElement("live-region"),t.appendTo?t.appendTo.appendChild(i):H(t.from).appendChild(i);let n=!1,s=()=>{n=!0};return{...U(G).then(()=>{if(!n){let n=i.announceFromElement(e,t);return s=n.cancel,n}}),cancel:()=>{s()}}}return i.announceFromElement(e,t)}function Y(e){let t=null;return null!==(t=e?function(e){let t=e.closest("dialog"),i=e;for(;(i=i.parentElement)&&(!t||t.contains(i));)for(let e of i.childNodes)if(e instanceof LiveRegionElement)return e;return null}(e):null)||null!==(t=H(e).querySelector("live-region"))?t:null}function H(e){let t=document.body;if(e){let i=e.closest("dialog");i&&(t=i)}return t}customElements.get("live-region")||customElements.define("live-region",LiveRegionElement);let G=150;function U(e){return new Promise(t=>{setTimeout(t,e)})}}}]); //# sourceMappingURL=app_components_primer_experimental_select-panel-element_ts-22f815c69588.js.map