@deepfuture/dui-cdn 1.4.3 → 1.4.5
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.
- package/dui.js +12 -2
- package/dui.min.js +173 -173
- package/package.json +1 -1
package/dui.min.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDescriptor;var N_=(i,r)=>(r=Symbol[i])?r:Symbol.for("Symbol."+i),Mn=i=>{throw TypeError(i)};var D_=(i,r,t)=>r in i?fb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var M_=(i,r)=>fb(i,"name",{value:r,configurable:!0});var A=i=>[,,,x3(i?.[N_("metadata")]??null)],H_=["class","method","getter","setter","accessor","field","value","get","set"],mc=i=>i!==void 0&&typeof i!="function"?Mn("Function expected"):i,w3=(i,r,t,e,s)=>({kind:H_[i],name:r,metadata:e,addInitializer:l=>t._?Mn("Already initialized"):s.push(mc(l||null))}),T=(i,r)=>D_(r,N_("metadata"),i[3]),n=(i,r,t,e)=>{for(var s=0,l=i[r>>1],d=l&&l.length;s<d;s++)r&1?l[s].call(t):e=l[s].call(t,e);return e},c=(i,r,t,e,s,l)=>{var d,m,g,E,$,y=r&7,_=!!(r&8),S=!!(r&16),O=y>3?i.length+1:y?_?1:2:0,B=H_[y+5],j=y>3&&(i[O-1]=[]),K=i[O]||(i[O]=[]),F=y&&(!S&&!_&&(s=s.prototype),y<5&&(y>3||!S)&&y3(y<4?s:{get[t](){return o(this,l)},set[t](J){return h(this,l,J)}},t));y?S&&y<4&&M_(l,(y>2?"set ":y>1?"get ":"")+t):M_(s,t);for(var G=e.length-1;G>=0;G--)E=w3(y,t,g={},i[3],K),y&&(E.static=_,E.private=S,$=E.access={has:S?J=>k3(s,J):J=>t in J},y^3&&($.get=S?J=>(y^1?o:p)(J,s,y^4?l:F.get):J=>J[t]),y>2&&($.set=S?(J,ge)=>h(J,s,ge,y^4?l:F.set):(J,ge)=>J[t]=ge)),m=(0,e[G])(y?y<4?S?l:F[B]:y>4?void 0:{get:F.get,set:F.set}:s,E),g._=1,y^4||m===void 0?mc(m)&&(y>4?j.unshift(m):y?S?l=m:F[B]=m:s=m):typeof m!="object"||m===null?Mn("Object expected"):(mc(d=m.get)&&(F.get=d),mc(d=m.set)&&(F.set=d),mc(d=m.init)&&j.unshift(d));return y||T(i,s),F&&fb(s,t,F),S?y^4?l:F:s},v=(i,r,t)=>D_(i,typeof r!="symbol"?r+"":r,t),gb=(i,r,t)=>r.has(i)||Mn("Cannot "+t),k3=(i,r)=>Object(r)!==r?Mn('Cannot use the "in" operator on this value'):i.has(r),o=(i,r,t)=>(gb(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?Mn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),h=(i,r,t,e)=>(gb(i,r,"write to private field"),e?e.call(i,t):r.set(i,t),t),p=(i,r,t)=>(gb(i,r,"access private method"),t);var
|
|
1
|
+
var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDescriptor;var N_=(i,r)=>(r=Symbol[i])?r:Symbol.for("Symbol."+i),Mn=i=>{throw TypeError(i)};var D_=(i,r,t)=>r in i?fb(i,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[r]=t;var M_=(i,r)=>fb(i,"name",{value:r,configurable:!0});var A=i=>[,,,x3(i?.[N_("metadata")]??null)],H_=["class","method","getter","setter","accessor","field","value","get","set"],mc=i=>i!==void 0&&typeof i!="function"?Mn("Function expected"):i,w3=(i,r,t,e,s)=>({kind:H_[i],name:r,metadata:e,addInitializer:l=>t._?Mn("Already initialized"):s.push(mc(l||null))}),T=(i,r)=>D_(r,N_("metadata"),i[3]),n=(i,r,t,e)=>{for(var s=0,l=i[r>>1],d=l&&l.length;s<d;s++)r&1?l[s].call(t):e=l[s].call(t,e);return e},c=(i,r,t,e,s,l)=>{var d,m,g,E,$,y=r&7,_=!!(r&8),S=!!(r&16),O=y>3?i.length+1:y?_?1:2:0,B=H_[y+5],j=y>3&&(i[O-1]=[]),K=i[O]||(i[O]=[]),F=y&&(!S&&!_&&(s=s.prototype),y<5&&(y>3||!S)&&y3(y<4?s:{get[t](){return o(this,l)},set[t](J){return h(this,l,J)}},t));y?S&&y<4&&M_(l,(y>2?"set ":y>1?"get ":"")+t):M_(s,t);for(var G=e.length-1;G>=0;G--)E=w3(y,t,g={},i[3],K),y&&(E.static=_,E.private=S,$=E.access={has:S?J=>k3(s,J):J=>t in J},y^3&&($.get=S?J=>(y^1?o:p)(J,s,y^4?l:F.get):J=>J[t]),y>2&&($.set=S?(J,ge)=>h(J,s,ge,y^4?l:F.set):(J,ge)=>J[t]=ge)),m=(0,e[G])(y?y<4?S?l:F[B]:y>4?void 0:{get:F.get,set:F.set}:s,E),g._=1,y^4||m===void 0?mc(m)&&(y>4?j.unshift(m):y?S?l=m:F[B]=m:s=m):typeof m!="object"||m===null?Mn("Object expected"):(mc(d=m.get)&&(F.get=d),mc(d=m.set)&&(F.set=d),mc(d=m.init)&&j.unshift(d));return y||T(i,s),F&&fb(s,t,F),S?y^4?l:F:s},v=(i,r,t)=>D_(i,typeof r!="symbol"?r+"":r,t),gb=(i,r,t)=>r.has(i)||Mn("Cannot "+t),k3=(i,r)=>Object(r)!==r?Mn('Cannot use the "in" operator on this value'):i.has(r),o=(i,r,t)=>(gb(i,r,"read from private field"),t?t.call(i):r.get(i)),a=(i,r,t)=>r.has(i)?Mn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,t),h=(i,r,t,e)=>(gb(i,r,"write to private field"),e?e.call(i,t):r.set(i,t),t),p=(i,r,t)=>(gb(i,r,"access private method"),t);var Cs=(i,r,t,e)=>({set _(s){h(i,r,s,t)},get _(){return o(i,r,e)}});var Ch=globalThis,$h=Ch.ShadowRoot&&(Ch.ShadyCSS===void 0||Ch.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vb=Symbol(),B_=new WeakMap,fc=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==vb)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if($h&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=B_.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&B_.set(t,r))}return r}toString(){return this.cssText}},Qr=i=>new fc(typeof i=="string"?i:i+"",void 0,vb),k=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new fc(t,i,vb)},F_=(i,r)=>{if($h)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=Ch.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},bb=$h?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return Qr(t)})(i):i;var{is:E3,defineProperty:C3,getOwnPropertyDescriptor:$3,getOwnPropertyNames:T3,getOwnPropertySymbols:S3,getPrototypeOf:A3}=Object,Th=globalThis,V_=Th.trustedTypes,_3=V_?V_.emptyScript:"",R3=Th.reactiveElementPolyfillSupport,gc=(i,r)=>i,vc={toAttribute(i,r){switch(r){case Boolean:i=i?_3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Sh=(i,r)=>!E3(i,r),P_={attribute:!0,type:String,converter:vc,reflect:!1,useDefault:!1,hasChanged:Sh};Symbol.metadata??=Symbol("metadata"),Th.litPropertyMetadata??=new WeakMap;var Zr=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=P_){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&C3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=$3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??P_}static _$Ei(){if(this.hasOwnProperty(gc("elementProperties")))return;let r=A3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(gc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gc("properties"))){let t=this.properties,e=[...T3(t),...S3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(bb(s))}else r!==void 0&&t.push(bb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return F_(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:vc).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:vc;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??Sh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};Zr.elementStyles=[],Zr.shadowRootOptions={mode:"open"},Zr[gc("elementProperties")]=new Map,Zr[gc("finalized")]=new Map,R3?.({ReactiveElement:Zr}),(Th.reactiveElementVersions??=[]).push("2.1.2");var $b=globalThis,U_=i=>i,Ah=$b.trustedTypes,q_=Ah?Ah.createPolicy("lit-html",{createHTML:i=>i}):void 0,X_="$lit$",$s=`lit$${Math.random().toFixed(9).slice(2)}$`,J_="?"+$s,I3=`<${J_}>`,ci=document,xc=()=>ci.createComment(""),yc=i=>i===null||typeof i!="object"&&typeof i!="function",Tb=Array.isArray,L3=i=>Tb(i)||typeof i?.[Symbol.iterator]=="function",xb=`[
|
|
2
2
|
\f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j_=/-->/g,K_=/>/g,li=RegExp(`>|${xb}(?:([^\\s"'>=/]+)(${xb}*=${xb}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Sb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),Zr=Sb(1),_6=Sb(2),R6=Sb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!Tb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var z3=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+I3:y>=0?(e.push(E),g.slice(0,y)+X_+g.slice(y)+Cs+S):g+Cs+(y===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=z3(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(X_)){let _=$[d++],S=s.getAttribute(y).split(Cs),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?wb:O[1]==="?"?kb:O[1]==="@"?Eb:Dn}),s.removeAttribute(y)}else y.startsWith(Cs)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(Q_.test(s.tagName)){let y=s.textContent.split(Cs),_=y.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],xc()),di.nextNode(),g.push({type:2,index:++l});s.append(y[_],xc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(Cs,y+1))!==-1;)g.push({type:7,index:l}),y+=Cs.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=yc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var yb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Cb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),yc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):L3(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&yc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new yb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){Tb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(xc()),this.O(xc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!yc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!yc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},wb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},kb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},Eb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Cb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var O3=$b.litHtmlPolyfillSupport;O3?.(wc,kc),($b.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(xc(),l),l,void 0,t??{})}return s._$AI(i),s};var Ab=globalThis,Hn=class extends Qr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Ab.litElementHydrateSupport?.({LitElement:Hn});var M3=Ab.litElementPolyfillSupport;M3?.({LitElement:Hn});(Ab.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_b=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==_b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,_b),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,_b)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},Rb=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:N3,defineProperty:D3,getOwnPropertyDescriptor:H3,getOwnPropertyNames:B3,getOwnPropertySymbols:F3,getPrototypeOf:V3}=Object,Lh=globalThis,rR=Lh.trustedTypes,P3=rR?rR.emptyScript:"",U3=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?P3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},zh=(i,r)=>!N3(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:zh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var ts=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&D3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=H3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=V3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...B3(t),...F3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(Rb(s))}else r!==void 0&&t.push(Rb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??zh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};ts.elementStyles=[],ts.shadowRootOptions={mode:"open"},ts[Cc("elementProperties")]=new Map,ts[Cc("finalized")]=new Map,U3?.({ReactiveElement:ts}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Lb=globalThis,iR=i=>i,Oh=Lb.trustedTypes,nR=Oh?Oh.createPolicy("lit-html",{createHTML:i=>i}):void 0,zb="$lit$",es=`lit$${Math.random().toFixed(9).slice(2)}$`,Ob="?"+es,q3=`<${Ob}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Mb=Array.isArray,hR=i=>Mb(i)||typeof i?.[Symbol.iterator]=="function",Ib=`[
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),W_=/'/g,Y_=/"/g,Q_=/^(?:script|style|textarea|title)$/i,Sb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),ts=Sb(1),_6=Sb(2),R6=Sb(3),pi=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),G_=new WeakMap,di=ci.createTreeWalker(ci,129);function Z_(i,r){if(!Tb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return q_!==void 0?q_.createHTML(r):r}var z3=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=bc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===bc?$[1]==="!--"?d=j_:$[1]!==void 0?d=K_:$[2]!==void 0?(Q_.test($[2])&&(s=RegExp("</"+$[2],"g")),d=li):$[3]!==void 0&&(d=li):d===li?$[0]===">"?(d=s??bc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?li:$[3]==='"'?Y_:W_):d===Y_||d===W_?d=li:d===j_||d===K_?d=bc:(d=li,s=void 0);let S=d===li&&i[m+1].startsWith("/>")?" ":"";l+=d===bc?g+I3:y>=0?(e.push(E),g.slice(0,y)+X_+g.slice(y)+$s+S):g+$s+(y===-2?m:S)}return[Z_(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},wc=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=z3(r,t);if(this.el=i.createElement(E,e),di.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=di.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(X_)){let _=$[d++],S=s.getAttribute(y).split($s),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?wb:O[1]==="?"?kb:O[1]==="@"?Eb:Dn}),s.removeAttribute(y)}else y.startsWith($s)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(Q_.test(s.tagName)){let y=s.textContent.split($s),_=y.length-1;if(_>0){s.textContent=Ah?Ah.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],xc()),di.nextNode(),g.push({type:2,index:++l});s.append(y[_],xc())}}}else if(s.nodeType===8)if(s.data===J_)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf($s,y+1))!==-1;)g.push({type:7,index:l}),y+=$s.length-1}l++}}static createElement(r,t){let e=ci.createElement("template");return e.innerHTML=r,e}};function Nn(i,r,t=i,e){if(r===pi)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=yc(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=Nn(i,s._$AS(i,r.values),s,e)),r}var yb=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??ci).importNode(t,!0);di.currentNode=s;let l=di.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new kc(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Cb(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=di.nextNode(),d++)}return di.currentNode=ci,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},kc=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=ve,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=Nn(this,r,t),yc(r)?r===ve||r==null||r===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):r!==this._$AH&&r!==pi&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):L3(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==ve&&yc(this._$AH)?this._$AA.nextSibling.data=r:this.T(ci.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=wc.createElement(Z_(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new yb(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=G_.get(r.strings);return t===void 0&&G_.set(r.strings,t=new wc(r)),t}k(r){Tb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(xc()),this.O(xc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=U_(r).nextSibling;U_(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=ve,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=ve}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=Nn(this,r,t,0),d=!yc(r)||r!==this._$AH&&r!==pi,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=Nn(this,m[e+g],t,g),E===pi&&(E=this._$AH[g]),d||=!yc(E)||E!==this._$AH[g],E===ve?r=ve:r!==ve&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},wb=class extends Dn{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===ve?void 0:r}},kb=class extends Dn{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==ve)}},Eb=class extends Dn{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=Nn(this,r,t,0)??ve)===pi)return;let e=this._$AH,s=r===ve&&e!==ve||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==ve&&(e===ve||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Cb=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){Nn(this,r)}};var O3=$b.litHtmlPolyfillSupport;O3?.(wc,kc),($b.litHtmlVersions??=[]).push("3.3.2");var tR=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new kc(r.insertBefore(xc(),l),l,void 0,t??{})}return s._$AI(i),s};var Ab=globalThis,Hn=class extends Zr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=tR(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return pi}};Hn._$litElement$=!0,Hn.finalized=!0,Ab.litElementHydrateSupport?.({LitElement:Hn});var M3=Ab.litElementPolyfillSupport;M3?.({LitElement:Hn});(Ab.litElementVersions??=[]).push("4.2.2");var _h=globalThis,Rh=_h.ShadowRoot&&(_h.ShadyCSS===void 0||_h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_b=Symbol(),eR=new WeakMap,Ec=class{constructor(r,t,e){if(this._$cssResult$=!0,e!==_b)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=t}get styleSheet(){let r=this.o,t=this.t;if(Rh&&r===void 0){let e=t!==void 0&&t.length===1;e&&(r=eR.get(t)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),e&&eR.set(t,r))}return r}toString(){return this.cssText}},oR=i=>new Ec(typeof i=="string"?i:i+"",void 0,_b),b=(i,...r)=>{let t=i.length===1?i[0]:r.reduce((e,s,l)=>e+(d=>{if(d._$cssResult$===!0)return d.cssText;if(typeof d=="number")return d;throw Error("Value passed to 'css' function must be a 'css' function result: "+d+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[l+1],i[0]);return new Ec(t,i,_b)},Ih=(i,r)=>{if(Rh)i.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of r){let e=document.createElement("style"),s=_h.litNonce;s!==void 0&&e.setAttribute("nonce",s),e.textContent=t.cssText,i.appendChild(e)}},Rb=Rh?i=>i:i=>i instanceof CSSStyleSheet?(r=>{let t="";for(let e of r.cssRules)t+=e.cssText;return oR(t)})(i):i;var{is:N3,defineProperty:D3,getOwnPropertyDescriptor:H3,getOwnPropertyNames:B3,getOwnPropertySymbols:F3,getPrototypeOf:V3}=Object,Lh=globalThis,rR=Lh.trustedTypes,P3=rR?rR.emptyScript:"",U3=Lh.reactiveElementPolyfillSupport,Cc=(i,r)=>i,$c={toAttribute(i,r){switch(r){case Boolean:i=i?P3:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,r){let t=i;switch(r){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},zh=(i,r)=>!N3(i,r),sR={attribute:!0,type:String,converter:$c,reflect:!1,useDefault:!1,hasChanged:zh};Symbol.metadata??=Symbol("metadata"),Lh.litPropertyMetadata??=new WeakMap;var es=class extends HTMLElement{static addInitializer(r){this._$Ei(),(this.l??=[]).push(r)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(r,t=sR){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(r)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(r,t),!t.noAccessor){let e=Symbol(),s=this.getPropertyDescriptor(r,e,t);s!==void 0&&D3(this.prototype,r,s)}}static getPropertyDescriptor(r,t,e){let{get:s,set:l}=H3(this.prototype,r)??{get(){return this[t]},set(d){this[t]=d}};return{get:s,set(d){let m=s?.call(this);l?.call(this,d),this.requestUpdate(r,m,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(r){return this.elementProperties.get(r)??sR}static _$Ei(){if(this.hasOwnProperty(Cc("elementProperties")))return;let r=V3(this);r.finalize(),r.l!==void 0&&(this.l=[...r.l]),this.elementProperties=new Map(r.elementProperties)}static finalize(){if(this.hasOwnProperty(Cc("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cc("properties"))){let t=this.properties,e=[...B3(t),...F3(t)];for(let s of e)this.createProperty(s,t[s])}let r=this[Symbol.metadata];if(r!==null){let t=litPropertyMetadata.get(r);if(t!==void 0)for(let[e,s]of t)this.elementProperties.set(e,s)}this._$Eh=new Map;for(let[t,e]of this.elementProperties){let s=this._$Eu(t,e);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(r){let t=[];if(Array.isArray(r)){let e=new Set(r.flat(1/0).reverse());for(let s of e)t.unshift(Rb(s))}else r!==void 0&&t.push(Rb(r));return t}static _$Eu(r,t){let e=t.attribute;return e===!1?void 0:typeof e=="string"?e:typeof r=="string"?r.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(r=>r(this))}addController(r){(this._$EO??=new Set).add(r),this.renderRoot!==void 0&&this.isConnected&&r.hostConnected?.()}removeController(r){this._$EO?.delete(r)}_$E_(){let r=new Map,t=this.constructor.elementProperties;for(let e of t.keys())this.hasOwnProperty(e)&&(r.set(e,this[e]),delete this[e]);r.size>0&&(this._$Ep=r)}createRenderRoot(){let r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ih(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(r=>r.hostConnected?.())}enableUpdating(r){}disconnectedCallback(){this._$EO?.forEach(r=>r.hostDisconnected?.())}attributeChangedCallback(r,t,e){this._$AK(r,e)}_$ET(r,t){let e=this.constructor.elementProperties.get(r),s=this.constructor._$Eu(r,e);if(s!==void 0&&e.reflect===!0){let l=(e.converter?.toAttribute!==void 0?e.converter:$c).toAttribute(t,e.type);this._$Em=r,l==null?this.removeAttribute(s):this.setAttribute(s,l),this._$Em=null}}_$AK(r,t){let e=this.constructor,s=e._$Eh.get(r);if(s!==void 0&&this._$Em!==s){let l=e.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:l.converter?.fromAttribute!==void 0?l.converter:$c;this._$Em=s;let m=d.fromAttribute(t,l.type);this[s]=m??this._$Ej?.get(s)??m,this._$Em=null}}requestUpdate(r,t,e,s=!1,l){if(r!==void 0){let d=this.constructor;if(s===!1&&(l=this[r]),e??=d.getPropertyOptions(r),!((e.hasChanged??zh)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(r)&&!this.hasAttribute(d._$Eu(r,e))))return;this.C(r,t,e)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(r,t,{useDefault:e,reflect:s,wrapped:l},d){e&&!(this._$Ej??=new Map).has(r)&&(this._$Ej.set(r,d??t??this[r]),l!==!0||d!==void 0)||(this._$AL.has(r)||(this.hasUpdated||e||(t=void 0),this._$AL.set(r,t)),s===!0&&this._$Em!==r&&(this._$Eq??=new Set).add(r))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let r=this.scheduleUpdate();return r!=null&&await r,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[s,l]of this._$Ep)this[s]=l;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[s,l]of e){let{wrapped:d}=l,m=this[s];d!==!0||this._$AL.has(s)||m===void 0||this.C(s,void 0,l,m)}}let r=!1,t=this._$AL;try{r=this.shouldUpdate(t),r?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(e){throw r=!1,this._$EM(),e}r&&this._$AE(t)}willUpdate(r){}_$AE(r){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(r)),this.updated(r)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(r){return!0}update(r){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(r){}firstUpdated(r){}};es.elementStyles=[],es.shadowRootOptions={mode:"open"},es[Cc("elementProperties")]=new Map,es[Cc("finalized")]=new Map,U3?.({ReactiveElement:es}),(Lh.reactiveElementVersions??=[]).push("2.1.2");var Lb=globalThis,iR=i=>i,Oh=Lb.trustedTypes,nR=Oh?Oh.createPolicy("lit-html",{createHTML:i=>i}):void 0,zb="$lit$",os=`lit$${Math.random().toFixed(9).slice(2)}$`,Ob="?"+os,q3=`<${Ob}>`,mi=document,Sc=()=>mi.createComment(""),Ac=i=>i===null||typeof i!="object"&&typeof i!="function",Mb=Array.isArray,hR=i=>Mb(i)||typeof i?.[Symbol.iterator]=="function",Ib=`[
|
|
4
4
|
\f\r]`,Tc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,aR=/-->/g,lR=/>/g,hi=RegExp(`>|${Ib}(?:([^\\s"'>=/]+)(${Ib}*=${Ib}*(?:[^
|
|
5
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Nb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Nb(1),Fh=Nb(2),W6=Nb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Mb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+q3:y>=0?(e.push(E),g.slice(0,y)+zb+g.slice(y)+es+S):g+es+(y===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(zb)){let _=$[d++],S=s.getAttribute(y).split(es),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?Nh:O[1]==="?"?Dh:O[1]==="@"?Hh:gi}),s.removeAttribute(y)}else y.startsWith(es)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(uR.test(s.tagName)){let y=s.textContent.split(es),_=y.length-1;if(_>0){s.textContent=Oh?Oh.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(y[_],Sc())}}}else if(s.nodeType===8)if(s.data===Ob)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(es,y+1))!==-1;)g.push({type:7,index:l}),y+=es.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Mb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:zb,P:es,A:Ob,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},j3=Lb.litHtmlPolyfillSupport;j3?.(_c,Bn),(Lb.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Db=globalThis,x=class extends ts{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};x._$litElement$=!0,x.finalized=!0,Db.litElementHydrateSupport?.({LitElement:x});var K3=Db.litElementPolyfillSupport;K3?.({LitElement:x});(Db.litElementVersions??=[]).push("4.2.2");var W3={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:zh},Y3=(i=W3,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?Y3(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var $s=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new $s(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Hb=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new $s(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Hb(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),dR=/'/g,cR=/"/g,uR=/^(?:script|style|textarea|title)$/i,Nb=i=>(r,...t)=>({_$litType$:i,strings:r,values:t}),f=Nb(1),Fh=Nb(2),W6=Nb(3),Ee=Symbol.for("lit-noChange"),L=Symbol.for("lit-nothing"),pR=new WeakMap,ui=mi.createTreeWalker(mi,129);function mR(i,r){if(!Mb(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return nR!==void 0?nR.createHTML(r):r}var fR=(i,r)=>{let t=i.length-1,e=[],s,l=r===2?"<svg>":r===3?"<math>":"",d=Tc;for(let m=0;m<t;m++){let g=i[m],E,$,y=-1,_=0;for(;_<g.length&&(d.lastIndex=_,$=d.exec(g),$!==null);)_=d.lastIndex,d===Tc?$[1]==="!--"?d=aR:$[1]!==void 0?d=lR:$[2]!==void 0?(uR.test($[2])&&(s=RegExp("</"+$[2],"g")),d=hi):$[3]!==void 0&&(d=hi):d===hi?$[0]===">"?(d=s??Tc,y=-1):$[1]===void 0?y=-2:(y=d.lastIndex-$[2].length,E=$[1],d=$[3]===void 0?hi:$[3]==='"'?cR:dR):d===cR||d===dR?d=hi:d===aR||d===lR?d=Tc:(d=hi,s=void 0);let S=d===hi&&i[m+1].startsWith("/>")?" ":"";l+=d===Tc?g+q3:y>=0?(e.push(E),g.slice(0,y)+zb+g.slice(y)+os+S):g+os+(y===-2?m:S)}return[mR(i,l+(i[t]||"<?>")+(r===2?"</svg>":r===3?"</math>":"")),e]},_c=class i{constructor({strings:r,_$litType$:t},e){let s;this.parts=[];let l=0,d=0,m=r.length-1,g=this.parts,[E,$]=fR(r,t);if(this.el=i.createElement(E,e),ui.currentNode=this.el.content,t===2||t===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(s=ui.nextNode())!==null&&g.length<m;){if(s.nodeType===1){if(s.hasAttributes())for(let y of s.getAttributeNames())if(y.endsWith(zb)){let _=$[d++],S=s.getAttribute(y).split(os),O=/([.?@])?(.*)/.exec(_);g.push({type:1,index:l,name:O[2],strings:S,ctor:O[1]==="."?Nh:O[1]==="?"?Dh:O[1]==="@"?Hh:gi}),s.removeAttribute(y)}else y.startsWith(os)&&(g.push({type:6,index:l}),s.removeAttribute(y));if(uR.test(s.tagName)){let y=s.textContent.split(os),_=y.length-1;if(_>0){s.textContent=Oh?Oh.emptyScript:"";for(let S=0;S<_;S++)s.append(y[S],Sc()),ui.nextNode(),g.push({type:2,index:++l});s.append(y[_],Sc())}}}else if(s.nodeType===8)if(s.data===Ob)g.push({type:2,index:l});else{let y=-1;for(;(y=s.data.indexOf(os,y+1))!==-1;)g.push({type:7,index:l}),y+=os.length-1}l++}}static createElement(r,t){let e=mi.createElement("template");return e.innerHTML=r,e}};function fi(i,r,t=i,e){if(r===Ee)return r;let s=e!==void 0?t._$Co?.[e]:t._$Cl,l=Ac(r)?void 0:r._$litDirective$;return s?.constructor!==l&&(s?._$AO?.(!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,e)),e!==void 0?(t._$Co??=[])[e]=s:t._$Cl=s),s!==void 0&&(r=fi(i,s._$AS(i,r.values),s,e)),r}var Mh=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){let{el:{content:t},parts:e}=this._$AD,s=(r?.creationScope??mi).importNode(t,!0);ui.currentNode=s;let l=ui.nextNode(),d=0,m=0,g=e[0];for(;g!==void 0;){if(d===g.index){let E;g.type===2?E=new Bn(l,l.nextSibling,this,r):g.type===1?E=new g.ctor(l,g.name,g.strings,this,r):g.type===6&&(E=new Bh(l,this,r)),this._$AV.push(E),g=e[++m]}d!==g?.index&&(l=ui.nextNode(),d++)}return ui.currentNode=mi,s}p(r){let t=0;for(let e of this._$AV)e!==void 0&&(e.strings!==void 0?(e._$AI(r,e,t),t+=e.strings.length-2):e._$AI(r[t])),t++}},Bn=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(r,t,e,s){this.type=2,this._$AH=L,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=e,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&r?.nodeType===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=fi(this,r,t),Ac(r)?r===L||r==null||r===""?(this._$AH!==L&&this._$AR(),this._$AH=L):r!==this._$AH&&r!==Ee&&this._(r):r._$litType$!==void 0?this.$(r):r.nodeType!==void 0?this.T(r):hR(r)?this.k(r):this._(r)}O(r){return this._$AA.parentNode.insertBefore(r,this._$AB)}T(r){this._$AH!==r&&(this._$AR(),this._$AH=this.O(r))}_(r){this._$AH!==L&&Ac(this._$AH)?this._$AA.nextSibling.data=r:this.T(mi.createTextNode(r)),this._$AH=r}$(r){let{values:t,_$litType$:e}=r,s=typeof e=="number"?this._$AC(r):(e.el===void 0&&(e.el=_c.createElement(mR(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===s)this._$AH.p(t);else{let l=new Mh(s,this),d=l.u(this.options);l.p(t),this.T(d),this._$AH=l}}_$AC(r){let t=pR.get(r.strings);return t===void 0&&pR.set(r.strings,t=new _c(r)),t}k(r){Mb(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,e,s=0;for(let l of r)s===t.length?t.push(e=new i(this.O(Sc()),this.O(Sc()),this,this.options)):e=t[s],e._$AI(l),s++;s<t.length&&(this._$AR(e&&e._$AB.nextSibling,s),t.length=s)}_$AR(r=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);r!==this._$AB;){let e=iR(r).nextSibling;iR(r).remove(),r=e}}setConnected(r){this._$AM===void 0&&(this._$Cv=r,this._$AP?.(r))}},gi=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(r,t,e,s,l){this.type=1,this._$AH=L,this._$AN=void 0,this.element=r,this.name=t,this._$AM=s,this.options=l,e.length>2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=L}_$AI(r,t=this,e,s){let l=this.strings,d=!1;if(l===void 0)r=fi(this,r,t,0),d=!Ac(r)||r!==this._$AH&&r!==Ee,d&&(this._$AH=r);else{let m=r,g,E;for(r=l[0],g=0;g<l.length-1;g++)E=fi(this,m[e+g],t,g),E===Ee&&(E=this._$AH[g]),d||=!Ac(E)||E!==this._$AH[g],E===L?r=L:r!==L&&(r+=(E??"")+l[g+1]),this._$AH[g]=E}d&&!s&&this.j(r)}j(r){r===L?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,r??"")}},Nh=class extends gi{constructor(){super(...arguments),this.type=3}j(r){this.element[this.name]=r===L?void 0:r}},Dh=class extends gi{constructor(){super(...arguments),this.type=4}j(r){this.element.toggleAttribute(this.name,!!r&&r!==L)}},Hh=class extends gi{constructor(r,t,e,s,l){super(r,t,e,s,l),this.type=5}_$AI(r,t=this){if((r=fi(this,r,t,0)??L)===Ee)return;let e=this._$AH,s=r===L&&e!==L||r.capture!==e.capture||r.once!==e.once||r.passive!==e.passive,l=r!==L&&(e===L||s);s&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,r),this._$AH=r}handleEvent(r){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,r):this._$AH.handleEvent(r)}},Bh=class{constructor(r,t,e){this.element=r,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(r){fi(this,r)}},gR={M:zb,P:os,A:Ob,C:1,L:fR,R:Mh,D:hR,V:fi,I:Bn,H:gi,N:Dh,U:Hh,B:Nh,F:Bh},j3=Lb.litHtmlPolyfillSupport;j3?.(_c,Bn),(Lb.litHtmlVersions??=[]).push("3.3.2");var Vh=(i,r,t)=>{let e=t?.renderBefore??r,s=e._$litPart$;if(s===void 0){let l=t?.renderBefore??null;e._$litPart$=s=new Bn(r.insertBefore(Sc(),l),l,void 0,t??{})}return s._$AI(i),s};var Db=globalThis,x=class extends es{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let r=super.createRenderRoot();return this.renderOptions.renderBefore??=r.firstChild,r}update(r){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(r),this._$Do=Vh(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};x._$litElement$=!0,x.finalized=!0,Db.litElementHydrateSupport?.({LitElement:x});var K3=Db.litElementPolyfillSupport;K3?.({LitElement:x});(Db.litElementVersions??=[]).push("4.2.2");var W3={attribute:!0,type:String,converter:$c,reflect:!1,hasChanged:zh},Y3=(i=W3,r,t)=>{let{kind:e,metadata:s}=t,l=globalThis.litPropertyMetadata.get(s);if(l===void 0&&globalThis.litPropertyMetadata.set(s,l=new Map),e==="setter"&&((i=Object.create(i)).wrapped=!0),l.set(t.name,i),e==="accessor"){let{name:d}=t;return{set(m){let g=r.get.call(this);r.set.call(this,m),this.requestUpdate(d,g,i,!0,m)},init(m){return m!==void 0&&this.C(d,void 0,i,m),m}}}if(e==="setter"){let{name:d}=t;return function(m){let g=this[d];r.call(this,m),this.requestUpdate(d,g,i,!0,m)}}throw Error("Unsupported decorator location: "+e)};function u(i){return(r,t)=>typeof t=="object"?Y3(i,r,t):((e,s,l)=>{let d=s.hasOwnProperty(l);return s.constructor.createProperty(l,e),d?Object.getOwnPropertyDescriptor(s,l):void 0})(i,r,t)}function C(i){return u({...i,state:!0,attribute:!1})}var vi=(i,r,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof r!="object"&&Object.defineProperty(i,r,t),t);function vR(i,r){return(t,e,s)=>{let l=d=>d.renderRoot?.querySelector(i)??null;if(r){let{get:d,set:m}=typeof e=="object"?t:s??(()=>{let g=Symbol();return{get(){return this[g]},set(E){this[g]=E}}})();return vi(t,e,{get(){let g=d.call(this);return g===void 0&&(g=l(this),(g!==null||this.hasUpdated)&&m.call(this,g)),g}})}return vi(t,e,{get(){return l(this)}})}}var Ts=class extends Event{constructor(r,t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t,this.callback=e,this.subscribe=s??!1}};var q=class{constructor(r,t,e,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(l,d)=>{this.unsubscribe&&(this.unsubscribe!==d&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=l,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(l,d)),this.unsubscribe=d},this.host=r,t.context!==void 0){let l=t;this.context=l.context,this.callback=l.callback,this.subscribe=l.subscribe??!1}else this.context=t,this.callback=e,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Ts(this.context,this.host,this.t,this.subscribe))}};var Ph=class{get value(){return this.o}set value(r){this.setValue(r)}setValue(r,t=!1){let e=t||!Object.is(r,this.o);this.o=r,e&&this.updateObservers()}constructor(r){this.subscriptions=new Map,this.updateObservers=()=>{for(let[t,{disposer:e}]of this.subscriptions)t(this.o,e)},r!==void 0&&(this.value=r)}addCallback(r,t,e){if(!e)return void r(this.value);this.subscriptions.has(r)||this.subscriptions.set(r,{disposer:()=>{this.subscriptions.delete(r)},consumerHost:t});let{disposer:s}=this.subscriptions.get(r);r(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var Hb=class extends Event{constructor(r,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=r,this.contextTarget=t}},Fn=class extends Ph{constructor(r,t,e){super(t.context!==void 0?t.initialValue:e),this.onContextRequest=s=>{if(s.context!==this.context)return;let l=s.contextTarget??s.composedPath()[0];l!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,l,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let l=new Set;for(let[d,{consumerHost:m}]of this.subscriptions)l.has(d)||(l.add(d),m.dispatchEvent(new Ts(this.context,m,d,!0)));s.stopPropagation()},this.host=r,t.context!==void 0?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Hb(this.context,this.host))}};function lt({context:i}){return(r,t)=>{let e=new WeakMap;if(typeof t=="object")return{get(){return r.get.call(this)},set(s){return e.get(this).setValue(s),r.set.call(this,s)},init(s){return e.set(this,new Fn(this,{context:i,initialValue:s})),s}};{r.constructor.addInitializer(d=>{e.set(d,new Fn(d,{context:i}))});let s=Object.getOwnPropertyDescriptor(r,t),l;if(s===void 0){let d=new WeakMap;l={get(){return d.get(this)},set(m){e.get(this).setValue(m),d.set(this,m)},configurable:!0,enumerable:!0}}else{let d=s.set;l={...s,set(m){e.get(this).setValue(m),d?.call(this,m)}}}return void Object.defineProperty(r,t,l)}}}function Nt({context:i,subscribe:r}){return(t,e)=>{typeof e=="object"?e.addInitializer(function(){new q(this,{context:i,callback:s=>{t.set.call(this,s)},subscribe:r})}):t.constructor.addInitializer(s=>{new q(s,{context:i,callback:l=>{s[e]=l},subscribe:r})})}}var w=b`
|
|
6
6
|
* {
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
}
|
|
@@ -101,7 +101,7 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
}
|
|
104
|
-
`,bR,xR,yR,wR,kR,ER,CR,$R,TR,SR,_t,Bb,Fb,Vb,Pb,Ub,qb,jb,Kb,Wb,AR,Gb,Po,Vn,
|
|
104
|
+
`,bR,xR,yR,wR,kR,ER,CR,$R,TR,SR,_t,Bb,Fb,Vb,Pb,Ub,qb,jb,Kb,Wb,AR,Gb,Po,Vn,ir,Rc,jh,Kh,Wh,Yh,Yb,qh,xe=class extends(SR=x,TR=[u({type:Array})],$R=[u({type:Array,attribute:"default-value"})],CR=[u({type:Boolean})],ER=[u({type:Boolean})],kR=[u({type:Boolean,attribute:"loop-focus"})],wR=[u({type:String})],yR=[u({type:Boolean,attribute:"keep-mounted"})],xR=[C()],bR=[lt({context:Uh}),C()],SR){constructor(){super(...arguments);a(this,Po);a(this,Bb,n(_t,8,this)),n(_t,11,this);a(this,Fb,n(_t,12,this,[])),n(_t,15,this);a(this,Vb,n(_t,16,this,!1)),n(_t,19,this);a(this,Pb,n(_t,20,this,!1)),n(_t,23,this);a(this,Ub,n(_t,24,this,!0)),n(_t,27,this);a(this,qb,n(_t,28,this,"vertical")),n(_t,31,this);a(this,jb,n(_t,32,this,!1)),n(_t,35,this);a(this,Kb,n(_t,36,this,[])),n(_t,39,this);a(this,Vn,new Map);a(this,ir,[]);a(this,Rc,()=>this.value??o(this,Po,AR));a(this,jh,t=>{let e=[...o(this,Rc).call(this)],s=e.indexOf(t),l;s>=0?l=e.filter(d=>d!==t):this.multiple?l=[...e,t]:l=[t],this.value===void 0&&h(this,Po,l,Gb),this.dispatchEvent(Xb(l))});a(this,Kh,(t,e)=>{o(this,Vn).set(t,e),o(this,ir).includes(t)||o(this,ir).push(t)});a(this,Wh,t=>{o(this,Vn).delete(t),h(this,ir,o(this,ir).filter(e=>e!==t))});a(this,Yh,(t,e)=>{let s=o(this,ir).indexOf(t);if(s===-1)return;let l=o(this,ir).length,d;switch(e){case"next":s<l-1?d=s+1:this.loopFocus&&(d=0);break;case"prev":s>0?d=s-1:this.loopFocus&&(d=l-1);break;case"first":d=0;break;case"last":d=l-1;break}if(d!==void 0){let m=o(this,ir)[d];o(this,Vn).get(m)?.shadowRoot?.querySelector("[part='trigger']")?.focus()}});a(this,Yb,n(_t,40,this,p(this,Po,qh).call(this))),n(_t,43,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue.length>0&&h(this,Po,[...this.defaultValue],Gb),this._ctx=p(this,Po,qh).call(this)}willUpdate(){this._ctx=p(this,Po,qh).call(this)}render(){return f`
|
|
105
105
|
<div
|
|
106
106
|
part="root"
|
|
107
107
|
data-orientation=${this.orientation}
|
|
@@ -109,7 +109,7 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
109
109
|
>
|
|
110
110
|
<slot></slot>
|
|
111
111
|
</div>
|
|
112
|
-
`}};_t=A(SR),Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Pb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,jb=new WeakMap,Kb=new WeakMap,Po=new WeakSet,Vn=new WeakMap,
|
|
112
|
+
`}};_t=A(SR),Bb=new WeakMap,Fb=new WeakMap,Vb=new WeakMap,Pb=new WeakMap,Ub=new WeakMap,qb=new WeakMap,jb=new WeakMap,Kb=new WeakMap,Po=new WeakSet,Vn=new WeakMap,ir=new WeakMap,Rc=new WeakMap,jh=new WeakMap,Kh=new WeakMap,Wh=new WeakMap,Yh=new WeakMap,Yb=new WeakMap,qh=function(){return{openValues:o(this,Rc).call(this),disabled:this.disabled,orientation:this.orientation,loopFocus:this.loopFocus,keepMounted:this.keepMounted,toggle:o(this,jh),registerItem:o(this,Kh),unregisterItem:o(this,Wh),focusItem:o(this,Yh)}},c(_t,4,"value",TR,xe,Bb),c(_t,4,"defaultValue",$R,xe,Fb),c(_t,4,"disabled",CR,xe,Vb),c(_t,4,"multiple",ER,xe,Pb),c(_t,4,"loopFocus",kR,xe,Ub),c(_t,4,"orientation",wR,xe,qb),c(_t,4,"keepMounted",yR,xe,jb),Wb=c(_t,20,"#internalOpenValues",xR,Po,Kb),AR=Wb.get,Gb=Wb.set,c(_t,4,"_ctx",bR,xe,Yb),T(_t,xe),v(xe,"tagName","dui-accordion"),v(xe,"styles",[w,G3]);var hx=M("open-change",{bubbles:!0,composed:!0}),X3=b`
|
|
113
113
|
:host {
|
|
114
114
|
display: block;
|
|
115
115
|
}
|
|
@@ -176,7 +176,7 @@ var x3=Object.create;var fb=Object.defineProperty;var y3=Object.getOwnPropertyDe
|
|
|
176
176
|
</div>
|
|
177
177
|
`:L}
|
|
178
178
|
</div>
|
|
179
|
-
`}};qt=A(NR),Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,tx=new WeakMap,P=new WeakSet,ox=new WeakMap,sx=new WeakMap,nx=new WeakMap,Pn=new WeakMap,yi=new WeakMap,xi=function(){return this._ctx?.openValues.includes(this.value)??!1},Ic=function(){return this.disabled||this._ctx?.disabled},cx=function(){return`dui-trigger-${this.value}`},px=function(){return`dui-panel-${this.value}`},HR=function(){let t=++
|
|
179
|
+
`}};qt=A(NR),Jb=new WeakMap,Qb=new WeakMap,Zb=new WeakMap,tx=new WeakMap,P=new WeakSet,ox=new WeakMap,sx=new WeakMap,nx=new WeakMap,Pn=new WeakMap,yi=new WeakMap,xi=function(){return this._ctx?.openValues.includes(this.value)??!1},Ic=function(){return this.disabled||this._ctx?.disabled},cx=function(){return`dui-trigger-${this.value}`},px=function(){return`dui-panel-${this.value}`},HR=function(){let t=++Cs(this,yi)._;h(this,P,!1,Jh),h(this,P,!0,Qh),h(this,P,!0,Gh),h(this,P,"0",bi),requestAnimationFrame(()=>{if(o(this,yi)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),h(this,P,!1,Gh)})},BR=function(){let t=++Cs(this,yi)._;h(this,P,!1,Gh);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,P,`${e.scrollHeight}px`,bi),requestAnimationFrame(()=>{o(this,yi)===t&&(h(this,P,!0,Jh),h(this,P,"0",bi))})},Zh=new WeakMap,tu=new WeakMap,eu=new WeakMap,c(qt,4,"value",MR,wo,Jb),c(qt,4,"disabled",OR,wo,Qb),c(qt,4,"_ctx",zR,wo,Zb),ex=c(qt,20,"#starting",LR,P,tx),lx=ex.get,Gh=ex.set,rx=c(qt,20,"#ending",IR,P,ox),Xh=rx.get,Jh=rx.set,ix=c(qt,20,"#panelHeight",RR,P,sx),DR=ix.get,bi=ix.set,ax=c(qt,20,"#visible",_R,P,nx),dx=ax.get,Qh=ax.set,T(qt,wo),v(wo,"tagName","dui-accordion-item"),v(wo,"styles",[w,X3]);var FR=`/* =================================================================
|
|
180
180
|
* DUI Design Tokens
|
|
181
181
|
* =================================================================
|
|
182
182
|
* Combined token system: spacing, typography, borders, elevation,
|
|
@@ -1220,7 +1220,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1220
1220
|
::slotted(:last-child) {
|
|
1221
1221
|
--accordion-item-border: none;
|
|
1222
1222
|
}
|
|
1223
|
-
`,Un=class extends xe{static styles=[...xe.styles,J3]};customElements.define(Un.tagName,Un);var UR=
|
|
1223
|
+
`,Un=class extends xe{static styles=[...xe.styles,J3]};customElements.define(Un.tagName,Un);var UR=Qr(`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")`),Q3=k`
|
|
1224
1224
|
/* ── Item ── */
|
|
1225
1225
|
|
|
1226
1226
|
[part="item"] {
|
|
@@ -1314,11 +1314,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1314
1314
|
transition-duration: 0s;
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
`,qn=class extends wo{static styles=[...wo.styles,Q3]};customElements.define(qn.tagName,qn);var
|
|
1317
|
+
`,qn=class extends wo{static styles=[...wo.styles,Q3]};customElements.define(qn.tagName,qn);var Ss=Symbol("dui-alert-dialog");var su=M("open-change",{bubbles:!0,composed:!0}),Z3=b`
|
|
1318
1318
|
:host {
|
|
1319
1319
|
display: contents;
|
|
1320
1320
|
}
|
|
1321
|
-
`,qR,jR,KR,WR,YR,so,fx,gx,vx,bx,GR,ou,Ve,wi,iu,nu,au,lu,XR,du,cu,xx,ru,ko=class extends(YR=x,WR=[u({type:Boolean,reflect:!0})],KR=[u({type:Boolean,attribute:"default-open"})],jR=[C()],qR=[lt({context:
|
|
1321
|
+
`,qR,jR,KR,WR,YR,so,fx,gx,vx,bx,GR,ou,Ve,wi,iu,nu,au,lu,XR,du,cu,xx,ru,ko=class extends(YR=x,WR=[u({type:Boolean,reflect:!0})],KR=[u({type:Boolean,attribute:"default-open"})],jR=[C()],qR=[lt({context:Ss}),C()],YR){constructor(){super(...arguments);a(this,Ve);a(this,fx,n(so,8,this)),n(so,11,this);a(this,gx,n(so,12,this,!1)),n(so,15,this);a(this,vx,n(so,16,this,!1)),n(so,19,this);a(this,wi,crypto.randomUUID().slice(0,8));a(this,iu,`dui-alert-dialog-${o(this,wi)}`);a(this,nu,`dui-alert-trigger-${o(this,wi)}`);a(this,au,`dui-alert-title-${o(this,wi)}`);a(this,lu,`dui-alert-desc-${o(this,wi)}`);a(this,du,()=>{this.open===void 0&&h(this,Ve,!0,ou),this.dispatchEvent(su({open:!0}))});a(this,cu,()=>{this.open===void 0&&h(this,Ve,!1,ou),this.dispatchEvent(su({open:!1}))});a(this,xx,n(so,20,this,p(this,Ve,ru).call(this))),n(so,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ve,!0,ou),this._ctx=p(this,Ve,ru).call(this)}willUpdate(){this._ctx=p(this,Ve,ru).call(this)}render(){return f`<slot></slot>`}};so=A(YR),fx=new WeakMap,gx=new WeakMap,vx=new WeakMap,Ve=new WeakSet,wi=new WeakMap,iu=new WeakMap,nu=new WeakMap,au=new WeakMap,lu=new WeakMap,XR=function(){return this.open??o(this,Ve,GR)},du=new WeakMap,cu=new WeakMap,xx=new WeakMap,ru=function(){return{open:o(this,Ve,XR),dialogId:o(this,iu),triggerId:o(this,nu),titleId:o(this,au),descriptionId:o(this,lu),openDialog:o(this,du),closeDialog:o(this,cu)}},c(so,4,"open",WR,ko,fx),c(so,4,"defaultOpen",KR,ko,gx),bx=c(so,20,"#internalOpen",jR,Ve,vx),GR=bx.get,ou=bx.set,c(so,4,"_ctx",qR,ko,xx),T(so,ko),v(ko,"tagName","dui-alert-dialog"),v(ko,"styles",[w,Z3]);var t4=b`
|
|
1322
1322
|
:host {
|
|
1323
1323
|
display: contents;
|
|
1324
1324
|
}
|
|
@@ -1326,7 +1326,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1326
1326
|
.Trigger {
|
|
1327
1327
|
display: contents;
|
|
1328
1328
|
}
|
|
1329
|
-
`,Lc=class extends x{static tagName="dui-alert-dialog-trigger";static styles=[w,t4,e4];#t=new q(this,{context:
|
|
1329
|
+
`,Lc=class extends x{static tagName="dui-alert-dialog-trigger";static styles=[w,t4,e4];#t=new q(this,{context:Ss,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let r=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
1330
1330
|
<span
|
|
1331
1331
|
class="Trigger"
|
|
1332
1332
|
part="trigger"
|
|
@@ -1368,13 +1368,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
1368
1368
|
z-index: 1000;
|
|
1369
1369
|
transition-property: opacity, transform;
|
|
1370
1370
|
}
|
|
1371
|
-
`,QR,ZR,tI,eI,oI,rI,sI,ie,yx,wx,kx,Ex,Cx,Kn,_x,et,$x,Tx,Rx,Ix,Sx,Ax,
|
|
1371
|
+
`,QR,ZR,tI,eI,oI,rI,sI,ie,yx,wx,kx,Ex,Cx,Kn,_x,et,$x,Tx,Rx,Ix,Sx,Ax,rs,Lx,Wn,As,iI,nI,zx,aI,lI,uu,dI,Eo=class extends(sI=x,rI=[u({type:Boolean,attribute:"keep-mounted"})],oI=[u({attribute:"initial-focus"})],eI=[u({attribute:"final-focus"})],tI=[C()],ZR=[C()],QR=[C()],sI){constructor(){super(...arguments);a(this,et);a(this,yx,n(ie,8,this,!1)),n(ie,11,this);a(this,wx,n(ie,12,this)),n(ie,15,this);a(this,kx,n(ie,16,this)),n(ie,19,this);a(this,Ex,n(ie,20,this,!1)),n(ie,23,this);a(this,$x,n(ie,24,this,!1)),n(ie,27,this);a(this,Sx,n(ie,28,this,!1)),n(ie,31,this);a(this,Wn);a(this,As,new q(this,{context:Ss,subscribe:!0}));a(this,uu,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,As).value?.closeDialog()),t.key==="Tab"&&p(this,et,dI).call(this,t)})}updated(){let t=o(this,As).value?.open??!1;t&&!o(this,et,Kn)?p(this,et,iI).call(this):!t&&o(this,et,Kn)&&!o(this,et,rs)&&p(this,et,nI).call(this)}willUpdate(){o(this,et,Kn)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,As).value?.open??!1,e=o(this,As).value?.titleId??"",s=o(this,As).value?.descriptionId??"";return!o(this,et,Kn)&&!this.keepMounted?f``:f`
|
|
1372
1372
|
<div
|
|
1373
1373
|
part="backdrop"
|
|
1374
|
-
?data-open="${t&&!o(this,et,
|
|
1375
|
-
?data-closed="${!t||o(this,et,
|
|
1374
|
+
?data-open="${t&&!o(this,et,rs)}"
|
|
1375
|
+
?data-closed="${!t||o(this,et,rs)}"
|
|
1376
1376
|
?data-starting-style="${o(this,et,Rx)}"
|
|
1377
|
-
?data-ending-style="${o(this,et,
|
|
1377
|
+
?data-ending-style="${o(this,et,rs)}"
|
|
1378
1378
|
></div>
|
|
1379
1379
|
<div
|
|
1380
1380
|
part="popup"
|
|
@@ -1382,10 +1382,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
1382
1382
|
aria-modal="true"
|
|
1383
1383
|
aria-labelledby="${e}"
|
|
1384
1384
|
aria-describedby="${s}"
|
|
1385
|
-
?data-open="${t&&!o(this,et,
|
|
1386
|
-
?data-closed="${!t||o(this,et,
|
|
1385
|
+
?data-open="${t&&!o(this,et,rs)}"
|
|
1386
|
+
?data-closed="${!t||o(this,et,rs)}"
|
|
1387
1387
|
?data-starting-style="${o(this,et,Rx)}"
|
|
1388
|
-
?data-ending-style="${o(this,et,
|
|
1388
|
+
?data-ending-style="${o(this,et,rs)}"
|
|
1389
1389
|
tabindex="-1"
|
|
1390
1390
|
@keydown="${o(this,uu)}"
|
|
1391
1391
|
>
|
|
@@ -1393,11 +1393,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
1393
1393
|
<p part="description" id="${s}"><slot name="description"></slot></p>
|
|
1394
1394
|
<slot></slot>
|
|
1395
1395
|
</div>
|
|
1396
|
-
`}};ie=A(sI),yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,et=new WeakSet,$x=new WeakMap,Sx=new WeakMap,Wn=new WeakMap,
|
|
1396
|
+
`}};ie=A(sI),yx=new WeakMap,wx=new WeakMap,kx=new WeakMap,Ex=new WeakMap,et=new WeakSet,$x=new WeakMap,Sx=new WeakMap,Wn=new WeakMap,As=new WeakMap,iI=async function(){h(this,Wn,document.activeElement??void 0),h(this,et,!0,_x),h(this,et,!0,Ix),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,et,!1,Ix),await this.updateComplete,p(this,et,aI).call(this)},nI=function(){h(this,et,!0,Lx);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,et,zx).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,et,zx).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},zx=function(){!o(this,et,rs)&&!o(this,et,Kn)||(h(this,et,!1,Lx),this.keepMounted||h(this,et,!1,_x),p(this,et,lI).call(this))},aI=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},lI=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Wn)?.focus(),h(this,Wn,void 0)},uu=new WeakMap,dI=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},c(ie,4,"keepMounted",rI,Eo,yx),c(ie,4,"initialFocus",oI,Eo,wx),c(ie,4,"finalFocus",eI,Eo,kx),Cx=c(ie,20,"#mounted",tI,et,Ex),Kn=Cx.get,_x=Cx.set,Tx=c(ie,20,"#startingStyle",ZR,et,$x),Rx=Tx.get,Ix=Tx.set,Ax=c(ie,20,"#endingStyle",QR,et,Sx),rs=Ax.get,Lx=Ax.set,T(ie,Eo),v(Eo,"tagName","dui-alert-dialog-popup"),v(Eo,"styles",[w,s4,i4]);var n4=b`
|
|
1397
1397
|
:host {
|
|
1398
1398
|
display: contents;
|
|
1399
1399
|
}
|
|
1400
|
-
`,zc=class extends x{static tagName="dui-alert-dialog-close";static styles=[w,n4];#t=new q(this,{context:
|
|
1400
|
+
`,zc=class extends x{static tagName="dui-alert-dialog-close";static styles=[w,n4];#t=new q(this,{context:Ss,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
1401
1401
|
<span @click="${this.#e}">
|
|
1402
1402
|
<slot></slot>
|
|
1403
1403
|
</span>
|
|
@@ -1498,7 +1498,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1498
1498
|
height: 100%;
|
|
1499
1499
|
width: 100%;
|
|
1500
1500
|
}
|
|
1501
|
-
`,cI,pI,hI,uI,mI,fI,gI,ne,Ox,Mx,Nx,Dx,Hx,Bx,vI,bI,Tt,Fx,Vx,xI,mu,
|
|
1501
|
+
`,cI,pI,hI,uI,mI,fI,gI,ne,Ox,Mx,Nx,Dx,Hx,Bx,vI,bI,Tt,Fx,Vx,xI,mu,_s,ki,Oc,Px,Ux,qx,jx,io=class extends(gI=x,fI=[u()],mI=[u()],uI=[u({type:Number,attribute:"fallback-delay"})],hI=[u({reflect:!0})],pI=[C()],cI=[C()],gI){constructor(){super(...arguments);a(this,Tt);a(this,Ox,n(ne,8,this)),n(ne,11,this);a(this,Mx,n(ne,12,this,"")),n(ne,15,this);a(this,Nx,n(ne,16,this)),n(ne,19,this);a(this,Dx,n(ne,20,this)),n(ne,23,this);a(this,Hx,n(ne,24,this,"idle")),n(ne,27,this);a(this,Fx,n(ne,28,this,!1)),n(ne,31,this);a(this,_s);a(this,ki)}connectedCallback(){super.connectedCallback(),p(this,Tt,qx).call(this),p(this,Tt,Px).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Tt,Ux).call(this),p(this,Tt,jx).call(this)}willUpdate(t){t.has("size")&&(this.size?this.style.setProperty("--avatar-size",this.size):this.style.removeProperty("--avatar-size")),t.has("src")&&p(this,Tt,Px).call(this),t.has("fallbackDelay")&&p(this,Tt,qx).call(this)}render(){let t=this.src&&o(this,Tt,vI)==="loaded",e=!t&&o(this,Tt,xI);return f`
|
|
1502
1502
|
<span part="root">
|
|
1503
1503
|
${t?f`
|
|
1504
1504
|
<img
|
|
@@ -1510,7 +1510,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
1510
1510
|
<span part="fallback"><slot></slot></span>
|
|
1511
1511
|
`:L}
|
|
1512
1512
|
</span>
|
|
1513
|
-
`}};ne=A(gI),Ox=new WeakMap,Mx=new WeakMap,Nx=new WeakMap,Dx=new WeakMap,Hx=new WeakMap,Tt=new WeakSet,Fx=new WeakMap,
|
|
1513
|
+
`}};ne=A(gI),Ox=new WeakMap,Mx=new WeakMap,Nx=new WeakMap,Dx=new WeakMap,Hx=new WeakMap,Tt=new WeakSet,Fx=new WeakMap,_s=new WeakMap,ki=new WeakMap,Oc=function(t){h(this,Tt,t,bI),this.dispatchEvent(Kx({status:t}))},Px=function(){if(p(this,Tt,Ux).call(this),!this.src){p(this,Tt,Oc).call(this,"error");return}p(this,Tt,Oc).call(this,"loading");let t=new Image;t.onload=()=>p(this,Tt,Oc).call(this,"loaded"),t.onerror=()=>p(this,Tt,Oc).call(this,"error"),t.src=this.src,h(this,_s,t)},Ux=function(){o(this,_s)&&(o(this,_s).onload=null,o(this,_s).onerror=null,h(this,_s,void 0))},qx=function(){if(p(this,Tt,jx).call(this),this.fallbackDelay===void 0||this.fallbackDelay<=0){h(this,Tt,!0,mu);return}h(this,Tt,!1,mu),h(this,ki,setTimeout(()=>{h(this,Tt,!0,mu)},this.fallbackDelay))},jx=function(){o(this,ki)!==void 0&&(clearTimeout(o(this,ki)),h(this,ki,void 0))},c(ne,4,"src",fI,io,Ox),c(ne,4,"alt",mI,io,Mx),c(ne,4,"fallbackDelay",uI,io,Nx),c(ne,4,"size",hI,io,Dx),Bx=c(ne,20,"#imageStatus",pI,Tt,Hx),vI=Bx.get,bI=Bx.set,Vx=c(ne,20,"#delayPassed",cI,Tt,Fx),xI=Vx.get,mu=Vx.set,T(ne,io),v(io,"tagName","dui-avatar"),v(io,"styles",[w,d4]);var c4=k`
|
|
1514
1514
|
:host {
|
|
1515
1515
|
--avatar-bg: oklch(from var(--foreground) l c h / 0.08);
|
|
1516
1516
|
--avatar-fg: var(--text-2);
|
|
@@ -2258,9 +2258,9 @@ label, legend, caption, figcaption, th, td {
|
|
|
2258
2258
|
display: flex;
|
|
2259
2259
|
align-items: center;
|
|
2260
2260
|
}
|
|
2261
|
-
`,UI,qI,jI,KI,
|
|
2261
|
+
`,UI,qI,jI,KI,nr,yy,wy,ky,WI,YI,lr,Ey,Cy,GI,XI,Nc,Dc,Hc,ga,Au,ar=class extends(KI=x,jI=[u({reflect:!0})],qI=[C()],UI=[C()],KI){constructor(){super(...arguments);a(this,lr);a(this,yy,n(nr,8,this,"")),n(nr,11,this);a(this,wy,n(nr,12,this,!1)),n(nr,15,this);a(this,Ey,n(nr,16,this,!1)),n(nr,19,this);a(this,Nc,!1);a(this,Dc,!1);a(this,Hc,!1);a(this,ga,t=>{let e=t.target,s=e.assignedElements().length>0;e.name==="title"?h(this,Nc,s):e.name==="description"?h(this,Dc,s):e.name==="action"&&h(this,Hc,s),h(this,lr,o(this,Nc)||o(this,Dc)||o(this,Hc),YI)});a(this,Au,t=>{let e=t.target;h(this,lr,e.assignedElements().length>0,XI)})}render(){return f`
|
|
2262
2262
|
<div part="root">
|
|
2263
|
-
<div part="header" ?hidden=${!o(this,
|
|
2263
|
+
<div part="header" ?hidden=${!o(this,lr,WI)}>
|
|
2264
2264
|
<div part="header-text">
|
|
2265
2265
|
<slot name="title" @slotchange=${o(this,ga)}></slot>
|
|
2266
2266
|
<slot
|
|
@@ -2275,11 +2275,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
2275
2275
|
<div part="content">
|
|
2276
2276
|
<slot></slot>
|
|
2277
2277
|
</div>
|
|
2278
|
-
<div part="footer" ?hidden=${!o(this,
|
|
2278
|
+
<div part="footer" ?hidden=${!o(this,lr,GI)}>
|
|
2279
2279
|
<slot name="footer" @slotchange=${o(this,Au)}></slot>
|
|
2280
2280
|
</div>
|
|
2281
2281
|
</div>
|
|
2282
|
-
`}};
|
|
2282
|
+
`}};nr=A(KI),yy=new WeakMap,wy=new WeakMap,lr=new WeakSet,Ey=new WeakMap,Nc=new WeakMap,Dc=new WeakMap,Hc=new WeakMap,ga=new WeakMap,Au=new WeakMap,c(nr,4,"size",jI,ar,yy),ky=c(nr,20,"#hasHeader",qI,lr,wy),WI=ky.get,YI=ky.set,Cy=c(nr,20,"#hasFooter",UI,lr,Ey),GI=Cy.get,XI=Cy.set,T(nr,ar),v(ar,"tagName","dui-card"),v(ar,"styles",[w,_4]);var R4=k`
|
|
2283
2283
|
/* ---------------------------------------------------------------
|
|
2284
2284
|
* Size tokens
|
|
2285
2285
|
* --------------------------------------------------------------- */
|
|
@@ -2367,7 +2367,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2367
2367
|
gap: var(--space-2);
|
|
2368
2368
|
justify-content: flex-end;
|
|
2369
2369
|
}
|
|
2370
|
-
`,va=class extends
|
|
2370
|
+
`,va=class extends ar{static styles=[...ar.styles,R4]};customElements.define(va.tagName,va);var I4=b`
|
|
2371
2371
|
:host {
|
|
2372
2372
|
display: block;
|
|
2373
2373
|
min-width: 100%;
|
|
@@ -2397,15 +2397,15 @@ label, legend, caption, figcaption, th, td {
|
|
|
2397
2397
|
--_columns: 1;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
`,JI,QI,_u,$y,
|
|
2400
|
+
`,JI,QI,_u,$y,dr=class extends(QI=x,JI=[u({reflect:!0})],QI){constructor(){super(...arguments);a(this,$y,n(_u,8,this,"3")),n(_u,11,this)}render(){return f`
|
|
2401
2401
|
<div part="root">
|
|
2402
2402
|
<slot></slot>
|
|
2403
2403
|
</div>
|
|
2404
|
-
`}};_u=A(QI),$y=new WeakMap,c(_u,4,"columns",JI,
|
|
2404
|
+
`}};_u=A(QI),$y=new WeakMap,c(_u,4,"columns",JI,dr,$y),T(_u,dr),v(dr,"tagName","dui-card-grid"),v(dr,"styles",[w,I4]);var L4=k`
|
|
2405
2405
|
[part="root"] {
|
|
2406
2406
|
gap: var(--space-4);
|
|
2407
2407
|
}
|
|
2408
|
-
`,ba=class extends
|
|
2408
|
+
`,ba=class extends dr{static styles=[...dr.styles,L4]};customElements.define(ba.tagName,ba);var Ru=Symbol("dui-checkbox-group");var By=M("checked-change",{bubbles:!0,composed:!0}),z4=b`
|
|
2409
2409
|
:host {
|
|
2410
2410
|
display: inline-flex;
|
|
2411
2411
|
align-items: start;
|
|
@@ -2613,7 +2613,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2613
2613
|
contain: content;
|
|
2614
2614
|
transition-property: height;
|
|
2615
2615
|
}
|
|
2616
|
-
`,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,Wy,Yy,Gy,Xy,Jy,Qy,a0,Du,W,Zy,t0,Hu,Bu,e0,o0,IL,Ci,r0,s0,l0,Fu,i0,n0,LL,d0,$i,Ti,
|
|
2616
|
+
`,wL,kL,EL,CL,$L,TL,SL,AL,_L,RL,Rt,Wy,Yy,Gy,Xy,Jy,Qy,a0,Du,W,Zy,t0,Hu,Bu,e0,o0,IL,Ci,r0,s0,l0,Fu,i0,n0,LL,d0,$i,Ti,Rs,Uc,zL,OL,Vu,Pu,ao=class extends(RL=x,_L=[u({type:Boolean,reflect:!0})],AL=[u({type:Boolean,attribute:"default-open"})],SL=[u({type:Boolean,reflect:!0})],TL=[u({type:Boolean,attribute:"keep-mounted"})],$L=[C()],CL=[C()],EL=[C()],kL=[C()],wL=[C()],RL){constructor(){super(...arguments);a(this,W);a(this,Wy,n(Rt,8,this,!1)),n(Rt,11,this);a(this,Yy,n(Rt,12,this,!1)),n(Rt,15,this);a(this,Gy,n(Rt,16,this,!1)),n(Rt,19,this);a(this,Xy,n(Rt,20,this,!1)),n(Rt,23,this);a(this,Jy,n(Rt,24,this,!1)),n(Rt,27,this);a(this,Zy,n(Rt,28,this,!1)),n(Rt,31,this);a(this,e0,n(Rt,32,this,"0")),n(Rt,35,this);a(this,r0,n(Rt,36,this,!1)),n(Rt,39,this);a(this,i0,n(Rt,40,this,!1)),n(Rt,43,this);a(this,$i);a(this,Ti,0);a(this,Rs,!1);a(this,Vu,t=>{t.propertyName==="height"&&(o(this,W,Hu)?(h(this,W,!1,Bu),this.keepMounted||h(this,W,!1,Fu)):o(this,W,Uc)&&h(this,W,"auto",Ci))});a(this,Pu,()=>{if(this.disabled)return;let t=!o(this,W,Uc);o(this,Rs)||h(this,W,t,d0),this.dispatchEvent(c0({open:t}))})}connectedCallback(){super.connectedCallback(),h(this,Rs,this.hasAttribute("open")),!o(this,Rs)&&this.defaultOpen&&h(this,W,!0,d0)}willUpdate(t){t.has("open")&&o(this,$i)!==void 0&&h(this,Rs,!0);let e=o(this,W,Uc);o(this,$i)===void 0?(h(this,W,e,Fu),h(this,W,e?"auto":"0",Ci)):o(this,$i)!==e&&(e?p(this,W,zL).call(this):p(this,W,OL).call(this)),h(this,$i,e)}render(){let t=o(this,W,Uc),e=o(this,W,l0)||this.keepMounted;return f`
|
|
2617
2617
|
<button
|
|
2618
2618
|
part="trigger"
|
|
2619
2619
|
aria-expanded=${t}
|
|
@@ -2640,7 +2640,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2640
2640
|
</div>
|
|
2641
2641
|
</div>
|
|
2642
2642
|
`:L}
|
|
2643
|
-
`}};Rt=A(RL),Wy=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Xy=new WeakMap,Jy=new WeakMap,W=new WeakSet,Zy=new WeakMap,e0=new WeakMap,r0=new WeakMap,i0=new WeakMap,$i=new WeakMap,Ti=new WeakMap,
|
|
2643
|
+
`}};Rt=A(RL),Wy=new WeakMap,Yy=new WeakMap,Gy=new WeakMap,Xy=new WeakMap,Jy=new WeakMap,W=new WeakSet,Zy=new WeakMap,e0=new WeakMap,r0=new WeakMap,i0=new WeakMap,$i=new WeakMap,Ti=new WeakMap,Rs=new WeakMap,Uc=function(){return o(this,Rs)?this.open:o(this,W,LL)},zL=function(){let t=++Cs(this,Ti)._;h(this,W,!1,Bu),h(this,W,!0,Fu),h(this,W,!0,Du),h(this,W,"0",Ci),requestAnimationFrame(()=>{if(o(this,Ti)!==t)return;let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),h(this,W,!1,Du)})},OL=function(){let t=++Cs(this,Ti)._;h(this,W,!1,Du);let e=this.shadowRoot?.querySelector("[part='panel']");e&&h(this,W,`${e.scrollHeight}px`,Ci),requestAnimationFrame(()=>{o(this,Ti)===t&&(h(this,W,!0,Bu),h(this,W,"0",Ci))})},Vu=new WeakMap,Pu=new WeakMap,c(Rt,4,"open",_L,ao,Wy),c(Rt,4,"defaultOpen",AL,ao,Yy),c(Rt,4,"disabled",SL,ao,Gy),c(Rt,4,"keepMounted",TL,ao,Xy),Qy=c(Rt,20,"#starting",$L,W,Jy),a0=Qy.get,Du=Qy.set,t0=c(Rt,20,"#ending",CL,W,Zy),Hu=t0.get,Bu=t0.set,o0=c(Rt,20,"#panelHeight",EL,W,e0),IL=o0.get,Ci=o0.set,s0=c(Rt,20,"#visible",kL,W,r0),l0=s0.get,Fu=s0.set,n0=c(Rt,20,"#internalOpen",wL,W,i0),LL=n0.get,d0=n0.set,T(Rt,ao),v(ao,"tagName","dui-collapsible"),v(ao,"styles",[w,B4]);var ML=Qr(`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`),F4=k`
|
|
2644
2644
|
/* ── Trigger ── */
|
|
2645
2645
|
|
|
2646
2646
|
[part="trigger"] {
|
|
@@ -2725,7 +2725,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2725
2725
|
transition-duration: 0s;
|
|
2726
2726
|
}
|
|
2727
2727
|
}
|
|
2728
|
-
`,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Rs=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Is=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,y=0,_=s.length-1,S=0,O=l.length-1;for(;y<=_&&S<=O;)if(s[y]===null)y++;else if(s[_]===null)_--;else if(m[y]===d[S])g[S]=Is(s[y],l[S]),y++,S++;else if(m[_]===d[O])g[O]=Is(s[_],l[O]),_--,O--;else if(m[y]===d[O])g[O]=Is(s[y],l[O]),Ca(i,g[O+1],s[y]),y++,O--;else if(m[_]===d[S])g[S]=Is(s[_],l[S]),Ca(i,s[y],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,O),$=FL(m,y,_)),E.has(m[y]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[y]);Is(K,l[S]),g[S]=K}else g[S]=Is(j,l[S]),Ca(i,s[y],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[y]),y++;for(;S<=O;){let B=Ca(i,g[O+1]);Is(B,l[S]),g[S++]=B}for(;y<=_;){let B=s[y++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var dr=Ea(class extends Rs{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},p0=i=>{ju.delete(i)};var Ls=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(i,r,t){return Me(i,Ls(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function rs(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function u0(i){return i==="x"?"y":"x"}function m0(i){return i==="y"?"height":"width"}function cr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function f0(i){return u0(cr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=f0(i),l=m0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(rs(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=rs(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=cr(r),d=f0(r),m=m0(d),g=rs(r),E=l==="y",$=e.x+e.width/2-s.width/2,y=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y};break;case"left":S={x:e.x-s.width,y};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),O=WL(S),j=m[_?y==="floating"?"reference":"floating":y],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=y==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+O.top)/J.y,bottom:(ge.bottom-K.bottom+O.bottom)/J.y,left:(K.left-ge.left+O.left)/J.x,right:(ge.right-K.right+O.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y}=YL(E,e,g),_=e,S=0,O={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:Oe}=await F({x:$,y,initialPlacement:e,placement:_,strategy:s,middlewareData:O,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,y=J??y,O[K]={...O[K],...ge},Oe&&S<Y4&&(S++,typeof Oe=="object"&&(Oe.placement&&(_=Oe.placement),Oe.rects&&(E=Oe.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):Oe.rects),{x:$,y}=YL(E,_,g)),B=-1)}return{x:$,y,placement:_,strategy:s,middlewareData:O}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=rs(s),F=cr(m),G=rs(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),Oe=O!=="none";!_&&Oe&&ge.push(...KL(m,B,O,J));let rr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Xr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),y){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Xr=[...Xr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,mb=rr[ni];if(mb&&(!(y==="alignment"?F!==cr(mb):!1)||Xr.every(Vo=>cr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Xr},reset:{placement:mb}};let uc=(pc=Xr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Xr.filter(Vo=>{if(Oe){let ks=cr(Vo.placement);return ks===F||ks==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(ks=>ks>0).reduce((ks,b3)=>ks+b3,0)]).sort((Vo,ks)=>Vo[1]-ks[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=rs(t),m=Ta(t),g=cr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,y=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:O}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof O=="number"&&(S=m==="end"?O*-1:O),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},y=await l.detectOverflow(r,E),_=cr(rs(s)),S=u0(_),O=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=O+y[K],J=O-y[F];O=h0(G,O,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+y[K],J=B-y[F];B=h0(G,B,J)}let j=g.fn({...r,[S]:O,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tz=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),y=rs(s),_=Ta(s),S=cr(s)==="y",{width:O,height:B}=l.floating,j,K;y==="top"||y==="bottom"?(j=y,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=y,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=O-$.left-$.right,J=Ls(B-$[j],F),ge=Ls(O-$[K],G),Oe=!r.middlewareData.shift,rr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(rr=F),Oe&&!_){let Xr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=O-2*(Xr!==0||cc!==0?Xr+cc:Me($.left,$.right)):rr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:rr});let ii=await d.getDimensions(m.floating);return O!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oz(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oz(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oz(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function pr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function ez(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rz(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",g0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sz(i){let r=ss(i);for(;pr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=ss(r)}return null}function Gu(){return g0==null&&(g0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function ss(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||ez(i)&&i.host||Ko(i);return ez(r)?r.host:r}function iz(i){let r=ss(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:pr(r)&&Aa(r)?r:iz(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iz(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dz(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=pr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function b0(i){return $o(i)?i:i.contextElement}function _a(i){let r=b0(i);if(!pr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dz(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cz(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=b0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cz(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,y=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,O=_,B=Xu(O);for(;B&&e&&S!==O;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,y*=j.y,g+=G,E+=J,O=qe(B),B=Xu(O)}}return Ai({width:$,height:y,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pz(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),y=pr(e);if((y||!y&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),y)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!y&&!l?pz(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nz=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,y=$.body,_=getComputedStyle(y),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,O=Math.abs(e.clientWidth-y.clientWidth-S);O<=nz&&(l-=O)}else E<=nz&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=pr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function az(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cz(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hz(i,r){let t=ss(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hz(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?ss(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hz(i,d))?e=e.filter($=>$!==d):s=m,d=ss(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=az(r,d[0],s),g=m.top,E=m.right,$=m.bottom,y=m.left;for(let _=1;_<d.length;_++){let S=az(r,d[_],s);g=Me(S.top,g),E=Ls(S.right,E),$=Ls(S.bottom,$),y=Me(S.left,y)}return{width:E-y,height:$-g,x:y,y:g}}function lV(i){let{width:r,height:t}=dz(i);return{width:r,height:t}}function dV(i,r,t){let e=pr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pz(s,m):jo(0),y=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x:y,y:_,width:d.width,height:d.height}}function v0(i){return To(i).position==="static"}function lz(i,r){if(!pr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uz(i,r){let t=qe(i);if(Wc(i))return t;if(!pr(i)){let s=ss(i);for(;s&&!Ii(s);){if($o(s)&&!v0(s))return s;s=ss(s)}return t}let e=lz(i,r);for(;e&&rz(e)&&v0(e);)e=lz(e,r);return e&&Ii(e)&&v0(e)&&!Yu(e)?t:e||sz(i)||t}var cV=async function(i){let r=this.getOffsetParent||uz,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var x0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uz,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mz(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:y,width:_,height:S}=E;if(m||r(),!_||!S)return;let O=Kc(y),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(y+S)),K=Kc($),G={rootMargin:-O+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,Ls(1,g))||1},J=!0;function ge(Oe){let rr=Oe[0].intersectionRatio;if(rr!==g){if(!J)return d();rr?d(!1,rr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}rr===1&&!mz(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fz(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=b0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let y=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let O,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mz(B,K)&&t(),B=K,O=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),y?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(O)}}var gz=QL;var vz=ZL,bz=JL,y0=tz;var xz=(i,r,t)=>{let e=new Map,s={platform:x0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var yz=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wz=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
|
|
2728
|
+
`,ka=class extends ao{static styles=[...ao.styles,F4]};customElements.define(ka.tagName,ka);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ea=i=>(...r)=>({_$litDirective$:i,values:r}),Is=class{constructor(r){}get _$AU(){return this._$AM._$AU}_$AT(r,t,e){this._$Ct=r,this._$AM=t,this._$Ci=e}_$AS(r,t){return this.update(r,t)}update(r,t){return this.render(...t)}};var{I:V4}=gR,NL=i=>i;var HL=i=>i.strings===void 0,DL=()=>document.createComment(""),Ca=(i,r,t)=>{let e=i._$AA.parentNode,s=r===void 0?i._$AB:r._$AA;if(t===void 0){let l=e.insertBefore(DL(),s),d=e.insertBefore(DL(),s);t=new V4(l,d,i,i.options)}else{let l=t._$AB.nextSibling,d=t._$AM,m=d!==i;if(m){let g;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(g=i._$AU)!==d._$AU&&t._$AP(g)}if(l!==s||m){let g=t._$AA;for(;g!==l;){let E=NL(g).nextSibling;NL(e).insertBefore(g,s),g=E}}}return t},Ls=(i,r,t=i)=>(i._$AI(r,t),i),P4={},Uu=(i,r=P4)=>i._$AH=r,BL=i=>i._$AH,qu=i=>{i._$AR(),i._$AA.remove()};var FL=(i,r,t)=>{let e=new Map;for(let s=r;s<=t;s++)e.set(i[s],s);return e},Si=Ea(class extends Is{constructor(i){if(super(i),i.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(i,r,t){let e;t===void 0?t=r:r!==void 0&&(e=r);let s=[],l=[],d=0;for(let m of i)s[d]=e?e(m,d):d,l[d]=t(m,d),d++;return{values:l,keys:s}}render(i,r,t){return this.dt(i,r,t).values}update(i,[r,t,e]){let s=BL(i),{values:l,keys:d}=this.dt(r,t,e);if(!Array.isArray(s))return this.ut=d,l;let m=this.ut??=[],g=[],E,$,y=0,_=s.length-1,S=0,O=l.length-1;for(;y<=_&&S<=O;)if(s[y]===null)y++;else if(s[_]===null)_--;else if(m[y]===d[S])g[S]=Ls(s[y],l[S]),y++,S++;else if(m[_]===d[O])g[O]=Ls(s[_],l[O]),_--,O--;else if(m[y]===d[O])g[O]=Ls(s[y],l[O]),Ca(i,g[O+1],s[y]),y++,O--;else if(m[_]===d[S])g[S]=Ls(s[_],l[S]),Ca(i,s[y],s[_]),_--,S++;else if(E===void 0&&(E=FL(d,S,O),$=FL(m,y,_)),E.has(m[y]))if(E.has(m[_])){let B=$.get(d[S]),j=B!==void 0?s[B]:null;if(j===null){let K=Ca(i,s[y]);Ls(K,l[S]),g[S]=K}else g[S]=Ls(j,l[S]),Ca(i,s[y],j),s[B]=null;S++}else qu(s[_]),_--;else qu(s[y]),y++;for(;S<=O;){let B=Ca(i,g[O+1]);Ls(B,l[S]),g[S++]=B}for(;y<=_;){let B=s[y++];B!==null&&qu(B)}return this.ut=d,Uu(i,g),Ee}});var cr=Ea(class extends Is{constructor(i){if(super(i),i.type!==qo.PROPERTY&&i.type!==qo.ATTRIBUTE&&i.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!HL(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[r]){if(r===Ee||r===L)return r;let t=i.element,e=i.name;if(i.type===qo.PROPERTY){if(r===t[e])return Ee}else if(i.type===qo.BOOLEAN_ATTRIBUTE){if(!!r===t.hasAttribute(e))return Ee}else if(i.type===qo.ATTRIBUTE&&t.getAttribute(e)===r+"")return Ee;return Uu(i),r}});var ju=new Map,VL=(i,r)=>{for(let[t,e]of ju)t!==i&&e();ju.clear(),ju.set(i,r)},p0=i=>{ju.delete(i)};var zs=Math.min,Me=Math.max,jc=Math.round,Kc=Math.floor,jo=i=>({x:i,y:i}),U4={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(i,r,t){return Me(i,zs(r,t))}function $a(i,r){return typeof i=="function"?i(r):i}function ss(i){return i.split("-")[0]}function Ta(i){return i.split("-")[1]}function u0(i){return i==="x"?"y":"x"}function m0(i){return i==="y"?"height":"width"}function pr(i){let r=i[0];return r==="t"||r==="b"?"y":"x"}function f0(i){return u0(pr(i))}function qL(i,r,t){t===void 0&&(t=!1);let e=Ta(i),s=f0(i),l=m0(s),d=s==="x"?e===(t?"end":"start")?"right":"left":e==="start"?"bottom":"top";return r.reference[l]>r.floating[l]&&(d=qc(d)),[d,qc(d)]}function jL(i){let r=qc(i);return[Ku(i),r,Ku(r)]}function Ku(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var PL=["left","right"],UL=["right","left"],q4=["top","bottom"],j4=["bottom","top"];function K4(i,r,t){switch(i){case"top":case"bottom":return t?r?UL:PL:r?PL:UL;case"left":case"right":return r?q4:j4;default:return[]}}function KL(i,r,t,e){let s=Ta(i),l=K4(ss(i),t==="start",e);return s&&(l=l.map(d=>d+"-"+s),r&&(l=l.concat(l.map(Ku)))),l}function qc(i){let r=ss(i);return U4[r]+i.slice(r.length)}function W4(i){return{top:0,right:0,bottom:0,left:0,...i}}function WL(i){return typeof i!="number"?W4(i):{top:i,right:i,bottom:i,left:i}}function Ai(i){let{x:r,y:t,width:e,height:s}=i;return{width:e,height:s,top:t,left:r,right:r+e,bottom:t+s,x:r,y:t}}function YL(i,r,t){let{reference:e,floating:s}=i,l=pr(r),d=f0(r),m=m0(d),g=ss(r),E=l==="y",$=e.x+e.width/2-s.width/2,y=e.y+e.height/2-s.height/2,_=e[m]/2-s[m]/2,S;switch(g){case"top":S={x:$,y:e.y-s.height};break;case"bottom":S={x:$,y:e.y+e.height};break;case"right":S={x:e.x+e.width,y};break;case"left":S={x:e.x-s.width,y};break;default:S={x:e.x,y:e.y}}switch(Ta(r)){case"start":S[d]-=_*(t&&E?-1:1);break;case"end":S[d]+=_*(t&&E?-1:1);break}return S}async function GL(i,r){var t;r===void 0&&(r={});let{x:e,y:s,platform:l,rects:d,elements:m,strategy:g}=i,{boundary:E="clippingAncestors",rootBoundary:$="viewport",elementContext:y="floating",altBoundary:_=!1,padding:S=0}=$a(r,i),O=WL(S),j=m[_?y==="floating"?"reference":"floating":y],K=Ai(await l.getClippingRect({element:(t=await(l.isElement==null?void 0:l.isElement(j)))==null||t?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(m.floating)),boundary:E,rootBoundary:$,strategy:g})),F=y==="floating"?{x:e,y:s,width:d.floating.width,height:d.floating.height}:d.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(m.floating)),J=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},ge=Ai(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:F,offsetParent:G,strategy:g}):F);return{top:(K.top-ge.top+O.top)/J.y,bottom:(ge.bottom-K.bottom+O.bottom)/J.y,left:(K.left-ge.left+O.left)/J.x,right:(ge.right-K.right+O.right)/J.x}}var Y4=50,XL=async(i,r,t)=>{let{placement:e="bottom",strategy:s="absolute",middleware:l=[],platform:d}=t,m=d.detectOverflow?d:{...d,detectOverflow:GL},g=await(d.isRTL==null?void 0:d.isRTL(r)),E=await d.getElementRects({reference:i,floating:r,strategy:s}),{x:$,y}=YL(E,e,g),_=e,S=0,O={};for(let B=0;B<l.length;B++){let j=l[B];if(!j)continue;let{name:K,fn:F}=j,{x:G,y:J,data:ge,reset:Oe}=await F({x:$,y,initialPlacement:e,placement:_,strategy:s,middlewareData:O,rects:E,platform:m,elements:{reference:i,floating:r}});$=G??$,y=J??y,O[K]={...O[K],...ge},Oe&&S<Y4&&(S++,typeof Oe=="object"&&(Oe.placement&&(_=Oe.placement),Oe.rects&&(E=Oe.rects===!0?await d.getElementRects({reference:i,floating:r,strategy:s}):Oe.rects),{x:$,y}=YL(E,_,g)),B=-1)}return{x:$,y,placement:_,strategy:s,middlewareData:O}};var JL=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(r){var t,e;let{placement:s,middlewareData:l,rects:d,initialPlacement:m,platform:g,elements:E}=r,{mainAxis:$=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:B=!0,...j}=$a(i,r);if((t=l.arrow)!=null&&t.alignmentOffset)return{};let K=ss(s),F=pr(m),G=ss(m)===m,J=await(g.isRTL==null?void 0:g.isRTL(E.floating)),ge=_||(G||!B?[qc(m)]:jL(m)),Oe=O!=="none";!_&&Oe&&ge.push(...KL(m,B,O,J));let sr=[m,...ge],si=await g.detectOverflow(r,j),ii=[],Jr=((e=l.flip)==null?void 0:e.overflows)||[];if($&&ii.push(si[K]),y){let ni=qL(s,d,J);ii.push(si[ni[0]],si[ni[1]])}if(Jr=[...Jr,{placement:s,overflows:ii}],!ii.every(ni=>ni<=0)){var cc,pc;let ni=(((cc=l.flip)==null?void 0:cc.index)||0)+1,mb=sr[ni];if(mb&&(!(y==="alignment"?F!==pr(mb):!1)||Jr.every(Vo=>pr(Vo.placement)===F?Vo.overflows[0]>0:!0)))return{data:{index:ni,overflows:Jr},reset:{placement:mb}};let uc=(pc=Jr.filter(ai=>ai.overflows[0]<=0).sort((ai,Vo)=>ai.overflows[1]-Vo.overflows[1])[0])==null?void 0:pc.placement;if(!uc)switch(S){case"bestFit":{var hc;let ai=(hc=Jr.filter(Vo=>{if(Oe){let Es=pr(Vo.placement);return Es===F||Es==="y"}return!0}).map(Vo=>[Vo.placement,Vo.overflows.filter(Es=>Es>0).reduce((Es,b3)=>Es+b3,0)]).sort((Vo,Es)=>Vo[1]-Es[1])[0])==null?void 0:hc[0];ai&&(uc=ai);break}case"initialPlacement":uc=m;break}if(s!==uc)return{reset:{placement:uc}}}return{}}}};var G4=new Set(["left","top"]);async function X4(i,r){let{placement:t,platform:e,elements:s}=i,l=await(e.isRTL==null?void 0:e.isRTL(s.floating)),d=ss(t),m=Ta(t),g=pr(t)==="y",E=G4.has(d)?-1:1,$=l&&g?-1:1,y=$a(r,i),{mainAxis:_,crossAxis:S,alignmentAxis:O}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof O=="number"&&(S=m==="end"?O*-1:O),g?{x:S*$,y:_*E}:{x:_*E,y:S*$}}var QL=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(r){var t,e;let{x:s,y:l,placement:d,middlewareData:m}=r,g=await X4(r,i);return d===((t=m.offset)==null?void 0:t.placement)&&(e=m.arrow)!=null&&e.alignmentOffset?{}:{x:s+g.x,y:l+g.y,data:{...g,placement:d}}}}},ZL=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(r){let{x:t,y:e,placement:s,platform:l}=r,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:K=>{let{x:F,y:G}=K;return{x:F,y:G}}},...E}=$a(i,r),$={x:t,y:e},y=await l.detectOverflow(r,E),_=pr(ss(s)),S=u0(_),O=$[S],B=$[_];if(d){let K=S==="y"?"top":"left",F=S==="y"?"bottom":"right",G=O+y[K],J=O-y[F];O=h0(G,O,J)}if(m){let K=_==="y"?"top":"left",F=_==="y"?"bottom":"right",G=B+y[K],J=B-y[F];B=h0(G,B,J)}let j=g.fn({...r,[S]:O,[_]:B});return{...j,data:{x:j.x-t,y:j.y-e,enabled:{[S]:d,[_]:m}}}}}};var tz=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(r){var t,e;let{placement:s,rects:l,platform:d,elements:m}=r,{apply:g=()=>{},...E}=$a(i,r),$=await d.detectOverflow(r,E),y=ss(s),_=Ta(s),S=pr(s)==="y",{width:O,height:B}=l.floating,j,K;y==="top"||y==="bottom"?(j=y,K=_===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(K=y,j=_==="end"?"top":"bottom");let F=B-$.top-$.bottom,G=O-$.left-$.right,J=zs(B-$[j],F),ge=zs(O-$[K],G),Oe=!r.middlewareData.shift,sr=J,si=ge;if((t=r.middlewareData.shift)!=null&&t.enabled.x&&(si=G),(e=r.middlewareData.shift)!=null&&e.enabled.y&&(sr=F),Oe&&!_){let Jr=Me($.left,0),cc=Me($.right,0),pc=Me($.top,0),hc=Me($.bottom,0);S?si=O-2*(Jr!==0||cc!==0?Jr+cc:Me($.left,$.right)):sr=B-2*(pc!==0||hc!==0?pc+hc:Me($.top,$.bottom))}await g({...r,availableWidth:si,availableHeight:sr});let ii=await d.getDimensions(m.floating);return O!==ii.width||B!==ii.height?{reset:{rects:!0}}:{}}}};function Wu(){return typeof window<"u"}function Ri(i){return oz(i)?(i.nodeName||"").toLowerCase():"#document"}function qe(i){var r;return(i==null||(r=i.ownerDocument)==null?void 0:r.defaultView)||window}function Ko(i){var r;return(r=(oz(i)?i.ownerDocument:i.document)||window.document)==null?void 0:r.documentElement}function oz(i){return Wu()?i instanceof Node||i instanceof qe(i).Node:!1}function $o(i){return Wu()?i instanceof Element||i instanceof qe(i).Element:!1}function hr(i){return Wu()?i instanceof HTMLElement||i instanceof qe(i).HTMLElement:!1}function ez(i){return!Wu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof qe(i).ShadowRoot}function Aa(i){let{overflow:r,overflowX:t,overflowY:e,display:s}=To(i);return/auto|scroll|overlay|hidden|clip/.test(r+e+t)&&s!=="inline"&&s!=="contents"}function rz(i){return/^(table|td|th)$/.test(Ri(i))}function Wc(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var J4=/transform|translate|scale|rotate|perspective|filter/,Q4=/paint|layout|strict|content/,_i=i=>!!i&&i!=="none",g0;function Yu(i){let r=$o(i)?To(i):i;return _i(r.transform)||_i(r.translate)||_i(r.scale)||_i(r.rotate)||_i(r.perspective)||!Gu()&&(_i(r.backdropFilter)||_i(r.filter))||J4.test(r.willChange||"")||Q4.test(r.contain||"")}function sz(i){let r=is(i);for(;hr(r)&&!Ii(r);){if(Yu(r))return r;if(Wc(r))return null;r=is(r)}return null}function Gu(){return g0==null&&(g0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),g0}function Ii(i){return/^(html|body|#document)$/.test(Ri(i))}function To(i){return qe(i).getComputedStyle(i)}function Yc(i){return $o(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function is(i){if(Ri(i)==="html")return i;let r=i.assignedSlot||i.parentNode||ez(i)&&i.host||Ko(i);return ez(r)?r.host:r}function iz(i){let r=is(i);return Ii(r)?i.ownerDocument?i.ownerDocument.body:i.body:hr(r)&&Aa(r)?r:iz(r)}function Sa(i,r,t){var e;r===void 0&&(r=[]),t===void 0&&(t=!0);let s=iz(i),l=s===((e=i.ownerDocument)==null?void 0:e.body),d=qe(s);if(l){let m=Xu(d);return r.concat(d,d.visualViewport||[],Aa(s)?s:[],m&&t?Sa(m):[])}else return r.concat(s,Sa(s,[],t))}function Xu(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function dz(i){let r=To(i),t=parseFloat(r.width)||0,e=parseFloat(r.height)||0,s=hr(i),l=s?i.offsetWidth:t,d=s?i.offsetHeight:e,m=jc(t)!==l||jc(e)!==d;return m&&(t=l,e=d),{width:t,height:e,$:m}}function b0(i){return $o(i)?i:i.contextElement}function _a(i){let r=b0(i);if(!hr(r))return jo(1);let t=r.getBoundingClientRect(),{width:e,height:s,$:l}=dz(r),d=(l?jc(t.width):t.width)/e,m=(l?jc(t.height):t.height)/s;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}var Z4=jo(0);function cz(i){let r=qe(i);return!Gu()||!r.visualViewport?Z4:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tV(i,r,t){return r===void 0&&(r=!1),!t||r&&t!==qe(i)?!1:r}function Li(i,r,t,e){r===void 0&&(r=!1),t===void 0&&(t=!1);let s=i.getBoundingClientRect(),l=b0(i),d=jo(1);r&&(e?$o(e)&&(d=_a(e)):d=_a(i));let m=tV(l,t,e)?cz(l):jo(0),g=(s.left+m.x)/d.x,E=(s.top+m.y)/d.y,$=s.width/d.x,y=s.height/d.y;if(l){let _=qe(l),S=e&&$o(e)?qe(e):e,O=_,B=Xu(O);for(;B&&e&&S!==O;){let j=_a(B),K=B.getBoundingClientRect(),F=To(B),G=K.left+(B.clientLeft+parseFloat(F.paddingLeft))*j.x,J=K.top+(B.clientTop+parseFloat(F.paddingTop))*j.y;g*=j.x,E*=j.y,$*=j.x,y*=j.y,g+=G,E+=J,O=qe(B),B=Xu(O)}}return Ai({width:$,height:y,x:g,y:E})}function Ju(i,r){let t=Yc(i).scrollLeft;return r?r.left+t:Li(Ko(i)).left+t}function pz(i,r){let t=i.getBoundingClientRect(),e=t.left+r.scrollLeft-Ju(i,t),s=t.top+r.scrollTop;return{x:e,y:s}}function eV(i){let{elements:r,rect:t,offsetParent:e,strategy:s}=i,l=s==="fixed",d=Ko(e),m=r?Wc(r.floating):!1;if(e===d||m&&l)return t;let g={scrollLeft:0,scrollTop:0},E=jo(1),$=jo(0),y=hr(e);if((y||!y&&!l)&&((Ri(e)!=="body"||Aa(d))&&(g=Yc(e)),y)){let S=Li(e);E=_a(e),$.x=S.x+e.clientLeft,$.y=S.y+e.clientTop}let _=d&&!y&&!l?pz(d,g):jo(0);return{width:t.width*E.x,height:t.height*E.y,x:t.x*E.x-g.scrollLeft*E.x+$.x+_.x,y:t.y*E.y-g.scrollTop*E.y+$.y+_.y}}function oV(i){return Array.from(i.getClientRects())}function rV(i){let r=Ko(i),t=Yc(i),e=i.ownerDocument.body,s=Me(r.scrollWidth,r.clientWidth,e.scrollWidth,e.clientWidth),l=Me(r.scrollHeight,r.clientHeight,e.scrollHeight,e.clientHeight),d=-t.scrollLeft+Ju(i),m=-t.scrollTop;return To(e).direction==="rtl"&&(d+=Me(r.clientWidth,e.clientWidth)-s),{width:s,height:l,x:d,y:m}}var nz=25;function sV(i,r){let t=qe(i),e=Ko(i),s=t.visualViewport,l=e.clientWidth,d=e.clientHeight,m=0,g=0;if(s){l=s.width,d=s.height;let $=Gu();(!$||$&&r==="fixed")&&(m=s.offsetLeft,g=s.offsetTop)}let E=Ju(e);if(E<=0){let $=e.ownerDocument,y=$.body,_=getComputedStyle(y),S=$.compatMode==="CSS1Compat"&&parseFloat(_.marginLeft)+parseFloat(_.marginRight)||0,O=Math.abs(e.clientWidth-y.clientWidth-S);O<=nz&&(l-=O)}else E<=nz&&(l+=E);return{width:l,height:d,x:m,y:g}}function iV(i,r){let t=Li(i,!0,r==="fixed"),e=t.top+i.clientTop,s=t.left+i.clientLeft,l=hr(i)?_a(i):jo(1),d=i.clientWidth*l.x,m=i.clientHeight*l.y,g=s*l.x,E=e*l.y;return{width:d,height:m,x:g,y:E}}function az(i,r,t){let e;if(r==="viewport")e=sV(i,t);else if(r==="document")e=rV(Ko(i));else if($o(r))e=iV(r,t);else{let s=cz(i);e={x:r.x-s.x,y:r.y-s.y,width:r.width,height:r.height}}return Ai(e)}function hz(i,r){let t=is(i);return t===r||!$o(t)||Ii(t)?!1:To(t).position==="fixed"||hz(t,r)}function nV(i,r){let t=r.get(i);if(t)return t;let e=Sa(i,[],!1).filter(m=>$o(m)&&Ri(m)!=="body"),s=null,l=To(i).position==="fixed",d=l?is(i):i;for(;$o(d)&&!Ii(d);){let m=To(d),g=Yu(d);!g&&m.position==="fixed"&&(s=null),(l?!g&&!s:!g&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||Aa(d)&&!g&&hz(i,d))?e=e.filter($=>$!==d):s=m,d=is(d)}return r.set(i,e),e}function aV(i){let{element:r,boundary:t,rootBoundary:e,strategy:s}=i,d=[...t==="clippingAncestors"?Wc(r)?[]:nV(r,this._c):[].concat(t),e],m=az(r,d[0],s),g=m.top,E=m.right,$=m.bottom,y=m.left;for(let _=1;_<d.length;_++){let S=az(r,d[_],s);g=Me(S.top,g),E=zs(S.right,E),$=zs(S.bottom,$),y=Me(S.left,y)}return{width:E-y,height:$-g,x:y,y:g}}function lV(i){let{width:r,height:t}=dz(i);return{width:r,height:t}}function dV(i,r,t){let e=hr(r),s=Ko(r),l=t==="fixed",d=Li(i,!0,l,r),m={scrollLeft:0,scrollTop:0},g=jo(0);function E(){g.x=Ju(s)}if(e||!e&&!l)if((Ri(r)!=="body"||Aa(s))&&(m=Yc(r)),e){let S=Li(r,!0,l,r);g.x=S.x+r.clientLeft,g.y=S.y+r.clientTop}else s&&E();l&&!e&&s&&E();let $=s&&!e&&!l?pz(s,m):jo(0),y=d.left+m.scrollLeft-g.x-$.x,_=d.top+m.scrollTop-g.y-$.y;return{x:y,y:_,width:d.width,height:d.height}}function v0(i){return To(i).position==="static"}function lz(i,r){if(!hr(i)||To(i).position==="fixed")return null;if(r)return r(i);let t=i.offsetParent;return Ko(i)===t&&(t=t.ownerDocument.body),t}function uz(i,r){let t=qe(i);if(Wc(i))return t;if(!hr(i)){let s=is(i);for(;s&&!Ii(s);){if($o(s)&&!v0(s))return s;s=is(s)}return t}let e=lz(i,r);for(;e&&rz(e)&&v0(e);)e=lz(e,r);return e&&Ii(e)&&v0(e)&&!Yu(e)?t:e||sz(i)||t}var cV=async function(i){let r=this.getOffsetParent||uz,t=this.getDimensions,e=await t(i.floating);return{reference:dV(i.reference,await r(i.floating),i.strategy),floating:{x:0,y:0,width:e.width,height:e.height}}};function pV(i){return To(i).direction==="rtl"}var x0={convertOffsetParentRelativeRectToViewportRelativeRect:eV,getDocumentElement:Ko,getClippingRect:aV,getOffsetParent:uz,getElementRects:cV,getClientRects:oV,getDimensions:lV,getScale:_a,isElement:$o,isRTL:pV};function mz(i,r){return i.x===r.x&&i.y===r.y&&i.width===r.width&&i.height===r.height}function hV(i,r){let t=null,e,s=Ko(i);function l(){var m;clearTimeout(e),(m=t)==null||m.disconnect(),t=null}function d(m,g){m===void 0&&(m=!1),g===void 0&&(g=1),l();let E=i.getBoundingClientRect(),{left:$,top:y,width:_,height:S}=E;if(m||r(),!_||!S)return;let O=Kc(y),B=Kc(s.clientWidth-($+_)),j=Kc(s.clientHeight-(y+S)),K=Kc($),G={rootMargin:-O+"px "+-B+"px "+-j+"px "+-K+"px",threshold:Me(0,zs(1,g))||1},J=!0;function ge(Oe){let sr=Oe[0].intersectionRatio;if(sr!==g){if(!J)return d();sr?d(!1,sr):e=setTimeout(()=>{d(!1,1e-7)},1e3)}sr===1&&!mz(E,i.getBoundingClientRect())&&d(),J=!1}try{t=new IntersectionObserver(ge,{...G,root:s.ownerDocument})}catch{t=new IntersectionObserver(ge,G)}t.observe(i)}return d(!0),l}function fz(i,r,t,e){e===void 0&&(e={});let{ancestorScroll:s=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=e,E=b0(i),$=s||l?[...E?Sa(E):[],...r?Sa(r):[]]:[];$.forEach(K=>{s&&K.addEventListener("scroll",t,{passive:!0}),l&&K.addEventListener("resize",t)});let y=E&&m?hV(E,t):null,_=-1,S=null;d&&(S=new ResizeObserver(K=>{let[F]=K;F&&F.target===E&&S&&r&&(S.unobserve(r),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(r)})),t()}),E&&!g&&S.observe(E),r&&S.observe(r));let O,B=g?Li(i):null;g&&j();function j(){let K=Li(i);B&&!mz(B,K)&&t(),B=K,O=requestAnimationFrame(j)}return t(),()=>{var K;$.forEach(F=>{s&&F.removeEventListener("scroll",t),l&&F.removeEventListener("resize",t)}),y?.(),(K=S)==null||K.disconnect(),S=null,g&&cancelAnimationFrame(O)}}var gz=QL;var vz=ZL,bz=JL,y0=tz;var xz=(i,r,t)=>{let e=new Map,s={platform:x0,...t},l={...s.platform,_c:e};return XL(i,r,{...s,platform:l})};var yz=()=>new Promise(i=>requestAnimationFrame(()=>requestAnimationFrame(()=>i()))),wz=(i,r,t=200)=>{let e=!1,s=()=>{e||(e=!0,i.removeEventListener("transitionend",l),clearTimeout(d),r())},l=()=>s();i.addEventListener("transitionend",l);let d=setTimeout(s,t)},Ra=i=>f`
|
|
2729
2729
|
<svg class="Arrow" part="arrow" viewBox="0 0 10 6" data-side="${i}">
|
|
2730
2730
|
<polygon class="arrow-fill" points="0,0 5,6 10,0" />
|
|
2731
2731
|
<path class="arrow-stroke" d="M 0,0 L 5,6 L 10,0" />
|
|
@@ -2838,7 +2838,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2838
2838
|
text-overflow: ellipsis;
|
|
2839
2839
|
white-space: nowrap;
|
|
2840
2840
|
}
|
|
2841
|
-
`],Ez,Cz,$z,Tz,Sz,Az,_z,Rz,Iz,Lz,Ia,It,w0,k0,E0,C0,$0,T0,S0,Q,zz,A0,_0,
|
|
2841
|
+
`],Ez,Cz,$z,Tz,Sz,Az,_z,Rz,Iz,Lz,Ia,It,w0,k0,E0,C0,$0,T0,S0,Q,zz,A0,_0,ns,ur,R0,I0,Qu,zi,oe,Gc,Oi,L0,tm,em,om,z0,O0,rm,sm,im,nm,am,lm,ye=class extends(Lz=x,Iz=[u({attribute:!1})],Rz=[u({type:String})],_z=[u({attribute:!1})],Az=[u({type:Boolean,reflect:!0})],Sz=[u({type:String})],Tz=[u({type:Boolean,reflect:!0})],$z=[u({type:String})],Cz=[C()],Ez=[C()],Lz){constructor(){super();a(this,Q);a(this,Ia);a(this,w0,n(It,8,this,[])),n(It,11,this);a(this,k0,n(It,12,this,"")),n(It,15,this);a(this,E0,n(It,16,this,new Set)),n(It,19,this);a(this,C0,n(It,20,this,!1)),n(It,23,this);a(this,$0,n(It,24,this,"Search...")),n(It,27,this);a(this,T0,n(It,28,this,!1)),n(It,31,this);a(this,S0,n(It,32,this,"")),n(It,35,this);a(this,A0,n(It,36,this,-1)),n(It,39,this);a(this,R0,n(It,40,this,"")),n(It,43,this);a(this,oe,new Te(this,{getAnchor:()=>this.multiple?this.shadowRoot?.querySelector(".Chips"):this.shadowRoot?.querySelector(".InputWrapper"),styles:bV,onOpen:()=>{if(h(this,Q,-1,ur),!this.multiple){h(this,Q,"",zi);let t=this.shadowRoot?.querySelector(".Input");t&&(t.value="")}},onClose:()=>{if(h(this,Q,-1,ur),!this.multiple){let t=this.options.find(e=>e.value===this.value);h(this,Q,t?.label??"",zi)}},renderPopup:t=>{let e=o(this,Q,L0),s=e.length===0;return f`
|
|
2842
2842
|
<div
|
|
2843
2843
|
class="Popup"
|
|
2844
2844
|
?data-starting-style="${t.isStarting}"
|
|
@@ -2859,7 +2859,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2859
2859
|
</div>
|
|
2860
2860
|
</dui-scroll-area>
|
|
2861
2861
|
</div>
|
|
2862
|
-
`}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,Oi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);a(this,tm,t=>{let e=t.target;h(this,Q,e.value,zi),o(this,oe).isOpen||this.disabled||o(this,oe).open(),h(this,Q,-1,
|
|
2862
|
+
`}}));a(this,Gc,`combobox-input-${crypto.randomUUID().slice(0,8)}`);a(this,Oi,`combobox-list-${crypto.randomUUID().slice(0,8)}`);a(this,tm,t=>{let e=t.target;h(this,Q,e.value,zi),o(this,oe).isOpen||this.disabled||o(this,oe).open(),h(this,Q,-1,ur)});a(this,em,()=>{!o(this,oe).isOpen&&!this.disabled&&o(this,oe).open()});a(this,om,t=>{let e=o(this,Q,L0);switch(t.key){case"ArrowDown":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.min(o(this,Q,ns)+1,e.length-1),ur):this.disabled||o(this,oe).open();break;case"ArrowUp":t.preventDefault(),o(this,oe).isOpen?h(this,Q,Math.max(o(this,Q,ns)-1,0),ur):this.disabled||o(this,oe).open();break;case"Enter":{if(t.preventDefault(),o(this,oe).isOpen){let s=o(this,Q,ns)>=0?o(this,Q,ns):0,l=e[s];l&&p(this,Q,z0).call(this,l)}else this.disabled||o(this,oe).open();break}case"Escape":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,"",zi),o(this,oe).close());break;case"Tab":o(this,oe).isOpen&&o(this,oe).close();break;case"Home":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,0,ur));break;case"End":o(this,oe).isOpen&&(t.preventDefault(),h(this,Q,e.length-1,ur));break;case"Backspace":if(this.multiple&&o(this,Q,Qu)===""&&this.values.size>0){let s=Array.from(this.values).at(-1);s&&p(this,Q,O0).call(this,s)}break}});a(this,rm,t=>{p(this,Q,z0).call(this,t)});a(this,sm,t=>{t.preventDefault()});a(this,im,()=>{o(this,Q,ns)!==-1&&h(this,Q,-1,ur)});a(this,nm,()=>{this.shadowRoot?.querySelector(".Input")?.focus()});a(this,am,t=>{let s=this.options.find(l=>l.value===t)?.label??t;return f`
|
|
2863
2863
|
<span class="Chip">
|
|
2864
2864
|
<span class="ChipLabel">${s}</span>
|
|
2865
2865
|
<button
|
|
@@ -2872,7 +2872,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2872
2872
|
<dui-icon><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg></dui-icon>
|
|
2873
2873
|
</button>
|
|
2874
2874
|
</span>
|
|
2875
|
-
`});a(this,lm,(t,e)=>{let s=this.multiple?this.values.has(t.value):t.value===this.value,l=e===o(this,Q,
|
|
2875
|
+
`});a(this,lm,(t,e)=>{let s=this.multiple?this.values.has(t.value):t.value===this.value,l=e===o(this,Q,ns);return f`
|
|
2876
2876
|
<div
|
|
2877
2877
|
class="Item"
|
|
2878
2878
|
role="option"
|
|
@@ -2897,8 +2897,8 @@ label, legend, caption, figcaption, th, td {
|
|
|
2897
2897
|
aria-haspopup="listbox"
|
|
2898
2898
|
aria-expanded="${o(this,oe).isOpen}"
|
|
2899
2899
|
aria-controls="${o(this,Oi)}"
|
|
2900
|
-
aria-activedescendant="${o(this,Q,
|
|
2901
|
-
.value="${
|
|
2900
|
+
aria-activedescendant="${o(this,Q,ns)>=0?`${o(this,Oi)}-option-${o(this,Q,ns)}`:L}"
|
|
2901
|
+
.value="${cr(o(this,Q,Qu))}"
|
|
2902
2902
|
.placeholder="${this.placeholder}"
|
|
2903
2903
|
?disabled="${this.disabled}"
|
|
2904
2904
|
@input="${o(this,tm)}"
|
|
@@ -2921,7 +2921,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
2921
2921
|
${t}
|
|
2922
2922
|
<dui-icon class="Arrow"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg></dui-icon>
|
|
2923
2923
|
</div>
|
|
2924
|
-
`}};It=A(Lz),Ia=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,T0=new WeakMap,S0=new WeakMap,Q=new WeakSet,zz=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);o(this,Ia).setFormValue(t)}else o(this,Ia).setFormValue(this.value||null)},A0=new WeakMap,R0=new WeakMap,oe=new WeakMap,Gc=new WeakMap,Oi=new WeakMap,L0=function(){let t=o(this,Q,Qu).toLowerCase(),e=this.options;return t?e.filter(s=>s.label.toLowerCase().includes(t)):e},tm=new WeakMap,em=new WeakMap,om=new WeakMap,z0=function(t){if(this.multiple){let e=new Set(this.values),s=!e.has(t.value);s?e.add(t.value):e.delete(t.value),this.values=e,h(this,Q,"",zi),h(this,Q,-1,
|
|
2924
|
+
`}};It=A(Lz),Ia=new WeakMap,w0=new WeakMap,k0=new WeakMap,E0=new WeakMap,C0=new WeakMap,$0=new WeakMap,T0=new WeakMap,S0=new WeakMap,Q=new WeakSet,zz=function(){if(this.multiple){let t=new FormData;for(let e of this.values)t.append(this.name||"values",e);o(this,Ia).setFormValue(t)}else o(this,Ia).setFormValue(this.value||null)},A0=new WeakMap,R0=new WeakMap,oe=new WeakMap,Gc=new WeakMap,Oi=new WeakMap,L0=function(){let t=o(this,Q,Qu).toLowerCase(),e=this.options;return t?e.filter(s=>s.label.toLowerCase().includes(t)):e},tm=new WeakMap,em=new WeakMap,om=new WeakMap,z0=function(t){if(this.multiple){let e=new Set(this.values),s=!e.has(t.value);s?e.add(t.value):e.delete(t.value),this.values=e,h(this,Q,"",zi),h(this,Q,-1,ur),this.dispatchEvent(Zu({value:t.value,selected:s,values:e})),this.shadowRoot?.querySelector(".Input")?.focus()}else this.value=t.value,h(this,Q,t.label,zi),this.dispatchEvent(M0({value:t.value,option:t})),o(this,oe).close()},O0=function(t){let e=new Set(this.values);e.delete(t),this.values=e,this.dispatchEvent(Zu({value:t,selected:!1,values:e}))},rm=new WeakMap,sm=new WeakMap,im=new WeakMap,nm=new WeakMap,am=new WeakMap,lm=new WeakMap,c(It,4,"options",Iz,ye,w0),c(It,4,"value",Rz,ye,k0),c(It,4,"values",_z,ye,E0),c(It,4,"multiple",Az,ye,C0),c(It,4,"placeholder",Sz,ye,$0),c(It,4,"disabled",Tz,ye,T0),c(It,4,"name",$z,ye,S0),_0=c(It,20,"#highlightedIndex",Cz,Q,A0),ns=_0.get,ur=_0.set,I0=c(It,20,"#inputValue",Ez,Q,R0),Qu=I0.get,zi=I0.set,T(It,ye),v(ye,"tagName","dui-combobox"),v(ye,"formAssociated",!0),v(ye,"styles",[w,gV,vV]);var xV=k`
|
|
2925
2925
|
/* ---- Chips (multi-select container) ---- */
|
|
2926
2926
|
|
|
2927
2927
|
.Chips {
|
|
@@ -3083,7 +3083,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3083
3083
|
flex-direction: column;
|
|
3084
3084
|
overflow: hidden;
|
|
3085
3085
|
}
|
|
3086
|
-
`,Oz,Mz,Nz,Dz,Hz,Bz,Fz,Vz,jt,N0,D0,H0,B0,F0,V0,
|
|
3086
|
+
`,Oz,Mz,Nz,Dz,Hz,Bz,Fz,Vz,jt,N0,D0,H0,B0,F0,V0,Os,Pz,pt,P0,U0,Jc,Qc,Ms,Ns,Zc,mr,cm,Uz,pm,za,hm,um,mm,fm,gm,vm,bm,xm,ym,tp,ep,q0,dm,je=class extends(Vz=x,Fz=[u({type:Boolean})],Bz=[u({type:Boolean,attribute:"should-filter"})],Hz=[u({type:String})],Dz=[u({attribute:!1})],Nz=[C()],Mz=[C()],Oz=[lt({context:So}),C()],Vz){constructor(){super(...arguments);a(this,pt);a(this,N0,n(jt,8,this,!1)),n(jt,11,this);a(this,D0,n(jt,12,this,!0)),n(jt,15,this);a(this,H0,n(jt,16,this)),n(jt,19,this);a(this,B0,n(jt,20,this)),n(jt,23,this);a(this,F0,n(jt,24,this,"")),n(jt,27,this);a(this,P0,n(jt,28,this)),n(jt,31,this);a(this,Ms,new Map);a(this,Ns,[]);a(this,Zc,new Set);a(this,mr,new Map);a(this,cm,CV());a(this,pm,t=>this.shouldFilter?o(this,mr).get(t)??0:1);a(this,hm,()=>p(this,pt,za).call(this).length);a(this,um,t=>p(this,pt,za).call(this).filter(e=>e.groupId===t).length);a(this,mm,t=>{o(this,Ms).set(t.id,t),o(this,Ns).includes(t.id)||o(this,Ns).push(t.id);let e=this.filter?this.filter(t.value,o(this,pt,Os),t.keywords):Xc(o(this,pt,Os),t.value,t.textContent,t.keywords);if(o(this,mr).set(t.id,e),!o(this,pt,Jc)){let s=p(this,pt,za).call(this);s.length>0&&!s[0].disabled&&h(this,pt,s[0].id,Qc)}this.requestUpdate()});a(this,fm,t=>{o(this,Ms).delete(t),h(this,Ns,o(this,Ns).filter(e=>e!==t)),o(this,mr).delete(t),this.requestUpdate()});a(this,gm,t=>{o(this,Ms).set(t.id,t);let e=this.filter?this.filter(t.value,o(this,pt,Os),t.keywords):Xc(o(this,pt,Os),t.value,t.textContent,t.keywords);o(this,mr).set(t.id,e),this.requestUpdate()});a(this,vm,t=>{o(this,Zc).add(t)});a(this,bm,t=>{o(this,Zc).delete(t)});a(this,xm,t=>{h(this,pt,t,Pz),p(this,pt,Uz).call(this);let s=p(this,pt,za).call(this).find(l=>!l.disabled);h(this,pt,s?.id,Qc),this.dispatchEvent(wV(t))});a(this,ym,t=>{h(this,pt,t,Qc)});a(this,tp,t=>{this.dispatchEvent(yV(t))});a(this,ep,t=>{let e=p(this,pt,za).call(this).filter(d=>!d.disabled);if(e.length===0)return;let s=e.findIndex(d=>d.id===o(this,pt,Jc)),l=d=>{let m=e[d];m&&h(this,pt,m.id,Qc)};switch(t.key){case"ArrowDown":case"n":case"j":{if(t.key!=="ArrowDown"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s<e.length-1?l(s+1):this.loop&&l(0);break}case"ArrowUp":case"p":case"k":{if(t.key!=="ArrowUp"&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault(),s>0?l(s-1):this.loop&&l(e.length-1);break}case"Home":{t.preventDefault(),l(0);break}case"End":{t.preventDefault(),l(e.length-1);break}case"Enter":{t.preventDefault();let d=e.find(m=>m.id===o(this,pt,Jc));d&&o(this,tp).call(this,d.value);break}case"Escape":{t.preventDefault(),this.dispatchEvent(kV());break}}});a(this,q0,n(jt,32,this,p(this,pt,dm).call(this))),n(jt,35,this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",o(this,ep)),this._ctx=p(this,pt,dm).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",o(this,ep))}willUpdate(){this._ctx=p(this,pt,dm).call(this)}render(){return f`<slot></slot>`}};jt=A(Vz),N0=new WeakMap,D0=new WeakMap,H0=new WeakMap,B0=new WeakMap,F0=new WeakMap,pt=new WeakSet,P0=new WeakMap,Ms=new WeakMap,Ns=new WeakMap,Zc=new WeakMap,mr=new WeakMap,cm=new WeakMap,Uz=function(){o(this,mr).clear();for(let[t,e]of o(this,Ms)){let s=this.filter?this.filter(e.value,o(this,pt,Os),e.keywords):Xc(o(this,pt,Os),e.value,e.textContent,e.keywords);o(this,mr).set(t,s)}},pm=new WeakMap,za=function(){return o(this,Ns).map(t=>o(this,Ms).get(t)).filter(t=>t?this.shouldFilter?(o(this,mr).get(t.id)??0)>0:!0:!1)},hm=new WeakMap,um=new WeakMap,mm=new WeakMap,fm=new WeakMap,gm=new WeakMap,vm=new WeakMap,bm=new WeakMap,xm=new WeakMap,ym=new WeakMap,tp=new WeakMap,ep=new WeakMap,q0=new WeakMap,dm=function(){return{search:o(this,pt,Os),selectedItemId:o(this,pt,Jc),listId:o(this,cm),loop:this.loop,shouldFilter:this.shouldFilter,getScore:o(this,pm),getVisibleCount:o(this,hm),getGroupVisibleCount:o(this,um),registerItem:o(this,mm),unregisterItem:o(this,fm),updateItem:o(this,gm),registerGroup:o(this,vm),unregisterGroup:o(this,bm),setSearch:o(this,xm),selectItem:o(this,ym),handleItemSelect:o(this,tp)}},c(jt,4,"loop",Fz,je,N0),c(jt,4,"shouldFilter",Bz,je,D0),c(jt,4,"value",Hz,je,H0),c(jt,4,"filter",Dz,je,B0),V0=c(jt,20,"#search",Nz,pt,F0),Os=V0.get,Pz=V0.set,U0=c(jt,20,"#selectedItemId",Mz,pt,P0),Jc=U0.get,Qc=U0.set,c(jt,4,"_ctx",Oz,je,q0),T(jt,je),v(je,"tagName","dui-command"),v(je,"styles",[w,$V]);var TV=b`
|
|
3087
3087
|
:host {
|
|
3088
3088
|
display: block;
|
|
3089
3089
|
}
|
|
@@ -3143,7 +3143,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3143
3143
|
.List {
|
|
3144
3144
|
overflow: hidden;
|
|
3145
3145
|
}
|
|
3146
|
-
`,Wz,Yz,Em,W0,
|
|
3146
|
+
`,Wz,Yz,Em,W0,fr=class extends(Yz=x,Wz=[Nt({context:So,subscribe:!0})],Yz){constructor(){super(...arguments);a(this,W0,n(Em,8,this)),n(Em,11,this)}render(){return f`
|
|
3147
3147
|
<dui-scroll-area>
|
|
3148
3148
|
<div
|
|
3149
3149
|
class="List"
|
|
@@ -3153,7 +3153,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3153
3153
|
<slot></slot>
|
|
3154
3154
|
</div>
|
|
3155
3155
|
</dui-scroll-area>
|
|
3156
|
-
`}};Em=A(Yz),W0=new WeakMap,c(Em,4,"_ctx",Wz,
|
|
3156
|
+
`}};Em=A(Yz),W0=new WeakMap,c(Em,4,"_ctx",Wz,fr,W0),T(Em,fr),v(fr,"tagName","dui-command-list"),v(fr,"styles",[w,SV]);var AV=0,_V=()=>`dui-command-group-${++AV}`,RV=b`
|
|
3157
3157
|
:host {
|
|
3158
3158
|
display: block;
|
|
3159
3159
|
}
|
|
@@ -3187,11 +3187,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3187
3187
|
user-select: none;
|
|
3188
3188
|
outline: none;
|
|
3189
3189
|
}
|
|
3190
|
-
`,Qz,Zz,tO,eO,oO,lo,X0,J0,Q0,Z0,
|
|
3190
|
+
`,Qz,Zz,tO,eO,oO,lo,X0,J0,Q0,Z0,gr,Ma,Na,Da,Ha,Ke,op,rO,sO,tw,Cm,$m,co=class extends(oO=x,eO=[u({type:String})],tO=[u({type:Array,attribute:!1})],Zz=[u({type:Boolean})],Qz=[Nt({context:So,subscribe:!0})],oO){constructor(){super(...arguments);a(this,Ke);a(this,X0,n(lo,8,this,"")),n(lo,11,this);a(this,J0,n(lo,12,this,[])),n(lo,15,this);a(this,Q0,n(lo,16,this,!1)),n(lo,19,this);a(this,Z0,n(lo,20,this)),n(lo,23,this);a(this,gr,LV());a(this,Ma);a(this,Na);a(this,Da);a(this,Ha,!1);a(this,Cm,()=>{!this.disabled&&this._ctx?.selectedItemId!==o(this,gr)&&this._ctx?.selectItem(o(this,gr))});a(this,$m,()=>{this.disabled||this._ctx?.handleItemSelect(this.value)})}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{this.isConnected&&(this._ctx?.registerItem(p(this,Ke,tw).call(this)),h(this,Ha,!0),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))})}disconnectedCallback(){super.disconnectedCallback(),this._ctx?.unregisterItem(o(this,gr)),h(this,Ha,!1)}willUpdate(){if(o(this,Ha)){let t=o(this,Ma)!==this.value,e=o(this,Na)!==this.keywords,s=o(this,Da)!==this.disabled;(t||e||s)&&(this._ctx?.updateItem(p(this,Ke,tw).call(this)),h(this,Ma,this.value),h(this,Na,this.keywords),h(this,Da,this.disabled))}this._ctx?.shouldFilter?o(this,Ke,rO)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden",""):this.removeAttribute("data-hidden"),o(this,Ke,op)?this.setAttribute("data-selected",""):this.removeAttribute("data-selected")}updated(){o(this,Ke,op)&&this.scrollIntoView({block:"nearest"})}render(){return f`
|
|
3191
3191
|
<div
|
|
3192
3192
|
class="Item"
|
|
3193
3193
|
role="option"
|
|
3194
|
-
id="${o(this,
|
|
3194
|
+
id="${o(this,gr)}"
|
|
3195
3195
|
aria-selected="${o(this,Ke,op)}"
|
|
3196
3196
|
aria-disabled="${this.disabled}"
|
|
3197
3197
|
?data-selected="${o(this,Ke,op)}"
|
|
@@ -3201,7 +3201,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3201
3201
|
>
|
|
3202
3202
|
<slot></slot>
|
|
3203
3203
|
</div>
|
|
3204
|
-
`}};lo=A(oO),X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,
|
|
3204
|
+
`}};lo=A(oO),X0=new WeakMap,J0=new WeakMap,Q0=new WeakMap,Z0=new WeakMap,gr=new WeakMap,Ma=new WeakMap,Na=new WeakMap,Da=new WeakMap,Ha=new WeakMap,Ke=new WeakSet,op=function(){return this._ctx?.selectedItemId===o(this,gr)},rO=function(){return this._ctx?this._ctx.getScore(o(this,gr))>0:!0},sO=function(){return this.closest("[data-group-id]")?.getAttribute("data-group-id")??void 0},tw=function(){return{id:o(this,gr),value:this.value,keywords:this.keywords,textContent:this.textContent?.trim()??"",disabled:this.disabled,groupId:p(this,Ke,sO).call(this)}},Cm=new WeakMap,$m=new WeakMap,c(lo,4,"value",eO,co,X0),c(lo,4,"keywords",tO,co,J0),c(lo,4,"disabled",Zz,co,Q0),c(lo,4,"_ctx",Qz,co,Z0),T(lo,co),v(co,"tagName","dui-command-item"),v(co,"styles",[w,zV]);var OV=b`
|
|
3205
3205
|
:host {
|
|
3206
3206
|
display: block;
|
|
3207
3207
|
}
|
|
@@ -3213,11 +3213,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3213
3213
|
.Empty {
|
|
3214
3214
|
text-align: center;
|
|
3215
3215
|
}
|
|
3216
|
-
`,iO,nO,Tm,ew,
|
|
3216
|
+
`,iO,nO,Tm,ew,vr=class extends(nO=x,iO=[Nt({context:So,subscribe:!0})],nO){constructor(){super(...arguments);a(this,ew,n(Tm,8,this)),n(Tm,11,this)}willUpdate(){this._ctx?.search!==""&&this._ctx?.getVisibleCount()===0?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){return f`
|
|
3217
3217
|
<div class="Empty" role="status">
|
|
3218
3218
|
<slot></slot>
|
|
3219
3219
|
</div>
|
|
3220
|
-
`}};Tm=A(nO),ew=new WeakMap,c(Tm,4,"_ctx",iO,
|
|
3220
|
+
`}};Tm=A(nO),ew=new WeakMap,c(Tm,4,"_ctx",iO,vr,ew),T(Tm,vr),v(vr,"tagName","dui-command-empty"),v(vr,"styles",[w,OV]);var MV=b`
|
|
3221
3221
|
:host {
|
|
3222
3222
|
display: block;
|
|
3223
3223
|
}
|
|
@@ -3238,7 +3238,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3238
3238
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
3239
3239
|
color: var(--text-2);
|
|
3240
3240
|
}
|
|
3241
|
-
`,Pa=class extends
|
|
3241
|
+
`,Pa=class extends vr{static styles=[...vr.styles,HV]};customElements.define(Pa.tagName,Pa);var BV=k`
|
|
3242
3242
|
.Group {
|
|
3243
3243
|
padding: var(--space-1_5);
|
|
3244
3244
|
}
|
|
@@ -3302,7 +3302,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3302
3302
|
.List {
|
|
3303
3303
|
padding: var(--space-1) 0;
|
|
3304
3304
|
}
|
|
3305
|
-
`,Ka=class extends
|
|
3305
|
+
`,Ka=class extends fr{static styles=[...fr.styles,PV]};customElements.define(Ka.tagName,Ka);var UV=k`
|
|
3306
3306
|
.Separator {
|
|
3307
3307
|
height: var(--border-width-thin);
|
|
3308
3308
|
margin-inline: calc(-1 * var(--space-1));
|
|
@@ -3313,7 +3313,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3313
3313
|
font-size: var(--text-xs); line-height: var(--text-xs--line-height);
|
|
3314
3314
|
color: var(--text-2);
|
|
3315
3315
|
}
|
|
3316
|
-
`,Ya=class extends Fa{static styles=[...Fa.styles,qV]};customElements.define(Ya.tagName,Ya);var aO="important",jV=" !"+aO,Ga=Ea(class extends
|
|
3316
|
+
`,Ya=class extends Fa{static styles=[...Fa.styles,qV]};customElements.define(Ya.tagName,Ya);var aO="important",jV=" !"+aO,Ga=Ea(class extends Is{constructor(i){if(super(i),i.type!==qo.ATTRIBUTE||i.name!=="style"||i.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(i){return Object.keys(i).reduce((r,t)=>{let e=i[t];return e==null?r:r+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(i,[r]){let{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(r)),this.render(r);for(let e of this.ft)r[e]==null&&(this.ft.delete(e),e.includes("-")?t.removeProperty(e):t[e]=null);for(let e in r){let s=r[e];if(s!=null){this.ft.add(e);let l=typeof s=="string"&&s.endsWith(jV);e.includes("-")||l?t.setProperty(e,l?s.slice(0,-11):s,l?aO:""):t[e]=s}}return Ee}});var KV=M("sort-change",{bubbles:!0,composed:!0}),WV=M("page-change",{bubbles:!0,composed:!0}),YV=f`<svg
|
|
3317
3317
|
xmlns="http://www.w3.org/2000/svg"
|
|
3318
3318
|
width="100%"
|
|
3319
3319
|
height="100%"
|
|
@@ -3423,7 +3423,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3423
3423
|
.PageButton:disabled {
|
|
3424
3424
|
cursor: not-allowed;
|
|
3425
3425
|
}
|
|
3426
|
-
`,lO,dO,cO,pO,hO,uO,mO,fO,gO,Dt,ow,rw,sw,iw,nw,aw,lw,
|
|
3426
|
+
`,lO,dO,cO,pO,hO,uO,mO,fO,gO,Dt,ow,rw,sw,iw,nw,aw,lw,as,Sm,V,dw,cw,ls,Am,pw,hw,uw,mw,rp,vO,bO,sp,xO,yO,wO,kO,We=class extends(gO=x,fO=[u({attribute:!1})],mO=[u({attribute:!1})],uO=[u({type:Number,attribute:"page-size"})],hO=[u({attribute:!1})],pO=[u({attribute:"empty-text"})],cO=[C()],dO=[C()],lO=[C()],gO){constructor(){super(...arguments);a(this,V);a(this,ow,n(Dt,8,this,[])),n(Dt,11,this);a(this,rw,n(Dt,12,this,[])),n(Dt,15,this);a(this,sw,n(Dt,16,this,10)),n(Dt,19,this);a(this,iw,n(Dt,20,this)),n(Dt,23,this);a(this,nw,n(Dt,24,this,"No results.")),n(Dt,27,this);a(this,aw,n(Dt,28,this,null)),n(Dt,31,this);a(this,dw,n(Dt,32,this,1)),n(Dt,35,this);a(this,pw,n(Dt,36,this,[])),n(Dt,39,this)}willUpdate(t){if(t.has("data")||t.has("pageSize")||t.has("#sort")||t.has("#page")){t.has("data")&&h(this,V,1,Am);let e=QV(this.data,o(this,V,as));this.pageSize>0?h(this,V,ZV(e,o(this,V,ls),this.pageSize),mw):h(this,V,e,mw)}}render(){return f`
|
|
3427
3427
|
<div class="DataTable" part="root">
|
|
3428
3428
|
<div class="TableWindow" part="table-window">
|
|
3429
3429
|
<table part="table">
|
|
@@ -3432,12 +3432,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
3432
3432
|
</div>
|
|
3433
3433
|
${p(this,V,kO).call(this)}
|
|
3434
3434
|
</div>
|
|
3435
|
-
`}};Dt=A(gO),ow=new WeakMap,rw=new WeakMap,sw=new WeakMap,iw=new WeakMap,nw=new WeakMap,aw=new WeakMap,V=new WeakSet,dw=new WeakMap,pw=new WeakMap,rp=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},vO=function(){return{page:o(this,V,
|
|
3436
|
-
>${o(this,V,
|
|
3435
|
+
`}};Dt=A(gO),ow=new WeakMap,rw=new WeakMap,sw=new WeakMap,iw=new WeakMap,nw=new WeakMap,aw=new WeakMap,V=new WeakSet,dw=new WeakMap,pw=new WeakMap,rp=function(){return this.pageSize<=0?1:Math.max(1,Math.ceil(this.data.length/this.pageSize))},vO=function(){return{page:o(this,V,ls),pageSize:this.pageSize,totalRows:this.data.length,totalPages:o(this,V,rp)}},bO=function(t){o(this,V,as)?.column===t?o(this,V,as).direction==="asc"?h(this,V,{column:t,direction:"desc"},Sm):h(this,V,null,Sm):h(this,V,{column:t,direction:"asc"},Sm),h(this,V,1,Am),this.dispatchEvent(KV(o(this,V,as)))},sp=function(t){h(this,V,Math.max(1,Math.min(t,o(this,V,rp))),Am),this.dispatchEvent(WV(o(this,V,vO)))},xO=function(t){return t.sortable?o(this,V,as)?.column===t.key?f`<span class="SortIcon"
|
|
3436
|
+
>${o(this,V,as).direction==="asc"?GV:XV}</span
|
|
3437
3437
|
>`:f`<span class="SortIcon">${YV}</span>`:L},yO=function(){return f`
|
|
3438
3438
|
<thead>
|
|
3439
3439
|
<tr>
|
|
3440
|
-
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},s=t.sortable?o(this,V,
|
|
3440
|
+
${this.columns.map(t=>{let e=t.width?{width:t.width}:{},s=t.sortable?o(this,V,as)?.column===t.key?o(this,V,as).direction==="asc"?"ascending":"descending":"none":void 0;return f`
|
|
3441
3441
|
<th
|
|
3442
3442
|
style=${Ga(e)}
|
|
3443
3443
|
aria-sort=${s??L}
|
|
@@ -3464,7 +3464,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3464
3464
|
</tr>
|
|
3465
3465
|
`)}
|
|
3466
3466
|
</tbody>
|
|
3467
|
-
`},kO=function(){if(this.pageSize<=0||this.data.length===0)return L;let t=(o(this,V,
|
|
3467
|
+
`},kO=function(){if(this.pageSize<=0||this.data.length===0)return L;let t=(o(this,V,ls)-1)*this.pageSize+1,e=Math.min(o(this,V,ls)*this.pageSize,this.data.length),s=o(this,V,ls)===1,l=o(this,V,ls)===o(this,V,rp);return f`
|
|
3468
3468
|
<div class="Pagination" part="pagination">
|
|
3469
3469
|
<div class="PageInfo">
|
|
3470
3470
|
<span>${t}-${e} of ${this.data.length}</span>
|
|
@@ -3481,7 +3481,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3481
3481
|
<button
|
|
3482
3482
|
class="PageButton"
|
|
3483
3483
|
?disabled=${s}
|
|
3484
|
-
@click=${()=>p(this,V,sp).call(this,o(this,V,
|
|
3484
|
+
@click=${()=>p(this,V,sp).call(this,o(this,V,ls)-1)}
|
|
3485
3485
|
aria-label="Previous page"
|
|
3486
3486
|
>
|
|
3487
3487
|
<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>
|
|
@@ -3489,7 +3489,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3489
3489
|
<button
|
|
3490
3490
|
class="PageButton"
|
|
3491
3491
|
?disabled=${l}
|
|
3492
|
-
@click=${()=>p(this,V,sp).call(this,o(this,V,
|
|
3492
|
+
@click=${()=>p(this,V,sp).call(this,o(this,V,ls)+1)}
|
|
3493
3493
|
aria-label="Next page"
|
|
3494
3494
|
>
|
|
3495
3495
|
<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>
|
|
@@ -3504,7 +3504,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3504
3504
|
</button>
|
|
3505
3505
|
</div>
|
|
3506
3506
|
</div>
|
|
3507
|
-
`},c(Dt,4,"columns",fO,We,ow),c(Dt,4,"data",mO,We,rw),c(Dt,4,"pageSize",uO,We,sw),c(Dt,4,"rowKey",hO,We,iw),c(Dt,4,"emptyText",pO,We,nw),lw=c(Dt,20,"#sort",cO,V,aw),
|
|
3507
|
+
`},c(Dt,4,"columns",fO,We,ow),c(Dt,4,"data",mO,We,rw),c(Dt,4,"pageSize",uO,We,sw),c(Dt,4,"rowKey",hO,We,iw),c(Dt,4,"emptyText",pO,We,nw),lw=c(Dt,20,"#sort",cO,V,aw),as=lw.get,Sm=lw.set,cw=c(Dt,20,"#page",dO,V,dw),ls=cw.get,Am=cw.set,hw=c(Dt,20,"#displayRows",lO,V,pw),uw=hw.get,mw=hw.set,T(Dt,We),v(We,"tagName","dui-data-table"),v(We,"styles",[w,tP,eP]);var oP=k`
|
|
3508
3508
|
.DataTable {
|
|
3509
3509
|
gap: var(--space-2);
|
|
3510
3510
|
}
|
|
@@ -3616,11 +3616,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3616
3616
|
0 0 0 var(--focus-ring-offset) var(--background),
|
|
3617
3617
|
0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
|
|
3618
3618
|
}
|
|
3619
|
-
`,Xa=class extends We{static styles=[...We.styles,oP]};customElements.define(Xa.tagName,Xa);var
|
|
3619
|
+
`,Xa=class extends We{static styles=[...We.styles,oP]};customElements.define(Xa.tagName,Xa);var Ds=Symbol("dui-dialog");var Im=M("open-change",{bubbles:!0,composed:!0}),rP=b`
|
|
3620
3620
|
:host {
|
|
3621
3621
|
display: contents;
|
|
3622
3622
|
}
|
|
3623
|
-
`,EO,CO,$O,TO,SO,po,fw,gw,vw,bw,AO,_m,Ye,Hi,Lm,zm,Om,Mm,_O,Nm,Dm,xw,Rm,Ao=class extends(SO=x,TO=[u({type:Boolean,reflect:!0})],$O=[u({type:Boolean,attribute:"default-open"})],CO=[C()],EO=[lt({context:
|
|
3623
|
+
`,EO,CO,$O,TO,SO,po,fw,gw,vw,bw,AO,_m,Ye,Hi,Lm,zm,Om,Mm,_O,Nm,Dm,xw,Rm,Ao=class extends(SO=x,TO=[u({type:Boolean,reflect:!0})],$O=[u({type:Boolean,attribute:"default-open"})],CO=[C()],EO=[lt({context:Ds}),C()],SO){constructor(){super(...arguments);a(this,Ye);a(this,fw,n(po,8,this)),n(po,11,this);a(this,gw,n(po,12,this,!1)),n(po,15,this);a(this,vw,n(po,16,this,!1)),n(po,19,this);a(this,Hi,crypto.randomUUID().slice(0,8));a(this,Lm,`dui-dialog-${o(this,Hi)}`);a(this,zm,`dui-trigger-${o(this,Hi)}`);a(this,Om,`dui-title-${o(this,Hi)}`);a(this,Mm,`dui-desc-${o(this,Hi)}`);a(this,Nm,()=>{this.open===void 0&&h(this,Ye,!0,_m),this.dispatchEvent(Im({open:!0}))});a(this,Dm,()=>{this.open===void 0&&h(this,Ye,!1,_m),this.dispatchEvent(Im({open:!1}))});a(this,xw,n(po,20,this,p(this,Ye,Rm).call(this))),n(po,23,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,Ye,!0,_m),this._ctx=p(this,Ye,Rm).call(this)}willUpdate(){this._ctx=p(this,Ye,Rm).call(this)}render(){return f`<slot></slot>`}};po=A(SO),fw=new WeakMap,gw=new WeakMap,vw=new WeakMap,Ye=new WeakSet,Hi=new WeakMap,Lm=new WeakMap,zm=new WeakMap,Om=new WeakMap,Mm=new WeakMap,_O=function(){return this.open??o(this,Ye,AO)},Nm=new WeakMap,Dm=new WeakMap,xw=new WeakMap,Rm=function(){return{open:o(this,Ye,_O),dialogId:o(this,Lm),triggerId:o(this,zm),titleId:o(this,Om),descriptionId:o(this,Mm),openDialog:o(this,Nm),closeDialog:o(this,Dm)}},c(po,4,"open",TO,Ao,fw),c(po,4,"defaultOpen",$O,Ao,gw),bw=c(po,20,"#internalOpen",CO,Ye,vw),AO=bw.get,_m=bw.set,c(po,4,"_ctx",EO,Ao,xw),T(po,Ao),v(Ao,"tagName","dui-dialog"),v(Ao,"styles",[w,rP]);var sP=b`
|
|
3624
3624
|
:host {
|
|
3625
3625
|
display: contents;
|
|
3626
3626
|
}
|
|
@@ -3628,7 +3628,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3628
3628
|
.Trigger {
|
|
3629
3629
|
display: contents;
|
|
3630
3630
|
}
|
|
3631
|
-
`,ip=class extends x{static tagName="dui-dialog-trigger";static styles=[w,sP,iP];#t=new q(this,{context:
|
|
3631
|
+
`,ip=class extends x{static tagName="dui-dialog-trigger";static styles=[w,sP,iP];#t=new q(this,{context:Ds,subscribe:!0});#e=()=>{this.#t.value?.openDialog()};render(){let r=this.#t.value?.open??!1,t=this.#t.value?.triggerId??"",e=this.#t.value?.dialogId??"";return f`
|
|
3632
3632
|
<span
|
|
3633
3633
|
class="Trigger"
|
|
3634
3634
|
part="trigger"
|
|
@@ -3670,13 +3670,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
3670
3670
|
z-index: 1000;
|
|
3671
3671
|
transition-property: opacity, transform;
|
|
3672
3672
|
}
|
|
3673
|
-
`,RO,IO,LO,zO,OO,MO,NO,DO,Kt,yw,ww,kw,Ew,Cw,$w,Ja,Rw,ot,Tw,Sw,Iw,Lw,Aw,_w,
|
|
3673
|
+
`,RO,IO,LO,zO,OO,MO,NO,DO,Kt,yw,ww,kw,Ew,Cw,$w,Ja,Rw,ot,Tw,Sw,Iw,Lw,Aw,_w,ds,zw,Qa,cs,HO,BO,Ow,FO,VO,Hm,PO,Bm,ho=class extends(DO=x,NO=[u({type:Boolean,attribute:"keep-mounted"})],MO=[u({attribute:"initial-focus"})],OO=[u({attribute:"final-focus"})],zO=[u()],LO=[C()],IO=[C()],RO=[C()],DO){constructor(){super(...arguments);a(this,ot);a(this,yw,n(Kt,8,this,!1)),n(Kt,11,this);a(this,ww,n(Kt,12,this)),n(Kt,15,this);a(this,kw,n(Kt,16,this)),n(Kt,19,this);a(this,Ew,n(Kt,20,this)),n(Kt,23,this);a(this,Cw,n(Kt,24,this,!1)),n(Kt,27,this);a(this,Tw,n(Kt,28,this,!1)),n(Kt,31,this);a(this,Aw,n(Kt,32,this,!1)),n(Kt,35,this);a(this,Qa);a(this,cs,new q(this,{context:Ds,subscribe:!0}));a(this,Hm,t=>{t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),o(this,cs).value?.closeDialog()),t.key==="Tab"&&p(this,ot,PO).call(this,t)});a(this,Bm,()=>{o(this,cs).value?.closeDialog()})}updated(){let t=o(this,cs).value?.open??!1;t&&!o(this,ot,Ja)?p(this,ot,HO).call(this):!t&&o(this,ot,Ja)&&!o(this,ot,ds)&&p(this,ot,BO).call(this)}willUpdate(t){t.has("width")&&(this.width?this.style.setProperty("--popup-width",this.width):this.style.removeProperty("--popup-width")),o(this,ot,Ja)||this.keepMounted?this.setAttribute("mounted",""):this.removeAttribute("mounted")}render(){let t=o(this,cs).value?.open??!1,e=o(this,cs).value?.titleId??"",s=o(this,cs).value?.descriptionId??"";return!o(this,ot,Ja)&&!this.keepMounted?f``:f`
|
|
3674
3674
|
<div
|
|
3675
3675
|
part="backdrop"
|
|
3676
|
-
?data-open="${t&&!o(this,ot,
|
|
3677
|
-
?data-closed="${!t||o(this,ot,
|
|
3676
|
+
?data-open="${t&&!o(this,ot,ds)}"
|
|
3677
|
+
?data-closed="${!t||o(this,ot,ds)}"
|
|
3678
3678
|
?data-starting-style="${o(this,ot,Iw)}"
|
|
3679
|
-
?data-ending-style="${o(this,ot,
|
|
3679
|
+
?data-ending-style="${o(this,ot,ds)}"
|
|
3680
3680
|
@click="${o(this,Bm)}"
|
|
3681
3681
|
></div>
|
|
3682
3682
|
<div
|
|
@@ -3685,10 +3685,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
3685
3685
|
aria-modal="true"
|
|
3686
3686
|
aria-labelledby="${e}"
|
|
3687
3687
|
aria-describedby="${s}"
|
|
3688
|
-
?data-open="${t&&!o(this,ot,
|
|
3689
|
-
?data-closed="${!t||o(this,ot,
|
|
3688
|
+
?data-open="${t&&!o(this,ot,ds)}"
|
|
3689
|
+
?data-closed="${!t||o(this,ot,ds)}"
|
|
3690
3690
|
?data-starting-style="${o(this,ot,Iw)}"
|
|
3691
|
-
?data-ending-style="${o(this,ot,
|
|
3691
|
+
?data-ending-style="${o(this,ot,ds)}"
|
|
3692
3692
|
tabindex="-1"
|
|
3693
3693
|
@keydown="${o(this,Hm)}"
|
|
3694
3694
|
>
|
|
@@ -3696,11 +3696,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
3696
3696
|
<p part="description" id="${s}"><slot name="description"></slot></p>
|
|
3697
3697
|
<slot></slot>
|
|
3698
3698
|
</div>
|
|
3699
|
-
`}};Kt=A(DO),yw=new WeakMap,ww=new WeakMap,kw=new WeakMap,Ew=new WeakMap,Cw=new WeakMap,ot=new WeakSet,Tw=new WeakMap,Aw=new WeakMap,Qa=new WeakMap,
|
|
3699
|
+
`}};Kt=A(DO),yw=new WeakMap,ww=new WeakMap,kw=new WeakMap,Ew=new WeakMap,Cw=new WeakMap,ot=new WeakSet,Tw=new WeakMap,Aw=new WeakMap,Qa=new WeakMap,cs=new WeakMap,HO=async function(){h(this,Qa,document.activeElement??void 0),h(this,ot,!0,Rw),h(this,ot,!0,Lw),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,ot,!1,Lw),await this.updateComplete,p(this,ot,FO).call(this)},BO=function(){h(this,ot,!0,zw);let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t){p(this,ot,Ow).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,ot,Ow).call(this))},l=m=>{m.propertyName==="opacity"&&s()};t.addEventListener("transitionend",l);let d=setTimeout(s,200)},Ow=function(){!o(this,ot,ds)&&!o(this,ot,Ja)||(h(this,ot,!1,zw),this.keepMounted||h(this,ot,!1,Rw),p(this,ot,VO).call(this))},FO=function(){let t=this.shadowRoot?.querySelector('[part="popup"]');if(!t)return;if(this.initialFocus){let l=t.querySelector(this.initialFocus);if(l){l.focus();return}}let e=hu(t);if(e){e.focus();return}let s=jn(t);if(s.length>0){s[0].focus();return}t.focus()},VO=function(){if(this.finalFocus){document.querySelector(this.finalFocus)?.focus();return}o(this,Qa)?.focus(),h(this,Qa,void 0)},Hm=new WeakMap,PO=function(t){let e=this.shadowRoot?.querySelector('[part="popup"]');if(!e)return;let s=jn(e);if(s.length===0){t.preventDefault();return}let l=s[0],d=s[s.length-1],m=l.matches(":focus"),g=d.matches(":focus"),E=!s.some($=>$.matches(":focus"));t.shiftKey&&(m||E)?(t.preventDefault(),d.focus()):!t.shiftKey&&g&&(t.preventDefault(),l.focus())},Bm=new WeakMap,c(Kt,4,"keepMounted",NO,ho,yw),c(Kt,4,"initialFocus",MO,ho,ww),c(Kt,4,"finalFocus",OO,ho,kw),c(Kt,4,"width",zO,ho,Ew),$w=c(Kt,20,"#mounted",LO,ot,Cw),Ja=$w.get,Rw=$w.set,Sw=c(Kt,20,"#startingStyle",IO,ot,Tw),Iw=Sw.get,Lw=Sw.set,_w=c(Kt,20,"#endingStyle",RO,ot,Aw),ds=_w.get,zw=_w.set,T(Kt,ho),v(ho,"tagName","dui-dialog-popup"),v(ho,"styles",[w,nP,aP]);var lP=b`
|
|
3700
3700
|
:host {
|
|
3701
3701
|
display: contents;
|
|
3702
3702
|
}
|
|
3703
|
-
`,np=class extends x{static tagName="dui-dialog-close";static styles=[w,lP];#t=new q(this,{context:
|
|
3703
|
+
`,np=class extends x{static tagName="dui-dialog-close";static styles=[w,lP];#t=new q(this,{context:Ds,subscribe:!0});#e=()=>{this.#t.value?.closeDialog()};render(){return f`
|
|
3704
3704
|
<span @click="${this.#e}">
|
|
3705
3705
|
<slot></slot>
|
|
3706
3706
|
</span>
|
|
@@ -3975,7 +3975,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3975
3975
|
|
|
3976
3976
|
[part="legend"]:not([data-slotted]) { display: none; }
|
|
3977
3977
|
[part="legend"] { padding: 0; }
|
|
3978
|
-
`,$2,T2,S2,Bi,vk,bk,xk,A2,_2,ll,Zm,
|
|
3978
|
+
`,$2,T2,S2,Bi,vk,bk,xk,A2,_2,ll,Zm,br=class extends(S2=x,T2=[u({type:Boolean,reflect:!0})],$2=[C()],S2){constructor(){super(...arguments);a(this,ll);a(this,vk,n(Bi,8,this,!1)),n(Bi,11,this);a(this,bk,n(Bi,12,this,!1)),n(Bi,15,this);a(this,Zm,t=>{let e=t.target;h(this,ll,e.assignedNodes({flatten:!0}).length>0,_2)})}render(){return f`
|
|
3979
3979
|
<fieldset
|
|
3980
3980
|
part="root"
|
|
3981
3981
|
?disabled="${this.disabled}"
|
|
@@ -3986,7 +3986,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
3986
3986
|
</legend>
|
|
3987
3987
|
<slot></slot>
|
|
3988
3988
|
</fieldset>
|
|
3989
|
-
`}};Bi=A(S2),vk=new WeakMap,bk=new WeakMap,ll=new WeakSet,Zm=new WeakMap,c(Bi,4,"disabled",T2,
|
|
3989
|
+
`}};Bi=A(S2),vk=new WeakMap,bk=new WeakMap,ll=new WeakSet,Zm=new WeakMap,c(Bi,4,"disabled",T2,br,vk),xk=c(Bi,20,"#hasLegend",$2,ll,bk),A2=xk.get,_2=xk.set,T(Bi,br),v(br,"tagName","dui-fieldset"),v(br,"styles",[w,xP]);var yP=k`
|
|
3990
3990
|
[part="root"] {
|
|
3991
3991
|
display: flex;
|
|
3992
3992
|
flex-direction: column;
|
|
@@ -4005,7 +4005,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4005
4005
|
color: var(--text-1);
|
|
4006
4006
|
margin-bottom: var(--space-2);
|
|
4007
4007
|
}
|
|
4008
|
-
`,dl=class extends
|
|
4008
|
+
`,dl=class extends br{static styles=[...br.styles,yP]};customElements.define(dl.tagName,dl);var wP=b`
|
|
4009
4009
|
:host {
|
|
4010
4010
|
display: inline-flex;
|
|
4011
4011
|
align-items: center;
|
|
@@ -4033,11 +4033,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4033
4033
|
[part="input"]:disabled {
|
|
4034
4034
|
cursor: not-allowed;
|
|
4035
4035
|
}
|
|
4036
|
-
`,R2,I2,L2,z2,O2,M2,N2,D2,H2,B2,F2,V2,P2,pl,st,yk,wk,kk,Ek,Ck,$k,Tk,Sk,Ak,_k,Rk,Ik,ef,
|
|
4036
|
+
`,R2,I2,L2,z2,O2,M2,N2,D2,H2,B2,F2,V2,P2,pl,st,yk,wk,kk,Ek,Ck,$k,Tk,Sk,Ak,_k,Rk,Ik,ef,ps,Lk,tf,Pt=class extends(P2=x,V2=[u({type:String})],F2=[u({type:String})],B2=[u({type:String})],H2=[u({type:Boolean,reflect:!0})],D2=[u({type:Boolean})],N2=[u({type:Boolean})],M2=[u({type:Number,attribute:"minlength"})],O2=[u({type:Number,attribute:"maxlength"})],z2=[u({type:String})],L2=[u({type:String})],I2=[u({type:String})],R2=[u({type:Boolean})],P2){constructor(){super();a(this,ps);a(this,pl);a(this,yk,n(st,8,this,"text")),n(st,11,this);a(this,wk,n(st,12,this,"")),n(st,15,this);a(this,kk,n(st,16,this,"")),n(st,19,this);a(this,Ek,n(st,20,this,!1)),n(st,23,this);a(this,Ck,n(st,24,this,!1)),n(st,27,this);a(this,$k,n(st,28,this,!1)),n(st,31,this);a(this,Tk,n(st,32,this)),n(st,35,this);a(this,Sk,n(st,36,this)),n(st,39,this);a(this,Ak,n(st,40,this)),n(st,43,this);a(this,_k,n(st,44,this,"")),n(st,47,this);a(this,Rk,n(st,48,this)),n(st,51,this);a(this,Ik,n(st,52,this,!1)),n(st,55,this);a(this,ef,t=>{let e=t.target;this.value=e.value,p(this,ps,Lk).call(this),p(this,ps,tf).call(this),this.dispatchEvent(zk({value:this.value}))});h(this,pl,this.attachInternals())}firstUpdated(){p(this,ps,tf).call(this),this.autofocus&&this.focus()}updated(){p(this,ps,tf).call(this)}willUpdate(){p(this,ps,Lk).call(this)}render(){return f`
|
|
4037
4037
|
<input
|
|
4038
4038
|
part="input"
|
|
4039
4039
|
type="${this.type}"
|
|
4040
|
-
.value="${
|
|
4040
|
+
.value="${cr(this.value)}"
|
|
4041
4041
|
placeholder="${this.placeholder}"
|
|
4042
4042
|
?disabled="${this.disabled}"
|
|
4043
4043
|
?required="${this.required}"
|
|
@@ -4049,7 +4049,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4049
4049
|
autocomplete="${mp(this.autocomplete)}"
|
|
4050
4050
|
@input="${o(this,ef)}"
|
|
4051
4051
|
/>
|
|
4052
|
-
`}};st=A(P2),pl=new WeakMap,yk=new WeakMap,wk=new WeakMap,kk=new WeakMap,Ek=new WeakMap,Ck=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,_k=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,ef=new WeakMap,
|
|
4052
|
+
`}};st=A(P2),pl=new WeakMap,yk=new WeakMap,wk=new WeakMap,kk=new WeakMap,Ek=new WeakMap,Ck=new WeakMap,$k=new WeakMap,Tk=new WeakMap,Sk=new WeakMap,Ak=new WeakMap,_k=new WeakMap,Rk=new WeakMap,Ik=new WeakMap,ef=new WeakMap,ps=new WeakSet,Lk=function(){o(this,pl).setFormValue(this.value)},tf=function(){let t=this.shadowRoot?.querySelector("input");t&&o(this,pl).setValidity(t.validity,t.validationMessage,t)},c(st,4,"type",V2,Pt,yk),c(st,4,"value",F2,Pt,wk),c(st,4,"placeholder",B2,Pt,kk),c(st,4,"disabled",H2,Pt,Ek),c(st,4,"required",D2,Pt,Ck),c(st,4,"readonly",N2,Pt,$k),c(st,4,"minLength",M2,Pt,Tk),c(st,4,"maxLength",O2,Pt,Sk),c(st,4,"pattern",z2,Pt,Ak),c(st,4,"name",L2,Pt,_k),c(st,4,"autocomplete",I2,Pt,Rk),c(st,4,"autofocus",R2,Pt,Ik),T(st,Pt),v(Pt,"tagName","dui-input"),v(Pt,"formAssociated",!0),v(Pt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(Pt,"styles",[w,kP]);var EP=k`
|
|
4053
4053
|
[part="input"] {
|
|
4054
4054
|
padding: var(--space-2);
|
|
4055
4055
|
font-family: var(--font-sans);
|
|
@@ -4148,7 +4148,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4148
4148
|
.Popup[data-ending-style] {
|
|
4149
4149
|
opacity: 0;
|
|
4150
4150
|
}
|
|
4151
|
-
`],j2,K2,W2,Fi,Mk,Nk,Dk,Vi,
|
|
4151
|
+
`],j2,K2,W2,Fi,Mk,Nk,Dk,Vi,Hs,Yt,ul,Ut,fp,Hk,Y2,rf,sf,nf,af,xr=class extends(W2=x,K2=[u({attribute:"popup-min-width"})],j2=[C()],W2){constructor(){super(...arguments);a(this,Yt);a(this,Mk,n(Fi,8,this,"var(--space-28)")),n(Fi,11,this);a(this,Nk,n(Fi,12,this,-1)),n(Fi,15,this);a(this,ul,()=>this.shadowRoot?.querySelector('slot[name="trigger"]')?.assignedElements()?.[0]);a(this,Ut,new Te(this,{getAnchor:()=>o(this,ul).call(this)??this,matchWidth:!1,styles:AP,contentContainer:".Menu",contentSelector:"dui-menu-item, dui-separator",onOpen:()=>{h(this,Yt,-1,Hs),o(this,ul).call(this)?.setAttribute("data-open","")},onClose:()=>{h(this,Yt,-1,Hs),o(this,ul).call(this)?.removeAttribute("data-open")},renderPopup:t=>f`
|
|
4152
4152
|
<div
|
|
4153
4153
|
class="Popup"
|
|
4154
4154
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -4163,7 +4163,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4163
4163
|
@mousemove="${o(this,af)}"
|
|
4164
4164
|
></div>
|
|
4165
4165
|
</div>
|
|
4166
|
-
`}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,Y2).call(this)});a(this,sf,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Ut).close()});a(this,nf,t=>{let e=o(this,Yt,Hk);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Yt,s,
|
|
4166
|
+
`}));a(this,fp,`menu-${crypto.randomUUID().slice(0,8)}`);a(this,rf,t=>{t.stopPropagation(),t.preventDefault(),p(this,Yt,Y2).call(this)});a(this,sf,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Ut).close()});a(this,nf,t=>{let e=o(this,Yt,Hk);switch(t.key){case"ArrowDown":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Yt,s,Hs)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Ut).isOpen)o(this,Ut).open();else{let s=o(this,Yt,Vi)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Yt,s,Hs)}break}case"Home":if(o(this,Ut).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Yt,s,Hs)}break;case"End":if(o(this,Ut).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Yt,s,Hs);break}}break;case"Enter":case" ":{if(o(this,Ut).isOpen&&o(this,Yt,Vi)>=0){t.preventDefault();let s=e[o(this,Yt,Vi)];s&&!s.disabled&&(s.click(),o(this,Ut).close())}else o(this,Ut).isOpen||(t.preventDefault(),o(this,Ut).open());break}case"Escape":o(this,Ut).isOpen&&(t.preventDefault(),o(this,Ut).close());break;case"Tab":o(this,Ut).isOpen&&o(this,Ut).close();break}});a(this,af,()=>{o(this,Yt,Vi)>=0&&h(this,Yt,-1,Hs)})}updated(){let t=o(this,Yt,Hk);for(let e=0;e<t.length;e++)e===o(this,Yt,Vi)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
4167
4167
|
<div
|
|
4168
4168
|
class="Trigger"
|
|
4169
4169
|
aria-haspopup="menu"
|
|
@@ -4174,7 +4174,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4174
4174
|
>
|
|
4175
4175
|
<slot name="trigger"></slot>
|
|
4176
4176
|
</div>
|
|
4177
|
-
`}};Fi=A(W2),Mk=new WeakMap,Nk=new WeakMap,Yt=new WeakSet,ul=new WeakMap,Ut=new WeakMap,fp=new WeakMap,Hk=function(){return[...(o(this,Ut).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Y2=function(){o(this,Ut).isOpen?o(this,Ut).close():o(this,Ut).open()},rf=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,c(Fi,4,"popupMinWidth",K2,
|
|
4177
|
+
`}};Fi=A(W2),Mk=new WeakMap,Nk=new WeakMap,Yt=new WeakSet,ul=new WeakMap,Ut=new WeakMap,fp=new WeakMap,Hk=function(){return[...(o(this,Ut).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},Y2=function(){o(this,Ut).isOpen?o(this,Ut).close():o(this,Ut).open()},rf=new WeakMap,sf=new WeakMap,nf=new WeakMap,af=new WeakMap,c(Fi,4,"popupMinWidth",K2,xr,Mk),Dk=c(Fi,20,"#highlightedIndex",j2,Yt,Nk),Vi=Dk.get,Hs=Dk.set,T(Fi,xr),v(xr,"tagName","dui-menu"),v(xr,"styles",[w,TP,SP]);var _P=k`
|
|
4178
4178
|
.Popup {
|
|
4179
4179
|
background: var(--surface-3);
|
|
4180
4180
|
border: var(--border-width-thin) solid var(--border);
|
|
@@ -4196,7 +4196,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4196
4196
|
.Menu dui-separator {
|
|
4197
4197
|
margin: var(--space-1) var(--space-2);
|
|
4198
4198
|
}
|
|
4199
|
-
`,ml=class extends
|
|
4199
|
+
`,ml=class extends xr{static styles=[...xr.styles,_P]};customElements.define(ml.tagName,ml);var RP=k`
|
|
4200
4200
|
.Item {
|
|
4201
4201
|
--icon-size: var(--space-4);
|
|
4202
4202
|
--icon-color: var(--text-2);
|
|
@@ -4330,7 +4330,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4330
4330
|
pointer-events: none;
|
|
4331
4331
|
}
|
|
4332
4332
|
|
|
4333
|
-
`,OP=3,oM,rM,sM,iM,nM,aM,lM,dM,cM,pM,hM,uM,mM,fM,gM,vM,bM,xM,yM,wM,kM,EM,CM,$M,TM,SM,gp,N,Kk,Wk,Yk,Gk,Xk,Jk,Qk,Zk,tE,eE,oE,rE,sE,iE,nE,aE,lE,dE,cE,pE,hE,uE,mE,AM,wE,I,fE,gE,kE,EE,vE,bE,_M,CE,xE,yE,$E,bl,vp,bp,Wi,Yi,xp,
|
|
4333
|
+
`,OP=3,oM,rM,sM,iM,nM,aM,lM,dM,cM,pM,hM,uM,mM,fM,gM,vM,bM,xM,yM,wM,kM,EM,CM,$M,TM,SM,gp,N,Kk,Wk,Yk,Gk,Xk,Jk,Qk,Zk,tE,eE,oE,rE,sE,iE,nE,aE,lE,dE,cE,pE,hE,uE,mE,AM,wE,I,fE,gE,kE,EE,vE,bE,_M,CE,xE,yE,$E,bl,vp,bp,Wi,Yi,xp,yr,RM,IM,Pi,TE,SE,Ui,LM,zM,hf,qi,AE,ji,xl,yl,_E,uf,Ki,yp,Gi,ff,gf,vf,bf,xf,yf,wf,mt=class extends(SM=x,TM=[u({type:Number})],$M=[u({type:Number,attribute:"default-value"})],CM=[u({type:Number})],EM=[u({type:Number})],kM=[u({type:Number})],wM=[u({type:Number,attribute:"large-step"})],yM=[u({type:Boolean,reflect:!0})],xM=[u({type:Boolean,reflect:!0,attribute:"read-only"})],bM=[u({type:Boolean})],vM=[u()],gM=[u({reflect:!0})],fM=[u({reflect:!0,attribute:"label-position"})],mM=[u({reflect:!0,attribute:"icon-position"})],uM=[u({reflect:!0})],hM=[u({type:Number})],pM=[u({type:Boolean,reflect:!0,attribute:"scrub-label"})],cM=[u({type:Boolean,reflect:!0,attribute:"scrub-value"})],dM=[u({type:Boolean,reflect:!0,attribute:"scrub-field"})],lM=[u({type:Boolean,reflect:!0,attribute:"click-label"})],aM=[u({type:Boolean,reflect:!0,attribute:"click-value"})],nM=[u({type:Boolean,reflect:!0,attribute:"click-field"})],iM=[C()],sM=[C()],rM=[C()],oM=[C()],SM){constructor(){super();a(this,I);a(this,gp);a(this,Kk,n(N,8,this)),n(N,11,this);a(this,Wk,n(N,12,this)),n(N,15,this);a(this,Yk,n(N,16,this)),n(N,19,this);a(this,Gk,n(N,20,this)),n(N,23,this);a(this,Xk,n(N,24,this,1)),n(N,27,this);a(this,Jk,n(N,28,this,10)),n(N,31,this);a(this,Qk,n(N,32,this,!1)),n(N,35,this);a(this,Zk,n(N,36,this,!1)),n(N,39,this);a(this,tE,n(N,40,this,!1)),n(N,43,this);a(this,eE,n(N,44,this)),n(N,47,this);a(this,oE,n(N,48,this,"")),n(N,51,this);a(this,rE,n(N,52,this,"")),n(N,55,this);a(this,sE,n(N,56,this,"")),n(N,59,this);a(this,iE,n(N,60,this,"")),n(N,63,this);a(this,nE,n(N,64,this)),n(N,67,this);a(this,aE,n(N,68,this,!1)),n(N,71,this);a(this,lE,n(N,72,this,!1)),n(N,75,this);a(this,dE,n(N,76,this,!1)),n(N,79,this);a(this,cE,n(N,80,this,!1)),n(N,83,this);a(this,pE,n(N,84,this,!1)),n(N,87,this);a(this,hE,n(N,88,this,!1)),n(N,91,this);a(this,uE,n(N,92,this)),n(N,95,this);a(this,fE,n(N,96,this,"")),n(N,99,this);a(this,vE,n(N,100,this,!1)),n(N,103,this);a(this,xE,n(N,104,this,!1)),n(N,107,this);a(this,vp,0);a(this,bp,0);a(this,Wi,!1);a(this,Yi,null);a(this,xp,!1);a(this,xl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,yr)??this.min??0;p(this,I,ji).call(this,e+t)});a(this,yl,t=>{if(this.disabled||this.readOnly)return;let e=o(this,I,yr)??this.max??0;p(this,I,ji).call(this,e-t)});a(this,yp,t=>{if(t.pointerId!==o(this,Yi))return;let e=t.clientX-o(this,vp);if(!o(this,Wi)){if(Math.abs(e)<OP)return;h(this,Wi,!0),h(this,I,!0,CE)}let s=this.step;t.shiftKey?s=this.step*.1:(t.ctrlKey||t.metaKey)&&(s=this.largeStep);let l=o(this,bp)+e*s;p(this,I,ji).call(this,l)});a(this,Gi,t=>{if(t.pointerId===o(this,Yi)){if(this.releasePointerCapture(t.pointerId),this.removeEventListener("pointermove",o(this,yp)),this.removeEventListener("pointerup",o(this,Gi)),this.removeEventListener("pointercancel",o(this,Gi)),o(this,Wi)){h(this,I,!1,CE);let e=o(this,I,yr);e!==void 0&&this.dispatchEvent(mf({value:e}))}else o(this,xp)&&p(this,I,uf).call(this);h(this,Yi,null)}});a(this,ff,t=>{if(t.button!==0)return;let e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,LM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,gf,t=>{if(t.button!==0)return;let e=o(this,I,SE)||o(this,I,Ui),s=o(this,I,zM)||o(this,I,hf);e&&s?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):e?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):s&&h(this,I,!0,bl)});a(this,vf,t=>{if(t.button!==0)return;let e=this.shadowRoot?.querySelector('[part="root"]');if(t.target!==e)return;let s=o(this,I,Ui),l=o(this,I,hf);s&&l?(t.preventDefault(),p(this,I,Ki).call(this,t,!0)):s?(t.preventDefault(),p(this,I,Ki).call(this,t,!1)):l&&(t.preventDefault(),p(this,I,uf).call(this))});a(this,bf,t=>{h(this,I,t.target.value,EE)});a(this,xf,()=>{o(this,I,$E)&&p(this,I,_E).call(this)});a(this,yf,()=>{h(this,I,!0,bl);let t=this.shadowRoot?.querySelector('[part="input"]');t&&requestAnimationFrame(()=>t.select())});a(this,wf,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),t.shiftKey?o(this,xl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,xl).call(this,this.largeStep):o(this,xl).call(this,this.step),p(this,I,qi).call(this);break;case"ArrowDown":t.preventDefault(),t.shiftKey?o(this,yl).call(this,this.step*.1):t.ctrlKey||t.metaKey?o(this,yl).call(this,this.largeStep):o(this,yl).call(this,this.step),p(this,I,qi).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,I,ji).call(this,this.max));break;case"Enter":p(this,I,_E).call(this);break;case"Escape":{h(this,I,!1,bl),p(this,I,qi).call(this);let e=this.shadowRoot?.querySelector('[part="input"]');e&&e.blur();break}}});h(this,gp,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,I,p(this,I,AE).call(this,this.defaultValue),wE),p(this,I,qi).call(this)}willUpdate(){o(this,I,$E)||p(this,I,qi).call(this),o(this,gp).setFormValue(o(this,I,yr)!==void 0?String(o(this,I,yr)):null)}render(){let t=o(this,I,yr),e=o(this,I,TE)||o(this,I,Ui),s=o(this,I,SE)||o(this,I,Ui),l=o(this,I,Ui);return f`
|
|
4334
4334
|
<span
|
|
4335
4335
|
part="label"
|
|
4336
4336
|
?data-scrub="${e}"
|
|
@@ -4354,7 +4354,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4354
4354
|
type="text"
|
|
4355
4355
|
inputmode="decimal"
|
|
4356
4356
|
?data-scrub="${s}"
|
|
4357
|
-
.value="${
|
|
4357
|
+
.value="${cr(o(this,I,kE))}"
|
|
4358
4358
|
?disabled="${this.disabled}"
|
|
4359
4359
|
?readonly="${this.readOnly}"
|
|
4360
4360
|
?required="${this.required}"
|
|
@@ -4372,7 +4372,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4372
4372
|
<span part="unit">${this.unit}</span>
|
|
4373
4373
|
|
|
4374
4374
|
</div>
|
|
4375
|
-
`}};N=A(SM),gp=new WeakMap,Kk=new WeakMap,Wk=new WeakMap,Yk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,oE=new WeakMap,rE=new WeakMap,sE=new WeakMap,iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,uE=new WeakMap,I=new WeakSet,fE=new WeakMap,vE=new WeakMap,xE=new WeakMap,vp=new WeakMap,bp=new WeakMap,Wi=new WeakMap,Yi=new WeakMap,xp=new WeakMap,
|
|
4375
|
+
`}};N=A(SM),gp=new WeakMap,Kk=new WeakMap,Wk=new WeakMap,Yk=new WeakMap,Gk=new WeakMap,Xk=new WeakMap,Jk=new WeakMap,Qk=new WeakMap,Zk=new WeakMap,tE=new WeakMap,eE=new WeakMap,oE=new WeakMap,rE=new WeakMap,sE=new WeakMap,iE=new WeakMap,nE=new WeakMap,aE=new WeakMap,lE=new WeakMap,dE=new WeakMap,cE=new WeakMap,pE=new WeakMap,hE=new WeakMap,uE=new WeakMap,I=new WeakSet,fE=new WeakMap,vE=new WeakMap,xE=new WeakMap,vp=new WeakMap,bp=new WeakMap,Wi=new WeakMap,Yi=new WeakMap,xp=new WeakMap,yr=function(){return this.value??o(this,I,AM)},RM=function(){let t=String(this.step),e=t.indexOf(".");return e===-1?0:t.length-e-1},IM=function(){let t=o(this,I,yr);if(t===void 0)return"";let e=this.precision??o(this,I,RM);return t.toFixed(e)},Pi=function(){return this.scrubLabel||this.scrubValue||this.scrubField||this.clickLabel||this.clickValue||this.clickField},TE=function(){return o(this,I,Pi)?this.scrubLabel:this.label!==""},SE=function(){return o(this,I,Pi)?this.scrubValue:!1},Ui=function(){return o(this,I,Pi)?this.scrubField:this.label===""},LM=function(){return o(this,I,Pi)?this.clickLabel:!1},zM=function(){return o(this,I,Pi)?this.clickValue:!0},hf=function(){return o(this,I,Pi)?this.clickField:!1},qi=function(){h(this,I,o(this,I,IM),EE)},AE=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},ji=function(t){let e=p(this,I,AE).call(this,t);this.value===void 0&&h(this,I,e,wE),this.dispatchEvent(RE({value:e}))},xl=new WeakMap,yl=new WeakMap,_E=function(){let t=parseFloat(o(this,I,kE));Number.isNaN(t)?p(this,I,qi).call(this):p(this,I,ji).call(this,t),h(this,I,!1,bl);let e=o(this,I,yr);e!==void 0&&this.dispatchEvent(mf({value:e}))},uf=function(){let t=this.shadowRoot?.querySelector('[part="input"]');t&&(h(this,I,!0,bl),t.focus(),t.select())},Ki=function(t,e){this.disabled||this.readOnly||(h(this,Yi,t.pointerId),h(this,vp,t.clientX),h(this,bp,o(this,I,yr)??0),h(this,Wi,!1),h(this,xp,e),this.setPointerCapture(t.pointerId),this.addEventListener("pointermove",o(this,yp)),this.addEventListener("pointerup",o(this,Gi)),this.addEventListener("pointercancel",o(this,Gi)))},yp=new WeakMap,Gi=new WeakMap,ff=new WeakMap,gf=new WeakMap,vf=new WeakMap,bf=new WeakMap,xf=new WeakMap,yf=new WeakMap,wf=new WeakMap,c(N,4,"value",TM,mt,Kk),c(N,4,"defaultValue",$M,mt,Wk),c(N,4,"min",CM,mt,Yk),c(N,4,"max",EM,mt,Gk),c(N,4,"step",kM,mt,Xk),c(N,4,"largeStep",wM,mt,Jk),c(N,4,"disabled",yM,mt,Qk),c(N,4,"readOnly",xM,mt,Zk),c(N,4,"required",bM,mt,tE),c(N,4,"name",vM,mt,eE),c(N,4,"label",gM,mt,oE),c(N,4,"labelPosition",fM,mt,rE),c(N,4,"iconPosition",mM,mt,sE),c(N,4,"unit",uM,mt,iE),c(N,4,"precision",hM,mt,nE),c(N,4,"scrubLabel",pM,mt,aE),c(N,4,"scrubValue",cM,mt,lE),c(N,4,"scrubField",dM,mt,dE),c(N,4,"clickLabel",lM,mt,cE),c(N,4,"clickValue",aM,mt,pE),c(N,4,"clickField",nM,mt,hE),mE=c(N,20,"#internalValue",iM,I,uE),AM=mE.get,wE=mE.set,gE=c(N,20,"#inputText",sM,I,fE),kE=gE.get,EE=gE.set,bE=c(N,20,"#dragging",rM,I,vE),_M=bE.get,CE=bE.set,yE=c(N,20,"#editing",oM,I,xE),$E=yE.get,bl=yE.set,T(N,mt),v(mt,"tagName","dui-number-field"),v(mt,"formAssociated",!0),v(mt,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(mt,"styles",[w,zP]);var MP=k`
|
|
4376
4376
|
:host {
|
|
4377
4377
|
--number-field-bg: transparent;
|
|
4378
4378
|
--number-field-fg: var(--text-1);
|
|
@@ -4600,11 +4600,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
4600
4600
|
:host([disabled]) {
|
|
4601
4601
|
opacity: 0.5;
|
|
4602
4602
|
}
|
|
4603
|
-
`,wl=class extends mt{static styles=[...mt.styles,MP]};customElements.define(wl.tagName,wl);var
|
|
4603
|
+
`,wl=class extends mt{static styles=[...mt.styles,MP]};customElements.define(wl.tagName,wl);var Bs=Symbol("dui-popover");var $f=M("open-change",{bubbles:!0,composed:!0}),NP=b`
|
|
4604
4604
|
:host {
|
|
4605
4605
|
display: contents;
|
|
4606
4606
|
}
|
|
4607
|
-
`,OM,MM,NM,DM,HM,BM,FM,VM,Gt,IE,LE,zE,OE,ME,NE,kf,Ef,bt,DE,HE,FE,PM,wp,Tf,Sf,BE,kp,VE,Cf,UM,qM,Qe=class extends(VM=x,FM=[u({type:Boolean,reflect:!0})],BM=[u({type:Boolean,attribute:"default-open"})],HM=[u({reflect:!0})],DM=[u({type:Number,attribute:"side-offset"})],NM=[C()],MM=[C()],OM=[lt({context:
|
|
4607
|
+
`,OM,MM,NM,DM,HM,BM,FM,VM,Gt,IE,LE,zE,OE,ME,NE,kf,Ef,bt,DE,HE,FE,PM,wp,Tf,Sf,BE,kp,VE,Cf,UM,qM,Qe=class extends(VM=x,FM=[u({type:Boolean,reflect:!0})],BM=[u({type:Boolean,attribute:"default-open"})],HM=[u({reflect:!0})],DM=[u({type:Number,attribute:"side-offset"})],NM=[C()],MM=[C()],OM=[lt({context:Bs}),C()],VM){constructor(){super(...arguments);a(this,bt);a(this,IE,n(Gt,8,this,!1)),n(Gt,11,this);a(this,LE,n(Gt,12,this,!1)),n(Gt,15,this);a(this,zE,n(Gt,16,this,"bottom")),n(Gt,19,this);a(this,OE,n(Gt,20,this,8)),n(Gt,23,this);a(this,ME,n(Gt,24,this,!1)),n(Gt,27,this);a(this,DE,n(Gt,28,this)),n(Gt,31,this);a(this,Tf,`popover-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,Sf,`popover-popup-${crypto.randomUUID().slice(0,8)}`);a(this,BE,n(Gt,32,this,{open:!1,triggerId:o(this,Tf),popupId:o(this,Sf),side:"bottom",sideOffset:8,triggerEl:void 0,openPopover:()=>p(this,bt,VE).call(this),closePopover:()=>p(this,bt,Cf).call(this),togglePopover:()=>p(this,bt,UM).call(this),setTriggerEl:t=>p(this,bt,qM).call(this,t)})),n(Gt,35,this);a(this,kp,t=>{o(this,bt,wp)&&t.key==="Escape"&&(t.preventDefault(),p(this,bt,Cf).call(this))})}connectedCallback(){super.connectedCallback(),this.defaultOpen&&h(this,bt,!0,Ef),document.addEventListener("keydown",o(this,kp))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",o(this,kp))}willUpdate(t){(t.has("open")||t.has("side")||t.has("sideOffset")||this._ctx.open!==o(this,bt,wp)||this._ctx.triggerEl!==o(this,bt,FE))&&(this._ctx={...this._ctx,open:o(this,bt,wp),side:this.side,sideOffset:this.sideOffset,triggerEl:o(this,bt,FE)})}render(){return f`<slot></slot>`}};Gt=A(VM),IE=new WeakMap,LE=new WeakMap,zE=new WeakMap,OE=new WeakMap,ME=new WeakMap,bt=new WeakSet,DE=new WeakMap,wp=function(){return this.open||o(this,bt,kf)},Tf=new WeakMap,Sf=new WeakMap,BE=new WeakMap,kp=new WeakMap,VE=function(){o(this,bt,kf)||(h(this,bt,!0,Ef),this.dispatchEvent($f({open:!0})))},Cf=function(){o(this,bt,kf)&&(h(this,bt,!1,Ef),this.dispatchEvent($f({open:!1})))},UM=function(){o(this,bt,wp)?p(this,bt,Cf).call(this):p(this,bt,VE).call(this)},qM=function(t){h(this,bt,t,PM)},c(Gt,4,"open",FM,Qe,IE),c(Gt,4,"defaultOpen",BM,Qe,LE),c(Gt,4,"side",HM,Qe,zE),c(Gt,4,"sideOffset",DM,Qe,OE),NE=c(Gt,20,"#internalOpen",NM,bt,ME),kf=NE.get,Ef=NE.set,HE=c(Gt,20,"#triggerEl",MM,bt,DE),FE=HE.get,PM=HE.set,c(Gt,4,"_ctx",OM,Qe,BE),T(Gt,Qe),v(Qe,"tagName","dui-popover"),v(Qe,"styles",[w,NP]);var DP=b`
|
|
4608
4608
|
:host {
|
|
4609
4609
|
display: contents;
|
|
4610
4610
|
}
|
|
@@ -4612,7 +4612,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4612
4612
|
.Trigger {
|
|
4613
4613
|
display: contents;
|
|
4614
4614
|
}
|
|
4615
|
-
`,Ep=class extends x{static tagName="dui-popover-trigger";static styles=[w,DP,HP];#t=new q(this,{context:
|
|
4615
|
+
`,Ep=class extends x{static tagName="dui-popover-trigger";static styles=[w,DP,HP];#t=new q(this,{context:Bs,subscribe:!0});#e=r=>{r.stopPropagation(),this.#o(),this.#t.value?.togglePopover()};#o(){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 r=this.#t.value?.open??!1,t=this.#t.value?.popupId??"",e=this.#t.value?.triggerId??"";return f`
|
|
4616
4616
|
<span
|
|
4617
4617
|
class="Trigger"
|
|
4618
4618
|
part="trigger"
|
|
@@ -4674,24 +4674,24 @@ label, legend, caption, figcaption, th, td {
|
|
|
4674
4674
|
left: 50%;
|
|
4675
4675
|
transform: translateX(-50%) rotate(180deg);
|
|
4676
4676
|
}
|
|
4677
|
-
`],jM,KM,WM,YM,
|
|
4677
|
+
`],jM,KM,WM,YM,wr,PE,UE,qE,jE,Af,GM,Er,kr,kl,Fs,_f,XM,Go=class extends(YM=x,WM=[u({type:Boolean,attribute:"show-arrow"})],KM=[u({type:Boolean,attribute:"close-on-click"})],jM=[C()],YM){constructor(){super(...arguments);a(this,Er);a(this,PE,n(wr,8,this,!0)),n(wr,11,this);a(this,UE,n(wr,12,this,!1)),n(wr,15,this);a(this,qE,n(wr,16,this,"bottom")),n(wr,19,this);a(this,kr,new q(this,{context:Bs,subscribe:!0}));a(this,kl,!1);a(this,Fs,new Te(this,{getAnchor:()=>o(this,kr).value?.triggerEl,matchWidth:!1,placement:"bottom",offset:8,styles:FP,contentContainer:".Content",forwardProperties:["--popover-popup-padding"],onClose:()=>{o(this,kr).value?.closePopover()},onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Er,Af)&&h(this,Er,e,GM)},renderPopup:t=>{let e=o(this,kr).value?.popupId??"";return f`
|
|
4678
4678
|
<div
|
|
4679
4679
|
class="Popup"
|
|
4680
4680
|
id="${e}"
|
|
4681
4681
|
role="dialog"
|
|
4682
4682
|
?data-starting-style="${t.isStarting}"
|
|
4683
4683
|
?data-ending-style="${t.isEnding}"
|
|
4684
|
-
data-side="${o(this,
|
|
4684
|
+
data-side="${o(this,Er,Af)}"
|
|
4685
4685
|
@click="${o(this,_f)}"
|
|
4686
4686
|
>
|
|
4687
4687
|
<div class="Content"></div>
|
|
4688
|
-
${this.showArrow?Ra(o(this,
|
|
4688
|
+
${this.showArrow?Ra(o(this,Er,Af)):""}
|
|
4689
4689
|
</div>
|
|
4690
|
-
`}}));a(this,_f,()=>{this.closeOnClick&&o(this,
|
|
4690
|
+
`}}));a(this,_f,()=>{this.closeOnClick&&o(this,kr).value?.closePopover()})}containsEventTarget(t){let e=o(this,Fs).positionerElement;return e!==null&&t.includes(e)}updated(){let t=o(this,kr).value?.open??!1;t&&!o(this,kl)?(p(this,Er,XM).call(this),o(this,Fs).open()):!t&&o(this,kl)&&o(this,Fs).close(),h(this,kl,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};wr=A(YM),PE=new WeakMap,UE=new WeakMap,qE=new WeakMap,Er=new WeakSet,kr=new WeakMap,kl=new WeakMap,Fs=new WeakMap,_f=new WeakMap,XM=function(){let t=o(this,kr).value?.side??"bottom";o(this,Fs).placement=t,o(this,Fs).offset=o(this,kr).value?.sideOffset??8},c(wr,4,"showArrow",WM,Go,PE),c(wr,4,"closeOnClick",KM,Go,UE),jE=c(wr,20,"#side",jM,Er,qE),Af=jE.get,GM=jE.set,T(wr,Go),v(Go,"tagName","dui-popover-popup"),v(Go,"styles",[w,BP]);var VP=b`
|
|
4691
4691
|
:host {
|
|
4692
4692
|
display: contents;
|
|
4693
4693
|
}
|
|
4694
|
-
`,Cp=class extends x{static tagName="dui-popover-close";static styles=[w,VP];#t=new q(this,{context:
|
|
4694
|
+
`,Cp=class extends x{static tagName="dui-popover-close";static styles=[w,VP];#t=new q(this,{context:Bs,subscribe:!0});#e=()=>{this.#t.value?.closePopover()};render(){return f`
|
|
4695
4695
|
<span @click="${this.#e}">
|
|
4696
4696
|
<slot></slot>
|
|
4697
4697
|
</span>
|
|
@@ -4723,7 +4723,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4723
4723
|
:host {
|
|
4724
4724
|
display: contents;
|
|
4725
4725
|
}
|
|
4726
|
-
`,JM,QM,ZM,t5,
|
|
4726
|
+
`,JM,QM,ZM,t5,Cr,KE,WE,YE,$r,Xi,Vs,Ze,GE,e5,XE,Rf,If,Io=class extends(t5=x,ZM=[u({type:String})],QM=[u({type:String,attribute:"target-root",reflect:!0})],JM=[u({attribute:!1})],t5){constructor(){super(...arguments);a(this,Ze);a(this,KE,n(Cr,8,this,"body")),n(Cr,11,this);a(this,WE,n(Cr,12,this,"document")),n(Cr,15,this);a(this,YE,n(Cr,16,this)),n(Cr,19,this);a(this,$r);a(this,Xi,new Set);a(this,Vs,!1);a(this,If,()=>{o(this,Vs)||!o(this,$r)||p(this,Ze,Rf).call(this)})}connectedCallback(){super.connectedCallback(),h(this,$r,this.targetElement??p(this,Ze,GE).call(this)),o(this,$r)&&this.childNodes.length>0&&p(this,Ze,Rf).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Ze,XE).call(this)}updated(t){(t.has("target")||t.has("targetRoot")||t.has("targetElement"))&&(p(this,Ze,XE).call(this),p(this,Ze,e5).call(this))}render(){return f`<slot @slotchange=${o(this,If)}></slot>`}};Cr=A(t5),KE=new WeakMap,WE=new WeakMap,YE=new WeakMap,$r=new WeakMap,Xi=new WeakMap,Vs=new WeakMap,Ze=new WeakSet,GE=function(){return JR(this,{composed:this.targetRoot==="document"})?.querySelector(this.target)??void 0},e5=function(){h(this,$r,this.targetElement??p(this,Ze,GE).call(this)),p(this,Ze,Rf).call(this)},XE=function(){if(o(this,Xi).size!==0){h(this,Vs,!0);for(let t of o(this,Xi))this.append(t);o(this,Xi).clear(),h(this,Vs,!1),h(this,$r,void 0)}},Rf=function(){if(!o(this,$r))throw new Error(`Portal target does not exist: ${this.target}`);h(this,Vs,!0);let t=Array.from(this.childNodes);for(let e of t)o(this,$r).appendChild(e),o(this,Xi).add(e);h(this,Vs,!1)},If=new WeakMap,c(Cr,4,"target",ZM,Io,KE),c(Cr,4,"targetRoot",QM,Io,WE),c(Cr,4,"targetElement",JM,Io,YE),T(Cr,Io),v(Io,"tagName","dui-portal"),v(Io,"styles",[qP]);var jP=k``,Sl=class extends Io{static styles=[...Io.styles,jP]};customElements.define(Sl.tagName,Sl);var Al=Symbol("dui-preview-card");var Mf=M("open-change",{bubbles:!0,composed:!0}),KP=b`
|
|
4727
4727
|
:host {
|
|
4728
4728
|
display: contents;
|
|
4729
4729
|
}
|
|
@@ -4800,21 +4800,21 @@ label, legend, caption, figcaption, th, td {
|
|
|
4800
4800
|
left: 50%;
|
|
4801
4801
|
transform: translateX(-50%) rotate(180deg);
|
|
4802
4802
|
}
|
|
4803
|
-
`],g5,v5,b5,Zi,pC,hC,uC,Hf,x5,
|
|
4803
|
+
`],g5,v5,b5,Zi,pC,hC,uC,Hf,x5,Sr,Xo,_l,tn,Bf,Ff,y5,Tr=class extends(b5=x,v5=[u({type:Boolean,attribute:"show-arrow"})],g5=[C()],b5){constructor(){super(...arguments);a(this,Sr);a(this,pC,n(Zi,8,this,!0)),n(Zi,11,this);a(this,hC,n(Zi,12,this,"top")),n(Zi,15,this);a(this,Xo,new q(this,{context:Al,subscribe:!0}));a(this,_l,!1);a(this,tn,new Te(this,{getAnchor:()=>o(this,Xo).value?.triggerEl,matchWidth:!1,placement:"top",offset:8,styles:XP,contentContainer:".PreviewCardContent",onClose:()=>{o(this,Xo).value?.closePreviewCard()},forwardProperties:["--preview-card-popup-padding","--preview-card-popup-max-width"],onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Sr,Hf)&&h(this,Sr,e,x5)},renderPopup:t=>{let e=o(this,Xo).value?.popupId??"";return f`
|
|
4804
4804
|
<div
|
|
4805
4805
|
class="Popup"
|
|
4806
4806
|
id="${e}"
|
|
4807
4807
|
role="tooltip"
|
|
4808
4808
|
?data-starting-style="${t.isStarting}"
|
|
4809
4809
|
?data-ending-style="${t.isEnding}"
|
|
4810
|
-
data-side="${o(this,
|
|
4810
|
+
data-side="${o(this,Sr,Hf)}"
|
|
4811
4811
|
@mouseenter="${o(this,Bf)}"
|
|
4812
4812
|
@mouseleave="${o(this,Ff)}"
|
|
4813
4813
|
>
|
|
4814
4814
|
<div class="PreviewCardContent"></div>
|
|
4815
|
-
${this.showArrow?Ra(o(this,
|
|
4815
|
+
${this.showArrow?Ra(o(this,Sr,Hf)):""}
|
|
4816
4816
|
</div>
|
|
4817
|
-
`}}));a(this,Bf,()=>{o(this,
|
|
4817
|
+
`}}));a(this,Bf,()=>{o(this,Xo).value?.openPreviewCard()});a(this,Ff,()=>{o(this,Xo).value?.closePreviewCard()})}updated(){let t=o(this,Xo).value?.open??!1;t&&!o(this,_l)?(p(this,Sr,y5).call(this),o(this,tn).open()):!t&&o(this,_l)&&o(this,tn).close(),h(this,_l,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};Zi=A(b5),pC=new WeakMap,hC=new WeakMap,Sr=new WeakSet,Xo=new WeakMap,_l=new WeakMap,tn=new WeakMap,Bf=new WeakMap,Ff=new WeakMap,y5=function(){let t=o(this,Xo).value?.side??"top";o(this,tn).placement=t,o(this,tn).offset=o(this,Xo).value?.sideOffset??8},c(Zi,4,"showArrow",v5,Tr,pC),uC=c(Zi,20,"#side",g5,Sr,hC),Hf=uC.get,x5=uC.set,T(Zi,Tr),v(Tr,"tagName","dui-preview-card-popup"),v(Tr,"styles",[w,GP]);var JP=k``,Rl=class extends Se{static styles=[...Se.styles,JP]};customElements.define(Rl.tagName,Rl);var QP=k`
|
|
4818
4818
|
.Popup {
|
|
4819
4819
|
padding: var(--preview-card-popup-padding, var(--space-4));
|
|
4820
4820
|
border-radius: var(--radius-md);
|
|
@@ -4825,7 +4825,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4825
4825
|
line-height: var(--text-sm--line-height);
|
|
4826
4826
|
box-shadow: var(--shadow-lg);
|
|
4827
4827
|
border: var(--border-width-thin) solid var(--border);
|
|
4828
|
-
max-width: var(--max-width, var(--space-80));
|
|
4828
|
+
max-width: var(--preview-card-popup-max-width, var(--space-80));
|
|
4829
4829
|
transition-duration: var(--duration-faster);
|
|
4830
4830
|
transition-timing-function: var(--ease-out-3);
|
|
4831
4831
|
}
|
|
@@ -4839,7 +4839,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4839
4839
|
stroke: var(--border);
|
|
4840
4840
|
stroke-width: 1px;
|
|
4841
4841
|
}
|
|
4842
|
-
`,Il=class extends
|
|
4842
|
+
`,Il=class extends Tr{static styles=[...Tr.styles,QP]};customElements.define(Il.tagName,Il);var Ll=class extends $p{};customElements.define(Ll.tagName,Ll);var ZP=b`
|
|
4843
4843
|
:host {
|
|
4844
4844
|
display: block;
|
|
4845
4845
|
}
|
|
@@ -4857,23 +4857,23 @@ label, legend, caption, figcaption, th, td {
|
|
|
4857
4857
|
width: var(--progress-value, 0%);
|
|
4858
4858
|
height: 100%;
|
|
4859
4859
|
}
|
|
4860
|
-
`,w5,k5,E5,C5,
|
|
4860
|
+
`,w5,k5,E5,C5,Ar,mC,fC,gC,_r,$5,vC,bC,Lo=class extends(C5=x,E5=[u({type:Number})],k5=[u({type:Number})],w5=[u({type:Number})],C5){constructor(){super(...arguments);a(this,_r);a(this,mC,n(Ar,8,this,null)),n(Ar,11,this);a(this,fC,n(Ar,12,this,0)),n(Ar,15,this);a(this,gC,n(Ar,16,this,100)),n(Ar,19,this)}render(){let t=o(this,_r,$5);return f`
|
|
4861
4861
|
<div
|
|
4862
4862
|
part="root"
|
|
4863
4863
|
role="progressbar"
|
|
4864
4864
|
aria-valuenow="${this.value??L}"
|
|
4865
4865
|
aria-valuemin="${this.min}"
|
|
4866
4866
|
aria-valuemax="${this.max}"
|
|
4867
|
-
?data-complete="${o(this,
|
|
4868
|
-
?data-progressing="${!o(this,
|
|
4869
|
-
?data-indeterminate="${o(this,
|
|
4867
|
+
?data-complete="${o(this,_r,bC)}"
|
|
4868
|
+
?data-progressing="${!o(this,_r,vC)&&!o(this,_r,bC)}"
|
|
4869
|
+
?data-indeterminate="${o(this,_r,vC)}"
|
|
4870
4870
|
style="--progress-value: ${t}%"
|
|
4871
4871
|
>
|
|
4872
4872
|
<div part="track">
|
|
4873
4873
|
<div part="indicator"></div>
|
|
4874
4874
|
</div>
|
|
4875
4875
|
</div>
|
|
4876
|
-
`}};
|
|
4876
|
+
`}};Ar=A(C5),mC=new WeakMap,fC=new WeakMap,gC=new WeakMap,_r=new WeakSet,$5=function(){if(this.value===null)return 0;let t=this.max-this.min;return t<=0?0:Math.max(0,Math.min(100,(this.value-this.min)/t*100))},vC=function(){return this.value===null},bC=function(){return this.value!==null&&this.value>=this.max},c(Ar,4,"value",E5,Lo,mC),c(Ar,4,"min",k5,Lo,fC),c(Ar,4,"max",w5,Lo,gC),T(Ar,Lo),v(Lo,"tagName","dui-progress"),v(Lo,"styles",[w,ZP]);var tU=k`
|
|
4877
4877
|
:host {
|
|
4878
4878
|
--progress-height: var(--space-2);
|
|
4879
4879
|
}
|
|
@@ -4947,7 +4947,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4947
4947
|
display: none;
|
|
4948
4948
|
}
|
|
4949
4949
|
|
|
4950
|
-
`,T5,S5,A5,_5,Ol,
|
|
4950
|
+
`,T5,S5,A5,_5,Ol,Rr,xC,yC,wC,Ps,De,kC,EC,CC,R5,I5,Tp,Ml,Pf,mo=class extends(_5=x,A5=[u()],S5=[u({type:Boolean,reflect:!0})],T5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],_5){constructor(){super();a(this,De);a(this,Ol);a(this,xC,n(Rr,8,this,"")),n(Rr,11,this);a(this,yC,n(Rr,12,this,!1)),n(Rr,15,this);a(this,wC,n(Rr,16,this,!1)),n(Rr,19,this);a(this,Ps,new q(this,{context:Vf,subscribe:!0}));a(this,Tp,t=>{t.target.closest("[part='root']")||o(this,Ml).call(this,t)});a(this,Ml,t=>{if(o(this,De,EC)||o(this,De,CC))return;let e=o(this,Ps).value;e&&e.select(this.value)});a(this,Pf,t=>{t.key===" "&&(t.preventDefault(),o(this,Ml).call(this,t))});h(this,Ol,this.attachInternals())}connectedCallback(){super.connectedCallback(),this.addEventListener("click",o(this,Tp))}willUpdate(){p(this,De,I5).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",o(this,Tp))}render(){let t=o(this,De,kC),e=o(this,De,EC),s=o(this,De,CC),l=o(this,De,R5);return f`
|
|
4951
4951
|
<span
|
|
4952
4952
|
part="root"
|
|
4953
4953
|
role="radio"
|
|
@@ -4973,7 +4973,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4973
4973
|
</span>
|
|
4974
4974
|
</span>
|
|
4975
4975
|
<slot></slot>
|
|
4976
|
-
`}};
|
|
4976
|
+
`}};Rr=A(_5),Ol=new WeakMap,xC=new WeakMap,yC=new WeakMap,wC=new WeakMap,Ps=new WeakMap,De=new WeakSet,kC=function(){return o(this,Ps).value?.value===this.value},EC=function(){return this.disabled||(o(this,Ps).value?.disabled??!1)},CC=function(){return this.readOnly||(o(this,Ps).value?.readOnly??!1)},R5=function(){return o(this,Ps).value?.required??!1},I5=function(){o(this,De,kC)?o(this,Ol).setFormValue(this.value):o(this,Ol).setFormValue(null)},Tp=new WeakMap,Ml=new WeakMap,Pf=new WeakMap,c(Rr,4,"value",A5,mo,xC),c(Rr,4,"disabled",S5,mo,yC),c(Rr,4,"readOnly",T5,mo,wC),T(Rr,mo),v(mo,"tagName","dui-radio"),v(mo,"formAssociated",!0),v(mo,"styles",[w,eU]);var MC=M("value-change",{bubbles:!0,composed:!0}),oU=b`
|
|
4977
4977
|
:host {
|
|
4978
4978
|
display: block;
|
|
4979
4979
|
}
|
|
@@ -4987,7 +4987,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4987
4987
|
[part="root"][data-disabled] {
|
|
4988
4988
|
opacity: 0.5;
|
|
4989
4989
|
}
|
|
4990
|
-
`,L5,z5,O5,M5,N5,D5,H5,B5,F5,Ht,$C,TC,SC,AC,_C,RC,IC,LC,V5,OC,
|
|
4990
|
+
`,L5,z5,O5,M5,N5,D5,H5,B5,F5,Ht,$C,TC,SC,AC,_C,RC,IC,LC,V5,OC,Jo,qf,jf,zC,Uf,Ae=class extends(F5=x,B5=[u()],H5=[u()],D5=[u({attribute:"default-value"})],N5=[u({type:Boolean,reflect:!0})],M5=[u({type:Boolean,reflect:!0,attribute:"read-only"})],O5=[u({type:Boolean,reflect:!0})],z5=[C()],L5=[lt({context:Vf}),C()],F5){constructor(){super(...arguments);a(this,Jo);a(this,$C,n(Ht,8,this)),n(Ht,11,this);a(this,TC,n(Ht,12,this)),n(Ht,15,this);a(this,SC,n(Ht,16,this)),n(Ht,19,this);a(this,AC,n(Ht,20,this,!1)),n(Ht,23,this);a(this,_C,n(Ht,24,this,!1)),n(Ht,27,this);a(this,RC,n(Ht,28,this,!1)),n(Ht,31,this);a(this,IC,n(Ht,32,this)),n(Ht,35,this);a(this,qf,()=>this.value??o(this,Jo,V5));a(this,jf,t=>{this.disabled||this.readOnly||(this.value===void 0&&h(this,Jo,t,OC),this.dispatchEvent(MC({value:t})))});a(this,zC,n(Ht,36,this,p(this,Jo,Uf).call(this))),n(Ht,39,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,Jo,this.defaultValue,OC),this._ctx=p(this,Jo,Uf).call(this)}willUpdate(){this._ctx=p(this,Jo,Uf).call(this)}render(){return f`
|
|
4991
4991
|
<div
|
|
4992
4992
|
part="root"
|
|
4993
4993
|
role="radiogroup"
|
|
@@ -4997,7 +4997,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
4997
4997
|
>
|
|
4998
4998
|
<slot></slot>
|
|
4999
4999
|
</div>
|
|
5000
|
-
`}};Ht=A(F5),$C=new WeakMap,TC=new WeakMap,SC=new WeakMap,AC=new WeakMap,_C=new WeakMap,RC=new WeakMap,IC=new WeakMap,
|
|
5000
|
+
`}};Ht=A(F5),$C=new WeakMap,TC=new WeakMap,SC=new WeakMap,AC=new WeakMap,_C=new WeakMap,RC=new WeakMap,IC=new WeakMap,Jo=new WeakSet,qf=new WeakMap,jf=new WeakMap,zC=new WeakMap,Uf=function(){return{name:this.name,value:o(this,qf).call(this),disabled:this.disabled,readOnly:this.readOnly,required:this.required,select:o(this,jf)}},c(Ht,4,"name",B5,Ae,$C),c(Ht,4,"value",H5,Ae,TC),c(Ht,4,"defaultValue",D5,Ae,SC),c(Ht,4,"disabled",N5,Ae,AC),c(Ht,4,"readOnly",M5,Ae,_C),c(Ht,4,"required",O5,Ae,RC),LC=c(Ht,20,"#internalValue",z5,Jo,IC),V5=LC.get,OC=LC.set,c(Ht,4,"_ctx",L5,Ae,zC),T(Ht,Ae),v(Ae,"tagName","dui-radio-group"),v(Ae,"styles",[w,oU]);var rU=k`
|
|
5001
5001
|
:host {
|
|
5002
5002
|
--radio-size: var(--space-4_5);
|
|
5003
5003
|
gap: var(--space-2);
|
|
@@ -5139,7 +5139,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5139
5139
|
height: 100%;
|
|
5140
5140
|
min-width: 1.25rem;
|
|
5141
5141
|
}
|
|
5142
|
-
`,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,NC,DC,HC,BC,FC,Kf,eN,H,VC,PC,Wf,oN,UC,qC,r1,s1,jC,KC,Yf,i1,WC,YC,n1,rN,GC,XC,a1,sN,JC,QC,iN,nN,ZC,t1,aN,lN,e1,o1,l1,dN,Gf,hs,Hl,Bl,en,on,rn,sn,
|
|
5142
|
+
`,P5,U5,q5,j5,K5,W5,Y5,G5,X5,J5,Q5,Z5,tN,it,NC,DC,HC,BC,FC,Kf,eN,H,VC,PC,Wf,oN,UC,qC,r1,s1,jC,KC,Yf,i1,WC,YC,n1,rN,GC,XC,a1,sN,JC,QC,iN,nN,ZC,t1,aN,lN,e1,o1,l1,dN,Gf,hs,Hl,Bl,en,on,rn,sn,Us,cN,pN,nn,Sp,Xf,Ap,_p,Rp,Ip,Lp,zp,hN,uN,Ir=class Ir extends(tN=x,Z5=[u({reflect:!0})],Q5=[u({type:Boolean,reflect:!0})],J5=[u({attribute:"max-height"})],X5=[C()],G5=[C()],Y5=[C()],W5=[C()],K5=[C()],j5=[C()],q5=[C()],U5=[C()],P5=[C()],tN){constructor(){super(...arguments);a(this,H);a(this,NC,n(it,8,this,"vertical")),n(it,11,this);a(this,DC,n(it,12,this,!1)),n(it,15,this);a(this,HC,n(it,16,this)),n(it,19,this);a(this,BC,n(it,20,this,!1)),n(it,23,this);a(this,VC,n(it,24,this,!1)),n(it,27,this);a(this,UC,n(it,28,this,!1)),n(it,31,this);a(this,jC,n(it,32,this,!1)),n(it,35,this);a(this,WC,n(it,36,this,0)),n(it,39,this);a(this,GC,n(it,40,this,0)),n(it,43,this);a(this,JC,n(it,44,this,0)),n(it,47,this);a(this,ZC,n(it,48,this,0)),n(it,51,this);a(this,e1,n(it,52,this,!0)),n(it,55,this);a(this,hs,!0);a(this,Hl,0);a(this,Bl);a(this,en);a(this,on);a(this,rn,0);a(this,sn,0);a(this,nn,()=>{let t=o(this,H,Us);if(!t)return;let e=t.scrollHeight>t.clientHeight,s=t.scrollWidth>t.clientWidth;h(this,H,e,oN),h(this,H,s,eN),e&&h(this,H,t.clientHeight/t.scrollHeight*100,rN),s&&h(this,H,t.clientWidth/t.scrollWidth*100,sN),o(this,Sp).call(this,t)});a(this,Sp,t=>{if(o(this,H,Wf)){let e=t.scrollHeight-t.clientHeight;h(this,H,e>0?t.scrollTop/e*(100-o(this,H,n1)):0,nN)}if(o(this,H,Kf)){let e=t.scrollWidth-t.clientWidth;h(this,H,e>0?t.scrollLeft/e*(100-o(this,H,a1)):0,lN)}});a(this,Xf,()=>{let t=o(this,H,Us);if(!t)return;h(this,H,!0,i1),o(this,Sp).call(this,t);let e=o(this,hs),s=t.scrollTop<o(this,Hl);h(this,H,t.scrollTop<=0,dN),h(this,hs,t.scrollTop+t.clientHeight>=t.scrollHeight-o(Ir,Gf)),s&&e&&!o(this,hs)?this.dispatchEvent(new Event("scrolled-from-bottom",{bubbles:!0,composed:!0})):!e&&o(this,hs)&&this.dispatchEvent(new Event("scrolled-to-bottom",{bubbles:!0,composed:!0})),h(this,Hl,t.scrollTop),clearTimeout(o(this,Bl)),h(this,Bl,setTimeout(()=>{h(this,H,!1,i1)},1e3))});a(this,Ap,()=>{h(this,H,!0,s1),o(this,nn).call(this)});a(this,_p,()=>{h(this,H,!1,s1)});a(this,Rp,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Us);if(s)if(t==="vertical"){let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientY-d.top)/d.height;s.scrollTop=m*(s.scrollHeight-s.clientHeight)}else{let l=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!l)return;let d=l.getBoundingClientRect(),m=(e.clientX-d.left)/d.width;s.scrollLeft=m*(s.scrollWidth-s.clientWidth)}});a(this,Ip,(t,e)=>{e.preventDefault(),e.stopPropagation();let s=o(this,H,Us);s&&(h(this,on,t),t==="vertical"?(h(this,rn,e.clientY),h(this,sn,s.scrollTop)):(h(this,rn,e.clientX),h(this,sn,s.scrollLeft)),document.addEventListener("pointermove",o(this,Lp)),document.addEventListener("pointerup",o(this,zp)))});a(this,Lp,t=>{let e=o(this,H,Us);if(!(!e||!o(this,on)))if(o(this,on)==="vertical"){let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="vertical"]');if(!s)return;let l=t.clientY-o(this,rn),d=s.clientHeight,m=e.scrollHeight-e.clientHeight;e.scrollTop=o(this,sn)+l/d*m}else{let s=this.shadowRoot?.querySelector('.Scrollbar[data-orientation="horizontal"]');if(!s)return;let l=t.clientX-o(this,rn),d=s.clientWidth,m=e.scrollWidth-e.clientWidth;e.scrollLeft=o(this,sn)+l/d*m}});a(this,zp,()=>{h(this,on,void 0),document.removeEventListener("pointermove",o(this,Lp)),document.removeEventListener("pointerup",o(this,zp))})}willUpdate(t){t.has("maxHeight")&&(this.maxHeight?this.style.setProperty("--scroll-area-max-height",this.maxHeight):this.style.removeProperty("--scroll-area-max-height"))}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerenter",o(this,Ap)),this.addEventListener("pointerleave",o(this,_p))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,Ap)),this.removeEventListener("pointerleave",o(this,_p)),o(this,en)?.disconnect(),clearTimeout(o(this,Bl))}firstUpdated(){let t=o(this,H,Us);if(!t)return;h(this,en,new ResizeObserver(()=>o(this,nn).call(this))),o(this,en).observe(t);let e=t.querySelector("slot");if(e){let s=()=>{for(let l of e.assignedElements())o(this,en).observe(l)};e.addEventListener("slotchange",()=>{s(),requestAnimationFrame(()=>o(this,nn).call(this))}),s()}o(this,nn).call(this)}async scrollToBottom(){await this.updateComplete;let t=o(this,H,Us);t&&(t.scrollTop=t.scrollHeight,h(this,hs,!0),h(this,Hl,t.scrollTop))}get isAtTop(){return o(this,H,l1)}get isAtBottom(){return o(this,hs)}render(){return f`
|
|
5143
5143
|
<div
|
|
5144
5144
|
class="ScrollArea"
|
|
5145
5145
|
part="root"
|
|
@@ -5152,7 +5152,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5152
5152
|
</div>
|
|
5153
5153
|
${p(this,H,hN).call(this)} ${p(this,H,uN).call(this)}
|
|
5154
5154
|
</div>
|
|
5155
|
-
`}};it=A(tN),NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,H=new WeakSet,VC=new WeakMap,UC=new WeakMap,jC=new WeakMap,WC=new WeakMap,GC=new WeakMap,JC=new WeakMap,ZC=new WeakMap,e1=new WeakMap,Gf=new WeakMap,hs=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,en=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,
|
|
5155
|
+
`}};it=A(tN),NC=new WeakMap,DC=new WeakMap,HC=new WeakMap,BC=new WeakMap,H=new WeakSet,VC=new WeakMap,UC=new WeakMap,jC=new WeakMap,WC=new WeakMap,GC=new WeakMap,JC=new WeakMap,ZC=new WeakMap,e1=new WeakMap,Gf=new WeakMap,hs=new WeakMap,Hl=new WeakMap,Bl=new WeakMap,en=new WeakMap,on=new WeakMap,rn=new WeakMap,sn=new WeakMap,Us=function(){return this.shadowRoot?.querySelector(".Viewport")??null},cN=function(){return this.orientation==="vertical"||this.orientation==="both"},pN=function(){return this.orientation==="horizontal"||this.orientation==="both"},nn=new WeakMap,Sp=new WeakMap,Xf=new WeakMap,Ap=new WeakMap,_p=new WeakMap,Rp=new WeakMap,Ip=new WeakMap,Lp=new WeakMap,zp=new WeakMap,hN=function(){return!o(this,H,cN)||!o(this,H,Wf)?L:f`
|
|
5156
5156
|
<div
|
|
5157
5157
|
class="Scrollbar"
|
|
5158
5158
|
part="scrollbar-vertical"
|
|
@@ -5186,7 +5186,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5186
5186
|
@pointerdown="${t=>o(this,Ip).call(this,"horizontal",t)}"
|
|
5187
5187
|
></div>
|
|
5188
5188
|
</div>
|
|
5189
|
-
`},c(it,4,"orientation",Z5,
|
|
5189
|
+
`},c(it,4,"orientation",Z5,Ir,NC),c(it,4,"fade",Q5,Ir,DC),c(it,4,"maxHeight",J5,Ir,HC),FC=c(it,20,"#hasOverflowX",X5,H,BC),Kf=FC.get,eN=FC.set,PC=c(it,20,"#hasOverflowY",G5,H,VC),Wf=PC.get,oN=PC.set,qC=c(it,20,"#hovering",Y5,H,UC),r1=qC.get,s1=qC.set,KC=c(it,20,"#scrolling",W5,H,jC),Yf=KC.get,i1=KC.set,YC=c(it,20,"#thumbHeightPercent",K5,H,WC),n1=YC.get,rN=YC.set,XC=c(it,20,"#thumbWidthPercent",j5,H,GC),a1=XC.get,sN=XC.set,QC=c(it,20,"#thumbTopPercent",q5,H,JC),iN=QC.get,nN=QC.set,t1=c(it,20,"#thumbLeftPercent",U5,H,ZC),aN=t1.get,lN=t1.set,o1=c(it,20,"#isAtTop",P5,H,e1),l1=o1.get,dN=o1.set,T(it,Ir),v(Ir,"tagName","dui-scroll-area"),v(Ir,"styles",[w,iU]),a(Ir,Gf,1);var Fl=Ir;var nU=k`
|
|
5190
5190
|
.Scrollbar {
|
|
5191
5191
|
border-radius: var(--radius-sm);
|
|
5192
5192
|
transition: opacity var(--duration-fast);
|
|
@@ -5284,7 +5284,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5284
5284
|
overflow: hidden;
|
|
5285
5285
|
text-overflow: ellipsis;
|
|
5286
5286
|
}
|
|
5287
|
-
`],mN,fN,gN,vN,bN,xN,yN,wN,Mp,Xt,d1,c1,p1,h1,u1,m1,f1,g1,an,
|
|
5287
|
+
`],mN,fN,gN,vN,bN,xN,yN,wN,Mp,Xt,d1,c1,p1,h1,u1,m1,f1,g1,an,qs,dt,Jf,ln,Jt,v1,kN,EN,Qf,Zf,tg,eg,og,b1,Op,x1,rg,_e=class extends(wN=x,yN=[u({attribute:!1})],xN=[u({type:String})],bN=[u({type:String})],vN=[u({type:Boolean,reflect:!0})],gN=[u({type:Boolean,attribute:"align-item-to-trigger",reflect:!0})],fN=[u({type:String})],mN=[C()],wN){constructor(){super();a(this,dt);a(this,Mp);a(this,d1,n(Xt,8,this,[])),n(Xt,11,this);a(this,c1,n(Xt,12,this,"")),n(Xt,15,this);a(this,p1,n(Xt,16,this,"Select...")),n(Xt,19,this);a(this,h1,n(Xt,20,this,!1)),n(Xt,23,this);a(this,u1,n(Xt,24,this,!0)),n(Xt,27,this);a(this,m1,n(Xt,28,this,"")),n(Xt,31,this);a(this,f1,n(Xt,32,this,-1)),n(Xt,35,this);a(this,Jf,`select-trigger-${crypto.randomUUID().slice(0,8)}`);a(this,ln,`select-listbox-${crypto.randomUUID().slice(0,8)}`);a(this,Jt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Trigger"),matchWidth:!1,minMatchWidth:!0,styles:cU,alignToInner:()=>{if(!this.alignItemToTrigger)return null;let e=o(this,Jt).renderRoot?.querySelector("[data-selected]");return e?.querySelector(".ItemText")??e??null},alignToInnerReference:()=>this.alignItemToTrigger?this.shadowRoot?.querySelector(".Value")??null:null,onOpen:()=>{h(this,dt,o(this,dt,kN),qs)},onClose:()=>{h(this,dt,-1,qs)},renderPopup:t=>f`
|
|
5288
5288
|
<div
|
|
5289
5289
|
class="Popup"
|
|
5290
5290
|
?data-align-inner="${this.alignItemToTrigger&&this.value!==""}"
|
|
@@ -5301,7 +5301,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5301
5301
|
${Si(this.options,e=>e.value,o(this,rg))}
|
|
5302
5302
|
</div>
|
|
5303
5303
|
</div>
|
|
5304
|
-
`}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,b1).call(this,e)}else o(this,Jt).open();break}case"ArrowDown":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),1),
|
|
5304
|
+
`}));a(this,Qf,t=>{t.stopPropagation(),!this.disabled&&(o(this,Jt).isOpen?o(this,Jt).close():o(this,Jt).open())});a(this,Zf,t=>{if(!this.disabled)switch(t.key){case"Enter":case" ":{if(t.preventDefault(),o(this,Jt).isOpen){let e=this.options[o(this,dt,an)];e&&!e.disabled&&p(this,dt,b1).call(this,e)}else o(this,Jt).open();break}case"ArrowDown":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),1),qs):o(this,Jt).open();break}case"ArrowUp":{t.preventDefault(),o(this,Jt).isOpen?h(this,dt,p(this,dt,Op).call(this,o(this,dt,an),-1),qs):o(this,Jt).open();break}case"Home":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,-1,1),qs));break}case"End":{o(this,Jt).isOpen&&(t.preventDefault(),h(this,dt,p(this,dt,Op).call(this,this.options.length,-1),qs));break}case"Escape":{o(this,Jt).isOpen&&(t.preventDefault(),o(this,Jt).close(),p(this,dt,x1).call(this));break}case"Tab":{o(this,Jt).isOpen&&o(this,Jt).close();break}}});a(this,tg,t=>{t.preventDefault()});a(this,eg,t=>{t.disabled||p(this,dt,b1).call(this,t)});a(this,og,t=>{this.options[t]?.disabled||h(this,dt,t,qs)});a(this,rg,(t,e)=>{let s=t.value===this.value,l=e===o(this,dt,an);return f`
|
|
5305
5305
|
<div
|
|
5306
5306
|
class="Item"
|
|
5307
5307
|
role="option"
|
|
@@ -5346,7 +5346,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5346
5346
|
</span>
|
|
5347
5347
|
</div>
|
|
5348
5348
|
|
|
5349
|
-
`}};Xt=A(wN),Mp=new WeakMap,d1=new WeakMap,c1=new WeakMap,p1=new WeakMap,h1=new WeakMap,u1=new WeakMap,m1=new WeakMap,f1=new WeakMap,dt=new WeakSet,Jf=new WeakMap,ln=new WeakMap,Jt=new WeakMap,v1=function(){return this.options.find(t=>t.value===this.value)},kN=function(){return this.options.findIndex(t=>t.value===this.value)},EN=function(){return o(this,dt,v1)?.label??""},Qf=new WeakMap,Zf=new WeakMap,tg=new WeakMap,eg=new WeakMap,og=new WeakMap,b1=function(t){this.value=t.value,this.dispatchEvent(aU({value:t.value,option:t})),o(this,Jt).close(),p(this,dt,x1).call(this)},Op=function(t,e){let s=this.options.length,l=t+e;for(;l>=0&&l<s;){if(!this.options[l].disabled)return l;l+=e}return t},x1=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},rg=new WeakMap,c(Xt,4,"options",yN,_e,d1),c(Xt,4,"value",xN,_e,c1),c(Xt,4,"placeholder",bN,_e,p1),c(Xt,4,"disabled",vN,_e,h1),c(Xt,4,"alignItemToTrigger",gN,_e,u1),c(Xt,4,"name",fN,_e,m1),g1=c(Xt,20,"#highlightedIndex",mN,dt,f1),an=g1.get,
|
|
5349
|
+
`}};Xt=A(wN),Mp=new WeakMap,d1=new WeakMap,c1=new WeakMap,p1=new WeakMap,h1=new WeakMap,u1=new WeakMap,m1=new WeakMap,f1=new WeakMap,dt=new WeakSet,Jf=new WeakMap,ln=new WeakMap,Jt=new WeakMap,v1=function(){return this.options.find(t=>t.value===this.value)},kN=function(){return this.options.findIndex(t=>t.value===this.value)},EN=function(){return o(this,dt,v1)?.label??""},Qf=new WeakMap,Zf=new WeakMap,tg=new WeakMap,eg=new WeakMap,og=new WeakMap,b1=function(t){this.value=t.value,this.dispatchEvent(aU({value:t.value,option:t})),o(this,Jt).close(),p(this,dt,x1).call(this)},Op=function(t,e){let s=this.options.length,l=t+e;for(;l>=0&&l<s;){if(!this.options[l].disabled)return l;l+=e}return t},x1=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},rg=new WeakMap,c(Xt,4,"options",yN,_e,d1),c(Xt,4,"value",xN,_e,c1),c(Xt,4,"placeholder",bN,_e,p1),c(Xt,4,"disabled",vN,_e,h1),c(Xt,4,"alignItemToTrigger",gN,_e,u1),c(Xt,4,"name",fN,_e,m1),g1=c(Xt,20,"#highlightedIndex",mN,dt,f1),an=g1.get,qs=g1.set,T(Xt,_e),v(_e,"tagName","dui-select"),v(_e,"formAssociated",!0),v(_e,"styles",[w,lU,dU]);var pU=k`
|
|
5350
5350
|
.Trigger {
|
|
5351
5351
|
height: var(--component-height-md);
|
|
5352
5352
|
gap: var(--space-2);
|
|
@@ -5486,13 +5486,13 @@ label, legend, caption, figcaption, th, td {
|
|
|
5486
5486
|
margin: 0;
|
|
5487
5487
|
padding: 0;
|
|
5488
5488
|
}
|
|
5489
|
-
`,CN,$N,sg,y1,
|
|
5489
|
+
`,CN,$N,sg,y1,Lr=class extends($N=x,CN=[u({reflect:!0})],$N){constructor(){super(...arguments);a(this,y1,n(sg,8,this,"horizontal")),n(sg,11,this)}render(){return f`
|
|
5490
5490
|
<div
|
|
5491
5491
|
part="root"
|
|
5492
5492
|
role="separator"
|
|
5493
5493
|
aria-orientation="${this.orientation}"
|
|
5494
5494
|
></div>
|
|
5495
|
-
`}};sg=A($N),y1=new WeakMap,c(sg,4,"orientation",CN,
|
|
5495
|
+
`}};sg=A($N),y1=new WeakMap,c(sg,4,"orientation",CN,Lr,y1),T(sg,Lr),v(Lr,"tagName","dui-separator"),v(Lr,"styles",[w,hU]);var uU=k`
|
|
5496
5496
|
:host {
|
|
5497
5497
|
--separator-margin: 0;
|
|
5498
5498
|
}
|
|
@@ -5515,14 +5515,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
5515
5515
|
margin-left: var(--separator-margin);
|
|
5516
5516
|
margin-right: var(--separator-margin);
|
|
5517
5517
|
}
|
|
5518
|
-
`,Ul=class extends
|
|
5518
|
+
`,Ul=class extends Lr{static styles=[...Lr.styles,uU]};customElements.define(Ul.tagName,Ul);var zr=Symbol("dui-sidebar");var M1=M("open-change",{bubbles:!0,composed:!0}),mU=b`
|
|
5519
5519
|
:host {
|
|
5520
5520
|
display: flex;
|
|
5521
5521
|
width: 100%;
|
|
5522
5522
|
height: 100%;
|
|
5523
5523
|
min-height: inherit;
|
|
5524
5524
|
}
|
|
5525
|
-
`,TN,SN,AN,_N,RN,IN,LN,zN,ON,MN,Ot,w1,k1,E1,C1,$1,T1,S1,NN,z1,yt,A1,_1,O1,ig,R1,I1,Np,ng,
|
|
5525
|
+
`,TN,SN,AN,_N,RN,IN,LN,zN,ON,MN,Ot,w1,k1,E1,C1,$1,T1,S1,NN,z1,yt,A1,_1,O1,ig,R1,I1,Np,ng,js,dn,cn,ag,Dp,Hp,dg,cg,L1,lg,He=class extends(MN=x,ON=[u({type:Boolean})],zN=[u({type:Boolean,attribute:"default-open"})],LN=[u({reflect:!0})],IN=[u({reflect:!0})],RN=[u({reflect:!0})],_N=[C()],AN=[C()],SN=[C()],TN=[lt({context:zr}),C()],MN){constructor(){super(...arguments);a(this,yt);a(this,w1,n(Ot,8,this)),n(Ot,11,this);a(this,k1,n(Ot,12,this,!0)),n(Ot,15,this);a(this,E1,n(Ot,16,this,"left")),n(Ot,19,this);a(this,C1,n(Ot,20,this,"sidebar")),n(Ot,23,this);a(this,$1,n(Ot,24,this,"offcanvas")),n(Ot,27,this);a(this,T1,n(Ot,28,this,!0)),n(Ot,31,this);a(this,A1,n(Ot,32,this,!1)),n(Ot,35,this);a(this,R1,n(Ot,36,this,!1)),n(Ot,39,this);a(this,js);a(this,dn);a(this,cn);a(this,Dp,t=>{o(this,yt,Np)?h(this,yt,t,ig):(this.open===void 0&&h(this,yt,t,z1),this.dispatchEvent(M1({open:t})))});a(this,Hp,()=>{o(this,yt,Np)?h(this,yt,!o(this,yt,O1),ig):o(this,Dp).call(this,!o(this,yt,ag))});a(this,dg,t=>{h(this,yt,!t.matches,ng),o(this,yt,Np)||h(this,yt,!1,ig)});a(this,cg,t=>{t.key==="b"&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),o(this,Hp).call(this))});a(this,L1,n(Ot,40,this,p(this,yt,lg).call(this))),n(Ot,43,this)}connectedCallback(){super.connectedCallback(),this.collapsible==="always"?h(this,yt,!0,ng):(this.open===void 0&&h(this,yt,this.defaultOpen,z1),h(this,js,matchMedia("(min-width: 768px)")),h(this,yt,!o(this,js).matches,ng),h(this,dn,o(this,dg).bind(this)),o(this,js).addEventListener("change",o(this,dn))),h(this,cn,o(this,cg).bind(this)),document.addEventListener("keydown",o(this,cn)),this._ctx=p(this,yt,lg).call(this)}disconnectedCallback(){super.disconnectedCallback(),o(this,js)&&o(this,dn)&&o(this,js).removeEventListener("change",o(this,dn)),o(this,cn)&&document.removeEventListener("keydown",o(this,cn))}willUpdate(){this._ctx=p(this,yt,lg).call(this)}render(){return f`<slot></slot>`}};Ot=A(MN),w1=new WeakMap,k1=new WeakMap,E1=new WeakMap,C1=new WeakMap,$1=new WeakMap,T1=new WeakMap,yt=new WeakSet,A1=new WeakMap,R1=new WeakMap,js=new WeakMap,dn=new WeakMap,cn=new WeakMap,ag=function(){return this.open??o(this,yt,NN)},Dp=new WeakMap,Hp=new WeakMap,dg=new WeakMap,cg=new WeakMap,L1=new WeakMap,lg=function(){return{state:o(this,yt,ag)?"expanded":"collapsed",open:o(this,yt,ag),openMobile:o(this,yt,O1),isMobile:o(this,yt,Np),side:this.side,variant:this.variant,collapsible:this.collapsible,setOpen:o(this,Dp),toggleSidebar:o(this,Hp)}},c(Ot,4,"open",ON,He,w1),c(Ot,4,"defaultOpen",zN,He,k1),c(Ot,4,"side",LN,He,E1),c(Ot,4,"variant",IN,He,C1),c(Ot,4,"collapsible",RN,He,$1),S1=c(Ot,20,"#internalOpen",_N,yt,T1),NN=S1.get,z1=S1.set,_1=c(Ot,20,"#openMobile",AN,yt,A1),O1=_1.get,ig=_1.set,I1=c(Ot,20,"#isMobile",SN,yt,R1),Np=I1.get,ng=I1.set,c(Ot,4,"_ctx",TN,He,L1),T(Ot,He),v(He,"tagName","dui-sidebar-provider"),v(He,"styles",[w,mU]);var fU=b`
|
|
5526
5526
|
:host {
|
|
5527
5527
|
display: block;
|
|
5528
5528
|
flex-shrink: 0;
|
|
@@ -5607,7 +5607,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5607
5607
|
.MobilePanel[data-ending-style] {
|
|
5608
5608
|
transform: translateX(var(--mobile-end-x));
|
|
5609
5609
|
}
|
|
5610
|
-
`,DN,HN,BN,FN,
|
|
5610
|
+
`,DN,HN,BN,FN,Or,N1,D1,pg,P1,St,H1,B1,U1,q1,F1,V1,hg,j1,pn,VN,PN,K1,ug,mg,us=class extends(FN=x,BN=[C()],HN=[C()],DN=[C()],FN){constructor(){super(...arguments);a(this,St);a(this,N1,n(Or,8,this,!1)),n(Or,11,this);a(this,H1,n(Or,12,this,!1)),n(Or,15,this);a(this,F1,n(Or,16,this,!1)),n(Or,19,this);a(this,pn,new q(this,{context:zr,subscribe:!0}));a(this,ug,()=>{o(this,pn).value?.setOpen(!1)});a(this,mg,t=>{t.key==="Escape"&&(t.preventDefault(),o(this,pn).value?.setOpen(!1))})}willUpdate(){let t=o(this,pn).value;t&&(this.dataset.state=t.state,this.dataset.side=t.side,this.dataset.variant=t.variant,this.dataset.collapsible=t.collapsible,t.isMobile&&(t.openMobile&&!o(this,St,pg)?p(this,St,VN).call(this):!t.openMobile&&o(this,St,pg)&&!o(this,St,hg)&&p(this,St,PN).call(this)))}render(){let t=o(this,pn).value;if(!t)return f``;let s=t.side==="left"?"-100%":"100%";return t.isMobile?o(this,St,pg)?f`
|
|
5611
5611
|
<div
|
|
5612
5612
|
class="Backdrop"
|
|
5613
5613
|
part="backdrop"
|
|
@@ -5639,12 +5639,12 @@ label, legend, caption, figcaption, th, td {
|
|
|
5639
5639
|
<slot></slot>
|
|
5640
5640
|
</div>
|
|
5641
5641
|
</div>
|
|
5642
|
-
`}};
|
|
5642
|
+
`}};Or=A(FN),N1=new WeakMap,St=new WeakSet,H1=new WeakMap,F1=new WeakMap,pn=new WeakMap,VN=async function(){h(this,St,!0,P1),h(this,St,!0,q1),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,St,!1,q1)},PN=function(){h(this,St,!0,j1);let t=this.shadowRoot?.querySelector(".MobilePanel");if(!t){p(this,St,K1).call(this);return}let e=!1,s=()=>{e||(e=!0,t.removeEventListener("transitionend",l),clearTimeout(d),p(this,St,K1).call(this))},l=()=>{s()};t.addEventListener("transitionend",l);let d=setTimeout(s,250)},K1=function(){h(this,St,!1,j1),h(this,St,!1,P1)},ug=new WeakMap,mg=new WeakMap,D1=c(Or,20,"#mounted",BN,St,N1),pg=D1.get,P1=D1.set,B1=c(Or,20,"#startingStyle",HN,St,H1),U1=B1.get,q1=B1.set,V1=c(Or,20,"#endingStyle",DN,St,F1),hg=V1.get,j1=V1.set,T(Or,us),v(us,"tagName","dui-sidebar"),v(us,"styles",[w,fU]);var gU=b`
|
|
5643
5643
|
:host {
|
|
5644
5644
|
display: inline-block;
|
|
5645
5645
|
cursor: pointer;
|
|
5646
5646
|
}
|
|
5647
|
-
`,ql=class extends x{static tagName="dui-sidebar-trigger";static styles=[w,gU];#t=new q(this,{context:
|
|
5647
|
+
`,ql=class extends x{static tagName="dui-sidebar-trigger";static styles=[w,gU];#t=new q(this,{context:zr,subscribe:!0});connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#o)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.#e),this.removeEventListener("keydown",this.#o)}#e=()=>{this.#t.value?.toggleSidebar()};#o=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),this.#t.value?.toggleSidebar())};willUpdate(){let r=this.#t.value;if(r){let t=r.isMobile?r.openMobile:r.open;this.setAttribute("aria-expanded",String(t))}}render(){return f`<slot></slot>`}};var vU=b`
|
|
5648
5648
|
:host {
|
|
5649
5649
|
display: flex;
|
|
5650
5650
|
flex-direction: column;
|
|
@@ -5688,7 +5688,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5688
5688
|
:host([data-icon-collapsed]) {
|
|
5689
5689
|
opacity: 0;
|
|
5690
5690
|
}
|
|
5691
|
-
`,Gl=class extends x{static tagName="dui-sidebar-group-label";static styles=[w,wU];#t=new q(this,{context:
|
|
5691
|
+
`,Gl=class extends x{static tagName="dui-sidebar-group-label";static styles=[w,wU];#t=new q(this,{context:zr,subscribe:!0});get#e(){let r=this.#t.value;return r?.collapsible==="icon"&&r?.state==="collapsed"}updated(){this.#e?this.setAttribute("data-icon-collapsed",""):this.removeAttribute("data-icon-collapsed")}render(){return f`<slot></slot>`}};var kU=b`
|
|
5692
5692
|
.Menu {
|
|
5693
5693
|
display: flex;
|
|
5694
5694
|
flex-direction: column;
|
|
@@ -5762,7 +5762,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
5762
5762
|
:host([disabled]) .Button {
|
|
5763
5763
|
pointer-events: none;
|
|
5764
5764
|
}
|
|
5765
|
-
`,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,fg,zo,J1,gg,YN,GN,Q1,go=class extends(WN=x,KN=[u({type:Boolean,reflect:!0})],jN=[u({type:Boolean,reflect:!0})],qN=[u()],UN=[u()],WN){constructor(){super(...arguments);a(this,zo);a(this,W1,n(fo,8,this,!1)),n(fo,11,this);a(this,Y1,n(fo,12,this,!1)),n(fo,15,this);a(this,G1,n(fo,16,this,"")),n(fo,19,this);a(this,X1,n(fo,20,this)),n(fo,23,this);a(this,fg,new q(this,{context:
|
|
5765
|
+
`,UN,qN,jN,KN,WN,fo,W1,Y1,G1,X1,fg,zo,J1,gg,YN,GN,Q1,go=class extends(WN=x,KN=[u({type:Boolean,reflect:!0})],jN=[u({type:Boolean,reflect:!0})],qN=[u()],UN=[u()],WN){constructor(){super(...arguments);a(this,zo);a(this,W1,n(fo,8,this,!1)),n(fo,11,this);a(this,Y1,n(fo,12,this,!1)),n(fo,15,this);a(this,G1,n(fo,16,this,"")),n(fo,19,this);a(this,X1,n(fo,20,this)),n(fo,23,this);a(this,fg,new q(this,{context:zr,subscribe:!0}));a(this,gg,t=>{if(this.disabled){t.preventDefault();return}this.href&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)&&(t.preventDefault(),this.dispatchEvent(new CustomEvent("spa-navigate",{detail:{href:this.href},bubbles:!0,composed:!0})))})}render(){return o(this,zo,J1)&&this.tooltip?f`
|
|
5766
5766
|
<dui-tooltip>
|
|
5767
5767
|
<dui-tooltip-trigger>
|
|
5768
5768
|
${p(this,zo,Q1).call(this)}
|
|
@@ -6387,7 +6387,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6387
6387
|
from { transform: rotate(0deg); }
|
|
6388
6388
|
to { transform: rotate(360deg); }
|
|
6389
6389
|
}
|
|
6390
|
-
`,cD,pD,kg,h$,Eg,hD,
|
|
6390
|
+
`,cD,pD,kg,h$,Eg,hD,Mr=class extends(pD=x,cD=[u({reflect:!0})],pD){constructor(){super(...arguments);a(this,Eg);a(this,h$,n(kg,8,this,"")),n(kg,11,this)}render(){return f`${p(this,Eg,hD).call(this)}`}};kg=A(pD),h$=new WeakMap,Eg=new WeakSet,hD=function(){switch(this.variant){case"lucide-loader":return UU;case"lucide-loader-circle":return qU;default:return PU}},c(kg,4,"variant",cD,Mr,h$),T(kg,Mr),v(Mr,"tagName","dui-spinner"),v(Mr,"styles",[w,jU]);var KU=k`
|
|
6391
6391
|
:host {
|
|
6392
6392
|
--spinner-size: var(--component-height-xxs);
|
|
6393
6393
|
--spinner-color: currentColor;
|
|
@@ -6409,7 +6409,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6409
6409
|
animation-duration: 3s;
|
|
6410
6410
|
}
|
|
6411
6411
|
}
|
|
6412
|
-
`,bd=class extends
|
|
6412
|
+
`,bd=class extends Mr{static styles=[...Mr.styles,KU]};customElements.define(bd.tagName,bd);var Cg=M("dui-action",{bubbles:!0,composed:!0}),WU=b`
|
|
6413
6413
|
:host {
|
|
6414
6414
|
display: inline-block;
|
|
6415
6415
|
}
|
|
@@ -6468,7 +6468,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6468
6468
|
.Popup[data-ending-style] {
|
|
6469
6469
|
opacity: 0;
|
|
6470
6470
|
}
|
|
6471
|
-
`],uD,mD,fD,gD,vD,bD,xD,pe,u$,m$,f$,g$,v$,b$,x$,hn,
|
|
6471
|
+
`],uD,mD,fD,gD,vD,bD,xD,pe,u$,m$,f$,g$,v$,b$,x$,hn,Ks,Qt,Vp,Vt,y$,$g,Tg,Sg,Ag,_g,Rg,yD,to=class extends(xD=x,bD=[u({reflect:!0})],vD=[u({reflect:!0})],gD=[u({reflect:!0})],fD=[u({attribute:"popup-min-width"})],mD=[u({type:Boolean,reflect:!0})],uD=[C()],xD){constructor(){super(...arguments);a(this,Qt);a(this,u$,n(pe,8,this,"")),n(pe,11,this);a(this,m$,n(pe,12,this,"")),n(pe,15,this);a(this,f$,n(pe,16,this,"")),n(pe,19,this);a(this,g$,n(pe,20,this,"var(--space-28)")),n(pe,23,this);a(this,v$,n(pe,24,this,!1)),n(pe,27,this);a(this,b$,n(pe,28,this,-1)),n(pe,31,this);a(this,Vp,`split-menu-${crypto.randomUUID().slice(0,8)}`);a(this,Vt,new Te(this,{getAnchor:()=>this.shadowRoot?.querySelector(".Root"),matchWidth:!1,styles:GU,contentContainer:".Menu",contentSelector:"dui-menu-item",onOpen:()=>{h(this,Qt,-1,Ks)},onClose:()=>{h(this,Qt,-1,Ks)},renderPopup:t=>f`
|
|
6472
6472
|
<div
|
|
6473
6473
|
class="Popup"
|
|
6474
6474
|
style="${this.popupMinWidth?`min-width:${this.popupMinWidth}`:""}"
|
|
@@ -6483,7 +6483,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6483
6483
|
@mousemove="${o(this,Rg)}"
|
|
6484
6484
|
></div>
|
|
6485
6485
|
</div>
|
|
6486
|
-
`}));a(this,$g,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Cg({}))});a(this,Tg,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Cg({})))});a(this,Sg,t=>{t.stopPropagation(),!this.disabled&&(o(this,Vt).isOpen?o(this,Vt).close():o(this,Vt).open())});a(this,Ag,t=>{if(this.disabled)return;let e=o(this,Qt,y$);switch(t.key){case"Enter":case" ":{if(o(this,Vt).isOpen&&o(this,Qt,hn)>=0){t.preventDefault();let s=e[o(this,Qt,hn)];s&&!s.disabled&&(s.click(),o(this,Vt).close())}else o(this,Vt).isOpen||(t.preventDefault(),o(this,Vt).open());break}case"ArrowDown":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Qt,s,
|
|
6486
|
+
`}));a(this,$g,t=>{t.stopPropagation(),!this.disabled&&this.dispatchEvent(Cg({}))});a(this,Tg,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.dispatchEvent(Cg({})))});a(this,Sg,t=>{t.stopPropagation(),!this.disabled&&(o(this,Vt).isOpen?o(this,Vt).close():o(this,Vt).open())});a(this,Ag,t=>{if(this.disabled)return;let e=o(this,Qt,y$);switch(t.key){case"Enter":case" ":{if(o(this,Vt).isOpen&&o(this,Qt,hn)>=0){t.preventDefault();let s=e[o(this,Qt,hn)];s&&!s.disabled&&(s.click(),o(this,Vt).close())}else o(this,Vt).isOpen||(t.preventDefault(),o(this,Vt).open());break}case"ArrowDown":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)+1;for(;s<e.length&&e[s]?.disabled;)s++;s<e.length&&h(this,Qt,s,Ks)}break}case"ArrowUp":{if(t.preventDefault(),!o(this,Vt).isOpen)o(this,Vt).open();else{let s=o(this,Qt,hn)-1;for(;s>=0&&e[s]?.disabled;)s--;s>=0&&h(this,Qt,s,Ks)}break}case"Home":{if(o(this,Vt).isOpen){t.preventDefault();let s=e.findIndex(l=>!l.disabled);s>=0&&h(this,Qt,s,Ks)}break}case"End":{if(o(this,Vt).isOpen){t.preventDefault();for(let s=e.length-1;s>=0;s--)if(!e[s]?.disabled){h(this,Qt,s,Ks);break}}break}case"Escape":{o(this,Vt).isOpen&&(t.preventDefault(),o(this,Vt).close(),p(this,Qt,yD).call(this));break}case"Tab":{o(this,Vt).isOpen&&o(this,Vt).close();break}}});a(this,_g,t=>{let e=t.composedPath().find(s=>s instanceof HTMLElement&&s.matches(Xe.tagName));e&&!e.disabled&&o(this,Vt).close()});a(this,Rg,()=>{o(this,Qt,hn)>=0&&h(this,Qt,-1,Ks)})}updated(){let t=o(this,Qt,y$);for(let e=0;e<t.length;e++)e===o(this,Qt,hn)?t[e].setAttribute("data-highlighted",""):t[e].removeAttribute("data-highlighted")}render(){return f`
|
|
6487
6487
|
<div class="Root" part="root">
|
|
6488
6488
|
<button
|
|
6489
6489
|
class="Action"
|
|
@@ -6519,7 +6519,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6519
6519
|
</slot>
|
|
6520
6520
|
</button>
|
|
6521
6521
|
</div>
|
|
6522
|
-
`}};pe=A(xD),u$=new WeakMap,m$=new WeakMap,f$=new WeakMap,g$=new WeakMap,v$=new WeakMap,b$=new WeakMap,Qt=new WeakSet,Vp=new WeakMap,Vt=new WeakMap,y$=function(){return[...(o(this,Vt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},$g=new WeakMap,Tg=new WeakMap,Sg=new WeakMap,Ag=new WeakMap,_g=new WeakMap,Rg=new WeakMap,yD=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},c(pe,4,"variant",bD,to,u$),c(pe,4,"appearance",vD,to,m$),c(pe,4,"size",gD,to,f$),c(pe,4,"popupMinWidth",fD,to,g$),c(pe,4,"disabled",mD,to,v$),x$=c(pe,20,"#highlightedIndex",uD,Qt,b$),hn=x$.get,
|
|
6522
|
+
`}};pe=A(xD),u$=new WeakMap,m$=new WeakMap,f$=new WeakMap,g$=new WeakMap,v$=new WeakMap,b$=new WeakMap,Qt=new WeakSet,Vp=new WeakMap,Vt=new WeakMap,y$=function(){return[...(o(this,Vt).renderRoot?.querySelector(".Menu")??this).querySelectorAll("dui-menu-item")]},$g=new WeakMap,Tg=new WeakMap,Sg=new WeakMap,Ag=new WeakMap,_g=new WeakMap,Rg=new WeakMap,yD=function(){this.shadowRoot?.querySelector(".Trigger")?.focus()},c(pe,4,"variant",bD,to,u$),c(pe,4,"appearance",vD,to,m$),c(pe,4,"size",gD,to,f$),c(pe,4,"popupMinWidth",fD,to,g$),c(pe,4,"disabled",mD,to,v$),x$=c(pe,20,"#highlightedIndex",uD,Qt,b$),hn=x$.get,Ks=x$.set,T(pe,to),v(to,"tagName","dui-split-button"),v(to,"styles",[w,WU,YU]);var XU=k`
|
|
6523
6523
|
/* =================================================================
|
|
6524
6524
|
* Reuses the button's two-axis variant system:
|
|
6525
6525
|
* variant → semantic intent (neutral, primary, danger)
|
|
@@ -6858,7 +6858,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6858
6858
|
[part="root"][data-orientation="vertical"] {
|
|
6859
6859
|
flex-direction: column;
|
|
6860
6860
|
}
|
|
6861
|
-
`,QU="DUI-SPLITTER-PANEL",ZU="DUI-SPLITTER-HANDLE";function w$(i){if(i.length===0)return[];let t=i.map(d=>d.defaultSize),e=t.reduce((d,m)=>d+(m??0),0),s=t.filter(d=>d===void 0).length,l;if(s===0)l=t.map(d=>d??0);else{let m=Math.max(0,100-e)/s;l=t.map(g=>g??m)}return Pp(l)}function Pp(i){let r=i.length;if(r===0)return[];let t=i.reduce((e,s)=>e+s,0);if(t<=0){let e=100/r;return i.map(()=>e)}return i.map(e=>e*100/t)}function H$(i,r){return r.has(i.id)?0:i.minSize}function tq(i,r,t,e,s,l){let d=[...i],m=t,g=e;if(m<0||g<0||m>=d.length||g>=d.length)return d;let E=H$(r[m],l),$=H$(r[g],l),y=d[m]+s,S=Math.min(r[m].maxSize,Math.max(E,y))-d[m],O=d[g]-S;return O<$?S=d[g]-$:O>r[g].maxSize&&(S=d[g]-r[g].maxSize),d[m]+=S,d[g]-=S,d}function un(i,r,t){if(i.length===0)return[];let s=i.map((l,d)=>t.has(r[d].id)?0:Math.min(r[d].maxSize,Math.max(r[d].minSize,l)));for(let l=0;l<10;l++){let m=100-s.reduce((_,S)=>_+S,0);if(Math.abs(m)<.001)break;let g=s.map((_,S)=>{if(t.has(r[S].id))return{i:S,slack:0};let O=m>0?r[S].maxSize-_:_-r[S].minSize;return{i:S,slack:O}}).filter(({slack:_})=>_>1e-4);if(g.length===0)break;let E=g.reduce((_,S)=>_+S.slack,0),$=Math.min(Math.abs(m),E),y=Math.sign(m);for(let{i:_,slack:S}of g)s[_]+=S/E*$*y}return s}var wD,kD,ED,CD,$D,TD,SD,AD,_D,RD,ID,LD,zD,nt,k$,E$,C$,$$,T$,S$,A$,_$,R$,Ig,eq,R,I$,L$,wd,Lg,Ed,Oo,At,
|
|
6861
|
+
`,QU="DUI-SPLITTER-PANEL",ZU="DUI-SPLITTER-HANDLE";function w$(i){if(i.length===0)return[];let t=i.map(d=>d.defaultSize),e=t.reduce((d,m)=>d+(m??0),0),s=t.filter(d=>d===void 0).length,l;if(s===0)l=t.map(d=>d??0);else{let m=Math.max(0,100-e)/s;l=t.map(g=>g??m)}return Pp(l)}function Pp(i){let r=i.length;if(r===0)return[];let t=i.reduce((e,s)=>e+s,0);if(t<=0){let e=100/r;return i.map(()=>e)}return i.map(e=>e*100/t)}function H$(i,r){return r.has(i.id)?0:i.minSize}function tq(i,r,t,e,s,l){let d=[...i],m=t,g=e;if(m<0||g<0||m>=d.length||g>=d.length)return d;let E=H$(r[m],l),$=H$(r[g],l),y=d[m]+s,S=Math.min(r[m].maxSize,Math.max(E,y))-d[m],O=d[g]-S;return O<$?S=d[g]-$:O>r[g].maxSize&&(S=d[g]-r[g].maxSize),d[m]+=S,d[g]-=S,d}function un(i,r,t){if(i.length===0)return[];let s=i.map((l,d)=>t.has(r[d].id)?0:Math.min(r[d].maxSize,Math.max(r[d].minSize,l)));for(let l=0;l<10;l++){let m=100-s.reduce((_,S)=>_+S,0);if(Math.abs(m)<.001)break;let g=s.map((_,S)=>{if(t.has(r[S].id))return{i:S,slack:0};let O=m>0?r[S].maxSize-_:_-r[S].minSize;return{i:S,slack:O}}).filter(({slack:_})=>_>1e-4);if(g.length===0)break;let E=g.reduce((_,S)=>_+S.slack,0),$=Math.min(Math.abs(m),E),y=Math.sign(m);for(let{i:_,slack:S}of g)s[_]+=S/E*$*y}return s}var wD,kD,ED,CD,$D,TD,SD,AD,_D,RD,ID,LD,zD,nt,k$,E$,C$,$$,T$,S$,A$,_$,R$,Ig,eq,R,I$,L$,wd,Lg,Ed,Oo,At,Ys,z$,O$,B$,F$,Qo,Zo,Cd,Og,ut,ms,gn,Mo,M$,N$,OD,V$,vo,Mg,Ng,$d,Dg,Hg,Bg,Fg,qp,vn,mn,Up,jp,Vg,P$,Ws,fn,U$,q$,MD,ND,DD,j$,Pg,Ug,D$,zg,Nr,HD,Td,kd,K$,W$,Y$,Kp,Re=class extends(zD=x,LD=[u({type:String,reflect:!0})],ID=[u({type:Array})],RD=[u({type:Array,attribute:"default-value"})],_D=[u({type:Boolean,reflect:!0})],AD=[u({type:Number,attribute:"keyboard-step"})],SD=[u({type:Number,attribute:"keyboard-step-large"})],TD=[u({type:String,attribute:"auto-save-id"})],$D=[vR("slot")],CD=[C()],ED=[C()],kD=[C()],wD=[lt({context:yd}),C()],zD){constructor(){super(...arguments);a(this,R);a(this,k$,n(nt,8,this,"horizontal")),n(nt,11,this);a(this,E$,n(nt,12,this)),n(nt,15,this);a(this,C$,n(nt,16,this,[])),n(nt,19,this);a(this,$$,n(nt,20,this,!1)),n(nt,23,this);a(this,T$,n(nt,24,this,10)),n(nt,27,this);a(this,S$,n(nt,28,this,25)),n(nt,31,this);a(this,A$,n(nt,32,this)),n(nt,35,this);a(this,_$,n(nt,36,this)),n(nt,39,this);a(this,I$,n(nt,40,this,[])),n(nt,43,this);a(this,Ed,!1);a(this,Oo,[]);a(this,At,new Set);a(this,Ys,new Map);a(this,z$,n(nt,44,this,!1)),n(nt,47,this);a(this,Qo,new Map);a(this,Zo,new Map);a(this,Cd,new WeakMap);a(this,Og,0);a(this,ut,[]);a(this,ms,new Map);a(this,gn,new Map);a(this,Mo,null);a(this,M$,n(nt,48,this)),n(nt,51,this);a(this,vo,null);a(this,Mg,t=>{o(this,Qo).set(t.id,t),p(this,R,kd).call(this)});a(this,Ng,t=>{o(this,Qo).delete(t),p(this,R,kd).call(this)});a(this,$d,t=>{let e=o(this,ut).indexOf(t);return e===-1?0:p(this,R,Nr).call(this)[e]??0});a(this,Dg,t=>{let e=o(this,Cd).get(t.el);return e||(e=`h${Cs(this,Og)._++}`,o(this,Cd).set(t.el,e)),o(this,Zo).set(e,t),p(this,R,kd).call(this),e});a(this,Hg,t=>{o(this,Zo).delete(t),p(this,R,kd).call(this)});a(this,Bg,(t,e)=>{let s=o(this,Zo).get(t);s&&(o(this,Zo).set(t,{...s,...e}),this.requestUpdate())});a(this,Fg,(t,e)=>{if(this.disabled)return;let s=o(this,Zo).get(t);if(!s||s.disabled)return;let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return;let m=this.getBoundingClientRect(),g=this.orientation==="horizontal",E=g?m.width:m.height;if(E<=0)return;let $=0;for(let _ of o(this,Zo).values()){let S=_.el.getBoundingClientRect();$+=g?S.width:S.height}let y=E-$;y<=0||(h(this,Mo,{handleId:t,startSizes:[...p(this,R,Nr).call(this)],startCoord:g?e.clientX:e.clientY,rootSize:y,pointerId:e.pointerId,active:!1}),window.addEventListener("pointermove",o(this,qp)),window.addEventListener("pointerup",o(this,vn)),window.addEventListener("pointercancel",o(this,vn)))});a(this,qp,t=>{let e=o(this,Mo);if(!e||t.pointerId!==e.pointerId)return;if(this.disabled){p(this,R,mn).call(this);return}let d=(this.orientation==="horizontal"?t.clientX:t.clientY)-e.startCoord;if(!e.active){if(Math.abs(d)<1)return;e.active=!0,h(this,R,!0,F$),h(this,R,e.handleId,V$)}let m=d/e.rootSize*100,g=p(this,R,P$).call(this,e.handleId,e.startSizes,m);g&&p(this,R,Ws).call(this,g)});a(this,vn,t=>{let e=o(this,Mo);!e||t.pointerId!==e.pointerId||p(this,R,mn).call(this)});a(this,jp,(t,e)=>{if(this.disabled)return;let s=o(this,Zo).get(t);if(!s||s.disabled||!Number.isFinite(e)||e===0)return;let l=[...p(this,R,Nr).call(this)],d=p(this,R,P$).call(this,t,l,e);d&&(p(this,R,Ws).call(this,d),p(this,R,U$).call(this,l))});a(this,Vg,t=>{if(this.disabled)return;let e=o(this,Zo).get(t);if(!e||e.disabled)return;let s=o(this,ms).get(t);if(!s)return;let l=o(this,ut).indexOf(s);if(l===-1||l>=o(this,Oo).length)return;let d=p(this,R,Nr).call(this),g=o(this,Oo)[l]-d[l];Math.abs(g)<.01||o(this,jp).call(this,t,g)});a(this,Pg,t=>o(this,At).has(t));a(this,Ug,t=>{let e=o(this,ms).get(t);if(!e)return null;let s=o(this,Qo).get(e);if(!s)return null;let l=o(this,$d).call(this,e);return{valueNow:Math.round(l),valueMin:s.minSize,valueMax:s.maxSize,controls:e}});a(this,D$,n(nt,52,this,p(this,R,zg).call(this))),n(nt,55,this);a(this,Td,!1);a(this,Kp,()=>{p(this,R,kd).call(this)})}getSizes(){return[...p(this,R,Nr).call(this)]}getPanelSize(t){return o(this,$d).call(this,t)}isPanelCollapsed(t){return o(this,At).has(t)}setSizes(t){if(o(this,ut).length===0)return;if(t.length!==o(this,ut).length){console.warn(`[dui-splitter] setSizes: expected ${o(this,ut).length} sizes, got ${t.length}`);return}let e=p(this,R,Up).call(this);if(!e)return;let s=t.map((d,m)=>o(this,At).has(e[m].id)?0:d),l=un(Pp(s),e,o(this,At));p(this,R,Ws).call(this,l)}resetSizes(){if(o(this,ut).length===0)return;let t=p(this,R,Up).call(this);if(!t)return;o(this,Mo)!==null&&p(this,R,mn).call(this);for(let l of[...o(this,At)])p(this,R,fn).call(this,l,!1);let e=o(this,Oo).length===t.length?[...o(this,Oo)]:w$(t),s=un(e,t,o(this,At));p(this,R,Ws).call(this,s)}collapsePanel(t){if(o(this,ut).length===0||o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1){console.warn(`[dui-splitter] collapsePanel: unknown panel id "${t}"`);return}let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=[...p(this,R,Nr).call(this)],d=l[e];if(d<=0){p(this,R,fn).call(this,t,!0,s[e].defaultSize??100/s.length),p(this,R,Ws).call(this,un(l,s,o(this,At)));return}let m=[...l];m[e]=0;let g=e+1,E=e-1,$=y=>s[y].maxSize-l[y];if(g<s.length&&$(g)>=d-1e-4)m[g]=l[g]+d;else if(E>=0&&$(E)>=d-1e-4)m[E]=l[E]+d;else{let y=s.map((S,O)=>({i:O,slack:O===e?0:Math.max(0,$(O))})).filter(S=>S.slack>1e-4),_=y.reduce((S,O)=>S+O.slack,0);if(_>0){let S=Math.min(d,_);for(let{i:O,slack:B}of y)m[O]=l[O]+B/_*S}}p(this,R,fn).call(this,t,!0,d),p(this,R,Ws).call(this,un(m,s,o(this,At)))}expandPanel(t){if(o(this,ut).length===0||!o(this,At).has(t))return;let e=o(this,ut).indexOf(t);if(e===-1)return;let s=p(this,R,Up).call(this);if(!s)return;o(this,Mo)!==null&&p(this,R,mn).call(this);let l=o(this,Ys).get(t)??s[e].defaultSize??100/s.length;p(this,R,fn).call(this,t,!1);let d=[...p(this,R,Nr).call(this)],m=[...d];m[e]=l;let g=e+1,E=e-1,$=_=>Math.max(0,d[_]-H$(s[_],o(this,At))),y=0;if(g<s.length&&$(g)>=l-1e-4)m[g]=d[g]-l,y=l;else if(E>=0&&$(E)>=l-1e-4)m[E]=d[E]-l,y=l;else{let _=s.map((B,j)=>({i:j,slack:j===e?0:$(j)})).filter(B=>B.slack>1e-4),S=_.reduce((B,j)=>B+j.slack,0),O=Math.min(l,S);for(let{i:B,slack:j}of _)m[B]=d[B]-j/S*O;y=O}y<l-1e-4&&(m[e]=y),p(this,R,Ws).call(this,un(m,s,o(this,At)))}connectedCallback(){super.connectedCallback(),this._ctx=p(this,R,zg).call(this)}willUpdate(t){t.has("disabled")&&this.disabled&&o(this,Mo)!==null&&p(this,R,mn).call(this),this._ctx=p(this,R,zg).call(this)}firstUpdated(){o(this,R,Ig)?.addEventListener("slotchange",o(this,Kp)),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),o(this,R,Ig)?.removeEventListener("slotchange",o(this,Kp)),o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null))}render(){return f`
|
|
6862
6862
|
<div
|
|
6863
6863
|
part="root"
|
|
6864
6864
|
data-orientation=${this.orientation}
|
|
@@ -6867,7 +6867,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6867
6867
|
>
|
|
6868
6868
|
<slot></slot>
|
|
6869
6869
|
</div>
|
|
6870
|
-
`}};nt=A(zD),k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,T$=new WeakMap,S$=new WeakMap,A$=new WeakMap,_$=new WeakMap,R=new WeakSet,I$=new WeakMap,Ed=new WeakMap,Oo=new WeakMap,At=new WeakMap,
|
|
6870
|
+
`}};nt=A(zD),k$=new WeakMap,E$=new WeakMap,C$=new WeakMap,$$=new WeakMap,T$=new WeakMap,S$=new WeakMap,A$=new WeakMap,_$=new WeakMap,R=new WeakSet,I$=new WeakMap,Ed=new WeakMap,Oo=new WeakMap,At=new WeakMap,Ys=new WeakMap,z$=new WeakMap,Qo=new WeakMap,Zo=new WeakMap,Cd=new WeakMap,Og=new WeakMap,ut=new WeakMap,ms=new WeakMap,gn=new WeakMap,Mo=new WeakMap,M$=new WeakMap,vo=new WeakMap,Mg=new WeakMap,Ng=new WeakMap,$d=new WeakMap,Dg=new WeakMap,Hg=new WeakMap,Bg=new WeakMap,Fg=new WeakMap,qp=new WeakMap,vn=new WeakMap,mn=function(){let t=o(this,Mo);if(!t)return;window.removeEventListener("pointermove",o(this,qp)),window.removeEventListener("pointerup",o(this,vn)),window.removeEventListener("pointercancel",o(this,vn));let e=t.active,s=t.startSizes;h(this,Mo,null),h(this,R,!1,F$),h(this,R,void 0,V$),e&&(p(this,R,U$).call(this,s),p(this,R,DD).call(this))},Up=function(){let t=o(this,ut).map(e=>o(this,Qo).get(e)).filter(e=>e!==void 0);return t.length!==o(this,ut).length?null:t},jp=new WeakMap,Vg=new WeakMap,P$=function(t,e,s){let l=o(this,ms).get(t),d=o(this,gn).get(t);if(!l||!d)return null;let m=o(this,ut).indexOf(l),g=o(this,ut).indexOf(d);if(m===-1||g===-1||e.length!==o(this,ut).length)return null;let E=o(this,ut).map($=>o(this,Qo).get($)).filter($=>$!==void 0);return E.length!==o(this,ut).length?null:tq(e,E,m,g,s,o(this,At))},Ws=function(t){if(o(this,At).size>0)for(let e=0;e<o(this,ut).length;e++){let s=o(this,ut)[e];o(this,At).has(s)&&(t[e]??0)>.01&&p(this,R,fn).call(this,s,!1)}this.value===void 0&&(h(this,R,t,Lg),p(this,R,ND).call(this)),this.dispatchEvent(G$([...t])),this.requestUpdate()},fn=function(t,e,s){o(this,At).has(t)!==e&&(e?(o(this,At).add(t),s!==void 0&&s>.01&&o(this,Ys).set(t,s)):(o(this,At).delete(t),o(this,Ys).delete(t)),this.dispatchEvent(X$({panelId:t,collapsed:e})),this.requestUpdate())},U$=function(t){if(o(this,ut).length===0)return;let e=p(this,R,Nr).call(this);for(let s=0;s<o(this,ut).length;s++){let l=o(this,ut)[s];if(o(this,At).has(l))continue;let d=o(this,Qo).get(l);if(!d?.collapsible||(e[s]??0)>=.01)continue;let m=t?.[s],g=m!==void 0&&m>.01?m:d.defaultSize??100/o(this,ut).length;p(this,R,fn).call(this,l,!0,g)}},q$=function(){if(!this.autoSaveId||this.value!==void 0||o(this,ut).length===0)return null;let t=[...o(this,ut)].sort().join("|");return`dui-splitter:${this.autoSaveId}:${t}`},MD=function(){let t=p(this,R,q$).call(this);if(!t)return null;try{let e=globalThis.localStorage?.getItem(t);if(!e)return null;let s=JSON.parse(e);if(Array.isArray(s)&&s.every(l=>typeof l=="number"&&Number.isFinite(l)))return{sizes:s,collapsed:[]};if(s&&typeof s=="object"&&Array.isArray(s.sizes)&&s.sizes.every(l=>typeof l=="number"&&Number.isFinite(l))&&Array.isArray(s.collapsed)&&s.collapsed.every(l=>typeof l=="string"))return{sizes:s.sizes,collapsed:s.collapsed}}catch{}return null},ND=function(){this.autoSaveId&&(o(this,vo)!==null&&clearTimeout(o(this,vo)),h(this,vo,setTimeout(()=>{h(this,vo,null),p(this,R,j$).call(this)},250)))},DD=function(){o(this,vo)!==null&&(clearTimeout(o(this,vo)),h(this,vo,null)),p(this,R,j$).call(this)},j$=function(){let t=p(this,R,q$).call(this);if(t)try{globalThis.localStorage?.setItem(t,JSON.stringify({sizes:o(this,R,wd),collapsed:[...o(this,At)]}))}catch{}},Pg=new WeakMap,Ug=new WeakMap,D$=new WeakMap,zg=function(){return{orientation:this.orientation,disabled:this.disabled,resizing:o(this,R,B$),draggingHandleId:o(this,R,OD),keyboardStep:this.keyboardStep,keyboardStepLarge:this.keyboardStepLarge,registerPanel:o(this,Mg),unregisterPanel:o(this,Ng),getPanelSize:o(this,$d),isPanelCollapsed:o(this,Pg),registerHandle:o(this,Dg),unregisterHandle:o(this,Hg),updateHandle:o(this,Bg),beginDrag:o(this,Fg),nudge:o(this,jp),resetHandle:o(this,Vg),getHandleAria:o(this,Ug)}},Nr=function(){return this.value!==void 0?p(this,R,HD).call(this,this.value):o(this,R,wd)},HD=function(t){if(t.length!==o(this,ut).length){let e=o(this,ut).length;if(e===0)return[];let s=100/e;return Array.from({length:e},()=>s)}return Pp(t)},Td=new WeakMap,kd=function(){o(this,Td)||(h(this,Td,!0),queueMicrotask(()=>{h(this,Td,!1),p(this,R,K$).call(this),p(this,R,W$).call(this),this.requestUpdate()}))},K$=function(){let t=o(this,R,Ig);if(!t){h(this,ut,[]),h(this,ms,new Map),h(this,gn,new Map);return}let e=t.assignedElements(),s=[],l=new Map,d=new Map,m=[],g;for(let E of e){let $=E.tagName;if($===QU){let y=E.panelId;if(y&&o(this,Qo).has(y)){s.push(y);for(let _ of m)d.set(_,y);m.length=0,g=y}}else if($===ZU){let y=o(this,Cd).get(E);y&&g&&(l.set(y,g),m.push(y))}}h(this,ut,s),h(this,ms,l),h(this,gn,d)},W$=function(){let t=o(this,ut).map(s=>o(this,Qo).get(s)).filter(s=>s!==void 0);if(t.length===0){h(this,R,[],Lg),h(this,Oo,[]);return}if(this.value!==void 0){h(this,Ed,!0),o(this,Oo).length!==t.length&&h(this,Oo,un(p(this,R,Nr).call(this),t,o(this,At))),p(this,R,Y$).call(this,t);return}let e;if(o(this,Ed))o(this,R,wd).length!==t.length?(p(this,R,Y$).call(this,t),e=w$(t)):e=[...o(this,R,wd)];else{let s=p(this,R,MD).call(this);if(s&&s.sizes.length===t.length){e=Pp(s.sizes);let l=new Set(t.map(d=>d.id));h(this,At,new Set(s.collapsed.filter(d=>l.has(d))));for(let d=0;d<t.length;d++)o(this,At).has(t[d].id)&&(e[d]=0)}else this.defaultValue.length===t.length?e=Pp(this.defaultValue):e=w$(t);h(this,Ed,!0)}h(this,R,un(e,t,o(this,At)),Lg),o(this,Oo).length!==t.length&&h(this,Oo,[...o(this,R,wd)])},Y$=function(t){let e=new Set(t.map(s=>s.id));for(let s of[...o(this,At)])e.has(s)||o(this,At).delete(s);for(let s of[...o(this,Ys).keys()])e.has(s)||o(this,Ys).delete(s)},Kp=new WeakMap,c(nt,4,"orientation",LD,Re,k$),c(nt,4,"value",ID,Re,E$),c(nt,4,"defaultValue",RD,Re,C$),c(nt,4,"disabled",_D,Re,$$),c(nt,4,"keyboardStep",AD,Re,T$),c(nt,4,"keyboardStepLarge",SD,Re,S$),c(nt,4,"autoSaveId",TD,Re,A$),R$=c(nt,20,"#slot",$D,R,_$),Ig=R$.get,eq=R$.set,L$=c(nt,20,"#internalSizes",CD,R,I$),wd=L$.get,Lg=L$.set,O$=c(nt,20,"#resizing",ED,R,z$),B$=O$.get,F$=O$.set,N$=c(nt,20,"#draggingHandleId",kD,R,M$),OD=N$.get,V$=N$.set,c(nt,4,"_ctx",wD,Re,D$),T(nt,Re),v(Re,"tagName","dui-splitter"),v(Re,"styles",[w,JU]);var oq=b`
|
|
6871
6871
|
:host {
|
|
6872
6872
|
display: block;
|
|
6873
6873
|
flex: 0 0 auto;
|
|
@@ -6917,7 +6917,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6917
6917
|
box-sizing: border-box;
|
|
6918
6918
|
outline: none;
|
|
6919
6919
|
}
|
|
6920
|
-
`,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,xo,pT,ft,dT,cT,hT,uT,
|
|
6920
|
+
`,WD,YD,GD,XD,JD,bo,iT,nT,aT,lT,xo,pT,ft,dT,cT,hT,uT,Gs,qg,jg,Kg,Wg,Yg,Gg,tr=class extends(JD=x,XD=[u({type:Boolean,reflect:!0})],GD=[Nt({context:yd,subscribe:!0})],YD=[C()],WD=[C()],JD){constructor(){super(...arguments);a(this,ft);a(this,iT,n(bo,8,this,!1)),n(bo,11,this);a(this,nT,n(bo,12,this)),n(bo,15,this);a(this,aT,n(bo,16,this)),n(bo,19,this);a(this,dT,n(bo,20,this,!1)),n(bo,23,this);a(this,qg,t=>{p(this,ft,Gs).call(this)||!o(this,ft,xo)||!this._ctx||t.button!==void 0&&t.button!==0||this._ctx.beginDrag(o(this,ft,xo),t)});a(this,jg,t=>{p(this,ft,Gs).call(this)||t.button===0&&t.preventDefault()});a(this,Kg,t=>{p(this,ft,Gs).call(this)||!o(this,ft,xo)||!this._ctx||(t.preventDefault(),this._ctx.resetHandle(o(this,ft,xo)))});a(this,Wg,t=>{let e=this._ctx,s=o(this,ft,xo);if(p(this,ft,Gs).call(this)||!s||!e)return;let l=e.orientation==="horizontal",d=l?"ArrowLeft":"ArrowUp",m=l?"ArrowRight":"ArrowDown",g=t.shiftKey?e.keyboardStepLarge:e.keyboardStep;switch(t.key){case d:t.preventDefault(),e.nudge(s,-g);break;case m:t.preventDefault(),e.nudge(s,g);break;case"Home":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMin-E.valueNow));break}case"End":{let E=e.getHandleAria(s);E&&(t.preventDefault(),e.nudge(s,E.valueMax-E.valueNow));break}}});a(this,Yg,()=>{h(this,ft,!0,uT)});a(this,Gg,()=>{h(this,ft,!1,uT)})}connectedCallback(){super.connectedCallback(),this._ctx&&h(this,ft,this._ctx.registerHandle({el:this,disabled:p(this,ft,Gs).call(this)}),pT)}disconnectedCallback(){super.disconnectedCallback(),o(this,ft,xo)&&this._ctx&&(this._ctx.unregisterHandle(o(this,ft,xo)),h(this,ft,void 0,pT))}willUpdate(t){t.has("disabled")&&o(this,ft,xo)&&this._ctx&&this._ctx.updateHandle(o(this,ft,xo),{disabled:p(this,ft,Gs).call(this)})}render(){let t=this._ctx,e=t?.orientation??"horizontal",s=p(this,ft,Gs).call(this),l=o(this,ft,xo)&&t?t.getHandleAria(o(this,ft,xo)):null,d=t?.draggingHandleId!==void 0&&t.draggingHandleId===o(this,ft,xo),m=e==="horizontal"?"vertical":"horizontal";return this.isConnected&&(this.dataset.orientation=e,this.toggleAttribute("data-disabled",s),this.toggleAttribute("data-dragging",d),this.toggleAttribute("data-focused",o(this,ft,hT))),f`
|
|
6921
6921
|
<div
|
|
6922
6922
|
part="root"
|
|
6923
6923
|
role="separator"
|
|
@@ -6937,7 +6937,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
6937
6937
|
@focus=${o(this,Yg)}
|
|
6938
6938
|
@blur=${o(this,Gg)}
|
|
6939
6939
|
></div>
|
|
6940
|
-
`}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,
|
|
6940
|
+
`}};bo=A(JD),iT=new WeakMap,nT=new WeakMap,aT=new WeakMap,ft=new WeakSet,dT=new WeakMap,Gs=function(){return this.disabled||(this._ctx?.disabled??!1)},qg=new WeakMap,jg=new WeakMap,Kg=new WeakMap,Wg=new WeakMap,Yg=new WeakMap,Gg=new WeakMap,c(bo,4,"disabled",XD,tr,iT),c(bo,4,"_ctx",GD,tr,nT),lT=c(bo,20,"#handleId",YD,ft,aT),xo=lT.get,pT=lT.set,cT=c(bo,20,"#focused",WD,ft,dT),hT=cT.get,uT=cT.set,T(bo,tr),v(tr,"tagName","dui-splitter-handle"),v(tr,"styles",[w,rq]);var Sd=class extends Re{};customElements.define(Sd.tagName,Sd);var Ad=class extends Be{};customElements.define(Ad.tagName,Ad);var sq=k`
|
|
6941
6941
|
/* Host = interaction target. Cross-axis size depends on orientation. */
|
|
6942
6942
|
:host([data-orientation="horizontal"]) {
|
|
6943
6943
|
width: var(--splitter-handle-size, var(--space-2));
|
|
@@ -7004,7 +7004,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7004
7004
|
background: var(--border);
|
|
7005
7005
|
opacity: 0.5;
|
|
7006
7006
|
}
|
|
7007
|
-
`,_d=class extends
|
|
7007
|
+
`,_d=class extends tr{static styles=[...tr.styles,sq]};customElements.define(_d.tagName,_d);var zT=M("value-change",{bubbles:!0,composed:!0}),Yp=M("value-committed",{bubbles:!0,composed:!0}),iq=b`
|
|
7008
7008
|
:host {
|
|
7009
7009
|
display: block;
|
|
7010
7010
|
}
|
|
@@ -7057,7 +7057,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7057
7057
|
width: 0;
|
|
7058
7058
|
height: 0;
|
|
7059
7059
|
}
|
|
7060
|
-
`,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,xT,yT,wT,kT,ET,CT,$T,pH,AT,X,TT,ST,_T,RT,
|
|
7060
|
+
`,QD,ZD,tH,eH,oH,rH,sH,iH,nH,aH,lH,dH,cH,at,mT,fT,gT,vT,bT,xT,yT,wT,kT,ET,CT,$T,pH,AT,X,TT,ST,_T,RT,Dr,hH,uH,Rd,IT,Id,Gp,Xp,LT,Xg,Jg,Qg,Zg,tv,se=class extends(cH=x,dH=[u({type:Number})],lH=[u({type:Number,attribute:"default-value"})],aH=[u({type:Number})],nH=[u({type:Number})],iH=[u({type:Number})],sH=[u({type:Number,attribute:"large-step"})],rH=[u({type:Boolean,reflect:!0})],oH=[u({type:Boolean,reflect:!0,attribute:"read-only"})],eH=[u({type:Boolean})],tH=[u()],ZD=[C()],QD=[C()],cH){constructor(){super(...arguments);a(this,X);a(this,mT,n(at,8,this)),n(at,11,this);a(this,fT,n(at,12,this)),n(at,15,this);a(this,gT,n(at,16,this)),n(at,19,this);a(this,vT,n(at,20,this)),n(at,23,this);a(this,bT,n(at,24,this,1)),n(at,27,this);a(this,xT,n(at,28,this,10)),n(at,31,this);a(this,yT,n(at,32,this,!1)),n(at,35,this);a(this,wT,n(at,36,this,!1)),n(at,39,this);a(this,kT,n(at,40,this,!1)),n(at,43,this);a(this,ET,n(at,44,this)),n(at,47,this);a(this,CT,n(at,48,this)),n(at,51,this);a(this,TT,n(at,52,this,"")),n(at,55,this);a(this,Gp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Dr)??this.min??0;p(this,X,Id).call(this,e+t)});a(this,Xp,t=>{if(this.disabled||this.readOnly)return;let e=o(this,X,Dr)??this.max??0;p(this,X,Id).call(this,e-t)});a(this,Xg,t=>{h(this,X,t.target.value,RT)});a(this,Jg,()=>{p(this,X,LT).call(this)});a(this,Qg,t=>{switch(t.key){case"ArrowUp":t.preventDefault(),o(this,Gp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"ArrowDown":t.preventDefault(),o(this,Xp).call(this,t.shiftKey?this.largeStep:this.step),p(this,X,Rd).call(this);break;case"Home":this.min!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.min));break;case"End":this.max!==void 0&&(t.preventDefault(),p(this,X,Id).call(this,this.max));break;case"Enter":p(this,X,LT).call(this);break}});a(this,Zg,()=>{o(this,Xp).call(this,this.step);let t=o(this,X,Dr);t!==void 0&&this.dispatchEvent(Yp({value:t}))});a(this,tv,()=>{o(this,Gp).call(this,this.step);let t=o(this,X,Dr);t!==void 0&&this.dispatchEvent(Yp({value:t}))})}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,X,p(this,X,IT).call(this,this.defaultValue),AT),p(this,X,Rd).call(this)}willUpdate(){p(this,X,Rd).call(this)}render(){let t=o(this,X,Dr);return f`
|
|
7061
7061
|
<div
|
|
7062
7062
|
part="root"
|
|
7063
7063
|
?data-disabled="${this.disabled}"
|
|
@@ -7076,7 +7076,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7076
7076
|
part="input"
|
|
7077
7077
|
type="text"
|
|
7078
7078
|
inputmode="decimal"
|
|
7079
|
-
.value="${
|
|
7079
|
+
.value="${cr(o(this,X,_T))}"
|
|
7080
7080
|
?disabled="${this.disabled}"
|
|
7081
7081
|
?readonly="${this.readOnly}"
|
|
7082
7082
|
?required="${this.required}"
|
|
@@ -7100,7 +7100,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7100
7100
|
.value="${String(t??"")}"
|
|
7101
7101
|
/>`:L}
|
|
7102
7102
|
</div>
|
|
7103
|
-
`}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,xT=new WeakMap,yT=new WeakMap,wT=new WeakMap,kT=new WeakMap,ET=new WeakMap,CT=new WeakMap,X=new WeakSet,TT=new WeakMap,
|
|
7103
|
+
`}};at=A(cH),mT=new WeakMap,fT=new WeakMap,gT=new WeakMap,vT=new WeakMap,bT=new WeakMap,xT=new WeakMap,yT=new WeakMap,wT=new WeakMap,kT=new WeakMap,ET=new WeakMap,CT=new WeakMap,X=new WeakSet,TT=new WeakMap,Dr=function(){return this.value??o(this,X,pH)},hH=function(){let t=o(this,X,Dr);return t===void 0?!0:this.min===void 0||t>this.min},uH=function(){let t=o(this,X,Dr);return t===void 0?!0:this.max===void 0||t<this.max},Rd=function(){let t=o(this,X,Dr);h(this,X,t!==void 0?String(t):"",RT)},IT=function(t){return this.min!==void 0&&(t=Math.max(this.min,t)),this.max!==void 0&&(t=Math.min(this.max,t)),t},Id=function(t){let e=p(this,X,IT).call(this,t);this.value===void 0&&h(this,X,e,AT),this.dispatchEvent(zT({value:e}))},Gp=new WeakMap,Xp=new WeakMap,LT=function(){let t=parseFloat(o(this,X,_T));Number.isNaN(t)?p(this,X,Rd).call(this):p(this,X,Id).call(this,t);let e=o(this,X,Dr);e!==void 0&&this.dispatchEvent(Yp({value:e}))},Xg=new WeakMap,Jg=new WeakMap,Qg=new WeakMap,Zg=new WeakMap,tv=new WeakMap,c(at,4,"value",dH,se,mT),c(at,4,"defaultValue",lH,se,fT),c(at,4,"min",aH,se,gT),c(at,4,"max",nH,se,vT),c(at,4,"step",iH,se,bT),c(at,4,"largeStep",sH,se,xT),c(at,4,"disabled",rH,se,yT),c(at,4,"readOnly",oH,se,wT),c(at,4,"required",eH,se,kT),c(at,4,"name",tH,se,ET),$T=c(at,20,"#internalValue",ZD,X,CT),pH=$T.get,AT=$T.set,ST=c(at,20,"#inputText",QD,X,TT),_T=ST.get,RT=ST.set,T(at,se),v(se,"tagName","dui-stepper"),v(se,"shadowRootOptions",{...x.shadowRootOptions,delegatesFocus:!0}),v(se,"styles",[w,iq]);var nq=k`
|
|
7104
7104
|
[part="root"] {
|
|
7105
7105
|
border: var(--border-width-thin) solid var(--border);
|
|
7106
7106
|
border-radius: var(--radius-md);
|
|
@@ -7290,7 +7290,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7290
7290
|
[part="root"][data-checked] [part="thumb"] {
|
|
7291
7291
|
background: oklch(from var(--accent) 0.98 0.01 h);
|
|
7292
7292
|
}
|
|
7293
|
-
`,zd=class extends be{static styles=[...be.styles,lq]};customElements.define(zd.tagName,zd);var
|
|
7293
|
+
`,zd=class extends be{static styles=[...be.styles,lq]};customElements.define(zd.tagName,zd);var Xs=Symbol("dui-tabs");var eS=M("value-change",{bubbles:!0,composed:!0}),dq=b`
|
|
7294
7294
|
:host {
|
|
7295
7295
|
display: block;
|
|
7296
7296
|
}
|
|
@@ -7307,11 +7307,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7307
7307
|
:host([controls="footer"]) [part="root"] {
|
|
7308
7308
|
flex-direction: column-reverse;
|
|
7309
7309
|
}
|
|
7310
|
-
`,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,zH,tS,
|
|
7310
|
+
`,TH,SH,AH,_H,RH,IH,LH,he,WT,YT,GT,XT,JT,QT,zH,tS,er,sv,iv,ZT,rv,eo=class extends(LH=x,IH=[u()],RH=[u({attribute:"default-value"})],_H=[u({reflect:!0})],AH=[u({reflect:!0})],SH=[C()],TH=[lt({context:Xs}),C()],LH){constructor(){super(...arguments);a(this,er);a(this,WT,n(he,8,this)),n(he,11,this);a(this,YT,n(he,12,this)),n(he,15,this);a(this,GT,n(he,16,this,"horizontal")),n(he,19,this);a(this,XT,n(he,20,this,"header")),n(he,23,this);a(this,JT,n(he,24,this)),n(he,27,this);a(this,sv,()=>this.value??o(this,er,zH));a(this,iv,t=>{this.value===void 0&&h(this,er,t,tS),this.dispatchEvent(eS(t))});a(this,ZT,n(he,28,this,p(this,er,rv).call(this))),n(he,31,this)}connectedCallback(){super.connectedCallback(),this.value===void 0&&this.defaultValue!==void 0&&h(this,er,this.defaultValue,tS),this._ctx=p(this,er,rv).call(this)}willUpdate(){this._ctx=p(this,er,rv).call(this)}render(){return f`
|
|
7311
7311
|
<div part="root" data-orientation=${this.orientation}>
|
|
7312
7312
|
<slot></slot>
|
|
7313
7313
|
</div>
|
|
7314
|
-
`}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,
|
|
7314
|
+
`}};he=A(LH),WT=new WeakMap,YT=new WeakMap,GT=new WeakMap,XT=new WeakMap,JT=new WeakMap,er=new WeakSet,sv=new WeakMap,iv=new WeakMap,ZT=new WeakMap,rv=function(){return{value:o(this,sv).call(this),orientation:this.orientation,select:o(this,iv)}},c(he,4,"value",IH,eo,WT),c(he,4,"defaultValue",RH,eo,YT),c(he,4,"orientation",_H,eo,GT),c(he,4,"controls",AH,eo,XT),QT=c(he,20,"#internalValue",SH,er,JT),zH=QT.get,tS=QT.set,c(he,4,"_ctx",TH,eo,ZT),T(he,eo),v(eo,"tagName","dui-tabs"),v(eo,"styles",[w,dq]);var cq=b`
|
|
7315
7315
|
:host {
|
|
7316
7316
|
display: block;
|
|
7317
7317
|
}
|
|
@@ -7325,11 +7325,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7325
7325
|
[part="list"][data-orientation="vertical"] {
|
|
7326
7326
|
flex-direction: column;
|
|
7327
7327
|
}
|
|
7328
|
-
`,OH,MH,nv,oS,Od,Md,av,
|
|
7328
|
+
`,OH,MH,nv,oS,Od,Md,av,Hr=class extends(MH=x,OH=[Nt({context:Xs,subscribe:!0})],MH){constructor(){super(...arguments);a(this,Md);a(this,oS,n(nv,8,this)),n(nv,11,this);a(this,Od)}connectedCallback(){super.connectedCallback(),h(this,Od,new ResizeObserver(()=>{p(this,Md,av).call(this)}))}disconnectedCallback(){super.disconnectedCallback(),o(this,Od)?.disconnect()}firstUpdated(){let t=this.shadowRoot?.querySelector("[part='list']");t&&o(this,Od)?.observe(t),p(this,Md,av).call(this)}updated(){p(this,Md,av).call(this)}render(){let t=this._ctx?.orientation??"horizontal";return f`
|
|
7329
7329
|
<div part="list" role="tablist" data-orientation=${t}>
|
|
7330
7330
|
<slot></slot>
|
|
7331
7331
|
</div>
|
|
7332
|
-
`}};nv=A(MH),oS=new WeakMap,Od=new WeakMap,Md=new WeakSet,av=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(d=>d.tagName==="DUI-TAB"&&d.getAttribute("value")===this._ctx?.value);if(l){let d=t.getBoundingClientRect(),m=l.getBoundingClientRect(),g=m.left-d.left,E=m.width;t.style.setProperty("--active-tab-left",`${g}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},c(nv,4,"_ctx",OH,
|
|
7332
|
+
`}};nv=A(MH),oS=new WeakMap,Od=new WeakMap,Md=new WeakSet,av=function(){let t=this.shadowRoot?.querySelector("[part='list']");if(!t)return;let l=(this.shadowRoot?.querySelector("slot")?.assignedElements()??[]).find(d=>d.tagName==="DUI-TAB"&&d.getAttribute("value")===this._ctx?.value);if(l){let d=t.getBoundingClientRect(),m=l.getBoundingClientRect(),g=m.left-d.left,E=m.width;t.style.setProperty("--active-tab-left",`${g}px`),t.style.setProperty("--active-tab-width",`${E}px`)}},c(nv,4,"_ctx",OH,Hr,oS),T(nv,Hr),v(Hr,"tagName","dui-tabs-list"),v(Hr,"styles",[w,cq]);var pq=b`
|
|
7333
7333
|
:host {
|
|
7334
7334
|
display: block;
|
|
7335
7335
|
}
|
|
@@ -7353,7 +7353,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7353
7353
|
[part="tab"][data-disabled] {
|
|
7354
7354
|
cursor: not-allowed;
|
|
7355
7355
|
}
|
|
7356
|
-
`,NH,DH,HH,BH,
|
|
7356
|
+
`,NH,DH,HH,BH,Br,rS,sS,iS,lv,FH,dv,cv,No=class extends(BH=x,HH=[u()],DH=[u({type:Boolean,reflect:!0})],NH=[Nt({context:Xs,subscribe:!0})],BH){constructor(){super(...arguments);a(this,lv);a(this,rS,n(Br,8,this,"")),n(Br,11,this);a(this,sS,n(Br,12,this,!1)),n(Br,15,this);a(this,iS,n(Br,16,this)),n(Br,19,this);a(this,dv,()=>{this.disabled||this._ctx?.select(this.value)});a(this,cv,t=>{this.disabled||(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._ctx?.select(this.value))})}render(){let t=o(this,lv,FH);return f`
|
|
7357
7357
|
<button
|
|
7358
7358
|
part="tab"
|
|
7359
7359
|
role="tab"
|
|
@@ -7367,7 +7367,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7367
7367
|
>
|
|
7368
7368
|
<slot></slot>
|
|
7369
7369
|
</button>
|
|
7370
|
-
`}};
|
|
7370
|
+
`}};Br=A(BH),rS=new WeakMap,sS=new WeakMap,iS=new WeakMap,lv=new WeakSet,FH=function(){return this._ctx?.value===this.value},dv=new WeakMap,cv=new WeakMap,c(Br,4,"value",HH,No,rS),c(Br,4,"disabled",DH,No,sS),c(Br,4,"_ctx",NH,No,iS),T(Br,No),v(No,"tagName","dui-tab"),v(No,"styles",[w,pq]);var hq=b`
|
|
7371
7371
|
:host {
|
|
7372
7372
|
display: block;
|
|
7373
7373
|
}
|
|
@@ -7384,11 +7384,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7384
7384
|
position: relative;
|
|
7385
7385
|
outline: 0;
|
|
7386
7386
|
}
|
|
7387
|
-
`,VH,PH,UH,qH,
|
|
7387
|
+
`,VH,PH,UH,qH,Fr,nS,aS,lS,th,dS,Do=class extends(qH=x,UH=[u()],PH=[u({type:Boolean,attribute:"keep-mounted"})],VH=[Nt({context:Xs,subscribe:!0})],qH){constructor(){super(...arguments);a(this,th);a(this,nS,n(Fr,8,this,"")),n(Fr,11,this);a(this,aS,n(Fr,12,this,!1)),n(Fr,15,this);a(this,lS,n(Fr,16,this)),n(Fr,19,this)}willUpdate(){o(this,th,dS)?this.removeAttribute("data-hidden"):this.setAttribute("data-hidden","")}render(){let t=o(this,th,dS);return f`
|
|
7388
7388
|
<div class="wrapper" ?hidden=${!t}>
|
|
7389
7389
|
${t||this.keepMounted?f`<div part="panel" role="tabpanel" tabindex="0"><slot></slot></div>`:L}
|
|
7390
7390
|
</div>
|
|
7391
|
-
`}};
|
|
7391
|
+
`}};Fr=A(qH),nS=new WeakMap,aS=new WeakMap,lS=new WeakMap,th=new WeakSet,dS=function(){return this._ctx?.value===this.value},c(Fr,4,"value",UH,Do,nS),c(Fr,4,"keepMounted",PH,Do,aS),c(Fr,4,"_ctx",VH,Do,lS),T(Fr,Do),v(Do,"tagName","dui-tabs-panel"),v(Do,"styles",[w,hq]);var uq=b`
|
|
7392
7392
|
:host {
|
|
7393
7393
|
display: block;
|
|
7394
7394
|
position: absolute;
|
|
@@ -7462,7 +7462,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7462
7462
|
padding-inline: 0;
|
|
7463
7463
|
padding-block: var(--space-1);
|
|
7464
7464
|
}
|
|
7465
|
-
`,Fd=class extends
|
|
7465
|
+
`,Fd=class extends Hr{static styles=[...Hr.styles,vq]};customElements.define(Fd.tagName,Fd);var bq=k`
|
|
7466
7466
|
:host {
|
|
7467
7467
|
--tabs-panel-padding: var(--space-3);
|
|
7468
7468
|
--tabs-panel-border-width: var(--border-width-thin);
|
|
@@ -7538,7 +7538,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7538
7538
|
<textarea
|
|
7539
7539
|
part="textarea"
|
|
7540
7540
|
style=${t}
|
|
7541
|
-
.value=${
|
|
7541
|
+
.value=${cr(this.value)}
|
|
7542
7542
|
placeholder=${this.placeholder}
|
|
7543
7543
|
rows=${this.rows??""}
|
|
7544
7544
|
?disabled=${this.disabled}
|
|
@@ -7679,14 +7679,14 @@ label, legend, caption, figcaption, th, td {
|
|
|
7679
7679
|
:host([data-position^="top-"]) [part="list"] {
|
|
7680
7680
|
flex-direction: column-reverse;
|
|
7681
7681
|
}
|
|
7682
|
-
`,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,kt,ES,CS,$S,TS,SS,AS,_S,RS,we,
|
|
7682
|
+
`,iB,nB,aB,lB,dB,cB,pB,hB,uB,mB,fB,kt,ES,CS,$S,TS,SS,AS,_S,RS,we,Js,Qs,kn,En,IS,LS,fv,gB,Z,Cn,$n,qd,jd,yn,wn,eh,oh,rh,sh,ih,xv,yv,vB,OS,nh,ah,bB,gv,vv,wv,zS,bv,xB,ee=class extends(fB=x,mB=[u({type:String,reflect:!0})],uB=[u({type:Number,attribute:"max-visible"})],hB=[u({type:String,attribute:"label"})],pB=[u({type:Boolean,attribute:"expand-on-hover"})],cB=[u({type:Boolean,reflect:!0})],dB=[u({type:String,attribute:"swipe-directions"})],lB=[u({type:Number,attribute:"swipe-threshold"})],aB=[u({type:String})],nB=[C()],iB=[lt({context:mv}),C()],fB){constructor(){super(...arguments);a(this,Z);a(this,ES,n(kt,8,this,"bottom-right")),n(kt,11,this);a(this,CS,n(kt,12,this,3)),n(kt,15,this);a(this,$S,n(kt,16,this,"Notifications")),n(kt,19,this);a(this,TS,n(kt,20,this,!0)),n(kt,23,this);a(this,SS,n(kt,24,this)),n(kt,27,this);a(this,AS,n(kt,28,this)),n(kt,31,this);a(this,_S,n(kt,32,this,50)),n(kt,35,this);a(this,RS,n(kt,36,this,"Alt+T")),n(kt,39,this);a(this,we,new Map);a(this,Js,new WeakMap);a(this,Qs);a(this,kn);a(this,En);a(this,IS,n(kt,40,this,!1)),n(kt,43,this);a(this,Cn,!1);a(this,$n,!1);a(this,qd,!1);a(this,jd,!1);a(this,eh,()=>{h(this,Cn,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,oh,()=>{h(this,Cn,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,rh,()=>{h(this,$n,!0),p(this,Z,yn).call(this),p(this,Z,wn).call(this)});a(this,sh,t=>{let e=t.relatedTarget;e&&this.contains(e)||(h(this,$n,!1),p(this,Z,yn).call(this),p(this,Z,wn).call(this))});a(this,ih,()=>{h(this,qd,document.hidden),p(this,Z,yn).call(this)});a(this,xv,(t,e)=>{o(this,we).has(t)||(o(this,we).set(t,e),p(this,Z,bB).call(this,e),o(this,Qs)?.observe(e),o(this,Js).set(e,e.getBoundingClientRect().height),p(this,Z,gv).call(this),p(this,Z,vv).call(this))});a(this,yv,t=>{let e=o(this,we).get(t);if(!e)return;let s=document.activeElement,l=s instanceof HTMLElement&&(s===e||e.contains(s)),d=l?[...o(this,we).values()].indexOf(e):-1;if(o(this,Qs)?.unobserve(e),o(this,Js).delete(e),o(this,we).delete(t),p(this,Z,gv).call(this),p(this,Z,vv).call(this),l){let m=[...o(this,we).values()];m.length>0?(m[d]??m[d-1]??m[0]).focus():o(this,kn)&&p(this,Z,OS).call(this)}});a(this,nh,t=>{o(this,En)&&Eq(t,o(this,En))&&o(this,we).size!==0&&(t.preventDefault(),p(this,Z,vB).call(this))});a(this,ah,t=>{let e=document.activeElement;if(!(e instanceof HTMLElement))return;let s=[...o(this,we).values()],l=s.findIndex(m=>m===e||m.contains(e));if(l===-1)return;let d=this.position.startsWith("top-");switch(t.key){case"ArrowDown":{t.preventDefault();let m=d?l-1:l+1;s[m]?.focus();break}case"ArrowUp":{t.preventDefault();let m=d?l+1:l-1;s[m]?.focus();break}case"Home":{t.preventDefault(),(d?s[s.length-1]:s[0])?.focus();break}case"End":{t.preventDefault(),(d?s[0]:s[s.length-1])?.focus();break}case"Escape":{t.preventDefault(),p(this,Z,OS).call(this);break}}});a(this,wv,(t,e)=>{let s=o(this,we).get(t);s&&(this.dispatchEvent(MS({id:t,reason:e})),s.dispatchEvent(new CustomEvent("dui-toast-request-dismiss",{detail:{reason:e}})))});a(this,zS,n(kt,44,this,p(this,Z,bv).call(this))),n(kt,47,this)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-label",this.label),this.setAttribute("data-position",this.position),h(this,En,sB(this.hotkey)),this.addEventListener("pointerenter",o(this,eh)),this.addEventListener("pointerleave",o(this,oh)),this.addEventListener("focusin",o(this,rh)),this.addEventListener("focusout",o(this,sh)),this.addEventListener("keydown",o(this,ah)),document.addEventListener("visibilitychange",o(this,ih)),document.addEventListener("keydown",o(this,nh)),h(this,qd,document.hidden),p(this,Z,yn).call(this),p(this,Z,wn).call(this),h(this,Qs,new ResizeObserver(t=>{let e=!1;for(let s of t){let l=s.target,d=s.contentRect.height;o(this,Js).get(l)!==d&&(o(this,Js).set(l,d),e=!0)}e&&p(this,Z,vv).call(this)})),this._ctx=p(this,Z,bv).call(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("pointerenter",o(this,eh)),this.removeEventListener("pointerleave",o(this,oh)),this.removeEventListener("focusin",o(this,rh)),this.removeEventListener("focusout",o(this,sh)),this.removeEventListener("keydown",o(this,ah)),document.removeEventListener("visibilitychange",o(this,ih)),document.removeEventListener("keydown",o(this,nh)),o(this,Qs)?.disconnect(),h(this,Qs,void 0)}willUpdate(t){if(t.has("position")){this.setAttribute("data-position",this.position);for(let e of o(this,we).values())e.setAttribute("data-position",this.position)}t.has("label")&&this.setAttribute("aria-label",this.label),t.has("maxVisible")&&p(this,Z,gv).call(this),(t.has("expanded")||t.has("expandOnHover"))&&p(this,Z,wn).call(this),t.has("hotkey")&&h(this,En,sB(this.hotkey)),this._ctx=p(this,Z,bv).call(this)}render(){return f`
|
|
7683
7683
|
<div
|
|
7684
7684
|
part="list"
|
|
7685
7685
|
?data-paused=${o(this,Z,fv)}
|
|
7686
7686
|
>
|
|
7687
7687
|
<slot></slot>
|
|
7688
7688
|
</div>
|
|
7689
|
-
`}};kt=A(fB),ES=new WeakMap,CS=new WeakMap,$S=new WeakMap,TS=new WeakMap,SS=new WeakMap,AS=new WeakMap,_S=new WeakMap,RS=new WeakMap,we=new WeakMap,
|
|
7689
|
+
`}};kt=A(fB),ES=new WeakMap,CS=new WeakMap,$S=new WeakMap,TS=new WeakMap,SS=new WeakMap,AS=new WeakMap,_S=new WeakMap,RS=new WeakMap,we=new WeakMap,Js=new WeakMap,Qs=new WeakMap,kn=new WeakMap,En=new WeakMap,IS=new WeakMap,Z=new WeakSet,Cn=new WeakMap,$n=new WeakMap,qd=new WeakMap,jd=new WeakMap,yn=function(){let t=o(this,Cn)||o(this,$n)||o(this,qd);t!==o(this,Z,fv)&&h(this,Z,t,gB)},wn=function(){let t;if(this.expanded!==void 0?t=this.expanded:this.expandOnHover?t=o(this,Cn)||o(this,$n):t=!1,t!==o(this,jd)){h(this,jd,t),t?this.setAttribute("data-expanded",""):this.removeAttribute("data-expanded");for(let e of o(this,we).values())t?e.setAttribute("data-region-expanded",""):e.removeAttribute("data-region-expanded")}},eh=new WeakMap,oh=new WeakMap,rh=new WeakMap,sh=new WeakMap,ih=new WeakMap,xv=new WeakMap,yv=new WeakMap,vB=function(){let t=[...o(this,we).values()];if(t.length===0)return!1;let e=t[t.length-1],s=document.activeElement;return s instanceof HTMLElement&&!this.contains(s)&&s!==document.body&&h(this,kn,s),e.focus(),!0},OS=function(){let t=o(this,kn);h(this,kn,void 0),t&&t.isConnected?t.focus():document.activeElement instanceof HTMLElement&&this.contains(document.activeElement)&&document.activeElement.blur()},nh=new WeakMap,ah=new WeakMap,bB=function(t){t.setAttribute("data-position",this.position),o(this,jd)&&t.setAttribute("data-region-expanded","")},gv=function(){let t=[...o(this,we).values()],e=t.length;for(let l=0;l<e;l++){let d=e-1-l,m=t[l];m.style.setProperty("--toast-index",String(d)),m.style.setProperty("--toasts-total",String(e)),d===0?m.setAttribute("data-front",""):m.removeAttribute("data-front"),d>=this.maxVisible?m.setAttribute("data-overflow",""):m.removeAttribute("data-overflow")}let s=Math.max(0,e-this.maxVisible);this.style.setProperty("--toasts-overflow-count",String(s)),s>0?this.setAttribute("data-overflow-count",String(s)):this.removeAttribute("data-overflow-count")},vv=function(){let t=[...o(this,we).values()],e=0;for(let s=t.length-1;s>=0;s--){let l=t[s];l.style.setProperty("--toasts-before-height",`${e}px`);let d=o(this,Js).get(l)??0;l.style.setProperty("--toast-height",`${d}px`),e+=d}this.style.setProperty("--toasts-stack-height",`${e}px`)},wv=new WeakMap,zS=new WeakMap,bv=function(){return{position:this.position,maxVisible:this.maxVisible,paused:o(this,Z,fv),swipeDirections:p(this,Z,xB).call(this),swipeThreshold:this.swipeThreshold,registerToast:o(this,xv),unregisterToast:o(this,yv),dismiss:o(this,wv)}},xB=function(){let t=this.swipeDirections;if(t==="none")return[];if(t&&t.trim().length>0){let e=[];for(let s of t.split(",")){let l=s.trim();(l==="left"||l==="right"||l==="up"||l==="down")&&e.push(l)}return e}switch(this.position){case"top-right":case"bottom-right":return["right"];case"top-left":case"bottom-left":return["left"];case"top-center":return["up"];case"bottom-center":return["down"]}},c(kt,4,"position",mB,ee,ES),c(kt,4,"maxVisible",uB,ee,CS),c(kt,4,"label",hB,ee,$S),c(kt,4,"expandOnHover",pB,ee,TS),c(kt,4,"expanded",cB,ee,SS),c(kt,4,"swipeDirections",dB,ee,AS),c(kt,4,"swipeThreshold",lB,ee,_S),c(kt,4,"hotkey",aB,ee,RS),LS=c(kt,20,"#paused",nB,Z,IS),fv=LS.get,gB=LS.set,c(kt,4,"_ctx",iB,ee,zS),T(kt,ee),v(ee,"tagName","dui-toast-region"),v(ee,"styles",[w,Cq]);var kv=class{#t;#e;#o=-1;#n=0;#d=0;#c=0;#a=0;#f=0;#g=0;#l;#s=!1;#m=!1;#p;constructor(r,t){this.#t=r,this.#e=t}attach(){this.#t.addEventListener("pointerdown",this.#w),this.#t.addEventListener("pointermove",this.#x),this.#t.addEventListener("pointerup",this.#k),this.#t.addEventListener("pointercancel",this.#v),this.#t.addEventListener("click",this.#r,{capture:!0}),this.#t.addEventListener("dragstart",this.#b)}detach(){this.#t.removeEventListener("pointerdown",this.#w),this.#t.removeEventListener("pointermove",this.#x),this.#t.removeEventListener("pointerup",this.#k),this.#t.removeEventListener("pointercancel",this.#v),this.#t.removeEventListener("click",this.#r,{capture:!0}),this.#t.removeEventListener("dragstart",this.#b),this.#p!==void 0&&(clearTimeout(this.#p),this.#p=void 0)}#h(r){return this.#e.getDirections().includes(r)}#w=r=>{r.button!==0&&r.pointerType==="mouse"||this.#e.getDirections().length!==0&&(this.#C(r.target)||(this.#o=r.pointerId,this.#n=this.#a=r.clientX,this.#d=this.#f=r.clientY,this.#c=this.#g=r.timeStamp,this.#l=void 0,this.#s=!1))};#x=r=>{if(r.pointerId!==this.#o)return;let t=r.clientX-this.#n,e=r.clientY-this.#d;if(!this.#s){if(Math.hypot(t,e)<6)return;if(Math.abs(t)>=Math.abs(e)){let g=t>0?"right":"left";if(!this.#h(g)){this.#i();return}this.#l="x"}else{let g=e>0?"down":"up";if(!this.#h(g)){this.#i();return}this.#l="y"}this.#s=!0,this.#t.setAttribute("data-swipe","start");try{this.#t.setPointerCapture(r.pointerId)}catch{}}let s=this.#l==="x"?this.#y(t):0,l=this.#l==="y"?this.#E(e):0;this.#t.style.setProperty("--swipe-amount-x",`${s}px`),this.#t.style.setProperty("--swipe-amount-y",`${l}px`),this.#t.setAttribute("data-swipe","move"),this.#a=r.clientX,this.#f=r.clientY,this.#g=r.timeStamp};#k=r=>{if(r.pointerId!==this.#o||(this.#o=-1,!this.#s))return;let t=r.clientX-this.#n,e=r.clientY-this.#d,s=Math.max(r.timeStamp-this.#c,1),l=this.#l==="x"?Math.abs(t):Math.abs(e),d=l/s*1e3,m=this.#e.getThreshold(),g=l>=m||d>=600;this.#m=!0,queueMicrotask(()=>{this.#m=!1}),g?(this.#t.setAttribute("data-swipe","end"),this.#e.onDismiss("swipe")):(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0};#v=r=>{r.pointerId===this.#o&&(this.#o=-1,this.#s&&(this.#t.setAttribute("data-swipe","cancel"),this.#t.style.setProperty("--swipe-amount-x","0px"),this.#t.style.setProperty("--swipe-amount-y","0px"),this.#u()),this.#s=!1,this.#l=void 0)};#r=r=>{this.#m&&(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation())};#b=r=>{(this.#o!==-1||this.#s)&&r.preventDefault()};#i(){this.#o=-1,this.#s=!1,this.#l=void 0}#u(){this.#p!==void 0&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.#t.removeAttribute("data-swipe"),this.#t.style.removeProperty("--swipe-amount-x"),this.#t.style.removeProperty("--swipe-amount-y"),this.#p=void 0},350)}#y(r){let t=this.#h("left"),e=this.#h("right");return r<0&&!t||r>0&&!e?0:r}#E(r){let t=this.#h("up"),e=this.#h("down");return r<0&&!t||r>0&&!e?0:r}#C(r){return r instanceof Element?!!(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement||r.isContentEditable):!1}};var dh=M("open-change",{bubbles:!0,composed:!0}),Av=M("dismiss",{bubbles:!0,composed:!0}),$q=b`
|
|
7690
7690
|
:host {
|
|
7691
7691
|
display: block;
|
|
7692
7692
|
box-sizing: border-box;
|
|
@@ -7742,7 +7742,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7742
7742
|
[part="description"]:empty {
|
|
7743
7743
|
display: none;
|
|
7744
7744
|
}
|
|
7745
|
-
`,yB,wB,kB,EB,CB,$B,TB,SB,AB,_B,RB,IB,LB,zB,OB,tt,NS,DS,HS,BS,FS,VS,PS,US,qS,MB,Ev,z,jS,KS,fs,Cv,WS,YS,NB,oA,GS,XS,DB,$v,JS,QS,HB,BB,ZS,tA,FB,VB,Wd,ch,ph,
|
|
7745
|
+
`,yB,wB,kB,EB,CB,$B,TB,SB,AB,_B,RB,IB,LB,zB,OB,tt,NS,DS,HS,BS,FS,VS,PS,US,qS,MB,Ev,z,jS,KS,fs,Cv,WS,YS,NB,oA,GS,XS,DB,$v,JS,QS,HB,BB,ZS,tA,FB,VB,Wd,ch,ph,Vr,hh,Tn,vs,Pr,Yd,Zs,Ur,uh,rA,Tv,sA,Kd,Sv,PB,gs,iA,nA,aA,UB,qB,lh,mh,fh,gh,_v,Rv,Iv,eA,lA,re=class extends(OB=x,zB=[u({type:Boolean,reflect:!0})],LB=[u({type:Boolean,attribute:"default-open"})],IB=[u({type:Number})],RB=[u({type:String,reflect:!0})],_B=[u({type:String})],AB=[u({type:String,attribute:"toast-id",reflect:!0})],SB=[u({type:Boolean,reflect:!0})],TB=[C()],$B=[C()],CB=[C()],EB=[C()],kB=[C()],wB=[C()],yB=[lt({context:Ud}),C()],OB){constructor(){super(...arguments);a(this,z);a(this,NS,n(tt,8,this)),n(tt,11,this);a(this,DS,n(tt,12,this,!0)),n(tt,15,this);a(this,HS,n(tt,16,this,4e3)),n(tt,19,this);a(this,BS,n(tt,20,this,"default")),n(tt,23,this);a(this,FS,n(tt,24,this,"polite")),n(tt,27,this);a(this,VS,n(tt,28,this)),n(tt,31,this);a(this,PS,n(tt,32,this,!1)),n(tt,35,this);a(this,US,n(tt,36,this,!1)),n(tt,39,this);a(this,jS,n(tt,40,this,"closed")),n(tt,43,this);a(this,WS,n(tt,44,this,!1)),n(tt,47,this);a(this,GS,n(tt,48,this,!1)),n(tt,51,this);a(this,JS,n(tt,52,this,!1)),n(tt,55,this);a(this,ZS,n(tt,56,this,!1)),n(tt,59,this);a(this,Wd,crypto.randomUUID().slice(0,8));a(this,ch,`dui-toast-title-${o(this,Wd)}`);a(this,ph,`dui-toast-desc-${o(this,Wd)}`);a(this,Vr);a(this,hh,0);a(this,Tn,0);a(this,vs,!1);a(this,Pr);a(this,Yd,!1);a(this,Zs,!1);a(this,Ur,new q(this,{context:mv,subscribe:!0}));a(this,uh,new kv(this,{getDirections:()=>o(this,Ur).value?.swipeDirections??[],getThreshold:()=>o(this,Ur).value?.swipeThreshold??50,onDismiss:t=>p(this,z,gs).call(this,t)}));a(this,mh,t=>{t.stopPropagation(),p(this,z,gs).call(this,t.detail?.reason??"programmatic")});a(this,fh,t=>{if(t.key!=="Delete"&&t.key!=="Backspace")return;let e=t.target;e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable||(t.preventDefault(),p(this,z,gs).call(this,"keyboard")))});a(this,gh,t=>{let e=t.composedPath();for(let s of e){if(s===this)break;if(s instanceof Element&&s.hasAttribute("data-toast-dismiss")){let l=s.getAttribute("data-toast-dismiss-reason")??"close";p(this,z,gs).call(this,l);return}}});a(this,_v,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,BB)});a(this,Rv,t=>{let e=t.target;h(this,z,e.assignedNodes({flatten:!0}).length>0,VB)});a(this,Iv,t=>{p(this,z,gs).call(this,t)});a(this,eA,n(tt,60,this,p(this,z,lA).call(this))),n(tt,63,this)}connectedCallback(){super.connectedCallback(),this.open===void 0&&this.defaultOpen&&h(this,z,!0,Ev),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.addEventListener("dui-toast-request-dismiss",o(this,mh)),this.addEventListener("click",o(this,gh)),this.addEventListener("keydown",o(this,fh)),o(this,uh).attach()}disconnectedCallback(){super.disconnectedCallback(),p(this,z,lh).call(this),o(this,Pr)!==void 0&&(clearTimeout(o(this,Pr)),h(this,Pr,void 0)),p(this,z,Tv).call(this),this.removeEventListener("dui-toast-request-dismiss",o(this,mh)),this.removeEventListener("click",o(this,gh)),this.removeEventListener("keydown",o(this,fh)),o(this,uh).detach()}willUpdate(t){t.has("toastId")&&(this._itemCtx=p(this,z,lA).call(this)),this.setAttribute("data-state",o(this,z,fs))}updated(){let t=o(this,z,sA),e=o(this,Yd);if(h(this,Yd,t),o(this,z,fs)==="open"&&!o(this,Zs)&&o(this,Ur).value&&p(this,z,rA).call(this),!t&&e&&o(this,z,fs)==="open"){p(this,z,gs).call(this,"programmatic");return}if(t&&o(this,z,fs)==="closed"){p(this,z,PB).call(this);return}if(o(this,z,fs)==="open"&&!o(this,z,Sv)){let s=o(this,Ur).value?.paused??!1;s&&!o(this,vs)?p(this,z,UB).call(this):!s&&o(this,vs)&&p(this,z,qB).call(this)}}dismiss(t="programmatic"){p(this,z,gs).call(this,t)}resetTimer(){o(this,z,fs)==="open"&&(p(this,z,lh).call(this),p(this,z,nA).call(this))}render(){let t=this.priority==="assertive"?"alert":"status",e=this.priority;return f`
|
|
7746
7746
|
<div
|
|
7747
7747
|
part="root"
|
|
7748
7748
|
role=${t}
|
|
@@ -7772,11 +7772,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7772
7772
|
<slot name="close"></slot>
|
|
7773
7773
|
`}
|
|
7774
7774
|
</div>
|
|
7775
|
-
`}};tt=A(OB),NS=new WeakMap,DS=new WeakMap,HS=new WeakMap,BS=new WeakMap,FS=new WeakMap,VS=new WeakMap,PS=new WeakMap,US=new WeakMap,z=new WeakSet,jS=new WeakMap,WS=new WeakMap,GS=new WeakMap,JS=new WeakMap,ZS=new WeakMap,Wd=new WeakMap,ch=new WeakMap,ph=new WeakMap,
|
|
7775
|
+
`}};tt=A(OB),NS=new WeakMap,DS=new WeakMap,HS=new WeakMap,BS=new WeakMap,FS=new WeakMap,VS=new WeakMap,PS=new WeakMap,US=new WeakMap,z=new WeakSet,jS=new WeakMap,WS=new WeakMap,GS=new WeakMap,JS=new WeakMap,ZS=new WeakMap,Wd=new WeakMap,ch=new WeakMap,ph=new WeakMap,Vr=new WeakMap,hh=new WeakMap,Tn=new WeakMap,vs=new WeakMap,Pr=new WeakMap,Yd=new WeakMap,Zs=new WeakMap,Ur=new WeakMap,uh=new WeakMap,rA=function(){if(o(this,Zs))return;let t=o(this,Ur).value;t&&(t.registerToast(o(this,z,Kd),this),h(this,Zs,!0))},Tv=function(){o(this,Zs)&&(o(this,Ur).value?.unregisterToast(o(this,z,Kd)),h(this,Zs,!1))},sA=function(){return this.open??o(this,z,MB)},Kd=function(){return this.toastId??`dui-toast-${o(this,Wd)}`},Sv=function(){return this.type==="loading"||this.duration<=0},PB=async function(){p(this,z,rA).call(this),h(this,z,"open",Cv),h(this,z,!0,oA),h(this,z,!1,$v),this.requestUpdate(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(()=>t()))),h(this,z,!1,oA),this.dispatchEvent(dh({open:!0})),p(this,z,nA).call(this)},gs=function(t){if(o(this,z,fs)==="closed"){if(!o(this,z,sA))return;this.open===void 0&&h(this,z,!1,Ev),h(this,Yd,!1),p(this,z,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,z,Kd),reason:t}));return}if(o(this,z,fs)!=="open")return;p(this,z,lh).call(this),h(this,z,"closing",Cv),h(this,z,!0,$v),this.requestUpdate();let e=this.shadowRoot?.querySelector('[part="root"]');if(!e){p(this,z,iA).call(this,t);return}let s=!1,l=()=>{s||(s=!0,e.removeEventListener("transitionend",d),o(this,Pr)!==void 0&&(clearTimeout(o(this,Pr)),h(this,Pr,void 0)),p(this,z,iA).call(this,t))},d=m=>{m.propertyName==="opacity"&&l()};e.addEventListener("transitionend",d),h(this,Pr,setTimeout(l,400))},iA=function(t){this.isConnected&&(h(this,z,"closed",Cv),h(this,z,!1,$v),this.open===void 0&&h(this,z,!1,Ev),p(this,z,Tv).call(this),this.dispatchEvent(dh({open:!1})),this.dispatchEvent(Av({id:o(this,z,Kd),reason:t})))},nA=function(){if(o(this,z,Sv))return;if(h(this,Tn,this.duration),o(this,Ur).value?.paused??!1){h(this,vs,!0);return}p(this,z,aA).call(this)},aA=function(){p(this,z,lh).call(this),h(this,hh,performance.now()),h(this,vs,!1),h(this,Vr,setTimeout(()=>{p(this,z,gs).call(this,"auto")},o(this,Tn)))},UB=function(){if(o(this,Vr)===void 0)return;clearTimeout(o(this,Vr)),h(this,Vr,void 0);let t=performance.now()-o(this,hh);h(this,Tn,Math.max(0,o(this,Tn)-t)),h(this,vs,!0)},qB=function(){o(this,z,Sv)||p(this,z,aA).call(this)},lh=function(){o(this,Vr)!==void 0&&(clearTimeout(o(this,Vr)),h(this,Vr,void 0)),h(this,vs,!1)},mh=new WeakMap,fh=new WeakMap,gh=new WeakMap,_v=new WeakMap,Rv=new WeakMap,Iv=new WeakMap,eA=new WeakMap,lA=function(){return{id:o(this,z,Kd),dismiss:o(this,Iv)}},c(tt,4,"open",zB,re,NS),c(tt,4,"defaultOpen",LB,re,DS),c(tt,4,"duration",IB,re,HS),c(tt,4,"type",RB,re,BS),c(tt,4,"priority",_B,re,FS),c(tt,4,"toastId",AB,re,VS),c(tt,4,"headless",SB,re,PS),qS=c(tt,20,"#internalOpen",TB,z,US),MB=qS.get,Ev=qS.set,KS=c(tt,20,"#state",$B,z,jS),fs=KS.get,Cv=KS.set,YS=c(tt,20,"#startingStyle",CB,z,WS),NB=YS.get,oA=YS.set,XS=c(tt,20,"#endingStyle",EB,z,GS),DB=XS.get,$v=XS.set,QS=c(tt,20,"#hasTitle",kB,z,JS),HB=QS.get,BB=QS.set,tA=c(tt,20,"#hasDescription",wB,z,ZS),FB=tA.get,VB=tA.set,c(tt,4,"_itemCtx",yB,re,eA),T(tt,re),v(re,"tagName","dui-toast"),v(re,"styles",[w,$q,Tq]);var Sq=b`
|
|
7776
7776
|
:host {
|
|
7777
7777
|
display: contents;
|
|
7778
7778
|
}
|
|
7779
|
-
`,
|
|
7779
|
+
`,qr=class extends x{static tagName="dui-toast-action";static styles=[w,Sq];#t=new q(this,{context:Ud,subscribe:!0});#e=()=>{this.#t.value?.dismiss("action")};render(){return f`
|
|
7780
7780
|
<span part="action" @click=${this.#e}>
|
|
7781
7781
|
<slot></slot>
|
|
7782
7782
|
</span>
|
|
@@ -7784,11 +7784,11 @@ label, legend, caption, figcaption, th, td {
|
|
|
7784
7784
|
:host {
|
|
7785
7785
|
display: contents;
|
|
7786
7786
|
}
|
|
7787
|
-
`,
|
|
7787
|
+
`,jr=class extends x{static tagName="dui-toast-close";static styles=[w,Aq];#t=new q(this,{context:Ud,subscribe:!0});#e=()=>{this.#t.value?.dismiss("close")};render(){return f`
|
|
7788
7788
|
<span part="close" @click=${this.#e}>
|
|
7789
7789
|
<slot></slot>
|
|
7790
7790
|
</span>
|
|
7791
|
-
`}};var _q={position:"bottom-right",defaultDuration:4e3,maxVisible:3,closeButton:!1,expandOnHover:!0,target:"body"},Ho={..._q},
|
|
7791
|
+
`}};var _q={position:"bottom-right",defaultDuration:4e3,maxVisible:3,closeButton:!1,expandOnHover:!0,target:"body"},Ho={..._q},Kr,vh=new Map,Rq=1,WB=()=>`toast-${Rq++}`;function YB(){let i=[[ee.tagName,ee],[re.tagName,re],[qr.tagName,qr],[jr.tagName,jr]];for(let[r,t]of i)customElements.get(r)||customElements.define(r,t)}function Iq(i){if(typeof i!="string")return i;let r=document.querySelector(i);if(!r)throw new Error(`[dui-toast] target selector "${i}" did not match any element.`);return r}function Lq(){if(YB(),Ho.region&&Ho.region.isConnected)return Ho.region;if(Kr&&Kr.isConnected)return Kr;let i=document.createElement(ee.tagName);return i.position=Ho.position,i.maxVisible=Ho.maxVisible,i.expandOnHover=Ho.expandOnHover,i.setAttribute("data-auto-region",""),Iq(Ho.target).appendChild(i),Kr=i,i}function ti(i,r){for(let t of Array.from(i.children)){let e=t.getAttribute("slot");r===null?e===null&&t.remove():e===r&&t.remove()}}function jB(i,r,t){ti(i,r);let e=document.createElement("span");e.setAttribute("slot",r),typeof t=="string"?e.textContent=t:e.appendChild(t),i.appendChild(e)}function zq(i,r){ti(i,null),i.appendChild(r)}function Oq(i,r){if(ti(i,"action"),!r)return;let t=document.createElement(qr.tagName);t.setAttribute("slot","action");let e=document.createElement("button");e.type="button",e.textContent=r.label,r.onClick&&e.addEventListener("click",r.onClick),t.appendChild(e),i.appendChild(t)}function Mq(i,r){if(ti(i,"close"),!r)return;let t=document.createElement(jr.tagName);t.setAttribute("slot","close");let e=document.createElement("button");e.type="button",e.setAttribute("aria-label","Dismiss"),e.textContent="\xD7",t.appendChild(e),i.appendChild(t)}function KB(i,r,t){i.type=t.type??"default",i.priority=t.priority??"polite",t.duration!==void 0?i.duration=t.duration:t.type==="loading"?i.duration=0:i.duration=Ho.defaultDuration,typeof r=="string"?(jB(i,"title",r),t.description!==void 0?jB(i,"description",t.description):ti(i,"description"),ti(i,null)):(zq(i,r),ti(i,"title"),ti(i,"description")),Oq(i,t.action),Mq(i,t.closeButton??Ho.closeButton)}function or(i,r={}){YB();let t=r.id??WB(),e=vh.get(t);if(e&&e.isConnected)return KB(e,i,r),e.resetTimer(),t;let s=document.createElement(re.tagName);return s.toastId=t,KB(s,i,r),s.addEventListener("dismiss",()=>{vh.delete(t),queueMicrotask(()=>{s.parentElement&&s.parentElement.removeChild(s)})}),vh.set(t,s),Lq().appendChild(s),t}function Nq(i,r){return or(i,r??{})}var Dq=(i,r)=>or(i,{...r,type:"success"}),Hq=(i,r)=>or(i,{...r,type:"error"}),Bq=(i,r)=>or(i,{...r,type:"warning"}),Fq=(i,r)=>or(i,{...r,type:"info"}),Vq=(i,r)=>or(i,{...r,type:"loading"}),Pq=(i,r)=>or(i,r??{}),Uq=(i,r,t)=>or(r,{...t,id:i}),qq=i=>{if(i===void 0){for(let t of vh.values())t.dismiss("programmatic");return}vh.get(i)?.dismiss("programmatic")},jq=(i,r,t)=>{let e=t?.id??WB();return or(r.loading,{...t,id:e,type:"loading"}),i.then(s=>{let l=typeof r.success=="function"?r.success(s):r.success;or(l,{...t,id:e,type:"success"})},s=>{let l=typeof r.error=="function"?r.error(s):r.error;or(l,{...t,id:e,type:"error"})}),e},Kq=i=>{Ho={...Ho,...i},Kr&&Kr.isConnected&&(i.position!==void 0&&(Kr.position=i.position),i.maxVisible!==void 0&&(Kr.maxVisible=i.maxVisible),i.expandOnHover!==void 0&&(Kr.expandOnHover=i.expandOnHover))},Wq=()=>({...Ho}),Yq=()=>Kr,dA=Object.assign(Nq,{success:Dq,error:Hq,warning:Bq,info:Fq,loading:Vq,custom:Pq,update:Uq,dismiss:qq,promise:jq,configure:Kq,getConfig:Wq,getAutoRegion:Yq});var Gq=k`
|
|
7792
7792
|
/* ── Region-scoped tokens ──
|
|
7793
7793
|
*
|
|
7794
7794
|
* Bump the default region width (primitive ships 22rem; 24rem reads
|
|
@@ -7963,7 +7963,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7963
7963
|
transition-duration: 0s;
|
|
7964
7964
|
}
|
|
7965
7965
|
}
|
|
7966
|
-
`,GB,XB,Lv,cA,
|
|
7966
|
+
`,GB,XB,Lv,cA,ei,Bo,zv,pA,hA,bs=class extends(XB=ee,GB=[kS({type:String,reflect:!0})],XB){constructor(){super(...arguments);a(this,Bo);a(this,cA,n(Lv,8,this)),n(Lv,11,this);a(this,ei)}connectedCallback(){super.connectedCallback(),p(this,Bo,zv).call(this),this.theme==="inverted"&&p(this,Bo,pA).call(this)}disconnectedCallback(){super.disconnectedCallback(),p(this,Bo,hA).call(this)}willUpdate(t){super.willUpdate(t),t.has("theme")&&(p(this,Bo,zv).call(this),this.theme==="inverted"?p(this,Bo,pA).call(this):p(this,Bo,hA).call(this))}};Lv=A(XB),cA=new WeakMap,ei=new WeakMap,Bo=new WeakSet,zv=function(){if(!this.theme){this.removeAttribute("data-theme");return}if(this.theme==="inverted"){let e=document.documentElement.getAttribute("data-theme")==="dark"?"light":"dark";this.setAttribute("data-theme",e);return}this.setAttribute("data-theme",this.theme)},pA=function(){o(this,ei)||(h(this,ei,new MutationObserver(()=>p(this,Bo,zv).call(this))),o(this,ei).observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}))},hA=function(){o(this,ei)?.disconnect(),h(this,ei,void 0)},c(Lv,4,"theme",GB,bs,cA),T(Lv,bs),v(bs,"styles",[...ee.styles,Gq]);customElements.define(bs.tagName,bs);var Xq=ts`
|
|
7967
7967
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7968
7968
|
<path
|
|
7969
7969
|
d="M3 8.5l3 3 6.5-7"
|
|
@@ -7974,7 +7974,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7974
7974
|
stroke-linejoin="round"
|
|
7975
7975
|
/>
|
|
7976
7976
|
</svg>
|
|
7977
|
-
`,Jq=
|
|
7977
|
+
`,Jq=ts`
|
|
7978
7978
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7979
7979
|
<path
|
|
7980
7980
|
d="M4 4l8 8M12 4l-8 8"
|
|
@@ -7984,7 +7984,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
7984
7984
|
stroke-linecap="round"
|
|
7985
7985
|
/>
|
|
7986
7986
|
</svg>
|
|
7987
|
-
`,Qq=
|
|
7987
|
+
`,Qq=ts`
|
|
7988
7988
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
7989
7989
|
<path
|
|
7990
7990
|
d="M8 1.5L14.5 13.5h-13z"
|
|
@@ -8002,7 +8002,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8002
8002
|
/>
|
|
8003
8003
|
<circle cx="8" cy="11.5" r="0.9" fill="currentColor" />
|
|
8004
8004
|
</svg>
|
|
8005
|
-
`,Zq=
|
|
8005
|
+
`,Zq=ts`
|
|
8006
8006
|
<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">
|
|
8007
8007
|
<circle
|
|
8008
8008
|
cx="8"
|
|
@@ -8021,7 +8021,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8021
8021
|
/>
|
|
8022
8022
|
<circle cx="8" cy="4.7" r="0.9" fill="currentColor" />
|
|
8023
8023
|
</svg>
|
|
8024
|
-
`,t6=
|
|
8024
|
+
`,t6=ts`
|
|
8025
8025
|
<dui-spinner part="spinner" aria-hidden="true"></dui-spinner>
|
|
8026
8026
|
`;function JB(i){switch(i){case"success":return Xq;case"error":return Jq;case"warning":return Qq;case"info":return Zq;case"loading":return t6;default:return null}}var e6=k`
|
|
8027
8027
|
/* ── Per-type color hook ──
|
|
@@ -8302,7 +8302,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8302
8302
|
transform: none;
|
|
8303
8303
|
}
|
|
8304
8304
|
}
|
|
8305
|
-
`,Gd=class extends re{static styles=[...re.styles,e6];render(){let r=this.priority==="assertive"?"alert":"status",t=this.priority;if(this.headless)return
|
|
8305
|
+
`,Gd=class extends re{static styles=[...re.styles,e6];render(){let r=this.priority==="assertive"?"alert":"status",t=this.priority;if(this.headless)return ts`
|
|
8306
8306
|
<div
|
|
8307
8307
|
part="root"
|
|
8308
8308
|
role="${r}"
|
|
@@ -8312,7 +8312,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8312
8312
|
>
|
|
8313
8313
|
<slot></slot>
|
|
8314
8314
|
</div>
|
|
8315
|
-
`;let e=`dui-toast-title-${this.#t}`,s=`dui-toast-desc-${this.#t}`;return
|
|
8315
|
+
`;let e=`dui-toast-title-${this.#t}`,s=`dui-toast-desc-${this.#t}`;return ts`
|
|
8316
8316
|
<div
|
|
8317
8317
|
part="root"
|
|
8318
8318
|
role="${r}"
|
|
@@ -8380,7 +8380,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8380
8380
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
8381
8381
|
outline-offset: var(--focus-ring-offset);
|
|
8382
8382
|
}
|
|
8383
|
-
`,Xd=class extends
|
|
8383
|
+
`,Xd=class extends qr{static styles=[...qr.styles,o6]};customElements.define(Xd.tagName,Xd);var r6=k`
|
|
8384
8384
|
/* Style any slotted <button> as a small ghost-icon close affordance.
|
|
8385
8385
|
Hover-to-show behavior lives on the parent <dui-toast> (close-wrapper
|
|
8386
8386
|
part); this just renders the button itself. */
|
|
@@ -8413,7 +8413,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8413
8413
|
outline: var(--focus-ring-width) solid var(--focus-ring-color);
|
|
8414
8414
|
outline-offset: var(--focus-ring-offset);
|
|
8415
8415
|
}
|
|
8416
|
-
`,Jd=class extends
|
|
8416
|
+
`,Jd=class extends jr{static styles=[...jr.styles,r6]};customElements.define(Jd.tagName,Jd);var Ov=Symbol("dui-toggle-group");var EA=M("pressed-change",{bubbles:!0,composed:!0}),s6=b`
|
|
8417
8417
|
:host {
|
|
8418
8418
|
display: inline-block;
|
|
8419
8419
|
}
|
|
@@ -8600,7 +8600,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8600
8600
|
display: flex;
|
|
8601
8601
|
align-items: center;
|
|
8602
8602
|
}
|
|
8603
|
-
`,gF,vF,bF,xF,
|
|
8603
|
+
`,gF,vF,bF,xF,Wr,NA,DA,HA,Fo=class extends(xF=x,bF=[u({type:Boolean,reflect:!0})],vF=[u({type:Boolean,reflect:!0,attribute:"has-button-left"})],gF=[u({type:Boolean,reflect:!0,attribute:"has-button-right"})],xF){constructor(){super(...arguments);a(this,NA,n(Wr,8,this,!1)),n(Wr,11,this);a(this,DA,n(Wr,12,this,!1)),n(Wr,15,this);a(this,HA,n(Wr,16,this,!1)),n(Wr,19,this)}render(){return f`
|
|
8604
8604
|
<nav part="root" role="toolbar">
|
|
8605
8605
|
<div part="left">
|
|
8606
8606
|
<slot name="left"></slot>
|
|
@@ -8612,7 +8612,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8612
8612
|
<slot name="right"></slot>
|
|
8613
8613
|
</div>
|
|
8614
8614
|
</nav>
|
|
8615
|
-
`}};
|
|
8615
|
+
`}};Wr=A(xF),NA=new WeakMap,DA=new WeakMap,HA=new WeakMap,c(Wr,4,"inset",bF,Fo,NA),c(Wr,4,"hasButtonLeft",vF,Fo,DA),c(Wr,4,"hasButtonRight",gF,Fo,HA),T(Wr,Fo),v(Fo,"tagName","dui-toolbar"),v(Fo,"styles",[w,l6]);var d6=k`
|
|
8616
8616
|
/* ── Root ── */
|
|
8617
8617
|
|
|
8618
8618
|
[part="root"] {
|
|
@@ -8733,19 +8733,19 @@ label, legend, caption, figcaption, th, td {
|
|
|
8733
8733
|
left: 50%;
|
|
8734
8734
|
transform: translateX(-50%) rotate(180deg);
|
|
8735
8735
|
}
|
|
8736
|
-
`],DF,HF,BF,_n,o_,r_,s_,Qv,FF,
|
|
8736
|
+
`],DF,HF,BF,_n,o_,r_,s_,Qv,FF,Gr,ws,oc,Rn,VF,Yr=class extends(BF=x,HF=[u({type:Boolean,attribute:"show-arrow"})],DF=[C()],BF){constructor(){super(...arguments);a(this,Gr);a(this,o_,n(_n,8,this,!0)),n(_n,11,this);a(this,r_,n(_n,12,this,"top")),n(_n,15,this);a(this,ws,new q(this,{context:ec,subscribe:!0}));a(this,oc,!1);a(this,Rn,new Te(this,{getAnchor:()=>o(this,ws).value?.triggerEl,matchWidth:!1,placement:"top",offset:6,styles:m6,contentContainer:".Content",onClose:()=>{o(this,ws).value?.closeTooltip()},onPosition:({placement:t})=>{let e=t.split("-")[0];e!==o(this,Gr,Qv)&&h(this,Gr,e,FF)},renderPopup:t=>{let e=o(this,ws).value?.popupId??"";return f`
|
|
8737
8737
|
<div
|
|
8738
8738
|
class="Popup"
|
|
8739
8739
|
id="${e}"
|
|
8740
8740
|
role="tooltip"
|
|
8741
8741
|
?data-starting-style="${t.isStarting}"
|
|
8742
8742
|
?data-ending-style="${t.isEnding}"
|
|
8743
|
-
data-side="${o(this,
|
|
8743
|
+
data-side="${o(this,Gr,Qv)}"
|
|
8744
8744
|
>
|
|
8745
8745
|
<div class="Content"></div>
|
|
8746
|
-
${this.showArrow?Ra(o(this,
|
|
8746
|
+
${this.showArrow?Ra(o(this,Gr,Qv)):""}
|
|
8747
8747
|
</div>
|
|
8748
|
-
`}}))}updated(){let t=o(this,
|
|
8748
|
+
`}}))}updated(){let t=o(this,ws).value?.open??!1;t&&!o(this,oc)?(p(this,Gr,VF).call(this),o(this,Rn).open()):!t&&o(this,oc)&&o(this,Rn).close(),h(this,oc,t)}render(){return f`<div class="slot-wrapper"><slot></slot></div>`}};_n=A(BF),o_=new WeakMap,r_=new WeakMap,Gr=new WeakSet,ws=new WeakMap,oc=new WeakMap,Rn=new WeakMap,VF=function(){let t=o(this,ws).value?.side??"top";o(this,Rn).placement=t,o(this,Rn).offset=o(this,ws).value?.sideOffset??6},c(_n,4,"showArrow",HF,Yr,o_),s_=c(_n,20,"#side",DF,Gr,r_),Qv=s_.get,FF=s_.set,T(_n,Yr),v(Yr,"tagName","dui-tooltip-popup"),v(Yr,"styles",[w,u6]);var f6=k``,rc=class extends ke{static styles=[...ke.styles,f6]};customElements.define(rc.tagName,rc);var g6=k`
|
|
8749
8749
|
.Popup {
|
|
8750
8750
|
padding: var(--space-2) var(--space-2);
|
|
8751
8751
|
border-radius: var(--radius-sm);
|
|
@@ -8772,7 +8772,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8772
8772
|
fill: none;
|
|
8773
8773
|
stroke: none;
|
|
8774
8774
|
}
|
|
8775
|
-
`,sc=class extends
|
|
8775
|
+
`,sc=class extends Yr{static styles=[...Yr.styles,g6]};customElements.define(sc.tagName,sc);var ic=class extends xs{};customElements.define(ic.tagName,ic);var Zv=Symbol("dui-tree");var m_=M("dui-load-children",{bubbles:!0,composed:!0}),v6=b`
|
|
8776
8776
|
:host {
|
|
8777
8777
|
display: block;
|
|
8778
8778
|
}
|
|
@@ -8851,7 +8851,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8851
8851
|
[part="root"] {
|
|
8852
8852
|
outline: none;
|
|
8853
8853
|
}
|
|
8854
|
-
`,JF,QF,ZF,t3,e3,o3,r3,s3,i3,n3,a3,$t,f_,g_,v_,b_,x_,y_,w_,k_,l3,ib,U,E_,C_,A_,yh,$_,T_,nb,ab,In,
|
|
8854
|
+
`,JF,QF,ZF,t3,e3,o3,r3,s3,i3,n3,a3,$t,f_,g_,v_,b_,x_,y_,w_,k_,l3,ib,U,E_,C_,A_,yh,$_,T_,nb,ab,In,Xr,Ln,ks,wh,zn,pb,kh,Eh,S_,lb,__,x6,db,d3,c3,ri,R_,hb,ub,p3,h3,ze=class extends(a3=x,n3=[u({type:Array})],i3=[u({type:Array,attribute:"default-expanded-values"})],s3=[u({attribute:"selection-mode",reflect:!0})],r3=[u({type:Array})],o3=[u({type:Array,attribute:"default-selected-values"})],e3=[u({type:Boolean,reflect:!0})],t3=[C()],ZF=[C()],QF=[C()],JF=[lt({context:Zv}),C()],a3){constructor(){super(...arguments);a(this,U);a(this,f_,n($t,8,this)),n($t,11,this);a(this,g_,n($t,12,this,[])),n($t,15,this);a(this,v_,n($t,16,this,"none")),n($t,19,this);a(this,b_,n($t,20,this)),n($t,23,this);a(this,x_,n($t,24,this,[])),n($t,27,this);a(this,y_,n($t,28,this,!1)),n($t,31,this);a(this,w_,n($t,32,this,[])),n($t,35,this);a(this,E_,n($t,36,this,[])),n($t,39,this);a(this,$_,n($t,40,this,null)),n($t,43,this);a(this,In,"");a(this,Xr,null);a(this,Ln,null);a(this,ks,()=>this.expandedValues??o(this,U,l3));a(this,wh,()=>this.selectedValues??o(this,U,A_));a(this,zn,t=>{let e=[...o(this,ks).call(this)],l=e.indexOf(t)>=0?e.filter(d=>d!==t):[...e,t];this.expandedValues===void 0&&h(this,U,l,ib),this.dispatchEvent(cb({values:l}))});a(this,pb,t=>{let e=[...o(this,wh).call(this)],s=e.indexOf(t),l;this.selectionMode==="single"?l=s>=0?[]:[t]:l=s>=0?e.filter(d=>d!==t):[...e,t],this.selectedValues===void 0&&h(this,U,l,yh),this.dispatchEvent(I_({values:l}))});a(this,kh,(t,e)=>{this.disabled||(this.selectionMode!=="none"?o(this,pb).call(this,t):e?o(this,zn).call(this,t):this.dispatchEvent(L_({value:t})))});a(this,Eh,t=>{o(this,U,nb)!==t&&h(this,U,t,ab)});a(this,S_,n($t,44,this,p(this,U,lb).call(this))),n($t,47,this);a(this,hb,t=>{let e=p(this,U,R_).call(this,t);e&&o(this,Eh).call(this,e.value)});a(this,ub,t=>{if(this.disabled)return;let e=p(this,U,R_).call(this,t);if(!e)return;let s=p(this,U,db).call(this),l=s.indexOf(e);switch(t.key){case"ArrowDown":{t.preventDefault(),l<s.length-1&&p(this,U,ri).call(this,s[l+1]);break}case"ArrowUp":{t.preventDefault(),l>0&&p(this,U,ri).call(this,s[l-1]);break}case"ArrowRight":{if(t.preventDefault(),!e.isBranch)break;o(this,ks).call(this).includes(e.value)?l<s.length-1&&p(this,U,ri).call(this,s[l+1]):o(this,zn).call(this,e.value);break}case"ArrowLeft":{if(t.preventDefault(),e.isBranch&&o(this,ks).call(this).includes(e.value))o(this,zn).call(this,e.value);else{let d=p(this,U,c3).call(this,e);d&&p(this,U,ri).call(this,d)}break}case"Enter":case" ":{t.preventDefault(),e.disabled||o(this,kh).call(this,e.value,e.isBranch);break}case"Home":{t.preventDefault(),s[0]&&p(this,U,ri).call(this,s[0]);break}case"End":{t.preventDefault();let d=s[s.length-1];d&&p(this,U,ri).call(this,d);break}case"*":{t.preventDefault(),p(this,U,p3).call(this,e);break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&p(this,U,h3).call(this,e,t.key)}})}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tree"),this.expandedValues===void 0&&this.defaultExpandedValues.length>0&&h(this,U,[...this.defaultExpandedValues],ib),this.selectedValues===void 0&&this.defaultSelectedValues.length>0&&h(this,U,[...this.defaultSelectedValues],yh),this._ctx=p(this,U,lb).call(this),h(this,Ln,new MutationObserver(()=>this.requestUpdate())),o(this,Ln).observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled"]})}disconnectedCallback(){super.disconnectedCallback(),o(this,Ln)?.disconnect(),h(this,Ln,null),o(this,Xr)&&clearTimeout(o(this,Xr)),h(this,Xr,null),h(this,In,"")}willUpdate(t){if(this.selectionMode==="multiple"?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable"),t.has("selectionMode")&&this.selectedValues===void 0){let e=o(this,U,A_);this.selectionMode==="none"&&e.length>0?h(this,U,[],yh):this.selectionMode==="single"&&e.length>1&&h(this,U,[e[0]],yh)}this._ctx=p(this,U,lb).call(this)}updated(){if(o(this,U,nb)===null){let t=p(this,U,db).call(this).find(e=>!e.disabled);t&&h(this,U,t.value,ab)}}render(){return f`
|
|
8855
8855
|
<div
|
|
8856
8856
|
part="root"
|
|
8857
8857
|
?data-disabled=${this.disabled}
|
|
@@ -8860,7 +8860,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8860
8860
|
>
|
|
8861
8861
|
<slot></slot>
|
|
8862
8862
|
</div>
|
|
8863
|
-
`}};$t=A(a3),f_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,x_=new WeakMap,y_=new WeakMap,w_=new WeakMap,U=new WeakSet,E_=new WeakMap,$_=new WeakMap,In=new WeakMap,
|
|
8863
|
+
`}};$t=A(a3),f_=new WeakMap,g_=new WeakMap,v_=new WeakMap,b_=new WeakMap,x_=new WeakMap,y_=new WeakMap,w_=new WeakMap,U=new WeakSet,E_=new WeakMap,$_=new WeakMap,In=new WeakMap,Xr=new WeakMap,Ln=new WeakMap,ks=new WeakMap,wh=new WeakMap,zn=new WeakMap,pb=new WeakMap,kh=new WeakMap,Eh=new WeakMap,S_=new WeakMap,lb=function(){return{expandedValues:o(this,ks).call(this),selectedValues:o(this,wh).call(this),selectionMode:this.selectionMode,disabled:this.disabled,focusedValue:o(this,U,nb),toggleExpand:o(this,zn),activate:o(this,kh),setFocused:o(this,Eh)}},__=function(){return[...this.querySelectorAll("dui-tree-item")]},x6=function(t){return p(this,U,__).call(this).find(e=>e.value===t)},db=function(){return p(this,U,__).call(this).filter(t=>p(this,U,d3).call(this,t))},d3=function(t){let e=t.parentElement;for(;e;){if(e===this)return!0;if(e instanceof fe&&!o(this,ks).call(this).includes(e.value))return!1;e=e.parentElement}return!1},c3=function(t){let e=t.parentElement;for(;e;){if(e===this)return null;if(e instanceof fe)return e;e=e.parentElement}return null},ri=function(t){h(this,U,t.value,ab),t.shadowRoot?.querySelector("[part='root']")?.focus()},R_=function(t){return t.composedPath().find(e=>e instanceof fe)??null},hb=new WeakMap,ub=new WeakMap,p3=function(t){let e=Array.from(t.parentElement?.children??[]).filter(m=>m instanceof fe&&m.isBranch&&!m.disabled),s=o(this,ks).call(this),l=e.map(m=>m.value).filter(m=>!s.includes(m));if(l.length===0)return;let d=[...s,...l];this.expandedValues===void 0&&h(this,U,d,ib),this.dispatchEvent(cb({values:d}))},h3=function(t,e){h(this,In,o(this,In)+e.toLowerCase()),o(this,Xr)&&clearTimeout(o(this,Xr)),h(this,Xr,setTimeout(()=>{h(this,In,""),h(this,Xr,null)},500));let s=p(this,U,db).call(this),l=s.indexOf(t),m=[...s.slice(l+1),...s.slice(0,l+1)].find(g=>(g.querySelector("[slot='label']")?.textContent?.trim().toLowerCase()??"").startsWith(o(this,In)));m&&p(this,U,ri).call(this,m)},c($t,4,"expandedValues",n3,ze,f_),c($t,4,"defaultExpandedValues",i3,ze,g_),c($t,4,"selectionMode",s3,ze,v_),c($t,4,"selectedValues",r3,ze,b_),c($t,4,"defaultSelectedValues",o3,ze,x_),c($t,4,"disabled",e3,ze,y_),k_=c($t,20,"#internalExpanded",t3,U,w_),l3=k_.get,ib=k_.set,C_=c($t,20,"#internalSelected",ZF,U,E_),A_=C_.get,yh=C_.set,T_=c($t,20,"#focusedValue",QF,U,$_),nb=T_.get,ab=T_.set,c($t,4,"_ctx",JF,ze,S_),T($t,ze),v(ze,"tagName","dui-tree"),v(ze,"styles",[w,b6]);var y6=k`
|
|
8864
8864
|
/* ── Sizes — write to public tokens on :host so consumer overrides win ── */
|
|
8865
8865
|
|
|
8866
8866
|
:host {
|
|
@@ -8903,7 +8903,7 @@ label, legend, caption, figcaption, th, td {
|
|
|
8903
8903
|
--_tree-indicator-size: var(--space-4);
|
|
8904
8904
|
--_tree-inline-gap: var(--space-2_5);
|
|
8905
8905
|
}
|
|
8906
|
-
`,ac=class extends ze{static styles=[...ze.styles,y6]};customElements.define(ac.tagName,ac);var u3=
|
|
8906
|
+
`,ac=class extends ze{static styles=[...ze.styles,y6]};customElements.define(ac.tagName,ac);var u3=Qr(`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")`),m3=Qr(`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")`),w6=k`
|
|
8907
8907
|
/* ── Row container ─────────────────────────────────────────────────── */
|
|
8908
8908
|
|
|
8909
8909
|
/*
|
|
@@ -9054,10 +9054,10 @@ label, legend, caption, figcaption, th, td {
|
|
|
9054
9054
|
display: -webkit-box;
|
|
9055
9055
|
-webkit-box-orient: vertical;
|
|
9056
9056
|
}
|
|
9057
|
-
`,f3,g3,v3,On,z_,O_,
|
|
9057
|
+
`,f3,g3,v3,On,z_,O_,rr=class extends(v3=x,g3=[u({attribute:"max-width"})],f3=[u({attribute:"max-lines",type:Number,reflect:!0})],v3){constructor(){super(...arguments);a(this,z_,n(On,8,this,"20rem")),n(On,11,this);a(this,O_,n(On,12,this)),n(On,15,this)}render(){let t=this.maxLines!==void 0?Math.max(1,this.maxLines).toString():void 0,e=Ga({"max-width":this.maxWidth,"-webkit-line-clamp":t,"line-clamp":t});return f`<div part="root" style=${e}><slot></slot></div>`}};On=A(v3),z_=new WeakMap,O_=new WeakMap,c(On,4,"maxWidth",g3,rr,z_),c(On,4,"maxLines",f3,rr,O_),T(On,rr),v(rr,"tagName","dui-trunc"),v(rr,"styles",[w,k6]);var E6=k`
|
|
9058
9058
|
[part="root"] {
|
|
9059
9059
|
font-family: var(--font-sans);
|
|
9060
9060
|
font-size: var(--text-sm); line-height: var(--text-sm--line-height);
|
|
9061
9061
|
color: var(--text-1);
|
|
9062
9062
|
}
|
|
9063
|
-
`,dc=class extends
|
|
9063
|
+
`,dc=class extends rr{static styles=[...rr.styles,E6]};customElements.define(dc.tagName,dc);
|