1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11532],{11532:(e,t,n)=>{n.r(t);var o=Object.defineProperty,r=e=>{throw TypeError(e)},i=(e,t,n)=>((e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),a=(e,t,n)=>t.has(e)||r("Cannot "+n),l=(e,t,n)=>(a(e,t,"read from private field"),n?n.call(e):t.get(e)),s=(e,t,n)=>t.has(e)?r("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),u=(e,t,n,o)=>(a(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),c=(e,t,n)=>(a(e,t,"access private method"),n);if("u">typeof globalThis.window){let e=!1;document.addEventListener("submit",t=>{if(e){e=!1;return}let n=t.target;if(n&&"dialog"===n.method){let o=n.closest("el-dialog");if(!o||!("beforeClose"in o))return;let r=t.submitter?.value??"",i=o.beforeClose(r);if(!0===i||(t.preventDefault(),t.stopImmediatePropagation(),!1===i))return;i.then(o=>{o&&(e=!0,n.dispatchEvent(t))}).catch(console.error)}},!0)}var d=class extends Event{constructor(e,{oldState:t="",newState:n="",...o}={}){super(e,o),i(this,"oldState"),i(this,"newState"),this.oldState=String(t||""),this.newState=String(n||"")}},h=new WeakMap;function p(e,t,n){h.set(e,setTimeout(()=>{h.has(e)&&e.dispatchEvent(new d("toggle",{cancelable:!1,oldState:t,newState:n}))},0))}var f=globalThis.ShadowRoot||function(){},m=globalThis.HTMLDialogElement||function(){},g=new WeakMap,b=new WeakMap,v=new WeakMap,w=new WeakMap;function y(e){return w.get(e)||"hidden"}var A=new WeakMap;function E(e){return[...e].pop()}function x(e,t){return!("auto"!==e.popover&&"manual"!==e.popover&&"hint"!==e.popover||!e.isConnected||t&&"showing"!==y(e)||!t&&"hidden"!==y(e)||e instanceof m&&e.hasAttribute("open")||document.fullscreenElement===e)}function S(e){if(!e)return 0;let t=b.get(document)||new Set,n=v.get(document)||new Set;return n.has(e)?[...n].indexOf(e)+t.size+1:t.has(e)?[...t].indexOf(e)+1:0}function T(e){let t,n=v.get(e)||new Set,o=b.get(e)||new Set,r=n.size>0?n:o.size>0?o:null;return r?(t=E(r)).isConnected?t:(r.delete(t),T(e)):null}function k(e){for(let t of e||[])if(t.isConnected)return t;else e.delete(t);return null}function L(e){return"function"==typeof e.getRootNode?e.getRootNode():e.parentNode?L(e.parentNode):e}function I(e){for(;e;){if(e instanceof HTMLElement&&"auto"===e.popover&&"showing"===w.get(e))return e;if((e=e instanceof Element&&e.assignedSlot||e.parentElement||L(e))instanceof f&&(e=e.host),e instanceof Document)return}}function D(e,t){let n=new Map,o=0;for(let e of t||[])n.set(e,o),o+=1;n.set(e,o),o+=1;let r=null;return function(t){if(!t)return;let o=!1,i=null,a=null;for(;!o;){if(null===(i=I(t)||null)||!n.has(i))return;("hint"===e.popover||"auto"===i.popover)&&(o=!0),o||(t=i.parentElement)}a=n.get(i),(null===r||n.get(r)<a)&&(r=i)}(e.parentElement||L(e)),r}var P=new WeakMap;function C(e){var t;if(!x(e,!1))return;let n=e.ownerDocument;if(!e.dispatchEvent(new d("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!x(e,!1))return;let o=!1,r=e.popover,i=null,a=D(e,b.get(n)||new Set),l=D(e,v.get(n)||new Set);if("auto"===r&&(O(v.get(n)||new Set,o,!0),R(a||n,o,!0),i="auto"),"hint"===r&&(l?(R(l,o,!0),i="hint"):(O(v.get(n)||new Set,o,!0),a?(R(a,o,!0),i="auto"):i="hint")),"auto"===r||"hint"===r){if(r!==e.popover||!x(e,!1))return;T(n)||(o=!0),"auto"===i?(b.has(n)||b.set(n,new Set),b.get(n).add(e)):"hint"===i&&(v.has(n)||v.set(n,new Set),v.get(n).add(e))}P.delete(e);let s=n.activeElement;e.classList.add(":popover-open"),w.set(e,"showing"),g.has(n)||g.set(n,new Set),g.get(n).add(e),F(A.get(e),!0),null==(t=function(e){if(e.shadowRoot&&!0!==e.shadowRoot.delegatesFocus)return null;let t=e;t.shadowRoot&&(t=t.shadowRoot);let n=t.querySelector("[autofocus]");if(n)return n;for(let e of t.querySelectorAll("slot"))for(let t of e.assignedElements({flatten:!0})){if(t.hasAttribute("autofocus"))return t;if(n=t.querySelector("[autofocus]"))return n}let o=e.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){var i;if(!((i=r).hidden||i instanceof f||(i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLSelectElement||i instanceof HTMLTextAreaElement||i instanceof HTMLOptGroupElement||i instanceof HTMLOptionElement||i instanceof HTMLFieldSetElement)&&i.disabled||i instanceof HTMLInputElement&&"hidden"===i.type||i instanceof HTMLAnchorElement&&""===i.href)&&"number"==typeof i.tabIndex&&-1!==i.tabIndex)return r;r=o.nextNode()}}
1(e))||t.focus(),o&&s&&"auto"===e.popover&&P.set(e,s),p(e,"closed","open")}function M(e,t=!1,n=!1){var o,r;if(!x(e,!0))return;let i=e.ownerDocument;if(["auto","hint"].includes(e.popover)&&(R(e,t,n),!x(e,!0)))return;let a=b.get(i)||new Set,l=a.has(e)&&E(a)===e;if(F(A.get(e),!1),A.delete(e),n&&(e.dispatchEvent(new d("beforetoggle",{oldState:"open",newState:"closed"})),l&&E(a)!==e&&R(e,t,n),!x(e,!0)))return;null==(o=g.get(i))||o.delete(e),a.delete(e),null==(r=v.get(i))||r.delete(e),e.classList.remove(":popover-open"),w.set(e,"hidden"),n&&p(e,"open","closed");let s=P.get(e);s&&(P.delete(e),t&&s.focus())}function O(e,t=!1,n=!1){let o=k(e);for(;o;)M(o,t,n),o=k(e)}function B(e,t,n,o){let r=!1,i=!1;for(;r||!i;){i=!0;let a=null,l=!1;for(let n of t)if(n===e)l=!0;else if(l){a=n;break}if(!a)return;for(;"showing"===y(a)&&t.size;)M(E(t),n,o);t.has(e)&&E(t)!==e&&(r=!0),r&&(o=!1)}}function R(e,t,n){var o,r;let i=e.ownerDocument||e;return e instanceof Document?function(e,t=!1,n=!1){let o=T(e);for(;o;)M(o,t,n),o=T(e)}(i,t,n):null!=(o=v.get(i))&&o.has(e)?void B(e,v.get(i),t,n):void(O(v.get(i)||new Set,t,n),null!=(r=b.get(i))&&r.has(e)&&B(e,b.get(i),t,n))}var q=new WeakMap;function W(e){let t,n;if(!e.isTrusted)return;let o=e.composedPath()[0];if(!o)return;let r=o.ownerDocument;if(!T(r))return;let i=(t=I(o),n=function(e){for(;e;){let t=e.popoverTargetElement;if(t instanceof HTMLElement)return t;if((e=e.parentElement||L(e))instanceof f&&(e=e.host),e instanceof Document)return}}(o),S(t)>S(n)?t:n);if(i&&"pointerdown"===e.type)q.set(r,i);else if("pointerup"===e.type){let e=q.get(r)===i;q.delete(r),e&&R(i||r,!1,!0)}}var N=new WeakMap;function F(e,t=!1){if(!e)return;N.has(e)||N.set(e,e.getAttribute("aria-expanded"));let n=e.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)e.setAttribute("aria-expanded",String(t));else{let t=N.get(e);t?e.setAttribute("aria-expanded",t):e.removeAttribute("aria-expanded")}}var H=globalThis.ShadowRoot||function(){};function $(e,t,n){let o=e[t];Object.defineProperty(e,t,{value(e){return o.call(this,n(e))}})}var K=/(^|[^\\]):popover-open\b/g,j=null;function V(e){let t,n=(t="function"==typeof globalThis.CSSLayerBlockRule,` 2${t?"@layer popover-polyfill {":""} 3 :where([popover]) { 4 position: fixed; 5 z-index: 2147483647; 6 inset: 0; 7 padding: 0.25em; 8 width: fit-content; 9 height: fit-content; 10 border-width: initial; 11 border-color: initial; 12 border-image: initial; 13 border-style: solid; 14 background-color: canvas; 15 color: canvastext; 16 overflow: auto; 17 margin: auto; 18 } 19 20 :where([popover]:not(.\\:popover-open)) { 21 display: none; 22 } 23 24 :where(dialog[popover].\\:popover-open) { 25 display: block; 26 } 27 28 :where(dialog[popover][open]) { 29 display: revert; 30 } 31 32 :where([anchor].\\:popover-open) { 33 inset: auto; 34 } 35 36 :where([anchor]:popover-open) { 37 inset: auto; 38 } 39 40 @supports not (background-color: canvas) { 41 :where([popover]) { 42 background-color: white; 43 color: black; 44 } 45 } 46 47 @supports (width: -moz-fit-content) { 48 :where([popover]) { 49 width: -moz-fit-content; 50 height: -moz-fit-content; 51 } 52 } 53 54 @supports not (inset: 0) { 55 :where([popover]) { 56 top: 0; 57 left: 0; 58 right: 0; 59 bottom: 0; 60 } 61 } 62${t?"}":""} 63`);if(null===j)try{(j=new CSSStyleSheet).replaceSync(n)}catch{j=!1}if(!1===j){let t=document.createElement("style");t.textContent=n,e instanceof Document?e.head.prepend(t):e.prepend(t)}else e.adoptedStyleSheets=[j,...e.adoptedStyleSheets]}function z(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}async function U(e){for(let t of(await G(),document.styleSheets))try{for(let n of t.rules)if("CSSLayerStatementRule"===n.constructor.name&&"nameList"in n&&n.nameList.includes(e))return!0}catch{}return!1}async function G(){await Promise.all(Array.from(document.querySelectorAll('link[rel="stylesheet"]')).map(e=>e.sheet?Promise.resolve():new Promise(t=>{e.addEventListener("load",()=>t(),{once:!0}),e.addEventListener("error",()=>t(),{once:!0})})))}function Y(e){"focus"in e&&e.focus({focusVisible:_})}"u">typeof globalThis.window&&("u">typeof HTMLElement&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||(function(){var e;if(typeof window>"u")return;function t(e){return e?.includes(":popover-open")&&(e=e.replace(K,"$1.\\:popover-open")),e}window.ToggleEvent=window.ToggleEvent||d,$(Document.prototype,"querySelector",t),$(
63Document.prototype,"querySelectorAll",t),$(Element.prototype,"querySelector",t),$(Element.prototype,"querySelectorAll",t),$(Element.prototype,"matches",t),$(Element.prototype,"closest",t),$(DocumentFragment.prototype,"querySelectorAll",t),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={}){C(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){M(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(e={}){return"boolean"==typeof e&&(e={force:e}),"showing"===w.get(this)&&void 0===e.force||!1===e.force?M(this,!0,!0):(void 0===e.force||!0===e.force)&&C(this),"showing"===w.get(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(e){let t=n.call(this,e);return V(t),t}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let e=o.call(this);return e.shadowRoot&&V(e.shadowRoot),e}}});let r=new WeakMap;function i(e){Object.defineProperties(e.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(e){if(null===e)this.removeAttribute("popovertarget"),r.delete(this);else if(e instanceof Element)this.setAttribute("popovertarget",""),r.set(this,e);else throw TypeError("popoverTargetElement must be an element or null")},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=r.get(this);if(e&&e.isConnected)return e;if(e&&!e.isConnected)return r.delete(this),null;let t=L(this),n=this.getAttribute("popovertarget");return(t instanceof Document||t instanceof H)&&n&&t.getElementById(n)||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)}}})}i(HTMLButtonElement),i(HTMLInputElement);(e=document).addEventListener("click",e=>{if(e.defaultPrevented)return;let t=e.composedPath(),n=t[0];if(!(n instanceof Element)||n?.shadowRoot)return;let o=L(n);if(!(o instanceof H||o instanceof Document))return;let r=t.find(e=>{var t;return null==(t=e.matches)?void 0:t.call(e,"[popovertargetaction],[popovertarget]")});if(r){(function(e){let t=e.popoverTargetElement;if(!(t instanceof HTMLElement))return;let n=y(t);"show"===e.popoverTargetAction&&"showing"===n||"hide"===e.popoverTargetAction&&"hidden"===n||("showing"===n?M(t,!0,!0):x(t,!1)&&(A.set(t,e),C(t)))})(r),e.preventDefault();return}}),e.addEventListener("keydown",e=>{let t=e.key,n=e.target;!e.defaultPrevented&&n&&("Escape"===t||"Esc"===t)&&R(n.ownerDocument,!0,!0)}),e.addEventListener("pointerdown",W),e.addEventListener("pointerup",W),V(document)}(),z(async()=>{if(await U("popover-polyfill"))return;let e=document.createElement("style");e.textContent="@layer popover-polyfill;",e.setAttribute("suppressHydrationWarning",""),e.addEventListener("securitypolicyviolation",()=>{console.log("CSP rules on this website prevented @tailwindplus/elements from defining `popover-polyfill` as the first CSS layer. This is necessary to ensure the popover polyfill behaves correctly with CSS layers. To fix this, please manually add the following CSS to the top of your first stylesheet:\n\n```\n@layer popover-polyfill;\n```")}),document.documentElement.prepend(e)})),"u">typeof HTMLButtonElement&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})||function(){var e,t;let n,o;function r(e,t,n=!0){Object.defineProperty(e,t,{...Object.getOwnPropertyDescriptor(e,t),enumerable:n})}function i(e){return e&&"function"==typeof e.getRootNode?e.getRootNode():e&&e.parentNode?i(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 a=new WeakMap,l=new WeakMap;
63class s extends Event{constructor(e,t={}){super(e,t);let{source:n,command:o}=t;if(null!=n&&!(n instanceof Element))throw TypeError("source must be an element");a.set(this,n||null),l.set(this,void 0!==o?String(o):"")}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!a.has(this))throw TypeError("illegal invocation");let e=a.get(this);if(!(e instanceof Element))return null;let t=i(e);return t!==i(this.target||document)?t.host:e}get command(){if(!l.has(this))throw TypeError("illegal invocation");return l.get(this)}get action(){throw Error("CommandEvent#action was renamed to CommandEvent#command")}get invoker(){throw Error("CommandEvent#invoker was renamed to CommandEvent#source")}}r(s.prototype,"source"),r(s.prototype,"command");class u extends Event{constructor(e,t={}){throw super(e,t),Error("InvokeEvent has been deprecated, it has been renamed to `CommandEvent`")}}let c=new WeakMap,d=new WeakMap;function h(e){for(let t of e)t.oncommand=Function("event",t.getAttribute("oncommand"))}Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return p.takeRecords(),d.get(this)||null},set(e){let t=d.get(this)||null;t&&this.removeEventListener("command",t),d.set(this,"object"==typeof e||"function"==typeof e?e:null),"function"==typeof e&&this.addEventListener("command",e)}}});let p=new MutationObserver(e=>{for(let t of e){let{target:e}=t;"childList"===t.type?h(e.querySelectorAll("[oncommand]")):h([e])}});function f(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 Error("Input elements no longer support `commandfor`");let n=e.target.closest("button[commandfor], button[command]");if(!n)return;if(n.form&&"button"!==n.getAttribute("type"))throw e.preventDefault(),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(n.hasAttribute("command")!==n.hasAttribute("commandfor")){let e=n.hasAttribute("command")?"command":"commandfor",t=n.hasAttribute("command")?"commandfor":"command";throw Error(`Element with ${e} attribute must also have a ${t} attribute to function.`)}if("show-popover"!==n.command&&"hide-popover"!==n.command&&"toggle-popover"!==n.command&&"show-modal"!==n.command&&"close"!==n.command&&!n.command.startsWith("--"))return void console.warn(`"${n.command}" is not a valid command value. Custom commands must begin with --`);let o=n.commandForElement;if(!o)return;let r=new s("command",{command:n.command,source:n,cancelable:!0});if(o.dispatchEvent(r),r.defaultPrevented)return;let i=r.command.toLowerCase();if(o.popover){let e=!o.matches(":popover-open");e&&("toggle-popover"===i||"show-popover"===i)?o.showPopover({source:n}):e||"hide-popover"!==i||o.hidePopover()}else if("dialog"===o.localName){let e=!o.hasAttribute("open");e&&"show-modal"===i?o.showModal():e||"close"!==i||o.close()}}function m(e){e.addEventListener("click",f,!0)}p.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),h(document.querySelectorAll("[oncommand]")),Object.defineProperties(HTMLButtonElement.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(e){if(this.hasAttribute("invokeaction"))throw TypeError("Element has deprecated `invokeaction` attribute, replace with `command`");if(this.hasAttribute("invoketarget"))throw TypeError("Element has deprecated `invoketarget` attribute, replace with `commandfor`");if(null===e)this.removeAttribute("commandfor"),c.delete(this);else if(e instanceof Element){this.setAttribute("commandfor","");let t=i(e);i(this)===t||t===this.ownerDocument?c.set(this,e):c.delete(this)}else throw TypeError("commandForElement must be an element or null")},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=c.get(this);if(e)return e.isConnected?e:(c.delete(this),null);let t=i(this),n=this.getAttribute("commandfor");return(t instanceof Document||t instanceof ShadowRoot)&&n&&t.getElementById(n)||null}},command:{enumerable:!0,configurable:!0,get(){let e=this.getAttribute("command")||"";if(e.startsWith("--"))return e;let t=e.toLowerCase();
63switch(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 Error("invokeAction is deprecated. It has been renamed to command")},set(e){throw Error("invokeAction is deprecated. It has been renamed to command")}},invokeTargetElement:{enumerable:!1,configurable:!0,get(){throw Error("invokeTargetElement is deprecated. It has been renamed to command")},set(e){throw Error("invokeTargetElement is deprecated. It has been renamed to command")}}}),e=HTMLElement,t=e=>{m(e),p.observe(e,{attributeFilter:["oncommand"]}),h(e.querySelectorAll("[oncommand]"))},n=e.prototype.attachShadow,e.prototype.attachShadow=function(e){let o=n.call(this,e);return t(o),o},o=e.prototype.attachInternals,e.prototype.attachInternals=function(){let e=o.call(this);return e.shadowRoot&&t(e.shadowRoot),e},m(document),Object.assign(globalThis,{CommandEvent:s,InvokeEvent:u})}(),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 n=t.open?"closed":"open",o=t.open?"open":"closed";if(e.has(t)){let n=e.get(t);o=n.oldState,clearTimeout(n.id)}e.set(t,{oldState:o,id:setTimeout(()=>{t.dispatchEvent(new ToggleEvent("toggle",{newState:n,oldState:o}))})})}let n=HTMLDialogElement.prototype.show,o=HTMLDialogElement.prototype.showModal,r=HTMLDialogElement.prototype.close;function i(e){let n=new ToggleEvent("beforetoggle",{newState:"closed",oldState:"open",cancelable:!1});e.dispatchEvent(n),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)}}
63,!0),Object.defineProperties(HTMLDialogElement.prototype,{show:{value(){if(this.open||this.matches(":popover-open, :modal")||!this.ownerDocument)return n.apply(this,arguments);let e=new ToggleEvent("beforetoggle",{newState:"open",oldState:"closed",cancelable:!0});this.dispatchEvent(e)&&(t(this),n.apply(this,arguments))}},showModal:{value(){if(this.open||this.matches(":popover-open, :modal")||!this.isConnected||!this.ownerDocument)return o.apply(this,arguments);let e=new ToggleEvent("beforetoggle",{newState:"open",oldState:"closed",cancelable:!0});if(this.dispatchEvent(e))return t(this),o.apply(this,arguments)}},close:{value(){return(this.open||this.matches(":popover-open, :modal"))&&i(this),r.apply(this,arguments)}}})}());var _=!1;if("u">typeof globalThis.window){let e;(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse"))(e||(e={})),document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(_=!0,document.documentElement.dataset.focusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?(_=!1,delete document.documentElement.dataset.focusVisible):0===e.detail&&(_=!0,document.documentElement.dataset.focusVisible="")},!0)}typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{});var Q,X,J,Z=class extends HTMLElement{constructor(){super(...arguments),s(this,Q,new AbortController),s(this,X,!1),s(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){if(null==t||!1===t)return void this.removeAttribute(e);this.setAttribute(e,t.toString())}}));u(this,X,!0);let e=l(this,Q).signal;queueMicrotask(()=>{if(!e.aborted)try{this.mount?.(e)}catch(e){console.error(e)}})}disconnectedCallback(){l(this,Q).abort(),u(this,Q,new AbortController)}setAttributeNoCallbacks(e,t){try{u(this,J,!0),this.setAttribute(e,t)}finally{u(this,J,!1)}}removeAttributeNoCallbacks(e){try{u(this,J,!0),this.removeAttribute(e)}finally{u(this,J,!1)}}attributeChangedCallback(e,t,n){l(this,X)&&(l(this,J)||t!==n&&this.onAttributeChange?.(e,t,n))}};function ee(e,t){typeof globalThis.customElements>"u"||customElements.get(e)===t||customElements.define(e,t)}function et(){let e=[],t={addEventListener:(e,n,o,r)=>(e.addEventListener(n,o,r),t.add(()=>e.removeEventListener(n,o,r))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return queueMicrotask(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let o=e.style.getPropertyValue(t);return t.startsWith("--")?e.style.setProperty(t,n):Object.assign(e.style,{[t]:n}),this.add(()=>{t.startsWith("--")?e.style.setProperty(t,o):Object.assign(e.style,{[t]:o})})},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function en(e,t=()=>[]){let n=!1,o=null,r=et();return{start(i,a){let l=[e,...t()];for(let e of(n=!n&&null!==o&&o!==i,o=i,l))!function(e,t,n=!1){if(n)return t();let o=e.style.transition;e.style.transition="none",t(),e.offsetHeight,e.style.transition=o}(e,()=>{n||("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!==o);r.nextFrame(()=>{for(let e of l)n?"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="");r.requestAnimationFrame(()=>{r.add(eo(e,()=>{if(!(n&&l.some(e=>er(e)))){for(let e of l)delete e.dataset.transition,delete e.dataset.enter,delete e.dataset.closed,delete e.dataset.leave;o=null,a?.()}}))})})}
63,abort(){r.dispose(),n=!1,o=null}}}function eo(e,t){let n=et();if(!e)return n.dispose;let o=!1;n.add(()=>{o=!0});let r=e.getAnimations?.({subtree:!0}).filter(e=>e instanceof CSSTransition)??[];return 0===r.length?t():Promise.allSettled(r.map(e=>e.finished)).then(()=>{o||t()}),n.dispose}function er(e){return(e.getAnimations?.()??[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}Q=new WeakMap,X=new WeakMap,J=new WeakMap;var ei=Math.min,ea=Math.max,el=Math.round,es=Math.floor,eu=e=>({x:e,y:e}),ec={left:"right",right:"left",bottom:"top",top:"bottom"},ed={start:"end",end:"start"};function eh(e,t){return"function"==typeof e?e(t):e}function ep(e){return e.split("-")[0]}function ef(e){return e.split("-")[1]}function em(e){return"x"===e?"y":"x"}function eg(e){return"y"===e?"height":"width"}var eb=new Set(["top","bottom"]);function ev(e){return eb.has(ep(e))?"y":"x"}function ew(e){return e.replace(/start|end/g,e=>ed[e])}var ey=["left","right"],eA=["right","left"],eE=["top","bottom"],ex=["bottom","top"];function eS(e){return e.replace(/left|right|bottom|top/g,e=>ec[e])}function eT(e){let{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function ek(e,t,n){let{reference:o,floating:r}=e,i=ev(t),a=em(ev(t)),l=eg(a),s=ep(t),u="y"===i,c=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,h=o[l]/2-r[l]/2,p;switch(s){case"top":p={x:c,y:o.y-r.height};break;case"bottom":p={x:c,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(ef(t)){case"start":p[a]-=h*(n&&u?-1:1);break;case"end":p[a]+=h*(n&&u?-1:1)}return p}var eL=async(e,t,n)=>{let{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=ek(u,o,s),h=o,p={},f=0;for(let n=0;n<l.length;n++){let{name:i,fn:m}=l[n],{x:g,y:b,data:v,reset:w}=await m({x:c,y:d,initialPlacement:o,placement:h,strategy:r,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=g??c,d=b??d,p={...p,[i]:{...p[i],...v}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):w.rects),{x:c,y:d}=ek(u,h,s)),n=-1)}return{x:c,y:d,placement:h,strategy:r,middlewareData:p}};async function eI(e,t){var n,o;void 0===t&&(t={});let{x:r,y:i,platform:a,rects:l,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=eh(t,e),m="number"!=typeof(o=f)?{top:0,right:0,bottom:0,left:0,...o}:{top:o,right:o,bottom:o,left:o},g=s[p?"floating"===h?"reference":"floating":h],b=eT(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(g)))||n?g:g.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),v="floating"===h?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await (null==a.isElement?void 0:a.isElement(w))&&await (null==a.getScale?void 0:a.getScale(w))||{x:1,y:1},A=eT(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:u}):v);return{top:(b.top-A.top+m.top)/y.y,bottom:(A.bottom-b.bottom+m.bottom)/y.y,left:(b.left-A.left+m.left)/y.x,right:(A.right-b.right+m.right)/y.x}}function eD(){return"u">typeof window}function eP(e){return eO(e)?(e.nodeName||"").toLowerCase():"#document"}function eC(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eM(e){var t;return null==(t=(eO(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eO(e){return!!eD()&&(e instanceof Node||e instanceof eC(e).Node)}function eB(e){return!!eD()&&(e instanceof Element||e instanceof eC(e).Element)}function eR(e){return!!eD()&&(e instanceof HTMLElement||e instanceof eC(e).HTMLElement)}function eq(e){return!(!eD()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof eC(e).ShadowRoot)}var eW=new Set(["inline","contents"]);function eN(e){let{overflow:t,overflowX:n,overflowY:o,display:r}=e_(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!eW.has(r)}var eF=new Set(["table","td","th"]),eH=[":popover-open",":modal"];function e$(e){return eH.some(t=>{try{return e.matches(t)}catch{return!1}})}var eK=["transform","translate","scale","rotate","perspective"],ej=["transform","translate","scale","rotate","perspective","filter"],eV=["paint","layout","strict","content"];function ez(e){let t=eU(),n=eB(e)?e_(e):e;return eK.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||ej.some(e=>(n.willChange||"").includes(e))||eV.some(e=>(n.contain||"").includes(e))}function eU(){return!(typeof CSS>"u")&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}var eG=new Set(["html","body","#document"]);function eY(e){return eG.has(eP(e))}function e_(e){return eC(e).getComputedStyle(e)}function eQ(e){return eB(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eX(e){if("html"===eP(e))return e;let t=e.assignedSlot||e.parentNode||eq(e)&&e.host||eM(e);return eq(t)?t.host:t}function eJ(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=eX(t);return eY(n)?t.ownerDocument?t.ownerDocument.body:t.body:eR(n)&&eN(n)?n:e(n)}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=eC(r);if(i){let e=eZ(a);
63return t.concat(a,a.visualViewport||[],eN(r)?r:[],e&&n?eJ(e):[])}return t.concat(r,eJ(r,[],n))}function eZ(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e0(e){let t=e_(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,r=eR(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=el(n)!==i||el(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function e1(e){return eB(e)?e:e.contextElement}function e2(e){let t=e1(e);if(!eR(t))return eu(1);let n=t.getBoundingClientRect(),{width:o,height:r,$:i}=e0(t),a=(i?el(n.width):n.width)/o,l=(i?el(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}var e3=eu(0);function e4(e){let t=eC(e);return eU()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e3}function e5(e,t,n,o){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=e1(e),l=eu(1);t&&(o?eB(o)&&(l=e2(o)):l=e2(e));let s=(void 0===(r=n)&&(r=!1),o&&(!r||o===eC(a))&&r)?e4(a):eu(0),u=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,d=i.width/l.x,h=i.height/l.y;if(a){let e=eC(a),t=o&&eB(o)?eC(o):o,n=e,r=eZ(n);for(;r&&o&&t!==n;){let e=e2(r),t=r.getBoundingClientRect(),o=e_(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=i,c+=a,r=eZ(n=eC(r))}}return eT({width:d,height:h,x:u,y:c})}function e7(e,t){let n=eQ(e).scrollLeft;return t?t.left+n:e5(eM(e)).left+n}function e8(e,t,n){void 0===n&&(n=!1);let o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-(n?0:e7(e,o)),y:o.top+t.scrollTop}}var e6=new Set(["absolute","fixed"]);function e9(e,t,n){var o;let r;if("viewport"===t)r=function(e,t){let n=eC(e),o=eM(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,s=0;if(r){i=r.width,a=r.height;let e=eU();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t){let t,n,i,a,l,s,u;o=eM(e),t=eM(o),n=eQ(o),i=o.ownerDocument.body,a=ea(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=ea(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+e7(o),u=-n.scrollTop,"rtl"===e_(i).direction&&(s+=ea(t.clientWidth,i.clientWidth)-a),r={width:a,height:l,x:s,y:u}}else if(eB(t)){let e,o,i,a;o=(e=e5(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,a=eR(t)?e2(t):eu(1),r={width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:i*a.x,y:o*a.y}}else{let n=e4(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eT(r)}function te(e){return"static"===e_(e).position}function tt(e,t){if(!eR(e)||"fixed"===e_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eM(e)===n&&(n=n.ownerDocument.body),n}function tn(e,t){var n;let o=eC(e);if(e$(e))return o;if(!eR(e)){let t=eX(e);for(;t&&!eY(t);){if(eB(t)&&!te(t))return t;t=eX(t)}return o}let r=tt(e,t);for(;r&&(n=r,eF.has(eP(n)))&&te(r);)r=tt(r,t);return r&&eY(r)&&te(r)&&!ez(r)?o:r||function(e){let t=eX(e);for(;eR(t)&&!eY(t);){if(ez(t))return t;if(e$(t))break;t=eX(t)}return null}(e)||o}var to=async function(e){let t=this.getOffsetParent||tn,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=eR(t),r=eM(t),i="fixed"===n,a=e5(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=eu(0);if(o||!o&&!i)if(("body"!==eP(t)||eN(r))&&(l=eQ(t)),o){let e=e5(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=e7(r));i&&!o&&r&&(s.x=e7(r));let u=!r||o||i?eu(0):e8(r,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},tr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e,i="fixed"===r,a=eM(o),l=!!t&&e$(t.floating);if(o===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=eu(1),c=eu(0),d=eR(o);if((d||!d&&!i)&&(("body"!==eP(o)||eN(a))&&(s=eQ(o)),eR(o))){let e=e5(o);u=e2(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}let h=!a||d||i?eu(0):e8(a,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-s.scrollTop*u.y+c.y+h.y}},getDocumentElement:eM,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e,i=[..."clippingAncestors"===n?e$(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let o=eJ(e,[],!1).filter(e=>eB(e)&&"body"!==eP(e)),r=null,i="fixed"===e_(e).position,a=i?eX(e):e;for(;eB(a)&&!eY(a);
63){let t=e_(a),n=ez(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&!!r&&e6.has(r.position)||eN(a)&&!n&&function e(t,n){let o=eX(t);return!(o===n||!eB(o)||eY(o))&&("fixed"===e_(o).position||e(o,n))}(e,a))?o=o.filter(e=>e!==a):r=t,a=eX(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((e,n)=>{let o=e9(t,n,r);return e.top=ea(o.top,e.top),e.right=ei(o.right,e.right),e.bottom=ei(o.bottom,e.bottom),e.left=ea(o.left,e.left),e},e9(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:tn,getElementRects:to,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=e0(e);return{width:t,height:n}},getScale:e2,isElement:eB,isRTL:function(e){return"rtl"===e_(e).direction}};function ti(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ta(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let o=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),o}function tl(e){return ts(e)&&"tabIndex"in e}function ts(e){var t;return"object"==typeof(t=e)&&null!==t&&"nodeType"in t&&"tagName"in e}function tu(e){return ts(e)&&"accessKey"in e}function tc(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}var td={get selectRequired(){let e=document.createElement("select");e.setAttribute("required","true");let t=e.validationMessage;return Object.defineProperty(this,"selectRequired",{value:t}),t}};function th(e,t,n){function o(){if(!tc(e)){for(let t of e.children)if(tc(t))return;n()}}if("u">typeof ResizeObserver){let n=new ResizeObserver(o);n.observe(e),t.addEventListener("abort",()=>n.disconnect())}if("u">typeof IntersectionObserver){let n=new IntersectionObserver(o);n.observe(e),t.addEventListener("abort",()=>n.disconnect())}}var tp=["[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 tf(e,t,n){let o=t?e.indexOf(t):null;switch(-1===o&&(o=null),n){case 0:for(let t=0;t<e.length;t++)if(tc(e[t]))return e[t];return null;case 1:for(let t=e.length-1;t>=0;t--)if(tc(e[t]))return e[t];return null;case 2:if(null===o)return tf(e,t,1);for(let t=o-1;t>=0;t--)if(tc(e[t]))return e[t];return null;case 3:if(null===o)return tf(e,t,0);for(let t=o+1;t<e.length;t++)if(tc(e[t]))return e[t];return null;case 4:return null}}var tm=[];z(()=>{function e(e){if(e.target===document.body||tm[0]===e.target)return;let t=e.target;t&&"closest"in t&&(t=t.closest(tp),tm.unshift(t??e.target),(tm=tm.filter(e=>null!=e&&e.isConnected)).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 tg=!1,tb=!1;"u">typeof navigator&&(tg=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),tb=navigator.userAgent.toLowerCase().includes("firefox"));var tv=!1;function tw(e,t,n,o,r,i){let a;!function(e){if(tb||tg||tA.has(e))return;tA.add(e);let t=null;e.addEventListener("mousedown",()=>{tv&&(e.body.setAttribute("tabindex","-1"),t&&clearTimeout(t),t=setTimeout(()=>e.body.removeAttribute("tabindex")))},{capture:!0})}(e.ownerDocument);let l=en(e),s=(a=()=>{},function(t,n){if(a(),!t)return void requestAnimationFrame(()=>{er(e)?eo(e,()=>{e.style.removeProperty("position")}):e.style.removeProperty("position")});if(!n||!e.hasAttribute("anchor"))return;let o=e.getAttribute("anchor"),r=e.getAttribute("anchor-strategy")||"absolute";"absolute"!==r&&"fixed"!==r&&(console.warn(`[createAnchorUpdater] Invalid anchor strategy "${r}" for element:`,e),r="absolute"),a=function(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,u=e1(e),c=r||i?[...u?eJ(u):[],...eJ(t)]:[];
63c.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let d=u&&l?function(e,t){let n=null,o,r=eM(e);function i(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:p}=u;if(l||t(),!h||!p)return;let f={rootMargin:-es(d)+"px "+-es(r.clientWidth-(c+h))+"px "+-es(r.clientHeight-(d+p))+"px "+-es(c)+"px",threshold:ea(0,ei(1,s))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!m)return a();n?a(!1,n):o=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||ti(u,e.getBoundingClientRect())||a(),m=!1}try{n=new IntersectionObserver(g,{...f,root:r.ownerDocument})}catch{n=new IntersectionObserver(g,f)}n.observe(e)}(!0),i}(u,n):null,h=-1,p=null;a&&(p=new ResizeObserver(e=>{let[o]=e;o&&o.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let f,m=s?e5(e):null;return s&&function t(){let o=e5(e);m&&!ti(m,o)&&n(),m=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),d?.(),null==(e=p)||e.disconnect(),p=null,s&&cancelAnimationFrame(f)}}(n,e,()=>{var t,i,a;let l,s,u,c=ta(window.getComputedStyle(e).getPropertyValue("--anchor-gap"),e),d=ta(window.getComputedStyle(e).getPropertyValue("--anchor-offset"),e),h=o.split(" ")[0],p={};switch(h){case"top":case"bottom":p={top:c,left:-1*d,right:d,bottom:c};break;case"left":case"right":p={top:-1*d,bottom:d,left:c,right:c}}(a={strategy:r,placement:o.replace(" ","-"),middleware:[{name:"flip",options:t={padding:p},async fn(e){var n,o,r,i,a,l,s,u;
63let c,d,h,{placement:p,middlewareData:f,rects:m,initialPlacement:g,platform:b,elements:v}=e,{mainAxis:w=!0,crossAxis:y=!0,fallbackPlacements:A,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...T}=eh(t,e);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let k=ep(p),L=ev(g),I=ep(g)===g,D=await (null==b.isRTL?void 0:b.isRTL(v.floating)),P=A||(I||!S?[eS(g)]:(c=eS(g),[ew(g),c,ew(c)])),C="none"!==x;!A&&C&&P.push(...(d=ef(g),h=function(e,t,n){switch(e){case"top":case"bottom":return n?t?eA:ey:t?ey:eA;case"left":case"right":return t?eE:ex;default:return[]}}(ep(g),"start"===x,D),d&&(h=h.map(e=>e+"-"+d),S&&(h=h.concat(h.map(ew)))),h));let M=[g,...P],O=await eI(e,T),B=[],R=(null==(o=f.flip)?void 0:o.overflows)||[];if(w&&B.push(O[k]),y){let e,t,n,o,r=(l=p,s=m,void 0===(u=D)&&(u=!1),e=ef(l),n=eg(t=em(ev(l))),o="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(o=eS(o)),[o,eS(o)]);B.push(O[r[0]],O[r[1]])}if(R=[...R,{placement:p,overflows:B}],!B.every(e=>e<=0)){let e=((null==(r=f.flip)?void 0:r.index)||0)+1,t=M[e];if(t&&("alignment"!==y||L===ev(t)||R.every(e=>ev(e.placement)!==L||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(i=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(E){case"bestFit":{let e=null==(a=R.filter(e=>{if(C){let t=ev(e.placement);return t===L||"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:a[0];e&&(n=e);break}case"initialPlacement":n=g}if(p!==n)return{reset:{placement:n}}}return{}}},{name:"shift",options:i={padding:p},async fn(e){let{x:t,y:n,placement:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=eh(i,e),u={x:t,y:n},c=await eI(e,s),d=ev(ep(o)),h=em(d),p=u[h],f=u[d];if(r){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=p+c[e],o=p-c[t];p=ea(n,ei(p,o))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=f+c[e],o=f-c[t];f=ea(n,ei(f,o))}let m=l.fn({...e,[h]:p,[d]:f});return{...m,data:{x:m.x-t,y:m.y-n,enabled:{[h]:r,[d]:a}}}}}]},l=new Map,u={...(s={platform:tr,...a}).platform,_c:l},eL(n,e,{...s,platform:u})).then(async({x:t,y:n,placement:o})=>{if(!("showPopover"in HTMLElement.prototype&&HTMLElement.prototype.showPopover.toString().includes("[native code]"))&&"absolute"===r){let o=null;for(let t=e.parentElement;t;t=t.parentElement){let e=getComputedStyle(t).position;if("relative"===e||"absolute"===e||"fixed"===e||"sticky"===e){o=t;break}}if(o){let e=o.getBoundingClientRect();t-=e.left+window.scrollX,n-=e.top+window.scrollY}}let i=`${t}px`,a=`${n}px`;switch(o.split("-")[0]){case"top":a=`calc(${n}px - var(--anchor-gap, 0px))`,i=`calc(${t}px + var(--anchor-offset, 0px))`;break;case"right":i=`calc(${t}px + var(--anchor-gap, 0px))`,a=`calc(${n}px + var(--anchor-offset, 0px))`;break;case"bottom":a=`calc(${n}px + var(--anchor-gap, 0px))`,i=`calc(${t}px + var(--anchor-offset, 0px))`;break;case"left":i=`calc(${t}px - var(--anchor-gap, 0px))`,a=`calc(${n}px + var(--anchor-offset, 0px))`}{let t=e.getBoundingClientRect();if(0===t.x&&0===t.y&&0===t.width&&0===t.height)return}Object.assign(e.style,{left:i,top:a,position:r}),await tr.isRTL?.(e)&&Object.assign(e.style,{right:"unset",bottom:"unset"})})})}),u=et();e.hasAttribute("popover")||e.setAttribute("popover","");let c=n();for(let t of c)t.setAttribute("type","button"),t.setAttribute("aria-haspopup","true"),t.setAttribute("aria-controls",e.id),t.setAttribute("aria-expanded","false");function d(){e.hasAttribute("open")&&e.hidePopover()}e.hasAttribute("open")&&queueMicrotask(()=>e.showPopover());let h=new AbortController;t.addEventListener("abort",()=>h.abort()),e.addEventListener("beforetoggle",t=>{let n=ty(t,c);s("open"===t.newState,o?.()??n),"open"===t.newState?n&&(th(n,h.signal,d),th(e,h.signal,d)):(h.abort(),h=new AbortController);let a=e.hasAttribute("open");"open"!==t.newState||a?"closed"===t.newState&&a&&e.removeAttributeNoCallbacks("open"):e.setAttributeNoCallbacks("open",""),"open"===t.newState?(n?.setAttribute("aria-expanded","true"),n?.id&&e.setAttribute("aria-labelledby",n.id),r?.(),tv=""===e.getAttribute("popover")):(n?.setAttribute("aria-expanded","fal
63se"),e.removeAttribute("aria-labelledby"),i?.(),tv=!1),"closed"===t.oldState&&"open"===t.newState?(tg&&(u.dispose(),u=et()),l.start("in")):"open"===t.oldState&&"closed"===t.newState&&(tg&&u.style(e,"transition-property","none"),l.start("out"))},{signal:t}),t.addEventListener("abort",()=>l.abort())}function ty(e,t){return e.source??tm.find(e=>t.includes(e))??t[0]??null}var tA=new WeakSet;function tE(e,t,n,o){function r(){let n=e.getBoundingClientRect();o.style.setProperty(t,n.width+"px")}let i=e.ownerDocument,a=new ResizeObserver(r);a.observe(e),i.addEventListener("transitionend",r,{signal:n}),n.addEventListener("abort",()=>a.disconnect())}var tx=0;function tS(e){return`${e}-${tx++}`}function tT(e,t,n,o){tL||(tL=!0,document.addEventListener("keydown",()=>{tk=Date.now()},{capture:!0})),e.addEventListener(t,e=>{null!==tk&&Date.now()-tk<200||o(e)},{passive:!0,signal:n})}var tk=null,tL=!1,tI=new class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e,this),this.set(e,t)),t}}(()=>({referenceCounter:0,d:et()}));function tD(e){let t=tI.get(e);if(t.referenceCounter++,1===t.referenceCounter){let n,o=[/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0?{before({doc:e,d:t}){function n(e){return!!e.closest("[popover], dialog > *")}t.microTask(()=>{if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=et();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=window.scrollY??window.pageYOffset,r=null;t.addEventListener(e,"click",t=>{if(tl(t.target))try{let o=t.target.closest("a");if(!o)return;let{hash:i}=new URL(o.href),a=e.querySelector(i);tl(a)&&!n(a)&&(r=a)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{var o;if(tl(e.target)&&ts(o=e.target)&&"style"in o)if(n(e.target)){let o=e.target;for(;o.parentElement&&n(o.parentElement);)o=o.parentElement;t.style(o,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}),t.addEventListener(e,"touchmove",e=>{if(tl(e.target)){var t;if(!(tu(t=e.target)&&"INPUT"===t.nodeName))if(n(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(()=>{o!==(window.scrollY??window.pageYOffset)&&window.scrollTo(0,o),r&&r.isConnected&&(r.scrollIntoView({block:"nearest"}),r=null)})})},after(){}}:{before(){},after(){}},{before({doc:e}){let t=e.documentElement;n=Math.max(0,(e.defaultView??window).innerWidth-t.clientWidth),t.style.setProperty("--el-top-layer-scrollbar-offset","0px")},after({doc:e,d:t}){let o=e.documentElement,r=Math.max(0,o.clientWidth-o.offsetWidth),i=Math.max(0,n-r);t.style(o,"paddingRight",`${i}px`),t.add(()=>{o.style.setProperty("--el-top-layer-scrollbar-offset",`-${i}px`)})}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")},after(){}}];o.forEach(({before:n})=>n({doc:e,d:t.d})),o.forEach(({after:n})=>n({doc:e,d:t.d}))}let n=!1;return()=>{n||(n=!0,t.referenceCounter--,t.referenceCounter>0||(t.d.dispose(),tI.delete(e)))}}function tP(e,t){let n=null;e.addEventListener("toggle",t=>{"open"===t.newState?n||(n=tD(e.ownerDocument)):n&&(n(),n=null)},{signal:t}),t.addEventListener("abort",()=>{n&&(n(),n=null)})}var tC=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tM(e){let t=e.innerText??"",n=e.cloneNode(!0);if(!tu(n))return t;let o=!1;for(let e of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let r=o?n.innerText??"":t;return tC.test(r)&&(r=r.replace(tC,"")),r}var tO,tB,tR=class extends Z{constructor(){super(...arguments),s(this,tO,[]),s(this,tB,null)}mount(e){let t=this.getInput(),n=this.getButton(),o=this.getOptions();t.id||(t.id=tS("autocomplete-input")),n&&(n.id||(n.id=tS("autocomplete-button"))),o.id||(o.id=tS("autocomplete-listbox")),tw(o,e,()=>{let e=this.getButton();return e?[e]:[]},()=>this.getInput(),()=>this.onBeforeOpen(),()=>this.onBeforeClose()),tP(o,e),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded","fal
63se"),t.setAttribute("aria-controls",o.id),t.setAttribute("aria-activedescendant",""),t.setAttribute("autocomplete","off"),n&&(n.setAttribute("type","button"),n.setAttribute("tabindex","-1"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-haspopup","listbox"),n.setAttribute("popovertarget",o.id)),o.setAttribute("role","listbox"),o.setAttribute("popover","manual");let r=this,i=new WeakSet;function a(){for(let t of o.getItems())i.has(t)||(i.add(t),t.id||(t.id=tS("option")),t.setAttribute("role","option"),t.setAttribute("aria-selected","false"),t.setAttribute("tabIndex","-1"),t.addEventListener("mousedown",e=>{0===e.button&&(e.preventDefault(),r.selectOption(t))},{signal:e}),tT(t,"mouseover",e,()=>r.setActiveItem(t,!1)),tT(t,"mouseout",e,()=>r.clearActiveItem()));r.filterOptions()}a();let s=new MutationObserver(a);s.observe(this,{attributes:!1,childList:!0,subtree:!0}),n&&tE(n,"--button-width",e,this),tE(t,"--input-width",e,this),t.addEventListener("input",()=>{t.matches(":disabled")||(this.filterOptions(),l(this,tO).length>0?o.hasAttribute("open")||o.showPopover():o.hidePopover())},{signal:e});let u=()=>{t.matches(":disabled")||(t.focus(),o.hasAttribute("open")?o.hidePopover():(this.filterOptions(),l(this,tO).length>0&&o.showPopover()))};for(let r of(t.addEventListener("pointerdown",u,{signal:e}),n&&(n.addEventListener("pointerdown",e=>{e.preventDefault(),u()},{signal:e}),n.addEventListener("click",e=>{e.preventDefault(),e.stopImmediatePropagation()},{signal:e})),t.addEventListener("blur",({relatedTarget:e})=>{e&&this.contains(e)||o.hidePopover()},{signal:e}),t.addEventListener("keydown",e=>{if(!t.matches(":disabled"))switch(e.key){case"ArrowDown":e.preventDefault(),o.hasAttribute("open")||(0===l(this,tO).length&&this.filterOptions(),l(this,tO).length>0&&o.showPopover()),this.goToItem(3);break;case"ArrowUp":e.preventDefault(),o.hasAttribute("open")||(0===l(this,tO).length&&this.filterOptions(),l(this,tO).length>0&&o.showPopover()),this.goToItem(2);break;case"Home":case"PageUp":return o.hasAttribute("open")?(e.preventDefault(),e.stopPropagation(),this.goToItem(0)):void 0;case"End":case"PageDown":return o.hasAttribute("open")?(e.preventDefault(),e.stopPropagation(),this.goToItem(1)):void 0;case"Enter":{let t=this.getActiveItem();t&&(e.preventDefault(),this.selectOption(t)),o.hasAttribute("open")&&(e.preventDefault(),o.hidePopover());break}case"Escape":if(!o.hasAttribute("open"))return;e.preventDefault(),o.hidePopover();break;case"Tab":o.hidePopover()}},{signal:e}),Array.from(o.querySelectorAll("el-option[disabled]"))))r.setAttribute("aria-disabled","true"),r.setAttribute("aria-selected","false");e.addEventListener("abort",()=>{s.disconnect()})}getInput(){let e=this.querySelector("input");if(!e)throw Error("`<el-autocomplete>` must contain an input element.");return e}getButton(){return this.querySelector("button")}getOptions(){let e=this.querySelector("el-options");if(!e)throw Error("`<el-autocomplete>` must contain a `<el-options>` element.");return e}filterOptions(){let e=this.getInput().value.toLowerCase();for(let t of(l(this,tB)!==e&&(this.clearActiveItem(),u(this,tB,e)),u(this,tO,[]),this.getOptions().getItems())){let n=t.getAttribute("value")?.toLowerCase()||"",o=tM(t)?.trim().toLowerCase()??"";""===e||n.includes(e)||o.includes(e)?(l(this,tO).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===l(this,tO).length)return;let t=this.getActiveItem(),n=tf(l(this,tO),t,e);n&&this.setActiveItem(n)}setActiveItem(e,t=!0){let n=this.getInput(),o=this.getActiveItem();null!==o&&o.setAttribute("aria-selected","false"),e.setAttribute("aria-selected","true"),n.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(),n=e.getAttribute("value");n&&(t.value=n,t.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}
63)),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()}};tO=new WeakMap,tB=new WeakMap,ee("el-autocomplete",tR);var tq,tW,tN,tF,tH,t$,tK=class extends Z{constructor(){super(...arguments),s(this,tF),s(this,tq,[]),s(this,tW,null),s(this,tN,({query:e,content:t})=>t.toLocaleLowerCase().includes(e.toLocaleLowerCase().trim()))}mount(e){let t=this.getInput(),n=this.getItems();t.id||(t.id=tS("command-input")),n.id||(n.id=tS("command-items")),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("autocomplete","off"),t.setAttribute("aria-controls",n.id),n.setAttribute("role","listbox");let o=this,r=new WeakSet;function i(t=!1){for(let t of n.getItems())r.has(t)||(r.add(t),t.id||(t.id=tS("item")),t.setAttribute("role","option"),t.setAttribute("tabIndex","-1"),t.setAttribute("aria-selected","false"),t.hasAttribute("disabled")&&t.setAttribute("aria-disabled","true"),tT(t,"mouseover",e,()=>c(o,tF,t$).call(o,t,!1)));c(o,tF,tH).call(o,t),t||o.goToItem(0)}i(!0);let a=new MutationObserver(()=>i(!1));a.observe(this,{attributes:!1,childList:!0,subtree:!0}),tE(t,"--input-width",e,this),t.addEventListener("input",()=>c(this,tF,tH).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())}}},{signal:e}),e.addEventListener("abort",()=>{a.disconnect()})}getInput(){let e=this.querySelector("input");if(!e)throw Error("`<el-command-palette>` must contain an input element.");return e}getItems(){let e=this.querySelector("el-command-list");if(!e)throw Error("`<el-command-palette>` must contain a `<el-command-list>` 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===l(this,tq).length)return;let t=this.getActiveItem(),n=tf(l(this,tq),t,e);n&&c(this,tF,t$).call(this,n)}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})),c(this,tF,tH).call(this,!0),this.clearActiveItem()}setFilterCallback(e){u(this,tN,e)}};tq=new WeakMap,tW=new WeakMap,tN=new WeakMap,tF=new WeakSet,tH=function(e=!1){let t=this.getItems(),n=this.getInput().value??"";for(let e of(u(this,tq,[]),t.getItems())){if(e.closest("el-defaults"))continue;let t=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():tM(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return tM(e).trim()}(e)??"";""!==n&&l(this,tN).call(this,{query:n,node:e,content:t})?(l(this,tq).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 o=this.getSuggestions();
63o&&(""===n?(o.removeAttribute("hidden"),u(this,tq,o.getItems())):o.setAttribute("hidden",""));let r=this.querySelector("el-no-results");r&&(""===n||l(this,tq).length>0?r.setAttribute("hidden",""):r.removeAttribute("hidden")),0===l(this,tq).length?t.setAttribute("hidden",""):t.removeAttribute("hidden"),e&&""===n||(0===l(this,tq).length?this.clearActiveItem():l(this,tW)!==n&&this.goToItem(0),u(this,tW,n))},t$=function(e,t=!0){let n=this.getInput(),o=this.getActiveItem();if(e===o)return;if(null!==o){o.setAttribute("aria-selected","false");let e=this.querySelector(`el-command-preview[for="${o.id}"]`);e&&e.setAttribute("hidden","")}e.setAttribute("aria-selected","true"),n.setAttribute("aria-activedescendant",e.id);let r=this.querySelector(`el-command-preview[for="${e.id}"]`);r&&r.removeAttribute("hidden"),t&&e.scrollIntoView({block:"nearest"}),this.dispatchEvent(new CustomEvent("change",{detail:{relatedTarget:e},bubbles:!1,cancelable:!1}))};var tj=class extends Z{getItems(){return Array.from(this.querySelectorAll(`${tp},[role="option"]`))}},tV=class extends Z{getItems(){return Array.from(this.querySelectorAll(`${tp},[role="option"]`))}},tz=class extends Z{},tU=class extends Z{},tG=class extends Z{getItems(){return Array.from(this.querySelectorAll(`${tp},[role="option"]`))}};ee("el-command-palette",tK),ee("el-command-list",tj),ee("el-defaults",tV),ee("el-no-results",tz),ee("el-command-group",tG),ee("el-command-preview",tU);var tY=null;"u">typeof globalThis.window&&(tY=HTMLDialogElement.prototype.close,Object.defineProperties(HTMLDialogElement.prototype,{close:{value(e){let t=this.closest("el-dialog");if(!(t instanceof t1))return tY?.call(this,e);let n=t.beforeClose(e);if(!0===n)return tY?.call(this,e);!1!==n&&n.then(t=>t?tY?.call(this,e):null).catch(console.error)}}}),document.addEventListener("command",e=>{let t=e.target;if(!(t instanceof HTMLDialogElement)||!("command"in e)||"close"!==e.command)return;let n=t.closest("el-dialog");if(!(n instanceof t1))return;let o=e.source?.tagName==="BUTTON"?e.source.value:void 0,r=n.beforeClose(o);!0!==r&&(e.stopImmediatePropagation(),e.preventDefault(),!1!==r&&r.then(e=>e?tY?.call(t,o):null).catch(console.error))},!0));var t_,tQ,tX,tJ,tZ,t0,t1=class extends Z{constructor(){super(...arguments),s(this,tZ),s(this,t_,null),s(this,tQ,null),s(this,tX,!0),s(this,tJ,en(this,()=>Array.from(this.querySelectorAll("el-dialog-panel,el-dialog-backdrop"))))}mount(e){var t,n,o;let r=this.getNativeDialog();r.removeAttribute("open"),r.style.setProperty("right","var(--el-top-layer-scrollbar-offset, 0px)");let i=this.hasAttribute("open");for(let e of c(this,tZ,t0).call(this))e.setAttribute("aria-expanded",i.toString());t=r,n=e,o=e=>{e.preventDefault();let t=new Event("cancel",{bubbles:!1,cancelable:!0});this.dispatchEvent(t)&&r.close("")},t.addEventListener("keydown",e=>{"Escape"===e.key&&(e.defaultPrevented||o(e))},{signal:n}),th(this.querySelector("el-dialog-panel")??r,e,()=>{this.hasAttribute("open")&&r.close("")});let a=null;r.addEventListener("beforetoggle",e=>{"open"===e.newState&&"closed"===e.oldState&&this.beforeOpen();let t=this.hasAttribute("open");if("open"!==e.newState||t?"closed"===e.newState&&t&&(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"===e.newState&&"closed"===e.oldState)tm.length>0&&!a&&(a=tm[0]);else if("closed"===e.newState&&"open"===e.oldState){let e=l(this,tX);setTimeout(()=>{if(!e){a&&a===document.activeElement&&a.isConnected&&"blur"in a&&"function"==typeof a.blur&&a.blur();return}a&&a!==document.activeElement&&a.isConnected&&Y(a),a=null})}},{signal:e}),r.addEventListener("focusout",e=>{null===e.relatedTarget&&queueMicrotask(()=>{r.contains(r.ownerDocument.activeElement)||r.focus()})},{signal:e}),e.addEventListener("abort",()=>{var e;l(this,tJ).abort(),null==(e=l(this,tQ))||e.call(this)}),this.hasAttribute("open")&&r.showModal()}onAttributeChange(e,t,n){if("open"===e){let e=this.getNativeDialog();for(let e of c(this,tZ,t0).call(this))e.setAttribute("aria-expanded",null!==n?"true":"false");null===n?e.close():e.showModal()}}getNativeDialog(){let e=this.querySelector("dialog");if(!e)throw Error("[ElDialog] No `<dialog>` element found");return e}beforeOpen(){u(this,tX,!0),l(this,t_)&&(l(this,t_).abort(),u(this,t_,null)),l(this,tQ)||u(this,tQ,tD(this.ownerDocument)),l(this,tJ)&&l(this,tJ).start("in")}beforeClose(e){if(l(this,tQ)&&(l(this,tQ).call(this),u(this,tQ,null)),l(this,t_))return!1;u(this,t_,new AbortController);let t=l(this,t_).signal;return new Promise(n=>{l(this,tJ)?.start("out",()=>{t.aborted||(u(this,t_,null),requestAnimationFrame(()=>{let t=this.getNativeDialog(),n=t.style.cssText;t.style.cssText=n+"transition-duration: 0 !important;",tY?.call(t,e),requestAnimationFrame(()=>{t.style.cssText=n})}),n(!0))})})}show(){this.getNativeDialog().showModal()}hide({restoreFocus:e=!0}={}){u(this,tX,e),this.getNativeDialog().close()}};t_=new WeakMap,tQ=new WeakMap,tX=new WeakMap,tJ=new WeakMap,tZ=new WeakSet,t0=function(){return document.querySelectorAll(`[commandfor="${this.getNativeDialog().id}"]`)},i(t1,"observedAttributes",["open"]);var t2=class extends Z{mount(e){var t,n,o;let r;t=this,n=e,o=()=>{let e=this.getDialog(),t=e.getNativeDialog();if(!t.hasAttribute("open"))return;let n=new Event("cancel",{bubbles:!1,cancelable:!0});e.dispatchEvent(n)&&t.close()},r=null,document.addEventListener("pointerdown",e=>{r=e.composedPath()[0]||e.target},!0),document.addEventListener("click",e=>{if(r!==e.target)return;if(e.target===t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();if(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom)return;o(e);return}let n=t.closest("dialog");
63if(n&&n.contains(e.target)&&!t.contains(e.target)||e.target===e.target.ownerDocument.documentElement)return void o(e)},{signal:n,capture:!0})}getDialog(){let e=this.closest("el-dialog");if(!e)throw Error("[ElDialogPanel] No `<el-dialog>` parent found");return e}},t3=class extends Z{mount(){this.setAttribute("inert","")}};ee("el-dialog",t1),ee("el-dialog-panel",t2),ee("el-dialog-backdrop",t3);var t4,t5,t7,t8=class extends Z{constructor(){super(...arguments),s(this,t5),s(this,t4,en(this))}mount(e){this.id||(this.id=tS("disclosure")),this.hasAttribute("hidden")?this.removeAttributeNoCallbacks("open"):this.setAttributeNoCallbacks("open","");let t=!this.hasAttribute("hidden");for(let e of c(this,t5,t7).call(this))e.setAttribute("aria-expanded",t.toString()),e.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}),e.addEventListener("abort",()=>l(this,t4).abort())}onAttributeChange(e,t,n){switch(e){case"hidden":for(let e of(null===n?this.setAttributeNoCallbacks("open",""):this.removeAttributeNoCallbacks("open"),c(this,t5,t7).call(this)))e.setAttribute("aria-expanded",null===n?"true":"false");null===n?l(this,t4).start("in"):l(this,t4).start("out");break;case"open":null===n?this.hide():this.show()}}show(){this.removeAttribute("hidden")}hide(){this.setAttribute("hidden","")}toggle(){this.hasAttribute("hidden")?this.show():this.hide()}};function t6(e,t,n,o,r){let i=null;for(let n of t)n.addEventListener("pointerdown",t=>{0===t.button&&e.classList.contains(":popover-open")&&(i=Date.now()+100)},{signal:o,capture:!0});e.ownerDocument.addEventListener("focusin",o=>{if(!n.hasAttribute("open"))return;let a=o.target,l=o.relatedTarget;null!==a&&(i&&Date.now()<i||e.contains(a)||t.some(e=>e.contains(a))||r(l))},{signal:o})}function t9(e,t,n){let o=null,r="",i=null,a=null;e.id||(e.id=tS(t.role));let l=t.getButton();l.id||(l.id=tS(`${t.role}-button`)),tw(e,n,()=>[t.getButton()],()=>t.getButton(),()=>t.onBeforeOpen(),()=>{t.onBeforeClose(),m(),r="",i&&(clearTimeout(i),i=null)}),tP(e,n),e.setAttribute("popover","manual"),e.setAttribute("role",t.role),l.setAttribute("popovertarget",e.id),l.setAttribute("aria-haspopup",t.role);let s=new WeakSet;function u(){let e=t.getItems(),o={passive:!0,signal:n},r="menu"===t.role?"menuitem":"option";for(let i of e)s.has(i)||(s.add(i),i.id||(i.id=tS("item")),i.setAttribute("role",r),i.setAttribute("tabIndex","-1"),i.addEventListener("click",()=>t.onItemClick(i),o),tT(i,"mouseover",n,()=>f(i,!1)),tT(i,"mouseout",n,()=>m()))}u();let c=new MutationObserver(u);c.observe(e,{attributes:!1,childList:!0,subtree:!0}),t6(e,[l],e,n,t=>{null===t&&(a=Date.now()+100),e.hidePopover()});let d=null,h=!1;l.addEventListener("pointerdown",t=>{if(0===t.button&&!l.matches(":disabled")){if("touch"===t.pointerType){h=!0;return}e.togglePopover(),d=Date.now()}},{signal:n}),document.addEventListener("pointerup",t=>{if(!(0!==t.button||l.matches(":disabled"))&&e.hasAttribute("open")){if(Date.now()-(d??0)>200){let n=t.composedPath();if(n.includes(e)){if(null!==d){let e=o;e&&e.click()}return}for(let t of n)if(t instanceof Element&&(t.getAttribute("commandfor")||t.getAttribute("popovertarget"))===e.id)return;e.hidePopover()}d=null}},{signal:n,capture:!0}),l.addEventListener("click",e=>{if(h){h=!1;return}e.preventDefault(),e.stopPropagation()},{signal:n});let p=null;function f(t,n=!0){let r=o;null!==r&&r.setAttribute("tabIndex","-1"),e.removeAttribute("tabIndex"),t.setAttribute("tabIndex","0"),t.focus({preventScroll:!0}),o=t,n&&t.scrollIntoView({block:"nearest"})}function m(){let t=o;null!==t&&t.setAttribute("tabIndex","-1"),o=null,e.hasAttribute("open")&&(e.setAttribute("tabIndex","0"),e.focus())}function g(e,n=!1){if(""===e)return null;let r=t.getItems(),i=e.toLowerCase(),a=o,l=a?r.indexOf(a):-1;if(!n&&a&&-1!==l&&tc(a)&&(a.textContent?.trim().toLowerCase()||"").startsWith(i))return a;for(let e=l+1;e<r.length;e++)if((r[e].textContent?.trim().toLowerCase()||"").startsWith(i)&&tc(r[e]))return r[e];for(let e=0;e<=l;e++)if((r[e].textContent?.trim().toLowerCase()||"").startsWith(i)&&tc(r[e]))return r[e];return null}return e.addEventListener("beforetoggle",e=>{"open"===e.newState&&"closed"===e.oldState&&tm.length>0&&!p&&(p=tm[0])},{signal:n}),e.addEventListener("toggle",t=>{"closed"===t.newState&&"open"===t.oldState&&setTimeout(()=>{!e.contains(document.activeElement)&&document.activeElement!==document.body||a&&Date.now()<a||(p&&p!==document.activeElement&&p.isConnected&&Y(p),p=null)})},{signal:n}),n.addEventListener("abort",()=>{i&&(clearTimeout(i),i=null),c.disconnect()}),{ignoreNextFocusRestoration:()=>a=Date.now()+100,setActiveItem:f,clearActiveItem:m,getActiveItem:function(){return o},findItemBySearchQuery:g,handleSearchKey:function(e){let t=""===r;i&&(clearTimeout(i),i=null);let n=g(r+=e.toLowerCase(),t);n&&f(n,!0),i=setTimeout(()=>{r="",i=null},350)},hasActiveSearchQuery:function(){return""!==r}}}t4=new WeakMap,t5=new WeakSet,t7=function(){return document.querySelectorAll(`[commandfor="${this.id}"]`)},i(t8,"observedAttributes",["hidden","open"]),ee("el-disclosure",t8);var ne,nt,nn,no,nr,ni=class extends Z{constructor(){super(...arguments),s(this,no),s(this,ne,this.attachInternals()),s(this,nt,""),s(this,nn,null)}mount(e){let t=this.getOptions();this.value=this.getAttribute("value")??this.value??"";let n=this.getButton();for(let o of(n.id||(n.id=tS("select-button")),tE(n,"--button-width",e,this),n.addEventListener("keydown",e=>{if(!n.matches(":disabled"))switch(e.key){case"ArrowUp":case"ArrowDown":t.showPopover(),this.goToItem("selected"),e.preventDefault();break;case"Enter":e.preventDefault(),l(this,ne).form&&l(this,ne).form.requestSubmit();break;case" ":if(t.hasAttribute("open")&&l(this,nn)&&l(this,nn).hasActiveSearchQuery()){e.preventDefault(),e.stopPropagation(),l(this,nn).handleSearchKey(e.key);break}e.preventDefault(),t.hasAttribute("open")?t.hidePopover():(t.showPopover(),this.goToItem("selected"));break;
63default:!t.hasAttribute("open")||1!==e.key.length||e.ctrlKey||e.altKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),this.handleSearchKey(e.key))}},{signal:e}),l(this,ne).labels))o.setAttribute("for",n.id);for(let o of(u(this,nn,t9(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(l(this,nn)&&l(this,nn).hasActiveSearchQuery()){e.preventDefault(),e.stopPropagation(),l(this,nn).handleSearchKey(e.key);return}case"Enter":{e.preventDefault(),e.stopPropagation();let n=this.getActiveItem();n?n.click():t.hidePopover();return}case"Tab":l(this,nn)&&l(this,nn).ignoreNextFocusRestoration();break;case"Escape":e.preventDefault(),e.stopPropagation(),t.hidePopover(),n.focus();break;default:1!==e.key.length||e.ctrlKey||e.altKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),l(this,nn)&&l(this,nn).handleSearchKey(e.key))}},{signal:e}),t.addEventListener("toggle",e=>{"open"===e.newState&&this.onOpen()},{signal:e}),Array.from(t.querySelectorAll("el-option[disabled]"))))o.setAttribute("aria-disabled","true"),o.setAttribute("aria-selected","false")}onAttributeChange(e,t,n){switch(e){case"value":null!==n&&(this.value=n);break;case"required":c(this,no,nr).call(this)}}getButton(){let e=this.querySelector("button");if(!e)throw Error("`<el-select>` must contain a button element.");return e}getOptions(){let e=this.querySelector("el-options");if(!e)throw Error("`<el-select>` must contain a `<el-options>` 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 l(this,nn)?.getActiveItem()}getSelectedOption(){return this.getOptionByName(l(this,nt))}goToItem(e=4){let t=this.getItems();if(0===t.length)return;let n=this.getActiveItem();if(null===n&&(2===e||3===e))return void this.goToItem("selected");if("selected"===e){let e=this.getSelectedOption();e&&tc(e)?this.setActiveItem(e):this.goToItem(0);return}let o=tf(t,n,e);o&&this.setActiveItem(o)}setActiveItem(e){l(this,nn)&&l(this,nn).setActiveItem(e)}clearActiveItem(){l(this,nn)&&l(this,nn).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 n=this.getActiveItem();null!==n&&n.setAttribute("tabIndex","-1")}handleSearchKey(e){l(this,nn)&&l(this,nn).handleSearchKey(e)}set value(e){u(this,nt,e),l(this,ne).setFormValue(e),c(this,no,nr).call(this);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 l(this,nt)}};ne=new WeakMap,nt=new WeakMap,nn=new WeakMap,no=new WeakSet,nr=function(){if(!this.hasAttribute("required")||l(this,nt))return void l(this,ne).setValidity({});l(this,ne).setValidity({valueMissing:!0},td.selectRequired,this.getButton())},i(ni,"formAssociated",!0),i(ni,"observedAttributes",["required"]);var na=class extends Z{mount(){this.update()}update(){let e=this.getSelect().getSelectedOption();if(!e)return;let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));this.replaceChildren(t)}getSelect(){let e=this.closest("el-select");if(!e)throw Error("`<el-selectedcontent>` must be inside of a `<el-select>` element.");return e}};ee("el-select",ni),ee("el-selectedcontent",na);var nl,ns=class extends Z{getButton(){let e=this.querySelector("button");if(!e)throw Error("[ElDropdown] No `<button>` element found");return e}mount(e){let t=this.getButton();for(let n of(t.id||(t.id=tS("dropdown-button")),tE(t,"--button-width",e,this),this.querySelectorAll("label")))n.setAttribute("for",t.id)}},nu=class extends Z{constructor(){super(...arguments),s(this,nl,null)}mount(e){u(this,nl,t9(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")&&l(this,nl)&&l(this,nl).hasActiveSearchQuery()){e.preventDefault(),e.stopPropagation(),l(this,nl).handleSearchKey(e.key);break}case"Enter":e.preventDefault(),this.hasAttribute("open")?this.hidePopover():(this.showPopover(),this.goToItem(0));break;
63default:!this.hasAttribute("open")||1!==e.key.length||e.ctrlKey||e.altKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),l(this,nl)&&l(this,nl).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(l(this,nl)&&l(this,nl).hasActiveSearchQuery()){e.preventDefault(),e.stopPropagation(),l(this,nl).handleSearchKey(e.key);return}case"Enter":{e.preventDefault(),e.stopPropagation();let t=this.getActiveItem();t?t.click():this.hidePopover();return}case"Tab":l(this,nl)&&l(this,nl).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(),l(this,nl)&&l(this,nl).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 n=this.getActiveItem();null!==n&&n.setAttribute("tabIndex","-1")}goToItem(e=4){let t=this.getItems();if(0===t.length)return;let n=tf(t,this.getActiveItem(),e);n&&this.setActiveItem(n)}setActiveItem(e){l(this,nl)&&l(this,nl).setActiveItem(e)}clearActiveItem(){l(this,nl)&&l(this,nl).clearActiveItem()}getDropdown(){let e=this.closest("el-dropdown");if(!e)throw Error("[ElMenu] No `<el-dropdown>` element found");return e}getItems(){return Array.from(this.querySelectorAll(`${tp},[role="menuitem"]`))}getActiveItem(){return l(this,nl)?.getActiveItem()||null}onAttributeChange(e,t,n){"open"===e&&(null===n?this.hidePopover():this.showPopover())}};nl=new WeakMap,i(nu,"observedAttributes",["anchor","open"]),ee("el-menu",nu),ee("el-dropdown",ns);var nc=class extends Z{onAttributeChange(e,t,n){"open"===e&&(null===n?this.hidePopover():this.showPopover())}getOptionByName(e){return this.querySelector(`el-option[value="${e}"]`)||null}getItems(){return Array.from(this.querySelectorAll("el-option:not([disabled])"))}};i(nc,"observedAttributes",["anchor","open"]);var nd=class extends Z{};ee("el-options",nc),ee("el-option",nd);var nh=class extends Z{getPopovers(){return Array.from(this.querySelectorAll("* > el-popover"))}},np=class extends Z{mount(e){if(!this.id)throw Error("[ElPopover] No id found for popover (ensure `id` is set)");let t=this.getButtons();for(let n of t)n.id||(n.id=tS("popover-button")),n.addEventListener("keydown",e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),this.togglePopover())},{signal:e});tw(this,e,()=>this.getButtons()),this.setAttribute("tabindex","-1");let n=this,o=this.closest("el-popover-group");o&&o.getPopovers().includes(this)&&(n=o),t6(n,t,this,e,()=>this.hidePopover());let r=new AbortController;e.addEventListener("abort",()=>r.abort()),this.addEventListener("beforetoggle",e=>{if("open"===e.newState){let n=ty(e,t);n&&tE(n,"--button-width",r.signal,this)}else r.abort(),r=new AbortController}),this.addEventListener("toggle",e=>{"closed"===e.newState&&"open"===e.oldState&&setTimeout(()=>{if(!this.contains(document.activeElement)&&document.activeElement!==document.body)return;let n=ty(e,t);n&&n!==document.activeElement&&n.isConnected&&Y(n)})},{signal:e})}getButtons(){let e=this.id,t=Array.from(document.querySelectorAll(`[popovertarget="${e}"]`));if(!t)throw Error('[ElPopover] No button found for popover (ensure you add a `<button popovertarget="${id}">` on the page)');return t}onAttributeChange(e,t,n){"open"===e&&(null===n?this.hidePopover():this.showPopover())}};
63i(np,"observedAttributes",["anchor","open"]),ee("el-popover",np),ee("el-popover-group",nh);var nf=class extends Z{mount(e){let t=this.getList(),n=this.getPanels(),o=t.getTabButtons(),r=n.getPanels();if(o.length!==r.length)return void console.warn("[ElTabGroup] Mismatch between number of tabs and panels");for(let e=0;e<r.length;e++){let t=r[e],n=o[e];n.id||(n.id=tS("tailwindplus-tab")),t.id||(t.id=tS("tailwindplus-tab-panel")),t.setAttribute("aria-labelledby",n.id),n.setAttribute("aria-controls",t.id),n.setAttribute("role","tab")}let i=this.getActiveTab();-1===i&&(i=0),t.setActiveTab(i),n.setActivePanel(i),t.addEventListener("keydown",e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let t=this.getActiveTab()-1;t<0&&(t=o.length-1),this.setActiveTab(t),o[t].focus();break}case"ArrowRight":{e.preventDefault();let t=this.getActiveTab()+1;t>=o.length&&(t=0),this.setActiveTab(t),o[t].focus();break}case"Home":case"PageUp":e.preventDefault(),this.setActiveTab(0),o[0].focus();break;case"End":case"PageDown":e.preventDefault(),this.setActiveTab(o.length-1),o[o.length-1].focus()}},{signal:e});for(let t=0;t<o.length;t++)o[t].addEventListener("click",e=>{e.preventDefault(),this.setActiveTab(t)},{signal:e})}getActiveTab(){let e=this.querySelector("el-tab-panels"),t=e.getPanels().find(e=>!e.hasAttribute("hidden"));return t?e.getPanels().indexOf(t):-1}getList(){let e=this.querySelector("el-tab-list");if(!e)throw Error("[ElTabGroup] No `<el-tab-list>` element found");return e}getPanels(){let e=this.querySelector("el-tab-panels");if(!e)throw Error("[ElTabGroup] No `<el-tab-panels>` element found");return e}setActiveTab(e){if(this.getActiveTab()===e)return;let t=this.getList(),n=this.getPanels(),o=t.getTabButtons();e<0||e>=o.length||(t.setActiveTab(e),n.setActivePanel(e))}},nm=class extends Z{mount(){this.setAttribute("role","tablist"),this.setAttribute("aria-orientation","horizontal")}getTabButtons(){return Array.from(this.querySelectorAll("button"))}setActiveTab(e){this.getTabButtons().forEach((t,n)=>{let o=n===e;t.setAttribute("tabindex",o?"0":"-1"),t.setAttribute("aria-selected",o?"true":"false")})}},ng=class extends Z{mount(){let e=this.getTabGroup().getList(),t=this.getPanels(),n=new MutationObserver(n=>{for(let o of n){let n=o.target;if("hidden"===o.attributeName&&!n.hasAttribute(o.attributeName)){let o=t.indexOf(n);e.setActiveTab(o),this.setActivePanel(o)}}});for(let e of t)e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","0"),n.observe(e,{attributeFilter:["hidden"],attributes:!0})}getTabGroup(){let e=this.closest("el-tab-group");if(!e)throw Error("`<el-tab-panels>` must be inside of a `<el-tab-group>` element.");return e}getPanels(){return Array.from(this.children)}setActivePanel(e){this.getPanels().forEach((t,n)=>{t.toggleAttribute("hidden",n!==e)})}};ee("el-tab-list",nm),ee("el-tab-panels",ng),ee("el-tab-group",nf),ee("el-copyable",class extends Z{mount(e){let t=new WeakMap;this.addEventListener("command",e=>{if("--copy"!==e.command)return;let n=e.source;t.get(n)?.abort();let o=new AbortController;t.set(n,o);let r=this.textContent??"";return navigator.clipboard.writeText(r).then(()=>{n.dataset.copied=""}).catch(e=>{n.dataset.error="",console.error("Failed to copy text: ",e)}).finally(()=>{let e=setTimeout(()=>{delete n.dataset.copied,delete n.dataset.error},2e3);o.signal.addEventListener("abort",()=>clearTimeout(e),{once:!0})})},{signal:e})}}),"u">typeof globalThis.window&&setTimeout(()=>window.dispatchEvent(new Event("elements:ready")))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.