/*! For license information please see main.34443982.js.LICENSE.txt */ (()=>{"use strict";var e=Object.defineProperty,t=e=>{throw TypeError(e)},r=(t,r,n)=>((t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n)(t,"symbol"!=typeof r?r+"":r,n),n=(e,r,n)=>r.has(e)||t("Cannot "+n),o=(e,t,r)=>(n(e,t,"read from private field"),r?r.call(e):t.get(e)),i=(e,r,n)=>r.has(e)?t("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,n),a=(e,t,r,o)=>(n(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r),s=(e,t,r)=>(n(e,t,"access private method"),r);if(typeof globalThis.window<"u"){let e=!1;document.addEventListener("submit",(t=>{if(e)return void(e=!1);let r=t.target;if(r&&"dialog"===r.method){let n=r.closest("el-dialog");if(!n||!("beforeClose"in n))return;let o=n.beforeClose();if(!0===o||(t.preventDefault(),t.stopImmediatePropagation(),!1===o))return;o.then((n=>{n&&(e=!0,r.dispatchEvent(t))})).catch(console.error)}}),!0)}var l=class extends Event{constructor(e,{oldState:t="",newState:n="",...o}={}){super(e,o),r(this,"oldState"),r(this,"newState"),this.oldState=String(t||""),this.newState=String(n||"")}},c=new WeakMap;function u(e,t,r){c.set(e,setTimeout((()=>{c.has(e)&&e.dispatchEvent(new l("toggle",{cancelable:!1,oldState:t,newState:r}))}),0))}var d=globalThis.ShadowRoot||function(){},p=globalThis.HTMLDialogElement||function(){},h=new WeakMap,E=new WeakMap,f=new WeakMap,m=new WeakMap;function A(e){return m.get(e)||"hidden"}var T=new WeakMap;function g(e){return[...e].pop()}function b(e,t){return!("auto"!==e.popover&&"manual"!==e.popover&&"hint"!==e.popover||!e.isConnected||t&&"showing"!==A(e)||!t&&"hidden"!==A(e)||e instanceof p&&e.hasAttribute("open")||document.fullscreenElement===e)}function v(e){if(!e)return 0;let t=E.get(document)||new Set,r=f.get(document)||new Set;return r.has(e)?[...r].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function w(e){let t,r=f.get(e)||new Set,n=E.get(e)||new Set,o=r.size>0?r:n.size>0?n:null;return o?(t=g(o),t.isConnected?t:(o.delete(t),w(e))):null}function S(e){for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function I(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?I(e.parentNode):e}function y(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===m.get(e))return e;if((e=e instanceof Element&&e.assignedSlot||e.parentElement||I(e))instanceof d&&(e=e.host),e instanceof Document)return}}function R(e,t){let r=new Map,n=0;for(let e of t||[])r.set(e,n),n+=1;r.set(e,n),n+=1;let o=null;return function(t){if(!t)return;let n=!1,i=null,a=null;for(;!n;){if(i=y(t)||null,null===i||!r.has(i))return;("hint"===e.popover||"auto"===i.popover)&&(n=!0),n||(t=i.parentElement)}a=r.get(i),(null===o||r.get(o)v(r)?t:r}(t);if(n&&"pointerdown"===e.type)P.set(r,n);else if("pointerup"===e.type){let e=P.get(r)===n;P.delete(r),e&&M(n||r,!1,!0)}}var x=new WeakMap;function H(e,t=!1){if(!e)return;x.has(e)||x.set(e,e.getAttribute("aria-expanded"));let r=e.popoverTargetElement;if(r instanceof HTMLElement&&"auto"===r.popover)e.setAttribute("aria-expanded",String(t));else{let t=x.get(e);t?e.setAttribute("aria-expanded",t):e.removeAttribute("aria-expanded")}}var k=globalThis.ShadowRoot||function(){};function U(e,t,r){let n=e[t];Object.defineProperty(e,t,{value(e){return n.call(this,r(e))}})}var F=/(^|[^\\]):popover-open\b/g;var G=null;function q(e){let t=function(){let e="function"==typeof globalThis.CSSLayerBlockRule;return`\n${e?"@layer popover-polyfill {":""}\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n\n :where(dialog[popover].\\:popover-open) {\n display: block;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n${e?"}":""}\n`}();if(null===G)try{(G=new CSSStyleSheet).replaceSync(t)}catch{G=!1}if(!1===G){let r=document.createElement("style");r.textContent=t,e instanceof Document?e.head.prepend(r):e.prepend(r)}else e.adoptedStyleSheets=[G,...e.adoptedStyleSheets]}function Y(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function W(e){"focus"in e&&e.focus({focusVisible:V})}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){if(typeof window>"u")return;function e(e){return e?.includes(":popover-open")&&(e=e.replace(F,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||l,U(Document.prototype,"querySelector",e),U(Document.prototype,"querySelectorAll",e),U(Element.prototype,"querySelector",e),U(Element.prototype,"querySelectorAll",e),U(Element.prototype,"matches",e),U(Element.prototype,"closest",e),U(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let e=(this.getAttribute("popover")||"").toLowerCase();return""===e||"auto"==e?"auto":"hint"==e?"hint":"manual"},set(e){null===e?this.removeAttribute("popover"):this.setAttribute("popover",e)}},showPopover:{enumerable:!0,configurable:!0,value(e={}){L(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){C(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e={}){return"boolean"==typeof e&&(e={force:e}),"showing"===m.get(this)&&void 0===e.force||!1===e.force?C(this,!0,!0):(void 0===e.force||!0===e.force)&&L(this),"showing"===m.get(this)}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){let r=t.call(this,e);return q(r),r}}});let r=HTMLElement.prototype.attachInternals;r&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let e=r.call(this);return e.shadowRoot&&q(e.shadowRoot),e}}});let n=new WeakMap;function o(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),n.delete(this);else{if(!(e instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),n.set(this,e)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let e=n.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return n.delete(this),null;let t=I(this),r=this.getAttribute("popovertarget");return(t instanceof Document||t instanceof k)&&r&&t.getElementById(r)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let e=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===e||"hide"===e?e:"toggle"},set(e){this.setAttribute("popovertargetaction",e)}}})}o(HTMLButtonElement),o(HTMLInputElement);var i;(i=document).addEventListener("click",(e=>{let t=e.composedPath(),r=t[0];if(!(r instanceof Element)||r?.shadowRoot)return;let n=I(r);if(!(n instanceof k||n instanceof Document))return;let o=t.find((e=>e.matches?.("[popovertargetaction],[popovertarget]")));return o?(function(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let r=A(t);"show"===e.popoverTargetAction&&"showing"===r||"hide"===e.popoverTargetAction&&"hidden"===r||("showing"===r?C(t,!0,!0):b(t,!1)&&(T.set(t,e),L(t)))}(o),void e.preventDefault()):void 0})),i.addEventListener("keydown",(e=>{let t=e.key,r=e.target;!e.defaultPrevented&&r&&("Escape"===t||"Esc"===t)&&M(r.ownerDocument,!0,!0)})),i.addEventListener("pointerdown",B),i.addEventListener("pointerup",B),q(document)}(),typeof globalThis.window<"u"&&(typeof HTMLButtonElement<"u"&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})||function(){function e(e,t,r=!0){Object.defineProperty(e,t,{...Object.getOwnPropertyDescriptor(e,t),enumerable:r})}function t(e){return e&&"function"==typeof e.getRootNode?e.getRootNode():e&&e.parentNode?t(e.parentNode):e}document.addEventListener("invoke",(e=>{"invoke"==e.type&&e.isTrusted&&(e.stopImmediatePropagation(),e.preventDefault())}),!0),document.addEventListener("command",(e=>{"command"==e.type&&e.isTrusted&&(e.stopImmediatePropagation(),e.preventDefault())}),!0);let r=new WeakMap,n=new WeakMap;class o extends Event{constructor(e,t={}){super(e,t);let{source:o,command:i}=t;if(null!=o&&!(o instanceof Element))throw new TypeError("source must be an element");r.set(this,o||null),n.set(this,void 0!==i?String(i):"")}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!r.has(this))throw new TypeError("illegal invocation");let e=r.get(this);if(!(e instanceof Element))return null;let n=t(e);return n!==t(this.target||document)?n.host:e}get command(){if(!n.has(this))throw new TypeError("illegal invocation");return n.get(this)}get action(){throw new Error("CommandEvent#action was renamed to CommandEvent#command")}get invoker(){throw new Error("CommandEvent#invoker was renamed to CommandEvent#source")}}e(o.prototype,"source"),e(o.prototype,"command");class i extends Event{constructor(){throw new Error("InvokeEvent has been deprecated, it has been renamed to `CommandEvent`")}}let a=new WeakMap,s=new WeakMap;function l(e){for(let t of e)t.oncommand=new Function("event",t.getAttribute("oncommand"))}Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return c.takeRecords(),s.get(this)||null},set(e){let t=s.get(this)||null;t&&this.removeEventListener("command",t),s.set(this,"object"==typeof e||"function"==typeof e?e:null),"function"==typeof e&&this.addEventListener("command",e)}}});let c=new MutationObserver((e=>{for(let t of e){let{target:e}=t;"childList"===t.type?l(e.querySelectorAll("[oncommand]")):l([e])}}));function u(e){if(e.defaultPrevented||"click"!==e.type)return;let t=e.target.closest("button[invoketarget], button[invokeaction], input[invoketarget], input[invokeaction]");if(t&&(console.warn("Elements with `invoketarget` or `invokeaction` are deprecated and should be renamed to use `commandfor` and `command` respectively"),t.matches("input")))throw new Error("Input elements no longer support `commandfor`");let r=e.target.closest("button[commandfor], button[command]");if(!r)return;if(r.form&&"button"!==r.getAttribute("type"))throw e.preventDefault(),new Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(r.hasAttribute("command")!==r.hasAttribute("commandfor")){let e=r.hasAttribute("command")?"command":"commandfor",t=r.hasAttribute("command")?"commandfor":"command";throw new Error(`Element with ${e} attribute must also have a ${t} attribute to function.`)}if("show-popover"!==r.command&&"hide-popover"!==r.command&&"toggle-popover"!==r.command&&"show-modal"!==r.command&&"close"!==r.command&&!r.command.startsWith("--"))return void console.warn(`"${r.command}" is not a valid command value. Custom commands must begin with --`);let n=r.commandForElement;if(!n)return;let i=new o("command",{command:r.command,source:r,cancelable:!0});if(n.dispatchEvent(i),i.defaultPrevented)return;let a=i.command.toLowerCase();if(n.popover){let e=!n.matches(":popover-open");!e||"toggle-popover"!==a&&"show-popover"!==a?!e&&"hide-popover"===a&&n.hidePopover():n.showPopover({source:r})}else if("dialog"===n.localName){let e=!n.hasAttribute("open");e&&"show-modal"===a?n.showModal():!e&&"close"===a&&n.close()}}function d(e){e.addEventListener("click",u,!0)}var p;c.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),l(document.querySelectorAll("[oncommand]")),p=HTMLButtonElement,Object.defineProperties(p.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(e){if(this.hasAttribute("invokeaction"))throw new TypeError("Element has deprecated `invokeaction` attribute, replace with `command`");if(this.hasAttribute("invoketarget"))throw new TypeError("Element has deprecated `invoketarget` attribute, replace with `commandfor`");if(null===e)this.removeAttribute("commandfor"),a.delete(this);else{if(!(e instanceof Element))throw new TypeError("commandForElement must be an element or null");{this.setAttribute("commandfor","");let r=t(e);t(this)===r||r===this.ownerDocument?a.set(this,e):a.delete(this)}}},get(){if("button"!==this.localName)return null;if(this.hasAttribute("invokeaction")||this.hasAttribute("invoketarget"))return console.warn("Element has deprecated `invoketarget` or `invokeaction` attribute, use `commandfor` and `command` instead"),null;if(this.disabled)return null;if(this.form&&"button"!==this.getAttribute("type"))return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;let e=a.get(this);if(e)return e.isConnected?e:(a.delete(this),null);let r=t(this),n=this.getAttribute("commandfor");return(r instanceof Document||r instanceof ShadowRoot)&&n&&r.getElementById(n)||null}},command:{enumerable:!0,configurable:!0,get(){let e=this.getAttribute("command")||"";if(e.startsWith("--"))return e;let t=e.toLowerCase();switch(t){case"show-modal":case"close":case"toggle-popover":case"hide-popover":case"show-popover":return t}return""},set(e){this.setAttribute("command",e)}},invokeAction:{enumerable:!1,configurable:!0,get(){throw new Error("invokeAction is deprecated. It has been renamed to command")},set(e){throw new Error("invokeAction is deprecated. It has been renamed to command")}},invokeTargetElement:{enumerable:!1,configurable:!0,get(){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")},set(e){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")}}}),function(e,t){let r=e.prototype.attachShadow;e.prototype.attachShadow=function(e){let n=r.call(this,e);return t(n),n};let n=e.prototype.attachInternals;e.prototype.attachInternals=function(){let e=n.call(this);return e.shadowRoot&&t(e.shadowRoot),e}}(HTMLElement,(e=>{d(e),c.observe(e,{attributeFilter:["oncommand"]}),l(e.querySelectorAll("[oncommand]"))})),d(document),Object.assign(globalThis,{CommandEvent:o,InvokeEvent:i})}(),function(){if("function"!=typeof HTMLDialogElement)return!1;let e=!1,t=document.createElement("dialog");return t.addEventListener("beforetoggle",(t=>{e=!0,t.preventDefault()})),t.show(),e}()||function(){let e=new WeakMap;function t(t){let r=t.open?"closed":"open",n=t.open?"open":"closed";if(e.has(t)){let r=e.get(t);n=r.oldState,clearTimeout(r.id)}e.set(t,{oldState:n,id:setTimeout((()=>{t.dispatchEvent(new ToggleEvent("toggle",{newState:r,oldState:n}))}))})}let r=HTMLDialogElement.prototype.show,n=HTMLDialogElement.prototype.showModal,o=HTMLDialogElement.prototype.close;function i(e){let r=new ToggleEvent("beforetoggle",{newState:"closed",oldState:"open",cancelable:!1});e.dispatchEvent(r),e.open&&t(e)}document.addEventListener("submit",(e=>{let t=e.target;if("dialog"===t.method){let e=t.closest("dialog");e instanceof HTMLDialogElement&&i(e)}}),!0),Object.defineProperties(HTMLDialogElement.prototype,{show:{value(){if(this.open||this.matches(":popover-open, :modal")||!this.ownerDocument)return r.apply(this,arguments);let e=new ToggleEvent("beforetoggle",{newState:"open",oldState:"closed",cancelable:!0});this.dispatchEvent(e)&&(t(this),r.apply(this,arguments))}},showModal:{value(){if(this.open||this.matches(":popover-open, :modal")||!this.isConnected||!this.ownerDocument)return n.apply(this,arguments);let e=new ToggleEvent("beforetoggle",{newState:"open",oldState:"closed",cancelable:!0});return this.dispatchEvent(e)?(t(this),n.apply(this,arguments)):void 0}},close:{value(){return this.open||this.matches(":popover-open, :modal")?(i(this),o.apply(this,arguments)):o.apply(this,arguments)}}})}(),Y((()=>{let e=document.createElement("style");e.textContent="@layer popover-polyfill;",e.setAttribute("suppressHydrationWarning",""),document.documentElement.prepend(e)})));var K,V=!1;if(typeof globalThis.window<"u"){let e;(K=e||(e={}))[K.Keyboard=0]="Keyboard",K[K.Mouse=1]="Mouse",document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(V=!0,document.documentElement.dataset.focusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?(V=!1,delete document.documentElement.dataset.focusVisible):0===e.detail&&(V=!0,document.documentElement.dataset.focusVisible="")}),!0)}typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{});var X,Q,j,$=class extends HTMLElement{constructor(){super(...arguments),i(this,X,new AbortController),i(this,Q,!1),i(this,j,!1)}connectedCallback(){if("observedAttributes"in this.constructor&&"object"==typeof this.constructor.observedAttributes&&Array.isArray(this.constructor.observedAttributes))for(let e of this.constructor.observedAttributes)"string"==typeof e&&(e in this||Object.defineProperty(this,e,{get(){return this.getAttribute(e)},set(t){null!=t&&!1!==t?this.setAttribute(e,t.toString()):this.removeAttribute(e)}}));a(this,Q,!0),queueMicrotask((()=>{if(!o(this,X).signal.aborted)try{this.mount?.(o(this,X).signal)}catch(e){console.error(e)}}))}disconnectedCallback(){o(this,X).abort(),a(this,X,new AbortController)}setAttributeNoCallbacks(e,t){try{a(this,j,!0),this.setAttribute(e,t)}finally{a(this,j,!1)}}removeAttributeNoCallbacks(e){try{a(this,j,!0),this.removeAttribute(e)}finally{a(this,j,!1)}}attributeChangedCallback(e,t,r){o(this,Q)&&(o(this,j)||t!==r&&this.onAttributeChange?.(e,t,r))}};function z(e,t){typeof globalThis.customElements>"u"||customElements.get(e)===t||customElements.define(e,t)}function J(){let e=[],t={addEventListener:(e,r,n,o)=>(e.addEventListener(r,n,o),t.add((()=>e.removeEventListener(r,n,o)))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(r)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let r=setTimeout(...e);return t.add((()=>clearTimeout(r)))},microTask(...e){let r={current:!0};return queueMicrotask((()=>{r.current&&e[0]()})),t.add((()=>{r.current=!1}))},style(e,t,r){let n=e.style.getPropertyValue(t);return t.startsWith("--")?e.style.setProperty(t,r):Object.assign(e.style,{[t]:r}),this.add((()=>{t.startsWith("--")?e.style.setProperty(t,n):Object.assign(e.style,{[t]:n})}))},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Z(e,t=()=>[]){let r=!1,n=null,o=J();return{start(i,a){let s=[e,...t()];r=!r&&null!==n&&n!==i,n=i;for(let e of s)ee(e,(()=>{r||("in"===i?(e.dataset.transition="",e.dataset.enter="",e.dataset.closed="",delete e.dataset.leave):"out"===i&&(e.dataset.transition="",e.dataset.leave="",delete e.dataset.enter))}),null!==n);o.nextFrame((()=>{for(let e of s)r?"in"===i?(delete e.dataset.enter,delete e.dataset.closed,e.dataset.leave=""):"out"===i&&(delete e.dataset.leave,e.dataset.enter="",e.dataset.closed=""):"in"===i?delete e.dataset.closed:"out"===i&&(e.dataset.closed="");o.requestAnimationFrame((()=>{o.add(function(e,t){let r=J();if(!e)return r.dispose;let n=!1;r.add((()=>{n=!0}));let o=e.getAnimations?.({subtree:!0}).filter((e=>e instanceof CSSTransition))??[];return 0===o.length?(t(),r.dispose):(Promise.allSettled(o.map((e=>e.finished))).then((()=>{n||t()})),r.dispose)}(e,(()=>{if(!(r&&"function"==typeof e.getAnimations&&e.getAnimations({subtree:!0}).length>0)){for(let e of s)delete e.dataset.transition,delete e.dataset.enter,delete e.dataset.closed,delete e.dataset.leave;n=null,a?.()}})))}))}))},abort(){o.dispose(),r=!1,n=null}}}function ee(e,t,r=!1){if(r)return void t();let n=e.style.transition;e.style.transition="none",t(),e.offsetHeight,e.style.transition=n}X=new WeakMap,Q=new WeakMap,j=new WeakMap;var te=Math.min,re=Math.max,ne=Math.round,oe=Math.floor,ie=e=>({x:e,y:e}),ae={left:"right",right:"left",bottom:"top",top:"bottom"},se={start:"end",end:"start"};function le(e,t,r){return re(e,te(t,r))}function ce(e,t){return"function"==typeof e?e(t):e}function ue(e){return e.split("-")[0]}function de(e){return e.split("-")[1]}function pe(e){return"x"===e?"y":"x"}function he(e){return"y"===e?"height":"width"}function Ee(e){return["top","bottom"].includes(ue(e))?"y":"x"}function fe(e){return pe(Ee(e))}function me(e){return e.replace(/start|end/g,(e=>se[e]))}function Ae(e){return e.replace(/left|right|bottom|top/g,(e=>ae[e]))}function Te(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ge(e,t,r){let n,{reference:o,floating:i}=e,a=Ee(t),s=fe(t),l=he(s),c=ue(t),u="y"===a,d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2;switch(c){case"top":n={x:d,y:o.y-i.height};break;case"bottom":n={x:d,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:p};break;case"left":n={x:o.x-i.width,y:p};break;default:n={x:o.x,y:o.y}}switch(de(t)){case"start":n[s]-=h*(r&&u?-1:1);break;case"end":n[s]+=h*(r&&u?-1:1)}return n}async function be(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=ce(t,e),E=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(h),f=s[p?"floating"===d?"reference":"floating":d],m=Te(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(f)))||r?f:f.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),A="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,T=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),g=await(null==i.isElement?void 0:i.isElement(T))&&await(null==i.getScale?void 0:i.getScale(T))||{x:1,y:1},b=Te(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:A,offsetParent:T,strategy:l}):A);return{top:(m.top-b.top+E.top)/g.y,bottom:(b.bottom-m.bottom+E.bottom)/g.y,left:(m.left-b.left+E.left)/g.x,right:(b.right-m.right+E.right)/g.x}}function ve(){return typeof window<"u"}function we(e){return ye(e)?(e.nodeName||"").toLowerCase():"#document"}function Se(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ie(e){var t;return null==(t=(ye(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ye(e){return!!ve()&&(e instanceof Node||e instanceof Se(e).Node)}function Re(e){return!!ve()&&(e instanceof Element||e instanceof Se(e).Element)}function De(e){return!!ve()&&(e instanceof HTMLElement||e instanceof Se(e).HTMLElement)}function Ne(e){return!(!ve()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Se(e).ShadowRoot)}function Le(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=Be(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Ce(e){return["table","td","th"].includes(we(e))}function _e(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function Oe(e){let t=Me(),r=Re(e)?Be(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Me(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Pe(e){return["html","body","#document"].includes(we(e))}function Be(e){return Se(e).getComputedStyle(e)}function xe(e){return Re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function He(e){if("html"===we(e))return e;let t=e.assignedSlot||e.parentNode||Ne(e)&&e.host||Ie(e);return Ne(t)?t.host:t}function ke(e){let t=He(e);return Pe(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&Le(t)?t:ke(t)}function Ue(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=ke(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Se(o);if(i){let e=Fe(a);return t.concat(a,a.visualViewport||[],Le(o)?o:[],e&&r?Ue(e):[])}return t.concat(o,Ue(o,[],r))}function Fe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ge(e){let t=Be(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=De(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=ne(r)!==i||ne(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function qe(e){return Re(e)?e:e.contextElement}function Ye(e){let t=qe(e);if(!De(t))return ie(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Ge(t),a=(i?ne(r.width):r.width)/n,s=(i?ne(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}var We=ie(0);function Ke(e){let t=Se(e);return Me()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:We}function Ve(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),i=qe(e),a=ie(1);t&&(n?Re(n)&&(a=Ye(n)):a=Ye(e));let s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Se(e))&&t}(i,r,n)?Ke(i):ie(0),l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){let e=Se(i),t=n&&Re(n)?Se(n):n,r=e,o=Fe(r);for(;o&&n&&t!==r;){let e=Ye(o),t=o.getBoundingClientRect(),n=Be(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=Se(o),o=Fe(r)}}return Te({width:u,height:d,x:l,y:c})}function Xe(e,t){let r=xe(e).scrollLeft;return t?t.left+r:Ve(Ie(e)).left+r}function Qe(e,t,r){void 0===r&&(r=!1);let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Xe(e,n)),y:n.top+t.scrollTop}}function je(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=Se(e),n=Ie(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;let e=Me();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=Ie(e),r=xe(e),n=e.ownerDocument.body,o=re(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=re(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-r.scrollLeft+Xe(e),s=-r.scrollTop;return"rtl"===Be(n).direction&&(a+=re(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Ie(e));else if(Re(t))n=function(e,t){let r=Ve(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=De(e)?Ye(e):ie(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{let r=Ke(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Te(n)}function $e(e,t){let r=He(e);return!(r===t||!Re(r)||Pe(r))&&("fixed"===Be(r).position||$e(r,t))}function ze(e,t){let r=t.get(e);if(r)return r;let n=Ue(e,[],!1).filter((e=>Re(e)&&"body"!==we(e))),o=null,i="fixed"===Be(e).position,a=i?He(e):e;for(;Re(a)&&!Pe(a);){let t=Be(a),r=Oe(a);!r&&"fixed"===t.position&&(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Le(a)&&!r&&$e(e,a))?n=n.filter((e=>e!==a)):o=t,a=He(a)}return t.set(e,n),n}function Je(e,t,r){let n=De(t),o=Ie(t),i="fixed"===r,a=Ve(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=ie(0);function c(){l.x=Xe(o)}if(n||!n&&!i)if(("body"!==we(t)||Le(o))&&(s=xe(t)),n){let e=Ve(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();let u=!o||n||i?ie(0):Qe(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Ze(e){return"static"===Be(e).position}function et(e,t){if(!De(e)||"fixed"===Be(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Ie(e)===r&&(r=r.ownerDocument.body),r}function tt(e,t){let r=Se(e);if(_e(e))return r;if(!De(e)){let t=He(e);for(;t&&!Pe(t);){if(Re(t)&&!Ze(t))return t;t=He(t)}return r}let n=et(e,t);for(;n&&Ce(n)&&Ze(n);)n=et(n,t);return n&&Pe(n)&&Ze(n)&&!Oe(n)?r:n||function(e){let t=He(e);for(;De(t)&&!Pe(t);){if(Oe(t))return t;if(_e(t))return null;t=He(t)}return null}(e)||r}var rt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,a=Ie(n),s=!!t&&_e(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ie(1),u=ie(0),d=De(n);if((d||!d&&!i)&&(("body"!==we(n)||Le(a))&&(l=xe(n)),De(n))){let e=Ve(n);c=Ye(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}let p=!a||d||i?ie(0):Qe(a,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:Ie,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,i=[..."clippingAncestors"===r?_e(t)?[]:ze(t,this._c):[].concat(r),n],a=i[0],s=i.reduce(((e,r)=>{let n=je(t,r,o);return e.top=re(n.top,e.top),e.right=te(n.right,e.right),e.bottom=te(n.bottom,e.bottom),e.left=re(n.left,e.left),e}),je(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:tt,getElementRects:async function(e){let t=this.getOffsetParent||tt,r=this.getDimensions,n=await r(e.floating);return{reference:Je(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=Ge(e);return{width:t,height:r}},getScale:Ye,isElement:Re,isRTL:function(e){return"rtl"===Be(e).direction}};function nt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var ot=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=ce(e,t),c={x:r,y:n},u=await be(t,l),d=Ee(ue(o)),p=pe(d),h=c[p],E=c[d];if(i){let e="y"===p?"bottom":"right";h=le(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){let e="y"===d?"bottom":"right";E=le(E+u["y"===d?"top":"left"],E,E-u[e])}let f=s.fn({...t,[p]:h,[d]:E});return{...f,data:{x:f.x-r,y:f.y-n,enabled:{[p]:i,[d]:a}}}}}},it=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:f=!0,...m}=ce(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};let A=ue(o),T=Ee(s),g=ue(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),v=p||(g||!f?[Ae(s)]:function(e){let t=Ae(e);return[me(e),t,me(t)]}(s)),w="none"!==E;!p&&w&&v.push(...function(e,t,r,n){let o=de(e),i=function(e,t,r){let n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}(ue(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(me)))),i}(s,f,E,b));let S=[s,...v],I=await be(t,m),y=[],R=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&y.push(I[A]),d){let e=function(e,t,r){void 0===r&&(r=!1);let n=de(e),o=fe(e),i=he(o),a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ae(a)),[a,Ae(a)]}(o,a,b);y.push(I[e[0]],I[e[1]])}if(R=[...R,{placement:o,overflows:y}],!y.every((e=>e<=0))){var D,N;let e=((null==(D=i.flip)?void 0:D.index)||0)+1,t=S[e];if(t&&("alignment"!==d||T===Ee(t)||R.every((e=>e.overflows[0]>0&&Ee(e.placement)===T))))return{data:{index:e,overflows:R},reset:{placement:t}};let r=null==(N=R.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:N.placement;if(!r)switch(h){case"bestFit":{var L;let e=null==(L=R.filter((e=>{if(w){let t=Ee(e.placement);return t===T||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},at=(e,t,r)=>{let n=new Map,o={platform:rt,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ge(c,n,l),p=n,h={},E=0;for(let r=0;r{};return function(n){if(r(),!n)return;let o=t();if(!o||!e.hasAttribute("anchor"))return;let i=e.getAttribute("anchor"),a=e.getAttribute("anchor-strategy")||"absolute";"absolute"!==a&&"fixed"!==a&&(console.warn(`[createAnchorUpdater] Invalid anchor strategy "${a}" for element:`,e),a="absolute"),r=function(e,t,r,n){void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=qe(e),u=o||i?[...c?Ue(c):[],...Ue(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));let d=c&&s?function(e,t){let r,n=null,o=Ie(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();let c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:h}=c;if(s||t(),!p||!h)return;let E={rootMargin:-oe(d)+"px "+-oe(o.clientWidth-(u+p))+"px "+-oe(o.clientHeight-(d+h))+"px "+-oe(u)+"px",threshold:re(0,te(1,l))||1},f=!0;function m(t){let n=t[0].intersectionRatio;if(n!==l){if(!f)return a();n?a(!1,n):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}1===n&&!nt(c,e.getBoundingClientRect())&&a(),f=!1}try{n=new IntersectionObserver(m,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(m,E)}n.observe(e)}(!0),i}(c,r):null,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),r()})),c&&!l&&h.observe(c),h.observe(t));let E,f=l?Ve(e):null;return l&&function t(){let n=Ve(e);f&&!nt(f,n)&&r(),f=n,E=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),d?.(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(E)}}(o,e,(()=>{let t=ct(window.getComputedStyle(e).getPropertyValue("--anchor-gap"),e),r=ct(window.getComputedStyle(e).getPropertyValue("--anchor-offset"),e),n={};switch(i.split(" ")[0]){case"top":case"bottom":n={top:t+st,left:-1*r+st,right:r+st,bottom:t+st};break;case"left":case"right":n={top:-1*r+st,bottom:r+st,left:t+st,right:t+st}}at(o,e,{strategy:a,placement:i.replace(" ","-"),middleware:[it({padding:n}),ot({padding:n})]}).then((({x:t,y:r,placement:n})=>{if(!("showPopover"in HTMLElement.prototype&&HTMLElement.prototype.showPopover.toString().includes("[native code]")||"absolute"!==a)){let n=null;for(let t=e.parentElement;t;t=t.parentElement){let e=getComputedStyle(t).position;if("relative"===e||"absolute"===e||"fixed"===e||"sticky"===e){n=t;break}}if(n){let e=n.getBoundingClientRect();t-=e.left+window.scrollX,r-=e.top+window.scrollY}}let o=`${t}px`,i=`${r}px`;switch(n.split("-")[0]){case"top":i=`calc(${r}px - var(--anchor-gap, 0px))`,o=`calc(${t}px + var(--anchor-offset, 0px))`;break;case"right":o=`calc(${t}px + var(--anchor-gap, 0px))`,i=`calc(${r}px + var(--anchor-offset, 0px))`;break;case"bottom":i=`calc(${r}px + var(--anchor-gap, 0px))`,o=`calc(${t}px + var(--anchor-offset, 0px))`;break;case"left":o=`calc(${t}px - var(--anchor-gap, 0px))`,i=`calc(${r}px + var(--anchor-offset, 0px))`}Object.assign(e.style,{left:o,top:i,position:a})}))}))}}function ct(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}function ut(e){return dt(e)&&"tabIndex"in e}function dt(e){return function(e){return"object"==typeof e&&null!==e&&"nodeType"in e}(e)&&"tagName"in e}function pt(e){return dt(e)&&"accessKey"in e}function ht(e){let t=e.getBoundingClientRect();return!(0===t.x&&0===t.y&&0===t.width&&0===t.height||"hidden"===(e.ownerDocument.defaultView||window).getComputedStyle(e).visibility)}function Et(e,t,r){function n(){if(!ht(e)){for(let t of e.children)if(ht(t))return;r()}}if(typeof ResizeObserver<"u"){let r=new ResizeObserver(n);r.observe(e),t.addEventListener("abort",(()=>r.disconnect()))}if(typeof IntersectionObserver<"u"){let r=new IntersectionObserver(n);r.observe(e),t.addEventListener("abort",(()=>r.disconnect()))}}var ft=!1,mt=!1;typeof navigator<"u"&&(ft=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),mt=navigator.userAgent.toLowerCase().includes("firefox"));var At=!1;function Tt(e,t,r,n,o,i){!function(e){if(gt.has(e))return;gt.add(e);let t=null;e.addEventListener("mousedown",(()=>{mt||ft||!At||(e.body.setAttribute("tabindex","-1"),t&&clearTimeout(t),t=setTimeout((()=>e.body.removeAttribute("tabindex"))))}),{capture:!0})}(e.ownerDocument);let a=Z(e),s=lt(e,r),l=J();e.setAttribute("popover","");let c=t();function u(){e.hasAttribute("open")&&e.hidePopover()}c&&(c.setAttribute("type","button"),c.setAttribute("aria-haspopup","true"),c.setAttribute("aria-controls",e.id),c.setAttribute("aria-expanded","false"),c.id&&e.setAttribute("aria-labelledby",c.id)),e.hasAttribute("open")&&queueMicrotask((()=>e.showPopover())),e.addEventListener("beforetoggle",(t=>{let r=t;s("open"===r.newState);let n=e.hasAttribute("open");"open"!==r.newState||n?"closed"===r.newState&&n&&e.removeAttributeNoCallbacks("open"):e.setAttributeNoCallbacks("open",""),"open"===r.newState?(c?.setAttribute("aria-expanded","true"),o?.(),At=""===e.getAttribute("popover")):(c?.setAttribute("aria-expanded","false"),i?.(),At=!1),"closed"===r.oldState&&"open"===r.newState?(ft&&(l.dispose(),l=J()),a.start("in")):"open"===r.oldState&&"closed"===r.newState&&(ft&&l.style(e,"transition-property","none"),a.start("out"))}),{signal:n}),Et(e,n,u),c&&Et(c,n,u),n.addEventListener("abort",(()=>a.abort()))}var gt=new WeakSet;function bt(e,t,r,n){function o(){let r=e.getBoundingClientRect();n.style.setProperty(t,r.width+"px")}let i=e.ownerDocument,a=new ResizeObserver(o);a.observe(e),i.addEventListener("transitionend",o,{signal:r}),r.addEventListener("abort",(()=>a.disconnect()))}var vt=0;function wt(e){return`${e}-${vt++}`}var St=200;function It(e,t,r,n){Rt||(Rt=!0,document.addEventListener("keydown",(()=>{yt=Date.now()}),{capture:!0})),e.addEventListener(t,(e=>{null!==yt&&Date.now()-yt({referenceCounter:0,d:J()})));function Lt(e){let t=Nt.get(e);if(t.referenceCounter++,1===t.referenceCounter){let r=[/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0?{before({doc:e,d:t}){function r(e){return!!e.closest("[popover], dialog > *")}t.microTask((()=>{if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=J();r.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>r.dispose()))))}let n=window.scrollY??window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(ut(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);ut(a)&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(ut(e.target)&&function(e){return dt(e)&&"style"in e}(e.target))if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(ut(e.target)){if(function(e){return pt(e)&&"INPUT"===e.nodeName}(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.tailwindplusPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.tailwindplusPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{let e=window.scrollY??window.pageYOffset;n!==e&&window.scrollTo(0,n),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))},after(){}}:{before(){},after(){}},Ct(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")},after(){}}];r.forEach((({before:r})=>r({doc:e,d:t.d}))),r.forEach((({after:r})=>r({doc:e,d:t.d})))}let r=!1;return()=>{r||(r=!0,t.referenceCounter--,!(t.referenceCounter>0)&&(t.d.dispose(),Nt.delete(e)))}}function Ct(){let e;return{before({doc:t}){let r=t.documentElement,n=t.defaultView??window;e=Math.max(0,n.innerWidth-r.clientWidth),r.style.setProperty("--el-top-layer-scrollbar-offset","0px")},after({doc:t,d:r}){let n=t.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),i=Math.max(0,e-o);r.style(n,"paddingRight",`${i}px`),r.add((()=>{n.style.setProperty("--el-top-layer-scrollbar-offset",`-${i}px`)}))}}}function _t(e,t){let r=null;e.addEventListener("toggle",(t=>{"open"===t.newState?r||(r=Lt(e.ownerDocument)):r&&(r(),r=null)}),{signal:t}),t.addEventListener("abort",(()=>{r&&(r(),r=null)}))}var Ot,Mt,Pt=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");function Bt(e,t,r){let n=t?e.indexOf(t):null;switch(-1===n&&(n=null),r){case 0:for(let t=0;t=0;t--)if(ht(e[t]))return e[t];return null;case 2:if(null===n)return Bt(e,t,1);for(let t=n-1;t>=0;t--)if(ht(e[t]))return e[t];return null;case 3:if(null===n)return Bt(e,t,0);for(let t=n+1;tthis.getButton()),(()=>this.getInput()),e,(()=>this.onBeforeOpen()),(()=>this.onBeforeClose())),_t(n,e),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-activedescendant",""),t.setAttribute("autocomplete","off"),r&&(r.setAttribute("type","button"),r.setAttribute("tabindex","-1"),r.setAttribute("aria-expanded","false"),r.setAttribute("aria-haspopup","listbox"),r.setAttribute("popovertarget",n.id)),n.setAttribute("role","listbox"),n.setAttribute("popover","manual");let i={passive:!0,signal:e},a=this;function s(){for(let t of n.getItems())"option"!==t.getAttribute("role")&&(t.id||(t.id=wt("option")),t.setAttribute("role","option"),t.setAttribute("aria-selected","false"),t.setAttribute("tabIndex","-1"),t.addEventListener("click",(()=>a.selectOption(t)),i),It(t,"mouseover",e,(()=>a.setActiveItem(t,!1))),It(t,"mouseout",e,(()=>a.clearActiveItem())));a.filterOptions()}s();let l=new MutationObserver(s);l.observe(this,{attributes:!1,childList:!0,subtree:!0}),r&&bt(r,"--button-width",e,this),bt(t,"--input-width",e,this),t.addEventListener("input",(()=>{t.matches(":disabled")||(this.filterOptions(),o(this,Ot).length>0?n.hasAttribute("open")||n.showPopover():n.hidePopover())}),{signal:e});let c=()=>{t.matches(":disabled")||(t.focus(),n.hasAttribute("open")?n.hidePopover():(this.filterOptions(),o(this,Ot).length>0&&n.showPopover()))};t.addEventListener("pointerdown",c,{signal:e}),r&&(r.addEventListener("pointerdown",(e=>{e.preventDefault(),c()}),{signal:e}),r.addEventListener("click",(e=>{e.preventDefault(),e.stopImmediatePropagation()}),{signal:e})),t.addEventListener("blur",(({relatedTarget:e})=>{e&&this.contains(e)||n.hidePopover()}),{signal:e}),t.addEventListener("keydown",(e=>{if(!t.matches(":disabled"))switch(e.key){case"ArrowDown":e.preventDefault(),n.hasAttribute("open")||(0===o(this,Ot).length&&this.filterOptions(),o(this,Ot).length>0&&n.showPopover()),this.goToItem(3);break;case"ArrowUp":e.preventDefault(),n.hasAttribute("open")||(0===o(this,Ot).length&&this.filterOptions(),o(this,Ot).length>0&&n.showPopover()),this.goToItem(2);break;case"Home":case"PageUp":return n.hasAttribute("open")?(e.preventDefault(),e.stopPropagation(),this.goToItem(0)):void 0;case"End":case"PageDown":return n.hasAttribute("open")?(e.preventDefault(),e.stopPropagation(),this.goToItem(1)):void 0;case"Enter":{let t=this.getActiveItem();t&&(e.preventDefault(),this.selectOption(t)),n.hasAttribute("open")&&(e.preventDefault(),n.hidePopover());break}case"Escape":if(!n.hasAttribute("open"))return;e.preventDefault(),n.hidePopover();break;case"Tab":n.hidePopover()}}),{signal:e});let u=Array.from(n.querySelectorAll("el-option[disabled]"));for(let e of u)e.setAttribute("aria-disabled","true"),e.setAttribute("aria-selected","false");e.addEventListener("abort",(()=>{l.disconnect()}))}getInput(){let e=this.querySelector("input");if(!e)throw new Error("`` must contain an input element.");return e}getButton(){return this.querySelector("button")}getOptions(){let e=this.querySelector("el-options");if(!e)throw new Error("`` must contain a `` element.");return e}filterOptions(){let e=this.getInput().value.toLowerCase();o(this,Mt)!==e&&(this.clearActiveItem(),a(this,Mt,e)),a(this,Ot,[]);for(let t of this.getOptions().getItems()){let r=t.getAttribute("value")?.toLowerCase()||"";""===e||r.includes(e)?(o(this,Ot).push(t),t.removeAttribute("hidden"),t.removeAttribute("aria-hidden")):(t.setAttribute("hidden",""),t.setAttribute("aria-hidden","true"))}}getActiveItem(){let e=this.getInput().getAttribute("aria-activedescendant");return e?document.getElementById(e):null}goToItem(e){if(0===o(this,Ot).length)return;let t=this.getActiveItem(),r=Bt(o(this,Ot),t,e);r&&this.setActiveItem(r)}setActiveItem(e,t=!0){let r=this.getInput(),n=this.getActiveItem();null!==n&&n.setAttribute("aria-selected","false"),e.setAttribute("aria-selected","true"),r.setAttribute("aria-activedescendant",e.id),t&&e.scrollIntoView({block:"nearest"})}clearActiveItem(){let e=this.getInput(),t=this.getActiveItem();null!==t&&t.setAttribute("aria-selected","false"),e.setAttribute("aria-activedescendant","")}selectOption(e){let t=this.getInput(),r=e.getAttribute("value");r&&(t.value=r,t.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),this.getOptions().hidePopover())}onBeforeOpen(){let e=this.getInput(),t=this.getButton();e.setAttribute("aria-expanded","true"),t?.setAttribute("aria-expanded","true")}onBeforeClose(){let e=this.getInput(),t=this.getButton();e.setAttribute("aria-expanded","false"),t?.setAttribute("aria-expanded","false"),this.clearActiveItem()}});var xt,Ht,kt,Ut,Ft,Gt,qt=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Yt(e){let t=e.innerText??"",r=e.cloneNode(!0);if(!pt(r))return t;let n=!1;for(let e of r.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),n=!0;let o=n?r.innerText??"":t;return qt.test(o)&&(o=o.replace(qt,"")),o}function Wt(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Yt(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Yt(e).trim()}xt=new WeakMap,Ht=new WeakMap,kt=new WeakMap,Ut=new WeakSet,Ft=function(e=!1){let t=this.getItems(),r=this.getInput().value??"";a(this,xt,[]);for(let e of t.getItems()){if(e.closest("el-defaults"))continue;let t=Wt(e)??"";""!==r&&o(this,kt).call(this,{query:r,node:e,content:t})?(o(this,xt).push(e),e.removeAttribute("hidden"),e.removeAttribute("aria-hidden")):(e.setAttribute("hidden",""),e.setAttribute("aria-hidden","true"))}for(let e of this.getGroups())e.getItems().some((e=>!e.hasAttribute("hidden")))?e.removeAttribute("hidden"):e.setAttribute("hidden","");let n=this.getSuggestions();n&&(""===r?(n.removeAttribute("hidden"),a(this,xt,n.getItems())):n.setAttribute("hidden",""));let i=this.querySelector("el-no-results");i&&(""===r||o(this,xt).length>0?i.setAttribute("hidden",""):i.removeAttribute("hidden")),0===o(this,xt).length?t.setAttribute("hidden",""):t.removeAttribute("hidden"),(!e||""!==r)&&(0===o(this,xt).length?this.clearActiveItem():o(this,Ht)!==r&&this.goToItem(0),a(this,Ht,r))},Gt=function(e,t=!0){let r=this.getInput(),n=this.getActiveItem();if(e===n)return;if(null!==n){n.setAttribute("aria-selected","false");let e=this.querySelector(`el-command-preview[for="${n.id}"]`);e&&e.setAttribute("hidden","")}e.setAttribute("aria-selected","true"),r.setAttribute("aria-activedescendant",e.id);let o=this.querySelector(`el-command-preview[for="${e.id}"]`);o&&o.removeAttribute("hidden"),t&&e.scrollIntoView({block:"nearest"}),this.dispatchEvent(new CustomEvent("change",{detail:{relatedTarget:e},bubbles:!1,cancelable:!1}))},z("el-command-palette",class extends ${constructor(){super(...arguments),i(this,Ut),i(this,xt,[]),i(this,Ht,null),i(this,kt,(({query:e,content:t})=>t.toLocaleLowerCase().includes(e.toLocaleLowerCase().trim())))}mount(e){let t=this.getInput(),r=this.getItems();t.id||(t.id=wt("command-input")),r.id||(r.id=wt("command-items")),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("autocomplete","off"),t.setAttribute("aria-controls",r.id),r.setAttribute("role","listbox");let n=this;function o(){var t;for(let t of r.getItems())"option"!==t.getAttribute("role")&&(t.id||(t.id=wt("item")),t.setAttribute("role","option"),t.setAttribute("tabIndex","-1"),t.setAttribute("aria-selected","false"),t.hasAttribute("disabled")&&t.setAttribute("aria-disabled","true"),It(t,"mouseover",e,(()=>{var e;return s(e=n,Ut,Gt).call(e,t,!1)})));s(t=n,Ut,Ft).call(t,!0)}o();let i=new MutationObserver(o);i.observe(this,{attributes:!1,childList:!0,subtree:!0}),bt(t,"--input-width",e,this),t.addEventListener("input",(()=>s(this,Ut,Ft).call(this)),{signal:e}),t.addEventListener("keydown",(e=>{switch(e.key){case"ArrowDown":e.preventDefault(),this.goToItem(3);break;case"ArrowUp":e.preventDefault(),this.goToItem(2);break;case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),this.goToItem(0);case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),this.goToItem(1);case"Enter":{let t=this.getActiveItem();t&&(e.preventDefault(),t.click());break}}}),{signal:e}),e.addEventListener("abort",(()=>{i.disconnect()}))}getInput(){let e=this.querySelector("input");if(!e)throw new Error("`` must contain an input element.");return e}getItems(){let e=this.querySelector("el-command-list");if(!e)throw new Error("`` must contain a `` element.");return e}getGroups(){return this.getItems().querySelectorAll("el-command-group")}getSuggestions(){return this.querySelector("el-defaults")}getActiveItem(){let e=this.getInput().getAttribute("aria-activedescendant");return e?document.getElementById(e):null}goToItem(e){if(0===o(this,xt).length)return;let t=this.getActiveItem(),r=Bt(o(this,xt),t,e);r&&s(this,Ut,Gt).call(this,r)}clearActiveItem(){let e=this.getInput(),t=this.getActiveItem();if(null!==t){t.setAttribute("aria-selected","false");let e=this.querySelector(`el-command-preview[for="${t.id}"]`);e&&e.setAttribute("hidden","")}e.removeAttribute("aria-activedescendant"),this.dispatchEvent(new CustomEvent("change",{detail:{relatedTarget:null},bubbles:!1,cancelable:!1}))}reset(){let e=this.getInput();e.value="",e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),s(this,Ut,Ft).call(this,!0),this.clearActiveItem()}setFilterCallback(e){a(this,kt,e)}}),z("el-command-list",class extends ${getItems(){return Array.from(this.querySelectorAll(`${Pt},[role="option"]`))}}),z("el-defaults",class extends ${getItems(){return Array.from(this.querySelectorAll(`${Pt},[role="option"]`))}}),z("el-no-results",class extends ${}),z("el-command-group",class extends ${getItems(){return Array.from(this.querySelectorAll(`${Pt},[role="option"]`))}}),z("el-command-preview",class extends ${});var Kt=[];Y((()=>{function e(e){if(e.target===document.body||Kt[0]===e.target)return;let t=e.target;t&&"closest"in t&&(t=t.closest(Pt),Kt.unshift(t??e.target),Kt=Kt.filter((e=>null!=e&&e.isConnected)),Kt.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("pointerdown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("pointerdown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var Vt=null;typeof globalThis.window<"u"&&(Vt=HTMLDialogElement.prototype.close,Object.defineProperties(HTMLDialogElement.prototype,{close:{value(){let e=this.closest("el-dialog");if(!(e instanceof Zt))return Vt?.apply(this,arguments);let t=e.beforeClose();if(!0===t)return Vt?.apply(this,arguments);!1!==t&&t.then((e=>e?Vt?.apply(this,arguments):null)).catch(console.error)}}}),document.addEventListener("command",(e=>{let t=e.target;if(!(t instanceof HTMLDialogElement&&"command"in e&&"close"===e.command))return;let r=t.closest("el-dialog");if(!(r instanceof Zt))return;let n=r.beforeClose();!0!==n&&(e.stopImmediatePropagation(),e.preventDefault(),!1!==n&&n.then((e=>e?Vt?.apply(t):null)).catch(console.error))}),!0));var Xt,Qt,jt,$t,zt,Jt,Zt=class extends ${constructor(){super(...arguments),i(this,zt),i(this,Xt,null),i(this,Qt,null),i(this,jt,!0),i(this,$t,Z(this,(()=>Array.from(this.querySelectorAll("el-dialog-panel,el-dialog-backdrop")))))}mount(e){let t=this.getNativeDialog();t.style.setProperty("right","var(--el-top-layer-scrollbar-offset, 0px)");let r=this.hasAttribute("open");for(let e of s(this,zt,Jt).call(this))e.setAttribute("aria-expanded",r.toString());!function(e,t,r){e.addEventListener("keydown",(e=>{"Escape"===e.key&&(e.defaultPrevented||r(e))}),{signal:t})}(t,e,(e=>{e.preventDefault();let r=new Event("cancel",{bubbles:!1,cancelable:!0});!this.dispatchEvent(r)||t.close()})),Et(this.querySelector("el-dialog-panel")??t,e,(()=>{this.hasAttribute("open")&&t.close()}));let n=null;t.addEventListener("beforetoggle",(e=>{let t=e;"open"===t.newState&&"closed"===t.oldState&&this.beforeOpen();let r=this.hasAttribute("open");if("open"!==t.newState||r?"closed"===t.newState&&r&&(this.dispatchEvent(new CustomEvent("close",{bubbles:!1,cancelable:!1})),this.removeAttribute("open")):(this.dispatchEvent(new CustomEvent("open",{bubbles:!1,cancelable:!1})),this.setAttribute("open","")),"open"===t.newState&&"closed"===t.oldState)Kt.length>0&&!n&&(n=Kt[0]);else if("closed"===t.newState&&"open"===t.oldState){let e=o(this,jt);setTimeout((()=>{e?(n&&n!==document.activeElement&&n.isConnected&&W(n),n=null):n&&n===document.activeElement&&n.isConnected&&"blur"in n&&"function"==typeof n.blur&&n.blur()}))}}),{signal:e}),e.addEventListener("abort",(()=>{var e;o(this,$t).abort(),null==(e=o(this,Qt))||e.call(this)})),this.hasAttribute("open")&&t.showModal()}onAttributeChange(e,t,r){switch(e){case"open":{let e=this.getNativeDialog();for(let e of s(this,zt,Jt).call(this))e.setAttribute("aria-expanded",null!==r?"true":"false");null===r?e.close():e.showModal();break}}}getNativeDialog(){let e=this.querySelector("dialog");if(!e)throw new Error("[ElDialog] No `` element found");return e}beforeOpen(){a(this,jt,!0),o(this,Xt)&&(o(this,Xt).abort(),a(this,Xt,null)),o(this,Qt)||a(this,Qt,Lt(this.ownerDocument)),o(this,$t)&&o(this,$t).start("in")}beforeClose(){if(o(this,Qt)&&(o(this,Qt).call(this),a(this,Qt,null)),o(this,Xt))return!1;a(this,Xt,new AbortController);let e=o(this,Xt).signal;return new Promise((t=>{o(this,$t)?.start("out",(()=>{e.aborted||(a(this,Xt,null),requestAnimationFrame((()=>{let e=this.getNativeDialog(),t=e.style.cssText;e.style.cssText=t+"transition-duration: 0 !important;",Vt?.apply(e),requestAnimationFrame((()=>{e.style.cssText=t}))})),t(!0))}))}))}show(){this.getNativeDialog().showModal()}hide({restoreFocus:e=!0}={}){a(this,jt,e),this.getNativeDialog().close()}};Xt=new WeakMap,Qt=new WeakMap,jt=new WeakMap,$t=new WeakMap,zt=new WeakSet,Jt=function(){return document.querySelectorAll(`[commandfor="${this.getNativeDialog().id}"]`)},r(Zt,"observedAttributes",["open"]),z("el-dialog",Zt),z("el-dialog-panel",class extends ${mount(e){!function(e,t,r){document.addEventListener("click",(t=>{if(t.target===e){let{clientX:n,clientY:o}=t,i=e.getBoundingClientRect();if(n>=i.left&&n<=i.right&&o>=i.top&&o<=i.bottom)return;return void r()}let n=e.closest("dialog");n&&n.contains(t.target)&&!e.contains(t.target)?r():t.target!==t.target.ownerDocument.documentElement||r()}),{signal:t,capture:!0})}(this,e,(()=>{let e=this.getDialog(),t=e.getNativeDialog();if(!t.hasAttribute("open"))return;let r=new Event("cancel",{bubbles:!1,cancelable:!0});!e.dispatchEvent(r)||t.close()}))}getDialog(){let e=this.closest("el-dialog");if(!e)throw new Error("[ElDialogPanel] No `` parent found");return e}}),z("el-dialog-backdrop",class extends ${mount(){this.setAttribute("inert","")}});var er,tr,rr,nr=class extends ${constructor(){super(...arguments),i(this,tr),i(this,er,Z(this))}mount(e){this.id||(this.id=wt("disclosure")),this.hasAttribute("hidden")?this.removeAttributeNoCallbacks("open"):this.setAttributeNoCallbacks("open","");let t=()=>{this.hasAttribute("open")&&this.hide()},r=!this.hasAttribute("hidden");for(let n of s(this,tr,rr).call(this))Et(n,e,t),n.setAttribute("aria-expanded",r.toString()),n.setAttribute("aria-controls",this.id);this.addEventListener("command",(e=>{if(e.target instanceof HTMLElement&&"command"in e)switch(e.command){case"--show":this.show(),e.preventDefault();break;case"--hide":this.hide(),e.preventDefault();break;case"--toggle":this.toggle(),e.preventDefault()}}),{signal:e}),Et(this,e,t),e.addEventListener("abort",(()=>o(this,er).abort()))}onAttributeChange(e,t,r){switch(e){case"hidden":null===r?this.setAttributeNoCallbacks("open",""):this.removeAttributeNoCallbacks("open");for(let e of s(this,tr,rr).call(this))e.setAttribute("aria-expanded",null===r?"true":"false");null===r?o(this,er).start("in"):o(this,er).start("out");break;case"open":null===r?this.hide():this.show()}}show(){this.removeAttribute("hidden")}hide(){this.setAttribute("hidden","")}toggle(){this.hasAttribute("hidden")?this.show():this.hide()}};function or(e,t,r,n,o){let i=null;for(let r of t)r.addEventListener("pointerdown",(t=>{0===t.button&&e.classList.contains(":popover-open")&&(i=Date.now()+100)}),{signal:n,capture:!0});e.ownerDocument.addEventListener("focusin",(n=>{if(!r.hasAttribute("open"))return;let a=n.target,s=n.relatedTarget;null!==a&&(i&&Date.now()e.contains(a)))||o(s))}),{signal:n})}function ir(e,t,r){let n=null,o="",i=null,a=null;e.id||(e.id=wt(t.role));let s=t.getButton();function l(){let e=t.getItems(),n={passive:!0,signal:r},o="menu"===t.role?"menuitem":"option";for(let i of e)i.getAttribute("role")!==o&&(i.id||(i.id=wt("item")),i.setAttribute("role",o),i.setAttribute("tabIndex","-1"),i.addEventListener("click",(()=>t.onItemClick(i)),n),It(i,"mouseover",r,(()=>h(i,!1))),It(i,"mouseout",r,(()=>E())))}s.id||(s.id=wt(`${t.role}-button`)),Tt(e,(()=>t.getButton()),(()=>t.getButton()),r,(()=>t.onBeforeOpen()),(()=>{t.onBeforeClose(),E(),o="",i&&(clearTimeout(i),i=null)})),_t(e,r),e.setAttribute("popover","manual"),e.setAttribute("role",t.role),s.setAttribute("popovertarget",e.id),s.setAttribute("aria-haspopup",t.role),l();let c=new MutationObserver(l);c.observe(e,{attributes:!1,childList:!0,subtree:!0}),or(e,[s],e,r,(t=>{null===t&&(a=Date.now()+100),e.hidePopover()}));let u=null,d=!1;s.addEventListener("pointerdown",(t=>{if(0===t.button&&!s.matches(":disabled")){if("touch"===t.pointerType)return void(d=!0);e.togglePopover(),u=Date.now()}}),{signal:r}),document.addEventListener("pointerup",(t=>{if(0===t.button&&!s.matches(":disabled")&&e.hasAttribute("open")){if(Date.now()-(u??0)>200){let r=t.composedPath();if(r.includes(e)){if(null!==u){let e=f();e&&e.click()}return}for(let t of r)if(t instanceof Element&&(t.getAttribute("commandfor")||t.getAttribute("popovertarget"))===e.id)return;e.hidePopover()}u=null}}),{signal:r,capture:!0}),s.addEventListener("click",(e=>{d?d=!1:(e.preventDefault(),e.stopPropagation())}),{signal:r});let p=null;function h(t,r=!0){let o=f();null!==o&&o.setAttribute("tabIndex","-1"),e.removeAttribute("tabIndex"),t.setAttribute("tabIndex","0"),t.focus({preventScroll:!0}),n=t,r&&t.scrollIntoView({block:"nearest"})}function E(){let t=f();null!==t&&t.setAttribute("tabIndex","-1"),n=null,e.hasAttribute("open")&&(e.setAttribute("tabIndex","0"),e.focus())}function f(){return n}function m(e,r=!1){if(""===e)return null;let n=t.getItems(),o=e.toLowerCase(),i=f(),a=i?n.indexOf(i):-1;if(!r&&i&&-1!==a&&ht(i)&&(i.textContent?.trim().toLowerCase()||"").startsWith(o))return i;for(let e=a+1;e{let t=e;"open"===t.newState&&"closed"===t.oldState&&Kt.length>0&&!p&&(p=Kt[0])}),{signal:r}),e.addEventListener("toggle",(t=>{let r=t;"closed"===r.newState&&"open"===r.oldState&&setTimeout((()=>{!e.contains(document.activeElement)&&document.activeElement!==document.body||a&&Date.now(){i&&(clearTimeout(i),i=null),c.disconnect()})),{ignoreNextFocusRestoration:()=>a=Date.now()+100,setActiveItem:h,clearActiveItem:E,getActiveItem:f,findItemBySearchQuery:m,handleSearchKey:function(e){let t=""===o;i&&(clearTimeout(i),i=null),o+=e.toLowerCase();let r=m(o,t);r&&h(r,!0),i=setTimeout((()=>{o="",i=null}),350)},hasActiveSearchQuery:function(){return""!==o}}}er=new WeakMap,tr=new WeakSet,rr=function(){return document.querySelectorAll(`[commandfor="${this.id}"]`)},r(nr,"observedAttributes",["hidden","open"]),z("el-disclosure",nr);var ar,sr,lr,cr=class extends ${constructor(){super(...arguments),i(this,ar,this.attachInternals()),i(this,sr,""),i(this,lr,null)}mount(e){let t=this.getOptions();this.value=this.getAttribute("value")??this.value??"";let r=this.getButton();r.id||(r.id=wt("select-button")),bt(r,"--button-width",e,this),r.addEventListener("keydown",(e=>{if(!r.matches(":disabled"))switch(e.key){case"ArrowUp":case"ArrowDown":t.showPopover(),this.goToItem("selected"),e.preventDefault();break;case"Enter":e.preventDefault(),o(this,ar).form&&o(this,ar).form.requestSubmit();break;case" ":if(t.hasAttribute("open")&&o(this,lr)&&o(this,lr).hasActiveSearchQuery()){e.preventDefault(),e.stopPropagation(),o(this,lr).handleSearchKey(e.key);break}e.preventDefault(),t.hasAttribute("open")?t.hidePopover():(t.showPopover(),this.goToItem("selected"));break;default:t.hasAttribute("open")&&1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),this.handleSearchKey(e.key))}}),{signal:e});for(let e of o(this,ar).labels)e.setAttribute("for",r.id);a(this,lr,ir(t,{role:"listbox",getItems:()=>this.getItems(),onItemClick:e=>this.setSelectedOption(e),getButton:()=>this.getButton(),onBeforeOpen:()=>this.onBeforeOpen(),onBeforeClose:()=>this.onBeforeClose()},e)),t.addEventListener("keydown",(e=>{switch(e.key){case"ArrowDown":return e.preventDefault(),e.stopPropagation(),this.goToItem(3);case"ArrowUp":return e.preventDefault(),e.stopPropagation(),this.goToItem(2);case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),this.goToItem(0);case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),this.goToItem(1);case" ":if(o(this,lr)&&o(this,lr).hasActiveSearchQuery())return e.preventDefault(),e.stopPropagation(),void o(this,lr).handleSearchKey(e.key);case"Enter":{e.preventDefault(),e.stopPropagation();let r=this.getActiveItem();return void(r?r.click():t.hidePopover())}case"Tab":o(this,lr)&&o(this,lr).ignoreNextFocusRestoration();break;case"Escape":e.preventDefault(),e.stopPropagation(),t.hidePopover(),r.focus();break;default:1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),o(this,lr)&&o(this,lr).handleSearchKey(e.key))}}),{signal:e}),t.addEventListener("toggle",(e=>{"open"===e.newState&&this.onOpen()}),{signal:e});let n=Array.from(t.querySelectorAll("el-option[disabled]"));for(let e of n)e.setAttribute("aria-disabled","true"),e.setAttribute("aria-selected","false")}onAttributeChange(e,t,r){"value"===e&&null!==r&&(this.value=r)}getButton(){let e=this.querySelector("button");if(!e)throw new Error("`` must contain a button element.");return e}getOptions(){let e=this.querySelector("el-options");if(!e)throw new Error("`` must contain a `` element.");return e}setSelectedOption(e){this.value=e.getAttribute("value"),this.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),this.getOptions().hidePopover()}getOptionByName(e){return this.getOptions().getOptionByName(e)}getItems(){return this.getOptions().getItems()}getActiveItem(){return o(this,lr)?.getActiveItem()}getSelectedOption(){return this.getOptionByName(o(this,sr))}goToItem(e=4){let t=this.getItems();if(0===t.length)return;let r=this.getActiveItem();if(null===r&&(2===e||3===e))return void this.goToItem("selected");if("selected"===e){let e=this.getSelectedOption();return void(e&&ht(e)?this.setActiveItem(e):this.goToItem(0))}let n=Bt(t,r,e);n&&this.setActiveItem(n)}setActiveItem(e){o(this,lr)&&o(this,lr).setActiveItem(e)}clearActiveItem(){o(this,lr)&&o(this,lr).clearActiveItem()}onBeforeOpen(){let e=this.getButton(),t=e.dataset.originalTabIndex;t&&(e.dataset.originalTabIndex=t),e.setAttribute("tabIndex","-1")}onOpen(){null===this.getActiveItem()&&this.goToItem("selected")}onBeforeClose(){let e=this.getButton(),t=e.dataset.originalTabIndex;delete e.dataset.originalTabIndex,void 0!==t?e.setAttribute("tabIndex",t):e.removeAttribute("tabIndex");let r=this.getActiveItem();null!==r&&r.setAttribute("tabIndex","-1")}handleSearchKey(e){o(this,lr)&&o(this,lr).handleSearchKey(e)}set value(e){a(this,sr,e),o(this,ar).setFormValue(e);let t=this.getSelectedOption();if(t){for(let e of this.getItems())e.setAttribute("aria-selected","false");t.setAttribute("aria-selected","true");try{this.querySelectorAll("el-selectedcontent").forEach((e=>e.update()))}catch{}}}get value(){return o(this,sr)}};ar=new WeakMap,sr=new WeakMap,lr=new WeakMap,r(cr,"formAssociated",!0),z("el-select",cr),z("el-selectedcontent",class extends ${mount(){this.update()}update(){let e=this.getSelect().getSelectedOption();if(!e)return;let t=document.createDocumentFragment();for(let r of e.childNodes)t.append(r.cloneNode(!0));this.replaceChildren(t)}getSelect(){let e=this.closest("el-select");if(!e)throw new Error("`` must be inside of a `` element.");return e}});var ur,dr=class extends ${constructor(){super(...arguments),i(this,ur,null)}mount(e){a(this,ur,ir(this,{role:"menu",getItems:()=>this.getItems(),onItemClick:()=>this.hidePopover(),getButton:()=>this.getDropdown().getButton(),onBeforeOpen:()=>this.onBeforeOpen(),onBeforeClose:()=>this.onBeforeClose()},e));let t=this.getDropdown().getButton();t.addEventListener("keydown",(e=>{if(!t.disabled)switch(e.key){case"ArrowDown":this.showPopover(),this.goToItem(0),e.preventDefault();break;case"ArrowUp":this.showPopover(),this.goToItem(1),e.preventDefault();break;case" ":if(this.hasAttribute("open")&&o(this,ur)&&o(this,ur).hasActiveSearchQuery()){e.preventDefault(),e.stopPropagation(),o(this,ur).handleSearchKey(e.key);break}case"Enter":e.preventDefault(),this.hasAttribute("open")?this.hidePopover():(this.showPopover(),this.goToItem(0));break;default:this.hasAttribute("open")&&1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),o(this,ur)&&o(this,ur).handleSearchKey(e.key))}}),{signal:e}),this.addEventListener("keydown",(e=>{switch(e.key){case"ArrowDown":return e.preventDefault(),e.stopPropagation(),this.goToItem(3);case"ArrowUp":return e.preventDefault(),e.stopPropagation(),this.goToItem(2);case"Home":case"PageUp":return e.preventDefault(),e.stopPropagation(),this.goToItem(0);case"End":case"PageDown":return e.preventDefault(),e.stopPropagation(),this.goToItem(1);case" ":if(o(this,ur)&&o(this,ur).hasActiveSearchQuery())return e.preventDefault(),e.stopPropagation(),void o(this,ur).handleSearchKey(e.key);case"Enter":{e.preventDefault(),e.stopPropagation();let t=this.getActiveItem();return void(t?t.click():this.hidePopover())}case"Tab":o(this,ur)&&o(this,ur).ignoreNextFocusRestoration();break;case"Escape":e.preventDefault(),e.stopPropagation(),this.hidePopover(),t.focus();break;default:1===e.key.length&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.preventDefault(),e.stopPropagation(),o(this,ur)&&o(this,ur).handleSearchKey(e.key))}}),{signal:e})}onBeforeOpen(){let e=this.getDropdown().getButton(),t=e.dataset.originalTabIndex;t&&(e.dataset.originalTabIndex=t),e.setAttribute("tabIndex","-1"),null===this.getActiveItem()&&(this.setAttribute("tabIndex","0"),setTimeout((()=>this.focus({preventScroll:!0}))))}onBeforeClose(){let e=this.getDropdown().getButton(),t=e.dataset.originalTabIndex;delete e.dataset.originalTabIndex,void 0!==t?e.setAttribute("tabIndex",t):e.removeAttribute("tabIndex");let r=this.getActiveItem();null!==r&&r.setAttribute("tabIndex","-1")}goToItem(e=4){let t=this.getItems();if(0===t.length)return;let r=Bt(t,this.getActiveItem(),e);r&&this.setActiveItem(r)}setActiveItem(e){o(this,ur)&&o(this,ur).setActiveItem(e)}clearActiveItem(){o(this,ur)&&o(this,ur).clearActiveItem()}getDropdown(){let e=this.closest("el-dropdown");if(!e)throw new Error("[ElMenu] No `` element found");return e}getItems(){return Array.from(this.querySelectorAll(`${Pt},[role="menuitem"]`))}getActiveItem(){return o(this,ur)?.getActiveItem()||null}onAttributeChange(e,t,r){"open"===e&&(null===r?this.hidePopover():this.showPopover())}};ur=new WeakMap,r(dr,"observedAttributes",["anchor","open"]),z("el-menu",dr),z("el-dropdown",class extends ${getButton(){let e=this.querySelector("button");if(!e)throw new Error("[ElDropdown] No `