"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["app_components_primer_experimental_select-panel-element_ts"],{23682:(e,t,i)=>{i.r(t),i.d(t,{SelectPanelExperimentalElement:()=>SelectPanelExperimentalElement});var n=i(69676),s=i(39595),r=i(7572);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");return!function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=i}}(e,n,i),i}function u(e,t,i){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return i}function d(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}i(59136);let p=['[role="option"]'],f=p.join(","),v=p.map(e=>`:not([hidden]) > ${e}`).join(",");var b=function(e){return e[e.REMOTE=0]="REMOTE",e[e.EVENTUALLY_LOCAL=1]="EVENTUALLY_LOCAL",e[e.LOCAL=2]="LOCAL",e}(b||{}),g=function(e){return e[e.BODY=0]="BODY",e[e.BANNER=1]="BANNER",e}(g||{});let 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,S=new WeakMap,k=new WeakMap,L=new WeakMap,C=new WeakMap,x=new WeakSet,I=new WeakSet,T=new WeakSet,W=new WeakSet,P=new WeakSet,M=new WeakSet,q=new WeakSet,R=new WeakSet,O=new WeakSet,_=new WeakSet,V=new WeakSet,F=new WeakSet,B=new WeakSet,D=new WeakSet,$=new WeakSet,N=new WeakSet,X=new WeakSet,j=new WeakSet,K=new WeakMap,H=new WeakMap,G=new WeakSet,Y=new WeakSet,J=new WeakSet,U=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,k).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}),u(this,Z,eT).call(this),u(this,ee,eW).call(this),u(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(),2===o(this,K)&&u(this,D,ev).call(this))}})),this.dialog)"true"===this.getAttribute("data-open-on-load")&&u(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")&&u(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){u(this,B,ef).call(this,e);return}if(e.target===this.remoteInput){u(this,V,em).call(this,e);return}let t=this.invokerElement?.contains(e.target),i=this.closeButton?.contains(e.target),n=u(this,P,ea).call(this,e);if(t&&"mousedown"===e.type||"mousedown"===e.type&&e.target instanceof HTMLInputElement)return;if("mousedown"===e.type){e.preventDefault();return}if(t&&n){u(this,Y,ek).call(this,e);return}if(i&&n)return;let s=e.target.closest(v)?.parentElement;if(null!=s&&n){if(u(this,T,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)){u(this,J,eL).call(this,e,i);return}}u(this,W,el).call(this,e)&&(e.preventDefault(),u(this,ei,eM).call(this,s)?.click()),u(this,U,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||u(this,Q,eI).call(this)}(e.target===this.includeFragment||"include-fragment-replaced"===e.type)&&u(this,_,ed).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=u(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"),u(this,ei,eM).call(this,e).setAttribute("aria-disabled","true"))}enableItem(e){e&&(e.classList.remove("ActionListItem--disabled"),u(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"===u(this,ei,eM).call(this,e).getAttribute(this.ariaSelectionType)}checkItem(e){e&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&!this.isItemChecked(e)&&u(this,U,eC).call(this,e)}uncheckItem(e){e&&("single"===this.selectVariant||"multiple"===this.selectVariant)&&this.isItemChecked(e)&&u(this,U,eC).call(this,e)}constructor(...e){super(...e),d(this,x),d(this,I),d(this,T),d(this,W),d(this,P),d(this,M),d(this,q),d(this,R),d(this,O),d(this,_),d(this,V),d(this,F),d(this,B),d(this,D),d(this,$),d(this,N),d(this,X),d(this,j),h(this,K,{get:ew,set:void 0}),h(this,H,{get:eA,set:void 0}),d(this,G),d(this,Y),d(this,J),d(this,U),d(this,z),d(this,Q),d(this,Z),d(this,ee),h(this,et,{get:eP,set:void 0}),d(this,ei),h(this,y,{writable:!0,value:void 0}),h(this,w,{writable:!0,value:void 0}),h(this,A,{writable:!0,value:void 0}),h(this,S,{writable:!0,value:void 0}),h(this,k,{writable:!0,value:void 0}),h(this,L,{writable:!0,value:void 0}),h(this,C,{writable:!0,value:void 0}),c(this,A,""),c(this,S,""),c(this,k,new Map),c(this,L,null),c(this,C,null)}};function en(){let{signal:e}=o(this,w);for(let t of this.querySelectorAll(p.join(",")))t.addEventListener("click",u(this,T,er).bind(this),{signal:e}),t.addEventListener("keydown",u(this,T,er).bind(this),{signal:e})}function es(){let e=!1;if("single"===this.selectVariant)for(let t of this.items){let i=u(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=u(this,ei,eM).call(this,t);i&&(this.isItemHidden(t)||e?i.setAttribute("tabindex","-1"):e=!0,t.removeAttribute("tabindex"))}!e&&o(this,et)&&u(this,ei,eM).call(this,o(this,et))?.setAttribute("tabindex","0")}function er(e){if(!u(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||u(this,W,el).call(this,e)}function eo(){for(let e of this.items){let t=e.getAttribute("data-value");t&&o(this,k).has(t)&&e.setAttribute(this.ariaSelectionType,"true")}u(this,ee,eW).call(this)}function eh(e){let t=e.querySelector("button"),i=e.getAttribute("data-value");i&&o(this,k).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,k).delete(t)}function eu(){o(this,L)&&clearTimeout(o(this,L)),o(this,C)&&clearTimeout(o(this,C)),c(this,C,setTimeout(()=>{(0,r.i)("Loading",{element:this.ariaLiveContainer})},2e3)),c(this,L,setTimeout(()=>{o(this,H).showLeadingSpinner()},1e3))}function ed(e){switch(e.type){case"include-fragment-replaced":u(this,D,ev).call(this);break;case"error":{let e=this.fragmentErrorElement;if(e&&!e.hasAttribute("hidden")){(0,r.C)(e,{element:this.ariaLiveContainer,assertive:!0});return}}}}function em(e){switch(e.type){case"remote-input-success":u(this,X,eE).call(this),u(this,D,ev).call(this),u(this,M,eo).call(this);break;case"remote-input-error":this.bodySpinner?.setAttribute("hidden",""),this.includeFragment||0===this.visibleItems.length?u(this,N,eg).call(this,0):u(this,N,eg).call(this,1);break;case"loadstart":if(!u(this,G,eS).call(this)){if(u(this,X,eE).call(this),this.bodySpinner?.removeAttribute("hidden"),this.bodySpinner)break;u(this,O,eu).call(this)}break;case"loadend":o(this,H).hideLeadingSpinner(),o(this,C)&&clearTimeout(o(this,C)),o(this,L)&&clearTimeout(o(this,L))}}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||u(this,G,eS).call(this)||u(this,O,eu).call(this),2===o(this,K)||1===o(this,K))){if(this.includeFragment){this.includeFragment.refetch();return}u(this,D,ev).call(this)}}function ev(){if(!this.list)return;let e=!1;if(u(this,G,eS).call(this)){let t=this.filterInputTextField?.value??"",i=this.filterFn||u(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(u(this,I,es).call(this),u(this,j,ey).call(this),this.items)){let t=e.getAttribute("data-value");t&&!o(this,k).has(t)&&this.isItemChecked(e)&&u(this,q,eh).call(this,e)}if(this.noResults){if(u(this,$,eb).call(this)){this.noResults.setAttribute("hidden","");return}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(0===e?(this.fragmentErrorElement?.removeAttribute("hidden"),this.errorBannerElement.setAttribute("hidden","")):(t=this.errorBannerElement,this.errorBannerElement?.removeAttribute("hidden"),this.fragmentErrorElement?.setAttribute("hidden","")),t&&!t.hasAttribute("hidden")){(0,r.C)(t,{element:this.ariaLiveContainer,assertive:!0});return}}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 0;switch(this.list.getAttribute("data-fetch-strategy")){case"local":return 2;case"eventually_local":return 1;default:return 0}}function eA(){return this.filterInputTextField.closest("primer-text-field")}function eS(){return 2===o(this,K)||1===o(this,K)}function ek(e){e.preventDefault(),e.stopPropagation(),this.open?u(this,Q,eI).call(this):u(this,z,ex).call(this)}function eL(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&&u(this,Q,eI).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&&u(this,Q,eI).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=u(this,ei,eM).call(this,e);if("single"===this.selectVariant){for(let n of(t&&(u(this,q,eh).call(this,e),i?.setAttribute(this.ariaSelectionType,"true")),this.querySelectorAll(`[${this.ariaSelectionType}]`)))n!==i&&(u(this,R,ec).call(this,n),n.setAttribute(this.ariaSelectionType,"false"));u(this,Z,eT).call(this)}else i?.setAttribute(this.ariaSelectionType,`${t}`),t?u(this,q,eh).call(this,e):u(this,R,ec).call(this,e);u(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 eI(){this.dialog.close(),this.dispatchEvent(new CustomEvent("panelClosed",{detail:{panel:this},bubbles:!0}))}function eT(){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,S,o(this,S)||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,S),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))},7572:(e,t,i)=>{i.d(t,{C:()=>l,i:()=>a});var n=i(97156),s=i(97564),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,{interrupt:t?.assertive?"all":"none"}):(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()}},27756:(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)}}}()},97564:(e,t,i)=>{i.d(t,{G7:()=>o,XY:()=>h,fQ:()=>a});var n=i(5225),s=i(27756);function r(){return new Set((0,s._$)().featureFlags.map(e=>e.toLowerCase()))}let l=i(97156).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.toLowerCase())}let h={isFeatureEnabled:o}},97156:(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(15572),s=i(86733)},86733:(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},15572:(e,t,i)=>{i.d(t,{KJ:()=>r,X3:()=>s,g5:()=>l});var n=i(86733);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:()=>j});let n={Less:"less",Equal:"equal",Greater:"greater"};var s,r,l,a,o,h,c,u,d,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)),S=(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)},k=(e,t,i,n)=>(w(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),L=(e,t,i)=>(w(e,t,"access private method"),i);let MinHeap=class MinHeap{constructor({compareFn:e}){S(this,l),S(this,o),S(this,s,void 0),S(this,r,void 0),k(this,s,e),k(this,r,[])}insert(e){A(this,r).push(e),L(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()),L(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(),L(this,l,a).call(this))}clear(){k(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)[e],A(this,r)[C(e)])===n.Less;)x(A(this,r),e,C(e)),e=C(e)};var I=Object.defineProperty,T=(e,t,i)=>t in e?I(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,W=(e,t,i)=>(T(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)),q=(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"),q(this,u,void 0),q(this,d,void 0),q(this,m,void 0),R(this,u,new Promise((e,t)=>{R(this,d,e),R(this,m,t)}))}then(e,t){return Promise.prototype.then.apply(M(this,u),[e,t])}catch(e){return Promise.prototype.catch.apply(M(this,u),[e])}finally(e){return Promise.prototype.finally.apply(M(this,u),[e])}resolve(e){M(this,d).call(this,e)}reject(e){M(this,m).call(this,e)}getPromise(){return M(this,u)}};c=Symbol.toStringTag,u=new WeakMap,d=new WeakMap,m=new WeakMap;var O=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},_=(e,t,i)=>(O(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)=>(O(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i),B=(e,t,i)=>(O(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=(D||((D=document.createElement("template")).innerHTML=$),D);this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}F(this,p,!1),F(this,v,null),F(this,f,new MinHeap({compareFn:N}))}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){let i;let n=(i="",e.hasAttribute("aria-label")?i=e.getAttribute("aria-label"):e.innerText?i=e.innerText:e.textContent&&(i=e.textContent),i?i.trim():"");return""!==n?this.announce(n,t):{...Promise.resolve(),cancel:X}}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 D=null,$=`
`;function N(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?n.Equal:e.scheduled{n=!0};return{...J(Y).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=H(t.from);if(!i){i=document.createElement("live-region"),t.appendTo?t.appendTo.appendChild(i):G(t.from).appendChild(i);let n=!1,s=()=>{n=!0};return{...J(Y).then(()=>{if(!n){let n=i.announceFromElement(e,t);return s=n.cancel,n}}),cancel:()=>{s()}}}return i.announceFromElement(e,t)}function H(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=G(e).querySelector("live-region"))?t:null}function G(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 Y=150;function J(e){return new Promise(t=>{setTimeout(t,e)})}}}]); //# sourceMappingURL=app_components_primer_experimental_select-panel-element_ts-fbc0d6231e13.js.map