@deepfuture/dui-cdn 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dui.js +10 -6
  2. package/dui.min.js +228 -228
  3. package/package.json +1 -1
package/dui.min.js CHANGED
@@ -1,8 +1,8 @@
1
- var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDescriptor;var N_=(i,r)=>(r=Symbol[i])?r:Symbol.for("Symbol."+i),Mn=i=>{throw TypeError(i)};var D_=(i,r,t)=>r in i?mb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var M_=(i,r)=>mb(i,"name",{value:r,configurable:!0});var A=i=>[,,,xF(i?.[N_("metadata")]??null)],H_=["class","method","getter","setter","accessor","field","value","get","set"],mc=i=>i!==void 0&&typeof i!="function"?Mn("Function expected"):i,wF=(i,r,t,e,s)=>({kind:H_[i],name:r,metadata:e,addInitializer:l=>t._?Mn("Already initialized"):s.push(mc(l||null))}),T=(i,r)=>D_(r,N_("metadata"),i[3]),n=(i,r,t,e)=>{for(var s=0,l=i[r>>1],d=l&&l.length;s<d;s++)r&1?l[s].call(t):e=l[s].call(t,e);return e},c=(i,r,t,e,s,l)=>{var d,m,g,E,$,y=r&7,_=!!(r&8),S=!!(r&16),O=y>3?i.length+1:y?_?1:2:0,B=H_[y+5],j=y>3&&(i[O-1]=[]),K=i[O]||(i[O]=[]),F=y&&(!S&&!_&&(s=s.prototype),y<5&&(y>3||!S)&&yF(y<4?s:{get[t](){return o(this,l)},set[t](J){return h(this,l,J)}},t));y?S&&y<4&&M_(l,(y>2?"set ":y>1?"get ":"")+t):M_(s,t);for(var G=e.length-1;G>=0;G--)E=wF(y,t,g={},i[3],K),y&&(E.static=_,E.private=S,$=E.access={has:S?J=>kF(s,J):J=>t in J},y^3&&($.get=S?J=>(y^1?o:p)(J,s,y^4?l:F.get):J=>J[t]),y>2&&($.set=S?(J,ge)=>h(J,s,ge,y^4?l:F.set):(J,ge)=>J[t]=ge)),m=(0,e[G])(y?y<4?S?l:F[B]:y>4?void 0:{get:F.get,set:F.set}:s,E),g._=1,y^4||m===void 0?mc(m)&&(y>4?j.unshift(m):y?S?l=m:F[B]=m:s=m):typeof m!="object"||m===null?Mn("Object expected"):(mc(d=m.get)&&(F.get=d),mc(d=m.set)&&(F.set=d),mc(d=m.init)&&j.unshift(d));return y||T(i,s),F&&mb(s,t,F),S?y^4?l:F:s},v=(i,r,t)=>D_(i,typeof r!="symbol"?r+"":r,t),fb=(i,r,t)=>r.has(i)||Mn("Cannot "+t),kF=(i,r)=>Object(r)!==r?Mn('Cannot use the "in" operator on this value'):i.has(r),o=(i,r,t)=>(fb(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?Mn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),h=(i,r,t,e)=>(fb(i,r,"write to private field"),e?e.call(i,t):r.set(i,t),t),p=(i,r,t)=>(fb(i,r,"access private method"),t);var Es=(i,r,t,e)=>({set _(s){h(i,r,s,t)},get _(){return o(i,r,e)}});var Ch=globalThis,$h=Ch.ShadowRoot&&(Ch.ShadyCSS===void 0||Ch.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gb=Symbol(),B_=new WeakMap,fc=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==gb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if($h&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=B_.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&B_.set(t,r))}return r}toString(){return this.cssText}},Jr=i=>new fc(typeof i=="string"?i:i+"",void 0,gb),k=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new fc(t,i,gb)},F_=(i,r)=>{if($h)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=Ch.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},vb=$h?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return Jr(t)})(i):i;var{is:EF,defineProperty:CF,getOwnPropertyDescriptor:$F,getOwnPropertyNames:TF,getOwnPropertySymbols:SF,getPrototypeOf:AF}=Object,Th=globalThis,V_=Th.trustedTypes,_F=V_?V_.emptyScript:"",RF=Th.reactiveElementPolyfillSupport,gc=(i,r)=>i,vc={toAttribute(i,r){switch(r){case Boolean:i=i?_F:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Sh=(i,r)=>!EF(i,r),P_={attribute:!0,type:String,converter:vc,reflect:!1,useDefault:!1,hasChanged:Sh};Symbol.metadata??=Symbol("metadata"),Th.litPropertyMetadata??=new WeakMap;var Qr=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=P_){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&CF(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=$F(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??P_}static _$Ei(){if(this.hasOwnProperty(gc("elementProperties")))return;let r=AF(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(gc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gc("properties"))){let t=this.properties,e=[...TF(t),...SF(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(vb(s))}else r!==void 0&&t.push(vb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return F_(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:vc).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:vc;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??Sh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};Qr.elementStyles=[],Qr.shadowRootOptions={mode:"open"},Qr[gc("elementProperties")]=new Map,Qr[gc("finalized")]=new Map,RF?.({ReactiveElement:Qr}),(Th.reactiveElementVersions??=[]).push("2.1.2");var Cb=globalThis,U_=i=>i,Ah=Cb.trustedTypes,q_=Ah?Ah.createPolicy("lit-html",{createHTML:i=>i}):void 0,X_="$lit$",Cs=`lit$${Math.random().toFixed(9).slice(2)}$`,J_="?"+Cs,IF=`<${J_}>`,ci=document,xc=()=>ci.createComment(""),yc=i=>i===null||typeof i!="object"&&typeof i!="function",$b=Array.isArray,LF=i=>$b(i)||typeof i?.[Symbol.iterator]=="function",bb=`[
2
- \f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j_=/-->/g,K_=/>/g,li=RegExp(`>|${bb}(?:([^\\s"'>=/]+)(${bb}*=${bb}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Tb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),Zr=Tb(1),R6=Tb(2),I6=Tb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!$b(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var zF=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+IF:y>=0?(e.push(E),g.slice(0,y)+X_+g.slice(y)+Cs+S):g+Cs+(y===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=zF(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(X_)){let _=$[d++],S=s.getAttribute(y).split(Cs),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?yb:O[1]==="?"?wb:O[1]==="@"?kb:Dn}),s.removeAttribute(y)}else y.startsWith(Cs)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(Q_.test(s.tagName)){let y=s.textContent.split(Cs),_=y.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],xc()),di.nextNode(),g.push({type:2,index:++l});s.append(y[_],xc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(Cs,y+1))!==-1;)g.push({type:7,index:l}),y+=Cs.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=yc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var xb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Eb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),yc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):LF(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&yc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new xb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){$b(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(xc()),this.O(xc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!yc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!yc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},yb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},wb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},kb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Eb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var OF=Cb.litHtmlPolyfillSupport;OF?.(wc,kc),(Cb.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(xc(),l),l,void 0,t??{})}return s._$AI(i),s};var Sb=globalThis,Hn=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Sb.litElementHydrateSupport?.({LitElement:Hn});var MF=Sb.litElementPolyfillSupport;MF?.({LitElement:Hn});(Sb.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ab=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==Ab)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,Ab),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,Ab)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},_b=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:NF,defineProperty:DF,getOwnPropertyDescriptor:HF,getOwnPropertyNames:BF,getOwnPropertySymbols:FF,getPrototypeOf:VF}=Object,Lh=globalThis,rR=Lh.trustedTypes,PF=rR?rR.emptyScript:"",UF=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?PF:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},zh=(i,r)=>!NF(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:zh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var ts=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&DF(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=HF(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=VF(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...BF(t),...FF(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(_b(s))}else r!==void 0&&t.push(_b(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??zh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};ts.elementStyles=[],ts.shadowRootOptions={mode:"open"},ts[Cc("elementProperties")]=new Map,ts[Cc("finalized")]=new Map,UF?.({ReactiveElement:ts}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Ib=globalThis,iR=i=>i,Oh=Ib.trustedTypes,nR=Oh?Oh.createPolicy("lit-html",{createHTML:i=>i}):void 0,Lb="$lit$",es=`lit$${Math.random().toFixed(9).slice(2)}$`,zb="?"+es,qF=`<${zb}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Ob=Array.isArray,hR=i=>Ob(i)||typeof i?.[Symbol.iterator]=="function",Rb=`[
4
- \f\r]`,Tc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aR=/-->/g,lR=/>/g,hi=RegExp(`>|${Rb}(?:([^\\s"'>=/]+)(${Rb}*=${Rb}*(?:[^
5
- \f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Mb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Mb(1),Fh=Mb(2),Y6=Mb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Ob(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+qF:y>=0?(e.push(E),g.slice(0,y)+Lb+g.slice(y)+es+S):g+es+(y===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(Lb)){let _=$[d++],S=s.getAttribute(y).split(es),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?Nh:O[1]==="?"?Dh:O[1]==="@"?Hh:gi}),s.removeAttribute(y)}else y.startsWith(es)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(uR.test(s.tagName)){let y=s.textContent.split(es),_=y.length-1;if(_>0){s.textContent=Oh?Oh.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(y[_],Sc())}}}else if(s.nodeType===8)if(s.data===zb)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(es,y+1))!==-1;)g.push({type:7,index:l}),y+=es.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Ob(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:Lb,P:es,A:zb,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},jF=Ib.litHtmlPolyfillSupport;jF?.(_c,Bn),(Ib.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Nb=globalThis,x=class extends ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};x._$litElement$=!0,x.finalized=!0,Nb.litElementHydrateSupport?.({LitElement:x});var KF=Nb.litElementPolyfillSupport;KF?.({LitElement:x});(Nb.litElementVersions??=[]).push("4.2.2");var WF={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:zh},YF=(i=WF,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?YF(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var $s=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new $s(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Db=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new $s(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Db(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
1
+ var xF=Object.create;var fb=Object.defineProperty;var yF=Object.getOwnPropertyDescriptor;var N_=(i,r)=>(r=Symbol[i])?r:Symbol.for("Symbol."+i),Mn=i=>{throw TypeError(i)};var D_=(i,r,t)=>r in i?fb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var M_=(i,r)=>fb(i,"name",{value:r,configurable:!0});var A=i=>[,,,xF(i?.[N_("metadata")]??null)],H_=["class","method","getter","setter","accessor","field","value","get","set"],mc=i=>i!==void 0&&typeof i!="function"?Mn("Function expected"):i,wF=(i,r,t,e,s)=>({kind:H_[i],name:r,metadata:e,addInitializer:l=>t._?Mn("Already initialized"):s.push(mc(l||null))}),T=(i,r)=>D_(r,N_("metadata"),i[3]),n=(i,r,t,e)=>{for(var s=0,l=i[r>>1],d=l&&l.length;s<d;s++)r&1?l[s].call(t):e=l[s].call(t,e);return e},c=(i,r,t,e,s,l)=>{var d,m,g,E,$,y=r&7,_=!!(r&8),S=!!(r&16),O=y>3?i.length+1:y?_?1:2:0,B=H_[y+5],j=y>3&&(i[O-1]=[]),K=i[O]||(i[O]=[]),F=y&&(!S&&!_&&(s=s.prototype),y<5&&(y>3||!S)&&yF(y<4?s:{get[t](){return o(this,l)},set[t](J){return h(this,l,J)}},t));y?S&&y<4&&M_(l,(y>2?"set ":y>1?"get ":"")+t):M_(s,t);for(var G=e.length-1;G>=0;G--)E=wF(y,t,g={},i[3],K),y&&(E.static=_,E.private=S,$=E.access={has:S?J=>kF(s,J):J=>t in J},y^3&&($.get=S?J=>(y^1?o:p)(J,s,y^4?l:F.get):J=>J[t]),y>2&&($.set=S?(J,ge)=>h(J,s,ge,y^4?l:F.set):(J,ge)=>J[t]=ge)),m=(0,e[G])(y?y<4?S?l:F[B]:y>4?void 0:{get:F.get,set:F.set}:s,E),g._=1,y^4||m===void 0?mc(m)&&(y>4?j.unshift(m):y?S?l=m:F[B]=m:s=m):typeof m!="object"||m===null?Mn("Object expected"):(mc(d=m.get)&&(F.get=d),mc(d=m.set)&&(F.set=d),mc(d=m.init)&&j.unshift(d));return y||T(i,s),F&&fb(s,t,F),S?y^4?l:F:s},v=(i,r,t)=>D_(i,typeof r!="symbol"?r+"":r,t),gb=(i,r,t)=>r.has(i)||Mn("Cannot "+t),kF=(i,r)=>Object(r)!==r?Mn('Cannot use the "in" operator on this value'):i.has(r),o=(i,r,t)=>(gb(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?Mn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),h=(i,r,t,e)=>(gb(i,r,"write to private field"),e?e.call(i,t):r.set(i,t),t),p=(i,r,t)=>(gb(i,r,"access private method"),t);var Es=(i,r,t,e)=>({set _(s){h(i,r,s,t)},get _(){return o(i,r,e)}});var Ch=globalThis,$h=Ch.ShadowRoot&&(Ch.ShadyCSS===void 0||Ch.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vb=Symbol(),B_=new WeakMap,fc=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==vb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if($h&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=B_.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&B_.set(t,r))}return r}toString(){return this.cssText}},Jr=i=>new fc(typeof i=="string"?i:i+"",void 0,vb),k=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new fc(t,i,vb)},F_=(i,r)=>{if($h)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=Ch.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},bb=$h?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return Jr(t)})(i):i;var{is:EF,defineProperty:CF,getOwnPropertyDescriptor:$F,getOwnPropertyNames:TF,getOwnPropertySymbols:SF,getPrototypeOf:AF}=Object,Th=globalThis,V_=Th.trustedTypes,_F=V_?V_.emptyScript:"",RF=Th.reactiveElementPolyfillSupport,gc=(i,r)=>i,vc={toAttribute(i,r){switch(r){case Boolean:i=i?_F:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Sh=(i,r)=>!EF(i,r),P_={attribute:!0,type:String,converter:vc,reflect:!1,useDefault:!1,hasChanged:Sh};Symbol.metadata??=Symbol("metadata"),Th.litPropertyMetadata??=new WeakMap;var Qr=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=P_){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&CF(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=$F(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??P_}static _$Ei(){if(this.hasOwnProperty(gc("elementProperties")))return;let r=AF(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(gc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gc("properties"))){let t=this.properties,e=[...TF(t),...SF(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(bb(s))}else r!==void 0&&t.push(bb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return F_(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:vc).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:vc;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??Sh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};Qr.elementStyles=[],Qr.shadowRootOptions={mode:"open"},Qr[gc("elementProperties")]=new Map,Qr[gc("finalized")]=new Map,RF?.({ReactiveElement:Qr}),(Th.reactiveElementVersions??=[]).push("2.1.2");var $b=globalThis,U_=i=>i,Ah=$b.trustedTypes,q_=Ah?Ah.createPolicy("lit-html",{createHTML:i=>i}):void 0,X_="$lit$",Cs=`lit$${Math.random().toFixed(9).slice(2)}$`,J_="?"+Cs,IF=`<${J_}>`,ci=document,xc=()=>ci.createComment(""),yc=i=>i===null||typeof i!="object"&&typeof i!="function",Tb=Array.isArray,LF=i=>Tb(i)||typeof i?.[Symbol.iterator]=="function",xb=`[
2
+ \f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j_=/-->/g,K_=/>/g,li=RegExp(`>|${xb}(?:([^\\s"'>=/]+)(${xb}*=${xb}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Sb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),Zr=Sb(1),R6=Sb(2),I6=Sb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!Tb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var zF=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+IF:y>=0?(e.push(E),g.slice(0,y)+X_+g.slice(y)+Cs+S):g+Cs+(y===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=zF(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(X_)){let _=$[d++],S=s.getAttribute(y).split(Cs),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?wb:O[1]==="?"?kb:O[1]==="@"?Eb:Dn}),s.removeAttribute(y)}else y.startsWith(Cs)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(Q_.test(s.tagName)){let y=s.textContent.split(Cs),_=y.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],xc()),di.nextNode(),g.push({type:2,index:++l});s.append(y[_],xc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(Cs,y+1))!==-1;)g.push({type:7,index:l}),y+=Cs.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=yc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var yb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Cb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),yc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):LF(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&yc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new yb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){Tb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(xc()),this.O(xc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!yc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!yc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},wb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},kb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},Eb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Cb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var OF=$b.litHtmlPolyfillSupport;OF?.(wc,kc),($b.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(xc(),l),l,void 0,t??{})}return s._$AI(i),s};var Ab=globalThis,Hn=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Ab.litElementHydrateSupport?.({LitElement:Hn});var MF=Ab.litElementPolyfillSupport;MF?.({LitElement:Hn});(Ab.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_b=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==_b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,_b),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,_b)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},Rb=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:NF,defineProperty:DF,getOwnPropertyDescriptor:HF,getOwnPropertyNames:BF,getOwnPropertySymbols:FF,getPrototypeOf:VF}=Object,Lh=globalThis,rR=Lh.trustedTypes,PF=rR?rR.emptyScript:"",UF=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?PF:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},zh=(i,r)=>!NF(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:zh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var ts=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&DF(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=HF(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=VF(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...BF(t),...FF(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(Rb(s))}else r!==void 0&&t.push(Rb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??zh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};ts.elementStyles=[],ts.shadowRootOptions={mode:"open"},ts[Cc("elementProperties")]=new Map,ts[Cc("finalized")]=new Map,UF?.({ReactiveElement:ts}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Lb=globalThis,iR=i=>i,Oh=Lb.trustedTypes,nR=Oh?Oh.createPolicy("lit-html",{createHTML:i=>i}):void 0,zb="$lit$",es=`lit$${Math.random().toFixed(9).slice(2)}$`,Ob="?"+es,qF=`<${Ob}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Mb=Array.isArray,hR=i=>Mb(i)||typeof i?.[Symbol.iterator]=="function",Ib=`[
4
+ \f\r]`,Tc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aR=/-->/g,lR=/>/g,hi=RegExp(`>|${Ib}(?:([^\\s"'>=/]+)(${Ib}*=${Ib}*(?:[^
5
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Nb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Nb(1),Fh=Nb(2),Y6=Nb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Mb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+qF:y>=0?(e.push(E),g.slice(0,y)+zb+g.slice(y)+es+S):g+es+(y===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(zb)){let _=$[d++],S=s.getAttribute(y).split(es),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?Nh:O[1]==="?"?Dh:O[1]==="@"?Hh:gi}),s.removeAttribute(y)}else y.startsWith(es)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(uR.test(s.tagName)){let y=s.textContent.split(es),_=y.length-1;if(_>0){s.textContent=Oh?Oh.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(y[_],Sc())}}}else if(s.nodeType===8)if(s.data===Ob)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(es,y+1))!==-1;)g.push({type:7,index:l}),y+=es.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Mb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:zb,P:es,A:Ob,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},jF=Lb.litHtmlPolyfillSupport;jF?.(_c,Bn),(Lb.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Db=globalThis,x=class extends ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};x._$litElement$=!0,x.finalized=!0,Db.litElementHydrateSupport?.({LitElement:x});var KF=Db.litElementPolyfillSupport;KF?.({LitElement:x});(Db.litElementVersions??=[]).push("4.2.2");var WF={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:zh},YF=(i=WF,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?YF(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var $s=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new $s(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Hb=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new $s(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Hb(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
6
6
  * {
7
7
  box-sizing: border-box;
8
8
  }
@@ -92,7 +92,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
92
92
  scroll-behavior: auto !important;
93
93
  }
94
94
  }
95
- `;var M=(i,r={})=>t=>new CustomEvent(i,{...r,detail:t});var Uh=Symbol("dui-accordion");var Gb=M("value-change",{bubbles:!0,composed:!0}),GF=b`
95
+ `;var M=(i,r={})=>t=>new CustomEvent(i,{...r,detail:t});var Uh=Symbol("dui-accordion");var Xb=M("value-change",{bubbles:!0,composed:!0}),GF=b`
96
96
  :host {
97
97
  display: block;
98
98
  }
@@ -101,7 +101,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
101
101
  display: flex;
102
102
  flex-direction: column;
103
103
  }
104
- `,bR,xR,yR,wR,kR,ER,CR,$R,TR,SR,_t,Hb,Bb,Fb,Vb,Pb,Ub,qb,jb,Kb,AR,Yb,Po,Vn,sr,Rc,jh,Kh,Wh,Yh,Wb,qh,xe=class extends(SR=x,TR=[u({type:Array})],$R=[u({type:Array,attribute:"default-value"})],CR=[u({type:Boolean})],ER=[u({type:Boolean})],kR=[u({type:Boolean,attribute:"loop-focus"})],wR=[u({type:String})],yR=[u({type:Boolean,attribute:"keep-mounted"})],xR=[C()],bR=[lt({context:Uh}),C()],SR){constructor(){super(...arguments);a(this,Po);a(this,Hb,n(_t,8,this)),n(_t,11,this);a(this,Bb,n(_t,12,this,[])),n(_t,15,this);a(this,Fb,n(_t,16,this,!1)),n(_t,19,this);a(this,Vb,n(_t,20,this,!1)),n(_t,23,this);a(this,Pb,n(_t,24,this,!0)),n(_t,27,this);a(this,Ub,n(_t,28,this,"vertical")),n(_t,31,this);a(this,qb,n(_t,32,this,!1)),n(_t,35,this);a(this,jb,n(_t,36,this,[])),n(_t,39,this);a(this,Vn,new Map);a(this,sr,[]);a(this,Rc,()=>this.value??o(this,Po,AR));a(this,jh,t=>{let e=[...o(this,Rc).call(this)],s=e.indexOf(t),l;s>=0?l=e.filter(d=>d!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&h(this,Po,l,Yb),this.dispatchEvent(Gb(l))});a(this,Kh,(t,e)=>{o(this,Vn).set(t,e),o(this,sr).includes(t)||o(this,sr).push(t)});a(this,Wh,t=>{o(this,Vn).delete(t),h(this,sr,o(this,sr).filter(e=>e!==t))});a(this,Yh,(t,e)=>{let s=o(this,sr).indexOf(t);if(s===-1)return;let l=o(this,sr).length,d;switch(e){case"next":s<l-1?d=s+1:this.loopFocus&&(d=0);break;case"prev":s>0?d=s-1:this.loopFocus&&(d=l-1);break;case"first":d=0;break;case"last":d=l-1;break}if(d!==void 0){let m=o(this,sr)[d];o(this,Vn).get(m)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});a(this,Wb,n(_t,40,this,p(this,Po,qh).call(this))),n(_t,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Po,[...this.defaultValue],Yb),this._ctx=p(this,Po,qh).call(this)}willUpdate(){this._ctx=p(this,Po,qh).call(this)}render(){return f`
104
+ `,bR,xR,yR,wR,kR,ER,CR,$R,TR,SR,_t,Bb,Fb,Vb,Pb,Ub,qb,jb,Kb,Wb,AR,Gb,Po,Vn,sr,Rc,jh,Kh,Wh,Yh,Yb,qh,xe=class extends(SR=x,TR=[u({type:Array})],$R=[u({type:Array,attribute:"default-value"})],CR=[u({type:Boolean})],ER=[u({type:Boolean})],kR=[u({type:Boolean,attribute:"loop-focus"})],wR=[u({type:String})],yR=[u({type:Boolean,attribute:"keep-mounted"})],xR=[C()],bR=[lt({context:Uh}),C()],SR){constructor(){super(...arguments);a(this,Po);a(this,Bb,n(_t,8,this)),n(_t,11,this);a(this,Fb,n(_t,12,this,[])),n(_t,15,this);a(this,Vb,n(_t,16,this,!1)),n(_t,19,this);a(this,Pb,n(_t,20,this,!1)),n(_t,23,this);a(this,Ub,n(_t,24,this,!0)),n(_t,27,this);a(this,qb,n(_t,28,this,"vertical")),n(_t,31,this);a(this,jb,n(_t,32,this,!1)),n(_t,35,this);a(this,Kb,n(_t,36,this,[])),n(_t,39,this);a(this,Vn,new Map);a(this,sr,[]);a(this,Rc,()=>this.value??o(this,Po,AR));a(this,jh,t=>{let e=[...o(this,Rc).call(this)],s=e.indexOf(t),l;s>=0?l=e.filter(d=>d!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&h(this,Po,l,Gb),this.dispatchEvent(Xb(l))});a(this,Kh,(t,e)=>{o(this,Vn).set(t,e),o(this,sr).includes(t)||o(this,sr).push(t)});a(this,Wh,t=>{o(this,Vn).delete(t),h(this,sr,o(this,sr).filter(e=>e!==t))});a(this,Yh,(t,e)=>{let s=o(this,sr).indexOf(t);if(s===-1)return;let l=o(this,sr).length,d;switch(e){case"next":s<l-1?d=s+1:this.loopFocus&&(d=0);break;case"prev":s>0?d=s-1:this.loopFocus&&(d=l-1);break;case"first":d=0;break;case"last":d=l-1;break}if(d!==void 0){let m=o(this,sr)[d];o(this,Vn).get(m)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});a(this,Yb,n(_t,40,this,p(this,Po,qh).call(this))),n(_t,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Po,[...this.defaultValue],Gb),this._ctx=p(this,Po,qh).call(this)}willUpdate(){this._ctx=p(this,Po,qh).call(this)}render(){return f`
105
105
  <div
106
106
  part="root"
107
107
  data-orientation=${this.orientation}
@@ -109,7 +109,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
109
109
  >
110
110
  <slot></slot>
111
111
  </div>
112
- `}};_t=A(SR),Hb=new WeakMap,Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Pb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,jb=new WeakMap,Po=new WeakSet,Vn=new WeakMap,sr=new WeakMap,Rc=new WeakMap,jh=new WeakMap,Kh=new WeakMap,Wh=new WeakMap,Yh=new WeakMap,Wb=new WeakMap,qh=function(){return{openValues:o(this,Rc).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:o(this,jh),registerItem:o(this,Kh),unregisterItem:o(this,Wh),focusItem:o(this,Yh)}},c(_t,4,"value",TR,xe,Hb),c(_t,4,"defaultValue",$R,xe,Bb),c(_t,4,"disabled",CR,xe,Fb),c(_t,4,"multiple",ER,xe,Vb),c(_t,4,"loopFocus",kR,xe,Pb),c(_t,4,"orientation",wR,xe,Ub),c(_t,4,"keepMounted",yR,xe,qb),Kb=c(_t,20,"#internalOpenValues",xR,Po,jb),AR=Kb.get,Yb=Kb.set,c(_t,4,"_ctx",bR,xe,Wb),T(_t,xe),v(xe,"tagName","dui-accordion"),v(xe,"styles",[w,GF]);var px=M("open-change",{bubbles:!0,composed:!0}),XF=b`
112
+ `}};_t=A(SR),Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Pb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,jb=new WeakMap,Kb=new WeakMap,Po=new WeakSet,Vn=new WeakMap,sr=new WeakMap,Rc=new WeakMap,jh=new WeakMap,Kh=new WeakMap,Wh=new WeakMap,Yh=new WeakMap,Yb=new WeakMap,qh=function(){return{openValues:o(this,Rc).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:o(this,jh),registerItem:o(this,Kh),unregisterItem:o(this,Wh),focusItem:o(this,Yh)}},c(_t,4,"value",TR,xe,Bb),c(_t,4,"defaultValue",$R,xe,Fb),c(_t,4,"disabled",CR,xe,Vb),c(_t,4,"multiple",ER,xe,Pb),c(_t,4,"loopFocus",kR,xe,Ub),c(_t,4,"orientation",wR,xe,qb),c(_t,4,"keepMounted",yR,xe,jb),Wb=c(_t,20,"#internalOpenValues",xR,Po,Kb),AR=Wb.get,Gb=Wb.set,c(_t,4,"_ctx",bR,xe,Yb),T(_t,xe),v(xe,"tagName","dui-accordion"),v(xe,"styles",[w,GF]);var hx=M("open-change",{bubbles:!0,composed:!0}),XF=b`
113
113
  :host {
114
114
  display: block;
115
115
  }
@@ -137,7 +137,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
137
137
  contain: content;
138
138
  transition-property: height;
139
139
  }
140
- `,_R,RR,IR,LR,zR,OR,MR,NR,qt,Xb,Jb,Qb,Zb,tx,ax,Gh,P,ex,ox,Xh,Jh,rx,sx,DR,bi,ix,nx,lx,Qh,Pn,yi,xi,Ic,dx,cx,HR,BR,Zh,tu,eu,wo=class extends(NR=x,MR=[u({type:String})],OR=[u({type:Boolean})],zR=[Nt({context:Uh,subscribe:!0})],LR=[C()],IR=[C()],RR=[C()],_R=[C()],NR){constructor(){super(...arguments);a(this,P);a(this,Xb,n(qt,8,this,"")),n(qt,11,this);a(this,Jb,n(qt,12,this,!1)),n(qt,15,this);a(this,Qb,n(qt,16,this)),n(qt,19,this);a(this,Zb,n(qt,20,this,!1)),n(qt,23,this);a(this,ex,n(qt,24,this,!1)),n(qt,27,this);a(this,rx,n(qt,28,this,"0")),n(qt,31,this);a(this,ix,n(qt,32,this,!1)),n(qt,35,this);a(this,Pn);a(this,yi,0);a(this,Zh,t=>{t.propertyName==="height"&&(o(this,P,Xh)?(h(this,P,!1,Jh),this._ctx?.keepMounted||h(this,P,!1,Qh)):o(this,P,xi)&&h(this,P,"auto",bi))});a(this,tu,()=>{o(this,P,Ic)||this._ctx.toggle(this.value)});a(this,eu,t=>{if(o(this,P,Ic))return;let e=this._ctx.orientation==="vertical",s=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case s:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case l:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=o(this,P,xi);o(this,Pn)===void 0?(h(this,P,t,Qh),h(this,P,t?"auto":"0",bi)):o(this,Pn)!==t&&(t?p(this,P,HR).call(this):p(this,P,BR).call(this),this.dispatchEvent(px({value:this.value,open:t}))),h(this,Pn,t)}render(){let t=o(this,P,lx)||this._ctx?.keepMounted;return f`
140
+ `,_R,RR,IR,LR,zR,OR,MR,NR,qt,Jb,Qb,Zb,tx,ex,lx,Gh,P,ox,rx,Xh,Jh,sx,ix,DR,bi,nx,ax,dx,Qh,Pn,yi,xi,Ic,cx,px,HR,BR,Zh,tu,eu,wo=class extends(NR=x,MR=[u({type:String})],OR=[u({type:Boolean})],zR=[Nt({context:Uh,subscribe:!0})],LR=[C()],IR=[C()],RR=[C()],_R=[C()],NR){constructor(){super(...arguments);a(this,P);a(this,Jb,n(qt,8,this,"")),n(qt,11,this);a(this,Qb,n(qt,12,this,!1)),n(qt,15,this);a(this,Zb,n(qt,16,this)),n(qt,19,this);a(this,tx,n(qt,20,this,!1)),n(qt,23,this);a(this,ox,n(qt,24,this,!1)),n(qt,27,this);a(this,sx,n(qt,28,this,"0")),n(qt,31,this);a(this,nx,n(qt,32,this,!1)),n(qt,35,this);a(this,Pn);a(this,yi,0);a(this,Zh,t=>{t.propertyName==="height"&&(o(this,P,Xh)?(h(this,P,!1,Jh),this._ctx?.keepMounted||h(this,P,!1,Qh)):o(this,P,xi)&&h(this,P,"auto",bi))});a(this,tu,()=>{o(this,P,Ic)||this._ctx.toggle(this.value)});a(this,eu,t=>{if(o(this,P,Ic))return;let e=this._ctx.orientation==="vertical",s=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case s:t.preventDefault(),this._ctx.focusItem(this.value,"next");break;case l:t.preventDefault(),this._ctx.focusItem(this.value,"prev");break;case"Home":t.preventDefault(),this._ctx.focusItem(this.value,"first");break;case"End":t.preventDefault(),this._ctx.focusItem(this.value,"last");break}})}connectedCallback(){super.connectedCallback(),this._ctx?.registerItem(this.value,this)}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(this.value)}willUpdate(){let t=o(this,P,xi);o(this,Pn)===void 0?(h(this,P,t,Qh),h(this,P,t?"auto":"0",bi)):o(this,Pn)!==t&&(t?p(this,P,HR).call(this):p(this,P,BR).call(this),this.dispatchEvent(hx({value:this.value,open:t}))),h(this,Pn,t)}render(){let t=o(this,P,dx)||this._ctx?.keepMounted;return f`
141
141
  <div
142
142
  part="item"
143
143
  ?data-open=${o(this,P,xi)}
@@ -146,9 +146,9 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
146
146
  <h3 part="header">
147
147
  <button
148
148
  part="trigger"
149
- id=${o(this,P,dx)}
149
+ id=${o(this,P,cx)}
150
150
  aria-expanded=${o(this,P,xi)}
151
- aria-controls=${o(this,P,cx)}
151
+ aria-controls=${o(this,P,px)}
152
152
  ?data-open=${o(this,P,xi)}
153
153
  ?data-disabled=${o(this,P,Ic)}
154
154
  @click=${o(this,tu)}
@@ -160,14 +160,14 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
160
160
  ${t?f`
161
161
  <div
162
162
  part="panel"
163
- id=${o(this,P,cx)}
163
+ id=${o(this,P,px)}
164
164
  role="region"
165
- aria-labelledby=${o(this,P,dx)}
165
+ aria-labelledby=${o(this,P,cx)}
166
166
  style="height: ${o(this,P,DR)}"
167
- ?data-open=${o(this,P,xi)&&!o(this,P,ax)}
168
- ?data-starting-style=${o(this,P,ax)}
167
+ ?data-open=${o(this,P,xi)&&!o(this,P,lx)}
168
+ ?data-starting-style=${o(this,P,lx)}
169
169
  ?data-ending-style=${o(this,P,Xh)}
170
- ?hidden=${!o(this,P,lx)&&!o(this,P,Xh)}
170
+ ?hidden=${!o(this,P,dx)&&!o(this,P,Xh)}
171
171
  @transitionend=${o(this,Zh)}
172
172
  >
173
173
  <div part="content">
@@ -176,7 +176,7 @@ var xF=Object.create;var mb=Object.defineProperty;var yF=Object.getOwnPropertyDe
176
176
  </div>
177
177
  `:L}
178
178
  </div>
179
- `}};qt=A(NR),Xb=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,P=new WeakSet,ex=new WeakMap,rx=new WeakMap,ix=new WeakMap,Pn=new WeakMap,yi=new WeakMap,xi=function(){return this._ctx?.openValues.includes(this.value)??!1},Ic=function(){return this.disabled||this._ctx?.disabled},dx=function(){return`dui-trigger-${this.value}`},cx=function(){return`dui-panel-${this.value}`},HR=function(){let t=++Es(this,yi)._;h(this,P,!1,Jh),h(this,P,!0,Qh),h(this,P,!0,Gh),h(this,P,"0",bi),requestAnimationFrame(()=>{if(o(this,yi)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),h(this,P,!1,Gh)})},BR=function(){let t=++Es(this,yi)._;h(this,P,!1,Gh);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),requestAnimationFrame(()=>{o(this,yi)===t&&(h(this,P,!0,Jh),h(this,P,"0",bi))})},Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,c(qt,4,"value",MR,wo,Xb),c(qt,4,"disabled",OR,wo,Jb),c(qt,4,"_ctx",zR,wo,Qb),tx=c(qt,20,"#starting",LR,P,Zb),ax=tx.get,Gh=tx.set,ox=c(qt,20,"#ending",IR,P,ex),Xh=ox.get,Jh=ox.set,sx=c(qt,20,"#panelHeight",RR,P,rx),DR=sx.get,bi=sx.set,nx=c(qt,20,"#visible",_R,P,ix),lx=nx.get,Qh=nx.set,T(qt,wo),v(wo,"tagName","dui-accordion-item"),v(wo,"styles",[w,XF]);var FR=`/* =================================================================
179
+ `}};qt=A(NR),Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,tx=new WeakMap,P=new WeakSet,ox=new WeakMap,sx=new WeakMap,nx=new WeakMap,Pn=new WeakMap,yi=new WeakMap,xi=function(){return this._ctx?.openValues.includes(this.value)??!1},Ic=function(){return this.disabled||this._ctx?.disabled},cx=function(){return`dui-trigger-${this.value}`},px=function(){return`dui-panel-${this.value}`},HR=function(){let t=++Es(this,yi)._;h(this,P,!1,Jh),h(this,P,!0,Qh),h(this,P,!0,Gh),h(this,P,"0",bi),requestAnimationFrame(()=>{if(o(this,yi)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),h(this,P,!1,Gh)})},BR=function(){let t=++Es(this,yi)._;h(this,P,!1,Gh);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),requestAnimationFrame(()=>{o(this,yi)===t&&(h(this,P,!0,Jh),h(this,P,"0",bi))})},Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,c(qt,4,"value",MR,wo,Jb),c(qt,4,"disabled",OR,wo,Qb),c(qt,4,"_ctx",zR,wo,Zb),ex=c(qt,20,"#starting",LR,P,tx),lx=ex.get,Gh=ex.set,rx=c(qt,20,"#ending",IR,P,ox),Xh=rx.get,Jh=rx.set,ix=c(qt,20,"#panelHeight",RR,P,sx),DR=ix.get,bi=ix.set,ax=c(qt,20,"#visible",_R,P,nx),dx=ax.get,Qh=ax.set,T(qt,wo),v(wo,"tagName","dui-accordion-item"),v(wo,"styles",[w,XF]);var FR=`/* =================================================================
180
180
  * DUI Design Tokens
181
181
  * =================================================================
182
182
  * Combined token system: spacing, typography, borders, elevation,
@@ -965,7 +965,7 @@ label, legend, caption, figcaption, th, td {
965
965
  inherits: true;
966
966
  initial-value: 0.5rem;
967
967
  }
968
- `;var hx=new CSSStyleSheet;hx.replaceSync(VR+`
968
+ `;var ux=new CSSStyleSheet;ux.replaceSync(VR+`
969
969
  `+FR);var PR=`/* =================================================================
970
970
  * DUI Prose \u2014 Rich-text / markdown content styles
971
971
  * =================================================================
@@ -1216,7 +1216,7 @@ label, legend, caption, figcaption, th, td {
1216
1216
  cursor: pointer;
1217
1217
  font-weight: var(--font-weight-medium);
1218
1218
  }
1219
- `;var ux=new CSSStyleSheet;ux.replaceSync(PR);for(let i of[hx,ux])i&&!document.adoptedStyleSheets.includes(i)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i]);var JF=k`
1219
+ `;var mx=new CSSStyleSheet;mx.replaceSync(PR);for(let i of[ux,mx])i&&!document.adoptedStyleSheets.includes(i)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,i]);var JF=k`
1220
1220
  ::slotted(:last-child) {
1221
1221
  --accordion-item-border: none;
1222
1222
  }
@@ -1318,7 +1318,7 @@ label, legend, caption, figcaption, th, td {
1318
1318
  :host {
1319
1319
  display: contents;
1320
1320
  }
1321
- `,qR,jR,KR,WR,YR,so,mx,fx,gx,vx,GR,ou,Ve,wi,iu,nu,au,lu,XR,du,cu,bx,ru,ko=class extends(YR=x,WR=[u({type:Boolean,reflect:!0})],KR=[u({type:Boolean,attribute:"default-open"})],jR=[C()],qR=[lt({context:Ts}),C()],YR){constructor(){super(...arguments);a(this,Ve);a(this,mx,n(so,8,this)),n(so,11,this);a(this,fx,n(so,12,this,!1)),n(so,15,this);a(this,gx,n(so,16,this,!1)),n(so,19,this);a(this,wi,crypto.randomUUID().slice(0,8));a(this,iu,`dui-alert-dialog-${o(this,wi)}`);a(this,nu,`dui-alert-trigger-${o(this,wi)}`);a(this,au,`dui-alert-title-${o(this,wi)}`);a(this,lu,`dui-alert-desc-${o(this,wi)}`);a(this,du,()=>{this.open===void 0&&h(this,Ve,!0,ou),this.dispatchEvent(su({open:!0}))});a(this,cu,()=>{this.open===void 0&&h(this,Ve,!1,ou),this.dispatchEvent(su({open:!1}))});a(this,bx,n(so,20,this,p(this,Ve,ru).call(this))),n(so,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ve,!0,ou),this._ctx=p(this,Ve,ru).call(this)}willUpdate(){this._ctx=p(this,Ve,ru).call(this)}render(){return f`<slot></slot>`}};so=A(YR),mx=new WeakMap,fx=new WeakMap,gx=new WeakMap,Ve=new WeakSet,wi=new WeakMap,iu=new WeakMap,nu=new WeakMap,au=new WeakMap,lu=new WeakMap,XR=function(){return this.open??o(this,Ve,GR)},du=new WeakMap,cu=new WeakMap,bx=new WeakMap,ru=function(){return{open:o(this,Ve,XR),dialogId:o(this,iu),triggerId:o(this,nu),titleId:o(this,au),descriptionId:o(this,lu),openDialog:o(this,du),closeDialog:o(this,cu)}},c(so,4,"open",WR,ko,mx),c(so,4,"defaultOpen",KR,ko,fx),vx=c(so,20,"#internalOpen",jR,Ve,gx),GR=vx.get,ou=vx.set,c(so,4,"_ctx",qR,ko,bx),T(so,ko),v(ko,"tagName","dui-alert-dialog"),v(ko,"styles",[w,ZF]);var t4=b`
1321
+ `,qR,jR,KR,WR,YR,so,fx,gx,vx,bx,GR,ou,Ve,wi,iu,nu,au,lu,XR,du,cu,xx,ru,ko=class extends(YR=x,WR=[u({type:Boolean,reflect:!0})],KR=[u({type:Boolean,attribute:"default-open"})],jR=[C()],qR=[lt({context:Ts}),C()],YR){constructor(){super(...arguments);a(this,Ve);a(this,fx,n(so,8,this)),n(so,11,this);a(this,gx,n(so,12,this,!1)),n(so,15,this);a(this,vx,n(so,16,this,!1)),n(so,19,this);a(this,wi,crypto.randomUUID().slice(0,8));a(this,iu,`dui-alert-dialog-${o(this,wi)}`);a(this,nu,`dui-alert-trigger-${o(this,wi)}`);a(this,au,`dui-alert-title-${o(this,wi)}`);a(this,lu,`dui-alert-desc-${o(this,wi)}`);a(this,du,()=>{this.open===void 0&&h(this,Ve,!0,ou),this.dispatchEvent(su({open:!0}))});a(this,cu,()=>{this.open===void 0&&h(this,Ve,!1,ou),this.dispatchEvent(su({open:!1}))});a(this,xx,n(so,20,this,p(this,Ve,ru).call(this))),n(so,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ve,!0,ou),this._ctx=p(this,Ve,ru).call(this)}willUpdate(){this._ctx=p(this,Ve,ru).call(this)}render(){return f`<slot></slot>`}};so=A(YR),fx=new WeakMap,gx=new WeakMap,vx=new WeakMap,Ve=new WeakSet,wi=new WeakMap,iu=new WeakMap,nu=new WeakMap,au=new WeakMap,lu=new WeakMap,XR=function(){return this.open??o(this,Ve,GR)},du=new WeakMap,cu=new WeakMap,xx=new WeakMap,ru=function(){return{open:o(this,Ve,XR),dialogId:o(this,iu),triggerId:o(this,nu),titleId:o(this,au),descriptionId:o(this,lu),openDialog:o(this,du),closeDialog:o(this,cu)}},c(so,4,"open",WR,ko,fx),c(so,4,"defaultOpen",KR,ko,gx),bx=c(so,20,"#internalOpen",jR,Ve,vx),GR=bx.get,ou=bx.set,c(so,4,"_ctx",qR,ko,xx),T(so,ko),v(ko,"tagName","dui-alert-dialog"),v(ko,"styles",[w,ZF]);var t4=b`
1322
1322
  :host {
1323
1323
  display: contents;
1324
1324
  }
@@ -1368,12 +1368,12 @@ label, legend, caption, figcaption, th, td {
1368
1368
  z-index: 1000;
1369
1369
  transition-property: opacity, transform;
1370
1370
  }
1371
- `,QR,ZR,tI,eI,oI,rI,sI,ie,xx,yx,wx,kx,Ex,Kn,Ax,et,Cx,$x,_x,Rx,Tx,Sx,os,Ix,Wn,Ss,iI,nI,Lx,aI,lI,uu,dI,Eo=class extends(sI=x,rI=[u({type:Boolean,attribute:"keep-mounted"})],oI=[u({attribute:"initial-focus"})],eI=[u({attribute:"final-focus"})],tI=[C()],ZR=[C()],QR=[C()],sI){constructor(){super(...arguments);a(this,et);a(this,xx,n(ie,8,this,!1)),n(ie,11,this);a(this,yx,n(ie,12,this)),n(ie,15,this);a(this,wx,n(ie,16,this)),n(ie,19,this);a(this,kx,n(ie,20,this,!1)),n(ie,23,this);a(this,Cx,n(ie,24,this,!1)),n(ie,27,this);a(this,Tx,n(ie,28,this,!1)),n(ie,31,this);a(this,Wn);a(this,Ss,new q(this,{context:Ts,subscribe:!0}));a(this,uu,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,Ss).value?.closeDialog()),t.key==="Tab"&&p(this,et,dI).call(this,t)})}updated(){let t=o(this,Ss).value?.open??!1;t&&!o(this,et,Kn)?p(this,et,iI).call(this):!t&&o(this,et,Kn)&&!o(this,et,os)&&p(this,et,nI).call(this)}willUpdate(){o(this,et,Kn)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,Ss).value?.open??!1,e=o(this,Ss).value?.titleId??"",s=o(this,Ss).value?.descriptionId??"";return!o(this,et,Kn)&&!this.keepMounted?f``:f`
1371
+ `,QR,ZR,tI,eI,oI,rI,sI,ie,yx,wx,kx,Ex,Cx,Kn,_x,et,$x,Tx,Rx,Ix,Sx,Ax,os,Lx,Wn,Ss,iI,nI,zx,aI,lI,uu,dI,Eo=class extends(sI=x,rI=[u({type:Boolean,attribute:"keep-mounted"})],oI=[u({attribute:"initial-focus"})],eI=[u({attribute:"final-focus"})],tI=[C()],ZR=[C()],QR=[C()],sI){constructor(){super(...arguments);a(this,et);a(this,yx,n(ie,8,this,!1)),n(ie,11,this);a(this,wx,n(ie,12,this)),n(ie,15,this);a(this,kx,n(ie,16,this)),n(ie,19,this);a(this,Ex,n(ie,20,this,!1)),n(ie,23,this);a(this,$x,n(ie,24,this,!1)),n(ie,27,this);a(this,Sx,n(ie,28,this,!1)),n(ie,31,this);a(this,Wn);a(this,Ss,new q(this,{context:Ts,subscribe:!0}));a(this,uu,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,Ss).value?.closeDialog()),t.key==="Tab"&&p(this,et,dI).call(this,t)})}updated(){let t=o(this,Ss).value?.open??!1;t&&!o(this,et,Kn)?p(this,et,iI).call(this):!t&&o(this,et,Kn)&&!o(this,et,os)&&p(this,et,nI).call(this)}willUpdate(){o(this,et,Kn)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,Ss).value?.open??!1,e=o(this,Ss).value?.titleId??"",s=o(this,Ss).value?.descriptionId??"";return!o(this,et,Kn)&&!this.keepMounted?f``:f`
1372
1372
  <div
1373
1373
  part="backdrop"
1374
1374
  ?data-open="${t&&!o(this,et,os)}"
1375
1375
  ?data-closed="${!t||o(this,et,os)}"
1376
- ?data-starting-style="${o(this,et,_x)}"
1376
+ ?data-starting-style="${o(this,et,Rx)}"
1377
1377
  ?data-ending-style="${o(this,et,os)}"
1378
1378
  ></div>
1379
1379
  <div
@@ -1384,7 +1384,7 @@ label, legend, caption, figcaption, th, td {
1384
1384
  aria-describedby="${s}"
1385
1385
  ?data-open="${t&&!o(this,et,os)}"
1386
1386
  ?data-closed="${!t||o(this,et,os)}"
1387
- ?data-starting-style="${o(this,et,_x)}"
1387
+ ?data-starting-style="${o(this,et,Rx)}"
1388
1388
  ?data-ending-style="${o(this,et,os)}"
1389
1389
  tabindex="-1"
1390
1390
  @keydown="${o(this,uu)}"
@@ -1393,7 +1393,7 @@ label, legend, caption, figcaption, th, td {
1393
1393
  <p part="description" id="${s}"><slot name="description"></slot></p>
1394
1394
  <slot></slot>
1395
1395
  </div>
1396
- `}};ie=A(sI),xx=new WeakMap,yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,et=new WeakSet,Cx=new WeakMap,Tx=new WeakMap,Wn=new WeakMap,Ss=new WeakMap,iI=async function(){h(this,Wn,document.activeElement??void 0),h(this,et,!0,Ax),h(this,et,!0,Rx),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,et,!1,Rx),await this.updateComplete,p(this,et,aI).call(this)},nI=function(){h(this,et,!0,Ix);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,et,Lx).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,et,Lx).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},Lx=function(){!o(this,et,os)&&!o(this,et,Kn)||(h(this,et,!1,Ix),this.keepMounted||h(this,et,!1,Ax),p(this,et,lI).call(this))},aI=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},lI=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Wn)?.focus(),h(this,Wn,void 0)},uu=new WeakMap,dI=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},c(ie,4,"keepMounted",rI,Eo,xx),c(ie,4,"initialFocus",oI,Eo,yx),c(ie,4,"finalFocus",eI,Eo,wx),Ex=c(ie,20,"#mounted",tI,et,kx),Kn=Ex.get,Ax=Ex.set,$x=c(ie,20,"#startingStyle",ZR,et,Cx),_x=$x.get,Rx=$x.set,Sx=c(ie,20,"#endingStyle",QR,et,Tx),os=Sx.get,Ix=Sx.set,T(ie,Eo),v(Eo,"tagName","dui-alert-dialog-popup"),v(Eo,"styles",[w,s4,i4]);var n4=b`
1396
+ `}};ie=A(sI),yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,et=new WeakSet,$x=new WeakMap,Sx=new WeakMap,Wn=new WeakMap,Ss=new WeakMap,iI=async function(){h(this,Wn,document.activeElement??void 0),h(this,et,!0,_x),h(this,et,!0,Ix),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,et,!1,Ix),await this.updateComplete,p(this,et,aI).call(this)},nI=function(){h(this,et,!0,Lx);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,et,zx).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,et,zx).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},zx=function(){!o(this,et,os)&&!o(this,et,Kn)||(h(this,et,!1,Lx),this.keepMounted||h(this,et,!1,_x),p(this,et,lI).call(this))},aI=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},lI=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Wn)?.focus(),h(this,Wn,void 0)},uu=new WeakMap,dI=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},c(ie,4,"keepMounted",rI,Eo,yx),c(ie,4,"initialFocus",oI,Eo,wx),c(ie,4,"finalFocus",eI,Eo,kx),Cx=c(ie,20,"#mounted",tI,et,Ex),Kn=Cx.get,_x=Cx.set,Tx=c(ie,20,"#startingStyle",ZR,et,$x),Rx=Tx.get,Ix=Tx.set,Ax=c(ie,20,"#endingStyle",QR,et,Sx),os=Ax.get,Lx=Ax.set,T(ie,Eo),v(Eo,"tagName","dui-alert-dialog-popup"),v(Eo,"styles",[w,s4,i4]);var n4=b`
1397
1397
  :host {
1398
1398
  display: contents;
1399
1399
  }
@@ -1468,7 +1468,7 @@ label, legend, caption, figcaption, th, td {
1468
1468
  transition-duration: 0s;
1469
1469
  }
1470
1470
  }
1471
- `,Xn=class extends Eo{static styles=[...Eo.styles,l4]};customElements.define(Xn.tagName,Xn);var Jn=class extends Lc{};customElements.define(Jn.tagName,Jn);var jx=M("loading-status-change",{bubbles:!0,composed:!0}),d4=b`
1471
+ `,Xn=class extends Eo{static styles=[...Eo.styles,l4]};customElements.define(Xn.tagName,Xn);var Jn=class extends Lc{};customElements.define(Jn.tagName,Jn);var Kx=M("loading-status-change",{bubbles:!0,composed:!0}),d4=b`
1472
1472
  :host {
1473
1473
  --avatar-size: var(--space-12);
1474
1474
  display: inline-block;
@@ -1498,7 +1498,7 @@ label, legend, caption, figcaption, th, td {
1498
1498
  height: 100%;
1499
1499
  width: 100%;
1500
1500
  }
1501
- `,cI,pI,hI,uI,mI,fI,gI,ne,zx,Ox,Mx,Nx,Dx,Hx,vI,bI,Tt,Bx,Fx,xI,mu,As,ki,Oc,Vx,Px,Ux,qx,io=class extends(gI=x,fI=[u()],mI=[u()],uI=[u({type:Number,attribute:"fallback-delay"})],hI=[u({reflect:!0})],pI=[C()],cI=[C()],gI){constructor(){super(...arguments);a(this,Tt);a(this,zx,n(ne,8,this)),n(ne,11,this);a(this,Ox,n(ne,12,this,"")),n(ne,15,this);a(this,Mx,n(ne,16,this)),n(ne,19,this);a(this,Nx,n(ne,20,this)),n(ne,23,this);a(this,Dx,n(ne,24,this,"idle")),n(ne,27,this);a(this,Bx,n(ne,28,this,!1)),n(ne,31,this);a(this,As);a(this,ki)}connectedCallback(){super.connectedCallback(),p(this,Tt,Ux).call(this),p(this,Tt,Vx).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Tt,Px).call(this),p(this,Tt,qx).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&p(this,Tt,Vx).call(this),t.has("fallbackDelay")&&p(this,Tt,Ux).call(this)}render(){let t=this.src&&o(this,Tt,vI)==="loaded",e=!t&&o(this,Tt,xI);return f`
1501
+ `,cI,pI,hI,uI,mI,fI,gI,ne,Ox,Mx,Nx,Dx,Hx,Bx,vI,bI,Tt,Fx,Vx,xI,mu,As,ki,Oc,Px,Ux,qx,jx,io=class extends(gI=x,fI=[u()],mI=[u()],uI=[u({type:Number,attribute:"fallback-delay"})],hI=[u({reflect:!0})],pI=[C()],cI=[C()],gI){constructor(){super(...arguments);a(this,Tt);a(this,Ox,n(ne,8,this)),n(ne,11,this);a(this,Mx,n(ne,12,this,"")),n(ne,15,this);a(this,Nx,n(ne,16,this)),n(ne,19,this);a(this,Dx,n(ne,20,this)),n(ne,23,this);a(this,Hx,n(ne,24,this,"idle")),n(ne,27,this);a(this,Fx,n(ne,28,this,!1)),n(ne,31,this);a(this,As);a(this,ki)}connectedCallback(){super.connectedCallback(),p(this,Tt,qx).call(this),p(this,Tt,Px).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Tt,Ux).call(this),p(this,Tt,jx).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&p(this,Tt,Px).call(this),t.has("fallbackDelay")&&p(this,Tt,qx).call(this)}render(){let t=this.src&&o(this,Tt,vI)==="loaded",e=!t&&o(this,Tt,xI);return f`
1502
1502
  <span part="root">
1503
1503
  ${t?f`
1504
1504
  <img
@@ -1510,7 +1510,7 @@ label, legend, caption, figcaption, th, td {
1510
1510
  <span part="fallback"><slot></slot></span>
1511
1511
  `:L}
1512
1512
  </span>
1513
- `}};ne=A(gI),zx=new WeakMap,Ox=new WeakMap,Mx=new WeakMap,Nx=new WeakMap,Dx=new WeakMap,Tt=new WeakSet,Bx=new WeakMap,As=new WeakMap,ki=new WeakMap,Oc=function(t){h(this,Tt,t,bI),this.dispatchEvent(jx({status:t}))},Vx=function(){if(p(this,Tt,Px).call(this),!this.src){p(this,Tt,Oc).call(this,"error");return}p(this,Tt,Oc).call(this,"loading");let t=new Image;t.onload=()=>p(this,Tt,Oc).call(this,"loaded"),t.onerror=()=>p(this,Tt,Oc).call(this,"error"),t.src=this.src,h(this,As,t)},Px=function(){o(this,As)&&(o(this,As).onload=null,o(this,As).onerror=null,h(this,As,void 0))},Ux=function(){if(p(this,Tt,qx).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,Tt,!0,mu);return}h(this,Tt,!1,mu),h(this,ki,setTimeout(()=>{h(this,Tt,!0,mu)},this.fallbackDelay))},qx=function(){o(this,ki)!==void 0&&(clearTimeout(o(this,ki)),h(this,ki,void 0))},c(ne,4,"src",fI,io,zx),c(ne,4,"alt",mI,io,Ox),c(ne,4,"fallbackDelay",uI,io,Mx),c(ne,4,"size",hI,io,Nx),Hx=c(ne,20,"#imageStatus",pI,Tt,Dx),vI=Hx.get,bI=Hx.set,Fx=c(ne,20,"#delayPassed",cI,Tt,Bx),xI=Fx.get,mu=Fx.set,T(ne,io),v(io,"tagName","dui-avatar"),v(io,"styles",[w,d4]);var c4=k`
1513
+ `}};ne=A(gI),Ox=new WeakMap,Mx=new WeakMap,Nx=new WeakMap,Dx=new WeakMap,Hx=new WeakMap,Tt=new WeakSet,Fx=new WeakMap,As=new WeakMap,ki=new WeakMap,Oc=function(t){h(this,Tt,t,bI),this.dispatchEvent(Kx({status:t}))},Px=function(){if(p(this,Tt,Ux).call(this),!this.src){p(this,Tt,Oc).call(this,"error");return}p(this,Tt,Oc).call(this,"loading");let t=new Image;t.onload=()=>p(this,Tt,Oc).call(this,"loaded"),t.onerror=()=>p(this,Tt,Oc).call(this,"error"),t.src=this.src,h(this,As,t)},Ux=function(){o(this,As)&&(o(this,As).onload=null,o(this,As).onerror=null,h(this,As,void 0))},qx=function(){if(p(this,Tt,jx).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,Tt,!0,mu);return}h(this,Tt,!1,mu),h(this,ki,setTimeout(()=>{h(this,Tt,!0,mu)},this.fallbackDelay))},jx=function(){o(this,ki)!==void 0&&(clearTimeout(o(this,ki)),h(this,ki,void 0))},c(ne,4,"src",fI,io,Ox),c(ne,4,"alt",mI,io,Mx),c(ne,4,"fallbackDelay",uI,io,Nx),c(ne,4,"size",hI,io,Dx),Bx=c(ne,20,"#imageStatus",pI,Tt,Hx),vI=Bx.get,bI=Bx.set,Vx=c(ne,20,"#delayPassed",cI,Tt,Fx),xI=Vx.get,mu=Vx.set,T(ne,io),v(io,"tagName","dui-avatar"),v(io,"styles",[w,d4]);var c4=k`
1514
1514
  :host {
1515
1515
  --avatar-bg: oklch(from var(--foreground) l c h / 0.08);
1516
1516
  --avatar-fg: var(--text-2);
@@ -1770,7 +1770,7 @@ label, legend, caption, figcaption, th, td {
1770
1770
  --icon-size: var(--space-3_5);
1771
1771
  color: color-mix(in oklch, var(--text-2) 50%, transparent);
1772
1772
  }
1773
- `,ha=class extends ia{static styles=[...ia.styles,C4]};customElements.define(ha.tagName,ha);var Xx=M("dui-navigate",{bubbles:!0,composed:!0}),$4=b`
1773
+ `,ha=class extends ia{static styles=[...ia.styles,C4]};customElements.define(ha.tagName,ha);var Jx=M("dui-navigate",{bubbles:!0,composed:!0}),$4=b`
1774
1774
  :host {
1775
1775
  display: inline-block;
1776
1776
  }
@@ -1795,7 +1795,7 @@ label, legend, caption, figcaption, th, td {
1795
1795
  user-select: none;
1796
1796
  -webkit-tap-highlight-color: transparent;
1797
1797
  }
1798
- `,yI,wI,kI,EI,CI,no,Kx,Wx,Yx,Gx,fu,gu,ua,$I,TI,Pe=class extends(CI=x,EI=[u({type:Boolean,reflect:!0})],kI=[u({type:Boolean,attribute:"focusable-when-disabled"})],wI=[u()],yI=[u()],CI){constructor(){super(...arguments);a(this,ua);a(this,Kx,n(no,8,this,!1)),n(no,11,this);a(this,Wx,n(no,12,this,!1)),n(no,15,this);a(this,Yx,n(no,16,this,"button")),n(no,19,this);a(this,Gx,n(no,20,this)),n(no,23,this);a(this,fu,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});a(this,gu,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(Xx({href:this.href})))})}render(){return this.href!==void 0?p(this,ua,TI).call(this):p(this,ua,$I).call(this)}};no=A(CI),Kx=new WeakMap,Wx=new WeakMap,Yx=new WeakMap,Gx=new WeakMap,fu=new WeakMap,gu=new WeakMap,ua=new WeakSet,$I=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
1798
+ `,yI,wI,kI,EI,CI,no,Wx,Yx,Gx,Xx,fu,gu,ua,$I,TI,Pe=class extends(CI=x,EI=[u({type:Boolean,reflect:!0})],kI=[u({type:Boolean,attribute:"focusable-when-disabled"})],wI=[u()],yI=[u()],CI){constructor(){super(...arguments);a(this,ua);a(this,Wx,n(no,8,this,!1)),n(no,11,this);a(this,Yx,n(no,12,this,!1)),n(no,15,this);a(this,Gx,n(no,16,this,"button")),n(no,19,this);a(this,Xx,n(no,20,this)),n(no,23,this);a(this,fu,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});a(this,gu,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(Jx({href:this.href})))})}render(){return this.href!==void 0?p(this,ua,TI).call(this):p(this,ua,$I).call(this)}};no=A(CI),Wx=new WeakMap,Yx=new WeakMap,Gx=new WeakMap,Xx=new WeakMap,fu=new WeakMap,gu=new WeakMap,ua=new WeakSet,$I=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
1799
1799
  <button
1800
1800
  part="root"
1801
1801
  type="${this.type}"
@@ -1814,7 +1814,7 @@ label, legend, caption, figcaption, th, td {
1814
1814
  >
1815
1815
  <slot></slot>
1816
1816
  </a>
1817
- `},c(no,4,"disabled",EI,Pe,Kx),c(no,4,"focusableWhenDisabled",kI,Pe,Wx),c(no,4,"type",wI,Pe,Yx),c(no,4,"href",yI,Pe,Gx),T(no,Pe),v(Pe,"tagName","dui-button"),v(Pe,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Pe,"styles",[w,$4]);var T4=k`
1817
+ `},c(no,4,"disabled",EI,Pe,Wx),c(no,4,"focusableWhenDisabled",kI,Pe,Yx),c(no,4,"type",wI,Pe,Gx),c(no,4,"href",yI,Pe,Xx),T(no,Pe),v(Pe,"tagName","dui-button"),v(Pe,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Pe,"styles",[w,$4]);var T4=k`
1818
1818
  /* =================================================================
1819
1819
  * Two-axis variant system:
1820
1820
  * variant → semantic intent (neutral, primary, danger)
@@ -2035,7 +2035,7 @@ label, legend, caption, figcaption, th, td {
2035
2035
  :host([data-open][appearance="soft"]) [part="root"]:not(:disabled):not([aria-disabled="true"]) {
2036
2036
  background: oklch(from var(--_intent-base) l c h / 0.18);
2037
2037
  }
2038
- `,ma=class extends Pe{static styles=[...Pe.styles,T4]};customElements.define(ma.tagName,ma);var by=M("value-change",{bubbles:!0,composed:!0}),S4=b`
2038
+ `,ma=class extends Pe{static styles=[...Pe.styles,T4]};customElements.define(ma.tagName,ma);var xy=M("value-change",{bubbles:!0,composed:!0}),S4=b`
2039
2039
  :host {
2040
2040
  display: inline-block;
2041
2041
  }
@@ -2095,7 +2095,7 @@ label, legend, caption, figcaption, th, td {
2095
2095
  [part="day"]:disabled {
2096
2096
  cursor: not-allowed;
2097
2097
  }
2098
- `,SI,AI,_I,RI,II,LI,zI,OI,MI,NI,DI,HI,ct,Jx,Qx,Zx,ty,ey,oy,ry,sy,iy,BI,hy,D,ny,ay,uy,vu,ly,dy,bu,xu,cy,py,yu,wu,my,Uo,ku,Mc,Eu,fy,FI,VI,PI,gy,vy,Cu,$u,Tu,Su,$e=class extends(HI=x,DI=[u()],NI=[u({attribute:"default-value"})],MI=[u()],OI=[u()],zI=[u()],LI=[u({type:Boolean,reflect:!0})],II=[u({type:Boolean,reflect:!0,attribute:"read-only"})],RI=[C()],_I=[C()],AI=[C()],SI=[C()],HI){constructor(){super(...arguments);a(this,D);a(this,Jx,n(ct,8,this)),n(ct,11,this);a(this,Qx,n(ct,12,this)),n(ct,15,this);a(this,Zx,n(ct,16,this)),n(ct,19,this);a(this,ty,n(ct,20,this)),n(ct,23,this);a(this,ey,n(ct,24,this,"en-US")),n(ct,27,this);a(this,oy,n(ct,28,this,!1)),n(ct,31,this);a(this,ry,n(ct,32,this,!1)),n(ct,35,this);a(this,sy,n(ct,36,this)),n(ct,39,this);a(this,ny,n(ct,40,this,new Date)),n(ct,43,this);a(this,ly,n(ct,44,this,new Date().getMonth())),n(ct,47,this);a(this,cy,n(ct,48,this,new Date().getFullYear())),n(ct,51,this);a(this,Cu,t=>{let e=t.currentTarget,s=e.dataset.date;s&&!e.disabled&&p(this,D,gy).call(this,s)});a(this,$u,t=>{let e=new Date(o(this,D,uy)),s=!0;switch(t.key){case"ArrowLeft":e.setDate(e.getDate()-1);break;case"ArrowRight":e.setDate(e.getDate()+1);break;case"ArrowUp":e.setDate(e.getDate()-7);break;case"ArrowDown":e.setDate(e.getDate()+7);break;case"PageUp":t.shiftKey?e.setFullYear(e.getFullYear()-1):e.setMonth(e.getMonth()-1);break;case"PageDown":t.shiftKey?e.setFullYear(e.getFullYear()+1):e.setMonth(e.getMonth()+1);break;case"Home":{e.setDate(1);break}case"End":{let l=p(this,D,Eu).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),p(this,D,Mc).call(this,e)||p(this,D,gy).call(this,p(this,D,Uo).call(this,e));return;default:s=!1}s&&(t.preventDefault(),h(this,D,e,vu),h(this,D,e.getMonth(),xu),h(this,D,e.getFullYear(),wu),this.updateComplete.then(()=>{let l=p(this,D,Uo).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});a(this,Tu,()=>{p(this,D,vy).call(this,-1)});a(this,Su,()=>{p(this,D,vy).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,D,this.defaultValue,hy);let t=o(this,D,my);if(t){let e=new Date(t+"T00:00:00");h(this,D,e.getMonth(),xu),h(this,D,e.getFullYear(),wu),h(this,D,e,vu)}}render(){let t=p(this,D,FI).call(this),e=p(this,D,VI).call(this),s=p(this,D,PI).call(this),l=p(this,D,Uo).call(this,o(this,D,uy));return f`
2098
+ `,SI,AI,_I,RI,II,LI,zI,OI,MI,NI,DI,HI,ct,Qx,Zx,ty,ey,oy,ry,sy,iy,ny,BI,uy,D,ay,ly,my,vu,dy,cy,bu,xu,py,hy,yu,wu,fy,Uo,ku,Mc,Eu,gy,FI,VI,PI,vy,by,Cu,$u,Tu,Su,$e=class extends(HI=x,DI=[u()],NI=[u({attribute:"default-value"})],MI=[u()],OI=[u()],zI=[u()],LI=[u({type:Boolean,reflect:!0})],II=[u({type:Boolean,reflect:!0,attribute:"read-only"})],RI=[C()],_I=[C()],AI=[C()],SI=[C()],HI){constructor(){super(...arguments);a(this,D);a(this,Qx,n(ct,8,this)),n(ct,11,this);a(this,Zx,n(ct,12,this)),n(ct,15,this);a(this,ty,n(ct,16,this)),n(ct,19,this);a(this,ey,n(ct,20,this)),n(ct,23,this);a(this,oy,n(ct,24,this,"en-US")),n(ct,27,this);a(this,ry,n(ct,28,this,!1)),n(ct,31,this);a(this,sy,n(ct,32,this,!1)),n(ct,35,this);a(this,iy,n(ct,36,this)),n(ct,39,this);a(this,ay,n(ct,40,this,new Date)),n(ct,43,this);a(this,dy,n(ct,44,this,new Date().getMonth())),n(ct,47,this);a(this,py,n(ct,48,this,new Date().getFullYear())),n(ct,51,this);a(this,Cu,t=>{let e=t.currentTarget,s=e.dataset.date;s&&!e.disabled&&p(this,D,vy).call(this,s)});a(this,$u,t=>{let e=new Date(o(this,D,my)),s=!0;switch(t.key){case"ArrowLeft":e.setDate(e.getDate()-1);break;case"ArrowRight":e.setDate(e.getDate()+1);break;case"ArrowUp":e.setDate(e.getDate()-7);break;case"ArrowDown":e.setDate(e.getDate()+7);break;case"PageUp":t.shiftKey?e.setFullYear(e.getFullYear()-1):e.setMonth(e.getMonth()-1);break;case"PageDown":t.shiftKey?e.setFullYear(e.getFullYear()+1):e.setMonth(e.getMonth()+1);break;case"Home":{e.setDate(1);break}case"End":{let l=p(this,D,Eu).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),p(this,D,Mc).call(this,e)||p(this,D,vy).call(this,p(this,D,Uo).call(this,e));return;default:s=!1}s&&(t.preventDefault(),h(this,D,e,vu),h(this,D,e.getMonth(),xu),h(this,D,e.getFullYear(),wu),this.updateComplete.then(()=>{let l=p(this,D,Uo).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});a(this,Tu,()=>{p(this,D,by).call(this,-1)});a(this,Su,()=>{p(this,D,by).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,D,this.defaultValue,uy);let t=o(this,D,fy);if(t){let e=new Date(t+"T00:00:00");h(this,D,e.getMonth(),xu),h(this,D,e.getFullYear(),wu),h(this,D,e,vu)}}render(){let t=p(this,D,FI).call(this),e=p(this,D,VI).call(this),s=p(this,D,PI).call(this),l=p(this,D,Uo).call(this,o(this,D,my));return f`
2099
2099
  <div part="root" role="grid" @keydown="${o(this,$u)}">
2100
2100
  <div part="header">
2101
2101
  <button
@@ -2136,7 +2136,7 @@ label, legend, caption, figcaption, th, td {
2136
2136
  `)}
2137
2137
  </div>
2138
2138
  </div>
2139
- `}};ct=A(HI),Jx=new WeakMap,Qx=new WeakMap,Zx=new WeakMap,ty=new WeakMap,ey=new WeakMap,oy=new WeakMap,ry=new WeakMap,sy=new WeakMap,D=new WeakSet,ny=new WeakMap,ly=new WeakMap,cy=new WeakMap,my=function(){return this.value??o(this,D,BI)},Uo=function(t){let e=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${s}-${l}`},ku=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},Mc=function(t){if(this.disabled)return!0;let e=p(this,D,Uo).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},Eu=function(t,e){return new Date(t,e+1,0).getDate()},fy=function(){try{let t=new Intl.Locale(this.locale),e=t.weekInfo??t.getWeekInfo?.();return e?.firstDay===7?0:e?.firstDay??0}catch{return 0}},FI=function(){let t=o(this,D,yu),e=o(this,D,bu),s=p(this,D,Eu).call(this,t,e),l=new Date(t,e,1).getDay(),d=p(this,D,fy).call(this),m=new Date,g=o(this,D,my),E=l-d;E<0&&(E+=7);let $=[],y=e===0?11:e-1,_=e===0?t-1:t,S=p(this,D,Eu).call(this,_,y);for(let F=E-1;F>=0;F--){let G=S-F,J=new Date(_,y,G);$.push({date:J,day:G,iso:p(this,D,Uo).call(this,J),isToday:p(this,D,ku).call(this,J,m),isSelected:p(this,D,Uo).call(this,J)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,J)})}for(let F=1;F<=s;F++){let G=new Date(t,e,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!1,isDisabled:p(this,D,Mc).call(this,G)})}let O=42-$.length,B=e===11?0:e+1,j=e===11?t+1:t;for(let F=1;F<=O;F++){let G=new Date(j,B,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,G)})}let K=[];for(let F=0;F<$.length;F+=7)K.push($.slice(F,F+7));return K},VI=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=p(this,D,fy).call(this),s=[];for(let l=0;l<7;l++){let d=new Date(2015,0,4+e+l);s.push(t.format(d))}return s},PI=function(){let t=new Date(o(this,D,yu),o(this,D,bu),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},gy=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,D,t,hy),this.dispatchEvent(by({value:t})))},vy=function(t){let e=o(this,D,bu)+t,s=o(this,D,yu);e<0?(e=11,s--):e>11&&(e=0,s++),h(this,D,e,xu),h(this,D,s,wu),h(this,D,new Date(s,e,1),vu)},Cu=new WeakMap,$u=new WeakMap,Tu=new WeakMap,Su=new WeakMap,c(ct,4,"value",DI,$e,Jx),c(ct,4,"defaultValue",NI,$e,Qx),c(ct,4,"min",MI,$e,Zx),c(ct,4,"max",OI,$e,ty),c(ct,4,"locale",zI,$e,ey),c(ct,4,"disabled",LI,$e,oy),c(ct,4,"readOnly",II,$e,ry),iy=c(ct,20,"#internalValue",RI,D,sy),BI=iy.get,hy=iy.set,ay=c(ct,20,"#focusedDate",_I,D,ny),uy=ay.get,vu=ay.set,dy=c(ct,20,"#viewMonth",AI,D,ly),bu=dy.get,xu=dy.set,py=c(ct,20,"#viewYear",SI,D,cy),yu=py.get,wu=py.set,T(ct,$e),v($e,"tagName","dui-calendar"),v($e,"styles",[w,S4]);var A4=k`
2139
+ `}};ct=A(HI),Qx=new WeakMap,Zx=new WeakMap,ty=new WeakMap,ey=new WeakMap,oy=new WeakMap,ry=new WeakMap,sy=new WeakMap,iy=new WeakMap,D=new WeakSet,ay=new WeakMap,dy=new WeakMap,py=new WeakMap,fy=function(){return this.value??o(this,D,BI)},Uo=function(t){let e=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${s}-${l}`},ku=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},Mc=function(t){if(this.disabled)return!0;let e=p(this,D,Uo).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},Eu=function(t,e){return new Date(t,e+1,0).getDate()},gy=function(){try{let t=new Intl.Locale(this.locale),e=t.weekInfo??t.getWeekInfo?.();return e?.firstDay===7?0:e?.firstDay??0}catch{return 0}},FI=function(){let t=o(this,D,yu),e=o(this,D,bu),s=p(this,D,Eu).call(this,t,e),l=new Date(t,e,1).getDay(),d=p(this,D,gy).call(this),m=new Date,g=o(this,D,fy),E=l-d;E<0&&(E+=7);let $=[],y=e===0?11:e-1,_=e===0?t-1:t,S=p(this,D,Eu).call(this,_,y);for(let F=E-1;F>=0;F--){let G=S-F,J=new Date(_,y,G);$.push({date:J,day:G,iso:p(this,D,Uo).call(this,J),isToday:p(this,D,ku).call(this,J,m),isSelected:p(this,D,Uo).call(this,J)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,J)})}for(let F=1;F<=s;F++){let G=new Date(t,e,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!1,isDisabled:p(this,D,Mc).call(this,G)})}let O=42-$.length,B=e===11?0:e+1,j=e===11?t+1:t;for(let F=1;F<=O;F++){let G=new Date(j,B,F);$.push({date:G,day:F,iso:p(this,D,Uo).call(this,G),isToday:p(this,D,ku).call(this,G,m),isSelected:p(this,D,Uo).call(this,G)===g,isOutsideMonth:!0,isDisabled:p(this,D,Mc).call(this,G)})}let K=[];for(let F=0;F<$.length;F+=7)K.push($.slice(F,F+7));return K},VI=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=p(this,D,gy).call(this),s=[];for(let l=0;l<7;l++){let d=new Date(2015,0,4+e+l);s.push(t.format(d))}return s},PI=function(){let t=new Date(o(this,D,yu),o(this,D,bu),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},vy=function(t){this.disabled||this.readOnly||(this.value===void 0&&h(this,D,t,uy),this.dispatchEvent(xy({value:t})))},by=function(t){let e=o(this,D,bu)+t,s=o(this,D,yu);e<0?(e=11,s--):e>11&&(e=0,s++),h(this,D,e,xu),h(this,D,s,wu),h(this,D,new Date(s,e,1),vu)},Cu=new WeakMap,$u=new WeakMap,Tu=new WeakMap,Su=new WeakMap,c(ct,4,"value",DI,$e,Qx),c(ct,4,"defaultValue",NI,$e,Zx),c(ct,4,"min",MI,$e,ty),c(ct,4,"max",OI,$e,ey),c(ct,4,"locale",zI,$e,oy),c(ct,4,"disabled",LI,$e,ry),c(ct,4,"readOnly",II,$e,sy),ny=c(ct,20,"#internalValue",RI,D,iy),BI=ny.get,uy=ny.set,ly=c(ct,20,"#focusedDate",_I,D,ay),my=ly.get,vu=ly.set,cy=c(ct,20,"#viewMonth",AI,D,dy),bu=cy.get,xu=cy.set,hy=c(ct,20,"#viewYear",SI,D,py),yu=hy.get,wu=hy.set,T(ct,$e),v($e,"tagName","dui-calendar"),v($e,"styles",[w,S4]);var A4=k`
2140
2140
  [part="root"] {
2141
2141
  padding: var(--space-3);
2142
2142
  font-family: var(--font-sans);
@@ -2258,7 +2258,7 @@ label, legend, caption, figcaption, th, td {
2258
2258
  display: flex;
2259
2259
  align-items: center;
2260
2260
  }
2261
- `,UI,qI,jI,KI,ir,xy,yy,wy,WI,YI,ar,ky,Ey,GI,XI,Nc,Dc,Hc,ga,Au,nr=class extends(KI=x,jI=[u({reflect:!0})],qI=[C()],UI=[C()],KI){constructor(){super(...arguments);a(this,ar);a(this,xy,n(ir,8,this,"")),n(ir,11,this);a(this,yy,n(ir,12,this,!1)),n(ir,15,this);a(this,ky,n(ir,16,this,!1)),n(ir,19,this);a(this,Nc,!1);a(this,Dc,!1);a(this,Hc,!1);a(this,ga,t=>{let e=t.target,s=e.assignedElements().length>0;e.name==="title"?h(this,Nc,s):e.name==="description"?h(this,Dc,s):e.name==="action"&&h(this,Hc,s),h(this,ar,o(this,Nc)||o(this,Dc)||o(this,Hc),YI)});a(this,Au,t=>{let e=t.target;h(this,ar,e.assignedElements().length>0,XI)})}render(){return f`
2261
+ `,UI,qI,jI,KI,ir,yy,wy,ky,WI,YI,ar,Ey,Cy,GI,XI,Nc,Dc,Hc,ga,Au,nr=class extends(KI=x,jI=[u({reflect:!0})],qI=[C()],UI=[C()],KI){constructor(){super(...arguments);a(this,ar);a(this,yy,n(ir,8,this,"")),n(ir,11,this);a(this,wy,n(ir,12,this,!1)),n(ir,15,this);a(this,Ey,n(ir,16,this,!1)),n(ir,19,this);a(this,Nc,!1);a(this,Dc,!1);a(this,Hc,!1);a(this,ga,t=>{let e=t.target,s=e.assignedElements().length>0;e.name==="title"?h(this,Nc,s):e.name==="description"?h(this,Dc,s):e.name==="action"&&h(this,Hc,s),h(this,ar,o(this,Nc)||o(this,Dc)||o(this,Hc),YI)});a(this,Au,t=>{let e=t.target;h(this,ar,e.assignedElements().length>0,XI)})}render(){return f`
2262
2262
  <div part="root">
2263
2263
  <div part="header" ?hidden=${!o(this,ar,WI)}>
2264
2264
  <div part="header-text">
@@ -2279,7 +2279,7 @@ label, legend, caption, figcaption, th, td {
2279
2279
  <slot name="footer" @slotchange=${o(this,Au)}></slot>
2280
2280
  </div>
2281
2281
  </div>
2282
- `}};ir=A(KI),xy=new WeakMap,yy=new WeakMap,ar=new WeakSet,ky=new WeakMap,Nc=new WeakMap,Dc=new WeakMap,Hc=new WeakMap,ga=new WeakMap,Au=new WeakMap,c(ir,4,"size",jI,nr,xy),wy=c(ir,20,"#hasHeader",qI,ar,yy),WI=wy.get,YI=wy.set,Ey=c(ir,20,"#hasFooter",UI,ar,ky),GI=Ey.get,XI=Ey.set,T(ir,nr),v(nr,"tagName","dui-card"),v(nr,"styles",[w,_4]);var R4=k`
2282
+ `}};ir=A(KI),yy=new WeakMap,wy=new WeakMap,ar=new WeakSet,Ey=new WeakMap,Nc=new WeakMap,Dc=new WeakMap,Hc=new WeakMap,ga=new WeakMap,Au=new WeakMap,c(ir,4,"size",jI,nr,yy),ky=c(ir,20,"#hasHeader",qI,ar,wy),WI=ky.get,YI=ky.set,Cy=c(ir,20,"#hasFooter",UI,ar,Ey),GI=Cy.get,XI=Cy.set,T(ir,nr),v(nr,"tagName","dui-card"),v(nr,"styles",[w,_4]);var R4=k`
2283
2283
  /* ---------------------------------------------------------------
2284
2284
  * Size tokens
2285
2285
  * --------------------------------------------------------------- */
@@ -2397,15 +2397,15 @@ label, legend, caption, figcaption, th, td {
2397
2397
  --_columns: 1;
2398
2398
  }
2399
2399
  }
2400
- `,JI,QI,_u,Cy,lr=class extends(QI=x,JI=[u({reflect:!0})],QI){constructor(){super(...arguments);a(this,Cy,n(_u,8,this,"3")),n(_u,11,this)}render(){return f`
2400
+ `,JI,QI,_u,$y,lr=class extends(QI=x,JI=[u({reflect:!0})],QI){constructor(){super(...arguments);a(this,$y,n(_u,8,this,"3")),n(_u,11,this)}render(){return f`
2401
2401
  <div part="root">
2402
2402
  <slot></slot>
2403
2403
  </div>
2404
- `}};_u=A(QI),Cy=new WeakMap,c(_u,4,"columns",JI,lr,Cy),T(_u,lr),v(lr,"tagName","dui-card-grid"),v(lr,"styles",[w,I4]);var L4=k`
2404
+ `}};_u=A(QI),$y=new WeakMap,c(_u,4,"columns",JI,lr,$y),T(_u,lr),v(lr,"tagName","dui-card-grid"),v(lr,"styles",[w,I4]);var L4=k`
2405
2405
  [part="root"] {
2406
2406
  gap: var(--space-4);
2407
2407
  }
2408
- `,ba=class extends lr{static styles=[...lr.styles,L4]};customElements.define(ba.tagName,ba);var Ru=Symbol("dui-checkbox-group");var Hy=M("checked-change",{bubbles:!0,composed:!0}),z4=b`
2408
+ `,ba=class extends lr{static styles=[...lr.styles,L4]};customElements.define(ba.tagName,ba);var Ru=Symbol("dui-checkbox-group");var By=M("checked-change",{bubbles:!0,composed:!0}),z4=b`
2409
2409
  :host {
2410
2410
  display: inline-flex;
2411
2411
  align-items: start;
@@ -2474,7 +2474,7 @@ label, legend, caption, figcaption, th, td {
2474
2474
  >
2475
2475
  <line x1="5" y1="12" x2="19" y2="12"></line>
2476
2476
  </svg>
2477
- `,ZI,tL,eL,oL,rL,sL,iL,nL,aL,lL,dL,xa,gt,$y,Ty,Sy,Ay,_y,Ry,Iy,Ly,zy,Oy,My,cL,Ny,le,Ei,Bc,pL,Dy,hL,Fc,Vc,Iu,ae=class extends(dL=x,lL=[u({type:Boolean,reflect:!0})],aL=[u({type:Boolean,attribute:"default-checked"})],nL=[u({type:Boolean,reflect:!0})],iL=[u({type:Boolean,reflect:!0})],sL=[u({type:Boolean,reflect:!0,attribute:"read-only"})],rL=[u({type:Boolean,reflect:!0})],oL=[u()],eL=[u()],tL=[u({type:Boolean})],ZI=[C()],dL){constructor(){super();a(this,le);a(this,xa);a(this,$y,n(gt,8,this)),n(gt,11,this);a(this,Ty,n(gt,12,this,!1)),n(gt,15,this);a(this,Sy,n(gt,16,this,!1)),n(gt,19,this);a(this,Ay,n(gt,20,this,!1)),n(gt,23,this);a(this,_y,n(gt,24,this,!1)),n(gt,27,this);a(this,Ry,n(gt,28,this,!1)),n(gt,31,this);a(this,Iy,n(gt,32,this)),n(gt,35,this);a(this,Ly,n(gt,36,this)),n(gt,39,this);a(this,zy,n(gt,40,this,!1)),n(gt,43,this);a(this,Oy,n(gt,44,this,!1)),n(gt,47,this);a(this,Ei,new q(this,{context:Ru,subscribe:!0}));a(this,Fc,t=>{o(this,Vc).call(this)});a(this,Vc,()=>{if(o(this,le,Dy)||this.readOnly)return;let t=o(this,Ei).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!o(this,le,Bc)):t.toggle(this.value);return}let e=!o(this,le,Bc);this.checked===void 0&&(h(this,le,e,Ny),this.indeterminate=!1),this.dispatchEvent(Hy({checked:e,indeterminate:!1}))});a(this,Iu,t=>{t.key===" "&&(t.preventDefault(),o(this,Vc).call(this))});h(this,xa,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,le,!0,Ny),this.addEventListener("click",o(this,Fc))}willUpdate(){p(this,le,hL).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Fc))}render(){let t=o(this,le,Bc),e=o(this,le,pL),s=o(this,le,Dy),l=t||e;return f`
2477
+ `,ZI,tL,eL,oL,rL,sL,iL,nL,aL,lL,dL,xa,gt,Ty,Sy,Ay,_y,Ry,Iy,Ly,zy,Oy,My,Ny,cL,Dy,le,Ei,Bc,pL,Hy,hL,Fc,Vc,Iu,ae=class extends(dL=x,lL=[u({type:Boolean,reflect:!0})],aL=[u({type:Boolean,attribute:"default-checked"})],nL=[u({type:Boolean,reflect:!0})],iL=[u({type:Boolean,reflect:!0})],sL=[u({type:Boolean,reflect:!0,attribute:"read-only"})],rL=[u({type:Boolean,reflect:!0})],oL=[u()],eL=[u()],tL=[u({type:Boolean})],ZI=[C()],dL){constructor(){super();a(this,le);a(this,xa);a(this,Ty,n(gt,8,this)),n(gt,11,this);a(this,Sy,n(gt,12,this,!1)),n(gt,15,this);a(this,Ay,n(gt,16,this,!1)),n(gt,19,this);a(this,_y,n(gt,20,this,!1)),n(gt,23,this);a(this,Ry,n(gt,24,this,!1)),n(gt,27,this);a(this,Iy,n(gt,28,this,!1)),n(gt,31,this);a(this,Ly,n(gt,32,this)),n(gt,35,this);a(this,zy,n(gt,36,this)),n(gt,39,this);a(this,Oy,n(gt,40,this,!1)),n(gt,43,this);a(this,My,n(gt,44,this,!1)),n(gt,47,this);a(this,Ei,new q(this,{context:Ru,subscribe:!0}));a(this,Fc,t=>{o(this,Vc).call(this)});a(this,Vc,()=>{if(o(this,le,Hy)||this.readOnly)return;let t=o(this,Ei).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!o(this,le,Bc)):t.toggle(this.value);return}let e=!o(this,le,Bc);this.checked===void 0&&(h(this,le,e,Dy),this.indeterminate=!1),this.dispatchEvent(By({checked:e,indeterminate:!1}))});a(this,Iu,t=>{t.key===" "&&(t.preventDefault(),o(this,Vc).call(this))});h(this,xa,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,le,!0,Dy),this.addEventListener("click",o(this,Fc))}willUpdate(){p(this,le,hL).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Fc))}render(){let t=o(this,le,Bc),e=o(this,le,pL),s=o(this,le,Hy),l=t||e;return f`
2478
2478
  <span
2479
2479
  part="root"
2480
2480
  role="checkbox"
@@ -2501,7 +2501,7 @@ label, legend, caption, figcaption, th, td {
2501
2501
  </span>
2502
2502
  </span>
2503
2503
  <slot></slot>
2504
- `}};gt=A(dL),xa=new WeakMap,$y=new WeakMap,Ty=new WeakMap,Sy=new WeakMap,Ay=new WeakMap,_y=new WeakMap,Ry=new WeakMap,Iy=new WeakMap,Ly=new WeakMap,zy=new WeakMap,Oy=new WeakMap,le=new WeakSet,Ei=new WeakMap,Bc=function(){let t=o(this,Ei).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(e=>t.checkedValues.includes(e)):t.checkedValues.includes(this.value):this.checked??o(this,le,cL)},pL=function(){let t=o(this,Ei).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(s=>t.checkedValues.includes(s)).length;return e>0&&e<t.allValues.length}return this.indeterminate},Dy=function(){return this.disabled||(o(this,Ei).value?.disabled??!1)},hL=function(){o(this,le,Bc)?o(this,xa).setFormValue(this.value??"on"):o(this,xa).setFormValue(null)},Fc=new WeakMap,Vc=new WeakMap,Iu=new WeakMap,c(gt,4,"checked",lL,ae,$y),c(gt,4,"defaultChecked",aL,ae,Ty),c(gt,4,"indeterminate",nL,ae,Sy),c(gt,4,"disabled",iL,ae,Ay),c(gt,4,"readOnly",sL,ae,_y),c(gt,4,"required",rL,ae,Ry),c(gt,4,"name",oL,ae,Iy),c(gt,4,"value",eL,ae,Ly),c(gt,4,"parent",tL,ae,zy),My=c(gt,20,"#internalChecked",ZI,le,Oy),cL=My.get,Ny=My.set,T(gt,ae),v(ae,"tagName","dui-checkbox"),v(ae,"formAssociated",!0),v(ae,"styles",[w,z4]);var Ou=M("value-change",{bubbles:!0,composed:!0}),N4=b`
2504
+ `}};gt=A(dL),xa=new WeakMap,Ty=new WeakMap,Sy=new WeakMap,Ay=new WeakMap,_y=new WeakMap,Ry=new WeakMap,Iy=new WeakMap,Ly=new WeakMap,zy=new WeakMap,Oy=new WeakMap,My=new WeakMap,le=new WeakSet,Ei=new WeakMap,Bc=function(){let t=o(this,Ei).value;return t&&this.value!==void 0?this.parent?t.allValues.length>0&&t.allValues.every(e=>t.checkedValues.includes(e)):t.checkedValues.includes(this.value):this.checked??o(this,le,cL)},pL=function(){let t=o(this,Ei).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(s=>t.checkedValues.includes(s)).length;return e>0&&e<t.allValues.length}return this.indeterminate},Hy=function(){return this.disabled||(o(this,Ei).value?.disabled??!1)},hL=function(){o(this,le,Bc)?o(this,xa).setFormValue(this.value??"on"):o(this,xa).setFormValue(null)},Fc=new WeakMap,Vc=new WeakMap,Iu=new WeakMap,c(gt,4,"checked",lL,ae,Ty),c(gt,4,"defaultChecked",aL,ae,Sy),c(gt,4,"indeterminate",nL,ae,Ay),c(gt,4,"disabled",iL,ae,_y),c(gt,4,"readOnly",sL,ae,Ry),c(gt,4,"required",rL,ae,Iy),c(gt,4,"name",oL,ae,Ly),c(gt,4,"value",eL,ae,zy),c(gt,4,"parent",tL,ae,Oy),Ny=c(gt,20,"#internalChecked",ZI,le,My),cL=Ny.get,Dy=Ny.set,T(gt,ae),v(ae,"tagName","dui-checkbox"),v(ae,"formAssociated",!0),v(ae,"styles",[w,z4]);var Ou=M("value-change",{bubbles:!0,composed:!0}),N4=b`
2505
2505
  :host {
2506
2506
  display: block;
2507
2507
  }
@@ -2511,7 +2511,7 @@ label, legend, caption, figcaption, th, td {
2511
2511
  flex-direction: column;
2512
2512
  align-items: start;
2513
2513
  }
2514
- `,uL,mL,fL,gL,vL,bL,xL,de,By,Fy,Vy,Py,Uy,qy,yL,Lu,Co,Pc,Mu,Nu,jy,zu,Ue=class extends(xL=x,bL=[u({attribute:!1})],vL=[u({attribute:!1})],gL=[u({attribute:!1})],fL=[u({type:Boolean,reflect:!0})],mL=[C()],uL=[lt({context:Ru}),C()],xL){constructor(){super(...arguments);a(this,Co);a(this,By,n(de,8,this)),n(de,11,this);a(this,Fy,n(de,12,this,[])),n(de,15,this);a(this,Vy,n(de,16,this,[])),n(de,19,this);a(this,Py,n(de,20,this,!1)),n(de,23,this);a(this,Uy,n(de,24,this,[])),n(de,27,this);a(this,Pc,()=>this.value??o(this,Co,yL));a(this,Mu,t=>{let e=o(this,Pc).call(this),s=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&h(this,Co,s,Lu),this.dispatchEvent(Ou(s))});a(this,Nu,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&h(this,Co,e,Lu),this.dispatchEvent(Ou(e))});a(this,jy,n(de,28,this,p(this,Co,zu).call(this))),n(de,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Co,[...this.defaultValue],Lu),this._ctx=p(this,Co,zu).call(this)}willUpdate(){this._ctx=p(this,Co,zu).call(this)}render(){return f`
2514
+ `,uL,mL,fL,gL,vL,bL,xL,de,Fy,Vy,Py,Uy,qy,jy,yL,Lu,Co,Pc,Mu,Nu,Ky,zu,Ue=class extends(xL=x,bL=[u({attribute:!1})],vL=[u({attribute:!1})],gL=[u({attribute:!1})],fL=[u({type:Boolean,reflect:!0})],mL=[C()],uL=[lt({context:Ru}),C()],xL){constructor(){super(...arguments);a(this,Co);a(this,Fy,n(de,8,this)),n(de,11,this);a(this,Vy,n(de,12,this,[])),n(de,15,this);a(this,Py,n(de,16,this,[])),n(de,19,this);a(this,Uy,n(de,20,this,!1)),n(de,23,this);a(this,qy,n(de,24,this,[])),n(de,27,this);a(this,Pc,()=>this.value??o(this,Co,yL));a(this,Mu,t=>{let e=o(this,Pc).call(this),s=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&h(this,Co,s,Lu),this.dispatchEvent(Ou(s))});a(this,Nu,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&h(this,Co,e,Lu),this.dispatchEvent(Ou(e))});a(this,Ky,n(de,28,this,p(this,Co,zu).call(this))),n(de,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Co,[...this.defaultValue],Lu),this._ctx=p(this,Co,zu).call(this)}willUpdate(){this._ctx=p(this,Co,zu).call(this)}render(){return f`
2515
2515
  <div
2516
2516
  part="root"
2517
2517
  role="group"
@@ -2519,7 +2519,7 @@ label, legend, caption, figcaption, th, td {
2519
2519
  >
2520
2520
  <slot></slot>
2521
2521
  </div>
2522
- `}};de=A(xL),By=new WeakMap,Fy=new WeakMap,Vy=new WeakMap,Py=new WeakMap,Uy=new WeakMap,Co=new WeakSet,Pc=new WeakMap,Mu=new WeakMap,Nu=new WeakMap,jy=new WeakMap,zu=function(){return{checkedValues:o(this,Pc).call(this),allValues:this.allValues,disabled:this.disabled,toggle:o(this,Mu),toggleAll:o(this,Nu)}},c(de,4,"value",bL,Ue,By),c(de,4,"defaultValue",vL,Ue,Fy),c(de,4,"allValues",gL,Ue,Vy),c(de,4,"disabled",fL,Ue,Py),qy=c(de,20,"#internalValues",mL,Co,Uy),yL=qy.get,Lu=qy.set,c(de,4,"_ctx",uL,Ue,jy),T(de,Ue),v(Ue,"tagName","dui-checkbox-group"),v(Ue,"styles",[w,N4]);var D4=k`
2522
+ `}};de=A(xL),Fy=new WeakMap,Vy=new WeakMap,Py=new WeakMap,Uy=new WeakMap,qy=new WeakMap,Co=new WeakSet,Pc=new WeakMap,Mu=new WeakMap,Nu=new WeakMap,Ky=new WeakMap,zu=function(){return{checkedValues:o(this,Pc).call(this),allValues:this.allValues,disabled:this.disabled,toggle:o(this,Mu),toggleAll:o(this,Nu)}},c(de,4,"value",bL,Ue,Fy),c(de,4,"defaultValue",vL,Ue,Vy),c(de,4,"allValues",gL,Ue,Py),c(de,4,"disabled",fL,Ue,Uy),jy=c(de,20,"#internalValues",mL,Co,qy),yL=jy.get,Lu=jy.set,c(de,4,"_ctx",uL,Ue,Ky),T(de,Ue),v(Ue,"tagName","dui-checkbox-group"),v(Ue,"styles",[w,N4]);var D4=k`
2523
2523
  :host {
2524
2524
  --checkbox-size: var(--space-4_5);
2525
2525
  gap: var(--space-2);
@@ -2580,7 +2580,7 @@ label, legend, caption, figcaption, th, td {
2580
2580
  [part="root"][data-disabled] {
2581
2581
  opacity: 0.4;
2582
2582
  }
2583
- `,wa=class extends Ue{static styles=[...Ue.styles,H4]};customElements.define(wa.tagName,wa);var d0=M("open-change",{bubbles:!0,composed:!0}),B4=b`
2583
+ `,wa=class extends Ue{static styles=[...Ue.styles,H4]};customElements.define(wa.tagName,wa);var c0=M("open-change",{bubbles:!0,composed:!0}),B4=b`
2584
2584
  :host {
2585
2585
  display: block;
2586
2586
  }
@@ -2613,7 +2613,7 @@ label, legend, caption, figcaption, th, td {
2613
2613
  contain: content;
2614
2614
  transition-property: height;
2615
2615
  }
2616
- `,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,Ky,Wy,Yy,Gy,Xy,Jy,n0,Du,W,Qy,Zy,Hu,Bu,t0,e0,IL,Ci,o0,r0,a0,Fu,s0,i0,LL,l0,$i,Ti,_s,Uc,zL,OL,Vu,Pu,ao=class extends(RL=x,_L=[u({type:Boolean,reflect:!0})],AL=[u({type:Boolean,attribute:"default-open"})],SL=[u({type:Boolean,reflect:!0})],TL=[u({type:Boolean,attribute:"keep-mounted"})],$L=[C()],CL=[C()],EL=[C()],kL=[C()],wL=[C()],RL){constructor(){super(...arguments);a(this,W);a(this,Ky,n(Rt,8,this,!1)),n(Rt,11,this);a(this,Wy,n(Rt,12,this,!1)),n(Rt,15,this);a(this,Yy,n(Rt,16,this,!1)),n(Rt,19,this);a(this,Gy,n(Rt,20,this,!1)),n(Rt,23,this);a(this,Xy,n(Rt,24,this,!1)),n(Rt,27,this);a(this,Qy,n(Rt,28,this,!1)),n(Rt,31,this);a(this,t0,n(Rt,32,this,"0")),n(Rt,35,this);a(this,o0,n(Rt,36,this,!1)),n(Rt,39,this);a(this,s0,n(Rt,40,this,!1)),n(Rt,43,this);a(this,$i);a(this,Ti,0);a(this,_s,!1);a(this,Vu,t=>{t.propertyName==="height"&&(o(this,W,Hu)?(h(this,W,!1,Bu),this.keepMounted||h(this,W,!1,Fu)):o(this,W,Uc)&&h(this,W,"auto",Ci))});a(this,Pu,()=>{if(this.disabled)return;let t=!o(this,W,Uc);o(this,_s)||h(this,W,t,l0),this.dispatchEvent(d0({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,_s,this.hasAttribute("open")),!o(this,_s)&&this.defaultOpen&&h(this,W,!0,l0)}willUpdate(t){t.has("open")&&o(this,$i)!==void 0&&h(this,_s,!0);let e=o(this,W,Uc);o(this,$i)===void 0?(h(this,W,e,Fu),h(this,W,e?"auto":"0",Ci)):o(this,$i)!==e&&(e?p(this,W,zL).call(this):p(this,W,OL).call(this)),h(this,$i,e)}render(){let t=o(this,W,Uc),e=o(this,W,a0)||this.keepMounted;return f`
2616
+ `,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,Wy,Yy,Gy,Xy,Jy,Qy,a0,Du,W,Zy,t0,Hu,Bu,e0,o0,IL,Ci,r0,s0,l0,Fu,i0,n0,LL,d0,$i,Ti,_s,Uc,zL,OL,Vu,Pu,ao=class extends(RL=x,_L=[u({type:Boolean,reflect:!0})],AL=[u({type:Boolean,attribute:"default-open"})],SL=[u({type:Boolean,reflect:!0})],TL=[u({type:Boolean,attribute:"keep-mounted"})],$L=[C()],CL=[C()],EL=[C()],kL=[C()],wL=[C()],RL){constructor(){super(...arguments);a(this,W);a(this,Wy,n(Rt,8,this,!1)),n(Rt,11,this);a(this,Yy,n(Rt,12,this,!1)),n(Rt,15,this);a(this,Gy,n(Rt,16,this,!1)),n(Rt,19,this);a(this,Xy,n(Rt,20,this,!1)),n(Rt,23,this);a(this,Jy,n(Rt,24,this,!1)),n(Rt,27,this);a(this,Zy,n(Rt,28,this,!1)),n(Rt,31,this);a(this,e0,n(Rt,32,this,"0")),n(Rt,35,this);a(this,r0,n(Rt,36,this,!1)),n(Rt,39,this);a(this,i0,n(Rt,40,this,!1)),n(Rt,43,this);a(this,$i);a(this,Ti,0);a(this,_s,!1);a(this,Vu,t=>{t.propertyName==="height"&&(o(this,W,Hu)?(h(this,W,!1,Bu),this.keepMounted||h(this,W,!1,Fu)):o(this,W,Uc)&&h(this,W,"auto",Ci))});a(this,Pu,()=>{if(this.disabled)return;let t=!o(this,W,Uc);o(this,_s)||h(this,W,t,d0),this.dispatchEvent(c0({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,_s,this.hasAttribute("open")),!o(this,_s)&&this.defaultOpen&&h(this,W,!0,d0)}willUpdate(t){t.has("open")&&o(this,$i)!==void 0&&h(this,_s,!0);let e=o(this,W,Uc);o(this,$i)===void 0?(h(this,W,e,Fu),h(this,W,e?"auto":"0",Ci)):o(this,$i)!==e&&(e?p(this,W,zL).call(this):p(this,W,OL).call(this)),h(this,$i,e)}render(){let t=o(this,W,Uc),e=o(this,W,l0)||this.keepMounted;return f`
2617
2617
  <button
2618
2618
  part="trigger"
2619
2619
  aria-expanded=${t}
@@ -2629,10 +2629,10 @@ label, legend, caption, figcaption, th, td {
2629
2629
  part="panel"
2630
2630
  role="region"
2631
2631
  style="height: ${o(this,W,IL)}"
2632
- ?data-open=${t&&!o(this,W,n0)}
2633
- ?data-starting-style=${o(this,W,n0)}
2632
+ ?data-open=${t&&!o(this,W,a0)}
2633
+ ?data-starting-style=${o(this,W,a0)}
2634
2634
  ?data-ending-style=${o(this,W,Hu)}
2635
- ?hidden=${!o(this,W,a0)&&!o(this,W,Hu)}
2635
+ ?hidden=${!o(this,W,l0)&&!o(this,W,Hu)}
2636
2636
  @transitionend=${o(this,Vu)}
2637
2637
  >
2638
2638
  <div part="content">
@@ -2640,7 +2640,7 @@ label, legend, caption, figcaption, th, td {
2640
2640
  </div>
2641
2641
  </div>
2642
2642
  `:L}
2643
- `}};Rt=A(RL),Ky=new WeakMap,Wy=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Xy=new WeakMap,W=new WeakSet,Qy=new WeakMap,t0=new WeakMap,o0=new WeakMap,s0=new WeakMap,$i=new WeakMap,Ti=new WeakMap,_s=new WeakMap,Uc=function(){return o(this,_s)?this.open:o(this,W,LL)},zL=function(){let t=++Es(this,Ti)._;h(this,W,!1,Bu),h(this,W,!0,Fu),h(this,W,!0,Du),h(this,W,"0",Ci),requestAnimationFrame(()=>{if(o(this,Ti)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),h(this,W,!1,Du)})},OL=function(){let t=++Es(this,Ti)._;h(this,W,!1,Du);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),requestAnimationFrame(()=>{o(this,Ti)===t&&(h(this,W,!0,Bu),h(this,W,"0",Ci))})},Vu=new WeakMap,Pu=new WeakMap,c(Rt,4,"open",_L,ao,Ky),c(Rt,4,"defaultOpen",AL,ao,Wy),c(Rt,4,"disabled",SL,ao,Yy),c(Rt,4,"keepMounted",TL,ao,Gy),Jy=c(Rt,20,"#starting",$L,W,Xy),n0=Jy.get,Du=Jy.set,Zy=c(Rt,20,"#ending",CL,W,Qy),Hu=Zy.get,Bu=Zy.set,e0=c(Rt,20,"#panelHeight",EL,W,t0),IL=e0.get,Ci=e0.set,r0=c(Rt,20,"#visible",kL,W,o0),a0=r0.get,Fu=r0.set,i0=c(Rt,20,"#internalOpen",wL,W,s0),LL=i0.get,l0=i0.set,T(Rt,ao),v(ao,"tagName","dui-collapsible"),v(ao,"styles",[w,B4]);var ML=Jr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),F4=k`
2643
+ `}};Rt=A(RL),Wy=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Xy=new WeakMap,Jy=new WeakMap,W=new WeakSet,Zy=new WeakMap,e0=new WeakMap,r0=new WeakMap,i0=new WeakMap,$i=new WeakMap,Ti=new WeakMap,_s=new WeakMap,Uc=function(){return o(this,_s)?this.open:o(this,W,LL)},zL=function(){let t=++Es(this,Ti)._;h(this,W,!1,Bu),h(this,W,!0,Fu),h(this,W,!0,Du),h(this,W,"0",Ci),requestAnimationFrame(()=>{if(o(this,Ti)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),h(this,W,!1,Du)})},OL=function(){let t=++Es(this,Ti)._;h(this,W,!1,Du);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),requestAnimationFrame(()=>{o(this,Ti)===t&&(h(this,W,!0,Bu),h(this,W,"0",Ci))})},Vu=new WeakMap,Pu=new WeakMap,c(Rt,4,"open",_L,ao,Wy),c(Rt,4,"defaultOpen",AL,ao,Yy),c(Rt,4,"disabled",SL,ao,Gy),c(Rt,4,"keepMounted",TL,ao,Xy),Qy=c(Rt,20,"#starting",$L,W,Jy),a0=Qy.get,Du=Qy.set,t0=c(Rt,20,"#ending",CL,W,Zy),Hu=t0.get,Bu=t0.set,o0=c(Rt,20,"#panelHeight",EL,W,e0),IL=o0.get,Ci=o0.set,s0=c(Rt,20,"#visible",kL,W,r0),l0=s0.get,Fu=s0.set,n0=c(Rt,20,"#internalOpen",wL,W,i0),LL=n0.get,d0=n0.set,T(Rt,ao),v(ao,"tagName","dui-collapsible"),v(ao,"styles",[w,B4]);var ML=Jr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),F4=k`
2644
2644
  /* ── Trigger ── */
2645
2645
 
2646
2646
  [part="trigger"] {
@@ -2725,12 +2725,12 @@ label, legend, caption, figcaption, th, td {
2725
2725
  transition-duration: 0s;
2726
2726
  }
2727
2727
  }
2728
- `,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Rs=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Is=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,y=0,_=s.length-1,S=0,O=l.length-1;for(;y<=_&&S<=O;)if(s[y]===null)y++;else if(s[_]===null)_--;else if(m[y]===d[S])g[S]=Is(s[y],l[S]),y++,S++;else if(m[_]===d[O])g[O]=Is(s[_],l[O]),_--,O--;else if(m[y]===d[O])g[O]=Is(s[y],l[O]),Ca(i,g[O+1],s[y]),y++,O--;else if(m[_]===d[S])g[S]=Is(s[_],l[S]),Ca(i,s[y],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,O),$=FL(m,y,_)),E.has(m[y]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[y]);Is(K,l[S]),g[S]=K}else g[S]=Is(j,l[S]),Ca(i,s[y],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[y]),y++;for(;S<=O;){let B=Ca(i,g[O+1]);Is(B,l[S]),g[S++]=B}for(;y<=_;){let B=s[y++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var dr=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},c0=i=>{ju.delete(i)};var Ls=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function p0(i,r,t){return Me(i,Ls(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function rs(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function h0(i){return i==="x"?"y":"x"}function u0(i){return i==="y"?"height":"width"}function cr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function m0(i){return h0(cr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=m0(i),l=u0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(rs(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=rs(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=cr(r),d=m0(r),m=u0(d),g=rs(r),E=l==="y",$=e.x+e.width/2-s.width/2,y=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y};break;case"left":S={x:e.x-s.width,y};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),O=WL(S),j=m[_?y==="floating"?"reference":"floating":y],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=y==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+O.top)/J.y,bottom:(ge.bottom-K.bottom+O.bottom)/J.y,left:(K.left-ge.left+O.left)/J.x,right:(ge.right-K.right+O.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y}=YL(E,e,g),_=e,S=0,O={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:Oe}=await F({x:$,y,initialPlacement:e,placement:_,strategy:s,middlewareData:O,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,y=J??y,O[K]={...O[K],...ge},Oe&&S<Y4&&(S++,typeof Oe=="object"&&(Oe.placement&&(_=Oe.placement),Oe.rects&&(E=Oe.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):Oe.rects),{x:$,y}=YL(E,_,g)),B=-1)}return{x:$,y,placement:_,strategy:s,middlewareData:O}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=rs(s),F=cr(m),G=rs(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),Oe=O!=="none";!_&&Oe&&ge.push(...KL(m,B,O,J));let rr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Xr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),y){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Xr=[...Xr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,ub=rr[ni];if(ub&&(!(y==="alignment"?F!==cr(ub):!1)||Xr.every(Vo=>cr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Xr},reset:{placement:ub}};let uc=(pc=Xr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Xr.filter(Vo=>{if(Oe){let ks=cr(Vo.placement);return ks===F||ks==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(ks=>ks>0).reduce((ks,bF)=>ks+bF,0)]).sort((Vo,ks)=>Vo[1]-ks[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=rs(t),m=Ta(t),g=cr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,y=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:O}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof O=="number"&&(S=m==="end"?O*-1:O),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},y=await l.detectOverflow(r,E),_=cr(rs(s)),S=h0(_),O=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=O+y[K],J=O-y[F];O=p0(G,O,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+y[K],J=B-y[F];B=p0(G,B,J)}let j=g.fn({...r,[S]:O,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tz=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),y=rs(s),_=Ta(s),S=cr(s)==="y",{width:O,height:B}=l.floating,j,K;y==="top"||y==="bottom"?(j=y,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=y,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=O-$.left-$.right,J=Ls(B-$[j],F),ge=Ls(O-$[K],G),Oe=!r.middlewareData.shift,rr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(rr=F),Oe&&!_){let Xr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=O-2*(Xr!==0||cc!==0?Xr+cc:Me($.left,$.right)):rr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:rr});let ii=await d.getDimensions(m.floating);return O!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oz(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oz(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oz(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function pr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function ez(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rz(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",f0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sz(i){let r=ss(i);for(;pr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=ss(r)}return null}function Gu(){return f0==null&&(f0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),f0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ss(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||ez(i)&&i.host||Ko(i);return ez(r)?r.host:r}function iz(i){let r=ss(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:pr(r)&&Aa(r)?r:iz(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iz(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dz(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=pr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function v0(i){return $o(i)?i:i.contextElement}function _a(i){let r=v0(i);if(!pr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dz(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cz(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=v0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cz(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,y=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,O=_,B=Xu(O);for(;B&&e&&S!==O;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,y*=j.y,g+=G,E+=J,O=qe(B),B=Xu(O)}}return Ai({width:$,height:y,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pz(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),y=pr(e);if((y||!y&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),y)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!y&&!l?pz(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nz=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,y=$.body,_=getComputedStyle(y),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,O=Math.abs(e.clientWidth-y.clientWidth-S);O<=nz&&(l-=O)}else E<=nz&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=pr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function az(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cz(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hz(i,r){let t=ss(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hz(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?ss(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hz(i,d))?e=e.filter($=>$!==d):s=m,d=ss(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=az(r,d[0],s),g=m.top,E=m.right,$=m.bottom,y=m.left;for(let _=1;_<d.length;_++){let S=az(r,d[_],s);g=Me(S.top,g),E=Ls(S.right,E),$=Ls(S.bottom,$),y=Me(S.left,y)}return{width:E-y,height:$-g,x:y,y:g}}function lV(i){let{width:r,height:t}=dz(i);return{width:r,height:t}}function dV(i,r,t){let e=pr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pz(s,m):jo(0),y=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x:y,y:_,width:d.width,height:d.height}}function g0(i){return To(i).position==="static"}function lz(i,r){if(!pr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uz(i,r){let t=qe(i);if(Wc(i))return t;if(!pr(i)){let s=ss(i);for(;s&&!Ii(s);){if($o(s)&&!g0(s))return s;s=ss(s)}return t}let e=lz(i,r);for(;e&&rz(e)&&g0(e);)e=lz(e,r);return e&&Ii(e)&&g0(e)&&!Yu(e)?t:e||sz(i)||t}var cV=async function(i){let r=this.getOffsetParent||uz,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var b0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uz,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mz(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:y,width:_,height:S}=E;if(m||r(),!_||!S)return;let O=Kc(y),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(y+S)),K=Kc($),G={rootMargin:-O+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,Ls(1,g))||1},J=!0;function ge(Oe){let rr=Oe[0].intersectionRatio;if(rr!==g){if(!J)return d();rr?d(!1,rr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}rr===1&&!mz(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fz(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=v0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let y=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let O,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mz(B,K)&&t(),B=K,O=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),y?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(O)}}var gz=QL;var vz=ZL,bz=JL,x0=tz;var xz=(i,r,t)=>{let e=new Map,s={platform:b0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var yz=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wz=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
2728
+ `,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Rs=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Is=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,y=0,_=s.length-1,S=0,O=l.length-1;for(;y<=_&&S<=O;)if(s[y]===null)y++;else if(s[_]===null)_--;else if(m[y]===d[S])g[S]=Is(s[y],l[S]),y++,S++;else if(m[_]===d[O])g[O]=Is(s[_],l[O]),_--,O--;else if(m[y]===d[O])g[O]=Is(s[y],l[O]),Ca(i,g[O+1],s[y]),y++,O--;else if(m[_]===d[S])g[S]=Is(s[_],l[S]),Ca(i,s[y],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,O),$=FL(m,y,_)),E.has(m[y]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[y]);Is(K,l[S]),g[S]=K}else g[S]=Is(j,l[S]),Ca(i,s[y],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[y]),y++;for(;S<=O;){let B=Ca(i,g[O+1]);Is(B,l[S]),g[S++]=B}for(;y<=_;){let B=s[y++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var dr=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},p0=i=>{ju.delete(i)};var Ls=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(i,r,t){return Me(i,Ls(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function rs(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function u0(i){return i==="x"?"y":"x"}function m0(i){return i==="y"?"height":"width"}function cr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function f0(i){return u0(cr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=f0(i),l=m0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(rs(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=rs(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=cr(r),d=f0(r),m=m0(d),g=rs(r),E=l==="y",$=e.x+e.width/2-s.width/2,y=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y};break;case"left":S={x:e.x-s.width,y};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),O=WL(S),j=m[_?y==="floating"?"reference":"floating":y],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=y==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+O.top)/J.y,bottom:(ge.bottom-K.bottom+O.bottom)/J.y,left:(K.left-ge.left+O.left)/J.x,right:(ge.right-K.right+O.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y}=YL(E,e,g),_=e,S=0,O={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:Oe}=await F({x:$,y,initialPlacement:e,placement:_,strategy:s,middlewareData:O,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,y=J??y,O[K]={...O[K],...ge},Oe&&S<Y4&&(S++,typeof Oe=="object"&&(Oe.placement&&(_=Oe.placement),Oe.rects&&(E=Oe.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):Oe.rects),{x:$,y}=YL(E,_,g)),B=-1)}return{x:$,y,placement:_,strategy:s,middlewareData:O}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=rs(s),F=cr(m),G=rs(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),Oe=O!=="none";!_&&Oe&&ge.push(...KL(m,B,O,J));let rr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Xr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),y){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Xr=[...Xr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,mb=rr[ni];if(mb&&(!(y==="alignment"?F!==cr(mb):!1)||Xr.every(Vo=>cr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Xr},reset:{placement:mb}};let uc=(pc=Xr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Xr.filter(Vo=>{if(Oe){let ks=cr(Vo.placement);return ks===F||ks==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(ks=>ks>0).reduce((ks,bF)=>ks+bF,0)]).sort((Vo,ks)=>Vo[1]-ks[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=rs(t),m=Ta(t),g=cr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,y=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:O}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof O=="number"&&(S=m==="end"?O*-1:O),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},y=await l.detectOverflow(r,E),_=cr(rs(s)),S=u0(_),O=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=O+y[K],J=O-y[F];O=h0(G,O,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+y[K],J=B-y[F];B=h0(G,B,J)}let j=g.fn({...r,[S]:O,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tz=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),y=rs(s),_=Ta(s),S=cr(s)==="y",{width:O,height:B}=l.floating,j,K;y==="top"||y==="bottom"?(j=y,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=y,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=O-$.left-$.right,J=Ls(B-$[j],F),ge=Ls(O-$[K],G),Oe=!r.middlewareData.shift,rr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(rr=F),Oe&&!_){let Xr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=O-2*(Xr!==0||cc!==0?Xr+cc:Me($.left,$.right)):rr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:rr});let ii=await d.getDimensions(m.floating);return O!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oz(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oz(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oz(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function pr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function ez(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rz(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",g0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sz(i){let r=ss(i);for(;pr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=ss(r)}return null}function Gu(){return g0==null&&(g0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ss(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||ez(i)&&i.host||Ko(i);return ez(r)?r.host:r}function iz(i){let r=ss(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:pr(r)&&Aa(r)?r:iz(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iz(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dz(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=pr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function b0(i){return $o(i)?i:i.contextElement}function _a(i){let r=b0(i);if(!pr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dz(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cz(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=b0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cz(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,y=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,O=_,B=Xu(O);for(;B&&e&&S!==O;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,y*=j.y,g+=G,E+=J,O=qe(B),B=Xu(O)}}return Ai({width:$,height:y,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pz(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),y=pr(e);if((y||!y&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),y)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!y&&!l?pz(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nz=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,y=$.body,_=getComputedStyle(y),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,O=Math.abs(e.clientWidth-y.clientWidth-S);O<=nz&&(l-=O)}else E<=nz&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=pr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function az(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cz(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hz(i,r){let t=ss(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hz(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?ss(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hz(i,d))?e=e.filter($=>$!==d):s=m,d=ss(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=az(r,d[0],s),g=m.top,E=m.right,$=m.bottom,y=m.left;for(let _=1;_<d.length;_++){let S=az(r,d[_],s);g=Me(S.top,g),E=Ls(S.right,E),$=Ls(S.bottom,$),y=Me(S.left,y)}return{width:E-y,height:$-g,x:y,y:g}}function lV(i){let{width:r,height:t}=dz(i);return{width:r,height:t}}function dV(i,r,t){let e=pr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pz(s,m):jo(0),y=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x:y,y:_,width:d.width,height:d.height}}function v0(i){return To(i).position==="static"}function lz(i,r){if(!pr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uz(i,r){let t=qe(i);if(Wc(i))return t;if(!pr(i)){let s=ss(i);for(;s&&!Ii(s);){if($o(s)&&!v0(s))return s;s=ss(s)}return t}let e=lz(i,r);for(;e&&rz(e)&&v0(e);)e=lz(e,r);return e&&Ii(e)&&v0(e)&&!Yu(e)?t:e||sz(i)||t}var cV=async function(i){let r=this.getOffsetParent||uz,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var x0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uz,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mz(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:y,width:_,height:S}=E;if(m||r(),!_||!S)return;let O=Kc(y),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(y+S)),K=Kc($),G={rootMargin:-O+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,Ls(1,g))||1},J=!0;function ge(Oe){let rr=Oe[0].intersectionRatio;if(rr!==g){if(!J)return d();rr?d(!1,rr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}rr===1&&!mz(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fz(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=b0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let y=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let O,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mz(B,K)&&t(),B=K,O=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),y?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(O)}}var gz=QL;var vz=ZL,bz=JL,y0=tz;var xz=(i,r,t)=>{let e=new Map,s={platform:x0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var yz=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wz=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
2729
2729
  <svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${i}">
2730
2730
  <polygon class="arrow-fill" points="0,0 5,6 10,0" />
2731
2731
  <path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
2732
2732
  </svg>
2733
- `,uV={...b0,getOffsetParent:()=>window},mV=i=>({name:"alignInner",fn(r){let t=i.getElement();if(!t)return{};let e=i.padding??8,{rects:s}=r,l=r.elements.floating,d=l.getBoundingClientRect(),m=t.getBoundingClientRect(),g=m.top-d.top+m.height/2,E=i.getReferenceInner?.(),y=(E?E.getBoundingClientRect().top+E.getBoundingClientRect().height/2:s.reference.y+s.reference.height/2)-g,_=globalThis.innerHeight,S=d.height,O=e,B=_-S-e,j=Math.max(O,Math.min(y,B)),K=l.shadowRoot?.querySelector(".Popup")??l.querySelector(".Popup");if(K&&j!==y){let J=y-j;K.scrollTop=Math.max(0,K.scrollTop-J)}y=j;let F=m.left-d.left;return{x:E?E.getBoundingClientRect().left-F:s.reference.x,y,reset:!1}}}),fV=(i,r,t={})=>{let{placement:e="bottom-start",offsetPx:s=4,matchWidth:l=!1,minMatchWidth:d=!1,padding:m=8}=t,E=t.alignToInner?.getElement()!=null?[mV(t.alignToInner)]:[gz(s),bz(),vz({padding:m})];return l?E.push(x0({apply({rects:$,elements:y}){Object.assign(y.floating.style,{width:`${$.reference.width}px`})}})):d&&E.push(x0({apply({rects:$,elements:y}){Object.assign(y.floating.style,{minWidth:`${$.reference.width}px`})}})),xz(i,r,{placement:e,strategy:"fixed",middleware:E,platform:uV})},kz=(i,r,t={})=>{let{onPosition:e,...s}=t;return fz(i,r,()=>{fV(i,r,s).then(l=>{Object.assign(r.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var Te=class{#t;#e;#o;#n;#d;#c;#a;#f;#g;#l;#s;#m;#p;#h;#w;#x;#k;#v=[];#r=null;#b=null;#i=!1;#u=!1;#y=0;get isOpen(){return this.#i}get isAnimating(){return this.#u}get isStarting(){return this.#i&&this.#u}get isEnding(){return!this.#i&&this.#u}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(r){this.#d=r}set offset(r){this.#c=r}constructor(r,t){this.#t=r,this.#e=t.getAnchor,this.#o=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#d=t.placement??"bottom-start",this.#c=t.offset??4,this.#a=t.styles,this.#f=t.onOpen,this.#g=t.onClose,this.#l=t.onPosition,this.#s=t.renderPopup,this.#m=t.contentContainer,this.#p=t.contentSelector,this.#h=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#x=t.alignToInner,this.#k=t.alignToInnerReference,r.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#O(),c0(this.#t)}hostUpdated(){if(this.#i?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#s&&(this.#i||this.isEnding)){let r=this.renderRoot;r&&Vh(this.#s(this),r)}this.#m&&this.#i&&this.#v.length===0&&this.#L()}open(){if(this.#i)return;this.#y++;let r=this.#y;VL(this.#t,()=>this.close()),this.#i=!0,this.#u=!0,this.#A(),this.#I(),this.#f?.(),this.#t.requestUpdate(),yz().then(()=>{r===this.#y&&(this.#u=!1,this.#t.requestUpdate())})}close(){if(!this.#i)return;this.#y++,this.#u=!0,this.#t.requestUpdate();let r=this.renderRoot?.querySelector(".Popup");if(!r){this.#E();return}wz(r,()=>this.#E())}#E(){this.#i&&(this.#i=!1,this.#u=!1,this.#T(),c0(this.#t),this.#g?.(),this.#_(),this.#t.requestUpdate())}#C=r=>{if(!this.#i)return;let t=r.composedPath();!t.includes(this.#t)&&!this.#S(t)&&this.close()};#S(r){return this.#r?r.includes(this.#r):!1}#A(){if(this.#r){this.#r.style.display="",this.#$(this.#r);return}let r=this.#w(),t=document.createElement("div");t.style.position="fixed",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let e=this.#t.constructor,s=d=>d?Array.isArray(d)?d.flatMap(s):[d]:[],l=[...s(e.styles),...this.#a??[]];if(l.length>0){let d=t.attachShadow({mode:"open"});Ih(d,l)}this.#$(t),r.appendChild(t),this.#r=t}#$(r){if(this.#h.length===0)return;let t=getComputedStyle(this.#t);for(let e of this.#h){let s=t.getPropertyValue(e).trim();s&&r.style.setProperty(e,s)}}#_(){this.#r&&(this.#r.style.display="none")}#R(){this.#r?.remove(),this.#r=null}#I(){if(this.#b)return;let r=this.#e(),t=this.#r;!r||!t||(this.#b=kz(r,t,{placement:this.#d,offsetPx:this.#c,matchWidth:this.#o,minMatchWidth:this.#n,onPosition:this.#l,alignToInner:this.#x?{getElement:this.#x,getReferenceInner:this.#k}:void 0}))}#T(){this.#b?.(),this.#b=null}#L(){let r=this.renderRoot?.querySelector(this.#m);if(!r)return;let t=this.#p?Array.from(this.#t.querySelectorAll(`:scope > ${this.#p}`)):Array.from(this.#t.childNodes);for(let e of t)r.appendChild(e),this.#v.push(e)}#z(){for(let r of this.#v)this.#t.appendChild(r);this.#v=[]}#O(){this.#T(),this.#z(),this.#R()}};var O0=M("value-change",{bubbles:!0,composed:!0}),Zu=M("values-change",{bubbles:!0,composed:!0}),gV=b`
2733
+ `,uV={...x0,getOffsetParent:()=>window},mV=i=>({name:"alignInner",fn(r){let t=i.getElement();if(!t)return{};let e=i.padding??8,{rects:s}=r,l=r.elements.floating,d=l.getBoundingClientRect(),m=t.getBoundingClientRect(),g=m.top-d.top+m.height/2,E=i.getReferenceInner?.(),y=(E?E.getBoundingClientRect().top+E.getBoundingClientRect().height/2:s.reference.y+s.reference.height/2)-g,_=globalThis.innerHeight,S=d.height,O=e,B=_-S-e,j=Math.max(O,Math.min(y,B)),K=l.shadowRoot?.querySelector(".Popup")??l.querySelector(".Popup");if(K&&j!==y){let J=y-j;K.scrollTop=Math.max(0,K.scrollTop-J)}y=j;let F=m.left-d.left;return{x:E?E.getBoundingClientRect().left-F:s.reference.x,y,reset:!1}}}),fV=(i,r,t={})=>{let{placement:e="bottom-start",offsetPx:s=4,matchWidth:l=!1,minMatchWidth:d=!1,padding:m=8}=t,E=t.alignToInner?.getElement()!=null?[mV(t.alignToInner)]:[gz(s),bz(),vz({padding:m})];return l?E.push(y0({apply({rects:$,elements:y}){Object.assign(y.floating.style,{width:`${$.reference.width}px`})}})):d&&E.push(y0({apply({rects:$,elements:y}){Object.assign(y.floating.style,{minWidth:`${$.reference.width}px`})}})),xz(i,r,{placement:e,strategy:"fixed",middleware:E,platform:uV})},kz=(i,r,t={})=>{let{onPosition:e,...s}=t;return fz(i,r,()=>{fV(i,r,s).then(l=>{Object.assign(r.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var Te=class{#t;#e;#o;#n;#d;#c;#a;#f;#g;#l;#s;#m;#p;#h;#w;#x;#k;#v=[];#r=null;#b=null;#i=!1;#u=!1;#y=0;get isOpen(){return this.#i}get isAnimating(){return this.#u}get isStarting(){return this.#i&&this.#u}get isEnding(){return!this.#i&&this.#u}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(r){this.#d=r}set offset(r){this.#c=r}constructor(r,t){this.#t=r,this.#e=t.getAnchor,this.#o=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#d=t.placement??"bottom-start",this.#c=t.offset??4,this.#a=t.styles,this.#f=t.onOpen,this.#g=t.onClose,this.#l=t.onPosition,this.#s=t.renderPopup,this.#m=t.contentContainer,this.#p=t.contentSelector,this.#h=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#x=t.alignToInner,this.#k=t.alignToInnerReference,r.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#O(),p0(this.#t)}hostUpdated(){if(this.#i?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#s&&(this.#i||this.isEnding)){let r=this.renderRoot;r&&Vh(this.#s(this),r)}this.#m&&this.#i&&this.#v.length===0&&this.#L()}open(){if(this.#i)return;this.#y++;let r=this.#y;VL(this.#t,()=>this.close()),this.#i=!0,this.#u=!0,this.#A(),this.#I(),this.#f?.(),this.#t.requestUpdate(),yz().then(()=>{r===this.#y&&(this.#u=!1,this.#t.requestUpdate())})}close(){if(!this.#i)return;this.#y++,this.#u=!0,this.#t.requestUpdate();let r=this.renderRoot?.querySelector(".Popup");if(!r){this.#E();return}wz(r,()=>this.#E())}#E(){this.#i&&(this.#i=!1,this.#u=!1,this.#T(),p0(this.#t),this.#g?.(),this.#_(),this.#t.requestUpdate())}#C=r=>{if(!this.#i)return;let t=r.composedPath();!t.includes(this.#t)&&!this.#S(t)&&this.close()};#S(r){return this.#r?r.includes(this.#r):!1}#A(){if(this.#r){this.#r.style.display="",this.#$(this.#r);return}let r=this.#w(),t=document.createElement("div");t.style.position="fixed",t.style.zIndex="1000",t.style.pointerEvents="none",t.setAttribute("data-floating-portal",""),t.setAttribute("data-dui-portal-for",this.#t.tagName.toLowerCase());let e=this.#t.constructor,s=d=>d?Array.isArray(d)?d.flatMap(s):[d]:[],l=[...s(e.styles),...this.#a??[]];if(l.length>0){let d=t.attachShadow({mode:"open"});Ih(d,l)}this.#$(t),r.appendChild(t),this.#r=t}#$(r){if(this.#h.length===0)return;let t=getComputedStyle(this.#t);for(let e of this.#h){let s=t.getPropertyValue(e).trim();s&&r.style.setProperty(e,s)}}#_(){this.#r&&(this.#r.style.display="none")}#R(){this.#r?.remove(),this.#r=null}#I(){if(this.#b)return;let r=this.#e(),t=this.#r;!r||!t||(this.#b=kz(r,t,{placement:this.#d,offsetPx:this.#c,matchWidth:this.#o,minMatchWidth:this.#n,onPosition:this.#l,alignToInner:this.#x?{getElement:this.#x,getReferenceInner:this.#k}:void 0}))}#T(){this.#b?.(),this.#b=null}#L(){let r=this.renderRoot?.querySelector(this.#m);if(!r)return;let t=this.#p?Array.from(this.#t.querySelectorAll(`:scope > ${this.#p}`)):Array.from(this.#t.childNodes);for(let e of t)r.appendChild(e),this.#v.push(e)}#z(){for(let r of this.#v)this.#t.appendChild(r);this.#v=[]}#O(){this.#T(),this.#z(),this.#R()}};var M0=M("value-change",{bubbles:!0,composed:!0}),Zu=M("values-change",{bubbles:!0,composed:!0}),gV=b`
2734
2734
  :host {
2735
2735
  display: block;
2736
2736
  }
@@ -2838,7 +2838,7 @@ label, legend, caption, figcaption, th, td {
2838
2838
  text-overflow: ellipsis;
2839
2839
  white-space: nowrap;
2840
2840
  }
2841
- `],Ez,Cz,$z,Tz,Sz,Az,_z,Rz,Iz,Lz,Ia,It,y0,w0,k0,E0,C0,$0,T0,Q,zz,S0,A0,is,hr,_0,R0,Qu,zi,oe,Gc,Oi,I0,tm,em,om,L0,z0,rm,sm,im,nm,am,lm,ye=class extends(Lz=x,Iz=[u({attribute:!1})],Rz=[u({type:String})],_z=[u({attribute:!1})],Az=[u({type:Boolean,reflect:!0})],Sz=[u({type:String})],Tz=[u({type:Boolean,reflect:!0})],$z=[u({type:String})],Cz=[C()],Ez=[C()],Lz){constructor(){super();a(this,Q);a(this,Ia);a(this,y0,n(It,8,this,[])),n(It,11,this);a(this,w0,n(It,12,this,"")),n(It,15,this);a(this,k0,n(It,16,this,new Set)),n(It,19,this);a(this,E0,n(It,20,this,!1)),n(It,23,this);a(this,C0,n(It,24,this,"Search...")),n(It,27,this);a(this,$0,n(It,28,this,!1)),n(It,31,this);a(this,T0,n(It,32,this,"")),n(It,35,this);a(this,S0,n(It,36,this,-1)),n(It,39,this);a(this,_0,n(It,40,this,"")),n(It,43,this);a(this,oe,new Te(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:bV,onOpen:()=>{if(h(this,Q,-1,hr),!this.multiple){h(this,Q,"",zi);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,Q,-1,hr),!this.multiple){let t=this.options.find(e=>e.value===this.value);h(this,Q,t?.label??"",zi)}},renderPopup:t=>{let e=o(this,Q,I0),s=e.length===0;return f`
2841
+ `],Ez,Cz,$z,Tz,Sz,Az,_z,Rz,Iz,Lz,Ia,It,w0,k0,E0,C0,$0,T0,S0,Q,zz,A0,_0,is,hr,R0,I0,Qu,zi,oe,Gc,Oi,L0,tm,em,om,z0,O0,rm,sm,im,nm,am,lm,ye=class extends(Lz=x,Iz=[u({attribute:!1})],Rz=[u({type:String})],_z=[u({attribute:!1})],Az=[u({type:Boolean,reflect:!0})],Sz=[u({type:String})],Tz=[u({type:Boolean,reflect:!0})],$z=[u({type:String})],Cz=[C()],Ez=[C()],Lz){constructor(){super();a(this,Q);a(this,Ia);a(this,w0,n(It,8,this,[])),n(It,11,this);a(this,k0,n(It,12,this,"")),n(It,15,this);a(this,E0,n(It,16,this,new Set)),n(It,19,this);a(this,C0,n(It,20,this,!1)),n(It,23,this);a(this,$0,n(It,24,this,"Search...")),n(It,27,this);a(this,T0,n(It,28,this,!1)),n(It,31,this);a(this,S0,n(It,32,this,"")),n(It,35,this);a(this,A0,n(It,36,this,-1)),n(It,39,this);a(this,R0,n(It,40,this,"")),n(It,43,this);a(this,oe,new Te(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:bV,onOpen:()=>{if(h(this,Q,-1,hr),!this.multiple){h(this,Q,"",zi);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,Q,-1,hr),!this.multiple){let t=this.options.find(e=>e.value===this.value);h(this,Q,t?.label??"",zi)}},renderPopup:t=>{let e=o(this,Q,L0),s=e.length===0;return f`
2842
2842
  <div
2843
2843
  class="Popup"
2844
2844
  ?data-starting-style="${t.isStarting}"
@@ -2859,7 +2859,7 @@ label, legend, caption, figcaption, th, td {
2859
2859
  </div>
2860
2860
  </dui-scroll-area>
2861
2861
  </div>
2862
- `}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,Oi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);a(this,tm,t=>{let e=t.target;h(this,Q,e.value,zi),o(this,oe).isOpen||this.disabled||o(this,oe).open(),h(this,Q,-1,hr)});a(this,em,()=>{!o(this,oe).isOpen&&!this.disabled&&o(this,oe).open()});a(this,om,t=>{let e=o(this,Q,I0);switch(t.key){case"ArrowDown":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.min(o(this,Q,is)+1,e.length-1),hr):this.disabled||o(this,oe).open();break;case"ArrowUp":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.max(o(this,Q,is)-1,0),hr):this.disabled||o(this,oe).open();break;case"Enter":{if(t.preventDefault(),o(this,oe).isOpen){let s=o(this,Q,is)>=0?o(this,Q,is):0,l=e[s];l&&p(this,Q,L0).call(this,l)}else this.disabled||o(this,oe).open();break}case"Escape":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,"",zi),o(this,oe).close());break;case"Tab":o(this,oe).isOpen&&o(this,oe).close();break;case"Home":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,0,hr));break;case"End":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,e.length-1,hr));break;case"Backspace":if(this.multiple&&o(this,Q,Qu)===""&&this.values.size>0){let s=Array.from(this.values).at(-1);s&&p(this,Q,z0).call(this,s)}break}});a(this,rm,t=>{p(this,Q,L0).call(this,t)});a(this,sm,t=>{t.preventDefault()});a(this,im,()=>{o(this,Q,is)!==-1&&h(this,Q,-1,hr)});a(this,nm,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});a(this,am,t=>{let s=this.options.find(l=>l.value===t)?.label??t;return f`
2862
+ `}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,Oi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);a(this,tm,t=>{let e=t.target;h(this,Q,e.value,zi),o(this,oe).isOpen||this.disabled||o(this,oe).open(),h(this,Q,-1,hr)});a(this,em,()=>{!o(this,oe).isOpen&&!this.disabled&&o(this,oe).open()});a(this,om,t=>{let e=o(this,Q,L0);switch(t.key){case"ArrowDown":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.min(o(this,Q,is)+1,e.length-1),hr):this.disabled||o(this,oe).open();break;case"ArrowUp":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.max(o(this,Q,is)-1,0),hr):this.disabled||o(this,oe).open();break;case"Enter":{if(t.preventDefault(),o(this,oe).isOpen){let s=o(this,Q,is)>=0?o(this,Q,is):0,l=e[s];l&&p(this,Q,z0).call(this,l)}else this.disabled||o(this,oe).open();break}case"Escape":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,"",zi),o(this,oe).close());break;case"Tab":o(this,oe).isOpen&&o(this,oe).close();break;case"Home":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,0,hr));break;case"End":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,e.length-1,hr));break;case"Backspace":if(this.multiple&&o(this,Q,Qu)===""&&this.values.size>0){let s=Array.from(this.values).at(-1);s&&p(this,Q,O0).call(this,s)}break}});a(this,rm,t=>{p(this,Q,z0).call(this,t)});a(this,sm,t=>{t.preventDefault()});a(this,im,()=>{o(this,Q,is)!==-1&&h(this,Q,-1,hr)});a(this,nm,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});a(this,am,t=>{let s=this.options.find(l=>l.value===t)?.label??t;return f`
2863
2863
  <span class="Chip">
2864
2864
  <span class="ChipLabel">${s}</span>
2865
2865
  <button
@@ -2867,7 +2867,7 @@ label, legend, caption, figcaption, th, td {
2867
2867
  type="button"
2868
2868
  tabindex="-1"
2869
2869
  @mousedown="${l=>l.preventDefault()}"
2870
- @click="${l=>{l.stopPropagation(),p(this,Q,z0).call(this,t)}}"
2870
+ @click="${l=>{l.stopPropagation(),p(this,Q,O0).call(this,t)}}"
2871
2871
  >
2872
2872
  <dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></dui-icon>
2873
2873
  </button>
@@ -2921,7 +2921,7 @@ label, legend, caption, figcaption, th, td {
2921
2921
  ${t}
2922
2922
  <dui-icon class="Arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></dui-icon>
2923
2923
  </div>
2924
- `}};It=A(Lz),Ia=new WeakMap,y0=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,T0=new WeakMap,Q=new WeakSet,zz=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);o(this,Ia).setFormValue(t)}else o(this,Ia).setFormValue(this.value||null)},S0=new WeakMap,_0=new WeakMap,oe=new WeakMap,Gc=new WeakMap,Oi=new WeakMap,I0=function(){let t=o(this,Q,Qu).toLowerCase(),e=this.options;return t?e.filter(s=>s.label.toLowerCase().includes(t)):e},tm=new WeakMap,em=new WeakMap,om=new WeakMap,L0=function(t){if(this.multiple){let e=new Set(this.values),s=!e.has(t.value);s?e.add(t.value):e.delete(t.value),this.values=e,h(this,Q,"",zi),h(this,Q,-1,hr),this.dispatchEvent(Zu({value:t.value,selected:s,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,Q,t.label,zi),this.dispatchEvent(O0({value:t.value,option:t})),o(this,oe).close()},z0=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(Zu({value:t,selected:!1,values:e}))},rm=new WeakMap,sm=new WeakMap,im=new WeakMap,nm=new WeakMap,am=new WeakMap,lm=new WeakMap,c(It,4,"options",Iz,ye,y0),c(It,4,"value",Rz,ye,w0),c(It,4,"values",_z,ye,k0),c(It,4,"multiple",Az,ye,E0),c(It,4,"placeholder",Sz,ye,C0),c(It,4,"disabled",Tz,ye,$0),c(It,4,"name",$z,ye,T0),A0=c(It,20,"#highlightedIndex",Cz,Q,S0),is=A0.get,hr=A0.set,R0=c(It,20,"#inputValue",Ez,Q,_0),Qu=R0.get,zi=R0.set,T(It,ye),v(ye,"tagName","dui-combobox"),v(ye,"formAssociated",!0),v(ye,"styles",[w,gV,vV]);var xV=k`
2924
+ `}};It=A(Lz),Ia=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,T0=new WeakMap,S0=new WeakMap,Q=new WeakSet,zz=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);o(this,Ia).setFormValue(t)}else o(this,Ia).setFormValue(this.value||null)},A0=new WeakMap,R0=new WeakMap,oe=new WeakMap,Gc=new WeakMap,Oi=new WeakMap,L0=function(){let t=o(this,Q,Qu).toLowerCase(),e=this.options;return t?e.filter(s=>s.label.toLowerCase().includes(t)):e},tm=new WeakMap,em=new WeakMap,om=new WeakMap,z0=function(t){if(this.multiple){let e=new Set(this.values),s=!e.has(t.value);s?e.add(t.value):e.delete(t.value),this.values=e,h(this,Q,"",zi),h(this,Q,-1,hr),this.dispatchEvent(Zu({value:t.value,selected:s,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,Q,t.label,zi),this.dispatchEvent(M0({value:t.value,option:t})),o(this,oe).close()},O0=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(Zu({value:t,selected:!1,values:e}))},rm=new WeakMap,sm=new WeakMap,im=new WeakMap,nm=new WeakMap,am=new WeakMap,lm=new WeakMap,c(It,4,"options",Iz,ye,w0),c(It,4,"value",Rz,ye,k0),c(It,4,"values",_z,ye,E0),c(It,4,"multiple",Az,ye,C0),c(It,4,"placeholder",Sz,ye,$0),c(It,4,"disabled",Tz,ye,T0),c(It,4,"name",$z,ye,S0),_0=c(It,20,"#highlightedIndex",Cz,Q,A0),is=_0.get,hr=_0.set,I0=c(It,20,"#inputValue",Ez,Q,R0),Qu=I0.get,zi=I0.set,T(It,ye),v(ye,"tagName","dui-combobox"),v(ye,"formAssociated",!0),v(ye,"styles",[w,gV,vV]);var xV=k`
2925
2925
  /* ---- Chips (multi-select container) ---- */
2926
2926
 
2927
2927
  .Chips {
@@ -3083,7 +3083,7 @@ label, legend, caption, figcaption, th, td {
3083
3083
  flex-direction: column;
3084
3084
  overflow: hidden;
3085
3085
  }
3086
- `,Oz,Mz,Nz,Dz,Hz,Bz,Fz,Vz,jt,M0,N0,D0,H0,B0,F0,zs,Pz,pt,V0,P0,Jc,Qc,Os,Ms,Zc,ur,cm,Uz,pm,za,hm,um,mm,fm,gm,vm,bm,xm,ym,tp,ep,U0,dm,je=class extends(Vz=x,Fz=[u({type:Boolean})],Bz=[u({type:Boolean,attribute:"should-filter"})],Hz=[u({type:String})],Dz=[u({attribute:!1})],Nz=[C()],Mz=[C()],Oz=[lt({context:So}),C()],Vz){constructor(){super(...arguments);a(this,pt);a(this,M0,n(jt,8,this,!1)),n(jt,11,this);a(this,N0,n(jt,12,this,!0)),n(jt,15,this);a(this,D0,n(jt,16,this)),n(jt,19,this);a(this,H0,n(jt,20,this)),n(jt,23,this);a(this,B0,n(jt,24,this,"")),n(jt,27,this);a(this,V0,n(jt,28,this)),n(jt,31,this);a(this,Os,new Map);a(this,Ms,[]);a(this,Zc,new Set);a(this,ur,new Map);a(this,cm,CV());a(this,pm,t=>this.shouldFilter?o(this,ur).get(t)??0:1);a(this,hm,()=>p(this,pt,za).call(this).length);a(this,um,t=>p(this,pt,za).call(this).filter(e=>e.groupId===t).length);a(this,mm,t=>{o(this,Os).set(t.id,t),o(this,Ms).includes(t.id)||o(this,Ms).push(t.id);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);if(o(this,ur).set(t.id,e),!o(this,pt,Jc)){let s=p(this,pt,za).call(this);s.length>0&&!s[0].disabled&&h(this,pt,s[0].id,Qc)}this.requestUpdate()});a(this,fm,t=>{o(this,Os).delete(t),h(this,Ms,o(this,Ms).filter(e=>e!==t)),o(this,ur).delete(t),this.requestUpdate()});a(this,gm,t=>{o(this,Os).set(t.id,t);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);o(this,ur).set(t.id,e),this.requestUpdate()});a(this,vm,t=>{o(this,Zc).add(t)});a(this,bm,t=>{o(this,Zc).delete(t)});a(this,xm,t=>{h(this,pt,t,Pz),p(this,pt,Uz).call(this);let s=p(this,pt,za).call(this).find(l=>!l.disabled);h(this,pt,s?.id,Qc),this.dispatchEvent(wV(t))});a(this,ym,t=>{h(this,pt,t,Qc)});a(this,tp,t=>{this.dispatchEvent(yV(t))});a(this,ep,t=>{let e=p(this,pt,za).call(this).filter(d=>!d.disabled);if(e.length===0)return;let s=e.findIndex(d=>d.id===o(this,pt,Jc)),l=d=>{let m=e[d];m&&h(this,pt,m.id,Qc)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s<e.length-1?l(s+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s>0?l(s-1):this.loop&&l(e.length-1);break}case"Home":{t.preventDefault(),l(0);break}case"End":{t.preventDefault(),l(e.length-1);break}case"Enter":{t.preventDefault();let d=e.find(m=>m.id===o(this,pt,Jc));d&&o(this,tp).call(this,d.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(kV());break}}});a(this,U0,n(jt,32,this,p(this,pt,dm).call(this))),n(jt,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",o(this,ep)),this._ctx=p(this,pt,dm).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",o(this,ep))}willUpdate(){this._ctx=p(this,pt,dm).call(this)}render(){return f`<slot></slot>`}};jt=A(Vz),M0=new WeakMap,N0=new WeakMap,D0=new WeakMap,H0=new WeakMap,B0=new WeakMap,pt=new WeakSet,V0=new WeakMap,Os=new WeakMap,Ms=new WeakMap,Zc=new WeakMap,ur=new WeakMap,cm=new WeakMap,Uz=function(){o(this,ur).clear();for(let[t,e]of o(this,Os)){let s=this.filter?this.filter(e.value,o(this,pt,zs),e.keywords):Xc(o(this,pt,zs),e.value,e.textContent,e.keywords);o(this,ur).set(t,s)}},pm=new WeakMap,za=function(){return o(this,Ms).map(t=>o(this,Os).get(t)).filter(t=>t?this.shouldFilter?(o(this,ur).get(t.id)??0)>0:!0:!1)},hm=new WeakMap,um=new WeakMap,mm=new WeakMap,fm=new WeakMap,gm=new WeakMap,vm=new WeakMap,bm=new WeakMap,xm=new WeakMap,ym=new WeakMap,tp=new WeakMap,ep=new WeakMap,U0=new WeakMap,dm=function(){return{search:o(this,pt,zs),selectedItemId:o(this,pt,Jc),listId:o(this,cm),loop:this.loop,shouldFilter:this.shouldFilter,getScore:o(this,pm),getVisibleCount:o(this,hm),getGroupVisibleCount:o(this,um),registerItem:o(this,mm),unregisterItem:o(this,fm),updateItem:o(this,gm),registerGroup:o(this,vm),unregisterGroup:o(this,bm),setSearch:o(this,xm),selectItem:o(this,ym),handleItemSelect:o(this,tp)}},c(jt,4,"loop",Fz,je,M0),c(jt,4,"shouldFilter",Bz,je,N0),c(jt,4,"value",Hz,je,D0),c(jt,4,"filter",Dz,je,H0),F0=c(jt,20,"#search",Nz,pt,B0),zs=F0.get,Pz=F0.set,P0=c(jt,20,"#selectedItemId",Mz,pt,V0),Jc=P0.get,Qc=P0.set,c(jt,4,"_ctx",Oz,je,U0),T(jt,je),v(je,"tagName","dui-command"),v(je,"styles",[w,$V]);var TV=b`
3086
+ `,Oz,Mz,Nz,Dz,Hz,Bz,Fz,Vz,jt,N0,D0,H0,B0,F0,V0,zs,Pz,pt,P0,U0,Jc,Qc,Os,Ms,Zc,ur,cm,Uz,pm,za,hm,um,mm,fm,gm,vm,bm,xm,ym,tp,ep,q0,dm,je=class extends(Vz=x,Fz=[u({type:Boolean})],Bz=[u({type:Boolean,attribute:"should-filter"})],Hz=[u({type:String})],Dz=[u({attribute:!1})],Nz=[C()],Mz=[C()],Oz=[lt({context:So}),C()],Vz){constructor(){super(...arguments);a(this,pt);a(this,N0,n(jt,8,this,!1)),n(jt,11,this);a(this,D0,n(jt,12,this,!0)),n(jt,15,this);a(this,H0,n(jt,16,this)),n(jt,19,this);a(this,B0,n(jt,20,this)),n(jt,23,this);a(this,F0,n(jt,24,this,"")),n(jt,27,this);a(this,P0,n(jt,28,this)),n(jt,31,this);a(this,Os,new Map);a(this,Ms,[]);a(this,Zc,new Set);a(this,ur,new Map);a(this,cm,CV());a(this,pm,t=>this.shouldFilter?o(this,ur).get(t)??0:1);a(this,hm,()=>p(this,pt,za).call(this).length);a(this,um,t=>p(this,pt,za).call(this).filter(e=>e.groupId===t).length);a(this,mm,t=>{o(this,Os).set(t.id,t),o(this,Ms).includes(t.id)||o(this,Ms).push(t.id);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);if(o(this,ur).set(t.id,e),!o(this,pt,Jc)){let s=p(this,pt,za).call(this);s.length>0&&!s[0].disabled&&h(this,pt,s[0].id,Qc)}this.requestUpdate()});a(this,fm,t=>{o(this,Os).delete(t),h(this,Ms,o(this,Ms).filter(e=>e!==t)),o(this,ur).delete(t),this.requestUpdate()});a(this,gm,t=>{o(this,Os).set(t.id,t);let e=this.filter?this.filter(t.value,o(this,pt,zs),t.keywords):Xc(o(this,pt,zs),t.value,t.textContent,t.keywords);o(this,ur).set(t.id,e),this.requestUpdate()});a(this,vm,t=>{o(this,Zc).add(t)});a(this,bm,t=>{o(this,Zc).delete(t)});a(this,xm,t=>{h(this,pt,t,Pz),p(this,pt,Uz).call(this);let s=p(this,pt,za).call(this).find(l=>!l.disabled);h(this,pt,s?.id,Qc),this.dispatchEvent(wV(t))});a(this,ym,t=>{h(this,pt,t,Qc)});a(this,tp,t=>{this.dispatchEvent(yV(t))});a(this,ep,t=>{let e=p(this,pt,za).call(this).filter(d=>!d.disabled);if(e.length===0)return;let s=e.findIndex(d=>d.id===o(this,pt,Jc)),l=d=>{let m=e[d];m&&h(this,pt,m.id,Qc)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s<e.length-1?l(s+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s>0?l(s-1):this.loop&&l(e.length-1);break}case"Home":{t.preventDefault(),l(0);break}case"End":{t.preventDefault(),l(e.length-1);break}case"Enter":{t.preventDefault();let d=e.find(m=>m.id===o(this,pt,Jc));d&&o(this,tp).call(this,d.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(kV());break}}});a(this,q0,n(jt,32,this,p(this,pt,dm).call(this))),n(jt,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",o(this,ep)),this._ctx=p(this,pt,dm).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",o(this,ep))}willUpdate(){this._ctx=p(this,pt,dm).call(this)}render(){return f`<slot></slot>`}};jt=A(Vz),N0=new WeakMap,D0=new WeakMap,H0=new WeakMap,B0=new WeakMap,F0=new WeakMap,pt=new WeakSet,P0=new WeakMap,Os=new WeakMap,Ms=new WeakMap,Zc=new WeakMap,ur=new WeakMap,cm=new WeakMap,Uz=function(){o(this,ur).clear();for(let[t,e]of o(this,Os)){let s=this.filter?this.filter(e.value,o(this,pt,zs),e.keywords):Xc(o(this,pt,zs),e.value,e.textContent,e.keywords);o(this,ur).set(t,s)}},pm=new WeakMap,za=function(){return o(this,Ms).map(t=>o(this,Os).get(t)).filter(t=>t?this.shouldFilter?(o(this,ur).get(t.id)??0)>0:!0:!1)},hm=new WeakMap,um=new WeakMap,mm=new WeakMap,fm=new WeakMap,gm=new WeakMap,vm=new WeakMap,bm=new WeakMap,xm=new WeakMap,ym=new WeakMap,tp=new WeakMap,ep=new WeakMap,q0=new WeakMap,dm=function(){return{search:o(this,pt,zs),selectedItemId:o(this,pt,Jc),listId:o(this,cm),loop:this.loop,shouldFilter:this.shouldFilter,getScore:o(this,pm),getVisibleCount:o(this,hm),getGroupVisibleCount:o(this,um),registerItem:o(this,mm),unregisterItem:o(this,fm),updateItem:o(this,gm),registerGroup:o(this,vm),unregisterGroup:o(this,bm),setSearch:o(this,xm),selectItem:o(this,ym),handleItemSelect:o(this,tp)}},c(jt,4,"loop",Fz,je,N0),c(jt,4,"shouldFilter",Bz,je,D0),c(jt,4,"value",Hz,je,H0),c(jt,4,"filter",Dz,je,B0),V0=c(jt,20,"#search",Nz,pt,F0),zs=V0.get,Pz=V0.set,U0=c(jt,20,"#selectedItemId",Mz,pt,P0),Jc=U0.get,Qc=U0.set,c(jt,4,"_ctx",Oz,je,q0),T(jt,je),v(je,"tagName","dui-command"),v(je,"styles",[w,$V]);var TV=b`
3087
3087
  :host {
3088
3088
  display: block;
3089
3089
  }
@@ -3106,7 +3106,7 @@ label, legend, caption, figcaption, th, td {
3106
3106
  background: transparent;
3107
3107
  padding: 0;
3108
3108
  }
3109
- `,qz,jz,Kz,Mi,q0,j0,Oa,wm,km,Wo=class extends(Kz=x,jz=[u({type:String})],qz=[Nt({context:So,subscribe:!0})],Kz){constructor(){super(...arguments);a(this,q0,n(Mi,8,this,"Search...")),n(Mi,11,this);a(this,j0,n(Mi,12,this)),n(Mi,15,this);a(this,Oa);a(this,wm,t=>{let e=t.target;this._ctx?.setSearch(e.value)});a(this,km,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(o(this,Oa)!==void 0&&this._ctx?.search===""&&o(this,Oa)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,Oa,this._ctx?.search)}render(){return f`
3109
+ `,qz,jz,Kz,Mi,j0,K0,Oa,wm,km,Wo=class extends(Kz=x,jz=[u({type:String})],qz=[Nt({context:So,subscribe:!0})],Kz){constructor(){super(...arguments);a(this,j0,n(Mi,8,this,"Search...")),n(Mi,11,this);a(this,K0,n(Mi,12,this)),n(Mi,15,this);a(this,Oa);a(this,wm,t=>{let e=t.target;this._ctx?.setSearch(e.value)});a(this,km,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(o(this,Oa)!==void 0&&this._ctx?.search===""&&o(this,Oa)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}h(this,Oa,this._ctx?.search)}render(){return f`
3110
3110
  <div class="InputWrapper">
3111
3111
  <svg
3112
3112
  class="SearchIcon"
@@ -3135,7 +3135,7 @@ label, legend, caption, figcaption, th, td {
3135
3135
  @keydown="${o(this,km)}"
3136
3136
  />
3137
3137
  </div>
3138
- `}};Mi=A(Kz),q0=new WeakMap,j0=new WeakMap,Oa=new WeakMap,wm=new WeakMap,km=new WeakMap,c(Mi,4,"placeholder",jz,Wo,q0),c(Mi,4,"_ctx",qz,Wo,j0),T(Mi,Wo),v(Wo,"tagName","dui-command-input"),v(Wo,"styles",[w,TV]);var SV=b`
3138
+ `}};Mi=A(Kz),j0=new WeakMap,K0=new WeakMap,Oa=new WeakMap,wm=new WeakMap,km=new WeakMap,c(Mi,4,"placeholder",jz,Wo,j0),c(Mi,4,"_ctx",qz,Wo,K0),T(Mi,Wo),v(Wo,"tagName","dui-command-input"),v(Wo,"styles",[w,TV]);var SV=b`
3139
3139
  :host {
3140
3140
  display: block;
3141
3141
  }
@@ -3143,7 +3143,7 @@ label, legend, caption, figcaption, th, td {
3143
3143
  .List {
3144
3144
  overflow: hidden;
3145
3145
  }
3146
- `,Wz,Yz,Em,K0,mr=class extends(Yz=x,Wz=[Nt({context:So,subscribe:!0})],Yz){constructor(){super(...arguments);a(this,K0,n(Em,8,this)),n(Em,11,this)}render(){return f`
3146
+ `,Wz,Yz,Em,W0,mr=class extends(Yz=x,Wz=[Nt({context:So,subscribe:!0})],Yz){constructor(){super(...arguments);a(this,W0,n(Em,8,this)),n(Em,11,this)}render(){return f`
3147
3147
  <dui-scroll-area>
3148
3148
  <div
3149
3149
  class="List"
@@ -3153,7 +3153,7 @@ label, legend, caption, figcaption, th, td {
3153
3153
  <slot></slot>
3154
3154
  </div>
3155
3155
  </dui-scroll-area>
3156
- `}};Em=A(Yz),K0=new WeakMap,c(Em,4,"_ctx",Wz,mr,K0),T(Em,mr),v(mr,"tagName","dui-command-list"),v(mr,"styles",[w,SV]);var AV=0,_V=()=>`dui-command-group-${++AV}`,RV=b`
3156
+ `}};Em=A(Yz),W0=new WeakMap,c(Em,4,"_ctx",Wz,mr,W0),T(Em,mr),v(mr,"tagName","dui-command-list"),v(mr,"styles",[w,SV]);var AV=0,_V=()=>`dui-command-group-${++AV}`,RV=b`
3157
3157
  :host {
3158
3158
  display: block;
3159
3159
  }
@@ -3165,12 +3165,12 @@ label, legend, caption, figcaption, th, td {
3165
3165
  .Group {
3166
3166
  overflow: hidden;
3167
3167
  }
3168
- `,Gz,Xz,Jz,Ni,W0,Y0,Di,Yo=class extends(Jz=x,Xz=[u({type:String})],Gz=[Nt({context:So,subscribe:!0})],Jz){constructor(){super(...arguments);a(this,W0,n(Ni,8,this,"")),n(Ni,11,this);a(this,Y0,n(Ni,12,this)),n(Ni,15,this);a(this,Di,_V())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",o(this,Di)),this._ctx?.registerGroup(o(this,Di))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(o(this,Di))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(o(this,Di))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
3168
+ `,Gz,Xz,Jz,Ni,Y0,G0,Di,Yo=class extends(Jz=x,Xz=[u({type:String})],Gz=[Nt({context:So,subscribe:!0})],Jz){constructor(){super(...arguments);a(this,Y0,n(Ni,8,this,"")),n(Ni,11,this);a(this,G0,n(Ni,12,this)),n(Ni,15,this);a(this,Di,_V())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",o(this,Di)),this._ctx?.registerGroup(o(this,Di))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(o(this,Di))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(o(this,Di))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
3169
3169
  <div class="Group" role="group" aria-label="${this.heading||L}">
3170
3170
  ${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:L}
3171
3171
  <slot></slot>
3172
3172
  </div>
3173
- `}};Ni=A(Jz),W0=new WeakMap,Y0=new WeakMap,Di=new WeakMap,c(Ni,4,"heading",Xz,Yo,W0),c(Ni,4,"_ctx",Gz,Yo,Y0),T(Ni,Yo),v(Yo,"tagName","dui-command-group"),v(Yo,"styles",[w,RV]);var IV=0,LV=()=>`dui-command-item-${++IV}`,zV=b`
3173
+ `}};Ni=A(Jz),Y0=new WeakMap,G0=new WeakMap,Di=new WeakMap,c(Ni,4,"heading",Xz,Yo,Y0),c(Ni,4,"_ctx",Gz,Yo,G0),T(Ni,Yo),v(Yo,"tagName","dui-command-group"),v(Yo,"styles",[w,RV]);var IV=0,LV=()=>`dui-command-item-${++IV}`,zV=b`
3174
3174
  :host {
3175
3175
  display: block;
3176
3176
  }
@@ -3187,7 +3187,7 @@ label, legend, caption, figcaption, th, td {
3187
3187
  user-select: none;
3188
3188
  outline: none;
3189
3189
  }
3190
- `,Qz,Zz,t2,e2,o2,lo,G0,X0,J0,Q0,fr,Ma,Na,Da,Ha,Ke,op,r2,s2,Z0,Cm,$m,co=class extends(o2=x,e2=[u({type:String})],t2=[u({type:Array,attribute:!1})],Zz=[u({type:Boolean})],Qz=[Nt({context:So,subscribe:!0})],o2){constructor(){super(...arguments);a(this,Ke);a(this,G0,n(lo,8,this,"")),n(lo,11,this);a(this,X0,n(lo,12,this,[])),n(lo,15,this);a(this,J0,n(lo,16,this,!1)),n(lo,19,this);a(this,Q0,n(lo,20,this)),n(lo,23,this);a(this,fr,LV());a(this,Ma);a(this,Na);a(this,Da);a(this,Ha,!1);a(this,Cm,()=>{!this.disabled&&this._ctx?.selectedItemId!==o(this,fr)&&this._ctx?.selectItem(o(this,fr))});a(this,$m,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(p(this,Ke,Z0).call(this)),h(this,Ha,!0),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(o(this,fr)),h(this,Ha,!1)}willUpdate(){if(o(this,Ha)){let t=o(this,Ma)!==this.value,e=o(this,Na)!==this.keywords,s=o(this,Da)!==this.disabled;(t||e||s)&&(this._ctx?.updateItem(p(this,Ke,Z0).call(this)),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))}this._ctx?.shouldFilter?o(this,Ke,r2)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),o(this,Ke,op)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){o(this,Ke,op)&&this.scrollIntoView({block:"nearest"})}render(){return f`
3190
+ `,Qz,Zz,t2,e2,o2,lo,X0,J0,Q0,Z0,fr,Ma,Na,Da,Ha,Ke,op,r2,s2,tw,Cm,$m,co=class extends(o2=x,e2=[u({type:String})],t2=[u({type:Array,attribute:!1})],Zz=[u({type:Boolean})],Qz=[Nt({context:So,subscribe:!0})],o2){constructor(){super(...arguments);a(this,Ke);a(this,X0,n(lo,8,this,"")),n(lo,11,this);a(this,J0,n(lo,12,this,[])),n(lo,15,this);a(this,Q0,n(lo,16,this,!1)),n(lo,19,this);a(this,Z0,n(lo,20,this)),n(lo,23,this);a(this,fr,LV());a(this,Ma);a(this,Na);a(this,Da);a(this,Ha,!1);a(this,Cm,()=>{!this.disabled&&this._ctx?.selectedItemId!==o(this,fr)&&this._ctx?.selectItem(o(this,fr))});a(this,$m,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(p(this,Ke,tw).call(this)),h(this,Ha,!0),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(o(this,fr)),h(this,Ha,!1)}willUpdate(){if(o(this,Ha)){let t=o(this,Ma)!==this.value,e=o(this,Na)!==this.keywords,s=o(this,Da)!==this.disabled;(t||e||s)&&(this._ctx?.updateItem(p(this,Ke,tw).call(this)),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))}this._ctx?.shouldFilter?o(this,Ke,r2)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),o(this,Ke,op)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){o(this,Ke,op)&&this.scrollIntoView({block:"nearest"})}render(){return f`
3191
3191
  <div
3192
3192
  class="Item"
3193
3193
  role="option"
@@ -3201,7 +3201,7 @@ label, legend, caption, figcaption, th, td {
3201
3201
  >
3202
3202
  <slot></slot>
3203
3203
  </div>
3204
- `}};lo=A(o2),G0=new WeakMap,X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,fr=new WeakMap,Ma=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ha=new WeakMap,Ke=new WeakSet,op=function(){return this._ctx?.selectedItemId===o(this,fr)},r2=function(){return this._ctx?this._ctx.getScore(o(this,fr))>0:!0},s2=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},Z0=function(){return{id:o(this,fr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:p(this,Ke,s2).call(this)}},Cm=new WeakMap,$m=new WeakMap,c(lo,4,"value",e2,co,G0),c(lo,4,"keywords",t2,co,X0),c(lo,4,"disabled",Zz,co,J0),c(lo,4,"_ctx",Qz,co,Q0),T(lo,co),v(co,"tagName","dui-command-item"),v(co,"styles",[w,zV]);var OV=b`
3204
+ `}};lo=A(o2),X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,fr=new WeakMap,Ma=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ha=new WeakMap,Ke=new WeakSet,op=function(){return this._ctx?.selectedItemId===o(this,fr)},r2=function(){return this._ctx?this._ctx.getScore(o(this,fr))>0:!0},s2=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},tw=function(){return{id:o(this,fr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:p(this,Ke,s2).call(this)}},Cm=new WeakMap,$m=new WeakMap,c(lo,4,"value",e2,co,X0),c(lo,4,"keywords",t2,co,J0),c(lo,4,"disabled",Zz,co,Q0),c(lo,4,"_ctx",Qz,co,Z0),T(lo,co),v(co,"tagName","dui-command-item"),v(co,"styles",[w,zV]);var OV=b`
3205
3205
  :host {
3206
3206
  display: block;
3207
3207
  }
@@ -3213,11 +3213,11 @@ label, legend, caption, figcaption, th, td {
3213
3213
  .Empty {
3214
3214
  text-align: center;
3215
3215
  }
3216
- `,i2,n2,Tm,tw,gr=class extends(n2=x,i2=[Nt({context:So,subscribe:!0})],n2){constructor(){super(...arguments);a(this,tw,n(Tm,8,this)),n(Tm,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
3216
+ `,i2,n2,Tm,ew,gr=class extends(n2=x,i2=[Nt({context:So,subscribe:!0})],n2){constructor(){super(...arguments);a(this,ew,n(Tm,8,this)),n(Tm,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
3217
3217
  <div class="Empty" role="status">
3218
3218
  <slot></slot>
3219
3219
  </div>
3220
- `}};Tm=A(n2),tw=new WeakMap,c(Tm,4,"_ctx",i2,gr,tw),T(Tm,gr),v(gr,"tagName","dui-command-empty"),v(gr,"styles",[w,OV]);var MV=b`
3220
+ `}};Tm=A(n2),ew=new WeakMap,c(Tm,4,"_ctx",i2,gr,ew),T(Tm,gr),v(gr,"tagName","dui-command-empty"),v(gr,"styles",[w,OV]);var MV=b`
3221
3221
  :host {
3222
3222
  display: block;
3223
3223
  }
@@ -3423,7 +3423,7 @@ label, legend, caption, figcaption, th, td {
3423
3423
  .PageButton:disabled {
3424
3424
  cursor: not-allowed;
3425
3425
  }
3426
- `,l2,d2,c2,p2,h2,u2,m2,f2,g2,Dt,ew,ow,rw,sw,iw,nw,aw,ns,Sm,V,lw,dw,as,Am,cw,pw,hw,uw,rp,v2,b2,sp,x2,y2,w2,k2,We=class extends(g2=x,f2=[u({attribute:!1})],m2=[u({attribute:!1})],u2=[u({type:Number,attribute:"page-size"})],h2=[u({attribute:!1})],p2=[u({attribute:"empty-text"})],c2=[C()],d2=[C()],l2=[C()],g2){constructor(){super(...arguments);a(this,V);a(this,ew,n(Dt,8,this,[])),n(Dt,11,this);a(this,ow,n(Dt,12,this,[])),n(Dt,15,this);a(this,rw,n(Dt,16,this,10)),n(Dt,19,this);a(this,sw,n(Dt,20,this)),n(Dt,23,this);a(this,iw,n(Dt,24,this,"No results.")),n(Dt,27,this);a(this,nw,n(Dt,28,this,null)),n(Dt,31,this);a(this,lw,n(Dt,32,this,1)),n(Dt,35,this);a(this,cw,n(Dt,36,this,[])),n(Dt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,V,1,Am);let e=QV(this.data,o(this,V,ns));this.pageSize>0?h(this,V,ZV(e,o(this,V,as),this.pageSize),uw):h(this,V,e,uw)}}render(){return f`
3426
+ `,l2,d2,c2,p2,h2,u2,m2,f2,g2,Dt,ow,rw,sw,iw,nw,aw,lw,ns,Sm,V,dw,cw,as,Am,pw,hw,uw,mw,rp,v2,b2,sp,x2,y2,w2,k2,We=class extends(g2=x,f2=[u({attribute:!1})],m2=[u({attribute:!1})],u2=[u({type:Number,attribute:"page-size"})],h2=[u({attribute:!1})],p2=[u({attribute:"empty-text"})],c2=[C()],d2=[C()],l2=[C()],g2){constructor(){super(...arguments);a(this,V);a(this,ow,n(Dt,8,this,[])),n(Dt,11,this);a(this,rw,n(Dt,12,this,[])),n(Dt,15,this);a(this,sw,n(Dt,16,this,10)),n(Dt,19,this);a(this,iw,n(Dt,20,this)),n(Dt,23,this);a(this,nw,n(Dt,24,this,"No results.")),n(Dt,27,this);a(this,aw,n(Dt,28,this,null)),n(Dt,31,this);a(this,dw,n(Dt,32,this,1)),n(Dt,35,this);a(this,pw,n(Dt,36,this,[])),n(Dt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,V,1,Am);let e=QV(this.data,o(this,V,ns));this.pageSize>0?h(this,V,ZV(e,o(this,V,as),this.pageSize),mw):h(this,V,e,mw)}}render(){return f`
3427
3427
  <div class="DataTable" part="root">
3428
3428
  <div class="TableWindow" part="table-window">
3429
3429
  <table part="table">
@@ -3432,7 +3432,7 @@ label, legend, caption, figcaption, th, td {
3432
3432
  </div>
3433
3433
  ${p(this,V,k2).call(this)}
3434
3434
  </div>
3435
- `}};Dt=A(g2),ew=new WeakMap,ow=new WeakMap,rw=new WeakMap,sw=new WeakMap,iw=new WeakMap,nw=new WeakMap,V=new WeakSet,lw=new WeakMap,cw=new WeakMap,rp=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},v2=function(){return{page:o(this,V,as),pageSize:this.pageSize,totalRows:this.data.length,totalPages:o(this,V,rp)}},b2=function(t){o(this,V,ns)?.column===t?o(this,V,ns).direction==="asc"?h(this,V,{column:t,direction:"desc"},Sm):h(this,V,null,Sm):h(this,V,{column:t,direction:"asc"},Sm),h(this,V,1,Am),this.dispatchEvent(KV(o(this,V,ns)))},sp=function(t){h(this,V,Math.max(1,Math.min(t,o(this,V,rp))),Am),this.dispatchEvent(WV(o(this,V,v2)))},x2=function(t){return t.sortable?o(this,V,ns)?.column===t.key?f`<span class="SortIcon"
3435
+ `}};Dt=A(g2),ow=new WeakMap,rw=new WeakMap,sw=new WeakMap,iw=new WeakMap,nw=new WeakMap,aw=new WeakMap,V=new WeakSet,dw=new WeakMap,pw=new WeakMap,rp=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},v2=function(){return{page:o(this,V,as),pageSize:this.pageSize,totalRows:this.data.length,totalPages:o(this,V,rp)}},b2=function(t){o(this,V,ns)?.column===t?o(this,V,ns).direction==="asc"?h(this,V,{column:t,direction:"desc"},Sm):h(this,V,null,Sm):h(this,V,{column:t,direction:"asc"},Sm),h(this,V,1,Am),this.dispatchEvent(KV(o(this,V,ns)))},sp=function(t){h(this,V,Math.max(1,Math.min(t,o(this,V,rp))),Am),this.dispatchEvent(WV(o(this,V,v2)))},x2=function(t){return t.sortable?o(this,V,ns)?.column===t.key?f`<span class="SortIcon"
3436
3436
  >${o(this,V,ns).direction==="asc"?GV:XV}</span
3437
3437
  >`:f`<span class="SortIcon">${YV}</span>`:L},y2=function(){return f`
3438
3438
  <thead>
@@ -3450,7 +3450,7 @@ label, legend, caption, figcaption, th, td {
3450
3450
  `})}
3451
3451
  </tr>
3452
3452
  </thead>
3453
- `},w2=function(){if(o(this,V,hw).length===0)return f`
3453
+ `},w2=function(){if(o(this,V,uw).length===0)return f`
3454
3454
  <tbody>
3455
3455
  <tr class="EmptyRow">
3456
3456
  <td colspan=${this.columns.length}>${this.emptyText}</td>
@@ -3458,7 +3458,7 @@ label, legend, caption, figcaption, th, td {
3458
3458
  </tbody>
3459
3459
  `;let t=this.rowKey?(e,s)=>this.rowKey(e):(e,s)=>s;return f`
3460
3460
  <tbody>
3461
- ${Si(o(this,V,hw),t,e=>f`
3461
+ ${Si(o(this,V,uw),t,e=>f`
3462
3462
  <tr>
3463
3463
  ${this.columns.map(s=>{let l=e[s.key],d=s.render?s.render(l,e):l??"";return f`<td>${d}</td>`})}
3464
3464
  </tr>
@@ -3504,7 +3504,7 @@ label, legend, caption, figcaption, th, td {
3504
3504
  </button>
3505
3505
  </div>
3506
3506
  </div>
3507
- `},c(Dt,4,"columns",f2,We,ew),c(Dt,4,"data",m2,We,ow),c(Dt,4,"pageSize",u2,We,rw),c(Dt,4,"rowKey",h2,We,sw),c(Dt,4,"emptyText",p2,We,iw),aw=c(Dt,20,"#sort",c2,V,nw),ns=aw.get,Sm=aw.set,dw=c(Dt,20,"#page",d2,V,lw),as=dw.get,Am=dw.set,pw=c(Dt,20,"#displayRows",l2,V,cw),hw=pw.get,uw=pw.set,T(Dt,We),v(We,"tagName","dui-data-table"),v(We,"styles",[w,tP,eP]);var oP=k`
3507
+ `},c(Dt,4,"columns",f2,We,ow),c(Dt,4,"data",m2,We,rw),c(Dt,4,"pageSize",u2,We,sw),c(Dt,4,"rowKey",h2,We,iw),c(Dt,4,"emptyText",p2,We,nw),lw=c(Dt,20,"#sort",c2,V,aw),ns=lw.get,Sm=lw.set,cw=c(Dt,20,"#page",d2,V,dw),as=cw.get,Am=cw.set,hw=c(Dt,20,"#displayRows",l2,V,pw),uw=hw.get,mw=hw.set,T(Dt,We),v(We,"tagName","dui-data-table"),v(We,"styles",[w,tP,eP]);var oP=k`
3508
3508
  .DataTable {
3509
3509
  gap: var(--space-2);
3510
3510
  }
@@ -3620,7 +3620,7 @@ label, legend, caption, figcaption, th, td {
3620
3620
  :host {
3621
3621
  display: contents;
3622
3622
  }
3623
- `,E2,C2,$2,T2,S2,po,mw,fw,gw,vw,A2,_m,Ye,Hi,Lm,zm,Om,Mm,_2,Nm,Dm,bw,Rm,Ao=class extends(S2=x,T2=[u({type:Boolean,reflect:!0})],$2=[u({type:Boolean,attribute:"default-open"})],C2=[C()],E2=[lt({context:Ns}),C()],S2){constructor(){super(...arguments);a(this,Ye);a(this,mw,n(po,8,this)),n(po,11,this);a(this,fw,n(po,12,this,!1)),n(po,15,this);a(this,gw,n(po,16,this,!1)),n(po,19,this);a(this,Hi,crypto.randomUUID().slice(0,8));a(this,Lm,`dui-dialog-${o(this,Hi)}`);a(this,zm,`dui-trigger-${o(this,Hi)}`);a(this,Om,`dui-title-${o(this,Hi)}`);a(this,Mm,`dui-desc-${o(this,Hi)}`);a(this,Nm,()=>{this.open===void 0&&h(this,Ye,!0,_m),this.dispatchEvent(Im({open:!0}))});a(this,Dm,()=>{this.open===void 0&&h(this,Ye,!1,_m),this.dispatchEvent(Im({open:!1}))});a(this,bw,n(po,20,this,p(this,Ye,Rm).call(this))),n(po,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ye,!0,_m),this._ctx=p(this,Ye,Rm).call(this)}willUpdate(){this._ctx=p(this,Ye,Rm).call(this)}render(){return f`<slot></slot>`}};po=A(S2),mw=new WeakMap,fw=new WeakMap,gw=new WeakMap,Ye=new WeakSet,Hi=new WeakMap,Lm=new WeakMap,zm=new WeakMap,Om=new WeakMap,Mm=new WeakMap,_2=function(){return this.open??o(this,Ye,A2)},Nm=new WeakMap,Dm=new WeakMap,bw=new WeakMap,Rm=function(){return{open:o(this,Ye,_2),dialogId:o(this,Lm),triggerId:o(this,zm),titleId:o(this,Om),descriptionId:o(this,Mm),openDialog:o(this,Nm),closeDialog:o(this,Dm)}},c(po,4,"open",T2,Ao,mw),c(po,4,"defaultOpen",$2,Ao,fw),vw=c(po,20,"#internalOpen",C2,Ye,gw),A2=vw.get,_m=vw.set,c(po,4,"_ctx",E2,Ao,bw),T(po,Ao),v(Ao,"tagName","dui-dialog"),v(Ao,"styles",[w,rP]);var sP=b`
3623
+ `,E2,C2,$2,T2,S2,po,fw,gw,vw,bw,A2,_m,Ye,Hi,Lm,zm,Om,Mm,_2,Nm,Dm,xw,Rm,Ao=class extends(S2=x,T2=[u({type:Boolean,reflect:!0})],$2=[u({type:Boolean,attribute:"default-open"})],C2=[C()],E2=[lt({context:Ns}),C()],S2){constructor(){super(...arguments);a(this,Ye);a(this,fw,n(po,8,this)),n(po,11,this);a(this,gw,n(po,12,this,!1)),n(po,15,this);a(this,vw,n(po,16,this,!1)),n(po,19,this);a(this,Hi,crypto.randomUUID().slice(0,8));a(this,Lm,`dui-dialog-${o(this,Hi)}`);a(this,zm,`dui-trigger-${o(this,Hi)}`);a(this,Om,`dui-title-${o(this,Hi)}`);a(this,Mm,`dui-desc-${o(this,Hi)}`);a(this,Nm,()=>{this.open===void 0&&h(this,Ye,!0,_m),this.dispatchEvent(Im({open:!0}))});a(this,Dm,()=>{this.open===void 0&&h(this,Ye,!1,_m),this.dispatchEvent(Im({open:!1}))});a(this,xw,n(po,20,this,p(this,Ye,Rm).call(this))),n(po,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ye,!0,_m),this._ctx=p(this,Ye,Rm).call(this)}willUpdate(){this._ctx=p(this,Ye,Rm).call(this)}render(){return f`<slot></slot>`}};po=A(S2),fw=new WeakMap,gw=new WeakMap,vw=new WeakMap,Ye=new WeakSet,Hi=new WeakMap,Lm=new WeakMap,zm=new WeakMap,Om=new WeakMap,Mm=new WeakMap,_2=function(){return this.open??o(this,Ye,A2)},Nm=new WeakMap,Dm=new WeakMap,xw=new WeakMap,Rm=function(){return{open:o(this,Ye,_2),dialogId:o(this,Lm),triggerId:o(this,zm),titleId:o(this,Om),descriptionId:o(this,Mm),openDialog:o(this,Nm),closeDialog:o(this,Dm)}},c(po,4,"open",T2,Ao,fw),c(po,4,"defaultOpen",$2,Ao,gw),bw=c(po,20,"#internalOpen",C2,Ye,vw),A2=bw.get,_m=bw.set,c(po,4,"_ctx",E2,Ao,xw),T(po,Ao),v(Ao,"tagName","dui-dialog"),v(Ao,"styles",[w,rP]);var sP=b`
3624
3624
  :host {
3625
3625
  display: contents;
3626
3626
  }
@@ -3670,12 +3670,12 @@ label, legend, caption, figcaption, th, td {
3670
3670
  z-index: 1000;
3671
3671
  transition-property: opacity, transform;
3672
3672
  }
3673
- `,R2,I2,L2,z2,O2,M2,N2,D2,Kt,xw,yw,ww,kw,Ew,Cw,Ja,_w,ot,$w,Tw,Rw,Iw,Sw,Aw,ls,Lw,Qa,ds,H2,B2,zw,F2,V2,Hm,P2,Bm,ho=class extends(D2=x,N2=[u({type:Boolean,attribute:"keep-mounted"})],M2=[u({attribute:"initial-focus"})],O2=[u({attribute:"final-focus"})],z2=[u()],L2=[C()],I2=[C()],R2=[C()],D2){constructor(){super(...arguments);a(this,ot);a(this,xw,n(Kt,8,this,!1)),n(Kt,11,this);a(this,yw,n(Kt,12,this)),n(Kt,15,this);a(this,ww,n(Kt,16,this)),n(Kt,19,this);a(this,kw,n(Kt,20,this)),n(Kt,23,this);a(this,Ew,n(Kt,24,this,!1)),n(Kt,27,this);a(this,$w,n(Kt,28,this,!1)),n(Kt,31,this);a(this,Sw,n(Kt,32,this,!1)),n(Kt,35,this);a(this,Qa);a(this,ds,new q(this,{context:Ns,subscribe:!0}));a(this,Hm,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,ds).value?.closeDialog()),t.key==="Tab"&&p(this,ot,P2).call(this,t)});a(this,Bm,()=>{o(this,ds).value?.closeDialog()})}updated(){let t=o(this,ds).value?.open??!1;t&&!o(this,ot,Ja)?p(this,ot,H2).call(this):!t&&o(this,ot,Ja)&&!o(this,ot,ls)&&p(this,ot,B2).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),o(this,ot,Ja)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,ds).value?.open??!1,e=o(this,ds).value?.titleId??"",s=o(this,ds).value?.descriptionId??"";return!o(this,ot,Ja)&&!this.keepMounted?f``:f`
3673
+ `,R2,I2,L2,z2,O2,M2,N2,D2,Kt,yw,ww,kw,Ew,Cw,$w,Ja,Rw,ot,Tw,Sw,Iw,Lw,Aw,_w,ls,zw,Qa,ds,H2,B2,Ow,F2,V2,Hm,P2,Bm,ho=class extends(D2=x,N2=[u({type:Boolean,attribute:"keep-mounted"})],M2=[u({attribute:"initial-focus"})],O2=[u({attribute:"final-focus"})],z2=[u()],L2=[C()],I2=[C()],R2=[C()],D2){constructor(){super(...arguments);a(this,ot);a(this,yw,n(Kt,8,this,!1)),n(Kt,11,this);a(this,ww,n(Kt,12,this)),n(Kt,15,this);a(this,kw,n(Kt,16,this)),n(Kt,19,this);a(this,Ew,n(Kt,20,this)),n(Kt,23,this);a(this,Cw,n(Kt,24,this,!1)),n(Kt,27,this);a(this,Tw,n(Kt,28,this,!1)),n(Kt,31,this);a(this,Aw,n(Kt,32,this,!1)),n(Kt,35,this);a(this,Qa);a(this,ds,new q(this,{context:Ns,subscribe:!0}));a(this,Hm,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,ds).value?.closeDialog()),t.key==="Tab"&&p(this,ot,P2).call(this,t)});a(this,Bm,()=>{o(this,ds).value?.closeDialog()})}updated(){let t=o(this,ds).value?.open??!1;t&&!o(this,ot,Ja)?p(this,ot,H2).call(this):!t&&o(this,ot,Ja)&&!o(this,ot,ls)&&p(this,ot,B2).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),o(this,ot,Ja)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,ds).value?.open??!1,e=o(this,ds).value?.titleId??"",s=o(this,ds).value?.descriptionId??"";return!o(this,ot,Ja)&&!this.keepMounted?f``:f`
3674
3674
  <div
3675
3675
  part="backdrop"
3676
3676
  ?data-open="${t&&!o(this,ot,ls)}"
3677
3677
  ?data-closed="${!t||o(this,ot,ls)}"
3678
- ?data-starting-style="${o(this,ot,Rw)}"
3678
+ ?data-starting-style="${o(this,ot,Iw)}"
3679
3679
  ?data-ending-style="${o(this,ot,ls)}"
3680
3680
  @click="${o(this,Bm)}"
3681
3681
  ></div>
@@ -3687,7 +3687,7 @@ label, legend, caption, figcaption, th, td {
3687
3687
  aria-describedby="${s}"
3688
3688
  ?data-open="${t&&!o(this,ot,ls)}"
3689
3689
  ?data-closed="${!t||o(this,ot,ls)}"
3690
- ?data-starting-style="${o(this,ot,Rw)}"
3690
+ ?data-starting-style="${o(this,ot,Iw)}"
3691
3691
  ?data-ending-style="${o(this,ot,ls)}"
3692
3692
  tabindex="-1"
3693
3693
  @keydown="${o(this,Hm)}"
@@ -3696,7 +3696,7 @@ label, legend, caption, figcaption, th, td {
3696
3696
  <p part="description" id="${s}"><slot name="description"></slot></p>
3697
3697
  <slot></slot>
3698
3698
  </div>
3699
- `}};Kt=A(D2),xw=new WeakMap,yw=new WeakMap,ww=new WeakMap,kw=new WeakMap,Ew=new WeakMap,ot=new WeakSet,$w=new WeakMap,Sw=new WeakMap,Qa=new WeakMap,ds=new WeakMap,H2=async function(){h(this,Qa,document.activeElement??void 0),h(this,ot,!0,_w),h(this,ot,!0,Iw),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,ot,!1,Iw),await this.updateComplete,p(this,ot,F2).call(this)},B2=function(){h(this,ot,!0,Lw);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,ot,zw).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,ot,zw).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},zw=function(){!o(this,ot,ls)&&!o(this,ot,Ja)||(h(this,ot,!1,Lw),this.keepMounted||h(this,ot,!1,_w),p(this,ot,V2).call(this))},F2=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},V2=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Qa)?.focus(),h(this,Qa,void 0)},Hm=new WeakMap,P2=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},Bm=new WeakMap,c(Kt,4,"keepMounted",N2,ho,xw),c(Kt,4,"initialFocus",M2,ho,yw),c(Kt,4,"finalFocus",O2,ho,ww),c(Kt,4,"width",z2,ho,kw),Cw=c(Kt,20,"#mounted",L2,ot,Ew),Ja=Cw.get,_w=Cw.set,Tw=c(Kt,20,"#startingStyle",I2,ot,$w),Rw=Tw.get,Iw=Tw.set,Aw=c(Kt,20,"#endingStyle",R2,ot,Sw),ls=Aw.get,Lw=Aw.set,T(Kt,ho),v(ho,"tagName","dui-dialog-popup"),v(ho,"styles",[w,nP,aP]);var lP=b`
3699
+ `}};Kt=A(D2),yw=new WeakMap,ww=new WeakMap,kw=new WeakMap,Ew=new WeakMap,Cw=new WeakMap,ot=new WeakSet,Tw=new WeakMap,Aw=new WeakMap,Qa=new WeakMap,ds=new WeakMap,H2=async function(){h(this,Qa,document.activeElement??void 0),h(this,ot,!0,Rw),h(this,ot,!0,Lw),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,ot,!1,Lw),await this.updateComplete,p(this,ot,F2).call(this)},B2=function(){h(this,ot,!0,zw);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,ot,Ow).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,ot,Ow).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},Ow=function(){!o(this,ot,ls)&&!o(this,ot,Ja)||(h(this,ot,!1,zw),this.keepMounted||h(this,ot,!1,Rw),p(this,ot,V2).call(this))},F2=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},V2=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Qa)?.focus(),h(this,Qa,void 0)},Hm=new WeakMap,P2=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},Bm=new WeakMap,c(Kt,4,"keepMounted",N2,ho,yw),c(Kt,4,"initialFocus",M2,ho,ww),c(Kt,4,"finalFocus",O2,ho,kw),c(Kt,4,"width",z2,ho,Ew),$w=c(Kt,20,"#mounted",L2,ot,Cw),Ja=$w.get,Rw=$w.set,Sw=c(Kt,20,"#startingStyle",I2,ot,Tw),Iw=Sw.get,Lw=Sw.set,_w=c(Kt,20,"#endingStyle",R2,ot,Aw),ls=_w.get,zw=_w.set,T(Kt,ho),v(ho,"tagName","dui-dialog-popup"),v(ho,"styles",[w,nP,aP]);var lP=b`
3700
3700
  :host {
3701
3701
  display: contents;
3702
3702
  }
@@ -3773,7 +3773,7 @@ label, legend, caption, figcaption, th, td {
3773
3773
  transition-duration: 0s;
3774
3774
  }
3775
3775
  }
3776
- `,el=class extends ho{static styles=[...ho.styles,cP]};customElements.define(el.tagName,el);var ol=class extends ip{};customElements.define(ol.tagName,ol);var jw=M("drop",{bubbles:!0,composed:!0}),Kw=M("drop-accepted",{bubbles:!0,composed:!0}),Ww=M("drop-rejected",{bubbles:!0,composed:!0}),pP=M("dragenter",{bubbles:!0,composed:!0}),hP=M("dragover",{bubbles:!0,composed:!0}),uP=M("dragleave",{bubbles:!0,composed:!0}),ap=M("dropzone-error",{bubbles:!0,composed:!0}),mP=b`
3776
+ `,el=class extends ho{static styles=[...ho.styles,cP]};customElements.define(el.tagName,el);var ol=class extends ip{};customElements.define(ol.tagName,ol);var Kw=M("drop",{bubbles:!0,composed:!0}),Ww=M("drop-accepted",{bubbles:!0,composed:!0}),Yw=M("drop-rejected",{bubbles:!0,composed:!0}),pP=M("dragenter",{bubbles:!0,composed:!0}),hP=M("dragover",{bubbles:!0,composed:!0}),uP=M("dragleave",{bubbles:!0,composed:!0}),ap=M("dropzone-error",{bubbles:!0,composed:!0}),mP=b`
3777
3777
  :host {
3778
3778
  display: block;
3779
3779
  }
@@ -3794,7 +3794,7 @@ label, legend, caption, figcaption, th, td {
3794
3794
  input[type="file"] {
3795
3795
  display: none;
3796
3796
  }
3797
- `,U2,q2,j2,K2,W2,Y2,G2,X2,J2,Q2,Lt,Ow,Mw,Nw,Dw,Hw,Bw,Fw,Vw,Pw,Uw,Z2,Fm,Ne,Vm,Pm,Um,qm,jm,Km,Wm,qw,tO,eO,Wt=class Wt extends(Q2=x,J2=[u({type:String,reflect:!0})],X2=[u({type:Boolean,reflect:!0})],G2=[u({type:Boolean,reflect:!0})],Y2=[u({type:Number,reflect:!0,attribute:"max-files"})],W2=[u({type:Number,reflect:!0,attribute:"max-size"})],K2=[u({type:Number,reflect:!0,attribute:"min-size"})],j2=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],q2=[u({type:Boolean,reflect:!0,attribute:"no-style"})],U2=[C()],Q2){constructor(){super(...arguments);a(this,Ne);a(this,Ow,n(Lt,8,this)),n(Lt,11,this);a(this,Mw,n(Lt,12,this,!1)),n(Lt,15,this);a(this,Nw,n(Lt,16,this,!1)),n(Lt,19,this);a(this,Dw,n(Lt,20,this,1/0)),n(Lt,23,this);a(this,Hw,n(Lt,24,this,1/0)),n(Lt,27,this);a(this,Bw,n(Lt,28,this,0)),n(Lt,31,this);a(this,Fw,n(Lt,32,this,!1)),n(Lt,35,this);a(this,Vw,n(Lt,36,this,!1)),n(Lt,39,this);a(this,Pw,n(Lt,40,this,!1)),n(Lt,43,this);a(this,Vm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!0,Fm),this.dispatchEvent(pP()))});a(this,Pm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(hP()))});a(this,Um,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!1,Fm),this.dispatchEvent(uP()))});a(this,qm,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,Ne,!1,Fm);try{let e=Array.from(t.dataTransfer?.files??[]);p(this,Ne,qw).call(this,e)}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});a(this,jm,()=>{this.disabled||this.openFileDialog()});a(this,Km,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});a(this,Wm,t=>{if(this.disabled)return;let e=t.target,s=Array.from(e.files??[]);try{p(this,Ne,qw).call(this,s)}catch(l){this.dispatchEvent(ap({error:l,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{e.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
3797
+ `,U2,q2,j2,K2,W2,Y2,G2,X2,J2,Q2,Lt,Mw,Nw,Dw,Hw,Bw,Fw,Vw,Pw,Uw,qw,Z2,Fm,Ne,Vm,Pm,Um,qm,jm,Km,Wm,jw,tO,eO,Wt=class Wt extends(Q2=x,J2=[u({type:String,reflect:!0})],X2=[u({type:Boolean,reflect:!0})],G2=[u({type:Boolean,reflect:!0})],Y2=[u({type:Number,reflect:!0,attribute:"max-files"})],W2=[u({type:Number,reflect:!0,attribute:"max-size"})],K2=[u({type:Number,reflect:!0,attribute:"min-size"})],j2=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],q2=[u({type:Boolean,reflect:!0,attribute:"no-style"})],U2=[C()],Q2){constructor(){super(...arguments);a(this,Ne);a(this,Mw,n(Lt,8,this)),n(Lt,11,this);a(this,Nw,n(Lt,12,this,!1)),n(Lt,15,this);a(this,Dw,n(Lt,16,this,!1)),n(Lt,19,this);a(this,Hw,n(Lt,20,this,1/0)),n(Lt,23,this);a(this,Bw,n(Lt,24,this,1/0)),n(Lt,27,this);a(this,Fw,n(Lt,28,this,0)),n(Lt,31,this);a(this,Vw,n(Lt,32,this,!1)),n(Lt,35,this);a(this,Pw,n(Lt,36,this,!1)),n(Lt,39,this);a(this,Uw,n(Lt,40,this,!1)),n(Lt,43,this);a(this,Vm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!0,Fm),this.dispatchEvent(pP()))});a(this,Pm,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(hP()))});a(this,Um,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(h(this,Ne,!1,Fm),this.dispatchEvent(uP()))});a(this,qm,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){h(this,Ne,!1,Fm);try{let e=Array.from(t.dataTransfer?.files??[]);p(this,Ne,jw).call(this,e)}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});a(this,jm,()=>{this.disabled||this.openFileDialog()});a(this,Km,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});a(this,Wm,t=>{if(this.disabled)return;let e=t.target,s=Array.from(e.files??[]);try{p(this,Ne,jw).call(this,s)}catch(l){this.dispatchEvent(ap({error:l,code:Wt.ERROR_CODES.FILE_PROCESSING_FAILED}))}finally{e.value=""}})}connectedCallback(){super.connectedCallback(),this.autoFocus&&!this.disabled&&this.updateComplete.then(()=>{this.shadowRoot?.querySelector("[part='root']")?.focus()})}openFileDialog(){if(this.disabled)return;let t=this.shadowRoot?.querySelector('input[type="file"]');if(t)try{t.click()}catch(e){this.dispatchEvent(ap({error:e,code:Wt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
3798
3798
  <div
3799
3799
  part="root"
3800
3800
  tabindex="${this.disabled?-1:0}"
@@ -3821,7 +3821,7 @@ label, legend, caption, figcaption, th, td {
3821
3821
  aria-hidden="true"
3822
3822
  hidden
3823
3823
  />
3824
- `}};Lt=A(Q2),Ow=new WeakMap,Mw=new WeakMap,Nw=new WeakMap,Dw=new WeakMap,Hw=new WeakMap,Bw=new WeakMap,Fw=new WeakMap,Vw=new WeakMap,Pw=new WeakMap,Ne=new WeakSet,Vm=new WeakMap,Pm=new WeakMap,Um=new WeakMap,qm=new WeakMap,jm=new WeakMap,Km=new WeakMap,Wm=new WeakMap,qw=function(t){let{acceptedFiles:e,rejectedFiles:s}=p(this,Ne,tO).call(this,t);this.dispatchEvent(jw({acceptedFiles:e,rejectedFiles:s})),e.length>0&&this.dispatchEvent(Kw({acceptedFiles:e})),s.length>0&&this.dispatchEvent(Ww({rejectedFiles:s}))},tO=function(t){let e=[],s=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let d of t)s.push({file:d,errors:[{code:Wt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:s}}for(let d of t){let m=[];d.size>this.maxSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),d.size<this.minSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!p(this,Ne,eO).call(this,d)&&m.push({code:Wt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),m.length>0?s.push({file:d,errors:m}):e.push(d)}return{acceptedFiles:e,rejectedFiles:s}},eO=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(s=>s.trim().toLowerCase());for(let s of e)if(s.startsWith(".")){if(t.name.toLowerCase().endsWith(s))return!0}else if(s.endsWith("/*")){let l=s.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===s)return!0;return!1},c(Lt,4,"accept",J2,Wt,Ow),c(Lt,4,"multiple",X2,Wt,Mw),c(Lt,4,"disabled",G2,Wt,Nw),c(Lt,4,"maxFiles",Y2,Wt,Dw),c(Lt,4,"maxSize",W2,Wt,Hw),c(Lt,4,"minSize",K2,Wt,Bw),c(Lt,4,"autoFocus",j2,Wt,Fw),c(Lt,4,"noStyle",q2,Wt,Vw),Uw=c(Lt,20,"#isDragOver",U2,Ne,Pw),Z2=Uw.get,Fm=Uw.set,T(Lt,Wt),v(Wt,"tagName","dui-dropzone"),v(Wt,"styles",[w,mP]),v(Wt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),v(Wt,"REJECTION_CODES",{TOO_MANY_FILES:"TOO_MANY_FILES",FILE_TOO_LARGE:"FILE_TOO_LARGE",FILE_TOO_SMALL:"FILE_TOO_SMALL",FILE_INVALID_TYPE:"FILE_INVALID_TYPE"});var rl=Wt;var fP=k`
3824
+ `}};Lt=A(Q2),Mw=new WeakMap,Nw=new WeakMap,Dw=new WeakMap,Hw=new WeakMap,Bw=new WeakMap,Fw=new WeakMap,Vw=new WeakMap,Pw=new WeakMap,Uw=new WeakMap,Ne=new WeakSet,Vm=new WeakMap,Pm=new WeakMap,Um=new WeakMap,qm=new WeakMap,jm=new WeakMap,Km=new WeakMap,Wm=new WeakMap,jw=function(t){let{acceptedFiles:e,rejectedFiles:s}=p(this,Ne,tO).call(this,t);this.dispatchEvent(Kw({acceptedFiles:e,rejectedFiles:s})),e.length>0&&this.dispatchEvent(Ww({acceptedFiles:e})),s.length>0&&this.dispatchEvent(Yw({rejectedFiles:s}))},tO=function(t){let e=[],s=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let d of t)s.push({file:d,errors:[{code:Wt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:s}}for(let d of t){let m=[];d.size>this.maxSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),d.size<this.minSize&&m.push({code:Wt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!p(this,Ne,eO).call(this,d)&&m.push({code:Wt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),m.length>0?s.push({file:d,errors:m}):e.push(d)}return{acceptedFiles:e,rejectedFiles:s}},eO=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(s=>s.trim().toLowerCase());for(let s of e)if(s.startsWith(".")){if(t.name.toLowerCase().endsWith(s))return!0}else if(s.endsWith("/*")){let l=s.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===s)return!0;return!1},c(Lt,4,"accept",J2,Wt,Mw),c(Lt,4,"multiple",X2,Wt,Nw),c(Lt,4,"disabled",G2,Wt,Dw),c(Lt,4,"maxFiles",Y2,Wt,Hw),c(Lt,4,"maxSize",W2,Wt,Bw),c(Lt,4,"minSize",K2,Wt,Fw),c(Lt,4,"autoFocus",j2,Wt,Vw),c(Lt,4,"noStyle",q2,Wt,Pw),qw=c(Lt,20,"#isDragOver",U2,Ne,Uw),Z2=qw.get,Fm=qw.set,T(Lt,Wt),v(Wt,"tagName","dui-dropzone"),v(Wt,"styles",[w,mP]),v(Wt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),v(Wt,"REJECTION_CODES",{TOO_MANY_FILES:"TOO_MANY_FILES",FILE_TOO_LARGE:"FILE_TOO_LARGE",FILE_TOO_SMALL:"FILE_TOO_SMALL",FILE_INVALID_TYPE:"FILE_INVALID_TYPE"});var rl=Wt;var fP=k`
3825
3825
  :host([disabled]) {
3826
3826
  opacity: 0.4;
3827
3827
  }
@@ -3877,7 +3877,7 @@ label, legend, caption, figcaption, th, td {
3877
3877
 
3878
3878
  [part="error"] { display: none; }
3879
3879
  [part="error"][data-invalid] { display: block; }
3880
- `,oO,rO,sO,iO,nO,aO,lO,dO,cO,pO,hO,vt,Yw,Gw,Xw,Jw,Qw,uO,pk,Y,Zw,tk,mO,fO,ek,ok,gO,hk,rk,sk,vO,bO,ik,nk,xO,yO,ak,lk,uk,wO,dk,ck,kO,EO,il,CO,mk,fk,Ge,nl,dp,cp,pp,hp,Ym,Gm,Xm,Jm,lp,Qm,_o=class extends(hO=x,pO=[u({type:Boolean,reflect:!0})],cO=[u({type:Boolean,reflect:!0})],dO=[u()],lO=[C()],aO=[C()],nO=[C()],iO=[C()],sO=[C()],rO=[C()],oO=[C()],hO){constructor(){super(...arguments);a(this,Y);a(this,Yw,n(vt,8,this,!1)),n(vt,11,this);a(this,Gw,n(vt,12,this,!1)),n(vt,15,this);a(this,Xw,n(vt,16,this,"vertical")),n(vt,19,this);a(this,Jw,n(vt,20,this,!1)),n(vt,23,this);a(this,Zw,n(vt,24,this,!1)),n(vt,27,this);a(this,ek,n(vt,28,this,!1)),n(vt,31,this);a(this,rk,n(vt,32,this,!1)),n(vt,35,this);a(this,ik,n(vt,36,this,!1)),n(vt,39,this);a(this,ak,n(vt,40,this,!1)),n(vt,43,this);a(this,dk,n(vt,44,this,!1)),n(vt,47,this);a(this,il,crypto.randomUUID().slice(0,8));a(this,Ge);a(this,nl,!1);a(this,dp,()=>{h(this,Y,!0,hk)});a(this,cp,()=>{h(this,Y,!1,hk),h(this,Y,!0,fO)});a(this,pp,()=>{h(this,Y,!0,pk),h(this,Y,!0,bO)});a(this,hp,()=>{h(this,Y,!0,pk)});a(this,Ym,()=>{let e=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];h(this,Ge,e.find(s=>s.matches(gP))),o(this,Ge)&&(p(this,Y,lp).call(this),this.disabled&&(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")))});a(this,Gm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,yO)});a(this,Xm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,wO),p(this,Y,lp).call(this)});a(this,Jm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,EO),p(this,Y,lp).call(this)});a(this,Qm,()=>{this.disabled||o(this,Ge)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",o(this,dp)),this.addEventListener("focusout",o(this,cp)),this.addEventListener("input",o(this,pp)),this.addEventListener("change",o(this,hp))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",o(this,dp)),this.removeEventListener("focusout",o(this,cp)),this.removeEventListener("input",o(this,pp)),this.removeEventListener("change",o(this,hp))}willUpdate(t){t.has("invalid")&&o(this,Ge)&&p(this,Y,lp).call(this),t.has("disabled")&&o(this,Ge)&&(this.disabled?(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")):o(this,nl)||o(this,Ge).removeAttribute("disabled"))}render(){return f`
3880
+ `,oO,rO,sO,iO,nO,aO,lO,dO,cO,pO,hO,vt,Gw,Xw,Jw,Qw,Zw,uO,hk,Y,tk,ek,mO,fO,ok,rk,gO,uk,sk,ik,vO,bO,nk,ak,xO,yO,lk,dk,mk,wO,ck,pk,kO,EO,il,CO,fk,gk,Ge,nl,dp,cp,pp,hp,Ym,Gm,Xm,Jm,lp,Qm,_o=class extends(hO=x,pO=[u({type:Boolean,reflect:!0})],cO=[u({type:Boolean,reflect:!0})],dO=[u()],lO=[C()],aO=[C()],nO=[C()],iO=[C()],sO=[C()],rO=[C()],oO=[C()],hO){constructor(){super(...arguments);a(this,Y);a(this,Gw,n(vt,8,this,!1)),n(vt,11,this);a(this,Xw,n(vt,12,this,!1)),n(vt,15,this);a(this,Jw,n(vt,16,this,"vertical")),n(vt,19,this);a(this,Qw,n(vt,20,this,!1)),n(vt,23,this);a(this,tk,n(vt,24,this,!1)),n(vt,27,this);a(this,ok,n(vt,28,this,!1)),n(vt,31,this);a(this,sk,n(vt,32,this,!1)),n(vt,35,this);a(this,nk,n(vt,36,this,!1)),n(vt,39,this);a(this,lk,n(vt,40,this,!1)),n(vt,43,this);a(this,ck,n(vt,44,this,!1)),n(vt,47,this);a(this,il,crypto.randomUUID().slice(0,8));a(this,Ge);a(this,nl,!1);a(this,dp,()=>{h(this,Y,!0,uk)});a(this,cp,()=>{h(this,Y,!1,uk),h(this,Y,!0,fO)});a(this,pp,()=>{h(this,Y,!0,hk),h(this,Y,!0,bO)});a(this,hp,()=>{h(this,Y,!0,hk)});a(this,Ym,()=>{let e=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];h(this,Ge,e.find(s=>s.matches(gP))),o(this,Ge)&&(p(this,Y,lp).call(this),this.disabled&&(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")))});a(this,Gm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,yO)});a(this,Xm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,wO),p(this,Y,lp).call(this)});a(this,Jm,t=>{let e=t.target;h(this,Y,e.assignedNodes({flatten:!0}).length>0,EO),p(this,Y,lp).call(this)});a(this,Qm,()=>{this.disabled||o(this,Ge)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",o(this,dp)),this.addEventListener("focusout",o(this,cp)),this.addEventListener("input",o(this,pp)),this.addEventListener("change",o(this,hp))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",o(this,dp)),this.removeEventListener("focusout",o(this,cp)),this.removeEventListener("input",o(this,pp)),this.removeEventListener("change",o(this,hp))}willUpdate(t){t.has("invalid")&&o(this,Ge)&&p(this,Y,lp).call(this),t.has("disabled")&&o(this,Ge)&&(this.disabled?(h(this,nl,o(this,Ge).hasAttribute("disabled")),o(this,Ge).setAttribute("disabled","")):o(this,nl)||o(this,Ge).removeAttribute("disabled"))}render(){return f`
3881
3881
  <div
3882
3882
  part="root"
3883
3883
  role="group"
@@ -3905,8 +3905,8 @@ label, legend, caption, figcaption, th, td {
3905
3905
  <slot @slotchange="${o(this,Ym)}"></slot>
3906
3906
  <div
3907
3907
  part="description"
3908
- id="${o(this,Y,mk)}"
3909
- ?data-slotted="${o(this,Y,uk)}"
3908
+ id="${o(this,Y,fk)}"
3909
+ ?data-slotted="${o(this,Y,mk)}"
3910
3910
  >
3911
3911
  <slot
3912
3912
  name="description"
@@ -3915,7 +3915,7 @@ label, legend, caption, figcaption, th, td {
3915
3915
  </div>
3916
3916
  <div
3917
3917
  part="error"
3918
- id="${o(this,Y,fk)}"
3918
+ id="${o(this,Y,gk)}"
3919
3919
  role="alert"
3920
3920
  ?data-invalid="${this.invalid}"
3921
3921
  >
@@ -3925,7 +3925,7 @@ label, legend, caption, figcaption, th, td {
3925
3925
  ></slot>
3926
3926
  </div>
3927
3927
  </div>
3928
- `}};vt=A(hO),Yw=new WeakMap,Gw=new WeakMap,Xw=new WeakMap,Jw=new WeakMap,Y=new WeakSet,Zw=new WeakMap,ek=new WeakMap,rk=new WeakMap,ik=new WeakMap,ak=new WeakMap,dk=new WeakMap,il=new WeakMap,CO=function(){return`field-${o(this,il)}-label`},mk=function(){return`field-${o(this,il)}-desc`},fk=function(){return`field-${o(this,il)}-error`},Ge=new WeakMap,nl=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,Ym=new WeakMap,Gm=new WeakMap,Xm=new WeakMap,Jm=new WeakMap,lp=function(){let t=o(this,Ge);if(!t)return;let e=[];o(this,Y,uk)&&e.push(o(this,Y,mk)),this.invalid&&o(this,Y,kO)&&e.push(o(this,Y,fk));let s=e.join(" ")||null;s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},Qm=new WeakMap,c(vt,4,"disabled",pO,_o,Yw),c(vt,4,"invalid",cO,_o,Gw),c(vt,4,"orientation",dO,_o,Xw),Qw=c(vt,20,"#dirty",lO,Y,Jw),uO=Qw.get,pk=Qw.set,tk=c(vt,20,"#touched",aO,Y,Zw),mO=tk.get,fO=tk.set,ok=c(vt,20,"#focused",nO,Y,ek),gO=ok.get,hk=ok.set,sk=c(vt,20,"#filled",iO,Y,rk),vO=sk.get,bO=sk.set,nk=c(vt,20,"#hasLabel",sO,Y,ik),xO=nk.get,yO=nk.set,lk=c(vt,20,"#hasDescription",rO,Y,ak),uk=lk.get,wO=lk.set,ck=c(vt,20,"#hasError",oO,Y,dk),kO=ck.get,EO=ck.set,T(vt,_o),v(_o,"tagName","dui-field"),v(_o,"styles",[w,vP]);var bP=k`
3928
+ `}};vt=A(hO),Gw=new WeakMap,Xw=new WeakMap,Jw=new WeakMap,Qw=new WeakMap,Y=new WeakSet,tk=new WeakMap,ok=new WeakMap,sk=new WeakMap,nk=new WeakMap,lk=new WeakMap,ck=new WeakMap,il=new WeakMap,CO=function(){return`field-${o(this,il)}-label`},fk=function(){return`field-${o(this,il)}-desc`},gk=function(){return`field-${o(this,il)}-error`},Ge=new WeakMap,nl=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,Ym=new WeakMap,Gm=new WeakMap,Xm=new WeakMap,Jm=new WeakMap,lp=function(){let t=o(this,Ge);if(!t)return;let e=[];o(this,Y,mk)&&e.push(o(this,Y,fk)),this.invalid&&o(this,Y,kO)&&e.push(o(this,Y,gk));let s=e.join(" ")||null;s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},Qm=new WeakMap,c(vt,4,"disabled",pO,_o,Gw),c(vt,4,"invalid",cO,_o,Xw),c(vt,4,"orientation",dO,_o,Jw),Zw=c(vt,20,"#dirty",lO,Y,Qw),uO=Zw.get,hk=Zw.set,ek=c(vt,20,"#touched",aO,Y,tk),mO=ek.get,fO=ek.set,rk=c(vt,20,"#focused",nO,Y,ok),gO=rk.get,uk=rk.set,ik=c(vt,20,"#filled",iO,Y,sk),vO=ik.get,bO=ik.set,ak=c(vt,20,"#hasLabel",sO,Y,nk),xO=ak.get,yO=ak.set,dk=c(vt,20,"#hasDescription",rO,Y,lk),mk=dk.get,wO=dk.set,pk=c(vt,20,"#hasError",oO,Y,ck),kO=pk.get,EO=pk.set,T(vt,_o),v(_o,"tagName","dui-field"),v(_o,"styles",[w,vP]);var bP=k`
3929
3929
  [part="root"] {
3930
3930
  gap: var(--space-2);
3931
3931
  }
@@ -3975,7 +3975,7 @@ label, legend, caption, figcaption, th, td {
3975
3975
 
3976
3976
  [part="legend"]:not([data-slotted]) { display: none; }
3977
3977
  [part="legend"] { padding: 0; }
3978
- `,$O,TO,SO,Bi,gk,vk,bk,AO,_O,ll,Zm,vr=class extends(SO=x,TO=[u({type:Boolean,reflect:!0})],$O=[C()],SO){constructor(){super(...arguments);a(this,ll);a(this,gk,n(Bi,8,this,!1)),n(Bi,11,this);a(this,vk,n(Bi,12,this,!1)),n(Bi,15,this);a(this,Zm,t=>{let e=t.target;h(this,ll,e.assignedNodes({flatten:!0}).length>0,_O)})}render(){return f`
3978
+ `,$O,TO,SO,Bi,vk,bk,xk,AO,_O,ll,Zm,vr=class extends(SO=x,TO=[u({type:Boolean,reflect:!0})],$O=[C()],SO){constructor(){super(...arguments);a(this,ll);a(this,vk,n(Bi,8,this,!1)),n(Bi,11,this);a(this,bk,n(Bi,12,this,!1)),n(Bi,15,this);a(this,Zm,t=>{let e=t.target;h(this,ll,e.assignedNodes({flatten:!0}).length>0,_O)})}render(){return f`
3979
3979
  <fieldset
3980
3980
  part="root"
3981
3981
  ?disabled="${this.disabled}"
@@ -3986,7 +3986,7 @@ label, legend, caption, figcaption, th, td {
3986
3986
  </legend>
3987
3987
  <slot></slot>
3988
3988
  </fieldset>
3989
- `}};Bi=A(SO),gk=new WeakMap,vk=new WeakMap,ll=new WeakSet,Zm=new WeakMap,c(Bi,4,"disabled",TO,vr,gk),bk=c(Bi,20,"#hasLegend",$O,ll,vk),AO=bk.get,_O=bk.set,T(Bi,vr),v(vr,"tagName","dui-fieldset"),v(vr,"styles",[w,xP]);var yP=k`
3989
+ `}};Bi=A(SO),vk=new WeakMap,bk=new WeakMap,ll=new WeakSet,Zm=new WeakMap,c(Bi,4,"disabled",TO,vr,vk),xk=c(Bi,20,"#hasLegend",$O,ll,bk),AO=xk.get,_O=xk.set,T(Bi,vr),v(vr,"tagName","dui-fieldset"),v(vr,"styles",[w,xP]);var yP=k`
3990
3990
  [part="root"] {
3991
3991
  display: flex;
3992
3992
  flex-direction: column;
@@ -4019,7 +4019,7 @@ label, legend, caption, figcaption, th, td {
4019
4019
  width: 100%;
4020
4020
  height: 100%;
4021
4021
  }
4022
- `,up=class extends x{static tagName="dui-icon";static styles=[w,wP];render(){return f`<slot></slot>`}};var cl=class extends up{};customElements.define(cl.tagName,cl);var mp=i=>i??L;var Lk=M("input-change",{bubbles:!0,composed:!0}),kP=b`
4022
+ `,up=class extends x{static tagName="dui-icon";static styles=[w,wP];render(){return f`<slot></slot>`}};var cl=class extends up{};customElements.define(cl.tagName,cl);var mp=i=>i??L;var zk=M("input-change",{bubbles:!0,composed:!0}),kP=b`
4023
4023
  :host {
4024
4024
  display: block;
4025
4025
  }
@@ -4033,7 +4033,7 @@ label, legend, caption, figcaption, th, td {
4033
4033
  [part="input"]:disabled {
4034
4034
  cursor: not-allowed;
4035
4035
  }
4036
- `,RO,IO,LO,zO,OO,MO,NO,DO,HO,BO,FO,VO,PO,pl,st,xk,yk,wk,kk,Ek,Ck,$k,Tk,Sk,Ak,_k,Rk,ef,cs,Ik,tf,Pt=class extends(PO=x,VO=[u({type:String})],FO=[u({type:String})],BO=[u({type:String})],HO=[u({type:Boolean,reflect:!0})],DO=[u({type:Boolean})],NO=[u({type:Boolean})],MO=[u({type:Number,attribute:"minlength"})],OO=[u({type:Number,attribute:"maxlength"})],zO=[u({type:String})],LO=[u({type:String})],IO=[u({type:String})],RO=[u({type:Boolean})],PO){constructor(){super();a(this,cs);a(this,pl);a(this,xk,n(st,8,this,"text")),n(st,11,this);a(this,yk,n(st,12,this,"")),n(st,15,this);a(this,wk,n(st,16,this,"")),n(st,19,this);a(this,kk,n(st,20,this,!1)),n(st,23,this);a(this,Ek,n(st,24,this,!1)),n(st,27,this);a(this,Ck,n(st,28,this,!1)),n(st,31,this);a(this,$k,n(st,32,this)),n(st,35,this);a(this,Tk,n(st,36,this)),n(st,39,this);a(this,Sk,n(st,40,this)),n(st,43,this);a(this,Ak,n(st,44,this,"")),n(st,47,this);a(this,_k,n(st,48,this)),n(st,51,this);a(this,Rk,n(st,52,this,!1)),n(st,55,this);a(this,ef,t=>{let e=t.target;this.value=e.value,p(this,cs,Ik).call(this),p(this,cs,tf).call(this),this.dispatchEvent(Lk({value:this.value}))});h(this,pl,this.attachInternals())}firstUpdated(){p(this,cs,tf).call(this),this.autofocus&&this.focus()}updated(){p(this,cs,tf).call(this)}willUpdate(){p(this,cs,Ik).call(this)}render(){return f`
4036
+ `,RO,IO,LO,zO,OO,MO,NO,DO,HO,BO,FO,VO,PO,pl,st,yk,wk,kk,Ek,Ck,$k,Tk,Sk,Ak,_k,Rk,Ik,ef,cs,Lk,tf,Pt=class extends(PO=x,VO=[u({type:String})],FO=[u({type:String})],BO=[u({type:String})],HO=[u({type:Boolean,reflect:!0})],DO=[u({type:Boolean})],NO=[u({type:Boolean})],MO=[u({type:Number,attribute:"minlength"})],OO=[u({type:Number,attribute:"maxlength"})],zO=[u({type:String})],LO=[u({type:String})],IO=[u({type:String})],RO=[u({type:Boolean})],PO){constructor(){super();a(this,cs);a(this,pl);a(this,yk,n(st,8,this,"text")),n(st,11,this);a(this,wk,n(st,12,this,"")),n(st,15,this);a(this,kk,n(st,16,this,"")),n(st,19,this);a(this,Ek,n(st,20,this,!1)),n(st,23,this);a(this,Ck,n(st,24,this,!1)),n(st,27,this);a(this,$k,n(st,28,this,!1)),n(st,31,this);a(this,Tk,n(st,32,this)),n(st,35,this);a(this,Sk,n(st,36,this)),n(st,39,this);a(this,Ak,n(st,40,this)),n(st,43,this);a(this,_k,n(st,44,this,"")),n(st,47,this);a(this,Rk,n(st,48,this)),n(st,51,this);a(this,Ik,n(st,52,this,!1)),n(st,55,this);a(this,ef,t=>{let e=t.target;this.value=e.value,p(this,cs,Lk).call(this),p(this,cs,tf).call(this),this.dispatchEvent(zk({value:this.value}))});h(this,pl,this.attachInternals())}firstUpdated(){p(this,cs,tf).call(this),this.autofocus&&this.focus()}updated(){p(this,cs,tf).call(this)}willUpdate(){p(this,cs,Lk).call(this)}render(){return f`
4037
4037
  <input
4038
4038
  part="input"
4039
4039
  type="${this.type}"
@@ -4049,7 +4049,7 @@ label, legend, caption, figcaption, th, td {
4049
4049
  autocomplete="${mp(this.autocomplete)}"
4050
4050
  @input="${o(this,ef)}"
4051
4051
  />
4052
- `}};st=A(PO),pl=new WeakMap,xk=new WeakMap,yk=new WeakMap,wk=new WeakMap,kk=new WeakMap,Ek=new WeakMap,Ck=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,_k=new WeakMap,Rk=new WeakMap,ef=new WeakMap,cs=new WeakSet,Ik=function(){o(this,pl).setFormValue(this.value)},tf=function(){let t=this.shadowRoot?.querySelector("input");t&&o(this,pl).setValidity(t.validity,t.validationMessage,t)},c(st,4,"type",VO,Pt,xk),c(st,4,"value",FO,Pt,yk),c(st,4,"placeholder",BO,Pt,wk),c(st,4,"disabled",HO,Pt,kk),c(st,4,"required",DO,Pt,Ek),c(st,4,"readonly",NO,Pt,Ck),c(st,4,"minLength",MO,Pt,$k),c(st,4,"maxLength",OO,Pt,Tk),c(st,4,"pattern",zO,Pt,Sk),c(st,4,"name",LO,Pt,Ak),c(st,4,"autocomplete",IO,Pt,_k),c(st,4,"autofocus",RO,Pt,Rk),T(st,Pt),v(Pt,"tagName","dui-input"),v(Pt,"formAssociated",!0),v(Pt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Pt,"styles",[w,kP]);var EP=k`
4052
+ `}};st=A(PO),pl=new WeakMap,yk=new WeakMap,wk=new WeakMap,kk=new WeakMap,Ek=new WeakMap,Ck=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,_k=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,ef=new WeakMap,cs=new WeakSet,Lk=function(){o(this,pl).setFormValue(this.value)},tf=function(){let t=this.shadowRoot?.querySelector("input");t&&o(this,pl).setValidity(t.validity,t.validationMessage,t)},c(st,4,"type",VO,Pt,yk),c(st,4,"value",FO,Pt,wk),c(st,4,"placeholder",BO,Pt,kk),c(st,4,"disabled",HO,Pt,Ek),c(st,4,"required",DO,Pt,Ck),c(st,4,"readonly",NO,Pt,$k),c(st,4,"minLength",MO,Pt,Tk),c(st,4,"maxLength",OO,Pt,Sk),c(st,4,"pattern",zO,Pt,Ak),c(st,4,"name",LO,Pt,_k),c(st,4,"autocomplete",IO,Pt,Rk),c(st,4,"autofocus",RO,Pt,Ik),T(st,Pt),v(Pt,"tagName","dui-input"),v(Pt,"formAssociated",!0),v(Pt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Pt,"styles",[w,kP]);var EP=k`
4053
4053
  [part="input"] {
4054
4054
  padding: var(--space-2);
4055
4055
  font-family: var(--font-sans);
@@ -4120,11 +4120,11 @@ label, legend, caption, figcaption, th, td {
4120
4120
  align-items: center;
4121
4121
  cursor: pointer;
4122
4122
  }
4123
- `,UO,qO,of,zk,Xe=class extends(qO=x,UO=[u({type:Boolean,reflect:!0})],qO){constructor(){super(...arguments);a(this,zk,n(of,8,this,!1)),n(of,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
4123
+ `,UO,qO,of,Ok,Xe=class extends(qO=x,UO=[u({type:Boolean,reflect:!0})],qO){constructor(){super(...arguments);a(this,Ok,n(of,8,this,!1)),n(of,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
4124
4124
  <div class="Item" part="root" aria-disabled="${this.disabled}">
4125
4125
  <slot></slot>
4126
4126
  </div>
4127
- `}};of=A(qO),zk=new WeakMap,c(of,4,"disabled",UO,Xe,zk),T(of,Xe),v(Xe,"tagName","dui-menu-item"),v(Xe,"styles",[w,CP,$P]);var TP=b`
4127
+ `}};of=A(qO),Ok=new WeakMap,c(of,4,"disabled",UO,Xe,Ok),T(of,Xe),v(Xe,"tagName","dui-menu-item"),v(Xe,"styles",[w,CP,$P]);var TP=b`
4128
4128
  :host {
4129
4129
  display: block;
4130
4130
  }
@@ -4148,7 +4148,7 @@ label, legend, caption, figcaption, th, td {
4148
4148
  .Popup[data-ending-style] {
4149
4149
  opacity: 0;
4150
4150
  }
4151
- `],jO,KO,WO,Fi,Ok,Mk,Nk,Vi,Ds,Yt,ul,Ut,fp,Dk,YO,rf,sf,nf,af,br=class extends(WO=x,KO=[u({attribute:"popup-min-width"})],jO=[C()],WO){constructor(){super(...arguments);a(this,Yt);a(this,Ok,n(Fi,8,this,"var(--space-28)")),n(Fi,11,this);a(this,Mk,n(Fi,12,this,-1)),n(Fi,15,this);a(this,ul,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);a(this,Ut,new Te(this,{getAnchor:()=>o(this,ul).call(this)??this,matchWidth:!1,styles:AP,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{h(this,Yt,-1,Ds),o(this,ul).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Yt,-1,Ds),o(this,ul).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
4151
+ `],jO,KO,WO,Fi,Mk,Nk,Dk,Vi,Ds,Yt,ul,Ut,fp,Hk,YO,rf,sf,nf,af,br=class extends(WO=x,KO=[u({attribute:"popup-min-width"})],jO=[C()],WO){constructor(){super(...arguments);a(this,Yt);a(this,Mk,n(Fi,8,this,"var(--space-28)")),n(Fi,11,this);a(this,Nk,n(Fi,12,this,-1)),n(Fi,15,this);a(this,ul,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);a(this,Ut,new Te(this,{getAnchor:()=>o(this,ul).call(this)??this,matchWidth:!1,styles:AP,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{h(this,Yt,-1,Ds),o(this,ul).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Yt,-1,Ds),o(this,ul).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
4152
4152
  <div
4153
4153
  class="Popup"
4154
4154
  style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
@@ -4163,7 +4163,7 @@ label, legend, caption, figcaption, th, td {
4163
4163
  @mousemove="${o(this,af)}"
4164
4164
  ></div>
4165
4165
  </div>
4166
- `}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,YO).call(this)});a(this,sf,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Ut).close()});a(this,nf,t=>{let e=o(this,Yt,Dk);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Yt,s,Ds)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Yt,s,Ds)}break}case"Home":if(o(this,Ut).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Yt,s,Ds)}break;case"End":if(o(this,Ut).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Yt,s,Ds);break}}break;case"Enter":case" ":{if(o(this,Ut).isOpen&&o(this,Yt,Vi)>=0){t.preventDefault();let s=e[o(this,Yt,Vi)];s&&!s.disabled&&(s.click(),o(this,Ut).close())}else o(this,Ut).isOpen||(t.preventDefault(),o(this,Ut).open());break}case"Escape":o(this,Ut).isOpen&&(t.preventDefault(),o(this,Ut).close());break;case"Tab":o(this,Ut).isOpen&&o(this,Ut).close();break}});a(this,af,()=>{o(this,Yt,Vi)>=0&&h(this,Yt,-1,Ds)})}updated(){let t=o(this,Yt,Dk);for(let e=0;e<t.length;e++)e===o(this,Yt,Vi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
4166
+ `}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,YO).call(this)});a(this,sf,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Ut).close()});a(this,nf,t=>{let e=o(this,Yt,Hk);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Yt,s,Ds)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Yt,s,Ds)}break}case"Home":if(o(this,Ut).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Yt,s,Ds)}break;case"End":if(o(this,Ut).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Yt,s,Ds);break}}break;case"Enter":case" ":{if(o(this,Ut).isOpen&&o(this,Yt,Vi)>=0){t.preventDefault();let s=e[o(this,Yt,Vi)];s&&!s.disabled&&(s.click(),o(this,Ut).close())}else o(this,Ut).isOpen||(t.preventDefault(),o(this,Ut).open());break}case"Escape":o(this,Ut).isOpen&&(t.preventDefault(),o(this,Ut).close());break;case"Tab":o(this,Ut).isOpen&&o(this,Ut).close();break}});a(this,af,()=>{o(this,Yt,Vi)>=0&&h(this,Yt,-1,Ds)})}updated(){let t=o(this,Yt,Hk);for(let e=0;e<t.length;e++)e===o(this,Yt,Vi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
4167
4167
  <div
4168
4168
  class="Trigger"
4169
4169
  aria-haspopup="menu"
@@ -4174,7 +4174,7 @@ label, legend, caption, figcaption, th, td {
4174
4174
  >
4175
4175
  <slot name="trigger"></slot>
4176
4176
  </div>
4177
- `}};Fi=A(WO),Ok=new WeakMap,Mk=new WeakMap,Yt=new WeakSet,ul=new WeakMap,Ut=new WeakMap,fp=new WeakMap,Dk=function(){return[...(o(this,Ut).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},YO=function(){o(this,Ut).isOpen?o(this,Ut).close():o(this,Ut).open()},rf=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,c(Fi,4,"popupMinWidth",KO,br,Ok),Nk=c(Fi,20,"#highlightedIndex",jO,Yt,Mk),Vi=Nk.get,Ds=Nk.set,T(Fi,br),v(br,"tagName","dui-menu"),v(br,"styles",[w,TP,SP]);var _P=k`
4177
+ `}};Fi=A(WO),Mk=new WeakMap,Nk=new WeakMap,Yt=new WeakSet,ul=new WeakMap,Ut=new WeakMap,fp=new WeakMap,Hk=function(){return[...(o(this,Ut).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},YO=function(){o(this,Ut).isOpen?o(this,Ut).close():o(this,Ut).open()},rf=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,c(Fi,4,"popupMinWidth",KO,br,Mk),Dk=c(Fi,20,"#highlightedIndex",jO,Yt,Nk),Vi=Dk.get,Ds=Dk.set,T(Fi,br),v(br,"tagName","dui-menu"),v(br,"styles",[w,TP,SP]);var _P=k`
4178
4178
  .Popup {
4179
4179
  background: var(--surface-3);
4180
4180
  border: var(--border-width-thin) solid var(--border);
@@ -4247,7 +4247,7 @@ label, legend, caption, figcaption, th, td {
4247
4247
  flex-direction: column;
4248
4248
  align-items: stretch;
4249
4249
  }
4250
- `,XO,JO,QO,ZO,tM,uo,Hk,Bk,Fk,Vk,Uk,lf,Je,eM,df,cf,gl,Pk,qk,pf,Ro=class extends(tM=x,ZO=[u({type:Boolean})],QO=[u({reflect:!0})],JO=[C()],XO=[lt({context:GO}),C()],tM){constructor(){super(...arguments);a(this,Je);a(this,Hk,n(uo,8,this,!0)),n(uo,11,this);a(this,Bk,n(uo,12,this,"horizontal")),n(uo,15,this);a(this,Fk,n(uo,16,this,null)),n(uo,19,this);a(this,df,t=>{h(this,Je,t,lf)});a(this,cf,()=>{h(this,Je,null,lf)});a(this,gl,t=>{let e=p(this,Je,eM).call(this);if(e.length===0)return;let s=e.findIndex(E=>E.getAttribute("data-menubar-id")===o(this,Je,Uk)),l;t==="next"?(l=s+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=s-1,l<0&&(l=this.loop?e.length-1:0));let d=e[l];if(!d)return;let m=d.getAttribute("data-menubar-id");m&&h(this,Je,m,lf),d.querySelector('[slot="trigger"]')?.focus()});a(this,Pk,n(uo,20,this,p(this,Je,qk).call(this))),n(uo,23,this);a(this,pf,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===s?(t.preventDefault(),o(this,gl).call(this,"next")):t.key===l&&(t.preventDefault(),o(this,gl).call(this,"prev"))})}willUpdate(){this._ctx=p(this,Je,qk).call(this)}render(){return f`
4250
+ `,XO,JO,QO,ZO,tM,uo,Bk,Fk,Vk,Pk,qk,lf,Je,eM,df,cf,gl,Uk,jk,pf,Ro=class extends(tM=x,ZO=[u({type:Boolean})],QO=[u({reflect:!0})],JO=[C()],XO=[lt({context:GO}),C()],tM){constructor(){super(...arguments);a(this,Je);a(this,Bk,n(uo,8,this,!0)),n(uo,11,this);a(this,Fk,n(uo,12,this,"horizontal")),n(uo,15,this);a(this,Vk,n(uo,16,this,null)),n(uo,19,this);a(this,df,t=>{h(this,Je,t,lf)});a(this,cf,()=>{h(this,Je,null,lf)});a(this,gl,t=>{let e=p(this,Je,eM).call(this);if(e.length===0)return;let s=e.findIndex(E=>E.getAttribute("data-menubar-id")===o(this,Je,qk)),l;t==="next"?(l=s+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=s-1,l<0&&(l=this.loop?e.length-1:0));let d=e[l];if(!d)return;let m=d.getAttribute("data-menubar-id");m&&h(this,Je,m,lf),d.querySelector('[slot="trigger"]')?.focus()});a(this,Uk,n(uo,20,this,p(this,Je,jk).call(this))),n(uo,23,this);a(this,pf,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===s?(t.preventDefault(),o(this,gl).call(this,"next")):t.key===l&&(t.preventDefault(),o(this,gl).call(this,"prev"))})}willUpdate(){this._ctx=p(this,Je,jk).call(this)}render(){return f`
4251
4251
  <div
4252
4252
  part="root"
4253
4253
  role="menubar"
@@ -4256,7 +4256,7 @@ label, legend, caption, figcaption, th, td {
4256
4256
  >
4257
4257
  <slot></slot>
4258
4258
  </div>
4259
- `}};uo=A(tM),Hk=new WeakMap,Bk=new WeakMap,Fk=new WeakMap,Je=new WeakSet,eM=function(){return[...this.querySelectorAll("dui-menu")]},df=new WeakMap,cf=new WeakMap,gl=new WeakMap,Pk=new WeakMap,qk=function(){return{activeMenuId:o(this,Je,Uk),openMenu:o(this,df),closeAll:o(this,cf),navigateToMenu:o(this,gl)}},pf=new WeakMap,c(uo,4,"loop",ZO,Ro,Hk),c(uo,4,"orientation",QO,Ro,Bk),Vk=c(uo,20,"#activeMenuId",JO,Je,Fk),Uk=Vk.get,lf=Vk.set,c(uo,4,"_ctx",XO,Ro,Pk),T(uo,Ro),v(Ro,"tagName","dui-menubar"),v(Ro,"styles",[w,IP]);var LP=k`
4259
+ `}};uo=A(tM),Bk=new WeakMap,Fk=new WeakMap,Vk=new WeakMap,Je=new WeakSet,eM=function(){return[...this.querySelectorAll("dui-menu")]},df=new WeakMap,cf=new WeakMap,gl=new WeakMap,Uk=new WeakMap,jk=function(){return{activeMenuId:o(this,Je,qk),openMenu:o(this,df),closeAll:o(this,cf),navigateToMenu:o(this,gl)}},pf=new WeakMap,c(uo,4,"loop",ZO,Ro,Bk),c(uo,4,"orientation",QO,Ro,Fk),Pk=c(uo,20,"#activeMenuId",JO,Je,Vk),qk=Pk.get,lf=Pk.set,c(uo,4,"_ctx",XO,Ro,Uk),T(uo,Ro),v(Ro,"tagName","dui-menubar"),v(Ro,"styles",[w,IP]);var LP=k`
4260
4260
  [part="root"] {
4261
4261
  gap: var(--space-1);
4262
4262
  border: var(--border-width-thin) solid var(--border);
@@ -4264,7 +4264,7 @@ label, legend, caption, figcaption, th, td {
4264
4264
  background: var(--background);
4265
4265
  padding: var(--space-1);
4266
4266
  }
4267
- `,vl=class extends Ro{static styles=[...Ro.styles,LP]};customElements.define(vl.tagName,vl);var _E=M("value-change",{bubbles:!0,composed:!0}),mf=M("value-committed",{bubbles:!0,composed:!0}),zP=b`
4267
+ `,vl=class extends Ro{static styles=[...Ro.styles,LP]};customElements.define(vl.tagName,vl);var RE=M("value-change",{bubbles:!0,composed:!0}),mf=M("value-committed",{bubbles:!0,composed:!0}),zP=b`
4268
4268
  :host {
4269
4269
  display: block;
4270
4270
  }
@@ -4330,7 +4330,7 @@ label, legend, caption, figcaption, th, td {
4330
4330
  pointer-events: none;
4331
4331
  }
4332
4332
 
4333
- `,OP=3,oM,rM,sM,iM,nM,aM,lM,dM,cM,pM,hM,uM,mM,fM,gM,vM,bM,xM,yM,wM,kM,EM,CM,$M,TM,SM,gp,N,jk,Kk,Wk,Yk,Gk,Xk,Jk,Qk,Zk,tE,eE,oE,rE,sE,iE,nE,aE,lE,dE,cE,pE,hE,uE,AM,yE,I,mE,fE,wE,kE,gE,vE,_M,EE,bE,xE,CE,bl,vp,bp,Wi,Yi,xp,xr,RM,IM,Pi,$E,TE,Ui,LM,zM,hf,qi,SE,ji,xl,yl,AE,uf,Ki,yp,Gi,ff,gf,vf,bf,xf,yf,wf,mt=class extends(SM=x,TM=[u({type:Number})],$M=[u({type:Number,attribute:"default-value"})],CM=[u({type:Number})],EM=[u({type:Number})],kM=[u({type:Number})],wM=[u({type:Number,attribute:"large-step"})],yM=[u({type:Boolean,reflect:!0})],xM=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bM=[u({type:Boolean})],vM=[u()],gM=[u({reflect:!0})],fM=[u({reflect:!0,attribute:"label-position"})],mM=[u({reflect:!0,attribute:"icon-position"})],uM=[u({reflect:!0})],hM=[u({type:Number})],pM=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],cM=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],dM=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],lM=[u({type:Boolean,reflect:!0,attribute:"click-label"})],aM=[u({type:Boolean,reflect:!0,attribute:"click-value"})],nM=[u({type:Boolean,reflect:!0,attribute:"click-field"})],iM=[C()],sM=[C()],rM=[C()],oM=[C()],SM){constructor(){super();a(this,I);a(this,gp);a(this,jk,n(N,8,this)),n(N,11,this);a(this,Kk,n(N,12,this)),n(N,15,this);a(this,Wk,n(N,16,this)),n(N,19,this);a(this,Yk,n(N,20,this)),n(N,23,this);a(this,Gk,n(N,24,this,1)),n(N,27,this);a(this,Xk,n(N,28,this,10)),n(N,31,this);a(this,Jk,n(N,32,this,!1)),n(N,35,this);a(this,Qk,n(N,36,this,!1)),n(N,39,this);a(this,Zk,n(N,40,this,!1)),n(N,43,this);a(this,tE,n(N,44,this)),n(N,47,this);a(this,eE,n(N,48,this,"")),n(N,51,this);a(this,oE,n(N,52,this,"")),n(N,55,this);a(this,rE,n(N,56,this,"")),n(N,59,this);a(this,sE,n(N,60,this,"")),n(N,63,this);a(this,iE,n(N,64,this)),n(N,67,this);a(this,nE,n(N,68,this,!1)),n(N,71,this);a(this,aE,n(N,72,this,!1)),n(N,75,this);a(this,lE,n(N,76,this,!1)),n(N,79,this);a(this,dE,n(N,80,this,!1)),n(N,83,this);a(this,cE,n(N,84,this,!1)),n(N,87,this);a(this,pE,n(N,88,this,!1)),n(N,91,this);a(this,hE,n(N,92,this)),n(N,95,this);a(this,mE,n(N,96,this,"")),n(N,99,this);a(this,gE,n(N,100,this,!1)),n(N,103,this);a(this,bE,n(N,104,this,!1)),n(N,107,this);a(this,vp,0);a(this,bp,0);a(this,Wi,!1);a(this,Yi,null);a(this,xp,!1);a(this,xl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.min??0;p(this,I,ji).call(this,e+t)});a(this,yl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.max??0;p(this,I,ji).call(this,e-t)});a(this,yp,t=>{if(t.pointerId!==o(this,Yi))return;let e=t.clientX-o(this,vp);if(!o(this,Wi)){if(Math.abs(e)<OP)return;h(this,Wi,!0),h(this,I,!0,EE)}let s=this.step;t.shiftKey?s=this.step*.1:(t.ctrlKey||t.metaKey)&&(s=this.largeStep);let l=o(this,bp)+e*s;p(this,I,ji).call(this,l)});a(this,Gi,t=>{if(t.pointerId===o(this,Yi)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",o(this,yp)),this.removeEventListener("pointerup",o(this,Gi)),this.removeEventListener("pointercancel",o(this,Gi)),o(this,Wi)){h(this,I,!1,EE);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))}else o(this,xp)&&p(this,I,uf).call(this);h(this,Yi,null)}});a(this,ff,t=>{if(t.button!==0)return;let e=o(this,I,$E)||o(this,I,Ui),s=o(this,I,LM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,gf,t=>{if(t.button!==0)return;let e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,zM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&h(this,I,!0,bl)});a(this,vf,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let s=o(this,I,Ui),l=o(this,I,hf);s&&l?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):s?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):l&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,bf,t=>{h(this,I,t.target.value,kE)});a(this,xf,()=>{o(this,I,CE)&&p(this,I,AE).call(this)});a(this,yf,()=>{h(this,I,!0,bl);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});a(this,wf,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?o(this,xl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,xl).call(this,this.largeStep):o(this,xl).call(this,this.step),p(this,I,qi).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?o(this,yl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,yl).call(this,this.largeStep):o(this,yl).call(this,this.step),p(this,I,qi).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.max));break;case"Enter":p(this,I,AE).call(this);break;case"Escape":{h(this,I,!1,bl),p(this,I,qi).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});h(this,gp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,I,p(this,I,SE).call(this,this.defaultValue),yE),p(this,I,qi).call(this)}willUpdate(){o(this,I,CE)||p(this,I,qi).call(this),o(this,gp).setFormValue(o(this,I,xr)!==void 0?String(o(this,I,xr)):null)}render(){let t=o(this,I,xr),e=o(this,I,$E)||o(this,I,Ui),s=o(this,I,TE)||o(this,I,Ui),l=o(this,I,Ui);return f`
4333
+ `,OP=3,oM,rM,sM,iM,nM,aM,lM,dM,cM,pM,hM,uM,mM,fM,gM,vM,bM,xM,yM,wM,kM,EM,CM,$M,TM,SM,gp,N,Kk,Wk,Yk,Gk,Xk,Jk,Qk,Zk,tE,eE,oE,rE,sE,iE,nE,aE,lE,dE,cE,pE,hE,uE,mE,AM,wE,I,fE,gE,kE,EE,vE,bE,_M,CE,xE,yE,$E,bl,vp,bp,Wi,Yi,xp,xr,RM,IM,Pi,TE,SE,Ui,LM,zM,hf,qi,AE,ji,xl,yl,_E,uf,Ki,yp,Gi,ff,gf,vf,bf,xf,yf,wf,mt=class extends(SM=x,TM=[u({type:Number})],$M=[u({type:Number,attribute:"default-value"})],CM=[u({type:Number})],EM=[u({type:Number})],kM=[u({type:Number})],wM=[u({type:Number,attribute:"large-step"})],yM=[u({type:Boolean,reflect:!0})],xM=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bM=[u({type:Boolean})],vM=[u()],gM=[u({reflect:!0})],fM=[u({reflect:!0,attribute:"label-position"})],mM=[u({reflect:!0,attribute:"icon-position"})],uM=[u({reflect:!0})],hM=[u({type:Number})],pM=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],cM=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],dM=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],lM=[u({type:Boolean,reflect:!0,attribute:"click-label"})],aM=[u({type:Boolean,reflect:!0,attribute:"click-value"})],nM=[u({type:Boolean,reflect:!0,attribute:"click-field"})],iM=[C()],sM=[C()],rM=[C()],oM=[C()],SM){constructor(){super();a(this,I);a(this,gp);a(this,Kk,n(N,8,this)),n(N,11,this);a(this,Wk,n(N,12,this)),n(N,15,this);a(this,Yk,n(N,16,this)),n(N,19,this);a(this,Gk,n(N,20,this)),n(N,23,this);a(this,Xk,n(N,24,this,1)),n(N,27,this);a(this,Jk,n(N,28,this,10)),n(N,31,this);a(this,Qk,n(N,32,this,!1)),n(N,35,this);a(this,Zk,n(N,36,this,!1)),n(N,39,this);a(this,tE,n(N,40,this,!1)),n(N,43,this);a(this,eE,n(N,44,this)),n(N,47,this);a(this,oE,n(N,48,this,"")),n(N,51,this);a(this,rE,n(N,52,this,"")),n(N,55,this);a(this,sE,n(N,56,this,"")),n(N,59,this);a(this,iE,n(N,60,this,"")),n(N,63,this);a(this,nE,n(N,64,this)),n(N,67,this);a(this,aE,n(N,68,this,!1)),n(N,71,this);a(this,lE,n(N,72,this,!1)),n(N,75,this);a(this,dE,n(N,76,this,!1)),n(N,79,this);a(this,cE,n(N,80,this,!1)),n(N,83,this);a(this,pE,n(N,84,this,!1)),n(N,87,this);a(this,hE,n(N,88,this,!1)),n(N,91,this);a(this,uE,n(N,92,this)),n(N,95,this);a(this,fE,n(N,96,this,"")),n(N,99,this);a(this,vE,n(N,100,this,!1)),n(N,103,this);a(this,xE,n(N,104,this,!1)),n(N,107,this);a(this,vp,0);a(this,bp,0);a(this,Wi,!1);a(this,Yi,null);a(this,xp,!1);a(this,xl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.min??0;p(this,I,ji).call(this,e+t)});a(this,yl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,xr)??this.max??0;p(this,I,ji).call(this,e-t)});a(this,yp,t=>{if(t.pointerId!==o(this,Yi))return;let e=t.clientX-o(this,vp);if(!o(this,Wi)){if(Math.abs(e)<OP)return;h(this,Wi,!0),h(this,I,!0,CE)}let s=this.step;t.shiftKey?s=this.step*.1:(t.ctrlKey||t.metaKey)&&(s=this.largeStep);let l=o(this,bp)+e*s;p(this,I,ji).call(this,l)});a(this,Gi,t=>{if(t.pointerId===o(this,Yi)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",o(this,yp)),this.removeEventListener("pointerup",o(this,Gi)),this.removeEventListener("pointercancel",o(this,Gi)),o(this,Wi)){h(this,I,!1,CE);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))}else o(this,xp)&&p(this,I,uf).call(this);h(this,Yi,null)}});a(this,ff,t=>{if(t.button!==0)return;let e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,LM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,gf,t=>{if(t.button!==0)return;let e=o(this,I,SE)||o(this,I,Ui),s=o(this,I,zM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&h(this,I,!0,bl)});a(this,vf,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let s=o(this,I,Ui),l=o(this,I,hf);s&&l?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):s?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):l&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,bf,t=>{h(this,I,t.target.value,EE)});a(this,xf,()=>{o(this,I,$E)&&p(this,I,_E).call(this)});a(this,yf,()=>{h(this,I,!0,bl);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});a(this,wf,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?o(this,xl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,xl).call(this,this.largeStep):o(this,xl).call(this,this.step),p(this,I,qi).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?o(this,yl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,yl).call(this,this.largeStep):o(this,yl).call(this,this.step),p(this,I,qi).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.max));break;case"Enter":p(this,I,_E).call(this);break;case"Escape":{h(this,I,!1,bl),p(this,I,qi).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});h(this,gp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,I,p(this,I,AE).call(this,this.defaultValue),wE),p(this,I,qi).call(this)}willUpdate(){o(this,I,$E)||p(this,I,qi).call(this),o(this,gp).setFormValue(o(this,I,xr)!==void 0?String(o(this,I,xr)):null)}render(){let t=o(this,I,xr),e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,SE)||o(this,I,Ui),l=o(this,I,Ui);return f`
4334
4334
  <span
4335
4335
  part="label"
4336
4336
  ?data-scrub="${e}"
@@ -4354,7 +4354,7 @@ label, legend, caption, figcaption, th, td {
4354
4354
  type="text"
4355
4355
  inputmode="decimal"
4356
4356
  ?data-scrub="${s}"
4357
- .value="${dr(o(this,I,wE))}"
4357
+ .value="${dr(o(this,I,kE))}"
4358
4358
  ?disabled="${this.disabled}"
4359
4359
  ?readonly="${this.readOnly}"
4360
4360
  ?required="${this.required}"
@@ -4372,7 +4372,7 @@ label, legend, caption, figcaption, th, td {
4372
4372
  <span part="unit">${this.unit}</span>
4373
4373
 
4374
4374
  </div>
4375
- `}};N=A(SM),gp=new WeakMap,jk=new WeakMap,Kk=new WeakMap,Wk=new WeakMap,Yk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,oE=new WeakMap,rE=new WeakMap,sE=new WeakMap,iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,I=new WeakSet,mE=new WeakMap,gE=new WeakMap,bE=new WeakMap,vp=new WeakMap,bp=new WeakMap,Wi=new WeakMap,Yi=new WeakMap,xp=new WeakMap,xr=function(){return this.value??o(this,I,AM)},RM=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},IM=function(){let t=o(this,I,xr);if(t===void 0)return"";let e=this.precision??o(this,I,RM);return t.toFixed(e)},Pi=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},$E=function(){return o(this,I,Pi)?this.scrubLabel:this.label!==""},TE=function(){return o(this,I,Pi)?this.scrubValue:!1},Ui=function(){return o(this,I,Pi)?this.scrubField:this.label===""},LM=function(){return o(this,I,Pi)?this.clickLabel:!1},zM=function(){return o(this,I,Pi)?this.clickValue:!0},hf=function(){return o(this,I,Pi)?this.clickField:!1},qi=function(){h(this,I,o(this,I,IM),kE)},SE=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ji=function(t){let e=p(this,I,SE).call(this,t);this.value===void 0&&h(this,I,e,yE),this.dispatchEvent(_E({value:e}))},xl=new WeakMap,yl=new WeakMap,AE=function(){let t=parseFloat(o(this,I,wE));Number.isNaN(t)?p(this,I,qi).call(this):p(this,I,ji).call(this,t),h(this,I,!1,bl);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))},uf=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(h(this,I,!0,bl),t.focus(),t.select())},Ki=function(t,e){this.disabled||this.readOnly||(h(this,Yi,t.pointerId),h(this,vp,t.clientX),h(this,bp,o(this,I,xr)??0),h(this,Wi,!1),h(this,xp,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",o(this,yp)),this.addEventListener("pointerup",o(this,Gi)),this.addEventListener("pointercancel",o(this,Gi)))},yp=new WeakMap,Gi=new WeakMap,ff=new WeakMap,gf=new WeakMap,vf=new WeakMap,bf=new WeakMap,xf=new WeakMap,yf=new WeakMap,wf=new WeakMap,c(N,4,"value",TM,mt,jk),c(N,4,"defaultValue",$M,mt,Kk),c(N,4,"min",CM,mt,Wk),c(N,4,"max",EM,mt,Yk),c(N,4,"step",kM,mt,Gk),c(N,4,"largeStep",wM,mt,Xk),c(N,4,"disabled",yM,mt,Jk),c(N,4,"readOnly",xM,mt,Qk),c(N,4,"required",bM,mt,Zk),c(N,4,"name",vM,mt,tE),c(N,4,"label",gM,mt,eE),c(N,4,"labelPosition",fM,mt,oE),c(N,4,"iconPosition",mM,mt,rE),c(N,4,"unit",uM,mt,sE),c(N,4,"precision",hM,mt,iE),c(N,4,"scrubLabel",pM,mt,nE),c(N,4,"scrubValue",cM,mt,aE),c(N,4,"scrubField",dM,mt,lE),c(N,4,"clickLabel",lM,mt,dE),c(N,4,"clickValue",aM,mt,cE),c(N,4,"clickField",nM,mt,pE),uE=c(N,20,"#internalValue",iM,I,hE),AM=uE.get,yE=uE.set,fE=c(N,20,"#inputText",sM,I,mE),wE=fE.get,kE=fE.set,vE=c(N,20,"#dragging",rM,I,gE),_M=vE.get,EE=vE.set,xE=c(N,20,"#editing",oM,I,bE),CE=xE.get,bl=xE.set,T(N,mt),v(mt,"tagName","dui-number-field"),v(mt,"formAssociated",!0),v(mt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(mt,"styles",[w,zP]);var MP=k`
4375
+ `}};N=A(SM),gp=new WeakMap,Kk=new WeakMap,Wk=new WeakMap,Yk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,oE=new WeakMap,rE=new WeakMap,sE=new WeakMap,iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,uE=new WeakMap,I=new WeakSet,fE=new WeakMap,vE=new WeakMap,xE=new WeakMap,vp=new WeakMap,bp=new WeakMap,Wi=new WeakMap,Yi=new WeakMap,xp=new WeakMap,xr=function(){return this.value??o(this,I,AM)},RM=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},IM=function(){let t=o(this,I,xr);if(t===void 0)return"";let e=this.precision??o(this,I,RM);return t.toFixed(e)},Pi=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},TE=function(){return o(this,I,Pi)?this.scrubLabel:this.label!==""},SE=function(){return o(this,I,Pi)?this.scrubValue:!1},Ui=function(){return o(this,I,Pi)?this.scrubField:this.label===""},LM=function(){return o(this,I,Pi)?this.clickLabel:!1},zM=function(){return o(this,I,Pi)?this.clickValue:!0},hf=function(){return o(this,I,Pi)?this.clickField:!1},qi=function(){h(this,I,o(this,I,IM),EE)},AE=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ji=function(t){let e=p(this,I,AE).call(this,t);this.value===void 0&&h(this,I,e,wE),this.dispatchEvent(RE({value:e}))},xl=new WeakMap,yl=new WeakMap,_E=function(){let t=parseFloat(o(this,I,kE));Number.isNaN(t)?p(this,I,qi).call(this):p(this,I,ji).call(this,t),h(this,I,!1,bl);let e=o(this,I,xr);e!==void 0&&this.dispatchEvent(mf({value:e}))},uf=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(h(this,I,!0,bl),t.focus(),t.select())},Ki=function(t,e){this.disabled||this.readOnly||(h(this,Yi,t.pointerId),h(this,vp,t.clientX),h(this,bp,o(this,I,xr)??0),h(this,Wi,!1),h(this,xp,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",o(this,yp)),this.addEventListener("pointerup",o(this,Gi)),this.addEventListener("pointercancel",o(this,Gi)))},yp=new WeakMap,Gi=new WeakMap,ff=new WeakMap,gf=new WeakMap,vf=new WeakMap,bf=new WeakMap,xf=new WeakMap,yf=new WeakMap,wf=new WeakMap,c(N,4,"value",TM,mt,Kk),c(N,4,"defaultValue",$M,mt,Wk),c(N,4,"min",CM,mt,Yk),c(N,4,"max",EM,mt,Gk),c(N,4,"step",kM,mt,Xk),c(N,4,"largeStep",wM,mt,Jk),c(N,4,"disabled",yM,mt,Qk),c(N,4,"readOnly",xM,mt,Zk),c(N,4,"required",bM,mt,tE),c(N,4,"name",vM,mt,eE),c(N,4,"label",gM,mt,oE),c(N,4,"labelPosition",fM,mt,rE),c(N,4,"iconPosition",mM,mt,sE),c(N,4,"unit",uM,mt,iE),c(N,4,"precision",hM,mt,nE),c(N,4,"scrubLabel",pM,mt,aE),c(N,4,"scrubValue",cM,mt,lE),c(N,4,"scrubField",dM,mt,dE),c(N,4,"clickLabel",lM,mt,cE),c(N,4,"clickValue",aM,mt,pE),c(N,4,"clickField",nM,mt,hE),mE=c(N,20,"#internalValue",iM,I,uE),AM=mE.get,wE=mE.set,gE=c(N,20,"#inputText",sM,I,fE),kE=gE.get,EE=gE.set,bE=c(N,20,"#dragging",rM,I,vE),_M=bE.get,CE=bE.set,yE=c(N,20,"#editing",oM,I,xE),$E=yE.get,bl=yE.set,T(N,mt),v(mt,"tagName","dui-number-field"),v(mt,"formAssociated",!0),v(mt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(mt,"styles",[w,zP]);var MP=k`
4376
4376
  :host {
4377
4377
  --number-field-bg: transparent;
4378
4378
  --number-field-fg: var(--text-1);
@@ -4604,7 +4604,7 @@ label, legend, caption, figcaption, th, td {
4604
4604
  :host {
4605
4605
  display: contents;
4606
4606
  }
4607
- `,OM,MM,NM,DM,HM,BM,FM,VM,Gt,RE,IE,LE,zE,OE,ME,kf,Ef,bt,NE,DE,BE,PM,wp,Tf,Sf,HE,kp,FE,Cf,UM,qM,Qe=class extends(VM=x,FM=[u({type:Boolean,reflect:!0})],BM=[u({type:Boolean,attribute:"default-open"})],HM=[u({reflect:!0})],DM=[u({type:Number,attribute:"side-offset"})],NM=[C()],MM=[C()],OM=[lt({context:Hs}),C()],VM){constructor(){super(...arguments);a(this,bt);a(this,RE,n(Gt,8,this,!1)),n(Gt,11,this);a(this,IE,n(Gt,12,this,!1)),n(Gt,15,this);a(this,LE,n(Gt,16,this,"bottom")),n(Gt,19,this);a(this,zE,n(Gt,20,this,8)),n(Gt,23,this);a(this,OE,n(Gt,24,this,!1)),n(Gt,27,this);a(this,NE,n(Gt,28,this)),n(Gt,31,this);a(this,Tf,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Sf,`popover-popup-${crypto.randomUUID().slice(0,8)}`);a(this,HE,n(Gt,32,this,{open:!1,triggerId:o(this,Tf),popupId:o(this,Sf),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>p(this,bt,FE).call(this),closePopover:()=>p(this,bt,Cf).call(this),togglePopover:()=>p(this,bt,UM).call(this),setTriggerEl:t=>p(this,bt,qM).call(this,t)})),n(Gt,35,this);a(this,kp,t=>{o(this,bt,wp)&&t.key==="Escape"&&(t.preventDefault(),p(this,bt,Cf).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,bt,!0,Ef),document.addEventListener("keydown",o(this,kp))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",o(this,kp))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==o(this,bt,wp)||this._ctx.triggerEl!==o(this,bt,BE))&&(this._ctx={...this._ctx,open:o(this,bt,wp),side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,bt,BE)})}render(){return f`<slot></slot>`}};Gt=A(VM),RE=new WeakMap,IE=new WeakMap,LE=new WeakMap,zE=new WeakMap,OE=new WeakMap,bt=new WeakSet,NE=new WeakMap,wp=function(){return this.open||o(this,bt,kf)},Tf=new WeakMap,Sf=new WeakMap,HE=new WeakMap,kp=new WeakMap,FE=function(){o(this,bt,kf)||(h(this,bt,!0,Ef),this.dispatchEvent($f({open:!0})))},Cf=function(){o(this,bt,kf)&&(h(this,bt,!1,Ef),this.dispatchEvent($f({open:!1})))},UM=function(){o(this,bt,wp)?p(this,bt,Cf).call(this):p(this,bt,FE).call(this)},qM=function(t){h(this,bt,t,PM)},c(Gt,4,"open",FM,Qe,RE),c(Gt,4,"defaultOpen",BM,Qe,IE),c(Gt,4,"side",HM,Qe,LE),c(Gt,4,"sideOffset",DM,Qe,zE),ME=c(Gt,20,"#internalOpen",NM,bt,OE),kf=ME.get,Ef=ME.set,DE=c(Gt,20,"#triggerEl",MM,bt,NE),BE=DE.get,PM=DE.set,c(Gt,4,"_ctx",OM,Qe,HE),T(Gt,Qe),v(Qe,"tagName","dui-popover"),v(Qe,"styles",[w,NP]);var DP=b`
4607
+ `,OM,MM,NM,DM,HM,BM,FM,VM,Gt,IE,LE,zE,OE,ME,NE,kf,Ef,bt,DE,HE,FE,PM,wp,Tf,Sf,BE,kp,VE,Cf,UM,qM,Qe=class extends(VM=x,FM=[u({type:Boolean,reflect:!0})],BM=[u({type:Boolean,attribute:"default-open"})],HM=[u({reflect:!0})],DM=[u({type:Number,attribute:"side-offset"})],NM=[C()],MM=[C()],OM=[lt({context:Hs}),C()],VM){constructor(){super(...arguments);a(this,bt);a(this,IE,n(Gt,8,this,!1)),n(Gt,11,this);a(this,LE,n(Gt,12,this,!1)),n(Gt,15,this);a(this,zE,n(Gt,16,this,"bottom")),n(Gt,19,this);a(this,OE,n(Gt,20,this,8)),n(Gt,23,this);a(this,ME,n(Gt,24,this,!1)),n(Gt,27,this);a(this,DE,n(Gt,28,this)),n(Gt,31,this);a(this,Tf,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Sf,`popover-popup-${crypto.randomUUID().slice(0,8)}`);a(this,BE,n(Gt,32,this,{open:!1,triggerId:o(this,Tf),popupId:o(this,Sf),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>p(this,bt,VE).call(this),closePopover:()=>p(this,bt,Cf).call(this),togglePopover:()=>p(this,bt,UM).call(this),setTriggerEl:t=>p(this,bt,qM).call(this,t)})),n(Gt,35,this);a(this,kp,t=>{o(this,bt,wp)&&t.key==="Escape"&&(t.preventDefault(),p(this,bt,Cf).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,bt,!0,Ef),document.addEventListener("keydown",o(this,kp))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",o(this,kp))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==o(this,bt,wp)||this._ctx.triggerEl!==o(this,bt,FE))&&(this._ctx={...this._ctx,open:o(this,bt,wp),side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,bt,FE)})}render(){return f`<slot></slot>`}};Gt=A(VM),IE=new WeakMap,LE=new WeakMap,zE=new WeakMap,OE=new WeakMap,ME=new WeakMap,bt=new WeakSet,DE=new WeakMap,wp=function(){return this.open||o(this,bt,kf)},Tf=new WeakMap,Sf=new WeakMap,BE=new WeakMap,kp=new WeakMap,VE=function(){o(this,bt,kf)||(h(this,bt,!0,Ef),this.dispatchEvent($f({open:!0})))},Cf=function(){o(this,bt,kf)&&(h(this,bt,!1,Ef),this.dispatchEvent($f({open:!1})))},UM=function(){o(this,bt,wp)?p(this,bt,Cf).call(this):p(this,bt,VE).call(this)},qM=function(t){h(this,bt,t,PM)},c(Gt,4,"open",FM,Qe,IE),c(Gt,4,"defaultOpen",BM,Qe,LE),c(Gt,4,"side",HM,Qe,zE),c(Gt,4,"sideOffset",DM,Qe,OE),NE=c(Gt,20,"#internalOpen",NM,bt,ME),kf=NE.get,Ef=NE.set,HE=c(Gt,20,"#triggerEl",MM,bt,DE),FE=HE.get,PM=HE.set,c(Gt,4,"_ctx",OM,Qe,BE),T(Gt,Qe),v(Qe,"tagName","dui-popover"),v(Qe,"styles",[w,NP]);var DP=b`
4608
4608
  :host {
4609
4609
  display: contents;
4610
4610
  }
@@ -4674,7 +4674,7 @@ label, legend, caption, figcaption, th, td {
4674
4674
  left: 50%;
4675
4675
  transform: translateX(-50%) rotate(180deg);
4676
4676
  }
4677
- `],jM,KM,WM,YM,yr,VE,PE,UE,qE,Af,GM,wr,ps,kl,Bs,_f,XM,Go=class extends(YM=x,WM=[u({type:Boolean,attribute:"show-arrow"})],KM=[u({type:Boolean,attribute:"close-on-click"})],jM=[C()],YM){constructor(){super(...arguments);a(this,wr);a(this,VE,n(yr,8,this,!0)),n(yr,11,this);a(this,PE,n(yr,12,this,!1)),n(yr,15,this);a(this,UE,n(yr,16,this,"bottom")),n(yr,19,this);a(this,ps,new q(this,{context:Hs,subscribe:!0}));a(this,kl,!1);a(this,Bs,new Te(this,{getAnchor:()=>o(this,ps).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:FP,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,wr,Af)&&h(this,wr,e,GM)},renderPopup:t=>{let e=o(this,ps).value?.popupId??"";return f`
4677
+ `],jM,KM,WM,YM,yr,PE,UE,qE,jE,Af,GM,wr,ps,kl,Bs,_f,XM,Go=class extends(YM=x,WM=[u({type:Boolean,attribute:"show-arrow"})],KM=[u({type:Boolean,attribute:"close-on-click"})],jM=[C()],YM){constructor(){super(...arguments);a(this,wr);a(this,PE,n(yr,8,this,!0)),n(yr,11,this);a(this,UE,n(yr,12,this,!1)),n(yr,15,this);a(this,qE,n(yr,16,this,"bottom")),n(yr,19,this);a(this,ps,new q(this,{context:Hs,subscribe:!0}));a(this,kl,!1);a(this,Bs,new Te(this,{getAnchor:()=>o(this,ps).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:FP,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,wr,Af)&&h(this,wr,e,GM)},renderPopup:t=>{let e=o(this,ps).value?.popupId??"";return f`
4678
4678
  <div
4679
4679
  class="Popup"
4680
4680
  id="${e}"
@@ -4687,7 +4687,7 @@ label, legend, caption, figcaption, th, td {
4687
4687
  <div class="Content"></div>
4688
4688
  ${this.showArrow?Ra(o(this,wr,Af)):""}
4689
4689
  </div>
4690
- `}}));a(this,_f,()=>{this.closeOnClick&&o(this,ps).value?.closePopover()})}containsEventTarget(t){let e=o(this,Bs).positionerElement;return e!==null&&t.includes(e)}updated(){let t=o(this,ps).value?.open??!1;t&&!o(this,kl)?(p(this,wr,XM).call(this),o(this,Bs).open()):!t&&o(this,kl)&&o(this,Bs).close(),h(this,kl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};yr=A(YM),VE=new WeakMap,PE=new WeakMap,UE=new WeakMap,wr=new WeakSet,ps=new WeakMap,kl=new WeakMap,Bs=new WeakMap,_f=new WeakMap,XM=function(){let t=o(this,ps).value?.side??"bottom";o(this,Bs).placement=t,o(this,Bs).offset=o(this,ps).value?.sideOffset??8},c(yr,4,"showArrow",WM,Go,VE),c(yr,4,"closeOnClick",KM,Go,PE),qE=c(yr,20,"#side",jM,wr,UE),Af=qE.get,GM=qE.set,T(yr,Go),v(Go,"tagName","dui-popover-popup"),v(Go,"styles",[w,BP]);var VP=b`
4690
+ `}}));a(this,_f,()=>{this.closeOnClick&&o(this,ps).value?.closePopover()})}containsEventTarget(t){let e=o(this,Bs).positionerElement;return e!==null&&t.includes(e)}updated(){let t=o(this,ps).value?.open??!1;t&&!o(this,kl)?(p(this,wr,XM).call(this),o(this,Bs).open()):!t&&o(this,kl)&&o(this,Bs).close(),h(this,kl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};yr=A(YM),PE=new WeakMap,UE=new WeakMap,qE=new WeakMap,wr=new WeakSet,ps=new WeakMap,kl=new WeakMap,Bs=new WeakMap,_f=new WeakMap,XM=function(){let t=o(this,ps).value?.side??"bottom";o(this,Bs).placement=t,o(this,Bs).offset=o(this,ps).value?.sideOffset??8},c(yr,4,"showArrow",WM,Go,PE),c(yr,4,"closeOnClick",KM,Go,UE),jE=c(yr,20,"#side",jM,wr,qE),Af=jE.get,GM=jE.set,T(yr,Go),v(Go,"tagName","dui-popover-popup"),v(Go,"styles",[w,BP]);var VP=b`
4691
4691
  :host {
4692
4692
  display: contents;
4693
4693
  }
@@ -4723,11 +4723,11 @@ label, legend, caption, figcaption, th, td {
4723
4723
  :host {
4724
4724
  display: contents;
4725
4725
  }
4726
- `,JM,QM,ZM,t5,kr,jE,KE,WE,Er,Xi,Fs,Ze,YE,e5,GE,Rf,If,Io=class extends(t5=x,ZM=[u({type:String})],QM=[u({type:String,attribute:"target-root",reflect:!0})],JM=[u({attribute:!1})],t5){constructor(){super(...arguments);a(this,Ze);a(this,jE,n(kr,8,this,"body")),n(kr,11,this);a(this,KE,n(kr,12,this,"document")),n(kr,15,this);a(this,WE,n(kr,16,this)),n(kr,19,this);a(this,Er);a(this,Xi,new Set);a(this,Fs,!1);a(this,If,()=>{o(this,Fs)||!o(this,Er)||p(this,Ze,Rf).call(this)})}connectedCallback(){super.connectedCallback(),h(this,Er,this.targetElement??p(this,Ze,YE).call(this)),o(this,Er)&&this.childNodes.length>0&&p(this,Ze,Rf).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ze,GE).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(p(this,Ze,GE).call(this),p(this,Ze,e5).call(this))}render(){return f`<slot @slotchange=${o(this,If)}></slot>`}};kr=A(t5),jE=new WeakMap,KE=new WeakMap,WE=new WeakMap,Er=new WeakMap,Xi=new WeakMap,Fs=new WeakMap,Ze=new WeakSet,YE=function(){return JR(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},e5=function(){h(this,Er,this.targetElement??p(this,Ze,YE).call(this)),p(this,Ze,Rf).call(this)},GE=function(){if(o(this,Xi).size!==0){h(this,Fs,!0);for(let t of o(this,Xi))this.append(t);o(this,Xi).clear(),h(this,Fs,!1),h(this,Er,void 0)}},Rf=function(){if(!o(this,Er))throw new Error(`Portal target does not exist: ${this.target}`);h(this,Fs,!0);let t=Array.from(this.childNodes);for(let e of t)o(this,Er).appendChild(e),o(this,Xi).add(e);h(this,Fs,!1)},If=new WeakMap,c(kr,4,"target",ZM,Io,jE),c(kr,4,"targetRoot",QM,Io,KE),c(kr,4,"targetElement",JM,Io,WE),T(kr,Io),v(Io,"tagName","dui-portal"),v(Io,"styles",[qP]);var jP=k``,Sl=class extends Io{static styles=[...Io.styles,jP]};customElements.define(Sl.tagName,Sl);var Al=Symbol("dui-preview-card");var Mf=M("open-change",{bubbles:!0,composed:!0}),KP=b`
4726
+ `,JM,QM,ZM,t5,kr,KE,WE,YE,Er,Xi,Fs,Ze,GE,e5,XE,Rf,If,Io=class extends(t5=x,ZM=[u({type:String})],QM=[u({type:String,attribute:"target-root",reflect:!0})],JM=[u({attribute:!1})],t5){constructor(){super(...arguments);a(this,Ze);a(this,KE,n(kr,8,this,"body")),n(kr,11,this);a(this,WE,n(kr,12,this,"document")),n(kr,15,this);a(this,YE,n(kr,16,this)),n(kr,19,this);a(this,Er);a(this,Xi,new Set);a(this,Fs,!1);a(this,If,()=>{o(this,Fs)||!o(this,Er)||p(this,Ze,Rf).call(this)})}connectedCallback(){super.connectedCallback(),h(this,Er,this.targetElement??p(this,Ze,GE).call(this)),o(this,Er)&&this.childNodes.length>0&&p(this,Ze,Rf).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ze,XE).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(p(this,Ze,XE).call(this),p(this,Ze,e5).call(this))}render(){return f`<slot @slotchange=${o(this,If)}></slot>`}};kr=A(t5),KE=new WeakMap,WE=new WeakMap,YE=new WeakMap,Er=new WeakMap,Xi=new WeakMap,Fs=new WeakMap,Ze=new WeakSet,GE=function(){return JR(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},e5=function(){h(this,Er,this.targetElement??p(this,Ze,GE).call(this)),p(this,Ze,Rf).call(this)},XE=function(){if(o(this,Xi).size!==0){h(this,Fs,!0);for(let t of o(this,Xi))this.append(t);o(this,Xi).clear(),h(this,Fs,!1),h(this,Er,void 0)}},Rf=function(){if(!o(this,Er))throw new Error(`Portal target does not exist: ${this.target}`);h(this,Fs,!0);let t=Array.from(this.childNodes);for(let e of t)o(this,Er).appendChild(e),o(this,Xi).add(e);h(this,Fs,!1)},If=new WeakMap,c(kr,4,"target",ZM,Io,KE),c(kr,4,"targetRoot",QM,Io,WE),c(kr,4,"targetElement",JM,Io,YE),T(kr,Io),v(Io,"tagName","dui-portal"),v(Io,"styles",[qP]);var jP=k``,Sl=class extends Io{static styles=[...Io.styles,jP]};customElements.define(Sl.tagName,Sl);var Al=Symbol("dui-preview-card");var Mf=M("open-change",{bubbles:!0,composed:!0}),KP=b`
4727
4727
  :host {
4728
4728
  display: contents;
4729
4729
  }
4730
- `,o5,r5,s5,i5,n5,a5,l5,d5,c5,p5,zt,XE,JE,QE,ZE,tC,eC,oC,rC,Lf,zf,xt,sC,iC,aC,h5,Ji,Qi,Nf,Df,nC,Of,u5,m5,lC,dC,f5,Se=class extends(p5=x,c5=[u({type:Boolean,reflect:!0})],d5=[u({type:Boolean,attribute:"default-open"})],l5=[u({reflect:!0})],a5=[u({type:Number,attribute:"side-offset"})],n5=[u({type:Number})],i5=[u({type:Number,attribute:"close-delay"})],s5=[C()],r5=[C()],o5=[lt({context:Al}),C()],p5){constructor(){super(...arguments);a(this,xt);a(this,XE,n(zt,8,this,!1)),n(zt,11,this);a(this,JE,n(zt,12,this,!1)),n(zt,15,this);a(this,QE,n(zt,16,this,"top")),n(zt,19,this);a(this,ZE,n(zt,20,this,8)),n(zt,23,this);a(this,tC,n(zt,24,this,400)),n(zt,27,this);a(this,eC,n(zt,28,this,300)),n(zt,31,this);a(this,oC,n(zt,32,this,!1)),n(zt,35,this);a(this,sC,n(zt,36,this)),n(zt,39,this);a(this,Ji);a(this,Qi);a(this,Nf,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Df,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);a(this,nC,n(zt,40,this,{open:!1,triggerId:o(this,Nf),popupId:o(this,Df),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>p(this,xt,u5).call(this),closePreviewCard:()=>p(this,xt,m5).call(this),setTriggerEl:t=>p(this,xt,f5).call(this,t)})),n(zt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,xt,!0,zf)}disconnectedCallback(){super.disconnectedCallback(),p(this,xt,Of).call(this)}willUpdate(t){let e=this.open||o(this,xt,Lf);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,xt,aC))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,xt,aC)})}render(){return f`<slot></slot>`}};zt=A(p5),XE=new WeakMap,JE=new WeakMap,QE=new WeakMap,ZE=new WeakMap,tC=new WeakMap,eC=new WeakMap,oC=new WeakMap,xt=new WeakSet,sC=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Nf=new WeakMap,Df=new WeakMap,nC=new WeakMap,Of=function(){o(this,Ji)&&(clearTimeout(o(this,Ji)),h(this,Ji,void 0)),o(this,Qi)&&(clearTimeout(o(this,Qi)),h(this,Qi,void 0))},u5=function(){p(this,xt,Of).call(this),this.delay<=0?p(this,xt,lC).call(this):h(this,Ji,setTimeout(()=>p(this,xt,lC).call(this),this.delay))},m5=function(){p(this,xt,Of).call(this),this.closeDelay<=0?p(this,xt,dC).call(this):h(this,Qi,setTimeout(()=>p(this,xt,dC).call(this),this.closeDelay))},lC=function(){o(this,xt,Lf)||(h(this,xt,!0,zf),this.dispatchEvent(Mf({open:!0})))},dC=function(){o(this,xt,Lf)&&(h(this,xt,!1,zf),this.dispatchEvent(Mf({open:!1})))},f5=function(t){h(this,xt,t,h5)},c(zt,4,"open",c5,Se,XE),c(zt,4,"defaultOpen",d5,Se,JE),c(zt,4,"side",l5,Se,QE),c(zt,4,"sideOffset",a5,Se,ZE),c(zt,4,"delay",n5,Se,tC),c(zt,4,"closeDelay",i5,Se,eC),rC=c(zt,20,"#internalOpen",s5,xt,oC),Lf=rC.get,zf=rC.set,iC=c(zt,20,"#triggerEl",r5,xt,sC),aC=iC.get,h5=iC.set,c(zt,4,"_ctx",o5,Se,nC),T(zt,Se),v(Se,"tagName","dui-preview-card"),v(Se,"styles",[w,KP]);var WP=b`
4730
+ `,o5,r5,s5,i5,n5,a5,l5,d5,c5,p5,zt,JE,QE,ZE,tC,eC,oC,rC,sC,Lf,zf,xt,iC,nC,lC,h5,Ji,Qi,Nf,Df,aC,Of,u5,m5,dC,cC,f5,Se=class extends(p5=x,c5=[u({type:Boolean,reflect:!0})],d5=[u({type:Boolean,attribute:"default-open"})],l5=[u({reflect:!0})],a5=[u({type:Number,attribute:"side-offset"})],n5=[u({type:Number})],i5=[u({type:Number,attribute:"close-delay"})],s5=[C()],r5=[C()],o5=[lt({context:Al}),C()],p5){constructor(){super(...arguments);a(this,xt);a(this,JE,n(zt,8,this,!1)),n(zt,11,this);a(this,QE,n(zt,12,this,!1)),n(zt,15,this);a(this,ZE,n(zt,16,this,"top")),n(zt,19,this);a(this,tC,n(zt,20,this,8)),n(zt,23,this);a(this,eC,n(zt,24,this,400)),n(zt,27,this);a(this,oC,n(zt,28,this,300)),n(zt,31,this);a(this,rC,n(zt,32,this,!1)),n(zt,35,this);a(this,iC,n(zt,36,this)),n(zt,39,this);a(this,Ji);a(this,Qi);a(this,Nf,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Df,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);a(this,aC,n(zt,40,this,{open:!1,triggerId:o(this,Nf),popupId:o(this,Df),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>p(this,xt,u5).call(this),closePreviewCard:()=>p(this,xt,m5).call(this),setTriggerEl:t=>p(this,xt,f5).call(this,t)})),n(zt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,xt,!0,zf)}disconnectedCallback(){super.disconnectedCallback(),p(this,xt,Of).call(this)}willUpdate(t){let e=this.open||o(this,xt,Lf);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,xt,lC))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,xt,lC)})}render(){return f`<slot></slot>`}};zt=A(p5),JE=new WeakMap,QE=new WeakMap,ZE=new WeakMap,tC=new WeakMap,eC=new WeakMap,oC=new WeakMap,rC=new WeakMap,xt=new WeakSet,iC=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Nf=new WeakMap,Df=new WeakMap,aC=new WeakMap,Of=function(){o(this,Ji)&&(clearTimeout(o(this,Ji)),h(this,Ji,void 0)),o(this,Qi)&&(clearTimeout(o(this,Qi)),h(this,Qi,void 0))},u5=function(){p(this,xt,Of).call(this),this.delay<=0?p(this,xt,dC).call(this):h(this,Ji,setTimeout(()=>p(this,xt,dC).call(this),this.delay))},m5=function(){p(this,xt,Of).call(this),this.closeDelay<=0?p(this,xt,cC).call(this):h(this,Qi,setTimeout(()=>p(this,xt,cC).call(this),this.closeDelay))},dC=function(){o(this,xt,Lf)||(h(this,xt,!0,zf),this.dispatchEvent(Mf({open:!0})))},cC=function(){o(this,xt,Lf)&&(h(this,xt,!1,zf),this.dispatchEvent(Mf({open:!1})))},f5=function(t){h(this,xt,t,h5)},c(zt,4,"open",c5,Se,JE),c(zt,4,"defaultOpen",d5,Se,QE),c(zt,4,"side",l5,Se,ZE),c(zt,4,"sideOffset",a5,Se,tC),c(zt,4,"delay",n5,Se,eC),c(zt,4,"closeDelay",i5,Se,oC),sC=c(zt,20,"#internalOpen",s5,xt,rC),Lf=sC.get,zf=sC.set,nC=c(zt,20,"#triggerEl",r5,xt,iC),lC=nC.get,h5=nC.set,c(zt,4,"_ctx",o5,Se,aC),T(zt,Se),v(Se,"tagName","dui-preview-card"),v(Se,"styles",[w,KP]);var WP=b`
4731
4731
  :host {
4732
4732
  display: contents;
4733
4733
  }
@@ -4800,7 +4800,7 @@ label, legend, caption, figcaption, th, td {
4800
4800
  left: 50%;
4801
4801
  transform: translateX(-50%) rotate(180deg);
4802
4802
  }
4803
- `],g5,v5,b5,Zi,cC,pC,hC,Hf,x5,Tr,Cr,_l,tn,Bf,Ff,y5,$r=class extends(b5=x,v5=[u({type:Boolean,attribute:"show-arrow"})],g5=[C()],b5){constructor(){super(...arguments);a(this,Tr);a(this,cC,n(Zi,8,this,!0)),n(Zi,11,this);a(this,pC,n(Zi,12,this,"top")),n(Zi,15,this);a(this,Cr,new q(this,{context:Al,subscribe:!0}));a(this,_l,!1);a(this,tn,new Te(this,{getAnchor:()=>o(this,Cr).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:XP,contentContainer:".PreviewCardContent",forwardProperties:["--preview-card-popup-padding"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Tr,Hf)&&h(this,Tr,e,x5)},renderPopup:t=>{let e=o(this,Cr).value?.popupId??"";return f`
4803
+ `],g5,v5,b5,Zi,pC,hC,uC,Hf,x5,Tr,Cr,_l,tn,Bf,Ff,y5,$r=class extends(b5=x,v5=[u({type:Boolean,attribute:"show-arrow"})],g5=[C()],b5){constructor(){super(...arguments);a(this,Tr);a(this,pC,n(Zi,8,this,!0)),n(Zi,11,this);a(this,hC,n(Zi,12,this,"top")),n(Zi,15,this);a(this,Cr,new q(this,{context:Al,subscribe:!0}));a(this,_l,!1);a(this,tn,new Te(this,{getAnchor:()=>o(this,Cr).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:XP,contentContainer:".PreviewCardContent",forwardProperties:["--preview-card-popup-padding"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Tr,Hf)&&h(this,Tr,e,x5)},renderPopup:t=>{let e=o(this,Cr).value?.popupId??"";return f`
4804
4804
  <div
4805
4805
  class="Popup"
4806
4806
  id="${e}"
@@ -4814,7 +4814,7 @@ label, legend, caption, figcaption, th, td {
4814
4814
  <div class="PreviewCardContent"></div>
4815
4815
  ${this.showArrow?Ra(o(this,Tr,Hf)):""}
4816
4816
  </div>
4817
- `}}));a(this,Bf,()=>{o(this,Cr).value?.openPreviewCard()});a(this,Ff,()=>{o(this,Cr).value?.closePreviewCard()})}updated(){let t=o(this,Cr).value?.open??!1;t&&!o(this,_l)?(p(this,Tr,y5).call(this),o(this,tn).open()):!t&&o(this,_l)&&o(this,tn).close(),h(this,_l,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Zi=A(b5),cC=new WeakMap,pC=new WeakMap,Tr=new WeakSet,Cr=new WeakMap,_l=new WeakMap,tn=new WeakMap,Bf=new WeakMap,Ff=new WeakMap,y5=function(){let t=o(this,Cr).value?.side??"top";o(this,tn).placement=t,o(this,tn).offset=o(this,Cr).value?.sideOffset??8},c(Zi,4,"showArrow",v5,$r,cC),hC=c(Zi,20,"#side",g5,Tr,pC),Hf=hC.get,x5=hC.set,T(Zi,$r),v($r,"tagName","dui-preview-card-popup"),v($r,"styles",[w,GP]);var JP=k``,Rl=class extends Se{static styles=[...Se.styles,JP]};customElements.define(Rl.tagName,Rl);var QP=k`
4817
+ `}}));a(this,Bf,()=>{o(this,Cr).value?.openPreviewCard()});a(this,Ff,()=>{o(this,Cr).value?.closePreviewCard()})}updated(){let t=o(this,Cr).value?.open??!1;t&&!o(this,_l)?(p(this,Tr,y5).call(this),o(this,tn).open()):!t&&o(this,_l)&&o(this,tn).close(),h(this,_l,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Zi=A(b5),pC=new WeakMap,hC=new WeakMap,Tr=new WeakSet,Cr=new WeakMap,_l=new WeakMap,tn=new WeakMap,Bf=new WeakMap,Ff=new WeakMap,y5=function(){let t=o(this,Cr).value?.side??"top";o(this,tn).placement=t,o(this,tn).offset=o(this,Cr).value?.sideOffset??8},c(Zi,4,"showArrow",v5,$r,pC),uC=c(Zi,20,"#side",g5,Tr,hC),Hf=uC.get,x5=uC.set,T(Zi,$r),v($r,"tagName","dui-preview-card-popup"),v($r,"styles",[w,GP]);var JP=k``,Rl=class extends Se{static styles=[...Se.styles,JP]};customElements.define(Rl.tagName,Rl);var QP=k`
4818
4818
  .Popup {
4819
4819
  padding: var(--preview-card-popup-padding, var(--space-4));
4820
4820
  border-radius: var(--radius-md);
@@ -4857,23 +4857,23 @@ label, legend, caption, figcaption, th, td {
4857
4857
  width: var(--progress-value, 0%);
4858
4858
  height: 100%;
4859
4859
  }
4860
- `,w5,k5,E5,C5,Sr,uC,mC,fC,Ar,$5,gC,vC,Lo=class extends(C5=x,E5=[u({type:Number})],k5=[u({type:Number})],w5=[u({type:Number})],C5){constructor(){super(...arguments);a(this,Ar);a(this,uC,n(Sr,8,this,null)),n(Sr,11,this);a(this,mC,n(Sr,12,this,0)),n(Sr,15,this);a(this,fC,n(Sr,16,this,100)),n(Sr,19,this)}render(){let t=o(this,Ar,$5);return f`
4860
+ `,w5,k5,E5,C5,Sr,mC,fC,gC,Ar,$5,vC,bC,Lo=class extends(C5=x,E5=[u({type:Number})],k5=[u({type:Number})],w5=[u({type:Number})],C5){constructor(){super(...arguments);a(this,Ar);a(this,mC,n(Sr,8,this,null)),n(Sr,11,this);a(this,fC,n(Sr,12,this,0)),n(Sr,15,this);a(this,gC,n(Sr,16,this,100)),n(Sr,19,this)}render(){let t=o(this,Ar,$5);return f`
4861
4861
  <div
4862
4862
  part="root"
4863
4863
  role="progressbar"
4864
4864
  aria-valuenow="${this.value??L}"
4865
4865
  aria-valuemin="${this.min}"
4866
4866
  aria-valuemax="${this.max}"
4867
- ?data-complete="${o(this,Ar,vC)}"
4868
- ?data-progressing="${!o(this,Ar,gC)&&!o(this,Ar,vC)}"
4869
- ?data-indeterminate="${o(this,Ar,gC)}"
4867
+ ?data-complete="${o(this,Ar,bC)}"
4868
+ ?data-progressing="${!o(this,Ar,vC)&&!o(this,Ar,bC)}"
4869
+ ?data-indeterminate="${o(this,Ar,vC)}"
4870
4870
  style="--progress-value: ${t}%"
4871
4871
  >
4872
4872
  <div part="track">
4873
4873
  <div part="indicator"></div>
4874
4874
  </div>
4875
4875
  </div>
4876
- `}};Sr=A(C5),uC=new WeakMap,mC=new WeakMap,fC=new WeakMap,Ar=new WeakSet,$5=function(){if(this.value===null)return 0;let t=this.max-this.min;return t<=0?0:Math.max(0,Math.min(100,(this.value-this.min)/t*100))},gC=function(){return this.value===null},vC=function(){return this.value!==null&&this.value>=this.max},c(Sr,4,"value",E5,Lo,uC),c(Sr,4,"min",k5,Lo,mC),c(Sr,4,"max",w5,Lo,fC),T(Sr,Lo),v(Lo,"tagName","dui-progress"),v(Lo,"styles",[w,ZP]);var tU=k`
4876
+ `}};Sr=A(C5),mC=new WeakMap,fC=new WeakMap,gC=new WeakMap,Ar=new WeakSet,$5=function(){if(this.value===null)return 0;let t=this.max-this.min;return t<=0?0:Math.max(0,Math.min(100,(this.value-this.min)/t*100))},vC=function(){return this.value===null},bC=function(){return this.value!==null&&this.value>=this.max},c(Sr,4,"value",E5,Lo,mC),c(Sr,4,"min",k5,Lo,fC),c(Sr,4,"max",w5,Lo,gC),T(Sr,Lo),v(Lo,"tagName","dui-progress"),v(Lo,"styles",[w,ZP]);var tU=k`
4877
4877
  :host {
4878
4878
  --progress-height: var(--space-2);
4879
4879
  }
@@ -4947,7 +4947,7 @@ label, legend, caption, figcaption, th, td {
4947
4947
  display: none;
4948
4948
  }
4949
4949
 
4950
- `,T5,S5,A5,_5,Ol,_r,bC,xC,yC,Vs,De,wC,kC,EC,R5,I5,Tp,Ml,Pf,mo=class extends(_5=x,A5=[u()],S5=[u({type:Boolean,reflect:!0})],T5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],_5){constructor(){super();a(this,De);a(this,Ol);a(this,bC,n(_r,8,this,"")),n(_r,11,this);a(this,xC,n(_r,12,this,!1)),n(_r,15,this);a(this,yC,n(_r,16,this,!1)),n(_r,19,this);a(this,Vs,new q(this,{context:Vf,subscribe:!0}));a(this,Tp,t=>{t.target.closest("[part='root']")||o(this,Ml).call(this,t)});a(this,Ml,t=>{if(o(this,De,kC)||o(this,De,EC))return;let e=o(this,Vs).value;e&&e.select(this.value)});a(this,Pf,t=>{t.key===" "&&(t.preventDefault(),o(this,Ml).call(this,t))});h(this,Ol,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",o(this,Tp))}willUpdate(){p(this,De,I5).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Tp))}render(){let t=o(this,De,wC),e=o(this,De,kC),s=o(this,De,EC),l=o(this,De,R5);return f`
4950
+ `,T5,S5,A5,_5,Ol,_r,xC,yC,wC,Vs,De,kC,EC,CC,R5,I5,Tp,Ml,Pf,mo=class extends(_5=x,A5=[u()],S5=[u({type:Boolean,reflect:!0})],T5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],_5){constructor(){super();a(this,De);a(this,Ol);a(this,xC,n(_r,8,this,"")),n(_r,11,this);a(this,yC,n(_r,12,this,!1)),n(_r,15,this);a(this,wC,n(_r,16,this,!1)),n(_r,19,this);a(this,Vs,new q(this,{context:Vf,subscribe:!0}));a(this,Tp,t=>{t.target.closest("[part='root']")||o(this,Ml).call(this,t)});a(this,Ml,t=>{if(o(this,De,EC)||o(this,De,CC))return;let e=o(this,Vs).value;e&&e.select(this.value)});a(this,Pf,t=>{t.key===" "&&(t.preventDefault(),o(this,Ml).call(this,t))});h(this,Ol,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",o(this,Tp))}willUpdate(){p(this,De,I5).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Tp))}render(){let t=o(this,De,kC),e=o(this,De,EC),s=o(this,De,CC),l=o(this,De,R5);return f`
4951
4951
  <span
4952
4952
  part="root"
4953
4953
  role="radio"
@@ -4973,7 +4973,7 @@ label, legend, caption, figcaption, th, td {
4973
4973
  </span>
4974
4974
  </span>
4975
4975
  <slot></slot>
4976
- `}};_r=A(_5),Ol=new WeakMap,bC=new WeakMap,xC=new WeakMap,yC=new WeakMap,Vs=new WeakMap,De=new WeakSet,wC=function(){return o(this,Vs).value?.value===this.value},kC=function(){return this.disabled||(o(this,Vs).value?.disabled??!1)},EC=function(){return this.readOnly||(o(this,Vs).value?.readOnly??!1)},R5=function(){return o(this,Vs).value?.required??!1},I5=function(){o(this,De,wC)?o(this,Ol).setFormValue(this.value):o(this,Ol).setFormValue(null)},Tp=new WeakMap,Ml=new WeakMap,Pf=new WeakMap,c(_r,4,"value",A5,mo,bC),c(_r,4,"disabled",S5,mo,xC),c(_r,4,"readOnly",T5,mo,yC),T(_r,mo),v(mo,"tagName","dui-radio"),v(mo,"formAssociated",!0),v(mo,"styles",[w,eU]);var OC=M("value-change",{bubbles:!0,composed:!0}),oU=b`
4976
+ `}};_r=A(_5),Ol=new WeakMap,xC=new WeakMap,yC=new WeakMap,wC=new WeakMap,Vs=new WeakMap,De=new WeakSet,kC=function(){return o(this,Vs).value?.value===this.value},EC=function(){return this.disabled||(o(this,Vs).value?.disabled??!1)},CC=function(){return this.readOnly||(o(this,Vs).value?.readOnly??!1)},R5=function(){return o(this,Vs).value?.required??!1},I5=function(){o(this,De,kC)?o(this,Ol).setFormValue(this.value):o(this,Ol).setFormValue(null)},Tp=new WeakMap,Ml=new WeakMap,Pf=new WeakMap,c(_r,4,"value",A5,mo,xC),c(_r,4,"disabled",S5,mo,yC),c(_r,4,"readOnly",T5,mo,wC),T(_r,mo),v(mo,"tagName","dui-radio"),v(mo,"formAssociated",!0),v(mo,"styles",[w,eU]);var MC=M("value-change",{bubbles:!0,composed:!0}),oU=b`
4977
4977
  :host {
4978
4978
  display: block;
4979
4979
  }
@@ -4987,7 +4987,7 @@ label, legend, caption, figcaption, th, td {
4987
4987
  [part="root"][data-disabled] {
4988
4988
  opacity: 0.5;
4989
4989
  }
4990
- `,L5,z5,O5,M5,N5,D5,H5,B5,F5,Ht,CC,$C,TC,SC,AC,_C,RC,IC,V5,zC,Xo,qf,jf,LC,Uf,Ae=class extends(F5=x,B5=[u()],H5=[u()],D5=[u({attribute:"default-value"})],N5=[u({type:Boolean,reflect:!0})],M5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],O5=[u({type:Boolean,reflect:!0})],z5=[C()],L5=[lt({context:Vf}),C()],F5){constructor(){super(...arguments);a(this,Xo);a(this,CC,n(Ht,8,this)),n(Ht,11,this);a(this,$C,n(Ht,12,this)),n(Ht,15,this);a(this,TC,n(Ht,16,this)),n(Ht,19,this);a(this,SC,n(Ht,20,this,!1)),n(Ht,23,this);a(this,AC,n(Ht,24,this,!1)),n(Ht,27,this);a(this,_C,n(Ht,28,this,!1)),n(Ht,31,this);a(this,RC,n(Ht,32,this)),n(Ht,35,this);a(this,qf,()=>this.value??o(this,Xo,V5));a(this,jf,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,Xo,t,zC),this.dispatchEvent(OC({value:t})))});a(this,LC,n(Ht,36,this,p(this,Xo,Uf).call(this))),n(Ht,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,Xo,this.defaultValue,zC),this._ctx=p(this,Xo,Uf).call(this)}willUpdate(){this._ctx=p(this,Xo,Uf).call(this)}render(){return f`
4990
+ `,L5,z5,O5,M5,N5,D5,H5,B5,F5,Ht,$C,TC,SC,AC,_C,RC,IC,LC,V5,OC,Xo,qf,jf,zC,Uf,Ae=class extends(F5=x,B5=[u()],H5=[u()],D5=[u({attribute:"default-value"})],N5=[u({type:Boolean,reflect:!0})],M5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],O5=[u({type:Boolean,reflect:!0})],z5=[C()],L5=[lt({context:Vf}),C()],F5){constructor(){super(...arguments);a(this,Xo);a(this,$C,n(Ht,8,this)),n(Ht,11,this);a(this,TC,n(Ht,12,this)),n(Ht,15,this);a(this,SC,n(Ht,16,this)),n(Ht,19,this);a(this,AC,n(Ht,20,this,!1)),n(Ht,23,this);a(this,_C,n(Ht,24,this,!1)),n(Ht,27,this);a(this,RC,n(Ht,28,this,!1)),n(Ht,31,this);a(this,IC,n(Ht,32,this)),n(Ht,35,this);a(this,qf,()=>this.value??o(this,Xo,V5));a(this,jf,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,Xo,t,OC),this.dispatchEvent(MC({value:t})))});a(this,zC,n(Ht,36,this,p(this,Xo,Uf).call(this))),n(Ht,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,Xo,this.defaultValue,OC),this._ctx=p(this,Xo,Uf).call(this)}willUpdate(){this._ctx=p(this,Xo,Uf).call(this)}render(){return f`
4991
4991
  <div
4992
4992
  part="root"
4993
4993
  role="radiogroup"
@@ -4997,7 +4997,7 @@ label, legend, caption, figcaption, th, td {
4997
4997
  >
4998
4998
  <slot></slot>
4999
4999
  </div>
5000
- `}};Ht=A(F5),CC=new WeakMap,$C=new WeakMap,TC=new WeakMap,SC=new WeakMap,AC=new WeakMap,_C=new WeakMap,RC=new WeakMap,Xo=new WeakSet,qf=new WeakMap,jf=new WeakMap,LC=new WeakMap,Uf=function(){return{name:this.name,value:o(this,qf).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:o(this,jf)}},c(Ht,4,"name",B5,Ae,CC),c(Ht,4,"value",H5,Ae,$C),c(Ht,4,"defaultValue",D5,Ae,TC),c(Ht,4,"disabled",N5,Ae,SC),c(Ht,4,"readOnly",M5,Ae,AC),c(Ht,4,"required",O5,Ae,_C),IC=c(Ht,20,"#internalValue",z5,Xo,RC),V5=IC.get,zC=IC.set,c(Ht,4,"_ctx",L5,Ae,LC),T(Ht,Ae),v(Ae,"tagName","dui-radio-group"),v(Ae,"styles",[w,oU]);var rU=k`
5000
+ `}};Ht=A(F5),$C=new WeakMap,TC=new WeakMap,SC=new WeakMap,AC=new WeakMap,_C=new WeakMap,RC=new WeakMap,IC=new WeakMap,Xo=new WeakSet,qf=new WeakMap,jf=new WeakMap,zC=new WeakMap,Uf=function(){return{name:this.name,value:o(this,qf).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:o(this,jf)}},c(Ht,4,"name",B5,Ae,$C),c(Ht,4,"value",H5,Ae,TC),c(Ht,4,"defaultValue",D5,Ae,SC),c(Ht,4,"disabled",N5,Ae,AC),c(Ht,4,"readOnly",M5,Ae,_C),c(Ht,4,"required",O5,Ae,RC),LC=c(Ht,20,"#internalValue",z5,Xo,IC),V5=LC.get,OC=LC.set,c(Ht,4,"_ctx",L5,Ae,zC),T(Ht,Ae),v(Ae,"tagName","dui-radio-group"),v(Ae,"styles",[w,oU]);var rU=k`
5001
5001
  :host {
5002
5002
  --radio-size: var(--space-4_5);
5003
5003
  gap: var(--space-2);
@@ -5139,7 +5139,7 @@ label, legend, caption, figcaption, th, td {
5139
5139
  height: 100%;
5140
5140
  min-width: 1.25rem;
5141
5141
  }
5142
- `,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,MC,NC,DC,HC,BC,Kf,eN,H,FC,VC,Wf,oN,PC,UC,o1,r1,qC,jC,Yf,s1,KC,WC,i1,rN,YC,GC,n1,sN,XC,JC,iN,nN,QC,ZC,aN,lN,t1,e1,a1,dN,Gf,hs,Hl,Bl,en,on,rn,sn,Ps,cN,pN,nn,Sp,Xf,Ap,_p,Rp,Ip,Lp,zp,hN,uN,Rr=class Rr extends(tN=x,Z5=[u({reflect:!0})],Q5=[u({type:Boolean,reflect:!0})],J5=[u({attribute:"max-height"})],X5=[C()],G5=[C()],Y5=[C()],W5=[C()],K5=[C()],j5=[C()],q5=[C()],U5=[C()],P5=[C()],tN){constructor(){super(...arguments);a(this,H);a(this,MC,n(it,8,this,"vertical")),n(it,11,this);a(this,NC,n(it,12,this,!1)),n(it,15,this);a(this,DC,n(it,16,this)),n(it,19,this);a(this,HC,n(it,20,this,!1)),n(it,23,this);a(this,FC,n(it,24,this,!1)),n(it,27,this);a(this,PC,n(it,28,this,!1)),n(it,31,this);a(this,qC,n(it,32,this,!1)),n(it,35,this);a(this,KC,n(it,36,this,0)),n(it,39,this);a(this,YC,n(it,40,this,0)),n(it,43,this);a(this,XC,n(it,44,this,0)),n(it,47,this);a(this,QC,n(it,48,this,0)),n(it,51,this);a(this,t1,n(it,52,this,!0)),n(it,55,this);a(this,hs,!0);a(this,Hl,0);a(this,Bl);a(this,en);a(this,on);a(this,rn,0);a(this,sn,0);a(this,nn,()=>{let t=o(this,H,Ps);if(!t)return;let e=t.scrollHeight>t.clientHeight,s=t.scrollWidth>t.clientWidth;h(this,H,e,oN),h(this,H,s,eN),e&&h(this,H,t.clientHeight/t.scrollHeight*100,rN),s&&h(this,H,t.clientWidth/t.scrollWidth*100,sN),o(this,Sp).call(this,t)});a(this,Sp,t=>{if(o(this,H,Wf)){let e=t.scrollHeight-t.clientHeight;h(this,H,e>0?t.scrollTop/e*(100-o(this,H,i1)):0,nN)}if(o(this,H,Kf)){let e=t.scrollWidth-t.clientWidth;h(this,H,e>0?t.scrollLeft/e*(100-o(this,H,n1)):0,lN)}});a(this,Xf,()=>{let t=o(this,H,Ps);if(!t)return;h(this,H,!0,s1),o(this,Sp).call(this,t);let e=o(this,hs),s=t.scrollTop<o(this,Hl);h(this,H,t.scrollTop<=0,dN),h(this,hs,t.scrollTop+t.clientHeight>=t.scrollHeight-o(Rr,Gf)),s&&e&&!o(this,hs)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&o(this,hs)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,Hl,t.scrollTop),clearTimeout(o(this,Bl)),h(this,Bl,setTimeout(()=>{h(this,H,!1,s1)},1e3))});a(this,Ap,()=>{h(this,H,!0,r1),o(this,nn).call(this)});a(this,_p,()=>{h(this,H,!1,r1)});a(this,Rp,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Ps);if(s)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientY-d.top)/d.height;s.scrollTop=m*(s.scrollHeight-s.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientX-d.left)/d.width;s.scrollLeft=m*(s.scrollWidth-s.clientWidth)}});a(this,Ip,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Ps);s&&(h(this,on,t),t==="vertical"?(h(this,rn,e.clientY),h(this,sn,s.scrollTop)):(h(this,rn,e.clientX),h(this,sn,s.scrollLeft)),document.addEventListener("pointermove",o(this,Lp)),document.addEventListener("pointerup",o(this,zp)))});a(this,Lp,t=>{let e=o(this,H,Ps);if(!(!e||!o(this,on)))if(o(this,on)==="vertical"){let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!s)return;let l=t.clientY-o(this,rn),d=s.clientHeight,m=e.scrollHeight-e.clientHeight;e.scrollTop=o(this,sn)+l/d*m}else{let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!s)return;let l=t.clientX-o(this,rn),d=s.clientWidth,m=e.scrollWidth-e.clientWidth;e.scrollLeft=o(this,sn)+l/d*m}});a(this,zp,()=>{h(this,on,void 0),document.removeEventListener("pointermove",o(this,Lp)),document.removeEventListener("pointerup",o(this,zp))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",o(this,Ap)),this.addEventListener("pointerleave",o(this,_p))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,Ap)),this.removeEventListener("pointerleave",o(this,_p)),o(this,en)?.disconnect(),clearTimeout(o(this,Bl))}firstUpdated(){let t=o(this,H,Ps);if(!t)return;h(this,en,new ResizeObserver(()=>o(this,nn).call(this))),o(this,en).observe(t);let e=t.querySelector("slot");if(e){let s=()=>{for(let l of e.assignedElements())o(this,en).observe(l)};e.addEventListener("slotchange",()=>{s(),requestAnimationFrame(()=>o(this,nn).call(this))}),s()}o(this,nn).call(this)}async scrollToBottom(){await this.updateComplete;let t=o(this,H,Ps);t&&(t.scrollTop=t.scrollHeight,h(this,hs,!0),h(this,Hl,t.scrollTop))}get isAtTop(){return o(this,H,a1)}get isAtBottom(){return o(this,hs)}render(){return f`
5142
+ `,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,NC,DC,HC,BC,FC,Kf,eN,H,VC,PC,Wf,oN,UC,qC,r1,s1,jC,KC,Yf,i1,WC,YC,n1,rN,GC,XC,a1,sN,JC,QC,iN,nN,ZC,t1,aN,lN,e1,o1,l1,dN,Gf,hs,Hl,Bl,en,on,rn,sn,Ps,cN,pN,nn,Sp,Xf,Ap,_p,Rp,Ip,Lp,zp,hN,uN,Rr=class Rr extends(tN=x,Z5=[u({reflect:!0})],Q5=[u({type:Boolean,reflect:!0})],J5=[u({attribute:"max-height"})],X5=[C()],G5=[C()],Y5=[C()],W5=[C()],K5=[C()],j5=[C()],q5=[C()],U5=[C()],P5=[C()],tN){constructor(){super(...arguments);a(this,H);a(this,NC,n(it,8,this,"vertical")),n(it,11,this);a(this,DC,n(it,12,this,!1)),n(it,15,this);a(this,HC,n(it,16,this)),n(it,19,this);a(this,BC,n(it,20,this,!1)),n(it,23,this);a(this,VC,n(it,24,this,!1)),n(it,27,this);a(this,UC,n(it,28,this,!1)),n(it,31,this);a(this,jC,n(it,32,this,!1)),n(it,35,this);a(this,WC,n(it,36,this,0)),n(it,39,this);a(this,GC,n(it,40,this,0)),n(it,43,this);a(this,JC,n(it,44,this,0)),n(it,47,this);a(this,ZC,n(it,48,this,0)),n(it,51,this);a(this,e1,n(it,52,this,!0)),n(it,55,this);a(this,hs,!0);a(this,Hl,0);a(this,Bl);a(this,en);a(this,on);a(this,rn,0);a(this,sn,0);a(this,nn,()=>{let t=o(this,H,Ps);if(!t)return;let e=t.scrollHeight>t.clientHeight,s=t.scrollWidth>t.clientWidth;h(this,H,e,oN),h(this,H,s,eN),e&&h(this,H,t.clientHeight/t.scrollHeight*100,rN),s&&h(this,H,t.clientWidth/t.scrollWidth*100,sN),o(this,Sp).call(this,t)});a(this,Sp,t=>{if(o(this,H,Wf)){let e=t.scrollHeight-t.clientHeight;h(this,H,e>0?t.scrollTop/e*(100-o(this,H,n1)):0,nN)}if(o(this,H,Kf)){let e=t.scrollWidth-t.clientWidth;h(this,H,e>0?t.scrollLeft/e*(100-o(this,H,a1)):0,lN)}});a(this,Xf,()=>{let t=o(this,H,Ps);if(!t)return;h(this,H,!0,i1),o(this,Sp).call(this,t);let e=o(this,hs),s=t.scrollTop<o(this,Hl);h(this,H,t.scrollTop<=0,dN),h(this,hs,t.scrollTop+t.clientHeight>=t.scrollHeight-o(Rr,Gf)),s&&e&&!o(this,hs)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&o(this,hs)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,Hl,t.scrollTop),clearTimeout(o(this,Bl)),h(this,Bl,setTimeout(()=>{h(this,H,!1,i1)},1e3))});a(this,Ap,()=>{h(this,H,!0,s1),o(this,nn).call(this)});a(this,_p,()=>{h(this,H,!1,s1)});a(this,Rp,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Ps);if(s)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientY-d.top)/d.height;s.scrollTop=m*(s.scrollHeight-s.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientX-d.left)/d.width;s.scrollLeft=m*(s.scrollWidth-s.clientWidth)}});a(this,Ip,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Ps);s&&(h(this,on,t),t==="vertical"?(h(this,rn,e.clientY),h(this,sn,s.scrollTop)):(h(this,rn,e.clientX),h(this,sn,s.scrollLeft)),document.addEventListener("pointermove",o(this,Lp)),document.addEventListener("pointerup",o(this,zp)))});a(this,Lp,t=>{let e=o(this,H,Ps);if(!(!e||!o(this,on)))if(o(this,on)==="vertical"){let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!s)return;let l=t.clientY-o(this,rn),d=s.clientHeight,m=e.scrollHeight-e.clientHeight;e.scrollTop=o(this,sn)+l/d*m}else{let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!s)return;let l=t.clientX-o(this,rn),d=s.clientWidth,m=e.scrollWidth-e.clientWidth;e.scrollLeft=o(this,sn)+l/d*m}});a(this,zp,()=>{h(this,on,void 0),document.removeEventListener("pointermove",o(this,Lp)),document.removeEventListener("pointerup",o(this,zp))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",o(this,Ap)),this.addEventListener("pointerleave",o(this,_p))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,Ap)),this.removeEventListener("pointerleave",o(this,_p)),o(this,en)?.disconnect(),clearTimeout(o(this,Bl))}firstUpdated(){let t=o(this,H,Ps);if(!t)return;h(this,en,new ResizeObserver(()=>o(this,nn).call(this))),o(this,en).observe(t);let e=t.querySelector("slot");if(e){let s=()=>{for(let l of e.assignedElements())o(this,en).observe(l)};e.addEventListener("slotchange",()=>{s(),requestAnimationFrame(()=>o(this,nn).call(this))}),s()}o(this,nn).call(this)}async scrollToBottom(){await this.updateComplete;let t=o(this,H,Ps);t&&(t.scrollTop=t.scrollHeight,h(this,hs,!0),h(this,Hl,t.scrollTop))}get isAtTop(){return o(this,H,l1)}get isAtBottom(){return o(this,hs)}render(){return f`
5143
5143
  <div
5144
5144
  class="ScrollArea"
5145
5145
  part="root"
@@ -5147,17 +5147,17 @@ label, legend, caption, figcaption, th, td {
5147
5147
  ?data-has-overflow-y="${o(this,H,Wf)}"
5148
5148
  ?data-scrolling="${o(this,H,Yf)}"
5149
5149
  >
5150
- <div class="Viewport" part="viewport" ?data-scrolled="${!o(this,H,a1)}" @scroll="${o(this,Xf)}">
5150
+ <div class="Viewport" part="viewport" ?data-scrolled="${!o(this,H,l1)}" @scroll="${o(this,Xf)}">
5151
5151
  <slot></slot>
5152
5152
  </div>
5153
5153
  ${p(this,H,hN).call(this)} ${p(this,H,uN).call(this)}
5154
5154
  </div>
5155
- `}};it=A(tN),MC=new WeakMap,NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,H=new WeakSet,FC=new WeakMap,PC=new WeakMap,qC=new WeakMap,KC=new WeakMap,YC=new WeakMap,XC=new WeakMap,QC=new WeakMap,t1=new WeakMap,Gf=new WeakMap,hs=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,en=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,Ps=function(){return this.shadowRoot?.querySelector(".Viewport")??null},cN=function(){return this.orientation==="vertical"||this.orientation==="both"},pN=function(){return this.orientation==="horizontal"||this.orientation==="both"},nn=new WeakMap,Sp=new WeakMap,Xf=new WeakMap,Ap=new WeakMap,_p=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,Lp=new WeakMap,zp=new WeakMap,hN=function(){return!o(this,H,cN)||!o(this,H,Wf)?L:f`
5155
+ `}};it=A(tN),NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,H=new WeakSet,VC=new WeakMap,UC=new WeakMap,jC=new WeakMap,WC=new WeakMap,GC=new WeakMap,JC=new WeakMap,ZC=new WeakMap,e1=new WeakMap,Gf=new WeakMap,hs=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,en=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,Ps=function(){return this.shadowRoot?.querySelector(".Viewport")??null},cN=function(){return this.orientation==="vertical"||this.orientation==="both"},pN=function(){return this.orientation==="horizontal"||this.orientation==="both"},nn=new WeakMap,Sp=new WeakMap,Xf=new WeakMap,Ap=new WeakMap,_p=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,Lp=new WeakMap,zp=new WeakMap,hN=function(){return!o(this,H,cN)||!o(this,H,Wf)?L:f`
5156
5156
  <div
5157
5157
  class="Scrollbar"
5158
5158
  part="scrollbar-vertical"
5159
5159
  data-orientation="vertical"
5160
- ?data-hovering="${o(this,H,o1)}"
5160
+ ?data-hovering="${o(this,H,r1)}"
5161
5161
  ?data-scrolling="${o(this,H,Yf)}"
5162
5162
  @pointerdown="${t=>o(this,Rp).call(this,"vertical",t)}"
5163
5163
  >
@@ -5165,7 +5165,7 @@ label, legend, caption, figcaption, th, td {
5165
5165
  class="Thumb"
5166
5166
  part="thumb-vertical"
5167
5167
  data-orientation="vertical"
5168
- style="height: ${o(this,H,i1)}%; top: ${o(this,H,iN)}%; position: absolute;"
5168
+ style="height: ${o(this,H,n1)}%; top: ${o(this,H,iN)}%; position: absolute;"
5169
5169
  @pointerdown="${t=>o(this,Ip).call(this,"vertical",t)}"
5170
5170
  ></div>
5171
5171
  </div>
@@ -5174,7 +5174,7 @@ label, legend, caption, figcaption, th, td {
5174
5174
  class="Scrollbar"
5175
5175
  part="scrollbar-horizontal"
5176
5176
  data-orientation="horizontal"
5177
- ?data-hovering="${o(this,H,o1)}"
5177
+ ?data-hovering="${o(this,H,r1)}"
5178
5178
  ?data-scrolling="${o(this,H,Yf)}"
5179
5179
  @pointerdown="${t=>o(this,Rp).call(this,"horizontal",t)}"
5180
5180
  >
@@ -5182,11 +5182,11 @@ label, legend, caption, figcaption, th, td {
5182
5182
  class="Thumb"
5183
5183
  part="thumb-horizontal"
5184
5184
  data-orientation="horizontal"
5185
- style="width: ${o(this,H,n1)}%; left: ${o(this,H,aN)}%; position: absolute;"
5185
+ style="width: ${o(this,H,a1)}%; left: ${o(this,H,aN)}%; position: absolute;"
5186
5186
  @pointerdown="${t=>o(this,Ip).call(this,"horizontal",t)}"
5187
5187
  ></div>
5188
5188
  </div>
5189
- `},c(it,4,"orientation",Z5,Rr,MC),c(it,4,"fade",Q5,Rr,NC),c(it,4,"maxHeight",J5,Rr,DC),BC=c(it,20,"#hasOverflowX",X5,H,HC),Kf=BC.get,eN=BC.set,VC=c(it,20,"#hasOverflowY",G5,H,FC),Wf=VC.get,oN=VC.set,UC=c(it,20,"#hovering",Y5,H,PC),o1=UC.get,r1=UC.set,jC=c(it,20,"#scrolling",W5,H,qC),Yf=jC.get,s1=jC.set,WC=c(it,20,"#thumbHeightPercent",K5,H,KC),i1=WC.get,rN=WC.set,GC=c(it,20,"#thumbWidthPercent",j5,H,YC),n1=GC.get,sN=GC.set,JC=c(it,20,"#thumbTopPercent",q5,H,XC),iN=JC.get,nN=JC.set,ZC=c(it,20,"#thumbLeftPercent",U5,H,QC),aN=ZC.get,lN=ZC.set,e1=c(it,20,"#isAtTop",P5,H,t1),a1=e1.get,dN=e1.set,T(it,Rr),v(Rr,"tagName","dui-scroll-area"),v(Rr,"styles",[w,iU]),a(Rr,Gf,1);var Fl=Rr;var nU=k`
5189
+ `},c(it,4,"orientation",Z5,Rr,NC),c(it,4,"fade",Q5,Rr,DC),c(it,4,"maxHeight",J5,Rr,HC),FC=c(it,20,"#hasOverflowX",X5,H,BC),Kf=FC.get,eN=FC.set,PC=c(it,20,"#hasOverflowY",G5,H,VC),Wf=PC.get,oN=PC.set,qC=c(it,20,"#hovering",Y5,H,UC),r1=qC.get,s1=qC.set,KC=c(it,20,"#scrolling",W5,H,jC),Yf=KC.get,i1=KC.set,YC=c(it,20,"#thumbHeightPercent",K5,H,WC),n1=YC.get,rN=YC.set,XC=c(it,20,"#thumbWidthPercent",j5,H,GC),a1=XC.get,sN=XC.set,QC=c(it,20,"#thumbTopPercent",q5,H,JC),iN=QC.get,nN=QC.set,t1=c(it,20,"#thumbLeftPercent",U5,H,ZC),aN=t1.get,lN=t1.set,o1=c(it,20,"#isAtTop",P5,H,e1),l1=o1.get,dN=o1.set,T(it,Rr),v(Rr,"tagName","dui-scroll-area"),v(Rr,"styles",[w,iU]),a(Rr,Gf,1);var Fl=Rr;var nU=k`
5190
5190
  .Scrollbar {
5191
5191
  border-radius: var(--radius-sm);
5192
5192
  transition: opacity var(--duration-fast);
@@ -5284,7 +5284,7 @@ label, legend, caption, figcaption, th, td {
5284
5284
  overflow: hidden;
5285
5285
  text-overflow: ellipsis;
5286
5286
  }
5287
- `],mN,fN,gN,vN,bN,xN,yN,wN,Mp,Xt,l1,d1,c1,p1,h1,u1,m1,f1,an,Us,dt,Jf,ln,Jt,g1,kN,EN,Qf,Zf,tg,eg,og,v1,Op,b1,rg,_e=class extends(wN=x,yN=[u({attribute:!1})],xN=[u({type:String})],bN=[u({type:String})],vN=[u({type:Boolean,reflect:!0})],gN=[u({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],fN=[u({type:String})],mN=[C()],wN){constructor(){super();a(this,dt);a(this,Mp);a(this,l1,n(Xt,8,this,[])),n(Xt,11,this);a(this,d1,n(Xt,12,this,"")),n(Xt,15,this);a(this,c1,n(Xt,16,this,"Select...")),n(Xt,19,this);a(this,p1,n(Xt,20,this,!1)),n(Xt,23,this);a(this,h1,n(Xt,24,this,!0)),n(Xt,27,this);a(this,u1,n(Xt,28,this,"")),n(Xt,31,this);a(this,m1,n(Xt,32,this,-1)),n(Xt,35,this);a(this,Jf,`select-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,ln,`select-listbox-${crypto.randomUUID().slice(0,8)}`);a(this,Jt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:cU,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=o(this,Jt).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{h(this,dt,o(this,dt,kN),Us)},onClose:()=>{h(this,dt,-1,Us)},renderPopup:t=>f`
5287
+ `],mN,fN,gN,vN,bN,xN,yN,wN,Mp,Xt,d1,c1,p1,h1,u1,m1,f1,g1,an,Us,dt,Jf,ln,Jt,v1,kN,EN,Qf,Zf,tg,eg,og,b1,Op,x1,rg,_e=class extends(wN=x,yN=[u({attribute:!1})],xN=[u({type:String})],bN=[u({type:String})],vN=[u({type:Boolean,reflect:!0})],gN=[u({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],fN=[u({type:String})],mN=[C()],wN){constructor(){super();a(this,dt);a(this,Mp);a(this,d1,n(Xt,8,this,[])),n(Xt,11,this);a(this,c1,n(Xt,12,this,"")),n(Xt,15,this);a(this,p1,n(Xt,16,this,"Select...")),n(Xt,19,this);a(this,h1,n(Xt,20,this,!1)),n(Xt,23,this);a(this,u1,n(Xt,24,this,!0)),n(Xt,27,this);a(this,m1,n(Xt,28,this,"")),n(Xt,31,this);a(this,f1,n(Xt,32,this,-1)),n(Xt,35,this);a(this,Jf,`select-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,ln,`select-listbox-${crypto.randomUUID().slice(0,8)}`);a(this,Jt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:cU,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=o(this,Jt).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{h(this,dt,o(this,dt,kN),Us)},onClose:()=>{h(this,dt,-1,Us)},renderPopup:t=>f`
5288
5288
  <div
5289
5289
  class="Popup"
5290
5290
  ?data-align-inner="${this.alignItemToTrigger&&this.value!==""}"
@@ -5301,7 +5301,7 @@ label, legend, caption, figcaption, th, td {
5301
5301
  ${Si(this.options,e=>e.value,o(this,rg))}
5302
5302
  </div>
5303
5303
  </div>
5304
- `}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,v1).call(this,e)}else o(this,Jt).open();break}case"ArrowDown":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),1),Us):o(this,Jt).open();break}case"ArrowUp":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),-1),Us):o(this,Jt).open();break}case"Home":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,-1,1),Us));break}case"End":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,this.options.length,-1),Us));break}case"Escape":{o(this,Jt).isOpen&&(t.preventDefault(),o(this,Jt).close(),p(this,dt,b1).call(this));break}case"Tab":{o(this,Jt).isOpen&&o(this,Jt).close();break}}});a(this,tg,t=>{t.preventDefault()});a(this,eg,t=>{t.disabled||p(this,dt,v1).call(this,t)});a(this,og,t=>{this.options[t]?.disabled||h(this,dt,t,Us)});a(this,rg,(t,e)=>{let s=t.value===this.value,l=e===o(this,dt,an);return f`
5304
+ `}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,b1).call(this,e)}else o(this,Jt).open();break}case"ArrowDown":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),1),Us):o(this,Jt).open();break}case"ArrowUp":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),-1),Us):o(this,Jt).open();break}case"Home":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,-1,1),Us));break}case"End":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,this.options.length,-1),Us));break}case"Escape":{o(this,Jt).isOpen&&(t.preventDefault(),o(this,Jt).close(),p(this,dt,x1).call(this));break}case"Tab":{o(this,Jt).isOpen&&o(this,Jt).close();break}}});a(this,tg,t=>{t.preventDefault()});a(this,eg,t=>{t.disabled||p(this,dt,b1).call(this,t)});a(this,og,t=>{this.options[t]?.disabled||h(this,dt,t,Us)});a(this,rg,(t,e)=>{let s=t.value===this.value,l=e===o(this,dt,an);return f`
5305
5305
  <div
5306
5306
  class="Item"
5307
5307
  role="option"
@@ -5318,7 +5318,7 @@ label, legend, caption, figcaption, th, td {
5318
5318
  </span>
5319
5319
  <span class="ItemText">${t.label}</span>
5320
5320
  </div>
5321
- `});h(this,Mp,this.attachInternals())}willUpdate(){o(this,Mp).setFormValue(this.value)}render(){let t=this.value!==""&&o(this,dt,g1)!=null;return f`
5321
+ `});h(this,Mp,this.attachInternals())}willUpdate(){o(this,Mp).setFormValue(this.value)}render(){let t=this.value!==""&&o(this,dt,v1)!=null;return f`
5322
5322
  <div
5323
5323
  class="Trigger"
5324
5324
  part="trigger"
@@ -5346,7 +5346,7 @@ label, legend, caption, figcaption, th, td {
5346
5346
  </span>
5347
5347
  </div>
5348
5348
 
5349
- `}};Xt=A(wN),Mp=new WeakMap,l1=new WeakMap,d1=new WeakMap,c1=new WeakMap,p1=new WeakMap,h1=new WeakMap,u1=new WeakMap,m1=new WeakMap,dt=new WeakSet,Jf=new WeakMap,ln=new WeakMap,Jt=new WeakMap,g1=function(){return this.options.find(t=>t.value===this.value)},kN=function(){return this.options.findIndex(t=>t.value===this.value)},EN=function(){return o(this,dt,g1)?.label??""},Qf=new WeakMap,Zf=new WeakMap,tg=new WeakMap,eg=new WeakMap,og=new WeakMap,v1=function(t){this.value=t.value,this.dispatchEvent(aU({value:t.value,option:t})),o(this,Jt).close(),p(this,dt,b1).call(this)},Op=function(t,e){let s=this.options.length,l=t+e;for(;l>=0&&l<s;){if(!this.options[l].disabled)return l;l+=e}return t},b1=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},rg=new WeakMap,c(Xt,4,"options",yN,_e,l1),c(Xt,4,"value",xN,_e,d1),c(Xt,4,"placeholder",bN,_e,c1),c(Xt,4,"disabled",vN,_e,p1),c(Xt,4,"alignItemToTrigger",gN,_e,h1),c(Xt,4,"name",fN,_e,u1),f1=c(Xt,20,"#highlightedIndex",mN,dt,m1),an=f1.get,Us=f1.set,T(Xt,_e),v(_e,"tagName","dui-select"),v(_e,"formAssociated",!0),v(_e,"styles",[w,lU,dU]);var pU=k`
5349
+ `}};Xt=A(wN),Mp=new WeakMap,d1=new WeakMap,c1=new WeakMap,p1=new WeakMap,h1=new WeakMap,u1=new WeakMap,m1=new WeakMap,f1=new WeakMap,dt=new WeakSet,Jf=new WeakMap,ln=new WeakMap,Jt=new WeakMap,v1=function(){return this.options.find(t=>t.value===this.value)},kN=function(){return this.options.findIndex(t=>t.value===this.value)},EN=function(){return o(this,dt,v1)?.label??""},Qf=new WeakMap,Zf=new WeakMap,tg=new WeakMap,eg=new WeakMap,og=new WeakMap,b1=function(t){this.value=t.value,this.dispatchEvent(aU({value:t.value,option:t})),o(this,Jt).close(),p(this,dt,x1).call(this)},Op=function(t,e){let s=this.options.length,l=t+e;for(;l>=0&&l<s;){if(!this.options[l].disabled)return l;l+=e}return t},x1=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},rg=new WeakMap,c(Xt,4,"options",yN,_e,d1),c(Xt,4,"value",xN,_e,c1),c(Xt,4,"placeholder",bN,_e,p1),c(Xt,4,"disabled",vN,_e,h1),c(Xt,4,"alignItemToTrigger",gN,_e,u1),c(Xt,4,"name",fN,_e,m1),g1=c(Xt,20,"#highlightedIndex",mN,dt,f1),an=g1.get,Us=g1.set,T(Xt,_e),v(_e,"tagName","dui-select"),v(_e,"formAssociated",!0),v(_e,"styles",[w,lU,dU]);var pU=k`
5350
5350
  .Trigger {
5351
5351
  height: var(--component-height-md);
5352
5352
  gap: var(--space-2);
@@ -5486,13 +5486,13 @@ label, legend, caption, figcaption, th, td {
5486
5486
  margin: 0;
5487
5487
  padding: 0;
5488
5488
  }
5489
- `,CN,$N,sg,x1,Ir=class extends($N=x,CN=[u({reflect:!0})],$N){constructor(){super(...arguments);a(this,x1,n(sg,8,this,"horizontal")),n(sg,11,this)}render(){return f`
5489
+ `,CN,$N,sg,y1,Ir=class extends($N=x,CN=[u({reflect:!0})],$N){constructor(){super(...arguments);a(this,y1,n(sg,8,this,"horizontal")),n(sg,11,this)}render(){return f`
5490
5490
  <div
5491
5491
  part="root"
5492
5492
  role="separator"
5493
5493
  aria-orientation="${this.orientation}"
5494
5494
  ></div>
5495
- `}};sg=A($N),x1=new WeakMap,c(sg,4,"orientation",CN,Ir,x1),T(sg,Ir),v(Ir,"tagName","dui-separator"),v(Ir,"styles",[w,hU]);var uU=k`
5495
+ `}};sg=A($N),y1=new WeakMap,c(sg,4,"orientation",CN,Ir,y1),T(sg,Ir),v(Ir,"tagName","dui-separator"),v(Ir,"styles",[w,hU]);var uU=k`
5496
5496
  :host {
5497
5497
  --separator-margin: 0;
5498
5498
  }
@@ -5522,7 +5522,7 @@ label, legend, caption, figcaption, th, td {
5522
5522
  height: 100%;
5523
5523
  min-height: inherit;
5524
5524
  }
5525
- `,TN,SN,AN,_N,RN,IN,LN,zN,ON,MN,Ot,y1,w1,k1,E1,C1,$1,T1,NN,L1,$t,S1,A1,z1,ig,_1,R1,Np,O1,qs,dn,cn,ng,Dp,Hp,lg,dg,I1,ag,He=class extends(MN=x,ON=[u({type:Boolean})],zN=[u({type:Boolean,attribute:"default-open"})],LN=[u({reflect:!0})],IN=[u({reflect:!0})],RN=[u({reflect:!0})],_N=[C()],AN=[C()],SN=[C()],TN=[lt({context:Lr}),C()],MN){constructor(){super(...arguments);a(this,$t);a(this,y1,n(Ot,8,this)),n(Ot,11,this);a(this,w1,n(Ot,12,this,!0)),n(Ot,15,this);a(this,k1,n(Ot,16,this,"left")),n(Ot,19,this);a(this,E1,n(Ot,20,this,"sidebar")),n(Ot,23,this);a(this,C1,n(Ot,24,this,"offcanvas")),n(Ot,27,this);a(this,$1,n(Ot,28,this,!0)),n(Ot,31,this);a(this,S1,n(Ot,32,this,!1)),n(Ot,35,this);a(this,_1,n(Ot,36,this,!1)),n(Ot,39,this);a(this,qs);a(this,dn);a(this,cn);a(this,Dp,t=>{o(this,$t,Np)?h(this,$t,t,ig):(this.open===void 0&&h(this,$t,t,L1),this.dispatchEvent(M1({open:t})))});a(this,Hp,()=>{o(this,$t,Np)?h(this,$t,!o(this,$t,z1),ig):o(this,Dp).call(this,!o(this,$t,ng))});a(this,lg,t=>{h(this,$t,!t.matches,O1),o(this,$t,Np)||h(this,$t,!1,ig)});a(this,dg,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),o(this,Hp).call(this))});a(this,I1,n(Ot,40,this,p(this,$t,ag).call(this))),n(Ot,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&h(this,$t,this.defaultOpen,L1),h(this,qs,matchMedia("(min-width: 768px)")),h(this,$t,!o(this,qs).matches,O1),h(this,dn,o(this,lg).bind(this)),o(this,qs).addEventListener("change",o(this,dn)),h(this,cn,o(this,dg).bind(this)),document.addEventListener("keydown",o(this,cn)),this._ctx=p(this,$t,ag).call(this)}disconnectedCallback(){super.disconnectedCallback(),o(this,qs)&&o(this,dn)&&o(this,qs).removeEventListener("change",o(this,dn)),o(this,cn)&&document.removeEventListener("keydown",o(this,cn))}willUpdate(){this._ctx=p(this,$t,ag).call(this)}render(){return f`<slot></slot>`}};Ot=A(MN),y1=new WeakMap,w1=new WeakMap,k1=new WeakMap,E1=new WeakMap,C1=new WeakMap,$1=new WeakMap,$t=new WeakSet,S1=new WeakMap,_1=new WeakMap,qs=new WeakMap,dn=new WeakMap,cn=new WeakMap,ng=function(){return this.open??o(this,$t,NN)},Dp=new WeakMap,Hp=new WeakMap,lg=new WeakMap,dg=new WeakMap,I1=new WeakMap,ag=function(){return{state:o(this,$t,ng)?"expanded":"collapsed",open:o(this,$t,ng),openMobile:o(this,$t,z1),isMobile:o(this,$t,Np),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:o(this,Dp),toggleSidebar:o(this,Hp)}},c(Ot,4,"open",ON,He,y1),c(Ot,4,"defaultOpen",zN,He,w1),c(Ot,4,"side",LN,He,k1),c(Ot,4,"variant",IN,He,E1),c(Ot,4,"collapsible",RN,He,C1),T1=c(Ot,20,"#internalOpen",_N,$t,$1),NN=T1.get,L1=T1.set,A1=c(Ot,20,"#openMobile",AN,$t,S1),z1=A1.get,ig=A1.set,R1=c(Ot,20,"#isMobile",SN,$t,_1),Np=R1.get,O1=R1.set,c(Ot,4,"_ctx",TN,He,I1),T(Ot,He),v(He,"tagName","dui-sidebar-provider"),v(He,"styles",[w,mU]);var fU=b`
5525
+ `,TN,SN,AN,_N,RN,IN,LN,zN,ON,MN,Ot,w1,k1,E1,C1,$1,T1,S1,NN,z1,yt,A1,_1,O1,ig,R1,I1,Np,ng,qs,dn,cn,ag,Dp,Hp,dg,cg,L1,lg,He=class extends(MN=x,ON=[u({type:Boolean})],zN=[u({type:Boolean,attribute:"default-open"})],LN=[u({reflect:!0})],IN=[u({reflect:!0})],RN=[u({reflect:!0})],_N=[C()],AN=[C()],SN=[C()],TN=[lt({context:Lr}),C()],MN){constructor(){super(...arguments);a(this,yt);a(this,w1,n(Ot,8,this)),n(Ot,11,this);a(this,k1,n(Ot,12,this,!0)),n(Ot,15,this);a(this,E1,n(Ot,16,this,"left")),n(Ot,19,this);a(this,C1,n(Ot,20,this,"sidebar")),n(Ot,23,this);a(this,$1,n(Ot,24,this,"offcanvas")),n(Ot,27,this);a(this,T1,n(Ot,28,this,!0)),n(Ot,31,this);a(this,A1,n(Ot,32,this,!1)),n(Ot,35,this);a(this,R1,n(Ot,36,this,!1)),n(Ot,39,this);a(this,qs);a(this,dn);a(this,cn);a(this,Dp,t=>{o(this,yt,Np)?h(this,yt,t,ig):(this.open===void 0&&h(this,yt,t,z1),this.dispatchEvent(M1({open:t})))});a(this,Hp,()=>{o(this,yt,Np)?h(this,yt,!o(this,yt,O1),ig):o(this,Dp).call(this,!o(this,yt,ag))});a(this,dg,t=>{h(this,yt,!t.matches,ng),o(this,yt,Np)||h(this,yt,!1,ig)});a(this,cg,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),o(this,Hp).call(this))});a(this,L1,n(Ot,40,this,p(this,yt,lg).call(this))),n(Ot,43,this)}connectedCallback(){super.connectedCallback(),this.collapsible==="always"?h(this,yt,!0,ng):(this.open===void 0&&h(this,yt,this.defaultOpen,z1),h(this,qs,matchMedia("(min-width: 768px)")),h(this,yt,!o(this,qs).matches,ng),h(this,dn,o(this,dg).bind(this)),o(this,qs).addEventListener("change",o(this,dn))),h(this,cn,o(this,cg).bind(this)),document.addEventListener("keydown",o(this,cn)),this._ctx=p(this,yt,lg).call(this)}disconnectedCallback(){super.disconnectedCallback(),o(this,qs)&&o(this,dn)&&o(this,qs).removeEventListener("change",o(this,dn)),o(this,cn)&&document.removeEventListener("keydown",o(this,cn))}willUpdate(){this._ctx=p(this,yt,lg).call(this)}render(){return f`<slot></slot>`}};Ot=A(MN),w1=new WeakMap,k1=new WeakMap,E1=new WeakMap,C1=new WeakMap,$1=new WeakMap,T1=new WeakMap,yt=new WeakSet,A1=new WeakMap,R1=new WeakMap,qs=new WeakMap,dn=new WeakMap,cn=new WeakMap,ag=function(){return this.open??o(this,yt,NN)},Dp=new WeakMap,Hp=new WeakMap,dg=new WeakMap,cg=new WeakMap,L1=new WeakMap,lg=function(){return{state:o(this,yt,ag)?"expanded":"collapsed",open:o(this,yt,ag),openMobile:o(this,yt,O1),isMobile:o(this,yt,Np),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:o(this,Dp),toggleSidebar:o(this,Hp)}},c(Ot,4,"open",ON,He,w1),c(Ot,4,"defaultOpen",zN,He,k1),c(Ot,4,"side",LN,He,E1),c(Ot,4,"variant",IN,He,C1),c(Ot,4,"collapsible",RN,He,$1),S1=c(Ot,20,"#internalOpen",_N,yt,T1),NN=S1.get,z1=S1.set,_1=c(Ot,20,"#openMobile",AN,yt,A1),O1=_1.get,ig=_1.set,I1=c(Ot,20,"#isMobile",SN,yt,R1),Np=I1.get,ng=I1.set,c(Ot,4,"_ctx",TN,He,L1),T(Ot,He),v(He,"tagName","dui-sidebar-provider"),v(He,"styles",[w,mU]);var fU=b`
5526
5526
  :host {
5527
5527
  display: block;
5528
5528
  flex-shrink: 0;
@@ -5607,13 +5607,13 @@ label, legend, caption, figcaption, th, td {
5607
5607
  .MobilePanel[data-ending-style] {
5608
5608
  transform: translateX(var(--mobile-end-x));
5609
5609
  }
5610
- `,DN,HN,BN,FN,zr,N1,D1,cg,P1,St,H1,B1,U1,q1,F1,V1,pg,j1,pn,VN,PN,K1,hg,ug,us=class extends(FN=x,BN=[C()],HN=[C()],DN=[C()],FN){constructor(){super(...arguments);a(this,St);a(this,N1,n(zr,8,this,!1)),n(zr,11,this);a(this,H1,n(zr,12,this,!1)),n(zr,15,this);a(this,F1,n(zr,16,this,!1)),n(zr,19,this);a(this,pn,new q(this,{context:Lr,subscribe:!0}));a(this,hg,()=>{o(this,pn).value?.setOpen(!1)});a(this,ug,t=>{t.key==="Escape"&&(t.preventDefault(),o(this,pn).value?.setOpen(!1))})}willUpdate(){let t=o(this,pn).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!o(this,St,cg)?p(this,St,VN).call(this):!t.openMobile&&o(this,St,cg)&&!o(this,St,pg)&&p(this,St,PN).call(this)))}render(){let t=o(this,pn).value;if(!t)return f``;let s=t.side==="left"?"-100%":"100%";return t.isMobile?o(this,St,cg)?f`
5610
+ `,DN,HN,BN,FN,zr,N1,D1,pg,P1,St,H1,B1,U1,q1,F1,V1,hg,j1,pn,VN,PN,K1,ug,mg,us=class extends(FN=x,BN=[C()],HN=[C()],DN=[C()],FN){constructor(){super(...arguments);a(this,St);a(this,N1,n(zr,8,this,!1)),n(zr,11,this);a(this,H1,n(zr,12,this,!1)),n(zr,15,this);a(this,F1,n(zr,16,this,!1)),n(zr,19,this);a(this,pn,new q(this,{context:Lr,subscribe:!0}));a(this,ug,()=>{o(this,pn).value?.setOpen(!1)});a(this,mg,t=>{t.key==="Escape"&&(t.preventDefault(),o(this,pn).value?.setOpen(!1))})}willUpdate(){let t=o(this,pn).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!o(this,St,pg)?p(this,St,VN).call(this):!t.openMobile&&o(this,St,pg)&&!o(this,St,hg)&&p(this,St,PN).call(this)))}render(){let t=o(this,pn).value;if(!t)return f``;let s=t.side==="left"?"-100%":"100%";return t.isMobile?o(this,St,pg)?f`
5611
5611
  <div
5612
5612
  class="Backdrop"
5613
5613
  part="backdrop"
5614
5614
  ?data-starting-style=${o(this,St,U1)}
5615
- ?data-ending-style=${o(this,St,pg)}
5616
- @click=${o(this,hg)}
5615
+ ?data-ending-style=${o(this,St,hg)}
5616
+ @click=${o(this,ug)}
5617
5617
  ></div>
5618
5618
  <div
5619
5619
  class="MobilePanel"
@@ -5622,8 +5622,8 @@ label, legend, caption, figcaption, th, td {
5622
5622
  tabindex="-1"
5623
5623
  style="--mobile-start-x: ${s}; --mobile-end-x: ${s}"
5624
5624
  ?data-starting-style=${o(this,St,U1)}
5625
- ?data-ending-style=${o(this,St,pg)}
5626
- @keydown=${o(this,ug)}
5625
+ ?data-ending-style=${o(this,St,hg)}
5626
+ @keydown=${o(this,mg)}
5627
5627
  >
5628
5628
  <slot></slot>
5629
5629
  </div>
@@ -5639,7 +5639,7 @@ label, legend, caption, figcaption, th, td {
5639
5639
  <slot></slot>
5640
5640
  </div>
5641
5641
  </div>
5642
- `}};zr=A(FN),N1=new WeakMap,St=new WeakSet,H1=new WeakMap,F1=new WeakMap,pn=new WeakMap,VN=async function(){h(this,St,!0,P1),h(this,St,!0,q1),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,St,!1,q1)},PN=function(){h(this,St,!0,j1);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){p(this,St,K1).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,St,K1).call(this))},l=()=>{s()};t.addEventListener("transitionend",l);let d=setTimeout(s,250)},K1=function(){h(this,St,!1,j1),h(this,St,!1,P1)},hg=new WeakMap,ug=new WeakMap,D1=c(zr,20,"#mounted",BN,St,N1),cg=D1.get,P1=D1.set,B1=c(zr,20,"#startingStyle",HN,St,H1),U1=B1.get,q1=B1.set,V1=c(zr,20,"#endingStyle",DN,St,F1),pg=V1.get,j1=V1.set,T(zr,us),v(us,"tagName","dui-sidebar"),v(us,"styles",[w,fU]);var gU=b`
5642
+ `}};zr=A(FN),N1=new WeakMap,St=new WeakSet,H1=new WeakMap,F1=new WeakMap,pn=new WeakMap,VN=async function(){h(this,St,!0,P1),h(this,St,!0,q1),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,St,!1,q1)},PN=function(){h(this,St,!0,j1);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){p(this,St,K1).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,St,K1).call(this))},l=()=>{s()};t.addEventListener("transitionend",l);let d=setTimeout(s,250)},K1=function(){h(this,St,!1,j1),h(this,St,!1,P1)},ug=new WeakMap,mg=new WeakMap,D1=c(zr,20,"#mounted",BN,St,N1),pg=D1.get,P1=D1.set,B1=c(zr,20,"#startingStyle",HN,St,H1),U1=B1.get,q1=B1.set,V1=c(zr,20,"#endingStyle",DN,St,F1),hg=V1.get,j1=V1.set,T(zr,us),v(us,"tagName","dui-sidebar"),v(us,"styles",[w,fU]);var gU=b`
5643
5643
  :host {
5644
5644
  display: inline-block;
5645
5645
  }
@@ -5777,7 +5777,7 @@ label, legend, caption, figcaption, th, td {
5777
5777
  :host([disabled]) .Button {
5778
5778
  pointer-events: none;
5779
5779
  }
5780
- `,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,mg,zo,J1,fg,YN,GN,Q1,go=class extends(WN=x,KN=[u({type:Boolean,reflect:!0})],jN=[u({type:Boolean,reflect:!0})],qN=[u()],UN=[u()],WN){constructor(){super(...arguments);a(this,zo);a(this,W1,n(fo,8,this,!1)),n(fo,11,this);a(this,Y1,n(fo,12,this,!1)),n(fo,15,this);a(this,G1,n(fo,16,this,"")),n(fo,19,this);a(this,X1,n(fo,20,this)),n(fo,23,this);a(this,mg,new q(this,{context:Lr,subscribe:!0}));a(this,fg,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return o(this,zo,J1)&&this.tooltip?f`
5780
+ `,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,fg,zo,J1,gg,YN,GN,Q1,go=class extends(WN=x,KN=[u({type:Boolean,reflect:!0})],jN=[u({type:Boolean,reflect:!0})],qN=[u()],UN=[u()],WN){constructor(){super(...arguments);a(this,zo);a(this,W1,n(fo,8,this,!1)),n(fo,11,this);a(this,Y1,n(fo,12,this,!1)),n(fo,15,this);a(this,G1,n(fo,16,this,"")),n(fo,19,this);a(this,X1,n(fo,20,this)),n(fo,23,this);a(this,fg,new q(this,{context:Lr,subscribe:!0}));a(this,gg,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return o(this,zo,J1)&&this.tooltip?f`
5781
5781
  <dui-tooltip>
5782
5782
  <dui-tooltip-trigger>
5783
5783
  ${p(this,zo,Q1).call(this)}
@@ -5786,7 +5786,7 @@ label, legend, caption, figcaption, th, td {
5786
5786
  ${this.tooltip}
5787
5787
  </dui-tooltip-popup>
5788
5788
  </dui-tooltip>
5789
- `:p(this,zo,Q1).call(this)}};fo=A(WN),W1=new WeakMap,Y1=new WeakMap,G1=new WeakMap,X1=new WeakMap,mg=new WeakMap,zo=new WeakSet,J1=function(){let t=o(this,mg).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},fg=new WeakMap,YN=function(){return f`
5789
+ `:p(this,zo,Q1).call(this)}};fo=A(WN),W1=new WeakMap,Y1=new WeakMap,G1=new WeakMap,X1=new WeakMap,fg=new WeakMap,zo=new WeakSet,J1=function(){let t=o(this,fg).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},gg=new WeakMap,YN=function(){return f`
5790
5790
  <button
5791
5791
  class="Button"
5792
5792
  ?disabled=${this.disabled}
@@ -5802,7 +5802,7 @@ label, legend, caption, figcaption, th, td {
5802
5802
  href=${this.href??L}
5803
5803
  aria-disabled=${this.disabled||L}
5804
5804
  ?data-active=${this.active}
5805
- @click=${o(this,fg)}
5805
+ @click=${o(this,gg)}
5806
5806
  >
5807
5807
  <slot name="icon"></slot>
5808
5808
  <span class="Label"><slot></slot></span>
@@ -6153,14 +6153,14 @@ label, legend, caption, figcaption, th, td {
6153
6153
  white-space: nowrap;
6154
6154
  border: 0;
6155
6155
  }
6156
- `,XN,JN,QN,ZN,tD,eD,oD,rD,sD,iD,nD,Fp,yt,Z1,t$,e$,o$,r$,s$,i$,n$,a$,l$,d$,gg,c$,Ft,aD,lD,dD,ud,p$,vg,fd,gd,bg,xg,yg,ce=class extends(nD=x,iD=[u({type:Number})],sD=[u({type:Number})],rD=[u({type:Number})],oD=[u({type:Number})],eD=[u({type:Boolean,reflect:!0})],tD=[u()],ZN=[u({reflect:!0})],QN=[u({reflect:!0})],JN=[u({type:Number})],XN=[C()],nD){constructor(){super();a(this,Ft);a(this,Fp);a(this,Z1,n(yt,8,this,0)),n(yt,11,this);a(this,t$,n(yt,12,this,0)),n(yt,15,this);a(this,e$,n(yt,16,this,100)),n(yt,19,this);a(this,o$,n(yt,20,this,1)),n(yt,23,this);a(this,r$,n(yt,24,this,!1)),n(yt,27,this);a(this,s$,n(yt,28,this,"")),n(yt,31,this);a(this,i$,n(yt,32,this,"")),n(yt,35,this);a(this,n$,n(yt,36,this,"")),n(yt,39,this);a(this,a$,n(yt,40,this)),n(yt,43,this);a(this,l$,n(yt,44,this,!1)),n(yt,47,this);a(this,vg,t=>{if(this.disabled)return;t.preventDefault();let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e}))),document.addEventListener("pointermove",o(this,fd)),document.addEventListener("pointerup",o(this,gd))});a(this,fd,t=>{o(this,Ft,gg)||h(this,Ft,!0,c$);let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})))});a(this,gd,()=>{let t=o(this,Ft,gg);h(this,Ft,!1,c$),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd)),this.dispatchEvent(Bp({value:this.value}))});a(this,bg,t=>{if(this.disabled)return;let e=this.value,s=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+s);break;case"PageDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-s);break;case"Home":t.preventDefault(),e=this.min;break;case"End":t.preventDefault(),e=this.max;break;default:return}e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})),this.dispatchEvent(Bp({value:e})))});a(this,xg,t=>{let e=t.target,s=parseFloat(e.value);!isNaN(s)&&s!==this.value&&(this.value=s,this.dispatchEvent(md({value:s})))});a(this,yg,()=>{this.dispatchEvent(Bp({value:this.value}))});h(this,Fp,this.attachInternals())}willUpdate(){o(this,Fp).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd))}render(){return f`
6156
+ `,XN,JN,QN,ZN,tD,eD,oD,rD,sD,iD,nD,Fp,wt,Z1,t$,e$,o$,r$,s$,i$,n$,a$,l$,d$,vg,c$,Ft,aD,lD,dD,ud,p$,bg,fd,gd,xg,yg,wg,ce=class extends(nD=x,iD=[u({type:Number})],sD=[u({type:Number})],rD=[u({type:Number})],oD=[u({type:Number})],eD=[u({type:Boolean,reflect:!0})],tD=[u()],ZN=[u({reflect:!0})],QN=[u({reflect:!0})],JN=[u({type:Number})],XN=[C()],nD){constructor(){super();a(this,Ft);a(this,Fp);a(this,Z1,n(wt,8,this,0)),n(wt,11,this);a(this,t$,n(wt,12,this,0)),n(wt,15,this);a(this,e$,n(wt,16,this,100)),n(wt,19,this);a(this,o$,n(wt,20,this,1)),n(wt,23,this);a(this,r$,n(wt,24,this,!1)),n(wt,27,this);a(this,s$,n(wt,28,this,"")),n(wt,31,this);a(this,i$,n(wt,32,this,"")),n(wt,35,this);a(this,n$,n(wt,36,this,"")),n(wt,39,this);a(this,a$,n(wt,40,this)),n(wt,43,this);a(this,l$,n(wt,44,this,!1)),n(wt,47,this);a(this,bg,t=>{if(this.disabled)return;t.preventDefault();let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e}))),document.addEventListener("pointermove",o(this,fd)),document.addEventListener("pointerup",o(this,gd))});a(this,fd,t=>{o(this,Ft,vg)||h(this,Ft,!0,c$);let e=p(this,Ft,p$).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})))});a(this,gd,()=>{let t=o(this,Ft,vg);h(this,Ft,!1,c$),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd)),this.dispatchEvent(Bp({value:this.value}))});a(this,xg,t=>{if(this.disabled)return;let e=this.value,s=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value+s);break;case"PageDown":t.preventDefault(),e=p(this,Ft,ud).call(this,this.value-s);break;case"Home":t.preventDefault(),e=this.min;break;case"End":t.preventDefault(),e=this.max;break;default:return}e!==this.value&&(this.value=e,this.dispatchEvent(md({value:e})),this.dispatchEvent(Bp({value:e})))});a(this,yg,t=>{let e=t.target,s=parseFloat(e.value);!isNaN(s)&&s!==this.value&&(this.value=s,this.dispatchEvent(md({value:s})))});a(this,wg,()=>{this.dispatchEvent(Bp({value:this.value}))});h(this,Fp,this.attachInternals())}willUpdate(){o(this,Fp).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",o(this,fd)),document.removeEventListener("pointerup",o(this,gd))}render(){return f`
6157
6157
  <div
6158
6158
  part="root"
6159
6159
  role="group"
6160
6160
  ?data-disabled=${this.disabled}
6161
- ?data-dragging=${o(this,Ft,gg)}
6161
+ ?data-dragging=${o(this,Ft,vg)}
6162
6162
  style="--slider-progress: ${o(this,Ft,aD)}%"
6163
- @pointerdown=${o(this,vg)}
6163
+ @pointerdown=${o(this,bg)}
6164
6164
  >
6165
6165
  <span part="label">${this.label}</span>
6166
6166
 
@@ -6173,7 +6173,7 @@ label, legend, caption, figcaption, th, td {
6173
6173
  <div
6174
6174
  part="thumb"
6175
6175
  tabindex=${this.disabled?-1:0}
6176
- @keydown=${o(this,bg)}
6176
+ @keydown=${o(this,xg)}
6177
6177
  ></div>
6178
6178
  </div>
6179
6179
 
@@ -6190,11 +6190,11 @@ label, legend, caption, figcaption, th, td {
6190
6190
  aria-valuemin=${this.min}
6191
6191
  aria-valuemax=${this.max}
6192
6192
  aria-label=${this.label||"Slider"}
6193
- @input=${o(this,xg)}
6194
- @change=${o(this,yg)}
6193
+ @input=${o(this,yg)}
6194
+ @change=${o(this,wg)}
6195
6195
  />
6196
6196
  </div>
6197
- `}};yt=A(nD),Fp=new WeakMap,Z1=new WeakMap,t$=new WeakMap,e$=new WeakMap,o$=new WeakMap,r$=new WeakMap,s$=new WeakMap,i$=new WeakMap,n$=new WeakMap,a$=new WeakMap,l$=new WeakMap,Ft=new WeakSet,aD=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},lD=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},dD=function(){let t=this.precision??o(this,Ft,lD);return this.value.toFixed(t)},ud=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},p$=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let s=e.getBoundingClientRect(),l=(t-s.left)/s.width,d=this.min+l*(this.max-this.min);return p(this,Ft,ud).call(this,d)},vg=new WeakMap,fd=new WeakMap,gd=new WeakMap,bg=new WeakMap,xg=new WeakMap,yg=new WeakMap,c(yt,4,"value",iD,ce,Z1),c(yt,4,"min",sD,ce,t$),c(yt,4,"max",rD,ce,e$),c(yt,4,"step",oD,ce,o$),c(yt,4,"disabled",eD,ce,r$),c(yt,4,"name",tD,ce,s$),c(yt,4,"label",ZN,ce,i$),c(yt,4,"unit",QN,ce,n$),c(yt,4,"precision",JN,ce,a$),d$=c(yt,20,"#dragging",XN,Ft,l$),gg=d$.get,c$=d$.set,T(yt,ce),v(ce,"tagName","dui-slider"),v(ce,"formAssociated",!0),v(ce,"styles",[w,VU]);var PU=k`
6197
+ `}};wt=A(nD),Fp=new WeakMap,Z1=new WeakMap,t$=new WeakMap,e$=new WeakMap,o$=new WeakMap,r$=new WeakMap,s$=new WeakMap,i$=new WeakMap,n$=new WeakMap,a$=new WeakMap,l$=new WeakMap,Ft=new WeakSet,aD=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},lD=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},dD=function(){let t=this.precision??o(this,Ft,lD);return this.value.toFixed(t)},ud=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},p$=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let s=e.getBoundingClientRect(),l=(t-s.left)/s.width,d=this.min+l*(this.max-this.min);return p(this,Ft,ud).call(this,d)},bg=new WeakMap,fd=new WeakMap,gd=new WeakMap,xg=new WeakMap,yg=new WeakMap,wg=new WeakMap,c(wt,4,"value",iD,ce,Z1),c(wt,4,"min",sD,ce,t$),c(wt,4,"max",rD,ce,e$),c(wt,4,"step",oD,ce,o$),c(wt,4,"disabled",eD,ce,r$),c(wt,4,"name",tD,ce,s$),c(wt,4,"label",ZN,ce,i$),c(wt,4,"unit",QN,ce,n$),c(wt,4,"precision",JN,ce,a$),d$=c(wt,20,"#dragging",XN,Ft,l$),vg=d$.get,c$=d$.set,T(wt,ce),v(ce,"tagName","dui-slider"),v(ce,"formAssociated",!0),v(ce,"styles",[w,VU]);var PU=k`
6198
6198
  :host {
6199
6199
  --slider-track-height: var(--space-1_5);
6200
6200
  --slider-thumb-size: var(--space-4_5);
@@ -6402,7 +6402,7 @@ label, legend, caption, figcaption, th, td {
6402
6402
  from { transform: rotate(0deg); }
6403
6403
  to { transform: rotate(360deg); }
6404
6404
  }
6405
- `,cD,pD,wg,h$,kg,hD,Or=class extends(pD=x,cD=[u({reflect:!0})],pD){constructor(){super(...arguments);a(this,kg);a(this,h$,n(wg,8,this,"")),n(wg,11,this)}render(){return f`${p(this,kg,hD).call(this)}`}};wg=A(pD),h$=new WeakMap,kg=new WeakSet,hD=function(){switch(this.variant){case"lucide-loader":return qU;case"lucide-loader-circle":return jU;default:return UU}},c(wg,4,"variant",cD,Or,h$),T(wg,Or),v(Or,"tagName","dui-spinner"),v(Or,"styles",[w,KU]);var WU=k`
6405
+ `,cD,pD,kg,h$,Eg,hD,Or=class extends(pD=x,cD=[u({reflect:!0})],pD){constructor(){super(...arguments);a(this,Eg);a(this,h$,n(kg,8,this,"")),n(kg,11,this)}render(){return f`${p(this,Eg,hD).call(this)}`}};kg=A(pD),h$=new WeakMap,Eg=new WeakSet,hD=function(){switch(this.variant){case"lucide-loader":return qU;case"lucide-loader-circle":return jU;default:return UU}},c(kg,4,"variant",cD,Or,h$),T(kg,Or),v(Or,"tagName","dui-spinner"),v(Or,"styles",[w,KU]);var WU=k`
6406
6406
  :host {
6407
6407
  --spinner-size: var(--component-height-xxs);
6408
6408
  --spinner-color: currentColor;
@@ -6424,7 +6424,7 @@ label, legend, caption, figcaption, th, td {
6424
6424
  animation-duration: 3s;
6425
6425
  }
6426
6426
  }
6427
- `,bd=class extends Or{static styles=[...Or.styles,WU]};customElements.define(bd.tagName,bd);var Eg=M("dui-action",{bubbles:!0,composed:!0}),YU=b`
6427
+ `,bd=class extends Or{static styles=[...Or.styles,WU]};customElements.define(bd.tagName,bd);var Cg=M("dui-action",{bubbles:!0,composed:!0}),YU=b`
6428
6428
  :host {
6429
6429
  display: inline-block;
6430
6430
  }
@@ -6483,7 +6483,7 @@ label, legend, caption, figcaption, th, td {
6483
6483
  .Popup[data-ending-style] {
6484
6484
  opacity: 0;
6485
6485
  }
6486
- `],uD,mD,fD,gD,vD,bD,xD,pe,u$,m$,f$,g$,v$,b$,x$,hn,js,Qt,Vp,Vt,y$,Cg,$g,Tg,Sg,Ag,_g,yD,to=class extends(xD=x,bD=[u({reflect:!0})],vD=[u({reflect:!0})],gD=[u({reflect:!0})],fD=[u({attribute:"popup-min-width"})],mD=[u({type:Boolean,reflect:!0})],uD=[C()],xD){constructor(){super(...arguments);a(this,Qt);a(this,u$,n(pe,8,this,"")),n(pe,11,this);a(this,m$,n(pe,12,this,"")),n(pe,15,this);a(this,f$,n(pe,16,this,"")),n(pe,19,this);a(this,g$,n(pe,20,this,"var(--space-28)")),n(pe,23,this);a(this,v$,n(pe,24,this,!1)),n(pe,27,this);a(this,b$,n(pe,28,this,-1)),n(pe,31,this);a(this,Vp,`split-menu-${crypto.randomUUID().slice(0,8)}`);a(this,Vt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:XU,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Qt,-1,js)},onClose:()=>{h(this,Qt,-1,js)},renderPopup:t=>f`
6486
+ `],uD,mD,fD,gD,vD,bD,xD,pe,u$,m$,f$,g$,v$,b$,x$,hn,js,Qt,Vp,Vt,y$,$g,Tg,Sg,Ag,_g,Rg,yD,to=class extends(xD=x,bD=[u({reflect:!0})],vD=[u({reflect:!0})],gD=[u({reflect:!0})],fD=[u({attribute:"popup-min-width"})],mD=[u({type:Boolean,reflect:!0})],uD=[C()],xD){constructor(){super(...arguments);a(this,Qt);a(this,u$,n(pe,8,this,"")),n(pe,11,this);a(this,m$,n(pe,12,this,"")),n(pe,15,this);a(this,f$,n(pe,16,this,"")),n(pe,19,this);a(this,g$,n(pe,20,this,"var(--space-28)")),n(pe,23,this);a(this,v$,n(pe,24,this,!1)),n(pe,27,this);a(this,b$,n(pe,28,this,-1)),n(pe,31,this);a(this,Vp,`split-menu-${crypto.randomUUID().slice(0,8)}`);a(this,Vt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:XU,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Qt,-1,js)},onClose:()=>{h(this,Qt,-1,js)},renderPopup:t=>f`
6487
6487
  <div
6488
6488
  class="Popup"
6489
6489
  style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
@@ -6494,19 +6494,19 @@ label, legend, caption, figcaption, th, td {
6494
6494
  class="Menu"
6495
6495
  id="${o(this,Vp)}"
6496
6496
  role="menu"
6497
- @click="${o(this,Ag)}"
6498
- @mousemove="${o(this,_g)}"
6497
+ @click="${o(this,_g)}"
6498
+ @mousemove="${o(this,Rg)}"
6499
6499
  ></div>
6500
6500
  </div>
6501
- `}));a(this,Cg,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Eg({}))});a(this,$g,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Eg({})))});a(this,Tg,t=>{t.stopPropagation(),!this.disabled&&(o(this,Vt).isOpen?o(this,Vt).close():o(this,Vt).open())});a(this,Sg,t=>{if(this.disabled)return;let e=o(this,Qt,y$);switch(t.key){case"Enter":case" ":{if(o(this,Vt).isOpen&&o(this,Qt,hn)>=0){t.preventDefault();let s=e[o(this,Qt,hn)];s&&!s.disabled&&(s.click(),o(this,Vt).close())}else o(this,Vt).isOpen||(t.preventDefault(),o(this,Vt).open());break}case"ArrowDown":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Qt,s,js)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Qt,s,js)}break}case"Home":{if(o(this,Vt).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Qt,s,js)}break}case"End":{if(o(this,Vt).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Qt,s,js);break}}break}case"Escape":{o(this,Vt).isOpen&&(t.preventDefault(),o(this,Vt).close(),p(this,Qt,yD).call(this));break}case"Tab":{o(this,Vt).isOpen&&o(this,Vt).close();break}}});a(this,Ag,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Vt).close()});a(this,_g,()=>{o(this,Qt,hn)>=0&&h(this,Qt,-1,js)})}updated(){let t=o(this,Qt,y$);for(let e=0;e<t.length;e++)e===o(this,Qt,hn)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
6501
+ `}));a(this,$g,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Cg({}))});a(this,Tg,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Cg({})))});a(this,Sg,t=>{t.stopPropagation(),!this.disabled&&(o(this,Vt).isOpen?o(this,Vt).close():o(this,Vt).open())});a(this,Ag,t=>{if(this.disabled)return;let e=o(this,Qt,y$);switch(t.key){case"Enter":case" ":{if(o(this,Vt).isOpen&&o(this,Qt,hn)>=0){t.preventDefault();let s=e[o(this,Qt,hn)];s&&!s.disabled&&(s.click(),o(this,Vt).close())}else o(this,Vt).isOpen||(t.preventDefault(),o(this,Vt).open());break}case"ArrowDown":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Qt,s,js)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Qt,s,js)}break}case"Home":{if(o(this,Vt).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Qt,s,js)}break}case"End":{if(o(this,Vt).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Qt,s,js);break}}break}case"Escape":{o(this,Vt).isOpen&&(t.preventDefault(),o(this,Vt).close(),p(this,Qt,yD).call(this));break}case"Tab":{o(this,Vt).isOpen&&o(this,Vt).close();break}}});a(this,_g,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Vt).close()});a(this,Rg,()=>{o(this,Qt,hn)>=0&&h(this,Qt,-1,js)})}updated(){let t=o(this,Qt,y$);for(let e=0;e<t.length;e++)e===o(this,Qt,hn)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
6502
6502
  <div class="Root" part="root">
6503
6503
  <button
6504
6504
  class="Action"
6505
6505
  part="action"
6506
6506
  type="button"
6507
6507
  ?disabled="${this.disabled}"
6508
- @click="${o(this,Cg)}"
6509
- @keydown="${o(this,$g)}"
6508
+ @click="${o(this,$g)}"
6509
+ @keydown="${o(this,Tg)}"
6510
6510
  >
6511
6511
  <slot></slot>
6512
6512
  </button>
@@ -6522,8 +6522,8 @@ label, legend, caption, figcaption, th, td {
6522
6522
  aria-expanded="${o(this,Vt).isOpen}"
6523
6523
  aria-controls="${o(this,Vp)}"
6524
6524
  ?data-open="${o(this,Vt).isOpen||L}"
6525
- @click="${o(this,Tg)}"
6526
- @keydown="${o(this,Sg)}"
6525
+ @click="${o(this,Sg)}"
6526
+ @keydown="${o(this,Ag)}"
6527
6527
  >
6528
6528
  <slot name="icon">
6529
6529
  <dui-icon>
@@ -6534,7 +6534,7 @@ label, legend, caption, figcaption, th, td {
6534
6534
  </slot>
6535
6535
  </button>
6536
6536
  </div>
6537
- `}};pe=A(xD),u$=new WeakMap,m$=new WeakMap,f$=new WeakMap,g$=new WeakMap,v$=new WeakMap,b$=new WeakMap,Qt=new WeakSet,Vp=new WeakMap,Vt=new WeakMap,y$=function(){return[...(o(this,Vt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Cg=new WeakMap,$g=new WeakMap,Tg=new WeakMap,Sg=new WeakMap,Ag=new WeakMap,_g=new WeakMap,yD=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},c(pe,4,"variant",bD,to,u$),c(pe,4,"appearance",vD,to,m$),c(pe,4,"size",gD,to,f$),c(pe,4,"popupMinWidth",fD,to,g$),c(pe,4,"disabled",mD,to,v$),x$=c(pe,20,"#highlightedIndex",uD,Qt,b$),hn=x$.get,js=x$.set,T(pe,to),v(to,"tagName","dui-split-button"),v(to,"styles",[w,YU,GU]);var JU=k`
6537
+ `}};pe=A(xD),u$=new WeakMap,m$=new WeakMap,f$=new WeakMap,g$=new WeakMap,v$=new WeakMap,b$=new WeakMap,Qt=new WeakSet,Vp=new WeakMap,Vt=new WeakMap,y$=function(){return[...(o(this,Vt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},$g=new WeakMap,Tg=new WeakMap,Sg=new WeakMap,Ag=new WeakMap,_g=new WeakMap,Rg=new WeakMap,yD=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},c(pe,4,"variant",bD,to,u$),c(pe,4,"appearance",vD,to,m$),c(pe,4,"size",gD,to,f$),c(pe,4,"popupMinWidth",fD,to,g$),c(pe,4,"disabled",mD,to,v$),x$=c(pe,20,"#highlightedIndex",uD,Qt,b$),hn=x$.get,js=x$.set,T(pe,to),v(to,"tagName","dui-split-button"),v(to,"styles",[w,YU,GU]);var JU=k`
6538
6538
  /* =================================================================
6539
6539
  * Reuses the button's two-axis variant system:
6540
6540
  * variant → semantic intent (neutral, primary, danger)
@@ -6873,7 +6873,7 @@ label, legend, caption, figcaption, th, td {
6873
6873
  [part="root"][data-orientation="vertical"] {
6874
6874
  flex-direction: column;
6875
6875
  }
6876
- `,ZU="DUI-SPLITTER-PANEL",tq="DUI-SPLITTER-HANDLE";function w$(i){if(i.length===0)return[];let t=i.map(d=>d.defaultSize),e=t.reduce((d,m)=>d+(m??0),0),s=t.filter(d=>d===void 0).length,l;if(s===0)l=t.map(d=>d??0);else{let m=Math.max(0,100-e)/s;l=t.map(g=>g??m)}return Pp(l)}function Pp(i){let r=i.length;if(r===0)return[];let t=i.reduce((e,s)=>e+s,0);if(t<=0){let e=100/r;return i.map(()=>e)}return i.map(e=>e*100/t)}function H$(i,r){return r.has(i.id)?0:i.minSize}function eq(i,r,t,e,s,l){let d=[...i],m=t,g=e;if(m<0||g<0||m>=d.length||g>=d.length)return d;let E=H$(r[m],l),$=H$(r[g],l),y=d[m]+s,S=Math.min(r[m].maxSize,Math.max(E,y))-d[m],O=d[g]-S;return O<$?S=d[g]-$:O>r[g].maxSize&&(S=d[g]-r[g].maxSize),d[m]+=S,d[g]-=S,d}function un(i,r,t){if(i.length===0)return[];let s=i.map((l,d)=>t.has(r[d].id)?0:Math.min(r[d].maxSize,Math.max(r[d].minSize,l)));for(let l=0;l<10;l++){let m=100-s.reduce((_,S)=>_+S,0);if(Math.abs(m)<.001)break;let g=s.map((_,S)=>{if(t.has(r[S].id))return{i:S,slack:0};let O=m>0?r[S].maxSize-_:_-r[S].minSize;return{i:S,slack:O}}).filter(({slack:_})=>_>1e-4);if(g.length===0)break;let E=g.reduce((_,S)=>_+S.slack,0),$=Math.min(Math.abs(m),E),y=Math.sign(m);for(let{i:_,slack:S}of g)s[_]+=S/E*$*y}return s}var wD,kD,ED,CD,$D,TD,SD,AD,_D,RD,ID,LD,zD,nt,k$,E$,C$,$$,T$,S$,A$,_$,R$,Rg,oq,R,I$,L$,wd,Ig,Ed,Oo,At,Ws,z$,O$,B$,F$,Jo,Qo,Cd,zg,ut,ms,gn,Mo,M$,N$,OD,V$,vo,Og,Mg,$d,Ng,Dg,Hg,Bg,qp,vn,mn,Up,jp,Fg,P$,Ks,fn,U$,q$,MD,ND,DD,j$,Vg,Pg,D$,Lg,Mr,HD,Td,kd,K$,W$,Y$,Kp,Re=class extends(zD=x,LD=[u({type:String,reflect:!0})],ID=[u({type:Array})],RD=[u({type:Array,attribute:"default-value"})],_D=[u({type:Boolean,reflect:!0})],AD=[u({type:Number,attribute:"keyboard-step"})],SD=[u({type:Number,attribute:"keyboard-step-large"})],TD=[u({type:String,attribute:"auto-save-id"})],$D=[vR("slot")],CD=[C()],ED=[C()],kD=[C()],wD=[lt({context:yd}),C()],zD){constructor(){super(...arguments);a(this,R);a(this,k$,n(nt,8,this,"horizontal")),n(nt,11,this);a(this,E$,n(nt,12,this)),n(nt,15,this);a(this,C$,n(nt,16,this,[])),n(nt,19,this);a(this,$$,n(nt,20,this,!1)),n(nt,23,this);a(this,T$,n(nt,24,this,10)),n(nt,27,this);a(this,S$,n(nt,28,this,25)),n(nt,31,this);a(this,A$,n(nt,32,this)),n(nt,35,this);a(this,_$,n(nt,36,this)),n(nt,39,this);a(this,I$,n(nt,40,this,[])),n(nt,43,this);a(this,Ed,!1);a(this,Oo,[]);a(this,At,new Set);a(this,Ws,new Map);a(this,z$,n(nt,44,this,!1)),n(nt,47,this);a(this,Jo,new Map);a(this,Qo,new Map);a(this,Cd,new WeakMap);a(this,zg,0);a(this,ut,[]);a(this,ms,new Map);a(this,gn,new Map);a(this,Mo,null);a(this,M$,n(nt,48,this)),n(nt,51,this);a(this,vo,null);a(this,Og,t=>{o(this,Jo).set(t.id,t),p(this,R,kd).call(this)});a(this,Mg,t=>{o(this,Jo).delete(t),p(this,R,kd).call(this)});a(this,$d,t=>{let e=o(this,ut).indexOf(t);return e===-1?0:p(this,R,Mr).call(this)[e]??0});a(this,Ng,t=>{let e=o(this,Cd).get(t.el);return e||(e=`h${Es(this,zg)._++}`,o(this,Cd).set(t.el,e)),o(this,Qo).set(e,t),p(this,R,kd).call(this),e});a(this,Dg,t=>{o(this,Qo).delete(t),p(this,R,kd).call(this)});a(this,Hg,(t,e)=>{let s=o(this,Qo).get(t);s&&(o(this,Qo).set(t,{...s,...e}),this.requestUpdate())});a(this,Bg,(t,e)=>{if(this.disabled)return;let s=o(this,Qo).get(t);if(!s||s.disabled)return;let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return;let m=this.getBoundingClientRect(),g=this.orientation==="horizontal",E=g?m.width:m.height;if(E<=0)return;let $=0;for(let _ of o(this,Qo).values()){let S=_.el.getBoundingClientRect();$+=g?S.width:S.height}let y=E-$;y<=0||(h(this,Mo,{handleId:t,startSizes:[...p(this,R,Mr).call(this)],startCoord:g?e.clientX:e.clientY,rootSize:y,pointerId:e.pointerId,active:!1}),window.addEventListener("pointermove",o(this,qp)),window.addEventListener("pointerup",o(this,vn)),window.addEventListener("pointercancel",o(this,vn)))});a(this,qp,t=>{let e=o(this,Mo);if(!e||t.pointerId!==e.pointerId)return;if(this.disabled){p(this,R,mn).call(this);return}let d=(this.orientation==="horizontal"?t.clientX:t.clientY)-e.startCoord;if(!e.active){if(Math.abs(d)<1)return;e.active=!0,h(this,R,!0,F$),h(this,R,e.handleId,V$)}let m=d/e.rootSize*100,g=p(this,R,P$).call(this,e.handleId,e.startSizes,m);g&&p(this,R,Ks).call(this,g)});a(this,vn,t=>{let e=o(this,Mo);!e||t.pointerId!==e.pointerId||p(this,R,mn).call(this)});a(this,jp,(t,e)=>{if(this.disabled)return;let s=o(this,Qo).get(t);if(!s||s.disabled||!Number.isFinite(e)||e===0)return;let l=[...p(this,R,Mr).call(this)],d=p(this,R,P$).call(this,t,l,e);d&&(p(this,R,Ks).call(this,d),p(this,R,U$).call(this,l))});a(this,Fg,t=>{if(this.disabled)return;let e=o(this,Qo).get(t);if(!e||e.disabled)return;let s=o(this,ms).get(t);if(!s)return;let l=o(this,ut).indexOf(s);if(l===-1||l>=o(this,Oo).length)return;let d=p(this,R,Mr).call(this),g=o(this,Oo)[l]-d[l];Math.abs(g)<.01||o(this,jp).call(this,t,g)});a(this,Vg,t=>o(this,At).has(t));a(this,Pg,t=>{let e=o(this,ms).get(t);if(!e)return null;let s=o(this,Jo).get(e);if(!s)return null;let l=o(this,$d).call(this,e);return{valueNow:Math.round(l),valueMin:s.minSize,valueMax:s.maxSize,controls:e}});a(this,D$,n(nt,52,this,p(this,R,Lg).call(this))),n(nt,55,this);a(this,Td,!1);a(this,Kp,()=>{p(this,R,kd).call(this)})}getSizes(){return[...p(this,R,Mr).call(this)]}getPanelSize(t){return o(this,$d).call(this,t)}isPanelCollapsed(t){return o(this,At).has(t)}setSizes(t){if(o(this,ut).length===0)return;if(t.length!==o(this,ut).length){console.warn(`[dui-splitter] setSizes: expected ${o(this,ut).length} sizes, got ${t.length}`);return}let e=p(this,R,Up).call(this);if(!e)return;let s=t.map((d,m)=>o(this,At).has(e[m].id)?0:d),l=un(Pp(s),e,o(this,At));p(this,R,Ks).call(this,l)}resetSizes(){if(o(this,ut).length===0)return;let t=p(this,R,Up).call(this);if(!t)return;o(this,Mo)!==null&&p(this,R,mn).call(this);for(let l of[...o(this,At)])p(this,R,fn).call(this,l,!1);let e=o(this,Oo).length===t.length?[...o(this,Oo)]:w$(t),s=un(e,t,o(this,At));p(this,R,Ks).call(this,s)}collapsePanel(t){if(o(this,ut).length===0||o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1){console.warn(`[dui-splitter] collapsePanel: unknown panel id "${t}"`);return}let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=[...p(this,R,Mr).call(this)],d=l[e];if(d<=0){p(this,R,fn).call(this,t,!0,s[e].defaultSize??100/s.length),p(this,R,Ks).call(this,un(l,s,o(this,At)));return}let m=[...l];m[e]=0;let g=e+1,E=e-1,$=y=>s[y].maxSize-l[y];if(g<s.length&&$(g)>=d-1e-4)m[g]=l[g]+d;else if(E>=0&&$(E)>=d-1e-4)m[E]=l[E]+d;else{let y=s.map((S,O)=>({i:O,slack:O===e?0:Math.max(0,$(O))})).filter(S=>S.slack>1e-4),_=y.reduce((S,O)=>S+O.slack,0);if(_>0){let S=Math.min(d,_);for(let{i:O,slack:B}of y)m[O]=l[O]+B/_*S}}p(this,R,fn).call(this,t,!0,d),p(this,R,Ks).call(this,un(m,s,o(this,At)))}expandPanel(t){if(o(this,ut).length===0||!o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1)return;let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=o(this,Ws).get(t)??s[e].defaultSize??100/s.length;p(this,R,fn).call(this,t,!1);let d=[...p(this,R,Mr).call(this)],m=[...d];m[e]=l;let g=e+1,E=e-1,$=_=>Math.max(0,d[_]-H$(s[_],o(this,At))),y=0;if(g<s.length&&$(g)>=l-1e-4)m[g]=d[g]-l,y=l;else if(E>=0&&$(E)>=l-1e-4)m[E]=d[E]-l,y=l;else{let _=s.map((B,j)=>({i:j,slack:j===e?0:$(j)})).filter(B=>B.slack>1e-4),S=_.reduce((B,j)=>B+j.slack,0),O=Math.min(l,S);for(let{i:B,slack:j}of _)m[B]=d[B]-j/S*O;y=O}y<l-1e-4&&(m[e]=y),p(this,R,Ks).call(this,un(m,s,o(this,At)))}connectedCallback(){super.connectedCallback(),this._ctx=p(this,R,Lg).call(this)}willUpdate(t){t.has("disabled")&&this.disabled&&o(this,Mo)!==null&&p(this,R,mn).call(this),this._ctx=p(this,R,Lg).call(this)}firstUpdated(){o(this,R,Rg)?.addEventListener("slotchange",o(this,Kp)),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),o(this,R,Rg)?.removeEventListener("slotchange",o(this,Kp)),o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null))}render(){return f`
6876
+ `,ZU="DUI-SPLITTER-PANEL",tq="DUI-SPLITTER-HANDLE";function w$(i){if(i.length===0)return[];let t=i.map(d=>d.defaultSize),e=t.reduce((d,m)=>d+(m??0),0),s=t.filter(d=>d===void 0).length,l;if(s===0)l=t.map(d=>d??0);else{let m=Math.max(0,100-e)/s;l=t.map(g=>g??m)}return Pp(l)}function Pp(i){let r=i.length;if(r===0)return[];let t=i.reduce((e,s)=>e+s,0);if(t<=0){let e=100/r;return i.map(()=>e)}return i.map(e=>e*100/t)}function H$(i,r){return r.has(i.id)?0:i.minSize}function eq(i,r,t,e,s,l){let d=[...i],m=t,g=e;if(m<0||g<0||m>=d.length||g>=d.length)return d;let E=H$(r[m],l),$=H$(r[g],l),y=d[m]+s,S=Math.min(r[m].maxSize,Math.max(E,y))-d[m],O=d[g]-S;return O<$?S=d[g]-$:O>r[g].maxSize&&(S=d[g]-r[g].maxSize),d[m]+=S,d[g]-=S,d}function un(i,r,t){if(i.length===0)return[];let s=i.map((l,d)=>t.has(r[d].id)?0:Math.min(r[d].maxSize,Math.max(r[d].minSize,l)));for(let l=0;l<10;l++){let m=100-s.reduce((_,S)=>_+S,0);if(Math.abs(m)<.001)break;let g=s.map((_,S)=>{if(t.has(r[S].id))return{i:S,slack:0};let O=m>0?r[S].maxSize-_:_-r[S].minSize;return{i:S,slack:O}}).filter(({slack:_})=>_>1e-4);if(g.length===0)break;let E=g.reduce((_,S)=>_+S.slack,0),$=Math.min(Math.abs(m),E),y=Math.sign(m);for(let{i:_,slack:S}of g)s[_]+=S/E*$*y}return s}var wD,kD,ED,CD,$D,TD,SD,AD,_D,RD,ID,LD,zD,nt,k$,E$,C$,$$,T$,S$,A$,_$,R$,Ig,oq,R,I$,L$,wd,Lg,Ed,Oo,At,Ws,z$,O$,B$,F$,Jo,Qo,Cd,Og,ut,ms,gn,Mo,M$,N$,OD,V$,vo,Mg,Ng,$d,Dg,Hg,Bg,Fg,qp,vn,mn,Up,jp,Vg,P$,Ks,fn,U$,q$,MD,ND,DD,j$,Pg,Ug,D$,zg,Mr,HD,Td,kd,K$,W$,Y$,Kp,Re=class extends(zD=x,LD=[u({type:String,reflect:!0})],ID=[u({type:Array})],RD=[u({type:Array,attribute:"default-value"})],_D=[u({type:Boolean,reflect:!0})],AD=[u({type:Number,attribute:"keyboard-step"})],SD=[u({type:Number,attribute:"keyboard-step-large"})],TD=[u({type:String,attribute:"auto-save-id"})],$D=[vR("slot")],CD=[C()],ED=[C()],kD=[C()],wD=[lt({context:yd}),C()],zD){constructor(){super(...arguments);a(this,R);a(this,k$,n(nt,8,this,"horizontal")),n(nt,11,this);a(this,E$,n(nt,12,this)),n(nt,15,this);a(this,C$,n(nt,16,this,[])),n(nt,19,this);a(this,$$,n(nt,20,this,!1)),n(nt,23,this);a(this,T$,n(nt,24,this,10)),n(nt,27,this);a(this,S$,n(nt,28,this,25)),n(nt,31,this);a(this,A$,n(nt,32,this)),n(nt,35,this);a(this,_$,n(nt,36,this)),n(nt,39,this);a(this,I$,n(nt,40,this,[])),n(nt,43,this);a(this,Ed,!1);a(this,Oo,[]);a(this,At,new Set);a(this,Ws,new Map);a(this,z$,n(nt,44,this,!1)),n(nt,47,this);a(this,Jo,new Map);a(this,Qo,new Map);a(this,Cd,new WeakMap);a(this,Og,0);a(this,ut,[]);a(this,ms,new Map);a(this,gn,new Map);a(this,Mo,null);a(this,M$,n(nt,48,this)),n(nt,51,this);a(this,vo,null);a(this,Mg,t=>{o(this,Jo).set(t.id,t),p(this,R,kd).call(this)});a(this,Ng,t=>{o(this,Jo).delete(t),p(this,R,kd).call(this)});a(this,$d,t=>{let e=o(this,ut).indexOf(t);return e===-1?0:p(this,R,Mr).call(this)[e]??0});a(this,Dg,t=>{let e=o(this,Cd).get(t.el);return e||(e=`h${Es(this,Og)._++}`,o(this,Cd).set(t.el,e)),o(this,Qo).set(e,t),p(this,R,kd).call(this),e});a(this,Hg,t=>{o(this,Qo).delete(t),p(this,R,kd).call(this)});a(this,Bg,(t,e)=>{let s=o(this,Qo).get(t);s&&(o(this,Qo).set(t,{...s,...e}),this.requestUpdate())});a(this,Fg,(t,e)=>{if(this.disabled)return;let s=o(this,Qo).get(t);if(!s||s.disabled)return;let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return;let m=this.getBoundingClientRect(),g=this.orientation==="horizontal",E=g?m.width:m.height;if(E<=0)return;let $=0;for(let _ of o(this,Qo).values()){let S=_.el.getBoundingClientRect();$+=g?S.width:S.height}let y=E-$;y<=0||(h(this,Mo,{handleId:t,startSizes:[...p(this,R,Mr).call(this)],startCoord:g?e.clientX:e.clientY,rootSize:y,pointerId:e.pointerId,active:!1}),window.addEventListener("pointermove",o(this,qp)),window.addEventListener("pointerup",o(this,vn)),window.addEventListener("pointercancel",o(this,vn)))});a(this,qp,t=>{let e=o(this,Mo);if(!e||t.pointerId!==e.pointerId)return;if(this.disabled){p(this,R,mn).call(this);return}let d=(this.orientation==="horizontal"?t.clientX:t.clientY)-e.startCoord;if(!e.active){if(Math.abs(d)<1)return;e.active=!0,h(this,R,!0,F$),h(this,R,e.handleId,V$)}let m=d/e.rootSize*100,g=p(this,R,P$).call(this,e.handleId,e.startSizes,m);g&&p(this,R,Ks).call(this,g)});a(this,vn,t=>{let e=o(this,Mo);!e||t.pointerId!==e.pointerId||p(this,R,mn).call(this)});a(this,jp,(t,e)=>{if(this.disabled)return;let s=o(this,Qo).get(t);if(!s||s.disabled||!Number.isFinite(e)||e===0)return;let l=[...p(this,R,Mr).call(this)],d=p(this,R,P$).call(this,t,l,e);d&&(p(this,R,Ks).call(this,d),p(this,R,U$).call(this,l))});a(this,Vg,t=>{if(this.disabled)return;let e=o(this,Qo).get(t);if(!e||e.disabled)return;let s=o(this,ms).get(t);if(!s)return;let l=o(this,ut).indexOf(s);if(l===-1||l>=o(this,Oo).length)return;let d=p(this,R,Mr).call(this),g=o(this,Oo)[l]-d[l];Math.abs(g)<.01||o(this,jp).call(this,t,g)});a(this,Pg,t=>o(this,At).has(t));a(this,Ug,t=>{let e=o(this,ms).get(t);if(!e)return null;let s=o(this,Jo).get(e);if(!s)return null;let l=o(this,$d).call(this,e);return{valueNow:Math.round(l),valueMin:s.minSize,valueMax:s.maxSize,controls:e}});a(this,D$,n(nt,52,this,p(this,R,zg).call(this))),n(nt,55,this);a(this,Td,!1);a(this,Kp,()=>{p(this,R,kd).call(this)})}getSizes(){return[...p(this,R,Mr).call(this)]}getPanelSize(t){return o(this,$d).call(this,t)}isPanelCollapsed(t){return o(this,At).has(t)}setSizes(t){if(o(this,ut).length===0)return;if(t.length!==o(this,ut).length){console.warn(`[dui-splitter] setSizes: expected ${o(this,ut).length} sizes, got ${t.length}`);return}let e=p(this,R,Up).call(this);if(!e)return;let s=t.map((d,m)=>o(this,At).has(e[m].id)?0:d),l=un(Pp(s),e,o(this,At));p(this,R,Ks).call(this,l)}resetSizes(){if(o(this,ut).length===0)return;let t=p(this,R,Up).call(this);if(!t)return;o(this,Mo)!==null&&p(this,R,mn).call(this);for(let l of[...o(this,At)])p(this,R,fn).call(this,l,!1);let e=o(this,Oo).length===t.length?[...o(this,Oo)]:w$(t),s=un(e,t,o(this,At));p(this,R,Ks).call(this,s)}collapsePanel(t){if(o(this,ut).length===0||o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1){console.warn(`[dui-splitter] collapsePanel: unknown panel id "${t}"`);return}let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=[...p(this,R,Mr).call(this)],d=l[e];if(d<=0){p(this,R,fn).call(this,t,!0,s[e].defaultSize??100/s.length),p(this,R,Ks).call(this,un(l,s,o(this,At)));return}let m=[...l];m[e]=0;let g=e+1,E=e-1,$=y=>s[y].maxSize-l[y];if(g<s.length&&$(g)>=d-1e-4)m[g]=l[g]+d;else if(E>=0&&$(E)>=d-1e-4)m[E]=l[E]+d;else{let y=s.map((S,O)=>({i:O,slack:O===e?0:Math.max(0,$(O))})).filter(S=>S.slack>1e-4),_=y.reduce((S,O)=>S+O.slack,0);if(_>0){let S=Math.min(d,_);for(let{i:O,slack:B}of y)m[O]=l[O]+B/_*S}}p(this,R,fn).call(this,t,!0,d),p(this,R,Ks).call(this,un(m,s,o(this,At)))}expandPanel(t){if(o(this,ut).length===0||!o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1)return;let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=o(this,Ws).get(t)??s[e].defaultSize??100/s.length;p(this,R,fn).call(this,t,!1);let d=[...p(this,R,Mr).call(this)],m=[...d];m[e]=l;let g=e+1,E=e-1,$=_=>Math.max(0,d[_]-H$(s[_],o(this,At))),y=0;if(g<s.length&&$(g)>=l-1e-4)m[g]=d[g]-l,y=l;else if(E>=0&&$(E)>=l-1e-4)m[E]=d[E]-l,y=l;else{let _=s.map((B,j)=>({i:j,slack:j===e?0:$(j)})).filter(B=>B.slack>1e-4),S=_.reduce((B,j)=>B+j.slack,0),O=Math.min(l,S);for(let{i:B,slack:j}of _)m[B]=d[B]-j/S*O;y=O}y<l-1e-4&&(m[e]=y),p(this,R,Ks).call(this,un(m,s,o(this,At)))}connectedCallback(){super.connectedCallback(),this._ctx=p(this,R,zg).call(this)}willUpdate(t){t.has("disabled")&&this.disabled&&o(this,Mo)!==null&&p(this,R,mn).call(this),this._ctx=p(this,R,zg).call(this)}firstUpdated(){o(this,R,Ig)?.addEventListener("slotchange",o(this,Kp)),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),o(this,R,Ig)?.removeEventListener("slotchange",o(this,Kp)),o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null))}render(){return f`
6877
6877
  <div
6878
6878
  part="root"
6879
6879
  data-orientation=${this.orientation}
@@ -6882,7 +6882,7 @@ label, legend, caption, figcaption, th, td {
6882
6882
  >
6883
6883
  <slot></slot>
6884
6884
  </div>
6885
- `}};nt=A(zD),k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,T$=new WeakMap,S$=new WeakMap,A$=new WeakMap,_$=new WeakMap,R=new WeakSet,I$=new WeakMap,Ed=new WeakMap,Oo=new WeakMap,At=new WeakMap,Ws=new WeakMap,z$=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Cd=new WeakMap,zg=new WeakMap,ut=new WeakMap,ms=new WeakMap,gn=new WeakMap,Mo=new WeakMap,M$=new WeakMap,vo=new WeakMap,Og=new WeakMap,Mg=new WeakMap,$d=new WeakMap,Ng=new WeakMap,Dg=new WeakMap,Hg=new WeakMap,Bg=new WeakMap,qp=new WeakMap,vn=new WeakMap,mn=function(){let t=o(this,Mo);if(!t)return;window.removeEventListener("pointermove",o(this,qp)),window.removeEventListener("pointerup",o(this,vn)),window.removeEventListener("pointercancel",o(this,vn));let e=t.active,s=t.startSizes;h(this,Mo,null),h(this,R,!1,F$),h(this,R,void 0,V$),e&&(p(this,R,U$).call(this,s),p(this,R,DD).call(this))},Up=function(){let t=o(this,ut).map(e=>o(this,Jo).get(e)).filter(e=>e!==void 0);return t.length!==o(this,ut).length?null:t},jp=new WeakMap,Fg=new WeakMap,P$=function(t,e,s){let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return null;let m=o(this,ut).indexOf(l),g=o(this,ut).indexOf(d);if(m===-1||g===-1||e.length!==o(this,ut).length)return null;let E=o(this,ut).map($=>o(this,Jo).get($)).filter($=>$!==void 0);return E.length!==o(this,ut).length?null:eq(e,E,m,g,s,o(this,At))},Ks=function(t){if(o(this,At).size>0)for(let e=0;e<o(this,ut).length;e++){let s=o(this,ut)[e];o(this,At).has(s)&&(t[e]??0)>.01&&p(this,R,fn).call(this,s,!1)}this.value===void 0&&(h(this,R,t,Ig),p(this,R,ND).call(this)),this.dispatchEvent(G$([...t])),this.requestUpdate()},fn=function(t,e,s){o(this,At).has(t)!==e&&(e?(o(this,At).add(t),s!==void 0&&s>.01&&o(this,Ws).set(t,s)):(o(this,At).delete(t),o(this,Ws).delete(t)),this.dispatchEvent(X$({panelId:t,collapsed:e})),this.requestUpdate())},U$=function(t){if(o(this,ut).length===0)return;let e=p(this,R,Mr).call(this);for(let s=0;s<o(this,ut).length;s++){let l=o(this,ut)[s];if(o(this,At).has(l))continue;let d=o(this,Jo).get(l);if(!d?.collapsible||(e[s]??0)>=.01)continue;let m=t?.[s],g=m!==void 0&&m>.01?m:d.defaultSize??100/o(this,ut).length;p(this,R,fn).call(this,l,!0,g)}},q$=function(){if(!this.autoSaveId||this.value!==void 0||o(this,ut).length===0)return null;let t=[...o(this,ut)].sort().join("|");return`dui-splitter:${this.autoSaveId}:${t}`},MD=function(){let t=p(this,R,q$).call(this);if(!t)return null;try{let e=globalThis.localStorage?.getItem(t);if(!e)return null;let s=JSON.parse(e);if(Array.isArray(s)&&s.every(l=>typeof l=="number"&&Number.isFinite(l)))return{sizes:s,collapsed:[]};if(s&&typeof s=="object"&&Array.isArray(s.sizes)&&s.sizes.every(l=>typeof l=="number"&&Number.isFinite(l))&&Array.isArray(s.collapsed)&&s.collapsed.every(l=>typeof l=="string"))return{sizes:s.sizes,collapsed:s.collapsed}}catch{}return null},ND=function(){this.autoSaveId&&(o(this,vo)!==null&&clearTimeout(o(this,vo)),h(this,vo,setTimeout(()=>{h(this,vo,null),p(this,R,j$).call(this)},250)))},DD=function(){o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null)),p(this,R,j$).call(this)},j$=function(){let t=p(this,R,q$).call(this);if(t)try{globalThis.localStorage?.setItem(t,JSON.stringify({sizes:o(this,R,wd),collapsed:[...o(this,At)]}))}catch{}},Vg=new WeakMap,Pg=new WeakMap,D$=new WeakMap,Lg=function(){return{orientation:this.orientation,disabled:this.disabled,resizing:o(this,R,B$),draggingHandleId:o(this,R,OD),keyboardStep:this.keyboardStep,keyboardStepLarge:this.keyboardStepLarge,registerPanel:o(this,Og),unregisterPanel:o(this,Mg),getPanelSize:o(this,$d),isPanelCollapsed:o(this,Vg),registerHandle:o(this,Ng),unregisterHandle:o(this,Dg),updateHandle:o(this,Hg),beginDrag:o(this,Bg),nudge:o(this,jp),resetHandle:o(this,Fg),getHandleAria:o(this,Pg)}},Mr=function(){return this.value!==void 0?p(this,R,HD).call(this,this.value):o(this,R,wd)},HD=function(t){if(t.length!==o(this,ut).length){let e=o(this,ut).length;if(e===0)return[];let s=100/e;return Array.from({length:e},()=>s)}return Pp(t)},Td=new WeakMap,kd=function(){o(this,Td)||(h(this,Td,!0),queueMicrotask(()=>{h(this,Td,!1),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}))},K$=function(){let t=o(this,R,Rg);if(!t){h(this,ut,[]),h(this,ms,new Map),h(this,gn,new Map);return}let e=t.assignedElements(),s=[],l=new Map,d=new Map,m=[],g;for(let E of e){let $=E.tagName;if($===ZU){let y=E.panelId;if(y&&o(this,Jo).has(y)){s.push(y);for(let _ of m)d.set(_,y);m.length=0,g=y}}else if($===tq){let y=o(this,Cd).get(E);y&&g&&(l.set(y,g),m.push(y))}}h(this,ut,s),h(this,ms,l),h(this,gn,d)},W$=function(){let t=o(this,ut).map(s=>o(this,Jo).get(s)).filter(s=>s!==void 0);if(t.length===0){h(this,R,[],Ig),h(this,Oo,[]);return}if(this.value!==void 0){h(this,Ed,!0),o(this,Oo).length!==t.length&&h(this,Oo,un(p(this,R,Mr).call(this),t,o(this,At))),p(this,R,Y$).call(this,t);return}let e;if(o(this,Ed))o(this,R,wd).length!==t.length?(p(this,R,Y$).call(this,t),e=w$(t)):e=[...o(this,R,wd)];else{let s=p(this,R,MD).call(this);if(s&&s.sizes.length===t.length){e=Pp(s.sizes);let l=new Set(t.map(d=>d.id));h(this,At,new Set(s.collapsed.filter(d=>l.has(d))));for(let d=0;d<t.length;d++)o(this,At).has(t[d].id)&&(e[d]=0)}else this.defaultValue.length===t.length?e=Pp(this.defaultValue):e=w$(t);h(this,Ed,!0)}h(this,R,un(e,t,o(this,At)),Ig),o(this,Oo).length!==t.length&&h(this,Oo,[...o(this,R,wd)])},Y$=function(t){let e=new Set(t.map(s=>s.id));for(let s of[...o(this,At)])e.has(s)||o(this,At).delete(s);for(let s of[...o(this,Ws).keys()])e.has(s)||o(this,Ws).delete(s)},Kp=new WeakMap,c(nt,4,"orientation",LD,Re,k$),c(nt,4,"value",ID,Re,E$),c(nt,4,"defaultValue",RD,Re,C$),c(nt,4,"disabled",_D,Re,$$),c(nt,4,"keyboardStep",AD,Re,T$),c(nt,4,"keyboardStepLarge",SD,Re,S$),c(nt,4,"autoSaveId",TD,Re,A$),R$=c(nt,20,"#slot",$D,R,_$),Rg=R$.get,oq=R$.set,L$=c(nt,20,"#internalSizes",CD,R,I$),wd=L$.get,Ig=L$.set,O$=c(nt,20,"#resizing",ED,R,z$),B$=O$.get,F$=O$.set,N$=c(nt,20,"#draggingHandleId",kD,R,M$),OD=N$.get,V$=N$.set,c(nt,4,"_ctx",wD,Re,D$),T(nt,Re),v(Re,"tagName","dui-splitter"),v(Re,"styles",[w,QU]);var rq=b`
6885
+ `}};nt=A(zD),k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,T$=new WeakMap,S$=new WeakMap,A$=new WeakMap,_$=new WeakMap,R=new WeakSet,I$=new WeakMap,Ed=new WeakMap,Oo=new WeakMap,At=new WeakMap,Ws=new WeakMap,z$=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Cd=new WeakMap,Og=new WeakMap,ut=new WeakMap,ms=new WeakMap,gn=new WeakMap,Mo=new WeakMap,M$=new WeakMap,vo=new WeakMap,Mg=new WeakMap,Ng=new WeakMap,$d=new WeakMap,Dg=new WeakMap,Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,qp=new WeakMap,vn=new WeakMap,mn=function(){let t=o(this,Mo);if(!t)return;window.removeEventListener("pointermove",o(this,qp)),window.removeEventListener("pointerup",o(this,vn)),window.removeEventListener("pointercancel",o(this,vn));let e=t.active,s=t.startSizes;h(this,Mo,null),h(this,R,!1,F$),h(this,R,void 0,V$),e&&(p(this,R,U$).call(this,s),p(this,R,DD).call(this))},Up=function(){let t=o(this,ut).map(e=>o(this,Jo).get(e)).filter(e=>e!==void 0);return t.length!==o(this,ut).length?null:t},jp=new WeakMap,Vg=new WeakMap,P$=function(t,e,s){let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return null;let m=o(this,ut).indexOf(l),g=o(this,ut).indexOf(d);if(m===-1||g===-1||e.length!==o(this,ut).length)return null;let E=o(this,ut).map($=>o(this,Jo).get($)).filter($=>$!==void 0);return E.length!==o(this,ut).length?null:eq(e,E,m,g,s,o(this,At))},Ks=function(t){if(o(this,At).size>0)for(let e=0;e<o(this,ut).length;e++){let s=o(this,ut)[e];o(this,At).has(s)&&(t[e]??0)>.01&&p(this,R,fn).call(this,s,!1)}this.value===void 0&&(h(this,R,t,Lg),p(this,R,ND).call(this)),this.dispatchEvent(G$([...t])),this.requestUpdate()},fn=function(t,e,s){o(this,At).has(t)!==e&&(e?(o(this,At).add(t),s!==void 0&&s>.01&&o(this,Ws).set(t,s)):(o(this,At).delete(t),o(this,Ws).delete(t)),this.dispatchEvent(X$({panelId:t,collapsed:e})),this.requestUpdate())},U$=function(t){if(o(this,ut).length===0)return;let e=p(this,R,Mr).call(this);for(let s=0;s<o(this,ut).length;s++){let l=o(this,ut)[s];if(o(this,At).has(l))continue;let d=o(this,Jo).get(l);if(!d?.collapsible||(e[s]??0)>=.01)continue;let m=t?.[s],g=m!==void 0&&m>.01?m:d.defaultSize??100/o(this,ut).length;p(this,R,fn).call(this,l,!0,g)}},q$=function(){if(!this.autoSaveId||this.value!==void 0||o(this,ut).length===0)return null;let t=[...o(this,ut)].sort().join("|");return`dui-splitter:${this.autoSaveId}:${t}`},MD=function(){let t=p(this,R,q$).call(this);if(!t)return null;try{let e=globalThis.localStorage?.getItem(t);if(!e)return null;let s=JSON.parse(e);if(Array.isArray(s)&&s.every(l=>typeof l=="number"&&Number.isFinite(l)))return{sizes:s,collapsed:[]};if(s&&typeof s=="object"&&Array.isArray(s.sizes)&&s.sizes.every(l=>typeof l=="number"&&Number.isFinite(l))&&Array.isArray(s.collapsed)&&s.collapsed.every(l=>typeof l=="string"))return{sizes:s.sizes,collapsed:s.collapsed}}catch{}return null},ND=function(){this.autoSaveId&&(o(this,vo)!==null&&clearTimeout(o(this,vo)),h(this,vo,setTimeout(()=>{h(this,vo,null),p(this,R,j$).call(this)},250)))},DD=function(){o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null)),p(this,R,j$).call(this)},j$=function(){let t=p(this,R,q$).call(this);if(t)try{globalThis.localStorage?.setItem(t,JSON.stringify({sizes:o(this,R,wd),collapsed:[...o(this,At)]}))}catch{}},Pg=new WeakMap,Ug=new WeakMap,D$=new WeakMap,zg=function(){return{orientation:this.orientation,disabled:this.disabled,resizing:o(this,R,B$),draggingHandleId:o(this,R,OD),keyboardStep:this.keyboardStep,keyboardStepLarge:this.keyboardStepLarge,registerPanel:o(this,Mg),unregisterPanel:o(this,Ng),getPanelSize:o(this,$d),isPanelCollapsed:o(this,Pg),registerHandle:o(this,Dg),unregisterHandle:o(this,Hg),updateHandle:o(this,Bg),beginDrag:o(this,Fg),nudge:o(this,jp),resetHandle:o(this,Vg),getHandleAria:o(this,Ug)}},Mr=function(){return this.value!==void 0?p(this,R,HD).call(this,this.value):o(this,R,wd)},HD=function(t){if(t.length!==o(this,ut).length){let e=o(this,ut).length;if(e===0)return[];let s=100/e;return Array.from({length:e},()=>s)}return Pp(t)},Td=new WeakMap,kd=function(){o(this,Td)||(h(this,Td,!0),queueMicrotask(()=>{h(this,Td,!1),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}))},K$=function(){let t=o(this,R,Ig);if(!t){h(this,ut,[]),h(this,ms,new Map),h(this,gn,new Map);return}let e=t.assignedElements(),s=[],l=new Map,d=new Map,m=[],g;for(let E of e){let $=E.tagName;if($===ZU){let y=E.panelId;if(y&&o(this,Jo).has(y)){s.push(y);for(let _ of m)d.set(_,y);m.length=0,g=y}}else if($===tq){let y=o(this,Cd).get(E);y&&g&&(l.set(y,g),m.push(y))}}h(this,ut,s),h(this,ms,l),h(this,gn,d)},W$=function(){let t=o(this,ut).map(s=>o(this,Jo).get(s)).filter(s=>s!==void 0);if(t.length===0){h(this,R,[],Lg),h(this,Oo,[]);return}if(this.value!==void 0){h(this,Ed,!0),o(this,Oo).length!==t.length&&h(this,Oo,un(p(this,R,Mr).call(this),t,o(this,At))),p(this,R,Y$).call(this,t);return}let e;if(o(this,Ed))o(this,R,wd).length!==t.length?(p(this,R,Y$).call(this,t),e=w$(t)):e=[...o(this,R,wd)];else{let s=p(this,R,MD).call(this);if(s&&s.sizes.length===t.length){e=Pp(s.sizes);let l=new Set(t.map(d=>d.id));h(this,At,new Set(s.collapsed.filter(d=>l.has(d))));for(let d=0;d<t.length;d++)o(this,At).has(t[d].id)&&(e[d]=0)}else this.defaultValue.length===t.length?e=Pp(this.defaultValue):e=w$(t);h(this,Ed,!0)}h(this,R,un(e,t,o(this,At)),Lg),o(this,Oo).length!==t.length&&h(this,Oo,[...o(this,R,wd)])},Y$=function(t){let e=new Set(t.map(s=>s.id));for(let s of[...o(this,At)])e.has(s)||o(this,At).delete(s);for(let s of[...o(this,Ws).keys()])e.has(s)||o(this,Ws).delete(s)},Kp=new WeakMap,c(nt,4,"orientation",LD,Re,k$),c(nt,4,"value",ID,Re,E$),c(nt,4,"defaultValue",RD,Re,C$),c(nt,4,"disabled",_D,Re,$$),c(nt,4,"keyboardStep",AD,Re,T$),c(nt,4,"keyboardStepLarge",SD,Re,S$),c(nt,4,"autoSaveId",TD,Re,A$),R$=c(nt,20,"#slot",$D,R,_$),Ig=R$.get,oq=R$.set,L$=c(nt,20,"#internalSizes",CD,R,I$),wd=L$.get,Lg=L$.set,O$=c(nt,20,"#resizing",ED,R,z$),B$=O$.get,F$=O$.set,N$=c(nt,20,"#draggingHandleId",kD,R,M$),OD=N$.get,V$=N$.set,c(nt,4,"_ctx",wD,Re,D$),T(nt,Re),v(Re,"tagName","dui-splitter"),v(Re,"styles",[w,QU]);var rq=b`
6886
6886
  :host {
6887
6887
  display: block;
6888
6888
  flex: 0 0 auto;
@@ -6932,7 +6932,7 @@ label, legend, caption, figcaption, th, td {
6932
6932
  box-sizing: border-box;
6933
6933
  outline: none;
6934
6934
  }
6935
- `,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,xo,pT,ft,dT,cT,hT,uT,Ys,Ug,qg,jg,Kg,Wg,Yg,Zo=class extends(JD=x,XD=[u({type:Boolean,reflect:!0})],GD=[Nt({context:yd,subscribe:!0})],YD=[C()],WD=[C()],JD){constructor(){super(...arguments);a(this,ft);a(this,iT,n(bo,8,this,!1)),n(bo,11,this);a(this,nT,n(bo,12,this)),n(bo,15,this);a(this,aT,n(bo,16,this)),n(bo,19,this);a(this,dT,n(bo,20,this,!1)),n(bo,23,this);a(this,Ug,t=>{p(this,ft,Ys).call(this)||!o(this,ft,xo)||!this._ctx||t.button!==void 0&&t.button!==0||this._ctx.beginDrag(o(this,ft,xo),t)});a(this,qg,t=>{p(this,ft,Ys).call(this)||t.button===0&&t.preventDefault()});a(this,jg,t=>{p(this,ft,Ys).call(this)||!o(this,ft,xo)||!this._ctx||(t.preventDefault(),this._ctx.resetHandle(o(this,ft,xo)))});a(this,Kg,t=>{let e=this._ctx,s=o(this,ft,xo);if(p(this,ft,Ys).call(this)||!s||!e)return;let l=e.orientation==="horizontal",d=l?"ArrowLeft":"ArrowUp",m=l?"ArrowRight":"ArrowDown",g=t.shiftKey?e.keyboardStepLarge:e.keyboardStep;switch(t.key){case d:t.preventDefault(),e.nudge(s,-g);break;case m:t.preventDefault(),e.nudge(s,g);break;case"Home":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMin-E.valueNow));break}case"End":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMax-E.valueNow));break}}});a(this,Wg,()=>{h(this,ft,!0,uT)});a(this,Yg,()=>{h(this,ft,!1,uT)})}connectedCallback(){super.connectedCallback(),this._ctx&&h(this,ft,this._ctx.registerHandle({el:this,disabled:p(this,ft,Ys).call(this)}),pT)}disconnectedCallback(){super.disconnectedCallback(),o(this,ft,xo)&&this._ctx&&(this._ctx.unregisterHandle(o(this,ft,xo)),h(this,ft,void 0,pT))}willUpdate(t){t.has("disabled")&&o(this,ft,xo)&&this._ctx&&this._ctx.updateHandle(o(this,ft,xo),{disabled:p(this,ft,Ys).call(this)})}render(){let t=this._ctx,e=t?.orientation??"horizontal",s=p(this,ft,Ys).call(this),l=o(this,ft,xo)&&t?t.getHandleAria(o(this,ft,xo)):null,d=t?.draggingHandleId!==void 0&&t.draggingHandleId===o(this,ft,xo),m=e==="horizontal"?"vertical":"horizontal";return this.isConnected&&(this.dataset.orientation=e,this.toggleAttribute("data-disabled",s),this.toggleAttribute("data-dragging",d),this.toggleAttribute("data-focused",o(this,ft,hT))),f`
6935
+ `,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,xo,pT,ft,dT,cT,hT,uT,Ys,qg,jg,Kg,Wg,Yg,Gg,Zo=class extends(JD=x,XD=[u({type:Boolean,reflect:!0})],GD=[Nt({context:yd,subscribe:!0})],YD=[C()],WD=[C()],JD){constructor(){super(...arguments);a(this,ft);a(this,iT,n(bo,8,this,!1)),n(bo,11,this);a(this,nT,n(bo,12,this)),n(bo,15,this);a(this,aT,n(bo,16,this)),n(bo,19,this);a(this,dT,n(bo,20,this,!1)),n(bo,23,this);a(this,qg,t=>{p(this,ft,Ys).call(this)||!o(this,ft,xo)||!this._ctx||t.button!==void 0&&t.button!==0||this._ctx.beginDrag(o(this,ft,xo),t)});a(this,jg,t=>{p(this,ft,Ys).call(this)||t.button===0&&t.preventDefault()});a(this,Kg,t=>{p(this,ft,Ys).call(this)||!o(this,ft,xo)||!this._ctx||(t.preventDefault(),this._ctx.resetHandle(o(this,ft,xo)))});a(this,Wg,t=>{let e=this._ctx,s=o(this,ft,xo);if(p(this,ft,Ys).call(this)||!s||!e)return;let l=e.orientation==="horizontal",d=l?"ArrowLeft":"ArrowUp",m=l?"ArrowRight":"ArrowDown",g=t.shiftKey?e.keyboardStepLarge:e.keyboardStep;switch(t.key){case d:t.preventDefault(),e.nudge(s,-g);break;case m:t.preventDefault(),e.nudge(s,g);break;case"Home":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMin-E.valueNow));break}case"End":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMax-E.valueNow));break}}});a(this,Yg,()=>{h(this,ft,!0,uT)});a(this,Gg,()=>{h(this,ft,!1,uT)})}connectedCallback(){super.connectedCallback(),this._ctx&&h(this,ft,this._ctx.registerHandle({el:this,disabled:p(this,ft,Ys).call(this)}),pT)}disconnectedCallback(){super.disconnectedCallback(),o(this,ft,xo)&&this._ctx&&(this._ctx.unregisterHandle(o(this,ft,xo)),h(this,ft,void 0,pT))}willUpdate(t){t.has("disabled")&&o(this,ft,xo)&&this._ctx&&this._ctx.updateHandle(o(this,ft,xo),{disabled:p(this,ft,Ys).call(this)})}render(){let t=this._ctx,e=t?.orientation??"horizontal",s=p(this,ft,Ys).call(this),l=o(this,ft,xo)&&t?t.getHandleAria(o(this,ft,xo)):null,d=t?.draggingHandleId!==void 0&&t.draggingHandleId===o(this,ft,xo),m=e==="horizontal"?"vertical":"horizontal";return this.isConnected&&(this.dataset.orientation=e,this.toggleAttribute("data-disabled",s),this.toggleAttribute("data-dragging",d),this.toggleAttribute("data-focused",o(this,ft,hT))),f`
6936
6936
  <div
6937
6937
  part="root"
6938
6938
  role="separator"
@@ -6945,14 +6945,14 @@ label, legend, caption, figcaption, th, td {
6945
6945
  ?data-disabled=${s}
6946
6946
  ?data-dragging=${d}
6947
6947
  ?data-focused=${o(this,ft,hT)}
6948
- @pointerdown=${o(this,Ug)}
6949
- @mousedown=${o(this,qg)}
6950
- @dblclick=${o(this,jg)}
6951
- @keydown=${o(this,Kg)}
6952
- @focus=${o(this,Wg)}
6953
- @blur=${o(this,Yg)}
6948
+ @pointerdown=${o(this,qg)}
6949
+ @mousedown=${o(this,jg)}
6950
+ @dblclick=${o(this,Kg)}
6951
+ @keydown=${o(this,Wg)}
6952
+ @focus=${o(this,Yg)}
6953
+ @blur=${o(this,Gg)}
6954
6954
  ></div>
6955
- `}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,Ys=function(){return this.disabled||(this._ctx?.disabled??!1)},Ug=new WeakMap,qg=new WeakMap,jg=new WeakMap,Kg=new WeakMap,Wg=new WeakMap,Yg=new WeakMap,c(bo,4,"disabled",XD,Zo,iT),c(bo,4,"_ctx",GD,Zo,nT),lT=c(bo,20,"#handleId",YD,ft,aT),xo=lT.get,pT=lT.set,cT=c(bo,20,"#focused",WD,ft,dT),hT=cT.get,uT=cT.set,T(bo,Zo),v(Zo,"tagName","dui-splitter-handle"),v(Zo,"styles",[w,sq]);var Sd=class extends Re{};customElements.define(Sd.tagName,Sd);var Ad=class extends Be{};customElements.define(Ad.tagName,Ad);var iq=k`
6955
+ `}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,Ys=function(){return this.disabled||(this._ctx?.disabled??!1)},qg=new WeakMap,jg=new WeakMap,Kg=new WeakMap,Wg=new WeakMap,Yg=new WeakMap,Gg=new WeakMap,c(bo,4,"disabled",XD,Zo,iT),c(bo,4,"_ctx",GD,Zo,nT),lT=c(bo,20,"#handleId",YD,ft,aT),xo=lT.get,pT=lT.set,cT=c(bo,20,"#focused",WD,ft,dT),hT=cT.get,uT=cT.set,T(bo,Zo),v(Zo,"tagName","dui-splitter-handle"),v(Zo,"styles",[w,sq]);var Sd=class extends Re{};customElements.define(Sd.tagName,Sd);var Ad=class extends Be{};customElements.define(Ad.tagName,Ad);var iq=k`
6956
6956
  /* Host = interaction target. Cross-axis size depends on orientation. */
6957
6957
  :host([data-orientation="horizontal"]) {
6958
6958
  width: var(--splitter-handle-size, var(--space-2));
@@ -7072,7 +7072,7 @@ label, legend, caption, figcaption, th, td {
7072
7072
  width: 0;
7073
7073
  height: 0;
7074
7074
  }
7075
- `,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,xT,yT,wT,kT,ET,CT,$T,pH,AT,X,TT,ST,_T,RT,Nr,hH,uH,Rd,IT,Id,Gp,Xp,LT,Gg,Xg,Jg,Qg,Zg,se=class extends(cH=x,dH=[u({type:Number})],lH=[u({type:Number,attribute:"default-value"})],aH=[u({type:Number})],nH=[u({type:Number})],iH=[u({type:Number})],sH=[u({type:Number,attribute:"large-step"})],rH=[u({type:Boolean,reflect:!0})],oH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],eH=[u({type:Boolean})],tH=[u()],ZD=[C()],QD=[C()],cH){constructor(){super(...arguments);a(this,X);a(this,mT,n(at,8,this)),n(at,11,this);a(this,fT,n(at,12,this)),n(at,15,this);a(this,gT,n(at,16,this)),n(at,19,this);a(this,vT,n(at,20,this)),n(at,23,this);a(this,bT,n(at,24,this,1)),n(at,27,this);a(this,xT,n(at,28,this,10)),n(at,31,this);a(this,yT,n(at,32,this,!1)),n(at,35,this);a(this,wT,n(at,36,this,!1)),n(at,39,this);a(this,kT,n(at,40,this,!1)),n(at,43,this);a(this,ET,n(at,44,this)),n(at,47,this);a(this,CT,n(at,48,this)),n(at,51,this);a(this,TT,n(at,52,this,"")),n(at,55,this);a(this,Gp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Nr)??this.min??0;p(this,X,Id).call(this,e+t)});a(this,Xp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Nr)??this.max??0;p(this,X,Id).call(this,e-t)});a(this,Gg,t=>{h(this,X,t.target.value,RT)});a(this,Xg,()=>{p(this,X,LT).call(this)});a(this,Jg,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),o(this,Gp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"ArrowDown":t.preventDefault(),o(this,Xp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.max));break;case"Enter":p(this,X,LT).call(this);break}});a(this,Qg,()=>{o(this,Xp).call(this,this.step);let t=o(this,X,Nr);t!==void 0&&this.dispatchEvent(Yp({value:t}))});a(this,Zg,()=>{o(this,Gp).call(this,this.step);let t=o(this,X,Nr);t!==void 0&&this.dispatchEvent(Yp({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,X,p(this,X,IT).call(this,this.defaultValue),AT),p(this,X,Rd).call(this)}willUpdate(){p(this,X,Rd).call(this)}render(){let t=o(this,X,Nr);return f`
7075
+ `,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,xT,yT,wT,kT,ET,CT,$T,pH,AT,X,TT,ST,_T,RT,Nr,hH,uH,Rd,IT,Id,Gp,Xp,LT,Xg,Jg,Qg,Zg,tv,se=class extends(cH=x,dH=[u({type:Number})],lH=[u({type:Number,attribute:"default-value"})],aH=[u({type:Number})],nH=[u({type:Number})],iH=[u({type:Number})],sH=[u({type:Number,attribute:"large-step"})],rH=[u({type:Boolean,reflect:!0})],oH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],eH=[u({type:Boolean})],tH=[u()],ZD=[C()],QD=[C()],cH){constructor(){super(...arguments);a(this,X);a(this,mT,n(at,8,this)),n(at,11,this);a(this,fT,n(at,12,this)),n(at,15,this);a(this,gT,n(at,16,this)),n(at,19,this);a(this,vT,n(at,20,this)),n(at,23,this);a(this,bT,n(at,24,this,1)),n(at,27,this);a(this,xT,n(at,28,this,10)),n(at,31,this);a(this,yT,n(at,32,this,!1)),n(at,35,this);a(this,wT,n(at,36,this,!1)),n(at,39,this);a(this,kT,n(at,40,this,!1)),n(at,43,this);a(this,ET,n(at,44,this)),n(at,47,this);a(this,CT,n(at,48,this)),n(at,51,this);a(this,TT,n(at,52,this,"")),n(at,55,this);a(this,Gp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Nr)??this.min??0;p(this,X,Id).call(this,e+t)});a(this,Xp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Nr)??this.max??0;p(this,X,Id).call(this,e-t)});a(this,Xg,t=>{h(this,X,t.target.value,RT)});a(this,Jg,()=>{p(this,X,LT).call(this)});a(this,Qg,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),o(this,Gp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"ArrowDown":t.preventDefault(),o(this,Xp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.max));break;case"Enter":p(this,X,LT).call(this);break}});a(this,Zg,()=>{o(this,Xp).call(this,this.step);let t=o(this,X,Nr);t!==void 0&&this.dispatchEvent(Yp({value:t}))});a(this,tv,()=>{o(this,Gp).call(this,this.step);let t=o(this,X,Nr);t!==void 0&&this.dispatchEvent(Yp({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,X,p(this,X,IT).call(this,this.defaultValue),AT),p(this,X,Rd).call(this)}willUpdate(){p(this,X,Rd).call(this)}render(){let t=o(this,X,Nr);return f`
7076
7076
  <div
7077
7077
  part="root"
7078
7078
  ?data-disabled="${this.disabled}"
@@ -7083,7 +7083,7 @@ label, legend, caption, figcaption, th, td {
7083
7083
  tabindex="-1"
7084
7084
  aria-label="Decrease"
7085
7085
  ?disabled="${this.disabled||this.readOnly||!o(this,X,hH)}"
7086
- @click="${o(this,Qg)}"
7086
+ @click="${o(this,Zg)}"
7087
7087
  >
7088
7088
  <slot name="decrement">&minus;</slot>
7089
7089
  </button>
@@ -7095,9 +7095,9 @@ label, legend, caption, figcaption, th, td {
7095
7095
  ?disabled="${this.disabled}"
7096
7096
  ?readonly="${this.readOnly}"
7097
7097
  ?required="${this.required}"
7098
- @input="${o(this,Gg)}"
7099
- @keydown="${o(this,Jg)}"
7100
- @blur="${o(this,Xg)}"
7098
+ @input="${o(this,Xg)}"
7099
+ @keydown="${o(this,Qg)}"
7100
+ @blur="${o(this,Jg)}"
7101
7101
  />
7102
7102
  <button
7103
7103
  part="increment"
@@ -7105,7 +7105,7 @@ label, legend, caption, figcaption, th, td {
7105
7105
  tabindex="-1"
7106
7106
  aria-label="Increase"
7107
7107
  ?disabled="${this.disabled||this.readOnly||!o(this,X,uH)}"
7108
- @click="${o(this,Zg)}"
7108
+ @click="${o(this,tv)}"
7109
7109
  >
7110
7110
  <slot name="increment">+</slot>
7111
7111
  </button>
@@ -7115,7 +7115,7 @@ label, legend, caption, figcaption, th, td {
7115
7115
  .value="${String(t??"")}"
7116
7116
  />`:L}
7117
7117
  </div>
7118
- `}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,xT=new WeakMap,yT=new WeakMap,wT=new WeakMap,kT=new WeakMap,ET=new WeakMap,CT=new WeakMap,X=new WeakSet,TT=new WeakMap,Nr=function(){return this.value??o(this,X,pH)},hH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.min===void 0||t>this.min},uH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.max===void 0||t<this.max},Rd=function(){let t=o(this,X,Nr);h(this,X,t!==void 0?String(t):"",RT)},IT=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Id=function(t){let e=p(this,X,IT).call(this,t);this.value===void 0&&h(this,X,e,AT),this.dispatchEvent(zT({value:e}))},Gp=new WeakMap,Xp=new WeakMap,LT=function(){let t=parseFloat(o(this,X,_T));Number.isNaN(t)?p(this,X,Rd).call(this):p(this,X,Id).call(this,t);let e=o(this,X,Nr);e!==void 0&&this.dispatchEvent(Yp({value:e}))},Gg=new WeakMap,Xg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Zg=new WeakMap,c(at,4,"value",dH,se,mT),c(at,4,"defaultValue",lH,se,fT),c(at,4,"min",aH,se,gT),c(at,4,"max",nH,se,vT),c(at,4,"step",iH,se,bT),c(at,4,"largeStep",sH,se,xT),c(at,4,"disabled",rH,se,yT),c(at,4,"readOnly",oH,se,wT),c(at,4,"required",eH,se,kT),c(at,4,"name",tH,se,ET),$T=c(at,20,"#internalValue",ZD,X,CT),pH=$T.get,AT=$T.set,ST=c(at,20,"#inputText",QD,X,TT),_T=ST.get,RT=ST.set,T(at,se),v(se,"tagName","dui-stepper"),v(se,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(se,"styles",[w,nq]);var aq=k`
7118
+ `}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,xT=new WeakMap,yT=new WeakMap,wT=new WeakMap,kT=new WeakMap,ET=new WeakMap,CT=new WeakMap,X=new WeakSet,TT=new WeakMap,Nr=function(){return this.value??o(this,X,pH)},hH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.min===void 0||t>this.min},uH=function(){let t=o(this,X,Nr);return t===void 0?!0:this.max===void 0||t<this.max},Rd=function(){let t=o(this,X,Nr);h(this,X,t!==void 0?String(t):"",RT)},IT=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Id=function(t){let e=p(this,X,IT).call(this,t);this.value===void 0&&h(this,X,e,AT),this.dispatchEvent(zT({value:e}))},Gp=new WeakMap,Xp=new WeakMap,LT=function(){let t=parseFloat(o(this,X,_T));Number.isNaN(t)?p(this,X,Rd).call(this):p(this,X,Id).call(this,t);let e=o(this,X,Nr);e!==void 0&&this.dispatchEvent(Yp({value:e}))},Xg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Zg=new WeakMap,tv=new WeakMap,c(at,4,"value",dH,se,mT),c(at,4,"defaultValue",lH,se,fT),c(at,4,"min",aH,se,gT),c(at,4,"max",nH,se,vT),c(at,4,"step",iH,se,bT),c(at,4,"largeStep",sH,se,xT),c(at,4,"disabled",rH,se,yT),c(at,4,"readOnly",oH,se,wT),c(at,4,"required",eH,se,kT),c(at,4,"name",tH,se,ET),$T=c(at,20,"#internalValue",ZD,X,CT),pH=$T.get,AT=$T.set,ST=c(at,20,"#inputText",QD,X,TT),_T=ST.get,RT=ST.set,T(at,se),v(se,"tagName","dui-stepper"),v(se,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(se,"styles",[w,nq]);var aq=k`
7119
7119
  [part="root"] {
7120
7120
  border: var(--border-width-thin) solid var(--border);
7121
7121
  border-radius: var(--radius-md);
@@ -7216,7 +7216,7 @@ label, legend, caption, figcaption, th, td {
7216
7216
  transform: translateX(var(--switch-checked-offset, 0));
7217
7217
  }
7218
7218
 
7219
- `,mH,fH,gH,vH,bH,xH,yH,wH,kH,EH,Jp,Mt,OT,MT,NT,DT,HT,BT,FT,VT,PT,UT,CH,qT,Ie,tv,jT,$H,Qp,Zp,ev,be=class extends(EH=x,kH=[u({type:Boolean,reflect:!0})],wH=[u({type:Boolean,attribute:"default-checked"})],yH=[u({type:Boolean,reflect:!0})],xH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bH=[u({type:Boolean,reflect:!0})],vH=[u()],gH=[u()],fH=[u({attribute:"unchecked-value"})],mH=[C()],EH){constructor(){super();a(this,Ie);a(this,Jp);a(this,OT,n(Mt,8,this)),n(Mt,11,this);a(this,MT,n(Mt,12,this,!1)),n(Mt,15,this);a(this,NT,n(Mt,16,this,!1)),n(Mt,19,this);a(this,DT,n(Mt,20,this,!1)),n(Mt,23,this);a(this,HT,n(Mt,24,this,!1)),n(Mt,27,this);a(this,BT,n(Mt,28,this)),n(Mt,31,this);a(this,FT,n(Mt,32,this,"on")),n(Mt,35,this);a(this,VT,n(Mt,36,this,"")),n(Mt,39,this);a(this,PT,n(Mt,40,this,!1)),n(Mt,43,this);a(this,Qp,t=>{o(this,Zp).call(this)});a(this,Zp,()=>{if(o(this,Ie,jT)||this.readOnly)return;let t=!o(this,Ie,tv);this.checked===void 0&&h(this,Ie,t,qT),this.dispatchEvent(KT({checked:t}))});a(this,ev,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),o(this,Zp).call(this))});h(this,Jp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Ie,!0,qT),this.addEventListener("click",o(this,Qp))}willUpdate(){p(this,Ie,$H).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Qp))}render(){let t=o(this,Ie,tv),e=o(this,Ie,jT);return f`
7219
+ `,mH,fH,gH,vH,bH,xH,yH,wH,kH,EH,Jp,Mt,OT,MT,NT,DT,HT,BT,FT,VT,PT,UT,CH,qT,Ie,ev,jT,$H,Qp,Zp,ov,be=class extends(EH=x,kH=[u({type:Boolean,reflect:!0})],wH=[u({type:Boolean,attribute:"default-checked"})],yH=[u({type:Boolean,reflect:!0})],xH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bH=[u({type:Boolean,reflect:!0})],vH=[u()],gH=[u()],fH=[u({attribute:"unchecked-value"})],mH=[C()],EH){constructor(){super();a(this,Ie);a(this,Jp);a(this,OT,n(Mt,8,this)),n(Mt,11,this);a(this,MT,n(Mt,12,this,!1)),n(Mt,15,this);a(this,NT,n(Mt,16,this,!1)),n(Mt,19,this);a(this,DT,n(Mt,20,this,!1)),n(Mt,23,this);a(this,HT,n(Mt,24,this,!1)),n(Mt,27,this);a(this,BT,n(Mt,28,this)),n(Mt,31,this);a(this,FT,n(Mt,32,this,"on")),n(Mt,35,this);a(this,VT,n(Mt,36,this,"")),n(Mt,39,this);a(this,PT,n(Mt,40,this,!1)),n(Mt,43,this);a(this,Qp,t=>{o(this,Zp).call(this)});a(this,Zp,()=>{if(o(this,Ie,jT)||this.readOnly)return;let t=!o(this,Ie,ev);this.checked===void 0&&h(this,Ie,t,qT),this.dispatchEvent(KT({checked:t}))});a(this,ov,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),o(this,Zp).call(this))});h(this,Jp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&h(this,Ie,!0,qT),this.addEventListener("click",o(this,Qp))}willUpdate(){p(this,Ie,$H).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Qp))}render(){let t=o(this,Ie,ev),e=o(this,Ie,jT);return f`
7220
7220
  <span
7221
7221
  part="root"
7222
7222
  role="switch"
@@ -7230,12 +7230,12 @@ label, legend, caption, figcaption, th, td {
7230
7230
  ?data-disabled="${e}"
7231
7231
  ?data-readonly="${this.readOnly}"
7232
7232
  ?data-required="${this.required}"
7233
- @keydown="${o(this,ev)}"
7233
+ @keydown="${o(this,ov)}"
7234
7234
  >
7235
7235
  <span part="thumb"></span>
7236
7236
  </span>
7237
7237
  <slot></slot>
7238
- `}};Mt=A(EH),Jp=new WeakMap,OT=new WeakMap,MT=new WeakMap,NT=new WeakMap,DT=new WeakMap,HT=new WeakMap,BT=new WeakMap,FT=new WeakMap,VT=new WeakMap,PT=new WeakMap,Ie=new WeakSet,tv=function(){return this.checked??o(this,Ie,CH)},jT=function(){return this.disabled},$H=function(){let t=o(this,Ie,tv)?this.value:this.uncheckedValue;o(this,Jp).setFormValue(t||null)},Qp=new WeakMap,Zp=new WeakMap,ev=new WeakMap,c(Mt,4,"checked",kH,be,OT),c(Mt,4,"defaultChecked",wH,be,MT),c(Mt,4,"disabled",yH,be,NT),c(Mt,4,"readOnly",xH,be,DT),c(Mt,4,"required",bH,be,HT),c(Mt,4,"name",vH,be,BT),c(Mt,4,"value",gH,be,FT),c(Mt,4,"uncheckedValue",fH,be,VT),UT=c(Mt,20,"#internalChecked",mH,Ie,PT),CH=UT.get,qT=UT.set,T(Mt,be),v(be,"tagName","dui-switch"),v(be,"formAssociated",!0),v(be,"styles",[w,lq]);var dq=k`
7238
+ `}};Mt=A(EH),Jp=new WeakMap,OT=new WeakMap,MT=new WeakMap,NT=new WeakMap,DT=new WeakMap,HT=new WeakMap,BT=new WeakMap,FT=new WeakMap,VT=new WeakMap,PT=new WeakMap,Ie=new WeakSet,ev=function(){return this.checked??o(this,Ie,CH)},jT=function(){return this.disabled},$H=function(){let t=o(this,Ie,ev)?this.value:this.uncheckedValue;o(this,Jp).setFormValue(t||null)},Qp=new WeakMap,Zp=new WeakMap,ov=new WeakMap,c(Mt,4,"checked",kH,be,OT),c(Mt,4,"defaultChecked",wH,be,MT),c(Mt,4,"disabled",yH,be,NT),c(Mt,4,"readOnly",xH,be,DT),c(Mt,4,"required",bH,be,HT),c(Mt,4,"name",vH,be,BT),c(Mt,4,"value",gH,be,FT),c(Mt,4,"uncheckedValue",fH,be,VT),UT=c(Mt,20,"#internalChecked",mH,Ie,PT),CH=UT.get,qT=UT.set,T(Mt,be),v(be,"tagName","dui-switch"),v(be,"formAssociated",!0),v(be,"styles",[w,lq]);var dq=k`
7239
7239
  :host {
7240
7240
  --switch-width: var(--space-9);
7241
7241
  --switch-height: var(--space-5);
@@ -7322,11 +7322,11 @@ label, legend, caption, figcaption, th, td {
7322
7322
  :host([controls="footer"]) [part="root"] {
7323
7323
  flex-direction: column-reverse;
7324
7324
  }
7325
- `,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,zH,tS,tr,rv,sv,ZT,ov,eo=class extends(LH=x,IH=[u()],RH=[u({attribute:"default-value"})],_H=[u({reflect:!0})],AH=[u({reflect:!0})],SH=[C()],TH=[lt({context:Gs}),C()],LH){constructor(){super(...arguments);a(this,tr);a(this,WT,n(he,8,this)),n(he,11,this);a(this,YT,n(he,12,this)),n(he,15,this);a(this,GT,n(he,16,this,"horizontal")),n(he,19,this);a(this,XT,n(he,20,this,"header")),n(he,23,this);a(this,JT,n(he,24,this)),n(he,27,this);a(this,rv,()=>this.value??o(this,tr,zH));a(this,sv,t=>{this.value===void 0&&h(this,tr,t,tS),this.dispatchEvent(eS(t))});a(this,ZT,n(he,28,this,p(this,tr,ov).call(this))),n(he,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,tr,this.defaultValue,tS),this._ctx=p(this,tr,ov).call(this)}willUpdate(){this._ctx=p(this,tr,ov).call(this)}render(){return f`
7325
+ `,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,zH,tS,tr,sv,iv,ZT,rv,eo=class extends(LH=x,IH=[u()],RH=[u({attribute:"default-value"})],_H=[u({reflect:!0})],AH=[u({reflect:!0})],SH=[C()],TH=[lt({context:Gs}),C()],LH){constructor(){super(...arguments);a(this,tr);a(this,WT,n(he,8,this)),n(he,11,this);a(this,YT,n(he,12,this)),n(he,15,this);a(this,GT,n(he,16,this,"horizontal")),n(he,19,this);a(this,XT,n(he,20,this,"header")),n(he,23,this);a(this,JT,n(he,24,this)),n(he,27,this);a(this,sv,()=>this.value??o(this,tr,zH));a(this,iv,t=>{this.value===void 0&&h(this,tr,t,tS),this.dispatchEvent(eS(t))});a(this,ZT,n(he,28,this,p(this,tr,rv).call(this))),n(he,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,tr,this.defaultValue,tS),this._ctx=p(this,tr,rv).call(this)}willUpdate(){this._ctx=p(this,tr,rv).call(this)}render(){return f`
7326
7326
  <div part="root" data-orientation=${this.orientation}>
7327
7327
  <slot></slot>
7328
7328
  </div>
7329
- `}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,tr=new WeakSet,rv=new WeakMap,sv=new WeakMap,ZT=new WeakMap,ov=function(){return{value:o(this,rv).call(this),orientation:this.orientation,select:o(this,sv)}},c(he,4,"value",IH,eo,WT),c(he,4,"defaultValue",RH,eo,YT),c(he,4,"orientation",_H,eo,GT),c(he,4,"controls",AH,eo,XT),QT=c(he,20,"#internalValue",SH,tr,JT),zH=QT.get,tS=QT.set,c(he,4,"_ctx",TH,eo,ZT),T(he,eo),v(eo,"tagName","dui-tabs"),v(eo,"styles",[w,cq]);var pq=b`
7329
+ `}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,tr=new WeakSet,sv=new WeakMap,iv=new WeakMap,ZT=new WeakMap,rv=function(){return{value:o(this,sv).call(this),orientation:this.orientation,select:o(this,iv)}},c(he,4,"value",IH,eo,WT),c(he,4,"defaultValue",RH,eo,YT),c(he,4,"orientation",_H,eo,GT),c(he,4,"controls",AH,eo,XT),QT=c(he,20,"#internalValue",SH,tr,JT),zH=QT.get,tS=QT.set,c(he,4,"_ctx",TH,eo,ZT),T(he,eo),v(eo,"tagName","dui-tabs"),v(eo,"styles",[w,cq]);var pq=b`
7330
7330
  :host {
7331
7331
  display: block;
7332
7332
  }
@@ -7340,11 +7340,11 @@ label, legend, caption, figcaption, th, td {
7340
7340
  [part="list"][data-orientation="vertical"] {
7341
7341
  flex-direction: column;
7342
7342
  }
7343
- `,OH,MH,iv,oS,Od,Md,nv,Dr=class extends(MH=x,OH=[Nt({context:Gs,subscribe:!0})],MH){constructor(){super(...arguments);a(this,Md);a(this,oS,n(iv,8,this)),n(iv,11,this);a(this,Od)}connectedCallback(){super.connectedCallback(),h(this,Od,new ResizeObserver(()=>{p(this,Md,nv).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),o(this,Od)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&o(this,Od)?.observe(t),p(this,Md,nv).call(this)}updated(){p(this,Md,nv).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
7343
+ `,OH,MH,nv,oS,Od,Md,av,Dr=class extends(MH=x,OH=[Nt({context:Gs,subscribe:!0})],MH){constructor(){super(...arguments);a(this,Md);a(this,oS,n(nv,8,this)),n(nv,11,this);a(this,Od)}connectedCallback(){super.connectedCallback(),h(this,Od,new ResizeObserver(()=>{p(this,Md,av).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),o(this,Od)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&o(this,Od)?.observe(t),p(this,Md,av).call(this)}updated(){p(this,Md,av).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
7344
7344
  <div part="list" role="tablist" data-orientation=${t}>
7345
7345
  <slot></slot>
7346
7346
  </div>
7347
- `}};iv=A(MH),oS=new WeakMap,Od=new WeakMap,Md=new WeakSet,nv=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(d=>d.tagName==="DUI-TAB"&&d.getAttribute("value")===this._ctx?.value);if(l){let d=t.getBoundingClientRect(),m=l.getBoundingClientRect(),g=m.left-d.left,E=m.width;t.style.setProperty("--active-tab-left",`${g}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},c(iv,4,"_ctx",OH,Dr,oS),T(iv,Dr),v(Dr,"tagName","dui-tabs-list"),v(Dr,"styles",[w,pq]);var hq=b`
7347
+ `}};nv=A(MH),oS=new WeakMap,Od=new WeakMap,Md=new WeakSet,av=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(d=>d.tagName==="DUI-TAB"&&d.getAttribute("value")===this._ctx?.value);if(l){let d=t.getBoundingClientRect(),m=l.getBoundingClientRect(),g=m.left-d.left,E=m.width;t.style.setProperty("--active-tab-left",`${g}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},c(nv,4,"_ctx",OH,Dr,oS),T(nv,Dr),v(Dr,"tagName","dui-tabs-list"),v(Dr,"styles",[w,pq]);var hq=b`
7348
7348
  :host {
7349
7349
  display: block;
7350
7350
  }
@@ -7368,7 +7368,7 @@ label, legend, caption, figcaption, th, td {
7368
7368
  [part="tab"][data-disabled] {
7369
7369
  cursor: not-allowed;
7370
7370
  }
7371
- `,NH,DH,HH,BH,Hr,rS,sS,iS,av,FH,lv,dv,No=class extends(BH=x,HH=[u()],DH=[u({type:Boolean,reflect:!0})],NH=[Nt({context:Gs,subscribe:!0})],BH){constructor(){super(...arguments);a(this,av);a(this,rS,n(Hr,8,this,"")),n(Hr,11,this);a(this,sS,n(Hr,12,this,!1)),n(Hr,15,this);a(this,iS,n(Hr,16,this)),n(Hr,19,this);a(this,lv,()=>{this.disabled||this._ctx?.select(this.value)});a(this,dv,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=o(this,av,FH);return f`
7371
+ `,NH,DH,HH,BH,Hr,rS,sS,iS,lv,FH,dv,cv,No=class extends(BH=x,HH=[u()],DH=[u({type:Boolean,reflect:!0})],NH=[Nt({context:Gs,subscribe:!0})],BH){constructor(){super(...arguments);a(this,lv);a(this,rS,n(Hr,8,this,"")),n(Hr,11,this);a(this,sS,n(Hr,12,this,!1)),n(Hr,15,this);a(this,iS,n(Hr,16,this)),n(Hr,19,this);a(this,dv,()=>{this.disabled||this._ctx?.select(this.value)});a(this,cv,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=o(this,lv,FH);return f`
7372
7372
  <button
7373
7373
  part="tab"
7374
7374
  role="tab"
@@ -7377,12 +7377,12 @@ label, legend, caption, figcaption, th, td {
7377
7377
  ?data-disabled=${this.disabled}
7378
7378
  ?disabled=${this.disabled}
7379
7379
  tabindex=${t?0:-1}
7380
- @click=${o(this,lv)}
7381
- @keydown=${o(this,dv)}
7380
+ @click=${o(this,dv)}
7381
+ @keydown=${o(this,cv)}
7382
7382
  >
7383
7383
  <slot></slot>
7384
7384
  </button>
7385
- `}};Hr=A(BH),rS=new WeakMap,sS=new WeakMap,iS=new WeakMap,av=new WeakSet,FH=function(){return this._ctx?.value===this.value},lv=new WeakMap,dv=new WeakMap,c(Hr,4,"value",HH,No,rS),c(Hr,4,"disabled",DH,No,sS),c(Hr,4,"_ctx",NH,No,iS),T(Hr,No),v(No,"tagName","dui-tab"),v(No,"styles",[w,hq]);var uq=b`
7385
+ `}};Hr=A(BH),rS=new WeakMap,sS=new WeakMap,iS=new WeakMap,lv=new WeakSet,FH=function(){return this._ctx?.value===this.value},dv=new WeakMap,cv=new WeakMap,c(Hr,4,"value",HH,No,rS),c(Hr,4,"disabled",DH,No,sS),c(Hr,4,"_ctx",NH,No,iS),T(Hr,No),v(No,"tagName","dui-tab"),v(No,"styles",[w,hq]);var uq=b`
7386
7386
  :host {
7387
7387
  display: block;
7388
7388
  }
@@ -7549,7 +7549,7 @@ label, legend, caption, figcaption, th, td {
7549
7549
  [part="textarea"]:disabled {
7550
7550
  cursor: not-allowed;
7551
7551
  }
7552
- `,jH,KH,WH,YH,GH,XH,JH,QH,ZH,tB,eB,oB,xn,ht,cS,pS,hS,uS,mS,fS,gS,vS,bS,xS,yS,cv,rB,pv,te=class extends(oB=x,eB=[u()],tB=[u()],ZH=[u({type:Boolean,reflect:!0})],QH=[u({type:Boolean})],JH=[u({type:Boolean})],XH=[u({type:Number})],GH=[u({type:Number,attribute:"minlength"})],YH=[u({type:Number,attribute:"maxlength"})],WH=[u()],KH=[u()],jH=[u({attribute:"max-height"})],oB){constructor(){super();a(this,cv);a(this,xn);a(this,cS,n(ht,8,this,"")),n(ht,11,this);a(this,pS,n(ht,12,this,"")),n(ht,15,this);a(this,hS,n(ht,16,this,!1)),n(ht,19,this);a(this,uS,n(ht,20,this,!1)),n(ht,23,this);a(this,mS,n(ht,24,this,!1)),n(ht,27,this);a(this,fS,n(ht,28,this)),n(ht,31,this);a(this,gS,n(ht,32,this)),n(ht,35,this);a(this,vS,n(ht,36,this)),n(ht,39,this);a(this,bS,n(ht,40,this,"")),n(ht,43,this);a(this,xS,n(ht,44,this,"vertical")),n(ht,47,this);a(this,yS,n(ht,48,this)),n(ht,51,this);a(this,pv,t=>{let e=t.target;this.value=e.value,o(this,xn).setFormValue(this.value),this.dispatchEvent(wS({value:this.value}))});h(this,xn,this.attachInternals())}willUpdate(){o(this,xn).setFormValue(this.value)}updated(){p(this,cv,rB).call(this)}render(){let t=Ga({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
7552
+ `,jH,KH,WH,YH,GH,XH,JH,QH,ZH,tB,eB,oB,xn,ht,cS,pS,hS,uS,mS,fS,gS,vS,bS,xS,yS,pv,rB,hv,te=class extends(oB=x,eB=[u()],tB=[u()],ZH=[u({type:Boolean,reflect:!0})],QH=[u({type:Boolean})],JH=[u({type:Boolean})],XH=[u({type:Number})],GH=[u({type:Number,attribute:"minlength"})],YH=[u({type:Number,attribute:"maxlength"})],WH=[u()],KH=[u()],jH=[u({attribute:"max-height"})],oB){constructor(){super();a(this,pv);a(this,xn);a(this,cS,n(ht,8,this,"")),n(ht,11,this);a(this,pS,n(ht,12,this,"")),n(ht,15,this);a(this,hS,n(ht,16,this,!1)),n(ht,19,this);a(this,uS,n(ht,20,this,!1)),n(ht,23,this);a(this,mS,n(ht,24,this,!1)),n(ht,27,this);a(this,fS,n(ht,28,this)),n(ht,31,this);a(this,gS,n(ht,32,this)),n(ht,35,this);a(this,vS,n(ht,36,this)),n(ht,39,this);a(this,bS,n(ht,40,this,"")),n(ht,43,this);a(this,xS,n(ht,44,this,"vertical")),n(ht,47,this);a(this,yS,n(ht,48,this)),n(ht,51,this);a(this,hv,t=>{let e=t.target;this.value=e.value,o(this,xn).setFormValue(this.value),this.dispatchEvent(wS({value:this.value}))});h(this,xn,this.attachInternals())}willUpdate(){o(this,xn).setFormValue(this.value)}updated(){p(this,pv,rB).call(this)}render(){let t=Ga({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
7553
7553
  <textarea
7554
7554
  part="textarea"
7555
7555
  style=${t}
@@ -7563,9 +7563,9 @@ label, legend, caption, figcaption, th, td {
7563
7563
  maxlength=${this.maxLength??""}
7564
7564
  name=${this.name}
7565
7565
  data-resize=${this.resize}
7566
- @input=${o(this,pv)}
7566
+ @input=${o(this,hv)}
7567
7567
  ></textarea>
7568
- `}};ht=A(oB),xn=new WeakMap,cS=new WeakMap,pS=new WeakMap,hS=new WeakMap,uS=new WeakMap,mS=new WeakMap,fS=new WeakMap,gS=new WeakMap,vS=new WeakMap,bS=new WeakMap,xS=new WeakMap,yS=new WeakMap,cv=new WeakSet,rB=function(){let t=this.shadowRoot?.querySelector("textarea");t&&o(this,xn).setValidity(t.validity,t.validationMessage,t)},pv=new WeakMap,c(ht,4,"value",eB,te,cS),c(ht,4,"placeholder",tB,te,pS),c(ht,4,"disabled",ZH,te,hS),c(ht,4,"required",QH,te,uS),c(ht,4,"readonly",JH,te,mS),c(ht,4,"rows",XH,te,fS),c(ht,4,"minLength",GH,te,gS),c(ht,4,"maxLength",YH,te,vS),c(ht,4,"name",WH,te,bS),c(ht,4,"resize",KH,te,xS),c(ht,4,"maxHeight",jH,te,yS),T(ht,te),v(te,"tagName","dui-textarea"),v(te,"formAssociated",!0),v(te,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(te,"styles",[w,yq]);var wq=k`
7568
+ `}};ht=A(oB),xn=new WeakMap,cS=new WeakMap,pS=new WeakMap,hS=new WeakMap,uS=new WeakMap,mS=new WeakMap,fS=new WeakMap,gS=new WeakMap,vS=new WeakMap,bS=new WeakMap,xS=new WeakMap,yS=new WeakMap,pv=new WeakSet,rB=function(){let t=this.shadowRoot?.querySelector("textarea");t&&o(this,xn).setValidity(t.validity,t.validationMessage,t)},hv=new WeakMap,c(ht,4,"value",eB,te,cS),c(ht,4,"placeholder",tB,te,pS),c(ht,4,"disabled",ZH,te,hS),c(ht,4,"required",QH,te,uS),c(ht,4,"readonly",JH,te,mS),c(ht,4,"rows",XH,te,fS),c(ht,4,"minLength",GH,te,gS),c(ht,4,"maxLength",YH,te,vS),c(ht,4,"name",WH,te,bS),c(ht,4,"resize",KH,te,xS),c(ht,4,"maxHeight",jH,te,yS),T(ht,te),v(te,"tagName","dui-textarea"),v(te,"formAssociated",!0),v(te,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(te,"styles",[w,yq]);var wq=k`
7569
7569
  :host {
7570
7570
  --font-size: var(--text-sm);
7571
7571
  }
@@ -7640,7 +7640,7 @@ label, legend, caption, figcaption, th, td {
7640
7640
  :host([variant="ghost"]) [part="textarea"]:focus-visible {
7641
7641
  box-shadow: none;
7642
7642
  }
7643
- `,Pd=class extends te{static styles=[...te.styles,wq]};customElements.define(Pd.tagName,Pd);var kq={attribute:!0,type:String,converter:vc,reflect:!1,hasChanged:Sh},Eq=(i=kq,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function kS(i){return(r,t)=>typeof t=="object"?Eq(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}var uv=Symbol("dui-toast-region"),Ud=Symbol("dui-toast");function sB(i){if(!i)return;let r=i.trim();if(r===""||r.toLowerCase()==="none")return;let t={alt:!1,ctrl:!1,shift:!1,meta:!1,key:""};for(let e of r.split("+")){let s=e.trim(),l=s.toLowerCase();l==="alt"||l==="option"?t.alt=!0:l==="ctrl"||l==="control"?t.ctrl=!0:l==="shift"?t.shift=!0:l==="meta"||l==="cmd"||l==="command"?t.meta=!0:t.key=s.toLowerCase()}return t.key?t:void 0}function Cq(i,r){return i.altKey===r.alt&&i.ctrlKey===r.ctrl&&i.shiftKey===r.shift&&i.metaKey===r.meta&&i.key.toLowerCase()===r.key}var MS=M("toast-dismiss",{bubbles:!0,composed:!0}),$q=b`
7643
+ `,Pd=class extends te{static styles=[...te.styles,wq]};customElements.define(Pd.tagName,Pd);var kq={attribute:!0,type:String,converter:vc,reflect:!1,hasChanged:Sh},Eq=(i=kq,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function kS(i){return(r,t)=>typeof t=="object"?Eq(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}var mv=Symbol("dui-toast-region"),Ud=Symbol("dui-toast");function sB(i){if(!i)return;let r=i.trim();if(r===""||r.toLowerCase()==="none")return;let t={alt:!1,ctrl:!1,shift:!1,meta:!1,key:""};for(let e of r.split("+")){let s=e.trim(),l=s.toLowerCase();l==="alt"||l==="option"?t.alt=!0:l==="ctrl"||l==="control"?t.ctrl=!0:l==="shift"?t.shift=!0:l==="meta"||l==="cmd"||l==="command"?t.meta=!0:t.key=s.toLowerCase()}return t.key?t:void 0}function Cq(i,r){return i.altKey===r.alt&&i.ctrlKey===r.ctrl&&i.shiftKey===r.shift&&i.metaKey===r.meta&&i.key.toLowerCase()===r.key}var MS=M("toast-dismiss",{bubbles:!0,composed:!0}),$q=b`
7644
7644
  :host {
7645
7645
  /* Region is a fixed overlay; toasts re-enable pointer events. */
7646
7646
  position: fixed;
@@ -7694,14 +7694,14 @@ label, legend, caption, figcaption, th, td {
7694
7694
  :host([data-position^="top-"]) [part="list"] {
7695
7695
  flex-direction: column-reverse;
7696
7696
  }
7697
- `,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,wt,ES,CS,$S,TS,SS,AS,_S,RS,we,Xs,Js,kn,En,IS,LS,mv,gB,Z,Cn,$n,qd,jd,yn,wn,eh,oh,rh,sh,ih,bv,xv,vB,OS,nh,ah,bB,fv,gv,yv,zS,vv,xB,ee=class extends(fB=x,mB=[u({type:String,reflect:!0})],uB=[u({type:Number,attribute:"max-visible"})],hB=[u({type:String,attribute:"label"})],pB=[u({type:Boolean,attribute:"expand-on-hover"})],cB=[u({type:Boolean,reflect:!0})],dB=[u({type:String,attribute:"swipe-directions"})],lB=[u({type:Number,attribute:"swipe-threshold"})],aB=[u({type:String})],nB=[C()],iB=[lt({context:uv}),C()],fB){constructor(){super(...arguments);a(this,Z);a(this,ES,n(wt,8,this,"bottom-right")),n(wt,11,this);a(this,CS,n(wt,12,this,3)),n(wt,15,this);a(this,$S,n(wt,16,this,"Notifications")),n(wt,19,this);a(this,TS,n(wt,20,this,!0)),n(wt,23,this);a(this,SS,n(wt,24,this)),n(wt,27,this);a(this,AS,n(wt,28,this)),n(wt,31,this);a(this,_S,n(wt,32,this,50)),n(wt,35,this);a(this,RS,n(wt,36,this,"Alt+T")),n(wt,39,this);a(this,we,new Map);a(this,Xs,new WeakMap);a(this,Js);a(this,kn);a(this,En);a(this,IS,n(wt,40,this,!1)),n(wt,43,this);a(this,Cn,!1);a(this,$n,!1);a(this,qd,!1);a(this,jd,!1);a(this,eh,()=>{h(this,Cn,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,oh,()=>{h(this,Cn,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,rh,()=>{h(this,$n,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,sh,t=>{let e=t.relatedTarget;e&&this.contains(e)||(h(this,$n,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this))});a(this,ih,()=>{h(this,qd,document.hidden),p(this,Z,yn).call(this)});a(this,bv,(t,e)=>{o(this,we).has(t)||(o(this,we).set(t,e),p(this,Z,bB).call(this,e),o(this,Js)?.observe(e),o(this,Xs).set(e,e.getBoundingClientRect().height),p(this,Z,fv).call(this),p(this,Z,gv).call(this))});a(this,xv,t=>{let e=o(this,we).get(t);if(!e)return;let s=document.activeElement,l=s instanceof HTMLElement&&(s===e||e.contains(s)),d=l?[...o(this,we).values()].indexOf(e):-1;if(o(this,Js)?.unobserve(e),o(this,Xs).delete(e),o(this,we).delete(t),p(this,Z,fv).call(this),p(this,Z,gv).call(this),l){let m=[...o(this,we).values()];m.length>0?(m[d]??m[d-1]??m[0]).focus():o(this,kn)&&p(this,Z,OS).call(this)}});a(this,nh,t=>{o(this,En)&&Cq(t,o(this,En))&&o(this,we).size!==0&&(t.preventDefault(),p(this,Z,vB).call(this))});a(this,ah,t=>{let e=document.activeElement;if(!(e instanceof HTMLElement))return;let s=[...o(this,we).values()],l=s.findIndex(m=>m===e||m.contains(e));if(l===-1)return;let d=this.position.startsWith("top-");switch(t.key){case"ArrowDown":{t.preventDefault();let m=d?l-1:l+1;s[m]?.focus();break}case"ArrowUp":{t.preventDefault();let m=d?l+1:l-1;s[m]?.focus();break}case"Home":{t.preventDefault(),(d?s[s.length-1]:s[0])?.focus();break}case"End":{t.preventDefault(),(d?s[0]:s[s.length-1])?.focus();break}case"Escape":{t.preventDefault(),p(this,Z,OS).call(this);break}}});a(this,yv,(t,e)=>{let s=o(this,we).get(t);s&&(this.dispatchEvent(MS({id:t,reason:e})),s.dispatchEvent(new CustomEvent("dui-toast-request-dismiss",{detail:{reason:e}})))});a(this,zS,n(wt,44,this,p(this,Z,vv).call(this))),n(wt,47,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.label),this.setAttribute("data-position",this.position),h(this,En,sB(this.hotkey)),this.addEventListener("pointerenter",o(this,eh)),this.addEventListener("pointerleave",o(this,oh)),this.addEventListener("focusin",o(this,rh)),this.addEventListener("focusout",o(this,sh)),this.addEventListener("keydown",o(this,ah)),document.addEventListener("visibilitychange",o(this,ih)),document.addEventListener("keydown",o(this,nh)),h(this,qd,document.hidden),p(this,Z,yn).call(this),p(this,Z,wn).call(this),h(this,Js,new ResizeObserver(t=>{let e=!1;for(let s of t){let l=s.target,d=s.contentRect.height;o(this,Xs).get(l)!==d&&(o(this,Xs).set(l,d),e=!0)}e&&p(this,Z,gv).call(this)})),this._ctx=p(this,Z,vv).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,eh)),this.removeEventListener("pointerleave",o(this,oh)),this.removeEventListener("focusin",o(this,rh)),this.removeEventListener("focusout",o(this,sh)),this.removeEventListener("keydown",o(this,ah)),document.removeEventListener("visibilitychange",o(this,ih)),document.removeEventListener("keydown",o(this,nh)),o(this,Js)?.disconnect(),h(this,Js,void 0)}willUpdate(t){if(t.has("position")){this.setAttribute("data-position",this.position);for(let e of o(this,we).values())e.setAttribute("data-position",this.position)}t.has("label")&&this.setAttribute("aria-label",this.label),t.has("maxVisible")&&p(this,Z,fv).call(this),(t.has("expanded")||t.has("expandOnHover"))&&p(this,Z,wn).call(this),t.has("hotkey")&&h(this,En,sB(this.hotkey)),this._ctx=p(this,Z,vv).call(this)}render(){return f`
7697
+ `,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,kt,ES,CS,$S,TS,SS,AS,_S,RS,we,Xs,Js,kn,En,IS,LS,fv,gB,Z,Cn,$n,qd,jd,yn,wn,eh,oh,rh,sh,ih,xv,yv,vB,OS,nh,ah,bB,gv,vv,wv,zS,bv,xB,ee=class extends(fB=x,mB=[u({type:String,reflect:!0})],uB=[u({type:Number,attribute:"max-visible"})],hB=[u({type:String,attribute:"label"})],pB=[u({type:Boolean,attribute:"expand-on-hover"})],cB=[u({type:Boolean,reflect:!0})],dB=[u({type:String,attribute:"swipe-directions"})],lB=[u({type:Number,attribute:"swipe-threshold"})],aB=[u({type:String})],nB=[C()],iB=[lt({context:mv}),C()],fB){constructor(){super(...arguments);a(this,Z);a(this,ES,n(kt,8,this,"bottom-right")),n(kt,11,this);a(this,CS,n(kt,12,this,3)),n(kt,15,this);a(this,$S,n(kt,16,this,"Notifications")),n(kt,19,this);a(this,TS,n(kt,20,this,!0)),n(kt,23,this);a(this,SS,n(kt,24,this)),n(kt,27,this);a(this,AS,n(kt,28,this)),n(kt,31,this);a(this,_S,n(kt,32,this,50)),n(kt,35,this);a(this,RS,n(kt,36,this,"Alt+T")),n(kt,39,this);a(this,we,new Map);a(this,Xs,new WeakMap);a(this,Js);a(this,kn);a(this,En);a(this,IS,n(kt,40,this,!1)),n(kt,43,this);a(this,Cn,!1);a(this,$n,!1);a(this,qd,!1);a(this,jd,!1);a(this,eh,()=>{h(this,Cn,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,oh,()=>{h(this,Cn,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,rh,()=>{h(this,$n,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,sh,t=>{let e=t.relatedTarget;e&&this.contains(e)||(h(this,$n,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this))});a(this,ih,()=>{h(this,qd,document.hidden),p(this,Z,yn).call(this)});a(this,xv,(t,e)=>{o(this,we).has(t)||(o(this,we).set(t,e),p(this,Z,bB).call(this,e),o(this,Js)?.observe(e),o(this,Xs).set(e,e.getBoundingClientRect().height),p(this,Z,gv).call(this),p(this,Z,vv).call(this))});a(this,yv,t=>{let e=o(this,we).get(t);if(!e)return;let s=document.activeElement,l=s instanceof HTMLElement&&(s===e||e.contains(s)),d=l?[...o(this,we).values()].indexOf(e):-1;if(o(this,Js)?.unobserve(e),o(this,Xs).delete(e),o(this,we).delete(t),p(this,Z,gv).call(this),p(this,Z,vv).call(this),l){let m=[...o(this,we).values()];m.length>0?(m[d]??m[d-1]??m[0]).focus():o(this,kn)&&p(this,Z,OS).call(this)}});a(this,nh,t=>{o(this,En)&&Cq(t,o(this,En))&&o(this,we).size!==0&&(t.preventDefault(),p(this,Z,vB).call(this))});a(this,ah,t=>{let e=document.activeElement;if(!(e instanceof HTMLElement))return;let s=[...o(this,we).values()],l=s.findIndex(m=>m===e||m.contains(e));if(l===-1)return;let d=this.position.startsWith("top-");switch(t.key){case"ArrowDown":{t.preventDefault();let m=d?l-1:l+1;s[m]?.focus();break}case"ArrowUp":{t.preventDefault();let m=d?l+1:l-1;s[m]?.focus();break}case"Home":{t.preventDefault(),(d?s[s.length-1]:s[0])?.focus();break}case"End":{t.preventDefault(),(d?s[0]:s[s.length-1])?.focus();break}case"Escape":{t.preventDefault(),p(this,Z,OS).call(this);break}}});a(this,wv,(t,e)=>{let s=o(this,we).get(t);s&&(this.dispatchEvent(MS({id:t,reason:e})),s.dispatchEvent(new CustomEvent("dui-toast-request-dismiss",{detail:{reason:e}})))});a(this,zS,n(kt,44,this,p(this,Z,bv).call(this))),n(kt,47,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.label),this.setAttribute("data-position",this.position),h(this,En,sB(this.hotkey)),this.addEventListener("pointerenter",o(this,eh)),this.addEventListener("pointerleave",o(this,oh)),this.addEventListener("focusin",o(this,rh)),this.addEventListener("focusout",o(this,sh)),this.addEventListener("keydown",o(this,ah)),document.addEventListener("visibilitychange",o(this,ih)),document.addEventListener("keydown",o(this,nh)),h(this,qd,document.hidden),p(this,Z,yn).call(this),p(this,Z,wn).call(this),h(this,Js,new ResizeObserver(t=>{let e=!1;for(let s of t){let l=s.target,d=s.contentRect.height;o(this,Xs).get(l)!==d&&(o(this,Xs).set(l,d),e=!0)}e&&p(this,Z,vv).call(this)})),this._ctx=p(this,Z,bv).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,eh)),this.removeEventListener("pointerleave",o(this,oh)),this.removeEventListener("focusin",o(this,rh)),this.removeEventListener("focusout",o(this,sh)),this.removeEventListener("keydown",o(this,ah)),document.removeEventListener("visibilitychange",o(this,ih)),document.removeEventListener("keydown",o(this,nh)),o(this,Js)?.disconnect(),h(this,Js,void 0)}willUpdate(t){if(t.has("position")){this.setAttribute("data-position",this.position);for(let e of o(this,we).values())e.setAttribute("data-position",this.position)}t.has("label")&&this.setAttribute("aria-label",this.label),t.has("maxVisible")&&p(this,Z,gv).call(this),(t.has("expanded")||t.has("expandOnHover"))&&p(this,Z,wn).call(this),t.has("hotkey")&&h(this,En,sB(this.hotkey)),this._ctx=p(this,Z,bv).call(this)}render(){return f`
7698
7698
  <div
7699
7699
  part="list"
7700
- ?data-paused=${o(this,Z,mv)}
7700
+ ?data-paused=${o(this,Z,fv)}
7701
7701
  >
7702
7702
  <slot></slot>
7703
7703
  </div>
7704
- `}};wt=A(fB),ES=new WeakMap,CS=new WeakMap,$S=new WeakMap,TS=new WeakMap,SS=new WeakMap,AS=new WeakMap,_S=new WeakMap,RS=new WeakMap,we=new WeakMap,Xs=new WeakMap,Js=new WeakMap,kn=new WeakMap,En=new WeakMap,IS=new WeakMap,Z=new WeakSet,Cn=new WeakMap,$n=new WeakMap,qd=new WeakMap,jd=new WeakMap,yn=function(){let t=o(this,Cn)||o(this,$n)||o(this,qd);t!==o(this,Z,mv)&&h(this,Z,t,gB)},wn=function(){let t;if(this.expanded!==void 0?t=this.expanded:this.expandOnHover?t=o(this,Cn)||o(this,$n):t=!1,t!==o(this,jd)){h(this,jd,t),t?this.setAttribute("data-expanded",""):this.removeAttribute("data-expanded");for(let e of o(this,we).values())t?e.setAttribute("data-region-expanded",""):e.removeAttribute("data-region-expanded")}},eh=new WeakMap,oh=new WeakMap,rh=new WeakMap,sh=new WeakMap,ih=new WeakMap,bv=new WeakMap,xv=new WeakMap,vB=function(){let t=[...o(this,we).values()];if(t.length===0)return!1;let e=t[t.length-1],s=document.activeElement;return s instanceof HTMLElement&&!this.contains(s)&&s!==document.body&&h(this,kn,s),e.focus(),!0},OS=function(){let t=o(this,kn);h(this,kn,void 0),t&&t.isConnected?t.focus():document.activeElement instanceof HTMLElement&&this.contains(document.activeElement)&&document.activeElement.blur()},nh=new WeakMap,ah=new WeakMap,bB=function(t){t.setAttribute("data-position",this.position),o(this,jd)&&t.setAttribute("data-region-expanded","")},fv=function(){let t=[...o(this,we).values()],e=t.length;for(let l=0;l<e;l++){let d=e-1-l,m=t[l];m.style.setProperty("--toast-index",String(d)),m.style.setProperty("--toasts-total",String(e)),d===0?m.setAttribute("data-front",""):m.removeAttribute("data-front"),d>=this.maxVisible?m.setAttribute("data-overflow",""):m.removeAttribute("data-overflow")}let s=Math.max(0,e-this.maxVisible);this.style.setProperty("--toasts-overflow-count",String(s)),s>0?this.setAttribute("data-overflow-count",String(s)):this.removeAttribute("data-overflow-count")},gv=function(){let t=[...o(this,we).values()],e=0;for(let s=t.length-1;s>=0;s--){let l=t[s];l.style.setProperty("--toasts-before-height",`${e}px`);let d=o(this,Xs).get(l)??0;l.style.setProperty("--toast-height",`${d}px`),e+=d}this.style.setProperty("--toasts-stack-height",`${e}px`)},yv=new WeakMap,zS=new WeakMap,vv=function(){return{position:this.position,maxVisible:this.maxVisible,paused:o(this,Z,mv),swipeDirections:p(this,Z,xB).call(this),swipeThreshold:this.swipeThreshold,registerToast:o(this,bv),unregisterToast:o(this,xv),dismiss:o(this,yv)}},xB=function(){let t=this.swipeDirections;if(t==="none")return[];if(t&&t.trim().length>0){let e=[];for(let s of t.split(",")){let l=s.trim();(l==="left"||l==="right"||l==="up"||l==="down")&&e.push(l)}return e}switch(this.position){case"top-right":case"bottom-right":return["right"];case"top-left":case"bottom-left":return["left"];case"top-center":return["up"];case"bottom-center":return["down"]}},c(wt,4,"position",mB,ee,ES),c(wt,4,"maxVisible",uB,ee,CS),c(wt,4,"label",hB,ee,$S),c(wt,4,"expandOnHover",pB,ee,TS),c(wt,4,"expanded",cB,ee,SS),c(wt,4,"swipeDirections",dB,ee,AS),c(wt,4,"swipeThreshold",lB,ee,_S),c(wt,4,"hotkey",aB,ee,RS),LS=c(wt,20,"#paused",nB,Z,IS),mv=LS.get,gB=LS.set,c(wt,4,"_ctx",iB,ee,zS),T(wt,ee),v(ee,"tagName","dui-toast-region"),v(ee,"styles",[w,$q]);var wv=class{#t;#e;#o=-1;#n=0;#d=0;#c=0;#a=0;#f=0;#g=0;#l;#s=!1;#m=!1;#p;constructor(r,t){this.#t=r,this.#e=t}attach(){this.#t.addEventListener("pointerdown",this.#w),this.#t.addEventListener("pointermove",this.#x),this.#t.addEventListener("pointerup",this.#k),this.#t.addEventListener("pointercancel",this.#v),this.#t.addEventListener("click",this.#r,{capture:!0}),this.#t.addEventListener("dragstart",this.#b)}detach(){this.#t.removeEventListener("pointerdown",this.#w),this.#t.removeEventListener("pointermove",this.#x),this.#t.removeEventListener("pointerup",this.#k),this.#t.removeEventListener("pointercancel",this.#v),this.#t.removeEventListener("click",this.#r,{capture:!0}),this.#t.removeEventListener("dragstart",this.#b),this.#p!==void 0&&(clearTimeout(this.#p),this.#p=void 0)}#h(r){return this.#e.getDirections().includes(r)}#w=r=>{r.button!==0&&r.pointerType==="mouse"||this.#e.getDirections().length!==0&&(this.#C(r.target)||(this.#o=r.pointerId,this.#n=this.#a=r.clientX,this.#d=this.#f=r.clientY,this.#c=this.#g=r.timeStamp,this.#l=void 0,this.#s=!1))};#x=r=>{if(r.pointerId!==this.#o)return;let t=r.clientX-this.#n,e=r.clientY-this.#d;if(!this.#s){if(Math.hypot(t,e)<6)return;if(Math.abs(t)>=Math.abs(e)){let g=t>0?"right":"left";if(!this.#h(g)){this.#i();return}this.#l="x"}else{let g=e>0?"down":"up";if(!this.#h(g)){this.#i();return}this.#l="y"}this.#s=!0,this.#t.setAttribute("data-swipe","start");try{this.#t.setPointerCapture(r.pointerId)}catch{}}let s=this.#l==="x"?this.#y(t):0,l=this.#l==="y"?this.#E(e):0;this.#t.style.setProperty("--swipe-amount-x",`${s}px`),this.#t.style.setProperty("--swipe-amount-y",`${l}px`),this.#t.setAttribute("data-swipe","move"),this.#a=r.clientX,this.#f=r.clientY,this.#g=r.timeStamp};#k=r=>{if(r.pointerId!==this.#o||(this.#o=-1,!this.#s))return;let t=r.clientX-this.#n,e=r.clientY-this.#d,s=Math.max(r.timeStamp-this.#c,1),l=this.#l==="x"?Math.abs(t):Math.abs(e),d=l/s*1e3,m=this.#e.getThreshold(),g=l>=m||d>=600;this.#m=!0,queueMicrotask(()=>{this.#m=!1}),g?(this.#t.setAttribute("data-swipe","end"),this.#e.onDismiss("swipe")):(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0};#v=r=>{r.pointerId===this.#o&&(this.#o=-1,this.#s&&(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0)};#r=r=>{this.#m&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation())};#b=r=>{(this.#o!==-1||this.#s)&&r.preventDefault()};#i(){this.#o=-1,this.#s=!1,this.#l=void 0}#u(){this.#p!==void 0&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.#t.removeAttribute("data-swipe"),this.#t.style.removeProperty("--swipe-amount-x"),this.#t.style.removeProperty("--swipe-amount-y"),this.#p=void 0},350)}#y(r){let t=this.#h("left"),e=this.#h("right");return r<0&&!t||r>0&&!e?0:r}#E(r){let t=this.#h("up"),e=this.#h("down");return r<0&&!t||r>0&&!e?0:r}#C(r){return r instanceof Element?!!(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement||r.isContentEditable):!1}};var dh=M("open-change",{bubbles:!0,composed:!0}),Sv=M("dismiss",{bubbles:!0,composed:!0}),Tq=b`
7704
+ `}};kt=A(fB),ES=new WeakMap,CS=new WeakMap,$S=new WeakMap,TS=new WeakMap,SS=new WeakMap,AS=new WeakMap,_S=new WeakMap,RS=new WeakMap,we=new WeakMap,Xs=new WeakMap,Js=new WeakMap,kn=new WeakMap,En=new WeakMap,IS=new WeakMap,Z=new WeakSet,Cn=new WeakMap,$n=new WeakMap,qd=new WeakMap,jd=new WeakMap,yn=function(){let t=o(this,Cn)||o(this,$n)||o(this,qd);t!==o(this,Z,fv)&&h(this,Z,t,gB)},wn=function(){let t;if(this.expanded!==void 0?t=this.expanded:this.expandOnHover?t=o(this,Cn)||o(this,$n):t=!1,t!==o(this,jd)){h(this,jd,t),t?this.setAttribute("data-expanded",""):this.removeAttribute("data-expanded");for(let e of o(this,we).values())t?e.setAttribute("data-region-expanded",""):e.removeAttribute("data-region-expanded")}},eh=new WeakMap,oh=new WeakMap,rh=new WeakMap,sh=new WeakMap,ih=new WeakMap,xv=new WeakMap,yv=new WeakMap,vB=function(){let t=[...o(this,we).values()];if(t.length===0)return!1;let e=t[t.length-1],s=document.activeElement;return s instanceof HTMLElement&&!this.contains(s)&&s!==document.body&&h(this,kn,s),e.focus(),!0},OS=function(){let t=o(this,kn);h(this,kn,void 0),t&&t.isConnected?t.focus():document.activeElement instanceof HTMLElement&&this.contains(document.activeElement)&&document.activeElement.blur()},nh=new WeakMap,ah=new WeakMap,bB=function(t){t.setAttribute("data-position",this.position),o(this,jd)&&t.setAttribute("data-region-expanded","")},gv=function(){let t=[...o(this,we).values()],e=t.length;for(let l=0;l<e;l++){let d=e-1-l,m=t[l];m.style.setProperty("--toast-index",String(d)),m.style.setProperty("--toasts-total",String(e)),d===0?m.setAttribute("data-front",""):m.removeAttribute("data-front"),d>=this.maxVisible?m.setAttribute("data-overflow",""):m.removeAttribute("data-overflow")}let s=Math.max(0,e-this.maxVisible);this.style.setProperty("--toasts-overflow-count",String(s)),s>0?this.setAttribute("data-overflow-count",String(s)):this.removeAttribute("data-overflow-count")},vv=function(){let t=[...o(this,we).values()],e=0;for(let s=t.length-1;s>=0;s--){let l=t[s];l.style.setProperty("--toasts-before-height",`${e}px`);let d=o(this,Xs).get(l)??0;l.style.setProperty("--toast-height",`${d}px`),e+=d}this.style.setProperty("--toasts-stack-height",`${e}px`)},wv=new WeakMap,zS=new WeakMap,bv=function(){return{position:this.position,maxVisible:this.maxVisible,paused:o(this,Z,fv),swipeDirections:p(this,Z,xB).call(this),swipeThreshold:this.swipeThreshold,registerToast:o(this,xv),unregisterToast:o(this,yv),dismiss:o(this,wv)}},xB=function(){let t=this.swipeDirections;if(t==="none")return[];if(t&&t.trim().length>0){let e=[];for(let s of t.split(",")){let l=s.trim();(l==="left"||l==="right"||l==="up"||l==="down")&&e.push(l)}return e}switch(this.position){case"top-right":case"bottom-right":return["right"];case"top-left":case"bottom-left":return["left"];case"top-center":return["up"];case"bottom-center":return["down"]}},c(kt,4,"position",mB,ee,ES),c(kt,4,"maxVisible",uB,ee,CS),c(kt,4,"label",hB,ee,$S),c(kt,4,"expandOnHover",pB,ee,TS),c(kt,4,"expanded",cB,ee,SS),c(kt,4,"swipeDirections",dB,ee,AS),c(kt,4,"swipeThreshold",lB,ee,_S),c(kt,4,"hotkey",aB,ee,RS),LS=c(kt,20,"#paused",nB,Z,IS),fv=LS.get,gB=LS.set,c(kt,4,"_ctx",iB,ee,zS),T(kt,ee),v(ee,"tagName","dui-toast-region"),v(ee,"styles",[w,$q]);var kv=class{#t;#e;#o=-1;#n=0;#d=0;#c=0;#a=0;#f=0;#g=0;#l;#s=!1;#m=!1;#p;constructor(r,t){this.#t=r,this.#e=t}attach(){this.#t.addEventListener("pointerdown",this.#w),this.#t.addEventListener("pointermove",this.#x),this.#t.addEventListener("pointerup",this.#k),this.#t.addEventListener("pointercancel",this.#v),this.#t.addEventListener("click",this.#r,{capture:!0}),this.#t.addEventListener("dragstart",this.#b)}detach(){this.#t.removeEventListener("pointerdown",this.#w),this.#t.removeEventListener("pointermove",this.#x),this.#t.removeEventListener("pointerup",this.#k),this.#t.removeEventListener("pointercancel",this.#v),this.#t.removeEventListener("click",this.#r,{capture:!0}),this.#t.removeEventListener("dragstart",this.#b),this.#p!==void 0&&(clearTimeout(this.#p),this.#p=void 0)}#h(r){return this.#e.getDirections().includes(r)}#w=r=>{r.button!==0&&r.pointerType==="mouse"||this.#e.getDirections().length!==0&&(this.#C(r.target)||(this.#o=r.pointerId,this.#n=this.#a=r.clientX,this.#d=this.#f=r.clientY,this.#c=this.#g=r.timeStamp,this.#l=void 0,this.#s=!1))};#x=r=>{if(r.pointerId!==this.#o)return;let t=r.clientX-this.#n,e=r.clientY-this.#d;if(!this.#s){if(Math.hypot(t,e)<6)return;if(Math.abs(t)>=Math.abs(e)){let g=t>0?"right":"left";if(!this.#h(g)){this.#i();return}this.#l="x"}else{let g=e>0?"down":"up";if(!this.#h(g)){this.#i();return}this.#l="y"}this.#s=!0,this.#t.setAttribute("data-swipe","start");try{this.#t.setPointerCapture(r.pointerId)}catch{}}let s=this.#l==="x"?this.#y(t):0,l=this.#l==="y"?this.#E(e):0;this.#t.style.setProperty("--swipe-amount-x",`${s}px`),this.#t.style.setProperty("--swipe-amount-y",`${l}px`),this.#t.setAttribute("data-swipe","move"),this.#a=r.clientX,this.#f=r.clientY,this.#g=r.timeStamp};#k=r=>{if(r.pointerId!==this.#o||(this.#o=-1,!this.#s))return;let t=r.clientX-this.#n,e=r.clientY-this.#d,s=Math.max(r.timeStamp-this.#c,1),l=this.#l==="x"?Math.abs(t):Math.abs(e),d=l/s*1e3,m=this.#e.getThreshold(),g=l>=m||d>=600;this.#m=!0,queueMicrotask(()=>{this.#m=!1}),g?(this.#t.setAttribute("data-swipe","end"),this.#e.onDismiss("swipe")):(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0};#v=r=>{r.pointerId===this.#o&&(this.#o=-1,this.#s&&(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0)};#r=r=>{this.#m&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation())};#b=r=>{(this.#o!==-1||this.#s)&&r.preventDefault()};#i(){this.#o=-1,this.#s=!1,this.#l=void 0}#u(){this.#p!==void 0&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.#t.removeAttribute("data-swipe"),this.#t.style.removeProperty("--swipe-amount-x"),this.#t.style.removeProperty("--swipe-amount-y"),this.#p=void 0},350)}#y(r){let t=this.#h("left"),e=this.#h("right");return r<0&&!t||r>0&&!e?0:r}#E(r){let t=this.#h("up"),e=this.#h("down");return r<0&&!t||r>0&&!e?0:r}#C(r){return r instanceof Element?!!(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement||r.isContentEditable):!1}};var dh=M("open-change",{bubbles:!0,composed:!0}),Av=M("dismiss",{bubbles:!0,composed:!0}),Tq=b`
7705
7705
  :host {
7706
7706
  display: block;
7707
7707
  box-sizing: border-box;
@@ -7757,7 +7757,7 @@ label, legend, caption, figcaption, th, td {
7757
7757
  [part="description"]:empty {
7758
7758
  display: none;
7759
7759
  }
7760
- `,yB,wB,kB,EB,CB,$B,TB,SB,AB,_B,RB,IB,LB,zB,OB,tt,NS,DS,HS,BS,FS,VS,PS,US,qS,MB,kv,z,jS,KS,fs,Ev,WS,YS,NB,oA,GS,XS,DB,Cv,JS,QS,HB,BB,ZS,tA,FB,VB,Wd,ch,ph,Fr,hh,Tn,vs,Vr,Yd,Qs,Pr,uh,rA,$v,sA,Kd,Tv,PB,gs,iA,nA,aA,UB,qB,lh,mh,fh,gh,Av,_v,Rv,eA,lA,re=class extends(OB=x,zB=[u({type:Boolean,reflect:!0})],LB=[u({type:Boolean,attribute:"default-open"})],IB=[u({type:Number})],RB=[u({type:String,reflect:!0})],_B=[u({type:String})],AB=[u({type:String,attribute:"toast-id",reflect:!0})],SB=[u({type:Boolean,reflect:!0})],TB=[C()],$B=[C()],CB=[C()],EB=[C()],kB=[C()],wB=[C()],yB=[lt({context:Ud}),C()],OB){constructor(){super(...arguments);a(this,z);a(this,NS,n(tt,8,this)),n(tt,11,this);a(this,DS,n(tt,12,this,!0)),n(tt,15,this);a(this,HS,n(tt,16,this,4e3)),n(tt,19,this);a(this,BS,n(tt,20,this,"default")),n(tt,23,this);a(this,FS,n(tt,24,this,"polite")),n(tt,27,this);a(this,VS,n(tt,28,this)),n(tt,31,this);a(this,PS,n(tt,32,this,!1)),n(tt,35,this);a(this,US,n(tt,36,this,!1)),n(tt,39,this);a(this,jS,n(tt,40,this,"closed")),n(tt,43,this);a(this,WS,n(tt,44,this,!1)),n(tt,47,this);a(this,GS,n(tt,48,this,!1)),n(tt,51,this);a(this,JS,n(tt,52,this,!1)),n(tt,55,this);a(this,ZS,n(tt,56,this,!1)),n(tt,59,this);a(this,Wd,crypto.randomUUID().slice(0,8));a(this,ch,`dui-toast-title-${o(this,Wd)}`);a(this,ph,`dui-toast-desc-${o(this,Wd)}`);a(this,Fr);a(this,hh,0);a(this,Tn,0);a(this,vs,!1);a(this,Vr);a(this,Yd,!1);a(this,Qs,!1);a(this,Pr,new q(this,{context:uv,subscribe:!0}));a(this,uh,new wv(this,{getDirections:()=>o(this,Pr).value?.swipeDirections??[],getThreshold:()=>o(this,Pr).value?.swipeThreshold??50,onDismiss:t=>p(this,z,gs).call(this,t)}));a(this,mh,t=>{t.stopPropagation(),p(this,z,gs).call(this,t.detail?.reason??"programmatic")});a(this,fh,t=>{if(t.key!=="Delete"&&t.key!=="Backspace")return;let e=t.target;e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable||(t.preventDefault(),p(this,z,gs).call(this,"keyboard")))});a(this,gh,t=>{let e=t.composedPath();for(let s of e){if(s===this)break;if(s instanceof Element&&s.hasAttribute("data-toast-dismiss")){let l=s.getAttribute("data-toast-dismiss-reason")??"close";p(this,z,gs).call(this,l);return}}});a(this,Av,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,BB)});a(this,_v,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,VB)});a(this,Rv,t=>{p(this,z,gs).call(this,t)});a(this,eA,n(tt,60,this,p(this,z,lA).call(this))),n(tt,63,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,z,!0,kv),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.addEventListener("dui-toast-request-dismiss",o(this,mh)),this.addEventListener("click",o(this,gh)),this.addEventListener("keydown",o(this,fh)),o(this,uh).attach()}disconnectedCallback(){super.disconnectedCallback(),p(this,z,lh).call(this),o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),p(this,z,$v).call(this),this.removeEventListener("dui-toast-request-dismiss",o(this,mh)),this.removeEventListener("click",o(this,gh)),this.removeEventListener("keydown",o(this,fh)),o(this,uh).detach()}willUpdate(t){t.has("toastId")&&(this._itemCtx=p(this,z,lA).call(this)),this.setAttribute("data-state",o(this,z,fs))}updated(){let t=o(this,z,sA),e=o(this,Yd);if(h(this,Yd,t),o(this,z,fs)==="open"&&!o(this,Qs)&&o(this,Pr).value&&p(this,z,rA).call(this),!t&&e&&o(this,z,fs)==="open"){p(this,z,gs).call(this,"programmatic");return}if(t&&o(this,z,fs)==="closed"){p(this,z,PB).call(this);return}if(o(this,z,fs)==="open"&&!o(this,z,Tv)){let s=o(this,Pr).value?.paused??!1;s&&!o(this,vs)?p(this,z,UB).call(this):!s&&o(this,vs)&&p(this,z,qB).call(this)}}dismiss(t="programmatic"){p(this,z,gs).call(this,t)}resetTimer(){o(this,z,fs)==="open"&&(p(this,z,lh).call(this),p(this,z,nA).call(this))}render(){let t=this.priority==="assertive"?"alert":"status",e=this.priority;return f`
7760
+ `,yB,wB,kB,EB,CB,$B,TB,SB,AB,_B,RB,IB,LB,zB,OB,tt,NS,DS,HS,BS,FS,VS,PS,US,qS,MB,Ev,z,jS,KS,fs,Cv,WS,YS,NB,oA,GS,XS,DB,$v,JS,QS,HB,BB,ZS,tA,FB,VB,Wd,ch,ph,Fr,hh,Tn,vs,Vr,Yd,Qs,Pr,uh,rA,Tv,sA,Kd,Sv,PB,gs,iA,nA,aA,UB,qB,lh,mh,fh,gh,_v,Rv,Iv,eA,lA,re=class extends(OB=x,zB=[u({type:Boolean,reflect:!0})],LB=[u({type:Boolean,attribute:"default-open"})],IB=[u({type:Number})],RB=[u({type:String,reflect:!0})],_B=[u({type:String})],AB=[u({type:String,attribute:"toast-id",reflect:!0})],SB=[u({type:Boolean,reflect:!0})],TB=[C()],$B=[C()],CB=[C()],EB=[C()],kB=[C()],wB=[C()],yB=[lt({context:Ud}),C()],OB){constructor(){super(...arguments);a(this,z);a(this,NS,n(tt,8,this)),n(tt,11,this);a(this,DS,n(tt,12,this,!0)),n(tt,15,this);a(this,HS,n(tt,16,this,4e3)),n(tt,19,this);a(this,BS,n(tt,20,this,"default")),n(tt,23,this);a(this,FS,n(tt,24,this,"polite")),n(tt,27,this);a(this,VS,n(tt,28,this)),n(tt,31,this);a(this,PS,n(tt,32,this,!1)),n(tt,35,this);a(this,US,n(tt,36,this,!1)),n(tt,39,this);a(this,jS,n(tt,40,this,"closed")),n(tt,43,this);a(this,WS,n(tt,44,this,!1)),n(tt,47,this);a(this,GS,n(tt,48,this,!1)),n(tt,51,this);a(this,JS,n(tt,52,this,!1)),n(tt,55,this);a(this,ZS,n(tt,56,this,!1)),n(tt,59,this);a(this,Wd,crypto.randomUUID().slice(0,8));a(this,ch,`dui-toast-title-${o(this,Wd)}`);a(this,ph,`dui-toast-desc-${o(this,Wd)}`);a(this,Fr);a(this,hh,0);a(this,Tn,0);a(this,vs,!1);a(this,Vr);a(this,Yd,!1);a(this,Qs,!1);a(this,Pr,new q(this,{context:mv,subscribe:!0}));a(this,uh,new kv(this,{getDirections:()=>o(this,Pr).value?.swipeDirections??[],getThreshold:()=>o(this,Pr).value?.swipeThreshold??50,onDismiss:t=>p(this,z,gs).call(this,t)}));a(this,mh,t=>{t.stopPropagation(),p(this,z,gs).call(this,t.detail?.reason??"programmatic")});a(this,fh,t=>{if(t.key!=="Delete"&&t.key!=="Backspace")return;let e=t.target;e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable||(t.preventDefault(),p(this,z,gs).call(this,"keyboard")))});a(this,gh,t=>{let e=t.composedPath();for(let s of e){if(s===this)break;if(s instanceof Element&&s.hasAttribute("data-toast-dismiss")){let l=s.getAttribute("data-toast-dismiss-reason")??"close";p(this,z,gs).call(this,l);return}}});a(this,_v,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,BB)});a(this,Rv,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,VB)});a(this,Iv,t=>{p(this,z,gs).call(this,t)});a(this,eA,n(tt,60,this,p(this,z,lA).call(this))),n(tt,63,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,z,!0,Ev),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.addEventListener("dui-toast-request-dismiss",o(this,mh)),this.addEventListener("click",o(this,gh)),this.addEventListener("keydown",o(this,fh)),o(this,uh).attach()}disconnectedCallback(){super.disconnectedCallback(),p(this,z,lh).call(this),o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),p(this,z,Tv).call(this),this.removeEventListener("dui-toast-request-dismiss",o(this,mh)),this.removeEventListener("click",o(this,gh)),this.removeEventListener("keydown",o(this,fh)),o(this,uh).detach()}willUpdate(t){t.has("toastId")&&(this._itemCtx=p(this,z,lA).call(this)),this.setAttribute("data-state",o(this,z,fs))}updated(){let t=o(this,z,sA),e=o(this,Yd);if(h(this,Yd,t),o(this,z,fs)==="open"&&!o(this,Qs)&&o(this,Pr).value&&p(this,z,rA).call(this),!t&&e&&o(this,z,fs)==="open"){p(this,z,gs).call(this,"programmatic");return}if(t&&o(this,z,fs)==="closed"){p(this,z,PB).call(this);return}if(o(this,z,fs)==="open"&&!o(this,z,Sv)){let s=o(this,Pr).value?.paused??!1;s&&!o(this,vs)?p(this,z,UB).call(this):!s&&o(this,vs)&&p(this,z,qB).call(this)}}dismiss(t="programmatic"){p(this,z,gs).call(this,t)}resetTimer(){o(this,z,fs)==="open"&&(p(this,z,lh).call(this),p(this,z,nA).call(this))}render(){let t=this.priority==="assertive"?"alert":"status",e=this.priority;return f`
7761
7761
  <div
7762
7762
  part="root"
7763
7763
  role=${t}
@@ -7773,13 +7773,13 @@ label, legend, caption, figcaption, th, td {
7773
7773
  <div part="title" id=${o(this,ch)}>
7774
7774
  <slot
7775
7775
  name="title"
7776
- @slotchange=${o(this,Av)}
7776
+ @slotchange=${o(this,_v)}
7777
7777
  ></slot>
7778
7778
  </div>
7779
7779
  <div part="description" id=${o(this,ph)}>
7780
7780
  <slot
7781
7781
  name="description"
7782
- @slotchange=${o(this,_v)}
7782
+ @slotchange=${o(this,Rv)}
7783
7783
  ></slot>
7784
7784
  </div>
7785
7785
  <slot></slot>
@@ -7787,7 +7787,7 @@ label, legend, caption, figcaption, th, td {
7787
7787
  <slot name="close"></slot>
7788
7788
  `}
7789
7789
  </div>
7790
- `}};tt=A(OB),NS=new WeakMap,DS=new WeakMap,HS=new WeakMap,BS=new WeakMap,FS=new WeakMap,VS=new WeakMap,PS=new WeakMap,US=new WeakMap,z=new WeakSet,jS=new WeakMap,WS=new WeakMap,GS=new WeakMap,JS=new WeakMap,ZS=new WeakMap,Wd=new WeakMap,ch=new WeakMap,ph=new WeakMap,Fr=new WeakMap,hh=new WeakMap,Tn=new WeakMap,vs=new WeakMap,Vr=new WeakMap,Yd=new WeakMap,Qs=new WeakMap,Pr=new WeakMap,uh=new WeakMap,rA=function(){if(o(this,Qs))return;let t=o(this,Pr).value;t&&(t.registerToast(o(this,z,Kd),this),h(this,Qs,!0))},$v=function(){o(this,Qs)&&(o(this,Pr).value?.unregisterToast(o(this,z,Kd)),h(this,Qs,!1))},sA=function(){return this.open??o(this,z,MB)},Kd=function(){return this.toastId??`dui-toast-${o(this,Wd)}`},Tv=function(){return this.type==="loading"||this.duration<=0},PB=async function(){p(this,z,rA).call(this),h(this,z,"open",Ev),h(this,z,!0,oA),h(this,z,!1,Cv),this.requestUpdate(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,z,!1,oA),this.dispatchEvent(dh({open:!0})),p(this,z,nA).call(this)},gs=function(t){if(o(this,z,fs)==="closed"){if(!o(this,z,sA))return;this.open===void 0&&h(this,z,!1,kv),h(this,Yd,!1),p(this,z,$v).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Sv({id:o(this,z,Kd),reason:t}));return}if(o(this,z,fs)!=="open")return;p(this,z,lh).call(this),h(this,z,"closing",Ev),h(this,z,!0,Cv),this.requestUpdate();let e=this.shadowRoot?.querySelector('[part="root"]');if(!e){p(this,z,iA).call(this,t);return}let s=!1,l=()=>{s||(s=!0,e.removeEventListener("transitionend",d),o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),p(this,z,iA).call(this,t))},d=m=>{m.propertyName==="opacity"&&l()};e.addEventListener("transitionend",d),h(this,Vr,setTimeout(l,400))},iA=function(t){this.isConnected&&(h(this,z,"closed",Ev),h(this,z,!1,Cv),this.open===void 0&&h(this,z,!1,kv),p(this,z,$v).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Sv({id:o(this,z,Kd),reason:t})))},nA=function(){if(o(this,z,Tv))return;if(h(this,Tn,this.duration),o(this,Pr).value?.paused??!1){h(this,vs,!0);return}p(this,z,aA).call(this)},aA=function(){p(this,z,lh).call(this),h(this,hh,performance.now()),h(this,vs,!1),h(this,Fr,setTimeout(()=>{p(this,z,gs).call(this,"auto")},o(this,Tn)))},UB=function(){if(o(this,Fr)===void 0)return;clearTimeout(o(this,Fr)),h(this,Fr,void 0);let t=performance.now()-o(this,hh);h(this,Tn,Math.max(0,o(this,Tn)-t)),h(this,vs,!0)},qB=function(){o(this,z,Tv)||p(this,z,aA).call(this)},lh=function(){o(this,Fr)!==void 0&&(clearTimeout(o(this,Fr)),h(this,Fr,void 0)),h(this,vs,!1)},mh=new WeakMap,fh=new WeakMap,gh=new WeakMap,Av=new WeakMap,_v=new WeakMap,Rv=new WeakMap,eA=new WeakMap,lA=function(){return{id:o(this,z,Kd),dismiss:o(this,Rv)}},c(tt,4,"open",zB,re,NS),c(tt,4,"defaultOpen",LB,re,DS),c(tt,4,"duration",IB,re,HS),c(tt,4,"type",RB,re,BS),c(tt,4,"priority",_B,re,FS),c(tt,4,"toastId",AB,re,VS),c(tt,4,"headless",SB,re,PS),qS=c(tt,20,"#internalOpen",TB,z,US),MB=qS.get,kv=qS.set,KS=c(tt,20,"#state",$B,z,jS),fs=KS.get,Ev=KS.set,YS=c(tt,20,"#startingStyle",CB,z,WS),NB=YS.get,oA=YS.set,XS=c(tt,20,"#endingStyle",EB,z,GS),DB=XS.get,Cv=XS.set,QS=c(tt,20,"#hasTitle",kB,z,JS),HB=QS.get,BB=QS.set,tA=c(tt,20,"#hasDescription",wB,z,ZS),FB=tA.get,VB=tA.set,c(tt,4,"_itemCtx",yB,re,eA),T(tt,re),v(re,"tagName","dui-toast"),v(re,"styles",[w,Tq,Sq]);var Aq=b`
7790
+ `}};tt=A(OB),NS=new WeakMap,DS=new WeakMap,HS=new WeakMap,BS=new WeakMap,FS=new WeakMap,VS=new WeakMap,PS=new WeakMap,US=new WeakMap,z=new WeakSet,jS=new WeakMap,WS=new WeakMap,GS=new WeakMap,JS=new WeakMap,ZS=new WeakMap,Wd=new WeakMap,ch=new WeakMap,ph=new WeakMap,Fr=new WeakMap,hh=new WeakMap,Tn=new WeakMap,vs=new WeakMap,Vr=new WeakMap,Yd=new WeakMap,Qs=new WeakMap,Pr=new WeakMap,uh=new WeakMap,rA=function(){if(o(this,Qs))return;let t=o(this,Pr).value;t&&(t.registerToast(o(this,z,Kd),this),h(this,Qs,!0))},Tv=function(){o(this,Qs)&&(o(this,Pr).value?.unregisterToast(o(this,z,Kd)),h(this,Qs,!1))},sA=function(){return this.open??o(this,z,MB)},Kd=function(){return this.toastId??`dui-toast-${o(this,Wd)}`},Sv=function(){return this.type==="loading"||this.duration<=0},PB=async function(){p(this,z,rA).call(this),h(this,z,"open",Cv),h(this,z,!0,oA),h(this,z,!1,$v),this.requestUpdate(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,z,!1,oA),this.dispatchEvent(dh({open:!0})),p(this,z,nA).call(this)},gs=function(t){if(o(this,z,fs)==="closed"){if(!o(this,z,sA))return;this.open===void 0&&h(this,z,!1,Ev),h(this,Yd,!1),p(this,z,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,z,Kd),reason:t}));return}if(o(this,z,fs)!=="open")return;p(this,z,lh).call(this),h(this,z,"closing",Cv),h(this,z,!0,$v),this.requestUpdate();let e=this.shadowRoot?.querySelector('[part="root"]');if(!e){p(this,z,iA).call(this,t);return}let s=!1,l=()=>{s||(s=!0,e.removeEventListener("transitionend",d),o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),p(this,z,iA).call(this,t))},d=m=>{m.propertyName==="opacity"&&l()};e.addEventListener("transitionend",d),h(this,Vr,setTimeout(l,400))},iA=function(t){this.isConnected&&(h(this,z,"closed",Cv),h(this,z,!1,$v),this.open===void 0&&h(this,z,!1,Ev),p(this,z,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,z,Kd),reason:t})))},nA=function(){if(o(this,z,Sv))return;if(h(this,Tn,this.duration),o(this,Pr).value?.paused??!1){h(this,vs,!0);return}p(this,z,aA).call(this)},aA=function(){p(this,z,lh).call(this),h(this,hh,performance.now()),h(this,vs,!1),h(this,Fr,setTimeout(()=>{p(this,z,gs).call(this,"auto")},o(this,Tn)))},UB=function(){if(o(this,Fr)===void 0)return;clearTimeout(o(this,Fr)),h(this,Fr,void 0);let t=performance.now()-o(this,hh);h(this,Tn,Math.max(0,o(this,Tn)-t)),h(this,vs,!0)},qB=function(){o(this,z,Sv)||p(this,z,aA).call(this)},lh=function(){o(this,Fr)!==void 0&&(clearTimeout(o(this,Fr)),h(this,Fr,void 0)),h(this,vs,!1)},mh=new WeakMap,fh=new WeakMap,gh=new WeakMap,_v=new WeakMap,Rv=new WeakMap,Iv=new WeakMap,eA=new WeakMap,lA=function(){return{id:o(this,z,Kd),dismiss:o(this,Iv)}},c(tt,4,"open",zB,re,NS),c(tt,4,"defaultOpen",LB,re,DS),c(tt,4,"duration",IB,re,HS),c(tt,4,"type",RB,re,BS),c(tt,4,"priority",_B,re,FS),c(tt,4,"toastId",AB,re,VS),c(tt,4,"headless",SB,re,PS),qS=c(tt,20,"#internalOpen",TB,z,US),MB=qS.get,Ev=qS.set,KS=c(tt,20,"#state",$B,z,jS),fs=KS.get,Cv=KS.set,YS=c(tt,20,"#startingStyle",CB,z,WS),NB=YS.get,oA=YS.set,XS=c(tt,20,"#endingStyle",EB,z,GS),DB=XS.get,$v=XS.set,QS=c(tt,20,"#hasTitle",kB,z,JS),HB=QS.get,BB=QS.set,tA=c(tt,20,"#hasDescription",wB,z,ZS),FB=tA.get,VB=tA.set,c(tt,4,"_itemCtx",yB,re,eA),T(tt,re),v(re,"tagName","dui-toast"),v(re,"styles",[w,Tq,Sq]);var Aq=b`
7791
7791
  :host {
7792
7792
  display: contents;
7793
7793
  }
@@ -7978,7 +7978,7 @@ label, legend, caption, figcaption, th, td {
7978
7978
  transition-duration: 0s;
7979
7979
  }
7980
7980
  }
7981
- `,GB,XB,Iv,cA,ti,Bo,Lv,pA,hA,bs=class extends(XB=ee,GB=[kS({type:String,reflect:!0})],XB){constructor(){super(...arguments);a(this,Bo);a(this,cA,n(Iv,8,this)),n(Iv,11,this);a(this,ti)}connectedCallback(){super.connectedCallback(),p(this,Bo,Lv).call(this),this.theme==="inverted"&&p(this,Bo,pA).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Bo,hA).call(this)}willUpdate(t){super.willUpdate(t),t.has("theme")&&(p(this,Bo,Lv).call(this),this.theme==="inverted"?p(this,Bo,pA).call(this):p(this,Bo,hA).call(this))}};Iv=A(XB),cA=new WeakMap,ti=new WeakMap,Bo=new WeakSet,Lv=function(){if(!this.theme){this.removeAttribute("data-theme");return}if(this.theme==="inverted"){let e=document.documentElement.getAttribute("data-theme")==="dark"?"light":"dark";this.setAttribute("data-theme",e);return}this.setAttribute("data-theme",this.theme)},pA=function(){o(this,ti)||(h(this,ti,new MutationObserver(()=>p(this,Bo,Lv).call(this))),o(this,ti).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))},hA=function(){o(this,ti)?.disconnect(),h(this,ti,void 0)},c(Iv,4,"theme",GB,bs,cA),T(Iv,bs),v(bs,"styles",[...ee.styles,Xq]);customElements.define(bs.tagName,bs);var Jq=Zr`
7981
+ `,GB,XB,Lv,cA,ti,Bo,zv,pA,hA,bs=class extends(XB=ee,GB=[kS({type:String,reflect:!0})],XB){constructor(){super(...arguments);a(this,Bo);a(this,cA,n(Lv,8,this)),n(Lv,11,this);a(this,ti)}connectedCallback(){super.connectedCallback(),p(this,Bo,zv).call(this),this.theme==="inverted"&&p(this,Bo,pA).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Bo,hA).call(this)}willUpdate(t){super.willUpdate(t),t.has("theme")&&(p(this,Bo,zv).call(this),this.theme==="inverted"?p(this,Bo,pA).call(this):p(this,Bo,hA).call(this))}};Lv=A(XB),cA=new WeakMap,ti=new WeakMap,Bo=new WeakSet,zv=function(){if(!this.theme){this.removeAttribute("data-theme");return}if(this.theme==="inverted"){let e=document.documentElement.getAttribute("data-theme")==="dark"?"light":"dark";this.setAttribute("data-theme",e);return}this.setAttribute("data-theme",this.theme)},pA=function(){o(this,ti)||(h(this,ti,new MutationObserver(()=>p(this,Bo,zv).call(this))),o(this,ti).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))},hA=function(){o(this,ti)?.disconnect(),h(this,ti,void 0)},c(Lv,4,"theme",GB,bs,cA),T(Lv,bs),v(bs,"styles",[...ee.styles,Xq]);customElements.define(bs.tagName,bs);var Jq=Zr`
7982
7982
  <svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
7983
7983
  <path
7984
7984
  d="M3 8.5l3 3 6.5-7"
@@ -8428,7 +8428,7 @@ label, legend, caption, figcaption, th, td {
8428
8428
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
8429
8429
  outline-offset: var(--focus-ring-offset);
8430
8430
  }
8431
- `,Jd=class extends qr{static styles=[...qr.styles,s6]};customElements.define(Jd.tagName,Jd);var zv=Symbol("dui-toggle-group");var EA=M("pressed-change",{bubbles:!0,composed:!0}),i6=b`
8431
+ `,Jd=class extends qr{static styles=[...qr.styles,s6]};customElements.define(Jd.tagName,Jd);var Ov=Symbol("dui-toggle-group");var EA=M("pressed-change",{bubbles:!0,composed:!0}),i6=b`
8432
8432
  :host {
8433
8433
  display: inline-block;
8434
8434
  }
@@ -8450,7 +8450,7 @@ label, legend, caption, figcaption, th, td {
8450
8450
  [part="root"]:disabled {
8451
8451
  cursor: not-allowed;
8452
8452
  }
8453
- `,QB,ZB,t3,e3,o3,r3,s3,ue,uA,mA,fA,gA,vA,bA,i3,yA,yo,xA,wA,kA,Ov,Fe=class extends(s3=x,r3=[u({type:Boolean})],o3=[u({type:Boolean,attribute:"default-pressed"})],e3=[u({type:Boolean,reflect:!0})],t3=[u()],ZB=[C()],QB=[Nt({context:zv,subscribe:!0}),C()],s3){constructor(){super(...arguments);a(this,yo);a(this,uA,n(ue,8,this)),n(ue,11,this);a(this,mA,n(ue,12,this,!1)),n(ue,15,this);a(this,fA,n(ue,16,this,!1)),n(ue,19,this);a(this,gA,n(ue,20,this)),n(ue,23,this);a(this,vA,n(ue,24,this,!1)),n(ue,27,this);a(this,xA,n(ue,28,this)),n(ue,31,this);a(this,Ov,()=>{if(o(this,yo,kA))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!o(this,yo,wA);this.pressed===void 0&&h(this,yo,t,yA),this.dispatchEvent(EA({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,yo,!0,yA)}render(){let t=o(this,yo,wA),e=o(this,yo,kA);return f`
8453
+ `,QB,ZB,t3,e3,o3,r3,s3,ue,uA,mA,fA,gA,vA,bA,i3,yA,yo,xA,wA,kA,Mv,Fe=class extends(s3=x,r3=[u({type:Boolean})],o3=[u({type:Boolean,attribute:"default-pressed"})],e3=[u({type:Boolean,reflect:!0})],t3=[u()],ZB=[C()],QB=[Nt({context:Ov,subscribe:!0}),C()],s3){constructor(){super(...arguments);a(this,yo);a(this,uA,n(ue,8,this)),n(ue,11,this);a(this,mA,n(ue,12,this,!1)),n(ue,15,this);a(this,fA,n(ue,16,this,!1)),n(ue,19,this);a(this,gA,n(ue,20,this)),n(ue,23,this);a(this,vA,n(ue,24,this,!1)),n(ue,27,this);a(this,xA,n(ue,28,this)),n(ue,31,this);a(this,Mv,()=>{if(o(this,yo,kA))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!o(this,yo,wA);this.pressed===void 0&&h(this,yo,t,yA),this.dispatchEvent(EA({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&h(this,yo,!0,yA)}render(){let t=o(this,yo,wA),e=o(this,yo,kA);return f`
8454
8454
  <button
8455
8455
  part="root"
8456
8456
  type="button"
@@ -8458,12 +8458,12 @@ label, legend, caption, figcaption, th, td {
8458
8458
  ?disabled="${e}"
8459
8459
  ?data-pressed="${t}"
8460
8460
  ?data-disabled="${e}"
8461
- @click="${o(this,Ov)}"
8461
+ @click="${o(this,Mv)}"
8462
8462
  >
8463
8463
  <slot name="icon"></slot>
8464
8464
  <slot></slot>
8465
8465
  </button>
8466
- `}};ue=A(s3),uA=new WeakMap,mA=new WeakMap,fA=new WeakMap,gA=new WeakMap,vA=new WeakMap,yo=new WeakSet,xA=new WeakMap,wA=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??o(this,yo,i3)},kA=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Ov=new WeakMap,c(ue,4,"pressed",r3,Fe,uA),c(ue,4,"defaultPressed",o3,Fe,mA),c(ue,4,"disabled",e3,Fe,fA),c(ue,4,"value",t3,Fe,gA),bA=c(ue,20,"#internalPressed",ZB,yo,vA),i3=bA.get,yA=bA.set,c(ue,4,"_groupCtx",QB,Fe,xA),T(ue,Fe),v(Fe,"tagName","dui-toggle"),v(Fe,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Fe,"styles",[w,i6]);var MA=M("value-change",{bubbles:!0,composed:!0}),n6=b`
8466
+ `}};ue=A(s3),uA=new WeakMap,mA=new WeakMap,fA=new WeakMap,gA=new WeakMap,vA=new WeakMap,yo=new WeakSet,xA=new WeakMap,wA=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??o(this,yo,i3)},kA=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Mv=new WeakMap,c(ue,4,"pressed",r3,Fe,uA),c(ue,4,"defaultPressed",o3,Fe,mA),c(ue,4,"disabled",e3,Fe,fA),c(ue,4,"value",t3,Fe,gA),bA=c(ue,20,"#internalPressed",ZB,yo,vA),i3=bA.get,yA=bA.set,c(ue,4,"_groupCtx",QB,Fe,xA),T(ue,Fe),v(Fe,"tagName","dui-toggle"),v(Fe,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Fe,"styles",[w,i6]);var MA=M("value-change",{bubbles:!0,composed:!0}),n6=b`
8467
8467
  :host {
8468
8468
  display: inline-flex;
8469
8469
  }
@@ -8475,16 +8475,16 @@ label, legend, caption, figcaption, th, td {
8475
8475
  :host([orientation="vertical"]) [part="root"] {
8476
8476
  flex-direction: column;
8477
8477
  }
8478
- `,n3,a3,l3,d3,c3,p3,h3,u3,m3,Bt,CA,$A,TA,SA,AA,_A,RA,IA,f3,zA,oo,OA,Nv,LA,Mv,Dv,Le=class extends(m3=x,u3=[u({type:Array})],h3=[u({type:Array,attribute:"default-value"})],p3=[u({reflect:!0})],c3=[u({reflect:!0})],d3=[u({type:Boolean,reflect:!0})],l3=[u({type:Boolean})],a3=[C()],n3=[lt({context:zv}),C()],m3){constructor(){super(...arguments);a(this,oo);a(this,CA,n(Bt,8,this)),n(Bt,11,this);a(this,$A,n(Bt,12,this,[])),n(Bt,15,this);a(this,TA,n(Bt,16,this,"single")),n(Bt,19,this);a(this,SA,n(Bt,20,this,"horizontal")),n(Bt,23,this);a(this,AA,n(Bt,24,this,!1)),n(Bt,27,this);a(this,_A,n(Bt,28,this,!0)),n(Bt,31,this);a(this,RA,n(Bt,32,this,[])),n(Bt,35,this);a(this,Nv,t=>{if(this.disabled)return;let e=o(this,oo,OA),s;this.type==="single"?s=e.includes(t)?[]:[t]:s=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&h(this,oo,s,zA),this.dispatchEvent(MA({value:s}))});a(this,LA,n(Bt,36,this,p(this,oo,Mv).call(this))),n(Bt,39,this);a(this,Dv,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==s&&t.key!==l)return;t.preventDefault();let d=[...this.querySelectorAll("dui-toggle")],m=d.filter(_=>!_.hasAttribute("disabled"));if(m.length===0)return;let g=this.shadowRoot?.activeElement??document.activeElement,E=d.find(_=>_===g||_.shadowRoot?.activeElement===g||_.contains(g)),$=E?m.indexOf(E):-1,y;t.key===s?(y=$+1,y>=m.length&&(y=this.loop?0:m.length-1)):(y=$-1,y<0&&(y=this.loop?m.length-1:0)),m[y]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,oo,[...this.defaultValue],zA),this._ctx=p(this,oo,Mv).call(this)}willUpdate(){this._ctx=p(this,oo,Mv).call(this)}render(){return f`
8478
+ `,n3,a3,l3,d3,c3,p3,h3,u3,m3,Bt,CA,$A,TA,SA,AA,_A,RA,IA,f3,zA,oo,OA,Dv,LA,Nv,Hv,Le=class extends(m3=x,u3=[u({type:Array})],h3=[u({type:Array,attribute:"default-value"})],p3=[u({reflect:!0})],c3=[u({reflect:!0})],d3=[u({type:Boolean,reflect:!0})],l3=[u({type:Boolean})],a3=[C()],n3=[lt({context:Ov}),C()],m3){constructor(){super(...arguments);a(this,oo);a(this,CA,n(Bt,8,this)),n(Bt,11,this);a(this,$A,n(Bt,12,this,[])),n(Bt,15,this);a(this,TA,n(Bt,16,this,"single")),n(Bt,19,this);a(this,SA,n(Bt,20,this,"horizontal")),n(Bt,23,this);a(this,AA,n(Bt,24,this,!1)),n(Bt,27,this);a(this,_A,n(Bt,28,this,!0)),n(Bt,31,this);a(this,RA,n(Bt,32,this,[])),n(Bt,35,this);a(this,Dv,t=>{if(this.disabled)return;let e=o(this,oo,OA),s;this.type==="single"?s=e.includes(t)?[]:[t]:s=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&h(this,oo,s,zA),this.dispatchEvent(MA({value:s}))});a(this,LA,n(Bt,36,this,p(this,oo,Nv).call(this))),n(Bt,39,this);a(this,Hv,t=>{let e=this.orientation==="horizontal",s=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==s&&t.key!==l)return;t.preventDefault();let d=[...this.querySelectorAll("dui-toggle")],m=d.filter(_=>!_.hasAttribute("disabled"));if(m.length===0)return;let g=this.shadowRoot?.activeElement??document.activeElement,E=d.find(_=>_===g||_.shadowRoot?.activeElement===g||_.contains(g)),$=E?m.indexOf(E):-1,y;t.key===s?(y=$+1,y>=m.length&&(y=this.loop?0:m.length-1)):(y=$-1,y<0&&(y=this.loop?m.length-1:0)),m[y]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,oo,[...this.defaultValue],zA),this._ctx=p(this,oo,Nv).call(this)}willUpdate(){this._ctx=p(this,oo,Nv).call(this)}render(){return f`
8479
8479
  <div
8480
8480
  part="root"
8481
8481
  role="group"
8482
8482
  aria-orientation="${this.orientation}"
8483
- @keydown="${o(this,Dv)}"
8483
+ @keydown="${o(this,Hv)}"
8484
8484
  >
8485
8485
  <slot></slot>
8486
8486
  </div>
8487
- `}};Bt=A(m3),CA=new WeakMap,$A=new WeakMap,TA=new WeakMap,SA=new WeakMap,AA=new WeakMap,_A=new WeakMap,RA=new WeakMap,oo=new WeakSet,OA=function(){return this.value??o(this,oo,f3)},Nv=new WeakMap,LA=new WeakMap,Mv=function(){return{value:o(this,oo,OA),disabled:this.disabled,type:this.type,toggle:o(this,Nv)}},Dv=new WeakMap,c(Bt,4,"value",u3,Le,CA),c(Bt,4,"defaultValue",h3,Le,$A),c(Bt,4,"type",p3,Le,TA),c(Bt,4,"orientation",c3,Le,SA),c(Bt,4,"disabled",d3,Le,AA),c(Bt,4,"loop",l3,Le,_A),IA=c(Bt,20,"#internalValue",a3,oo,RA),f3=IA.get,zA=IA.set,c(Bt,4,"_ctx",n3,Le,LA),T(Bt,Le),v(Le,"tagName","dui-toggle-group"),v(Le,"styles",[w,n6]);var a6=k`
8487
+ `}};Bt=A(m3),CA=new WeakMap,$A=new WeakMap,TA=new WeakMap,SA=new WeakMap,AA=new WeakMap,_A=new WeakMap,RA=new WeakMap,oo=new WeakSet,OA=function(){return this.value??o(this,oo,f3)},Dv=new WeakMap,LA=new WeakMap,Nv=function(){return{value:o(this,oo,OA),disabled:this.disabled,type:this.type,toggle:o(this,Dv)}},Hv=new WeakMap,c(Bt,4,"value",u3,Le,CA),c(Bt,4,"defaultValue",h3,Le,$A),c(Bt,4,"type",p3,Le,TA),c(Bt,4,"orientation",c3,Le,SA),c(Bt,4,"disabled",d3,Le,AA),c(Bt,4,"loop",l3,Le,_A),IA=c(Bt,20,"#internalValue",a3,oo,RA),f3=IA.get,zA=IA.set,c(Bt,4,"_ctx",n3,Le,LA),T(Bt,Le),v(Le,"tagName","dui-toggle-group"),v(Le,"styles",[w,n6]);var a6=k`
8488
8488
  /* ---------------------------------------------------------------
8489
8489
  * Sizes (swap dimensions)
8490
8490
  * --------------------------------------------------------------- */
@@ -8656,11 +8656,11 @@ label, legend, caption, figcaption, th, td {
8656
8656
  [part="right"] {
8657
8657
  gap: var(--space-2);
8658
8658
  }
8659
- `,tc=class extends Fo{static styles=[...Fo.styles,c6]};customElements.define(tc.tagName,tc);var ec=Symbol("dui-tooltip");var Vv=M("open-change",{bubbles:!0,composed:!0}),p6=b`
8659
+ `,tc=class extends Fo{static styles=[...Fo.styles,c6]};customElements.define(tc.tagName,tc);var ec=Symbol("dui-tooltip");var Pv=M("open-change",{bubbles:!0,composed:!0}),p6=b`
8660
8660
  :host {
8661
8661
  display: contents;
8662
8662
  }
8663
- `,y3,w3,k3,E3,C3,$3,T3,S3,A3,_3,R3,kt,BA,FA,VA,PA,UA,qA,jA,KA,WA,Hv,Bv,Et,YA,GA,JA,I3,Sn,An,Pv,Uv,XA,Fv,L3,z3,QA,ZA,O3,ke=class extends(R3=x,_3=[u({type:Boolean,reflect:!0})],A3=[u({type:Boolean,attribute:"default-open"})],S3=[u({reflect:!0})],T3=[u({type:Number,attribute:"side-offset"})],$3=[u({type:Number})],C3=[u({type:Number,attribute:"close-delay"})],E3=[u({type:Boolean,reflect:!0})],k3=[C()],w3=[C()],y3=[lt({context:ec}),C()],R3){constructor(){super(...arguments);a(this,Et);a(this,BA,n(kt,8,this,!1)),n(kt,11,this);a(this,FA,n(kt,12,this,!1)),n(kt,15,this);a(this,VA,n(kt,16,this,"top")),n(kt,19,this);a(this,PA,n(kt,20,this,6)),n(kt,23,this);a(this,UA,n(kt,24,this,500)),n(kt,27,this);a(this,qA,n(kt,28,this,0)),n(kt,31,this);a(this,jA,n(kt,32,this,!1)),n(kt,35,this);a(this,KA,n(kt,36,this,!1)),n(kt,39,this);a(this,YA,n(kt,40,this)),n(kt,43,this);a(this,Sn);a(this,An);a(this,Pv,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Uv,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);a(this,XA,n(kt,44,this,{open:!1,triggerId:o(this,Pv),popupId:o(this,Uv),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>p(this,Et,L3).call(this),closeTooltip:()=>p(this,Et,z3).call(this),setTriggerEl:t=>p(this,Et,O3).call(this,t)})),n(kt,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,Et,!0,Bv)}disconnectedCallback(){super.disconnectedCallback(),p(this,Et,Fv).call(this)}willUpdate(t){let e=this.open||o(this,Et,Hv);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,Et,JA))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:o(this,Et,JA)})}render(){return f`<slot></slot>`}};kt=A(R3),BA=new WeakMap,FA=new WeakMap,VA=new WeakMap,PA=new WeakMap,UA=new WeakMap,qA=new WeakMap,jA=new WeakMap,KA=new WeakMap,Et=new WeakSet,YA=new WeakMap,Sn=new WeakMap,An=new WeakMap,Pv=new WeakMap,Uv=new WeakMap,XA=new WeakMap,Fv=function(){o(this,Sn)&&(clearTimeout(o(this,Sn)),h(this,Sn,void 0)),o(this,An)&&(clearTimeout(o(this,An)),h(this,An,void 0))},L3=function(){this.disabled||(p(this,Et,Fv).call(this),this.delay<=0?p(this,Et,QA).call(this):h(this,Sn,setTimeout(()=>p(this,Et,QA).call(this),this.delay)))},z3=function(){p(this,Et,Fv).call(this),this.closeDelay<=0?p(this,Et,ZA).call(this):h(this,An,setTimeout(()=>p(this,Et,ZA).call(this),this.closeDelay))},QA=function(){o(this,Et,Hv)||(h(this,Et,!0,Bv),this.dispatchEvent(Vv({open:!0})))},ZA=function(){o(this,Et,Hv)&&(h(this,Et,!1,Bv),this.dispatchEvent(Vv({open:!1})))},O3=function(t){h(this,Et,t,I3)},c(kt,4,"open",_3,ke,BA),c(kt,4,"defaultOpen",A3,ke,FA),c(kt,4,"side",S3,ke,VA),c(kt,4,"sideOffset",T3,ke,PA),c(kt,4,"delay",$3,ke,UA),c(kt,4,"closeDelay",C3,ke,qA),c(kt,4,"disabled",E3,ke,jA),WA=c(kt,20,"#internalOpen",k3,Et,KA),Hv=WA.get,Bv=WA.set,GA=c(kt,20,"#triggerEl",w3,Et,YA),JA=GA.get,I3=GA.set,c(kt,4,"_ctx",y3,ke,XA),T(kt,ke),v(ke,"tagName","dui-tooltip"),v(ke,"styles",[w,p6]);var h6=b`
8663
+ `,y3,w3,k3,E3,C3,$3,T3,S3,A3,_3,R3,Et,BA,FA,VA,PA,UA,qA,jA,KA,WA,Bv,Fv,Ct,YA,GA,JA,I3,Sn,An,Uv,qv,XA,Vv,L3,z3,QA,ZA,O3,ke=class extends(R3=x,_3=[u({type:Boolean,reflect:!0})],A3=[u({type:Boolean,attribute:"default-open"})],S3=[u({reflect:!0})],T3=[u({type:Number,attribute:"side-offset"})],$3=[u({type:Number})],C3=[u({type:Number,attribute:"close-delay"})],E3=[u({type:Boolean,reflect:!0})],k3=[C()],w3=[C()],y3=[lt({context:ec}),C()],R3){constructor(){super(...arguments);a(this,Ct);a(this,BA,n(Et,8,this,!1)),n(Et,11,this);a(this,FA,n(Et,12,this,!1)),n(Et,15,this);a(this,VA,n(Et,16,this,"top")),n(Et,19,this);a(this,PA,n(Et,20,this,6)),n(Et,23,this);a(this,UA,n(Et,24,this,500)),n(Et,27,this);a(this,qA,n(Et,28,this,0)),n(Et,31,this);a(this,jA,n(Et,32,this,!1)),n(Et,35,this);a(this,KA,n(Et,36,this,!1)),n(Et,39,this);a(this,YA,n(Et,40,this)),n(Et,43,this);a(this,Sn);a(this,An);a(this,Uv,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,qv,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);a(this,XA,n(Et,44,this,{open:!1,triggerId:o(this,Uv),popupId:o(this,qv),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>p(this,Ct,L3).call(this),closeTooltip:()=>p(this,Ct,z3).call(this),setTriggerEl:t=>p(this,Ct,O3).call(this,t)})),n(Et,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&h(this,Ct,!0,Fv)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ct,Vv).call(this)}willUpdate(t){let e=this.open||o(this,Ct,Bv);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==o(this,Ct,JA))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:o(this,Ct,JA)})}render(){return f`<slot></slot>`}};Et=A(R3),BA=new WeakMap,FA=new WeakMap,VA=new WeakMap,PA=new WeakMap,UA=new WeakMap,qA=new WeakMap,jA=new WeakMap,KA=new WeakMap,Ct=new WeakSet,YA=new WeakMap,Sn=new WeakMap,An=new WeakMap,Uv=new WeakMap,qv=new WeakMap,XA=new WeakMap,Vv=function(){o(this,Sn)&&(clearTimeout(o(this,Sn)),h(this,Sn,void 0)),o(this,An)&&(clearTimeout(o(this,An)),h(this,An,void 0))},L3=function(){this.disabled||(p(this,Ct,Vv).call(this),this.delay<=0?p(this,Ct,QA).call(this):h(this,Sn,setTimeout(()=>p(this,Ct,QA).call(this),this.delay)))},z3=function(){p(this,Ct,Vv).call(this),this.closeDelay<=0?p(this,Ct,ZA).call(this):h(this,An,setTimeout(()=>p(this,Ct,ZA).call(this),this.closeDelay))},QA=function(){o(this,Ct,Bv)||(h(this,Ct,!0,Fv),this.dispatchEvent(Pv({open:!0})))},ZA=function(){o(this,Ct,Bv)&&(h(this,Ct,!1,Fv),this.dispatchEvent(Pv({open:!1})))},O3=function(t){h(this,Ct,t,I3)},c(Et,4,"open",_3,ke,BA),c(Et,4,"defaultOpen",A3,ke,FA),c(Et,4,"side",S3,ke,VA),c(Et,4,"sideOffset",T3,ke,PA),c(Et,4,"delay",$3,ke,UA),c(Et,4,"closeDelay",C3,ke,qA),c(Et,4,"disabled",E3,ke,jA),WA=c(Et,20,"#internalOpen",k3,Ct,KA),Bv=WA.get,Fv=WA.set,GA=c(Et,20,"#triggerEl",w3,Ct,YA),JA=GA.get,I3=GA.set,c(Et,4,"_ctx",y3,ke,XA),T(Et,ke),v(ke,"tagName","dui-tooltip"),v(ke,"styles",[w,p6]);var h6=b`
8664
8664
  :host {
8665
8665
  display: contents;
8666
8666
  }
@@ -8681,7 +8681,7 @@ label, legend, caption, figcaption, th, td {
8681
8681
  .Trigger[data-disabled] {
8682
8682
  cursor: not-allowed;
8683
8683
  }
8684
- `,M3,N3,qv,t_,ro,Kv,Wv,Yv,Gv,Xv,ys,e_,jv,xs=class extends(N3=x,M3=[u({type:Boolean,reflect:!0})],N3){constructor(){super(...arguments);a(this,ys);a(this,t_,n(qv,8,this,!1)),n(qv,11,this);a(this,ro,new q(this,{context:ec,subscribe:!0}));a(this,Kv,()=>{o(this,ys,jv)||(p(this,ys,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Wv,()=>{o(this,ro).value?.closeTooltip()});a(this,Yv,()=>{o(this,ys,jv)||(p(this,ys,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Gv,()=>{o(this,ro).value?.closeTooltip()});a(this,Xv,t=>{t.key==="Escape"&&o(this,ro).value?.open&&o(this,ro).value?.closeTooltip()})}render(){let t=o(this,ro).value?.open??!1,e=o(this,ro).value?.popupId??"",s=o(this,ro).value?.triggerId??"";return f`
8684
+ `,M3,N3,jv,t_,ro,Wv,Yv,Gv,Xv,Jv,ys,e_,Kv,xs=class extends(N3=x,M3=[u({type:Boolean,reflect:!0})],N3){constructor(){super(...arguments);a(this,ys);a(this,t_,n(jv,8,this,!1)),n(jv,11,this);a(this,ro,new q(this,{context:ec,subscribe:!0}));a(this,Wv,()=>{o(this,ys,Kv)||(p(this,ys,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Yv,()=>{o(this,ro).value?.closeTooltip()});a(this,Gv,()=>{o(this,ys,Kv)||(p(this,ys,e_).call(this),o(this,ro).value?.openTooltip())});a(this,Xv,()=>{o(this,ro).value?.closeTooltip()});a(this,Jv,t=>{t.key==="Escape"&&o(this,ro).value?.open&&o(this,ro).value?.closeTooltip()})}render(){let t=o(this,ro).value?.open??!1,e=o(this,ro).value?.popupId??"",s=o(this,ro).value?.triggerId??"";return f`
8685
8685
  <span
8686
8686
  class="Trigger"
8687
8687
  part="trigger"
@@ -8690,16 +8690,16 @@ label, legend, caption, figcaption, th, td {
8690
8690
  tabindex="0"
8691
8691
  aria-describedby="${t?e:""}"
8692
8692
  ?data-popup-open="${t}"
8693
- ?data-disabled="${o(this,ys,jv)}"
8694
- @mouseenter="${o(this,Kv)}"
8695
- @mouseleave="${o(this,Wv)}"
8696
- @focus="${o(this,Yv)}"
8697
- @blur="${o(this,Gv)}"
8698
- @keydown="${o(this,Xv)}"
8693
+ ?data-disabled="${o(this,ys,Kv)}"
8694
+ @mouseenter="${o(this,Wv)}"
8695
+ @mouseleave="${o(this,Yv)}"
8696
+ @focus="${o(this,Gv)}"
8697
+ @blur="${o(this,Xv)}"
8698
+ @keydown="${o(this,Jv)}"
8699
8699
  >
8700
8700
  <slot></slot>
8701
8701
  </span>
8702
- `}};qv=A(N3),t_=new WeakMap,ro=new WeakMap,Kv=new WeakMap,Wv=new WeakMap,Yv=new WeakMap,Gv=new WeakMap,Xv=new WeakMap,ys=new WeakSet,e_=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;o(this,ro).value?.setTriggerEl(t)},jv=function(){return this.disabled||(o(this,ro).value?.disabled??!1)},c(qv,4,"disabled",M3,xs,t_),T(qv,xs),v(xs,"tagName","dui-tooltip-trigger"),v(xs,"styles",[w,h6,u6]);var m6=b`
8702
+ `}};jv=A(N3),t_=new WeakMap,ro=new WeakMap,Wv=new WeakMap,Yv=new WeakMap,Gv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,ys=new WeakSet,e_=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;o(this,ro).value?.setTriggerEl(t)},Kv=function(){return this.disabled||(o(this,ro).value?.disabled??!1)},c(jv,4,"disabled",M3,xs,t_),T(jv,xs),v(xs,"tagName","dui-tooltip-trigger"),v(xs,"styles",[w,h6,u6]);var m6=b`
8703
8703
  :host {
8704
8704
  display: contents;
8705
8705
  }
@@ -8748,19 +8748,19 @@ label, legend, caption, figcaption, th, td {
8748
8748
  left: 50%;
8749
8749
  transform: translateX(-50%) rotate(180deg);
8750
8750
  }
8751
- `],D3,H3,B3,_n,o_,r_,s_,Jv,F3,Yr,ei,oc,Rn,V3,Wr=class extends(B3=x,H3=[u({type:Boolean,attribute:"show-arrow"})],D3=[C()],B3){constructor(){super(...arguments);a(this,Yr);a(this,o_,n(_n,8,this,!0)),n(_n,11,this);a(this,r_,n(_n,12,this,"top")),n(_n,15,this);a(this,ei,new q(this,{context:ec,subscribe:!0}));a(this,oc,!1);a(this,Rn,new Te(this,{getAnchor:()=>o(this,ei).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:f6,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Yr,Jv)&&h(this,Yr,e,F3)},renderPopup:t=>{let e=o(this,ei).value?.popupId??"";return f`
8751
+ `],D3,H3,B3,_n,o_,r_,s_,Qv,F3,Yr,ei,oc,Rn,V3,Wr=class extends(B3=x,H3=[u({type:Boolean,attribute:"show-arrow"})],D3=[C()],B3){constructor(){super(...arguments);a(this,Yr);a(this,o_,n(_n,8,this,!0)),n(_n,11,this);a(this,r_,n(_n,12,this,"top")),n(_n,15,this);a(this,ei,new q(this,{context:ec,subscribe:!0}));a(this,oc,!1);a(this,Rn,new Te(this,{getAnchor:()=>o(this,ei).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:f6,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Yr,Qv)&&h(this,Yr,e,F3)},renderPopup:t=>{let e=o(this,ei).value?.popupId??"";return f`
8752
8752
  <div
8753
8753
  class="Popup"
8754
8754
  id="${e}"
8755
8755
  role="tooltip"
8756
8756
  ?data-starting-style="${t.isStarting}"
8757
8757
  ?data-ending-style="${t.isEnding}"
8758
- data-side="${o(this,Yr,Jv)}"
8758
+ data-side="${o(this,Yr,Qv)}"
8759
8759
  >
8760
8760
  <div class="Content"></div>
8761
- ${this.showArrow?Ra(o(this,Yr,Jv)):""}
8761
+ ${this.showArrow?Ra(o(this,Yr,Qv)):""}
8762
8762
  </div>
8763
- `}}))}updated(){let t=o(this,ei).value?.open??!1;t&&!o(this,oc)?(p(this,Yr,V3).call(this),o(this,Rn).open()):!t&&o(this,oc)&&o(this,Rn).close(),h(this,oc,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};_n=A(B3),o_=new WeakMap,r_=new WeakMap,Yr=new WeakSet,ei=new WeakMap,oc=new WeakMap,Rn=new WeakMap,V3=function(){let t=o(this,ei).value?.side??"top";o(this,Rn).placement=t,o(this,Rn).offset=o(this,ei).value?.sideOffset??6},c(_n,4,"showArrow",H3,Wr,o_),s_=c(_n,20,"#side",D3,Yr,r_),Jv=s_.get,F3=s_.set,T(_n,Wr),v(Wr,"tagName","dui-tooltip-popup"),v(Wr,"styles",[w,m6]);var g6=k``,rc=class extends ke{static styles=[...ke.styles,g6]};customElements.define(rc.tagName,rc);var v6=k`
8763
+ `}}))}updated(){let t=o(this,ei).value?.open??!1;t&&!o(this,oc)?(p(this,Yr,V3).call(this),o(this,Rn).open()):!t&&o(this,oc)&&o(this,Rn).close(),h(this,oc,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};_n=A(B3),o_=new WeakMap,r_=new WeakMap,Yr=new WeakSet,ei=new WeakMap,oc=new WeakMap,Rn=new WeakMap,V3=function(){let t=o(this,ei).value?.side??"top";o(this,Rn).placement=t,o(this,Rn).offset=o(this,ei).value?.sideOffset??6},c(_n,4,"showArrow",H3,Wr,o_),s_=c(_n,20,"#side",D3,Yr,r_),Qv=s_.get,F3=s_.set,T(_n,Wr),v(Wr,"tagName","dui-tooltip-popup"),v(Wr,"styles",[w,m6]);var g6=k``,rc=class extends ke{static styles=[...ke.styles,g6]};customElements.define(rc.tagName,rc);var v6=k`
8764
8764
  .Popup {
8765
8765
  padding: var(--space-2) var(--space-2);
8766
8766
  border-radius: var(--radius-sm);
@@ -8787,7 +8787,7 @@ label, legend, caption, figcaption, th, td {
8787
8787
  fill: none;
8788
8788
  stroke: none;
8789
8789
  }
8790
- `,sc=class extends Wr{static styles=[...Wr.styles,v6]};customElements.define(sc.tagName,sc);var ic=class extends xs{};customElements.define(ic.tagName,ic);var Qv=Symbol("dui-tree");var m_=M("dui-load-children",{bubbles:!0,composed:!0}),b6=b`
8790
+ `,sc=class extends Wr{static styles=[...Wr.styles,v6]};customElements.define(sc.tagName,sc);var ic=class extends xs{};customElements.define(ic.tagName,ic);var Zv=Symbol("dui-tree");var m_=M("dui-load-children",{bubbles:!0,composed:!0}),b6=b`
8791
8791
  :host {
8792
8792
  display: block;
8793
8793
  }
@@ -8816,7 +8816,7 @@ label, legend, caption, figcaption, th, td {
8816
8816
  [part="group"][hidden] {
8817
8817
  display: none;
8818
8818
  }
8819
- `,P3,U3,q3,j3,K3,W3,Y3,me,i_,n_,a_,l_,d_,c_,p_,Zv,G3,rt,nc,tb,bh,h_,xh,u_,X3,oi,eb,ob,rb,fe=class extends(Y3=x,W3=[u()],K3=[u({type:Boolean,reflect:!0})],j3=[u({type:Boolean,attribute:"has-children",reflect:!0})],q3=[u({type:Boolean,reflect:!0})],U3=[Nt({context:Qv,subscribe:!0}),C()],P3=[C()],Y3){constructor(){super(...arguments);a(this,rt);a(this,i_,n(me,8,this,"")),n(me,11,this);a(this,n_,n(me,12,this,!1)),n(me,15,this);a(this,a_,n(me,16,this,!1)),n(me,19,this);a(this,l_,n(me,20,this,!1)),n(me,23,this);a(this,d_,n(me,24,this)),n(me,27,this);a(this,c_,n(me,28,this,!1)),n(me,31,this);a(this,nc,!1);a(this,eb,t=>{let s=t.target.assignedElements().some(l=>l.tagName==="DUI-TREE-ITEM");s!==o(this,rt,Zv)&&h(this,rt,s,G3)});a(this,ob,t=>{t.stopPropagation(),!o(this,rt,xh)&&this._ctx?.activate(this.value,this.isBranch)});a(this,rb,t=>{this.isBranch&&(t.stopPropagation(),!o(this,rt,xh)&&this._ctx?.toggleExpand(this.value))})}get isBranch(){return o(this,rt,Zv)||this.hasChildren}willUpdate(t){this.isBranch&&o(this,rt,bh)?!o(this,rt,Zv)&&!o(this,nc)&&(h(this,nc,!0),this.dispatchEvent(m_({value:this.value}))):o(this,rt,bh)||h(this,nc,!1)}updated(){this.style.setProperty("--dui-tree-level",String(o(this,rt,tb))),p(this,rt,oi).call(this,"data-expanded",o(this,rt,bh)&&this.isBranch),p(this,rt,oi).call(this,"data-selected",o(this,rt,h_)),p(this,rt,oi).call(this,"data-disabled",o(this,rt,xh)),p(this,rt,oi).call(this,"data-branch",this.isBranch),p(this,rt,oi).call(this,"data-leaf",!this.isBranch),p(this,rt,oi).call(this,"data-focus",o(this,rt,u_)),p(this,rt,oi).call(this,"data-loading",this.loading),this.setAttribute("data-level",String(o(this,rt,tb))),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy")}render(){let t=this.isBranch,e=o(this,rt,bh)&&t,s=o(this,rt,xh),l=o(this,rt,h_),d=o(this,rt,u_),m=this.loading,g=o(this,rt,tb),E=o(this,rt,X3),$=this._ctx?.selectionMode??"none";return f`
8819
+ `,P3,U3,q3,j3,K3,W3,Y3,me,i_,n_,a_,l_,d_,c_,p_,tb,G3,rt,nc,eb,bh,h_,xh,u_,X3,oi,ob,rb,sb,fe=class extends(Y3=x,W3=[u()],K3=[u({type:Boolean,reflect:!0})],j3=[u({type:Boolean,attribute:"has-children",reflect:!0})],q3=[u({type:Boolean,reflect:!0})],U3=[Nt({context:Zv,subscribe:!0}),C()],P3=[C()],Y3){constructor(){super(...arguments);a(this,rt);a(this,i_,n(me,8,this,"")),n(me,11,this);a(this,n_,n(me,12,this,!1)),n(me,15,this);a(this,a_,n(me,16,this,!1)),n(me,19,this);a(this,l_,n(me,20,this,!1)),n(me,23,this);a(this,d_,n(me,24,this)),n(me,27,this);a(this,c_,n(me,28,this,!1)),n(me,31,this);a(this,nc,!1);a(this,ob,t=>{let s=t.target.assignedElements().some(l=>l.tagName==="DUI-TREE-ITEM");s!==o(this,rt,tb)&&h(this,rt,s,G3)});a(this,rb,t=>{t.stopPropagation(),!o(this,rt,xh)&&this._ctx?.activate(this.value,this.isBranch)});a(this,sb,t=>{this.isBranch&&(t.stopPropagation(),!o(this,rt,xh)&&this._ctx?.toggleExpand(this.value))})}get isBranch(){return o(this,rt,tb)||this.hasChildren}willUpdate(t){this.isBranch&&o(this,rt,bh)?!o(this,rt,tb)&&!o(this,nc)&&(h(this,nc,!0),this.dispatchEvent(m_({value:this.value}))):o(this,rt,bh)||h(this,nc,!1)}updated(){this.style.setProperty("--dui-tree-level",String(o(this,rt,eb))),p(this,rt,oi).call(this,"data-expanded",o(this,rt,bh)&&this.isBranch),p(this,rt,oi).call(this,"data-selected",o(this,rt,h_)),p(this,rt,oi).call(this,"data-disabled",o(this,rt,xh)),p(this,rt,oi).call(this,"data-branch",this.isBranch),p(this,rt,oi).call(this,"data-leaf",!this.isBranch),p(this,rt,oi).call(this,"data-focus",o(this,rt,u_)),p(this,rt,oi).call(this,"data-loading",this.loading),this.setAttribute("data-level",String(o(this,rt,eb))),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy")}render(){let t=this.isBranch,e=o(this,rt,bh)&&t,s=o(this,rt,xh),l=o(this,rt,h_),d=o(this,rt,u_),m=this.loading,g=o(this,rt,eb),E=o(this,rt,X3),$=this._ctx?.selectionMode??"none";return f`
8820
8820
  <div
8821
8821
  part="root"
8822
8822
  role="treeitem"
@@ -8836,7 +8836,7 @@ label, legend, caption, figcaption, th, td {
8836
8836
  ?data-leaf=${!t}
8837
8837
  ?data-focus=${d}
8838
8838
  ?data-loading=${m}
8839
- @click=${o(this,ob)}
8839
+ @click=${o(this,rb)}
8840
8840
  >
8841
8841
  <div part="content">
8842
8842
  <span
@@ -8844,7 +8844,7 @@ label, legend, caption, figcaption, th, td {
8844
8844
  ?data-branch=${t}
8845
8845
  ?data-leaf=${!t}
8846
8846
  ?data-loading=${m}
8847
- @click=${o(this,rb)}
8847
+ @click=${o(this,sb)}
8848
8848
  ></span>
8849
8849
  <slot name="label"></slot>
8850
8850
  <span class="spacer"></span>
@@ -8855,10 +8855,10 @@ label, legend, caption, figcaption, th, td {
8855
8855
  role=${t?"group":L}
8856
8856
  ?hidden=${!t||!e}
8857
8857
  >
8858
- <slot @slotchange=${o(this,eb)}></slot>
8858
+ <slot @slotchange=${o(this,ob)}></slot>
8859
8859
  </div>
8860
8860
  </div>
8861
- `}};me=A(Y3),i_=new WeakMap,n_=new WeakMap,a_=new WeakMap,l_=new WeakMap,d_=new WeakMap,c_=new WeakMap,rt=new WeakSet,nc=new WeakMap,tb=function(){let t=1,e=this.parentElement;for(;e&&(e.tagName==="DUI-TREE-ITEM"&&t++,e.tagName!=="DUI-TREE");)e=e.parentElement;return t},bh=function(){return this._ctx?.expandedValues.includes(this.value)??!1},h_=function(){return this._ctx?.selectedValues.includes(this.value)??!1},xh=function(){if(this.disabled||this._ctx?.disabled)return!0;let t=this.parentElement;for(;t&&t.tagName!=="DUI-TREE";){if(t.tagName==="DUI-TREE-ITEM"&&t.hasAttribute("disabled"))return!0;t=t.parentElement}return!1},u_=function(){return this._ctx?.focusedValue===this.value},X3=function(){return Array.from(this.parentElement?.children??[]).filter(t=>t.tagName==="DUI-TREE-ITEM")},oi=function(t,e){e?this.hasAttribute(t)||this.setAttribute(t,""):this.hasAttribute(t)&&this.removeAttribute(t)},eb=new WeakMap,ob=new WeakMap,rb=new WeakMap,c(me,4,"value",W3,fe,i_),c(me,4,"disabled",K3,fe,n_),c(me,4,"hasChildren",j3,fe,a_),c(me,4,"loading",q3,fe,l_),c(me,4,"_ctx",U3,fe,d_),p_=c(me,20,"#hasSlottedChildren",P3,rt,c_),Zv=p_.get,G3=p_.set,T(me,fe),v(fe,"tagName","dui-tree-item"),v(fe,"styles",[w,b6]);var db=M("dui-expanded-change",{bubbles:!0,composed:!0}),I_=M("dui-selection-change",{bubbles:!0,composed:!0}),L_=M("dui-action",{bubbles:!0,composed:!0}),x6=b`
8861
+ `}};me=A(Y3),i_=new WeakMap,n_=new WeakMap,a_=new WeakMap,l_=new WeakMap,d_=new WeakMap,c_=new WeakMap,rt=new WeakSet,nc=new WeakMap,eb=function(){let t=1,e=this.parentElement;for(;e&&(e.tagName==="DUI-TREE-ITEM"&&t++,e.tagName!=="DUI-TREE");)e=e.parentElement;return t},bh=function(){return this._ctx?.expandedValues.includes(this.value)??!1},h_=function(){return this._ctx?.selectedValues.includes(this.value)??!1},xh=function(){if(this.disabled||this._ctx?.disabled)return!0;let t=this.parentElement;for(;t&&t.tagName!=="DUI-TREE";){if(t.tagName==="DUI-TREE-ITEM"&&t.hasAttribute("disabled"))return!0;t=t.parentElement}return!1},u_=function(){return this._ctx?.focusedValue===this.value},X3=function(){return Array.from(this.parentElement?.children??[]).filter(t=>t.tagName==="DUI-TREE-ITEM")},oi=function(t,e){e?this.hasAttribute(t)||this.setAttribute(t,""):this.hasAttribute(t)&&this.removeAttribute(t)},ob=new WeakMap,rb=new WeakMap,sb=new WeakMap,c(me,4,"value",W3,fe,i_),c(me,4,"disabled",K3,fe,n_),c(me,4,"hasChildren",j3,fe,a_),c(me,4,"loading",q3,fe,l_),c(me,4,"_ctx",U3,fe,d_),p_=c(me,20,"#hasSlottedChildren",P3,rt,c_),tb=p_.get,G3=p_.set,T(me,fe),v(fe,"tagName","dui-tree-item"),v(fe,"styles",[w,b6]);var cb=M("dui-expanded-change",{bubbles:!0,composed:!0}),I_=M("dui-selection-change",{bubbles:!0,composed:!0}),L_=M("dui-action",{bubbles:!0,composed:!0}),x6=b`
8862
8862
  :host {
8863
8863
  display: block;
8864
8864
  }
@@ -8866,16 +8866,16 @@ label, legend, caption, figcaption, th, td {
8866
8866
  [part="root"] {
8867
8867
  outline: none;
8868
8868
  }
8869
- `,J3,Q3,Z3,tF,eF,oF,rF,sF,iF,nF,aF,Ct,f_,g_,v_,b_,x_,y_,w_,k_,lF,sb,U,E_,C_,A_,yh,$_,T_,ib,nb,In,Gr,Ln,ws,wh,zn,cb,kh,Eh,S_,ab,__,y6,lb,dF,cF,ri,R_,pb,hb,pF,hF,ze=class extends(aF=x,nF=[u({type:Array})],iF=[u({type:Array,attribute:"default-expanded-values"})],sF=[u({attribute:"selection-mode",reflect:!0})],rF=[u({type:Array})],oF=[u({type:Array,attribute:"default-selected-values"})],eF=[u({type:Boolean,reflect:!0})],tF=[C()],Z3=[C()],Q3=[C()],J3=[lt({context:Qv}),C()],aF){constructor(){super(...arguments);a(this,U);a(this,f_,n(Ct,8,this)),n(Ct,11,this);a(this,g_,n(Ct,12,this,[])),n(Ct,15,this);a(this,v_,n(Ct,16,this,"none")),n(Ct,19,this);a(this,b_,n(Ct,20,this)),n(Ct,23,this);a(this,x_,n(Ct,24,this,[])),n(Ct,27,this);a(this,y_,n(Ct,28,this,!1)),n(Ct,31,this);a(this,w_,n(Ct,32,this,[])),n(Ct,35,this);a(this,E_,n(Ct,36,this,[])),n(Ct,39,this);a(this,$_,n(Ct,40,this,null)),n(Ct,43,this);a(this,In,"");a(this,Gr,null);a(this,Ln,null);a(this,ws,()=>this.expandedValues??o(this,U,lF));a(this,wh,()=>this.selectedValues??o(this,U,A_));a(this,zn,t=>{let e=[...o(this,ws).call(this)],l=e.indexOf(t)>=0?e.filter(d=>d!==t):[...e,t];this.expandedValues===void 0&&h(this,U,l,sb),this.dispatchEvent(db({values:l}))});a(this,cb,t=>{let e=[...o(this,wh).call(this)],s=e.indexOf(t),l;this.selectionMode==="single"?l=s>=0?[]:[t]:l=s>=0?e.filter(d=>d!==t):[...e,t],this.selectedValues===void 0&&h(this,U,l,yh),this.dispatchEvent(I_({values:l}))});a(this,kh,(t,e)=>{this.disabled||(this.selectionMode!=="none"?o(this,cb).call(this,t):e?o(this,zn).call(this,t):this.dispatchEvent(L_({value:t})))});a(this,Eh,t=>{o(this,U,ib)!==t&&h(this,U,t,nb)});a(this,S_,n(Ct,44,this,p(this,U,ab).call(this))),n(Ct,47,this);a(this,pb,t=>{let e=p(this,U,R_).call(this,t);e&&o(this,Eh).call(this,e.value)});a(this,hb,t=>{if(this.disabled)return;let e=p(this,U,R_).call(this,t);if(!e)return;let s=p(this,U,lb).call(this),l=s.indexOf(e);switch(t.key){case"ArrowDown":{t.preventDefault(),l<s.length-1&&p(this,U,ri).call(this,s[l+1]);break}case"ArrowUp":{t.preventDefault(),l>0&&p(this,U,ri).call(this,s[l-1]);break}case"ArrowRight":{if(t.preventDefault(),!e.isBranch)break;o(this,ws).call(this).includes(e.value)?l<s.length-1&&p(this,U,ri).call(this,s[l+1]):o(this,zn).call(this,e.value);break}case"ArrowLeft":{if(t.preventDefault(),e.isBranch&&o(this,ws).call(this).includes(e.value))o(this,zn).call(this,e.value);else{let d=p(this,U,cF).call(this,e);d&&p(this,U,ri).call(this,d)}break}case"Enter":case" ":{t.preventDefault(),e.disabled||o(this,kh).call(this,e.value,e.isBranch);break}case"Home":{t.preventDefault(),s[0]&&p(this,U,ri).call(this,s[0]);break}case"End":{t.preventDefault();let d=s[s.length-1];d&&p(this,U,ri).call(this,d);break}case"*":{t.preventDefault(),p(this,U,pF).call(this,e);break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&p(this,U,hF).call(this,e,t.key)}})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tree"),this.expandedValues===void 0&&this.defaultExpandedValues.length>0&&h(this,U,[...this.defaultExpandedValues],sb),this.selectedValues===void 0&&this.defaultSelectedValues.length>0&&h(this,U,[...this.defaultSelectedValues],yh),this._ctx=p(this,U,ab).call(this),h(this,Ln,new MutationObserver(()=>this.requestUpdate())),o(this,Ln).observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})}disconnectedCallback(){super.disconnectedCallback(),o(this,Ln)?.disconnect(),h(this,Ln,null),o(this,Gr)&&clearTimeout(o(this,Gr)),h(this,Gr,null),h(this,In,"")}willUpdate(t){if(this.selectionMode==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),t.has("selectionMode")&&this.selectedValues===void 0){let e=o(this,U,A_);this.selectionMode==="none"&&e.length>0?h(this,U,[],yh):this.selectionMode==="single"&&e.length>1&&h(this,U,[e[0]],yh)}this._ctx=p(this,U,ab).call(this)}updated(){if(o(this,U,ib)===null){let t=p(this,U,lb).call(this).find(e=>!e.disabled);t&&h(this,U,t.value,nb)}}render(){return f`
8869
+ `,J3,Q3,Z3,tF,eF,oF,rF,sF,iF,nF,aF,$t,f_,g_,v_,b_,x_,y_,w_,k_,lF,ib,U,E_,C_,A_,yh,$_,T_,nb,ab,In,Gr,Ln,ws,wh,zn,pb,kh,Eh,S_,lb,__,y6,db,dF,cF,ri,R_,hb,ub,pF,hF,ze=class extends(aF=x,nF=[u({type:Array})],iF=[u({type:Array,attribute:"default-expanded-values"})],sF=[u({attribute:"selection-mode",reflect:!0})],rF=[u({type:Array})],oF=[u({type:Array,attribute:"default-selected-values"})],eF=[u({type:Boolean,reflect:!0})],tF=[C()],Z3=[C()],Q3=[C()],J3=[lt({context:Zv}),C()],aF){constructor(){super(...arguments);a(this,U);a(this,f_,n($t,8,this)),n($t,11,this);a(this,g_,n($t,12,this,[])),n($t,15,this);a(this,v_,n($t,16,this,"none")),n($t,19,this);a(this,b_,n($t,20,this)),n($t,23,this);a(this,x_,n($t,24,this,[])),n($t,27,this);a(this,y_,n($t,28,this,!1)),n($t,31,this);a(this,w_,n($t,32,this,[])),n($t,35,this);a(this,E_,n($t,36,this,[])),n($t,39,this);a(this,$_,n($t,40,this,null)),n($t,43,this);a(this,In,"");a(this,Gr,null);a(this,Ln,null);a(this,ws,()=>this.expandedValues??o(this,U,lF));a(this,wh,()=>this.selectedValues??o(this,U,A_));a(this,zn,t=>{let e=[...o(this,ws).call(this)],l=e.indexOf(t)>=0?e.filter(d=>d!==t):[...e,t];this.expandedValues===void 0&&h(this,U,l,ib),this.dispatchEvent(cb({values:l}))});a(this,pb,t=>{let e=[...o(this,wh).call(this)],s=e.indexOf(t),l;this.selectionMode==="single"?l=s>=0?[]:[t]:l=s>=0?e.filter(d=>d!==t):[...e,t],this.selectedValues===void 0&&h(this,U,l,yh),this.dispatchEvent(I_({values:l}))});a(this,kh,(t,e)=>{this.disabled||(this.selectionMode!=="none"?o(this,pb).call(this,t):e?o(this,zn).call(this,t):this.dispatchEvent(L_({value:t})))});a(this,Eh,t=>{o(this,U,nb)!==t&&h(this,U,t,ab)});a(this,S_,n($t,44,this,p(this,U,lb).call(this))),n($t,47,this);a(this,hb,t=>{let e=p(this,U,R_).call(this,t);e&&o(this,Eh).call(this,e.value)});a(this,ub,t=>{if(this.disabled)return;let e=p(this,U,R_).call(this,t);if(!e)return;let s=p(this,U,db).call(this),l=s.indexOf(e);switch(t.key){case"ArrowDown":{t.preventDefault(),l<s.length-1&&p(this,U,ri).call(this,s[l+1]);break}case"ArrowUp":{t.preventDefault(),l>0&&p(this,U,ri).call(this,s[l-1]);break}case"ArrowRight":{if(t.preventDefault(),!e.isBranch)break;o(this,ws).call(this).includes(e.value)?l<s.length-1&&p(this,U,ri).call(this,s[l+1]):o(this,zn).call(this,e.value);break}case"ArrowLeft":{if(t.preventDefault(),e.isBranch&&o(this,ws).call(this).includes(e.value))o(this,zn).call(this,e.value);else{let d=p(this,U,cF).call(this,e);d&&p(this,U,ri).call(this,d)}break}case"Enter":case" ":{t.preventDefault(),e.disabled||o(this,kh).call(this,e.value,e.isBranch);break}case"Home":{t.preventDefault(),s[0]&&p(this,U,ri).call(this,s[0]);break}case"End":{t.preventDefault();let d=s[s.length-1];d&&p(this,U,ri).call(this,d);break}case"*":{t.preventDefault(),p(this,U,pF).call(this,e);break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&p(this,U,hF).call(this,e,t.key)}})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tree"),this.expandedValues===void 0&&this.defaultExpandedValues.length>0&&h(this,U,[...this.defaultExpandedValues],ib),this.selectedValues===void 0&&this.defaultSelectedValues.length>0&&h(this,U,[...this.defaultSelectedValues],yh),this._ctx=p(this,U,lb).call(this),h(this,Ln,new MutationObserver(()=>this.requestUpdate())),o(this,Ln).observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})}disconnectedCallback(){super.disconnectedCallback(),o(this,Ln)?.disconnect(),h(this,Ln,null),o(this,Gr)&&clearTimeout(o(this,Gr)),h(this,Gr,null),h(this,In,"")}willUpdate(t){if(this.selectionMode==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),t.has("selectionMode")&&this.selectedValues===void 0){let e=o(this,U,A_);this.selectionMode==="none"&&e.length>0?h(this,U,[],yh):this.selectionMode==="single"&&e.length>1&&h(this,U,[e[0]],yh)}this._ctx=p(this,U,lb).call(this)}updated(){if(o(this,U,nb)===null){let t=p(this,U,db).call(this).find(e=>!e.disabled);t&&h(this,U,t.value,ab)}}render(){return f`
8870
8870
  <div
8871
8871
  part="root"
8872
8872
  ?data-disabled=${this.disabled}
8873
- @keydown=${o(this,hb)}
8874
- @focusin=${o(this,pb)}
8873
+ @keydown=${o(this,ub)}
8874
+ @focusin=${o(this,hb)}
8875
8875
  >
8876
8876
  <slot></slot>
8877
8877
  </div>
8878
- `}};Ct=A(aF),f_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,x_=new WeakMap,y_=new WeakMap,w_=new WeakMap,U=new WeakSet,E_=new WeakMap,$_=new WeakMap,In=new WeakMap,Gr=new WeakMap,Ln=new WeakMap,ws=new WeakMap,wh=new WeakMap,zn=new WeakMap,cb=new WeakMap,kh=new WeakMap,Eh=new WeakMap,S_=new WeakMap,ab=function(){return{expandedValues:o(this,ws).call(this),selectedValues:o(this,wh).call(this),selectionMode:this.selectionMode,disabled:this.disabled,focusedValue:o(this,U,ib),toggleExpand:o(this,zn),activate:o(this,kh),setFocused:o(this,Eh)}},__=function(){return[...this.querySelectorAll("dui-tree-item")]},y6=function(t){return p(this,U,__).call(this).find(e=>e.value===t)},lb=function(){return p(this,U,__).call(this).filter(t=>p(this,U,dF).call(this,t))},dF=function(t){let e=t.parentElement;for(;e;){if(e===this)return!0;if(e instanceof fe&&!o(this,ws).call(this).includes(e.value))return!1;e=e.parentElement}return!1},cF=function(t){let e=t.parentElement;for(;e;){if(e===this)return null;if(e instanceof fe)return e;e=e.parentElement}return null},ri=function(t){h(this,U,t.value,nb),t.shadowRoot?.querySelector("[part='root']")?.focus()},R_=function(t){return t.composedPath().find(e=>e instanceof fe)??null},pb=new WeakMap,hb=new WeakMap,pF=function(t){let e=Array.from(t.parentElement?.children??[]).filter(m=>m instanceof fe&&m.isBranch&&!m.disabled),s=o(this,ws).call(this),l=e.map(m=>m.value).filter(m=>!s.includes(m));if(l.length===0)return;let d=[...s,...l];this.expandedValues===void 0&&h(this,U,d,sb),this.dispatchEvent(db({values:d}))},hF=function(t,e){h(this,In,o(this,In)+e.toLowerCase()),o(this,Gr)&&clearTimeout(o(this,Gr)),h(this,Gr,setTimeout(()=>{h(this,In,""),h(this,Gr,null)},500));let s=p(this,U,lb).call(this),l=s.indexOf(t),m=[...s.slice(l+1),...s.slice(0,l+1)].find(g=>(g.querySelector("[slot='label']")?.textContent?.trim().toLowerCase()??"").startsWith(o(this,In)));m&&p(this,U,ri).call(this,m)},c(Ct,4,"expandedValues",nF,ze,f_),c(Ct,4,"defaultExpandedValues",iF,ze,g_),c(Ct,4,"selectionMode",sF,ze,v_),c(Ct,4,"selectedValues",rF,ze,b_),c(Ct,4,"defaultSelectedValues",oF,ze,x_),c(Ct,4,"disabled",eF,ze,y_),k_=c(Ct,20,"#internalExpanded",tF,U,w_),lF=k_.get,sb=k_.set,C_=c(Ct,20,"#internalSelected",Z3,U,E_),A_=C_.get,yh=C_.set,T_=c(Ct,20,"#focusedValue",Q3,U,$_),ib=T_.get,nb=T_.set,c(Ct,4,"_ctx",J3,ze,S_),T(Ct,ze),v(ze,"tagName","dui-tree"),v(ze,"styles",[w,x6]);var w6=k`
8878
+ `}};$t=A(aF),f_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,x_=new WeakMap,y_=new WeakMap,w_=new WeakMap,U=new WeakSet,E_=new WeakMap,$_=new WeakMap,In=new WeakMap,Gr=new WeakMap,Ln=new WeakMap,ws=new WeakMap,wh=new WeakMap,zn=new WeakMap,pb=new WeakMap,kh=new WeakMap,Eh=new WeakMap,S_=new WeakMap,lb=function(){return{expandedValues:o(this,ws).call(this),selectedValues:o(this,wh).call(this),selectionMode:this.selectionMode,disabled:this.disabled,focusedValue:o(this,U,nb),toggleExpand:o(this,zn),activate:o(this,kh),setFocused:o(this,Eh)}},__=function(){return[...this.querySelectorAll("dui-tree-item")]},y6=function(t){return p(this,U,__).call(this).find(e=>e.value===t)},db=function(){return p(this,U,__).call(this).filter(t=>p(this,U,dF).call(this,t))},dF=function(t){let e=t.parentElement;for(;e;){if(e===this)return!0;if(e instanceof fe&&!o(this,ws).call(this).includes(e.value))return!1;e=e.parentElement}return!1},cF=function(t){let e=t.parentElement;for(;e;){if(e===this)return null;if(e instanceof fe)return e;e=e.parentElement}return null},ri=function(t){h(this,U,t.value,ab),t.shadowRoot?.querySelector("[part='root']")?.focus()},R_=function(t){return t.composedPath().find(e=>e instanceof fe)??null},hb=new WeakMap,ub=new WeakMap,pF=function(t){let e=Array.from(t.parentElement?.children??[]).filter(m=>m instanceof fe&&m.isBranch&&!m.disabled),s=o(this,ws).call(this),l=e.map(m=>m.value).filter(m=>!s.includes(m));if(l.length===0)return;let d=[...s,...l];this.expandedValues===void 0&&h(this,U,d,ib),this.dispatchEvent(cb({values:d}))},hF=function(t,e){h(this,In,o(this,In)+e.toLowerCase()),o(this,Gr)&&clearTimeout(o(this,Gr)),h(this,Gr,setTimeout(()=>{h(this,In,""),h(this,Gr,null)},500));let s=p(this,U,db).call(this),l=s.indexOf(t),m=[...s.slice(l+1),...s.slice(0,l+1)].find(g=>(g.querySelector("[slot='label']")?.textContent?.trim().toLowerCase()??"").startsWith(o(this,In)));m&&p(this,U,ri).call(this,m)},c($t,4,"expandedValues",nF,ze,f_),c($t,4,"defaultExpandedValues",iF,ze,g_),c($t,4,"selectionMode",sF,ze,v_),c($t,4,"selectedValues",rF,ze,b_),c($t,4,"defaultSelectedValues",oF,ze,x_),c($t,4,"disabled",eF,ze,y_),k_=c($t,20,"#internalExpanded",tF,U,w_),lF=k_.get,ib=k_.set,C_=c($t,20,"#internalSelected",Z3,U,E_),A_=C_.get,yh=C_.set,T_=c($t,20,"#focusedValue",Q3,U,$_),nb=T_.get,ab=T_.set,c($t,4,"_ctx",J3,ze,S_),T($t,ze),v(ze,"tagName","dui-tree"),v(ze,"styles",[w,x6]);var w6=k`
8879
8879
  /* ── Sizes — write to public tokens on :host so consumer overrides win ── */
8880
8880
 
8881
8881
  :host {