@deepfuture/dui-cdn 1.2.0 → 1.3.0

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 +799 -12
  2. package/dui.min.js +802 -539
  3. package/package.json +1 -1
package/dui.min.js CHANGED
@@ -1,8 +1,8 @@
1
- var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDescriptor;var n$=(s,o)=>(o=Symbol[s])?o:Symbol.for("Symbol."+s),hi=s=>{throw TypeError(s)};var a$=(s,o,t)=>o in s?Gm(s,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[o]=t;var i$=(s,o)=>Gm(s,"name",{value:o,configurable:!0});var T=s=>[,,,jz(s?.[n$("metadata")]??null)],l$=["class","method","getter","setter","accessor","field","value","get","set"],Sl=s=>s!==void 0&&typeof s!="function"?hi("Function expected"):s,Kz=(s,o,t,e,a)=>({kind:l$[s],name:o,metadata:e,addInitializer:l=>t._?hi("Already initialized"):a.push(Sl(l||null))}),$=(s,o)=>a$(o,n$("metadata"),s[3]),i=(s,o,t,e)=>{for(var a=0,l=s[o>>1],c=l&&l.length;a<c;a++)o&1?l[a].call(t):e=l[a].call(t,e);return e},d=(s,o,t,e,a,l)=>{var c,f,x,C,S,w=o&7,R=!!(o&8),_=!!(o&16),z=w>3?s.length+1:w?R?1:2:0,F=l$[w+5],J=w>3&&(s[z-1]=[]),U=s[z]||(s[z]=[]),D=w&&(!_&&!R&&(a=a.prototype),w<5&&(w>3||!_)&&Wz(w<4?a:{get[t](){return r(this,l)},set[t](K){return p(this,l,K)}},t));w?_&&w<4&&i$(l,(w>2?"set ":w>1?"get ":"")+t):i$(a,t);for(var P=e.length-1;P>=0;P--)C=Kz(w,t,x={},s[3],U),w&&(C.static=R,C.private=_,S=C.access={has:_?K=>Gz(a,K):K=>t in K},w^3&&(S.get=_?K=>(w^1?r:u)(K,a,w^4?l:D.get):K=>K[t]),w>2&&(S.set=_?(K,Zt)=>p(K,a,Zt,w^4?l:D.set):(K,Zt)=>K[t]=Zt)),f=(0,e[P])(w?w<4?_?l:D[F]:w>4?void 0:{get:D.get,set:D.set}:a,C),x._=1,w^4||f===void 0?Sl(f)&&(w>4?J.unshift(f):w?_?l=f:D[F]=f:a=f):typeof f!="object"||f===null?hi("Object expected"):(Sl(c=f.get)&&(D.get=c),Sl(c=f.set)&&(D.set=c),Sl(c=f.init)&&J.unshift(c));return w||$(s,a),D&&Gm(a,t,D),_?w^4?l:D:a},v=(s,o,t)=>a$(s,typeof o!="symbol"?o+"":o,t),Ym=(s,o,t)=>o.has(s)||hi("Cannot "+t),Gz=(s,o)=>Object(o)!==o?hi('Cannot use the "in" operator on this value'):s.has(o),r=(s,o,t)=>(Ym(s,o,"read from private field"),t?t.call(s):o.get(s)),n=(s,o,t)=>o.has(s)?hi("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,t),p=(s,o,t,e)=>(Ym(s,o,"write to private field"),e?e.call(s,t):o.set(s,t),t),u=(s,o,t)=>(Ym(s,o,"access private method"),t);var ui=(s,o,t,e)=>({set _(a){p(s,o,a,t)},get _(){return r(s,o,e)}});var nc=globalThis,ac=nc.ShadowRoot&&(nc.ShadyCSS===void 0||nc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xm=Symbol(),d$=new WeakMap,Tl=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Xm)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(ac&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=d$.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&d$.set(t,o))}return o}toString(){return this.cssText}},mi=s=>new Tl(typeof s=="string"?s:s+"",void 0,Xm),k=(s,...o)=>{let t=s.length===1?s[0]:o.reduce((e,a,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[l+1],s[0]);return new Tl(t,s,Xm)},c$=(s,o)=>{if(ac)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=nc.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,s.appendChild(e)}},Jm=ac?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return mi(t)})(s):s;var{is:Yz,defineProperty:Xz,getOwnPropertyDescriptor:Jz,getOwnPropertyNames:Qz,getOwnPropertySymbols:Zz,getPrototypeOf:t5}=Object,lc=globalThis,p$=lc.trustedTypes,e5=p$?p$.emptyScript:"",o5=lc.reactiveElementPolyfillSupport,_l=(s,o)=>s,Qm={toAttribute(s,o){switch(o){case Boolean:s=s?e5:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let t=s;switch(o){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},u$=(s,o)=>!Yz(s,o),h$={attribute:!0,type:String,converter:Qm,reflect:!1,useDefault:!1,hasChanged:u$};Symbol.metadata??=Symbol("metadata"),lc.litPropertyMetadata??=new WeakMap;var pr=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=h$){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&Xz(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=Jz(this.prototype,o)??{get(){return this[t]},set(c){this[t]=c}};return{get:a,set(c){let f=a?.call(this);l?.call(this,c),this.requestUpdate(o,f,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??h$}static _$Ei(){if(this.hasOwnProperty(_l("elementProperties")))return;let o=t5(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(_l("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_l("properties"))){let t=this.properties,e=[...Qz(t),...Zz(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(Jm(a))}else o!==void 0&&t.push(Jm(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c$(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Qm).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Qm;this._$Em=a;let f=c.fromAttribute(t,l.type);this[a]=f??this._$Ej?.get(a)??f,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let c=this.constructor;if(a===!1&&(l=this[o]),e??=c.getPropertyOptions(o),!((e.hasChanged??u$)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(c._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},c){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,c??t??this[o]),l!==!0||c!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:c}=l,f=this[a];c!==!0||this._$AL.has(a)||f===void 0||this.C(a,void 0,l,f)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};pr.elementStyles=[],pr.shadowRootOptions={mode:"open"},pr[_l("elementProperties")]=new Map,pr[_l("finalized")]=new Map,o5?.({ReactiveElement:pr}),(lc.reactiveElementVersions??=[]).push("2.1.2");var nf=globalThis,m$=s=>s,dc=nf.trustedTypes,f$=dc?dc.createPolicy("lit-html",{createHTML:s=>s}):void 0,w$="$lit$",Ar=`lit$${Math.random().toFixed(9).slice(2)}$`,k$="?"+Ar,r5=`<${k$}>`,is=document,Rl=()=>is.createComment(""),Il=s=>s===null||typeof s!="object"&&typeof s!="function",af=Array.isArray,s5=s=>af(s)||typeof s?.[Symbol.iterator]=="function",Zm=`[
2
- \f\r]`,Al=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g$=/-->/g,v$=/>/g,rs=RegExp(`>|${Zm}(?:([^\\s"'>=/]+)(${Zm}*=${Zm}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),b$=/'/g,x$=/"/g,E$=/^(?:script|style|textarea|title)$/i,lf=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),nB=lf(1),aB=lf(2),lB=lf(3),ns=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),y$=new WeakMap,ss=is.createTreeWalker(is,129);function C$(s,o){if(!af(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return f$!==void 0?f$.createHTML(o):o}var i5=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=Al;for(let f=0;f<t;f++){let x=s[f],C,S,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,S=c.exec(x),S!==null);)R=c.lastIndex,c===Al?S[1]==="!--"?c=g$:S[1]!==void 0?c=v$:S[2]!==void 0?(E$.test(S[2])&&(a=RegExp("</"+S[2],"g")),c=rs):S[3]!==void 0&&(c=rs):c===rs?S[0]===">"?(c=a??Al,w=-1):S[1]===void 0?w=-2:(w=c.lastIndex-S[2].length,C=S[1],c=S[3]===void 0?rs:S[3]==='"'?x$:b$):c===x$||c===b$?c=rs:c===g$||c===v$?c=Al:(c=rs,a=void 0);let _=c===rs&&s[f+1].startsWith("/>")?" ":"";l+=c===Al?x+r5:w>=0?(e.push(C),x.slice(0,w)+w$+x.slice(w)+Ar+_):x+Ar+(w===-2?f:_)}return[C$(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Ol=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,f=o.length-1,x=this.parts,[C,S]=i5(o,t);if(this.el=s.createElement(C,e),ss.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=ss.nextNode())!==null&&x.length<f;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(w$)){let R=S[c++],_=a.getAttribute(w).split(Ar),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?ef:z[1]==="?"?of:z[1]==="@"?rf:gi}),a.removeAttribute(w)}else w.startsWith(Ar)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(E$.test(a.tagName)){let w=a.textContent.split(Ar),R=w.length-1;if(R>0){a.textContent=dc?dc.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],Rl()),ss.nextNode(),x.push({type:2,index:++l});a.append(w[R],Rl())}}}else if(a.nodeType===8)if(a.data===k$)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(Ar,w+1))!==-1;)x.push({type:7,index:l}),w+=Ar.length-1}l++}}static createElement(o,t){let e=is.createElement("template");return e.innerHTML=o,e}};function fi(s,o,t=s,e){if(o===ns)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=Il(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=fi(s,a._$AS(s,o.values),a,e)),o}var tf=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??is).importNode(t,!0);ss.currentNode=a;let l=ss.nextNode(),c=0,f=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new Ll(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new sf(l,this,o)),this._$AV.push(C),x=e[++f]}c!==x?.index&&(l=ss.nextNode(),c++)}return ss.currentNode=is,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Ll=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=fi(this,o,t),Il(o)?o===te||o==null||o===""?(this._$AH!==te&&this._$AR(),this._$AH=te):o!==this._$AH&&o!==ns&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):s5(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==te&&Il(this._$AH)?this._$AA.nextSibling.data=o:this.T(is.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Ol.createElement(C$(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new tf(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=y$.get(o.strings);return t===void 0&&y$.set(o.strings,t=new Ol(o)),t}k(o){af(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(Rl()),this.O(Rl()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=m$(o).nextSibling;m$(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=te,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=te}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=fi(this,o,t,0),c=!Il(o)||o!==this._$AH&&o!==ns,c&&(this._$AH=o);else{let f=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=fi(this,f[e+x],t,x),C===ns&&(C=this._$AH[x]),c||=!Il(C)||C!==this._$AH[x],C===te?o=te:o!==te&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},ef=class extends gi{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===te?void 0:o}},of=class extends gi{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==te)}},rf=class extends gi{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=fi(this,o,t,0)??te)===ns)return;let e=this._$AH,a=o===te&&e!==te||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==te&&(e===te||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},sf=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){fi(this,o)}};var n5=nf.litHtmlPolyfillSupport;n5?.(Ol,Ll),(nf.litHtmlVersions??=[]).push("3.3.2");var $$=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Ll(o.insertBefore(Rl(),l),l,void 0,t??{})}return a._$AI(s),a};var df=globalThis,vi=class extends pr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=$$(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ns}};vi._$litElement$=!0,vi.finalized=!0,df.litElementHydrateSupport?.({LitElement:vi});var a5=df.litElementPolyfillSupport;a5?.({LitElement:vi});(df.litElementVersions??=[]).push("4.2.2");var cc=globalThis,pc=cc.ShadowRoot&&(cc.ShadyCSS===void 0||cc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cf=Symbol(),S$=new WeakMap,zl=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==cf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(pc&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=S$.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&S$.set(t,o))}return o}toString(){return this.cssText}},T$=s=>new zl(typeof s=="string"?s:s+"",void 0,cf),g=(s,...o)=>{let t=s.length===1?s[0]:o.reduce((e,a,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[l+1],s[0]);return new zl(t,s,cf)},hc=(s,o)=>{if(pc)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=cc.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,s.appendChild(e)}},pf=pc?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return T$(t)})(s):s;var{is:l5,defineProperty:d5,getOwnPropertyDescriptor:c5,getOwnPropertyNames:p5,getOwnPropertySymbols:h5,getPrototypeOf:u5}=Object,uc=globalThis,_$=uc.trustedTypes,m5=_$?_$.emptyScript:"",f5=uc.reactiveElementPolyfillSupport,Ml=(s,o)=>s,Nl={toAttribute(s,o){switch(o){case Boolean:s=s?m5:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let t=s;switch(o){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},mc=(s,o)=>!l5(s,o),A$={attribute:!0,type:String,converter:Nl,reflect:!1,useDefault:!1,hasChanged:mc};Symbol.metadata??=Symbol("metadata"),uc.litPropertyMetadata??=new WeakMap;var hr=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=A$){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&d5(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=c5(this.prototype,o)??{get(){return this[t]},set(c){this[t]=c}};return{get:a,set(c){let f=a?.call(this);l?.call(this,c),this.requestUpdate(o,f,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??A$}static _$Ei(){if(this.hasOwnProperty(Ml("elementProperties")))return;let o=u5(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Ml("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ml("properties"))){let t=this.properties,e=[...p5(t),...h5(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(pf(a))}else o!==void 0&&t.push(pf(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return hc(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Nl).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Nl;this._$Em=a;let f=c.fromAttribute(t,l.type);this[a]=f??this._$Ej?.get(a)??f,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let c=this.constructor;if(a===!1&&(l=this[o]),e??=c.getPropertyOptions(o),!((e.hasChanged??mc)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(c._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},c){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,c??t??this[o]),l!==!0||c!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:c}=l,f=this[a];c!==!0||this._$AL.has(a)||f===void 0||this.C(a,void 0,l,f)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};hr.elementStyles=[],hr.shadowRootOptions={mode:"open"},hr[Ml("elementProperties")]=new Map,hr[Ml("finalized")]=new Map,f5?.({ReactiveElement:hr}),(uc.reactiveElementVersions??=[]).push("2.1.2");var uf=globalThis,R$=s=>s,fc=uf.trustedTypes,I$=fc?fc.createPolicy("lit-html",{createHTML:s=>s}):void 0,mf="$lit$",ur=`lit$${Math.random().toFixed(9).slice(2)}$`,ff="?"+ur,g5=`<${ff}>`,ds=document,Hl=()=>ds.createComment(""),Bl=s=>s===null||typeof s!="object"&&typeof s!="function",gf=Array.isArray,D$=s=>gf(s)||typeof s?.[Symbol.iterator]=="function",hf=`[
4
- \f\r]`,Dl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O$=/-->/g,L$=/>/g,as=RegExp(`>|${hf}(?:([^\\s"'>=/]+)(${hf}*=${hf}*(?:[^
5
- \f\r"'\`<>=]|("|')|))|$)`,"g"),z$=/'/g,M$=/"/g,H$=/^(?:script|style|textarea|title)$/i,vf=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),m=vf(1),wc=vf(2),$B=vf(3),ie=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),N$=new WeakMap,ls=ds.createTreeWalker(ds,129);function B$(s,o){if(!gf(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return I$!==void 0?I$.createHTML(o):o}var F$=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=Dl;for(let f=0;f<t;f++){let x=s[f],C,S,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,S=c.exec(x),S!==null);)R=c.lastIndex,c===Dl?S[1]==="!--"?c=O$:S[1]!==void 0?c=L$:S[2]!==void 0?(H$.test(S[2])&&(a=RegExp("</"+S[2],"g")),c=as):S[3]!==void 0&&(c=as):c===as?S[0]===">"?(c=a??Dl,w=-1):S[1]===void 0?w=-2:(w=c.lastIndex-S[2].length,C=S[1],c=S[3]===void 0?as:S[3]==='"'?M$:z$):c===M$||c===z$?c=as:c===O$||c===L$?c=Dl:(c=as,a=void 0);let _=c===as&&s[f+1].startsWith("/>")?" ":"";l+=c===Dl?x+g5:w>=0?(e.push(C),x.slice(0,w)+mf+x.slice(w)+ur+_):x+ur+(w===-2?f:_)}return[B$(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Fl=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,f=o.length-1,x=this.parts,[C,S]=F$(o,t);if(this.el=s.createElement(C,e),ls.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=ls.nextNode())!==null&&x.length<f;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(mf)){let R=S[c++],_=a.getAttribute(w).split(ur),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?vc:z[1]==="?"?bc:z[1]==="@"?xc:ps}),a.removeAttribute(w)}else w.startsWith(ur)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(H$.test(a.tagName)){let w=a.textContent.split(ur),R=w.length-1;if(R>0){a.textContent=fc?fc.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],Hl()),ls.nextNode(),x.push({type:2,index:++l});a.append(w[R],Hl())}}}else if(a.nodeType===8)if(a.data===ff)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(ur,w+1))!==-1;)x.push({type:7,index:l}),w+=ur.length-1}l++}}static createElement(o,t){let e=ds.createElement("template");return e.innerHTML=o,e}};function cs(s,o,t=s,e){if(o===ie)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=Bl(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=cs(s,a._$AS(s,o.values),a,e)),o}var gc=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??ds).importNode(t,!0);ls.currentNode=a;let l=ls.nextNode(),c=0,f=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new bi(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new yc(l,this,o)),this._$AV.push(C),x=e[++f]}c!==x?.index&&(l=ls.nextNode(),c++)}return ls.currentNode=ds,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},bi=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=cs(this,o,t),Bl(o)?o===I||o==null||o===""?(this._$AH!==I&&this._$AR(),this._$AH=I):o!==this._$AH&&o!==ie&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):D$(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==I&&Bl(this._$AH)?this._$AA.nextSibling.data=o:this.T(ds.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Fl.createElement(B$(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new gc(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=N$.get(o.strings);return t===void 0&&N$.set(o.strings,t=new Fl(o)),t}k(o){gf(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(Hl()),this.O(Hl()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=R$(o).nextSibling;R$(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},ps=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=I,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=I}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=cs(this,o,t,0),c=!Bl(o)||o!==this._$AH&&o!==ie,c&&(this._$AH=o);else{let f=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=cs(this,f[e+x],t,x),C===ie&&(C=this._$AH[x]),c||=!Bl(C)||C!==this._$AH[x],C===I?o=I:o!==I&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},vc=class extends ps{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===I?void 0:o}},bc=class extends ps{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==I)}},xc=class extends ps{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=cs(this,o,t,0)??I)===ie)return;let e=this._$AH,a=o===I&&e!==I||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==I&&(e===I||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},yc=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){cs(this,o)}},U$={M:mf,P:ur,A:ff,C:1,L:F$,R:gc,D:D$,V:cs,I:bi,H:ps,N:bc,U:xc,B:vc,F:yc},v5=uf.litHtmlPolyfillSupport;v5?.(Fl,bi),(uf.litHtmlVersions??=[]).push("3.3.2");var kc=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new bi(o.insertBefore(Hl(),l),l,void 0,t??{})}return a._$AI(s),a};var bf=globalThis,b=class extends hr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=kc(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ie}};b._$litElement$=!0,b.finalized=!0,bf.litElementHydrateSupport?.({LitElement:b});var b5=bf.litElementPolyfillSupport;b5?.({LitElement:b});(bf.litElementVersions??=[]).push("4.2.2");var x5={attribute:!0,type:String,converter:Nl,reflect:!1,hasChanged:mc},y5=(s=x5,o,t)=>{let{kind:e,metadata:a}=t,l=globalThis.litPropertyMetadata.get(a);if(l===void 0&&globalThis.litPropertyMetadata.set(a,l=new Map),e==="setter"&&((s=Object.create(s)).wrapped=!0),l.set(t.name,s),e==="accessor"){let{name:c}=t;return{set(f){let x=o.get.call(this);o.set.call(this,f),this.requestUpdate(c,x,s,!0,f)},init(f){return f!==void 0&&this.C(c,void 0,s,f),f}}}if(e==="setter"){let{name:c}=t;return function(f){let x=this[c];o.call(this,f),this.requestUpdate(c,x,s,!0,f)}}throw Error("Unsupported decorator location: "+e)};function h(s){return(o,t)=>typeof t=="object"?y5(s,o,t):((e,a,l)=>{let c=a.hasOwnProperty(l);return a.constructor.createProperty(l,e),c?Object.getOwnPropertyDescriptor(a,l):void 0})(s,o,t)}function E(s){return h({...s,state:!0,attribute:!1})}var Rr=class extends Event{constructor(o,t,e,a){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t,this.callback=e,this.subscribe=a??!1}};var W=class{constructor(o,t,e,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(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,c)),this.unsubscribe=c},this.host=o,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=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Rr(this.context,this.host,this.t,this.subscribe))}};var Cc=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var xf=class extends Event{constructor(o,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t}},xi=class extends Cc{constructor(o,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=a=>{if(a.context!==this.context)return;let l=a.contextTarget??a.composedPath()[0];l!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,l,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let l=new Set;for(let[c,{consumerHost:f}]of this.subscriptions)l.has(c)||(l.add(c),f.dispatchEvent(new Rr(this.context,f,c,!0)));a.stopPropagation()},this.host=o,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 xf(this.context,this.host))}};function Et({context:s}){return(o,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return o.get.call(this)},set(a){return e.get(this).setValue(a),o.set.call(this,a)},init(a){return e.set(this,new xi(this,{context:s,initialValue:a})),a}};{o.constructor.addInitializer(c=>{e.set(c,new xi(c,{context:s}))});let a=Object.getOwnPropertyDescriptor(o,t),l;if(a===void 0){let c=new WeakMap;l={get(){return c.get(this)},set(f){e.get(this).setValue(f),c.set(this,f)},configurable:!0,enumerable:!0}}else{let c=a.set;l={...a,set(f){e.get(this).setValue(f),c?.call(this,f)}}}return void Object.defineProperty(o,t,l)}}}function Ut({context:s,subscribe:o}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new W(this,{context:s,callback:a=>{t.set.call(this,a)},subscribe:o})}):t.constructor.addInitializer(a=>{new W(a,{context:s,callback:l=>{a[e]=l},subscribe:o})})}}var y=g`
1
+ var A5=Object.create;var Of=Object.defineProperty;var R5=Object.getOwnPropertyDescriptor;var v1=(s,o)=>(o=Symbol[s])?o:Symbol.for("Symbol."+s),Si=s=>{throw TypeError(s)};var b1=(s,o,t)=>o in s?Of(s,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[o]=t;var g1=(s,o)=>Of(s,"name",{value:o,configurable:!0});var S=s=>[,,,A5(s?.[v1("metadata")]??null)],x1=["class","method","getter","setter","accessor","field","value","get","set"],Ul=s=>s!==void 0&&typeof s!="function"?Si("Function expected"):s,I5=(s,o,t,e,a)=>({kind:x1[s],name:o,metadata:e,addInitializer:l=>t._?Si("Already initialized"):a.push(Ul(l||null))}),$=(s,o)=>b1(o,v1("metadata"),s[3]),i=(s,o,t,e)=>{for(var a=0,l=s[o>>1],c=l&&l.length;a<c;a++)o&1?l[a].call(t):e=l[a].call(t,e);return e},d=(s,o,t,e,a,l)=>{var c,m,x,C,T,w=o&7,R=!!(o&8),_=!!(o&16),z=w>3?s.length+1:w?R?1:2:0,V=x1[w+5],Q=w>3&&(s[z-1]=[]),U=s[z]||(s[z]=[]),D=w&&(!_&&!R&&(a=a.prototype),w<5&&(w>3||!_)&&R5(w<4?a:{get[t](){return r(this,l)},set[t](G){return p(this,l,G)}},t));w?_&&w<4&&g1(l,(w>2?"set ":w>1?"get ":"")+t):g1(a,t);for(var j=e.length-1;j>=0;j--)C=I5(w,t,x={},s[3],U),w&&(C.static=R,C.private=_,T=C.access={has:_?G=>O5(a,G):G=>t in G},w^3&&(T.get=_?G=>(w^1?r:h)(G,a,w^4?l:D.get):G=>G[t]),w>2&&(T.set=_?(G,se)=>p(G,a,se,w^4?l:D.set):(G,se)=>G[t]=se)),m=(0,e[j])(w?w<4?_?l:D[V]:w>4?void 0:{get:D.get,set:D.set}:a,C),x._=1,w^4||m===void 0?Ul(m)&&(w>4?Q.unshift(m):w?_?l=m:D[V]=m:a=m):typeof m!="object"||m===null?Si("Object expected"):(Ul(c=m.get)&&(D.get=c),Ul(c=m.set)&&(D.set=c),Ul(c=m.init)&&Q.unshift(c));return w||$(s,a),D&&Of(a,t,D),_?w^4?l:D:a},g=(s,o,t)=>b1(s,typeof o!="symbol"?o+"":o,t),Lf=(s,o,t)=>o.has(s)||Si("Cannot "+t),O5=(s,o)=>Object(o)!==o?Si('Cannot use the "in" operator on this value'):s.has(o),r=(s,o,t)=>(Lf(s,o,"read from private field"),t?t.call(s):o.get(s)),n=(s,o,t)=>o.has(s)?Si("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(s):o.set(s,t),p=(s,o,t,e)=>(Lf(s,o,"write to private field"),e?e.call(s,t):o.set(s,t),t),h=(s,o,t)=>(Lf(s,o,"access private method"),t);var Ti=(s,o,t,e)=>({set _(a){p(s,o,a,t)},get _(){return r(s,o,e)}});var _c=globalThis,Ac=_c.ShadowRoot&&(_c.ShadyCSS===void 0||_c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zf=Symbol(),y1=new WeakMap,ql=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==zf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Ac&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=y1.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&y1.set(t,o))}return o}toString(){return this.cssText}},bo=s=>new ql(typeof s=="string"?s:s+"",void 0,zf),k=(s,...o)=>{let t=s.length===1?s[0]:o.reduce((e,a,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[l+1],s[0]);return new ql(t,s,zf)},w1=(s,o)=>{if(Ac)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=_c.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,s.appendChild(e)}},Mf=Ac?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return bo(t)})(s):s;var{is:L5,defineProperty:z5,getOwnPropertyDescriptor:M5,getOwnPropertyNames:N5,getOwnPropertySymbols:D5,getPrototypeOf:H5}=Object,Rc=globalThis,k1=Rc.trustedTypes,B5=k1?k1.emptyScript:"",F5=Rc.reactiveElementPolyfillSupport,Pl=(s,o)=>s,Nf={toAttribute(s,o){switch(o){case Boolean:s=s?B5:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let t=s;switch(o){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},C1=(s,o)=>!L5(s,o),E1={attribute:!0,type:String,converter:Nf,reflect:!1,useDefault:!1,hasChanged:C1};Symbol.metadata??=Symbol("metadata"),Rc.litPropertyMetadata??=new WeakMap;var xo=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=E1){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&z5(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=M5(this.prototype,o)??{get(){return this[t]},set(c){this[t]=c}};return{get:a,set(c){let m=a?.call(this);l?.call(this,c),this.requestUpdate(o,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??E1}static _$Ei(){if(this.hasOwnProperty(Pl("elementProperties")))return;let o=H5(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Pl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pl("properties"))){let t=this.properties,e=[...N5(t),...D5(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(Mf(a))}else o!==void 0&&t.push(Mf(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return w1(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Nf).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Nf;this._$Em=a;let m=c.fromAttribute(t,l.type);this[a]=m??this._$Ej?.get(a)??m,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let c=this.constructor;if(a===!1&&(l=this[o]),e??=c.getPropertyOptions(o),!((e.hasChanged??C1)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(c._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},c){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,c??t??this[o]),l!==!0||c!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:c}=l,m=this[a];c!==!0||this._$AL.has(a)||m===void 0||this.C(a,void 0,l,m)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};xo.elementStyles=[],xo.shadowRootOptions={mode:"open"},xo[Pl("elementProperties")]=new Map,xo[Pl("finalized")]=new Map,F5?.({ReactiveElement:xo}),(Rc.reactiveElementVersions??=[]).push("2.1.2");var qf=globalThis,$1=s=>s,Ic=qf.trustedTypes,S1=Ic?Ic.createPolicy("lit-html",{createHTML:s=>s}):void 0,O1="$lit$",Ho=`lit$${Math.random().toFixed(9).slice(2)}$`,L1="?"+Ho,V5=`<${L1}>`,gs=document,Wl=()=>gs.createComment(""),Kl=s=>s===null||typeof s!="object"&&typeof s!="function",Pf=Array.isArray,U5=s=>Pf(s)||typeof s?.[Symbol.iterator]=="function",Df=`[
2
+ \f\r]`,jl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T1=/-->/g,_1=/>/g,ms=RegExp(`>|${Df}(?:([^\\s"'>=/]+)(${Df}*=${Df}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),A1=/'/g,R1=/"/g,z1=/^(?:script|style|textarea|title)$/i,jf=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),Y4=jf(1),X4=jf(2),J4=jf(3),vs=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),I1=new WeakMap,fs=gs.createTreeWalker(gs,129);function M1(s,o){if(!Pf(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return S1!==void 0?S1.createHTML(o):o}var q5=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=jl;for(let m=0;m<t;m++){let x=s[m],C,T,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,T=c.exec(x),T!==null);)R=c.lastIndex,c===jl?T[1]==="!--"?c=T1:T[1]!==void 0?c=_1:T[2]!==void 0?(z1.test(T[2])&&(a=RegExp("</"+T[2],"g")),c=ms):T[3]!==void 0&&(c=ms):c===ms?T[0]===">"?(c=a??jl,w=-1):T[1]===void 0?w=-2:(w=c.lastIndex-T[2].length,C=T[1],c=T[3]===void 0?ms:T[3]==='"'?R1:A1):c===R1||c===A1?c=ms:c===T1||c===_1?c=jl:(c=ms,a=void 0);let _=c===ms&&s[m+1].startsWith("/>")?" ":"";l+=c===jl?x+V5:w>=0?(e.push(C),x.slice(0,w)+O1+x.slice(w)+Ho+_):x+Ho+(w===-2?m:_)}return[M1(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},Gl=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,m=o.length-1,x=this.parts,[C,T]=q5(o,t);if(this.el=s.createElement(C,e),fs.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=fs.nextNode())!==null&&x.length<m;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(O1)){let R=T[c++],_=a.getAttribute(w).split(Ho),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?Bf:z[1]==="?"?Ff:z[1]==="@"?Vf:Ai}),a.removeAttribute(w)}else w.startsWith(Ho)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(z1.test(a.tagName)){let w=a.textContent.split(Ho),R=w.length-1;if(R>0){a.textContent=Ic?Ic.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],Wl()),fs.nextNode(),x.push({type:2,index:++l});a.append(w[R],Wl())}}}else if(a.nodeType===8)if(a.data===L1)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(Ho,w+1))!==-1;)x.push({type:7,index:l}),w+=Ho.length-1}l++}}static createElement(o,t){let e=gs.createElement("template");return e.innerHTML=o,e}};function _i(s,o,t=s,e){if(o===vs)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=Kl(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=_i(s,a._$AS(s,o.values),a,e)),o}var Hf=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??gs).importNode(t,!0);fs.currentNode=a;let l=fs.nextNode(),c=0,m=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new Yl(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new Uf(l,this,o)),this._$AV.push(C),x=e[++m]}c!==x?.index&&(l=fs.nextNode(),c++)}return fs.currentNode=gs,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Yl=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=_i(this,o,t),Kl(o)?o===ie||o==null||o===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):o!==this._$AH&&o!==vs&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):U5(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==ie&&Kl(this._$AH)?this._$AA.nextSibling.data=o:this.T(gs.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=Gl.createElement(M1(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new Hf(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=I1.get(o.strings);return t===void 0&&I1.set(o.strings,t=new Gl(o)),t}k(o){Pf(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(Wl()),this.O(Wl()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=$1(o).nextSibling;$1(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Ai=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ie}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=_i(this,o,t,0),c=!Kl(o)||o!==this._$AH&&o!==vs,c&&(this._$AH=o);else{let m=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=_i(this,m[e+x],t,x),C===vs&&(C=this._$AH[x]),c||=!Kl(C)||C!==this._$AH[x],C===ie?o=ie:o!==ie&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Bf=class extends Ai{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===ie?void 0:o}},Ff=class extends Ai{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==ie)}},Vf=class extends Ai{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=_i(this,o,t,0)??ie)===vs)return;let e=this._$AH,a=o===ie&&e!==ie||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==ie&&(e===ie||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Uf=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){_i(this,o)}};var P5=qf.litHtmlPolyfillSupport;P5?.(Gl,Yl),(qf.litHtmlVersions??=[]).push("3.3.2");var N1=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Yl(o.insertBefore(Wl(),l),l,void 0,t??{})}return a._$AI(s),a};var Wf=globalThis,Ri=class extends xo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=N1(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vs}};Ri._$litElement$=!0,Ri.finalized=!0,Wf.litElementHydrateSupport?.({LitElement:Ri});var j5=Wf.litElementPolyfillSupport;j5?.({LitElement:Ri});(Wf.litElementVersions??=[]).push("4.2.2");var Oc=globalThis,Lc=Oc.ShadowRoot&&(Oc.ShadyCSS===void 0||Oc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Kf=Symbol(),D1=new WeakMap,Xl=class{constructor(o,t,e){if(this._$cssResult$=!0,e!==Kf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Lc&&o===void 0){let e=t!==void 0&&t.length===1;e&&(o=D1.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),e&&D1.set(t,o))}return o}toString(){return this.cssText}},H1=s=>new Xl(typeof s=="string"?s:s+"",void 0,Kf),v=(s,...o)=>{let t=s.length===1?s[0]:o.reduce((e,a,l)=>e+(c=>{if(c._$cssResult$===!0)return c.cssText;if(typeof c=="number")return c;throw Error("Value passed to 'css' function must be a 'css' function result: "+c+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[l+1],s[0]);return new Xl(t,s,Kf)},zc=(s,o)=>{if(Lc)s.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let e=document.createElement("style"),a=Oc.litNonce;a!==void 0&&e.setAttribute("nonce",a),e.textContent=t.cssText,s.appendChild(e)}},Gf=Lc?s=>s:s=>s instanceof CSSStyleSheet?(o=>{let t="";for(let e of o.cssRules)t+=e.cssText;return H1(t)})(s):s;var{is:W5,defineProperty:K5,getOwnPropertyDescriptor:G5,getOwnPropertyNames:Y5,getOwnPropertySymbols:X5,getPrototypeOf:J5}=Object,Mc=globalThis,B1=Mc.trustedTypes,Q5=B1?B1.emptyScript:"",Z5=Mc.reactiveElementPolyfillSupport,Jl=(s,o)=>s,Ql={toAttribute(s,o){switch(o){case Boolean:s=s?Q5:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,o){let t=s;switch(o){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Nc=(s,o)=>!W5(s,o),F1={attribute:!0,type:String,converter:Ql,reflect:!1,useDefault:!1,hasChanged:Nc};Symbol.metadata??=Symbol("metadata"),Mc.litPropertyMetadata??=new WeakMap;var yo=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=F1){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let e=Symbol(),a=this.getPropertyDescriptor(o,e,t);a!==void 0&&K5(this.prototype,o,a)}}static getPropertyDescriptor(o,t,e){let{get:a,set:l}=G5(this.prototype,o)??{get(){return this[t]},set(c){this[t]=c}};return{get:a,set(c){let m=a?.call(this);l?.call(this,c),this.requestUpdate(o,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??F1}static _$Ei(){if(this.hasOwnProperty(Jl("elementProperties")))return;let o=J5(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Jl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jl("properties"))){let t=this.properties,e=[...Y5(t),...X5(t)];for(let a of e)this.createProperty(a,t[a])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);if(t!==void 0)for(let[e,a]of t)this.elementProperties.set(e,a)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let a=this._$Eu(t,e);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let t=[];if(Array.isArray(o)){let e=new Set(o.flat(1/0).reverse());for(let a of e)t.unshift(Gf(a))}else o!==void 0&&t.push(Gf(o));return t}static _$Eu(o,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(o.set(e,this[e]),delete this[e]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zc(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,e){this._$AK(o,e)}_$ET(o,t){let e=this.constructor.elementProperties.get(o),a=this.constructor._$Eu(o,e);if(a!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:Ql).toAttribute(t,e.type);this._$Em=o,l==null?this.removeAttribute(a):this.setAttribute(a,l),this._$Em=null}}_$AK(o,t){let e=this.constructor,a=e._$Eh.get(o);if(a!==void 0&&this._$Em!==a){let l=e.getPropertyOptions(a),c=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:Ql;this._$Em=a;let m=c.fromAttribute(t,l.type);this[a]=m??this._$Ej?.get(a)??m,this._$Em=null}}requestUpdate(o,t,e,a=!1,l){if(o!==void 0){let c=this.constructor;if(a===!1&&(l=this[o]),e??=c.getPropertyOptions(o),!((e.hasChanged??Nc)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(o)&&!this.hasAttribute(c._$Eu(o,e))))return;this.C(o,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:e,reflect:a,wrapped:l},c){e&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,c??t??this[o]),l!==!0||c!==void 0)||(this._$AL.has(o)||(this.hasUpdated||e||(t=void 0),this._$AL.set(o,t)),a===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[a,l]of this._$Ep)this[a]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[a,l]of e){let{wrapped:c}=l,m=this[a];c!==!0||this._$AL.has(a)||m===void 0||this.C(a,void 0,l,m)}}let o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw o=!1,this._$EM(),e}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(o){}firstUpdated(o){}};yo.elementStyles=[],yo.shadowRootOptions={mode:"open"},yo[Jl("elementProperties")]=new Map,yo[Jl("finalized")]=new Map,Z5?.({ReactiveElement:yo}),(Mc.reactiveElementVersions??=[]).push("2.1.2");var Xf=globalThis,V1=s=>s,Dc=Xf.trustedTypes,U1=Dc?Dc.createPolicy("lit-html",{createHTML:s=>s}):void 0,Jf="$lit$",wo=`lit$${Math.random().toFixed(9).slice(2)}$`,Qf="?"+wo,tN=`<${Qf}>`,ys=document,td=()=>ys.createComment(""),ed=s=>s===null||typeof s!="object"&&typeof s!="function",Zf=Array.isArray,G1=s=>Zf(s)||typeof s?.[Symbol.iterator]=="function",Yf=`[
4
+ \f\r]`,Zl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q1=/-->/g,P1=/>/g,bs=RegExp(`>|${Yf}(?:([^\\s"'>=/]+)(${Yf}*=${Yf}*(?:[^
5
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),j1=/'/g,W1=/"/g,Y1=/^(?:script|style|textarea|title)$/i,tg=s=>(o,...t)=>({_$litType$:s,strings:o,values:t}),f=tg(1),qc=tg(2),mF=tg(3),ce=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),K1=new WeakMap,xs=ys.createTreeWalker(ys,129);function X1(s,o){if(!Zf(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return U1!==void 0?U1.createHTML(o):o}var J1=(s,o)=>{let t=s.length-1,e=[],a,l=o===2?"<svg>":o===3?"<math>":"",c=Zl;for(let m=0;m<t;m++){let x=s[m],C,T,w=-1,R=0;for(;R<x.length&&(c.lastIndex=R,T=c.exec(x),T!==null);)R=c.lastIndex,c===Zl?T[1]==="!--"?c=q1:T[1]!==void 0?c=P1:T[2]!==void 0?(Y1.test(T[2])&&(a=RegExp("</"+T[2],"g")),c=bs):T[3]!==void 0&&(c=bs):c===bs?T[0]===">"?(c=a??Zl,w=-1):T[1]===void 0?w=-2:(w=c.lastIndex-T[2].length,C=T[1],c=T[3]===void 0?bs:T[3]==='"'?W1:j1):c===W1||c===j1?c=bs:c===q1||c===P1?c=Zl:(c=bs,a=void 0);let _=c===bs&&s[m+1].startsWith("/>")?" ":"";l+=c===Zl?x+tN:w>=0?(e.push(C),x.slice(0,w)+Jf+x.slice(w)+wo+_):x+wo+(w===-2?m:_)}return[X1(s,l+(s[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),e]},rd=class s{constructor({strings:o,_$litType$:t},e){let a;this.parts=[];let l=0,c=0,m=o.length-1,x=this.parts,[C,T]=J1(o,t);if(this.el=s.createElement(C,e),xs.currentNode=this.el.content,t===2||t===3){let w=this.el.content.firstChild;w.replaceWith(...w.childNodes)}for(;(a=xs.nextNode())!==null&&x.length<m;){if(a.nodeType===1){if(a.hasAttributes())for(let w of a.getAttributeNames())if(w.endsWith(Jf)){let R=T[c++],_=a.getAttribute(w).split(wo),z=/([.?@])?(.*)/.exec(R);x.push({type:1,index:l,name:z[2],strings:_,ctor:z[1]==="."?Bc:z[1]==="?"?Fc:z[1]==="@"?Vc:ks}),a.removeAttribute(w)}else w.startsWith(wo)&&(x.push({type:6,index:l}),a.removeAttribute(w));if(Y1.test(a.tagName)){let w=a.textContent.split(wo),R=w.length-1;if(R>0){a.textContent=Dc?Dc.emptyScript:"";for(let _=0;_<R;_++)a.append(w[_],td()),xs.nextNode(),x.push({type:2,index:++l});a.append(w[R],td())}}}else if(a.nodeType===8)if(a.data===Qf)x.push({type:2,index:l});else{let w=-1;for(;(w=a.data.indexOf(wo,w+1))!==-1;)x.push({type:7,index:l}),w+=wo.length-1}l++}}static createElement(o,t){let e=ys.createElement("template");return e.innerHTML=o,e}};function ws(s,o,t=s,e){if(o===ce)return o;let a=e!==void 0?t._$Co?.[e]:t._$Cl,l=ed(o)?void 0:o._$litDirective$;return a?.constructor!==l&&(a?._$AO?.(!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,e)),e!==void 0?(t._$Co??=[])[e]=a:t._$Cl=a),a!==void 0&&(o=ws(s,a._$AS(s,o.values),a,e)),o}var Hc=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:e}=this._$AD,a=(o?.creationScope??ys).importNode(t,!0);xs.currentNode=a;let l=xs.nextNode(),c=0,m=0,x=e[0];for(;x!==void 0;){if(c===x.index){let C;x.type===2?C=new Ii(l,l.nextSibling,this,o):x.type===1?C=new x.ctor(l,x.name,x.strings,this,o):x.type===6&&(C=new Uc(l,this,o)),this._$AV.push(C),x=e[++m]}c!==x?.index&&(l=xs.nextNode(),c++)}return xs.currentNode=ys,a}p(o){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(o,e,t),t+=e.strings.length-2):e._$AI(o[t])),t++}},Ii=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,e,a){this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=e,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=ws(this,o,t),ed(o)?o===I||o==null||o===""?(this._$AH!==I&&this._$AR(),this._$AH=I):o!==this._$AH&&o!==ce&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):G1(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==I&&ed(this._$AH)?this._$AA.nextSibling.data=o:this.T(ys.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:e}=o,a=typeof e=="number"?this._$AC(o):(e.el===void 0&&(e.el=rd.createElement(X1(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===a)this._$AH.p(t);else{let l=new Hc(a,this),c=l.u(this.options);l.p(t),this.T(c),this._$AH=l}}_$AC(o){let t=K1.get(o.strings);return t===void 0&&K1.set(o.strings,t=new rd(o)),t}k(o){Zf(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,a=0;for(let l of o)a===t.length?t.push(e=new s(this.O(td()),this.O(td()),this,this.options)):e=t[a],e._$AI(l),a++;a<t.length&&(this._$AR(e&&e._$AB.nextSibling,a),t.length=a)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let e=V1(o).nextSibling;V1(o).remove(),o=e}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},ks=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,e,a,l){this.type=1,this._$AH=I,this._$AN=void 0,this.element=o,this.name=t,this._$AM=a,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=I}_$AI(o,t=this,e,a){let l=this.strings,c=!1;if(l===void 0)o=ws(this,o,t,0),c=!ed(o)||o!==this._$AH&&o!==ce,c&&(this._$AH=o);else{let m=o,x,C;for(o=l[0],x=0;x<l.length-1;x++)C=ws(this,m[e+x],t,x),C===ce&&(C=this._$AH[x]),c||=!ed(C)||C!==this._$AH[x],C===I?o=I:o!==I&&(o+=(C??"")+l[x+1]),this._$AH[x]=C}c&&!a&&this.j(o)}j(o){o===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Bc=class extends ks{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===I?void 0:o}},Fc=class extends ks{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==I)}},Vc=class extends ks{constructor(o,t,e,a,l){super(o,t,e,a,l),this.type=5}_$AI(o,t=this){if((o=ws(this,o,t,0)??I)===ce)return;let e=this._$AH,a=o===I&&e!==I||o.capture!==e.capture||o.once!==e.once||o.passive!==e.passive,l=o!==I&&(e===I||a);a&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Uc=class{constructor(o,t,e){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(o){ws(this,o)}},Q1={M:Jf,P:wo,A:Qf,C:1,L:J1,R:Hc,D:G1,V:ws,I:Ii,H:ks,N:Fc,U:Vc,B:Bc,F:Uc},eN=Xf.litHtmlPolyfillSupport;eN?.(rd,Ii),(Xf.litHtmlVersions??=[]).push("3.3.2");var Pc=(s,o,t)=>{let e=t?.renderBefore??o,a=e._$litPart$;if(a===void 0){let l=t?.renderBefore??null;e._$litPart$=a=new Ii(o.insertBefore(td(),l),l,void 0,t??{})}return a._$AI(s),a};var eg=globalThis,b=class extends yo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Pc(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ce}};b._$litElement$=!0,b.finalized=!0,eg.litElementHydrateSupport?.({LitElement:b});var rN=eg.litElementPolyfillSupport;rN?.({LitElement:b});(eg.litElementVersions??=[]).push("4.2.2");var oN={attribute:!0,type:String,converter:Ql,reflect:!1,hasChanged:Nc},sN=(s=oN,o,t)=>{let{kind:e,metadata:a}=t,l=globalThis.litPropertyMetadata.get(a);if(l===void 0&&globalThis.litPropertyMetadata.set(a,l=new Map),e==="setter"&&((s=Object.create(s)).wrapped=!0),l.set(t.name,s),e==="accessor"){let{name:c}=t;return{set(m){let x=o.get.call(this);o.set.call(this,m),this.requestUpdate(c,x,s,!0,m)},init(m){return m!==void 0&&this.C(c,void 0,s,m),m}}}if(e==="setter"){let{name:c}=t;return function(m){let x=this[c];o.call(this,m),this.requestUpdate(c,x,s,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(s){return(o,t)=>typeof t=="object"?sN(s,o,t):((e,a,l)=>{let c=a.hasOwnProperty(l);return a.constructor.createProperty(l,e),c?Object.getOwnPropertyDescriptor(a,l):void 0})(s,o,t)}function E(s){return u({...s,state:!0,attribute:!1})}var Bo=class extends Event{constructor(o,t,e,a){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t,this.callback=e,this.subscribe=a??!1}};var K=class{constructor(o,t,e,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(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,c)),this.unsubscribe=c},this.host=o,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=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Bo(this.context,this.host,this.t,this.subscribe))}};var Wc=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,t=!1){let e=t||!Object.is(o,this.o);this.o=o,e&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},o!==void 0&&(this.value=o)}addCallback(o,t,e){if(!e)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:t});let{disposer:a}=this.subscriptions.get(o);o(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var rg=class extends Event{constructor(o,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=t}},Oi=class extends Wc{constructor(o,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=a=>{if(a.context!==this.context)return;let l=a.contextTarget??a.composedPath()[0];l!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,l,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let l=new Set;for(let[c,{consumerHost:m}]of this.subscriptions)l.has(c)||(l.add(c),m.dispatchEvent(new Bo(this.context,m,c,!0)));a.stopPropagation()},this.host=o,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 rg(this.context,this.host))}};function vt({context:s}){return(o,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return o.get.call(this)},set(a){return e.get(this).setValue(a),o.set.call(this,a)},init(a){return e.set(this,new Oi(this,{context:s,initialValue:a})),a}};{o.constructor.addInitializer(c=>{e.set(c,new Oi(c,{context:s}))});let a=Object.getOwnPropertyDescriptor(o,t),l;if(a===void 0){let c=new WeakMap;l={get(){return c.get(this)},set(m){e.get(this).setValue(m),c.set(this,m)},configurable:!0,enumerable:!0}}else{let c=a.set;l={...a,set(m){e.get(this).setValue(m),c?.call(this,m)}}}return void Object.defineProperty(o,t,l)}}}function Ot({context:s,subscribe:o}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new K(this,{context:s,callback:a=>{t.set.call(this,a)},subscribe:o})}):t.constructor.addInitializer(a=>{new K(a,{context:s,callback:l=>{a[e]=l},subscribe:o})})}}var y=v`
6
6
  * {
7
7
  box-sizing: border-box;
8
8
  }
@@ -92,7 +92,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
92
92
  scroll-behavior: auto !important;
93
93
  }
94
94
  }
95
- `;var L=(s,o={})=>t=>new CustomEvent(s,{...o,detail:t});var $c=Symbol("dui-accordion");var If=L("value-change",{bubbles:!0,composed:!0}),w5=g`
95
+ `;var O=(s,o={})=>t=>new CustomEvent(s,{...o,detail:t});var Kc=Symbol("dui-accordion");var mg=O("value-change",{bubbles:!0,composed:!0}),iN=v`
96
96
  :host {
97
97
  display: block;
98
98
  }
@@ -101,7 +101,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
101
101
  display: flex;
102
102
  flex-direction: column;
103
103
  }
104
- `,V$,q$,P$,j$,W$,K$,G$,Y$,X$,J$,gt,yf,wf,kf,Ef,Cf,$f,Sf,Tf,_f,Q$,Rf,mo,yi,So,Ul,Tc,_c,Ac,Rc,Af,Sc,oe=class extends(J$=b,X$=[h({type:Array})],Y$=[h({type:Array,attribute:"default-value"})],G$=[h({type:Boolean})],K$=[h({type:Boolean})],W$=[h({type:Boolean,attribute:"loop-focus"})],j$=[h({type:String})],P$=[h({type:Boolean,attribute:"keep-mounted"})],q$=[E()],V$=[Et({context:$c}),E()],J$){constructor(){super(...arguments);n(this,mo);n(this,yf,i(gt,8,this)),i(gt,11,this);n(this,wf,i(gt,12,this,[])),i(gt,15,this);n(this,kf,i(gt,16,this,!1)),i(gt,19,this);n(this,Ef,i(gt,20,this,!1)),i(gt,23,this);n(this,Cf,i(gt,24,this,!0)),i(gt,27,this);n(this,$f,i(gt,28,this,"vertical")),i(gt,31,this);n(this,Sf,i(gt,32,this,!1)),i(gt,35,this);n(this,Tf,i(gt,36,this,[])),i(gt,39,this);n(this,yi,new Map);n(this,So,[]);n(this,Ul,()=>this.value??r(this,mo,Q$));n(this,Tc,t=>{let e=[...r(this,Ul).call(this)],a=e.indexOf(t),l;a>=0?l=e.filter(c=>c!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&p(this,mo,l,Rf),this.dispatchEvent(If(l))});n(this,_c,(t,e)=>{r(this,yi).set(t,e),r(this,So).includes(t)||r(this,So).push(t)});n(this,Ac,t=>{r(this,yi).delete(t),p(this,So,r(this,So).filter(e=>e!==t))});n(this,Rc,(t,e)=>{let a=r(this,So).indexOf(t);if(a===-1)return;let l=r(this,So).length,c;switch(e){case"next":a<l-1?c=a+1:this.loopFocus&&(c=0);break;case"prev":a>0?c=a-1:this.loopFocus&&(c=l-1);break;case"first":c=0;break;case"last":c=l-1;break}if(c!==void 0){let f=r(this,So)[c];r(this,yi).get(f)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});n(this,Af,i(gt,40,this,u(this,mo,Sc).call(this))),i(gt,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,mo,[...this.defaultValue],Rf),this._ctx=u(this,mo,Sc).call(this)}willUpdate(){this._ctx=u(this,mo,Sc).call(this)}render(){return m`
104
+ `,Z1,tS,eS,rS,oS,sS,iS,nS,aS,lS,yt,og,sg,ig,ng,ag,lg,dg,cg,pg,dS,ug,xr,Li,Ir,od,Yc,Xc,Jc,Qc,hg,Gc,ae=class extends(lS=b,aS=[u({type:Array})],nS=[u({type:Array,attribute:"default-value"})],iS=[u({type:Boolean})],sS=[u({type:Boolean})],oS=[u({type:Boolean,attribute:"loop-focus"})],rS=[u({type:String})],eS=[u({type:Boolean,attribute:"keep-mounted"})],tS=[E()],Z1=[vt({context:Kc}),E()],lS){constructor(){super(...arguments);n(this,xr);n(this,og,i(yt,8,this)),i(yt,11,this);n(this,sg,i(yt,12,this,[])),i(yt,15,this);n(this,ig,i(yt,16,this,!1)),i(yt,19,this);n(this,ng,i(yt,20,this,!1)),i(yt,23,this);n(this,ag,i(yt,24,this,!0)),i(yt,27,this);n(this,lg,i(yt,28,this,"vertical")),i(yt,31,this);n(this,dg,i(yt,32,this,!1)),i(yt,35,this);n(this,cg,i(yt,36,this,[])),i(yt,39,this);n(this,Li,new Map);n(this,Ir,[]);n(this,od,()=>this.value??r(this,xr,dS));n(this,Yc,t=>{let e=[...r(this,od).call(this)],a=e.indexOf(t),l;a>=0?l=e.filter(c=>c!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&p(this,xr,l,ug),this.dispatchEvent(mg(l))});n(this,Xc,(t,e)=>{r(this,Li).set(t,e),r(this,Ir).includes(t)||r(this,Ir).push(t)});n(this,Jc,t=>{r(this,Li).delete(t),p(this,Ir,r(this,Ir).filter(e=>e!==t))});n(this,Qc,(t,e)=>{let a=r(this,Ir).indexOf(t);if(a===-1)return;let l=r(this,Ir).length,c;switch(e){case"next":a<l-1?c=a+1:this.loopFocus&&(c=0);break;case"prev":a>0?c=a-1:this.loopFocus&&(c=l-1);break;case"first":c=0;break;case"last":c=l-1;break}if(c!==void 0){let m=r(this,Ir)[c];r(this,Li).get(m)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});n(this,hg,i(yt,40,this,h(this,xr,Gc).call(this))),i(yt,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,xr,[...this.defaultValue],ug),this._ctx=h(this,xr,Gc).call(this)}willUpdate(){this._ctx=h(this,xr,Gc).call(this)}render(){return f`
105
105
  <div
106
106
  part="root"
107
107
  data-orientation=${this.orientation}
@@ -109,7 +109,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
109
109
  >
110
110
  <slot></slot>
111
111
  </div>
112
- `}};gt=T(J$),yf=new WeakMap,wf=new WeakMap,kf=new WeakMap,Ef=new WeakMap,Cf=new WeakMap,$f=new WeakMap,Sf=new WeakMap,Tf=new WeakMap,mo=new WeakSet,yi=new WeakMap,So=new WeakMap,Ul=new WeakMap,Tc=new WeakMap,_c=new WeakMap,Ac=new WeakMap,Rc=new WeakMap,Af=new WeakMap,Sc=function(){return{openValues:r(this,Ul).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:r(this,Tc),registerItem:r(this,_c),unregisterItem:r(this,Ac),focusItem:r(this,Rc)}},d(gt,4,"value",X$,oe,yf),d(gt,4,"defaultValue",Y$,oe,wf),d(gt,4,"disabled",G$,oe,kf),d(gt,4,"multiple",K$,oe,Ef),d(gt,4,"loopFocus",W$,oe,Cf),d(gt,4,"orientation",j$,oe,$f),d(gt,4,"keepMounted",P$,oe,Sf),_f=d(gt,20,"#internalOpenValues",q$,mo,Tf),Q$=_f.get,Rf=_f.set,d(gt,4,"_ctx",V$,oe,Af),$(gt,oe),v(oe,"tagName","dui-accordion"),v(oe,"styles",[y,w5]);var Kf=L("open-change",{bubbles:!0,composed:!0}),k5=g`
112
+ `}};yt=S(lS),og=new WeakMap,sg=new WeakMap,ig=new WeakMap,ng=new WeakMap,ag=new WeakMap,lg=new WeakMap,dg=new WeakMap,cg=new WeakMap,xr=new WeakSet,Li=new WeakMap,Ir=new WeakMap,od=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Jc=new WeakMap,Qc=new WeakMap,hg=new WeakMap,Gc=function(){return{openValues:r(this,od).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:r(this,Yc),registerItem:r(this,Xc),unregisterItem:r(this,Jc),focusItem:r(this,Qc)}},d(yt,4,"value",aS,ae,og),d(yt,4,"defaultValue",nS,ae,sg),d(yt,4,"disabled",iS,ae,ig),d(yt,4,"multiple",sS,ae,ng),d(yt,4,"loopFocus",oS,ae,ag),d(yt,4,"orientation",rS,ae,lg),d(yt,4,"keepMounted",eS,ae,dg),pg=d(yt,20,"#internalOpenValues",tS,xr,cg),dS=pg.get,ug=pg.set,d(yt,4,"_ctx",Z1,ae,hg),$(yt,ae),g(ae,"tagName","dui-accordion"),g(ae,"styles",[y,iN]);var Rg=O("open-change",{bubbles:!0,composed:!0}),nN=v`
113
113
  :host {
114
114
  display: block;
115
115
  }
@@ -137,38 +137,38 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
137
137
  contain: content;
138
138
  transition-property: height;
139
139
  }
140
- `,Z$,t1,e1,o1,r1,s1,i1,n1,It,Of,Lf,zf,Mf,Nf,qf,Ic,B,Df,Hf,Oc,Lc,Bf,Ff,a1,hs,Uf,Vf,Pf,zc,wi,ms,us,Vl,jf,Wf,l1,d1,Mc,Nc,Dc,Xe=class extends(n1=b,i1=[h({type:String})],s1=[h({type:Boolean})],r1=[Ut({context:$c,subscribe:!0})],o1=[E()],e1=[E()],t1=[E()],Z$=[E()],n1){constructor(){super(...arguments);n(this,B);n(this,Of,i(It,8,this,"")),i(It,11,this);n(this,Lf,i(It,12,this,!1)),i(It,15,this);n(this,zf,i(It,16,this)),i(It,19,this);n(this,Mf,i(It,20,this,!1)),i(It,23,this);n(this,Df,i(It,24,this,!1)),i(It,27,this);n(this,Bf,i(It,28,this,"0")),i(It,31,this);n(this,Uf,i(It,32,this,!1)),i(It,35,this);n(this,wi);n(this,ms,0);n(this,Mc,t=>{t.propertyName==="height"&&(r(this,B,Oc)?(p(this,B,!1,Lc),this._ctx?.keepMounted||p(this,B,!1,zc)):r(this,B,us)&&p(this,B,"auto",hs))});n(this,Nc,()=>{r(this,B,Vl)||this._ctx.toggle(this.value)});n(this,Dc,t=>{if(r(this,B,Vl))return;let e=this._ctx.orientation==="vertical",a=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case a: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=r(this,B,us);r(this,wi)===void 0?(p(this,B,t,zc),p(this,B,t?"auto":"0",hs)):r(this,wi)!==t&&(t?u(this,B,l1).call(this):u(this,B,d1).call(this),this.dispatchEvent(Kf({value:this.value,open:t}))),p(this,wi,t)}render(){let t=r(this,B,Pf)||this._ctx?.keepMounted;return m`
140
+ `,cS,pS,hS,uS,mS,fS,gS,vS,Mt,fg,gg,vg,bg,xg,Sg,Zc,B,yg,wg,tp,ep,kg,Eg,bS,Es,Cg,$g,Tg,rp,zi,$s,Cs,sd,_g,Ag,xS,yS,op,sp,ip,rr=class extends(vS=b,gS=[u({type:String})],fS=[u({type:Boolean})],mS=[Ot({context:Kc,subscribe:!0})],uS=[E()],hS=[E()],pS=[E()],cS=[E()],vS){constructor(){super(...arguments);n(this,B);n(this,fg,i(Mt,8,this,"")),i(Mt,11,this);n(this,gg,i(Mt,12,this,!1)),i(Mt,15,this);n(this,vg,i(Mt,16,this)),i(Mt,19,this);n(this,bg,i(Mt,20,this,!1)),i(Mt,23,this);n(this,yg,i(Mt,24,this,!1)),i(Mt,27,this);n(this,kg,i(Mt,28,this,"0")),i(Mt,31,this);n(this,Cg,i(Mt,32,this,!1)),i(Mt,35,this);n(this,zi);n(this,$s,0);n(this,op,t=>{t.propertyName==="height"&&(r(this,B,tp)?(p(this,B,!1,ep),this._ctx?.keepMounted||p(this,B,!1,rp)):r(this,B,Cs)&&p(this,B,"auto",Es))});n(this,sp,()=>{r(this,B,sd)||this._ctx.toggle(this.value)});n(this,ip,t=>{if(r(this,B,sd))return;let e=this._ctx.orientation==="vertical",a=e?"ArrowDown":"ArrowRight",l=e?"ArrowUp":"ArrowLeft";switch(t.key){case a: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=r(this,B,Cs);r(this,zi)===void 0?(p(this,B,t,rp),p(this,B,t?"auto":"0",Es)):r(this,zi)!==t&&(t?h(this,B,xS).call(this):h(this,B,yS).call(this),this.dispatchEvent(Rg({value:this.value,open:t}))),p(this,zi,t)}render(){let t=r(this,B,Tg)||this._ctx?.keepMounted;return f`
141
141
  <div
142
142
  part="item"
143
- ?data-open=${r(this,B,us)}
144
- ?data-disabled=${r(this,B,Vl)}
143
+ ?data-open=${r(this,B,Cs)}
144
+ ?data-disabled=${r(this,B,sd)}
145
145
  >
146
146
  <h3 part="header">
147
147
  <button
148
148
  part="trigger"
149
- id=${r(this,B,jf)}
150
- aria-expanded=${r(this,B,us)}
151
- aria-controls=${r(this,B,Wf)}
152
- ?data-open=${r(this,B,us)}
153
- ?data-disabled=${r(this,B,Vl)}
154
- @click=${r(this,Nc)}
155
- @keydown=${r(this,Dc)}
149
+ id=${r(this,B,_g)}
150
+ aria-expanded=${r(this,B,Cs)}
151
+ aria-controls=${r(this,B,Ag)}
152
+ ?data-open=${r(this,B,Cs)}
153
+ ?data-disabled=${r(this,B,sd)}
154
+ @click=${r(this,sp)}
155
+ @keydown=${r(this,ip)}
156
156
  >
157
157
  <slot name="trigger"></slot>
158
158
  </button>
159
159
  </h3>
160
- ${t?m`
160
+ ${t?f`
161
161
  <div
162
162
  part="panel"
163
- id=${r(this,B,Wf)}
163
+ id=${r(this,B,Ag)}
164
164
  role="region"
165
- aria-labelledby=${r(this,B,jf)}
166
- style="height: ${r(this,B,a1)}"
167
- ?data-open=${r(this,B,us)&&!r(this,B,qf)}
168
- ?data-starting-style=${r(this,B,qf)}
169
- ?data-ending-style=${r(this,B,Oc)}
170
- ?hidden=${!r(this,B,Pf)&&!r(this,B,Oc)}
171
- @transitionend=${r(this,Mc)}
165
+ aria-labelledby=${r(this,B,_g)}
166
+ style="height: ${r(this,B,bS)}"
167
+ ?data-open=${r(this,B,Cs)&&!r(this,B,Sg)}
168
+ ?data-starting-style=${r(this,B,Sg)}
169
+ ?data-ending-style=${r(this,B,tp)}
170
+ ?hidden=${!r(this,B,Tg)&&!r(this,B,tp)}
171
+ @transitionend=${r(this,op)}
172
172
  >
173
173
  <div part="content">
174
174
  <slot></slot>
@@ -176,7 +176,7 @@ var jz=Object.create;var Gm=Object.defineProperty;var Wz=Object.getOwnPropertyDe
176
176
  </div>
177
177
  `:I}
178
178
  </div>
179
- `}};It=T(n1),Of=new WeakMap,Lf=new WeakMap,zf=new WeakMap,Mf=new WeakMap,B=new WeakSet,Df=new WeakMap,Bf=new WeakMap,Uf=new WeakMap,wi=new WeakMap,ms=new WeakMap,us=function(){return this._ctx?.openValues.includes(this.value)??!1},Vl=function(){return this.disabled||this._ctx?.disabled},jf=function(){return`dui-trigger-${this.value}`},Wf=function(){return`dui-panel-${this.value}`},l1=function(){let t=++ui(this,ms)._;p(this,B,!1,Lc),p(this,B,!0,zc),p(this,B,!0,Ic),p(this,B,"0",hs),requestAnimationFrame(()=>{if(r(this,ms)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,B,`${e.scrollHeight}px`,hs),p(this,B,!1,Ic)})},d1=function(){let t=++ui(this,ms)._;p(this,B,!1,Ic);let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,B,`${e.scrollHeight}px`,hs),requestAnimationFrame(()=>{r(this,ms)===t&&(p(this,B,!0,Lc),p(this,B,"0",hs))})},Mc=new WeakMap,Nc=new WeakMap,Dc=new WeakMap,d(It,4,"value",i1,Xe,Of),d(It,4,"disabled",s1,Xe,Lf),d(It,4,"_ctx",r1,Xe,zf),Nf=d(It,20,"#starting",o1,B,Mf),qf=Nf.get,Ic=Nf.set,Hf=d(It,20,"#ending",e1,B,Df),Oc=Hf.get,Lc=Hf.set,Ff=d(It,20,"#panelHeight",t1,B,Bf),a1=Ff.get,hs=Ff.set,Vf=d(It,20,"#visible",Z$,B,Uf),Pf=Vf.get,zc=Vf.set,$(It,Xe),v(Xe,"tagName","dui-accordion-item"),v(Xe,"styles",[y,k5]);var c1=`/* =================================================================
179
+ `}};Mt=S(vS),fg=new WeakMap,gg=new WeakMap,vg=new WeakMap,bg=new WeakMap,B=new WeakSet,yg=new WeakMap,kg=new WeakMap,Cg=new WeakMap,zi=new WeakMap,$s=new WeakMap,Cs=function(){return this._ctx?.openValues.includes(this.value)??!1},sd=function(){return this.disabled||this._ctx?.disabled},_g=function(){return`dui-trigger-${this.value}`},Ag=function(){return`dui-panel-${this.value}`},xS=function(){let t=++Ti(this,$s)._;p(this,B,!1,ep),p(this,B,!0,rp),p(this,B,!0,Zc),p(this,B,"0",Es),requestAnimationFrame(()=>{if(r(this,$s)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,B,`${e.scrollHeight}px`,Es),p(this,B,!1,Zc)})},yS=function(){let t=++Ti(this,$s)._;p(this,B,!1,Zc);let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,B,`${e.scrollHeight}px`,Es),requestAnimationFrame(()=>{r(this,$s)===t&&(p(this,B,!0,ep),p(this,B,"0",Es))})},op=new WeakMap,sp=new WeakMap,ip=new WeakMap,d(Mt,4,"value",gS,rr,fg),d(Mt,4,"disabled",fS,rr,gg),d(Mt,4,"_ctx",mS,rr,vg),xg=d(Mt,20,"#starting",uS,B,bg),Sg=xg.get,Zc=xg.set,wg=d(Mt,20,"#ending",hS,B,yg),tp=wg.get,ep=wg.set,Eg=d(Mt,20,"#panelHeight",pS,B,kg),bS=Eg.get,Es=Eg.set,$g=d(Mt,20,"#visible",cS,B,Cg),Tg=$g.get,rp=$g.set,$(Mt,rr),g(rr,"tagName","dui-accordion-item"),g(rr,"styles",[y,nN]);var wS=`/* =================================================================
180
180
  * DUI Design Tokens
181
181
  * =================================================================
182
182
  * Combined token system: spacing, typography, borders, elevation,
@@ -586,7 +586,7 @@ p, li, blockquote, dt, dd,
586
586
  label, legend, caption, figcaption, th, td {
587
587
  text-box: trim-both cap alphabetic;
588
588
  }
589
- `;var p1=`/* =================================================================
589
+ `;var kS=`/* =================================================================
590
590
  * CSS @property Declarations
591
591
  * =================================================================
592
592
  * Typed API surface for theme-default's component-level CSS custom
@@ -947,8 +947,8 @@ label, legend, caption, figcaption, th, td {
947
947
  inherits: true;
948
948
  initial-value: 0.5rem;
949
949
  }
950
- `;var Gf=new CSSStyleSheet;Gf.replaceSync(p1+`
951
- `+c1);var h1=`/* =================================================================
950
+ `;var Ig=new CSSStyleSheet;Ig.replaceSync(kS+`
951
+ `+wS);var ES=`/* =================================================================
952
952
  * DUI Prose \u2014 Rich-text / markdown content styles
953
953
  * =================================================================
954
954
  * Apply class="dui-prose" to any container with rendered HTML
@@ -1198,11 +1198,11 @@ label, legend, caption, figcaption, th, td {
1198
1198
  cursor: pointer;
1199
1199
  font-weight: var(--font-weight-medium);
1200
1200
  }
1201
- `;var Yf=new CSSStyleSheet;Yf.replaceSync(h1);for(let s of[Gf,Yf])s&&!document.adoptedStyleSheets.includes(s)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s]);var E5=k`
1201
+ `;var Og=new CSSStyleSheet;Og.replaceSync(ES);for(let s of[Ig,Og])s&&!document.adoptedStyleSheets.includes(s)&&(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s]);var aN=k`
1202
1202
  ::slotted(:last-child) {
1203
1203
  --accordion-item-border: none;
1204
1204
  }
1205
- `,ki=class extends oe{static styles=[...oe.styles,E5]};customElements.define(ki.tagName,ki);var u1=mi(`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")`),C5=k`
1205
+ `,Mi=class extends ae{static styles=[...ae.styles,aN]};customElements.define(Mi.tagName,Mi);var CS=bo(`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")`),lN=k`
1206
1206
  /* ── Item ── */
1207
1207
 
1208
1208
  [part="item"] {
@@ -1255,8 +1255,8 @@ label, legend, caption, figcaption, th, td {
1255
1255
  height: var(--space-4);
1256
1256
  flex-shrink: 0;
1257
1257
  background: currentColor;
1258
- -webkit-mask: ${u1} center / contain no-repeat;
1259
- mask: ${u1} center / contain no-repeat;
1258
+ -webkit-mask: ${CS} center / contain no-repeat;
1259
+ mask: ${CS} center / contain no-repeat;
1260
1260
  transition-property: transform;
1261
1261
  transition-duration: var(--duration-fast);
1262
1262
  transition-timing-function: var(--ease-out-3);
@@ -1296,19 +1296,19 @@ label, legend, caption, figcaption, th, td {
1296
1296
  transition-duration: 0s;
1297
1297
  }
1298
1298
  }
1299
- `,Ei=class extends Xe{static styles=[...Xe.styles,C5]};customElements.define(Ei.tagName,Ei);var Ir=Symbol("dui-alert-dialog");var Fc=L("open-change",{bubbles:!0,composed:!0}),$5=g`
1299
+ `,Ni=class extends rr{static styles=[...rr.styles,lN]};customElements.define(Ni.tagName,Ni);var Fo=Symbol("dui-alert-dialog");var lp=O("open-change",{bubbles:!0,composed:!0}),dN=v`
1300
1300
  :host {
1301
1301
  display: contents;
1302
1302
  }
1303
- `,m1,f1,g1,v1,b1,De,Xf,Jf,Qf,Zf,x1,Hc,xe,fs,Uc,Vc,qc,Pc,y1,jc,Wc,tg,Bc,Je=class extends(b1=b,v1=[h({type:Boolean,reflect:!0})],g1=[h({type:Boolean,attribute:"default-open"})],f1=[E()],m1=[Et({context:Ir}),E()],b1){constructor(){super(...arguments);n(this,xe);n(this,Xf,i(De,8,this)),i(De,11,this);n(this,Jf,i(De,12,this,!1)),i(De,15,this);n(this,Qf,i(De,16,this,!1)),i(De,19,this);n(this,fs,crypto.randomUUID().slice(0,8));n(this,Uc,`dui-alert-dialog-${r(this,fs)}`);n(this,Vc,`dui-alert-trigger-${r(this,fs)}`);n(this,qc,`dui-alert-title-${r(this,fs)}`);n(this,Pc,`dui-alert-desc-${r(this,fs)}`);n(this,jc,()=>{this.open===void 0&&p(this,xe,!0,Hc),this.dispatchEvent(Fc({open:!0}))});n(this,Wc,()=>{this.open===void 0&&p(this,xe,!1,Hc),this.dispatchEvent(Fc({open:!1}))});n(this,tg,i(De,20,this,u(this,xe,Bc).call(this))),i(De,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,xe,!0,Hc),this._ctx=u(this,xe,Bc).call(this)}willUpdate(){this._ctx=u(this,xe,Bc).call(this)}render(){return m`<slot></slot>`}};De=T(b1),Xf=new WeakMap,Jf=new WeakMap,Qf=new WeakMap,xe=new WeakSet,fs=new WeakMap,Uc=new WeakMap,Vc=new WeakMap,qc=new WeakMap,Pc=new WeakMap,y1=function(){return this.open??r(this,xe,x1)},jc=new WeakMap,Wc=new WeakMap,tg=new WeakMap,Bc=function(){return{open:r(this,xe,y1),dialogId:r(this,Uc),triggerId:r(this,Vc),titleId:r(this,qc),descriptionId:r(this,Pc),openDialog:r(this,jc),closeDialog:r(this,Wc)}},d(De,4,"open",v1,Je,Xf),d(De,4,"defaultOpen",g1,Je,Jf),Zf=d(De,20,"#internalOpen",f1,xe,Qf),x1=Zf.get,Hc=Zf.set,d(De,4,"_ctx",m1,Je,tg),$(De,Je),v(Je,"tagName","dui-alert-dialog"),v(Je,"styles",[y,$5]);var S5=g`
1303
+ `,$S,SS,TS,_S,AS,qe,Lg,zg,Mg,Ng,RS,np,Se,Ss,dp,cp,pp,hp,IS,up,mp,Dg,ap,or=class extends(AS=b,_S=[u({type:Boolean,reflect:!0})],TS=[u({type:Boolean,attribute:"default-open"})],SS=[E()],$S=[vt({context:Fo}),E()],AS){constructor(){super(...arguments);n(this,Se);n(this,Lg,i(qe,8,this)),i(qe,11,this);n(this,zg,i(qe,12,this,!1)),i(qe,15,this);n(this,Mg,i(qe,16,this,!1)),i(qe,19,this);n(this,Ss,crypto.randomUUID().slice(0,8));n(this,dp,`dui-alert-dialog-${r(this,Ss)}`);n(this,cp,`dui-alert-trigger-${r(this,Ss)}`);n(this,pp,`dui-alert-title-${r(this,Ss)}`);n(this,hp,`dui-alert-desc-${r(this,Ss)}`);n(this,up,()=>{this.open===void 0&&p(this,Se,!0,np),this.dispatchEvent(lp({open:!0}))});n(this,mp,()=>{this.open===void 0&&p(this,Se,!1,np),this.dispatchEvent(lp({open:!1}))});n(this,Dg,i(qe,20,this,h(this,Se,ap).call(this))),i(qe,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,Se,!0,np),this._ctx=h(this,Se,ap).call(this)}willUpdate(){this._ctx=h(this,Se,ap).call(this)}render(){return f`<slot></slot>`}};qe=S(AS),Lg=new WeakMap,zg=new WeakMap,Mg=new WeakMap,Se=new WeakSet,Ss=new WeakMap,dp=new WeakMap,cp=new WeakMap,pp=new WeakMap,hp=new WeakMap,IS=function(){return this.open??r(this,Se,RS)},up=new WeakMap,mp=new WeakMap,Dg=new WeakMap,ap=function(){return{open:r(this,Se,IS),dialogId:r(this,dp),triggerId:r(this,cp),titleId:r(this,pp),descriptionId:r(this,hp),openDialog:r(this,up),closeDialog:r(this,mp)}},d(qe,4,"open",_S,or,Lg),d(qe,4,"defaultOpen",TS,or,zg),Ng=d(qe,20,"#internalOpen",SS,Se,Mg),RS=Ng.get,np=Ng.set,d(qe,4,"_ctx",$S,or,Dg),$(qe,or),g(or,"tagName","dui-alert-dialog"),g(or,"styles",[y,dN]);var cN=v`
1304
1304
  :host {
1305
1305
  display: contents;
1306
1306
  }
1307
- `,T5=g`
1307
+ `,pN=v`
1308
1308
  .Trigger {
1309
1309
  display: contents;
1310
1310
  }
1311
- `,ql=class extends b{static tagName="dui-alert-dialog-trigger";static styles=[y,S5,T5];#t=new W(this,{context:Ir,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return m`
1311
+ `,id=class extends b{static tagName="dui-alert-dialog-trigger";static styles=[y,cN,pN];#t=new K(this,{context:Fo,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
1312
1312
  <span
1313
1313
  class="Trigger"
1314
1314
  part="trigger"
@@ -1321,7 +1321,7 @@ label, legend, caption, figcaption, th, td {
1321
1321
  >
1322
1322
  <slot></slot>
1323
1323
  </span>
1324
- `}};var w1=(s,{composed:o=!0}={})=>{let t=s.getRootNode({composed:o});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},_5='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',Kc=s=>s instanceof HTMLSlotElement?s.assignedNodes({flatten:!0}):s instanceof Element&&s.shadowRoot?Array.from(s.shadowRoot.childNodes):Array.from(s.childNodes),Ci=s=>{let o=[],t=e=>{if(e instanceof HTMLElement&&e.matches(_5)&&!e.hasAttribute("disabled")){o.push(e);return}for(let a of Kc(e))t(a)};for(let e of Kc(s))t(e);return o},A5=(s,o)=>{let t=e=>{if(e instanceof HTMLElement&&e.matches(o))return e;for(let a of Kc(e)){let l=t(a);if(l)return l}return null};for(let e of Kc(s)){let a=t(e);if(a)return a}return null},Gc=s=>A5(s,"[autofocus]");var R5=g`
1324
+ `}};var OS=(s,{composed:o=!0}={})=>{let t=s.getRootNode({composed:o});if(t instanceof DocumentFragment)return t;if(t instanceof Document)return t},hN='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',fp=s=>s instanceof HTMLSlotElement?s.assignedNodes({flatten:!0}):s instanceof Element&&s.shadowRoot?Array.from(s.shadowRoot.childNodes):Array.from(s.childNodes),Di=s=>{let o=[],t=e=>{if(e instanceof HTMLElement&&e.matches(hN)&&!e.hasAttribute("disabled")){o.push(e);return}for(let a of fp(e))t(a)};for(let e of fp(s))t(e);return o},uN=(s,o)=>{let t=e=>{if(e instanceof HTMLElement&&e.matches(o))return e;for(let a of fp(e)){let l=t(a);if(l)return l}return null};for(let e of fp(s)){let a=t(e);if(a)return a}return null},gp=s=>uN(s,"[autofocus]");var mN=v`
1325
1325
  :host {
1326
1326
  display: contents;
1327
1327
  }
@@ -1330,7 +1330,7 @@ label, legend, caption, figcaption, th, td {
1330
1330
  :host(:not([mounted])) [part="popup"] {
1331
1331
  display: none;
1332
1332
  }
1333
- `,I5=g`
1333
+ `,fN=v`
1334
1334
  [part="backdrop"] {
1335
1335
  position: fixed;
1336
1336
  min-height: 100dvh;
@@ -1350,13 +1350,13 @@ label, legend, caption, figcaption, th, td {
1350
1350
  z-index: 1000;
1351
1351
  transition-property: opacity, transform;
1352
1352
  }
1353
- `,k1,E1,C1,$1,S1,T1,_1,Pt,eg,og,rg,sg,ig,$i,cg,Y,ng,ag,pg,hg,lg,dg,mr,ug,Si,Or,A1,R1,mg,I1,O1,Yc,L1,Qe=class extends(_1=b,T1=[h({type:Boolean,attribute:"keep-mounted"})],S1=[h({attribute:"initial-focus"})],$1=[h({attribute:"final-focus"})],C1=[E()],E1=[E()],k1=[E()],_1){constructor(){super(...arguments);n(this,Y);n(this,eg,i(Pt,8,this,!1)),i(Pt,11,this);n(this,og,i(Pt,12,this)),i(Pt,15,this);n(this,rg,i(Pt,16,this)),i(Pt,19,this);n(this,sg,i(Pt,20,this,!1)),i(Pt,23,this);n(this,ng,i(Pt,24,this,!1)),i(Pt,27,this);n(this,lg,i(Pt,28,this,!1)),i(Pt,31,this);n(this,Si);n(this,Or,new W(this,{context:Ir,subscribe:!0}));n(this,Yc,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Or).value?.closeDialog()),t.key==="Tab"&&u(this,Y,L1).call(this,t)})}updated(){let t=r(this,Or).value?.open??!1;t&&!r(this,Y,$i)?u(this,Y,A1).call(this):!t&&r(this,Y,$i)&&!r(this,Y,mr)&&u(this,Y,R1).call(this)}willUpdate(){r(this,Y,$i)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Or).value?.open??!1,e=r(this,Or).value?.titleId??"",a=r(this,Or).value?.descriptionId??"";return!r(this,Y,$i)&&!this.keepMounted?m``:m`
1353
+ `,LS,zS,MS,NS,DS,HS,BS,Kt,Hg,Bg,Fg,Vg,Ug,Hi,Kg,X,qg,Pg,Gg,Yg,jg,Wg,ko,Xg,Bi,Vo,FS,VS,Jg,US,qS,vp,PS,sr=class extends(BS=b,HS=[u({type:Boolean,attribute:"keep-mounted"})],DS=[u({attribute:"initial-focus"})],NS=[u({attribute:"final-focus"})],MS=[E()],zS=[E()],LS=[E()],BS){constructor(){super(...arguments);n(this,X);n(this,Hg,i(Kt,8,this,!1)),i(Kt,11,this);n(this,Bg,i(Kt,12,this)),i(Kt,15,this);n(this,Fg,i(Kt,16,this)),i(Kt,19,this);n(this,Vg,i(Kt,20,this,!1)),i(Kt,23,this);n(this,qg,i(Kt,24,this,!1)),i(Kt,27,this);n(this,jg,i(Kt,28,this,!1)),i(Kt,31,this);n(this,Bi);n(this,Vo,new K(this,{context:Fo,subscribe:!0}));n(this,vp,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Vo).value?.closeDialog()),t.key==="Tab"&&h(this,X,PS).call(this,t)})}updated(){let t=r(this,Vo).value?.open??!1;t&&!r(this,X,Hi)?h(this,X,FS).call(this):!t&&r(this,X,Hi)&&!r(this,X,ko)&&h(this,X,VS).call(this)}willUpdate(){r(this,X,Hi)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Vo).value?.open??!1,e=r(this,Vo).value?.titleId??"",a=r(this,Vo).value?.descriptionId??"";return!r(this,X,Hi)&&!this.keepMounted?f``:f`
1354
1354
  <div
1355
1355
  part="backdrop"
1356
- ?data-open="${t&&!r(this,Y,mr)}"
1357
- ?data-closed="${!t||r(this,Y,mr)}"
1358
- ?data-starting-style="${r(this,Y,pg)}"
1359
- ?data-ending-style="${r(this,Y,mr)}"
1356
+ ?data-open="${t&&!r(this,X,ko)}"
1357
+ ?data-closed="${!t||r(this,X,ko)}"
1358
+ ?data-starting-style="${r(this,X,Gg)}"
1359
+ ?data-ending-style="${r(this,X,ko)}"
1360
1360
  ></div>
1361
1361
  <div
1362
1362
  part="popup"
@@ -1364,26 +1364,26 @@ label, legend, caption, figcaption, th, td {
1364
1364
  aria-modal="true"
1365
1365
  aria-labelledby="${e}"
1366
1366
  aria-describedby="${a}"
1367
- ?data-open="${t&&!r(this,Y,mr)}"
1368
- ?data-closed="${!t||r(this,Y,mr)}"
1369
- ?data-starting-style="${r(this,Y,pg)}"
1370
- ?data-ending-style="${r(this,Y,mr)}"
1367
+ ?data-open="${t&&!r(this,X,ko)}"
1368
+ ?data-closed="${!t||r(this,X,ko)}"
1369
+ ?data-starting-style="${r(this,X,Gg)}"
1370
+ ?data-ending-style="${r(this,X,ko)}"
1371
1371
  tabindex="-1"
1372
- @keydown="${r(this,Yc)}"
1372
+ @keydown="${r(this,vp)}"
1373
1373
  >
1374
1374
  <h2 part="title" id="${e}"><slot name="title"></slot></h2>
1375
1375
  <p part="description" id="${a}"><slot name="description"></slot></p>
1376
1376
  <slot></slot>
1377
1377
  </div>
1378
- `}};Pt=T(_1),eg=new WeakMap,og=new WeakMap,rg=new WeakMap,sg=new WeakMap,Y=new WeakSet,ng=new WeakMap,lg=new WeakMap,Si=new WeakMap,Or=new WeakMap,A1=async function(){p(this,Si,document.activeElement??void 0),p(this,Y,!0,cg),p(this,Y,!0,hg),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,Y,!1,hg),await this.updateComplete,u(this,Y,I1).call(this)},R1=function(){p(this,Y,!0,ug);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){u(this,Y,mg).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),u(this,Y,mg).call(this))},l=f=>{f.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let c=setTimeout(a,200)},mg=function(){!r(this,Y,mr)&&!r(this,Y,$i)||(p(this,Y,!1,ug),this.keepMounted||p(this,Y,!1,cg),u(this,Y,O1).call(this))},I1=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=Gc(t);if(e){e.focus();return}let a=Ci(t);if(a.length>0){a[0].focus();return}t.focus()},O1=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,Si)?.focus(),p(this,Si,void 0)},Yc=new WeakMap,L1=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Ci(e);if(a.length===0){t.preventDefault();return}let l=a[0],c=a[a.length-1],f=l.matches(":focus"),x=c.matches(":focus"),C=!a.some(S=>S.matches(":focus"));t.shiftKey&&(f||C)?(t.preventDefault(),c.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},d(Pt,4,"keepMounted",T1,Qe,eg),d(Pt,4,"initialFocus",S1,Qe,og),d(Pt,4,"finalFocus",$1,Qe,rg),ig=d(Pt,20,"#mounted",C1,Y,sg),$i=ig.get,cg=ig.set,ag=d(Pt,20,"#startingStyle",E1,Y,ng),pg=ag.get,hg=ag.set,dg=d(Pt,20,"#endingStyle",k1,Y,lg),mr=dg.get,ug=dg.set,$(Pt,Qe),v(Qe,"tagName","dui-alert-dialog-popup"),v(Qe,"styles",[y,R5,I5]);var O5=g`
1378
+ `}};Kt=S(BS),Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,Vg=new WeakMap,X=new WeakSet,qg=new WeakMap,jg=new WeakMap,Bi=new WeakMap,Vo=new WeakMap,FS=async function(){p(this,Bi,document.activeElement??void 0),p(this,X,!0,Kg),p(this,X,!0,Yg),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,X,!1,Yg),await this.updateComplete,h(this,X,US).call(this)},VS=function(){p(this,X,!0,Xg);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){h(this,X,Jg).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),h(this,X,Jg).call(this))},l=m=>{m.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let c=setTimeout(a,200)},Jg=function(){!r(this,X,ko)&&!r(this,X,Hi)||(p(this,X,!1,Xg),this.keepMounted||p(this,X,!1,Kg),h(this,X,qS).call(this))},US=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=gp(t);if(e){e.focus();return}let a=Di(t);if(a.length>0){a[0].focus();return}t.focus()},qS=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,Bi)?.focus(),p(this,Bi,void 0)},vp=new WeakMap,PS=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Di(e);if(a.length===0){t.preventDefault();return}let l=a[0],c=a[a.length-1],m=l.matches(":focus"),x=c.matches(":focus"),C=!a.some(T=>T.matches(":focus"));t.shiftKey&&(m||C)?(t.preventDefault(),c.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},d(Kt,4,"keepMounted",HS,sr,Hg),d(Kt,4,"initialFocus",DS,sr,Bg),d(Kt,4,"finalFocus",NS,sr,Fg),Ug=d(Kt,20,"#mounted",MS,X,Vg),Hi=Ug.get,Kg=Ug.set,Pg=d(Kt,20,"#startingStyle",zS,X,qg),Gg=Pg.get,Yg=Pg.set,Wg=d(Kt,20,"#endingStyle",LS,X,jg),ko=Wg.get,Xg=Wg.set,$(Kt,sr),g(sr,"tagName","dui-alert-dialog-popup"),g(sr,"styles",[y,mN,fN]);var gN=v`
1379
1379
  :host {
1380
1380
  display: contents;
1381
1381
  }
1382
- `,Pl=class extends b{static tagName="dui-alert-dialog-close";static styles=[y,O5];#t=new W(this,{context:Ir,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return m`
1382
+ `,nd=class extends b{static tagName="dui-alert-dialog-close";static styles=[y,gN];#t=new K(this,{context:Fo,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
1383
1383
  <span @click="${this.#e}">
1384
1384
  <slot></slot>
1385
1385
  </span>
1386
- `}};var L5=k``,Ti=class extends Je{static styles=[...Je.styles,L5]};customElements.define(Ti.tagName,Ti);var _i=class extends Pl{};customElements.define(_i.tagName,_i);var z5=k`
1386
+ `}};var vN=k``,Fi=class extends or{static styles=[...or.styles,vN]};customElements.define(Fi.tagName,Fi);var Vi=class extends nd{};customElements.define(Vi.tagName,Vi);var bN=k`
1387
1387
  /* ── Backdrop ── */
1388
1388
 
1389
1389
  [part="backdrop"] {
@@ -1450,7 +1450,7 @@ label, legend, caption, figcaption, th, td {
1450
1450
  transition-duration: 0s;
1451
1451
  }
1452
1452
  }
1453
- `,Ai=class extends Qe{static styles=[...Qe.styles,z5]};customElements.define(Ai.tagName,Ai);var Ri=class extends ql{};customElements.define(Ri.tagName,Ri);var Tg=L("loading-status-change",{bubbles:!0,composed:!0}),M5=g`
1453
+ `,Ui=class extends sr{static styles=[...sr.styles,bN]};customElements.define(Ui.tagName,Ui);var qi=class extends id{};customElements.define(qi.tagName,qi);var cv=O("loading-status-change",{bubbles:!0,composed:!0}),xN=v`
1454
1454
  :host {
1455
1455
  --avatar-size: var(--space-12);
1456
1456
  display: inline-block;
@@ -1480,19 +1480,19 @@ label, legend, caption, figcaption, th, td {
1480
1480
  height: 100%;
1481
1481
  width: 100%;
1482
1482
  }
1483
- `,z1,M1,N1,D1,H1,B1,F1,jt,fg,gg,vg,bg,xg,yg,U1,V1,mt,wg,kg,q1,Xc,Lr,gs,jl,Eg,Cg,$g,Sg,He=class extends(F1=b,B1=[h()],H1=[h()],D1=[h({type:Number,attribute:"fallback-delay"})],N1=[h({reflect:!0})],M1=[E()],z1=[E()],F1){constructor(){super(...arguments);n(this,mt);n(this,fg,i(jt,8,this)),i(jt,11,this);n(this,gg,i(jt,12,this,"")),i(jt,15,this);n(this,vg,i(jt,16,this)),i(jt,19,this);n(this,bg,i(jt,20,this)),i(jt,23,this);n(this,xg,i(jt,24,this,"idle")),i(jt,27,this);n(this,wg,i(jt,28,this,!1)),i(jt,31,this);n(this,Lr);n(this,gs)}connectedCallback(){super.connectedCallback(),u(this,mt,$g).call(this),u(this,mt,Eg).call(this)}disconnectedCallback(){super.disconnectedCallback(),u(this,mt,Cg).call(this),u(this,mt,Sg).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&u(this,mt,Eg).call(this),t.has("fallbackDelay")&&u(this,mt,$g).call(this)}render(){let t=this.src&&r(this,mt,U1)==="loaded",e=!t&&r(this,mt,q1);return m`
1483
+ `,jS,WS,KS,GS,YS,XS,JS,Gt,Qg,Zg,tv,ev,rv,ov,QS,ZS,bt,sv,iv,tT,bp,Uo,Ts,ad,nv,av,lv,dv,Pe=class extends(JS=b,XS=[u()],YS=[u()],GS=[u({type:Number,attribute:"fallback-delay"})],KS=[u({reflect:!0})],WS=[E()],jS=[E()],JS){constructor(){super(...arguments);n(this,bt);n(this,Qg,i(Gt,8,this)),i(Gt,11,this);n(this,Zg,i(Gt,12,this,"")),i(Gt,15,this);n(this,tv,i(Gt,16,this)),i(Gt,19,this);n(this,ev,i(Gt,20,this)),i(Gt,23,this);n(this,rv,i(Gt,24,this,"idle")),i(Gt,27,this);n(this,sv,i(Gt,28,this,!1)),i(Gt,31,this);n(this,Uo);n(this,Ts)}connectedCallback(){super.connectedCallback(),h(this,bt,lv).call(this),h(this,bt,nv).call(this)}disconnectedCallback(){super.disconnectedCallback(),h(this,bt,av).call(this),h(this,bt,dv).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&h(this,bt,nv).call(this),t.has("fallbackDelay")&&h(this,bt,lv).call(this)}render(){let t=this.src&&r(this,bt,QS)==="loaded",e=!t&&r(this,bt,tT);return f`
1484
1484
  <span part="root">
1485
- ${t?m`
1485
+ ${t?f`
1486
1486
  <img
1487
1487
  part="image"
1488
1488
  src="${this.src}"
1489
1489
  alt="${this.alt}"
1490
1490
  />
1491
- `:e?m`
1491
+ `:e?f`
1492
1492
  <span part="fallback"><slot></slot></span>
1493
1493
  `:I}
1494
1494
  </span>
1495
- `}};jt=T(F1),fg=new WeakMap,gg=new WeakMap,vg=new WeakMap,bg=new WeakMap,xg=new WeakMap,mt=new WeakSet,wg=new WeakMap,Lr=new WeakMap,gs=new WeakMap,jl=function(t){p(this,mt,t,V1),this.dispatchEvent(Tg({status:t}))},Eg=function(){if(u(this,mt,Cg).call(this),!this.src){u(this,mt,jl).call(this,"error");return}u(this,mt,jl).call(this,"loading");let t=new Image;t.onload=()=>u(this,mt,jl).call(this,"loaded"),t.onerror=()=>u(this,mt,jl).call(this,"error"),t.src=this.src,p(this,Lr,t)},Cg=function(){r(this,Lr)&&(r(this,Lr).onload=null,r(this,Lr).onerror=null,p(this,Lr,void 0))},$g=function(){if(u(this,mt,Sg).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){p(this,mt,!0,Xc);return}p(this,mt,!1,Xc),p(this,gs,setTimeout(()=>{p(this,mt,!0,Xc)},this.fallbackDelay))},Sg=function(){r(this,gs)!==void 0&&(clearTimeout(r(this,gs)),p(this,gs,void 0))},d(jt,4,"src",B1,He,fg),d(jt,4,"alt",H1,He,gg),d(jt,4,"fallbackDelay",D1,He,vg),d(jt,4,"size",N1,He,bg),yg=d(jt,20,"#imageStatus",M1,mt,xg),U1=yg.get,V1=yg.set,kg=d(jt,20,"#delayPassed",z1,mt,wg),q1=kg.get,Xc=kg.set,$(jt,He),v(He,"tagName","dui-avatar"),v(He,"styles",[y,M5]);var N5=k`
1495
+ `}};Gt=S(JS),Qg=new WeakMap,Zg=new WeakMap,tv=new WeakMap,ev=new WeakMap,rv=new WeakMap,bt=new WeakSet,sv=new WeakMap,Uo=new WeakMap,Ts=new WeakMap,ad=function(t){p(this,bt,t,ZS),this.dispatchEvent(cv({status:t}))},nv=function(){if(h(this,bt,av).call(this),!this.src){h(this,bt,ad).call(this,"error");return}h(this,bt,ad).call(this,"loading");let t=new Image;t.onload=()=>h(this,bt,ad).call(this,"loaded"),t.onerror=()=>h(this,bt,ad).call(this,"error"),t.src=this.src,p(this,Uo,t)},av=function(){r(this,Uo)&&(r(this,Uo).onload=null,r(this,Uo).onerror=null,p(this,Uo,void 0))},lv=function(){if(h(this,bt,dv).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){p(this,bt,!0,bp);return}p(this,bt,!1,bp),p(this,Ts,setTimeout(()=>{p(this,bt,!0,bp)},this.fallbackDelay))},dv=function(){r(this,Ts)!==void 0&&(clearTimeout(r(this,Ts)),p(this,Ts,void 0))},d(Gt,4,"src",XS,Pe,Qg),d(Gt,4,"alt",YS,Pe,Zg),d(Gt,4,"fallbackDelay",GS,Pe,tv),d(Gt,4,"size",KS,Pe,ev),ov=d(Gt,20,"#imageStatus",WS,bt,rv),QS=ov.get,ZS=ov.set,iv=d(Gt,20,"#delayPassed",jS,bt,sv),tT=iv.get,bp=iv.set,$(Gt,Pe),g(Pe,"tagName","dui-avatar"),g(Pe,"styles",[y,xN]);var yN=k`
1496
1496
  :host {
1497
1497
  --avatar-bg: oklch(from var(--foreground) l c h / 0.08);
1498
1498
  --avatar-fg: var(--text-2);
@@ -1512,7 +1512,7 @@ label, legend, caption, figcaption, th, td {
1512
1512
  font-weight: var(--font-weight-medium);
1513
1513
  line-height: var(--line-height-none);
1514
1514
  }
1515
- `,Ii=class extends He{static styles=[...He.styles,N5]};customElements.define(Ii.tagName,Ii);var D5=g`
1515
+ `,Pi=class extends Pe{static styles=[...Pe.styles,yN]};customElements.define(Pi.tagName,Pi);var wN=v`
1516
1516
  :host {
1517
1517
  display: inline-block;
1518
1518
  }
@@ -1521,11 +1521,11 @@ label, legend, caption, figcaption, th, td {
1521
1521
  display: inline-flex;
1522
1522
  align-items: center;
1523
1523
  }
1524
- `,Oi=class extends b{static tagName="dui-badge";static styles=[y,D5];render(){return m`
1524
+ `,ji=class extends b{static tagName="dui-badge";static styles=[y,wN];render(){return f`
1525
1525
  <span part="root">
1526
1526
  <slot></slot>
1527
1527
  </span>
1528
- `}};var H5=k`
1528
+ `}};var kN=k`
1529
1529
  /* =================================================================
1530
1530
  * Two-axis variant system:
1531
1531
  * variant → semantic intent (neutral, accent, danger)
@@ -1612,7 +1612,7 @@ label, legend, caption, figcaption, th, td {
1612
1612
  white-space: nowrap;
1613
1613
  border: var(--border-width-thin) solid var(--badge-border);
1614
1614
  }
1615
- `,Li=class extends Oi{static styles=[...Oi.styles,H5]};customElements.define(Li.tagName,Li);var B5=g`
1615
+ `,Wi=class extends ji{static styles=[...ji.styles,kN]};customElements.define(Wi.tagName,Wi);var EN=v`
1616
1616
  :host {
1617
1617
  display: block;
1618
1618
  }
@@ -1625,13 +1625,13 @@ label, legend, caption, figcaption, th, td {
1625
1625
  margin: 0;
1626
1626
  padding: 0;
1627
1627
  }
1628
- `,zi=class extends b{static tagName="dui-breadcrumb";static styles=[y,B5];render(){return m`
1628
+ `,Ki=class extends b{static tagName="dui-breadcrumb";static styles=[y,EN];render(){return f`
1629
1629
  <nav aria-label="breadcrumb">
1630
1630
  <ol part="root">
1631
1631
  <slot></slot>
1632
1632
  </ol>
1633
1633
  </nav>
1634
- `}};var F5=g`
1634
+ `}};var CN=v`
1635
1635
  :host {
1636
1636
  display: inline-flex;
1637
1637
  }
@@ -1640,11 +1640,11 @@ label, legend, caption, figcaption, th, td {
1640
1640
  display: inline-flex;
1641
1641
  align-items: center;
1642
1642
  }
1643
- `,Mi=class extends b{static tagName="dui-breadcrumb-item";static styles=[y,F5];render(){return m`
1643
+ `,Gi=class extends b{static tagName="dui-breadcrumb-item";static styles=[y,CN];render(){return f`
1644
1644
  <li part="root">
1645
1645
  <slot></slot>
1646
1646
  </li>
1647
- `}};var U5=g`
1647
+ `}};var $N=v`
1648
1648
  :host {
1649
1649
  display: inline-flex;
1650
1650
  }
@@ -1653,11 +1653,11 @@ label, legend, caption, figcaption, th, td {
1653
1653
  display: inline-flex;
1654
1654
  align-items: center;
1655
1655
  }
1656
- `,Ni=class extends b{static tagName="dui-breadcrumb-link";static styles=[y,U5];render(){return m`
1656
+ `,Yi=class extends b{static tagName="dui-breadcrumb-link";static styles=[y,$N];render(){return f`
1657
1657
  <span part="root">
1658
1658
  <slot></slot>
1659
1659
  </span>
1660
- `}};var V5=g`
1660
+ `}};var SN=v`
1661
1661
  :host {
1662
1662
  display: inline-flex;
1663
1663
  }
@@ -1666,7 +1666,7 @@ label, legend, caption, figcaption, th, td {
1666
1666
  display: inline-flex;
1667
1667
  align-items: center;
1668
1668
  }
1669
- `,Di=class extends b{static tagName="dui-breadcrumb-page";static styles=[y,V5];render(){return m`
1669
+ `,Xi=class extends b{static tagName="dui-breadcrumb-page";static styles=[y,SN];render(){return f`
1670
1670
  <span
1671
1671
  role="link"
1672
1672
  aria-disabled="true"
@@ -1675,7 +1675,7 @@ label, legend, caption, figcaption, th, td {
1675
1675
  >
1676
1676
  <slot></slot>
1677
1677
  </span>
1678
- `}};var q5=g`
1678
+ `}};var TN=v`
1679
1679
  :host {
1680
1680
  display: flex;
1681
1681
  }
@@ -1684,7 +1684,7 @@ label, legend, caption, figcaption, th, td {
1684
1684
  display: flex;
1685
1685
  align-items: center;
1686
1686
  }
1687
- `,Hi=class extends b{static tagName="dui-breadcrumb-separator";static styles=[y,q5];render(){return m`
1687
+ `,Ji=class extends b{static tagName="dui-breadcrumb-separator";static styles=[y,TN];render(){return f`
1688
1688
  <li
1689
1689
  role="presentation"
1690
1690
  aria-hidden="true"
@@ -1692,7 +1692,7 @@ label, legend, caption, figcaption, th, td {
1692
1692
  >
1693
1693
  <slot>/</slot>
1694
1694
  </li>
1695
- `}};var P5=g`
1695
+ `}};var _N=v`
1696
1696
  :host {
1697
1697
  display: flex;
1698
1698
  align-items: center;
@@ -1704,7 +1704,7 @@ label, legend, caption, figcaption, th, td {
1704
1704
  align-items: center;
1705
1705
  justify-content: center;
1706
1706
  }
1707
- `,Bi=class extends b{static tagName="dui-breadcrumb-ellipsis";static styles=[y,P5];render(){return m`
1707
+ `,Qi=class extends b{static tagName="dui-breadcrumb-ellipsis";static styles=[y,_N];render(){return f`
1708
1708
  <span
1709
1709
  role="presentation"
1710
1710
  aria-hidden="true"
@@ -1712,23 +1712,23 @@ label, legend, caption, figcaption, th, td {
1712
1712
  >
1713
1713
  <slot>&hellip;</slot>
1714
1714
  </span>
1715
- `}};var j5=k`
1715
+ `}};var AN=k`
1716
1716
  [part="root"] {
1717
1717
  gap: var(--space-2);
1718
1718
  font-size: var(--text-sm); line-height: var(--text-sm--line-height);
1719
1719
  font-family: var(--font-sans);
1720
1720
  color: var(--text-2);
1721
1721
  }
1722
- `,Fi=class extends zi{static styles=[...zi.styles,j5]};customElements.define(Fi.tagName,Fi);var W5=k`
1722
+ `,Zi=class extends Ki{static styles=[...Ki.styles,AN]};customElements.define(Zi.tagName,Zi);var RN=k`
1723
1723
  [part="root"] {
1724
1724
  color: var(--text-2);
1725
1725
  width: var(--space-4);
1726
1726
  }
1727
- `,Ui=class extends Bi{static styles=[...Bi.styles,W5]};customElements.define(Ui.tagName,Ui);var K5=k`
1727
+ `,tn=class extends Qi{static styles=[...Qi.styles,RN]};customElements.define(tn.tagName,tn);var IN=k`
1728
1728
  [part="root"] {
1729
1729
  gap: var(--space-1_5);
1730
1730
  }
1731
- `,Vi=class extends Mi{static styles=[...Mi.styles,K5]};customElements.define(Vi.tagName,Vi);var G5=k`
1731
+ `,en=class extends Gi{static styles=[...Gi.styles,IN]};customElements.define(en.tagName,en);var ON=k`
1732
1732
  [part="root"] {
1733
1733
  color: var(--text-2);
1734
1734
  }
@@ -1742,17 +1742,17 @@ label, legend, caption, figcaption, th, td {
1742
1742
  [part="root"] ::slotted(a:hover) {
1743
1743
  color: var(--text-1);
1744
1744
  }
1745
- `,qi=class extends Ni{static styles=[...Ni.styles,G5]};customElements.define(qi.tagName,qi);var Y5=k`
1745
+ `,rn=class extends Yi{static styles=[...Yi.styles,ON]};customElements.define(rn.tagName,rn);var LN=k`
1746
1746
  [part="root"] {
1747
1747
  color: var(--text-1);
1748
1748
  font-weight: var(--font-weight-regular);
1749
1749
  }
1750
- `,Pi=class extends Di{static styles=[...Di.styles,Y5]};customElements.define(Pi.tagName,Pi);var X5=k`
1750
+ `,on=class extends Xi{static styles=[...Xi.styles,LN]};customElements.define(on.tagName,on);var zN=k`
1751
1751
  [part="root"] {
1752
1752
  --icon-size: var(--space-3_5);
1753
1753
  color: color-mix(in oklch, var(--text-2) 50%, transparent);
1754
1754
  }
1755
- `,ji=class extends Hi{static styles=[...Hi.styles,X5]};customElements.define(ji.tagName,ji);var Og=L("dui-navigate",{bubbles:!0,composed:!0}),J5=g`
1755
+ `,sn=class extends Ji{static styles=[...Ji.styles,zN]};customElements.define(sn.tagName,sn);var fv=O("dui-navigate",{bubbles:!0,composed:!0}),MN=v`
1756
1756
  :host {
1757
1757
  display: inline-block;
1758
1758
  }
@@ -1777,26 +1777,26 @@ label, legend, caption, figcaption, th, td {
1777
1777
  user-select: none;
1778
1778
  -webkit-tap-highlight-color: transparent;
1779
1779
  }
1780
- `,P1,j1,W1,K1,G1,Be,_g,Ag,Rg,Ig,Jc,Qc,Wi,Y1,X1,ye=class extends(G1=b,K1=[h({type:Boolean,reflect:!0})],W1=[h({type:Boolean,attribute:"focusable-when-disabled"})],j1=[h()],P1=[h()],G1){constructor(){super(...arguments);n(this,Wi);n(this,_g,i(Be,8,this,!1)),i(Be,11,this);n(this,Ag,i(Be,12,this,!1)),i(Be,15,this);n(this,Rg,i(Be,16,this,"button")),i(Be,19,this);n(this,Ig,i(Be,20,this)),i(Be,23,this);n(this,Jc,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});n(this,Qc,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(Og({href:this.href})))})}render(){return this.href!==void 0?u(this,Wi,X1).call(this):u(this,Wi,Y1).call(this)}};Be=T(G1),_g=new WeakMap,Ag=new WeakMap,Rg=new WeakMap,Ig=new WeakMap,Jc=new WeakMap,Qc=new WeakMap,Wi=new WeakSet,Y1=function(){let t=this.disabled&&this.focusableWhenDisabled;return m`
1780
+ `,eT,rT,oT,sT,iT,je,pv,hv,uv,mv,xp,yp,nn,nT,aT,Te=class extends(iT=b,sT=[u({type:Boolean,reflect:!0})],oT=[u({type:Boolean,attribute:"focusable-when-disabled"})],rT=[u()],eT=[u()],iT){constructor(){super(...arguments);n(this,nn);n(this,pv,i(je,8,this,!1)),i(je,11,this);n(this,hv,i(je,12,this,!1)),i(je,15,this);n(this,uv,i(je,16,this,"button")),i(je,19,this);n(this,mv,i(je,20,this)),i(je,23,this);n(this,xp,t=>{this.disabled&&(t.preventDefault(),t.stopPropagation())});n(this,yp,t=>{if(this.disabled){t.preventDefault();return}t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||this.href&&(t.preventDefault(),this.dispatchEvent(fv({href:this.href})))})}render(){return this.href!==void 0?h(this,nn,aT).call(this):h(this,nn,nT).call(this)}};je=S(iT),pv=new WeakMap,hv=new WeakMap,uv=new WeakMap,mv=new WeakMap,xp=new WeakMap,yp=new WeakMap,nn=new WeakSet,nT=function(){let t=this.disabled&&this.focusableWhenDisabled;return f`
1781
1781
  <button
1782
1782
  part="root"
1783
1783
  type="${this.type}"
1784
1784
  ?disabled="${this.disabled&&!this.focusableWhenDisabled}"
1785
1785
  aria-disabled="${t||I}"
1786
- @click="${r(this,Jc)}"
1786
+ @click="${r(this,xp)}"
1787
1787
  >
1788
1788
  <slot></slot>
1789
1789
  </button>
1790
- `},X1=function(){return m`
1790
+ `},aT=function(){return f`
1791
1791
  <a
1792
1792
  part="root"
1793
1793
  href="${this.href??I}"
1794
1794
  aria-disabled="${this.disabled||I}"
1795
- @click="${r(this,Qc)}"
1795
+ @click="${r(this,yp)}"
1796
1796
  >
1797
1797
  <slot></slot>
1798
1798
  </a>
1799
- `},d(Be,4,"disabled",K1,ye,_g),d(Be,4,"focusableWhenDisabled",W1,ye,Ag),d(Be,4,"type",j1,ye,Rg),d(Be,4,"href",P1,ye,Ig),$(Be,ye),v(ye,"tagName","dui-button"),v(ye,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),v(ye,"styles",[y,J5]);var Q5=k`
1799
+ `},d(je,4,"disabled",sT,Te,pv),d(je,4,"focusableWhenDisabled",oT,Te,hv),d(je,4,"type",rT,Te,uv),d(je,4,"href",eT,Te,mv),$(je,Te),g(Te,"tagName","dui-button"),g(Te,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Te,"styles",[y,MN]);var NN=k`
1800
1800
  /* =================================================================
1801
1801
  * Two-axis variant system:
1802
1802
  * variant → semantic intent (neutral, primary, danger)
@@ -2017,7 +2017,7 @@ label, legend, caption, figcaption, th, td {
2017
2017
  :host([data-open][appearance="soft"]) [part="root"]:not(:disabled):not([aria-disabled="true"]) {
2018
2018
  background: oklch(from var(--_intent-base) l c h / 0.18);
2019
2019
  }
2020
- `,Ki=class extends ye{static styles=[...ye.styles,Q5]};customElements.define(Ki.tagName,Ki);var tv=L("value-change",{bubbles:!0,composed:!0}),Z5=g`
2020
+ `,an=class extends Te{static styles=[...Te.styles,NN]};customElements.define(an.tagName,an);var Dv=O("value-change",{bubbles:!0,composed:!0}),DN=v`
2021
2021
  :host {
2022
2022
  display: inline-block;
2023
2023
  }
@@ -2077,14 +2077,14 @@ label, legend, caption, figcaption, th, td {
2077
2077
  [part="day"]:disabled {
2078
2078
  cursor: not-allowed;
2079
2079
  }
2080
- `,J1,Q1,Z1,tS,eS,oS,rS,sS,iS,nS,aS,lS,ot,Lg,zg,Mg,Ng,Dg,Hg,Bg,Fg,Ug,dS,Gg,M,Vg,qg,Yg,Zc,Pg,jg,tp,ep,Wg,Kg,op,rp,Xg,fo,sp,Wl,ip,Jg,cS,pS,hS,Qg,Zg,np,ap,lp,dp,ne=class extends(lS=b,aS=[h()],nS=[h({attribute:"default-value"})],iS=[h()],sS=[h()],rS=[h()],oS=[h({type:Boolean,reflect:!0})],eS=[h({type:Boolean,reflect:!0,attribute:"read-only"})],tS=[E()],Z1=[E()],Q1=[E()],J1=[E()],lS){constructor(){super(...arguments);n(this,M);n(this,Lg,i(ot,8,this)),i(ot,11,this);n(this,zg,i(ot,12,this)),i(ot,15,this);n(this,Mg,i(ot,16,this)),i(ot,19,this);n(this,Ng,i(ot,20,this)),i(ot,23,this);n(this,Dg,i(ot,24,this,"en-US")),i(ot,27,this);n(this,Hg,i(ot,28,this,!1)),i(ot,31,this);n(this,Bg,i(ot,32,this,!1)),i(ot,35,this);n(this,Fg,i(ot,36,this)),i(ot,39,this);n(this,Vg,i(ot,40,this,new Date)),i(ot,43,this);n(this,Pg,i(ot,44,this,new Date().getMonth())),i(ot,47,this);n(this,Wg,i(ot,48,this,new Date().getFullYear())),i(ot,51,this);n(this,np,t=>{let e=t.currentTarget,a=e.dataset.date;a&&!e.disabled&&u(this,M,Qg).call(this,a)});n(this,ap,t=>{let e=new Date(r(this,M,Yg)),a=!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=u(this,M,ip).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),u(this,M,Wl).call(this,e)||u(this,M,Qg).call(this,u(this,M,fo).call(this,e));return;default:a=!1}a&&(t.preventDefault(),p(this,M,e,Zc),p(this,M,e.getMonth(),ep),p(this,M,e.getFullYear(),rp),this.updateComplete.then(()=>{let l=u(this,M,fo).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});n(this,lp,()=>{u(this,M,Zg).call(this,-1)});n(this,dp,()=>{u(this,M,Zg).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,M,this.defaultValue,Gg);let t=r(this,M,Xg);if(t){let e=new Date(t+"T00:00:00");p(this,M,e.getMonth(),ep),p(this,M,e.getFullYear(),rp),p(this,M,e,Zc)}}render(){let t=u(this,M,cS).call(this),e=u(this,M,pS).call(this),a=u(this,M,hS).call(this),l=u(this,M,fo).call(this,r(this,M,Yg));return m`
2081
- <div part="root" role="grid" @keydown="${r(this,ap)}">
2080
+ `,lT,dT,cT,pT,hT,uT,mT,fT,gT,vT,bT,xT,st,gv,vv,bv,xv,yv,wv,kv,Ev,Cv,yT,Iv,M,$v,Sv,Ov,wp,Tv,_v,kp,Ep,Av,Rv,Cp,$p,Lv,yr,Sp,ld,Tp,zv,wT,kT,ET,Mv,Nv,_p,Ap,Rp,Ip,pe=class extends(xT=b,bT=[u()],vT=[u({attribute:"default-value"})],gT=[u()],fT=[u()],mT=[u()],uT=[u({type:Boolean,reflect:!0})],hT=[u({type:Boolean,reflect:!0,attribute:"read-only"})],pT=[E()],cT=[E()],dT=[E()],lT=[E()],xT){constructor(){super(...arguments);n(this,M);n(this,gv,i(st,8,this)),i(st,11,this);n(this,vv,i(st,12,this)),i(st,15,this);n(this,bv,i(st,16,this)),i(st,19,this);n(this,xv,i(st,20,this)),i(st,23,this);n(this,yv,i(st,24,this,"en-US")),i(st,27,this);n(this,wv,i(st,28,this,!1)),i(st,31,this);n(this,kv,i(st,32,this,!1)),i(st,35,this);n(this,Ev,i(st,36,this)),i(st,39,this);n(this,$v,i(st,40,this,new Date)),i(st,43,this);n(this,Tv,i(st,44,this,new Date().getMonth())),i(st,47,this);n(this,Av,i(st,48,this,new Date().getFullYear())),i(st,51,this);n(this,_p,t=>{let e=t.currentTarget,a=e.dataset.date;a&&!e.disabled&&h(this,M,Mv).call(this,a)});n(this,Ap,t=>{let e=new Date(r(this,M,Ov)),a=!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=h(this,M,Tp).call(this,e.getFullYear(),e.getMonth());e.setDate(l);break}case"Enter":case" ":t.preventDefault(),h(this,M,ld).call(this,e)||h(this,M,Mv).call(this,h(this,M,yr).call(this,e));return;default:a=!1}a&&(t.preventDefault(),p(this,M,e,wp),p(this,M,e.getMonth(),Ep),p(this,M,e.getFullYear(),$p),this.updateComplete.then(()=>{let l=h(this,M,yr).call(this,e);this.shadowRoot?.querySelector(`[data-date="${l}"]`)?.focus()}))});n(this,Rp,()=>{h(this,M,Nv).call(this,-1)});n(this,Ip,()=>{h(this,M,Nv).call(this,1)})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,M,this.defaultValue,Iv);let t=r(this,M,Lv);if(t){let e=new Date(t+"T00:00:00");p(this,M,e.getMonth(),Ep),p(this,M,e.getFullYear(),$p),p(this,M,e,wp)}}render(){let t=h(this,M,wT).call(this),e=h(this,M,kT).call(this),a=h(this,M,ET).call(this),l=h(this,M,yr).call(this,r(this,M,Ov));return f`
2081
+ <div part="root" role="grid" @keydown="${r(this,Ap)}">
2082
2082
  <div part="header">
2083
2083
  <button
2084
2084
  part="prev"
2085
2085
  type="button"
2086
2086
  aria-label="Previous month"
2087
- @click="${r(this,lp)}"
2087
+ @click="${r(this,Rp)}"
2088
2088
  >
2089
2089
  <slot name="prev">&lsaquo;</slot>
2090
2090
  </button>
@@ -2093,15 +2093,15 @@ label, legend, caption, figcaption, th, td {
2093
2093
  part="next"
2094
2094
  type="button"
2095
2095
  aria-label="Next month"
2096
- @click="${r(this,dp)}"
2096
+ @click="${r(this,Ip)}"
2097
2097
  >
2098
2098
  <slot name="next">&rsaquo;</slot>
2099
2099
  </button>
2100
2100
  </div>
2101
2101
 
2102
2102
  <div part="grid" role="grid">
2103
- ${e.map(c=>m`<div part="weekday" role="columnheader">${c}</div>`)}
2104
- ${t.flat().map(c=>m`
2103
+ ${e.map(c=>f`<div part="weekday" role="columnheader">${c}</div>`)}
2104
+ ${t.flat().map(c=>f`
2105
2105
  <button
2106
2106
  part="day"
2107
2107
  type="button"
@@ -2113,12 +2113,12 @@ label, legend, caption, figcaption, th, td {
2113
2113
  ?data-outside-month="${c.isOutsideMonth}"
2114
2114
  ?disabled="${c.isDisabled}"
2115
2115
  aria-selected="${c.isSelected?"true":"false"}"
2116
- @click="${r(this,np)}"
2116
+ @click="${r(this,_p)}"
2117
2117
  >${c.day}</button>
2118
2118
  `)}
2119
2119
  </div>
2120
2120
  </div>
2121
- `}};ot=T(lS),Lg=new WeakMap,zg=new WeakMap,Mg=new WeakMap,Ng=new WeakMap,Dg=new WeakMap,Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,M=new WeakSet,Vg=new WeakMap,Pg=new WeakMap,Wg=new WeakMap,Xg=function(){return this.value??r(this,M,dS)},fo=function(t){let e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${l}`},sp=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},Wl=function(t){if(this.disabled)return!0;let e=u(this,M,fo).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},ip=function(t,e){return new Date(t,e+1,0).getDate()},Jg=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}},cS=function(){let t=r(this,M,op),e=r(this,M,tp),a=u(this,M,ip).call(this,t,e),l=new Date(t,e,1).getDay(),c=u(this,M,Jg).call(this),f=new Date,x=r(this,M,Xg),C=l-c;C<0&&(C+=7);let S=[],w=e===0?11:e-1,R=e===0?t-1:t,_=u(this,M,ip).call(this,R,w);for(let D=C-1;D>=0;D--){let P=_-D,K=new Date(R,w,P);S.push({date:K,day:P,iso:u(this,M,fo).call(this,K),isToday:u(this,M,sp).call(this,K,f),isSelected:u(this,M,fo).call(this,K)===x,isOutsideMonth:!0,isDisabled:u(this,M,Wl).call(this,K)})}for(let D=1;D<=a;D++){let P=new Date(t,e,D);S.push({date:P,day:D,iso:u(this,M,fo).call(this,P),isToday:u(this,M,sp).call(this,P,f),isSelected:u(this,M,fo).call(this,P)===x,isOutsideMonth:!1,isDisabled:u(this,M,Wl).call(this,P)})}let z=42-S.length,F=e===11?0:e+1,J=e===11?t+1:t;for(let D=1;D<=z;D++){let P=new Date(J,F,D);S.push({date:P,day:D,iso:u(this,M,fo).call(this,P),isToday:u(this,M,sp).call(this,P,f),isSelected:u(this,M,fo).call(this,P)===x,isOutsideMonth:!0,isDisabled:u(this,M,Wl).call(this,P)})}let U=[];for(let D=0;D<S.length;D+=7)U.push(S.slice(D,D+7));return U},pS=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=u(this,M,Jg).call(this),a=[];for(let l=0;l<7;l++){let c=new Date(2015,0,4+e+l);a.push(t.format(c))}return a},hS=function(){let t=new Date(r(this,M,op),r(this,M,tp),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},Qg=function(t){this.disabled||this.readOnly||(this.value===void 0&&p(this,M,t,Gg),this.dispatchEvent(tv({value:t})))},Zg=function(t){let e=r(this,M,tp)+t,a=r(this,M,op);e<0?(e=11,a--):e>11&&(e=0,a++),p(this,M,e,ep),p(this,M,a,rp),p(this,M,new Date(a,e,1),Zc)},np=new WeakMap,ap=new WeakMap,lp=new WeakMap,dp=new WeakMap,d(ot,4,"value",aS,ne,Lg),d(ot,4,"defaultValue",nS,ne,zg),d(ot,4,"min",iS,ne,Mg),d(ot,4,"max",sS,ne,Ng),d(ot,4,"locale",rS,ne,Dg),d(ot,4,"disabled",oS,ne,Hg),d(ot,4,"readOnly",eS,ne,Bg),Ug=d(ot,20,"#internalValue",tS,M,Fg),dS=Ug.get,Gg=Ug.set,qg=d(ot,20,"#focusedDate",Z1,M,Vg),Yg=qg.get,Zc=qg.set,jg=d(ot,20,"#viewMonth",Q1,M,Pg),tp=jg.get,ep=jg.set,Kg=d(ot,20,"#viewYear",J1,M,Wg),op=Kg.get,rp=Kg.set,$(ot,ne),v(ne,"tagName","dui-calendar"),v(ne,"styles",[y,Z5]);var tM=k`
2121
+ `}};st=S(xT),gv=new WeakMap,vv=new WeakMap,bv=new WeakMap,xv=new WeakMap,yv=new WeakMap,wv=new WeakMap,kv=new WeakMap,Ev=new WeakMap,M=new WeakSet,$v=new WeakMap,Tv=new WeakMap,Av=new WeakMap,Lv=function(){return this.value??r(this,M,yT)},yr=function(t){let e=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${e}-${a}-${l}`},Sp=function(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()},ld=function(t){if(this.disabled)return!0;let e=h(this,M,yr).call(this,t);return!!(this.min&&e<this.min||this.max&&e>this.max)},Tp=function(t,e){return new Date(t,e+1,0).getDate()},zv=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}},wT=function(){let t=r(this,M,Cp),e=r(this,M,kp),a=h(this,M,Tp).call(this,t,e),l=new Date(t,e,1).getDay(),c=h(this,M,zv).call(this),m=new Date,x=r(this,M,Lv),C=l-c;C<0&&(C+=7);let T=[],w=e===0?11:e-1,R=e===0?t-1:t,_=h(this,M,Tp).call(this,R,w);for(let D=C-1;D>=0;D--){let j=_-D,G=new Date(R,w,j);T.push({date:G,day:j,iso:h(this,M,yr).call(this,G),isToday:h(this,M,Sp).call(this,G,m),isSelected:h(this,M,yr).call(this,G)===x,isOutsideMonth:!0,isDisabled:h(this,M,ld).call(this,G)})}for(let D=1;D<=a;D++){let j=new Date(t,e,D);T.push({date:j,day:D,iso:h(this,M,yr).call(this,j),isToday:h(this,M,Sp).call(this,j,m),isSelected:h(this,M,yr).call(this,j)===x,isOutsideMonth:!1,isDisabled:h(this,M,ld).call(this,j)})}let z=42-T.length,V=e===11?0:e+1,Q=e===11?t+1:t;for(let D=1;D<=z;D++){let j=new Date(Q,V,D);T.push({date:j,day:D,iso:h(this,M,yr).call(this,j),isToday:h(this,M,Sp).call(this,j,m),isSelected:h(this,M,yr).call(this,j)===x,isOutsideMonth:!0,isDisabled:h(this,M,ld).call(this,j)})}let U=[];for(let D=0;D<T.length;D+=7)U.push(T.slice(D,D+7));return U},kT=function(){let t=new Intl.DateTimeFormat(this.locale,{weekday:"short"}),e=h(this,M,zv).call(this),a=[];for(let l=0;l<7;l++){let c=new Date(2015,0,4+e+l);a.push(t.format(c))}return a},ET=function(){let t=new Date(r(this,M,Cp),r(this,M,kp),1);return new Intl.DateTimeFormat(this.locale,{month:"long",year:"numeric"}).format(t)},Mv=function(t){this.disabled||this.readOnly||(this.value===void 0&&p(this,M,t,Iv),this.dispatchEvent(Dv({value:t})))},Nv=function(t){let e=r(this,M,kp)+t,a=r(this,M,Cp);e<0?(e=11,a--):e>11&&(e=0,a++),p(this,M,e,Ep),p(this,M,a,$p),p(this,M,new Date(a,e,1),wp)},_p=new WeakMap,Ap=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,d(st,4,"value",bT,pe,gv),d(st,4,"defaultValue",vT,pe,vv),d(st,4,"min",gT,pe,bv),d(st,4,"max",fT,pe,xv),d(st,4,"locale",mT,pe,yv),d(st,4,"disabled",uT,pe,wv),d(st,4,"readOnly",hT,pe,kv),Cv=d(st,20,"#internalValue",pT,M,Ev),yT=Cv.get,Iv=Cv.set,Sv=d(st,20,"#focusedDate",cT,M,$v),Ov=Sv.get,wp=Sv.set,_v=d(st,20,"#viewMonth",dT,M,Tv),kp=_v.get,Ep=_v.set,Rv=d(st,20,"#viewYear",lT,M,Av),Cp=Rv.get,$p=Rv.set,$(st,pe),g(pe,"tagName","dui-calendar"),g(pe,"styles",[y,DN]);var HN=k`
2122
2122
  [part="root"] {
2123
2123
  padding: var(--space-3);
2124
2124
  font-family: var(--font-sans);
@@ -2206,7 +2206,7 @@ label, legend, caption, figcaption, th, td {
2206
2206
  0 0 0 var(--focus-ring-offset) var(--background),
2207
2207
  0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
2208
2208
  }
2209
- `,Gi=class extends ne{static styles=[...ne.styles,tM]};customElements.define(Gi.tagName,Gi);var eM=g`
2209
+ `,ln=class extends pe{static styles=[...pe.styles,HN]};customElements.define(ln.tagName,ln);var BN=v`
2210
2210
  :host {
2211
2211
  display: block;
2212
2212
  }
@@ -2240,28 +2240,28 @@ label, legend, caption, figcaption, th, td {
2240
2240
  display: flex;
2241
2241
  align-items: center;
2242
2242
  }
2243
- `,uS,mS,fS,gS,To,ev,ov,rv,vS,bS,Ao,sv,iv,xS,yS,Kl,Gl,Yl,Yi,cp,_o=class extends(gS=b,fS=[h({reflect:!0})],mS=[E()],uS=[E()],gS){constructor(){super(...arguments);n(this,Ao);n(this,ev,i(To,8,this,"")),i(To,11,this);n(this,ov,i(To,12,this,!1)),i(To,15,this);n(this,sv,i(To,16,this,!1)),i(To,19,this);n(this,Kl,!1);n(this,Gl,!1);n(this,Yl,!1);n(this,Yi,t=>{let e=t.target,a=e.assignedElements().length>0;e.name==="title"?p(this,Kl,a):e.name==="description"?p(this,Gl,a):e.name==="action"&&p(this,Yl,a),p(this,Ao,r(this,Kl)||r(this,Gl)||r(this,Yl),bS)});n(this,cp,t=>{let e=t.target;p(this,Ao,e.assignedElements().length>0,yS)})}render(){return m`
2243
+ `,CT,$T,ST,TT,Or,Hv,Bv,Fv,_T,AT,zr,Vv,Uv,RT,IT,dd,cd,pd,dn,Op,Lr=class extends(TT=b,ST=[u({reflect:!0})],$T=[E()],CT=[E()],TT){constructor(){super(...arguments);n(this,zr);n(this,Hv,i(Or,8,this,"")),i(Or,11,this);n(this,Bv,i(Or,12,this,!1)),i(Or,15,this);n(this,Vv,i(Or,16,this,!1)),i(Or,19,this);n(this,dd,!1);n(this,cd,!1);n(this,pd,!1);n(this,dn,t=>{let e=t.target,a=e.assignedElements().length>0;e.name==="title"?p(this,dd,a):e.name==="description"?p(this,cd,a):e.name==="action"&&p(this,pd,a),p(this,zr,r(this,dd)||r(this,cd)||r(this,pd),AT)});n(this,Op,t=>{let e=t.target;p(this,zr,e.assignedElements().length>0,IT)})}render(){return f`
2244
2244
  <div part="root">
2245
- <div part="header" ?hidden=${!r(this,Ao,vS)}>
2245
+ <div part="header" ?hidden=${!r(this,zr,_T)}>
2246
2246
  <div part="header-text">
2247
- <slot name="title" @slotchange=${r(this,Yi)}></slot>
2247
+ <slot name="title" @slotchange=${r(this,dn)}></slot>
2248
2248
  <slot
2249
2249
  name="description"
2250
- @slotchange=${r(this,Yi)}
2250
+ @slotchange=${r(this,dn)}
2251
2251
  ></slot>
2252
2252
  </div>
2253
2253
  <div part="action">
2254
- <slot name="action" @slotchange=${r(this,Yi)}></slot>
2254
+ <slot name="action" @slotchange=${r(this,dn)}></slot>
2255
2255
  </div>
2256
2256
  </div>
2257
2257
  <div part="content">
2258
2258
  <slot></slot>
2259
2259
  </div>
2260
- <div part="footer" ?hidden=${!r(this,Ao,xS)}>
2261
- <slot name="footer" @slotchange=${r(this,cp)}></slot>
2260
+ <div part="footer" ?hidden=${!r(this,zr,RT)}>
2261
+ <slot name="footer" @slotchange=${r(this,Op)}></slot>
2262
2262
  </div>
2263
2263
  </div>
2264
- `}};To=T(gS),ev=new WeakMap,ov=new WeakMap,Ao=new WeakSet,sv=new WeakMap,Kl=new WeakMap,Gl=new WeakMap,Yl=new WeakMap,Yi=new WeakMap,cp=new WeakMap,d(To,4,"size",fS,_o,ev),rv=d(To,20,"#hasHeader",mS,Ao,ov),vS=rv.get,bS=rv.set,iv=d(To,20,"#hasFooter",uS,Ao,sv),xS=iv.get,yS=iv.set,$(To,_o),v(_o,"tagName","dui-card"),v(_o,"styles",[y,eM]);var oM=k`
2264
+ `}};Or=S(TT),Hv=new WeakMap,Bv=new WeakMap,zr=new WeakSet,Vv=new WeakMap,dd=new WeakMap,cd=new WeakMap,pd=new WeakMap,dn=new WeakMap,Op=new WeakMap,d(Or,4,"size",ST,Lr,Hv),Fv=d(Or,20,"#hasHeader",$T,zr,Bv),_T=Fv.get,AT=Fv.set,Uv=d(Or,20,"#hasFooter",CT,zr,Vv),RT=Uv.get,IT=Uv.set,$(Or,Lr),g(Lr,"tagName","dui-card"),g(Lr,"styles",[y,BN]);var FN=k`
2265
2265
  /* ---------------------------------------------------------------
2266
2266
  * Size tokens
2267
2267
  * --------------------------------------------------------------- */
@@ -2349,7 +2349,7 @@ label, legend, caption, figcaption, th, td {
2349
2349
  gap: var(--space-2);
2350
2350
  justify-content: flex-end;
2351
2351
  }
2352
- `,Xi=class extends _o{static styles=[..._o.styles,oM]};customElements.define(Xi.tagName,Xi);var rM=g`
2352
+ `,cn=class extends Lr{static styles=[...Lr.styles,FN]};customElements.define(cn.tagName,cn);var VN=v`
2353
2353
  :host {
2354
2354
  display: block;
2355
2355
  min-width: 100%;
@@ -2379,15 +2379,15 @@ label, legend, caption, figcaption, th, td {
2379
2379
  --_columns: 1;
2380
2380
  }
2381
2381
  }
2382
- `,wS,kS,pp,nv,Ro=class extends(kS=b,wS=[h({reflect:!0})],kS){constructor(){super(...arguments);n(this,nv,i(pp,8,this,"3")),i(pp,11,this)}render(){return m`
2382
+ `,OT,LT,Lp,qv,Mr=class extends(LT=b,OT=[u({reflect:!0})],LT){constructor(){super(...arguments);n(this,qv,i(Lp,8,this,"3")),i(Lp,11,this)}render(){return f`
2383
2383
  <div part="root">
2384
2384
  <slot></slot>
2385
2385
  </div>
2386
- `}};pp=T(kS),nv=new WeakMap,d(pp,4,"columns",wS,Ro,nv),$(pp,Ro),v(Ro,"tagName","dui-card-grid"),v(Ro,"styles",[y,rM]);var sM=k`
2386
+ `}};Lp=S(LT),qv=new WeakMap,d(Lp,4,"columns",OT,Mr,qv),$(Lp,Mr),g(Mr,"tagName","dui-card-grid"),g(Mr,"styles",[y,VN]);var UN=k`
2387
2387
  [part="root"] {
2388
2388
  gap: var(--space-4);
2389
2389
  }
2390
- `,Ji=class extends Ro{static styles=[...Ro.styles,sM]};customElements.define(Ji.tagName,Ji);var hp=Symbol("dui-checkbox-group");var yv=L("checked-change",{bubbles:!0,composed:!0}),iM=g`
2390
+ `,pn=class extends Mr{static styles=[...Mr.styles,UN]};customElements.define(pn.tagName,pn);var zp=Symbol("dui-checkbox-group");var ob=O("checked-change",{bubbles:!0,composed:!0}),qN=v`
2391
2391
  :host {
2392
2392
  display: inline-flex;
2393
2393
  align-items: start;
@@ -2430,7 +2430,7 @@ label, legend, caption, figcaption, th, td {
2430
2430
  display: none;
2431
2431
  }
2432
2432
 
2433
- `,nM=m`
2433
+ `,PN=f`
2434
2434
  <svg
2435
2435
  class="Icon"
2436
2436
  xmlns="http://www.w3.org/2000/svg"
@@ -2443,7 +2443,7 @@ label, legend, caption, figcaption, th, td {
2443
2443
  >
2444
2444
  <polyline points="20 6 9 17 4 12"></polyline>
2445
2445
  </svg>
2446
- `,aM=m`
2446
+ `,jN=f`
2447
2447
  <svg
2448
2448
  class="Icon"
2449
2449
  xmlns="http://www.w3.org/2000/svg"
@@ -2456,7 +2456,7 @@ label, legend, caption, figcaption, th, td {
2456
2456
  >
2457
2457
  <line x1="5" y1="12" x2="19" y2="12"></line>
2458
2458
  </svg>
2459
- `,ES,CS,$S,SS,TS,_S,AS,RS,IS,OS,LS,Qi,nt,av,lv,dv,cv,pv,hv,uv,mv,fv,gv,vv,zS,bv,Kt,vs,Xl,MS,xv,NS,Jl,Ql,up,Wt=class extends(LS=b,OS=[h({type:Boolean,reflect:!0})],IS=[h({type:Boolean,attribute:"default-checked"})],RS=[h({type:Boolean,reflect:!0})],AS=[h({type:Boolean,reflect:!0})],_S=[h({type:Boolean,reflect:!0,attribute:"read-only"})],TS=[h({type:Boolean,reflect:!0})],SS=[h()],$S=[h()],CS=[h({type:Boolean})],ES=[E()],LS){constructor(){super();n(this,Kt);n(this,Qi);n(this,av,i(nt,8,this)),i(nt,11,this);n(this,lv,i(nt,12,this,!1)),i(nt,15,this);n(this,dv,i(nt,16,this,!1)),i(nt,19,this);n(this,cv,i(nt,20,this,!1)),i(nt,23,this);n(this,pv,i(nt,24,this,!1)),i(nt,27,this);n(this,hv,i(nt,28,this,!1)),i(nt,31,this);n(this,uv,i(nt,32,this)),i(nt,35,this);n(this,mv,i(nt,36,this)),i(nt,39,this);n(this,fv,i(nt,40,this,!1)),i(nt,43,this);n(this,gv,i(nt,44,this,!1)),i(nt,47,this);n(this,vs,new W(this,{context:hp,subscribe:!0}));n(this,Jl,t=>{r(this,Ql).call(this)});n(this,Ql,()=>{if(r(this,Kt,xv)||this.readOnly)return;let t=r(this,vs).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!r(this,Kt,Xl)):t.toggle(this.value);return}let e=!r(this,Kt,Xl);this.checked===void 0&&(p(this,Kt,e,bv),this.indeterminate=!1),this.dispatchEvent(yv({checked:e,indeterminate:!1}))});n(this,up,t=>{t.key===" "&&(t.preventDefault(),r(this,Ql).call(this))});p(this,Qi,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,Kt,!0,bv),this.addEventListener("click",r(this,Jl))}willUpdate(){u(this,Kt,NS).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,Jl))}render(){let t=r(this,Kt,Xl),e=r(this,Kt,MS),a=r(this,Kt,xv),l=t||e;return m`
2459
+ `,zT,MT,NT,DT,HT,BT,FT,VT,UT,qT,PT,hn,lt,Pv,jv,Wv,Kv,Gv,Yv,Xv,Jv,Qv,Zv,tb,jT,eb,Xt,_s,hd,WT,rb,KT,ud,md,Mp,Yt=class extends(PT=b,qT=[u({type:Boolean,reflect:!0})],UT=[u({type:Boolean,attribute:"default-checked"})],VT=[u({type:Boolean,reflect:!0})],FT=[u({type:Boolean,reflect:!0})],BT=[u({type:Boolean,reflect:!0,attribute:"read-only"})],HT=[u({type:Boolean,reflect:!0})],DT=[u()],NT=[u()],MT=[u({type:Boolean})],zT=[E()],PT){constructor(){super();n(this,Xt);n(this,hn);n(this,Pv,i(lt,8,this)),i(lt,11,this);n(this,jv,i(lt,12,this,!1)),i(lt,15,this);n(this,Wv,i(lt,16,this,!1)),i(lt,19,this);n(this,Kv,i(lt,20,this,!1)),i(lt,23,this);n(this,Gv,i(lt,24,this,!1)),i(lt,27,this);n(this,Yv,i(lt,28,this,!1)),i(lt,31,this);n(this,Xv,i(lt,32,this)),i(lt,35,this);n(this,Jv,i(lt,36,this)),i(lt,39,this);n(this,Qv,i(lt,40,this,!1)),i(lt,43,this);n(this,Zv,i(lt,44,this,!1)),i(lt,47,this);n(this,_s,new K(this,{context:zp,subscribe:!0}));n(this,ud,t=>{r(this,md).call(this)});n(this,md,()=>{if(r(this,Xt,rb)||this.readOnly)return;let t=r(this,_s).value;if(t&&this.value!==void 0){this.parent?t.toggleAll(!r(this,Xt,hd)):t.toggle(this.value);return}let e=!r(this,Xt,hd);this.checked===void 0&&(p(this,Xt,e,eb),this.indeterminate=!1),this.dispatchEvent(ob({checked:e,indeterminate:!1}))});n(this,Mp,t=>{t.key===" "&&(t.preventDefault(),r(this,md).call(this))});p(this,hn,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,Xt,!0,eb),this.addEventListener("click",r(this,ud))}willUpdate(){h(this,Xt,KT).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,ud))}render(){let t=r(this,Xt,hd),e=r(this,Xt,WT),a=r(this,Xt,rb),l=t||e;return f`
2460
2460
  <span
2461
2461
  part="root"
2462
2462
  role="checkbox"
@@ -2471,7 +2471,7 @@ label, legend, caption, figcaption, th, td {
2471
2471
  ?data-disabled="${a}"
2472
2472
  ?data-readonly="${this.readOnly}"
2473
2473
  ?data-required="${this.required}"
2474
- @keydown="${r(this,up)}"
2474
+ @keydown="${r(this,Mp)}"
2475
2475
  >
2476
2476
  <span
2477
2477
  part="indicator"
@@ -2479,11 +2479,11 @@ label, legend, caption, figcaption, th, td {
2479
2479
  ?data-unchecked="${!t&&!e}"
2480
2480
  ?data-indeterminate="${e}"
2481
2481
  >
2482
- ${l?e?aM:nM:I}
2482
+ ${l?e?jN:PN:I}
2483
2483
  </span>
2484
2484
  </span>
2485
2485
  <slot></slot>
2486
- `}};nt=T(LS),Qi=new WeakMap,av=new WeakMap,lv=new WeakMap,dv=new WeakMap,cv=new WeakMap,pv=new WeakMap,hv=new WeakMap,uv=new WeakMap,mv=new WeakMap,fv=new WeakMap,gv=new WeakMap,Kt=new WeakSet,vs=new WeakMap,Xl=function(){let t=r(this,vs).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??r(this,Kt,zS)},MS=function(){let t=r(this,vs).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(a=>t.checkedValues.includes(a)).length;return e>0&&e<t.allValues.length}return this.indeterminate},xv=function(){return this.disabled||(r(this,vs).value?.disabled??!1)},NS=function(){r(this,Kt,Xl)?r(this,Qi).setFormValue(this.value??"on"):r(this,Qi).setFormValue(null)},Jl=new WeakMap,Ql=new WeakMap,up=new WeakMap,d(nt,4,"checked",OS,Wt,av),d(nt,4,"defaultChecked",IS,Wt,lv),d(nt,4,"indeterminate",RS,Wt,dv),d(nt,4,"disabled",AS,Wt,cv),d(nt,4,"readOnly",_S,Wt,pv),d(nt,4,"required",TS,Wt,hv),d(nt,4,"name",SS,Wt,uv),d(nt,4,"value",$S,Wt,mv),d(nt,4,"parent",CS,Wt,fv),vv=d(nt,20,"#internalChecked",ES,Kt,gv),zS=vv.get,bv=vv.set,$(nt,Wt),v(Wt,"tagName","dui-checkbox"),v(Wt,"formAssociated",!0),v(Wt,"styles",[y,iM]);var gp=L("value-change",{bubbles:!0,composed:!0}),lM=g`
2486
+ `}};lt=S(PT),hn=new WeakMap,Pv=new WeakMap,jv=new WeakMap,Wv=new WeakMap,Kv=new WeakMap,Gv=new WeakMap,Yv=new WeakMap,Xv=new WeakMap,Jv=new WeakMap,Qv=new WeakMap,Zv=new WeakMap,Xt=new WeakSet,_s=new WeakMap,hd=function(){let t=r(this,_s).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??r(this,Xt,jT)},WT=function(){let t=r(this,_s).value;if(t&&this.parent&&this.value!==void 0){let e=t.allValues.filter(a=>t.checkedValues.includes(a)).length;return e>0&&e<t.allValues.length}return this.indeterminate},rb=function(){return this.disabled||(r(this,_s).value?.disabled??!1)},KT=function(){r(this,Xt,hd)?r(this,hn).setFormValue(this.value??"on"):r(this,hn).setFormValue(null)},ud=new WeakMap,md=new WeakMap,Mp=new WeakMap,d(lt,4,"checked",qT,Yt,Pv),d(lt,4,"defaultChecked",UT,Yt,jv),d(lt,4,"indeterminate",VT,Yt,Wv),d(lt,4,"disabled",FT,Yt,Kv),d(lt,4,"readOnly",BT,Yt,Gv),d(lt,4,"required",HT,Yt,Yv),d(lt,4,"name",DT,Yt,Xv),d(lt,4,"value",NT,Yt,Jv),d(lt,4,"parent",MT,Yt,Qv),tb=d(lt,20,"#internalChecked",zT,Xt,Zv),jT=tb.get,eb=tb.set,$(lt,Yt),g(Yt,"tagName","dui-checkbox"),g(Yt,"formAssociated",!0),g(Yt,"styles",[y,qN]);var Hp=O("value-change",{bubbles:!0,composed:!0}),WN=v`
2487
2487
  :host {
2488
2488
  display: block;
2489
2489
  }
@@ -2493,7 +2493,7 @@ label, legend, caption, figcaption, th, td {
2493
2493
  flex-direction: column;
2494
2494
  align-items: start;
2495
2495
  }
2496
- `,DS,HS,BS,FS,US,VS,qS,Gt,wv,kv,Ev,Cv,$v,Sv,PS,mp,Ze,Zl,vp,bp,Tv,fp,we=class extends(qS=b,VS=[h({attribute:!1})],US=[h({attribute:!1})],FS=[h({attribute:!1})],BS=[h({type:Boolean,reflect:!0})],HS=[E()],DS=[Et({context:hp}),E()],qS){constructor(){super(...arguments);n(this,Ze);n(this,wv,i(Gt,8,this)),i(Gt,11,this);n(this,kv,i(Gt,12,this,[])),i(Gt,15,this);n(this,Ev,i(Gt,16,this,[])),i(Gt,19,this);n(this,Cv,i(Gt,20,this,!1)),i(Gt,23,this);n(this,$v,i(Gt,24,this,[])),i(Gt,27,this);n(this,Zl,()=>this.value??r(this,Ze,PS));n(this,vp,t=>{let e=r(this,Zl).call(this),a=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&p(this,Ze,a,mp),this.dispatchEvent(gp(a))});n(this,bp,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&p(this,Ze,e,mp),this.dispatchEvent(gp(e))});n(this,Tv,i(Gt,28,this,u(this,Ze,fp).call(this))),i(Gt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,Ze,[...this.defaultValue],mp),this._ctx=u(this,Ze,fp).call(this)}willUpdate(){this._ctx=u(this,Ze,fp).call(this)}render(){return m`
2496
+ `,GT,YT,XT,JT,QT,ZT,t_,Jt,sb,ib,nb,ab,lb,db,e_,Np,ir,fd,Bp,Fp,cb,Dp,_e=class extends(t_=b,ZT=[u({attribute:!1})],QT=[u({attribute:!1})],JT=[u({attribute:!1})],XT=[u({type:Boolean,reflect:!0})],YT=[E()],GT=[vt({context:zp}),E()],t_){constructor(){super(...arguments);n(this,ir);n(this,sb,i(Jt,8,this)),i(Jt,11,this);n(this,ib,i(Jt,12,this,[])),i(Jt,15,this);n(this,nb,i(Jt,16,this,[])),i(Jt,19,this);n(this,ab,i(Jt,20,this,!1)),i(Jt,23,this);n(this,lb,i(Jt,24,this,[])),i(Jt,27,this);n(this,fd,()=>this.value??r(this,ir,e_));n(this,Bp,t=>{let e=r(this,fd).call(this),a=e.includes(t)?e.filter(l=>l!==t):[...e,t];this.value===void 0&&p(this,ir,a,Np),this.dispatchEvent(Hp(a))});n(this,Fp,t=>{let e=t?[...this.allValues]:[];this.value===void 0&&p(this,ir,e,Np),this.dispatchEvent(Hp(e))});n(this,cb,i(Jt,28,this,h(this,ir,Dp).call(this))),i(Jt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,ir,[...this.defaultValue],Np),this._ctx=h(this,ir,Dp).call(this)}willUpdate(){this._ctx=h(this,ir,Dp).call(this)}render(){return f`
2497
2497
  <div
2498
2498
  part="root"
2499
2499
  role="group"
@@ -2501,7 +2501,7 @@ label, legend, caption, figcaption, th, td {
2501
2501
  >
2502
2502
  <slot></slot>
2503
2503
  </div>
2504
- `}};Gt=T(qS),wv=new WeakMap,kv=new WeakMap,Ev=new WeakMap,Cv=new WeakMap,$v=new WeakMap,Ze=new WeakSet,Zl=new WeakMap,vp=new WeakMap,bp=new WeakMap,Tv=new WeakMap,fp=function(){return{checkedValues:r(this,Zl).call(this),allValues:this.allValues,disabled:this.disabled,toggle:r(this,vp),toggleAll:r(this,bp)}},d(Gt,4,"value",VS,we,wv),d(Gt,4,"defaultValue",US,we,kv),d(Gt,4,"allValues",FS,we,Ev),d(Gt,4,"disabled",BS,we,Cv),Sv=d(Gt,20,"#internalValues",HS,Ze,$v),PS=Sv.get,mp=Sv.set,d(Gt,4,"_ctx",DS,we,Tv),$(Gt,we),v(we,"tagName","dui-checkbox-group"),v(we,"styles",[y,lM]);var dM=k`
2504
+ `}};Jt=S(t_),sb=new WeakMap,ib=new WeakMap,nb=new WeakMap,ab=new WeakMap,lb=new WeakMap,ir=new WeakSet,fd=new WeakMap,Bp=new WeakMap,Fp=new WeakMap,cb=new WeakMap,Dp=function(){return{checkedValues:r(this,fd).call(this),allValues:this.allValues,disabled:this.disabled,toggle:r(this,Bp),toggleAll:r(this,Fp)}},d(Jt,4,"value",ZT,_e,sb),d(Jt,4,"defaultValue",QT,_e,ib),d(Jt,4,"allValues",JT,_e,nb),d(Jt,4,"disabled",XT,_e,ab),db=d(Jt,20,"#internalValues",YT,ir,lb),e_=db.get,Np=db.set,d(Jt,4,"_ctx",GT,_e,cb),$(Jt,_e),g(_e,"tagName","dui-checkbox-group"),g(_e,"styles",[y,WN]);var KN=k`
2505
2505
  :host {
2506
2506
  --checkbox-size: var(--space-4_5);
2507
2507
  gap: var(--space-2);
@@ -2554,7 +2554,7 @@ label, legend, caption, figcaption, th, td {
2554
2554
  width: var(--space-3);
2555
2555
  height: var(--space-3);
2556
2556
  }
2557
- `,Zi=class extends Wt{static styles=[...Wt.styles,dM]};customElements.define(Zi.tagName,Zi);var cM=k`
2557
+ `,un=class extends Yt{static styles=[...Yt.styles,KN]};customElements.define(un.tagName,un);var GN=k`
2558
2558
  [part="root"] {
2559
2559
  gap: var(--space-1);
2560
2560
  }
@@ -2562,7 +2562,7 @@ label, legend, caption, figcaption, th, td {
2562
2562
  [part="root"][data-disabled] {
2563
2563
  opacity: 0.4;
2564
2564
  }
2565
- `,tn=class extends we{static styles=[...we.styles,cM]};customElements.define(tn.tagName,tn);var jv=L("open-change",{bubbles:!0,composed:!0}),pM=g`
2565
+ `,mn=class extends _e{static styles=[..._e.styles,GN]};customElements.define(mn.tagName,mn);var _b=O("open-change",{bubbles:!0,composed:!0}),YN=v`
2566
2566
  :host {
2567
2567
  display: block;
2568
2568
  }
@@ -2595,34 +2595,34 @@ label, legend, caption, figcaption, th, td {
2595
2595
  contain: content;
2596
2596
  transition-property: height;
2597
2597
  }
2598
- `,jS,WS,KS,GS,YS,XS,JS,QS,ZS,tT,vt,_v,Av,Rv,Iv,Ov,Lv,Vv,xp,V,zv,Mv,yp,wp,Nv,Dv,eT,bs,Hv,Bv,qv,kp,Fv,Uv,oT,Pv,xs,ys,zr,td,rT,sT,Ep,Cp,Fe=class extends(tT=b,ZS=[h({type:Boolean,reflect:!0})],QS=[h({type:Boolean,attribute:"default-open"})],JS=[h({type:Boolean,reflect:!0})],XS=[h({type:Boolean,attribute:"keep-mounted"})],YS=[E()],GS=[E()],KS=[E()],WS=[E()],jS=[E()],tT){constructor(){super(...arguments);n(this,V);n(this,_v,i(vt,8,this,!1)),i(vt,11,this);n(this,Av,i(vt,12,this,!1)),i(vt,15,this);n(this,Rv,i(vt,16,this,!1)),i(vt,19,this);n(this,Iv,i(vt,20,this,!1)),i(vt,23,this);n(this,Ov,i(vt,24,this,!1)),i(vt,27,this);n(this,zv,i(vt,28,this,!1)),i(vt,31,this);n(this,Nv,i(vt,32,this,"0")),i(vt,35,this);n(this,Hv,i(vt,36,this,!1)),i(vt,39,this);n(this,Fv,i(vt,40,this,!1)),i(vt,43,this);n(this,xs);n(this,ys,0);n(this,zr,!1);n(this,Ep,t=>{t.propertyName==="height"&&(r(this,V,yp)?(p(this,V,!1,wp),this.keepMounted||p(this,V,!1,kp)):r(this,V,td)&&p(this,V,"auto",bs))});n(this,Cp,()=>{if(this.disabled)return;let t=!r(this,V,td);r(this,zr)||p(this,V,t,Pv),this.dispatchEvent(jv({open:t}))})}connectedCallback(){super.connectedCallback(),p(this,zr,this.hasAttribute("open")),!r(this,zr)&&this.defaultOpen&&p(this,V,!0,Pv)}willUpdate(t){t.has("open")&&r(this,xs)!==void 0&&p(this,zr,!0);let e=r(this,V,td);r(this,xs)===void 0?(p(this,V,e,kp),p(this,V,e?"auto":"0",bs)):r(this,xs)!==e&&(e?u(this,V,rT).call(this):u(this,V,sT).call(this)),p(this,xs,e)}render(){let t=r(this,V,td),e=r(this,V,qv)||this.keepMounted;return m`
2598
+ `,r_,o_,s_,i_,n_,a_,l_,d_,c_,p_,wt,pb,hb,ub,mb,fb,gb,$b,Vp,q,vb,bb,Up,qp,xb,yb,h_,As,wb,kb,Sb,Pp,Eb,Cb,u_,Tb,Rs,Is,qo,gd,m_,f_,jp,Wp,We=class extends(p_=b,c_=[u({type:Boolean,reflect:!0})],d_=[u({type:Boolean,attribute:"default-open"})],l_=[u({type:Boolean,reflect:!0})],a_=[u({type:Boolean,attribute:"keep-mounted"})],n_=[E()],i_=[E()],s_=[E()],o_=[E()],r_=[E()],p_){constructor(){super(...arguments);n(this,q);n(this,pb,i(wt,8,this,!1)),i(wt,11,this);n(this,hb,i(wt,12,this,!1)),i(wt,15,this);n(this,ub,i(wt,16,this,!1)),i(wt,19,this);n(this,mb,i(wt,20,this,!1)),i(wt,23,this);n(this,fb,i(wt,24,this,!1)),i(wt,27,this);n(this,vb,i(wt,28,this,!1)),i(wt,31,this);n(this,xb,i(wt,32,this,"0")),i(wt,35,this);n(this,wb,i(wt,36,this,!1)),i(wt,39,this);n(this,Eb,i(wt,40,this,!1)),i(wt,43,this);n(this,Rs);n(this,Is,0);n(this,qo,!1);n(this,jp,t=>{t.propertyName==="height"&&(r(this,q,Up)?(p(this,q,!1,qp),this.keepMounted||p(this,q,!1,Pp)):r(this,q,gd)&&p(this,q,"auto",As))});n(this,Wp,()=>{if(this.disabled)return;let t=!r(this,q,gd);r(this,qo)||p(this,q,t,Tb),this.dispatchEvent(_b({open:t}))})}connectedCallback(){super.connectedCallback(),p(this,qo,this.hasAttribute("open")),!r(this,qo)&&this.defaultOpen&&p(this,q,!0,Tb)}willUpdate(t){t.has("open")&&r(this,Rs)!==void 0&&p(this,qo,!0);let e=r(this,q,gd);r(this,Rs)===void 0?(p(this,q,e,Pp),p(this,q,e?"auto":"0",As)):r(this,Rs)!==e&&(e?h(this,q,m_).call(this):h(this,q,f_).call(this)),p(this,Rs,e)}render(){let t=r(this,q,gd),e=r(this,q,Sb)||this.keepMounted;return f`
2599
2599
  <button
2600
2600
  part="trigger"
2601
2601
  aria-expanded=${t}
2602
2602
  ?data-open=${t}
2603
2603
  ?data-disabled=${this.disabled}
2604
2604
  ?disabled=${this.disabled}
2605
- @click=${r(this,Cp)}
2605
+ @click=${r(this,Wp)}
2606
2606
  >
2607
2607
  <slot name="trigger"></slot>
2608
2608
  </button>
2609
- ${e?m`
2609
+ ${e?f`
2610
2610
  <div
2611
2611
  part="panel"
2612
2612
  role="region"
2613
- style="height: ${r(this,V,eT)}"
2614
- ?data-open=${t&&!r(this,V,Vv)}
2615
- ?data-starting-style=${r(this,V,Vv)}
2616
- ?data-ending-style=${r(this,V,yp)}
2617
- ?hidden=${!r(this,V,qv)&&!r(this,V,yp)}
2618
- @transitionend=${r(this,Ep)}
2613
+ style="height: ${r(this,q,h_)}"
2614
+ ?data-open=${t&&!r(this,q,$b)}
2615
+ ?data-starting-style=${r(this,q,$b)}
2616
+ ?data-ending-style=${r(this,q,Up)}
2617
+ ?hidden=${!r(this,q,Sb)&&!r(this,q,Up)}
2618
+ @transitionend=${r(this,jp)}
2619
2619
  >
2620
2620
  <div part="content">
2621
2621
  <slot></slot>
2622
2622
  </div>
2623
2623
  </div>
2624
2624
  `:I}
2625
- `}};vt=T(tT),_v=new WeakMap,Av=new WeakMap,Rv=new WeakMap,Iv=new WeakMap,Ov=new WeakMap,V=new WeakSet,zv=new WeakMap,Nv=new WeakMap,Hv=new WeakMap,Fv=new WeakMap,xs=new WeakMap,ys=new WeakMap,zr=new WeakMap,td=function(){return r(this,zr)?this.open:r(this,V,oT)},rT=function(){let t=++ui(this,ys)._;p(this,V,!1,wp),p(this,V,!0,kp),p(this,V,!0,xp),p(this,V,"0",bs),requestAnimationFrame(()=>{if(r(this,ys)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,V,`${e.scrollHeight}px`,bs),p(this,V,!1,xp)})},sT=function(){let t=++ui(this,ys)._;p(this,V,!1,xp);let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,V,`${e.scrollHeight}px`,bs),requestAnimationFrame(()=>{r(this,ys)===t&&(p(this,V,!0,wp),p(this,V,"0",bs))})},Ep=new WeakMap,Cp=new WeakMap,d(vt,4,"open",ZS,Fe,_v),d(vt,4,"defaultOpen",QS,Fe,Av),d(vt,4,"disabled",JS,Fe,Rv),d(vt,4,"keepMounted",XS,Fe,Iv),Lv=d(vt,20,"#starting",YS,V,Ov),Vv=Lv.get,xp=Lv.set,Mv=d(vt,20,"#ending",GS,V,zv),yp=Mv.get,wp=Mv.set,Dv=d(vt,20,"#panelHeight",KS,V,Nv),eT=Dv.get,bs=Dv.set,Bv=d(vt,20,"#visible",WS,V,Hv),qv=Bv.get,kp=Bv.set,Uv=d(vt,20,"#internalOpen",jS,V,Fv),oT=Uv.get,Pv=Uv.set,$(vt,Fe),v(Fe,"tagName","dui-collapsible"),v(Fe,"styles",[y,pM]);var iT=mi(`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")`),hM=k`
2625
+ `}};wt=S(p_),pb=new WeakMap,hb=new WeakMap,ub=new WeakMap,mb=new WeakMap,fb=new WeakMap,q=new WeakSet,vb=new WeakMap,xb=new WeakMap,wb=new WeakMap,Eb=new WeakMap,Rs=new WeakMap,Is=new WeakMap,qo=new WeakMap,gd=function(){return r(this,qo)?this.open:r(this,q,u_)},m_=function(){let t=++Ti(this,Is)._;p(this,q,!1,qp),p(this,q,!0,Pp),p(this,q,!0,Vp),p(this,q,"0",As),requestAnimationFrame(()=>{if(r(this,Is)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,q,`${e.scrollHeight}px`,As),p(this,q,!1,Vp)})},f_=function(){let t=++Ti(this,Is)._;p(this,q,!1,Vp);let e=this.shadowRoot?.querySelector("[part='panel']");e&&p(this,q,`${e.scrollHeight}px`,As),requestAnimationFrame(()=>{r(this,Is)===t&&(p(this,q,!0,qp),p(this,q,"0",As))})},jp=new WeakMap,Wp=new WeakMap,d(wt,4,"open",c_,We,pb),d(wt,4,"defaultOpen",d_,We,hb),d(wt,4,"disabled",l_,We,ub),d(wt,4,"keepMounted",a_,We,mb),gb=d(wt,20,"#starting",n_,q,fb),$b=gb.get,Vp=gb.set,bb=d(wt,20,"#ending",i_,q,vb),Up=bb.get,qp=bb.set,yb=d(wt,20,"#panelHeight",s_,q,xb),h_=yb.get,As=yb.set,kb=d(wt,20,"#visible",o_,q,wb),Sb=kb.get,Pp=kb.set,Cb=d(wt,20,"#internalOpen",r_,q,Eb),u_=Cb.get,Tb=Cb.set,$(wt,We),g(We,"tagName","dui-collapsible"),g(We,"styles",[y,YN]);var g_=bo(`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")`),XN=k`
2626
2626
  /* ── Trigger ── */
2627
2627
 
2628
2628
  [part="trigger"] {
@@ -2666,8 +2666,8 @@ label, legend, caption, figcaption, th, td {
2666
2666
  height: var(--space-4);
2667
2667
  flex-shrink: 0;
2668
2668
  background: currentColor;
2669
- -webkit-mask: ${iT} center / contain no-repeat;
2670
- mask: ${iT} center / contain no-repeat;
2669
+ -webkit-mask: ${g_} center / contain no-repeat;
2670
+ mask: ${g_} center / contain no-repeat;
2671
2671
  transition-property: transform;
2672
2672
  transition-duration: var(--duration-fast);
2673
2673
  transition-timing-function: var(--ease-out-3);
@@ -2707,16 +2707,16 @@ label, legend, caption, figcaption, th, td {
2707
2707
  transition-duration: 0s;
2708
2708
  }
2709
2709
  }
2710
- `,en=class extends Fe{static styles=[...Fe.styles,hM]};customElements.define(en.tagName,en);var go={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},on=s=>(...o)=>({_$litDirective$:s,values:o}),Mr=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this._$Ct=o,this._$AM=t,this._$Ci=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:uM}=U$,nT=s=>s;var lT=s=>s.strings===void 0,aT=()=>document.createComment(""),rn=(s,o,t)=>{let e=s._$AA.parentNode,a=o===void 0?s._$AB:o._$AA;if(t===void 0){let l=e.insertBefore(aT(),a),c=e.insertBefore(aT(),a);t=new uM(l,c,s,s.options)}else{let l=t._$AB.nextSibling,c=t._$AM,f=c!==s;if(f){let x;t._$AQ?.(s),t._$AM=s,t._$AP!==void 0&&(x=s._$AU)!==c._$AU&&t._$AP(x)}if(l!==a||f){let x=t._$AA;for(;x!==l;){let C=nT(x).nextSibling;nT(e).insertBefore(x,a),x=C}}}return t},Nr=(s,o,t=s)=>(s._$AI(o,t),s),mM={},$p=(s,o=mM)=>s._$AH=o,dT=s=>s._$AH,Sp=s=>{s._$AR(),s._$AA.remove()};var cT=(s,o,t)=>{let e=new Map;for(let a=o;a<=t;a++)e.set(s[a],a);return e},ws=on(class extends Mr{constructor(s){if(super(s),s.type!==go.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let a=[],l=[],c=0;for(let f of s)a[c]=e?e(f,c):c,l[c]=t(f,c),c++;return{values:l,keys:a}}render(s,o,t){return this.dt(s,o,t).values}update(s,[o,t,e]){let a=dT(s),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(a))return this.ut=c,l;let f=this.ut??=[],x=[],C,S,w=0,R=a.length-1,_=0,z=l.length-1;for(;w<=R&&_<=z;)if(a[w]===null)w++;else if(a[R]===null)R--;else if(f[w]===c[_])x[_]=Nr(a[w],l[_]),w++,_++;else if(f[R]===c[z])x[z]=Nr(a[R],l[z]),R--,z--;else if(f[w]===c[z])x[z]=Nr(a[w],l[z]),rn(s,x[z+1],a[w]),w++,z--;else if(f[R]===c[_])x[_]=Nr(a[R],l[_]),rn(s,a[w],a[R]),R--,_++;else if(C===void 0&&(C=cT(c,_,z),S=cT(f,w,R)),C.has(f[w]))if(C.has(f[R])){let F=S.get(c[_]),J=F!==void 0?a[F]:null;if(J===null){let U=rn(s,a[w]);Nr(U,l[_]),x[_]=U}else x[_]=Nr(J,l[_]),rn(s,a[w],J),a[F]=null;_++}else Sp(a[R]),R--;else Sp(a[w]),w++;for(;_<=z;){let F=rn(s,x[z+1]);Nr(F,l[_]),x[_++]=F}for(;w<=R;){let F=a[w++];F!==null&&Sp(F)}return this.ut=c,$p(s,x),ie}});var Io=on(class extends Mr{constructor(s){if(super(s),s.type!==go.PROPERTY&&s.type!==go.ATTRIBUTE&&s.type!==go.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!lT(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[o]){if(o===ie||o===I)return o;let t=s.element,e=s.name;if(s.type===go.PROPERTY){if(o===t[e])return ie}else if(s.type===go.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return ie}else if(s.type===go.ATTRIBUTE&&t.getAttribute(e)===o+"")return ie;return $p(s),o}});var Tp=new Map,pT=(s,o)=>{for(let[t,e]of Tp)t!==s&&e();Tp.clear(),Tp.set(s,o)},Wv=s=>{Tp.delete(s)};var Dr=Math.min,me=Math.max,od=Math.round,rd=Math.floor,vo=s=>({x:s,y:s}),fM={left:"right",right:"left",bottom:"top",top:"bottom"};function Kv(s,o,t){return me(s,Dr(o,t))}function sn(s,o){return typeof s=="function"?s(o):s}function fr(s){return s.split("-")[0]}function nn(s){return s.split("-")[1]}function Gv(s){return s==="x"?"y":"x"}function Yv(s){return s==="y"?"height":"width"}function Oo(s){let o=s[0];return o==="t"||o==="b"?"y":"x"}function Xv(s){return Gv(Oo(s))}function mT(s,o,t){t===void 0&&(t=!1);let e=nn(s),a=Xv(s),l=Yv(a),c=a==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=ed(c)),[c,ed(c)]}function fT(s){let o=ed(s);return[_p(s),o,_p(o)]}function _p(s){return s.includes("start")?s.replace("start","end"):s.replace("end","start")}var hT=["left","right"],uT=["right","left"],gM=["top","bottom"],vM=["bottom","top"];function bM(s,o,t){switch(s){case"top":case"bottom":return t?o?uT:hT:o?hT:uT;case"left":case"right":return o?gM:vM;default:return[]}}function gT(s,o,t,e){let a=nn(s),l=bM(fr(s),t==="start",e);return a&&(l=l.map(c=>c+"-"+a),o&&(l=l.concat(l.map(_p)))),l}function ed(s){let o=fr(s);return fM[o]+s.slice(o.length)}function xM(s){return{top:0,right:0,bottom:0,left:0,...s}}function vT(s){return typeof s!="number"?xM(s):{top:s,right:s,bottom:s,left:s}}function ks(s){let{x:o,y:t,width:e,height:a}=s;return{width:e,height:a,top:t,left:o,right:o+e,bottom:t+a,x:o,y:t}}function bT(s,o,t){let{reference:e,floating:a}=s,l=Oo(o),c=Xv(o),f=Yv(c),x=fr(o),C=l==="y",S=e.x+e.width/2-a.width/2,w=e.y+e.height/2-a.height/2,R=e[f]/2-a[f]/2,_;switch(x){case"top":_={x:S,y:e.y-a.height};break;case"bottom":_={x:S,y:e.y+e.height};break;case"right":_={x:e.x+e.width,y:w};break;case"left":_={x:e.x-a.width,y:w};break;default:_={x:e.x,y:e.y}}switch(nn(o)){case"start":_[c]-=R*(t&&C?-1:1);break;case"end":_[c]+=R*(t&&C?-1:1);break}return _}async function xT(s,o){var t;o===void 0&&(o={});let{x:e,y:a,platform:l,rects:c,elements:f,strategy:x}=s,{boundary:C="clippingAncestors",rootBoundary:S="viewport",elementContext:w="floating",altBoundary:R=!1,padding:_=0}=sn(o,s),z=vT(_),J=f[R?w==="floating"?"reference":"floating":w],U=ks(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(f.floating)),boundary:C,rootBoundary:S,strategy:x})),D=w==="floating"?{x:e,y:a,width:c.floating.width,height:c.floating.height}:c.reference,P=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),K=await(l.isElement==null?void 0:l.isElement(P))?await(l.getScale==null?void 0:l.getScale(P))||{x:1,y:1}:{x:1,y:1},Zt=ks(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:D,offsetParent:P,strategy:x}):D);return{top:(U.top-Zt.top+z.top)/K.y,bottom:(Zt.bottom-U.bottom+z.bottom)/K.y,left:(U.left-Zt.left+z.left)/K.x,right:(Zt.right-U.right+z.right)/K.x}}var yM=50,yT=async(s,o,t)=>{let{placement:e="bottom",strategy:a="absolute",middleware:l=[],platform:c}=t,f=c.detectOverflow?c:{...c,detectOverflow:xT},x=await(c.isRTL==null?void 0:c.isRTL(o)),C=await c.getElementRects({reference:s,floating:o,strategy:a}),{x:S,y:w}=bT(C,e,x),R=e,_=0,z={};for(let F=0;F<l.length;F++){let J=l[F];if(!J)continue;let{name:U,fn:D}=J,{x:P,y:K,data:Zt,reset:ue}=await D({x:S,y:w,initialPlacement:e,placement:R,strategy:a,middlewareData:z,rects:C,platform:f,elements:{reference:s,floating:o}});S=P??S,w=K??w,z[U]={...z[U],...Zt},ue&&_<yM&&(_++,typeof ue=="object"&&(ue.placement&&(R=ue.placement),ue.rects&&(C=ue.rects===!0?await c.getElementRects({reference:s,floating:o,strategy:a}):ue.rects),{x:S,y:w}=bT(C,R,x)),F=-1)}return{x:S,y:w,placement:R,strategy:a,middlewareData:z}};var wT=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(o){var t,e;let{placement:a,middlewareData:l,rects:c,initialPlacement:f,platform:x,elements:C}=o,{mainAxis:S=!0,crossAxis:w=!0,fallbackPlacements:R,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:F=!0,...J}=sn(s,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let U=fr(a),D=Oo(f),P=fr(f)===f,K=await(x.isRTL==null?void 0:x.isRTL(C.floating)),Zt=R||(P||!F?[ed(f)]:fT(f)),ue=z!=="none";!R&&ue&&Zt.push(...gT(f,F,z,K));let $o=[f,...Zt],Zr=await x.detectOverflow(o,J),ts=[],cr=((e=l.flip)==null?void 0:e.overflows)||[];if(S&&ts.push(Zr[U]),w){let es=mT(a,c,K);ts.push(Zr[es[0]],Zr[es[1]])}if(cr=[...cr,{placement:a,overflows:ts}],!ts.every(es=>es<=0)){var kl,El;let es=(((kl=l.flip)==null?void 0:kl.index)||0)+1,Km=$o[es];if(Km&&(!(w==="alignment"?D!==Oo(Km):!1)||cr.every(uo=>Oo(uo.placement)===D?uo.overflows[0]>0:!0)))return{data:{index:es,overflows:cr},reset:{placement:Km}};let $l=(El=cr.filter(os=>os.overflows[0]<=0).sort((os,uo)=>os.overflows[1]-uo.overflows[1])[0])==null?void 0:El.placement;if(!$l)switch(_){case"bestFit":{var Cl;let os=(Cl=cr.filter(uo=>{if(ue){let _r=Oo(uo.placement);return _r===D||_r==="y"}return!0}).map(uo=>[uo.placement,uo.overflows.filter(_r=>_r>0).reduce((_r,Pz)=>_r+Pz,0)]).sort((uo,_r)=>uo[1]-_r[1])[0])==null?void 0:Cl[0];os&&($l=os);break}case"initialPlacement":$l=f;break}if(a!==$l)return{reset:{placement:$l}}}return{}}}};var wM=new Set(["left","top"]);async function kM(s,o){let{placement:t,platform:e,elements:a}=s,l=await(e.isRTL==null?void 0:e.isRTL(a.floating)),c=fr(t),f=nn(t),x=Oo(t)==="y",C=wM.has(c)?-1:1,S=l&&x?-1:1,w=sn(o,s),{mainAxis:R,crossAxis:_,alignmentAxis:z}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return f&&typeof z=="number"&&(_=f==="end"?z*-1:z),x?{x:_*S,y:R*C}:{x:R*C,y:_*S}}var kT=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(o){var t,e;let{x:a,y:l,placement:c,middlewareData:f}=o,x=await kM(o,s);return c===((t=f.offset)==null?void 0:t.placement)&&(e=f.arrow)!=null&&e.alignmentOffset?{}:{x:a+x.x,y:l+x.y,data:{...x,placement:c}}}}},ET=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(o){let{x:t,y:e,placement:a,platform:l}=o,{mainAxis:c=!0,crossAxis:f=!1,limiter:x={fn:U=>{let{x:D,y:P}=U;return{x:D,y:P}}},...C}=sn(s,o),S={x:t,y:e},w=await l.detectOverflow(o,C),R=Oo(fr(a)),_=Gv(R),z=S[_],F=S[R];if(c){let U=_==="y"?"top":"left",D=_==="y"?"bottom":"right",P=z+w[U],K=z-w[D];z=Kv(P,z,K)}if(f){let U=R==="y"?"top":"left",D=R==="y"?"bottom":"right",P=F+w[U],K=F-w[D];F=Kv(P,F,K)}let J=x.fn({...o,[_]:z,[R]:F});return{...J,data:{x:J.x-t,y:J.y-e,enabled:{[_]:c,[R]:f}}}}}};var CT=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(o){var t,e;let{placement:a,rects:l,platform:c,elements:f}=o,{apply:x=()=>{},...C}=sn(s,o),S=await c.detectOverflow(o,C),w=fr(a),R=nn(a),_=Oo(a)==="y",{width:z,height:F}=l.floating,J,U;w==="top"||w==="bottom"?(J=w,U=R===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(U=w,J=R==="end"?"top":"bottom");let D=F-S.top-S.bottom,P=z-S.left-S.right,K=Dr(F-S[J],D),Zt=Dr(z-S[U],P),ue=!o.middlewareData.shift,$o=K,Zr=Zt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(Zr=P),(e=o.middlewareData.shift)!=null&&e.enabled.y&&($o=D),ue&&!R){let cr=me(S.left,0),kl=me(S.right,0),El=me(S.top,0),Cl=me(S.bottom,0);_?Zr=z-2*(cr!==0||kl!==0?cr+kl:me(S.left,S.right)):$o=F-2*(El!==0||Cl!==0?El+Cl:me(S.top,S.bottom))}await x({...o,availableWidth:Zr,availableHeight:$o});let ts=await c.getDimensions(f.floating);return z!==ts.width||F!==ts.height?{reset:{rects:!0}}:{}}}};function Ap(){return typeof window<"u"}function Cs(s){return ST(s)?(s.nodeName||"").toLowerCase():"#document"}function ke(s){var o;return(s==null||(o=s.ownerDocument)==null?void 0:o.defaultView)||window}function bo(s){var o;return(o=(ST(s)?s.ownerDocument:s.document)||window.document)==null?void 0:o.documentElement}function ST(s){return Ap()?s instanceof Node||s instanceof ke(s).Node:!1}function to(s){return Ap()?s instanceof Element||s instanceof ke(s).Element:!1}function Lo(s){return Ap()?s instanceof HTMLElement||s instanceof ke(s).HTMLElement:!1}function $T(s){return!Ap()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof ke(s).ShadowRoot}function ln(s){let{overflow:o,overflowX:t,overflowY:e,display:a}=eo(s);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&a!=="inline"&&a!=="contents"}function TT(s){return/^(table|td|th)$/.test(Cs(s))}function sd(s){try{if(s.matches(":popover-open"))return!0}catch{}try{return s.matches(":modal")}catch{return!1}}var EM=/transform|translate|scale|rotate|perspective|filter/,CM=/paint|layout|strict|content/,Es=s=>!!s&&s!=="none",Jv;function Rp(s){let o=to(s)?eo(s):s;return Es(o.transform)||Es(o.translate)||Es(o.scale)||Es(o.rotate)||Es(o.perspective)||!Ip()&&(Es(o.backdropFilter)||Es(o.filter))||EM.test(o.willChange||"")||CM.test(o.contain||"")}function _T(s){let o=gr(s);for(;Lo(o)&&!$s(o);){if(Rp(o))return o;if(sd(o))return null;o=gr(o)}return null}function Ip(){return Jv==null&&(Jv=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Jv}function $s(s){return/^(html|body|#document)$/.test(Cs(s))}function eo(s){return ke(s).getComputedStyle(s)}function id(s){return to(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function gr(s){if(Cs(s)==="html")return s;let o=s.assignedSlot||s.parentNode||$T(s)&&s.host||bo(s);return $T(o)?o.host:o}function AT(s){let o=gr(s);return $s(o)?s.ownerDocument?s.ownerDocument.body:s.body:Lo(o)&&ln(o)?o:AT(o)}function an(s,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=AT(s),l=a===((e=s.ownerDocument)==null?void 0:e.body),c=ke(a);if(l){let f=Op(c);return o.concat(c,c.visualViewport||[],ln(a)?a:[],f&&t?an(f):[])}else return o.concat(a,an(a,[],t))}function Op(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function LT(s){let o=eo(s),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,a=Lo(s),l=a?s.offsetWidth:t,c=a?s.offsetHeight:e,f=od(t)!==l||od(e)!==c;return f&&(t=l,e=c),{width:t,height:e,$:f}}function Zv(s){return to(s)?s:s.contextElement}function dn(s){let o=Zv(s);if(!Lo(o))return vo(1);let t=o.getBoundingClientRect(),{width:e,height:a,$:l}=LT(o),c=(l?od(t.width):t.width)/e,f=(l?od(t.height):t.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}var $M=vo(0);function zT(s){let o=ke(s);return!Ip()||!o.visualViewport?$M:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function SM(s,o,t){return o===void 0&&(o=!1),!t||o&&t!==ke(s)?!1:o}function Ss(s,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=s.getBoundingClientRect(),l=Zv(s),c=vo(1);o&&(e?to(e)&&(c=dn(e)):c=dn(s));let f=SM(l,t,e)?zT(l):vo(0),x=(a.left+f.x)/c.x,C=(a.top+f.y)/c.y,S=a.width/c.x,w=a.height/c.y;if(l){let R=ke(l),_=e&&to(e)?ke(e):e,z=R,F=Op(z);for(;F&&e&&_!==z;){let J=dn(F),U=F.getBoundingClientRect(),D=eo(F),P=U.left+(F.clientLeft+parseFloat(D.paddingLeft))*J.x,K=U.top+(F.clientTop+parseFloat(D.paddingTop))*J.y;x*=J.x,C*=J.y,S*=J.x,w*=J.y,x+=P,C+=K,z=ke(F),F=Op(z)}}return ks({width:S,height:w,x,y:C})}function Lp(s,o){let t=id(s).scrollLeft;return o?o.left+t:Ss(bo(s)).left+t}function MT(s,o){let t=s.getBoundingClientRect(),e=t.left+o.scrollLeft-Lp(s,t),a=t.top+o.scrollTop;return{x:e,y:a}}function TM(s){let{elements:o,rect:t,offsetParent:e,strategy:a}=s,l=a==="fixed",c=bo(e),f=o?sd(o.floating):!1;if(e===c||f&&l)return t;let x={scrollLeft:0,scrollTop:0},C=vo(1),S=vo(0),w=Lo(e);if((w||!w&&!l)&&((Cs(e)!=="body"||ln(c))&&(x=id(e)),w)){let _=Ss(e);C=dn(e),S.x=_.x+e.clientLeft,S.y=_.y+e.clientTop}let R=c&&!w&&!l?MT(c,x):vo(0);return{width:t.width*C.x,height:t.height*C.y,x:t.x*C.x-x.scrollLeft*C.x+S.x+R.x,y:t.y*C.y-x.scrollTop*C.y+S.y+R.y}}function _M(s){return Array.from(s.getClientRects())}function AM(s){let o=bo(s),t=id(s),e=s.ownerDocument.body,a=me(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=me(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+Lp(s),f=-t.scrollTop;return eo(e).direction==="rtl"&&(c+=me(o.clientWidth,e.clientWidth)-a),{width:a,height:l,x:c,y:f}}var RT=25;function RM(s,o){let t=ke(s),e=bo(s),a=t.visualViewport,l=e.clientWidth,c=e.clientHeight,f=0,x=0;if(a){l=a.width,c=a.height;let S=Ip();(!S||S&&o==="fixed")&&(f=a.offsetLeft,x=a.offsetTop)}let C=Lp(e);if(C<=0){let S=e.ownerDocument,w=S.body,R=getComputedStyle(w),_=S.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,z=Math.abs(e.clientWidth-w.clientWidth-_);z<=RT&&(l-=z)}else C<=RT&&(l+=C);return{width:l,height:c,x:f,y:x}}function IM(s,o){let t=Ss(s,!0,o==="fixed"),e=t.top+s.clientTop,a=t.left+s.clientLeft,l=Lo(s)?dn(s):vo(1),c=s.clientWidth*l.x,f=s.clientHeight*l.y,x=a*l.x,C=e*l.y;return{width:c,height:f,x,y:C}}function IT(s,o,t){let e;if(o==="viewport")e=RM(s,t);else if(o==="document")e=AM(bo(s));else if(to(o))e=IM(o,t);else{let a=zT(s);e={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return ks(e)}function NT(s,o){let t=gr(s);return t===o||!to(t)||$s(t)?!1:eo(t).position==="fixed"||NT(t,o)}function OM(s,o){let t=o.get(s);if(t)return t;let e=an(s,[],!1).filter(f=>to(f)&&Cs(f)!=="body"),a=null,l=eo(s).position==="fixed",c=l?gr(s):s;for(;to(c)&&!$s(c);){let f=eo(c),x=Rp(c);!x&&f.position==="fixed"&&(a=null),(l?!x&&!a:!x&&f.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||ln(c)&&!x&&NT(s,c))?e=e.filter(S=>S!==c):a=f,c=gr(c)}return o.set(s,e),e}function LM(s){let{element:o,boundary:t,rootBoundary:e,strategy:a}=s,c=[...t==="clippingAncestors"?sd(o)?[]:OM(o,this._c):[].concat(t),e],f=IT(o,c[0],a),x=f.top,C=f.right,S=f.bottom,w=f.left;for(let R=1;R<c.length;R++){let _=IT(o,c[R],a);x=me(_.top,x),C=Dr(_.right,C),S=Dr(_.bottom,S),w=me(_.left,w)}return{width:C-w,height:S-x,x:w,y:x}}function zM(s){let{width:o,height:t}=LT(s);return{width:o,height:t}}function MM(s,o,t){let e=Lo(o),a=bo(o),l=t==="fixed",c=Ss(s,!0,l,o),f={scrollLeft:0,scrollTop:0},x=vo(0);function C(){x.x=Lp(a)}if(e||!e&&!l)if((Cs(o)!=="body"||ln(a))&&(f=id(o)),e){let _=Ss(o,!0,l,o);x.x=_.x+o.clientLeft,x.y=_.y+o.clientTop}else a&&C();l&&!e&&a&&C();let S=a&&!e&&!l?MT(a,f):vo(0),w=c.left+f.scrollLeft-x.x-S.x,R=c.top+f.scrollTop-x.y-S.y;return{x:w,y:R,width:c.width,height:c.height}}function Qv(s){return eo(s).position==="static"}function OT(s,o){if(!Lo(s)||eo(s).position==="fixed")return null;if(o)return o(s);let t=s.offsetParent;return bo(s)===t&&(t=t.ownerDocument.body),t}function DT(s,o){let t=ke(s);if(sd(s))return t;if(!Lo(s)){let a=gr(s);for(;a&&!$s(a);){if(to(a)&&!Qv(a))return a;a=gr(a)}return t}let e=OT(s,o);for(;e&&TT(e)&&Qv(e);)e=OT(e,o);return e&&$s(e)&&Qv(e)&&!Rp(e)?t:e||_T(s)||t}var NM=async function(s){let o=this.getOffsetParent||DT,t=this.getDimensions,e=await t(s.floating);return{reference:MM(s.reference,await o(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function DM(s){return eo(s).direction==="rtl"}var tb={convertOffsetParentRelativeRectToViewportRelativeRect:TM,getDocumentElement:bo,getClippingRect:LM,getOffsetParent:DT,getElementRects:NM,getClientRects:_M,getDimensions:zM,getScale:dn,isElement:to,isRTL:DM};function HT(s,o){return s.x===o.x&&s.y===o.y&&s.width===o.width&&s.height===o.height}function HM(s,o){let t=null,e,a=bo(s);function l(){var f;clearTimeout(e),(f=t)==null||f.disconnect(),t=null}function c(f,x){f===void 0&&(f=!1),x===void 0&&(x=1),l();let C=s.getBoundingClientRect(),{left:S,top:w,width:R,height:_}=C;if(f||o(),!R||!_)return;let z=rd(w),F=rd(a.clientWidth-(S+R)),J=rd(a.clientHeight-(w+_)),U=rd(S),P={rootMargin:-z+"px "+-F+"px "+-J+"px "+-U+"px",threshold:me(0,Dr(1,x))||1},K=!0;function Zt(ue){let $o=ue[0].intersectionRatio;if($o!==x){if(!K)return c();$o?c(!1,$o):e=setTimeout(()=>{c(!1,1e-7)},1e3)}$o===1&&!HT(C,s.getBoundingClientRect())&&c(),K=!1}try{t=new IntersectionObserver(Zt,{...P,root:a.ownerDocument})}catch{t=new IntersectionObserver(Zt,P)}t.observe(s)}return c(!0),l}function BT(s,o,t,e){e===void 0&&(e={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:x=!1}=e,C=Zv(s),S=a||l?[...C?an(C):[],...o?an(o):[]]:[];S.forEach(U=>{a&&U.addEventListener("scroll",t,{passive:!0}),l&&U.addEventListener("resize",t)});let w=C&&f?HM(C,t):null,R=-1,_=null;c&&(_=new ResizeObserver(U=>{let[D]=U;D&&D.target===C&&_&&o&&(_.unobserve(o),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var P;(P=_)==null||P.observe(o)})),t()}),C&&!x&&_.observe(C),o&&_.observe(o));let z,F=x?Ss(s):null;x&&J();function J(){let U=Ss(s);F&&!HT(F,U)&&t(),F=U,z=requestAnimationFrame(J)}return t(),()=>{var U;S.forEach(D=>{a&&D.removeEventListener("scroll",t),l&&D.removeEventListener("resize",t)}),w?.(),(U=_)==null||U.disconnect(),_=null,x&&cancelAnimationFrame(z)}}var FT=kT;var UT=ET,VT=wT,eb=CT;var qT=(s,o,t)=>{let e=new Map,a={platform:tb,...t},l={...a.platform,_c:e};return yT(s,o,{...a,platform:l})};var PT=()=>new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(()=>s()))),jT=(s,o,t=200)=>{let e=!1,a=()=>{e||(e=!0,s.removeEventListener("transitionend",l),clearTimeout(c),o())},l=()=>a();s.addEventListener("transitionend",l);let c=setTimeout(a,t)},cn=s=>m`
2710
+ `,fn=class extends We{static styles=[...We.styles,XN]};customElements.define(fn.tagName,fn);var wr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},gn=s=>(...o)=>({_$litDirective$:s,values:o}),Po=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,e){this._$Ct=o,this._$AM=t,this._$Ci=e}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var{I:JN}=Q1,v_=s=>s;var x_=s=>s.strings===void 0,b_=()=>document.createComment(""),vn=(s,o,t)=>{let e=s._$AA.parentNode,a=o===void 0?s._$AB:o._$AA;if(t===void 0){let l=e.insertBefore(b_(),a),c=e.insertBefore(b_(),a);t=new JN(l,c,s,s.options)}else{let l=t._$AB.nextSibling,c=t._$AM,m=c!==s;if(m){let x;t._$AQ?.(s),t._$AM=s,t._$AP!==void 0&&(x=s._$AU)!==c._$AU&&t._$AP(x)}if(l!==a||m){let x=t._$AA;for(;x!==l;){let C=v_(x).nextSibling;v_(e).insertBefore(x,a),x=C}}}return t},jo=(s,o,t=s)=>(s._$AI(o,t),s),QN={},Kp=(s,o=QN)=>s._$AH=o,y_=s=>s._$AH,Gp=s=>{s._$AR(),s._$AA.remove()};var w_=(s,o,t)=>{let e=new Map;for(let a=o;a<=t;a++)e.set(s[a],a);return e},Os=gn(class extends Po{constructor(s){if(super(s),s.type!==wr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,o,t){let e;t===void 0?t=o:o!==void 0&&(e=o);let a=[],l=[],c=0;for(let m of s)a[c]=e?e(m,c):c,l[c]=t(m,c),c++;return{values:l,keys:a}}render(s,o,t){return this.dt(s,o,t).values}update(s,[o,t,e]){let a=y_(s),{values:l,keys:c}=this.dt(o,t,e);if(!Array.isArray(a))return this.ut=c,l;let m=this.ut??=[],x=[],C,T,w=0,R=a.length-1,_=0,z=l.length-1;for(;w<=R&&_<=z;)if(a[w]===null)w++;else if(a[R]===null)R--;else if(m[w]===c[_])x[_]=jo(a[w],l[_]),w++,_++;else if(m[R]===c[z])x[z]=jo(a[R],l[z]),R--,z--;else if(m[w]===c[z])x[z]=jo(a[w],l[z]),vn(s,x[z+1],a[w]),w++,z--;else if(m[R]===c[_])x[_]=jo(a[R],l[_]),vn(s,a[w],a[R]),R--,_++;else if(C===void 0&&(C=w_(c,_,z),T=w_(m,w,R)),C.has(m[w]))if(C.has(m[R])){let V=T.get(c[_]),Q=V!==void 0?a[V]:null;if(Q===null){let U=vn(s,a[w]);jo(U,l[_]),x[_]=U}else x[_]=jo(Q,l[_]),vn(s,a[w],Q),a[V]=null;_++}else Gp(a[R]),R--;else Gp(a[w]),w++;for(;_<=z;){let V=vn(s,x[z+1]);jo(V,l[_]),x[_++]=V}for(;w<=R;){let V=a[w++];V!==null&&Gp(V)}return this.ut=c,Kp(s,x),ce}});var Nr=gn(class extends Po{constructor(s){if(super(s),s.type!==wr.PROPERTY&&s.type!==wr.ATTRIBUTE&&s.type!==wr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!x_(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[o]){if(o===ce||o===I)return o;let t=s.element,e=s.name;if(s.type===wr.PROPERTY){if(o===t[e])return ce}else if(s.type===wr.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(e))return ce}else if(s.type===wr.ATTRIBUTE&&t.getAttribute(e)===o+"")return ce;return Kp(s),o}});var Yp=new Map,k_=(s,o)=>{for(let[t,e]of Yp)t!==s&&e();Yp.clear(),Yp.set(s,o)},Ab=s=>{Yp.delete(s)};var Wo=Math.min,ye=Math.max,bd=Math.round,xd=Math.floor,kr=s=>({x:s,y:s}),ZN={left:"right",right:"left",bottom:"top",top:"bottom"};function Rb(s,o,t){return ye(s,Wo(o,t))}function bn(s,o){return typeof s=="function"?s(o):s}function Eo(s){return s.split("-")[0]}function xn(s){return s.split("-")[1]}function Ib(s){return s==="x"?"y":"x"}function Ob(s){return s==="y"?"height":"width"}function Dr(s){let o=s[0];return o==="t"||o==="b"?"y":"x"}function Lb(s){return Ib(Dr(s))}function $_(s,o,t){t===void 0&&(t=!1);let e=xn(s),a=Lb(s),l=Ob(a),c=a==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=vd(c)),[c,vd(c)]}function S_(s){let o=vd(s);return[Xp(s),o,Xp(o)]}function Xp(s){return s.includes("start")?s.replace("start","end"):s.replace("end","start")}var E_=["left","right"],C_=["right","left"],tD=["top","bottom"],eD=["bottom","top"];function rD(s,o,t){switch(s){case"top":case"bottom":return t?o?C_:E_:o?E_:C_;case"left":case"right":return o?tD:eD;default:return[]}}function T_(s,o,t,e){let a=xn(s),l=rD(Eo(s),t==="start",e);return a&&(l=l.map(c=>c+"-"+a),o&&(l=l.concat(l.map(Xp)))),l}function vd(s){let o=Eo(s);return ZN[o]+s.slice(o.length)}function oD(s){return{top:0,right:0,bottom:0,left:0,...s}}function __(s){return typeof s!="number"?oD(s):{top:s,right:s,bottom:s,left:s}}function Ls(s){let{x:o,y:t,width:e,height:a}=s;return{width:e,height:a,top:t,left:o,right:o+e,bottom:t+a,x:o,y:t}}function A_(s,o,t){let{reference:e,floating:a}=s,l=Dr(o),c=Lb(o),m=Ob(c),x=Eo(o),C=l==="y",T=e.x+e.width/2-a.width/2,w=e.y+e.height/2-a.height/2,R=e[m]/2-a[m]/2,_;switch(x){case"top":_={x:T,y:e.y-a.height};break;case"bottom":_={x:T,y:e.y+e.height};break;case"right":_={x:e.x+e.width,y:w};break;case"left":_={x:e.x-a.width,y:w};break;default:_={x:e.x,y:e.y}}switch(xn(o)){case"start":_[c]-=R*(t&&C?-1:1);break;case"end":_[c]+=R*(t&&C?-1:1);break}return _}async function R_(s,o){var t;o===void 0&&(o={});let{x:e,y:a,platform:l,rects:c,elements:m,strategy:x}=s,{boundary:C="clippingAncestors",rootBoundary:T="viewport",elementContext:w="floating",altBoundary:R=!1,padding:_=0}=bn(o,s),z=__(_),Q=m[R?w==="floating"?"reference":"floating":w],U=Ls(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(Q)))==null||t?Q:Q.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:C,rootBoundary:T,strategy:x})),D=w==="floating"?{x:e,y:a,width:c.floating.width,height:c.floating.height}:c.reference,j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),G=await(l.isElement==null?void 0:l.isElement(j))?await(l.getScale==null?void 0:l.getScale(j))||{x:1,y:1}:{x:1,y:1},se=Ls(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:D,offsetParent:j,strategy:x}):D);return{top:(U.top-se.top+z.top)/G.y,bottom:(se.bottom-U.bottom+z.bottom)/G.y,left:(U.left-se.left+z.left)/G.x,right:(se.right-U.right+z.right)/G.x}}var sD=50,I_=async(s,o,t)=>{let{placement:e="bottom",strategy:a="absolute",middleware:l=[],platform:c}=t,m=c.detectOverflow?c:{...c,detectOverflow:R_},x=await(c.isRTL==null?void 0:c.isRTL(o)),C=await c.getElementRects({reference:s,floating:o,strategy:a}),{x:T,y:w}=A_(C,e,x),R=e,_=0,z={};for(let V=0;V<l.length;V++){let Q=l[V];if(!Q)continue;let{name:U,fn:D}=Q,{x:j,y:G,data:se,reset:xe}=await D({x:T,y:w,initialPlacement:e,placement:R,strategy:a,middlewareData:z,rects:C,platform:m,elements:{reference:s,floating:o}});T=j??T,w=G??w,z[U]={...z[U],...se},xe&&_<sD&&(_++,typeof xe=="object"&&(xe.placement&&(R=xe.placement),xe.rects&&(C=xe.rects===!0?await c.getElementRects({reference:s,floating:o,strategy:a}):xe.rects),{x:T,y:w}=A_(C,R,x)),V=-1)}return{x:T,y:w,placement:R,strategy:a,middlewareData:z}};var O_=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(o){var t,e;let{placement:a,middlewareData:l,rects:c,initialPlacement:m,platform:x,elements:C}=o,{mainAxis:T=!0,crossAxis:w=!0,fallbackPlacements:R,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:z="none",flipAlignment:V=!0,...Q}=bn(s,o);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let U=Eo(a),D=Dr(m),j=Eo(m)===m,G=await(x.isRTL==null?void 0:x.isRTL(C.floating)),se=R||(j||!V?[vd(m)]:S_(m)),xe=z!=="none";!R&&xe&&se.push(...T_(m,V,z,G));let Rr=[m,...se],cs=await x.detectOverflow(o,Q),ps=[],vo=((e=l.flip)==null?void 0:e.overflows)||[];if(T&&ps.push(cs[U]),w){let hs=$_(a,c,G);ps.push(cs[hs[0]],cs[hs[1]])}if(vo=[...vo,{placement:a,overflows:ps}],!ps.every(hs=>hs<=0)){var Hl,Bl;let hs=(((Hl=l.flip)==null?void 0:Hl.index)||0)+1,If=Rr[hs];if(If&&(!(w==="alignment"?D!==Dr(If):!1)||vo.every(br=>Dr(br.placement)===D?br.overflows[0]>0:!0)))return{data:{index:hs,overflows:vo},reset:{placement:If}};let Vl=(Bl=vo.filter(us=>us.overflows[0]<=0).sort((us,br)=>us.overflows[1]-br.overflows[1])[0])==null?void 0:Bl.placement;if(!Vl)switch(_){case"bestFit":{var Fl;let us=(Fl=vo.filter(br=>{if(xe){let Do=Dr(br.placement);return Do===D||Do==="y"}return!0}).map(br=>[br.placement,br.overflows.filter(Do=>Do>0).reduce((Do,_5)=>Do+_5,0)]).sort((br,Do)=>br[1]-Do[1])[0])==null?void 0:Fl[0];us&&(Vl=us);break}case"initialPlacement":Vl=m;break}if(a!==Vl)return{reset:{placement:Vl}}}return{}}}};var iD=new Set(["left","top"]);async function nD(s,o){let{placement:t,platform:e,elements:a}=s,l=await(e.isRTL==null?void 0:e.isRTL(a.floating)),c=Eo(t),m=xn(t),x=Dr(t)==="y",C=iD.has(c)?-1:1,T=l&&x?-1:1,w=bn(o,s),{mainAxis:R,crossAxis:_,alignmentAxis:z}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return m&&typeof z=="number"&&(_=m==="end"?z*-1:z),x?{x:_*T,y:R*C}:{x:R*C,y:_*T}}var L_=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(o){var t,e;let{x:a,y:l,placement:c,middlewareData:m}=o,x=await nD(o,s);return c===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:a+x.x,y:l+x.y,data:{...x,placement:c}}}}},z_=function(s){return s===void 0&&(s={}),{name:"shift",options:s,async fn(o){let{x:t,y:e,placement:a,platform:l}=o,{mainAxis:c=!0,crossAxis:m=!1,limiter:x={fn:U=>{let{x:D,y:j}=U;return{x:D,y:j}}},...C}=bn(s,o),T={x:t,y:e},w=await l.detectOverflow(o,C),R=Dr(Eo(a)),_=Ib(R),z=T[_],V=T[R];if(c){let U=_==="y"?"top":"left",D=_==="y"?"bottom":"right",j=z+w[U],G=z-w[D];z=Rb(j,z,G)}if(m){let U=R==="y"?"top":"left",D=R==="y"?"bottom":"right",j=V+w[U],G=V-w[D];V=Rb(j,V,G)}let Q=x.fn({...o,[_]:z,[R]:V});return{...Q,data:{x:Q.x-t,y:Q.y-e,enabled:{[_]:c,[R]:m}}}}}};var M_=function(s){return s===void 0&&(s={}),{name:"size",options:s,async fn(o){var t,e;let{placement:a,rects:l,platform:c,elements:m}=o,{apply:x=()=>{},...C}=bn(s,o),T=await c.detectOverflow(o,C),w=Eo(a),R=xn(a),_=Dr(a)==="y",{width:z,height:V}=l.floating,Q,U;w==="top"||w==="bottom"?(Q=w,U=R===(await(c.isRTL==null?void 0:c.isRTL(m.floating))?"start":"end")?"left":"right"):(U=w,Q=R==="end"?"top":"bottom");let D=V-T.top-T.bottom,j=z-T.left-T.right,G=Wo(V-T[Q],D),se=Wo(z-T[U],j),xe=!o.middlewareData.shift,Rr=G,cs=se;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(cs=j),(e=o.middlewareData.shift)!=null&&e.enabled.y&&(Rr=D),xe&&!R){let vo=ye(T.left,0),Hl=ye(T.right,0),Bl=ye(T.top,0),Fl=ye(T.bottom,0);_?cs=z-2*(vo!==0||Hl!==0?vo+Hl:ye(T.left,T.right)):Rr=V-2*(Bl!==0||Fl!==0?Bl+Fl:ye(T.top,T.bottom))}await x({...o,availableWidth:cs,availableHeight:Rr});let ps=await c.getDimensions(m.floating);return z!==ps.width||V!==ps.height?{reset:{rects:!0}}:{}}}};function Jp(){return typeof window<"u"}function Ms(s){return D_(s)?(s.nodeName||"").toLowerCase():"#document"}function Ae(s){var o;return(s==null||(o=s.ownerDocument)==null?void 0:o.defaultView)||window}function Er(s){var o;return(o=(D_(s)?s.ownerDocument:s.document)||window.document)==null?void 0:o.documentElement}function D_(s){return Jp()?s instanceof Node||s instanceof Ae(s).Node:!1}function nr(s){return Jp()?s instanceof Element||s instanceof Ae(s).Element:!1}function Hr(s){return Jp()?s instanceof HTMLElement||s instanceof Ae(s).HTMLElement:!1}function N_(s){return!Jp()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof Ae(s).ShadowRoot}function wn(s){let{overflow:o,overflowX:t,overflowY:e,display:a}=ar(s);return/auto|scroll|overlay|hidden|clip/.test(o+e+t)&&a!=="inline"&&a!=="contents"}function H_(s){return/^(table|td|th)$/.test(Ms(s))}function yd(s){try{if(s.matches(":popover-open"))return!0}catch{}try{return s.matches(":modal")}catch{return!1}}var aD=/transform|translate|scale|rotate|perspective|filter/,lD=/paint|layout|strict|content/,zs=s=>!!s&&s!=="none",zb;function Qp(s){let o=nr(s)?ar(s):s;return zs(o.transform)||zs(o.translate)||zs(o.scale)||zs(o.rotate)||zs(o.perspective)||!Zp()&&(zs(o.backdropFilter)||zs(o.filter))||aD.test(o.willChange||"")||lD.test(o.contain||"")}function B_(s){let o=Co(s);for(;Hr(o)&&!Ns(o);){if(Qp(o))return o;if(yd(o))return null;o=Co(o)}return null}function Zp(){return zb==null&&(zb=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zb}function Ns(s){return/^(html|body|#document)$/.test(Ms(s))}function ar(s){return Ae(s).getComputedStyle(s)}function wd(s){return nr(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Co(s){if(Ms(s)==="html")return s;let o=s.assignedSlot||s.parentNode||N_(s)&&s.host||Er(s);return N_(o)?o.host:o}function F_(s){let o=Co(s);return Ns(o)?s.ownerDocument?s.ownerDocument.body:s.body:Hr(o)&&wn(o)?o:F_(o)}function yn(s,o,t){var e;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=F_(s),l=a===((e=s.ownerDocument)==null?void 0:e.body),c=Ae(a);if(l){let m=th(c);return o.concat(c,c.visualViewport||[],wn(a)?a:[],m&&t?yn(m):[])}else return o.concat(a,yn(a,[],t))}function th(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function P_(s){let o=ar(s),t=parseFloat(o.width)||0,e=parseFloat(o.height)||0,a=Hr(s),l=a?s.offsetWidth:t,c=a?s.offsetHeight:e,m=bd(t)!==l||bd(e)!==c;return m&&(t=l,e=c),{width:t,height:e,$:m}}function Nb(s){return nr(s)?s:s.contextElement}function kn(s){let o=Nb(s);if(!Hr(o))return kr(1);let t=o.getBoundingClientRect(),{width:e,height:a,$:l}=P_(o),c=(l?bd(t.width):t.width)/e,m=(l?bd(t.height):t.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!m||!Number.isFinite(m))&&(m=1),{x:c,y:m}}var dD=kr(0);function j_(s){let o=Ae(s);return!Zp()||!o.visualViewport?dD:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function cD(s,o,t){return o===void 0&&(o=!1),!t||o&&t!==Ae(s)?!1:o}function Ds(s,o,t,e){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=s.getBoundingClientRect(),l=Nb(s),c=kr(1);o&&(e?nr(e)&&(c=kn(e)):c=kn(s));let m=cD(l,t,e)?j_(l):kr(0),x=(a.left+m.x)/c.x,C=(a.top+m.y)/c.y,T=a.width/c.x,w=a.height/c.y;if(l){let R=Ae(l),_=e&&nr(e)?Ae(e):e,z=R,V=th(z);for(;V&&e&&_!==z;){let Q=kn(V),U=V.getBoundingClientRect(),D=ar(V),j=U.left+(V.clientLeft+parseFloat(D.paddingLeft))*Q.x,G=U.top+(V.clientTop+parseFloat(D.paddingTop))*Q.y;x*=Q.x,C*=Q.y,T*=Q.x,w*=Q.y,x+=j,C+=G,z=Ae(V),V=th(z)}}return Ls({width:T,height:w,x,y:C})}function eh(s,o){let t=wd(s).scrollLeft;return o?o.left+t:Ds(Er(s)).left+t}function W_(s,o){let t=s.getBoundingClientRect(),e=t.left+o.scrollLeft-eh(s,t),a=t.top+o.scrollTop;return{x:e,y:a}}function pD(s){let{elements:o,rect:t,offsetParent:e,strategy:a}=s,l=a==="fixed",c=Er(e),m=o?yd(o.floating):!1;if(e===c||m&&l)return t;let x={scrollLeft:0,scrollTop:0},C=kr(1),T=kr(0),w=Hr(e);if((w||!w&&!l)&&((Ms(e)!=="body"||wn(c))&&(x=wd(e)),w)){let _=Ds(e);C=kn(e),T.x=_.x+e.clientLeft,T.y=_.y+e.clientTop}let R=c&&!w&&!l?W_(c,x):kr(0);return{width:t.width*C.x,height:t.height*C.y,x:t.x*C.x-x.scrollLeft*C.x+T.x+R.x,y:t.y*C.y-x.scrollTop*C.y+T.y+R.y}}function hD(s){return Array.from(s.getClientRects())}function uD(s){let o=Er(s),t=wd(s),e=s.ownerDocument.body,a=ye(o.scrollWidth,o.clientWidth,e.scrollWidth,e.clientWidth),l=ye(o.scrollHeight,o.clientHeight,e.scrollHeight,e.clientHeight),c=-t.scrollLeft+eh(s),m=-t.scrollTop;return ar(e).direction==="rtl"&&(c+=ye(o.clientWidth,e.clientWidth)-a),{width:a,height:l,x:c,y:m}}var V_=25;function mD(s,o){let t=Ae(s),e=Er(s),a=t.visualViewport,l=e.clientWidth,c=e.clientHeight,m=0,x=0;if(a){l=a.width,c=a.height;let T=Zp();(!T||T&&o==="fixed")&&(m=a.offsetLeft,x=a.offsetTop)}let C=eh(e);if(C<=0){let T=e.ownerDocument,w=T.body,R=getComputedStyle(w),_=T.compatMode==="CSS1Compat"&&parseFloat(R.marginLeft)+parseFloat(R.marginRight)||0,z=Math.abs(e.clientWidth-w.clientWidth-_);z<=V_&&(l-=z)}else C<=V_&&(l+=C);return{width:l,height:c,x:m,y:x}}function fD(s,o){let t=Ds(s,!0,o==="fixed"),e=t.top+s.clientTop,a=t.left+s.clientLeft,l=Hr(s)?kn(s):kr(1),c=s.clientWidth*l.x,m=s.clientHeight*l.y,x=a*l.x,C=e*l.y;return{width:c,height:m,x,y:C}}function U_(s,o,t){let e;if(o==="viewport")e=mD(s,t);else if(o==="document")e=uD(Er(s));else if(nr(o))e=fD(o,t);else{let a=j_(s);e={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return Ls(e)}function K_(s,o){let t=Co(s);return t===o||!nr(t)||Ns(t)?!1:ar(t).position==="fixed"||K_(t,o)}function gD(s,o){let t=o.get(s);if(t)return t;let e=yn(s,[],!1).filter(m=>nr(m)&&Ms(m)!=="body"),a=null,l=ar(s).position==="fixed",c=l?Co(s):s;for(;nr(c)&&!Ns(c);){let m=ar(c),x=Qp(c);!x&&m.position==="fixed"&&(a=null),(l?!x&&!a:!x&&m.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||wn(c)&&!x&&K_(s,c))?e=e.filter(T=>T!==c):a=m,c=Co(c)}return o.set(s,e),e}function vD(s){let{element:o,boundary:t,rootBoundary:e,strategy:a}=s,c=[...t==="clippingAncestors"?yd(o)?[]:gD(o,this._c):[].concat(t),e],m=U_(o,c[0],a),x=m.top,C=m.right,T=m.bottom,w=m.left;for(let R=1;R<c.length;R++){let _=U_(o,c[R],a);x=ye(_.top,x),C=Wo(_.right,C),T=Wo(_.bottom,T),w=ye(_.left,w)}return{width:C-w,height:T-x,x:w,y:x}}function bD(s){let{width:o,height:t}=P_(s);return{width:o,height:t}}function xD(s,o,t){let e=Hr(o),a=Er(o),l=t==="fixed",c=Ds(s,!0,l,o),m={scrollLeft:0,scrollTop:0},x=kr(0);function C(){x.x=eh(a)}if(e||!e&&!l)if((Ms(o)!=="body"||wn(a))&&(m=wd(o)),e){let _=Ds(o,!0,l,o);x.x=_.x+o.clientLeft,x.y=_.y+o.clientTop}else a&&C();l&&!e&&a&&C();let T=a&&!e&&!l?W_(a,m):kr(0),w=c.left+m.scrollLeft-x.x-T.x,R=c.top+m.scrollTop-x.y-T.y;return{x:w,y:R,width:c.width,height:c.height}}function Mb(s){return ar(s).position==="static"}function q_(s,o){if(!Hr(s)||ar(s).position==="fixed")return null;if(o)return o(s);let t=s.offsetParent;return Er(s)===t&&(t=t.ownerDocument.body),t}function G_(s,o){let t=Ae(s);if(yd(s))return t;if(!Hr(s)){let a=Co(s);for(;a&&!Ns(a);){if(nr(a)&&!Mb(a))return a;a=Co(a)}return t}let e=q_(s,o);for(;e&&H_(e)&&Mb(e);)e=q_(e,o);return e&&Ns(e)&&Mb(e)&&!Qp(e)?t:e||B_(s)||t}var yD=async function(s){let o=this.getOffsetParent||G_,t=this.getDimensions,e=await t(s.floating);return{reference:xD(s.reference,await o(s.floating),s.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function wD(s){return ar(s).direction==="rtl"}var Db={convertOffsetParentRelativeRectToViewportRelativeRect:pD,getDocumentElement:Er,getClippingRect:vD,getOffsetParent:G_,getElementRects:yD,getClientRects:hD,getDimensions:bD,getScale:kn,isElement:nr,isRTL:wD};function Y_(s,o){return s.x===o.x&&s.y===o.y&&s.width===o.width&&s.height===o.height}function kD(s,o){let t=null,e,a=Er(s);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function c(m,x){m===void 0&&(m=!1),x===void 0&&(x=1),l();let C=s.getBoundingClientRect(),{left:T,top:w,width:R,height:_}=C;if(m||o(),!R||!_)return;let z=xd(w),V=xd(a.clientWidth-(T+R)),Q=xd(a.clientHeight-(w+_)),U=xd(T),j={rootMargin:-z+"px "+-V+"px "+-Q+"px "+-U+"px",threshold:ye(0,Wo(1,x))||1},G=!0;function se(xe){let Rr=xe[0].intersectionRatio;if(Rr!==x){if(!G)return c();Rr?c(!1,Rr):e=setTimeout(()=>{c(!1,1e-7)},1e3)}Rr===1&&!Y_(C,s.getBoundingClientRect())&&c(),G=!1}try{t=new IntersectionObserver(se,{...j,root:a.ownerDocument})}catch{t=new IntersectionObserver(se,j)}t.observe(s)}return c(!0),l}function X_(s,o,t,e){e===void 0&&(e={});let{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:x=!1}=e,C=Nb(s),T=a||l?[...C?yn(C):[],...o?yn(o):[]]:[];T.forEach(U=>{a&&U.addEventListener("scroll",t,{passive:!0}),l&&U.addEventListener("resize",t)});let w=C&&m?kD(C,t):null,R=-1,_=null;c&&(_=new ResizeObserver(U=>{let[D]=U;D&&D.target===C&&_&&o&&(_.unobserve(o),cancelAnimationFrame(R),R=requestAnimationFrame(()=>{var j;(j=_)==null||j.observe(o)})),t()}),C&&!x&&_.observe(C),o&&_.observe(o));let z,V=x?Ds(s):null;x&&Q();function Q(){let U=Ds(s);V&&!Y_(V,U)&&t(),V=U,z=requestAnimationFrame(Q)}return t(),()=>{var U;T.forEach(D=>{a&&D.removeEventListener("scroll",t),l&&D.removeEventListener("resize",t)}),w?.(),(U=_)==null||U.disconnect(),_=null,x&&cancelAnimationFrame(z)}}var J_=L_;var Q_=z_,Z_=O_,Hb=M_;var tA=(s,o,t)=>{let e=new Map,a={platform:Db,...t},l={...a.platform,_c:e};return I_(s,o,{...a,platform:l})};var eA=()=>new Promise(s=>requestAnimationFrame(()=>requestAnimationFrame(()=>s()))),rA=(s,o,t=200)=>{let e=!1,a=()=>{e||(e=!0,s.removeEventListener("transitionend",l),clearTimeout(c),o())},l=()=>a();s.addEventListener("transitionend",l);let c=setTimeout(a,t)},En=s=>f`
2711
2711
  <svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${s}">
2712
2712
  <polygon class="arrow-fill" points="0,0 5,6 10,0" />
2713
2713
  <path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
2714
2714
  </svg>
2715
- `,BM={...tb,getOffsetParent:()=>window},FM=s=>({name:"alignInner",fn(o){let t=s.getElement();if(!t)return{};let e=s.padding??8,{rects:a}=o,l=o.elements.floating,c=l.getBoundingClientRect(),f=t.getBoundingClientRect(),x=f.top-c.top+f.height/2,C=s.getReferenceInner?.(),w=(C?C.getBoundingClientRect().top+C.getBoundingClientRect().height/2:a.reference.y+a.reference.height/2)-x,R=globalThis.innerHeight,_=c.height,z=e,F=R-_-e,J=Math.max(z,Math.min(w,F)),U=l.shadowRoot?.querySelector(".Popup")??l.querySelector(".Popup");if(U&&J!==w){let K=w-J;U.scrollTop=Math.max(0,U.scrollTop-K)}w=J;let D=f.left-c.left;return{x:C?C.getBoundingClientRect().left-D:a.reference.x,y:w,reset:!1}}}),UM=(s,o,t={})=>{let{placement:e="bottom-start",offsetPx:a=4,matchWidth:l=!1,minMatchWidth:c=!1,padding:f=8}=t,C=t.alignToInner?.getElement()!=null?[FM(t.alignToInner)]:[FT(a),VT(),UT({padding:f})];return l?C.push(eb({apply({rects:S,elements:w}){Object.assign(w.floating.style,{width:`${S.reference.width}px`})}})):c&&C.push(eb({apply({rects:S,elements:w}){Object.assign(w.floating.style,{minWidth:`${S.reference.width}px`})}})),qT(s,o,{placement:e,strategy:"fixed",middleware:C,platform:BM})},WT=(s,o,t={})=>{let{onPosition:e,...a}=t;return BT(s,o,()=>{UM(s,o,a).then(l=>{Object.assign(o.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var ae=class{#t;#e;#i;#n;#a;#l;#d;#b;#x;#y;#u;#m;#f;#g;#w;#v;#k;#c=[];#o=null;#p=null;#r=!1;#s=!1;#h=0;get isOpen(){return this.#r}get isAnimating(){return this.#s}get isStarting(){return this.#r&&this.#s}get isEnding(){return!this.#r&&this.#s}get positionerElement(){return this.#o}get renderRoot(){return this.#o?.shadowRoot??this.#o}set placement(o){this.#a=o}set offset(o){this.#l=o}constructor(o,t){this.#t=o,this.#e=t.getAnchor,this.#i=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#a=t.placement??"bottom-start",this.#l=t.offset??4,this.#d=t.styles,this.#b=t.onOpen,this.#x=t.onClose,this.#y=t.onPosition,this.#u=t.renderPopup,this.#m=t.contentContainer,this.#f=t.contentSelector,this.#g=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#v=t.alignToInner,this.#k=t.alignToInnerReference,o.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#z(),Wv(this.#t)}hostUpdated(){if(this.#r?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#u&&(this.#r||this.isEnding)){let o=this.renderRoot;o&&kc(this.#u(this),o)}this.#m&&this.#r&&this.#c.length===0&&this.#O()}open(){if(this.#r)return;this.#h++;let o=this.#h;pT(this.#t,()=>this.close()),this.#r=!0,this.#s=!0,this.#_(),this.#I(),this.#b?.(),this.#t.requestUpdate(),PT().then(()=>{o===this.#h&&(this.#s=!1,this.#t.requestUpdate())})}close(){if(!this.#r)return;this.#h++,this.#s=!0,this.#t.requestUpdate();let o=this.renderRoot?.querySelector(".Popup");if(!o){this.#E();return}jT(o,()=>this.#E())}#E(){this.#r&&(this.#r=!1,this.#s=!1,this.#S(),Wv(this.#t),this.#x?.(),this.#A(),this.#t.requestUpdate())}#C=o=>{if(!this.#r)return;let t=o.composedPath();!t.includes(this.#t)&&!this.#T(t)&&this.close()};#T(o){return this.#o?o.includes(this.#o):!1}#_(){if(this.#o){this.#o.style.display="",this.#$(this.#o);return}let o=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,a=c=>c?Array.isArray(c)?c.flatMap(a):[c]:[],l=[...a(e.styles),...this.#d??[]];if(l.length>0){let c=t.attachShadow({mode:"open"});hc(c,l)}this.#$(t),o.appendChild(t),this.#o=t}#$(o){if(this.#g.length===0)return;let t=getComputedStyle(this.#t);for(let e of this.#g){let a=t.getPropertyValue(e).trim();a&&o.style.setProperty(e,a)}}#A(){this.#o&&(this.#o.style.display="none")}#R(){this.#o?.remove(),this.#o=null}#I(){if(this.#p)return;let o=this.#e(),t=this.#o;!o||!t||(this.#p=WT(o,t,{placement:this.#a,offsetPx:this.#l,matchWidth:this.#i,minMatchWidth:this.#n,onPosition:this.#y,alignToInner:this.#v?{getElement:this.#v,getReferenceInner:this.#k}:void 0}))}#S(){this.#p?.(),this.#p=null}#O(){let o=this.renderRoot?.querySelector(this.#m);if(!o)return;let t=this.#f?Array.from(this.#t.querySelectorAll(`:scope > ${this.#f}`)):Array.from(this.#t.childNodes);for(let e of t)o.appendChild(e),this.#c.push(e)}#L(){for(let o of this.#c)this.#t.appendChild(o);this.#c=[]}#z(){this.#S(),this.#L(),this.#R()}};var gb=L("value-change",{bubbles:!0,composed:!0}),Mp=L("values-change",{bubbles:!0,composed:!0}),VM=g`
2715
+ `,ED={...Db,getOffsetParent:()=>window},CD=s=>({name:"alignInner",fn(o){let t=s.getElement();if(!t)return{};let e=s.padding??8,{rects:a}=o,l=o.elements.floating,c=l.getBoundingClientRect(),m=t.getBoundingClientRect(),x=m.top-c.top+m.height/2,C=s.getReferenceInner?.(),w=(C?C.getBoundingClientRect().top+C.getBoundingClientRect().height/2:a.reference.y+a.reference.height/2)-x,R=globalThis.innerHeight,_=c.height,z=e,V=R-_-e,Q=Math.max(z,Math.min(w,V)),U=l.shadowRoot?.querySelector(".Popup")??l.querySelector(".Popup");if(U&&Q!==w){let G=w-Q;U.scrollTop=Math.max(0,U.scrollTop-G)}w=Q;let D=m.left-c.left;return{x:C?C.getBoundingClientRect().left-D:a.reference.x,y:w,reset:!1}}}),$D=(s,o,t={})=>{let{placement:e="bottom-start",offsetPx:a=4,matchWidth:l=!1,minMatchWidth:c=!1,padding:m=8}=t,C=t.alignToInner?.getElement()!=null?[CD(t.alignToInner)]:[J_(a),Z_(),Q_({padding:m})];return l?C.push(Hb({apply({rects:T,elements:w}){Object.assign(w.floating.style,{width:`${T.reference.width}px`})}})):c&&C.push(Hb({apply({rects:T,elements:w}){Object.assign(w.floating.style,{minWidth:`${T.reference.width}px`})}})),tA(s,o,{placement:e,strategy:"fixed",middleware:C,platform:ED})},oA=(s,o,t={})=>{let{onPosition:e,...a}=t;return X_(s,o,()=>{$D(s,o,a).then(l=>{Object.assign(o.style,{left:`${l.x}px`,top:`${l.y}px`}),e?.(l)})})};var he=class{#t;#e;#i;#n;#a;#l;#d;#b;#x;#y;#u;#m;#f;#g;#w;#v;#k;#c=[];#r=null;#p=null;#o=!1;#s=!1;#h=0;get isOpen(){return this.#o}get isAnimating(){return this.#s}get isStarting(){return this.#o&&this.#s}get isEnding(){return!this.#o&&this.#s}get positionerElement(){return this.#r}get renderRoot(){return this.#r?.shadowRoot??this.#r}set placement(o){this.#a=o}set offset(o){this.#l=o}constructor(o,t){this.#t=o,this.#e=t.getAnchor,this.#i=t.matchWidth??!0,this.#n=t.minMatchWidth??!1,this.#a=t.placement??"bottom-start",this.#l=t.offset??4,this.#d=t.styles,this.#b=t.onOpen,this.#x=t.onClose,this.#y=t.onPosition,this.#u=t.renderPopup,this.#m=t.contentContainer,this.#f=t.contentSelector,this.#g=t.forwardProperties??[],this.#w=t.getOverlayRoot??(()=>document.body),this.#v=t.alignToInner,this.#k=t.alignToInnerReference,o.addController(this)}hostConnected(){document.addEventListener("click",this.#C)}hostDisconnected(){document.removeEventListener("click",this.#C),this.#z(),Ab(this.#t)}hostUpdated(){if(this.#o?this.#t.setAttribute("open",""):this.#t.removeAttribute("open"),this.#u&&(this.#o||this.isEnding)){let o=this.renderRoot;o&&Pc(this.#u(this),o)}this.#m&&this.#o&&this.#c.length===0&&this.#O()}open(){if(this.#o)return;this.#h++;let o=this.#h;k_(this.#t,()=>this.close()),this.#o=!0,this.#s=!0,this.#_(),this.#I(),this.#b?.(),this.#t.requestUpdate(),eA().then(()=>{o===this.#h&&(this.#s=!1,this.#t.requestUpdate())})}close(){if(!this.#o)return;this.#h++,this.#s=!0,this.#t.requestUpdate();let o=this.renderRoot?.querySelector(".Popup");if(!o){this.#E();return}rA(o,()=>this.#E())}#E(){this.#o&&(this.#o=!1,this.#s=!1,this.#S(),Ab(this.#t),this.#x?.(),this.#A(),this.#t.requestUpdate())}#C=o=>{if(!this.#o)return;let t=o.composedPath();!t.includes(this.#t)&&!this.#T(t)&&this.close()};#T(o){return this.#r?o.includes(this.#r):!1}#_(){if(this.#r){this.#r.style.display="",this.#$(this.#r);return}let o=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,a=c=>c?Array.isArray(c)?c.flatMap(a):[c]:[],l=[...a(e.styles),...this.#d??[]];if(l.length>0){let c=t.attachShadow({mode:"open"});zc(c,l)}this.#$(t),o.appendChild(t),this.#r=t}#$(o){if(this.#g.length===0)return;let t=getComputedStyle(this.#t);for(let e of this.#g){let a=t.getPropertyValue(e).trim();a&&o.style.setProperty(e,a)}}#A(){this.#r&&(this.#r.style.display="none")}#R(){this.#r?.remove(),this.#r=null}#I(){if(this.#p)return;let o=this.#e(),t=this.#r;!o||!t||(this.#p=oA(o,t,{placement:this.#a,offsetPx:this.#l,matchWidth:this.#i,minMatchWidth:this.#n,onPosition:this.#y,alignToInner:this.#v?{getElement:this.#v,getReferenceInner:this.#k}:void 0}))}#S(){this.#p?.(),this.#p=null}#O(){let o=this.renderRoot?.querySelector(this.#m);if(!o)return;let t=this.#f?Array.from(this.#t.querySelectorAll(`:scope > ${this.#f}`)):Array.from(this.#t.childNodes);for(let e of t)o.appendChild(e),this.#c.push(e)}#L(){for(let o of this.#c)this.#t.appendChild(o);this.#c=[]}#z(){this.#S(),this.#L(),this.#R()}};var Zb=O("value-change",{bubbles:!0,composed:!0}),oh=O("values-change",{bubbles:!0,composed:!0}),SD=v`
2716
2716
  :host {
2717
2717
  display: block;
2718
2718
  }
2719
- `,qM=g`
2719
+ `,TD=v`
2720
2720
  /* ---- Input area (structural) ---- */
2721
2721
 
2722
2722
  .Chips {
@@ -2783,7 +2783,7 @@ label, legend, caption, figcaption, th, td {
2783
2783
  cursor: pointer;
2784
2784
  flex-shrink: 0;
2785
2785
  }
2786
- `,PM=[g`
2786
+ `,_D=[v`
2787
2787
  .Popup {
2788
2788
  opacity: 1;
2789
2789
  transform: translateY(0);
@@ -2820,7 +2820,7 @@ label, legend, caption, figcaption, th, td {
2820
2820
  text-overflow: ellipsis;
2821
2821
  white-space: nowrap;
2822
2822
  }
2823
- `],KT,GT,YT,XT,JT,QT,ZT,t_,e_,o_,pn,bt,ob,rb,sb,ib,nb,ab,lb,G,r_,db,cb,vr,zo,pb,hb,zp,Ts,Vt,nd,_s,ub,Np,Dp,Hp,mb,fb,Bp,Fp,Up,Vp,qp,Pp,re=class extends(o_=b,e_=[h({attribute:!1})],t_=[h({type:String})],ZT=[h({attribute:!1})],QT=[h({type:Boolean,reflect:!0})],JT=[h({type:String})],XT=[h({type:Boolean,reflect:!0})],YT=[h({type:String})],GT=[E()],KT=[E()],o_){constructor(){super();n(this,G);n(this,pn);n(this,ob,i(bt,8,this,[])),i(bt,11,this);n(this,rb,i(bt,12,this,"")),i(bt,15,this);n(this,sb,i(bt,16,this,new Set)),i(bt,19,this);n(this,ib,i(bt,20,this,!1)),i(bt,23,this);n(this,nb,i(bt,24,this,"Search...")),i(bt,27,this);n(this,ab,i(bt,28,this,!1)),i(bt,31,this);n(this,lb,i(bt,32,this,"")),i(bt,35,this);n(this,db,i(bt,36,this,-1)),i(bt,39,this);n(this,pb,i(bt,40,this,"")),i(bt,43,this);n(this,Vt,new ae(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:PM,onOpen:()=>{if(p(this,G,-1,zo),!this.multiple){p(this,G,"",Ts);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(p(this,G,-1,zo),!this.multiple){let t=this.options.find(e=>e.value===this.value);p(this,G,t?.label??"",Ts)}},renderPopup:t=>{let e=r(this,G,ub),a=e.length===0;return m`
2823
+ `],sA,iA,nA,aA,lA,dA,cA,pA,hA,uA,Cn,kt,Bb,Fb,Vb,Ub,qb,Pb,jb,Y,mA,Wb,Kb,$o,Br,Gb,Yb,rh,Hs,jt,kd,Bs,Xb,sh,ih,nh,Jb,Qb,ah,lh,dh,ch,ph,hh,le=class extends(uA=b,hA=[u({attribute:!1})],pA=[u({type:String})],cA=[u({attribute:!1})],dA=[u({type:Boolean,reflect:!0})],lA=[u({type:String})],aA=[u({type:Boolean,reflect:!0})],nA=[u({type:String})],iA=[E()],sA=[E()],uA){constructor(){super();n(this,Y);n(this,Cn);n(this,Bb,i(kt,8,this,[])),i(kt,11,this);n(this,Fb,i(kt,12,this,"")),i(kt,15,this);n(this,Vb,i(kt,16,this,new Set)),i(kt,19,this);n(this,Ub,i(kt,20,this,!1)),i(kt,23,this);n(this,qb,i(kt,24,this,"Search...")),i(kt,27,this);n(this,Pb,i(kt,28,this,!1)),i(kt,31,this);n(this,jb,i(kt,32,this,"")),i(kt,35,this);n(this,Wb,i(kt,36,this,-1)),i(kt,39,this);n(this,Gb,i(kt,40,this,"")),i(kt,43,this);n(this,jt,new he(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:_D,onOpen:()=>{if(p(this,Y,-1,Br),!this.multiple){p(this,Y,"",Hs);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(p(this,Y,-1,Br),!this.multiple){let t=this.options.find(e=>e.value===this.value);p(this,Y,t?.label??"",Hs)}},renderPopup:t=>{let e=r(this,Y,Xb),a=e.length===0;return f`
2824
2824
  <div
2825
2825
  class="Popup"
2826
2826
  ?data-starting-style="${t.isStarting}"
@@ -2829,19 +2829,19 @@ label, legend, caption, figcaption, th, td {
2829
2829
  <dui-scroll-area>
2830
2830
  <div
2831
2831
  class="List"
2832
- id="${r(this,_s)}"
2832
+ id="${r(this,Bs)}"
2833
2833
  role="listbox"
2834
- aria-labelledby="${r(this,nd)}"
2834
+ aria-labelledby="${r(this,kd)}"
2835
2835
  ?data-empty="${a}"
2836
- @mousedown="${r(this,Fp)}"
2837
- @mousemove="${r(this,Up)}"
2836
+ @mousedown="${r(this,lh)}"
2837
+ @mousemove="${r(this,dh)}"
2838
2838
  >
2839
- ${ws(e,l=>l.value,r(this,Pp))}
2840
- ${a?m` <div class="Empty">No results</div> `:I}
2839
+ ${Os(e,l=>l.value,r(this,hh))}
2840
+ ${a?f` <div class="Empty">No results</div> `:I}
2841
2841
  </div>
2842
2842
  </dui-scroll-area>
2843
2843
  </div>
2844
- `}}));n(this,nd,`combobox-input-${crypto.randomUUID().slice(0,8)}`);n(this,_s,`combobox-list-${crypto.randomUUID().slice(0,8)}`);n(this,Np,t=>{let e=t.target;p(this,G,e.value,Ts),r(this,Vt).isOpen||this.disabled||r(this,Vt).open(),p(this,G,-1,zo)});n(this,Dp,()=>{!r(this,Vt).isOpen&&!this.disabled&&r(this,Vt).open()});n(this,Hp,t=>{let e=r(this,G,ub);switch(t.key){case"ArrowDown":t.preventDefault(),r(this,Vt).isOpen?p(this,G,Math.min(r(this,G,vr)+1,e.length-1),zo):this.disabled||r(this,Vt).open();break;case"ArrowUp":t.preventDefault(),r(this,Vt).isOpen?p(this,G,Math.max(r(this,G,vr)-1,0),zo):this.disabled||r(this,Vt).open();break;case"Enter":{if(t.preventDefault(),r(this,Vt).isOpen){let a=r(this,G,vr)>=0?r(this,G,vr):0,l=e[a];l&&u(this,G,mb).call(this,l)}else this.disabled||r(this,Vt).open();break}case"Escape":r(this,Vt).isOpen&&(t.preventDefault(),p(this,G,"",Ts),r(this,Vt).close());break;case"Tab":r(this,Vt).isOpen&&r(this,Vt).close();break;case"Home":r(this,Vt).isOpen&&(t.preventDefault(),p(this,G,0,zo));break;case"End":r(this,Vt).isOpen&&(t.preventDefault(),p(this,G,e.length-1,zo));break;case"Backspace":if(this.multiple&&r(this,G,zp)===""&&this.values.size>0){let a=Array.from(this.values).at(-1);a&&u(this,G,fb).call(this,a)}break}});n(this,Bp,t=>{u(this,G,mb).call(this,t)});n(this,Fp,t=>{t.preventDefault()});n(this,Up,()=>{r(this,G,vr)!==-1&&p(this,G,-1,zo)});n(this,Vp,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});n(this,qp,t=>{let a=this.options.find(l=>l.value===t)?.label??t;return m`
2844
+ `}}));n(this,kd,`combobox-input-${crypto.randomUUID().slice(0,8)}`);n(this,Bs,`combobox-list-${crypto.randomUUID().slice(0,8)}`);n(this,sh,t=>{let e=t.target;p(this,Y,e.value,Hs),r(this,jt).isOpen||this.disabled||r(this,jt).open(),p(this,Y,-1,Br)});n(this,ih,()=>{!r(this,jt).isOpen&&!this.disabled&&r(this,jt).open()});n(this,nh,t=>{let e=r(this,Y,Xb);switch(t.key){case"ArrowDown":t.preventDefault(),r(this,jt).isOpen?p(this,Y,Math.min(r(this,Y,$o)+1,e.length-1),Br):this.disabled||r(this,jt).open();break;case"ArrowUp":t.preventDefault(),r(this,jt).isOpen?p(this,Y,Math.max(r(this,Y,$o)-1,0),Br):this.disabled||r(this,jt).open();break;case"Enter":{if(t.preventDefault(),r(this,jt).isOpen){let a=r(this,Y,$o)>=0?r(this,Y,$o):0,l=e[a];l&&h(this,Y,Jb).call(this,l)}else this.disabled||r(this,jt).open();break}case"Escape":r(this,jt).isOpen&&(t.preventDefault(),p(this,Y,"",Hs),r(this,jt).close());break;case"Tab":r(this,jt).isOpen&&r(this,jt).close();break;case"Home":r(this,jt).isOpen&&(t.preventDefault(),p(this,Y,0,Br));break;case"End":r(this,jt).isOpen&&(t.preventDefault(),p(this,Y,e.length-1,Br));break;case"Backspace":if(this.multiple&&r(this,Y,rh)===""&&this.values.size>0){let a=Array.from(this.values).at(-1);a&&h(this,Y,Qb).call(this,a)}break}});n(this,ah,t=>{h(this,Y,Jb).call(this,t)});n(this,lh,t=>{t.preventDefault()});n(this,dh,()=>{r(this,Y,$o)!==-1&&p(this,Y,-1,Br)});n(this,ch,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});n(this,ph,t=>{let a=this.options.find(l=>l.value===t)?.label??t;return f`
2845
2845
  <span class="Chip">
2846
2846
  <span class="ChipLabel">${a}</span>
2847
2847
  <button
@@ -2849,61 +2849,61 @@ label, legend, caption, figcaption, th, td {
2849
2849
  type="button"
2850
2850
  tabindex="-1"
2851
2851
  @mousedown="${l=>l.preventDefault()}"
2852
- @click="${l=>{l.stopPropagation(),u(this,G,fb).call(this,t)}}"
2852
+ @click="${l=>{l.stopPropagation(),h(this,Y,Qb).call(this,t)}}"
2853
2853
  >
2854
2854
  <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>
2855
2855
  </button>
2856
2856
  </span>
2857
- `});n(this,Pp,(t,e)=>{let a=this.multiple?this.values.has(t.value):t.value===this.value,l=e===r(this,G,vr);return m`
2857
+ `});n(this,hh,(t,e)=>{let a=this.multiple?this.values.has(t.value):t.value===this.value,l=e===r(this,Y,$o);return f`
2858
2858
  <div
2859
2859
  class="Item"
2860
2860
  role="option"
2861
- id="${r(this,_s)}-option-${e}"
2861
+ id="${r(this,Bs)}-option-${e}"
2862
2862
  aria-selected="${a}"
2863
2863
  ?data-selected="${a}"
2864
2864
  ?data-highlighted="${l}"
2865
- @click="${()=>r(this,Bp).call(this,t)}"
2865
+ @click="${()=>r(this,ah).call(this,t)}"
2866
2866
  >
2867
2867
  <span class="ItemText">${t.label}</span>
2868
2868
  <span class="ItemIndicator">
2869
- ${a?m`<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="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
2869
+ ${a?f`<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="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
2870
2870
  </span>
2871
2871
  </div>
2872
- `});p(this,pn,this.attachInternals())}willUpdate(){u(this,G,r_).call(this)}render(){let t=m`
2872
+ `});p(this,Cn,this.attachInternals())}willUpdate(){h(this,Y,mA).call(this)}render(){let t=f`
2873
2873
  <input
2874
2874
  class="Input"
2875
- id="${r(this,nd)}"
2875
+ id="${r(this,kd)}"
2876
2876
  type="text"
2877
2877
  role="combobox"
2878
2878
  autocomplete="off"
2879
2879
  aria-haspopup="listbox"
2880
- aria-expanded="${r(this,Vt).isOpen}"
2881
- aria-controls="${r(this,_s)}"
2882
- aria-activedescendant="${r(this,G,vr)>=0?`${r(this,_s)}-option-${r(this,G,vr)}`:I}"
2883
- .value="${Io(r(this,G,zp))}"
2880
+ aria-expanded="${r(this,jt).isOpen}"
2881
+ aria-controls="${r(this,Bs)}"
2882
+ aria-activedescendant="${r(this,Y,$o)>=0?`${r(this,Bs)}-option-${r(this,Y,$o)}`:I}"
2883
+ .value="${Nr(r(this,Y,rh))}"
2884
2884
  .placeholder="${this.placeholder}"
2885
2885
  ?disabled="${this.disabled}"
2886
- @input="${r(this,Np)}"
2887
- @focus="${r(this,Dp)}"
2888
- @keydown="${r(this,Hp)}"
2886
+ @input="${r(this,sh)}"
2887
+ @focus="${r(this,ih)}"
2888
+ @keydown="${r(this,nh)}"
2889
2889
  />
2890
- `;return this.multiple?m`
2890
+ `;return this.multiple?f`
2891
2891
  <div
2892
2892
  class="Chips"
2893
2893
  part="chips"
2894
2894
  ?data-disabled="${this.disabled}"
2895
- @click="${r(this,Vp)}"
2895
+ @click="${r(this,ch)}"
2896
2896
  >
2897
- ${ws(Array.from(this.values),e=>e,r(this,qp))}
2897
+ ${Os(Array.from(this.values),e=>e,r(this,ph))}
2898
2898
  ${t}
2899
2899
  <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>
2900
2900
  </div>
2901
- `:m`
2901
+ `:f`
2902
2902
  <div class="InputWrapper" part="input-wrapper">
2903
2903
  ${t}
2904
2904
  <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>
2905
2905
  </div>
2906
- `}};bt=T(o_),pn=new WeakMap,ob=new WeakMap,rb=new WeakMap,sb=new WeakMap,ib=new WeakMap,nb=new WeakMap,ab=new WeakMap,lb=new WeakMap,G=new WeakSet,r_=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);r(this,pn).setFormValue(t)}else r(this,pn).setFormValue(this.value||null)},db=new WeakMap,pb=new WeakMap,Vt=new WeakMap,nd=new WeakMap,_s=new WeakMap,ub=function(){let t=r(this,G,zp).toLowerCase(),e=this.options;return t?e.filter(a=>a.label.toLowerCase().includes(t)):e},Np=new WeakMap,Dp=new WeakMap,Hp=new WeakMap,mb=function(t){if(this.multiple){let e=new Set(this.values),a=!e.has(t.value);a?e.add(t.value):e.delete(t.value),this.values=e,p(this,G,"",Ts),p(this,G,-1,zo),this.dispatchEvent(Mp({value:t.value,selected:a,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,p(this,G,t.label,Ts),this.dispatchEvent(gb({value:t.value,option:t})),r(this,Vt).close()},fb=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(Mp({value:t,selected:!1,values:e}))},Bp=new WeakMap,Fp=new WeakMap,Up=new WeakMap,Vp=new WeakMap,qp=new WeakMap,Pp=new WeakMap,d(bt,4,"options",e_,re,ob),d(bt,4,"value",t_,re,rb),d(bt,4,"values",ZT,re,sb),d(bt,4,"multiple",QT,re,ib),d(bt,4,"placeholder",JT,re,nb),d(bt,4,"disabled",XT,re,ab),d(bt,4,"name",YT,re,lb),cb=d(bt,20,"#highlightedIndex",GT,G,db),vr=cb.get,zo=cb.set,hb=d(bt,20,"#inputValue",KT,G,pb),zp=hb.get,Ts=hb.set,$(bt,re),v(re,"tagName","dui-combobox"),v(re,"formAssociated",!0),v(re,"styles",[y,VM,qM]);var jM=k`
2906
+ `}};kt=S(uA),Cn=new WeakMap,Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,Pb=new WeakMap,jb=new WeakMap,Y=new WeakSet,mA=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);r(this,Cn).setFormValue(t)}else r(this,Cn).setFormValue(this.value||null)},Wb=new WeakMap,Gb=new WeakMap,jt=new WeakMap,kd=new WeakMap,Bs=new WeakMap,Xb=function(){let t=r(this,Y,rh).toLowerCase(),e=this.options;return t?e.filter(a=>a.label.toLowerCase().includes(t)):e},sh=new WeakMap,ih=new WeakMap,nh=new WeakMap,Jb=function(t){if(this.multiple){let e=new Set(this.values),a=!e.has(t.value);a?e.add(t.value):e.delete(t.value),this.values=e,p(this,Y,"",Hs),p(this,Y,-1,Br),this.dispatchEvent(oh({value:t.value,selected:a,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,p(this,Y,t.label,Hs),this.dispatchEvent(Zb({value:t.value,option:t})),r(this,jt).close()},Qb=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(oh({value:t,selected:!1,values:e}))},ah=new WeakMap,lh=new WeakMap,dh=new WeakMap,ch=new WeakMap,ph=new WeakMap,hh=new WeakMap,d(kt,4,"options",hA,le,Bb),d(kt,4,"value",pA,le,Fb),d(kt,4,"values",cA,le,Vb),d(kt,4,"multiple",dA,le,Ub),d(kt,4,"placeholder",lA,le,qb),d(kt,4,"disabled",aA,le,Pb),d(kt,4,"name",nA,le,jb),Kb=d(kt,20,"#highlightedIndex",iA,Y,Wb),$o=Kb.get,Br=Kb.set,Yb=d(kt,20,"#inputValue",sA,Y,Gb),rh=Yb.get,Hs=Yb.set,$(kt,le),g(le,"tagName","dui-combobox"),g(le,"formAssociated",!0),g(le,"styles",[y,SD,TD]);var AD=k`
2907
2907
  /* ---- Chips (multi-select container) ---- */
2908
2908
 
2909
2909
  .Chips {
@@ -3059,13 +3059,13 @@ label, legend, caption, figcaption, th, td {
3059
3059
  color: var(--text-2);
3060
3060
  text-align: center;
3061
3061
  }
3062
- `,hn=class extends re{static styles=[...re.styles,jM]};customElements.define(hn.tagName,hn);var oo=Symbol("dui-command");var ad=(s,o,t,e)=>{if(!s)return 1;let a=s.toLowerCase(),l=o.toLowerCase(),c=t.toLowerCase();if(l===a)return 1;if(l.startsWith(a))return .8;if(c.startsWith(a))return .75;if(l.includes(a))return .7;if(c.includes(a))return .6;for(let f of e)if(f.toLowerCase().startsWith(a))return .5;for(let f of e)if(f.toLowerCase().includes(a))return .4;return 0};var WM=L("select",{bubbles:!0,composed:!0}),KM=L("search-change",{bubbles:!0,composed:!0}),GM=L("escape",{bubbles:!0,composed:!0}),YM=0,XM=()=>`dui-command-${++YM}`,JM=g`
3062
+ `,$n=class extends le{static styles=[...le.styles,AD]};customElements.define($n.tagName,$n);var lr=Symbol("dui-command");var Ed=(s,o,t,e)=>{if(!s)return 1;let a=s.toLowerCase(),l=o.toLowerCase(),c=t.toLowerCase();if(l===a)return 1;if(l.startsWith(a))return .8;if(c.startsWith(a))return .75;if(l.includes(a))return .7;if(c.includes(a))return .6;for(let m of e)if(m.toLowerCase().startsWith(a))return .5;for(let m of e)if(m.toLowerCase().includes(a))return .4;return 0};var RD=O("select",{bubbles:!0,composed:!0}),ID=O("search-change",{bubbles:!0,composed:!0}),OD=O("escape",{bubbles:!0,composed:!0}),LD=0,zD=()=>`dui-command-${++LD}`,MD=v`
3063
3063
  :host {
3064
3064
  display: flex;
3065
3065
  flex-direction: column;
3066
3066
  overflow: hidden;
3067
3067
  }
3068
- `,s_,i_,n_,a_,l_,d_,c_,p_,Ot,vb,bb,xb,yb,wb,kb,Hr,h_,rt,Eb,Cb,ld,dd,Br,Fr,cd,Mo,Wp,u_,Kp,un,Gp,Yp,Xp,Jp,Qp,Zp,th,eh,oh,pd,hd,$b,jp,Ee=class extends(p_=b,c_=[h({type:Boolean})],d_=[h({type:Boolean,attribute:"should-filter"})],l_=[h({type:String})],a_=[h({attribute:!1})],n_=[E()],i_=[E()],s_=[Et({context:oo}),E()],p_){constructor(){super(...arguments);n(this,rt);n(this,vb,i(Ot,8,this,!1)),i(Ot,11,this);n(this,bb,i(Ot,12,this,!0)),i(Ot,15,this);n(this,xb,i(Ot,16,this)),i(Ot,19,this);n(this,yb,i(Ot,20,this)),i(Ot,23,this);n(this,wb,i(Ot,24,this,"")),i(Ot,27,this);n(this,Eb,i(Ot,28,this)),i(Ot,31,this);n(this,Br,new Map);n(this,Fr,[]);n(this,cd,new Set);n(this,Mo,new Map);n(this,Wp,XM());n(this,Kp,t=>this.shouldFilter?r(this,Mo).get(t)??0:1);n(this,Gp,()=>u(this,rt,un).call(this).length);n(this,Yp,t=>u(this,rt,un).call(this).filter(e=>e.groupId===t).length);n(this,Xp,t=>{r(this,Br).set(t.id,t),r(this,Fr).includes(t.id)||r(this,Fr).push(t.id);let e=this.filter?this.filter(t.value,r(this,rt,Hr),t.keywords):ad(r(this,rt,Hr),t.value,t.textContent,t.keywords);if(r(this,Mo).set(t.id,e),!r(this,rt,ld)){let a=u(this,rt,un).call(this);a.length>0&&!a[0].disabled&&p(this,rt,a[0].id,dd)}this.requestUpdate()});n(this,Jp,t=>{r(this,Br).delete(t),p(this,Fr,r(this,Fr).filter(e=>e!==t)),r(this,Mo).delete(t),this.requestUpdate()});n(this,Qp,t=>{r(this,Br).set(t.id,t);let e=this.filter?this.filter(t.value,r(this,rt,Hr),t.keywords):ad(r(this,rt,Hr),t.value,t.textContent,t.keywords);r(this,Mo).set(t.id,e),this.requestUpdate()});n(this,Zp,t=>{r(this,cd).add(t)});n(this,th,t=>{r(this,cd).delete(t)});n(this,eh,t=>{p(this,rt,t,h_),u(this,rt,u_).call(this);let a=u(this,rt,un).call(this).find(l=>!l.disabled);p(this,rt,a?.id,dd),this.dispatchEvent(KM(t))});n(this,oh,t=>{p(this,rt,t,dd)});n(this,pd,t=>{this.dispatchEvent(WM(t))});n(this,hd,t=>{let e=u(this,rt,un).call(this).filter(c=>!c.disabled);if(e.length===0)return;let a=e.findIndex(c=>c.id===r(this,rt,ld)),l=c=>{let f=e[c];f&&p(this,rt,f.id,dd)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a<e.length-1?l(a+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a>0?l(a-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 c=e.find(f=>f.id===r(this,rt,ld));c&&r(this,pd).call(this,c.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(GM());break}}});n(this,$b,i(Ot,32,this,u(this,rt,jp).call(this))),i(Ot,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",r(this,hd)),this._ctx=u(this,rt,jp).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",r(this,hd))}willUpdate(){this._ctx=u(this,rt,jp).call(this)}render(){return m`<slot></slot>`}};Ot=T(p_),vb=new WeakMap,bb=new WeakMap,xb=new WeakMap,yb=new WeakMap,wb=new WeakMap,rt=new WeakSet,Eb=new WeakMap,Br=new WeakMap,Fr=new WeakMap,cd=new WeakMap,Mo=new WeakMap,Wp=new WeakMap,u_=function(){r(this,Mo).clear();for(let[t,e]of r(this,Br)){let a=this.filter?this.filter(e.value,r(this,rt,Hr),e.keywords):ad(r(this,rt,Hr),e.value,e.textContent,e.keywords);r(this,Mo).set(t,a)}},Kp=new WeakMap,un=function(){return r(this,Fr).map(t=>r(this,Br).get(t)).filter(t=>t?this.shouldFilter?(r(this,Mo).get(t.id)??0)>0:!0:!1)},Gp=new WeakMap,Yp=new WeakMap,Xp=new WeakMap,Jp=new WeakMap,Qp=new WeakMap,Zp=new WeakMap,th=new WeakMap,eh=new WeakMap,oh=new WeakMap,pd=new WeakMap,hd=new WeakMap,$b=new WeakMap,jp=function(){return{search:r(this,rt,Hr),selectedItemId:r(this,rt,ld),listId:r(this,Wp),loop:this.loop,shouldFilter:this.shouldFilter,getScore:r(this,Kp),getVisibleCount:r(this,Gp),getGroupVisibleCount:r(this,Yp),registerItem:r(this,Xp),unregisterItem:r(this,Jp),updateItem:r(this,Qp),registerGroup:r(this,Zp),unregisterGroup:r(this,th),setSearch:r(this,eh),selectItem:r(this,oh),handleItemSelect:r(this,pd)}},d(Ot,4,"loop",c_,Ee,vb),d(Ot,4,"shouldFilter",d_,Ee,bb),d(Ot,4,"value",l_,Ee,xb),d(Ot,4,"filter",a_,Ee,yb),kb=d(Ot,20,"#search",n_,rt,wb),Hr=kb.get,h_=kb.set,Cb=d(Ot,20,"#selectedItemId",i_,rt,Eb),ld=Cb.get,dd=Cb.set,d(Ot,4,"_ctx",s_,Ee,$b),$(Ot,Ee),v(Ee,"tagName","dui-command"),v(Ee,"styles",[y,JM]);var QM=g`
3068
+ `,fA,gA,vA,bA,xA,yA,wA,kA,Nt,tx,ex,rx,ox,sx,ix,Ko,EA,it,nx,ax,Cd,$d,Go,Yo,Sd,Fr,mh,CA,fh,Sn,gh,vh,bh,xh,yh,wh,kh,Eh,Ch,Td,_d,lx,uh,Re=class extends(kA=b,wA=[u({type:Boolean})],yA=[u({type:Boolean,attribute:"should-filter"})],xA=[u({type:String})],bA=[u({attribute:!1})],vA=[E()],gA=[E()],fA=[vt({context:lr}),E()],kA){constructor(){super(...arguments);n(this,it);n(this,tx,i(Nt,8,this,!1)),i(Nt,11,this);n(this,ex,i(Nt,12,this,!0)),i(Nt,15,this);n(this,rx,i(Nt,16,this)),i(Nt,19,this);n(this,ox,i(Nt,20,this)),i(Nt,23,this);n(this,sx,i(Nt,24,this,"")),i(Nt,27,this);n(this,nx,i(Nt,28,this)),i(Nt,31,this);n(this,Go,new Map);n(this,Yo,[]);n(this,Sd,new Set);n(this,Fr,new Map);n(this,mh,zD());n(this,fh,t=>this.shouldFilter?r(this,Fr).get(t)??0:1);n(this,gh,()=>h(this,it,Sn).call(this).length);n(this,vh,t=>h(this,it,Sn).call(this).filter(e=>e.groupId===t).length);n(this,bh,t=>{r(this,Go).set(t.id,t),r(this,Yo).includes(t.id)||r(this,Yo).push(t.id);let e=this.filter?this.filter(t.value,r(this,it,Ko),t.keywords):Ed(r(this,it,Ko),t.value,t.textContent,t.keywords);if(r(this,Fr).set(t.id,e),!r(this,it,Cd)){let a=h(this,it,Sn).call(this);a.length>0&&!a[0].disabled&&p(this,it,a[0].id,$d)}this.requestUpdate()});n(this,xh,t=>{r(this,Go).delete(t),p(this,Yo,r(this,Yo).filter(e=>e!==t)),r(this,Fr).delete(t),this.requestUpdate()});n(this,yh,t=>{r(this,Go).set(t.id,t);let e=this.filter?this.filter(t.value,r(this,it,Ko),t.keywords):Ed(r(this,it,Ko),t.value,t.textContent,t.keywords);r(this,Fr).set(t.id,e),this.requestUpdate()});n(this,wh,t=>{r(this,Sd).add(t)});n(this,kh,t=>{r(this,Sd).delete(t)});n(this,Eh,t=>{p(this,it,t,EA),h(this,it,CA).call(this);let a=h(this,it,Sn).call(this).find(l=>!l.disabled);p(this,it,a?.id,$d),this.dispatchEvent(ID(t))});n(this,Ch,t=>{p(this,it,t,$d)});n(this,Td,t=>{this.dispatchEvent(RD(t))});n(this,_d,t=>{let e=h(this,it,Sn).call(this).filter(c=>!c.disabled);if(e.length===0)return;let a=e.findIndex(c=>c.id===r(this,it,Cd)),l=c=>{let m=e[c];m&&p(this,it,m.id,$d)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a<e.length-1?l(a+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),a>0?l(a-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 c=e.find(m=>m.id===r(this,it,Cd));c&&r(this,Td).call(this,c.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(OD());break}}});n(this,lx,i(Nt,32,this,h(this,it,uh).call(this))),i(Nt,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",r(this,_d)),this._ctx=h(this,it,uh).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",r(this,_d))}willUpdate(){this._ctx=h(this,it,uh).call(this)}render(){return f`<slot></slot>`}};Nt=S(kA),tx=new WeakMap,ex=new WeakMap,rx=new WeakMap,ox=new WeakMap,sx=new WeakMap,it=new WeakSet,nx=new WeakMap,Go=new WeakMap,Yo=new WeakMap,Sd=new WeakMap,Fr=new WeakMap,mh=new WeakMap,CA=function(){r(this,Fr).clear();for(let[t,e]of r(this,Go)){let a=this.filter?this.filter(e.value,r(this,it,Ko),e.keywords):Ed(r(this,it,Ko),e.value,e.textContent,e.keywords);r(this,Fr).set(t,a)}},fh=new WeakMap,Sn=function(){return r(this,Yo).map(t=>r(this,Go).get(t)).filter(t=>t?this.shouldFilter?(r(this,Fr).get(t.id)??0)>0:!0:!1)},gh=new WeakMap,vh=new WeakMap,bh=new WeakMap,xh=new WeakMap,yh=new WeakMap,wh=new WeakMap,kh=new WeakMap,Eh=new WeakMap,Ch=new WeakMap,Td=new WeakMap,_d=new WeakMap,lx=new WeakMap,uh=function(){return{search:r(this,it,Ko),selectedItemId:r(this,it,Cd),listId:r(this,mh),loop:this.loop,shouldFilter:this.shouldFilter,getScore:r(this,fh),getVisibleCount:r(this,gh),getGroupVisibleCount:r(this,vh),registerItem:r(this,bh),unregisterItem:r(this,xh),updateItem:r(this,yh),registerGroup:r(this,wh),unregisterGroup:r(this,kh),setSearch:r(this,Eh),selectItem:r(this,Ch),handleItemSelect:r(this,Td)}},d(Nt,4,"loop",wA,Re,tx),d(Nt,4,"shouldFilter",yA,Re,ex),d(Nt,4,"value",xA,Re,rx),d(Nt,4,"filter",bA,Re,ox),ix=d(Nt,20,"#search",vA,it,sx),Ko=ix.get,EA=ix.set,ax=d(Nt,20,"#selectedItemId",gA,it,nx),Cd=ax.get,$d=ax.set,d(Nt,4,"_ctx",fA,Re,lx),$(Nt,Re),g(Re,"tagName","dui-command"),g(Re,"styles",[y,MD]);var ND=v`
3069
3069
  :host {
3070
3070
  display: block;
3071
3071
  }
@@ -3088,7 +3088,7 @@ label, legend, caption, figcaption, th, td {
3088
3088
  background: transparent;
3089
3089
  padding: 0;
3090
3090
  }
3091
- `,m_,f_,g_,As,Sb,Tb,mn,rh,sh,xo=class extends(g_=b,f_=[h({type:String})],m_=[Ut({context:oo,subscribe:!0})],g_){constructor(){super(...arguments);n(this,Sb,i(As,8,this,"Search...")),i(As,11,this);n(this,Tb,i(As,12,this)),i(As,15,this);n(this,mn);n(this,rh,t=>{let e=t.target;this._ctx?.setSearch(e.value)});n(this,sh,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(r(this,mn)!==void 0&&this._ctx?.search===""&&r(this,mn)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}p(this,mn,this._ctx?.search)}render(){return m`
3091
+ `,$A,SA,TA,Fs,dx,cx,Tn,$h,Sh,Cr=class extends(TA=b,SA=[u({type:String})],$A=[Ot({context:lr,subscribe:!0})],TA){constructor(){super(...arguments);n(this,dx,i(Fs,8,this,"Search...")),i(Fs,11,this);n(this,cx,i(Fs,12,this)),i(Fs,15,this);n(this,Tn);n(this,$h,t=>{let e=t.target;this._ctx?.setSearch(e.value)});n(this,Sh,t=>{(t.key==="ArrowUp"||t.key==="ArrowDown")&&t.preventDefault()})}willUpdate(){if(r(this,Tn)!==void 0&&this._ctx?.search===""&&r(this,Tn)!==""){let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}p(this,Tn,this._ctx?.search)}render(){return f`
3092
3092
  <div class="InputWrapper">
3093
3093
  <svg
3094
3094
  class="SearchIcon"
@@ -3113,11 +3113,11 @@ label, legend, caption, figcaption, th, td {
3113
3113
  aria-controls="${this._ctx?.listId??I}"
3114
3114
  aria-activedescendant="${this._ctx?.selectedItemId??I}"
3115
3115
  .placeholder="${this.placeholder}"
3116
- @input="${r(this,rh)}"
3117
- @keydown="${r(this,sh)}"
3116
+ @input="${r(this,$h)}"
3117
+ @keydown="${r(this,Sh)}"
3118
3118
  />
3119
3119
  </div>
3120
- `}};As=T(g_),Sb=new WeakMap,Tb=new WeakMap,mn=new WeakMap,rh=new WeakMap,sh=new WeakMap,d(As,4,"placeholder",f_,xo,Sb),d(As,4,"_ctx",m_,xo,Tb),$(As,xo),v(xo,"tagName","dui-command-input"),v(xo,"styles",[y,QM]);var ZM=g`
3120
+ `}};Fs=S(TA),dx=new WeakMap,cx=new WeakMap,Tn=new WeakMap,$h=new WeakMap,Sh=new WeakMap,d(Fs,4,"placeholder",SA,Cr,dx),d(Fs,4,"_ctx",$A,Cr,cx),$(Fs,Cr),g(Cr,"tagName","dui-command-input"),g(Cr,"styles",[y,ND]);var DD=v`
3121
3121
  :host {
3122
3122
  display: block;
3123
3123
  }
@@ -3125,7 +3125,7 @@ label, legend, caption, figcaption, th, td {
3125
3125
  .List {
3126
3126
  overflow: hidden;
3127
3127
  }
3128
- `,v_,b_,ih,_b,No=class extends(b_=b,v_=[Ut({context:oo,subscribe:!0})],b_){constructor(){super(...arguments);n(this,_b,i(ih,8,this)),i(ih,11,this)}render(){return m`
3128
+ `,_A,AA,Th,px,Vr=class extends(AA=b,_A=[Ot({context:lr,subscribe:!0})],AA){constructor(){super(...arguments);n(this,px,i(Th,8,this)),i(Th,11,this)}render(){return f`
3129
3129
  <dui-scroll-area>
3130
3130
  <div
3131
3131
  class="List"
@@ -3135,7 +3135,7 @@ label, legend, caption, figcaption, th, td {
3135
3135
  <slot></slot>
3136
3136
  </div>
3137
3137
  </dui-scroll-area>
3138
- `}};ih=T(b_),_b=new WeakMap,d(ih,4,"_ctx",v_,No,_b),$(ih,No),v(No,"tagName","dui-command-list"),v(No,"styles",[y,ZM]);var tN=0,eN=()=>`dui-command-group-${++tN}`,oN=g`
3138
+ `}};Th=S(AA),px=new WeakMap,d(Th,4,"_ctx",_A,Vr,px),$(Th,Vr),g(Vr,"tagName","dui-command-list"),g(Vr,"styles",[y,DD]);var HD=0,BD=()=>`dui-command-group-${++HD}`,FD=v`
3139
3139
  :host {
3140
3140
  display: block;
3141
3141
  }
@@ -3147,12 +3147,12 @@ label, legend, caption, figcaption, th, td {
3147
3147
  .Group {
3148
3148
  overflow: hidden;
3149
3149
  }
3150
- `,x_,y_,w_,Rs,Ab,Rb,Is,yo=class extends(w_=b,y_=[h({type:String})],x_=[Ut({context:oo,subscribe:!0})],w_){constructor(){super(...arguments);n(this,Ab,i(Rs,8,this,"")),i(Rs,11,this);n(this,Rb,i(Rs,12,this)),i(Rs,15,this);n(this,Is,eN())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",r(this,Is)),this._ctx?.registerGroup(r(this,Is))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(r(this,Is))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(r(this,Is))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return m`
3150
+ `,RA,IA,OA,Vs,hx,ux,Us,$r=class extends(OA=b,IA=[u({type:String})],RA=[Ot({context:lr,subscribe:!0})],OA){constructor(){super(...arguments);n(this,hx,i(Vs,8,this,"")),i(Vs,11,this);n(this,ux,i(Vs,12,this)),i(Vs,15,this);n(this,Us,BD())}connectedCallback(){super.connectedCallback(),this.setAttribute("data-group-id",r(this,Us)),this._ctx?.registerGroup(r(this,Us))}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterGroup(r(this,Us))}willUpdate(){this._ctx?.shouldFilter?this._ctx.getGroupVisibleCount(r(this,Us))===0&&this._ctx.search!==""?this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"):this.removeAttribute("data-hidden")}render(){return f`
3151
3151
  <div class="Group" role="group" aria-label="${this.heading||I}">
3152
- ${this.heading?m`<div class="Heading" aria-hidden="true">${this.heading}</div>`:I}
3152
+ ${this.heading?f`<div class="Heading" aria-hidden="true">${this.heading}</div>`:I}
3153
3153
  <slot></slot>
3154
3154
  </div>
3155
- `}};Rs=T(w_),Ab=new WeakMap,Rb=new WeakMap,Is=new WeakMap,d(Rs,4,"heading",y_,yo,Ab),d(Rs,4,"_ctx",x_,yo,Rb),$(Rs,yo),v(yo,"tagName","dui-command-group"),v(yo,"styles",[y,oN]);var rN=0,sN=()=>`dui-command-item-${++rN}`,iN=g`
3155
+ `}};Vs=S(OA),hx=new WeakMap,ux=new WeakMap,Us=new WeakMap,d(Vs,4,"heading",IA,$r,hx),d(Vs,4,"_ctx",RA,$r,ux),$(Vs,$r),g($r,"tagName","dui-command-group"),g($r,"styles",[y,FD]);var VD=0,UD=()=>`dui-command-item-${++VD}`,qD=v`
3156
3156
  :host {
3157
3157
  display: block;
3158
3158
  }
@@ -3169,21 +3169,21 @@ label, legend, caption, figcaption, th, td {
3169
3169
  user-select: none;
3170
3170
  outline: none;
3171
3171
  }
3172
- `,k_,E_,C_,$_,S_,Ue,Ib,Ob,Lb,zb,Do,fn,gn,vn,bn,Ce,ud,T_,__,Mb,nh,ah,Ve=class extends(S_=b,$_=[h({type:String})],C_=[h({type:Array,attribute:!1})],E_=[h({type:Boolean})],k_=[Ut({context:oo,subscribe:!0})],S_){constructor(){super(...arguments);n(this,Ce);n(this,Ib,i(Ue,8,this,"")),i(Ue,11,this);n(this,Ob,i(Ue,12,this,[])),i(Ue,15,this);n(this,Lb,i(Ue,16,this,!1)),i(Ue,19,this);n(this,zb,i(Ue,20,this)),i(Ue,23,this);n(this,Do,sN());n(this,fn);n(this,gn);n(this,vn);n(this,bn,!1);n(this,nh,()=>{!this.disabled&&this._ctx?.selectedItemId!==r(this,Do)&&this._ctx?.selectItem(r(this,Do))});n(this,ah,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(u(this,Ce,Mb).call(this)),p(this,bn,!0),p(this,fn,this.value),p(this,gn,this.keywords),p(this,vn,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(r(this,Do)),p(this,bn,!1)}willUpdate(){if(r(this,bn)){let t=r(this,fn)!==this.value,e=r(this,gn)!==this.keywords,a=r(this,vn)!==this.disabled;(t||e||a)&&(this._ctx?.updateItem(u(this,Ce,Mb).call(this)),p(this,fn,this.value),p(this,gn,this.keywords),p(this,vn,this.disabled))}this._ctx?.shouldFilter?r(this,Ce,T_)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),r(this,Ce,ud)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){r(this,Ce,ud)&&this.scrollIntoView({block:"nearest"})}render(){return m`
3172
+ `,LA,zA,MA,NA,DA,Ke,mx,fx,gx,vx,Ur,_n,An,Rn,In,Ie,Ad,HA,BA,bx,_h,Ah,Ge=class extends(DA=b,NA=[u({type:String})],MA=[u({type:Array,attribute:!1})],zA=[u({type:Boolean})],LA=[Ot({context:lr,subscribe:!0})],DA){constructor(){super(...arguments);n(this,Ie);n(this,mx,i(Ke,8,this,"")),i(Ke,11,this);n(this,fx,i(Ke,12,this,[])),i(Ke,15,this);n(this,gx,i(Ke,16,this,!1)),i(Ke,19,this);n(this,vx,i(Ke,20,this)),i(Ke,23,this);n(this,Ur,UD());n(this,_n);n(this,An);n(this,Rn);n(this,In,!1);n(this,_h,()=>{!this.disabled&&this._ctx?.selectedItemId!==r(this,Ur)&&this._ctx?.selectItem(r(this,Ur))});n(this,Ah,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(h(this,Ie,bx).call(this)),p(this,In,!0),p(this,_n,this.value),p(this,An,this.keywords),p(this,Rn,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(r(this,Ur)),p(this,In,!1)}willUpdate(){if(r(this,In)){let t=r(this,_n)!==this.value,e=r(this,An)!==this.keywords,a=r(this,Rn)!==this.disabled;(t||e||a)&&(this._ctx?.updateItem(h(this,Ie,bx).call(this)),p(this,_n,this.value),p(this,An,this.keywords),p(this,Rn,this.disabled))}this._ctx?.shouldFilter?r(this,Ie,HA)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),r(this,Ie,Ad)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){r(this,Ie,Ad)&&this.scrollIntoView({block:"nearest"})}render(){return f`
3173
3173
  <div
3174
3174
  class="Item"
3175
3175
  role="option"
3176
- id="${r(this,Do)}"
3177
- aria-selected="${r(this,Ce,ud)}"
3176
+ id="${r(this,Ur)}"
3177
+ aria-selected="${r(this,Ie,Ad)}"
3178
3178
  aria-disabled="${this.disabled}"
3179
- ?data-selected="${r(this,Ce,ud)}"
3179
+ ?data-selected="${r(this,Ie,Ad)}"
3180
3180
  ?data-disabled="${this.disabled}"
3181
- @mousemove="${r(this,nh)}"
3182
- @click="${r(this,ah)}"
3181
+ @mousemove="${r(this,_h)}"
3182
+ @click="${r(this,Ah)}"
3183
3183
  >
3184
3184
  <slot></slot>
3185
3185
  </div>
3186
- `}};Ue=T(S_),Ib=new WeakMap,Ob=new WeakMap,Lb=new WeakMap,zb=new WeakMap,Do=new WeakMap,fn=new WeakMap,gn=new WeakMap,vn=new WeakMap,bn=new WeakMap,Ce=new WeakSet,ud=function(){return this._ctx?.selectedItemId===r(this,Do)},T_=function(){return this._ctx?this._ctx.getScore(r(this,Do))>0:!0},__=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},Mb=function(){return{id:r(this,Do),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:u(this,Ce,__).call(this)}},nh=new WeakMap,ah=new WeakMap,d(Ue,4,"value",$_,Ve,Ib),d(Ue,4,"keywords",C_,Ve,Ob),d(Ue,4,"disabled",E_,Ve,Lb),d(Ue,4,"_ctx",k_,Ve,zb),$(Ue,Ve),v(Ve,"tagName","dui-command-item"),v(Ve,"styles",[y,iN]);var nN=g`
3186
+ `}};Ke=S(DA),mx=new WeakMap,fx=new WeakMap,gx=new WeakMap,vx=new WeakMap,Ur=new WeakMap,_n=new WeakMap,An=new WeakMap,Rn=new WeakMap,In=new WeakMap,Ie=new WeakSet,Ad=function(){return this._ctx?.selectedItemId===r(this,Ur)},HA=function(){return this._ctx?this._ctx.getScore(r(this,Ur))>0:!0},BA=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},bx=function(){return{id:r(this,Ur),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:h(this,Ie,BA).call(this)}},_h=new WeakMap,Ah=new WeakMap,d(Ke,4,"value",NA,Ge,mx),d(Ke,4,"keywords",MA,Ge,fx),d(Ke,4,"disabled",zA,Ge,gx),d(Ke,4,"_ctx",LA,Ge,vx),$(Ke,Ge),g(Ge,"tagName","dui-command-item"),g(Ge,"styles",[y,qD]);var PD=v`
3187
3187
  :host {
3188
3188
  display: block;
3189
3189
  }
@@ -3195,32 +3195,32 @@ label, legend, caption, figcaption, th, td {
3195
3195
  .Empty {
3196
3196
  text-align: center;
3197
3197
  }
3198
- `,A_,R_,lh,Nb,Ho=class extends(R_=b,A_=[Ut({context:oo,subscribe:!0})],R_){constructor(){super(...arguments);n(this,Nb,i(lh,8,this)),i(lh,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return m`
3198
+ `,FA,VA,Rh,xx,qr=class extends(VA=b,FA=[Ot({context:lr,subscribe:!0})],VA){constructor(){super(...arguments);n(this,xx,i(Rh,8,this)),i(Rh,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
3199
3199
  <div class="Empty" role="status">
3200
3200
  <slot></slot>
3201
3201
  </div>
3202
- `}};lh=T(R_),Nb=new WeakMap,d(lh,4,"_ctx",A_,Ho,Nb),$(lh,Ho),v(Ho,"tagName","dui-command-empty"),v(Ho,"styles",[y,nN]);var aN=g`
3202
+ `}};Rh=S(VA),xx=new WeakMap,d(Rh,4,"_ctx",FA,qr,xx),$(Rh,qr),g(qr,"tagName","dui-command-empty"),g(qr,"styles",[y,PD]);var jD=v`
3203
3203
  :host {
3204
3204
  display: block;
3205
3205
  }
3206
- `,xn=class extends b{static tagName="dui-command-separator";static styles=[y,aN];render(){return m`<div class="Separator" role="separator"></div>`}};var lN=g`
3206
+ `,On=class extends b{static tagName="dui-command-separator";static styles=[y,jD];render(){return f`<div class="Separator" role="separator"></div>`}};var WD=v`
3207
3207
  :host {
3208
3208
  display: inline-flex;
3209
3209
  margin-left: auto;
3210
3210
  }
3211
- `,yn=class extends b{static tagName="dui-command-shortcut";static styles=[y,lN];render(){return m`<span class="Shortcut"><slot></slot></span>`}};var dN=k`
3211
+ `,Ln=class extends b{static tagName="dui-command-shortcut";static styles=[y,WD];render(){return f`<span class="Shortcut"><slot></slot></span>`}};var KD=k`
3212
3212
  :host {
3213
3213
  border-radius: var(--radius-md);
3214
3214
  background: var(--surface-3);
3215
3215
  color: var(--text-1);
3216
3216
  }
3217
- `,wn=class extends Ee{static styles=[...Ee.styles,dN]};customElements.define(wn.tagName,wn);var cN=k`
3217
+ `,zn=class extends Re{static styles=[...Re.styles,KD]};customElements.define(zn.tagName,zn);var GD=k`
3218
3218
  .Empty {
3219
3219
  padding: var(--space-6);
3220
3220
  font-size: var(--text-sm); line-height: var(--text-sm--line-height);
3221
3221
  color: var(--text-2);
3222
3222
  }
3223
- `,kn=class extends Ho{static styles=[...Ho.styles,cN]};customElements.define(kn.tagName,kn);var pN=k`
3223
+ `,Mn=class extends qr{static styles=[...qr.styles,GD]};customElements.define(Mn.tagName,Mn);var YD=k`
3224
3224
  .Group {
3225
3225
  padding: var(--space-1_5);
3226
3226
  }
@@ -3231,7 +3231,7 @@ label, legend, caption, figcaption, th, td {
3231
3231
  font-weight: var(--font-weight-medium);
3232
3232
  color: var(--text-2);
3233
3233
  }
3234
- `,En=class extends yo{static styles=[...yo.styles,pN]};customElements.define(En.tagName,En);var hN=k`
3234
+ `,Nn=class extends $r{static styles=[...$r.styles,YD]};customElements.define(Nn.tagName,Nn);var XD=k`
3235
3235
  .InputWrapper {
3236
3236
  gap: var(--space-2);
3237
3237
  border-bottom: var(--border-width-thin) solid var(--border);
@@ -3253,7 +3253,7 @@ label, legend, caption, figcaption, th, td {
3253
3253
  .Input::placeholder {
3254
3254
  color: var(--text-3);
3255
3255
  }
3256
- `,Cn=class extends xo{static styles=[...xo.styles,hN]};customElements.define(Cn.tagName,Cn);var uN=k`
3256
+ `,Dn=class extends Cr{static styles=[...Cr.styles,XD]};customElements.define(Dn.tagName,Dn);var JD=k`
3257
3257
  .Item {
3258
3258
  gap: var(--space-2);
3259
3259
  border-radius: var(--radius-sm);
@@ -3275,7 +3275,7 @@ label, legend, caption, figcaption, th, td {
3275
3275
  --icon-size: var(--space-4);
3276
3276
  color: var(--text-2);
3277
3277
  }
3278
- `,$n=class extends Ve{static styles=[...Ve.styles,uN]};customElements.define($n.tagName,$n);var mN=k`
3278
+ `,Hn=class extends Ge{static styles=[...Ge.styles,JD]};customElements.define(Hn.tagName,Hn);var QD=k`
3279
3279
  dui-scroll-area {
3280
3280
  max-height: calc(var(--space-5) * 15);
3281
3281
  height: auto;
@@ -3284,18 +3284,18 @@ label, legend, caption, figcaption, th, td {
3284
3284
  .List {
3285
3285
  padding: var(--space-1) 0;
3286
3286
  }
3287
- `,Sn=class extends No{static styles=[...No.styles,mN]};customElements.define(Sn.tagName,Sn);var fN=k`
3287
+ `,Bn=class extends Vr{static styles=[...Vr.styles,QD]};customElements.define(Bn.tagName,Bn);var ZD=k`
3288
3288
  .Separator {
3289
3289
  height: var(--border-width-thin);
3290
3290
  margin-inline: calc(-1 * var(--space-1));
3291
3291
  background: var(--border);
3292
3292
  }
3293
- `,Tn=class extends xn{static styles=[...xn.styles,fN]};customElements.define(Tn.tagName,Tn);var gN=k`
3293
+ `,Fn=class extends On{static styles=[...On.styles,ZD]};customElements.define(Fn.tagName,Fn);var tH=k`
3294
3294
  .Shortcut {
3295
3295
  font-size: var(--text-xs); line-height: var(--text-xs--line-height);
3296
3296
  color: var(--text-2);
3297
3297
  }
3298
- `,_n=class extends yn{static styles=[...yn.styles,gN]};customElements.define(_n.tagName,_n);var I_="important",vN=" !"+I_,An=on(class extends Mr{constructor(s){if(super(s),s.type!==go.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((o,t)=>{let e=s[t];return e==null?o:o+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(s,[o]){let{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(o)),this.render(o);for(let e of this.ft)o[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in o){let a=o[e];if(a!=null){this.ft.add(e);let l=typeof a=="string"&&a.endsWith(vN);e.includes("-")||l?t.setProperty(e,l?a.slice(0,-11):a,l?I_:""):t[e]=a}}return ie}});var bN=L("sort-change",{bubbles:!0,composed:!0}),xN=L("page-change",{bubbles:!0,composed:!0}),yN=m`<svg
3298
+ `,Vn=class extends Ln{static styles=[...Ln.styles,tH]};customElements.define(Vn.tagName,Vn);var UA="important",eH=" !"+UA,Un=gn(class extends Po{constructor(s){if(super(s),s.type!==wr.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((o,t)=>{let e=s[t];return e==null?o:o+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(s,[o]){let{style:t}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(o)),this.render(o);for(let e of this.ft)o[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in o){let a=o[e];if(a!=null){this.ft.add(e);let l=typeof a=="string"&&a.endsWith(eH);e.includes("-")||l?t.setProperty(e,l?a.slice(0,-11):a,l?UA:""):t[e]=a}}return ce}});var rH=O("sort-change",{bubbles:!0,composed:!0}),oH=O("page-change",{bubbles:!0,composed:!0}),sH=f`<svg
3299
3299
  xmlns="http://www.w3.org/2000/svg"
3300
3300
  width="100%"
3301
3301
  height="100%"
@@ -3308,7 +3308,7 @@ label, legend, caption, figcaption, th, td {
3308
3308
  >
3309
3309
  <path d="m7 15 5 5 5-5" />
3310
3310
  <path d="m7 9 5-5 5 5" />
3311
- </svg>`,wN=m`<svg
3311
+ </svg>`,iH=f`<svg
3312
3312
  xmlns="http://www.w3.org/2000/svg"
3313
3313
  width="100%"
3314
3314
  height="100%"
@@ -3320,7 +3320,7 @@ label, legend, caption, figcaption, th, td {
3320
3320
  stroke-linejoin="round"
3321
3321
  >
3322
3322
  <path d="m18 15-6-6-6 6" />
3323
- </svg>`,kN=m`<svg
3323
+ </svg>`,nH=f`<svg
3324
3324
  xmlns="http://www.w3.org/2000/svg"
3325
3325
  width="100%"
3326
3326
  height="100%"
@@ -3332,11 +3332,11 @@ label, legend, caption, figcaption, th, td {
3332
3332
  stroke-linejoin="round"
3333
3333
  >
3334
3334
  <path d="m6 9 6 6 6-6" />
3335
- </svg>`;function EN(s,o){return s==null&&o==null?0:s==null?-1:o==null?1:typeof s=="number"&&typeof o=="number"?s-o:typeof s=="string"&&typeof o=="string"?s.localeCompare(o):s instanceof Date&&o instanceof Date?s.getTime()-o.getTime():String(s).localeCompare(String(o))}function CN(s,o){if(!o)return[...s];let{column:t,direction:e}=o,a=e==="asc"?1:-1;return[...s].sort((l,c)=>a*EN(l[t],c[t]))}function $N(s,o,t){let e=(o-1)*t;return s.slice(e,e+t)}var SN=g`
3335
+ </svg>`;function aH(s,o){return s==null&&o==null?0:s==null?-1:o==null?1:typeof s=="number"&&typeof o=="number"?s-o:typeof s=="string"&&typeof o=="string"?s.localeCompare(o):s instanceof Date&&o instanceof Date?s.getTime()-o.getTime():String(s).localeCompare(String(o))}function lH(s,o){if(!o)return[...s];let{column:t,direction:e}=o,a=e==="asc"?1:-1;return[...s].sort((l,c)=>a*aH(l[t],c[t]))}function dH(s,o,t){let e=(o-1)*t;return s.slice(e,e+t)}var cH=v`
3336
3336
  :host {
3337
3337
  display: block;
3338
3338
  }
3339
- `,TN=g`
3339
+ `,pH=v`
3340
3340
  .DataTable {
3341
3341
  display: flex;
3342
3342
  flex-direction: column;
@@ -3405,48 +3405,48 @@ label, legend, caption, figcaption, th, td {
3405
3405
  .PageButton:disabled {
3406
3406
  cursor: not-allowed;
3407
3407
  }
3408
- `,O_,L_,z_,M_,N_,D_,H_,B_,F_,Ct,Db,Hb,Bb,Fb,Ub,Vb,qb,br,dh,H,Pb,jb,xr,ch,Wb,Kb,Gb,Yb,md,U_,V_,fd,q_,P_,j_,W_,$e=class extends(F_=b,B_=[h({attribute:!1})],H_=[h({attribute:!1})],D_=[h({type:Number,attribute:"page-size"})],N_=[h({attribute:!1})],M_=[h({attribute:"empty-text"})],z_=[E()],L_=[E()],O_=[E()],F_){constructor(){super(...arguments);n(this,H);n(this,Db,i(Ct,8,this,[])),i(Ct,11,this);n(this,Hb,i(Ct,12,this,[])),i(Ct,15,this);n(this,Bb,i(Ct,16,this,10)),i(Ct,19,this);n(this,Fb,i(Ct,20,this)),i(Ct,23,this);n(this,Ub,i(Ct,24,this,"No results.")),i(Ct,27,this);n(this,Vb,i(Ct,28,this,null)),i(Ct,31,this);n(this,Pb,i(Ct,32,this,1)),i(Ct,35,this);n(this,Wb,i(Ct,36,this,[])),i(Ct,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&p(this,H,1,ch);let e=CN(this.data,r(this,H,br));this.pageSize>0?p(this,H,$N(e,r(this,H,xr),this.pageSize),Yb):p(this,H,e,Yb)}}render(){return m`
3408
+ `,qA,PA,jA,WA,KA,GA,YA,XA,JA,Tt,yx,wx,kx,Ex,Cx,$x,Sx,So,Ih,H,Tx,_x,To,Oh,Ax,Rx,Ix,Ox,Rd,QA,ZA,Id,tR,eR,rR,oR,Oe=class extends(JA=b,XA=[u({attribute:!1})],YA=[u({attribute:!1})],GA=[u({type:Number,attribute:"page-size"})],KA=[u({attribute:!1})],WA=[u({attribute:"empty-text"})],jA=[E()],PA=[E()],qA=[E()],JA){constructor(){super(...arguments);n(this,H);n(this,yx,i(Tt,8,this,[])),i(Tt,11,this);n(this,wx,i(Tt,12,this,[])),i(Tt,15,this);n(this,kx,i(Tt,16,this,10)),i(Tt,19,this);n(this,Ex,i(Tt,20,this)),i(Tt,23,this);n(this,Cx,i(Tt,24,this,"No results.")),i(Tt,27,this);n(this,$x,i(Tt,28,this,null)),i(Tt,31,this);n(this,Tx,i(Tt,32,this,1)),i(Tt,35,this);n(this,Ax,i(Tt,36,this,[])),i(Tt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&p(this,H,1,Oh);let e=lH(this.data,r(this,H,So));this.pageSize>0?p(this,H,dH(e,r(this,H,To),this.pageSize),Ox):p(this,H,e,Ox)}}render(){return f`
3409
3409
  <div class="DataTable" part="root">
3410
3410
  <div class="TableWindow" part="table-window">
3411
3411
  <table part="table">
3412
- ${u(this,H,P_).call(this)} ${u(this,H,j_).call(this)}
3412
+ ${h(this,H,eR).call(this)} ${h(this,H,rR).call(this)}
3413
3413
  </table>
3414
3414
  </div>
3415
- ${u(this,H,W_).call(this)}
3415
+ ${h(this,H,oR).call(this)}
3416
3416
  </div>
3417
- `}};Ct=T(F_),Db=new WeakMap,Hb=new WeakMap,Bb=new WeakMap,Fb=new WeakMap,Ub=new WeakMap,Vb=new WeakMap,H=new WeakSet,Pb=new WeakMap,Wb=new WeakMap,md=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},U_=function(){return{page:r(this,H,xr),pageSize:this.pageSize,totalRows:this.data.length,totalPages:r(this,H,md)}},V_=function(t){r(this,H,br)?.column===t?r(this,H,br).direction==="asc"?p(this,H,{column:t,direction:"desc"},dh):p(this,H,null,dh):p(this,H,{column:t,direction:"asc"},dh),p(this,H,1,ch),this.dispatchEvent(bN(r(this,H,br)))},fd=function(t){p(this,H,Math.max(1,Math.min(t,r(this,H,md))),ch),this.dispatchEvent(xN(r(this,H,U_)))},q_=function(t){return t.sortable?r(this,H,br)?.column===t.key?m`<span class="SortIcon"
3418
- >${r(this,H,br).direction==="asc"?wN:kN}</span
3419
- >`:m`<span class="SortIcon">${yN}</span>`:I},P_=function(){return m`
3417
+ `}};Tt=S(JA),yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,Cx=new WeakMap,$x=new WeakMap,H=new WeakSet,Tx=new WeakMap,Ax=new WeakMap,Rd=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},QA=function(){return{page:r(this,H,To),pageSize:this.pageSize,totalRows:this.data.length,totalPages:r(this,H,Rd)}},ZA=function(t){r(this,H,So)?.column===t?r(this,H,So).direction==="asc"?p(this,H,{column:t,direction:"desc"},Ih):p(this,H,null,Ih):p(this,H,{column:t,direction:"asc"},Ih),p(this,H,1,Oh),this.dispatchEvent(rH(r(this,H,So)))},Id=function(t){p(this,H,Math.max(1,Math.min(t,r(this,H,Rd))),Oh),this.dispatchEvent(oH(r(this,H,QA)))},tR=function(t){return t.sortable?r(this,H,So)?.column===t.key?f`<span class="SortIcon"
3418
+ >${r(this,H,So).direction==="asc"?iH:nH}</span
3419
+ >`:f`<span class="SortIcon">${sH}</span>`:I},eR=function(){return f`
3420
3420
  <thead>
3421
3421
  <tr>
3422
- ${this.columns.map(t=>{let e=t.width?{width:t.width}:{},a=t.sortable?r(this,H,br)?.column===t.key?r(this,H,br).direction==="asc"?"ascending":"descending":"none":void 0;return m`
3422
+ ${this.columns.map(t=>{let e=t.width?{width:t.width}:{},a=t.sortable?r(this,H,So)?.column===t.key?r(this,H,So).direction==="asc"?"ascending":"descending":"none":void 0;return f`
3423
3423
  <th
3424
- style=${An(e)}
3424
+ style=${Un(e)}
3425
3425
  aria-sort=${a??I}
3426
- @click=${t.sortable?()=>u(this,H,V_).call(this,t.key):I}
3426
+ @click=${t.sortable?()=>h(this,H,ZA).call(this,t.key):I}
3427
3427
  >
3428
3428
  <span class="HeaderContent">
3429
- ${t.header} ${u(this,H,q_).call(this,t)}
3429
+ ${t.header} ${h(this,H,tR).call(this,t)}
3430
3430
  </span>
3431
3431
  </th>
3432
3432
  `})}
3433
3433
  </tr>
3434
3434
  </thead>
3435
- `},j_=function(){if(r(this,H,Gb).length===0)return m`
3435
+ `},rR=function(){if(r(this,H,Ix).length===0)return f`
3436
3436
  <tbody>
3437
3437
  <tr class="EmptyRow">
3438
3438
  <td colspan=${this.columns.length}>${this.emptyText}</td>
3439
3439
  </tr>
3440
3440
  </tbody>
3441
- `;let t=this.rowKey?(e,a)=>this.rowKey(e):(e,a)=>a;return m`
3441
+ `;let t=this.rowKey?(e,a)=>this.rowKey(e):(e,a)=>a;return f`
3442
3442
  <tbody>
3443
- ${ws(r(this,H,Gb),t,e=>m`
3443
+ ${Os(r(this,H,Ix),t,e=>f`
3444
3444
  <tr>
3445
- ${this.columns.map(a=>{let l=e[a.key],c=a.render?a.render(l,e):l??"";return m`<td>${c}</td>`})}
3445
+ ${this.columns.map(a=>{let l=e[a.key],c=a.render?a.render(l,e):l??"";return f`<td>${c}</td>`})}
3446
3446
  </tr>
3447
3447
  `)}
3448
3448
  </tbody>
3449
- `},W_=function(){if(this.pageSize<=0||this.data.length===0)return I;let t=(r(this,H,xr)-1)*this.pageSize+1,e=Math.min(r(this,H,xr)*this.pageSize,this.data.length),a=r(this,H,xr)===1,l=r(this,H,xr)===r(this,H,md);return m`
3449
+ `},oR=function(){if(this.pageSize<=0||this.data.length===0)return I;let t=(r(this,H,To)-1)*this.pageSize+1,e=Math.min(r(this,H,To)*this.pageSize,this.data.length),a=r(this,H,To)===1,l=r(this,H,To)===r(this,H,Rd);return f`
3450
3450
  <div class="Pagination" part="pagination">
3451
3451
  <div class="PageInfo">
3452
3452
  <span>${t}-${e} of ${this.data.length}</span>
@@ -3455,7 +3455,7 @@ label, legend, caption, figcaption, th, td {
3455
3455
  <button
3456
3456
  class="PageButton"
3457
3457
  ?disabled=${a}
3458
- @click=${()=>u(this,H,fd).call(this,1)}
3458
+ @click=${()=>h(this,H,Id).call(this,1)}
3459
3459
  aria-label="First page"
3460
3460
  >
3461
3461
  <dui-icon style="--icon-size: var(--text-sm)"><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="m11 17-5-5 5-5"/><path d="m18 17-5-5 5-5"/></svg></dui-icon>
@@ -3463,7 +3463,7 @@ label, legend, caption, figcaption, th, td {
3463
3463
  <button
3464
3464
  class="PageButton"
3465
3465
  ?disabled=${a}
3466
- @click=${()=>u(this,H,fd).call(this,r(this,H,xr)-1)}
3466
+ @click=${()=>h(this,H,Id).call(this,r(this,H,To)-1)}
3467
3467
  aria-label="Previous page"
3468
3468
  >
3469
3469
  <dui-icon style="--icon-size: var(--text-sm)"><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="m15 18-6-6 6-6"/></svg></dui-icon>
@@ -3471,7 +3471,7 @@ label, legend, caption, figcaption, th, td {
3471
3471
  <button
3472
3472
  class="PageButton"
3473
3473
  ?disabled=${l}
3474
- @click=${()=>u(this,H,fd).call(this,r(this,H,xr)+1)}
3474
+ @click=${()=>h(this,H,Id).call(this,r(this,H,To)+1)}
3475
3475
  aria-label="Next page"
3476
3476
  >
3477
3477
  <dui-icon style="--icon-size: var(--text-sm)"><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="m9 18 6-6-6-6"/></svg></dui-icon>
@@ -3479,14 +3479,14 @@ label, legend, caption, figcaption, th, td {
3479
3479
  <button
3480
3480
  class="PageButton"
3481
3481
  ?disabled=${l}
3482
- @click=${()=>u(this,H,fd).call(this,r(this,H,md))}
3482
+ @click=${()=>h(this,H,Id).call(this,r(this,H,Rd))}
3483
3483
  aria-label="Last page"
3484
3484
  >
3485
3485
  <dui-icon style="--icon-size: var(--text-sm)"><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 17 5-5-5-5"/><path d="m13 17 5-5-5-5"/></svg></dui-icon>
3486
3486
  </button>
3487
3487
  </div>
3488
3488
  </div>
3489
- `},d(Ct,4,"columns",B_,$e,Db),d(Ct,4,"data",H_,$e,Hb),d(Ct,4,"pageSize",D_,$e,Bb),d(Ct,4,"rowKey",N_,$e,Fb),d(Ct,4,"emptyText",M_,$e,Ub),qb=d(Ct,20,"#sort",z_,H,Vb),br=qb.get,dh=qb.set,jb=d(Ct,20,"#page",L_,H,Pb),xr=jb.get,ch=jb.set,Kb=d(Ct,20,"#displayRows",O_,H,Wb),Gb=Kb.get,Yb=Kb.set,$(Ct,$e),v($e,"tagName","dui-data-table"),v($e,"styles",[y,SN,TN]);var _N=k`
3489
+ `},d(Tt,4,"columns",XA,Oe,yx),d(Tt,4,"data",YA,Oe,wx),d(Tt,4,"pageSize",GA,Oe,kx),d(Tt,4,"rowKey",KA,Oe,Ex),d(Tt,4,"emptyText",WA,Oe,Cx),Sx=d(Tt,20,"#sort",jA,H,$x),So=Sx.get,Ih=Sx.set,_x=d(Tt,20,"#page",PA,H,Tx),To=_x.get,Oh=_x.set,Rx=d(Tt,20,"#displayRows",qA,H,Ax),Ix=Rx.get,Ox=Rx.set,$(Tt,Oe),g(Oe,"tagName","dui-data-table"),g(Oe,"styles",[y,cH,pH]);var hH=k`
3490
3490
  .DataTable {
3491
3491
  gap: var(--space-2);
3492
3492
  }
@@ -3598,19 +3598,19 @@ label, legend, caption, figcaption, th, td {
3598
3598
  0 0 0 var(--focus-ring-offset) var(--background),
3599
3599
  0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
3600
3600
  }
3601
- `,Rn=class extends $e{static styles=[...$e.styles,_N]};customElements.define(Rn.tagName,Rn);var Ur=Symbol("dui-dialog");var uh=L("open-change",{bubbles:!0,composed:!0}),AN=g`
3601
+ `,qn=class extends Oe{static styles=[...Oe.styles,hH]};customElements.define(qn.tagName,qn);var Xo=Symbol("dui-dialog");var Mh=O("open-change",{bubbles:!0,composed:!0}),uH=v`
3602
3602
  :host {
3603
3603
  display: contents;
3604
3604
  }
3605
- `,K_,G_,Y_,X_,J_,qe,Xb,Jb,Qb,Zb,Q_,ph,Se,Os,mh,fh,gh,vh,Z_,bh,xh,tx,hh,ro=class extends(J_=b,X_=[h({type:Boolean,reflect:!0})],Y_=[h({type:Boolean,attribute:"default-open"})],G_=[E()],K_=[Et({context:Ur}),E()],J_){constructor(){super(...arguments);n(this,Se);n(this,Xb,i(qe,8,this)),i(qe,11,this);n(this,Jb,i(qe,12,this,!1)),i(qe,15,this);n(this,Qb,i(qe,16,this,!1)),i(qe,19,this);n(this,Os,crypto.randomUUID().slice(0,8));n(this,mh,`dui-dialog-${r(this,Os)}`);n(this,fh,`dui-trigger-${r(this,Os)}`);n(this,gh,`dui-title-${r(this,Os)}`);n(this,vh,`dui-desc-${r(this,Os)}`);n(this,bh,()=>{this.open===void 0&&p(this,Se,!0,ph),this.dispatchEvent(uh({open:!0}))});n(this,xh,()=>{this.open===void 0&&p(this,Se,!1,ph),this.dispatchEvent(uh({open:!1}))});n(this,tx,i(qe,20,this,u(this,Se,hh).call(this))),i(qe,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,Se,!0,ph),this._ctx=u(this,Se,hh).call(this)}willUpdate(){this._ctx=u(this,Se,hh).call(this)}render(){return m`<slot></slot>`}};qe=T(J_),Xb=new WeakMap,Jb=new WeakMap,Qb=new WeakMap,Se=new WeakSet,Os=new WeakMap,mh=new WeakMap,fh=new WeakMap,gh=new WeakMap,vh=new WeakMap,Z_=function(){return this.open??r(this,Se,Q_)},bh=new WeakMap,xh=new WeakMap,tx=new WeakMap,hh=function(){return{open:r(this,Se,Z_),dialogId:r(this,mh),triggerId:r(this,fh),titleId:r(this,gh),descriptionId:r(this,vh),openDialog:r(this,bh),closeDialog:r(this,xh)}},d(qe,4,"open",X_,ro,Xb),d(qe,4,"defaultOpen",Y_,ro,Jb),Zb=d(qe,20,"#internalOpen",G_,Se,Qb),Q_=Zb.get,ph=Zb.set,d(qe,4,"_ctx",K_,ro,tx),$(qe,ro),v(ro,"tagName","dui-dialog"),v(ro,"styles",[y,AN]);var RN=g`
3605
+ `,sR,iR,nR,aR,lR,Ye,Lx,zx,Mx,Nx,dR,Lh,Le,qs,Nh,Dh,Hh,Bh,cR,Fh,Vh,Dx,zh,dr=class extends(lR=b,aR=[u({type:Boolean,reflect:!0})],nR=[u({type:Boolean,attribute:"default-open"})],iR=[E()],sR=[vt({context:Xo}),E()],lR){constructor(){super(...arguments);n(this,Le);n(this,Lx,i(Ye,8,this)),i(Ye,11,this);n(this,zx,i(Ye,12,this,!1)),i(Ye,15,this);n(this,Mx,i(Ye,16,this,!1)),i(Ye,19,this);n(this,qs,crypto.randomUUID().slice(0,8));n(this,Nh,`dui-dialog-${r(this,qs)}`);n(this,Dh,`dui-trigger-${r(this,qs)}`);n(this,Hh,`dui-title-${r(this,qs)}`);n(this,Bh,`dui-desc-${r(this,qs)}`);n(this,Fh,()=>{this.open===void 0&&p(this,Le,!0,Lh),this.dispatchEvent(Mh({open:!0}))});n(this,Vh,()=>{this.open===void 0&&p(this,Le,!1,Lh),this.dispatchEvent(Mh({open:!1}))});n(this,Dx,i(Ye,20,this,h(this,Le,zh).call(this))),i(Ye,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&p(this,Le,!0,Lh),this._ctx=h(this,Le,zh).call(this)}willUpdate(){this._ctx=h(this,Le,zh).call(this)}render(){return f`<slot></slot>`}};Ye=S(lR),Lx=new WeakMap,zx=new WeakMap,Mx=new WeakMap,Le=new WeakSet,qs=new WeakMap,Nh=new WeakMap,Dh=new WeakMap,Hh=new WeakMap,Bh=new WeakMap,cR=function(){return this.open??r(this,Le,dR)},Fh=new WeakMap,Vh=new WeakMap,Dx=new WeakMap,zh=function(){return{open:r(this,Le,cR),dialogId:r(this,Nh),triggerId:r(this,Dh),titleId:r(this,Hh),descriptionId:r(this,Bh),openDialog:r(this,Fh),closeDialog:r(this,Vh)}},d(Ye,4,"open",aR,dr,Lx),d(Ye,4,"defaultOpen",nR,dr,zx),Nx=d(Ye,20,"#internalOpen",iR,Le,Mx),dR=Nx.get,Lh=Nx.set,d(Ye,4,"_ctx",sR,dr,Dx),$(Ye,dr),g(dr,"tagName","dui-dialog"),g(dr,"styles",[y,uH]);var mH=v`
3606
3606
  :host {
3607
3607
  display: contents;
3608
3608
  }
3609
- `,IN=g`
3609
+ `,fH=v`
3610
3610
  .Trigger {
3611
3611
  display: contents;
3612
3612
  }
3613
- `,gd=class extends b{static tagName="dui-dialog-trigger";static styles=[y,RN,IN];#t=new W(this,{context:Ur,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return m`
3613
+ `,Od=class extends b{static tagName="dui-dialog-trigger";static styles=[y,mH,fH];#t=new K(this,{context:Xo,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let o=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
3614
3614
  <span
3615
3615
  class="Trigger"
3616
3616
  part="trigger"
@@ -3623,7 +3623,7 @@ label, legend, caption, figcaption, th, td {
3623
3623
  >
3624
3624
  <slot></slot>
3625
3625
  </span>
3626
- `}};var ON=g`
3626
+ `}};var gH=v`
3627
3627
  :host {
3628
3628
  display: contents;
3629
3629
  }
@@ -3632,7 +3632,7 @@ label, legend, caption, figcaption, th, td {
3632
3632
  :host(:not([mounted])) [part="popup"] {
3633
3633
  display: none;
3634
3634
  }
3635
- `,LN=g`
3635
+ `,vH=v`
3636
3636
  [part="backdrop"] {
3637
3637
  position: fixed;
3638
3638
  min-height: 100dvh;
@@ -3652,14 +3652,14 @@ label, legend, caption, figcaption, th, td {
3652
3652
  z-index: 1000;
3653
3653
  transition-property: opacity, transform;
3654
3654
  }
3655
- `,tA,eA,oA,rA,sA,iA,nA,aA,Lt,ex,ox,rx,sx,ix,nx,In,px,X,ax,lx,hx,ux,dx,cx,yr,mx,On,wr,lA,dA,fx,cA,pA,yh,hA,wh,Pe=class extends(aA=b,nA=[h({type:Boolean,attribute:"keep-mounted"})],iA=[h({attribute:"initial-focus"})],sA=[h({attribute:"final-focus"})],rA=[h()],oA=[E()],eA=[E()],tA=[E()],aA){constructor(){super(...arguments);n(this,X);n(this,ex,i(Lt,8,this,!1)),i(Lt,11,this);n(this,ox,i(Lt,12,this)),i(Lt,15,this);n(this,rx,i(Lt,16,this)),i(Lt,19,this);n(this,sx,i(Lt,20,this)),i(Lt,23,this);n(this,ix,i(Lt,24,this,!1)),i(Lt,27,this);n(this,ax,i(Lt,28,this,!1)),i(Lt,31,this);n(this,dx,i(Lt,32,this,!1)),i(Lt,35,this);n(this,On);n(this,wr,new W(this,{context:Ur,subscribe:!0}));n(this,yh,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,wr).value?.closeDialog()),t.key==="Tab"&&u(this,X,hA).call(this,t)});n(this,wh,()=>{r(this,wr).value?.closeDialog()})}updated(){let t=r(this,wr).value?.open??!1;t&&!r(this,X,In)?u(this,X,lA).call(this):!t&&r(this,X,In)&&!r(this,X,yr)&&u(this,X,dA).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),r(this,X,In)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,wr).value?.open??!1,e=r(this,wr).value?.titleId??"",a=r(this,wr).value?.descriptionId??"";return!r(this,X,In)&&!this.keepMounted?m``:m`
3655
+ `,pR,hR,uR,mR,fR,gR,vR,bR,Dt,Hx,Bx,Fx,Vx,Ux,qx,Pn,Gx,J,Px,jx,Yx,Xx,Wx,Kx,_o,Jx,jn,Ao,xR,yR,Qx,wR,kR,Uh,ER,qh,Xe=class extends(bR=b,vR=[u({type:Boolean,attribute:"keep-mounted"})],gR=[u({attribute:"initial-focus"})],fR=[u({attribute:"final-focus"})],mR=[u()],uR=[E()],hR=[E()],pR=[E()],bR){constructor(){super(...arguments);n(this,J);n(this,Hx,i(Dt,8,this,!1)),i(Dt,11,this);n(this,Bx,i(Dt,12,this)),i(Dt,15,this);n(this,Fx,i(Dt,16,this)),i(Dt,19,this);n(this,Vx,i(Dt,20,this)),i(Dt,23,this);n(this,Ux,i(Dt,24,this,!1)),i(Dt,27,this);n(this,Px,i(Dt,28,this,!1)),i(Dt,31,this);n(this,Wx,i(Dt,32,this,!1)),i(Dt,35,this);n(this,jn);n(this,Ao,new K(this,{context:Xo,subscribe:!0}));n(this,Uh,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),r(this,Ao).value?.closeDialog()),t.key==="Tab"&&h(this,J,ER).call(this,t)});n(this,qh,()=>{r(this,Ao).value?.closeDialog()})}updated(){let t=r(this,Ao).value?.open??!1;t&&!r(this,J,Pn)?h(this,J,xR).call(this):!t&&r(this,J,Pn)&&!r(this,J,_o)&&h(this,J,yR).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),r(this,J,Pn)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=r(this,Ao).value?.open??!1,e=r(this,Ao).value?.titleId??"",a=r(this,Ao).value?.descriptionId??"";return!r(this,J,Pn)&&!this.keepMounted?f``:f`
3656
3656
  <div
3657
3657
  part="backdrop"
3658
- ?data-open="${t&&!r(this,X,yr)}"
3659
- ?data-closed="${!t||r(this,X,yr)}"
3660
- ?data-starting-style="${r(this,X,hx)}"
3661
- ?data-ending-style="${r(this,X,yr)}"
3662
- @click="${r(this,wh)}"
3658
+ ?data-open="${t&&!r(this,J,_o)}"
3659
+ ?data-closed="${!t||r(this,J,_o)}"
3660
+ ?data-starting-style="${r(this,J,Yx)}"
3661
+ ?data-ending-style="${r(this,J,_o)}"
3662
+ @click="${r(this,qh)}"
3663
3663
  ></div>
3664
3664
  <div
3665
3665
  part="popup"
@@ -3667,26 +3667,26 @@ label, legend, caption, figcaption, th, td {
3667
3667
  aria-modal="true"
3668
3668
  aria-labelledby="${e}"
3669
3669
  aria-describedby="${a}"
3670
- ?data-open="${t&&!r(this,X,yr)}"
3671
- ?data-closed="${!t||r(this,X,yr)}"
3672
- ?data-starting-style="${r(this,X,hx)}"
3673
- ?data-ending-style="${r(this,X,yr)}"
3670
+ ?data-open="${t&&!r(this,J,_o)}"
3671
+ ?data-closed="${!t||r(this,J,_o)}"
3672
+ ?data-starting-style="${r(this,J,Yx)}"
3673
+ ?data-ending-style="${r(this,J,_o)}"
3674
3674
  tabindex="-1"
3675
- @keydown="${r(this,yh)}"
3675
+ @keydown="${r(this,Uh)}"
3676
3676
  >
3677
3677
  <h2 part="title" id="${e}"><slot name="title"></slot></h2>
3678
3678
  <p part="description" id="${a}"><slot name="description"></slot></p>
3679
3679
  <slot></slot>
3680
3680
  </div>
3681
- `}};Lt=T(aA),ex=new WeakMap,ox=new WeakMap,rx=new WeakMap,sx=new WeakMap,ix=new WeakMap,X=new WeakSet,ax=new WeakMap,dx=new WeakMap,On=new WeakMap,wr=new WeakMap,lA=async function(){p(this,On,document.activeElement??void 0),p(this,X,!0,px),p(this,X,!0,ux),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,X,!1,ux),await this.updateComplete,u(this,X,cA).call(this)},dA=function(){p(this,X,!0,mx);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){u(this,X,fx).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),u(this,X,fx).call(this))},l=f=>{f.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let c=setTimeout(a,200)},fx=function(){!r(this,X,yr)&&!r(this,X,In)||(p(this,X,!1,mx),this.keepMounted||p(this,X,!1,px),u(this,X,pA).call(this))},cA=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=Gc(t);if(e){e.focus();return}let a=Ci(t);if(a.length>0){a[0].focus();return}t.focus()},pA=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,On)?.focus(),p(this,On,void 0)},yh=new WeakMap,hA=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Ci(e);if(a.length===0){t.preventDefault();return}let l=a[0],c=a[a.length-1],f=l.matches(":focus"),x=c.matches(":focus"),C=!a.some(S=>S.matches(":focus"));t.shiftKey&&(f||C)?(t.preventDefault(),c.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},wh=new WeakMap,d(Lt,4,"keepMounted",nA,Pe,ex),d(Lt,4,"initialFocus",iA,Pe,ox),d(Lt,4,"finalFocus",sA,Pe,rx),d(Lt,4,"width",rA,Pe,sx),nx=d(Lt,20,"#mounted",oA,X,ix),In=nx.get,px=nx.set,lx=d(Lt,20,"#startingStyle",eA,X,ax),hx=lx.get,ux=lx.set,cx=d(Lt,20,"#endingStyle",tA,X,dx),yr=cx.get,mx=cx.set,$(Lt,Pe),v(Pe,"tagName","dui-dialog-popup"),v(Pe,"styles",[y,ON,LN]);var zN=g`
3681
+ `}};Dt=S(bR),Hx=new WeakMap,Bx=new WeakMap,Fx=new WeakMap,Vx=new WeakMap,Ux=new WeakMap,J=new WeakSet,Px=new WeakMap,Wx=new WeakMap,jn=new WeakMap,Ao=new WeakMap,xR=async function(){p(this,jn,document.activeElement??void 0),p(this,J,!0,Gx),p(this,J,!0,Xx),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,J,!1,Xx),await this.updateComplete,h(this,J,wR).call(this)},yR=function(){p(this,J,!0,Jx);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){h(this,J,Qx).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),h(this,J,Qx).call(this))},l=m=>{m.propertyName==="opacity"&&a()};t.addEventListener("transitionend",l);let c=setTimeout(a,200)},Qx=function(){!r(this,J,_o)&&!r(this,J,Pn)||(p(this,J,!1,Jx),this.keepMounted||p(this,J,!1,Gx),h(this,J,kR).call(this))},wR=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=gp(t);if(e){e.focus();return}let a=Di(t);if(a.length>0){a[0].focus();return}t.focus()},kR=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}r(this,jn)?.focus(),p(this,jn,void 0)},Uh=new WeakMap,ER=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let a=Di(e);if(a.length===0){t.preventDefault();return}let l=a[0],c=a[a.length-1],m=l.matches(":focus"),x=c.matches(":focus"),C=!a.some(T=>T.matches(":focus"));t.shiftKey&&(m||C)?(t.preventDefault(),c.focus()):!t.shiftKey&&x&&(t.preventDefault(),l.focus())},qh=new WeakMap,d(Dt,4,"keepMounted",vR,Xe,Hx),d(Dt,4,"initialFocus",gR,Xe,Bx),d(Dt,4,"finalFocus",fR,Xe,Fx),d(Dt,4,"width",mR,Xe,Vx),qx=d(Dt,20,"#mounted",uR,J,Ux),Pn=qx.get,Gx=qx.set,jx=d(Dt,20,"#startingStyle",hR,J,Px),Yx=jx.get,Xx=jx.set,Kx=d(Dt,20,"#endingStyle",pR,J,Wx),_o=Kx.get,Jx=Kx.set,$(Dt,Xe),g(Xe,"tagName","dui-dialog-popup"),g(Xe,"styles",[y,gH,vH]);var bH=v`
3682
3682
  :host {
3683
3683
  display: contents;
3684
3684
  }
3685
- `,vd=class extends b{static tagName="dui-dialog-close";static styles=[y,zN];#t=new W(this,{context:Ur,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return m`
3685
+ `,Ld=class extends b{static tagName="dui-dialog-close";static styles=[y,bH];#t=new K(this,{context:Xo,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
3686
3686
  <span @click="${this.#e}">
3687
3687
  <slot></slot>
3688
3688
  </span>
3689
- `}};var MN=k``,Ln=class extends ro{static styles=[...ro.styles,MN]};customElements.define(Ln.tagName,Ln);var zn=class extends vd{};customElements.define(zn.tagName,zn);var NN=k`
3689
+ `}};var xH=k``,Wn=class extends dr{static styles=[...dr.styles,xH]};customElements.define(Wn.tagName,Wn);var Kn=class extends Ld{};customElements.define(Kn.tagName,Kn);var yH=k`
3690
3690
 
3691
3691
  /* ── Backdrop ── */
3692
3692
 
@@ -3755,7 +3755,7 @@ label, legend, caption, figcaption, th, td {
3755
3755
  transition-duration: 0s;
3756
3756
  }
3757
3757
  }
3758
- `,Mn=class extends Pe{static styles=[...Pe.styles,NN]};customElements.define(Mn.tagName,Mn);var Nn=class extends gd{};customElements.define(Nn.tagName,Nn);var Tx=L("drop",{bubbles:!0,composed:!0}),_x=L("drop-accepted",{bubbles:!0,composed:!0}),Ax=L("drop-rejected",{bubbles:!0,composed:!0}),DN=L("dragenter",{bubbles:!0,composed:!0}),HN=L("dragover",{bubbles:!0,composed:!0}),BN=L("dragleave",{bubbles:!0,composed:!0}),bd=L("dropzone-error",{bubbles:!0,composed:!0}),FN=g`
3758
+ `,Gn=class extends Xe{static styles=[...Xe.styles,yH]};customElements.define(Gn.tagName,Gn);var Yn=class extends Od{};customElements.define(Yn.tagName,Yn);var cy=O("drop",{bubbles:!0,composed:!0}),py=O("drop-accepted",{bubbles:!0,composed:!0}),hy=O("drop-rejected",{bubbles:!0,composed:!0}),wH=O("dragenter",{bubbles:!0,composed:!0}),kH=O("dragover",{bubbles:!0,composed:!0}),EH=O("dragleave",{bubbles:!0,composed:!0}),zd=O("dropzone-error",{bubbles:!0,composed:!0}),CH=v`
3759
3759
  :host {
3760
3760
  display: block;
3761
3761
  }
@@ -3776,18 +3776,18 @@ label, legend, caption, figcaption, th, td {
3776
3776
  input[type="file"] {
3777
3777
  display: none;
3778
3778
  }
3779
- `,uA,mA,fA,gA,vA,bA,xA,yA,wA,kA,xt,gx,vx,bx,xx,yx,wx,kx,Ex,Cx,$x,EA,kh,fe,Eh,Ch,$h,Sh,Th,_h,Ah,Sx,CA,$A,zt=class zt extends(kA=b,wA=[h({type:String,reflect:!0})],yA=[h({type:Boolean,reflect:!0})],xA=[h({type:Boolean,reflect:!0})],bA=[h({type:Number,reflect:!0,attribute:"max-files"})],vA=[h({type:Number,reflect:!0,attribute:"max-size"})],gA=[h({type:Number,reflect:!0,attribute:"min-size"})],fA=[h({type:Boolean,reflect:!0,attribute:"auto-focus"})],mA=[h({type:Boolean,reflect:!0,attribute:"no-style"})],uA=[E()],kA){constructor(){super(...arguments);n(this,fe);n(this,gx,i(xt,8,this)),i(xt,11,this);n(this,vx,i(xt,12,this,!1)),i(xt,15,this);n(this,bx,i(xt,16,this,!1)),i(xt,19,this);n(this,xx,i(xt,20,this,1/0)),i(xt,23,this);n(this,yx,i(xt,24,this,1/0)),i(xt,27,this);n(this,wx,i(xt,28,this,0)),i(xt,31,this);n(this,kx,i(xt,32,this,!1)),i(xt,35,this);n(this,Ex,i(xt,36,this,!1)),i(xt,39,this);n(this,Cx,i(xt,40,this,!1)),i(xt,43,this);n(this,Eh,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,fe,!0,kh),this.dispatchEvent(DN()))});n(this,Ch,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(HN()))});n(this,$h,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,fe,!1,kh),this.dispatchEvent(BN()))});n(this,Sh,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){p(this,fe,!1,kh);try{let e=Array.from(t.dataTransfer?.files??[]);u(this,fe,Sx).call(this,e)}catch(e){this.dispatchEvent(bd({error:e,code:zt.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});n(this,Th,()=>{this.disabled||this.openFileDialog()});n(this,_h,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});n(this,Ah,t=>{if(this.disabled)return;let e=t.target,a=Array.from(e.files??[]);try{u(this,fe,Sx).call(this,a)}catch(l){this.dispatchEvent(bd({error:l,code:zt.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(bd({error:e,code:zt.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return m`
3779
+ `,CR,$R,SR,TR,_R,AR,RR,IR,OR,LR,Et,Zx,ty,ey,ry,oy,sy,iy,ny,ay,ly,zR,Ph,we,jh,Wh,Kh,Gh,Yh,Xh,Jh,dy,MR,NR,Ht=class Ht extends(LR=b,OR=[u({type:String,reflect:!0})],IR=[u({type:Boolean,reflect:!0})],RR=[u({type:Boolean,reflect:!0})],AR=[u({type:Number,reflect:!0,attribute:"max-files"})],_R=[u({type:Number,reflect:!0,attribute:"max-size"})],TR=[u({type:Number,reflect:!0,attribute:"min-size"})],SR=[u({type:Boolean,reflect:!0,attribute:"auto-focus"})],$R=[u({type:Boolean,reflect:!0,attribute:"no-style"})],CR=[E()],LR){constructor(){super(...arguments);n(this,we);n(this,Zx,i(Et,8,this)),i(Et,11,this);n(this,ty,i(Et,12,this,!1)),i(Et,15,this);n(this,ey,i(Et,16,this,!1)),i(Et,19,this);n(this,ry,i(Et,20,this,1/0)),i(Et,23,this);n(this,oy,i(Et,24,this,1/0)),i(Et,27,this);n(this,sy,i(Et,28,this,0)),i(Et,31,this);n(this,iy,i(Et,32,this,!1)),i(Et,35,this);n(this,ny,i(Et,36,this,!1)),i(Et,39,this);n(this,ay,i(Et,40,this,!1)),i(Et,43,this);n(this,jh,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,we,!0,Ph),this.dispatchEvent(wH()))});n(this,Wh,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(t.dataTransfer&&(t.dataTransfer.dropEffect="copy"),this.dispatchEvent(kH()))});n(this,Kh,t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(p(this,we,!1,Ph),this.dispatchEvent(EH()))});n(this,Gh,t=>{if(t.preventDefault(),t.stopPropagation(),!this.disabled){p(this,we,!1,Ph);try{let e=Array.from(t.dataTransfer?.files??[]);h(this,we,dy).call(this,e)}catch(e){this.dispatchEvent(zd({error:e,code:Ht.ERROR_CODES.FILE_PROCESSING_FAILED}))}}});n(this,Yh,()=>{this.disabled||this.openFileDialog()});n(this,Xh,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.openFileDialog())});n(this,Jh,t=>{if(this.disabled)return;let e=t.target,a=Array.from(e.files??[]);try{h(this,we,dy).call(this,a)}catch(l){this.dispatchEvent(zd({error:l,code:Ht.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(zd({error:e,code:Ht.ERROR_CODES.FILE_DIALOG_OPEN_FAILED}))}}render(){return f`
3780
3780
  <div
3781
3781
  part="root"
3782
3782
  tabindex="${this.disabled?-1:0}"
3783
- ?data-dragover="${r(this,fe,EA)}"
3783
+ ?data-dragover="${r(this,we,zR)}"
3784
3784
  ?data-disabled="${this.disabled}"
3785
- @dragenter="${r(this,Eh)}"
3786
- @dragover="${r(this,Ch)}"
3787
- @dragleave="${r(this,$h)}"
3788
- @drop="${r(this,Sh)}"
3789
- @click="${r(this,Th)}"
3790
- @keydown="${r(this,_h)}"
3785
+ @dragenter="${r(this,jh)}"
3786
+ @dragover="${r(this,Wh)}"
3787
+ @dragleave="${r(this,Kh)}"
3788
+ @drop="${r(this,Gh)}"
3789
+ @click="${r(this,Yh)}"
3790
+ @keydown="${r(this,Xh)}"
3791
3791
  >
3792
3792
  <slot>
3793
3793
  <span>Drag and drop files here or click to select</span>
@@ -3798,12 +3798,12 @@ label, legend, caption, figcaption, th, td {
3798
3798
  ?multiple="${this.multiple}"
3799
3799
  accept="${this.accept||""}"
3800
3800
  ?disabled="${this.disabled}"
3801
- @change="${r(this,Ah)}"
3801
+ @change="${r(this,Jh)}"
3802
3802
  tabindex="-1"
3803
3803
  aria-hidden="true"
3804
3804
  hidden
3805
3805
  />
3806
- `}};xt=T(kA),gx=new WeakMap,vx=new WeakMap,bx=new WeakMap,xx=new WeakMap,yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,Cx=new WeakMap,fe=new WeakSet,Eh=new WeakMap,Ch=new WeakMap,$h=new WeakMap,Sh=new WeakMap,Th=new WeakMap,_h=new WeakMap,Ah=new WeakMap,Sx=function(t){let{acceptedFiles:e,rejectedFiles:a}=u(this,fe,CA).call(this,t);this.dispatchEvent(Tx({acceptedFiles:e,rejectedFiles:a})),e.length>0&&this.dispatchEvent(_x({acceptedFiles:e})),a.length>0&&this.dispatchEvent(Ax({rejectedFiles:a}))},CA=function(t){let e=[],a=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let c of t)a.push({file:c,errors:[{code:zt.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:a}}for(let c of t){let f=[];c.size>this.maxSize&&f.push({code:zt.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),c.size<this.minSize&&f.push({code:zt.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!u(this,fe,$A).call(this,c)&&f.push({code:zt.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),f.length>0?a.push({file:c,errors:f}):e.push(c)}return{acceptedFiles:e,rejectedFiles:a}},$A=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(a=>a.trim().toLowerCase());for(let a of e)if(a.startsWith(".")){if(t.name.toLowerCase().endsWith(a))return!0}else if(a.endsWith("/*")){let l=a.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===a)return!0;return!1},d(xt,4,"accept",wA,zt,gx),d(xt,4,"multiple",yA,zt,vx),d(xt,4,"disabled",xA,zt,bx),d(xt,4,"maxFiles",bA,zt,xx),d(xt,4,"maxSize",vA,zt,yx),d(xt,4,"minSize",gA,zt,wx),d(xt,4,"autoFocus",fA,zt,kx),d(xt,4,"noStyle",mA,zt,Ex),$x=d(xt,20,"#isDragOver",uA,fe,Cx),EA=$x.get,kh=$x.set,$(xt,zt),v(zt,"tagName","dui-dropzone"),v(zt,"styles",[y,FN]),v(zt,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),v(zt,"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 Dn=zt;var UN=k`
3806
+ `}};Et=S(LR),Zx=new WeakMap,ty=new WeakMap,ey=new WeakMap,ry=new WeakMap,oy=new WeakMap,sy=new WeakMap,iy=new WeakMap,ny=new WeakMap,ay=new WeakMap,we=new WeakSet,jh=new WeakMap,Wh=new WeakMap,Kh=new WeakMap,Gh=new WeakMap,Yh=new WeakMap,Xh=new WeakMap,Jh=new WeakMap,dy=function(t){let{acceptedFiles:e,rejectedFiles:a}=h(this,we,MR).call(this,t);this.dispatchEvent(cy({acceptedFiles:e,rejectedFiles:a})),e.length>0&&this.dispatchEvent(py({acceptedFiles:e})),a.length>0&&this.dispatchEvent(hy({rejectedFiles:a}))},MR=function(t){let e=[],a=[],l=this.multiple?this.maxFiles:1;if(t.length>l){for(let c of t)a.push({file:c,errors:[{code:Ht.REJECTION_CODES.TOO_MANY_FILES,message:this.multiple?`Too many files. Maximum allowed is ${this.maxFiles}.`:"Multiple files not allowed."}]});return{acceptedFiles:e,rejectedFiles:a}}for(let c of t){let m=[];c.size>this.maxSize&&m.push({code:Ht.REJECTION_CODES.FILE_TOO_LARGE,message:`File is too large. Maximum size is ${this.maxSize} bytes.`}),c.size<this.minSize&&m.push({code:Ht.REJECTION_CODES.FILE_TOO_SMALL,message:`File is too small. Minimum size is ${this.minSize} bytes.`}),this.accept&&!h(this,we,NR).call(this,c)&&m.push({code:Ht.REJECTION_CODES.FILE_INVALID_TYPE,message:`File type not accepted. Allowed types: ${this.accept}`}),m.length>0?a.push({file:c,errors:m}):e.push(c)}return{acceptedFiles:e,rejectedFiles:a}},NR=function(t){if(!this.accept)return!0;let e=this.accept.split(",").map(a=>a.trim().toLowerCase());for(let a of e)if(a.startsWith(".")){if(t.name.toLowerCase().endsWith(a))return!0}else if(a.endsWith("/*")){let l=a.slice(0,-2);if(t.type.toLowerCase().startsWith(l))return!0}else if(t.type.toLowerCase()===a)return!0;return!1},d(Et,4,"accept",OR,Ht,Zx),d(Et,4,"multiple",IR,Ht,ty),d(Et,4,"disabled",RR,Ht,ey),d(Et,4,"maxFiles",AR,Ht,ry),d(Et,4,"maxSize",_R,Ht,oy),d(Et,4,"minSize",TR,Ht,sy),d(Et,4,"autoFocus",SR,Ht,iy),d(Et,4,"noStyle",$R,Ht,ny),ly=d(Et,20,"#isDragOver",CR,we,ay),zR=ly.get,Ph=ly.set,$(Et,Ht),g(Ht,"tagName","dui-dropzone"),g(Ht,"styles",[y,CH]),g(Ht,"ERROR_CODES",{FILE_DIALOG_OPEN_FAILED:"FILE_DIALOG_OPEN_FAILED",FILE_PROCESSING_FAILED:"FILE_PROCESSING_FAILED"}),g(Ht,"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 Xn=Ht;var $H=k`
3807
3807
  :host([disabled]) {
3808
3808
  opacity: 0.4;
3809
3809
  }
@@ -3835,7 +3835,7 @@ label, legend, caption, figcaption, th, td {
3835
3835
  border-color: var(--accent);
3836
3836
  background: var(--accent-subtle);
3837
3837
  }
3838
- `,Hn=class extends Dn{static styles=[...Dn.styles,UN]};customElements.define(Hn.tagName,Hn);var VN=["dui-input","dui-textarea","dui-select","dui-checkbox","dui-checkbox-group","dui-radio","dui-radio-group","dui-switch","dui-number-field","dui-stepper","dui-slider","dui-combobox","dui-dropzone"].join(", "),qN=g`
3838
+ `,Jn=class extends Xn{static styles=[...Xn.styles,$H]};customElements.define(Jn.tagName,Jn);var SH=["dui-input","dui-textarea","dui-select","dui-checkbox","dui-checkbox-group","dui-radio","dui-radio-group","dui-switch","dui-number-field","dui-stepper","dui-slider","dui-combobox","dui-dropzone"].join(", "),TH=v`
3839
3839
  :host {
3840
3840
  display: block;
3841
3841
  }
@@ -3859,55 +3859,55 @@ label, legend, caption, figcaption, th, td {
3859
3859
 
3860
3860
  [part="error"] { display: none; }
3861
3861
  [part="error"][data-invalid] { display: block; }
3862
- `,SA,TA,_A,AA,RA,IA,OA,LA,zA,MA,NA,at,Rx,Ix,Ox,Lx,zx,DA,Kx,q,Mx,Nx,HA,BA,Dx,Hx,FA,Gx,Bx,Fx,UA,VA,Ux,Vx,qA,PA,qx,Px,Yx,jA,jx,Wx,WA,KA,Bn,GA,Xx,Jx,Te,Fn,yd,wd,kd,Ed,Rh,Ih,Oh,Lh,xd,zh,so=class extends(NA=b,MA=[h({type:Boolean,reflect:!0})],zA=[h({type:Boolean,reflect:!0})],LA=[h()],OA=[E()],IA=[E()],RA=[E()],AA=[E()],_A=[E()],TA=[E()],SA=[E()],NA){constructor(){super(...arguments);n(this,q);n(this,Rx,i(at,8,this,!1)),i(at,11,this);n(this,Ix,i(at,12,this,!1)),i(at,15,this);n(this,Ox,i(at,16,this,"vertical")),i(at,19,this);n(this,Lx,i(at,20,this,!1)),i(at,23,this);n(this,Mx,i(at,24,this,!1)),i(at,27,this);n(this,Dx,i(at,28,this,!1)),i(at,31,this);n(this,Bx,i(at,32,this,!1)),i(at,35,this);n(this,Ux,i(at,36,this,!1)),i(at,39,this);n(this,qx,i(at,40,this,!1)),i(at,43,this);n(this,jx,i(at,44,this,!1)),i(at,47,this);n(this,Bn,crypto.randomUUID().slice(0,8));n(this,Te);n(this,Fn,!1);n(this,yd,()=>{p(this,q,!0,Gx)});n(this,wd,()=>{p(this,q,!1,Gx),p(this,q,!0,BA)});n(this,kd,()=>{p(this,q,!0,Kx),p(this,q,!0,VA)});n(this,Ed,()=>{p(this,q,!0,Kx)});n(this,Rh,()=>{let e=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];p(this,Te,e.find(a=>a.matches(VN))),r(this,Te)&&(u(this,q,xd).call(this),this.disabled&&(p(this,Fn,r(this,Te).hasAttribute("disabled")),r(this,Te).setAttribute("disabled","")))});n(this,Ih,t=>{let e=t.target;p(this,q,e.assignedNodes({flatten:!0}).length>0,PA)});n(this,Oh,t=>{let e=t.target;p(this,q,e.assignedNodes({flatten:!0}).length>0,jA),u(this,q,xd).call(this)});n(this,Lh,t=>{let e=t.target;p(this,q,e.assignedNodes({flatten:!0}).length>0,KA),u(this,q,xd).call(this)});n(this,zh,()=>{this.disabled||r(this,Te)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",r(this,yd)),this.addEventListener("focusout",r(this,wd)),this.addEventListener("input",r(this,kd)),this.addEventListener("change",r(this,Ed))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",r(this,yd)),this.removeEventListener("focusout",r(this,wd)),this.removeEventListener("input",r(this,kd)),this.removeEventListener("change",r(this,Ed))}willUpdate(t){t.has("invalid")&&r(this,Te)&&u(this,q,xd).call(this),t.has("disabled")&&r(this,Te)&&(this.disabled?(p(this,Fn,r(this,Te).hasAttribute("disabled")),r(this,Te).setAttribute("disabled","")):r(this,Fn)||r(this,Te).removeAttribute("disabled"))}render(){return m`
3862
+ `,DR,HR,BR,FR,VR,UR,qR,PR,jR,WR,KR,dt,uy,my,fy,gy,vy,GR,Ry,P,by,xy,YR,XR,yy,wy,JR,Iy,ky,Ey,QR,ZR,Cy,$y,tI,eI,Sy,Ty,Oy,rI,_y,Ay,oI,sI,Qn,iI,Ly,zy,ze,Zn,Nd,Dd,Hd,Bd,Qh,Zh,tu,eu,Md,ru,cr=class extends(KR=b,WR=[u({type:Boolean,reflect:!0})],jR=[u({type:Boolean,reflect:!0})],PR=[u()],qR=[E()],UR=[E()],VR=[E()],FR=[E()],BR=[E()],HR=[E()],DR=[E()],KR){constructor(){super(...arguments);n(this,P);n(this,uy,i(dt,8,this,!1)),i(dt,11,this);n(this,my,i(dt,12,this,!1)),i(dt,15,this);n(this,fy,i(dt,16,this,"vertical")),i(dt,19,this);n(this,gy,i(dt,20,this,!1)),i(dt,23,this);n(this,by,i(dt,24,this,!1)),i(dt,27,this);n(this,yy,i(dt,28,this,!1)),i(dt,31,this);n(this,ky,i(dt,32,this,!1)),i(dt,35,this);n(this,Cy,i(dt,36,this,!1)),i(dt,39,this);n(this,Sy,i(dt,40,this,!1)),i(dt,43,this);n(this,_y,i(dt,44,this,!1)),i(dt,47,this);n(this,Qn,crypto.randomUUID().slice(0,8));n(this,ze);n(this,Zn,!1);n(this,Nd,()=>{p(this,P,!0,Iy)});n(this,Dd,()=>{p(this,P,!1,Iy),p(this,P,!0,XR)});n(this,Hd,()=>{p(this,P,!0,Ry),p(this,P,!0,ZR)});n(this,Bd,()=>{p(this,P,!0,Ry)});n(this,Qh,()=>{let e=this.shadowRoot?.querySelector("slot:not([name])")?.assignedElements({flatten:!0})??[];p(this,ze,e.find(a=>a.matches(SH))),r(this,ze)&&(h(this,P,Md).call(this),this.disabled&&(p(this,Zn,r(this,ze).hasAttribute("disabled")),r(this,ze).setAttribute("disabled","")))});n(this,Zh,t=>{let e=t.target;p(this,P,e.assignedNodes({flatten:!0}).length>0,eI)});n(this,tu,t=>{let e=t.target;p(this,P,e.assignedNodes({flatten:!0}).length>0,rI),h(this,P,Md).call(this)});n(this,eu,t=>{let e=t.target;p(this,P,e.assignedNodes({flatten:!0}).length>0,sI),h(this,P,Md).call(this)});n(this,ru,()=>{this.disabled||r(this,ze)?.focus()})}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",r(this,Nd)),this.addEventListener("focusout",r(this,Dd)),this.addEventListener("input",r(this,Hd)),this.addEventListener("change",r(this,Bd))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",r(this,Nd)),this.removeEventListener("focusout",r(this,Dd)),this.removeEventListener("input",r(this,Hd)),this.removeEventListener("change",r(this,Bd))}willUpdate(t){t.has("invalid")&&r(this,ze)&&h(this,P,Md).call(this),t.has("disabled")&&r(this,ze)&&(this.disabled?(p(this,Zn,r(this,ze).hasAttribute("disabled")),r(this,ze).setAttribute("disabled","")):r(this,Zn)||r(this,ze).removeAttribute("disabled"))}render(){return f`
3863
3863
  <div
3864
3864
  part="root"
3865
3865
  role="group"
3866
3866
  ?data-disabled="${this.disabled}"
3867
3867
  ?data-invalid="${this.invalid}"
3868
3868
  ?data-valid="${!this.invalid}"
3869
- ?data-dirty="${r(this,q,DA)}"
3870
- ?data-touched="${r(this,q,HA)}"
3871
- ?data-filled="${r(this,q,UA)}"
3872
- ?data-focused="${r(this,q,FA)}"
3869
+ ?data-dirty="${r(this,P,GR)}"
3870
+ ?data-touched="${r(this,P,YR)}"
3871
+ ?data-filled="${r(this,P,QR)}"
3872
+ ?data-focused="${r(this,P,JR)}"
3873
3873
  data-orientation="${this.orientation}"
3874
3874
  >
3875
3875
  <div
3876
3876
  part="label"
3877
- id="${r(this,q,GA)}"
3878
- ?data-slotted="${r(this,q,qA)}"
3877
+ id="${r(this,P,iI)}"
3878
+ ?data-slotted="${r(this,P,tI)}"
3879
3879
  ?data-disabled="${this.disabled}"
3880
- @click="${r(this,zh)}"
3880
+ @click="${r(this,ru)}"
3881
3881
  >
3882
3882
  <slot
3883
3883
  name="label"
3884
- @slotchange="${r(this,Ih)}"
3884
+ @slotchange="${r(this,Zh)}"
3885
3885
  ></slot>
3886
3886
  </div>
3887
- <slot @slotchange="${r(this,Rh)}"></slot>
3887
+ <slot @slotchange="${r(this,Qh)}"></slot>
3888
3888
  <div
3889
3889
  part="description"
3890
- id="${r(this,q,Xx)}"
3891
- ?data-slotted="${r(this,q,Yx)}"
3890
+ id="${r(this,P,Ly)}"
3891
+ ?data-slotted="${r(this,P,Oy)}"
3892
3892
  >
3893
3893
  <slot
3894
3894
  name="description"
3895
- @slotchange="${r(this,Oh)}"
3895
+ @slotchange="${r(this,tu)}"
3896
3896
  ></slot>
3897
3897
  </div>
3898
3898
  <div
3899
3899
  part="error"
3900
- id="${r(this,q,Jx)}"
3900
+ id="${r(this,P,zy)}"
3901
3901
  role="alert"
3902
3902
  ?data-invalid="${this.invalid}"
3903
3903
  >
3904
3904
  <slot
3905
3905
  name="error"
3906
- @slotchange="${r(this,Lh)}"
3906
+ @slotchange="${r(this,eu)}"
3907
3907
  ></slot>
3908
3908
  </div>
3909
3909
  </div>
3910
- `}};at=T(NA),Rx=new WeakMap,Ix=new WeakMap,Ox=new WeakMap,Lx=new WeakMap,q=new WeakSet,Mx=new WeakMap,Dx=new WeakMap,Bx=new WeakMap,Ux=new WeakMap,qx=new WeakMap,jx=new WeakMap,Bn=new WeakMap,GA=function(){return`field-${r(this,Bn)}-label`},Xx=function(){return`field-${r(this,Bn)}-desc`},Jx=function(){return`field-${r(this,Bn)}-error`},Te=new WeakMap,Fn=new WeakMap,yd=new WeakMap,wd=new WeakMap,kd=new WeakMap,Ed=new WeakMap,Rh=new WeakMap,Ih=new WeakMap,Oh=new WeakMap,Lh=new WeakMap,xd=function(){let t=r(this,Te);if(!t)return;let e=[];r(this,q,Yx)&&e.push(r(this,q,Xx)),this.invalid&&r(this,q,WA)&&e.push(r(this,q,Jx));let a=e.join(" ")||null;a?t.setAttribute("aria-describedby",a):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},zh=new WeakMap,d(at,4,"disabled",MA,so,Rx),d(at,4,"invalid",zA,so,Ix),d(at,4,"orientation",LA,so,Ox),zx=d(at,20,"#dirty",OA,q,Lx),DA=zx.get,Kx=zx.set,Nx=d(at,20,"#touched",IA,q,Mx),HA=Nx.get,BA=Nx.set,Hx=d(at,20,"#focused",RA,q,Dx),FA=Hx.get,Gx=Hx.set,Fx=d(at,20,"#filled",AA,q,Bx),UA=Fx.get,VA=Fx.set,Vx=d(at,20,"#hasLabel",_A,q,Ux),qA=Vx.get,PA=Vx.set,Px=d(at,20,"#hasDescription",TA,q,qx),Yx=Px.get,jA=Px.set,Wx=d(at,20,"#hasError",SA,q,jx),WA=Wx.get,KA=Wx.set,$(at,so),v(so,"tagName","dui-field"),v(so,"styles",[y,qN]);var PN=k`
3910
+ `}};dt=S(KR),uy=new WeakMap,my=new WeakMap,fy=new WeakMap,gy=new WeakMap,P=new WeakSet,by=new WeakMap,yy=new WeakMap,ky=new WeakMap,Cy=new WeakMap,Sy=new WeakMap,_y=new WeakMap,Qn=new WeakMap,iI=function(){return`field-${r(this,Qn)}-label`},Ly=function(){return`field-${r(this,Qn)}-desc`},zy=function(){return`field-${r(this,Qn)}-error`},ze=new WeakMap,Zn=new WeakMap,Nd=new WeakMap,Dd=new WeakMap,Hd=new WeakMap,Bd=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,Md=function(){let t=r(this,ze);if(!t)return;let e=[];r(this,P,Oy)&&e.push(r(this,P,Ly)),this.invalid&&r(this,P,oI)&&e.push(r(this,P,zy));let a=e.join(" ")||null;a?t.setAttribute("aria-describedby",a):t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid",String(this.invalid))},ru=new WeakMap,d(dt,4,"disabled",WR,cr,uy),d(dt,4,"invalid",jR,cr,my),d(dt,4,"orientation",PR,cr,fy),vy=d(dt,20,"#dirty",qR,P,gy),GR=vy.get,Ry=vy.set,xy=d(dt,20,"#touched",UR,P,by),YR=xy.get,XR=xy.set,wy=d(dt,20,"#focused",VR,P,yy),JR=wy.get,Iy=wy.set,Ey=d(dt,20,"#filled",FR,P,ky),QR=Ey.get,ZR=Ey.set,$y=d(dt,20,"#hasLabel",BR,P,Cy),tI=$y.get,eI=$y.set,Ty=d(dt,20,"#hasDescription",HR,P,Sy),Oy=Ty.get,rI=Ty.set,Ay=d(dt,20,"#hasError",DR,P,_y),oI=Ay.get,sI=Ay.set,$(dt,cr),g(cr,"tagName","dui-field"),g(cr,"styles",[y,TH]);var _H=k`
3911
3911
  [part="root"] {
3912
3912
  gap: var(--space-2);
3913
3913
  }
@@ -3943,7 +3943,7 @@ label, legend, caption, figcaption, th, td {
3943
3943
  color: var(--destructive);
3944
3944
  margin: 0;
3945
3945
  }
3946
- `,Un=class extends so{static styles=[...so.styles,PN]};customElements.define(Un.tagName,Un);var jN=g`
3946
+ `,ta=class extends cr{static styles=[...cr.styles,_H]};customElements.define(ta.tagName,ta);var AH=v`
3947
3947
  :host {
3948
3948
  display: block;
3949
3949
  }
@@ -3957,18 +3957,18 @@ label, legend, caption, figcaption, th, td {
3957
3957
 
3958
3958
  [part="legend"]:not([data-slotted]) { display: none; }
3959
3959
  [part="legend"] { padding: 0; }
3960
- `,YA,XA,JA,Ls,Qx,Zx,ty,QA,ZA,Vn,Mh,Bo=class extends(JA=b,XA=[h({type:Boolean,reflect:!0})],YA=[E()],JA){constructor(){super(...arguments);n(this,Vn);n(this,Qx,i(Ls,8,this,!1)),i(Ls,11,this);n(this,Zx,i(Ls,12,this,!1)),i(Ls,15,this);n(this,Mh,t=>{let e=t.target;p(this,Vn,e.assignedNodes({flatten:!0}).length>0,ZA)})}render(){return m`
3960
+ `,nI,aI,lI,Ps,My,Ny,Dy,dI,cI,ea,ou,Pr=class extends(lI=b,aI=[u({type:Boolean,reflect:!0})],nI=[E()],lI){constructor(){super(...arguments);n(this,ea);n(this,My,i(Ps,8,this,!1)),i(Ps,11,this);n(this,Ny,i(Ps,12,this,!1)),i(Ps,15,this);n(this,ou,t=>{let e=t.target;p(this,ea,e.assignedNodes({flatten:!0}).length>0,cI)})}render(){return f`
3961
3961
  <fieldset
3962
3962
  part="root"
3963
3963
  ?disabled="${this.disabled}"
3964
3964
  ?data-disabled="${this.disabled}"
3965
3965
  >
3966
- <legend part="legend" ?data-slotted="${r(this,Vn,QA)}">
3967
- <slot name="legend" @slotchange="${r(this,Mh)}"></slot>
3966
+ <legend part="legend" ?data-slotted="${r(this,ea,dI)}">
3967
+ <slot name="legend" @slotchange="${r(this,ou)}"></slot>
3968
3968
  </legend>
3969
3969
  <slot></slot>
3970
3970
  </fieldset>
3971
- `}};Ls=T(JA),Qx=new WeakMap,Zx=new WeakMap,Vn=new WeakSet,Mh=new WeakMap,d(Ls,4,"disabled",XA,Bo,Qx),ty=d(Ls,20,"#hasLegend",YA,Vn,Zx),QA=ty.get,ZA=ty.set,$(Ls,Bo),v(Bo,"tagName","dui-fieldset"),v(Bo,"styles",[y,jN]);var WN=k`
3971
+ `}};Ps=S(lI),My=new WeakMap,Ny=new WeakMap,ea=new WeakSet,ou=new WeakMap,d(Ps,4,"disabled",aI,Pr,My),Dy=d(Ps,20,"#hasLegend",nI,ea,Ny),dI=Dy.get,cI=Dy.set,$(Ps,Pr),g(Pr,"tagName","dui-fieldset"),g(Pr,"styles",[y,AH]);var RH=k`
3972
3972
  [part="root"] {
3973
3973
  display: flex;
3974
3974
  flex-direction: column;
@@ -3987,7 +3987,7 @@ label, legend, caption, figcaption, th, td {
3987
3987
  color: var(--text-1);
3988
3988
  margin-bottom: var(--space-2);
3989
3989
  }
3990
- `,qn=class extends Bo{static styles=[...Bo.styles,WN]};customElements.define(qn.tagName,qn);var KN=g`
3990
+ `,ra=class extends Pr{static styles=[...Pr.styles,RH]};customElements.define(ra.tagName,ra);var IH=v`
3991
3991
  :host {
3992
3992
  display: inline-flex;
3993
3993
  align-items: center;
@@ -4001,7 +4001,7 @@ label, legend, caption, figcaption, th, td {
4001
4001
  width: 100%;
4002
4002
  height: 100%;
4003
4003
  }
4004
- `,Cd=class extends b{static tagName="dui-icon";static styles=[y,KN];render(){return m`<slot></slot>`}};var Pn=class extends Cd{};customElements.define(Pn.tagName,Pn);var $d=s=>s??I;var my=L("input-change",{bubbles:!0,composed:!0}),GN=g`
4004
+ `,Fd=class extends b{static tagName="dui-icon";static styles=[y,IH];render(){return f`<slot></slot>`}};var oa=class extends Fd{};customElements.define(oa.tagName,oa);var Vd=s=>s??I;var Jy=O("input-change",{bubbles:!0,composed:!0}),OH=v`
4005
4005
  :host {
4006
4006
  display: block;
4007
4007
  }
@@ -4015,23 +4015,23 @@ label, legend, caption, figcaption, th, td {
4015
4015
  [part="input"]:disabled {
4016
4016
  cursor: not-allowed;
4017
4017
  }
4018
- `,tR,eR,oR,rR,sR,iR,nR,aR,lR,dR,cR,pR,hR,jn,Q,ey,oy,ry,sy,iy,ny,ay,ly,dy,cy,py,hy,Dh,kr,uy,Nh,At=class extends(hR=b,pR=[h({type:String})],cR=[h({type:String})],dR=[h({type:String})],lR=[h({type:Boolean,reflect:!0})],aR=[h({type:Boolean})],nR=[h({type:Boolean})],iR=[h({type:Number,attribute:"minlength"})],sR=[h({type:Number,attribute:"maxlength"})],rR=[h({type:String})],oR=[h({type:String})],eR=[h({type:String})],tR=[h({type:Boolean})],hR){constructor(){super();n(this,kr);n(this,jn);n(this,ey,i(Q,8,this,"text")),i(Q,11,this);n(this,oy,i(Q,12,this,"")),i(Q,15,this);n(this,ry,i(Q,16,this,"")),i(Q,19,this);n(this,sy,i(Q,20,this,!1)),i(Q,23,this);n(this,iy,i(Q,24,this,!1)),i(Q,27,this);n(this,ny,i(Q,28,this,!1)),i(Q,31,this);n(this,ay,i(Q,32,this)),i(Q,35,this);n(this,ly,i(Q,36,this)),i(Q,39,this);n(this,dy,i(Q,40,this)),i(Q,43,this);n(this,cy,i(Q,44,this,"")),i(Q,47,this);n(this,py,i(Q,48,this)),i(Q,51,this);n(this,hy,i(Q,52,this,!1)),i(Q,55,this);n(this,Dh,t=>{let e=t.target;this.value=e.value,u(this,kr,uy).call(this),u(this,kr,Nh).call(this),this.dispatchEvent(my({value:this.value}))});p(this,jn,this.attachInternals())}firstUpdated(){u(this,kr,Nh).call(this),this.autofocus&&this.focus()}updated(){u(this,kr,Nh).call(this)}willUpdate(){u(this,kr,uy).call(this)}render(){return m`
4018
+ `,pI,hI,uI,mI,fI,gI,vI,bI,xI,yI,wI,kI,EI,sa,tt,Hy,By,Fy,Vy,Uy,qy,Py,jy,Wy,Ky,Gy,Yy,iu,Ro,Xy,su,Lt=class extends(EI=b,kI=[u({type:String})],wI=[u({type:String})],yI=[u({type:String})],xI=[u({type:Boolean,reflect:!0})],bI=[u({type:Boolean})],vI=[u({type:Boolean})],gI=[u({type:Number,attribute:"minlength"})],fI=[u({type:Number,attribute:"maxlength"})],mI=[u({type:String})],uI=[u({type:String})],hI=[u({type:String})],pI=[u({type:Boolean})],EI){constructor(){super();n(this,Ro);n(this,sa);n(this,Hy,i(tt,8,this,"text")),i(tt,11,this);n(this,By,i(tt,12,this,"")),i(tt,15,this);n(this,Fy,i(tt,16,this,"")),i(tt,19,this);n(this,Vy,i(tt,20,this,!1)),i(tt,23,this);n(this,Uy,i(tt,24,this,!1)),i(tt,27,this);n(this,qy,i(tt,28,this,!1)),i(tt,31,this);n(this,Py,i(tt,32,this)),i(tt,35,this);n(this,jy,i(tt,36,this)),i(tt,39,this);n(this,Wy,i(tt,40,this)),i(tt,43,this);n(this,Ky,i(tt,44,this,"")),i(tt,47,this);n(this,Gy,i(tt,48,this)),i(tt,51,this);n(this,Yy,i(tt,52,this,!1)),i(tt,55,this);n(this,iu,t=>{let e=t.target;this.value=e.value,h(this,Ro,Xy).call(this),h(this,Ro,su).call(this),this.dispatchEvent(Jy({value:this.value}))});p(this,sa,this.attachInternals())}firstUpdated(){h(this,Ro,su).call(this),this.autofocus&&this.focus()}updated(){h(this,Ro,su).call(this)}willUpdate(){h(this,Ro,Xy).call(this)}render(){return f`
4019
4019
  <input
4020
4020
  part="input"
4021
4021
  type="${this.type}"
4022
- .value="${Io(this.value)}"
4022
+ .value="${Nr(this.value)}"
4023
4023
  placeholder="${this.placeholder}"
4024
4024
  ?disabled="${this.disabled}"
4025
4025
  ?required="${this.required}"
4026
4026
  ?readonly="${this.readonly}"
4027
- minlength="${$d(this.minLength)}"
4028
- maxlength="${$d(this.maxLength)}"
4029
- pattern="${$d(this.pattern)}"
4027
+ minlength="${Vd(this.minLength)}"
4028
+ maxlength="${Vd(this.maxLength)}"
4029
+ pattern="${Vd(this.pattern)}"
4030
4030
  name="${this.name}"
4031
- autocomplete="${$d(this.autocomplete)}"
4032
- @input="${r(this,Dh)}"
4031
+ autocomplete="${Vd(this.autocomplete)}"
4032
+ @input="${r(this,iu)}"
4033
4033
  />
4034
- `}};Q=T(hR),jn=new WeakMap,ey=new WeakMap,oy=new WeakMap,ry=new WeakMap,sy=new WeakMap,iy=new WeakMap,ny=new WeakMap,ay=new WeakMap,ly=new WeakMap,dy=new WeakMap,cy=new WeakMap,py=new WeakMap,hy=new WeakMap,Dh=new WeakMap,kr=new WeakSet,uy=function(){r(this,jn).setFormValue(this.value)},Nh=function(){let t=this.shadowRoot?.querySelector("input");t&&r(this,jn).setValidity(t.validity,t.validationMessage,t)},d(Q,4,"type",pR,At,ey),d(Q,4,"value",cR,At,oy),d(Q,4,"placeholder",dR,At,ry),d(Q,4,"disabled",lR,At,sy),d(Q,4,"required",aR,At,iy),d(Q,4,"readonly",nR,At,ny),d(Q,4,"minLength",iR,At,ay),d(Q,4,"maxLength",sR,At,ly),d(Q,4,"pattern",rR,At,dy),d(Q,4,"name",oR,At,cy),d(Q,4,"autocomplete",eR,At,py),d(Q,4,"autofocus",tR,At,hy),$(Q,At),v(At,"tagName","dui-input"),v(At,"formAssociated",!0),v(At,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),v(At,"styles",[y,GN]);var YN=k`
4034
+ `}};tt=S(EI),sa=new WeakMap,Hy=new WeakMap,By=new WeakMap,Fy=new WeakMap,Vy=new WeakMap,Uy=new WeakMap,qy=new WeakMap,Py=new WeakMap,jy=new WeakMap,Wy=new WeakMap,Ky=new WeakMap,Gy=new WeakMap,Yy=new WeakMap,iu=new WeakMap,Ro=new WeakSet,Xy=function(){r(this,sa).setFormValue(this.value)},su=function(){let t=this.shadowRoot?.querySelector("input");t&&r(this,sa).setValidity(t.validity,t.validationMessage,t)},d(tt,4,"type",kI,Lt,Hy),d(tt,4,"value",wI,Lt,By),d(tt,4,"placeholder",yI,Lt,Fy),d(tt,4,"disabled",xI,Lt,Vy),d(tt,4,"required",bI,Lt,Uy),d(tt,4,"readonly",vI,Lt,qy),d(tt,4,"minLength",gI,Lt,Py),d(tt,4,"maxLength",fI,Lt,jy),d(tt,4,"pattern",mI,Lt,Wy),d(tt,4,"name",uI,Lt,Ky),d(tt,4,"autocomplete",hI,Lt,Gy),d(tt,4,"autofocus",pI,Lt,Yy),$(tt,Lt),g(Lt,"tagName","dui-input"),g(Lt,"formAssociated",!0),g(Lt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Lt,"styles",[y,OH]);var LH=k`
4035
4035
  [part="input"] {
4036
4036
  padding: var(--space-2);
4037
4037
  font-family: var(--font-sans);
@@ -4088,7 +4088,7 @@ label, legend, caption, figcaption, th, td {
4088
4088
  -webkit-text-fill-color: var(--text-1);
4089
4089
  transition: background-color 5000s ease-in-out 0s;
4090
4090
  }
4091
- `,Wn=class extends At{static styles=[...At.styles,YN]};customElements.define(Wn.tagName,Wn);var XN=g`
4091
+ `,ia=class extends Lt{static styles=[...Lt.styles,LH]};customElements.define(ia.tagName,ia);var zH=v`
4092
4092
  :host {
4093
4093
  display: block;
4094
4094
  }
@@ -4096,26 +4096,26 @@ label, legend, caption, figcaption, th, td {
4096
4096
  :host([disabled]) {
4097
4097
  pointer-events: none;
4098
4098
  }
4099
- `,JN=g`
4099
+ `,MH=v`
4100
4100
  .Item {
4101
4101
  display: flex;
4102
4102
  align-items: center;
4103
4103
  cursor: pointer;
4104
4104
  }
4105
- `,uR,mR,Hh,fy,_e=class extends(mR=b,uR=[h({type:Boolean,reflect:!0})],mR){constructor(){super(...arguments);n(this,fy,i(Hh,8,this,!1)),i(Hh,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return m`
4105
+ `,CI,$I,nu,Qy,Me=class extends($I=b,CI=[u({type:Boolean,reflect:!0})],$I){constructor(){super(...arguments);n(this,Qy,i(nu,8,this,!1)),i(nu,11,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","menuitem"),this.setAttribute("tabindex","-1")}render(){return f`
4106
4106
  <div class="Item" part="root" aria-disabled="${this.disabled}">
4107
4107
  <slot></slot>
4108
4108
  </div>
4109
- `}};Hh=T(mR),fy=new WeakMap,d(Hh,4,"disabled",uR,_e,fy),$(Hh,_e),v(_e,"tagName","dui-menu-item"),v(_e,"styles",[y,XN,JN]);var QN=g`
4109
+ `}};nu=S($I),Qy=new WeakMap,d(nu,4,"disabled",CI,Me,Qy),$(nu,Me),g(Me,"tagName","dui-menu-item"),g(Me,"styles",[y,zH,MH]);var NH=v`
4110
4110
  :host {
4111
4111
  display: block;
4112
4112
  }
4113
- `,ZN=g`
4113
+ `,DH=v`
4114
4114
  .Trigger {
4115
4115
  display: contents;
4116
4116
  cursor: pointer;
4117
4117
  }
4118
- `,tD=[g`
4118
+ `,HH=[v`
4119
4119
  .Popup {
4120
4120
  max-height: 240px;
4121
4121
  overflow-y: auto;
@@ -4130,7 +4130,7 @@ label, legend, caption, figcaption, th, td {
4130
4130
  .Popup[data-ending-style] {
4131
4131
  opacity: 0;
4132
4132
  }
4133
- `],fR,gR,vR,zs,gy,vy,by,Ms,Vr,Mt,Kn,Rt,Sd,xy,bR,Bh,Fh,Uh,Vh,Fo=class extends(vR=b,gR=[h({attribute:"popup-min-width"})],fR=[E()],vR){constructor(){super(...arguments);n(this,Mt);n(this,gy,i(zs,8,this,"var(--space-28)")),i(zs,11,this);n(this,vy,i(zs,12,this,-1)),i(zs,15,this);n(this,Kn,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);n(this,Rt,new ae(this,{getAnchor:()=>r(this,Kn).call(this)??this,matchWidth:!1,styles:tD,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{p(this,Mt,-1,Vr),r(this,Kn).call(this)?.setAttribute("data-open","")},onClose:()=>{p(this,Mt,-1,Vr),r(this,Kn).call(this)?.removeAttribute("data-open")},renderPopup:t=>m`
4133
+ `],SI,TI,_I,js,Zy,t0,e0,Ws,Jo,Bt,na,zt,Ud,r0,AI,au,lu,du,cu,jr=class extends(_I=b,TI=[u({attribute:"popup-min-width"})],SI=[E()],_I){constructor(){super(...arguments);n(this,Bt);n(this,Zy,i(js,8,this,"var(--space-28)")),i(js,11,this);n(this,t0,i(js,12,this,-1)),i(js,15,this);n(this,na,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);n(this,zt,new he(this,{getAnchor:()=>r(this,na).call(this)??this,matchWidth:!1,styles:HH,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{p(this,Bt,-1,Jo),r(this,na).call(this)?.setAttribute("data-open","")},onClose:()=>{p(this,Bt,-1,Jo),r(this,na).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
4134
4134
  <div
4135
4135
  class="Popup"
4136
4136
  style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
@@ -4139,24 +4139,24 @@ label, legend, caption, figcaption, th, td {
4139
4139
  >
4140
4140
  <div
4141
4141
  class="Menu"
4142
- id="${r(this,Sd)}"
4142
+ id="${r(this,Ud)}"
4143
4143
  role="menu"
4144
- @click="${r(this,Fh)}"
4145
- @mousemove="${r(this,Vh)}"
4144
+ @click="${r(this,lu)}"
4145
+ @mousemove="${r(this,cu)}"
4146
4146
  ></div>
4147
4147
  </div>
4148
- `}));n(this,Sd,`menu-${crypto.randomUUID().slice(0,8)}`);n(this,Bh,t=>{t.stopPropagation(),t.preventDefault(),u(this,Mt,bR).call(this)});n(this,Fh,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(_e.tagName));e&&!e.disabled&&r(this,Rt).close()});n(this,Uh,t=>{let e=r(this,Mt,xy);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!r(this,Rt).isOpen)r(this,Rt).open();else{let a=r(this,Mt,Ms)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&p(this,Mt,a,Vr)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,Rt).isOpen)r(this,Rt).open();else{let a=r(this,Mt,Ms)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&p(this,Mt,a,Vr)}break}case"Home":if(r(this,Rt).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&p(this,Mt,a,Vr)}break;case"End":if(r(this,Rt).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){p(this,Mt,a,Vr);break}}break;case"Enter":case" ":{if(r(this,Rt).isOpen&&r(this,Mt,Ms)>=0){t.preventDefault();let a=e[r(this,Mt,Ms)];a&&!a.disabled&&(a.click(),r(this,Rt).close())}else r(this,Rt).isOpen||(t.preventDefault(),r(this,Rt).open());break}case"Escape":r(this,Rt).isOpen&&(t.preventDefault(),r(this,Rt).close());break;case"Tab":r(this,Rt).isOpen&&r(this,Rt).close();break}});n(this,Vh,()=>{r(this,Mt,Ms)>=0&&p(this,Mt,-1,Vr)})}updated(){let t=r(this,Mt,xy);for(let e=0;e<t.length;e++)e===r(this,Mt,Ms)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return m`
4148
+ `}));n(this,Ud,`menu-${crypto.randomUUID().slice(0,8)}`);n(this,au,t=>{t.stopPropagation(),t.preventDefault(),h(this,Bt,AI).call(this)});n(this,lu,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(Me.tagName));e&&!e.disabled&&r(this,zt).close()});n(this,du,t=>{let e=r(this,Bt,r0);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!r(this,zt).isOpen)r(this,zt).open();else{let a=r(this,Bt,Ws)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&p(this,Bt,a,Jo)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,zt).isOpen)r(this,zt).open();else{let a=r(this,Bt,Ws)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&p(this,Bt,a,Jo)}break}case"Home":if(r(this,zt).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&p(this,Bt,a,Jo)}break;case"End":if(r(this,zt).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){p(this,Bt,a,Jo);break}}break;case"Enter":case" ":{if(r(this,zt).isOpen&&r(this,Bt,Ws)>=0){t.preventDefault();let a=e[r(this,Bt,Ws)];a&&!a.disabled&&(a.click(),r(this,zt).close())}else r(this,zt).isOpen||(t.preventDefault(),r(this,zt).open());break}case"Escape":r(this,zt).isOpen&&(t.preventDefault(),r(this,zt).close());break;case"Tab":r(this,zt).isOpen&&r(this,zt).close();break}});n(this,cu,()=>{r(this,Bt,Ws)>=0&&p(this,Bt,-1,Jo)})}updated(){let t=r(this,Bt,r0);for(let e=0;e<t.length;e++)e===r(this,Bt,Ws)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
4149
4149
  <div
4150
4150
  class="Trigger"
4151
4151
  aria-haspopup="menu"
4152
- aria-expanded="${r(this,Rt).isOpen}"
4153
- aria-controls="${r(this,Sd)}"
4154
- @click="${r(this,Bh)}"
4155
- @keydown="${r(this,Uh)}"
4152
+ aria-expanded="${r(this,zt).isOpen}"
4153
+ aria-controls="${r(this,Ud)}"
4154
+ @click="${r(this,au)}"
4155
+ @keydown="${r(this,du)}"
4156
4156
  >
4157
4157
  <slot name="trigger"></slot>
4158
4158
  </div>
4159
- `}};zs=T(vR),gy=new WeakMap,vy=new WeakMap,Mt=new WeakSet,Kn=new WeakMap,Rt=new WeakMap,Sd=new WeakMap,xy=function(){return[...(r(this,Rt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},bR=function(){r(this,Rt).isOpen?r(this,Rt).close():r(this,Rt).open()},Bh=new WeakMap,Fh=new WeakMap,Uh=new WeakMap,Vh=new WeakMap,d(zs,4,"popupMinWidth",gR,Fo,gy),by=d(zs,20,"#highlightedIndex",fR,Mt,vy),Ms=by.get,Vr=by.set,$(zs,Fo),v(Fo,"tagName","dui-menu"),v(Fo,"styles",[y,QN,ZN]);var eD=k`
4159
+ `}};js=S(_I),Zy=new WeakMap,t0=new WeakMap,Bt=new WeakSet,na=new WeakMap,zt=new WeakMap,Ud=new WeakMap,r0=function(){return[...(r(this,zt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},AI=function(){r(this,zt).isOpen?r(this,zt).close():r(this,zt).open()},au=new WeakMap,lu=new WeakMap,du=new WeakMap,cu=new WeakMap,d(js,4,"popupMinWidth",TI,jr,Zy),e0=d(js,20,"#highlightedIndex",SI,Bt,t0),Ws=e0.get,Jo=e0.set,$(js,jr),g(jr,"tagName","dui-menu"),g(jr,"styles",[y,NH,DH]);var BH=k`
4160
4160
  .Popup {
4161
4161
  background: var(--surface-3);
4162
4162
  border: var(--border-width-thin) solid var(--border);
@@ -4178,7 +4178,7 @@ label, legend, caption, figcaption, th, td {
4178
4178
  .Menu dui-separator {
4179
4179
  margin: var(--space-1) var(--space-2);
4180
4180
  }
4181
- `,Gn=class extends Fo{static styles=[...Fo.styles,eD]};customElements.define(Gn.tagName,Gn);var oD=k`
4181
+ `,aa=class extends jr{static styles=[...jr.styles,BH]};customElements.define(aa.tagName,aa);var FH=k`
4182
4182
  .Item {
4183
4183
  --icon-size: var(--space-4);
4184
4184
  --icon-color: var(--text-2);
@@ -4215,7 +4215,7 @@ label, legend, caption, figcaption, th, td {
4215
4215
  opacity: 0.4;
4216
4216
  cursor: not-allowed;
4217
4217
  }
4218
- `,Yn=class extends _e{static styles=[..._e.styles,oD]};customElements.define(Yn.tagName,Yn);var xR=Symbol("dui-menubar");var rD=g`
4218
+ `,la=class extends Me{static styles=[...Me.styles,FH]};customElements.define(la.tagName,la);var RI=Symbol("dui-menubar");var VH=v`
4219
4219
  :host {
4220
4220
  display: block;
4221
4221
  }
@@ -4229,16 +4229,16 @@ label, legend, caption, figcaption, th, td {
4229
4229
  flex-direction: column;
4230
4230
  align-items: stretch;
4231
4231
  }
4232
- `,yR,wR,kR,ER,CR,je,yy,wy,ky,Ey,$y,qh,Ae,$R,Ph,jh,Xn,Cy,Sy,Wh,io=class extends(CR=b,ER=[h({type:Boolean})],kR=[h({reflect:!0})],wR=[E()],yR=[Et({context:xR}),E()],CR){constructor(){super(...arguments);n(this,Ae);n(this,yy,i(je,8,this,!0)),i(je,11,this);n(this,wy,i(je,12,this,"horizontal")),i(je,15,this);n(this,ky,i(je,16,this,null)),i(je,19,this);n(this,Ph,t=>{p(this,Ae,t,qh)});n(this,jh,()=>{p(this,Ae,null,qh)});n(this,Xn,t=>{let e=u(this,Ae,$R).call(this);if(e.length===0)return;let a=e.findIndex(C=>C.getAttribute("data-menubar-id")===r(this,Ae,$y)),l;t==="next"?(l=a+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=a-1,l<0&&(l=this.loop?e.length-1:0));let c=e[l];if(!c)return;let f=c.getAttribute("data-menubar-id");f&&p(this,Ae,f,qh),c.querySelector('[slot="trigger"]')?.focus()});n(this,Cy,i(je,20,this,u(this,Ae,Sy).call(this))),i(je,23,this);n(this,Wh,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===a?(t.preventDefault(),r(this,Xn).call(this,"next")):t.key===l&&(t.preventDefault(),r(this,Xn).call(this,"prev"))})}willUpdate(){this._ctx=u(this,Ae,Sy).call(this)}render(){return m`
4232
+ `,II,OI,LI,zI,MI,Je,o0,s0,i0,n0,l0,pu,Ne,NI,hu,uu,da,a0,d0,mu,pr=class extends(MI=b,zI=[u({type:Boolean})],LI=[u({reflect:!0})],OI=[E()],II=[vt({context:RI}),E()],MI){constructor(){super(...arguments);n(this,Ne);n(this,o0,i(Je,8,this,!0)),i(Je,11,this);n(this,s0,i(Je,12,this,"horizontal")),i(Je,15,this);n(this,i0,i(Je,16,this,null)),i(Je,19,this);n(this,hu,t=>{p(this,Ne,t,pu)});n(this,uu,()=>{p(this,Ne,null,pu)});n(this,da,t=>{let e=h(this,Ne,NI).call(this);if(e.length===0)return;let a=e.findIndex(C=>C.getAttribute("data-menubar-id")===r(this,Ne,l0)),l;t==="next"?(l=a+1,l>=e.length&&(l=this.loop?0:e.length-1)):(l=a-1,l<0&&(l=this.loop?e.length-1:0));let c=e[l];if(!c)return;let m=c.getAttribute("data-menubar-id");m&&p(this,Ne,m,pu),c.querySelector('[slot="trigger"]')?.focus()});n(this,a0,i(Je,20,this,h(this,Ne,d0).call(this))),i(Je,23,this);n(this,mu,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";t.key===a?(t.preventDefault(),r(this,da).call(this,"next")):t.key===l&&(t.preventDefault(),r(this,da).call(this,"prev"))})}willUpdate(){this._ctx=h(this,Ne,d0).call(this)}render(){return f`
4233
4233
  <div
4234
4234
  part="root"
4235
4235
  role="menubar"
4236
4236
  aria-orientation="${this.orientation}"
4237
- @keydown="${r(this,Wh)}"
4237
+ @keydown="${r(this,mu)}"
4238
4238
  >
4239
4239
  <slot></slot>
4240
4240
  </div>
4241
- `}};je=T(CR),yy=new WeakMap,wy=new WeakMap,ky=new WeakMap,Ae=new WeakSet,$R=function(){return[...this.querySelectorAll("dui-menu")]},Ph=new WeakMap,jh=new WeakMap,Xn=new WeakMap,Cy=new WeakMap,Sy=function(){return{activeMenuId:r(this,Ae,$y),openMenu:r(this,Ph),closeAll:r(this,jh),navigateToMenu:r(this,Xn)}},Wh=new WeakMap,d(je,4,"loop",ER,io,yy),d(je,4,"orientation",kR,io,wy),Ey=d(je,20,"#activeMenuId",wR,Ae,ky),$y=Ey.get,qh=Ey.set,d(je,4,"_ctx",yR,io,Cy),$(je,io),v(io,"tagName","dui-menubar"),v(io,"styles",[y,rD]);var sD=k`
4241
+ `}};Je=S(MI),o0=new WeakMap,s0=new WeakMap,i0=new WeakMap,Ne=new WeakSet,NI=function(){return[...this.querySelectorAll("dui-menu")]},hu=new WeakMap,uu=new WeakMap,da=new WeakMap,a0=new WeakMap,d0=function(){return{activeMenuId:r(this,Ne,l0),openMenu:r(this,hu),closeAll:r(this,uu),navigateToMenu:r(this,da)}},mu=new WeakMap,d(Je,4,"loop",zI,pr,o0),d(Je,4,"orientation",LI,pr,s0),n0=d(Je,20,"#activeMenuId",OI,Ne,i0),l0=n0.get,pu=n0.set,d(Je,4,"_ctx",II,pr,a0),$(Je,pr),g(pr,"tagName","dui-menubar"),g(pr,"styles",[y,VH]);var UH=k`
4242
4242
  [part="root"] {
4243
4243
  gap: var(--space-1);
4244
4244
  border: var(--border-width-thin) solid var(--border);
@@ -4246,7 +4246,7 @@ label, legend, caption, figcaption, th, td {
4246
4246
  background: var(--background);
4247
4247
  padding: var(--space-1);
4248
4248
  }
4249
- `,Jn=class extends io{static styles=[...io.styles,sD]};customElements.define(Jn.tagName,Jn);var p0=L("value-change",{bubbles:!0,composed:!0}),Yh=L("value-committed",{bubbles:!0,composed:!0}),iD=g`
4249
+ `,ca=class extends pr{static styles=[...pr.styles,UH]};customElements.define(ca.tagName,ca);var G0=O("value-change",{bubbles:!0,composed:!0}),vu=O("value-committed",{bubbles:!0,composed:!0}),qH=v`
4250
4250
  :host {
4251
4251
  display: block;
4252
4252
  }
@@ -4312,20 +4312,20 @@ label, legend, caption, figcaption, th, td {
4312
4312
  pointer-events: none;
4313
4313
  }
4314
4314
 
4315
- `,nD=3,SR,TR,_R,AR,RR,IR,OR,LR,zR,MR,NR,DR,HR,BR,FR,UR,VR,qR,PR,jR,WR,KR,GR,YR,XR,JR,Td,O,Ty,_y,Ay,Ry,Iy,Oy,Ly,zy,My,Ny,Dy,Hy,By,Fy,Uy,Vy,qy,Py,jy,Wy,Ky,Gy,Yy,QR,o0,A,Xy,Jy,r0,s0,Qy,Zy,ZR,i0,t0,e0,n0,Qn,_d,Ad,Us,Vs,Rd,Uo,t2,e2,Ns,a0,l0,Ds,o2,r2,Kh,Hs,d0,Bs,Zn,ta,c0,Gh,Fs,Id,qs,Xh,Jh,Qh,Zh,tu,eu,ou,it=class extends(JR=b,XR=[h({type:Number})],YR=[h({type:Number,attribute:"default-value"})],GR=[h({type:Number})],KR=[h({type:Number})],WR=[h({type:Number})],jR=[h({type:Number,attribute:"large-step"})],PR=[h({type:Boolean,reflect:!0})],qR=[h({type:Boolean,reflect:!0,attribute:"read-only"})],VR=[h({type:Boolean})],UR=[h()],FR=[h({reflect:!0})],BR=[h({reflect:!0,attribute:"label-position"})],HR=[h({reflect:!0,attribute:"icon-position"})],DR=[h({reflect:!0})],NR=[h({type:Number})],MR=[h({type:Boolean,reflect:!0,attribute:"scrub-label"})],zR=[h({type:Boolean,reflect:!0,attribute:"scrub-value"})],LR=[h({type:Boolean,reflect:!0,attribute:"scrub-field"})],OR=[h({type:Boolean,reflect:!0,attribute:"click-label"})],IR=[h({type:Boolean,reflect:!0,attribute:"click-value"})],RR=[h({type:Boolean,reflect:!0,attribute:"click-field"})],AR=[E()],_R=[E()],TR=[E()],SR=[E()],JR){constructor(){super();n(this,A);n(this,Td);n(this,Ty,i(O,8,this)),i(O,11,this);n(this,_y,i(O,12,this)),i(O,15,this);n(this,Ay,i(O,16,this)),i(O,19,this);n(this,Ry,i(O,20,this)),i(O,23,this);n(this,Iy,i(O,24,this,1)),i(O,27,this);n(this,Oy,i(O,28,this,10)),i(O,31,this);n(this,Ly,i(O,32,this,!1)),i(O,35,this);n(this,zy,i(O,36,this,!1)),i(O,39,this);n(this,My,i(O,40,this,!1)),i(O,43,this);n(this,Ny,i(O,44,this)),i(O,47,this);n(this,Dy,i(O,48,this,"")),i(O,51,this);n(this,Hy,i(O,52,this,"")),i(O,55,this);n(this,By,i(O,56,this,"")),i(O,59,this);n(this,Fy,i(O,60,this,"")),i(O,63,this);n(this,Uy,i(O,64,this)),i(O,67,this);n(this,Vy,i(O,68,this,!1)),i(O,71,this);n(this,qy,i(O,72,this,!1)),i(O,75,this);n(this,Py,i(O,76,this,!1)),i(O,79,this);n(this,jy,i(O,80,this,!1)),i(O,83,this);n(this,Wy,i(O,84,this,!1)),i(O,87,this);n(this,Ky,i(O,88,this,!1)),i(O,91,this);n(this,Gy,i(O,92,this)),i(O,95,this);n(this,Xy,i(O,96,this,"")),i(O,99,this);n(this,Qy,i(O,100,this,!1)),i(O,103,this);n(this,t0,i(O,104,this,!1)),i(O,107,this);n(this,_d,0);n(this,Ad,0);n(this,Us,!1);n(this,Vs,null);n(this,Rd,!1);n(this,Zn,t=>{if(this.disabled||this.readOnly)return;let e=r(this,A,Uo)??this.min??0;u(this,A,Bs).call(this,e+t)});n(this,ta,t=>{if(this.disabled||this.readOnly)return;let e=r(this,A,Uo)??this.max??0;u(this,A,Bs).call(this,e-t)});n(this,Id,t=>{if(t.pointerId!==r(this,Vs))return;let e=t.clientX-r(this,_d);if(!r(this,Us)){if(Math.abs(e)<nD)return;p(this,Us,!0),p(this,A,!0,i0)}let a=this.step;t.shiftKey?a=this.step*.1:(t.ctrlKey||t.metaKey)&&(a=this.largeStep);let l=r(this,Ad)+e*a;u(this,A,Bs).call(this,l)});n(this,qs,t=>{if(t.pointerId===r(this,Vs)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",r(this,Id)),this.removeEventListener("pointerup",r(this,qs)),this.removeEventListener("pointercancel",r(this,qs)),r(this,Us)){p(this,A,!1,i0);let e=r(this,A,Uo);e!==void 0&&this.dispatchEvent(Yh({value:e}))}else r(this,Rd)&&u(this,A,Gh).call(this);p(this,Vs,null)}});n(this,Xh,t=>{if(t.button!==0)return;let e=r(this,A,a0)||r(this,A,Ds),a=r(this,A,o2)||r(this,A,Kh);e&&a?(t.preventDefault(),u(this,A,Fs).call(this,t,!0)):e?(t.preventDefault(),u(this,A,Fs).call(this,t,!1)):a&&(t.preventDefault(),u(this,A,Gh).call(this))});n(this,Jh,t=>{if(t.button!==0)return;let e=r(this,A,l0)||r(this,A,Ds),a=r(this,A,r2)||r(this,A,Kh);e&&a?(t.preventDefault(),u(this,A,Fs).call(this,t,!0)):e?(t.preventDefault(),u(this,A,Fs).call(this,t,!1)):a&&p(this,A,!0,Qn)});n(this,Qh,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let a=r(this,A,Ds),l=r(this,A,Kh);a&&l?(t.preventDefault(),u(this,A,Fs).call(this,t,!0)):a?(t.preventDefault(),u(this,A,Fs).call(this,t,!1)):l&&(t.preventDefault(),u(this,A,Gh).call(this))});n(this,Zh,t=>{p(this,A,t.target.value,s0)});n(this,tu,()=>{r(this,A,n0)&&u(this,A,c0).call(this)});n(this,eu,()=>{p(this,A,!0,Qn);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});n(this,ou,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?r(this,Zn).call(this,this.step*.1):t.ctrlKey||t.metaKey?r(this,Zn).call(this,this.largeStep):r(this,Zn).call(this,this.step),u(this,A,Hs).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?r(this,ta).call(this,this.step*.1):t.ctrlKey||t.metaKey?r(this,ta).call(this,this.largeStep):r(this,ta).call(this,this.step),u(this,A,Hs).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),u(this,A,Bs).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),u(this,A,Bs).call(this,this.max));break;case"Enter":u(this,A,c0).call(this);break;case"Escape":{p(this,A,!1,Qn),u(this,A,Hs).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});p(this,Td,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,A,u(this,A,d0).call(this,this.defaultValue),o0),u(this,A,Hs).call(this)}willUpdate(){r(this,A,n0)||u(this,A,Hs).call(this),r(this,Td).setFormValue(r(this,A,Uo)!==void 0?String(r(this,A,Uo)):null)}render(){let t=r(this,A,Uo),e=r(this,A,a0)||r(this,A,Ds),a=r(this,A,l0)||r(this,A,Ds),l=r(this,A,Ds);return m`
4315
+ `,PH=3,DI,HI,BI,FI,VI,UI,qI,PI,jI,WI,KI,GI,YI,XI,JI,QI,ZI,t2,e2,r2,o2,s2,i2,n2,a2,l2,qd,L,c0,p0,h0,u0,m0,f0,g0,v0,b0,x0,y0,w0,k0,E0,C0,$0,S0,T0,_0,A0,R0,I0,O0,d2,B0,A,L0,z0,F0,V0,M0,N0,c2,U0,D0,H0,q0,pa,Pd,jd,Qs,Zs,Wd,Wr,p2,h2,Ks,P0,j0,Gs,u2,m2,fu,Ys,W0,Xs,ha,ua,K0,gu,Js,Kd,ti,bu,xu,yu,wu,ku,Eu,Cu,at=class extends(l2=b,a2=[u({type:Number})],n2=[u({type:Number,attribute:"default-value"})],i2=[u({type:Number})],s2=[u({type:Number})],o2=[u({type:Number})],r2=[u({type:Number,attribute:"large-step"})],e2=[u({type:Boolean,reflect:!0})],t2=[u({type:Boolean,reflect:!0,attribute:"read-only"})],ZI=[u({type:Boolean})],QI=[u()],JI=[u({reflect:!0})],XI=[u({reflect:!0,attribute:"label-position"})],YI=[u({reflect:!0,attribute:"icon-position"})],GI=[u({reflect:!0})],KI=[u({type:Number})],WI=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],jI=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],PI=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],qI=[u({type:Boolean,reflect:!0,attribute:"click-label"})],UI=[u({type:Boolean,reflect:!0,attribute:"click-value"})],VI=[u({type:Boolean,reflect:!0,attribute:"click-field"})],FI=[E()],BI=[E()],HI=[E()],DI=[E()],l2){constructor(){super();n(this,A);n(this,qd);n(this,c0,i(L,8,this)),i(L,11,this);n(this,p0,i(L,12,this)),i(L,15,this);n(this,h0,i(L,16,this)),i(L,19,this);n(this,u0,i(L,20,this)),i(L,23,this);n(this,m0,i(L,24,this,1)),i(L,27,this);n(this,f0,i(L,28,this,10)),i(L,31,this);n(this,g0,i(L,32,this,!1)),i(L,35,this);n(this,v0,i(L,36,this,!1)),i(L,39,this);n(this,b0,i(L,40,this,!1)),i(L,43,this);n(this,x0,i(L,44,this)),i(L,47,this);n(this,y0,i(L,48,this,"")),i(L,51,this);n(this,w0,i(L,52,this,"")),i(L,55,this);n(this,k0,i(L,56,this,"")),i(L,59,this);n(this,E0,i(L,60,this,"")),i(L,63,this);n(this,C0,i(L,64,this)),i(L,67,this);n(this,$0,i(L,68,this,!1)),i(L,71,this);n(this,S0,i(L,72,this,!1)),i(L,75,this);n(this,T0,i(L,76,this,!1)),i(L,79,this);n(this,_0,i(L,80,this,!1)),i(L,83,this);n(this,A0,i(L,84,this,!1)),i(L,87,this);n(this,R0,i(L,88,this,!1)),i(L,91,this);n(this,I0,i(L,92,this)),i(L,95,this);n(this,L0,i(L,96,this,"")),i(L,99,this);n(this,M0,i(L,100,this,!1)),i(L,103,this);n(this,D0,i(L,104,this,!1)),i(L,107,this);n(this,Pd,0);n(this,jd,0);n(this,Qs,!1);n(this,Zs,null);n(this,Wd,!1);n(this,ha,t=>{if(this.disabled||this.readOnly)return;let e=r(this,A,Wr)??this.min??0;h(this,A,Xs).call(this,e+t)});n(this,ua,t=>{if(this.disabled||this.readOnly)return;let e=r(this,A,Wr)??this.max??0;h(this,A,Xs).call(this,e-t)});n(this,Kd,t=>{if(t.pointerId!==r(this,Zs))return;let e=t.clientX-r(this,Pd);if(!r(this,Qs)){if(Math.abs(e)<PH)return;p(this,Qs,!0),p(this,A,!0,U0)}let a=this.step;t.shiftKey?a=this.step*.1:(t.ctrlKey||t.metaKey)&&(a=this.largeStep);let l=r(this,jd)+e*a;h(this,A,Xs).call(this,l)});n(this,ti,t=>{if(t.pointerId===r(this,Zs)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",r(this,Kd)),this.removeEventListener("pointerup",r(this,ti)),this.removeEventListener("pointercancel",r(this,ti)),r(this,Qs)){p(this,A,!1,U0);let e=r(this,A,Wr);e!==void 0&&this.dispatchEvent(vu({value:e}))}else r(this,Wd)&&h(this,A,gu).call(this);p(this,Zs,null)}});n(this,bu,t=>{if(t.button!==0)return;let e=r(this,A,P0)||r(this,A,Gs),a=r(this,A,u2)||r(this,A,fu);e&&a?(t.preventDefault(),h(this,A,Js).call(this,t,!0)):e?(t.preventDefault(),h(this,A,Js).call(this,t,!1)):a&&(t.preventDefault(),h(this,A,gu).call(this))});n(this,xu,t=>{if(t.button!==0)return;let e=r(this,A,j0)||r(this,A,Gs),a=r(this,A,m2)||r(this,A,fu);e&&a?(t.preventDefault(),h(this,A,Js).call(this,t,!0)):e?(t.preventDefault(),h(this,A,Js).call(this,t,!1)):a&&p(this,A,!0,pa)});n(this,yu,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let a=r(this,A,Gs),l=r(this,A,fu);a&&l?(t.preventDefault(),h(this,A,Js).call(this,t,!0)):a?(t.preventDefault(),h(this,A,Js).call(this,t,!1)):l&&(t.preventDefault(),h(this,A,gu).call(this))});n(this,wu,t=>{p(this,A,t.target.value,V0)});n(this,ku,()=>{r(this,A,q0)&&h(this,A,K0).call(this)});n(this,Eu,()=>{p(this,A,!0,pa);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});n(this,Cu,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?r(this,ha).call(this,this.step*.1):t.ctrlKey||t.metaKey?r(this,ha).call(this,this.largeStep):r(this,ha).call(this,this.step),h(this,A,Ys).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?r(this,ua).call(this,this.step*.1):t.ctrlKey||t.metaKey?r(this,ua).call(this,this.largeStep):r(this,ua).call(this,this.step),h(this,A,Ys).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),h(this,A,Xs).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),h(this,A,Xs).call(this,this.max));break;case"Enter":h(this,A,K0).call(this);break;case"Escape":{p(this,A,!1,pa),h(this,A,Ys).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});p(this,qd,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,A,h(this,A,W0).call(this,this.defaultValue),B0),h(this,A,Ys).call(this)}willUpdate(){r(this,A,q0)||h(this,A,Ys).call(this),r(this,qd).setFormValue(r(this,A,Wr)!==void 0?String(r(this,A,Wr)):null)}render(){let t=r(this,A,Wr),e=r(this,A,P0)||r(this,A,Gs),a=r(this,A,j0)||r(this,A,Gs),l=r(this,A,Gs);return f`
4316
4316
  <span
4317
4317
  part="label"
4318
4318
  ?data-scrub="${e}"
4319
- @pointerdown="${r(this,Xh)}"
4319
+ @pointerdown="${r(this,bu)}"
4320
4320
  >${this.label}</span>
4321
4321
 
4322
4322
  <div
4323
4323
  part="root"
4324
4324
  ?data-scrub="${l}"
4325
- ?data-dragging="${r(this,A,ZR)}"
4325
+ ?data-dragging="${r(this,A,c2)}"
4326
4326
  ?data-disabled="${this.disabled}"
4327
4327
  ?data-readonly="${this.readOnly}"
4328
- @pointerdown="${r(this,Qh)}"
4328
+ @pointerdown="${r(this,yu)}"
4329
4329
  >
4330
4330
  <span part="icon">
4331
4331
  <slot name="icon"></slot>
@@ -4336,7 +4336,7 @@ label, legend, caption, figcaption, th, td {
4336
4336
  type="text"
4337
4337
  inputmode="decimal"
4338
4338
  ?data-scrub="${a}"
4339
- .value="${Io(r(this,A,r0))}"
4339
+ .value="${Nr(r(this,A,F0))}"
4340
4340
  ?disabled="${this.disabled}"
4341
4341
  ?readonly="${this.readOnly}"
4342
4342
  ?required="${this.required}"
@@ -4344,17 +4344,17 @@ label, legend, caption, figcaption, th, td {
4344
4344
  aria-valuenow="${t??I}"
4345
4345
  aria-valuemin="${this.min??I}"
4346
4346
  aria-valuemax="${this.max??I}"
4347
- @pointerdown="${r(this,Jh)}"
4348
- @input="${r(this,Zh)}"
4349
- @keydown="${r(this,ou)}"
4350
- @focus="${r(this,eu)}"
4351
- @blur="${r(this,tu)}"
4347
+ @pointerdown="${r(this,xu)}"
4348
+ @input="${r(this,wu)}"
4349
+ @keydown="${r(this,Cu)}"
4350
+ @focus="${r(this,Eu)}"
4351
+ @blur="${r(this,ku)}"
4352
4352
  />
4353
4353
 
4354
4354
  <span part="unit">${this.unit}</span>
4355
4355
 
4356
4356
  </div>
4357
- `}};O=T(JR),Td=new WeakMap,Ty=new WeakMap,_y=new WeakMap,Ay=new WeakMap,Ry=new WeakMap,Iy=new WeakMap,Oy=new WeakMap,Ly=new WeakMap,zy=new WeakMap,My=new WeakMap,Ny=new WeakMap,Dy=new WeakMap,Hy=new WeakMap,By=new WeakMap,Fy=new WeakMap,Uy=new WeakMap,Vy=new WeakMap,qy=new WeakMap,Py=new WeakMap,jy=new WeakMap,Wy=new WeakMap,Ky=new WeakMap,Gy=new WeakMap,A=new WeakSet,Xy=new WeakMap,Qy=new WeakMap,t0=new WeakMap,_d=new WeakMap,Ad=new WeakMap,Us=new WeakMap,Vs=new WeakMap,Rd=new WeakMap,Uo=function(){return this.value??r(this,A,QR)},t2=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},e2=function(){let t=r(this,A,Uo);if(t===void 0)return"";let e=this.precision??r(this,A,t2);return t.toFixed(e)},Ns=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},a0=function(){return r(this,A,Ns)?this.scrubLabel:this.label!==""},l0=function(){return r(this,A,Ns)?this.scrubValue:!1},Ds=function(){return r(this,A,Ns)?this.scrubField:this.label===""},o2=function(){return r(this,A,Ns)?this.clickLabel:!1},r2=function(){return r(this,A,Ns)?this.clickValue:!0},Kh=function(){return r(this,A,Ns)?this.clickField:!1},Hs=function(){p(this,A,r(this,A,e2),s0)},d0=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Bs=function(t){let e=u(this,A,d0).call(this,t);this.value===void 0&&p(this,A,e,o0),this.dispatchEvent(p0({value:e}))},Zn=new WeakMap,ta=new WeakMap,c0=function(){let t=parseFloat(r(this,A,r0));Number.isNaN(t)?u(this,A,Hs).call(this):u(this,A,Bs).call(this,t),p(this,A,!1,Qn);let e=r(this,A,Uo);e!==void 0&&this.dispatchEvent(Yh({value:e}))},Gh=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(p(this,A,!0,Qn),t.focus(),t.select())},Fs=function(t,e){this.disabled||this.readOnly||(p(this,Vs,t.pointerId),p(this,_d,t.clientX),p(this,Ad,r(this,A,Uo)??0),p(this,Us,!1),p(this,Rd,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",r(this,Id)),this.addEventListener("pointerup",r(this,qs)),this.addEventListener("pointercancel",r(this,qs)))},Id=new WeakMap,qs=new WeakMap,Xh=new WeakMap,Jh=new WeakMap,Qh=new WeakMap,Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,ou=new WeakMap,d(O,4,"value",XR,it,Ty),d(O,4,"defaultValue",YR,it,_y),d(O,4,"min",GR,it,Ay),d(O,4,"max",KR,it,Ry),d(O,4,"step",WR,it,Iy),d(O,4,"largeStep",jR,it,Oy),d(O,4,"disabled",PR,it,Ly),d(O,4,"readOnly",qR,it,zy),d(O,4,"required",VR,it,My),d(O,4,"name",UR,it,Ny),d(O,4,"label",FR,it,Dy),d(O,4,"labelPosition",BR,it,Hy),d(O,4,"iconPosition",HR,it,By),d(O,4,"unit",DR,it,Fy),d(O,4,"precision",NR,it,Uy),d(O,4,"scrubLabel",MR,it,Vy),d(O,4,"scrubValue",zR,it,qy),d(O,4,"scrubField",LR,it,Py),d(O,4,"clickLabel",OR,it,jy),d(O,4,"clickValue",IR,it,Wy),d(O,4,"clickField",RR,it,Ky),Yy=d(O,20,"#internalValue",AR,A,Gy),QR=Yy.get,o0=Yy.set,Jy=d(O,20,"#inputText",_R,A,Xy),r0=Jy.get,s0=Jy.set,Zy=d(O,20,"#dragging",TR,A,Qy),ZR=Zy.get,i0=Zy.set,e0=d(O,20,"#editing",SR,A,t0),n0=e0.get,Qn=e0.set,$(O,it),v(it,"tagName","dui-number-field"),v(it,"formAssociated",!0),v(it,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),v(it,"styles",[y,iD]);var aD=k`
4357
+ `}};L=S(l2),qd=new WeakMap,c0=new WeakMap,p0=new WeakMap,h0=new WeakMap,u0=new WeakMap,m0=new WeakMap,f0=new WeakMap,g0=new WeakMap,v0=new WeakMap,b0=new WeakMap,x0=new WeakMap,y0=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,S0=new WeakMap,T0=new WeakMap,_0=new WeakMap,A0=new WeakMap,R0=new WeakMap,I0=new WeakMap,A=new WeakSet,L0=new WeakMap,M0=new WeakMap,D0=new WeakMap,Pd=new WeakMap,jd=new WeakMap,Qs=new WeakMap,Zs=new WeakMap,Wd=new WeakMap,Wr=function(){return this.value??r(this,A,d2)},p2=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},h2=function(){let t=r(this,A,Wr);if(t===void 0)return"";let e=this.precision??r(this,A,p2);return t.toFixed(e)},Ks=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},P0=function(){return r(this,A,Ks)?this.scrubLabel:this.label!==""},j0=function(){return r(this,A,Ks)?this.scrubValue:!1},Gs=function(){return r(this,A,Ks)?this.scrubField:this.label===""},u2=function(){return r(this,A,Ks)?this.clickLabel:!1},m2=function(){return r(this,A,Ks)?this.clickValue:!0},fu=function(){return r(this,A,Ks)?this.clickField:!1},Ys=function(){p(this,A,r(this,A,h2),V0)},W0=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Xs=function(t){let e=h(this,A,W0).call(this,t);this.value===void 0&&p(this,A,e,B0),this.dispatchEvent(G0({value:e}))},ha=new WeakMap,ua=new WeakMap,K0=function(){let t=parseFloat(r(this,A,F0));Number.isNaN(t)?h(this,A,Ys).call(this):h(this,A,Xs).call(this,t),p(this,A,!1,pa);let e=r(this,A,Wr);e!==void 0&&this.dispatchEvent(vu({value:e}))},gu=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(p(this,A,!0,pa),t.focus(),t.select())},Js=function(t,e){this.disabled||this.readOnly||(p(this,Zs,t.pointerId),p(this,Pd,t.clientX),p(this,jd,r(this,A,Wr)??0),p(this,Qs,!1),p(this,Wd,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",r(this,Kd)),this.addEventListener("pointerup",r(this,ti)),this.addEventListener("pointercancel",r(this,ti)))},Kd=new WeakMap,ti=new WeakMap,bu=new WeakMap,xu=new WeakMap,yu=new WeakMap,wu=new WeakMap,ku=new WeakMap,Eu=new WeakMap,Cu=new WeakMap,d(L,4,"value",a2,at,c0),d(L,4,"defaultValue",n2,at,p0),d(L,4,"min",i2,at,h0),d(L,4,"max",s2,at,u0),d(L,4,"step",o2,at,m0),d(L,4,"largeStep",r2,at,f0),d(L,4,"disabled",e2,at,g0),d(L,4,"readOnly",t2,at,v0),d(L,4,"required",ZI,at,b0),d(L,4,"name",QI,at,x0),d(L,4,"label",JI,at,y0),d(L,4,"labelPosition",XI,at,w0),d(L,4,"iconPosition",YI,at,k0),d(L,4,"unit",GI,at,E0),d(L,4,"precision",KI,at,C0),d(L,4,"scrubLabel",WI,at,$0),d(L,4,"scrubValue",jI,at,S0),d(L,4,"scrubField",PI,at,T0),d(L,4,"clickLabel",qI,at,_0),d(L,4,"clickValue",UI,at,A0),d(L,4,"clickField",VI,at,R0),O0=d(L,20,"#internalValue",FI,A,I0),d2=O0.get,B0=O0.set,z0=d(L,20,"#inputText",BI,A,L0),F0=z0.get,V0=z0.set,N0=d(L,20,"#dragging",HI,A,M0),c2=N0.get,U0=N0.set,H0=d(L,20,"#editing",DI,A,D0),q0=H0.get,pa=H0.set,$(L,at),g(at,"tagName","dui-number-field"),g(at,"formAssociated",!0),g(at,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(at,"styles",[y,qH]);var jH=k`
4358
4358
  :host {
4359
4359
  --number-field-bg: transparent;
4360
4360
  --number-field-fg: var(--text-1);
@@ -4582,19 +4582,19 @@ label, legend, caption, figcaption, th, td {
4582
4582
  :host([disabled]) {
4583
4583
  opacity: 0.5;
4584
4584
  }
4585
- `,ea=class extends it{static styles=[...it.styles,aD]};customElements.define(ea.tagName,ea);var qr=Symbol("dui-popover");var nu=L("open-change",{bubbles:!0,composed:!0}),lD=g`
4585
+ `,ma=class extends at{static styles=[...at.styles,jH]};customElements.define(ma.tagName,ma);var Qo=Symbol("dui-popover");var _u=O("open-change",{bubbles:!0,composed:!0}),WH=v`
4586
4586
  :host {
4587
4587
  display: contents;
4588
4588
  }
4589
- `,s2,i2,n2,a2,l2,d2,c2,p2,Nt,h0,u0,m0,f0,g0,v0,ru,su,lt,b0,x0,w0,h2,Od,au,lu,y0,Ld,k0,iu,u2,m2,Re=class extends(p2=b,c2=[h({type:Boolean,reflect:!0})],d2=[h({type:Boolean,attribute:"default-open"})],l2=[h({reflect:!0})],a2=[h({type:Number,attribute:"side-offset"})],n2=[E()],i2=[E()],s2=[Et({context:qr}),E()],p2){constructor(){super(...arguments);n(this,lt);n(this,h0,i(Nt,8,this,!1)),i(Nt,11,this);n(this,u0,i(Nt,12,this,!1)),i(Nt,15,this);n(this,m0,i(Nt,16,this,"bottom")),i(Nt,19,this);n(this,f0,i(Nt,20,this,8)),i(Nt,23,this);n(this,g0,i(Nt,24,this,!1)),i(Nt,27,this);n(this,b0,i(Nt,28,this)),i(Nt,31,this);n(this,au,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,lu,`popover-popup-${crypto.randomUUID().slice(0,8)}`);n(this,y0,i(Nt,32,this,{open:!1,triggerId:r(this,au),popupId:r(this,lu),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>u(this,lt,k0).call(this),closePopover:()=>u(this,lt,iu).call(this),togglePopover:()=>u(this,lt,u2).call(this),setTriggerEl:t=>u(this,lt,m2).call(this,t)})),i(Nt,35,this);n(this,Ld,t=>{r(this,lt,Od)&&t.key==="Escape"&&(t.preventDefault(),u(this,lt,iu).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,lt,!0,su),document.addEventListener("keydown",r(this,Ld))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",r(this,Ld))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==r(this,lt,Od)||this._ctx.triggerEl!==r(this,lt,w0))&&(this._ctx={...this._ctx,open:r(this,lt,Od),side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,lt,w0)})}render(){return m`<slot></slot>`}};Nt=T(p2),h0=new WeakMap,u0=new WeakMap,m0=new WeakMap,f0=new WeakMap,g0=new WeakMap,lt=new WeakSet,b0=new WeakMap,Od=function(){return this.open||r(this,lt,ru)},au=new WeakMap,lu=new WeakMap,y0=new WeakMap,Ld=new WeakMap,k0=function(){r(this,lt,ru)||(p(this,lt,!0,su),this.dispatchEvent(nu({open:!0})))},iu=function(){r(this,lt,ru)&&(p(this,lt,!1,su),this.dispatchEvent(nu({open:!1})))},u2=function(){r(this,lt,Od)?u(this,lt,iu).call(this):u(this,lt,k0).call(this)},m2=function(t){p(this,lt,t,h2)},d(Nt,4,"open",c2,Re,h0),d(Nt,4,"defaultOpen",d2,Re,u0),d(Nt,4,"side",l2,Re,m0),d(Nt,4,"sideOffset",a2,Re,f0),v0=d(Nt,20,"#internalOpen",n2,lt,g0),ru=v0.get,su=v0.set,x0=d(Nt,20,"#triggerEl",i2,lt,b0),w0=x0.get,h2=x0.set,d(Nt,4,"_ctx",s2,Re,y0),$(Nt,Re),v(Re,"tagName","dui-popover"),v(Re,"styles",[y,lD]);var dD=g`
4589
+ `,f2,g2,v2,b2,x2,y2,w2,k2,Ft,Y0,X0,J0,Q0,Z0,tw,$u,Su,ct,ew,rw,sw,E2,Gd,Au,Ru,ow,Yd,iw,Tu,C2,$2,De=class extends(k2=b,w2=[u({type:Boolean,reflect:!0})],y2=[u({type:Boolean,attribute:"default-open"})],x2=[u({reflect:!0})],b2=[u({type:Number,attribute:"side-offset"})],v2=[E()],g2=[E()],f2=[vt({context:Qo}),E()],k2){constructor(){super(...arguments);n(this,ct);n(this,Y0,i(Ft,8,this,!1)),i(Ft,11,this);n(this,X0,i(Ft,12,this,!1)),i(Ft,15,this);n(this,J0,i(Ft,16,this,"bottom")),i(Ft,19,this);n(this,Q0,i(Ft,20,this,8)),i(Ft,23,this);n(this,Z0,i(Ft,24,this,!1)),i(Ft,27,this);n(this,ew,i(Ft,28,this)),i(Ft,31,this);n(this,Au,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,Ru,`popover-popup-${crypto.randomUUID().slice(0,8)}`);n(this,ow,i(Ft,32,this,{open:!1,triggerId:r(this,Au),popupId:r(this,Ru),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>h(this,ct,iw).call(this),closePopover:()=>h(this,ct,Tu).call(this),togglePopover:()=>h(this,ct,C2).call(this),setTriggerEl:t=>h(this,ct,$2).call(this,t)})),i(Ft,35,this);n(this,Yd,t=>{r(this,ct,Gd)&&t.key==="Escape"&&(t.preventDefault(),h(this,ct,Tu).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,ct,!0,Su),document.addEventListener("keydown",r(this,Yd))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",r(this,Yd))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==r(this,ct,Gd)||this._ctx.triggerEl!==r(this,ct,sw))&&(this._ctx={...this._ctx,open:r(this,ct,Gd),side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,ct,sw)})}render(){return f`<slot></slot>`}};Ft=S(k2),Y0=new WeakMap,X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,ct=new WeakSet,ew=new WeakMap,Gd=function(){return this.open||r(this,ct,$u)},Au=new WeakMap,Ru=new WeakMap,ow=new WeakMap,Yd=new WeakMap,iw=function(){r(this,ct,$u)||(p(this,ct,!0,Su),this.dispatchEvent(_u({open:!0})))},Tu=function(){r(this,ct,$u)&&(p(this,ct,!1,Su),this.dispatchEvent(_u({open:!1})))},C2=function(){r(this,ct,Gd)?h(this,ct,Tu).call(this):h(this,ct,iw).call(this)},$2=function(t){p(this,ct,t,E2)},d(Ft,4,"open",w2,De,Y0),d(Ft,4,"defaultOpen",y2,De,X0),d(Ft,4,"side",x2,De,J0),d(Ft,4,"sideOffset",b2,De,Q0),tw=d(Ft,20,"#internalOpen",v2,ct,Z0),$u=tw.get,Su=tw.set,rw=d(Ft,20,"#triggerEl",g2,ct,ew),sw=rw.get,E2=rw.set,d(Ft,4,"_ctx",f2,De,ow),$(Ft,De),g(De,"tagName","dui-popover"),g(De,"styles",[y,WH]);var KH=v`
4590
4590
  :host {
4591
4591
  display: contents;
4592
4592
  }
4593
- `,cD=g`
4593
+ `,GH=v`
4594
4594
  .Trigger {
4595
4595
  display: contents;
4596
4596
  }
4597
- `,zd=class extends b{static tagName="dui-popover-trigger";static styles=[y,dD,cD];#t=new W(this,{context:qr,subscribe:!0});#e=o=>{o.stopPropagation(),this.#i(),this.#t.value?.togglePopover()};#i(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0]??this;this.#t.value?.setTriggerEl(t)}#n(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0];if(!t)return;this.#t.value?.open??!1?t.setAttribute("data-open",""):t.removeAttribute("data-open")}updated(){this.#n()}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return m`
4597
+ `,Xd=class extends b{static tagName="dui-popover-trigger";static styles=[y,KH,GH];#t=new K(this,{context:Qo,subscribe:!0});#e=o=>{o.stopPropagation(),this.#i(),this.#t.value?.togglePopover()};#i(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0]??this;this.#t.value?.setTriggerEl(t)}#n(){let t=this.shadowRoot?.querySelector("slot")?.assignedElements()?.[0];if(!t)return;this.#t.value?.open??!1?t.setAttribute("data-open",""):t.removeAttribute("data-open")}updated(){this.#n()}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
4598
4598
  <span
4599
4599
  class="Trigger"
4600
4600
  part="trigger"
@@ -4607,7 +4607,7 @@ label, legend, caption, figcaption, th, td {
4607
4607
  >
4608
4608
  <slot></slot>
4609
4609
  </span>
4610
- `}};var pD=g`
4610
+ `}};var YH=v`
4611
4611
  :host {
4612
4612
  display: contents;
4613
4613
  }
@@ -4615,7 +4615,7 @@ label, legend, caption, figcaption, th, td {
4615
4615
  .slot-wrapper {
4616
4616
  display: none;
4617
4617
  }
4618
- `,hD=[g`
4618
+ `,XH=[v`
4619
4619
  .Popup {
4620
4620
  box-sizing: border-box;
4621
4621
  pointer-events: auto;
@@ -4656,28 +4656,28 @@ label, legend, caption, figcaption, th, td {
4656
4656
  left: 50%;
4657
4657
  transform: translateX(-50%) rotate(180deg);
4658
4658
  }
4659
- `],f2,g2,v2,b2,Vo,E0,C0,$0,S0,du,x2,qo,Er,oa,Pr,cu,y2,wo=class extends(b2=b,v2=[h({type:Boolean,attribute:"show-arrow"})],g2=[h({type:Boolean,attribute:"close-on-click"})],f2=[E()],b2){constructor(){super(...arguments);n(this,qo);n(this,E0,i(Vo,8,this,!0)),i(Vo,11,this);n(this,C0,i(Vo,12,this,!1)),i(Vo,15,this);n(this,$0,i(Vo,16,this,"bottom")),i(Vo,19,this);n(this,Er,new W(this,{context:qr,subscribe:!0}));n(this,oa,!1);n(this,Pr,new ae(this,{getAnchor:()=>r(this,Er).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:hD,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,qo,du)&&p(this,qo,e,x2)},renderPopup:t=>{let e=r(this,Er).value?.popupId??"";return m`
4659
+ `],S2,T2,_2,A2,Kr,nw,aw,lw,dw,Iu,R2,Gr,Io,fa,Zo,Ou,I2,Sr=class extends(A2=b,_2=[u({type:Boolean,attribute:"show-arrow"})],T2=[u({type:Boolean,attribute:"close-on-click"})],S2=[E()],A2){constructor(){super(...arguments);n(this,Gr);n(this,nw,i(Kr,8,this,!0)),i(Kr,11,this);n(this,aw,i(Kr,12,this,!1)),i(Kr,15,this);n(this,lw,i(Kr,16,this,"bottom")),i(Kr,19,this);n(this,Io,new K(this,{context:Qo,subscribe:!0}));n(this,fa,!1);n(this,Zo,new he(this,{getAnchor:()=>r(this,Io).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:XH,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,Gr,Iu)&&p(this,Gr,e,R2)},renderPopup:t=>{let e=r(this,Io).value?.popupId??"";return f`
4660
4660
  <div
4661
4661
  class="Popup"
4662
4662
  id="${e}"
4663
4663
  role="dialog"
4664
4664
  ?data-starting-style="${t.isStarting}"
4665
4665
  ?data-ending-style="${t.isEnding}"
4666
- data-side="${r(this,qo,du)}"
4667
- @click="${r(this,cu)}"
4666
+ data-side="${r(this,Gr,Iu)}"
4667
+ @click="${r(this,Ou)}"
4668
4668
  >
4669
4669
  <div class="Content"></div>
4670
- ${this.showArrow?cn(r(this,qo,du)):""}
4670
+ ${this.showArrow?En(r(this,Gr,Iu)):""}
4671
4671
  </div>
4672
- `}}));n(this,cu,()=>{this.closeOnClick&&r(this,Er).value?.closePopover()})}containsEventTarget(t){let e=r(this,Pr).positionerElement;return e!==null&&t.includes(e)}updated(){let t=r(this,Er).value?.open??!1;t&&!r(this,oa)?(u(this,qo,y2).call(this),r(this,Pr).open()):!t&&r(this,oa)&&r(this,Pr).close(),p(this,oa,t)}render(){return m`<div class="slot-wrapper"><slot></slot></div>`}};Vo=T(b2),E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,qo=new WeakSet,Er=new WeakMap,oa=new WeakMap,Pr=new WeakMap,cu=new WeakMap,y2=function(){let t=r(this,Er).value?.side??"bottom";r(this,Pr).placement=t,r(this,Pr).offset=r(this,Er).value?.sideOffset??8},d(Vo,4,"showArrow",v2,wo,E0),d(Vo,4,"closeOnClick",g2,wo,C0),S0=d(Vo,20,"#side",f2,qo,$0),du=S0.get,x2=S0.set,$(Vo,wo),v(wo,"tagName","dui-popover-popup"),v(wo,"styles",[y,pD]);var uD=g`
4672
+ `}}));n(this,Ou,()=>{this.closeOnClick&&r(this,Io).value?.closePopover()})}containsEventTarget(t){let e=r(this,Zo).positionerElement;return e!==null&&t.includes(e)}updated(){let t=r(this,Io).value?.open??!1;t&&!r(this,fa)?(h(this,Gr,I2).call(this),r(this,Zo).open()):!t&&r(this,fa)&&r(this,Zo).close(),p(this,fa,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Kr=S(A2),nw=new WeakMap,aw=new WeakMap,lw=new WeakMap,Gr=new WeakSet,Io=new WeakMap,fa=new WeakMap,Zo=new WeakMap,Ou=new WeakMap,I2=function(){let t=r(this,Io).value?.side??"bottom";r(this,Zo).placement=t,r(this,Zo).offset=r(this,Io).value?.sideOffset??8},d(Kr,4,"showArrow",_2,Sr,nw),d(Kr,4,"closeOnClick",T2,Sr,aw),dw=d(Kr,20,"#side",S2,Gr,lw),Iu=dw.get,R2=dw.set,$(Kr,Sr),g(Sr,"tagName","dui-popover-popup"),g(Sr,"styles",[y,YH]);var JH=v`
4673
4673
  :host {
4674
4674
  display: contents;
4675
4675
  }
4676
- `,Md=class extends b{static tagName="dui-popover-close";static styles=[y,uD];#t=new W(this,{context:qr,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return m`
4676
+ `,Jd=class extends b{static tagName="dui-popover-close";static styles=[y,JH];#t=new K(this,{context:Qo,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
4677
4677
  <span @click="${this.#e}">
4678
4678
  <slot></slot>
4679
4679
  </span>
4680
- `}};var mD=k``,ra=class extends Re{static styles=[...Re.styles,mD]};customElements.define(ra.tagName,ra);var sa=class extends Md{};customElements.define(sa.tagName,sa);var fD=k`
4680
+ `}};var QH=k``,ga=class extends De{static styles=[...De.styles,QH]};customElements.define(ga.tagName,ga);var va=class extends Jd{};customElements.define(va.tagName,va);var ZH=k`
4681
4681
  .Popup {
4682
4682
  padding: var(--popover-popup-padding, var(--space-4));
4683
4683
  border-radius: var(--radius-md);
@@ -4701,23 +4701,23 @@ label, legend, caption, figcaption, th, td {
4701
4701
  stroke: var(--border);
4702
4702
  stroke-width: 1px;
4703
4703
  }
4704
- `,ia=class extends wo{static styles=[...wo.styles,fD]};customElements.define(ia.tagName,ia);var na=class extends zd{};customElements.define(na.tagName,na);var gD=g`
4704
+ `,ba=class extends Sr{static styles=[...Sr.styles,ZH]};customElements.define(ba.tagName,ba);var xa=class extends Xd{};customElements.define(xa.tagName,xa);var tB=v`
4705
4705
  :host {
4706
4706
  display: contents;
4707
4707
  }
4708
- `,w2,k2,E2,C2,Po,T0,_0,A0,jo,Ps,jr,Ie,R0,$2,I0,pu,hu,no=class extends(C2=b,E2=[h({type:String})],k2=[h({type:String,attribute:"target-root",reflect:!0})],w2=[h({attribute:!1})],C2){constructor(){super(...arguments);n(this,Ie);n(this,T0,i(Po,8,this,"body")),i(Po,11,this);n(this,_0,i(Po,12,this,"document")),i(Po,15,this);n(this,A0,i(Po,16,this)),i(Po,19,this);n(this,jo);n(this,Ps,new Set);n(this,jr,!1);n(this,hu,()=>{r(this,jr)||!r(this,jo)||u(this,Ie,pu).call(this)})}connectedCallback(){super.connectedCallback(),p(this,jo,this.targetElement??u(this,Ie,R0).call(this)),r(this,jo)&&this.childNodes.length>0&&u(this,Ie,pu).call(this)}disconnectedCallback(){super.disconnectedCallback(),u(this,Ie,I0).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(u(this,Ie,I0).call(this),u(this,Ie,$2).call(this))}render(){return m`<slot @slotchange=${r(this,hu)}></slot>`}};Po=T(C2),T0=new WeakMap,_0=new WeakMap,A0=new WeakMap,jo=new WeakMap,Ps=new WeakMap,jr=new WeakMap,Ie=new WeakSet,R0=function(){return w1(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},$2=function(){p(this,jo,this.targetElement??u(this,Ie,R0).call(this)),u(this,Ie,pu).call(this)},I0=function(){if(r(this,Ps).size!==0){p(this,jr,!0);for(let t of r(this,Ps))this.append(t);r(this,Ps).clear(),p(this,jr,!1),p(this,jo,void 0)}},pu=function(){if(!r(this,jo))throw new Error(`Portal target does not exist: ${this.target}`);p(this,jr,!0);let t=Array.from(this.childNodes);for(let e of t)r(this,jo).appendChild(e),r(this,Ps).add(e);p(this,jr,!1)},hu=new WeakMap,d(Po,4,"target",E2,no,T0),d(Po,4,"targetRoot",k2,no,_0),d(Po,4,"targetElement",w2,no,A0),$(Po,no),v(no,"tagName","dui-portal"),v(no,"styles",[gD]);var vD=k``,aa=class extends no{static styles=[...no.styles,vD]};customElements.define(aa.tagName,aa);var la=Symbol("dui-preview-card");var gu=L("open-change",{bubbles:!0,composed:!0}),bD=g`
4708
+ `,O2,L2,z2,M2,Yr,cw,pw,hw,Xr,ei,ts,He,uw,N2,mw,Lu,zu,hr=class extends(M2=b,z2=[u({type:String})],L2=[u({type:String,attribute:"target-root",reflect:!0})],O2=[u({attribute:!1})],M2){constructor(){super(...arguments);n(this,He);n(this,cw,i(Yr,8,this,"body")),i(Yr,11,this);n(this,pw,i(Yr,12,this,"document")),i(Yr,15,this);n(this,hw,i(Yr,16,this)),i(Yr,19,this);n(this,Xr);n(this,ei,new Set);n(this,ts,!1);n(this,zu,()=>{r(this,ts)||!r(this,Xr)||h(this,He,Lu).call(this)})}connectedCallback(){super.connectedCallback(),p(this,Xr,this.targetElement??h(this,He,uw).call(this)),r(this,Xr)&&this.childNodes.length>0&&h(this,He,Lu).call(this)}disconnectedCallback(){super.disconnectedCallback(),h(this,He,mw).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(h(this,He,mw).call(this),h(this,He,N2).call(this))}render(){return f`<slot @slotchange=${r(this,zu)}></slot>`}};Yr=S(M2),cw=new WeakMap,pw=new WeakMap,hw=new WeakMap,Xr=new WeakMap,ei=new WeakMap,ts=new WeakMap,He=new WeakSet,uw=function(){return OS(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},N2=function(){p(this,Xr,this.targetElement??h(this,He,uw).call(this)),h(this,He,Lu).call(this)},mw=function(){if(r(this,ei).size!==0){p(this,ts,!0);for(let t of r(this,ei))this.append(t);r(this,ei).clear(),p(this,ts,!1),p(this,Xr,void 0)}},Lu=function(){if(!r(this,Xr))throw new Error(`Portal target does not exist: ${this.target}`);p(this,ts,!0);let t=Array.from(this.childNodes);for(let e of t)r(this,Xr).appendChild(e),r(this,ei).add(e);p(this,ts,!1)},zu=new WeakMap,d(Yr,4,"target",z2,hr,cw),d(Yr,4,"targetRoot",L2,hr,pw),d(Yr,4,"targetElement",O2,hr,hw),$(Yr,hr),g(hr,"tagName","dui-portal"),g(hr,"styles",[tB]);var eB=k``,ya=class extends hr{static styles=[...hr.styles,eB]};customElements.define(ya.tagName,ya);var wa=Symbol("dui-preview-card");var Hu=O("open-change",{bubbles:!0,composed:!0}),rB=v`
4709
4709
  :host {
4710
4710
  display: contents;
4711
4711
  }
4712
- `,S2,T2,_2,A2,R2,I2,O2,L2,z2,M2,yt,O0,L0,z0,M0,N0,D0,H0,B0,uu,mu,dt,F0,U0,q0,N2,js,Ws,vu,bu,V0,fu,D2,H2,P0,j0,B2,le=class extends(M2=b,z2=[h({type:Boolean,reflect:!0})],L2=[h({type:Boolean,attribute:"default-open"})],O2=[h({reflect:!0})],I2=[h({type:Number,attribute:"side-offset"})],R2=[h({type:Number})],A2=[h({type:Number,attribute:"close-delay"})],_2=[E()],T2=[E()],S2=[Et({context:la}),E()],M2){constructor(){super(...arguments);n(this,dt);n(this,O0,i(yt,8,this,!1)),i(yt,11,this);n(this,L0,i(yt,12,this,!1)),i(yt,15,this);n(this,z0,i(yt,16,this,"top")),i(yt,19,this);n(this,M0,i(yt,20,this,8)),i(yt,23,this);n(this,N0,i(yt,24,this,400)),i(yt,27,this);n(this,D0,i(yt,28,this,300)),i(yt,31,this);n(this,H0,i(yt,32,this,!1)),i(yt,35,this);n(this,F0,i(yt,36,this)),i(yt,39,this);n(this,js);n(this,Ws);n(this,vu,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,bu,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);n(this,V0,i(yt,40,this,{open:!1,triggerId:r(this,vu),popupId:r(this,bu),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>u(this,dt,D2).call(this),closePreviewCard:()=>u(this,dt,H2).call(this),setTriggerEl:t=>u(this,dt,B2).call(this,t)})),i(yt,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,dt,!0,mu)}disconnectedCallback(){super.disconnectedCallback(),u(this,dt,fu).call(this)}willUpdate(t){let e=this.open||r(this,dt,uu);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,dt,q0))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,dt,q0)})}render(){return m`<slot></slot>`}};yt=T(M2),O0=new WeakMap,L0=new WeakMap,z0=new WeakMap,M0=new WeakMap,N0=new WeakMap,D0=new WeakMap,H0=new WeakMap,dt=new WeakSet,F0=new WeakMap,js=new WeakMap,Ws=new WeakMap,vu=new WeakMap,bu=new WeakMap,V0=new WeakMap,fu=function(){r(this,js)&&(clearTimeout(r(this,js)),p(this,js,void 0)),r(this,Ws)&&(clearTimeout(r(this,Ws)),p(this,Ws,void 0))},D2=function(){u(this,dt,fu).call(this),this.delay<=0?u(this,dt,P0).call(this):p(this,js,setTimeout(()=>u(this,dt,P0).call(this),this.delay))},H2=function(){u(this,dt,fu).call(this),this.closeDelay<=0?u(this,dt,j0).call(this):p(this,Ws,setTimeout(()=>u(this,dt,j0).call(this),this.closeDelay))},P0=function(){r(this,dt,uu)||(p(this,dt,!0,mu),this.dispatchEvent(gu({open:!0})))},j0=function(){r(this,dt,uu)&&(p(this,dt,!1,mu),this.dispatchEvent(gu({open:!1})))},B2=function(t){p(this,dt,t,N2)},d(yt,4,"open",z2,le,O0),d(yt,4,"defaultOpen",L2,le,L0),d(yt,4,"side",O2,le,z0),d(yt,4,"sideOffset",I2,le,M0),d(yt,4,"delay",R2,le,N0),d(yt,4,"closeDelay",A2,le,D0),B0=d(yt,20,"#internalOpen",_2,dt,H0),uu=B0.get,mu=B0.set,U0=d(yt,20,"#triggerEl",T2,dt,F0),q0=U0.get,N2=U0.set,d(yt,4,"_ctx",S2,le,V0),$(yt,le),v(le,"tagName","dui-preview-card"),v(le,"styles",[y,bD]);var xD=g`
4712
+ `,D2,H2,B2,F2,V2,U2,q2,P2,j2,W2,Ct,fw,gw,vw,bw,xw,yw,ww,kw,Mu,Nu,pt,Ew,Cw,Sw,K2,ri,oi,Bu,Fu,$w,Du,G2,Y2,Tw,_w,X2,ue=class extends(W2=b,j2=[u({type:Boolean,reflect:!0})],P2=[u({type:Boolean,attribute:"default-open"})],q2=[u({reflect:!0})],U2=[u({type:Number,attribute:"side-offset"})],V2=[u({type:Number})],F2=[u({type:Number,attribute:"close-delay"})],B2=[E()],H2=[E()],D2=[vt({context:wa}),E()],W2){constructor(){super(...arguments);n(this,pt);n(this,fw,i(Ct,8,this,!1)),i(Ct,11,this);n(this,gw,i(Ct,12,this,!1)),i(Ct,15,this);n(this,vw,i(Ct,16,this,"top")),i(Ct,19,this);n(this,bw,i(Ct,20,this,8)),i(Ct,23,this);n(this,xw,i(Ct,24,this,400)),i(Ct,27,this);n(this,yw,i(Ct,28,this,300)),i(Ct,31,this);n(this,ww,i(Ct,32,this,!1)),i(Ct,35,this);n(this,Ew,i(Ct,36,this)),i(Ct,39,this);n(this,ri);n(this,oi);n(this,Bu,`preview-card-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,Fu,`preview-card-popup-${crypto.randomUUID().slice(0,8)}`);n(this,$w,i(Ct,40,this,{open:!1,triggerId:r(this,Bu),popupId:r(this,Fu),side:"top",sideOffset:8,triggerEl:void 0,openPreviewCard:()=>h(this,pt,G2).call(this),closePreviewCard:()=>h(this,pt,Y2).call(this),setTriggerEl:t=>h(this,pt,X2).call(this,t)})),i(Ct,43,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&p(this,pt,!0,Nu)}disconnectedCallback(){super.disconnectedCallback(),h(this,pt,Du).call(this)}willUpdate(t){let e=this.open||r(this,pt,Mu);(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,pt,Sw))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,triggerEl:r(this,pt,Sw)})}render(){return f`<slot></slot>`}};Ct=S(W2),fw=new WeakMap,gw=new WeakMap,vw=new WeakMap,bw=new WeakMap,xw=new WeakMap,yw=new WeakMap,ww=new WeakMap,pt=new WeakSet,Ew=new WeakMap,ri=new WeakMap,oi=new WeakMap,Bu=new WeakMap,Fu=new WeakMap,$w=new WeakMap,Du=function(){r(this,ri)&&(clearTimeout(r(this,ri)),p(this,ri,void 0)),r(this,oi)&&(clearTimeout(r(this,oi)),p(this,oi,void 0))},G2=function(){h(this,pt,Du).call(this),this.delay<=0?h(this,pt,Tw).call(this):p(this,ri,setTimeout(()=>h(this,pt,Tw).call(this),this.delay))},Y2=function(){h(this,pt,Du).call(this),this.closeDelay<=0?h(this,pt,_w).call(this):p(this,oi,setTimeout(()=>h(this,pt,_w).call(this),this.closeDelay))},Tw=function(){r(this,pt,Mu)||(p(this,pt,!0,Nu),this.dispatchEvent(Hu({open:!0})))},_w=function(){r(this,pt,Mu)&&(p(this,pt,!1,Nu),this.dispatchEvent(Hu({open:!1})))},X2=function(t){p(this,pt,t,K2)},d(Ct,4,"open",j2,ue,fw),d(Ct,4,"defaultOpen",P2,ue,gw),d(Ct,4,"side",q2,ue,vw),d(Ct,4,"sideOffset",U2,ue,bw),d(Ct,4,"delay",V2,ue,xw),d(Ct,4,"closeDelay",F2,ue,yw),kw=d(Ct,20,"#internalOpen",B2,pt,ww),Mu=kw.get,Nu=kw.set,Cw=d(Ct,20,"#triggerEl",H2,pt,Ew),Sw=Cw.get,K2=Cw.set,d(Ct,4,"_ctx",D2,ue,$w),$(Ct,ue),g(ue,"tagName","dui-preview-card"),g(ue,"styles",[y,rB]);var oB=v`
4713
4713
  :host {
4714
4714
  display: contents;
4715
4715
  }
4716
- `,yD=g`
4716
+ `,sB=v`
4717
4717
  .Trigger {
4718
4718
  display: contents;
4719
4719
  }
4720
- `,Nd=class extends b{static tagName="dui-preview-card-trigger";static styles=[y,xD,yD];#t=new W(this,{context:la,subscribe:!0});#e=()=>{this.#d(),this.#t.value?.openPreviewCard()};#i=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#d(),this.#t.value?.openPreviewCard()};#a=()=>{this.#t.value?.closePreviewCard()};#l=o=>{o.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#d(){let e=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(e)}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return m`
4720
+ `,Qd=class extends b{static tagName="dui-preview-card-trigger";static styles=[y,oB,sB];#t=new K(this,{context:wa,subscribe:!0});#e=()=>{this.#d(),this.#t.value?.openPreviewCard()};#i=()=>{this.#t.value?.closePreviewCard()};#n=()=>{this.#d(),this.#t.value?.openPreviewCard()};#a=()=>{this.#t.value?.closePreviewCard()};#l=o=>{o.key==="Escape"&&this.#t.value?.open&&this.#t.value?.closePreviewCard()};#d(){let e=this.shadowRoot?.querySelector("slot")?.assignedElements({flatten:!0})?.[0]??this;this.#t.value?.setTriggerEl(e)}render(){let o=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
4721
4721
  <span
4722
4722
  class="Trigger"
4723
4723
  part="trigger"
@@ -4733,7 +4733,7 @@ label, legend, caption, figcaption, th, td {
4733
4733
  >
4734
4734
  <slot></slot>
4735
4735
  </span>
4736
- `}};var wD=g`
4736
+ `}};var iB=v`
4737
4737
  :host {
4738
4738
  display: contents;
4739
4739
  }
@@ -4741,7 +4741,7 @@ label, legend, caption, figcaption, th, td {
4741
4741
  .slot-wrapper {
4742
4742
  display: none;
4743
4743
  }
4744
- `,kD=[g`
4744
+ `,nB=[v`
4745
4745
  .Popup {
4746
4746
  box-sizing: border-box;
4747
4747
  pointer-events: auto;
@@ -4782,21 +4782,21 @@ label, legend, caption, figcaption, th, td {
4782
4782
  left: 50%;
4783
4783
  transform: translateX(-50%) rotate(180deg);
4784
4784
  }
4785
- `],F2,U2,V2,Ks,W0,K0,G0,xu,q2,Go,Wo,da,Gs,yu,wu,P2,Ko=class extends(V2=b,U2=[h({type:Boolean,attribute:"show-arrow"})],F2=[E()],V2){constructor(){super(...arguments);n(this,Go);n(this,W0,i(Ks,8,this,!0)),i(Ks,11,this);n(this,K0,i(Ks,12,this,"top")),i(Ks,15,this);n(this,Wo,new W(this,{context:la,subscribe:!0}));n(this,da,!1);n(this,Gs,new ae(this,{getAnchor:()=>r(this,Wo).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:kD,contentContainer:".PreviewCardContent",forwardProperties:["--preview-card-popup-padding"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,Go,xu)&&p(this,Go,e,q2)},renderPopup:t=>{let e=r(this,Wo).value?.popupId??"";return m`
4785
+ `],J2,Q2,Z2,si,Aw,Rw,Iw,Vu,tO,Zr,Jr,ka,ii,Uu,qu,eO,Qr=class extends(Z2=b,Q2=[u({type:Boolean,attribute:"show-arrow"})],J2=[E()],Z2){constructor(){super(...arguments);n(this,Zr);n(this,Aw,i(si,8,this,!0)),i(si,11,this);n(this,Rw,i(si,12,this,"top")),i(si,15,this);n(this,Jr,new K(this,{context:wa,subscribe:!0}));n(this,ka,!1);n(this,ii,new he(this,{getAnchor:()=>r(this,Jr).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:nB,contentContainer:".PreviewCardContent",forwardProperties:["--preview-card-popup-padding"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,Zr,Vu)&&p(this,Zr,e,tO)},renderPopup:t=>{let e=r(this,Jr).value?.popupId??"";return f`
4786
4786
  <div
4787
4787
  class="Popup"
4788
4788
  id="${e}"
4789
4789
  role="tooltip"
4790
4790
  ?data-starting-style="${t.isStarting}"
4791
4791
  ?data-ending-style="${t.isEnding}"
4792
- data-side="${r(this,Go,xu)}"
4793
- @mouseenter="${r(this,yu)}"
4794
- @mouseleave="${r(this,wu)}"
4792
+ data-side="${r(this,Zr,Vu)}"
4793
+ @mouseenter="${r(this,Uu)}"
4794
+ @mouseleave="${r(this,qu)}"
4795
4795
  >
4796
4796
  <div class="PreviewCardContent"></div>
4797
- ${this.showArrow?cn(r(this,Go,xu)):""}
4797
+ ${this.showArrow?En(r(this,Zr,Vu)):""}
4798
4798
  </div>
4799
- `}}));n(this,yu,()=>{r(this,Wo).value?.openPreviewCard()});n(this,wu,()=>{r(this,Wo).value?.closePreviewCard()})}updated(){let t=r(this,Wo).value?.open??!1;t&&!r(this,da)?(u(this,Go,P2).call(this),r(this,Gs).open()):!t&&r(this,da)&&r(this,Gs).close(),p(this,da,t)}render(){return m`<div class="slot-wrapper"><slot></slot></div>`}};Ks=T(V2),W0=new WeakMap,K0=new WeakMap,Go=new WeakSet,Wo=new WeakMap,da=new WeakMap,Gs=new WeakMap,yu=new WeakMap,wu=new WeakMap,P2=function(){let t=r(this,Wo).value?.side??"top";r(this,Gs).placement=t,r(this,Gs).offset=r(this,Wo).value?.sideOffset??8},d(Ks,4,"showArrow",U2,Ko,W0),G0=d(Ks,20,"#side",F2,Go,K0),xu=G0.get,q2=G0.set,$(Ks,Ko),v(Ko,"tagName","dui-preview-card-popup"),v(Ko,"styles",[y,wD]);var ED=k``,ca=class extends le{static styles=[...le.styles,ED]};customElements.define(ca.tagName,ca);var CD=k`
4799
+ `}}));n(this,Uu,()=>{r(this,Jr).value?.openPreviewCard()});n(this,qu,()=>{r(this,Jr).value?.closePreviewCard()})}updated(){let t=r(this,Jr).value?.open??!1;t&&!r(this,ka)?(h(this,Zr,eO).call(this),r(this,ii).open()):!t&&r(this,ka)&&r(this,ii).close(),p(this,ka,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};si=S(Z2),Aw=new WeakMap,Rw=new WeakMap,Zr=new WeakSet,Jr=new WeakMap,ka=new WeakMap,ii=new WeakMap,Uu=new WeakMap,qu=new WeakMap,eO=function(){let t=r(this,Jr).value?.side??"top";r(this,ii).placement=t,r(this,ii).offset=r(this,Jr).value?.sideOffset??8},d(si,4,"showArrow",Q2,Qr,Aw),Iw=d(si,20,"#side",J2,Zr,Rw),Vu=Iw.get,tO=Iw.set,$(si,Qr),g(Qr,"tagName","dui-preview-card-popup"),g(Qr,"styles",[y,iB]);var aB=k``,Ea=class extends ue{static styles=[...ue.styles,aB]};customElements.define(Ea.tagName,Ea);var lB=k`
4800
4800
  .Popup {
4801
4801
  padding: var(--preview-card-popup-padding, var(--space-4));
4802
4802
  border-radius: var(--radius-md);
@@ -4821,7 +4821,7 @@ label, legend, caption, figcaption, th, td {
4821
4821
  stroke: var(--border);
4822
4822
  stroke-width: 1px;
4823
4823
  }
4824
- `,pa=class extends Ko{static styles=[...Ko.styles,CD]};customElements.define(pa.tagName,pa);var ha=class extends Nd{};customElements.define(ha.tagName,ha);var $D=g`
4824
+ `,Ca=class extends Qr{static styles=[...Qr.styles,lB]};customElements.define(Ca.tagName,Ca);var $a=class extends Qd{};customElements.define($a.tagName,$a);var dB=v`
4825
4825
  :host {
4826
4826
  display: block;
4827
4827
  }
@@ -4839,23 +4839,23 @@ label, legend, caption, figcaption, th, td {
4839
4839
  width: var(--progress-value, 0%);
4840
4840
  height: 100%;
4841
4841
  }
4842
- `,j2,W2,K2,G2,Yo,Y0,X0,J0,Xo,Y2,Q0,Z0,ao=class extends(G2=b,K2=[h({type:Number})],W2=[h({type:Number})],j2=[h({type:Number})],G2){constructor(){super(...arguments);n(this,Xo);n(this,Y0,i(Yo,8,this,null)),i(Yo,11,this);n(this,X0,i(Yo,12,this,0)),i(Yo,15,this);n(this,J0,i(Yo,16,this,100)),i(Yo,19,this)}render(){let t=r(this,Xo,Y2);return m`
4842
+ `,rO,oO,sO,iO,to,Ow,Lw,zw,eo,nO,Mw,Nw,ur=class extends(iO=b,sO=[u({type:Number})],oO=[u({type:Number})],rO=[u({type:Number})],iO){constructor(){super(...arguments);n(this,eo);n(this,Ow,i(to,8,this,null)),i(to,11,this);n(this,Lw,i(to,12,this,0)),i(to,15,this);n(this,zw,i(to,16,this,100)),i(to,19,this)}render(){let t=r(this,eo,nO);return f`
4843
4843
  <div
4844
4844
  part="root"
4845
4845
  role="progressbar"
4846
4846
  aria-valuenow="${this.value??I}"
4847
4847
  aria-valuemin="${this.min}"
4848
4848
  aria-valuemax="${this.max}"
4849
- ?data-complete="${r(this,Xo,Z0)}"
4850
- ?data-progressing="${!r(this,Xo,Q0)&&!r(this,Xo,Z0)}"
4851
- ?data-indeterminate="${r(this,Xo,Q0)}"
4849
+ ?data-complete="${r(this,eo,Nw)}"
4850
+ ?data-progressing="${!r(this,eo,Mw)&&!r(this,eo,Nw)}"
4851
+ ?data-indeterminate="${r(this,eo,Mw)}"
4852
4852
  style="--progress-value: ${t}%"
4853
4853
  >
4854
4854
  <div part="track">
4855
4855
  <div part="indicator"></div>
4856
4856
  </div>
4857
4857
  </div>
4858
- `}};Yo=T(G2),Y0=new WeakMap,X0=new WeakMap,J0=new WeakMap,Xo=new WeakSet,Y2=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))},Q0=function(){return this.value===null},Z0=function(){return this.value!==null&&this.value>=this.max},d(Yo,4,"value",K2,ao,Y0),d(Yo,4,"min",W2,ao,X0),d(Yo,4,"max",j2,ao,J0),$(Yo,ao),v(ao,"tagName","dui-progress"),v(ao,"styles",[y,$D]);var SD=k`
4858
+ `}};to=S(iO),Ow=new WeakMap,Lw=new WeakMap,zw=new WeakMap,eo=new WeakSet,nO=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))},Mw=function(){return this.value===null},Nw=function(){return this.value!==null&&this.value>=this.max},d(to,4,"value",sO,ur,Ow),d(to,4,"min",oO,ur,Lw),d(to,4,"max",rO,ur,zw),$(to,ur),g(ur,"tagName","dui-progress"),g(ur,"styles",[y,dB]);var cB=k`
4859
4859
  :host {
4860
4860
  --progress-height: var(--space-2);
4861
4861
  }
@@ -4885,7 +4885,7 @@ label, legend, caption, figcaption, th, td {
4885
4885
  left: 100%;
4886
4886
  }
4887
4887
  }
4888
- `,ua=class extends ao{static styles=[...ao.styles,SD]};customElements.define(ua.tagName,ua);var ku=Symbol("dui-radio-group");var TD=g`
4888
+ `,Sa=class extends ur{static styles=[...ur.styles,cB]};customElements.define(Sa.tagName,Sa);var Pu=Symbol("dui-radio-group");var pB=v`
4889
4889
  :host {
4890
4890
  display: inline-flex;
4891
4891
  align-items: center;
@@ -4929,7 +4929,7 @@ label, legend, caption, figcaption, th, td {
4929
4929
  display: none;
4930
4930
  }
4931
4931
 
4932
- `,X2,J2,Q2,Z2,ma,Jo,tw,ew,ow,Wr,ge,rw,sw,iw,tI,eI,Dd,fa,Eu,We=class extends(Z2=b,Q2=[h()],J2=[h({type:Boolean,reflect:!0})],X2=[h({type:Boolean,reflect:!0,attribute:"read-only"})],Z2){constructor(){super();n(this,ge);n(this,ma);n(this,tw,i(Jo,8,this,"")),i(Jo,11,this);n(this,ew,i(Jo,12,this,!1)),i(Jo,15,this);n(this,ow,i(Jo,16,this,!1)),i(Jo,19,this);n(this,Wr,new W(this,{context:ku,subscribe:!0}));n(this,Dd,t=>{t.target.closest("[part='root']")||r(this,fa).call(this,t)});n(this,fa,t=>{if(r(this,ge,sw)||r(this,ge,iw))return;let e=r(this,Wr).value;e&&e.select(this.value)});n(this,Eu,t=>{t.key===" "&&(t.preventDefault(),r(this,fa).call(this,t))});p(this,ma,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",r(this,Dd))}willUpdate(){u(this,ge,eI).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,Dd))}render(){let t=r(this,ge,rw),e=r(this,ge,sw),a=r(this,ge,iw),l=r(this,ge,tI);return m`
4932
+ `,aO,lO,dO,cO,Ta,ro,Dw,Hw,Bw,es,ke,Fw,Vw,Uw,pO,hO,Zd,_a,ju,Qe=class extends(cO=b,dO=[u()],lO=[u({type:Boolean,reflect:!0})],aO=[u({type:Boolean,reflect:!0,attribute:"read-only"})],cO){constructor(){super();n(this,ke);n(this,Ta);n(this,Dw,i(ro,8,this,"")),i(ro,11,this);n(this,Hw,i(ro,12,this,!1)),i(ro,15,this);n(this,Bw,i(ro,16,this,!1)),i(ro,19,this);n(this,es,new K(this,{context:Pu,subscribe:!0}));n(this,Zd,t=>{t.target.closest("[part='root']")||r(this,_a).call(this,t)});n(this,_a,t=>{if(r(this,ke,Vw)||r(this,ke,Uw))return;let e=r(this,es).value;e&&e.select(this.value)});n(this,ju,t=>{t.key===" "&&(t.preventDefault(),r(this,_a).call(this,t))});p(this,Ta,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",r(this,Zd))}willUpdate(){h(this,ke,hO).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,Zd))}render(){let t=r(this,ke,Fw),e=r(this,ke,Vw),a=r(this,ke,Uw),l=r(this,ke,pO);return f`
4933
4933
  <span
4934
4934
  part="root"
4935
4935
  role="radio"
@@ -4943,19 +4943,19 @@ label, legend, caption, figcaption, th, td {
4943
4943
  ?data-disabled="${e}"
4944
4944
  ?data-readonly="${a}"
4945
4945
  ?data-required="${l}"
4946
- @click="${r(this,fa)}"
4947
- @keydown="${r(this,Eu)}"
4946
+ @click="${r(this,_a)}"
4947
+ @keydown="${r(this,ju)}"
4948
4948
  >
4949
4949
  <span
4950
4950
  part="indicator"
4951
4951
  ?data-checked="${t}"
4952
4952
  ?data-unchecked="${!t}"
4953
4953
  >
4954
- ${t?m`<span part="dot"></span>`:I}
4954
+ ${t?f`<span part="dot"></span>`:I}
4955
4955
  </span>
4956
4956
  </span>
4957
4957
  <slot></slot>
4958
- `}};Jo=T(Z2),ma=new WeakMap,tw=new WeakMap,ew=new WeakMap,ow=new WeakMap,Wr=new WeakMap,ge=new WeakSet,rw=function(){return r(this,Wr).value?.value===this.value},sw=function(){return this.disabled||(r(this,Wr).value?.disabled??!1)},iw=function(){return this.readOnly||(r(this,Wr).value?.readOnly??!1)},tI=function(){return r(this,Wr).value?.required??!1},eI=function(){r(this,ge,rw)?r(this,ma).setFormValue(this.value):r(this,ma).setFormValue(null)},Dd=new WeakMap,fa=new WeakMap,Eu=new WeakMap,d(Jo,4,"value",Q2,We,tw),d(Jo,4,"disabled",J2,We,ew),d(Jo,4,"readOnly",X2,We,ow),$(Jo,We),v(We,"tagName","dui-radio"),v(We,"formAssociated",!0),v(We,"styles",[y,TD]);var gw=L("value-change",{bubbles:!0,composed:!0}),_D=g`
4958
+ `}};ro=S(cO),Ta=new WeakMap,Dw=new WeakMap,Hw=new WeakMap,Bw=new WeakMap,es=new WeakMap,ke=new WeakSet,Fw=function(){return r(this,es).value?.value===this.value},Vw=function(){return this.disabled||(r(this,es).value?.disabled??!1)},Uw=function(){return this.readOnly||(r(this,es).value?.readOnly??!1)},pO=function(){return r(this,es).value?.required??!1},hO=function(){r(this,ke,Fw)?r(this,Ta).setFormValue(this.value):r(this,Ta).setFormValue(null)},Zd=new WeakMap,_a=new WeakMap,ju=new WeakMap,d(ro,4,"value",dO,Qe,Dw),d(ro,4,"disabled",lO,Qe,Hw),d(ro,4,"readOnly",aO,Qe,Bw),$(ro,Qe),g(Qe,"tagName","dui-radio"),g(Qe,"formAssociated",!0),g(Qe,"styles",[y,pB]);var Zw=O("value-change",{bubbles:!0,composed:!0}),hB=v`
4959
4959
  :host {
4960
4960
  display: block;
4961
4961
  }
@@ -4969,7 +4969,7 @@ label, legend, caption, figcaption, th, td {
4969
4969
  [part="root"][data-disabled] {
4970
4970
  opacity: 0.5;
4971
4971
  }
4972
- `,oI,rI,sI,iI,nI,aI,lI,dI,cI,$t,nw,aw,lw,dw,cw,pw,hw,uw,pI,fw,ko,$u,Su,mw,Cu,de=class extends(cI=b,dI=[h()],lI=[h()],aI=[h({attribute:"default-value"})],nI=[h({type:Boolean,reflect:!0})],iI=[h({type:Boolean,reflect:!0,attribute:"read-only"})],sI=[h({type:Boolean,reflect:!0})],rI=[E()],oI=[Et({context:ku}),E()],cI){constructor(){super(...arguments);n(this,ko);n(this,nw,i($t,8,this)),i($t,11,this);n(this,aw,i($t,12,this)),i($t,15,this);n(this,lw,i($t,16,this)),i($t,19,this);n(this,dw,i($t,20,this,!1)),i($t,23,this);n(this,cw,i($t,24,this,!1)),i($t,27,this);n(this,pw,i($t,28,this,!1)),i($t,31,this);n(this,hw,i($t,32,this)),i($t,35,this);n(this,$u,()=>this.value??r(this,ko,pI));n(this,Su,t=>{this.disabled||this.readOnly||(this.value===void 0&&p(this,ko,t,fw),this.dispatchEvent(gw({value:t})))});n(this,mw,i($t,36,this,u(this,ko,Cu).call(this))),i($t,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,ko,this.defaultValue,fw),this._ctx=u(this,ko,Cu).call(this)}willUpdate(){this._ctx=u(this,ko,Cu).call(this)}render(){return m`
4972
+ `,uO,mO,fO,gO,vO,bO,xO,yO,wO,_t,qw,Pw,jw,Ww,Kw,Gw,Yw,Xw,kO,Qw,Tr,Ku,Gu,Jw,Wu,me=class extends(wO=b,yO=[u()],xO=[u()],bO=[u({attribute:"default-value"})],vO=[u({type:Boolean,reflect:!0})],gO=[u({type:Boolean,reflect:!0,attribute:"read-only"})],fO=[u({type:Boolean,reflect:!0})],mO=[E()],uO=[vt({context:Pu}),E()],wO){constructor(){super(...arguments);n(this,Tr);n(this,qw,i(_t,8,this)),i(_t,11,this);n(this,Pw,i(_t,12,this)),i(_t,15,this);n(this,jw,i(_t,16,this)),i(_t,19,this);n(this,Ww,i(_t,20,this,!1)),i(_t,23,this);n(this,Kw,i(_t,24,this,!1)),i(_t,27,this);n(this,Gw,i(_t,28,this,!1)),i(_t,31,this);n(this,Yw,i(_t,32,this)),i(_t,35,this);n(this,Ku,()=>this.value??r(this,Tr,kO));n(this,Gu,t=>{this.disabled||this.readOnly||(this.value===void 0&&p(this,Tr,t,Qw),this.dispatchEvent(Zw({value:t})))});n(this,Jw,i(_t,36,this,h(this,Tr,Wu).call(this))),i(_t,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,Tr,this.defaultValue,Qw),this._ctx=h(this,Tr,Wu).call(this)}willUpdate(){this._ctx=h(this,Tr,Wu).call(this)}render(){return f`
4973
4973
  <div
4974
4974
  part="root"
4975
4975
  role="radiogroup"
@@ -4979,7 +4979,7 @@ label, legend, caption, figcaption, th, td {
4979
4979
  >
4980
4980
  <slot></slot>
4981
4981
  </div>
4982
- `}};$t=T(cI),nw=new WeakMap,aw=new WeakMap,lw=new WeakMap,dw=new WeakMap,cw=new WeakMap,pw=new WeakMap,hw=new WeakMap,ko=new WeakSet,$u=new WeakMap,Su=new WeakMap,mw=new WeakMap,Cu=function(){return{name:this.name,value:r(this,$u).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:r(this,Su)}},d($t,4,"name",dI,de,nw),d($t,4,"value",lI,de,aw),d($t,4,"defaultValue",aI,de,lw),d($t,4,"disabled",nI,de,dw),d($t,4,"readOnly",iI,de,cw),d($t,4,"required",sI,de,pw),uw=d($t,20,"#internalValue",rI,ko,hw),pI=uw.get,fw=uw.set,d($t,4,"_ctx",oI,de,mw),$($t,de),v(de,"tagName","dui-radio-group"),v(de,"styles",[y,_D]);var AD=k`
4982
+ `}};_t=S(wO),qw=new WeakMap,Pw=new WeakMap,jw=new WeakMap,Ww=new WeakMap,Kw=new WeakMap,Gw=new WeakMap,Yw=new WeakMap,Tr=new WeakSet,Ku=new WeakMap,Gu=new WeakMap,Jw=new WeakMap,Wu=function(){return{name:this.name,value:r(this,Ku).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:r(this,Gu)}},d(_t,4,"name",yO,me,qw),d(_t,4,"value",xO,me,Pw),d(_t,4,"defaultValue",bO,me,jw),d(_t,4,"disabled",vO,me,Ww),d(_t,4,"readOnly",gO,me,Kw),d(_t,4,"required",fO,me,Gw),Xw=d(_t,20,"#internalValue",mO,Tr,Yw),kO=Xw.get,Qw=Xw.set,d(_t,4,"_ctx",uO,me,Jw),$(_t,me),g(me,"tagName","dui-radio-group"),g(me,"styles",[y,hB]);var uB=k`
4983
4983
  :host {
4984
4984
  --radio-size: var(--space-4_5);
4985
4985
  gap: var(--space-2);
@@ -5026,11 +5026,11 @@ label, legend, caption, figcaption, th, td {
5026
5026
  border-radius: 50%;
5027
5027
  background: oklch(from var(--accent) 0.98 0.01 h);
5028
5028
  }
5029
- `,ga=class extends We{static styles=[...We.styles,AD]};customElements.define(ga.tagName,ga);var RD=k`
5029
+ `,Aa=class extends Qe{static styles=[...Qe.styles,uB]};customElements.define(Aa.tagName,Aa);var mB=k`
5030
5030
  [part="root"] {
5031
5031
  gap: var(--space-1_5);
5032
5032
  }
5033
- `,va=class extends de{static styles=[...de.styles,RD]};customElements.define(va.tagName,va);var ID=g`
5033
+ `,Ra=class extends me{static styles=[...me.styles,mB]};customElements.define(Ra.tagName,Ra);var fB=v`
5034
5034
  :host {
5035
5035
  display: block;
5036
5036
  position: relative;
@@ -5121,54 +5121,54 @@ label, legend, caption, figcaption, th, td {
5121
5121
  height: 100%;
5122
5122
  min-width: 1.25rem;
5123
5123
  }
5124
- `,hI,uI,mI,fI,gI,vI,bI,xI,yI,wI,kI,EI,CI,Z,vw,bw,xw,yw,ww,Tu,$I,N,kw,Ew,_u,SI,Cw,$w,Hw,Bw,Sw,Tw,Au,Fw,_w,Aw,Uw,TI,Rw,Iw,Vw,_I,Ow,Lw,AI,RI,zw,Mw,II,OI,Nw,Dw,qw,LI,Ru,Cr,ba,xa,Ys,Xs,Js,Qs,Kr,zI,MI,Zs,Hd,Iu,Bd,Fd,Ud,Vd,qd,Pd,NI,DI,Qo=class Qo extends(CI=b,EI=[h({reflect:!0})],kI=[h({type:Boolean,reflect:!0})],wI=[h({attribute:"max-height"})],yI=[E()],xI=[E()],bI=[E()],vI=[E()],gI=[E()],fI=[E()],mI=[E()],uI=[E()],hI=[E()],CI){constructor(){super(...arguments);n(this,N);n(this,vw,i(Z,8,this,"vertical")),i(Z,11,this);n(this,bw,i(Z,12,this,!1)),i(Z,15,this);n(this,xw,i(Z,16,this)),i(Z,19,this);n(this,yw,i(Z,20,this,!1)),i(Z,23,this);n(this,kw,i(Z,24,this,!1)),i(Z,27,this);n(this,Cw,i(Z,28,this,!1)),i(Z,31,this);n(this,Sw,i(Z,32,this,!1)),i(Z,35,this);n(this,_w,i(Z,36,this,0)),i(Z,39,this);n(this,Rw,i(Z,40,this,0)),i(Z,43,this);n(this,Ow,i(Z,44,this,0)),i(Z,47,this);n(this,zw,i(Z,48,this,0)),i(Z,51,this);n(this,Nw,i(Z,52,this,!0)),i(Z,55,this);n(this,Cr,!0);n(this,ba,0);n(this,xa);n(this,Ys);n(this,Xs);n(this,Js,0);n(this,Qs,0);n(this,Zs,()=>{let t=r(this,N,Kr);if(!t)return;let e=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;p(this,N,e,SI),p(this,N,a,$I),e&&p(this,N,t.clientHeight/t.scrollHeight*100,TI),a&&p(this,N,t.clientWidth/t.scrollWidth*100,_I),r(this,Hd).call(this,t)});n(this,Hd,t=>{if(r(this,N,_u)){let e=t.scrollHeight-t.clientHeight;p(this,N,e>0?t.scrollTop/e*(100-r(this,N,Uw)):0,RI)}if(r(this,N,Tu)){let e=t.scrollWidth-t.clientWidth;p(this,N,e>0?t.scrollLeft/e*(100-r(this,N,Vw)):0,OI)}});n(this,Iu,()=>{let t=r(this,N,Kr);if(!t)return;p(this,N,!0,Fw),r(this,Hd).call(this,t);let e=r(this,Cr),a=t.scrollTop<r(this,ba);p(this,N,t.scrollTop<=0,LI),p(this,Cr,t.scrollTop+t.clientHeight>=t.scrollHeight-r(Qo,Ru)),a&&e&&!r(this,Cr)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&r(this,Cr)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),p(this,ba,t.scrollTop),clearTimeout(r(this,xa)),p(this,xa,setTimeout(()=>{p(this,N,!1,Fw)},1e3))});n(this,Bd,()=>{p(this,N,!0,Bw),r(this,Zs).call(this)});n(this,Fd,()=>{p(this,N,!1,Bw)});n(this,Ud,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,N,Kr);if(a)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let c=l.getBoundingClientRect(),f=(e.clientY-c.top)/c.height;a.scrollTop=f*(a.scrollHeight-a.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let c=l.getBoundingClientRect(),f=(e.clientX-c.left)/c.width;a.scrollLeft=f*(a.scrollWidth-a.clientWidth)}});n(this,Vd,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,N,Kr);a&&(p(this,Xs,t),t==="vertical"?(p(this,Js,e.clientY),p(this,Qs,a.scrollTop)):(p(this,Js,e.clientX),p(this,Qs,a.scrollLeft)),document.addEventListener("pointermove",r(this,qd)),document.addEventListener("pointerup",r(this,Pd)))});n(this,qd,t=>{let e=r(this,N,Kr);if(!(!e||!r(this,Xs)))if(r(this,Xs)==="vertical"){let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!a)return;let l=t.clientY-r(this,Js),c=a.clientHeight,f=e.scrollHeight-e.clientHeight;e.scrollTop=r(this,Qs)+l/c*f}else{let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!a)return;let l=t.clientX-r(this,Js),c=a.clientWidth,f=e.scrollWidth-e.clientWidth;e.scrollLeft=r(this,Qs)+l/c*f}});n(this,Pd,()=>{p(this,Xs,void 0),document.removeEventListener("pointermove",r(this,qd)),document.removeEventListener("pointerup",r(this,Pd))})}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",r(this,Bd)),this.addEventListener("pointerleave",r(this,Fd))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",r(this,Bd)),this.removeEventListener("pointerleave",r(this,Fd)),r(this,Ys)?.disconnect(),clearTimeout(r(this,xa))}firstUpdated(){let t=r(this,N,Kr);if(!t)return;p(this,Ys,new ResizeObserver(()=>r(this,Zs).call(this))),r(this,Ys).observe(t);let e=t.querySelector("slot");if(e){let a=()=>{for(let l of e.assignedElements())r(this,Ys).observe(l)};e.addEventListener("slotchange",()=>{a(),requestAnimationFrame(()=>r(this,Zs).call(this))}),a()}r(this,Zs).call(this)}async scrollToBottom(){await this.updateComplete;let t=r(this,N,Kr);t&&(t.scrollTop=t.scrollHeight,p(this,Cr,!0),p(this,ba,t.scrollTop))}get isAtTop(){return r(this,N,qw)}get isAtBottom(){return r(this,Cr)}render(){return m`
5124
+ `,EO,CO,$O,SO,TO,_O,AO,RO,IO,OO,LO,zO,MO,et,tk,ek,rk,ok,sk,Yu,NO,N,ik,nk,Xu,DO,ak,lk,wk,kk,dk,ck,Ju,Ek,pk,hk,Ck,HO,uk,mk,$k,BO,fk,gk,FO,VO,vk,bk,UO,qO,xk,yk,Sk,PO,Qu,Oo,Ia,Oa,ni,ai,li,di,rs,jO,WO,ci,tc,Zu,ec,rc,oc,sc,ic,nc,KO,GO,oo=class oo extends(MO=b,zO=[u({reflect:!0})],LO=[u({type:Boolean,reflect:!0})],OO=[u({attribute:"max-height"})],IO=[E()],RO=[E()],AO=[E()],_O=[E()],TO=[E()],SO=[E()],$O=[E()],CO=[E()],EO=[E()],MO){constructor(){super(...arguments);n(this,N);n(this,tk,i(et,8,this,"vertical")),i(et,11,this);n(this,ek,i(et,12,this,!1)),i(et,15,this);n(this,rk,i(et,16,this)),i(et,19,this);n(this,ok,i(et,20,this,!1)),i(et,23,this);n(this,ik,i(et,24,this,!1)),i(et,27,this);n(this,ak,i(et,28,this,!1)),i(et,31,this);n(this,dk,i(et,32,this,!1)),i(et,35,this);n(this,pk,i(et,36,this,0)),i(et,39,this);n(this,uk,i(et,40,this,0)),i(et,43,this);n(this,fk,i(et,44,this,0)),i(et,47,this);n(this,vk,i(et,48,this,0)),i(et,51,this);n(this,xk,i(et,52,this,!0)),i(et,55,this);n(this,Oo,!0);n(this,Ia,0);n(this,Oa);n(this,ni);n(this,ai);n(this,li,0);n(this,di,0);n(this,ci,()=>{let t=r(this,N,rs);if(!t)return;let e=t.scrollHeight>t.clientHeight,a=t.scrollWidth>t.clientWidth;p(this,N,e,DO),p(this,N,a,NO),e&&p(this,N,t.clientHeight/t.scrollHeight*100,HO),a&&p(this,N,t.clientWidth/t.scrollWidth*100,BO),r(this,tc).call(this,t)});n(this,tc,t=>{if(r(this,N,Xu)){let e=t.scrollHeight-t.clientHeight;p(this,N,e>0?t.scrollTop/e*(100-r(this,N,Ck)):0,VO)}if(r(this,N,Yu)){let e=t.scrollWidth-t.clientWidth;p(this,N,e>0?t.scrollLeft/e*(100-r(this,N,$k)):0,qO)}});n(this,Zu,()=>{let t=r(this,N,rs);if(!t)return;p(this,N,!0,Ek),r(this,tc).call(this,t);let e=r(this,Oo),a=t.scrollTop<r(this,Ia);p(this,N,t.scrollTop<=0,PO),p(this,Oo,t.scrollTop+t.clientHeight>=t.scrollHeight-r(oo,Qu)),a&&e&&!r(this,Oo)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&r(this,Oo)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),p(this,Ia,t.scrollTop),clearTimeout(r(this,Oa)),p(this,Oa,setTimeout(()=>{p(this,N,!1,Ek)},1e3))});n(this,ec,()=>{p(this,N,!0,kk),r(this,ci).call(this)});n(this,rc,()=>{p(this,N,!1,kk)});n(this,oc,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,N,rs);if(a)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let c=l.getBoundingClientRect(),m=(e.clientY-c.top)/c.height;a.scrollTop=m*(a.scrollHeight-a.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let c=l.getBoundingClientRect(),m=(e.clientX-c.left)/c.width;a.scrollLeft=m*(a.scrollWidth-a.clientWidth)}});n(this,sc,(t,e)=>{e.preventDefault(),e.stopPropagation();let a=r(this,N,rs);a&&(p(this,ai,t),t==="vertical"?(p(this,li,e.clientY),p(this,di,a.scrollTop)):(p(this,li,e.clientX),p(this,di,a.scrollLeft)),document.addEventListener("pointermove",r(this,ic)),document.addEventListener("pointerup",r(this,nc)))});n(this,ic,t=>{let e=r(this,N,rs);if(!(!e||!r(this,ai)))if(r(this,ai)==="vertical"){let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!a)return;let l=t.clientY-r(this,li),c=a.clientHeight,m=e.scrollHeight-e.clientHeight;e.scrollTop=r(this,di)+l/c*m}else{let a=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!a)return;let l=t.clientX-r(this,li),c=a.clientWidth,m=e.scrollWidth-e.clientWidth;e.scrollLeft=r(this,di)+l/c*m}});n(this,nc,()=>{p(this,ai,void 0),document.removeEventListener("pointermove",r(this,ic)),document.removeEventListener("pointerup",r(this,nc))})}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",r(this,ec)),this.addEventListener("pointerleave",r(this,rc))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",r(this,ec)),this.removeEventListener("pointerleave",r(this,rc)),r(this,ni)?.disconnect(),clearTimeout(r(this,Oa))}firstUpdated(){let t=r(this,N,rs);if(!t)return;p(this,ni,new ResizeObserver(()=>r(this,ci).call(this))),r(this,ni).observe(t);let e=t.querySelector("slot");if(e){let a=()=>{for(let l of e.assignedElements())r(this,ni).observe(l)};e.addEventListener("slotchange",()=>{a(),requestAnimationFrame(()=>r(this,ci).call(this))}),a()}r(this,ci).call(this)}async scrollToBottom(){await this.updateComplete;let t=r(this,N,rs);t&&(t.scrollTop=t.scrollHeight,p(this,Oo,!0),p(this,Ia,t.scrollTop))}get isAtTop(){return r(this,N,Sk)}get isAtBottom(){return r(this,Oo)}render(){return f`
5125
5125
  <div
5126
5126
  class="ScrollArea"
5127
5127
  part="root"
5128
- ?data-has-overflow-x="${r(this,N,Tu)}"
5129
- ?data-has-overflow-y="${r(this,N,_u)}"
5130
- ?data-scrolling="${r(this,N,Au)}"
5128
+ ?data-has-overflow-x="${r(this,N,Yu)}"
5129
+ ?data-has-overflow-y="${r(this,N,Xu)}"
5130
+ ?data-scrolling="${r(this,N,Ju)}"
5131
5131
  >
5132
- <div class="Viewport" part="viewport" ?data-scrolled="${!r(this,N,qw)}" @scroll="${r(this,Iu)}">
5132
+ <div class="Viewport" part="viewport" ?data-scrolled="${!r(this,N,Sk)}" @scroll="${r(this,Zu)}">
5133
5133
  <slot></slot>
5134
5134
  </div>
5135
- ${u(this,N,NI).call(this)} ${u(this,N,DI).call(this)}
5135
+ ${h(this,N,KO).call(this)} ${h(this,N,GO).call(this)}
5136
5136
  </div>
5137
- `}};Z=T(CI),vw=new WeakMap,bw=new WeakMap,xw=new WeakMap,yw=new WeakMap,N=new WeakSet,kw=new WeakMap,Cw=new WeakMap,Sw=new WeakMap,_w=new WeakMap,Rw=new WeakMap,Ow=new WeakMap,zw=new WeakMap,Nw=new WeakMap,Ru=new WeakMap,Cr=new WeakMap,ba=new WeakMap,xa=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,Js=new WeakMap,Qs=new WeakMap,Kr=function(){return this.shadowRoot?.querySelector(".Viewport")??null},zI=function(){return this.orientation==="vertical"||this.orientation==="both"},MI=function(){return this.orientation==="horizontal"||this.orientation==="both"},Zs=new WeakMap,Hd=new WeakMap,Iu=new WeakMap,Bd=new WeakMap,Fd=new WeakMap,Ud=new WeakMap,Vd=new WeakMap,qd=new WeakMap,Pd=new WeakMap,NI=function(){return!r(this,N,zI)||!r(this,N,_u)?I:m`
5137
+ `}};et=S(MO),tk=new WeakMap,ek=new WeakMap,rk=new WeakMap,ok=new WeakMap,N=new WeakSet,ik=new WeakMap,ak=new WeakMap,dk=new WeakMap,pk=new WeakMap,uk=new WeakMap,fk=new WeakMap,vk=new WeakMap,xk=new WeakMap,Qu=new WeakMap,Oo=new WeakMap,Ia=new WeakMap,Oa=new WeakMap,ni=new WeakMap,ai=new WeakMap,li=new WeakMap,di=new WeakMap,rs=function(){return this.shadowRoot?.querySelector(".Viewport")??null},jO=function(){return this.orientation==="vertical"||this.orientation==="both"},WO=function(){return this.orientation==="horizontal"||this.orientation==="both"},ci=new WeakMap,tc=new WeakMap,Zu=new WeakMap,ec=new WeakMap,rc=new WeakMap,oc=new WeakMap,sc=new WeakMap,ic=new WeakMap,nc=new WeakMap,KO=function(){return!r(this,N,jO)||!r(this,N,Xu)?I:f`
5138
5138
  <div
5139
5139
  class="Scrollbar"
5140
5140
  part="scrollbar-vertical"
5141
5141
  data-orientation="vertical"
5142
- ?data-hovering="${r(this,N,Hw)}"
5143
- ?data-scrolling="${r(this,N,Au)}"
5144
- @pointerdown="${t=>r(this,Ud).call(this,"vertical",t)}"
5142
+ ?data-hovering="${r(this,N,wk)}"
5143
+ ?data-scrolling="${r(this,N,Ju)}"
5144
+ @pointerdown="${t=>r(this,oc).call(this,"vertical",t)}"
5145
5145
  >
5146
5146
  <div
5147
5147
  class="Thumb"
5148
5148
  part="thumb-vertical"
5149
5149
  data-orientation="vertical"
5150
- style="height: ${r(this,N,Uw)}%; top: ${r(this,N,AI)}%; position: absolute;"
5151
- @pointerdown="${t=>r(this,Vd).call(this,"vertical",t)}"
5150
+ style="height: ${r(this,N,Ck)}%; top: ${r(this,N,FO)}%; position: absolute;"
5151
+ @pointerdown="${t=>r(this,sc).call(this,"vertical",t)}"
5152
5152
  ></div>
5153
5153
  </div>
5154
- `},DI=function(){return!r(this,N,MI)||!r(this,N,Tu)?I:m`
5154
+ `},GO=function(){return!r(this,N,WO)||!r(this,N,Yu)?I:f`
5155
5155
  <div
5156
5156
  class="Scrollbar"
5157
5157
  part="scrollbar-horizontal"
5158
5158
  data-orientation="horizontal"
5159
- ?data-hovering="${r(this,N,Hw)}"
5160
- ?data-scrolling="${r(this,N,Au)}"
5161
- @pointerdown="${t=>r(this,Ud).call(this,"horizontal",t)}"
5159
+ ?data-hovering="${r(this,N,wk)}"
5160
+ ?data-scrolling="${r(this,N,Ju)}"
5161
+ @pointerdown="${t=>r(this,oc).call(this,"horizontal",t)}"
5162
5162
  >
5163
5163
  <div
5164
5164
  class="Thumb"
5165
5165
  part="thumb-horizontal"
5166
5166
  data-orientation="horizontal"
5167
- style="width: ${r(this,N,Vw)}%; left: ${r(this,N,II)}%; position: absolute;"
5168
- @pointerdown="${t=>r(this,Vd).call(this,"horizontal",t)}"
5167
+ style="width: ${r(this,N,$k)}%; left: ${r(this,N,UO)}%; position: absolute;"
5168
+ @pointerdown="${t=>r(this,sc).call(this,"horizontal",t)}"
5169
5169
  ></div>
5170
5170
  </div>
5171
- `},d(Z,4,"orientation",EI,Qo,vw),d(Z,4,"fade",kI,Qo,bw),d(Z,4,"maxHeight",wI,Qo,xw),ww=d(Z,20,"#hasOverflowX",yI,N,yw),Tu=ww.get,$I=ww.set,Ew=d(Z,20,"#hasOverflowY",xI,N,kw),_u=Ew.get,SI=Ew.set,$w=d(Z,20,"#hovering",bI,N,Cw),Hw=$w.get,Bw=$w.set,Tw=d(Z,20,"#scrolling",vI,N,Sw),Au=Tw.get,Fw=Tw.set,Aw=d(Z,20,"#thumbHeightPercent",gI,N,_w),Uw=Aw.get,TI=Aw.set,Iw=d(Z,20,"#thumbWidthPercent",fI,N,Rw),Vw=Iw.get,_I=Iw.set,Lw=d(Z,20,"#thumbTopPercent",mI,N,Ow),AI=Lw.get,RI=Lw.set,Mw=d(Z,20,"#thumbLeftPercent",uI,N,zw),II=Mw.get,OI=Mw.set,Dw=d(Z,20,"#isAtTop",hI,N,Nw),qw=Dw.get,LI=Dw.set,$(Z,Qo),v(Qo,"tagName","dui-scroll-area"),v(Qo,"styles",[y,ID]),n(Qo,Ru,1);var ya=Qo;var OD=k`
5171
+ `},d(et,4,"orientation",zO,oo,tk),d(et,4,"fade",LO,oo,ek),d(et,4,"maxHeight",OO,oo,rk),sk=d(et,20,"#hasOverflowX",IO,N,ok),Yu=sk.get,NO=sk.set,nk=d(et,20,"#hasOverflowY",RO,N,ik),Xu=nk.get,DO=nk.set,lk=d(et,20,"#hovering",AO,N,ak),wk=lk.get,kk=lk.set,ck=d(et,20,"#scrolling",_O,N,dk),Ju=ck.get,Ek=ck.set,hk=d(et,20,"#thumbHeightPercent",TO,N,pk),Ck=hk.get,HO=hk.set,mk=d(et,20,"#thumbWidthPercent",SO,N,uk),$k=mk.get,BO=mk.set,gk=d(et,20,"#thumbTopPercent",$O,N,fk),FO=gk.get,VO=gk.set,bk=d(et,20,"#thumbLeftPercent",CO,N,vk),UO=bk.get,qO=bk.set,yk=d(et,20,"#isAtTop",EO,N,xk),Sk=yk.get,PO=yk.set,$(et,oo),g(oo,"tagName","dui-scroll-area"),g(oo,"styles",[y,fB]),n(oo,Qu,1);var La=oo;var gB=k`
5172
5172
  .Scrollbar {
5173
5173
  border-radius: var(--radius-sm);
5174
5174
  transition: opacity var(--duration-fast);
@@ -5198,11 +5198,11 @@ label, legend, caption, figcaption, th, td {
5198
5198
  opacity: 0.8;
5199
5199
  }
5200
5200
  }
5201
- `,wa=class extends ya{static styles=[...ya.styles,OD]};customElements.define(wa.tagName,wa);var LD=L("value-change",{bubbles:!0,composed:!0}),zD=g`
5201
+ `,za=class extends La{static styles=[...La.styles,gB]};customElements.define(za.tagName,za);var vB=O("value-change",{bubbles:!0,composed:!0}),bB=v`
5202
5202
  :host {
5203
5203
  display: block;
5204
5204
  }
5205
- `,MD=g`
5205
+ `,xB=v`
5206
5206
  .Trigger {
5207
5207
  display: flex;
5208
5208
  align-items: center;
@@ -5227,7 +5227,7 @@ label, legend, caption, figcaption, th, td {
5227
5227
  .Icon {
5228
5228
  flex-shrink: 0;
5229
5229
  }
5230
- `,ND=[g`
5230
+ `,yB=[v`
5231
5231
  .Popup {
5232
5232
  max-height: 240px;
5233
5233
  overflow-y: auto;
@@ -5266,7 +5266,7 @@ label, legend, caption, figcaption, th, td {
5266
5266
  overflow: hidden;
5267
5267
  text-overflow: ellipsis;
5268
5268
  }
5269
- `],HI,BI,FI,UI,VI,qI,PI,jI,Wd,Dt,Pw,jw,Ww,Kw,Gw,Yw,Xw,Jw,ti,Gr,et,Ou,ei,Ht,Qw,WI,KI,Lu,zu,Mu,Nu,Du,Zw,jd,tk,Hu,ce=class extends(jI=b,PI=[h({attribute:!1})],qI=[h({type:String})],VI=[h({type:String})],UI=[h({type:Boolean,reflect:!0})],FI=[h({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],BI=[h({type:String})],HI=[E()],jI){constructor(){super();n(this,et);n(this,Wd);n(this,Pw,i(Dt,8,this,[])),i(Dt,11,this);n(this,jw,i(Dt,12,this,"")),i(Dt,15,this);n(this,Ww,i(Dt,16,this,"Select...")),i(Dt,19,this);n(this,Kw,i(Dt,20,this,!1)),i(Dt,23,this);n(this,Gw,i(Dt,24,this,!0)),i(Dt,27,this);n(this,Yw,i(Dt,28,this,"")),i(Dt,31,this);n(this,Xw,i(Dt,32,this,-1)),i(Dt,35,this);n(this,Ou,`select-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,ei,`select-listbox-${crypto.randomUUID().slice(0,8)}`);n(this,Ht,new ae(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:ND,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=r(this,Ht).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{p(this,et,r(this,et,WI),Gr)},onClose:()=>{p(this,et,-1,Gr)},renderPopup:t=>m`
5269
+ `],YO,XO,JO,QO,ZO,tL,eL,rL,lc,Vt,Tk,_k,Ak,Rk,Ik,Ok,Lk,zk,pi,os,ot,tm,hi,Ut,Mk,oL,sL,em,rm,om,sm,im,Nk,ac,Dk,nm,fe=class extends(rL=b,eL=[u({attribute:!1})],tL=[u({type:String})],ZO=[u({type:String})],QO=[u({type:Boolean,reflect:!0})],JO=[u({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],XO=[u({type:String})],YO=[E()],rL){constructor(){super();n(this,ot);n(this,lc);n(this,Tk,i(Vt,8,this,[])),i(Vt,11,this);n(this,_k,i(Vt,12,this,"")),i(Vt,15,this);n(this,Ak,i(Vt,16,this,"Select...")),i(Vt,19,this);n(this,Rk,i(Vt,20,this,!1)),i(Vt,23,this);n(this,Ik,i(Vt,24,this,!0)),i(Vt,27,this);n(this,Ok,i(Vt,28,this,"")),i(Vt,31,this);n(this,Lk,i(Vt,32,this,-1)),i(Vt,35,this);n(this,tm,`select-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,hi,`select-listbox-${crypto.randomUUID().slice(0,8)}`);n(this,Ut,new he(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:yB,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=r(this,Ut).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{p(this,ot,r(this,ot,oL),os)},onClose:()=>{p(this,ot,-1,os)},renderPopup:t=>f`
5270
5270
  <div
5271
5271
  class="Popup"
5272
5272
  ?data-align-inner="${this.alignItemToTrigger&&this.value!==""}"
@@ -5275,60 +5275,60 @@ label, legend, caption, figcaption, th, td {
5275
5275
  >
5276
5276
  <div
5277
5277
  class="Listbox"
5278
- id="${r(this,ei)}"
5278
+ id="${r(this,hi)}"
5279
5279
  role="listbox"
5280
5280
 
5281
- @mousedown="${r(this,Mu)}"
5281
+ @mousedown="${r(this,om)}"
5282
5282
  >
5283
- ${ws(this.options,e=>e.value,r(this,Hu))}
5283
+ ${Os(this.options,e=>e.value,r(this,nm))}
5284
5284
  </div>
5285
5285
  </div>
5286
- `}));n(this,Lu,t=>{t.stopPropagation(),!this.disabled&&(r(this,Ht).isOpen?r(this,Ht).close():r(this,Ht).open())});n(this,zu,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),r(this,Ht).isOpen){let e=this.options[r(this,et,ti)];e&&!e.disabled&&u(this,et,Zw).call(this,e)}else r(this,Ht).open();break}case"ArrowDown":{t.preventDefault(),r(this,Ht).isOpen?p(this,et,u(this,et,jd).call(this,r(this,et,ti),1),Gr):r(this,Ht).open();break}case"ArrowUp":{t.preventDefault(),r(this,Ht).isOpen?p(this,et,u(this,et,jd).call(this,r(this,et,ti),-1),Gr):r(this,Ht).open();break}case"Home":{r(this,Ht).isOpen&&(t.preventDefault(),p(this,et,u(this,et,jd).call(this,-1,1),Gr));break}case"End":{r(this,Ht).isOpen&&(t.preventDefault(),p(this,et,u(this,et,jd).call(this,this.options.length,-1),Gr));break}case"Escape":{r(this,Ht).isOpen&&(t.preventDefault(),r(this,Ht).close(),u(this,et,tk).call(this));break}case"Tab":{r(this,Ht).isOpen&&r(this,Ht).close();break}}});n(this,Mu,t=>{t.preventDefault()});n(this,Nu,t=>{t.disabled||u(this,et,Zw).call(this,t)});n(this,Du,t=>{this.options[t]?.disabled||p(this,et,t,Gr)});n(this,Hu,(t,e)=>{let a=t.value===this.value,l=e===r(this,et,ti);return m`
5286
+ `}));n(this,em,t=>{t.stopPropagation(),!this.disabled&&(r(this,Ut).isOpen?r(this,Ut).close():r(this,Ut).open())});n(this,rm,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),r(this,Ut).isOpen){let e=this.options[r(this,ot,pi)];e&&!e.disabled&&h(this,ot,Nk).call(this,e)}else r(this,Ut).open();break}case"ArrowDown":{t.preventDefault(),r(this,Ut).isOpen?p(this,ot,h(this,ot,ac).call(this,r(this,ot,pi),1),os):r(this,Ut).open();break}case"ArrowUp":{t.preventDefault(),r(this,Ut).isOpen?p(this,ot,h(this,ot,ac).call(this,r(this,ot,pi),-1),os):r(this,Ut).open();break}case"Home":{r(this,Ut).isOpen&&(t.preventDefault(),p(this,ot,h(this,ot,ac).call(this,-1,1),os));break}case"End":{r(this,Ut).isOpen&&(t.preventDefault(),p(this,ot,h(this,ot,ac).call(this,this.options.length,-1),os));break}case"Escape":{r(this,Ut).isOpen&&(t.preventDefault(),r(this,Ut).close(),h(this,ot,Dk).call(this));break}case"Tab":{r(this,Ut).isOpen&&r(this,Ut).close();break}}});n(this,om,t=>{t.preventDefault()});n(this,sm,t=>{t.disabled||h(this,ot,Nk).call(this,t)});n(this,im,t=>{this.options[t]?.disabled||p(this,ot,t,os)});n(this,nm,(t,e)=>{let a=t.value===this.value,l=e===r(this,ot,pi);return f`
5287
5287
  <div
5288
5288
  class="Item"
5289
5289
  role="option"
5290
- id="${r(this,ei)}-option-${e}"
5290
+ id="${r(this,hi)}-option-${e}"
5291
5291
  aria-selected="${a}"
5292
5292
  ?data-selected="${a}"
5293
5293
  ?data-highlighted="${l}"
5294
5294
  ?data-disabled="${t.disabled}"
5295
- @click="${()=>r(this,Nu).call(this,t)}"
5296
- @mouseenter="${()=>r(this,Du).call(this,e)}"
5295
+ @click="${()=>r(this,sm).call(this,t)}"
5296
+ @mouseenter="${()=>r(this,im).call(this,e)}"
5297
5297
  >
5298
5298
  <span class="ItemIndicator">
5299
- ${a?m`<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="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
5299
+ ${a?f`<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="M20 6 9 17l-5-5"/></svg></dui-icon>`:I}
5300
5300
  </span>
5301
5301
  <span class="ItemText">${t.label}</span>
5302
5302
  </div>
5303
- `});p(this,Wd,this.attachInternals())}willUpdate(){r(this,Wd).setFormValue(this.value)}render(){let t=this.value!==""&&r(this,et,Qw)!=null;return m`
5303
+ `});p(this,lc,this.attachInternals())}willUpdate(){r(this,lc).setFormValue(this.value)}render(){let t=this.value!==""&&r(this,ot,Mk)!=null;return f`
5304
5304
  <div
5305
5305
  class="Trigger"
5306
5306
  part="trigger"
5307
- id="${r(this,Ou)}"
5307
+ id="${r(this,tm)}"
5308
5308
  role="combobox"
5309
5309
  tabindex="${this.disabled?-1:0}"
5310
5310
  aria-haspopup="listbox"
5311
- aria-expanded="${r(this,Ht).isOpen}"
5312
- aria-controls="${r(this,ei)}"
5313
- aria-activedescendant="${r(this,et,ti)>=0?`${r(this,ei)}-option-${r(this,et,ti)}`:I}"
5311
+ aria-expanded="${r(this,Ut).isOpen}"
5312
+ aria-controls="${r(this,hi)}"
5313
+ aria-activedescendant="${r(this,ot,pi)>=0?`${r(this,hi)}-option-${r(this,ot,pi)}`:I}"
5314
5314
  ?data-disabled="${this.disabled}"
5315
- ?data-open="${r(this,Ht).isOpen}"
5316
- @click="${r(this,Lu)}"
5317
- @keydown="${r(this,zu)}"
5315
+ ?data-open="${r(this,Ut).isOpen}"
5316
+ @click="${r(this,em)}"
5317
+ @keydown="${r(this,rm)}"
5318
5318
  >
5319
5319
  <span
5320
5320
  class="Value"
5321
5321
  part="value"
5322
5322
  ?data-placeholder="${!t}"
5323
5323
  >
5324
- ${t?r(this,et,KI):this.placeholder}
5324
+ ${t?r(this,ot,sL):this.placeholder}
5325
5325
  </span>
5326
5326
  <span class="Icon">
5327
5327
  <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="m6 9 6 6 6-6"/></svg></dui-icon>
5328
5328
  </span>
5329
5329
  </div>
5330
5330
 
5331
- `}};Dt=T(jI),Wd=new WeakMap,Pw=new WeakMap,jw=new WeakMap,Ww=new WeakMap,Kw=new WeakMap,Gw=new WeakMap,Yw=new WeakMap,Xw=new WeakMap,et=new WeakSet,Ou=new WeakMap,ei=new WeakMap,Ht=new WeakMap,Qw=function(){return this.options.find(t=>t.value===this.value)},WI=function(){return this.options.findIndex(t=>t.value===this.value)},KI=function(){return r(this,et,Qw)?.label??""},Lu=new WeakMap,zu=new WeakMap,Mu=new WeakMap,Nu=new WeakMap,Du=new WeakMap,Zw=function(t){this.value=t.value,this.dispatchEvent(LD({value:t.value,option:t})),r(this,Ht).close(),u(this,et,tk).call(this)},jd=function(t,e){let a=this.options.length,l=t+e;for(;l>=0&&l<a;){if(!this.options[l].disabled)return l;l+=e}return t},tk=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},Hu=new WeakMap,d(Dt,4,"options",PI,ce,Pw),d(Dt,4,"value",qI,ce,jw),d(Dt,4,"placeholder",VI,ce,Ww),d(Dt,4,"disabled",UI,ce,Kw),d(Dt,4,"alignItemToTrigger",FI,ce,Gw),d(Dt,4,"name",BI,ce,Yw),Jw=d(Dt,20,"#highlightedIndex",HI,et,Xw),ti=Jw.get,Gr=Jw.set,$(Dt,ce),v(ce,"tagName","dui-select"),v(ce,"formAssociated",!0),v(ce,"styles",[y,zD,MD]);var DD=k`
5331
+ `}};Vt=S(rL),lc=new WeakMap,Tk=new WeakMap,_k=new WeakMap,Ak=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,Ok=new WeakMap,Lk=new WeakMap,ot=new WeakSet,tm=new WeakMap,hi=new WeakMap,Ut=new WeakMap,Mk=function(){return this.options.find(t=>t.value===this.value)},oL=function(){return this.options.findIndex(t=>t.value===this.value)},sL=function(){return r(this,ot,Mk)?.label??""},em=new WeakMap,rm=new WeakMap,om=new WeakMap,sm=new WeakMap,im=new WeakMap,Nk=function(t){this.value=t.value,this.dispatchEvent(vB({value:t.value,option:t})),r(this,Ut).close(),h(this,ot,Dk).call(this)},ac=function(t,e){let a=this.options.length,l=t+e;for(;l>=0&&l<a;){if(!this.options[l].disabled)return l;l+=e}return t},Dk=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},nm=new WeakMap,d(Vt,4,"options",eL,fe,Tk),d(Vt,4,"value",tL,fe,_k),d(Vt,4,"placeholder",ZO,fe,Ak),d(Vt,4,"disabled",QO,fe,Rk),d(Vt,4,"alignItemToTrigger",JO,fe,Ik),d(Vt,4,"name",XO,fe,Ok),zk=d(Vt,20,"#highlightedIndex",YO,ot,Lk),pi=zk.get,os=zk.set,$(Vt,fe),g(fe,"tagName","dui-select"),g(fe,"formAssociated",!0),g(fe,"styles",[y,bB,xB]);var wB=k`
5332
5332
  .Trigger {
5333
5333
  height: var(--component-height-md);
5334
5334
  gap: var(--space-2);
@@ -5452,7 +5452,7 @@ label, legend, caption, figcaption, th, td {
5452
5452
  .ItemIndicator dui-icon {
5453
5453
  --icon-size: var(--space-3_5);
5454
5454
  }
5455
- `,ka=class extends ce{static styles=[...ce.styles,DD]};customElements.define(ka.tagName,ka);var HD=g`
5455
+ `,Ma=class extends fe{static styles=[...fe.styles,wB]};customElements.define(Ma.tagName,Ma);var kB=v`
5456
5456
  :host {
5457
5457
  display: block;
5458
5458
  }
@@ -5468,13 +5468,13 @@ label, legend, caption, figcaption, th, td {
5468
5468
  margin: 0;
5469
5469
  padding: 0;
5470
5470
  }
5471
- `,GI,YI,Bu,ek,Zo=class extends(YI=b,GI=[h({reflect:!0})],YI){constructor(){super(...arguments);n(this,ek,i(Bu,8,this,"horizontal")),i(Bu,11,this)}render(){return m`
5471
+ `,iL,nL,am,Hk,so=class extends(nL=b,iL=[u({reflect:!0})],nL){constructor(){super(...arguments);n(this,Hk,i(am,8,this,"horizontal")),i(am,11,this)}render(){return f`
5472
5472
  <div
5473
5473
  part="root"
5474
5474
  role="separator"
5475
5475
  aria-orientation="${this.orientation}"
5476
5476
  ></div>
5477
- `}};Bu=T(YI),ek=new WeakMap,d(Bu,4,"orientation",GI,Zo,ek),$(Bu,Zo),v(Zo,"tagName","dui-separator"),v(Zo,"styles",[y,HD]);var BD=k`
5477
+ `}};am=S(nL),Hk=new WeakMap,d(am,4,"orientation",iL,so,Hk),$(am,so),g(so,"tagName","dui-separator"),g(so,"styles",[y,kB]);var EB=k`
5478
5478
  :host {
5479
5479
  --separator-margin: 0;
5480
5480
  }
@@ -5497,14 +5497,14 @@ label, legend, caption, figcaption, th, td {
5497
5497
  margin-left: var(--separator-margin);
5498
5498
  margin-right: var(--separator-margin);
5499
5499
  }
5500
- `,Ea=class extends Zo{static styles=[...Zo.styles,BD]};customElements.define(Ea.tagName,Ea);var tr=Symbol("dui-sidebar");var vk=L("open-change",{bubbles:!0,composed:!0}),FD=g`
5500
+ `,Na=class extends so{static styles=[...so.styles,EB]};customElements.define(Na.tagName,Na);var io=Symbol("dui-sidebar");var tE=O("open-change",{bubbles:!0,composed:!0}),CB=v`
5501
5501
  :host {
5502
5502
  display: flex;
5503
5503
  width: 100%;
5504
5504
  height: 100%;
5505
5505
  min-height: inherit;
5506
5506
  }
5507
- `,XI,JI,QI,ZI,tO,eO,oO,rO,sO,iO,wt,ok,rk,sk,ik,nk,ak,lk,nO,mk,ut,dk,ck,fk,Fu,pk,hk,Kd,gk,Yr,oi,ri,Uu,Gd,Yd,qu,Pu,uk,Vu,ve=class extends(iO=b,sO=[h({type:Boolean})],rO=[h({type:Boolean,attribute:"default-open"})],oO=[h({reflect:!0})],eO=[h({reflect:!0})],tO=[h({reflect:!0})],ZI=[E()],QI=[E()],JI=[E()],XI=[Et({context:tr}),E()],iO){constructor(){super(...arguments);n(this,ut);n(this,ok,i(wt,8,this)),i(wt,11,this);n(this,rk,i(wt,12,this,!0)),i(wt,15,this);n(this,sk,i(wt,16,this,"left")),i(wt,19,this);n(this,ik,i(wt,20,this,"sidebar")),i(wt,23,this);n(this,nk,i(wt,24,this,"offcanvas")),i(wt,27,this);n(this,ak,i(wt,28,this,!0)),i(wt,31,this);n(this,dk,i(wt,32,this,!1)),i(wt,35,this);n(this,pk,i(wt,36,this,!1)),i(wt,39,this);n(this,Yr);n(this,oi);n(this,ri);n(this,Gd,t=>{r(this,ut,Kd)?p(this,ut,t,Fu):(this.open===void 0&&p(this,ut,t,mk),this.dispatchEvent(vk({open:t})))});n(this,Yd,()=>{r(this,ut,Kd)?p(this,ut,!r(this,ut,fk),Fu):r(this,Gd).call(this,!r(this,ut,Uu))});n(this,qu,t=>{p(this,ut,!t.matches,gk),r(this,ut,Kd)||p(this,ut,!1,Fu)});n(this,Pu,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),r(this,Yd).call(this))});n(this,uk,i(wt,40,this,u(this,ut,Vu).call(this))),i(wt,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&p(this,ut,this.defaultOpen,mk),p(this,Yr,matchMedia("(min-width: 768px)")),p(this,ut,!r(this,Yr).matches,gk),p(this,oi,r(this,qu).bind(this)),r(this,Yr).addEventListener("change",r(this,oi)),p(this,ri,r(this,Pu).bind(this)),document.addEventListener("keydown",r(this,ri)),this._ctx=u(this,ut,Vu).call(this)}disconnectedCallback(){super.disconnectedCallback(),r(this,Yr)&&r(this,oi)&&r(this,Yr).removeEventListener("change",r(this,oi)),r(this,ri)&&document.removeEventListener("keydown",r(this,ri))}willUpdate(){this._ctx=u(this,ut,Vu).call(this)}render(){return m`<slot></slot>`}};wt=T(iO),ok=new WeakMap,rk=new WeakMap,sk=new WeakMap,ik=new WeakMap,nk=new WeakMap,ak=new WeakMap,ut=new WeakSet,dk=new WeakMap,pk=new WeakMap,Yr=new WeakMap,oi=new WeakMap,ri=new WeakMap,Uu=function(){return this.open??r(this,ut,nO)},Gd=new WeakMap,Yd=new WeakMap,qu=new WeakMap,Pu=new WeakMap,uk=new WeakMap,Vu=function(){return{state:r(this,ut,Uu)?"expanded":"collapsed",open:r(this,ut,Uu),openMobile:r(this,ut,fk),isMobile:r(this,ut,Kd),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:r(this,Gd),toggleSidebar:r(this,Yd)}},d(wt,4,"open",sO,ve,ok),d(wt,4,"defaultOpen",rO,ve,rk),d(wt,4,"side",oO,ve,sk),d(wt,4,"variant",eO,ve,ik),d(wt,4,"collapsible",tO,ve,nk),lk=d(wt,20,"#internalOpen",ZI,ut,ak),nO=lk.get,mk=lk.set,ck=d(wt,20,"#openMobile",QI,ut,dk),fk=ck.get,Fu=ck.set,hk=d(wt,20,"#isMobile",JI,ut,pk),Kd=hk.get,gk=hk.set,d(wt,4,"_ctx",XI,ve,uk),$(wt,ve),v(ve,"tagName","dui-sidebar-provider"),v(ve,"styles",[y,FD]);var UD=g`
5507
+ `,aL,lL,dL,cL,pL,hL,uL,mL,fL,gL,$t,Bk,Fk,Vk,Uk,qk,Pk,jk,vL,Jk,gt,Wk,Kk,Qk,lm,Gk,Yk,dc,Zk,ss,ui,mi,dm,cc,pc,pm,hm,Xk,cm,Ee=class extends(gL=b,fL=[u({type:Boolean})],mL=[u({type:Boolean,attribute:"default-open"})],uL=[u({reflect:!0})],hL=[u({reflect:!0})],pL=[u({reflect:!0})],cL=[E()],dL=[E()],lL=[E()],aL=[vt({context:io}),E()],gL){constructor(){super(...arguments);n(this,gt);n(this,Bk,i($t,8,this)),i($t,11,this);n(this,Fk,i($t,12,this,!0)),i($t,15,this);n(this,Vk,i($t,16,this,"left")),i($t,19,this);n(this,Uk,i($t,20,this,"sidebar")),i($t,23,this);n(this,qk,i($t,24,this,"offcanvas")),i($t,27,this);n(this,Pk,i($t,28,this,!0)),i($t,31,this);n(this,Wk,i($t,32,this,!1)),i($t,35,this);n(this,Gk,i($t,36,this,!1)),i($t,39,this);n(this,ss);n(this,ui);n(this,mi);n(this,cc,t=>{r(this,gt,dc)?p(this,gt,t,lm):(this.open===void 0&&p(this,gt,t,Jk),this.dispatchEvent(tE({open:t})))});n(this,pc,()=>{r(this,gt,dc)?p(this,gt,!r(this,gt,Qk),lm):r(this,cc).call(this,!r(this,gt,dm))});n(this,pm,t=>{p(this,gt,!t.matches,Zk),r(this,gt,dc)||p(this,gt,!1,lm)});n(this,hm,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),r(this,pc).call(this))});n(this,Xk,i($t,40,this,h(this,gt,cm).call(this))),i($t,43,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&p(this,gt,this.defaultOpen,Jk),p(this,ss,matchMedia("(min-width: 768px)")),p(this,gt,!r(this,ss).matches,Zk),p(this,ui,r(this,pm).bind(this)),r(this,ss).addEventListener("change",r(this,ui)),p(this,mi,r(this,hm).bind(this)),document.addEventListener("keydown",r(this,mi)),this._ctx=h(this,gt,cm).call(this)}disconnectedCallback(){super.disconnectedCallback(),r(this,ss)&&r(this,ui)&&r(this,ss).removeEventListener("change",r(this,ui)),r(this,mi)&&document.removeEventListener("keydown",r(this,mi))}willUpdate(){this._ctx=h(this,gt,cm).call(this)}render(){return f`<slot></slot>`}};$t=S(gL),Bk=new WeakMap,Fk=new WeakMap,Vk=new WeakMap,Uk=new WeakMap,qk=new WeakMap,Pk=new WeakMap,gt=new WeakSet,Wk=new WeakMap,Gk=new WeakMap,ss=new WeakMap,ui=new WeakMap,mi=new WeakMap,dm=function(){return this.open??r(this,gt,vL)},cc=new WeakMap,pc=new WeakMap,pm=new WeakMap,hm=new WeakMap,Xk=new WeakMap,cm=function(){return{state:r(this,gt,dm)?"expanded":"collapsed",open:r(this,gt,dm),openMobile:r(this,gt,Qk),isMobile:r(this,gt,dc),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:r(this,cc),toggleSidebar:r(this,pc)}},d($t,4,"open",fL,Ee,Bk),d($t,4,"defaultOpen",mL,Ee,Fk),d($t,4,"side",uL,Ee,Vk),d($t,4,"variant",hL,Ee,Uk),d($t,4,"collapsible",pL,Ee,qk),jk=d($t,20,"#internalOpen",cL,gt,Pk),vL=jk.get,Jk=jk.set,Kk=d($t,20,"#openMobile",dL,gt,Wk),Qk=Kk.get,lm=Kk.set,Yk=d($t,20,"#isMobile",lL,gt,Gk),dc=Yk.get,Zk=Yk.set,d($t,4,"_ctx",aL,Ee,Xk),$($t,Ee),g(Ee,"tagName","dui-sidebar-provider"),g(Ee,"styles",[y,CB]);var $B=v`
5508
5508
  :host {
5509
5509
  display: block;
5510
5510
  flex-shrink: 0;
@@ -5589,13 +5589,13 @@ label, legend, caption, figcaption, th, td {
5589
5589
  .MobilePanel[data-ending-style] {
5590
5590
  transform: translateX(var(--mobile-end-x));
5591
5591
  }
5592
- `,aO,lO,dO,cO,er,bk,xk,ju,Ck,ft,yk,wk,$k,Sk,kk,Ek,Wu,Tk,si,pO,hO,_k,Ku,Gu,$r=class extends(cO=b,dO=[E()],lO=[E()],aO=[E()],cO){constructor(){super(...arguments);n(this,ft);n(this,bk,i(er,8,this,!1)),i(er,11,this);n(this,yk,i(er,12,this,!1)),i(er,15,this);n(this,kk,i(er,16,this,!1)),i(er,19,this);n(this,si,new W(this,{context:tr,subscribe:!0}));n(this,Ku,()=>{r(this,si).value?.setOpen(!1)});n(this,Gu,t=>{t.key==="Escape"&&(t.preventDefault(),r(this,si).value?.setOpen(!1))})}willUpdate(){let t=r(this,si).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&&!r(this,ft,ju)?u(this,ft,pO).call(this):!t.openMobile&&r(this,ft,ju)&&!r(this,ft,Wu)&&u(this,ft,hO).call(this)))}render(){let t=r(this,si).value;if(!t)return m``;let a=t.side==="left"?"-100%":"100%";return t.isMobile?r(this,ft,ju)?m`
5592
+ `,bL,xL,yL,wL,no,eE,rE,um,aE,xt,oE,sE,lE,dE,iE,nE,mm,cE,fi,kL,EL,pE,fm,gm,Lo=class extends(wL=b,yL=[E()],xL=[E()],bL=[E()],wL){constructor(){super(...arguments);n(this,xt);n(this,eE,i(no,8,this,!1)),i(no,11,this);n(this,oE,i(no,12,this,!1)),i(no,15,this);n(this,iE,i(no,16,this,!1)),i(no,19,this);n(this,fi,new K(this,{context:io,subscribe:!0}));n(this,fm,()=>{r(this,fi).value?.setOpen(!1)});n(this,gm,t=>{t.key==="Escape"&&(t.preventDefault(),r(this,fi).value?.setOpen(!1))})}willUpdate(){let t=r(this,fi).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&&!r(this,xt,um)?h(this,xt,kL).call(this):!t.openMobile&&r(this,xt,um)&&!r(this,xt,mm)&&h(this,xt,EL).call(this)))}render(){let t=r(this,fi).value;if(!t)return f``;let a=t.side==="left"?"-100%":"100%";return t.isMobile?r(this,xt,um)?f`
5593
5593
  <div
5594
5594
  class="Backdrop"
5595
5595
  part="backdrop"
5596
- ?data-starting-style=${r(this,ft,$k)}
5597
- ?data-ending-style=${r(this,ft,Wu)}
5598
- @click=${r(this,Ku)}
5596
+ ?data-starting-style=${r(this,xt,lE)}
5597
+ ?data-ending-style=${r(this,xt,mm)}
5598
+ @click=${r(this,fm)}
5599
5599
  ></div>
5600
5600
  <div
5601
5601
  class="MobilePanel"
@@ -5603,29 +5603,29 @@ label, legend, caption, figcaption, th, td {
5603
5603
  role="dialog"
5604
5604
  tabindex="-1"
5605
5605
  style="--mobile-start-x: ${a}; --mobile-end-x: ${a}"
5606
- ?data-starting-style=${r(this,ft,$k)}
5607
- ?data-ending-style=${r(this,ft,Wu)}
5608
- @keydown=${r(this,Gu)}
5606
+ ?data-starting-style=${r(this,xt,lE)}
5607
+ ?data-ending-style=${r(this,xt,mm)}
5608
+ @keydown=${r(this,gm)}
5609
5609
  >
5610
5610
  <slot></slot>
5611
5611
  </div>
5612
- `:m``:t.collapsible==="none"?m`
5612
+ `:f``:t.collapsible==="none"?f`
5613
5613
  <div class="DesktopOuter" part="desktop-outer">
5614
5614
  <div class="DesktopInner" part="desktop-inner">
5615
5615
  <slot></slot>
5616
5616
  </div>
5617
5617
  </div>
5618
- `:m`
5618
+ `:f`
5619
5619
  <div class="DesktopOuter" part="desktop-outer">
5620
5620
  <div class="DesktopInner" part="desktop-inner">
5621
5621
  <slot></slot>
5622
5622
  </div>
5623
5623
  </div>
5624
- `}};er=T(cO),bk=new WeakMap,ft=new WeakSet,yk=new WeakMap,kk=new WeakMap,si=new WeakMap,pO=async function(){p(this,ft,!0,Ck),p(this,ft,!0,Sk),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,ft,!1,Sk)},hO=function(){p(this,ft,!0,Tk);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){u(this,ft,_k).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),u(this,ft,_k).call(this))},l=()=>{a()};t.addEventListener("transitionend",l);let c=setTimeout(a,250)},_k=function(){p(this,ft,!1,Tk),p(this,ft,!1,Ck)},Ku=new WeakMap,Gu=new WeakMap,xk=d(er,20,"#mounted",dO,ft,bk),ju=xk.get,Ck=xk.set,wk=d(er,20,"#startingStyle",lO,ft,yk),$k=wk.get,Sk=wk.set,Ek=d(er,20,"#endingStyle",aO,ft,kk),Wu=Ek.get,Tk=Ek.set,$(er,$r),v($r,"tagName","dui-sidebar"),v($r,"styles",[y,UD]);var VD=g`
5624
+ `}};no=S(wL),eE=new WeakMap,xt=new WeakSet,oE=new WeakMap,iE=new WeakMap,fi=new WeakMap,kL=async function(){p(this,xt,!0,aE),p(this,xt,!0,dE),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),p(this,xt,!1,dE)},EL=function(){p(this,xt,!0,cE);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){h(this,xt,pE).call(this);return}let e=!1,a=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(c),h(this,xt,pE).call(this))},l=()=>{a()};t.addEventListener("transitionend",l);let c=setTimeout(a,250)},pE=function(){p(this,xt,!1,cE),p(this,xt,!1,aE)},fm=new WeakMap,gm=new WeakMap,rE=d(no,20,"#mounted",yL,xt,eE),um=rE.get,aE=rE.set,sE=d(no,20,"#startingStyle",xL,xt,oE),lE=sE.get,dE=sE.set,nE=d(no,20,"#endingStyle",bL,xt,iE),mm=nE.get,cE=nE.set,$(no,Lo),g(Lo,"tagName","dui-sidebar"),g(Lo,"styles",[y,$B]);var SB=v`
5625
5625
  :host {
5626
5626
  display: inline-block;
5627
5627
  }
5628
- `,qD=m`<svg
5628
+ `,TB=f`<svg
5629
5629
  viewBox="0 0 24 24"
5630
5630
  fill="none"
5631
5631
  stroke="currentColor"
@@ -5635,13 +5635,13 @@ label, legend, caption, figcaption, th, td {
5635
5635
  >
5636
5636
  <rect width="18" height="18" x="3" y="3" rx="2" />
5637
5637
  <path d="M9 3v18" />
5638
- </svg>`,Ca=class extends b{static tagName="dui-sidebar-trigger";static styles=[y,VD];#t=new W(this,{context:tr,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return m`
5638
+ </svg>`,Da=class extends b{static tagName="dui-sidebar-trigger";static styles=[y,SB];#t=new K(this,{context:io,subscribe:!0});#e=()=>{this.#t.value?.toggleSidebar()};render(){return f`
5639
5639
  <dui-button appearance="ghost" size="sm" @click=${this.#e}>
5640
5640
  <slot>
5641
- <dui-icon>${qD}</dui-icon>
5641
+ <dui-icon>${TB}</dui-icon>
5642
5642
  </slot>
5643
5643
  </dui-button>
5644
- `}};var PD=g`
5644
+ `}};var _B=v`
5645
5645
  :host {
5646
5646
  display: flex;
5647
5647
  flex-direction: column;
@@ -5649,31 +5649,31 @@ label, legend, caption, figcaption, th, td {
5649
5649
  min-height: 0;
5650
5650
  overflow: hidden;
5651
5651
  }
5652
- `,$a=class extends b{static tagName="dui-sidebar-content";static styles=[y,PD];render(){return m`
5652
+ `,Ha=class extends b{static tagName="dui-sidebar-content";static styles=[y,_B];render(){return f`
5653
5653
  <dui-scroll-area>
5654
5654
  <slot></slot>
5655
5655
  </dui-scroll-area>
5656
- `}};var jD=g`
5656
+ `}};var AB=v`
5657
5657
  :host {
5658
5658
  display: flex;
5659
5659
  flex-direction: column;
5660
5660
  }
5661
- `,Sa=class extends b{static tagName="dui-sidebar-header";static styles=[y,jD];render(){return m`<slot></slot>`}};var WD=g`
5661
+ `,Ba=class extends b{static tagName="dui-sidebar-header";static styles=[y,AB];render(){return f`<slot></slot>`}};var RB=v`
5662
5662
  :host {
5663
5663
  display: flex;
5664
5664
  flex-direction: column;
5665
5665
  }
5666
- `,Ta=class extends b{static tagName="dui-sidebar-footer";static styles=[y,WD];render(){return m`<slot></slot>`}};var KD=g`
5666
+ `,Fa=class extends b{static tagName="dui-sidebar-footer";static styles=[y,RB];render(){return f`<slot></slot>`}};var IB=v`
5667
5667
  :host {
5668
5668
  display: flex;
5669
5669
  flex-direction: column;
5670
5670
  position: relative;
5671
5671
  overflow: hidden;
5672
5672
  }
5673
- `,_a=class extends b{static tagName="dui-sidebar-group";static styles=[y,KD];render(){return m`
5673
+ `,Va=class extends b{static tagName="dui-sidebar-group";static styles=[y,IB];render(){return f`
5674
5674
  <slot name="label"></slot>
5675
5675
  <slot></slot>
5676
- `}};var GD=g`
5676
+ `}};var OB=v`
5677
5677
  :host {
5678
5678
  display: flex;
5679
5679
  align-items: center;
@@ -5685,7 +5685,7 @@ label, legend, caption, figcaption, th, td {
5685
5685
  :host([data-icon-collapsed]) {
5686
5686
  opacity: 0;
5687
5687
  }
5688
- `,Aa=class extends b{static tagName="dui-sidebar-group-label";static styles=[y,GD];#t=new W(this,{context:tr,subscribe:!0});get#e(){let o=this.#t.value;return o?.collapsible==="icon"&&o?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return m`<slot></slot>`}};var YD=g`
5688
+ `,Ua=class extends b{static tagName="dui-sidebar-group-label";static styles=[y,OB];#t=new K(this,{context:io,subscribe:!0});get#e(){let o=this.#t.value;return o?.collapsible==="icon"&&o?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var LB=v`
5689
5689
  .Menu {
5690
5690
  display: flex;
5691
5691
  flex-direction: column;
@@ -5693,15 +5693,15 @@ label, legend, caption, figcaption, th, td {
5693
5693
  margin: 0;
5694
5694
  padding: 0;
5695
5695
  }
5696
- `,Ra=class extends b{static tagName="dui-sidebar-menu";static styles=[y,YD];render(){return m`
5696
+ `,qa=class extends b{static tagName="dui-sidebar-menu";static styles=[y,LB];render(){return f`
5697
5697
  <ul class="Menu" role="list">
5698
5698
  <slot></slot>
5699
5699
  </ul>
5700
- `}};var XD=g`
5700
+ `}};var zB=v`
5701
5701
  :host {
5702
5702
  display: list-item;
5703
5703
  }
5704
- `,Ia=class extends b{static tagName="dui-sidebar-menu-item";static styles=[y,XD];render(){return m`<slot></slot>`}};var JD=g`
5704
+ `,Pa=class extends b{static tagName="dui-sidebar-menu-item";static styles=[y,zB];render(){return f`<slot></slot>`}};var MB=v`
5705
5705
  :host {
5706
5706
  display: block;
5707
5707
  }
@@ -5759,16 +5759,16 @@ label, legend, caption, figcaption, th, td {
5759
5759
  :host([disabled]) .Button {
5760
5760
  pointer-events: none;
5761
5761
  }
5762
- `,uO,mO,fO,gO,vO,Ke,Ak,Rk,Ik,Ok,Yu,lo,Lk,Xu,bO,xO,zk,Ge=class extends(vO=b,gO=[h({type:Boolean,reflect:!0})],fO=[h({type:Boolean,reflect:!0})],mO=[h()],uO=[h()],vO){constructor(){super(...arguments);n(this,lo);n(this,Ak,i(Ke,8,this,!1)),i(Ke,11,this);n(this,Rk,i(Ke,12,this,!1)),i(Ke,15,this);n(this,Ik,i(Ke,16,this,"")),i(Ke,19,this);n(this,Ok,i(Ke,20,this)),i(Ke,23,this);n(this,Yu,new W(this,{context:tr,subscribe:!0}));n(this,Xu,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 r(this,lo,Lk)&&this.tooltip?m`
5762
+ `,CL,$L,SL,TL,_L,Ze,hE,uE,mE,fE,vm,mr,gE,bm,AL,RL,vE,tr=class extends(_L=b,TL=[u({type:Boolean,reflect:!0})],SL=[u({type:Boolean,reflect:!0})],$L=[u()],CL=[u()],_L){constructor(){super(...arguments);n(this,mr);n(this,hE,i(Ze,8,this,!1)),i(Ze,11,this);n(this,uE,i(Ze,12,this,!1)),i(Ze,15,this);n(this,mE,i(Ze,16,this,"")),i(Ze,19,this);n(this,fE,i(Ze,20,this)),i(Ze,23,this);n(this,vm,new K(this,{context:io,subscribe:!0}));n(this,bm,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 r(this,mr,gE)&&this.tooltip?f`
5763
5763
  <dui-tooltip>
5764
5764
  <dui-tooltip-trigger>
5765
- ${u(this,lo,zk).call(this)}
5765
+ ${h(this,mr,vE).call(this)}
5766
5766
  </dui-tooltip-trigger>
5767
5767
  <dui-tooltip-popup side="right">
5768
5768
  ${this.tooltip}
5769
5769
  </dui-tooltip-popup>
5770
5770
  </dui-tooltip>
5771
- `:u(this,lo,zk).call(this)}};Ke=T(vO),Ak=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,Ok=new WeakMap,Yu=new WeakMap,lo=new WeakSet,Lk=function(){let t=r(this,Yu).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},Xu=new WeakMap,bO=function(){return m`
5771
+ `:h(this,mr,vE).call(this)}};Ze=S(_L),hE=new WeakMap,uE=new WeakMap,mE=new WeakMap,fE=new WeakMap,vm=new WeakMap,mr=new WeakSet,gE=function(){let t=r(this,vm).value;return t?.collapsible==="icon"&&t?.state==="collapsed"},bm=new WeakMap,AL=function(){return f`
5772
5772
  <button
5773
5773
  class="Button"
5774
5774
  ?disabled=${this.disabled}
@@ -5778,27 +5778,27 @@ label, legend, caption, figcaption, th, td {
5778
5778
  <span class="Label"><slot></slot></span>
5779
5779
  <span class="Suffix"><slot name="suffix"></slot></span>
5780
5780
  </button>
5781
- `},xO=function(){return m`
5781
+ `},RL=function(){return f`
5782
5782
  <a
5783
5783
  class="Button"
5784
5784
  href=${this.href??I}
5785
5785
  aria-disabled=${this.disabled||I}
5786
5786
  ?data-active=${this.active}
5787
- @click=${r(this,Xu)}
5787
+ @click=${r(this,bm)}
5788
5788
  >
5789
5789
  <slot name="icon"></slot>
5790
5790
  <span class="Label"><slot></slot></span>
5791
5791
  <span class="Suffix"><slot name="suffix"></slot></span>
5792
5792
  </a>
5793
- `},zk=function(){let t=r(this,lo,Lk);return m`
5793
+ `},vE=function(){let t=r(this,mr,gE);return f`
5794
5794
  <div
5795
5795
  class="Row"
5796
5796
  ?data-icon-collapsed=${t}
5797
5797
  ?data-active=${this.active}
5798
5798
  >
5799
- ${this.href!==void 0?u(this,lo,xO).call(this):u(this,lo,bO).call(this)}
5799
+ ${this.href!==void 0?h(this,mr,RL).call(this):h(this,mr,AL).call(this)}
5800
5800
  </div>
5801
- `},d(Ke,4,"active",gO,Ge,Ak),d(Ke,4,"disabled",fO,Ge,Rk),d(Ke,4,"tooltip",mO,Ge,Ik),d(Ke,4,"href",uO,Ge,Ok),$(Ke,Ge),v(Ge,"tagName","dui-sidebar-menu-button"),v(Ge,"styles",[y,JD]);var QD=g`
5801
+ `},d(Ze,4,"active",TL,tr,hE),d(Ze,4,"disabled",SL,tr,uE),d(Ze,4,"tooltip",$L,tr,mE),d(Ze,4,"href",CL,tr,fE),$(Ze,tr),g(tr,"tagName","dui-sidebar-menu-button"),g(tr,"styles",[y,MB]);var NB=v`
5802
5802
  :host {
5803
5803
  display: block;
5804
5804
  }
@@ -5806,7 +5806,7 @@ label, legend, caption, figcaption, th, td {
5806
5806
  .Separator {
5807
5807
  /* Structural only — height and color from theme */
5808
5808
  }
5809
- `,Oa=class extends b{static tagName="dui-sidebar-separator";static styles=[y,QD];render(){return m`<div class="Separator" role="separator"></div>`}};var ZD=g`
5809
+ `,ja=class extends b{static tagName="dui-sidebar-separator";static styles=[y,NB];render(){return f`<div class="Separator" role="separator"></div>`}};var DB=v`
5810
5810
  :host {
5811
5811
  display: flex;
5812
5812
  flex-direction: column;
@@ -5816,7 +5816,7 @@ label, legend, caption, figcaption, th, td {
5816
5816
  overflow: hidden;
5817
5817
  container-type: size;
5818
5818
  }
5819
- `,La=class extends b{static tagName="dui-sidebar-inset";static styles=[y,ZD];render(){return m`<slot></slot>`}};var tH=k`
5819
+ `,Wa=class extends b{static tagName="dui-sidebar-inset";static styles=[y,DB];render(){return f`<slot></slot>`}};var HB=k`
5820
5820
  /* ── Host: sticky full-viewport height ── */
5821
5821
  /* Percentage heights on internal elements need a definite parent.
5822
5822
  Using height: 100dvh + sticky keeps the sidebar pinned while
@@ -5914,11 +5914,11 @@ label, legend, caption, figcaption, th, td {
5914
5914
  box-shadow: var(--shadow-lg);
5915
5915
  transition: transform var(--duration-normal) var(--ease-out-3);
5916
5916
  }
5917
- `,za=class extends $r{static styles=[...$r.styles,tH]};customElements.define(za.tagName,za);var eH=k``,Ma=class extends $a{static styles=[...$a.styles,eH]};customElements.define(Ma.tagName,Ma);var oH=k``,Na=class extends Ta{static styles=[...Ta.styles,oH]};customElements.define(Na.tagName,Na);var rH=k`
5917
+ `,Ka=class extends Lo{static styles=[...Lo.styles,HB]};customElements.define(Ka.tagName,Ka);var BB=k``,Ga=class extends Ha{static styles=[...Ha.styles,BB]};customElements.define(Ga.tagName,Ga);var FB=k``,Ya=class extends Fa{static styles=[...Fa.styles,FB]};customElements.define(Ya.tagName,Ya);var VB=k`
5918
5918
  :host {
5919
5919
  padding: var(--sidebar-group-padding-y) 0;
5920
5920
  }
5921
- `,Da=class extends _a{static styles=[..._a.styles,rH]};customElements.define(Da.tagName,Da);var sH=k`
5921
+ `,Xa=class extends Va{static styles=[...Va.styles,VB]};customElements.define(Xa.tagName,Xa);var UB=k`
5922
5922
  :host {
5923
5923
  margin-left: var(--sidebar-group-label-inset);
5924
5924
  height: var(--component-height-sm);
@@ -5934,15 +5934,15 @@ label, legend, caption, figcaption, th, td {
5934
5934
  transition-duration: var(--duration-normal);
5935
5935
  transition-timing-function: var(--ease-out-3);
5936
5936
  }
5937
- `,Ha=class extends Aa{static styles=[...Aa.styles,sH]};customElements.define(Ha.tagName,Ha);var iH=k`
5937
+ `,Ja=class extends Ua{static styles=[...Ua.styles,UB]};customElements.define(Ja.tagName,Ja);var qB=k`
5938
5938
  :host {
5939
5939
  margin-bottom: var(--sidebar-header-content-gap);
5940
5940
  }
5941
- `,Ba=class extends Sa{static styles=[...Sa.styles,iH]};customElements.define(Ba.tagName,Ba);var nH=k``,Fa=class extends La{static styles=[...La.styles,nH]};customElements.define(Fa.tagName,Fa);var aH=k`
5941
+ `,Qa=class extends Ba{static styles=[...Ba.styles,qB]};customElements.define(Qa.tagName,Qa);var PB=k``,Za=class extends Wa{static styles=[...Wa.styles,PB]};customElements.define(Za.tagName,Za);var jB=k`
5942
5942
  .Menu {
5943
5943
  gap: var(--space-px);
5944
5944
  }
5945
- `,Ua=class extends Ra{static styles=[...Ra.styles,aH]};customElements.define(Ua.tagName,Ua);var lH=k`
5945
+ `,tl=class extends qa{static styles=[...qa.styles,jB]};customElements.define(tl.tagName,tl);var WB=k`
5946
5946
  :host {
5947
5947
  --smb-height: var(--component-height-md);
5948
5948
  --smb-padding-x: var(--sidebar-button-inset);
@@ -6014,7 +6014,7 @@ label, legend, caption, figcaption, th, td {
6014
6014
  font-weight: var(--font-weight-medium);
6015
6015
  --icon-color: var(--sidebar-fg);
6016
6016
  }
6017
- `,Va=class extends Ge{static styles=[...Ge.styles,lH]};customElements.define(Va.tagName,Va);var dH=k``,qa=class extends Ia{static styles=[...Ia.styles,dH]};customElements.define(qa.tagName,qa);var cH=k`
6017
+ `,el=class extends tr{static styles=[...tr.styles,WB]};customElements.define(el.tagName,el);var KB=k``,rl=class extends Pa{static styles=[...Pa.styles,KB]};customElements.define(rl.tagName,rl);var GB=k`
6018
6018
  :host {
6019
6019
  --sidebar-width: var(--space-64);
6020
6020
  --sidebar-width-mobile: var(--space-72);
@@ -6032,19 +6032,19 @@ label, legend, caption, figcaption, th, td {
6032
6032
  --sidebar-muted-fg: var(--text-2);
6033
6033
  --sidebar-ring: var(--accent);
6034
6034
  }
6035
- `,Pa=class extends ve{static styles=[...ve.styles,cH]};customElements.define(Pa.tagName,Pa);var pH=k`
6035
+ `,ol=class extends Ee{static styles=[...Ee.styles,GB]};customElements.define(ol.tagName,ol);var YB=k`
6036
6036
  .Separator {
6037
6037
  height: var(--border-width-thin);
6038
6038
  margin: var(--space-2) var(--space-2);
6039
6039
  background: var(--sidebar-separator);
6040
6040
  }
6041
- `,ja=class extends Oa{static styles=[...Oa.styles,pH]};customElements.define(ja.tagName,ja);var hH=k`
6041
+ `,sl=class extends ja{static styles=[...ja.styles,YB]};customElements.define(sl.tagName,sl);var XB=k`
6042
6042
  dui-button {
6043
6043
  --button-width: var(--button-height);
6044
6044
  --button-padding-x: 0;
6045
6045
  --button-gap: 0;
6046
6046
  }
6047
- `,Wa=class extends Ca{static styles=[...Ca.styles,hH]};customElements.define(Wa.tagName,Wa);var Ga=L("value-change",{bubbles:!0,composed:!0}),Xd=L("value-committed",{bubbles:!0,composed:!0}),uH=g`
6047
+ `,il=class extends Da{static styles=[...Da.styles,XB]};customElements.define(il.tagName,il);var al=O("value-change",{bubbles:!0,composed:!0}),hc=O("value-committed",{bubbles:!0,composed:!0}),JB=v`
6048
6048
  :host {
6049
6049
  display: block;
6050
6050
  }
@@ -6135,27 +6135,27 @@ label, legend, caption, figcaption, th, td {
6135
6135
  white-space: nowrap;
6136
6136
  border: 0;
6137
6137
  }
6138
- `,yO,wO,kO,EO,CO,$O,SO,TO,_O,AO,RO,Jd,ct,Mk,Nk,Dk,Hk,Bk,Fk,Uk,Vk,qk,Pk,jk,Ju,Wk,Tt,IO,OO,LO,Ka,Kk,Qu,Ya,Xa,Zu,tm,em,Yt=class extends(RO=b,AO=[h({type:Number})],_O=[h({type:Number})],TO=[h({type:Number})],SO=[h({type:Number})],$O=[h({type:Boolean,reflect:!0})],CO=[h()],EO=[h({reflect:!0})],kO=[h({reflect:!0})],wO=[h({type:Number})],yO=[E()],RO){constructor(){super();n(this,Tt);n(this,Jd);n(this,Mk,i(ct,8,this,0)),i(ct,11,this);n(this,Nk,i(ct,12,this,0)),i(ct,15,this);n(this,Dk,i(ct,16,this,100)),i(ct,19,this);n(this,Hk,i(ct,20,this,1)),i(ct,23,this);n(this,Bk,i(ct,24,this,!1)),i(ct,27,this);n(this,Fk,i(ct,28,this,"")),i(ct,31,this);n(this,Uk,i(ct,32,this,"")),i(ct,35,this);n(this,Vk,i(ct,36,this,"")),i(ct,39,this);n(this,qk,i(ct,40,this)),i(ct,43,this);n(this,Pk,i(ct,44,this,!1)),i(ct,47,this);n(this,Qu,t=>{if(this.disabled)return;t.preventDefault();let e=u(this,Tt,Kk).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(Ga({value:e}))),document.addEventListener("pointermove",r(this,Ya)),document.addEventListener("pointerup",r(this,Xa))});n(this,Ya,t=>{r(this,Tt,Ju)||p(this,Tt,!0,Wk);let e=u(this,Tt,Kk).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(Ga({value:e})))});n(this,Xa,()=>{let t=r(this,Tt,Ju);p(this,Tt,!1,Wk),document.removeEventListener("pointermove",r(this,Ya)),document.removeEventListener("pointerup",r(this,Xa)),this.dispatchEvent(Xd({value:this.value}))});n(this,Zu,t=>{if(this.disabled)return;let e=this.value,a=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=u(this,Tt,Ka).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=u(this,Tt,Ka).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=u(this,Tt,Ka).call(this,this.value+a);break;case"PageDown":t.preventDefault(),e=u(this,Tt,Ka).call(this,this.value-a);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(Ga({value:e})),this.dispatchEvent(Xd({value:e})))});n(this,tm,t=>{let e=t.target,a=parseFloat(e.value);!isNaN(a)&&a!==this.value&&(this.value=a,this.dispatchEvent(Ga({value:a})))});n(this,em,()=>{this.dispatchEvent(Xd({value:this.value}))});p(this,Jd,this.attachInternals())}willUpdate(){r(this,Jd).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",r(this,Ya)),document.removeEventListener("pointerup",r(this,Xa))}render(){return m`
6138
+ `,IL,OL,LL,zL,ML,NL,DL,HL,BL,FL,VL,uc,ht,bE,xE,yE,wE,kE,EE,CE,$E,SE,TE,_E,xm,AE,Rt,UL,qL,PL,nl,RE,ym,ll,dl,wm,km,Em,Qt=class extends(VL=b,FL=[u({type:Number})],BL=[u({type:Number})],HL=[u({type:Number})],DL=[u({type:Number})],NL=[u({type:Boolean,reflect:!0})],ML=[u()],zL=[u({reflect:!0})],LL=[u({reflect:!0})],OL=[u({type:Number})],IL=[E()],VL){constructor(){super();n(this,Rt);n(this,uc);n(this,bE,i(ht,8,this,0)),i(ht,11,this);n(this,xE,i(ht,12,this,0)),i(ht,15,this);n(this,yE,i(ht,16,this,100)),i(ht,19,this);n(this,wE,i(ht,20,this,1)),i(ht,23,this);n(this,kE,i(ht,24,this,!1)),i(ht,27,this);n(this,EE,i(ht,28,this,"")),i(ht,31,this);n(this,CE,i(ht,32,this,"")),i(ht,35,this);n(this,$E,i(ht,36,this,"")),i(ht,39,this);n(this,SE,i(ht,40,this)),i(ht,43,this);n(this,TE,i(ht,44,this,!1)),i(ht,47,this);n(this,ym,t=>{if(this.disabled)return;t.preventDefault();let e=h(this,Rt,RE).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(al({value:e}))),document.addEventListener("pointermove",r(this,ll)),document.addEventListener("pointerup",r(this,dl))});n(this,ll,t=>{r(this,Rt,xm)||p(this,Rt,!0,AE);let e=h(this,Rt,RE).call(this,t.clientX);e!==this.value&&(this.value=e,this.dispatchEvent(al({value:e})))});n(this,dl,()=>{let t=r(this,Rt,xm);p(this,Rt,!1,AE),document.removeEventListener("pointermove",r(this,ll)),document.removeEventListener("pointerup",r(this,dl)),this.dispatchEvent(hc({value:this.value}))});n(this,wm,t=>{if(this.disabled)return;let e=this.value,a=this.step*10;switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value+this.step);break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value-this.step);break;case"PageUp":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value+a);break;case"PageDown":t.preventDefault(),e=h(this,Rt,nl).call(this,this.value-a);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(al({value:e})),this.dispatchEvent(hc({value:e})))});n(this,km,t=>{let e=t.target,a=parseFloat(e.value);!isNaN(a)&&a!==this.value&&(this.value=a,this.dispatchEvent(al({value:a})))});n(this,Em,()=>{this.dispatchEvent(hc({value:this.value}))});p(this,uc,this.attachInternals())}willUpdate(){r(this,uc).setFormValue(String(this.value))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointermove",r(this,ll)),document.removeEventListener("pointerup",r(this,dl))}render(){return f`
6139
6139
  <div
6140
6140
  part="root"
6141
6141
  role="group"
6142
6142
  ?data-disabled=${this.disabled}
6143
- ?data-dragging=${r(this,Tt,Ju)}
6144
- style="--slider-progress: ${r(this,Tt,IO)}%"
6145
- @pointerdown=${r(this,Qu)}
6143
+ ?data-dragging=${r(this,Rt,xm)}
6144
+ style="--slider-progress: ${r(this,Rt,UL)}%"
6145
+ @pointerdown=${r(this,ym)}
6146
6146
  >
6147
6147
  <span part="label">${this.label}</span>
6148
6148
 
6149
6149
  <div class="slider-row">
6150
6150
  <div part="track">
6151
6151
  <div part="indicator"></div>
6152
- <span part="readout">${r(this,Tt,LO)}</span>
6152
+ <span part="readout">${r(this,Rt,PL)}</span>
6153
6153
  <span part="unit">${this.unit}</span>
6154
6154
  </div>
6155
6155
  <div
6156
6156
  part="thumb"
6157
6157
  tabindex=${this.disabled?-1:0}
6158
- @keydown=${r(this,Zu)}
6158
+ @keydown=${r(this,wm)}
6159
6159
  ></div>
6160
6160
  </div>
6161
6161
 
@@ -6172,11 +6172,11 @@ label, legend, caption, figcaption, th, td {
6172
6172
  aria-valuemin=${this.min}
6173
6173
  aria-valuemax=${this.max}
6174
6174
  aria-label=${this.label||"Slider"}
6175
- @input=${r(this,tm)}
6176
- @change=${r(this,em)}
6175
+ @input=${r(this,km)}
6176
+ @change=${r(this,Em)}
6177
6177
  />
6178
6178
  </div>
6179
- `}};ct=T(RO),Jd=new WeakMap,Mk=new WeakMap,Nk=new WeakMap,Dk=new WeakMap,Hk=new WeakMap,Bk=new WeakMap,Fk=new WeakMap,Uk=new WeakMap,Vk=new WeakMap,qk=new WeakMap,Pk=new WeakMap,Tt=new WeakSet,IO=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},OO=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},LO=function(){let t=this.precision??r(this,Tt,OO);return this.value.toFixed(t)},Ka=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},Kk=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let a=e.getBoundingClientRect(),l=(t-a.left)/a.width,c=this.min+l*(this.max-this.min);return u(this,Tt,Ka).call(this,c)},Qu=new WeakMap,Ya=new WeakMap,Xa=new WeakMap,Zu=new WeakMap,tm=new WeakMap,em=new WeakMap,d(ct,4,"value",AO,Yt,Mk),d(ct,4,"min",_O,Yt,Nk),d(ct,4,"max",TO,Yt,Dk),d(ct,4,"step",SO,Yt,Hk),d(ct,4,"disabled",$O,Yt,Bk),d(ct,4,"name",CO,Yt,Fk),d(ct,4,"label",EO,Yt,Uk),d(ct,4,"unit",kO,Yt,Vk),d(ct,4,"precision",wO,Yt,qk),jk=d(ct,20,"#dragging",yO,Tt,Pk),Ju=jk.get,Wk=jk.set,$(ct,Yt),v(Yt,"tagName","dui-slider"),v(Yt,"formAssociated",!0),v(Yt,"styles",[y,uH]);var mH=k`
6179
+ `}};ht=S(VL),uc=new WeakMap,bE=new WeakMap,xE=new WeakMap,yE=new WeakMap,wE=new WeakMap,kE=new WeakMap,EE=new WeakMap,CE=new WeakMap,$E=new WeakMap,SE=new WeakMap,TE=new WeakMap,Rt=new WeakSet,UL=function(){let t=this.max-this.min;return t===0?0:(this.value-this.min)/t*100},qL=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},PL=function(){let t=this.precision??r(this,Rt,qL);return this.value.toFixed(t)},nl=function(t){let e=Math.round(t/this.step)*this.step;return Math.max(this.min,Math.min(this.max,e))},RE=function(t){let e=this.shadowRoot?.querySelector("[part='track']");if(!e)return this.value;let a=e.getBoundingClientRect(),l=(t-a.left)/a.width,c=this.min+l*(this.max-this.min);return h(this,Rt,nl).call(this,c)},ym=new WeakMap,ll=new WeakMap,dl=new WeakMap,wm=new WeakMap,km=new WeakMap,Em=new WeakMap,d(ht,4,"value",FL,Qt,bE),d(ht,4,"min",BL,Qt,xE),d(ht,4,"max",HL,Qt,yE),d(ht,4,"step",DL,Qt,wE),d(ht,4,"disabled",NL,Qt,kE),d(ht,4,"name",ML,Qt,EE),d(ht,4,"label",zL,Qt,CE),d(ht,4,"unit",LL,Qt,$E),d(ht,4,"precision",OL,Qt,SE),_E=d(ht,20,"#dragging",IL,Rt,TE),xm=_E.get,AE=_E.set,$(ht,Qt),g(Qt,"tagName","dui-slider"),g(Qt,"formAssociated",!0),g(Qt,"styles",[y,JB]);var QB=k`
6180
6180
  :host {
6181
6181
  --slider-track-height: var(--space-1_5);
6182
6182
  --slider-thumb-size: var(--space-4_5);
@@ -6297,7 +6297,7 @@ label, legend, caption, figcaption, th, td {
6297
6297
  :host([variant="field"][disabled]) {
6298
6298
  opacity: 0.5;
6299
6299
  }
6300
- `,Ja=class extends Yt{static styles=[...Yt.styles,mH]};customElements.define(Ja.tagName,Ja);var fH=wc`
6300
+ `,cl=class extends Qt{static styles=[...Qt.styles,QB]};customElements.define(cl.tagName,cl);var ZB=qc`
6301
6301
  <svg
6302
6302
  part="svg"
6303
6303
  viewBox="0 0 44 44"
@@ -6326,7 +6326,7 @@ label, legend, caption, figcaption, th, td {
6326
6326
  />
6327
6327
  </circle>
6328
6328
  </svg>
6329
- `,gH=wc`
6329
+ `,t4=qc`
6330
6330
  <svg
6331
6331
  part="svg"
6332
6332
  data-rotate
@@ -6349,7 +6349,7 @@ label, legend, caption, figcaption, th, td {
6349
6349
  <path d="M2 12h4" />
6350
6350
  <path d="m4.9 4.9 2.9 2.9" />
6351
6351
  </svg>
6352
- `,vH=wc`
6352
+ `,e4=qc`
6353
6353
  <svg
6354
6354
  part="svg"
6355
6355
  data-rotate
@@ -6365,7 +6365,7 @@ label, legend, caption, figcaption, th, td {
6365
6365
  >
6366
6366
  <path d="M21 12a9 9 0 1 1-6.219-8.56" />
6367
6367
  </svg>
6368
- `,bH=g`
6368
+ `,r4=v`
6369
6369
  :host {
6370
6370
  display: block;
6371
6371
  }
@@ -6384,7 +6384,7 @@ label, legend, caption, figcaption, th, td {
6384
6384
  from { transform: rotate(0deg); }
6385
6385
  to { transform: rotate(360deg); }
6386
6386
  }
6387
- `,zO,MO,om,Gk,rm,NO,or=class extends(MO=b,zO=[h({reflect:!0})],MO){constructor(){super(...arguments);n(this,rm);n(this,Gk,i(om,8,this,"")),i(om,11,this)}render(){return m`${u(this,rm,NO).call(this)}`}};om=T(MO),Gk=new WeakMap,rm=new WeakSet,NO=function(){switch(this.variant){case"lucide-loader":return gH;case"lucide-loader-circle":return vH;default:return fH}},d(om,4,"variant",zO,or,Gk),$(om,or),v(or,"tagName","dui-spinner"),v(or,"styles",[y,bH]);var xH=k`
6387
+ `,jL,WL,Cm,IE,$m,KL,ao=class extends(WL=b,jL=[u({reflect:!0})],WL){constructor(){super(...arguments);n(this,$m);n(this,IE,i(Cm,8,this,"")),i(Cm,11,this)}render(){return f`${h(this,$m,KL).call(this)}`}};Cm=S(WL),IE=new WeakMap,$m=new WeakSet,KL=function(){switch(this.variant){case"lucide-loader":return t4;case"lucide-loader-circle":return e4;default:return ZB}},d(Cm,4,"variant",jL,ao,IE),$(Cm,ao),g(ao,"tagName","dui-spinner"),g(ao,"styles",[y,r4]);var o4=k`
6388
6388
  :host {
6389
6389
  --spinner-size: var(--component-height-xxs);
6390
6390
  --spinner-color: currentColor;
@@ -6406,11 +6406,11 @@ label, legend, caption, figcaption, th, td {
6406
6406
  animation-duration: 3s;
6407
6407
  }
6408
6408
  }
6409
- `,Qa=class extends or{static styles=[...or.styles,xH]};customElements.define(Qa.tagName,Qa);var sm=L("dui-action",{bubbles:!0,composed:!0}),yH=g`
6409
+ `,pl=class extends ao{static styles=[...ao.styles,o4]};customElements.define(pl.tagName,pl);var Sm=O("dui-action",{bubbles:!0,composed:!0}),s4=v`
6410
6410
  :host {
6411
6411
  display: inline-block;
6412
6412
  }
6413
- `,wH=g`
6413
+ `,i4=v`
6414
6414
  .Root {
6415
6415
  display: inline-flex;
6416
6416
  align-items: stretch;
@@ -6450,7 +6450,7 @@ label, legend, caption, figcaption, th, td {
6450
6450
  justify-content: center;
6451
6451
  flex-shrink: 0;
6452
6452
  }
6453
- `,kH=[g`
6453
+ `,n4=[v`
6454
6454
  .Popup {
6455
6455
  max-height: 240px;
6456
6456
  overflow-y: auto;
@@ -6465,7 +6465,7 @@ label, legend, caption, figcaption, th, td {
6465
6465
  .Popup[data-ending-style] {
6466
6466
  opacity: 0;
6467
6467
  }
6468
- `],DO,HO,BO,FO,UO,VO,qO,Xt,Yk,Xk,Jk,Qk,Zk,tE,eE,ii,Xr,Bt,Qd,_t,oE,im,nm,am,lm,dm,cm,PO,Oe=class extends(qO=b,VO=[h({reflect:!0})],UO=[h({reflect:!0})],FO=[h({reflect:!0})],BO=[h({attribute:"popup-min-width"})],HO=[h({type:Boolean,reflect:!0})],DO=[E()],qO){constructor(){super(...arguments);n(this,Bt);n(this,Yk,i(Xt,8,this,"")),i(Xt,11,this);n(this,Xk,i(Xt,12,this,"")),i(Xt,15,this);n(this,Jk,i(Xt,16,this,"")),i(Xt,19,this);n(this,Qk,i(Xt,20,this,"var(--space-28)")),i(Xt,23,this);n(this,Zk,i(Xt,24,this,!1)),i(Xt,27,this);n(this,tE,i(Xt,28,this,-1)),i(Xt,31,this);n(this,Qd,`split-menu-${crypto.randomUUID().slice(0,8)}`);n(this,_t,new ae(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:kH,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{p(this,Bt,-1,Xr)},onClose:()=>{p(this,Bt,-1,Xr)},renderPopup:t=>m`
6468
+ `],GL,YL,XL,JL,QL,ZL,tz,Zt,OE,LE,zE,ME,NE,DE,HE,gi,is,qt,mc,It,BE,Tm,_m,Am,Rm,Im,Om,ez,Be=class extends(tz=b,ZL=[u({reflect:!0})],QL=[u({reflect:!0})],JL=[u({reflect:!0})],XL=[u({attribute:"popup-min-width"})],YL=[u({type:Boolean,reflect:!0})],GL=[E()],tz){constructor(){super(...arguments);n(this,qt);n(this,OE,i(Zt,8,this,"")),i(Zt,11,this);n(this,LE,i(Zt,12,this,"")),i(Zt,15,this);n(this,zE,i(Zt,16,this,"")),i(Zt,19,this);n(this,ME,i(Zt,20,this,"var(--space-28)")),i(Zt,23,this);n(this,NE,i(Zt,24,this,!1)),i(Zt,27,this);n(this,DE,i(Zt,28,this,-1)),i(Zt,31,this);n(this,mc,`split-menu-${crypto.randomUUID().slice(0,8)}`);n(this,It,new he(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:n4,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{p(this,qt,-1,is)},onClose:()=>{p(this,qt,-1,is)},renderPopup:t=>f`
6469
6469
  <div
6470
6470
  class="Popup"
6471
6471
  style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
@@ -6474,21 +6474,21 @@ label, legend, caption, figcaption, th, td {
6474
6474
  >
6475
6475
  <div
6476
6476
  class="Menu"
6477
- id="${r(this,Qd)}"
6477
+ id="${r(this,mc)}"
6478
6478
  role="menu"
6479
- @click="${r(this,dm)}"
6480
- @mousemove="${r(this,cm)}"
6479
+ @click="${r(this,Im)}"
6480
+ @mousemove="${r(this,Om)}"
6481
6481
  ></div>
6482
6482
  </div>
6483
- `}));n(this,im,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(sm({}))});n(this,nm,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(sm({})))});n(this,am,t=>{t.stopPropagation(),!this.disabled&&(r(this,_t).isOpen?r(this,_t).close():r(this,_t).open())});n(this,lm,t=>{if(this.disabled)return;let e=r(this,Bt,oE);switch(t.key){case"Enter":case" ":{if(r(this,_t).isOpen&&r(this,Bt,ii)>=0){t.preventDefault();let a=e[r(this,Bt,ii)];a&&!a.disabled&&(a.click(),r(this,_t).close())}else r(this,_t).isOpen||(t.preventDefault(),r(this,_t).open());break}case"ArrowDown":{if(t.preventDefault(),!r(this,_t).isOpen)r(this,_t).open();else{let a=r(this,Bt,ii)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&p(this,Bt,a,Xr)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,_t).isOpen)r(this,_t).open();else{let a=r(this,Bt,ii)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&p(this,Bt,a,Xr)}break}case"Home":{if(r(this,_t).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&p(this,Bt,a,Xr)}break}case"End":{if(r(this,_t).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){p(this,Bt,a,Xr);break}}break}case"Escape":{r(this,_t).isOpen&&(t.preventDefault(),r(this,_t).close(),u(this,Bt,PO).call(this));break}case"Tab":{r(this,_t).isOpen&&r(this,_t).close();break}}});n(this,dm,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(_e.tagName));e&&!e.disabled&&r(this,_t).close()});n(this,cm,()=>{r(this,Bt,ii)>=0&&p(this,Bt,-1,Xr)})}updated(){let t=r(this,Bt,oE);for(let e=0;e<t.length;e++)e===r(this,Bt,ii)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return m`
6483
+ `}));n(this,Tm,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Sm({}))});n(this,_m,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Sm({})))});n(this,Am,t=>{t.stopPropagation(),!this.disabled&&(r(this,It).isOpen?r(this,It).close():r(this,It).open())});n(this,Rm,t=>{if(this.disabled)return;let e=r(this,qt,BE);switch(t.key){case"Enter":case" ":{if(r(this,It).isOpen&&r(this,qt,gi)>=0){t.preventDefault();let a=e[r(this,qt,gi)];a&&!a.disabled&&(a.click(),r(this,It).close())}else r(this,It).isOpen||(t.preventDefault(),r(this,It).open());break}case"ArrowDown":{if(t.preventDefault(),!r(this,It).isOpen)r(this,It).open();else{let a=r(this,qt,gi)+1;for(;a<e.length&&e[a]?.disabled;)a++;a<e.length&&p(this,qt,a,is)}break}case"ArrowUp":{if(t.preventDefault(),!r(this,It).isOpen)r(this,It).open();else{let a=r(this,qt,gi)-1;for(;a>=0&&e[a]?.disabled;)a--;a>=0&&p(this,qt,a,is)}break}case"Home":{if(r(this,It).isOpen){t.preventDefault();let a=e.findIndex(l=>!l.disabled);a>=0&&p(this,qt,a,is)}break}case"End":{if(r(this,It).isOpen){t.preventDefault();for(let a=e.length-1;a>=0;a--)if(!e[a]?.disabled){p(this,qt,a,is);break}}break}case"Escape":{r(this,It).isOpen&&(t.preventDefault(),r(this,It).close(),h(this,qt,ez).call(this));break}case"Tab":{r(this,It).isOpen&&r(this,It).close();break}}});n(this,Im,t=>{let e=t.composedPath().find(a=>a instanceof HTMLElement&&a.matches(Me.tagName));e&&!e.disabled&&r(this,It).close()});n(this,Om,()=>{r(this,qt,gi)>=0&&p(this,qt,-1,is)})}updated(){let t=r(this,qt,BE);for(let e=0;e<t.length;e++)e===r(this,qt,gi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
6484
6484
  <div class="Root" part="root">
6485
6485
  <button
6486
6486
  class="Action"
6487
6487
  part="action"
6488
6488
  type="button"
6489
6489
  ?disabled="${this.disabled}"
6490
- @click="${r(this,im)}"
6491
- @keydown="${r(this,nm)}"
6490
+ @click="${r(this,Tm)}"
6491
+ @keydown="${r(this,_m)}"
6492
6492
  >
6493
6493
  <slot></slot>
6494
6494
  </button>
@@ -6501,11 +6501,11 @@ label, legend, caption, figcaption, th, td {
6501
6501
  type="button"
6502
6502
  ?disabled="${this.disabled}"
6503
6503
  aria-haspopup="menu"
6504
- aria-expanded="${r(this,_t).isOpen}"
6505
- aria-controls="${r(this,Qd)}"
6506
- ?data-open="${r(this,_t).isOpen||I}"
6507
- @click="${r(this,am)}"
6508
- @keydown="${r(this,lm)}"
6504
+ aria-expanded="${r(this,It).isOpen}"
6505
+ aria-controls="${r(this,mc)}"
6506
+ ?data-open="${r(this,It).isOpen||I}"
6507
+ @click="${r(this,Am)}"
6508
+ @keydown="${r(this,Rm)}"
6509
6509
  >
6510
6510
  <slot name="icon">
6511
6511
  <dui-icon>
@@ -6516,7 +6516,7 @@ label, legend, caption, figcaption, th, td {
6516
6516
  </slot>
6517
6517
  </button>
6518
6518
  </div>
6519
- `}};Xt=T(qO),Yk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,Bt=new WeakSet,Qd=new WeakMap,_t=new WeakMap,oE=function(){return[...(r(this,_t).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},im=new WeakMap,nm=new WeakMap,am=new WeakMap,lm=new WeakMap,dm=new WeakMap,cm=new WeakMap,PO=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},d(Xt,4,"variant",VO,Oe,Yk),d(Xt,4,"appearance",UO,Oe,Xk),d(Xt,4,"size",FO,Oe,Jk),d(Xt,4,"popupMinWidth",BO,Oe,Qk),d(Xt,4,"disabled",HO,Oe,Zk),eE=d(Xt,20,"#highlightedIndex",DO,Bt,tE),ii=eE.get,Xr=eE.set,$(Xt,Oe),v(Oe,"tagName","dui-split-button"),v(Oe,"styles",[y,yH,wH]);var EH=k`
6519
+ `}};Zt=S(tz),OE=new WeakMap,LE=new WeakMap,zE=new WeakMap,ME=new WeakMap,NE=new WeakMap,DE=new WeakMap,qt=new WeakSet,mc=new WeakMap,It=new WeakMap,BE=function(){return[...(r(this,It).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Tm=new WeakMap,_m=new WeakMap,Am=new WeakMap,Rm=new WeakMap,Im=new WeakMap,Om=new WeakMap,ez=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},d(Zt,4,"variant",ZL,Be,OE),d(Zt,4,"appearance",QL,Be,LE),d(Zt,4,"size",JL,Be,zE),d(Zt,4,"popupMinWidth",XL,Be,ME),d(Zt,4,"disabled",YL,Be,NE),HE=d(Zt,20,"#highlightedIndex",GL,qt,DE),gi=HE.get,is=HE.set,$(Zt,Be),g(Be,"tagName","dui-split-button"),g(Be,"styles",[y,s4,i4]);var a4=k`
6520
6520
  /* =================================================================
6521
6521
  * Reuses the button's two-axis variant system:
6522
6522
  * variant → semantic intent (neutral, primary, danger)
@@ -6827,7 +6827,7 @@ label, legend, caption, figcaption, th, td {
6827
6827
  .Menu {
6828
6828
  padding: var(--space-1);
6829
6829
  }
6830
- `,Za=class extends Oe{static styles=[...Oe.styles,EH]};customElements.define(Za.tagName,Za);var kE=L("value-change",{bubbles:!0,composed:!0}),Zd=L("value-committed",{bubbles:!0,composed:!0}),CH=g`
6830
+ `,hl=class extends Be{static styles=[...Be.styles,a4]};customElements.define(hl.tagName,hl);var iC=O("value-change",{bubbles:!0,composed:!0}),fc=O("value-committed",{bubbles:!0,composed:!0}),l4=v`
6831
6831
  :host {
6832
6832
  display: block;
6833
6833
  }
@@ -6880,7 +6880,7 @@ label, legend, caption, figcaption, th, td {
6880
6880
  width: 0;
6881
6881
  height: 0;
6882
6882
  }
6883
- `,jO,WO,KO,GO,YO,XO,JO,QO,ZO,tL,eL,oL,rL,tt,rE,sE,iE,nE,aE,lE,dE,cE,pE,hE,uE,mE,sL,vE,j,fE,gE,bE,xE,rr,iL,nL,tl,yE,el,tc,ec,wE,pm,hm,um,mm,fm,qt=class extends(rL=b,oL=[h({type:Number})],eL=[h({type:Number,attribute:"default-value"})],tL=[h({type:Number})],ZO=[h({type:Number})],QO=[h({type:Number})],JO=[h({type:Number,attribute:"large-step"})],XO=[h({type:Boolean,reflect:!0})],YO=[h({type:Boolean,reflect:!0,attribute:"read-only"})],GO=[h({type:Boolean})],KO=[h()],WO=[E()],jO=[E()],rL){constructor(){super(...arguments);n(this,j);n(this,rE,i(tt,8,this)),i(tt,11,this);n(this,sE,i(tt,12,this)),i(tt,15,this);n(this,iE,i(tt,16,this)),i(tt,19,this);n(this,nE,i(tt,20,this)),i(tt,23,this);n(this,aE,i(tt,24,this,1)),i(tt,27,this);n(this,lE,i(tt,28,this,10)),i(tt,31,this);n(this,dE,i(tt,32,this,!1)),i(tt,35,this);n(this,cE,i(tt,36,this,!1)),i(tt,39,this);n(this,pE,i(tt,40,this,!1)),i(tt,43,this);n(this,hE,i(tt,44,this)),i(tt,47,this);n(this,uE,i(tt,48,this)),i(tt,51,this);n(this,fE,i(tt,52,this,"")),i(tt,55,this);n(this,tc,t=>{if(this.disabled||this.readOnly)return;let e=r(this,j,rr)??this.min??0;u(this,j,el).call(this,e+t)});n(this,ec,t=>{if(this.disabled||this.readOnly)return;let e=r(this,j,rr)??this.max??0;u(this,j,el).call(this,e-t)});n(this,pm,t=>{p(this,j,t.target.value,xE)});n(this,hm,()=>{u(this,j,wE).call(this)});n(this,um,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),r(this,tc).call(this,t.shiftKey?this.largeStep:this.step),u(this,j,tl).call(this);break;case"ArrowDown":t.preventDefault(),r(this,ec).call(this,t.shiftKey?this.largeStep:this.step),u(this,j,tl).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),u(this,j,el).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),u(this,j,el).call(this,this.max));break;case"Enter":u(this,j,wE).call(this);break}});n(this,mm,()=>{r(this,ec).call(this,this.step);let t=r(this,j,rr);t!==void 0&&this.dispatchEvent(Zd({value:t}))});n(this,fm,()=>{r(this,tc).call(this,this.step);let t=r(this,j,rr);t!==void 0&&this.dispatchEvent(Zd({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,j,u(this,j,yE).call(this,this.defaultValue),vE),u(this,j,tl).call(this)}willUpdate(){u(this,j,tl).call(this)}render(){let t=r(this,j,rr);return m`
6883
+ `,rz,oz,sz,iz,nz,az,lz,dz,cz,pz,hz,uz,mz,rt,FE,VE,UE,qE,PE,jE,WE,KE,GE,YE,XE,JE,fz,tC,W,QE,ZE,eC,rC,lo,gz,vz,ul,oC,ml,gc,vc,sC,Lm,zm,Mm,Nm,Dm,Wt=class extends(mz=b,uz=[u({type:Number})],hz=[u({type:Number,attribute:"default-value"})],pz=[u({type:Number})],cz=[u({type:Number})],dz=[u({type:Number})],lz=[u({type:Number,attribute:"large-step"})],az=[u({type:Boolean,reflect:!0})],nz=[u({type:Boolean,reflect:!0,attribute:"read-only"})],iz=[u({type:Boolean})],sz=[u()],oz=[E()],rz=[E()],mz){constructor(){super(...arguments);n(this,W);n(this,FE,i(rt,8,this)),i(rt,11,this);n(this,VE,i(rt,12,this)),i(rt,15,this);n(this,UE,i(rt,16,this)),i(rt,19,this);n(this,qE,i(rt,20,this)),i(rt,23,this);n(this,PE,i(rt,24,this,1)),i(rt,27,this);n(this,jE,i(rt,28,this,10)),i(rt,31,this);n(this,WE,i(rt,32,this,!1)),i(rt,35,this);n(this,KE,i(rt,36,this,!1)),i(rt,39,this);n(this,GE,i(rt,40,this,!1)),i(rt,43,this);n(this,YE,i(rt,44,this)),i(rt,47,this);n(this,XE,i(rt,48,this)),i(rt,51,this);n(this,QE,i(rt,52,this,"")),i(rt,55,this);n(this,gc,t=>{if(this.disabled||this.readOnly)return;let e=r(this,W,lo)??this.min??0;h(this,W,ml).call(this,e+t)});n(this,vc,t=>{if(this.disabled||this.readOnly)return;let e=r(this,W,lo)??this.max??0;h(this,W,ml).call(this,e-t)});n(this,Lm,t=>{p(this,W,t.target.value,rC)});n(this,zm,()=>{h(this,W,sC).call(this)});n(this,Mm,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),r(this,gc).call(this,t.shiftKey?this.largeStep:this.step),h(this,W,ul).call(this);break;case"ArrowDown":t.preventDefault(),r(this,vc).call(this,t.shiftKey?this.largeStep:this.step),h(this,W,ul).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),h(this,W,ml).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),h(this,W,ml).call(this,this.max));break;case"Enter":h(this,W,sC).call(this);break}});n(this,Nm,()=>{r(this,vc).call(this,this.step);let t=r(this,W,lo);t!==void 0&&this.dispatchEvent(fc({value:t}))});n(this,Dm,()=>{r(this,gc).call(this,this.step);let t=r(this,W,lo);t!==void 0&&this.dispatchEvent(fc({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,W,h(this,W,oC).call(this,this.defaultValue),tC),h(this,W,ul).call(this)}willUpdate(){h(this,W,ul).call(this)}render(){let t=r(this,W,lo);return f`
6884
6884
  <div
6885
6885
  part="root"
6886
6886
  ?data-disabled="${this.disabled}"
@@ -6890,8 +6890,8 @@ label, legend, caption, figcaption, th, td {
6890
6890
  type="button"
6891
6891
  tabindex="-1"
6892
6892
  aria-label="Decrease"
6893
- ?disabled="${this.disabled||this.readOnly||!r(this,j,iL)}"
6894
- @click="${r(this,mm)}"
6893
+ ?disabled="${this.disabled||this.readOnly||!r(this,W,gz)}"
6894
+ @click="${r(this,Nm)}"
6895
6895
  >
6896
6896
  <slot name="decrement">&minus;</slot>
6897
6897
  </button>
@@ -6899,31 +6899,31 @@ label, legend, caption, figcaption, th, td {
6899
6899
  part="input"
6900
6900
  type="text"
6901
6901
  inputmode="decimal"
6902
- .value="${Io(r(this,j,bE))}"
6902
+ .value="${Nr(r(this,W,eC))}"
6903
6903
  ?disabled="${this.disabled}"
6904
6904
  ?readonly="${this.readOnly}"
6905
6905
  ?required="${this.required}"
6906
- @input="${r(this,pm)}"
6907
- @keydown="${r(this,um)}"
6908
- @blur="${r(this,hm)}"
6906
+ @input="${r(this,Lm)}"
6907
+ @keydown="${r(this,Mm)}"
6908
+ @blur="${r(this,zm)}"
6909
6909
  />
6910
6910
  <button
6911
6911
  part="increment"
6912
6912
  type="button"
6913
6913
  tabindex="-1"
6914
6914
  aria-label="Increase"
6915
- ?disabled="${this.disabled||this.readOnly||!r(this,j,nL)}"
6916
- @click="${r(this,fm)}"
6915
+ ?disabled="${this.disabled||this.readOnly||!r(this,W,vz)}"
6916
+ @click="${r(this,Dm)}"
6917
6917
  >
6918
6918
  <slot name="increment">+</slot>
6919
6919
  </button>
6920
- ${this.name?m`<input
6920
+ ${this.name?f`<input
6921
6921
  type="hidden"
6922
6922
  name="${this.name}"
6923
6923
  .value="${String(t??"")}"
6924
6924
  />`:I}
6925
6925
  </div>
6926
- `}};tt=T(rL),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,j=new WeakSet,fE=new WeakMap,rr=function(){return this.value??r(this,j,sL)},iL=function(){let t=r(this,j,rr);return t===void 0?!0:this.min===void 0||t>this.min},nL=function(){let t=r(this,j,rr);return t===void 0?!0:this.max===void 0||t<this.max},tl=function(){let t=r(this,j,rr);p(this,j,t!==void 0?String(t):"",xE)},yE=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},el=function(t){let e=u(this,j,yE).call(this,t);this.value===void 0&&p(this,j,e,vE),this.dispatchEvent(kE({value:e}))},tc=new WeakMap,ec=new WeakMap,wE=function(){let t=parseFloat(r(this,j,bE));Number.isNaN(t)?u(this,j,tl).call(this):u(this,j,el).call(this,t);let e=r(this,j,rr);e!==void 0&&this.dispatchEvent(Zd({value:e}))},pm=new WeakMap,hm=new WeakMap,um=new WeakMap,mm=new WeakMap,fm=new WeakMap,d(tt,4,"value",oL,qt,rE),d(tt,4,"defaultValue",eL,qt,sE),d(tt,4,"min",tL,qt,iE),d(tt,4,"max",ZO,qt,nE),d(tt,4,"step",QO,qt,aE),d(tt,4,"largeStep",JO,qt,lE),d(tt,4,"disabled",XO,qt,dE),d(tt,4,"readOnly",YO,qt,cE),d(tt,4,"required",GO,qt,pE),d(tt,4,"name",KO,qt,hE),mE=d(tt,20,"#internalValue",WO,j,uE),sL=mE.get,vE=mE.set,gE=d(tt,20,"#inputText",jO,j,fE),bE=gE.get,xE=gE.set,$(tt,qt),v(qt,"tagName","dui-stepper"),v(qt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),v(qt,"styles",[y,CH]);var $H=k`
6926
+ `}};rt=S(mz),FE=new WeakMap,VE=new WeakMap,UE=new WeakMap,qE=new WeakMap,PE=new WeakMap,jE=new WeakMap,WE=new WeakMap,KE=new WeakMap,GE=new WeakMap,YE=new WeakMap,XE=new WeakMap,W=new WeakSet,QE=new WeakMap,lo=function(){return this.value??r(this,W,fz)},gz=function(){let t=r(this,W,lo);return t===void 0?!0:this.min===void 0||t>this.min},vz=function(){let t=r(this,W,lo);return t===void 0?!0:this.max===void 0||t<this.max},ul=function(){let t=r(this,W,lo);p(this,W,t!==void 0?String(t):"",rC)},oC=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ml=function(t){let e=h(this,W,oC).call(this,t);this.value===void 0&&p(this,W,e,tC),this.dispatchEvent(iC({value:e}))},gc=new WeakMap,vc=new WeakMap,sC=function(){let t=parseFloat(r(this,W,eC));Number.isNaN(t)?h(this,W,ul).call(this):h(this,W,ml).call(this,t);let e=r(this,W,lo);e!==void 0&&this.dispatchEvent(fc({value:e}))},Lm=new WeakMap,zm=new WeakMap,Mm=new WeakMap,Nm=new WeakMap,Dm=new WeakMap,d(rt,4,"value",uz,Wt,FE),d(rt,4,"defaultValue",hz,Wt,VE),d(rt,4,"min",pz,Wt,UE),d(rt,4,"max",cz,Wt,qE),d(rt,4,"step",dz,Wt,PE),d(rt,4,"largeStep",lz,Wt,jE),d(rt,4,"disabled",az,Wt,WE),d(rt,4,"readOnly",nz,Wt,KE),d(rt,4,"required",iz,Wt,GE),d(rt,4,"name",sz,Wt,YE),JE=d(rt,20,"#internalValue",oz,W,XE),fz=JE.get,tC=JE.set,ZE=d(rt,20,"#inputText",rz,W,QE),eC=ZE.get,rC=ZE.set,$(rt,Wt),g(Wt,"tagName","dui-stepper"),g(Wt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Wt,"styles",[y,l4]);var d4=k`
6927
6927
  [part="root"] {
6928
6928
  border: var(--border-width-thin) solid var(--border);
6929
6929
  border-radius: var(--radius-md);
@@ -6990,7 +6990,7 @@ label, legend, caption, figcaption, th, td {
6990
6990
  [part="increment"]:disabled {
6991
6991
  opacity: 0.4;
6992
6992
  }
6993
- `,ol=class extends qt{static styles=[...qt.styles,$H]};customElements.define(ol.tagName,ol);var ME=L("checked-change",{bubbles:!0,composed:!0}),SH=g`
6993
+ `,fl=class extends Wt{static styles=[...Wt.styles,d4]};customElements.define(fl.tagName,fl);var bC=O("checked-change",{bubbles:!0,composed:!0}),c4=v`
6994
6994
  :host {
6995
6995
  display: inline-flex;
6996
6996
  align-items: start;
@@ -7024,7 +7024,7 @@ label, legend, caption, figcaption, th, td {
7024
7024
  transform: translateX(var(--switch-checked-offset, 0));
7025
7025
  }
7026
7026
 
7027
- `,aL,lL,dL,cL,pL,hL,uL,mL,fL,gL,oc,kt,EE,CE,$E,SE,TE,_E,AE,RE,IE,OE,vL,LE,pe,gm,zE,bL,rc,sc,vm,ee=class extends(gL=b,fL=[h({type:Boolean,reflect:!0})],mL=[h({type:Boolean,attribute:"default-checked"})],uL=[h({type:Boolean,reflect:!0})],hL=[h({type:Boolean,reflect:!0,attribute:"read-only"})],pL=[h({type:Boolean,reflect:!0})],cL=[h()],dL=[h()],lL=[h({attribute:"unchecked-value"})],aL=[E()],gL){constructor(){super();n(this,pe);n(this,oc);n(this,EE,i(kt,8,this)),i(kt,11,this);n(this,CE,i(kt,12,this,!1)),i(kt,15,this);n(this,$E,i(kt,16,this,!1)),i(kt,19,this);n(this,SE,i(kt,20,this,!1)),i(kt,23,this);n(this,TE,i(kt,24,this,!1)),i(kt,27,this);n(this,_E,i(kt,28,this)),i(kt,31,this);n(this,AE,i(kt,32,this,"on")),i(kt,35,this);n(this,RE,i(kt,36,this,"")),i(kt,39,this);n(this,IE,i(kt,40,this,!1)),i(kt,43,this);n(this,rc,t=>{r(this,sc).call(this)});n(this,sc,()=>{if(r(this,pe,zE)||this.readOnly)return;let t=!r(this,pe,gm);this.checked===void 0&&p(this,pe,t,LE),this.dispatchEvent(ME({checked:t}))});n(this,vm,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),r(this,sc).call(this))});p(this,oc,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,pe,!0,LE),this.addEventListener("click",r(this,rc))}willUpdate(){u(this,pe,bL).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,rc))}render(){let t=r(this,pe,gm),e=r(this,pe,zE);return m`
7027
+ `,bz,xz,yz,wz,kz,Ez,Cz,$z,Sz,Tz,bc,St,nC,aC,lC,dC,cC,pC,hC,uC,mC,fC,_z,gC,ge,Hm,vC,Az,xc,yc,Bm,ne=class extends(Tz=b,Sz=[u({type:Boolean,reflect:!0})],$z=[u({type:Boolean,attribute:"default-checked"})],Cz=[u({type:Boolean,reflect:!0})],Ez=[u({type:Boolean,reflect:!0,attribute:"read-only"})],kz=[u({type:Boolean,reflect:!0})],wz=[u()],yz=[u()],xz=[u({attribute:"unchecked-value"})],bz=[E()],Tz){constructor(){super();n(this,ge);n(this,bc);n(this,nC,i(St,8,this)),i(St,11,this);n(this,aC,i(St,12,this,!1)),i(St,15,this);n(this,lC,i(St,16,this,!1)),i(St,19,this);n(this,dC,i(St,20,this,!1)),i(St,23,this);n(this,cC,i(St,24,this,!1)),i(St,27,this);n(this,pC,i(St,28,this)),i(St,31,this);n(this,hC,i(St,32,this,"on")),i(St,35,this);n(this,uC,i(St,36,this,"")),i(St,39,this);n(this,mC,i(St,40,this,!1)),i(St,43,this);n(this,xc,t=>{r(this,yc).call(this)});n(this,yc,()=>{if(r(this,ge,vC)||this.readOnly)return;let t=!r(this,ge,Hm);this.checked===void 0&&p(this,ge,t,gC),this.dispatchEvent(bC({checked:t}))});n(this,Bm,t=>{(t.key===" "||t.key==="Enter")&&(t.preventDefault(),r(this,yc).call(this))});p(this,bc,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.checked===void 0&&this.defaultChecked&&p(this,ge,!0,gC),this.addEventListener("click",r(this,xc))}willUpdate(){h(this,ge,Az).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",r(this,xc))}render(){let t=r(this,ge,Hm),e=r(this,ge,vC);return f`
7028
7028
  <span
7029
7029
  part="root"
7030
7030
  role="switch"
@@ -7038,12 +7038,12 @@ label, legend, caption, figcaption, th, td {
7038
7038
  ?data-disabled="${e}"
7039
7039
  ?data-readonly="${this.readOnly}"
7040
7040
  ?data-required="${this.required}"
7041
- @keydown="${r(this,vm)}"
7041
+ @keydown="${r(this,Bm)}"
7042
7042
  >
7043
7043
  <span part="thumb"></span>
7044
7044
  </span>
7045
7045
  <slot></slot>
7046
- `}};kt=T(gL),oc=new WeakMap,EE=new WeakMap,CE=new WeakMap,$E=new WeakMap,SE=new WeakMap,TE=new WeakMap,_E=new WeakMap,AE=new WeakMap,RE=new WeakMap,IE=new WeakMap,pe=new WeakSet,gm=function(){return this.checked??r(this,pe,vL)},zE=function(){return this.disabled},bL=function(){let t=r(this,pe,gm)?this.value:this.uncheckedValue;r(this,oc).setFormValue(t||null)},rc=new WeakMap,sc=new WeakMap,vm=new WeakMap,d(kt,4,"checked",fL,ee,EE),d(kt,4,"defaultChecked",mL,ee,CE),d(kt,4,"disabled",uL,ee,$E),d(kt,4,"readOnly",hL,ee,SE),d(kt,4,"required",pL,ee,TE),d(kt,4,"name",cL,ee,_E),d(kt,4,"value",dL,ee,AE),d(kt,4,"uncheckedValue",lL,ee,RE),OE=d(kt,20,"#internalChecked",aL,pe,IE),vL=OE.get,LE=OE.set,$(kt,ee),v(ee,"tagName","dui-switch"),v(ee,"formAssociated",!0),v(ee,"styles",[y,SH]);var TH=k`
7046
+ `}};St=S(Tz),bc=new WeakMap,nC=new WeakMap,aC=new WeakMap,lC=new WeakMap,dC=new WeakMap,cC=new WeakMap,pC=new WeakMap,hC=new WeakMap,uC=new WeakMap,mC=new WeakMap,ge=new WeakSet,Hm=function(){return this.checked??r(this,ge,_z)},vC=function(){return this.disabled},Az=function(){let t=r(this,ge,Hm)?this.value:this.uncheckedValue;r(this,bc).setFormValue(t||null)},xc=new WeakMap,yc=new WeakMap,Bm=new WeakMap,d(St,4,"checked",Sz,ne,nC),d(St,4,"defaultChecked",$z,ne,aC),d(St,4,"disabled",Cz,ne,lC),d(St,4,"readOnly",Ez,ne,dC),d(St,4,"required",kz,ne,cC),d(St,4,"name",wz,ne,pC),d(St,4,"value",yz,ne,hC),d(St,4,"uncheckedValue",xz,ne,uC),fC=d(St,20,"#internalChecked",bz,ge,mC),_z=fC.get,gC=fC.set,$(St,ne),g(ne,"tagName","dui-switch"),g(ne,"formAssociated",!0),g(ne,"styles",[y,c4]);var p4=k`
7047
7047
  :host {
7048
7048
  --switch-width: var(--space-9);
7049
7049
  --switch-height: var(--space-5);
@@ -7113,7 +7113,7 @@ label, legend, caption, figcaption, th, td {
7113
7113
  [part="root"][data-checked] [part="thumb"] {
7114
7114
  background: oklch(from var(--accent) 0.98 0.01 h);
7115
7115
  }
7116
- `,rl=class extends ee{static styles=[...ee.styles,TH]};customElements.define(rl.tagName,rl);var Jr=Symbol("dui-tabs");var PE=L("value-change",{bubbles:!0,composed:!0}),_H=g`
7116
+ `,gl=class extends ne{static styles=[...ne.styles,p4]};customElements.define(gl.tagName,gl);var ns=Symbol("dui-tabs");var TC=O("value-change",{bubbles:!0,composed:!0}),h4=v`
7117
7117
  :host {
7118
7118
  display: block;
7119
7119
  }
@@ -7130,11 +7130,11 @@ label, legend, caption, figcaption, th, td {
7130
7130
  :host([controls="footer"]) [part="root"] {
7131
7131
  flex-direction: column-reverse;
7132
7132
  }
7133
- `,xL,yL,wL,kL,EL,CL,$L,Jt,NE,DE,HE,BE,FE,UE,SL,qE,Eo,xm,ym,VE,bm,Le=class extends($L=b,CL=[h()],EL=[h({attribute:"default-value"})],kL=[h({reflect:!0})],wL=[h({reflect:!0})],yL=[E()],xL=[Et({context:Jr}),E()],$L){constructor(){super(...arguments);n(this,Eo);n(this,NE,i(Jt,8,this)),i(Jt,11,this);n(this,DE,i(Jt,12,this)),i(Jt,15,this);n(this,HE,i(Jt,16,this,"horizontal")),i(Jt,19,this);n(this,BE,i(Jt,20,this,"header")),i(Jt,23,this);n(this,FE,i(Jt,24,this)),i(Jt,27,this);n(this,xm,()=>this.value??r(this,Eo,SL));n(this,ym,t=>{this.value===void 0&&p(this,Eo,t,qE),this.dispatchEvent(PE(t))});n(this,VE,i(Jt,28,this,u(this,Eo,bm).call(this))),i(Jt,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,Eo,this.defaultValue,qE),this._ctx=u(this,Eo,bm).call(this)}willUpdate(){this._ctx=u(this,Eo,bm).call(this)}render(){return m`
7133
+ `,Rz,Iz,Oz,Lz,zz,Mz,Nz,te,xC,yC,wC,kC,EC,CC,Dz,SC,_r,Vm,Um,$C,Fm,Fe=class extends(Nz=b,Mz=[u()],zz=[u({attribute:"default-value"})],Lz=[u({reflect:!0})],Oz=[u({reflect:!0})],Iz=[E()],Rz=[vt({context:ns}),E()],Nz){constructor(){super(...arguments);n(this,_r);n(this,xC,i(te,8,this)),i(te,11,this);n(this,yC,i(te,12,this)),i(te,15,this);n(this,wC,i(te,16,this,"horizontal")),i(te,19,this);n(this,kC,i(te,20,this,"header")),i(te,23,this);n(this,EC,i(te,24,this)),i(te,27,this);n(this,Vm,()=>this.value??r(this,_r,Dz));n(this,Um,t=>{this.value===void 0&&p(this,_r,t,SC),this.dispatchEvent(TC(t))});n(this,$C,i(te,28,this,h(this,_r,Fm).call(this))),i(te,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&p(this,_r,this.defaultValue,SC),this._ctx=h(this,_r,Fm).call(this)}willUpdate(){this._ctx=h(this,_r,Fm).call(this)}render(){return f`
7134
7134
  <div part="root" data-orientation=${this.orientation}>
7135
7135
  <slot></slot>
7136
7136
  </div>
7137
- `}};Jt=T($L),NE=new WeakMap,DE=new WeakMap,HE=new WeakMap,BE=new WeakMap,FE=new WeakMap,Eo=new WeakSet,xm=new WeakMap,ym=new WeakMap,VE=new WeakMap,bm=function(){return{value:r(this,xm).call(this),orientation:this.orientation,select:r(this,ym)}},d(Jt,4,"value",CL,Le,NE),d(Jt,4,"defaultValue",EL,Le,DE),d(Jt,4,"orientation",kL,Le,HE),d(Jt,4,"controls",wL,Le,BE),UE=d(Jt,20,"#internalValue",yL,Eo,FE),SL=UE.get,qE=UE.set,d(Jt,4,"_ctx",xL,Le,VE),$(Jt,Le),v(Le,"tagName","dui-tabs"),v(Le,"styles",[y,_H]);var AH=g`
7137
+ `}};te=S(Nz),xC=new WeakMap,yC=new WeakMap,wC=new WeakMap,kC=new WeakMap,EC=new WeakMap,_r=new WeakSet,Vm=new WeakMap,Um=new WeakMap,$C=new WeakMap,Fm=function(){return{value:r(this,Vm).call(this),orientation:this.orientation,select:r(this,Um)}},d(te,4,"value",Mz,Fe,xC),d(te,4,"defaultValue",zz,Fe,yC),d(te,4,"orientation",Lz,Fe,wC),d(te,4,"controls",Oz,Fe,kC),CC=d(te,20,"#internalValue",Iz,_r,EC),Dz=CC.get,SC=CC.set,d(te,4,"_ctx",Rz,Fe,$C),$(te,Fe),g(Fe,"tagName","dui-tabs"),g(Fe,"styles",[y,h4]);var u4=v`
7138
7138
  :host {
7139
7139
  display: block;
7140
7140
  }
@@ -7148,11 +7148,11 @@ label, legend, caption, figcaption, th, td {
7148
7148
  [part="list"][data-orientation="vertical"] {
7149
7149
  flex-direction: column;
7150
7150
  }
7151
- `,TL,_L,wm,jE,sl,il,km,sr=class extends(_L=b,TL=[Ut({context:Jr,subscribe:!0})],_L){constructor(){super(...arguments);n(this,il);n(this,jE,i(wm,8,this)),i(wm,11,this);n(this,sl)}connectedCallback(){super.connectedCallback(),p(this,sl,new ResizeObserver(()=>{u(this,il,km).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),r(this,sl)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&r(this,sl)?.observe(t),u(this,il,km).call(this)}updated(){u(this,il,km).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return m`
7151
+ `,Hz,Bz,qm,_C,vl,bl,Pm,co=class extends(Bz=b,Hz=[Ot({context:ns,subscribe:!0})],Bz){constructor(){super(...arguments);n(this,bl);n(this,_C,i(qm,8,this)),i(qm,11,this);n(this,vl)}connectedCallback(){super.connectedCallback(),p(this,vl,new ResizeObserver(()=>{h(this,bl,Pm).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),r(this,vl)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&r(this,vl)?.observe(t),h(this,bl,Pm).call(this)}updated(){h(this,bl,Pm).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
7152
7152
  <div part="list" role="tablist" data-orientation=${t}>
7153
7153
  <slot></slot>
7154
7154
  </div>
7155
- `}};wm=T(_L),jE=new WeakMap,sl=new WeakMap,il=new WeakSet,km=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(c=>c.tagName==="DUI-TAB"&&c.getAttribute("value")===this._ctx?.value);if(l){let c=t.getBoundingClientRect(),f=l.getBoundingClientRect(),x=f.left-c.left,C=f.width;t.style.setProperty("--active-tab-left",`${x}px`),t.style.setProperty("--active-tab-width",`${C}px`)}},d(wm,4,"_ctx",TL,sr,jE),$(wm,sr),v(sr,"tagName","dui-tabs-list"),v(sr,"styles",[y,AH]);var RH=g`
7155
+ `}};qm=S(Bz),_C=new WeakMap,vl=new WeakMap,bl=new WeakSet,Pm=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(c=>c.tagName==="DUI-TAB"&&c.getAttribute("value")===this._ctx?.value);if(l){let c=t.getBoundingClientRect(),m=l.getBoundingClientRect(),x=m.left-c.left,C=m.width;t.style.setProperty("--active-tab-left",`${x}px`),t.style.setProperty("--active-tab-width",`${C}px`)}},d(qm,4,"_ctx",Hz,co,_C),$(qm,co),g(co,"tagName","dui-tabs-list"),g(co,"styles",[y,u4]);var m4=v`
7156
7156
  :host {
7157
7157
  display: block;
7158
7158
  }
@@ -7176,7 +7176,7 @@ label, legend, caption, figcaption, th, td {
7176
7176
  [part="tab"][data-disabled] {
7177
7177
  cursor: not-allowed;
7178
7178
  }
7179
- `,AL,RL,IL,OL,ir,WE,KE,GE,Em,LL,Cm,$m,co=class extends(OL=b,IL=[h()],RL=[h({type:Boolean,reflect:!0})],AL=[Ut({context:Jr,subscribe:!0})],OL){constructor(){super(...arguments);n(this,Em);n(this,WE,i(ir,8,this,"")),i(ir,11,this);n(this,KE,i(ir,12,this,!1)),i(ir,15,this);n(this,GE,i(ir,16,this)),i(ir,19,this);n(this,Cm,()=>{this.disabled||this._ctx?.select(this.value)});n(this,$m,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=r(this,Em,LL);return m`
7179
+ `,Fz,Vz,Uz,qz,po,AC,RC,IC,jm,Pz,Wm,Km,fr=class extends(qz=b,Uz=[u()],Vz=[u({type:Boolean,reflect:!0})],Fz=[Ot({context:ns,subscribe:!0})],qz){constructor(){super(...arguments);n(this,jm);n(this,AC,i(po,8,this,"")),i(po,11,this);n(this,RC,i(po,12,this,!1)),i(po,15,this);n(this,IC,i(po,16,this)),i(po,19,this);n(this,Wm,()=>{this.disabled||this._ctx?.select(this.value)});n(this,Km,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=r(this,jm,Pz);return f`
7180
7180
  <button
7181
7181
  part="tab"
7182
7182
  role="tab"
@@ -7185,12 +7185,12 @@ label, legend, caption, figcaption, th, td {
7185
7185
  ?data-disabled=${this.disabled}
7186
7186
  ?disabled=${this.disabled}
7187
7187
  tabindex=${t?0:-1}
7188
- @click=${r(this,Cm)}
7189
- @keydown=${r(this,$m)}
7188
+ @click=${r(this,Wm)}
7189
+ @keydown=${r(this,Km)}
7190
7190
  >
7191
7191
  <slot></slot>
7192
7192
  </button>
7193
- `}};ir=T(OL),WE=new WeakMap,KE=new WeakMap,GE=new WeakMap,Em=new WeakSet,LL=function(){return this._ctx?.value===this.value},Cm=new WeakMap,$m=new WeakMap,d(ir,4,"value",IL,co,WE),d(ir,4,"disabled",RL,co,KE),d(ir,4,"_ctx",AL,co,GE),$(ir,co),v(co,"tagName","dui-tab"),v(co,"styles",[y,RH]);var IH=g`
7193
+ `}};po=S(qz),AC=new WeakMap,RC=new WeakMap,IC=new WeakMap,jm=new WeakSet,Pz=function(){return this._ctx?.value===this.value},Wm=new WeakMap,Km=new WeakMap,d(po,4,"value",Uz,fr,AC),d(po,4,"disabled",Vz,fr,RC),d(po,4,"_ctx",Fz,fr,IC),$(po,fr),g(fr,"tagName","dui-tab"),g(fr,"styles",[y,m4]);var f4=v`
7194
7194
  :host {
7195
7195
  display: block;
7196
7196
  }
@@ -7207,11 +7207,11 @@ label, legend, caption, figcaption, th, td {
7207
7207
  position: relative;
7208
7208
  outline: 0;
7209
7209
  }
7210
- `,zL,ML,NL,DL,nr,YE,XE,JE,ic,QE,po=class extends(DL=b,NL=[h()],ML=[h({type:Boolean,attribute:"keep-mounted"})],zL=[Ut({context:Jr,subscribe:!0})],DL){constructor(){super(...arguments);n(this,ic);n(this,YE,i(nr,8,this,"")),i(nr,11,this);n(this,XE,i(nr,12,this,!1)),i(nr,15,this);n(this,JE,i(nr,16,this)),i(nr,19,this)}willUpdate(){r(this,ic,QE)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=r(this,ic,QE);return m`
7210
+ `,jz,Wz,Kz,Gz,ho,OC,LC,zC,wc,MC,gr=class extends(Gz=b,Kz=[u()],Wz=[u({type:Boolean,attribute:"keep-mounted"})],jz=[Ot({context:ns,subscribe:!0})],Gz){constructor(){super(...arguments);n(this,wc);n(this,OC,i(ho,8,this,"")),i(ho,11,this);n(this,LC,i(ho,12,this,!1)),i(ho,15,this);n(this,zC,i(ho,16,this)),i(ho,19,this)}willUpdate(){r(this,wc,MC)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=r(this,wc,MC);return f`
7211
7211
  <div class="wrapper" ?hidden=${!t}>
7212
- ${t||this.keepMounted?m`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:I}
7212
+ ${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:I}
7213
7213
  </div>
7214
- `}};nr=T(DL),YE=new WeakMap,XE=new WeakMap,JE=new WeakMap,ic=new WeakSet,QE=function(){return this._ctx?.value===this.value},d(nr,4,"value",NL,po,YE),d(nr,4,"keepMounted",ML,po,XE),d(nr,4,"_ctx",zL,po,JE),$(nr,po),v(po,"tagName","dui-tabs-panel"),v(po,"styles",[y,IH]);var OH=g`
7214
+ `}};ho=S(Gz),OC=new WeakMap,LC=new WeakMap,zC=new WeakMap,wc=new WeakSet,MC=function(){return this._ctx?.value===this.value},d(ho,4,"value",Kz,gr,OC),d(ho,4,"keepMounted",Wz,gr,LC),d(ho,4,"_ctx",jz,gr,zC),$(ho,gr),g(gr,"tagName","dui-tabs-panel"),g(gr,"styles",[y,f4]);var g4=v`
7215
7215
  :host {
7216
7216
  display: block;
7217
7217
  position: absolute;
@@ -7223,7 +7223,7 @@ label, legend, caption, figcaption, th, td {
7223
7223
  pointer-events: none;
7224
7224
  transition-property: translate, width;
7225
7225
  }
7226
- `,nl=class extends b{static tagName="dui-tabs-indicator";static styles=[y,OH];render(){return m`<span part="indicator"></span>`}};var LH=k`
7226
+ `,xl=class extends b{static tagName="dui-tabs-indicator";static styles=[y,g4];render(){return f`<span part="indicator"></span>`}};var v4=k`
7227
7227
  [part="tab"] {
7228
7228
  color: var(--text-2);
7229
7229
  font-size: var(--text-sm); line-height: var(--line-height-snug);
@@ -7255,7 +7255,7 @@ label, legend, caption, figcaption, th, td {
7255
7255
  [part="tab"][data-disabled] {
7256
7256
  opacity: 0.4;
7257
7257
  }
7258
- `,al=class extends co{static styles=[...co.styles,LH]};customElements.define(al.tagName,al);var zH=k``,ll=class extends Le{static styles=[...Le.styles,zH]};customElements.define(ll.tagName,ll);var MH=k`
7258
+ `,yl=class extends fr{static styles=[...fr.styles,v4]};customElements.define(yl.tagName,yl);var b4=k``,wl=class extends Fe{static styles=[...Fe.styles,b4]};customElements.define(wl.tagName,wl);var x4=k`
7259
7259
  :host {
7260
7260
  --tabs-indicator-height: var(--component-height-xs);
7261
7261
  --tabs-indicator-radius: var(--radius-sm);
@@ -7269,7 +7269,7 @@ label, legend, caption, figcaption, th, td {
7269
7269
  transition-duration: var(--tabs-indicator-duration);
7270
7270
  transition-timing-function: var(--tabs-indicator-easing);
7271
7271
  }
7272
- `,dl=class extends nl{static styles=[...nl.styles,MH]};customElements.define(dl.tagName,dl);var NH=k`
7272
+ `,kl=class extends xl{static styles=[...xl.styles,x4]};customElements.define(kl.tagName,kl);var y4=k`
7273
7273
  :host {
7274
7274
  --tabs-list-justify: start;
7275
7275
  }
@@ -7285,7 +7285,7 @@ label, legend, caption, figcaption, th, td {
7285
7285
  padding-inline: 0;
7286
7286
  padding-block: var(--space-1);
7287
7287
  }
7288
- `,cl=class extends sr{static styles=[...sr.styles,NH]};customElements.define(cl.tagName,cl);var DH=k`
7288
+ `,El=class extends co{static styles=[...co.styles,y4]};customElements.define(El.tagName,El);var w4=k`
7289
7289
  :host {
7290
7290
  --tabs-panel-padding: var(--space-3);
7291
7291
  --tabs-panel-border-width: var(--border-width-thin);
@@ -7319,7 +7319,7 @@ label, legend, caption, figcaption, th, td {
7319
7319
  var(--focus-ring-color);
7320
7320
  border-radius: var(--radius-md);
7321
7321
  }
7322
- `,pl=class extends po{static styles=[...po.styles,DH]};customElements.define(pl.tagName,pl);var cC=L("textarea-change",{bubbles:!0,composed:!0}),HH=g`
7322
+ `,Cl=class extends gr{static styles=[...gr.styles,w4]};customElements.define(Cl.tagName,Cl);var KC=O("textarea-change",{bubbles:!0,composed:!0}),k4=v`
7323
7323
  :host {
7324
7324
  display: block;
7325
7325
  }
@@ -7357,11 +7357,11 @@ label, legend, caption, figcaption, th, td {
7357
7357
  [part="textarea"]:disabled {
7358
7358
  cursor: not-allowed;
7359
7359
  }
7360
- `,HL,BL,FL,UL,VL,qL,PL,jL,WL,KL,GL,YL,ni,st,ZE,tC,eC,oC,rC,sC,iC,nC,aC,lC,dC,Sm,XL,Tm,Ft=class extends(YL=b,GL=[h()],KL=[h()],WL=[h({type:Boolean,reflect:!0})],jL=[h({type:Boolean})],PL=[h({type:Boolean})],qL=[h({type:Number})],VL=[h({type:Number,attribute:"minlength"})],UL=[h({type:Number,attribute:"maxlength"})],FL=[h()],BL=[h()],HL=[h({attribute:"max-height"})],YL){constructor(){super();n(this,Sm);n(this,ni);n(this,ZE,i(st,8,this,"")),i(st,11,this);n(this,tC,i(st,12,this,"")),i(st,15,this);n(this,eC,i(st,16,this,!1)),i(st,19,this);n(this,oC,i(st,20,this,!1)),i(st,23,this);n(this,rC,i(st,24,this,!1)),i(st,27,this);n(this,sC,i(st,28,this)),i(st,31,this);n(this,iC,i(st,32,this)),i(st,35,this);n(this,nC,i(st,36,this)),i(st,39,this);n(this,aC,i(st,40,this,"")),i(st,43,this);n(this,lC,i(st,44,this,"vertical")),i(st,47,this);n(this,dC,i(st,48,this)),i(st,51,this);n(this,Tm,t=>{let e=t.target;this.value=e.value,r(this,ni).setFormValue(this.value),this.dispatchEvent(cC({value:this.value}))});p(this,ni,this.attachInternals())}willUpdate(){r(this,ni).setFormValue(this.value)}updated(){u(this,Sm,XL).call(this)}render(){let t=An({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return m`
7360
+ `,Yz,Xz,Jz,Qz,Zz,tM,eM,rM,oM,sM,iM,nM,vi,nt,NC,DC,HC,BC,FC,VC,UC,qC,PC,jC,WC,Gm,aM,Ym,Pt=class extends(nM=b,iM=[u()],sM=[u()],oM=[u({type:Boolean,reflect:!0})],rM=[u({type:Boolean})],eM=[u({type:Boolean})],tM=[u({type:Number})],Zz=[u({type:Number,attribute:"minlength"})],Qz=[u({type:Number,attribute:"maxlength"})],Jz=[u()],Xz=[u()],Yz=[u({attribute:"max-height"})],nM){constructor(){super();n(this,Gm);n(this,vi);n(this,NC,i(nt,8,this,"")),i(nt,11,this);n(this,DC,i(nt,12,this,"")),i(nt,15,this);n(this,HC,i(nt,16,this,!1)),i(nt,19,this);n(this,BC,i(nt,20,this,!1)),i(nt,23,this);n(this,FC,i(nt,24,this,!1)),i(nt,27,this);n(this,VC,i(nt,28,this)),i(nt,31,this);n(this,UC,i(nt,32,this)),i(nt,35,this);n(this,qC,i(nt,36,this)),i(nt,39,this);n(this,PC,i(nt,40,this,"")),i(nt,43,this);n(this,jC,i(nt,44,this,"vertical")),i(nt,47,this);n(this,WC,i(nt,48,this)),i(nt,51,this);n(this,Ym,t=>{let e=t.target;this.value=e.value,r(this,vi).setFormValue(this.value),this.dispatchEvent(KC({value:this.value}))});p(this,vi,this.attachInternals())}willUpdate(){r(this,vi).setFormValue(this.value)}updated(){h(this,Gm,aM).call(this)}render(){let t=Un({overflowY:this.maxHeight===void 0?"auto":"initial",maxHeight:this.maxHeight??"initial"});return f`
7361
7361
  <textarea
7362
7362
  part="textarea"
7363
7363
  style=${t}
7364
- .value=${Io(this.value)}
7364
+ .value=${Nr(this.value)}
7365
7365
  placeholder=${this.placeholder}
7366
7366
  rows=${this.rows??""}
7367
7367
  ?disabled=${this.disabled}
@@ -7371,9 +7371,9 @@ label, legend, caption, figcaption, th, td {
7371
7371
  maxlength=${this.maxLength??""}
7372
7372
  name=${this.name}
7373
7373
  data-resize=${this.resize}
7374
- @input=${r(this,Tm)}
7374
+ @input=${r(this,Ym)}
7375
7375
  ></textarea>
7376
- `}};st=T(YL),ni=new WeakMap,ZE=new WeakMap,tC=new WeakMap,eC=new WeakMap,oC=new WeakMap,rC=new WeakMap,sC=new WeakMap,iC=new WeakMap,nC=new WeakMap,aC=new WeakMap,lC=new WeakMap,dC=new WeakMap,Sm=new WeakSet,XL=function(){let t=this.shadowRoot?.querySelector("textarea");t&&r(this,ni).setValidity(t.validity,t.validationMessage,t)},Tm=new WeakMap,d(st,4,"value",GL,Ft,ZE),d(st,4,"placeholder",KL,Ft,tC),d(st,4,"disabled",WL,Ft,eC),d(st,4,"required",jL,Ft,oC),d(st,4,"readonly",PL,Ft,rC),d(st,4,"rows",qL,Ft,sC),d(st,4,"minLength",VL,Ft,iC),d(st,4,"maxLength",UL,Ft,nC),d(st,4,"name",FL,Ft,aC),d(st,4,"resize",BL,Ft,lC),d(st,4,"maxHeight",HL,Ft,dC),$(st,Ft),v(Ft,"tagName","dui-textarea"),v(Ft,"formAssociated",!0),v(Ft,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),v(Ft,"styles",[y,HH]);var BH=k`
7376
+ `}};nt=S(nM),vi=new WeakMap,NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,FC=new WeakMap,VC=new WeakMap,UC=new WeakMap,qC=new WeakMap,PC=new WeakMap,jC=new WeakMap,WC=new WeakMap,Gm=new WeakSet,aM=function(){let t=this.shadowRoot?.querySelector("textarea");t&&r(this,vi).setValidity(t.validity,t.validationMessage,t)},Ym=new WeakMap,d(nt,4,"value",iM,Pt,NC),d(nt,4,"placeholder",sM,Pt,DC),d(nt,4,"disabled",oM,Pt,HC),d(nt,4,"required",rM,Pt,BC),d(nt,4,"readonly",eM,Pt,FC),d(nt,4,"rows",tM,Pt,VC),d(nt,4,"minLength",Zz,Pt,UC),d(nt,4,"maxLength",Qz,Pt,qC),d(nt,4,"name",Jz,Pt,PC),d(nt,4,"resize",Xz,Pt,jC),d(nt,4,"maxHeight",Yz,Pt,WC),$(nt,Pt),g(Pt,"tagName","dui-textarea"),g(Pt,"formAssociated",!0),g(Pt,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Pt,"styles",[y,k4]);var E4=k`
7377
7377
  :host {
7378
7378
  --font-size: var(--text-sm);
7379
7379
  }
@@ -7448,7 +7448,7 @@ label, legend, caption, figcaption, th, td {
7448
7448
  :host([variant="ghost"]) [part="textarea"]:focus-visible {
7449
7449
  box-shadow: none;
7450
7450
  }
7451
- `,hl=class extends Ft{static styles=[...Ft.styles,BH]};customElements.define(hl.tagName,hl);var _m=Symbol("dui-toggle-group");var wC=L("pressed-change",{bubbles:!0,composed:!0}),FH=g`
7451
+ `,$l=class extends Pt{static styles=[...Pt.styles,E4]};customElements.define($l.tagName,$l);var Xm=Symbol("dui-toggle-group");var s$=O("pressed-change",{bubbles:!0,composed:!0}),C4=v`
7452
7452
  :host {
7453
7453
  display: inline-block;
7454
7454
  }
@@ -7470,7 +7470,7 @@ label, legend, caption, figcaption, th, td {
7470
7470
  [part="root"]:disabled {
7471
7471
  cursor: not-allowed;
7472
7472
  }
7473
- `,JL,QL,ZL,tz,ez,oz,rz,Qt,pC,hC,uC,mC,fC,gC,sz,bC,Ye,vC,xC,yC,Am,be=class extends(rz=b,oz=[h({type:Boolean})],ez=[h({type:Boolean,attribute:"default-pressed"})],tz=[h({type:Boolean,reflect:!0})],ZL=[h()],QL=[E()],JL=[Ut({context:_m,subscribe:!0}),E()],rz){constructor(){super(...arguments);n(this,Ye);n(this,pC,i(Qt,8,this)),i(Qt,11,this);n(this,hC,i(Qt,12,this,!1)),i(Qt,15,this);n(this,uC,i(Qt,16,this,!1)),i(Qt,19,this);n(this,mC,i(Qt,20,this)),i(Qt,23,this);n(this,fC,i(Qt,24,this,!1)),i(Qt,27,this);n(this,vC,i(Qt,28,this)),i(Qt,31,this);n(this,Am,()=>{if(r(this,Ye,yC))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!r(this,Ye,xC);this.pressed===void 0&&p(this,Ye,t,bC),this.dispatchEvent(wC({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&p(this,Ye,!0,bC)}render(){let t=r(this,Ye,xC),e=r(this,Ye,yC);return m`
7473
+ `,lM,dM,cM,pM,hM,uM,mM,ee,GC,YC,XC,JC,QC,ZC,fM,e$,er,t$,r$,o$,Jm,Ce=class extends(mM=b,uM=[u({type:Boolean})],hM=[u({type:Boolean,attribute:"default-pressed"})],pM=[u({type:Boolean,reflect:!0})],cM=[u()],dM=[E()],lM=[Ot({context:Xm,subscribe:!0}),E()],mM){constructor(){super(...arguments);n(this,er);n(this,GC,i(ee,8,this)),i(ee,11,this);n(this,YC,i(ee,12,this,!1)),i(ee,15,this);n(this,XC,i(ee,16,this,!1)),i(ee,19,this);n(this,JC,i(ee,20,this)),i(ee,23,this);n(this,QC,i(ee,24,this,!1)),i(ee,27,this);n(this,t$,i(ee,28,this)),i(ee,31,this);n(this,Jm,()=>{if(r(this,er,o$))return;if(this._groupCtx&&this.value!==void 0){this._groupCtx.toggle(this.value);return}let t=!r(this,er,r$);this.pressed===void 0&&p(this,er,t,e$),this.dispatchEvent(s$({pressed:t}))})}connectedCallback(){super.connectedCallback(),this.pressed===void 0&&this.defaultPressed&&p(this,er,!0,e$)}render(){let t=r(this,er,r$),e=r(this,er,o$);return f`
7474
7474
  <button
7475
7475
  part="root"
7476
7476
  type="button"
@@ -7478,12 +7478,12 @@ label, legend, caption, figcaption, th, td {
7478
7478
  ?disabled="${e}"
7479
7479
  ?data-pressed="${t}"
7480
7480
  ?data-disabled="${e}"
7481
- @click="${r(this,Am)}"
7481
+ @click="${r(this,Jm)}"
7482
7482
  >
7483
7483
  <slot name="icon"></slot>
7484
7484
  <slot></slot>
7485
7485
  </button>
7486
- `}};Qt=T(rz),pC=new WeakMap,hC=new WeakMap,uC=new WeakMap,mC=new WeakMap,fC=new WeakMap,Ye=new WeakSet,vC=new WeakMap,xC=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??r(this,Ye,sz)},yC=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Am=new WeakMap,d(Qt,4,"pressed",oz,be,pC),d(Qt,4,"defaultPressed",ez,be,hC),d(Qt,4,"disabled",tz,be,uC),d(Qt,4,"value",ZL,be,mC),gC=d(Qt,20,"#internalPressed",QL,Ye,fC),sz=gC.get,bC=gC.set,d(Qt,4,"_groupCtx",JL,be,vC),$(Qt,be),v(be,"tagName","dui-toggle"),v(be,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),v(be,"styles",[y,FH]);var LC=L("value-change",{bubbles:!0,composed:!0}),UH=g`
7486
+ `}};ee=S(mM),GC=new WeakMap,YC=new WeakMap,XC=new WeakMap,JC=new WeakMap,QC=new WeakMap,er=new WeakSet,t$=new WeakMap,r$=function(){return this._groupCtx&&this.value!==void 0?this._groupCtx.value.includes(this.value):this.pressed??r(this,er,fM)},o$=function(){return this.disabled||(this._groupCtx?.disabled??!1)},Jm=new WeakMap,d(ee,4,"pressed",uM,Ce,GC),d(ee,4,"defaultPressed",hM,Ce,YC),d(ee,4,"disabled",pM,Ce,XC),d(ee,4,"value",cM,Ce,JC),ZC=d(ee,20,"#internalPressed",dM,er,QC),fM=ZC.get,e$=ZC.set,d(ee,4,"_groupCtx",lM,Ce,t$),$(ee,Ce),g(Ce,"tagName","dui-toggle"),g(Ce,"shadowRootOptions",{...b.shadowRootOptions,delegatesFocus:!0}),g(Ce,"styles",[y,C4]);var g$=O("value-change",{bubbles:!0,composed:!0}),$4=v`
7487
7487
  :host {
7488
7488
  display: inline-flex;
7489
7489
  }
@@ -7495,16 +7495,16 @@ label, legend, caption, figcaption, th, td {
7495
7495
  :host([orientation="vertical"]) [part="root"] {
7496
7496
  flex-direction: column;
7497
7497
  }
7498
- `,iz,nz,az,lz,dz,cz,pz,hz,uz,St,kC,EC,CC,$C,SC,TC,_C,AC,mz,IC,ze,OC,Im,RC,Rm,Om,he=class extends(uz=b,hz=[h({type:Array})],pz=[h({type:Array,attribute:"default-value"})],cz=[h({reflect:!0})],dz=[h({reflect:!0})],lz=[h({type:Boolean,reflect:!0})],az=[h({type:Boolean})],nz=[E()],iz=[Et({context:_m}),E()],uz){constructor(){super(...arguments);n(this,ze);n(this,kC,i(St,8,this)),i(St,11,this);n(this,EC,i(St,12,this,[])),i(St,15,this);n(this,CC,i(St,16,this,"single")),i(St,19,this);n(this,$C,i(St,20,this,"horizontal")),i(St,23,this);n(this,SC,i(St,24,this,!1)),i(St,27,this);n(this,TC,i(St,28,this,!0)),i(St,31,this);n(this,_C,i(St,32,this,[])),i(St,35,this);n(this,Im,t=>{if(this.disabled)return;let e=r(this,ze,OC),a;this.type==="single"?a=e.includes(t)?[]:[t]:a=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&p(this,ze,a,IC),this.dispatchEvent(LC({value:a}))});n(this,RC,i(St,36,this,u(this,ze,Rm).call(this))),i(St,39,this);n(this,Om,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==a&&t.key!==l)return;t.preventDefault();let c=[...this.querySelectorAll("dui-toggle")],f=c.filter(R=>!R.hasAttribute("disabled"));if(f.length===0)return;let x=this.shadowRoot?.activeElement??document.activeElement,C=c.find(R=>R===x||R.shadowRoot?.activeElement===x||R.contains(x)),S=C?f.indexOf(C):-1,w;t.key===a?(w=S+1,w>=f.length&&(w=this.loop?0:f.length-1)):(w=S-1,w<0&&(w=this.loop?f.length-1:0)),f[w]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,ze,[...this.defaultValue],IC),this._ctx=u(this,ze,Rm).call(this)}willUpdate(){this._ctx=u(this,ze,Rm).call(this)}render(){return m`
7498
+ `,gM,vM,bM,xM,yM,wM,kM,EM,CM,At,i$,n$,a$,l$,d$,c$,p$,h$,$M,m$,Ve,f$,Zm,u$,Qm,tf,ve=class extends(CM=b,EM=[u({type:Array})],kM=[u({type:Array,attribute:"default-value"})],wM=[u({reflect:!0})],yM=[u({reflect:!0})],xM=[u({type:Boolean,reflect:!0})],bM=[u({type:Boolean})],vM=[E()],gM=[vt({context:Xm}),E()],CM){constructor(){super(...arguments);n(this,Ve);n(this,i$,i(At,8,this)),i(At,11,this);n(this,n$,i(At,12,this,[])),i(At,15,this);n(this,a$,i(At,16,this,"single")),i(At,19,this);n(this,l$,i(At,20,this,"horizontal")),i(At,23,this);n(this,d$,i(At,24,this,!1)),i(At,27,this);n(this,c$,i(At,28,this,!0)),i(At,31,this);n(this,p$,i(At,32,this,[])),i(At,35,this);n(this,Zm,t=>{if(this.disabled)return;let e=r(this,Ve,f$),a;this.type==="single"?a=e.includes(t)?[]:[t]:a=e.includes(t)?e.filter(l=>l!==t):[...e,t],this.value===void 0&&p(this,Ve,a,m$),this.dispatchEvent(g$({value:a}))});n(this,u$,i(At,36,this,h(this,Ve,Qm).call(this))),i(At,39,this);n(this,tf,t=>{let e=this.orientation==="horizontal",a=e?"ArrowRight":"ArrowDown",l=e?"ArrowLeft":"ArrowUp";if(t.key!==a&&t.key!==l)return;t.preventDefault();let c=[...this.querySelectorAll("dui-toggle")],m=c.filter(R=>!R.hasAttribute("disabled"));if(m.length===0)return;let x=this.shadowRoot?.activeElement??document.activeElement,C=c.find(R=>R===x||R.shadowRoot?.activeElement===x||R.contains(x)),T=C?m.indexOf(C):-1,w;t.key===a?(w=T+1,w>=m.length&&(w=this.loop?0:m.length-1)):(w=T-1,w<0&&(w=this.loop?m.length-1:0)),m[w]?.focus()})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&p(this,Ve,[...this.defaultValue],m$),this._ctx=h(this,Ve,Qm).call(this)}willUpdate(){this._ctx=h(this,Ve,Qm).call(this)}render(){return f`
7499
7499
  <div
7500
7500
  part="root"
7501
7501
  role="group"
7502
7502
  aria-orientation="${this.orientation}"
7503
- @keydown="${r(this,Om)}"
7503
+ @keydown="${r(this,tf)}"
7504
7504
  >
7505
7505
  <slot></slot>
7506
7506
  </div>
7507
- `}};St=T(uz),kC=new WeakMap,EC=new WeakMap,CC=new WeakMap,$C=new WeakMap,SC=new WeakMap,TC=new WeakMap,_C=new WeakMap,ze=new WeakSet,OC=function(){return this.value??r(this,ze,mz)},Im=new WeakMap,RC=new WeakMap,Rm=function(){return{value:r(this,ze,OC),disabled:this.disabled,type:this.type,toggle:r(this,Im)}},Om=new WeakMap,d(St,4,"value",hz,he,kC),d(St,4,"defaultValue",pz,he,EC),d(St,4,"type",cz,he,CC),d(St,4,"orientation",dz,he,$C),d(St,4,"disabled",lz,he,SC),d(St,4,"loop",az,he,TC),AC=d(St,20,"#internalValue",nz,ze,_C),mz=AC.get,IC=AC.set,d(St,4,"_ctx",iz,he,RC),$(St,he),v(he,"tagName","dui-toggle-group"),v(he,"styles",[y,UH]);var VH=k`
7507
+ `}};At=S(CM),i$=new WeakMap,n$=new WeakMap,a$=new WeakMap,l$=new WeakMap,d$=new WeakMap,c$=new WeakMap,p$=new WeakMap,Ve=new WeakSet,f$=function(){return this.value??r(this,Ve,$M)},Zm=new WeakMap,u$=new WeakMap,Qm=function(){return{value:r(this,Ve,f$),disabled:this.disabled,type:this.type,toggle:r(this,Zm)}},tf=new WeakMap,d(At,4,"value",EM,ve,i$),d(At,4,"defaultValue",kM,ve,n$),d(At,4,"type",wM,ve,a$),d(At,4,"orientation",yM,ve,l$),d(At,4,"disabled",xM,ve,d$),d(At,4,"loop",bM,ve,c$),h$=d(At,20,"#internalValue",vM,Ve,p$),$M=h$.get,m$=h$.set,d(At,4,"_ctx",gM,ve,u$),$(At,ve),g(ve,"tagName","dui-toggle-group"),g(ve,"styles",[y,$4]);var S4=k`
7508
7508
  /* ---------------------------------------------------------------
7509
7509
  * Sizes (swap dimensions)
7510
7510
  * --------------------------------------------------------------- */
@@ -7599,12 +7599,12 @@ label, legend, caption, figcaption, th, td {
7599
7599
  [part="root"]:disabled {
7600
7600
  opacity: 0.4;
7601
7601
  }
7602
- `,ul=class extends be{static styles=[...be.styles,VH]};customElements.define(ul.tagName,ul);var qH=k`
7602
+ `,Sl=class extends Ce{static styles=[...Ce.styles,S4]};customElements.define(Sl.tagName,Sl);var T4=k`
7603
7603
  [part="root"] {
7604
7604
  gap: var(--space-1);
7605
7605
  border-radius: var(--radius-md);
7606
7606
  }
7607
- `,ml=class extends he{static styles=[...he.styles,qH]};customElements.define(ml.tagName,ml);var PH=g`
7607
+ `,Tl=class extends ve{static styles=[...ve.styles,T4]};customElements.define(Tl.tagName,Tl);var _4=v`
7608
7608
  :host {
7609
7609
  display: block;
7610
7610
  }
@@ -7635,7 +7635,7 @@ label, legend, caption, figcaption, th, td {
7635
7635
  display: flex;
7636
7636
  align-items: center;
7637
7637
  }
7638
- `,fz,gz,vz,bz,ar,zC,MC,NC,ho=class extends(bz=b,vz=[h({type:Boolean,reflect:!0})],gz=[h({type:Boolean,reflect:!0,attribute:"has-button-left"})],fz=[h({type:Boolean,reflect:!0,attribute:"has-button-right"})],bz){constructor(){super(...arguments);n(this,zC,i(ar,8,this,!1)),i(ar,11,this);n(this,MC,i(ar,12,this,!1)),i(ar,15,this);n(this,NC,i(ar,16,this,!1)),i(ar,19,this)}render(){return m`
7638
+ `,SM,TM,_M,AM,uo,v$,b$,x$,vr=class extends(AM=b,_M=[u({type:Boolean,reflect:!0})],TM=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],SM=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],AM){constructor(){super(...arguments);n(this,v$,i(uo,8,this,!1)),i(uo,11,this);n(this,b$,i(uo,12,this,!1)),i(uo,15,this);n(this,x$,i(uo,16,this,!1)),i(uo,19,this)}render(){return f`
7639
7639
  <nav part="root" role="toolbar">
7640
7640
  <div part="left">
7641
7641
  <slot name="left"></slot>
@@ -7647,7 +7647,7 @@ label, legend, caption, figcaption, th, td {
7647
7647
  <slot name="right"></slot>
7648
7648
  </div>
7649
7649
  </nav>
7650
- `}};ar=T(bz),zC=new WeakMap,MC=new WeakMap,NC=new WeakMap,d(ar,4,"inset",vz,ho,zC),d(ar,4,"hasButtonLeft",gz,ho,MC),d(ar,4,"hasButtonRight",fz,ho,NC),$(ar,ho),v(ho,"tagName","dui-toolbar"),v(ho,"styles",[y,PH]);var jH=k`
7650
+ `}};uo=S(AM),v$=new WeakMap,b$=new WeakMap,x$=new WeakMap,d(uo,4,"inset",_M,vr,v$),d(uo,4,"hasButtonLeft",TM,vr,b$),d(uo,4,"hasButtonRight",SM,vr,x$),$(uo,vr),g(vr,"tagName","dui-toolbar"),g(vr,"styles",[y,_4]);var A4=k`
7651
7651
  /* ── Root ── */
7652
7652
 
7653
7653
  [part="root"] {
@@ -7676,15 +7676,15 @@ label, legend, caption, figcaption, th, td {
7676
7676
  [part="right"] {
7677
7677
  gap: var(--space-2);
7678
7678
  }
7679
- `,fl=class extends ho{static styles=[...ho.styles,jH]};customElements.define(fl.tagName,fl);var gl=Symbol("dui-tooltip");var Nm=L("open-change",{bubbles:!0,composed:!0}),WH=g`
7679
+ `,_l=class extends vr{static styles=[...vr.styles,A4]};customElements.define(_l.tagName,_l);var Al=Symbol("dui-tooltip");var sf=O("open-change",{bubbles:!0,composed:!0}),R4=v`
7680
7680
  :host {
7681
7681
  display: contents;
7682
7682
  }
7683
- `,xz,yz,wz,kz,Ez,Cz,$z,Sz,Tz,_z,Az,pt,DC,HC,BC,FC,UC,VC,qC,PC,jC,Lm,zm,ht,WC,KC,YC,Rz,ai,li,Dm,Hm,GC,Mm,Iz,Oz,XC,JC,Lz,se=class extends(Az=b,_z=[h({type:Boolean,reflect:!0})],Tz=[h({type:Boolean,attribute:"default-open"})],Sz=[h({reflect:!0})],$z=[h({type:Number,attribute:"side-offset"})],Cz=[h({type:Number})],Ez=[h({type:Number,attribute:"close-delay"})],kz=[h({type:Boolean,reflect:!0})],wz=[E()],yz=[E()],xz=[Et({context:gl}),E()],Az){constructor(){super(...arguments);n(this,ht);n(this,DC,i(pt,8,this,!1)),i(pt,11,this);n(this,HC,i(pt,12,this,!1)),i(pt,15,this);n(this,BC,i(pt,16,this,"top")),i(pt,19,this);n(this,FC,i(pt,20,this,6)),i(pt,23,this);n(this,UC,i(pt,24,this,500)),i(pt,27,this);n(this,VC,i(pt,28,this,0)),i(pt,31,this);n(this,qC,i(pt,32,this,!1)),i(pt,35,this);n(this,PC,i(pt,36,this,!1)),i(pt,39,this);n(this,WC,i(pt,40,this)),i(pt,43,this);n(this,ai);n(this,li);n(this,Dm,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,Hm,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);n(this,GC,i(pt,44,this,{open:!1,triggerId:r(this,Dm),popupId:r(this,Hm),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>u(this,ht,Iz).call(this),closeTooltip:()=>u(this,ht,Oz).call(this),setTriggerEl:t=>u(this,ht,Lz).call(this,t)})),i(pt,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&p(this,ht,!0,zm)}disconnectedCallback(){super.disconnectedCallback(),u(this,ht,Mm).call(this)}willUpdate(t){let e=this.open||r(this,ht,Lm);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,ht,YC))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:r(this,ht,YC)})}render(){return m`<slot></slot>`}};pt=T(Az),DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,FC=new WeakMap,UC=new WeakMap,VC=new WeakMap,qC=new WeakMap,PC=new WeakMap,ht=new WeakSet,WC=new WeakMap,ai=new WeakMap,li=new WeakMap,Dm=new WeakMap,Hm=new WeakMap,GC=new WeakMap,Mm=function(){r(this,ai)&&(clearTimeout(r(this,ai)),p(this,ai,void 0)),r(this,li)&&(clearTimeout(r(this,li)),p(this,li,void 0))},Iz=function(){this.disabled||(u(this,ht,Mm).call(this),this.delay<=0?u(this,ht,XC).call(this):p(this,ai,setTimeout(()=>u(this,ht,XC).call(this),this.delay)))},Oz=function(){u(this,ht,Mm).call(this),this.closeDelay<=0?u(this,ht,JC).call(this):p(this,li,setTimeout(()=>u(this,ht,JC).call(this),this.closeDelay))},XC=function(){r(this,ht,Lm)||(p(this,ht,!0,zm),this.dispatchEvent(Nm({open:!0})))},JC=function(){r(this,ht,Lm)&&(p(this,ht,!1,zm),this.dispatchEvent(Nm({open:!1})))},Lz=function(t){p(this,ht,t,Rz)},d(pt,4,"open",_z,se,DC),d(pt,4,"defaultOpen",Tz,se,HC),d(pt,4,"side",Sz,se,BC),d(pt,4,"sideOffset",$z,se,FC),d(pt,4,"delay",Cz,se,UC),d(pt,4,"closeDelay",Ez,se,VC),d(pt,4,"disabled",kz,se,qC),jC=d(pt,20,"#internalOpen",wz,ht,PC),Lm=jC.get,zm=jC.set,KC=d(pt,20,"#triggerEl",yz,ht,WC),YC=KC.get,Rz=KC.set,d(pt,4,"_ctx",xz,se,GC),$(pt,se),v(se,"tagName","dui-tooltip"),v(se,"styles",[y,WH]);var KH=g`
7683
+ `,RM,IM,OM,LM,zM,MM,NM,DM,HM,BM,FM,ut,y$,w$,k$,E$,C$,$$,S$,T$,_$,ef,rf,mt,A$,R$,O$,VM,bi,xi,nf,af,I$,of,UM,qM,L$,z$,PM,de=class extends(FM=b,BM=[u({type:Boolean,reflect:!0})],HM=[u({type:Boolean,attribute:"default-open"})],DM=[u({reflect:!0})],NM=[u({type:Number,attribute:"side-offset"})],MM=[u({type:Number})],zM=[u({type:Number,attribute:"close-delay"})],LM=[u({type:Boolean,reflect:!0})],OM=[E()],IM=[E()],RM=[vt({context:Al}),E()],FM){constructor(){super(...arguments);n(this,mt);n(this,y$,i(ut,8,this,!1)),i(ut,11,this);n(this,w$,i(ut,12,this,!1)),i(ut,15,this);n(this,k$,i(ut,16,this,"top")),i(ut,19,this);n(this,E$,i(ut,20,this,6)),i(ut,23,this);n(this,C$,i(ut,24,this,500)),i(ut,27,this);n(this,$$,i(ut,28,this,0)),i(ut,31,this);n(this,S$,i(ut,32,this,!1)),i(ut,35,this);n(this,T$,i(ut,36,this,!1)),i(ut,39,this);n(this,A$,i(ut,40,this)),i(ut,43,this);n(this,bi);n(this,xi);n(this,nf,`tooltip-trigger-${crypto.randomUUID().slice(0,8)}`);n(this,af,`tooltip-popup-${crypto.randomUUID().slice(0,8)}`);n(this,I$,i(ut,44,this,{open:!1,triggerId:r(this,nf),popupId:r(this,af),side:"top",sideOffset:6,disabled:!1,triggerEl:void 0,openTooltip:()=>h(this,mt,UM).call(this),closeTooltip:()=>h(this,mt,qM).call(this),setTriggerEl:t=>h(this,mt,PM).call(this,t)})),i(ut,47,this)}connectedCallback(){super.connectedCallback(),this.defaultOpen&&!this.disabled&&p(this,mt,!0,rf)}disconnectedCallback(){super.disconnectedCallback(),h(this,mt,of).call(this)}willUpdate(t){let e=this.open||r(this,mt,ef);(t.has("open")||t.has("side")||t.has("sideOffset")||t.has("disabled")||this._ctx.open!==e||this._ctx.triggerEl!==r(this,mt,O$))&&(this._ctx={...this._ctx,open:e,side:this.side,sideOffset:this.sideOffset,disabled:this.disabled,triggerEl:r(this,mt,O$)})}render(){return f`<slot></slot>`}};ut=S(FM),y$=new WeakMap,w$=new WeakMap,k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,S$=new WeakMap,T$=new WeakMap,mt=new WeakSet,A$=new WeakMap,bi=new WeakMap,xi=new WeakMap,nf=new WeakMap,af=new WeakMap,I$=new WeakMap,of=function(){r(this,bi)&&(clearTimeout(r(this,bi)),p(this,bi,void 0)),r(this,xi)&&(clearTimeout(r(this,xi)),p(this,xi,void 0))},UM=function(){this.disabled||(h(this,mt,of).call(this),this.delay<=0?h(this,mt,L$).call(this):p(this,bi,setTimeout(()=>h(this,mt,L$).call(this),this.delay)))},qM=function(){h(this,mt,of).call(this),this.closeDelay<=0?h(this,mt,z$).call(this):p(this,xi,setTimeout(()=>h(this,mt,z$).call(this),this.closeDelay))},L$=function(){r(this,mt,ef)||(p(this,mt,!0,rf),this.dispatchEvent(sf({open:!0})))},z$=function(){r(this,mt,ef)&&(p(this,mt,!1,rf),this.dispatchEvent(sf({open:!1})))},PM=function(t){p(this,mt,t,VM)},d(ut,4,"open",BM,de,y$),d(ut,4,"defaultOpen",HM,de,w$),d(ut,4,"side",DM,de,k$),d(ut,4,"sideOffset",NM,de,E$),d(ut,4,"delay",MM,de,C$),d(ut,4,"closeDelay",zM,de,$$),d(ut,4,"disabled",LM,de,S$),_$=d(ut,20,"#internalOpen",OM,mt,T$),ef=_$.get,rf=_$.set,R$=d(ut,20,"#triggerEl",IM,mt,A$),O$=R$.get,VM=R$.set,d(ut,4,"_ctx",RM,de,I$),$(ut,de),g(de,"tagName","dui-tooltip"),g(de,"styles",[y,R4]);var I4=v`
7684
7684
  :host {
7685
7685
  display: contents;
7686
7686
  }
7687
- `,GH=g`
7687
+ `,O4=v`
7688
7688
  .Trigger {
7689
7689
  display: inline-flex;
7690
7690
  align-items: center;
@@ -7701,7 +7701,7 @@ label, legend, caption, figcaption, th, td {
7701
7701
  .Trigger[data-disabled] {
7702
7702
  cursor: not-allowed;
7703
7703
  }
7704
- `,zz,Mz,Bm,QC,Me,Um,Vm,qm,Pm,jm,Tr,ZC,Fm,Sr=class extends(Mz=b,zz=[h({type:Boolean,reflect:!0})],Mz){constructor(){super(...arguments);n(this,Tr);n(this,QC,i(Bm,8,this,!1)),i(Bm,11,this);n(this,Me,new W(this,{context:gl,subscribe:!0}));n(this,Um,()=>{r(this,Tr,Fm)||(u(this,Tr,ZC).call(this),r(this,Me).value?.openTooltip())});n(this,Vm,()=>{r(this,Me).value?.closeTooltip()});n(this,qm,()=>{r(this,Tr,Fm)||(u(this,Tr,ZC).call(this),r(this,Me).value?.openTooltip())});n(this,Pm,()=>{r(this,Me).value?.closeTooltip()});n(this,jm,t=>{t.key==="Escape"&&r(this,Me).value?.open&&r(this,Me).value?.closeTooltip()})}render(){let t=r(this,Me).value?.open??!1,e=r(this,Me).value?.popupId??"",a=r(this,Me).value?.triggerId??"";return m`
7704
+ `,jM,WM,lf,M$,Ue,cf,pf,hf,uf,mf,Mo,N$,df,zo=class extends(WM=b,jM=[u({type:Boolean,reflect:!0})],WM){constructor(){super(...arguments);n(this,Mo);n(this,M$,i(lf,8,this,!1)),i(lf,11,this);n(this,Ue,new K(this,{context:Al,subscribe:!0}));n(this,cf,()=>{r(this,Mo,df)||(h(this,Mo,N$).call(this),r(this,Ue).value?.openTooltip())});n(this,pf,()=>{r(this,Ue).value?.closeTooltip()});n(this,hf,()=>{r(this,Mo,df)||(h(this,Mo,N$).call(this),r(this,Ue).value?.openTooltip())});n(this,uf,()=>{r(this,Ue).value?.closeTooltip()});n(this,mf,t=>{t.key==="Escape"&&r(this,Ue).value?.open&&r(this,Ue).value?.closeTooltip()})}render(){let t=r(this,Ue).value?.open??!1,e=r(this,Ue).value?.popupId??"",a=r(this,Ue).value?.triggerId??"";return f`
7705
7705
  <span
7706
7706
  class="Trigger"
7707
7707
  part="trigger"
@@ -7710,16 +7710,16 @@ label, legend, caption, figcaption, th, td {
7710
7710
  tabindex="0"
7711
7711
  aria-describedby="${t?e:""}"
7712
7712
  ?data-popup-open="${t}"
7713
- ?data-disabled="${r(this,Tr,Fm)}"
7714
- @mouseenter="${r(this,Um)}"
7715
- @mouseleave="${r(this,Vm)}"
7716
- @focus="${r(this,qm)}"
7717
- @blur="${r(this,Pm)}"
7718
- @keydown="${r(this,jm)}"
7713
+ ?data-disabled="${r(this,Mo,df)}"
7714
+ @mouseenter="${r(this,cf)}"
7715
+ @mouseleave="${r(this,pf)}"
7716
+ @focus="${r(this,hf)}"
7717
+ @blur="${r(this,uf)}"
7718
+ @keydown="${r(this,mf)}"
7719
7719
  >
7720
7720
  <slot></slot>
7721
7721
  </span>
7722
- `}};Bm=T(Mz),QC=new WeakMap,Me=new WeakMap,Um=new WeakMap,Vm=new WeakMap,qm=new WeakMap,Pm=new WeakMap,jm=new WeakMap,Tr=new WeakSet,ZC=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;r(this,Me).value?.setTriggerEl(t)},Fm=function(){return this.disabled||(r(this,Me).value?.disabled??!1)},d(Bm,4,"disabled",zz,Sr,QC),$(Bm,Sr),v(Sr,"tagName","dui-tooltip-trigger"),v(Sr,"styles",[y,KH,GH]);var YH=g`
7722
+ `}};lf=S(WM),M$=new WeakMap,Ue=new WeakMap,cf=new WeakMap,pf=new WeakMap,hf=new WeakMap,uf=new WeakMap,mf=new WeakMap,Mo=new WeakSet,N$=function(){let t=this.shadowRoot?.querySelector('[part="trigger"]')??this;r(this,Ue).value?.setTriggerEl(t)},df=function(){return this.disabled||(r(this,Ue).value?.disabled??!1)},d(lf,4,"disabled",jM,zo,M$),$(lf,zo),g(zo,"tagName","dui-tooltip-trigger"),g(zo,"styles",[y,I4,O4]);var L4=v`
7723
7723
  :host {
7724
7724
  display: contents;
7725
7725
  }
@@ -7727,7 +7727,7 @@ label, legend, caption, figcaption, th, td {
7727
7727
  .slot-wrapper {
7728
7728
  display: none;
7729
7729
  }
7730
- `,XH=[g`
7730
+ `,z4=[v`
7731
7731
  .Popup {
7732
7732
  box-sizing: border-box;
7733
7733
  pointer-events: auto;
@@ -7768,19 +7768,19 @@ label, legend, caption, figcaption, th, td {
7768
7768
  left: 50%;
7769
7769
  transform: translateX(-50%) rotate(180deg);
7770
7770
  }
7771
- `],Nz,Dz,Hz,di,t$,e$,o$,Wm,Bz,dr,Qr,vl,ci,Fz,lr=class extends(Hz=b,Dz=[h({type:Boolean,attribute:"show-arrow"})],Nz=[E()],Hz){constructor(){super(...arguments);n(this,dr);n(this,t$,i(di,8,this,!0)),i(di,11,this);n(this,e$,i(di,12,this,"top")),i(di,15,this);n(this,Qr,new W(this,{context:gl,subscribe:!0}));n(this,vl,!1);n(this,ci,new ae(this,{getAnchor:()=>r(this,Qr).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:XH,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,dr,Wm)&&p(this,dr,e,Bz)},renderPopup:t=>{let e=r(this,Qr).value?.popupId??"";return m`
7771
+ `],KM,GM,YM,yi,D$,H$,B$,ff,XM,fo,as,Rl,wi,JM,mo=class extends(YM=b,GM=[u({type:Boolean,attribute:"show-arrow"})],KM=[E()],YM){constructor(){super(...arguments);n(this,fo);n(this,D$,i(yi,8,this,!0)),i(yi,11,this);n(this,H$,i(yi,12,this,"top")),i(yi,15,this);n(this,as,new K(this,{context:Al,subscribe:!0}));n(this,Rl,!1);n(this,wi,new he(this,{getAnchor:()=>r(this,as).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:z4,contentContainer:".Content",onPosition:({placement:t})=>{let e=t.split("-")[0];e!==r(this,fo,ff)&&p(this,fo,e,XM)},renderPopup:t=>{let e=r(this,as).value?.popupId??"";return f`
7772
7772
  <div
7773
7773
  class="Popup"
7774
7774
  id="${e}"
7775
7775
  role="tooltip"
7776
7776
  ?data-starting-style="${t.isStarting}"
7777
7777
  ?data-ending-style="${t.isEnding}"
7778
- data-side="${r(this,dr,Wm)}"
7778
+ data-side="${r(this,fo,ff)}"
7779
7779
  >
7780
7780
  <div class="Content"></div>
7781
- ${this.showArrow?cn(r(this,dr,Wm)):""}
7781
+ ${this.showArrow?En(r(this,fo,ff)):""}
7782
7782
  </div>
7783
- `}}))}updated(){let t=r(this,Qr).value?.open??!1;t&&!r(this,vl)?(u(this,dr,Fz).call(this),r(this,ci).open()):!t&&r(this,vl)&&r(this,ci).close(),p(this,vl,t)}render(){return m`<div class="slot-wrapper"><slot></slot></div>`}};di=T(Hz),t$=new WeakMap,e$=new WeakMap,dr=new WeakSet,Qr=new WeakMap,vl=new WeakMap,ci=new WeakMap,Fz=function(){let t=r(this,Qr).value?.side??"top";r(this,ci).placement=t,r(this,ci).offset=r(this,Qr).value?.sideOffset??6},d(di,4,"showArrow",Dz,lr,t$),o$=d(di,20,"#side",Nz,dr,e$),Wm=o$.get,Bz=o$.set,$(di,lr),v(lr,"tagName","dui-tooltip-popup"),v(lr,"styles",[y,YH]);var JH=k``,bl=class extends se{static styles=[...se.styles,JH]};customElements.define(bl.tagName,bl);var QH=k`
7783
+ `}}))}updated(){let t=r(this,as).value?.open??!1;t&&!r(this,Rl)?(h(this,fo,JM).call(this),r(this,wi).open()):!t&&r(this,Rl)&&r(this,wi).close(),p(this,Rl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};yi=S(YM),D$=new WeakMap,H$=new WeakMap,fo=new WeakSet,as=new WeakMap,Rl=new WeakMap,wi=new WeakMap,JM=function(){let t=r(this,as).value?.side??"top";r(this,wi).placement=t,r(this,wi).offset=r(this,as).value?.sideOffset??6},d(yi,4,"showArrow",GM,mo,D$),B$=d(yi,20,"#side",KM,fo,H$),ff=B$.get,XM=B$.set,$(yi,mo),g(mo,"tagName","dui-tooltip-popup"),g(mo,"styles",[y,L4]);var M4=k``,Il=class extends de{static styles=[...de.styles,M4]};customElements.define(Il.tagName,Il);var N4=k`
7784
7784
  .Popup {
7785
7785
  padding: var(--space-2) var(--space-2);
7786
7786
  border-radius: var(--radius-sm);
@@ -7807,7 +7807,270 @@ label, legend, caption, figcaption, th, td {
7807
7807
  fill: none;
7808
7808
  stroke: none;
7809
7809
  }
7810
- `,xl=class extends lr{static styles=[...lr.styles,QH]};customElements.define(xl.tagName,xl);var yl=class extends Sr{};customElements.define(yl.tagName,yl);var ZH=g`
7810
+ `,Ol=class extends mo{static styles=[...mo.styles,N4]};customElements.define(Ol.tagName,Ol);var Ll=class extends zo{};customElements.define(Ll.tagName,Ll);var gf=Symbol("dui-tree");var Y$=O("dui-load-children",{bubbles:!0,composed:!0}),D4=v`
7811
+ :host {
7812
+ display: block;
7813
+ }
7814
+
7815
+ [part="root"] {
7816
+ outline: none;
7817
+ }
7818
+
7819
+ [part="content"] {
7820
+ display: flex;
7821
+ align-items: center;
7822
+ }
7823
+
7824
+ [part="indicator"] {
7825
+ display: inline-flex;
7826
+ flex-shrink: 0;
7827
+ align-items: center;
7828
+ justify-content: center;
7829
+ }
7830
+
7831
+ .spacer {
7832
+ flex: 1;
7833
+ min-width: 0;
7834
+ }
7835
+
7836
+ [part="group"][hidden] {
7837
+ display: none;
7838
+ }
7839
+ `,QM,ZM,t5,e5,r5,o5,s5,re,F$,V$,U$,q$,P$,j$,W$,vf,i5,Z,zl,bf,kc,K$,Ec,G$,n5,ls,xf,yf,wf,oe=class extends(s5=b,o5=[u()],r5=[u({type:Boolean,reflect:!0})],e5=[u({type:Boolean,attribute:"has-children",reflect:!0})],t5=[u({type:Boolean,reflect:!0})],ZM=[Ot({context:gf,subscribe:!0}),E()],QM=[E()],s5){constructor(){super(...arguments);n(this,Z);n(this,F$,i(re,8,this,"")),i(re,11,this);n(this,V$,i(re,12,this,!1)),i(re,15,this);n(this,U$,i(re,16,this,!1)),i(re,19,this);n(this,q$,i(re,20,this,!1)),i(re,23,this);n(this,P$,i(re,24,this)),i(re,27,this);n(this,j$,i(re,28,this,!1)),i(re,31,this);n(this,zl,!1);n(this,xf,t=>{let a=t.target.assignedElements().some(l=>l.tagName==="DUI-TREE-ITEM");a!==r(this,Z,vf)&&p(this,Z,a,i5)});n(this,yf,t=>{t.stopPropagation(),!r(this,Z,Ec)&&this._ctx?.activate(this.value,this.isBranch)});n(this,wf,t=>{this.isBranch&&(t.stopPropagation(),!r(this,Z,Ec)&&this._ctx?.toggleExpand(this.value))})}get isBranch(){return r(this,Z,vf)||this.hasChildren}willUpdate(t){this.isBranch&&r(this,Z,kc)?!r(this,Z,vf)&&!r(this,zl)&&(p(this,zl,!0),this.dispatchEvent(Y$({value:this.value}))):r(this,Z,kc)||p(this,zl,!1)}updated(){this.style.setProperty("--dui-tree-level",String(r(this,Z,bf))),h(this,Z,ls).call(this,"data-expanded",r(this,Z,kc)&&this.isBranch),h(this,Z,ls).call(this,"data-selected",r(this,Z,K$)),h(this,Z,ls).call(this,"data-disabled",r(this,Z,Ec)),h(this,Z,ls).call(this,"data-branch",this.isBranch),h(this,Z,ls).call(this,"data-leaf",!this.isBranch),h(this,Z,ls).call(this,"data-focus",r(this,Z,G$)),h(this,Z,ls).call(this,"data-loading",this.loading),this.setAttribute("data-level",String(r(this,Z,bf))),this.loading?this.setAttribute("aria-busy","true"):this.removeAttribute("aria-busy")}render(){let t=this.isBranch,e=r(this,Z,kc)&&t,a=r(this,Z,Ec),l=r(this,Z,K$),c=r(this,Z,G$),m=this.loading,x=r(this,Z,bf),C=r(this,Z,n5),T=this._ctx?.selectionMode??"none";return f`
7840
+ <div
7841
+ part="root"
7842
+ role="treeitem"
7843
+ tabindex=${c?0:-1}
7844
+ aria-level=${x}
7845
+ aria-setsize=${C.length}
7846
+ aria-posinset=${C.indexOf(this)+1}
7847
+ aria-expanded=${t?String(e):I}
7848
+ aria-selected=${T!=="none"?String(l):I}
7849
+ aria-disabled=${a?"true":I}
7850
+ aria-busy=${m?"true":I}
7851
+ data-level=${x}
7852
+ ?data-expanded=${e}
7853
+ ?data-selected=${l}
7854
+ ?data-disabled=${a}
7855
+ ?data-branch=${t}
7856
+ ?data-leaf=${!t}
7857
+ ?data-focus=${c}
7858
+ ?data-loading=${m}
7859
+ @click=${r(this,yf)}
7860
+ >
7861
+ <div part="content">
7862
+ <span
7863
+ part="indicator"
7864
+ ?data-branch=${t}
7865
+ ?data-leaf=${!t}
7866
+ ?data-loading=${m}
7867
+ @click=${r(this,wf)}
7868
+ ></span>
7869
+ <slot name="label"></slot>
7870
+ <span class="spacer"></span>
7871
+ <slot name="end"></slot>
7872
+ </div>
7873
+ <div
7874
+ part="group"
7875
+ role=${t?"group":I}
7876
+ ?hidden=${!t||!e}
7877
+ >
7878
+ <slot @slotchange=${r(this,xf)}></slot>
7879
+ </div>
7880
+ </div>
7881
+ `}};re=S(s5),F$=new WeakMap,V$=new WeakMap,U$=new WeakMap,q$=new WeakMap,P$=new WeakMap,j$=new WeakMap,Z=new WeakSet,zl=new WeakMap,bf=function(){let t=1,e=this.parentElement;for(;e&&(e.tagName==="DUI-TREE-ITEM"&&t++,e.tagName!=="DUI-TREE");)e=e.parentElement;return t},kc=function(){return this._ctx?.expandedValues.includes(this.value)??!1},K$=function(){return this._ctx?.selectedValues.includes(this.value)??!1},Ec=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},G$=function(){return this._ctx?.focusedValue===this.value},n5=function(){return Array.from(this.parentElement?.children??[]).filter(t=>t.tagName==="DUI-TREE-ITEM")},ls=function(t,e){e?this.hasAttribute(t)||this.setAttribute(t,""):this.hasAttribute(t)&&this.removeAttribute(t)},xf=new WeakMap,yf=new WeakMap,wf=new WeakMap,d(re,4,"value",o5,oe,F$),d(re,4,"disabled",r5,oe,V$),d(re,4,"hasChildren",e5,oe,U$),d(re,4,"loading",t5,oe,q$),d(re,4,"_ctx",ZM,oe,P$),W$=d(re,20,"#hasSlottedChildren",QM,Z,j$),vf=W$.get,i5=W$.set,$(re,oe),g(oe,"tagName","dui-tree-item"),g(oe,"styles",[y,D4]);var Tf=O("dui-expanded-change",{bubbles:!0,composed:!0}),h1=O("dui-selection-change",{bubbles:!0,composed:!0}),u1=O("dui-action",{bubbles:!0,composed:!0}),H4=v`
7882
+ :host {
7883
+ display: block;
7884
+ }
7885
+
7886
+ [part="root"] {
7887
+ outline: none;
7888
+ }
7889
+ `,a5,l5,d5,c5,p5,h5,u5,m5,f5,g5,v5,ft,X$,J$,Q$,Z$,t1,e1,r1,o1,b5,kf,F,s1,i1,d1,Cc,n1,a1,Ef,Cf,ki,go,Ei,No,$c,Ci,_f,Sc,Tc,l1,$f,c1,B4,Sf,x5,y5,ds,p1,Af,Rf,w5,k5,be=class extends(v5=b,g5=[u({type:Array})],f5=[u({type:Array,attribute:"default-expanded-values"})],m5=[u({attribute:"selection-mode",reflect:!0})],u5=[u({type:Array})],h5=[u({type:Array,attribute:"default-selected-values"})],p5=[u({type:Boolean,reflect:!0})],c5=[E()],d5=[E()],l5=[E()],a5=[vt({context:gf}),E()],v5){constructor(){super(...arguments);n(this,F);n(this,X$,i(ft,8,this)),i(ft,11,this);n(this,J$,i(ft,12,this,[])),i(ft,15,this);n(this,Q$,i(ft,16,this,"none")),i(ft,19,this);n(this,Z$,i(ft,20,this)),i(ft,23,this);n(this,t1,i(ft,24,this,[])),i(ft,27,this);n(this,e1,i(ft,28,this,!1)),i(ft,31,this);n(this,r1,i(ft,32,this,[])),i(ft,35,this);n(this,s1,i(ft,36,this,[])),i(ft,39,this);n(this,n1,i(ft,40,this,null)),i(ft,43,this);n(this,ki,"");n(this,go,null);n(this,Ei,null);n(this,No,()=>this.expandedValues??r(this,F,b5));n(this,$c,()=>this.selectedValues??r(this,F,d1));n(this,Ci,t=>{let e=[...r(this,No).call(this)],l=e.indexOf(t)>=0?e.filter(c=>c!==t):[...e,t];this.expandedValues===void 0&&p(this,F,l,kf),this.dispatchEvent(Tf({values:l}))});n(this,_f,t=>{let e=[...r(this,$c).call(this)],a=e.indexOf(t),l;this.selectionMode==="single"?l=a>=0?[]:[t]:l=a>=0?e.filter(c=>c!==t):[...e,t],this.selectedValues===void 0&&p(this,F,l,Cc),this.dispatchEvent(h1({values:l}))});n(this,Sc,(t,e)=>{this.disabled||(this.selectionMode!=="none"?r(this,_f).call(this,t):e?r(this,Ci).call(this,t):this.dispatchEvent(u1({value:t})))});n(this,Tc,t=>{r(this,F,Ef)!==t&&p(this,F,t,Cf)});n(this,l1,i(ft,44,this,h(this,F,$f).call(this))),i(ft,47,this);n(this,Af,t=>{let e=h(this,F,p1).call(this,t);e&&r(this,Tc).call(this,e.value)});n(this,Rf,t=>{if(this.disabled)return;let e=h(this,F,p1).call(this,t);if(!e)return;let a=h(this,F,Sf).call(this),l=a.indexOf(e);switch(t.key){case"ArrowDown":{t.preventDefault(),l<a.length-1&&h(this,F,ds).call(this,a[l+1]);break}case"ArrowUp":{t.preventDefault(),l>0&&h(this,F,ds).call(this,a[l-1]);break}case"ArrowRight":{if(t.preventDefault(),!e.isBranch)break;r(this,No).call(this).includes(e.value)?l<a.length-1&&h(this,F,ds).call(this,a[l+1]):r(this,Ci).call(this,e.value);break}case"ArrowLeft":{if(t.preventDefault(),e.isBranch&&r(this,No).call(this).includes(e.value))r(this,Ci).call(this,e.value);else{let c=h(this,F,y5).call(this,e);c&&h(this,F,ds).call(this,c)}break}case"Enter":case" ":{t.preventDefault(),e.disabled||r(this,Sc).call(this,e.value,e.isBranch);break}case"Home":{t.preventDefault(),a[0]&&h(this,F,ds).call(this,a[0]);break}case"End":{t.preventDefault();let c=a[a.length-1];c&&h(this,F,ds).call(this,c);break}case"*":{t.preventDefault(),h(this,F,w5).call(this,e);break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&h(this,F,k5).call(this,e,t.key)}})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tree"),this.expandedValues===void 0&&this.defaultExpandedValues.length>0&&p(this,F,[...this.defaultExpandedValues],kf),this.selectedValues===void 0&&this.defaultSelectedValues.length>0&&p(this,F,[...this.defaultSelectedValues],Cc),this._ctx=h(this,F,$f).call(this),p(this,Ei,new MutationObserver(()=>this.requestUpdate())),r(this,Ei).observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})}disconnectedCallback(){super.disconnectedCallback(),r(this,Ei)?.disconnect(),p(this,Ei,null),r(this,go)&&clearTimeout(r(this,go)),p(this,go,null),p(this,ki,"")}willUpdate(t){if(this.selectionMode==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),t.has("selectionMode")&&this.selectedValues===void 0){let e=r(this,F,d1);this.selectionMode==="none"&&e.length>0?p(this,F,[],Cc):this.selectionMode==="single"&&e.length>1&&p(this,F,[e[0]],Cc)}this._ctx=h(this,F,$f).call(this)}updated(){if(r(this,F,Ef)===null){let t=h(this,F,Sf).call(this).find(e=>!e.disabled);t&&p(this,F,t.value,Cf)}}render(){return f`
7890
+ <div
7891
+ part="root"
7892
+ ?data-disabled=${this.disabled}
7893
+ @keydown=${r(this,Rf)}
7894
+ @focusin=${r(this,Af)}
7895
+ >
7896
+ <slot></slot>
7897
+ </div>
7898
+ `}};ft=S(v5),X$=new WeakMap,J$=new WeakMap,Q$=new WeakMap,Z$=new WeakMap,t1=new WeakMap,e1=new WeakMap,r1=new WeakMap,F=new WeakSet,s1=new WeakMap,n1=new WeakMap,ki=new WeakMap,go=new WeakMap,Ei=new WeakMap,No=new WeakMap,$c=new WeakMap,Ci=new WeakMap,_f=new WeakMap,Sc=new WeakMap,Tc=new WeakMap,l1=new WeakMap,$f=function(){return{expandedValues:r(this,No).call(this),selectedValues:r(this,$c).call(this),selectionMode:this.selectionMode,disabled:this.disabled,focusedValue:r(this,F,Ef),toggleExpand:r(this,Ci),activate:r(this,Sc),setFocused:r(this,Tc)}},c1=function(){return[...this.querySelectorAll("dui-tree-item")]},B4=function(t){return h(this,F,c1).call(this).find(e=>e.value===t)},Sf=function(){return h(this,F,c1).call(this).filter(t=>h(this,F,x5).call(this,t))},x5=function(t){let e=t.parentElement;for(;e;){if(e===this)return!0;if(e instanceof oe&&!r(this,No).call(this).includes(e.value))return!1;e=e.parentElement}return!1},y5=function(t){let e=t.parentElement;for(;e;){if(e===this)return null;if(e instanceof oe)return e;e=e.parentElement}return null},ds=function(t){p(this,F,t.value,Cf),t.shadowRoot?.querySelector("[part='root']")?.focus()},p1=function(t){return t.composedPath().find(e=>e instanceof oe)??null},Af=new WeakMap,Rf=new WeakMap,w5=function(t){let e=Array.from(t.parentElement?.children??[]).filter(m=>m instanceof oe&&m.isBranch&&!m.disabled),a=r(this,No).call(this),l=e.map(m=>m.value).filter(m=>!a.includes(m));if(l.length===0)return;let c=[...a,...l];this.expandedValues===void 0&&p(this,F,c,kf),this.dispatchEvent(Tf({values:c}))},k5=function(t,e){p(this,ki,r(this,ki)+e.toLowerCase()),r(this,go)&&clearTimeout(r(this,go)),p(this,go,setTimeout(()=>{p(this,ki,""),p(this,go,null)},500));let a=h(this,F,Sf).call(this),l=a.indexOf(t),m=[...a.slice(l+1),...a.slice(0,l+1)].find(x=>(x.querySelector("[slot='label']")?.textContent?.trim().toLowerCase()??"").startsWith(r(this,ki)));m&&h(this,F,ds).call(this,m)},d(ft,4,"expandedValues",g5,be,X$),d(ft,4,"defaultExpandedValues",f5,be,J$),d(ft,4,"selectionMode",m5,be,Q$),d(ft,4,"selectedValues",u5,be,Z$),d(ft,4,"defaultSelectedValues",h5,be,t1),d(ft,4,"disabled",p5,be,e1),o1=d(ft,20,"#internalExpanded",c5,F,r1),b5=o1.get,kf=o1.set,i1=d(ft,20,"#internalSelected",d5,F,s1),d1=i1.get,Cc=i1.set,a1=d(ft,20,"#focusedValue",l5,F,n1),Ef=a1.get,Cf=a1.set,d(ft,4,"_ctx",a5,be,l1),$(ft,be),g(be,"tagName","dui-tree"),g(be,"styles",[y,H4]);var F4=k`
7899
+ /* ── Sizes — write to public tokens on :host so consumer overrides win ── */
7900
+
7901
+ :host {
7902
+ /* Default = sm */
7903
+ --dui-tree-row-height: var(--component-height-sm);
7904
+ --dui-tree-indent: var(--space-4);
7905
+ --dui-tree-row-spacing: 0;
7906
+ --dui-tree-row-radius: var(--radius-sm);
7907
+ --dui-tree-hover-bg: oklch(from var(--foreground) l c h / 0.05);
7908
+ --dui-tree-selected-bg: oklch(from var(--foreground) l c h / 0.10);
7909
+
7910
+ /* Internal-only (not part of public token surface) */
7911
+ --_tree-label-font-size: var(--text-xs);
7912
+ --_tree-label-line-height: var(--text-xs--line-height);
7913
+ --_tree-end-font-size: var(--text-2xs);
7914
+ --_tree-end-line-height: var(--text-2xs--line-height);
7915
+ --_tree-indicator-size: 14px;
7916
+ --_tree-row-px: var(--space-2);
7917
+ --_tree-inline-gap: var(--space-2);
7918
+ }
7919
+
7920
+ :host([size="md"]) {
7921
+ --dui-tree-row-height: var(--component-height-md);
7922
+ --dui-tree-indent: var(--space-5);
7923
+ --_tree-label-font-size: var(--text-sm);
7924
+ --_tree-label-line-height: var(--text-sm--line-height);
7925
+ --_tree-end-font-size: var(--text-xs);
7926
+ --_tree-end-line-height: var(--text-xs--line-height);
7927
+ --_tree-indicator-size: var(--space-4);
7928
+ --_tree-inline-gap: var(--space-2);
7929
+ }
7930
+
7931
+ :host([size="lg"]) {
7932
+ --dui-tree-row-height: var(--component-height-lg);
7933
+ --dui-tree-indent: var(--space-6);
7934
+ --_tree-label-font-size: var(--text-sm);
7935
+ --_tree-label-line-height: var(--text-sm--line-height);
7936
+ --_tree-end-font-size: var(--text-xs);
7937
+ --_tree-end-line-height: var(--text-xs--line-height);
7938
+ --_tree-indicator-size: var(--space-4);
7939
+ --_tree-inline-gap: var(--space-2_5);
7940
+ }
7941
+ `,Ml=class extends be{static styles=[...be.styles,F4]};customElements.define(Ml.tagName,Ml);var E5=bo(`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='m9 18 6-6-6-6'/%3E%3C/svg%3E")`),C5=bo(`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='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E")`),V4=k`
7942
+ /* ── Row container ─────────────────────────────────────────────────── */
7943
+
7944
+ /*
7945
+ * IMPORTANT: All visual styling lives on [part="content"], NOT [part="root"].
7946
+ * [part="root"] wraps both the row and the children group, so :hover on it
7947
+ * would bleed onto descendant rows. See the hover-bleed regression demo.
7948
+ */
7949
+ [part="content"] {
7950
+ height: var(--dui-tree-row-height);
7951
+ padding-inline-start: calc(
7952
+ var(--_tree-row-px) +
7953
+ (var(--dui-tree-level, 1) - 1) * var(--dui-tree-indent)
7954
+ );
7955
+ padding-inline-end: var(--_tree-row-px);
7956
+ margin-block: calc(var(--dui-tree-row-spacing) / 2);
7957
+ margin-inline: var(--space-1);
7958
+ border-radius: var(--dui-tree-row-radius);
7959
+ gap: var(--_tree-inline-gap);
7960
+ color: var(--text-1);
7961
+ font-family: var(--font-sans);
7962
+ font-size: var(--_tree-label-font-size);
7963
+ line-height: var(--_tree-label-line-height);
7964
+ cursor: pointer;
7965
+ transition-property: background, box-shadow, color;
7966
+ transition-duration: var(--duration-faster);
7967
+ transition-timing-function: var(--ease-out-3);
7968
+ /* Allow children to truncate */
7969
+ min-width: 0;
7970
+ }
7971
+
7972
+ @media (hover: hover) {
7973
+ [part="content"]:hover {
7974
+ background: var(--dui-tree-hover-bg);
7975
+ }
7976
+ }
7977
+
7978
+ :host([data-selected]) [part="content"] {
7979
+ background: var(--dui-tree-selected-bg);
7980
+ }
7981
+
7982
+ :host([data-disabled]) [part="content"] {
7983
+ opacity: 0.4;
7984
+ cursor: not-allowed;
7985
+ }
7986
+
7987
+ /* ── Focus ring ─────────────────────────────────────────────────────── */
7988
+
7989
+ [part="root"]:focus-visible {
7990
+ outline: none;
7991
+ }
7992
+
7993
+ [part="root"]:focus-visible [part="content"] {
7994
+ box-shadow:
7995
+ 0 0 0 var(--focus-ring-offset) var(--background),
7996
+ 0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width))
7997
+ var(--focus-ring-color);
7998
+ /* Keep the highlighted row above siblings so the ring isn't clipped. */
7999
+ position: relative;
8000
+ z-index: 1;
8001
+ }
8002
+
8003
+ /* ── Indicator (chevron / spinner / leaf placeholder) ─────────────── */
8004
+
8005
+ [part="indicator"] {
8006
+ width: var(--_tree-indicator-size);
8007
+ height: var(--_tree-indicator-size);
8008
+ color: var(--text-2);
8009
+ }
8010
+
8011
+ /* Branch chevron */
8012
+ :host([data-branch]) [part="indicator"]::before {
8013
+ content: "";
8014
+ display: block;
8015
+ width: 100%;
8016
+ height: 100%;
8017
+ background: currentColor;
8018
+ -webkit-mask: ${E5} center / contain no-repeat;
8019
+ mask: ${E5} center / contain no-repeat;
8020
+ transition-property: transform;
8021
+ transition-duration: var(--duration-fast);
8022
+ transition-timing-function: var(--ease-out-3);
8023
+ }
8024
+
8025
+ :host([data-expanded]) [part="indicator"]::before {
8026
+ transform: rotate(90deg);
8027
+ }
8028
+
8029
+ /* Loading spinner replaces the chevron in-place */
8030
+ :host([data-loading]) [part="indicator"]::before {
8031
+ -webkit-mask: ${C5} center / contain no-repeat;
8032
+ mask: ${C5} center / contain no-repeat;
8033
+ transform: none;
8034
+ animation: dui-tree-spin 0.9s linear infinite;
8035
+ }
8036
+
8037
+ @keyframes dui-tree-spin {
8038
+ from {
8039
+ transform: rotate(0deg);
8040
+ }
8041
+ to {
8042
+ transform: rotate(360deg);
8043
+ }
8044
+ }
8045
+
8046
+ /* ── Slotted content ────────────────────────────────────────────────── */
8047
+
8048
+ ::slotted([slot="label"]) {
8049
+ min-width: 0;
8050
+ overflow: hidden;
8051
+ text-overflow: ellipsis;
8052
+ white-space: nowrap;
8053
+ }
8054
+
8055
+ ::slotted([slot="end"]) {
8056
+ flex-shrink: 0;
8057
+ color: var(--text-2);
8058
+ font-size: var(--_tree-end-font-size);
8059
+ line-height: var(--_tree-end-line-height);
8060
+ }
8061
+
8062
+ /* ── Reduced motion ────────────────────────────────────────────────── */
8063
+
8064
+ @media (prefers-reduced-motion: reduce) {
8065
+ [part="content"],
8066
+ :host([data-branch]) [part="indicator"]::before {
8067
+ transition-duration: 0s;
8068
+ }
8069
+ :host([data-loading]) [part="indicator"]::before {
8070
+ animation: none;
8071
+ }
8072
+ }
8073
+ `,Nl=class extends oe{static styles=[...oe.styles,V4]};customElements.define(Nl.tagName,Nl);var U4=v`
7811
8074
  :host {
7812
8075
  display: block;
7813
8076
  }
@@ -7826,10 +8089,10 @@ label, legend, caption, figcaption, th, td {
7826
8089
  display: -webkit-box;
7827
8090
  -webkit-box-orient: vertical;
7828
8091
  }
7829
- `,Uz,Vz,qz,pi,r$,s$,Co=class extends(qz=b,Vz=[h({attribute:"max-width"})],Uz=[h({attribute:"max-lines",type:Number,reflect:!0})],qz){constructor(){super(...arguments);n(this,r$,i(pi,8,this,"20rem")),i(pi,11,this);n(this,s$,i(pi,12,this)),i(pi,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=An({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return m`<div part="root" style=${e}><slot></slot></div>`}};pi=T(qz),r$=new WeakMap,s$=new WeakMap,d(pi,4,"maxWidth",Vz,Co,r$),d(pi,4,"maxLines",Uz,Co,s$),$(pi,Co),v(Co,"tagName","dui-trunc"),v(Co,"styles",[y,ZH]);var tB=k`
8092
+ `,$5,S5,T5,$i,m1,f1,Ar=class extends(T5=b,S5=[u({attribute:"max-width"})],$5=[u({attribute:"max-lines",type:Number,reflect:!0})],T5){constructor(){super(...arguments);n(this,m1,i($i,8,this,"20rem")),i($i,11,this);n(this,f1,i($i,12,this)),i($i,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=Un({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${e}><slot></slot></div>`}};$i=S(T5),m1=new WeakMap,f1=new WeakMap,d($i,4,"maxWidth",S5,Ar,m1),d($i,4,"maxLines",$5,Ar,f1),$($i,Ar),g(Ar,"tagName","dui-trunc"),g(Ar,"styles",[y,U4]);var q4=k`
7830
8093
  [part="root"] {
7831
8094
  font-family: var(--font-sans);
7832
8095
  font-size: var(--text-sm); line-height: var(--text-sm--line-height);
7833
8096
  color: var(--text-1);
7834
8097
  }
7835
- `,wl=class extends Co{static styles=[...Co.styles,tB]};customElements.define(wl.tagName,wl);
8098
+ `,Dl=class extends Ar{static styles=[...Ar.styles,q4]};customElements.define(Dl.tagName,Dl);