@umbraco-ui/uui 1.9.0-rc.0 → 1.9.0-rc.2

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/dist/uui.min.js CHANGED
@@ -2,11 +2,11 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Pe=window,Uo=Pe.ShadowRoot&&(Pe.ShadyCSS===void 0||Pe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Eo=Symbol(),Gr=new WeakMap;let qr=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Eo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Uo&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Gr.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Gr.set(t,e))}return e}toString(){return this.cssText}};const Ae=i=>new qr(typeof i=="string"?i:i+"",void 0,Eo),b=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new qr(t,i,Eo)},Na=(i,e)=>{Uo?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const r=document.createElement("style"),o=Pe.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)})},Wr=Uo?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Ae(t)})(i):i;/**
5
+ */const Pe=window,Uo=Pe.ShadowRoot&&(Pe.ShadyCSS===void 0||Pe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Eo=Symbol(),Gr=new WeakMap;let qr=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Eo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Uo&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=Gr.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Gr.set(t,e))}return e}toString(){return this.cssText}};const Ae=i=>new qr(typeof i=="string"?i:i+"",void 0,Eo),b=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,o,s)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+i[s+1],i[0]);return new qr(t,i,Eo)},Ma=(i,e)=>{Uo?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const r=document.createElement("style"),o=Pe.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,i.appendChild(r)})},Wr=Uo?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Ae(t)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var $o;const fi=window,Kr=fi.trustedTypes,Ma=Kr?Kr.emptyScript:"",Xr=fi.reactiveElementPolyfillSupport,ko={toAttribute(i,e){switch(e){case Boolean:i=i?Ma:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){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}},Yr=(i,e)=>e!==i&&(e==e||i==i),Io={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:Yr},xo="finalized";let dt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const o=this._$Ep(r,t);o!==void 0&&(this._$Ev.set(o,r),e.push(o))}),e}static createProperty(e,t=Io){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Io}static finalize(){if(this.hasOwnProperty(xo))return!1;this[xo]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of r)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(Wr(o))}else e!==void 0&&t.push(Wr(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Na(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Io){var o;const s=this.constructor._$Ep(e,r);if(s!==void 0&&r.reflect===!0){const a=(((o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?r.converter:ko).toAttribute(t,r.type);this._$El=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$El=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Ev.get(e);if(s!==void 0&&this._$El!==s){const a=o.getPropertyOptions(s),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?a.converter:ko;this._$El=s,this[s]=c.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Yr)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,s)=>this[s]=o),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.call(o)}),this.update(r)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdated)===null||o===void 0?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};dt[xo]=!0,dt.elementProperties=new Map,dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},Xr?.({ReactiveElement:dt}),(($o=fi.reactiveElementVersions)!==null&&$o!==void 0?$o:fi.reactiveElementVersions=[]).push("1.6.3");/**
9
+ */var $o;const fi=window,Kr=fi.trustedTypes,Na=Kr?Kr.emptyScript:"",Xr=fi.reactiveElementPolyfillSupport,ko={toAttribute(i,e){switch(e){case Boolean:i=i?Na:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){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}},Yr=(i,e)=>e!==i&&(e==e||i==i),Io={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:Yr},xo="finalized";let dt=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,r)=>{const o=this._$Ep(r,t);o!==void 0&&(this._$Ev.set(o,r),e.push(o))}),e}static createProperty(e,t=Io){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(o){const s=this[e];this[t]=o,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Io}static finalize(){if(this.hasOwnProperty(xo))return!1;this[xo]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of r)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(Wr(o))}else e!==void 0&&t.push(Wr(e));return t}static _$Ep(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ma(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Io){var o;const s=this.constructor._$Ep(e,r);if(s!==void 0&&r.reflect===!0){const a=(((o=r.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?r.converter:ko).toAttribute(t,r.type);this._$El=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$El=null}}_$AK(e,t){var r;const o=this.constructor,s=o._$Ev.get(e);if(s!==void 0&&this._$El!==s){const a=o.getPropertyOptions(s),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((r=a.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?a.converter:ko;this._$El=s,this[s]=c.fromAttribute(t,a.type),this._$El=null}}requestUpdate(e,t,r){let o=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||Yr)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,s)=>this[s]=o),this._$Ei=void 0);let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var s;return(s=o.hostUpdate)===null||s===void 0?void 0:s.call(o)}),this.update(r)):this._$Ek()}catch(o){throw t=!1,this._$Ek(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var o;return(o=r.hostUpdated)===null||o===void 0?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};dt[xo]=!0,dt.elementProperties=new Map,dt.elementStyles=[],dt.shadowRootOptions={mode:"open"},Xr?.({ReactiveElement:dt}),(($o=fi.reactiveElementVersions)!==null&&$o!==void 0?$o:fi.reactiveElementVersions=[]).push("1.6.3");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
@@ -208,11 +208,11 @@
208
208
  margin-top: var(--uui-size-layout-1,24px);
209
209
  margin-bottom: var(--uui-size-layout-1,24px);
210
210
  }
211
- `;const Ui=Ae(qa),Wa=b`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Ka=Ae("uui-blink 0.9s infinite both"),Xa=b`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,Ya=Ae("pulse 0.8s ease-in-out infinite both"),Za=b`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Qa=Ae("uui-horizontal-shake 600ms ease backwards");let No=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},ye=class extends No{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ye.VALID="valid",ye.INVALID="invalid";let qe=class extends No{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};qe.SELECTED="selected",qe.DESELECTED="deselected";var Ja=Object.defineProperty,el=Object.getOwnPropertyDescriptor,tl=(i,e,t,r)=>{for(var o=r>1?void 0:r?el(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ja(e,t,o),o};const il=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return tl([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var ol=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,vn=(i,e,t,r)=>{for(var o=r>1?void 0:r?rl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ol(e,t,o),o};const nl=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){const s=o.target.assignedNodes();if(!s.length){this._labelSlotHasContent=!1;return}this._labelSlotHasContent=s.some(a=>a.nodeType!==Node.TEXT_NODE||!!a.textContent?.trim().length)}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return vn([l({type:String})],t.prototype,"label",2),vn([y()],t.prototype,"_labelSlotHasContent",2),t};var sl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,fn=(i,e,t,r)=>{for(var o=r>1?void 0:r?al(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sl(e,t,o),o};const ll=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new qe(qe.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new qe(qe.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return fn([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),fn([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var ul=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,dl=(i,e,t,r)=>{for(var o=r>1?void 0:r?cl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ul(e,t,o),o};const hl=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return dl([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var pl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,yn=i=>{throw TypeError(i)},We=(i,e,t,r)=>{for(var o=r>1?void 0:r?bl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pl(e,t,o),o},Mo=(i,e,t)=>e.has(i)||yn("Cannot "+t),O=(i,e,t)=>(Mo(i,e,"read from private field"),t?t.call(i):e.get(i)),Ke=(i,e,t)=>e.has(i)?yn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Do=(i,e,t,r)=>(Mo(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ei=(i,e,t)=>(Mo(i,e,"access private method"),t);const ml=(i,e)=>{var t,r,o,s,a,c,d,h,f;class g extends i{constructor(...p){super(...p),Ke(this,c),this.name="",Ke(this,t,{}),this._pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",Ke(this,r,e),Ke(this,o,null),Ke(this,s,[]),Ke(this,a,[]),Ke(this,f,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.setAttribute("pristine",""),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return O(this,r)}set value(p){const w=O(this,r);Do(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(O(this,r)??null),this.requestUpdate("value",w)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),Ei(this,c,h).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=O(this,a).find(w=>w.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),Ei(this,c,d).call(this)}addValidator(p,w,C){const I={flagKey:p,getMessageMethod:w,checkMethod:C};return O(this,s).push(I),I}removeValidator(p){const w=O(this,s).indexOf(p);w!==-1&&O(this,s).splice(w,1)}addFormControlElement(p){O(this,a).push(p),p.addEventListener(ye.INVALID,()=>{this._runValidators()}),p.addEventListener(ye.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){Do(this,t,{});const p=new Set;let w;O(this,a).forEach(I=>{let D;for(D in I.validity)D!=="valid"&&I.validity[D]&&(O(this,t)[D]=!0,p.add(I.validationMessage),w??(w=I))}),O(this,s).forEach(I=>{I.checkMethod()&&(O(this,t)[I.flagKey]=!0,p.add(I.getMessageMethod()))});const C=Object.values(O(this,t)).includes(!0);O(this,t).valid=!C,this._internals.setValidity(O(this,t),[...p].join(", "),w??this.getFormElement()??void 0),Ei(this,c,h).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){O(this,o)?.requestSubmit()}formAssociatedCallback(){Ei(this,c,d).call(this),Do(this,o,this._internals.form),O(this,o)&&(O(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),O(this,o).addEventListener("submit",O(this,f)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in O(this,a))if(O(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return O(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,d=function(){O(this,o)&&O(this,o).removeEventListener("submit",O(this,f))},h=function(){this._pristine!==!0&&(O(this,t).valid?this.dispatchEvent(new ye(ye.VALID)):this.dispatchEvent(new ye(ye.INVALID)))},f=new WeakMap,g.formAssociated=!0,We([l({type:String})],g.prototype,"name",2),We([l()],g.prototype,"value",1),We([l({type:Boolean,reflect:!0,attribute:"pristine"})],g.prototype,"pristine",1),We([l({type:Boolean,reflect:!0})],g.prototype,"required",2),We([l({type:String,attribute:"required-message"})],g.prototype,"requiredMessage",2),We([l({type:Boolean,reflect:!0})],g.prototype,"error",2),We([l({type:String,attribute:"error-message"})],g.prototype,"errorMessage",2),g};let gl=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const vl=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},fl=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,d=s.top+a.scrollY;let h;o instanceof TouchEvent?h=o.touches[0]:h=o;const f=h.pageX-c,g=h.pageY-d;e?.onMove&&e.onMove(f,g)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},yl=(i,e,t)=>Math.min(Math.max(i,e),t),wl=(i,e,t)=>t+e-i,_l=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},wn=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function Ul(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}var El=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,_n=i=>{throw TypeError(i)},kl=(i,e,t,r)=>{for(var o=r>1?void 0:r?$l(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&El(e,t,o),o},Un=(i,e,t)=>e.has(i)||_n("Cannot "+t),En=(i,e,t)=>(Un(i,e,"read from private field"),t?t.call(i):e.get(i)),$n=(i,e,t)=>e.has(i)?_n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Il=(i,e,t,r)=>(Un(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const xl=i=>{var e,t;class r extends i{constructor(...s){super(...s),$n(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=wn(this,"id",this.popoverContainerElement);a&&(En(this,e)?a.hidePopover():a.showPopover())},$n(this,t,a=>{requestAnimationFrame(()=>{Il(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",En(this,t))}}return e=new WeakMap,t=new WeakMap,kl([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};function Cl(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const Sl=["default","primary","secondary","outline","placeholder"],Pl=["default","positive","warning","danger"],Al=["h1","h2","h3","h4","h5","h6"];function m(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var Ol=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Ll=(i,e,t,r)=>{for(var o=r>1?void 0:r?zl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ol(e,t,o),o};n.UUIButtonGroupElement=class extends v{render(){return u`<slot></slot>`}},n.UUIButtonGroupElement.styles=[b`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=Ll([m("uui-button-group")],n.UUIButtonGroupElement);var Tl=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Ml=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tl(e,t,o),o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,b`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],n.UUIActionBarElement=Ml([m("uui-action-bar")],n.UUIActionBarElement);var Dl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,$i=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dl(e,t,o),o};n.UUIAvatarGroupElement=class extends v{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},n.UUIAvatarGroupElement.styles=[b`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar){margin-left:-.2em;margin-right:-.2em;border:.1em solid var(--uui-avatar-border-color)}#overflow-indication{margin-left:6px}`],$i([Oe({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),$i([y()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),$i([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=$i([m("uui-avatar-group")],n.UUIAvatarGroupElement);var jl=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jl(e,t,o),o};n.UUIAvatarElement=class extends v{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.initials=this.createInitials(this._name),this.requestUpdate("title",t)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=e.match(/(\w+)/g);return r?.length?(t=r[0].substring(0,1),r.length>1&&(t+=r[r.length-1].substring(0,1)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}},n.UUIAvatarElement.styles=[b`:host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:hidden;border-radius:50%;font-weight:700;-webkit-font-smoothing:subpixel-antialiased;width:calc(2em + 4px);height:calc(2em + 4px);user-select:none;aspect-ratio:1;background-color:var(--uui-palette-spanish-pink,#f5c1bc);color:var(--uui-palette-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],pt([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),pt([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),pt([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),pt([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),pt([y()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=pt([m("uui-avatar")],n.UUIAvatarElement);var Hl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,ki=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hl(e,t,o),o};n.UUIBadgeElement=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.UUIBadgeElement.styles=[b`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],ki([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),ki([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),ki([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=ki([m("uui-badge")],n.UUIBadgeElement);var Fl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,ql=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fl(e,t,o),o};const Qt=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return ql([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Wl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,kn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wl(e,t,o),o};const le=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){const s=o.target.assignedNodes();if(!s.length){this._labelSlotHasContent=!1;return}this._labelSlotHasContent=s.some(a=>a.nodeType!==Node.TEXT_NODE||!!a.textContent?.trim().length)}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return kn([l({type:String})],t.prototype,"label",2),kn([y()],t.prototype,"_labelSlotHasContent",2),t};let Xl=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},bt=class extends Xl{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};bt.SELECTED="selected",bt.DESELECTED="deselected";var Yl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,In=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yl(e,t,o),o};const mt=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new bt(bt.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new bt(bt.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return In([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),In([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Ql=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,eu=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ql(e,t,o),o};const Ii=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return eu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};let xn=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},ze=class extends xn{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ze.VALID="valid",ze.INVALID="invalid";let Cn=class extends xn{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Cn.SELECTED="selected",Cn.DESELECTED="deselected";var tu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Sn=i=>{throw TypeError(i)},Xe=(i,e,t,r)=>{for(var o=r>1?void 0:r?iu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tu(e,t,o),o},Bo=(i,e,t)=>e.has(i)||Sn("Cannot "+t),z=(i,e,t)=>(Bo(i,e,"read from private field"),t?t.call(i):e.get(i)),Ye=(i,e,t)=>e.has(i)?Sn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),jo=(i,e,t,r)=>(Bo(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),xi=(i,e,t)=>(Bo(i,e,"access private method"),t);const ue=(i,e)=>{var t,r,o,s,a,c,d,h,f;class g extends i{constructor(...p){super(...p),Ye(this,c),this.name="",Ye(this,t,{}),this._pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",Ye(this,r,e),Ye(this,o,null),Ye(this,s,[]),Ye(this,a,[]),Ye(this,f,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.setAttribute("pristine",""),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return z(this,r)}set value(p){const w=z(this,r);jo(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(z(this,r)??null),this.requestUpdate("value",w)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),xi(this,c,h).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=z(this,a).find(w=>w.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),xi(this,c,d).call(this)}addValidator(p,w,C){const I={flagKey:p,getMessageMethod:w,checkMethod:C};return z(this,s).push(I),I}removeValidator(p){const w=z(this,s).indexOf(p);w!==-1&&z(this,s).splice(w,1)}addFormControlElement(p){z(this,a).push(p),p.addEventListener(ze.INVALID,()=>{this._runValidators()}),p.addEventListener(ze.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){jo(this,t,{});const p=new Set;let w;z(this,a).forEach(I=>{let D;for(D in I.validity)D!=="valid"&&I.validity[D]&&(z(this,t)[D]=!0,p.add(I.validationMessage),w??(w=I))}),z(this,s).forEach(I=>{I.checkMethod()&&(z(this,t)[I.flagKey]=!0,p.add(I.getMessageMethod()))});const C=Object.values(z(this,t)).includes(!0);z(this,t).valid=!C,this._internals.setValidity(z(this,t),[...p].join(", "),w??this.getFormElement()??void 0),xi(this,c,h).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){z(this,o)?.requestSubmit()}formAssociatedCallback(){xi(this,c,d).call(this),jo(this,o,this._internals.form),z(this,o)&&(z(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),z(this,o).addEventListener("submit",z(this,f)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in z(this,a))if(z(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return z(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,d=function(){z(this,o)&&z(this,o).removeEventListener("submit",z(this,f))},h=function(){this._pristine!==!0&&(z(this,t).valid?this.dispatchEvent(new ze(ze.VALID)):this.dispatchEvent(new ze(ze.INVALID)))},f=new WeakMap,g.formAssociated=!0,Xe([l({type:String})],g.prototype,"name",2),Xe([l()],g.prototype,"value",1),Xe([l({type:Boolean,reflect:!0,attribute:"pristine"})],g.prototype,"pristine",1),Xe([l({type:Boolean,reflect:!0})],g.prototype,"required",2),Xe([l({type:String,attribute:"required-message"})],g.prototype,"requiredMessage",2),Xe([l({type:Boolean,reflect:!0})],g.prototype,"error",2),Xe([l({type:String,attribute:"error-message"})],g.prototype,"errorMessage",2),g},ou=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};var ru=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,Pn=i=>{throw TypeError(i)},su=(i,e,t,r)=>{for(var o=r>1?void 0:r?nu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ru(e,t,o),o},An=(i,e,t)=>e.has(i)||Pn("Cannot "+t),On=(i,e,t)=>(An(i,e,"read from private field"),t?t.call(i):e.get(i)),zn=(i,e,t)=>e.has(i)?Pn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),au=(i,e,t,r)=>(An(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const lu=i=>{var e,t;class r extends i{constructor(...s){super(...s),zn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=ou(this,"id",this.popoverContainerElement);a&&(On(this,e)?a.hidePopover():a.showPopover())},zn(this,t,a=>{requestAnimationFrame(()=>{au(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",On(this,t))}}return e=new WeakMap,t=new WeakMap,su([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};let A=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},gt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};gt.VALID="valid",gt.INVALID="invalid";let Le=class extends A{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Le.SELECTED="selected",Le.DESELECTED="deselected";let Ci=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ci.CHANGE="change";var uu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,Jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?cu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&uu(e,t,o),o};let te=class extends ue(le("",v),""){constructor(e="checkbox"){super(),this._value="",this.labelPosition="right",this._checked=!1,this.disabled=!1,this.readonly=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const t=super.value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){super.firstUpdated(e);const t=this.shadowRoot?.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),t.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),t.addEventListener("mouseup",()=>{r=!1})}async focus(){await this.updateComplete,this._input.focus()}async click(){await this.updateComplete,this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new Ci(Ci.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled||this.readonly}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};te.styles=[b`:host{display:inline-block}label{position:relative;cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}:host([readonly]) label{cursor:text;user-select:auto}input{position:absolute;height:0;width:0;opacity:0}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) .label{opacity:.5}`],Jt([l({type:String,attribute:"label-position",reflect:!0})],te.prototype,"labelPosition",2),Jt([l({type:Boolean})],te.prototype,"checked",1),Jt([l({type:Boolean,reflect:!0})],te.prototype,"disabled",2),Jt([l({type:Boolean,reflect:!0})],te.prototype,"readonly",2),Jt([P("#input")],te.prototype,"_input",2);/**
211
+ `;const Ui=Ae(qa),Wa=b`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Ka=Ae("uui-blink 0.9s infinite both"),Xa=b`@keyframes pulse{0%{-webkit-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2);opacity:.9}80%{-webkit-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);opacity:0}100%{-webkit-transform:translate(-50%,-50%) scale(2.2);transform:translate(-50%,-50%) scale(2.2);opacity:0}}`,Ya=Ae("pulse 0.8s ease-in-out infinite both"),Za=b`@keyframes uui-horizontal-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(1px)}30%,50%,70%{transform:translateX(-2px)}40%,60%{transform:translateX(2px)}}`,Qa=Ae("uui-horizontal-shake 600ms ease backwards");let Mo=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},ye=class extends Mo{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ye.VALID="valid",ye.INVALID="invalid";let qe=class extends Mo{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};qe.SELECTED="selected",qe.DESELECTED="deselected";var Ja=Object.defineProperty,el=Object.getOwnPropertyDescriptor,tl=(i,e,t,r)=>{for(var o=r>1?void 0:r?el(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ja(e,t,o),o};const il=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return tl([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var ol=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,vn=(i,e,t,r)=>{for(var o=r>1?void 0:r?rl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ol(e,t,o),o};const nl=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return vn([l({type:String})],t.prototype,"label",2),vn([y()],t.prototype,"_labelSlotHasContent",2),t};var sl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,fn=(i,e,t,r)=>{for(var o=r>1?void 0:r?al(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sl(e,t,o),o};const ll=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new qe(qe.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new qe(qe.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return fn([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),fn([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var ul=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,dl=(i,e,t,r)=>{for(var o=r>1?void 0:r?cl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ul(e,t,o),o};const hl=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return dl([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var pl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,yn=i=>{throw TypeError(i)},We=(i,e,t,r)=>{for(var o=r>1?void 0:r?bl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pl(e,t,o),o},No=(i,e,t)=>e.has(i)||yn("Cannot "+t),O=(i,e,t)=>(No(i,e,"read from private field"),t?t.call(i):e.get(i)),Ke=(i,e,t)=>e.has(i)?yn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Do=(i,e,t,r)=>(No(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Ei=(i,e,t)=>(No(i,e,"access private method"),t);const ml=(i,e)=>{var t,r,o,s,a,c,d,h,f;class g extends i{constructor(...p){super(...p),Ke(this,c),this.name="",Ke(this,t,{}),this._pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",Ke(this,r,e),Ke(this,o,null),Ke(this,s,[]),Ke(this,a,[]),Ke(this,f,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.setAttribute("pristine",""),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return O(this,r)}set value(p){const w=O(this,r);Do(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(O(this,r)??null),this.requestUpdate("value",w)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),Ei(this,c,h).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=O(this,a).find(w=>w.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),Ei(this,c,d).call(this)}addValidator(p,w,C){const I={flagKey:p,getMessageMethod:w,checkMethod:C};return O(this,s).push(I),I}removeValidator(p){const w=O(this,s).indexOf(p);w!==-1&&O(this,s).splice(w,1)}addFormControlElement(p){O(this,a).push(p),p.addEventListener(ye.INVALID,()=>{this._runValidators()}),p.addEventListener(ye.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){Do(this,t,{});const p=new Set;let w;O(this,a).forEach(I=>{let D;for(D in I.validity)D!=="valid"&&I.validity[D]&&(O(this,t)[D]=!0,p.add(I.validationMessage),w??(w=I))}),O(this,s).forEach(I=>{I.checkMethod()&&(O(this,t)[I.flagKey]=!0,p.add(I.getMessageMethod()))});const C=Object.values(O(this,t)).includes(!0);O(this,t).valid=!C,this._internals.setValidity(O(this,t),[...p].join(", "),w??this.getFormElement()??void 0),Ei(this,c,h).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){O(this,o)?.requestSubmit()}formAssociatedCallback(){Ei(this,c,d).call(this),Do(this,o,this._internals.form),O(this,o)&&(O(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),O(this,o).addEventListener("submit",O(this,f)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in O(this,a))if(O(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return O(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,d=function(){O(this,o)&&O(this,o).removeEventListener("submit",O(this,f))},h=function(){this._pristine!==!0&&(O(this,t).valid?this.dispatchEvent(new ye(ye.VALID)):this.dispatchEvent(new ye(ye.INVALID)))},f=new WeakMap,g.formAssociated=!0,We([l({type:String})],g.prototype,"name",2),We([l()],g.prototype,"value",1),We([l({type:Boolean,reflect:!0,attribute:"pristine"})],g.prototype,"pristine",1),We([l({type:Boolean,reflect:!0})],g.prototype,"required",2),We([l({type:String,attribute:"required-message"})],g.prototype,"requiredMessage",2),We([l({type:Boolean,reflect:!0})],g.prototype,"error",2),We([l({type:String,attribute:"error-message"})],g.prototype,"errorMessage",2),g};let gl=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const vl=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},fl=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,d=s.top+a.scrollY;let h;o instanceof TouchEvent?h=o.touches[0]:h=o;const f=h.pageX-c,g=h.pageY-d;e?.onMove&&e.onMove(f,g)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},yl=(i,e,t)=>Math.min(Math.max(i,e),t),wl=(i,e,t)=>t+e-i,_l=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},wn=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function Ul(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}var El=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,_n=i=>{throw TypeError(i)},kl=(i,e,t,r)=>{for(var o=r>1?void 0:r?$l(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&El(e,t,o),o},Un=(i,e,t)=>e.has(i)||_n("Cannot "+t),En=(i,e,t)=>(Un(i,e,"read from private field"),t?t.call(i):e.get(i)),$n=(i,e,t)=>e.has(i)?_n("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Il=(i,e,t,r)=>(Un(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const xl=i=>{var e,t;class r extends i{constructor(...s){super(...s),$n(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=wn(this,"id",this.popoverContainerElement);a&&(En(this,e)?a.hidePopover():a.showPopover())},$n(this,t,a=>{requestAnimationFrame(()=>{Il(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",En(this,t))}}return e=new WeakMap,t=new WeakMap,kl([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};function Cl(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const Sl=["default","primary","secondary","outline","placeholder"],Pl=["default","positive","warning","danger"],Al=["h1","h2","h3","h4","h5","h6"];function m(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var Ol=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Ll=(i,e,t,r)=>{for(var o=r>1?void 0:r?zl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ol(e,t,o),o};n.UUIButtonGroupElement=class extends v{render(){return u`<slot></slot>`}},n.UUIButtonGroupElement.styles=[b`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=Ll([m("uui-button-group")],n.UUIButtonGroupElement);var Tl=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,Nl=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ml(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tl(e,t,o),o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,b`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(uui-button:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(uui-button:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(uui-button:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],n.UUIActionBarElement=Nl([m("uui-action-bar")],n.UUIActionBarElement);var Dl=Object.defineProperty,Bl=Object.getOwnPropertyDescriptor,$i=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dl(e,t,o),o};n.UUIAvatarGroupElement=class extends v{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},n.UUIAvatarGroupElement.styles=[b`:host{display:inline-flex;align-items:center;padding-left:3px;padding-right:3px}::slotted(uui-avatar){margin-left:-.2em;margin-right:-.2em;border:.1em solid var(--uui-avatar-border-color)}#overflow-indication{margin-left:6px}`],$i([Oe({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),$i([y()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),$i([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=$i([m("uui-avatar-group")],n.UUIAvatarGroupElement);var jl=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jl(e,t,o),o};n.UUIAvatarElement=class extends v{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(e){const t=this._name;this._name=e,this.initials=this.createInitials(this._name),this.requestUpdate("title",t)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=e.match(/(\w+)/g);return r?.length?(t=r[0].substring(0,1),r.length>1&&(t+=r[r.length-1].substring(0,1)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}},n.UUIAvatarElement.styles=[b`:host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;overflow:hidden;border-radius:50%;font-weight:700;-webkit-font-smoothing:subpixel-antialiased;width:calc(2em + 4px);height:calc(2em + 4px);user-select:none;aspect-ratio:1;background-color:var(--uui-palette-spanish-pink,#f5c1bc);color:var(--uui-palette-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],pt([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),pt([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),pt([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),pt([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",1),pt([y()],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=pt([m("uui-avatar")],n.UUIAvatarElement);var Hl=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,ki=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hl(e,t,o),o};n.UUIBadgeElement=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.UUIBadgeElement.styles=[b`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],ki([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),ki([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),ki([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=ki([m("uui-badge")],n.UUIBadgeElement);var Fl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,ql=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fl(e,t,o),o};const Qt=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return ql([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Wl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,kn=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wl(e,t,o),o};const le=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return kn([l({type:String})],t.prototype,"label",2),kn([y()],t.prototype,"_labelSlotHasContent",2),t};let Xl=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},bt=class extends Xl{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};bt.SELECTED="selected",bt.DESELECTED="deselected";var Yl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,In=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yl(e,t,o),o};const mt=i=>{class e extends i{constructor(...r){super(...r),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=o=>{if(this.selectableTarget===this){if(o.key!==" "&&o.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const o=this._selectable;this._selectable=r,this.selectableTarget||this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selectable",o)}_select(){if(!this.selectable)return;const r=new bt(bt.SELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const r=new bt(bt.DESELECTED);this.dispatchEvent(r),!r.defaultPrevented&&(this.selected=!1)}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return In([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),In([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Ql=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,eu=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jl(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ql(e,t,o),o};const Ii=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return eu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};let xn=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},ze=class extends xn{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ze.VALID="valid",ze.INVALID="invalid";let Cn=class extends xn{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Cn.SELECTED="selected",Cn.DESELECTED="deselected";var tu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Sn=i=>{throw TypeError(i)},Xe=(i,e,t,r)=>{for(var o=r>1?void 0:r?iu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tu(e,t,o),o},Bo=(i,e,t)=>e.has(i)||Sn("Cannot "+t),z=(i,e,t)=>(Bo(i,e,"read from private field"),t?t.call(i):e.get(i)),Ye=(i,e,t)=>e.has(i)?Sn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),jo=(i,e,t,r)=>(Bo(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),xi=(i,e,t)=>(Bo(i,e,"access private method"),t);const ue=(i,e)=>{var t,r,o,s,a,c,d,h,f;class g extends i{constructor(...p){super(...p),Ye(this,c),this.name="",Ye(this,t,{}),this._pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",Ye(this,r,e),Ye(this,o,null),Ye(this,s,[]),Ye(this,a,[]),Ye(this,f,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.setAttribute("pristine",""),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return z(this,r)}set value(p){const w=z(this,r);jo(this,r,p),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(z(this,r)??null),this.requestUpdate("value",w)}set pristine(p){this._pristine!==p&&(this._pristine=p,p?this.setAttribute("pristine",""):this.removeAttribute("pristine"),xi(this,c,h).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const p=z(this,a).find(w=>w.validity.valid===!1);p?"focusFirstInvalidElement"in p?p.focusFirstInvalidElement():p.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),xi(this,c,d).call(this)}addValidator(p,w,C){const I={flagKey:p,getMessageMethod:w,checkMethod:C};return z(this,s).push(I),I}removeValidator(p){const w=z(this,s).indexOf(p);w!==-1&&z(this,s).splice(w,1)}addFormControlElement(p){z(this,a).push(p),p.addEventListener(ze.INVALID,()=>{this._runValidators()}),p.addEventListener(ze.VALID,()=>{this._runValidators()}),this._pristine===!1&&(p.checkValidity(),this._runValidators())}setCustomValidity(p){this._customValidityObject&&this.removeValidator(this._customValidityObject),p!=null&&p!==""&&(this._customValidityObject=this.addValidator("customError",()=>p,()=>!0)),this._runValidators()}_runValidators(){jo(this,t,{});const p=new Set;let w;z(this,a).forEach(I=>{let D;for(D in I.validity)D!=="valid"&&I.validity[D]&&(z(this,t)[D]=!0,p.add(I.validationMessage),w??(w=I))}),z(this,s).forEach(I=>{I.checkMethod()&&(z(this,t)[I.flagKey]=!0,p.add(I.getMessageMethod()))});const C=Object.values(z(this,t)).includes(!0);z(this,t).valid=!C,this._internals.setValidity(z(this,t),[...p].join(", "),w??this.getFormElement()??void 0),xi(this,c,h).call(this)}updated(p){super.updated(p),this._runValidators()}submit(){z(this,o)?.requestSubmit()}formAssociatedCallback(){xi(this,c,d).call(this),jo(this,o,this._internals.form),z(this,o)&&(z(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),z(this,o).addEventListener("submit",z(this,f)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const p in z(this,a))if(z(this,a)[p].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return z(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,d=function(){z(this,o)&&z(this,o).removeEventListener("submit",z(this,f))},h=function(){this._pristine!==!0&&(z(this,t).valid?this.dispatchEvent(new ze(ze.VALID)):this.dispatchEvent(new ze(ze.INVALID)))},f=new WeakMap,g.formAssociated=!0,Xe([l({type:String})],g.prototype,"name",2),Xe([l()],g.prototype,"value",1),Xe([l({type:Boolean,reflect:!0,attribute:"pristine"})],g.prototype,"pristine",1),Xe([l({type:Boolean,reflect:!0})],g.prototype,"required",2),Xe([l({type:String,attribute:"required-message"})],g.prototype,"requiredMessage",2),Xe([l({type:Boolean,reflect:!0})],g.prototype,"error",2),Xe([l({type:String,attribute:"error-message"})],g.prototype,"errorMessage",2),g},ou=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};var ru=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,Pn=i=>{throw TypeError(i)},su=(i,e,t,r)=>{for(var o=r>1?void 0:r?nu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ru(e,t,o),o},An=(i,e,t)=>e.has(i)||Pn("Cannot "+t),On=(i,e,t)=>(An(i,e,"read from private field"),t?t.call(i):e.get(i)),zn=(i,e,t)=>e.has(i)?Pn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),au=(i,e,t,r)=>(An(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t);const lu=i=>{var e,t;class r extends i{constructor(...s){super(...s),zn(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=ou(this,"id",this.popoverContainerElement);a&&(On(this,e)?a.hidePopover():a.showPopover())},zn(this,t,a=>{requestAnimationFrame(()=>{au(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",On(this,t))}}return e=new WeakMap,t=new WeakMap,su([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement",2),r};let A=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},gt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};gt.VALID="valid",gt.INVALID="invalid";let Le=class extends A{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Le.SELECTED="selected",Le.DESELECTED="deselected";let Ci=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ci.CHANGE="change";var uu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,Jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?cu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&uu(e,t,o),o};let te=class extends ue(le("",v),""){constructor(e="checkbox"){super(),this._value="",this.labelPosition="right",this._checked=!1,this.disabled=!1,this.readonly=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const t=super.value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){super.firstUpdated(e);const t=this.shadowRoot?.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),t.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),t.addEventListener("mouseup",()=>{r=!1})}async focus(){await this.updateComplete,this._input.focus()}async click(){await this.updateComplete,this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new Ci(Ci.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled||this.readonly}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};te.styles=[b`:host{display:inline-block}label{position:relative;cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}:host([readonly]) label{cursor:text;user-select:auto}input{position:absolute;height:0;width:0;opacity:0}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) .label{opacity:.5}`],Jt([l({type:String,attribute:"label-position",reflect:!0})],te.prototype,"labelPosition",2),Jt([l({type:Boolean})],te.prototype,"checked",1),Jt([l({type:Boolean,reflect:!0})],te.prototype,"disabled",2),Jt([l({type:Boolean,reflect:!0})],te.prototype,"readonly",2),Jt([P("#input")],te.prototype,"_input",2);/**
212
212
  * @license
213
213
  * Copyright 2020 Google LLC
214
214
  * SPDX-License-Identifier: BSD-3-Clause
215
- */const Ln=Symbol.for(""),du=i=>{if(i?.r===Ln)return i?._$litStatic$},Tn=i=>({_$litStatic$:i,r:Ln}),Nn=new Map,hu=i=>(e,...t)=>{const r=t.length;let o,s;const a=[],c=[];let d,h=0,f=!1;for(;h<r;){for(d=e[h];h<r&&(s=t[h],(o=du(s))!==void 0);)d+=o+e[++h],f=!0;h!==r&&c.push(s),a.push(d),h++}if(h===r&&a.push(e[r]),f){const g=a.join("$$lit$$");(e=Nn.get(g))===void 0&&(a.raw=a,Nn.set(g,e=a)),t=c}return i(e,...t)},Mn=hu(u);var pu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,Ze=(i,e,t,r)=>{for(var o=r>1?void 0:r?bu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pu(e,t,o),o};function Vo(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}n.UUIBoxElement=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag="h5",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=Vo(e.target)},this._headerSlotHasContent=!1,this._headerSlotChanged=e=>{this._headerSlotHasContent=Vo(e.target)},this._headerActionsSlotHasContent=!1,this._headerActionsSlotChanged=e=>{this._headerActionsSlotHasContent=Vo(e.target)}}set headlineVariant(e){this._headlineVariantTag=e}get headlineVariant(){return this._headlineVariantTag}renderHeader(){return Mn`<div
215
+ */const Ln=Symbol.for(""),du=i=>{if(i?.r===Ln)return i?._$litStatic$},Tn=i=>({_$litStatic$:i,r:Ln}),Mn=new Map,hu=i=>(e,...t)=>{const r=t.length;let o,s;const a=[],c=[];let d,h=0,f=!1;for(;h<r;){for(d=e[h];h<r&&(s=t[h],(o=du(s))!==void 0);)d+=o+e[++h],f=!0;h!==r&&c.push(s),a.push(d),h++}if(h===r&&a.push(e[r]),f){const g=a.join("$$lit$$");(e=Mn.get(g))===void 0&&(a.raw=a,Mn.set(g,e=a)),t=c}return i(e,...t)},Nn=hu(u);var pu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,Ze=(i,e,t,r)=>{for(var o=r>1?void 0:r?bu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pu(e,t,o),o};function Vo(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}n.UUIBoxElement=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag="h5",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=Vo(e.target)},this._headerSlotHasContent=!1,this._headerSlotChanged=e=>{this._headerSlotHasContent=Vo(e.target)},this._headerActionsSlotHasContent=!1,this._headerActionsSlotChanged=e=>{this._headerActionsSlotHasContent=Vo(e.target)}}set headlineVariant(e){this._headlineVariantTag=e}get headlineVariant(){return this._headlineVariantTag}renderHeader(){return Nn`<div
216
216
  id="header"
217
217
  class="uui-text"
218
218
  style=${this._headerSlotHasContent||this._headlineSlotHasContent||this._headerActionsSlotHasContent||this.headline!==null?"":"display: none"}>
@@ -225,7 +225,7 @@
225
225
  </${Tn(this._headlineVariantTag)}>
226
226
  <slot name="header" @slotchange=${this._headerSlotChanged}></slot>
227
227
  <slot name="header-actions" @slotchange=${this._headerActionsSlotChanged}></slot>
228
- </div>`}render(){return Mn`
228
+ </div>`}render(){return Nn`
229
229
  ${this.renderHeader()}
230
230
  <slot></slot>
231
231
  `}},n.UUIBoxElement.styles=[Ui,b`
@@ -269,7 +269,7 @@
269
269
  * @license
270
270
  * Copyright 2018 Google LLC
271
271
  * SPDX-License-Identifier: BSD-3-Clause
272
- */const U=i=>i??k;let Ai=class extends A{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t})}};Ai.CLICK="click";var Eu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,jn=i=>{throw TypeError(i)},Qe=(i,e,t,r)=>{for(var o=r>1?void 0:r?$u(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eu(e,t,o),o},ku=(i,e,t)=>e.has(i)||jn("Cannot "+t),Iu=(i,e,t)=>e.has(i)?jn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Oi=(i,e,t)=>(ku(i,e,"access private method"),t),yt,Ro,Vn,Hn;n.UUIButtonInlineCreateElement=class extends v{constructor(){super(...arguments),Iu(this,yt),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=(this.vertical?e.offsetY:e.offsetX)-5}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),e.target?.blur?.(),this.dispatchEvent(new Ai(Ai.CLICK))}render(){return this.href?Oi(this,yt,Vn).call(this):Oi(this,yt,Hn).call(this)}},yt=new WeakSet,Ro=function(){return u`<div id="plus" style="${ce({left:this.vertical?"":this._position+"px",top:this.vertical?this._position+"px":""})}"><svg id="plus-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg></div>`},Vn=function(){return u`<a id="button-wrapper" @mousemove="${this._onMouseMove}" href="${U(this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}" aria-label="${this.label?this.label:"create new element"}">${Oi(this,yt,Ro).call(this)}</a>`},Hn=function(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}">${Oi(this,yt,Ro).call(this)}</button>`},n.UUIButtonInlineCreateElement.styles=[yu,b`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${wu};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-18px}:host([vertical]) #plus{left:-4px;margin-top:-18px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],Qe([y()],n.UUIButtonInlineCreateElement.prototype,"_position",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),Qe([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"href",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"target",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"rel",2),n.UUIButtonInlineCreateElement=Qe([m("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let xu=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const $=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},Rn=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,d=s.top+a.scrollY;let h;o instanceof TouchEvent?h=o.touches[0]:h=o;const f=h.pageX-c,g=h.pageY-d;e?.onMove&&e.onMove(f,g)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},L=(i,e,t)=>Math.min(Math.max(i,e),t),Fn=(i,e,t)=>t+e-i,Cu=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function Su(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}const zi=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,Pu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,Au=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,Ou=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,Fo=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,zu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,Lu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,Tu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,Nu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;var Mu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,oe=(i,e,t,r)=>{for(var o=r>1?void 0:r?Du(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mu(e,t,o),o};n.UUIButtonElement=class extends ue(le("",lu(v)),void 0){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}async focus(){await this.updateComplete,this._button.focus()}async blur(){await this.updateComplete,this._button.blur()}async click(){await this.updateComplete,this._button.click()}_onHostClick(e){if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if(this._internals?.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":$(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":$(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${zi.strings[0]}"></uui-icon>`;break;case"failed":$(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${Nu.strings[0]}"></uui-icon>`;break;default:return k}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${U(this.label)}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${U(this.label)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUIButtonElement.styles=[Si,b`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none;transition:var(--uui-button-transition,none)}#button:focus-visible{outline:2px solid var(--color-emphasis)}a:not([href]):active,button[disabled]:active{animation:${Pi}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}#icon-check,#icon-wrong{display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-emphasis:var(--uui-color-positive-emphasis,rgb(13, 155, 98));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(251, 224, 101));--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]) #button{--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-danger-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-danger-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary]) #button:focus-visible{outline-offset:2px}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],oe([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),oe([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),oe([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),oe([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),oe([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),oe([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),oe([l({type:String})],n.UUIButtonElement.prototype,"href",2),oe([l({type:String})],n.UUIButtonElement.prototype,"target",2),oe([l({type:String})],n.UUIButtonElement.prototype,"rel",2),oe([P("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=oe([m("uui-button")],n.UUIButtonElement);let wt=class extends A{};wt.OPEN="open";var Bu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,_t=(i,e,t,r)=>{for(var o=r>1?void 0:r?ju(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bu(e,t,o),o};n.UUICardElement=class extends Ii(mt(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new wt(wt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new wt(wt.OPEN)))}render(){return u`<slot></slot>`}},n.UUICardElement.styles=[b`:host{position:relative;display:flex;width:100%;justify-content:center;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));border-radius:var(--uui-border-radius,3px);min-height:var(--uui-layout-medium);background-color:var(--uui-color-surface,#fff);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(*) *{outline-color:var(--uui-color-focus,#3879ff)}:host(:focus){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host([error])::before{content:'';position:absolute;pointer-events:none;inset:0;width:100%;height:100%;z-index:1;box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-danger,#d42054);border-radius:var(--uui-border-radius,3px)}:host([selectable]){cursor:pointer}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([selectable])::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-card-border-width) * -1);width:calc(100% + calc(var(--uui-card-border-width) * 2));height:calc(100% + calc(var(--uui-card-border-width) * 2));box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-card-border-width));transition:opacity .1s ease-out;opacity:0}:host([selectable]:hover)::after{opacity:.33}:host([selectable][selected]:hover)::after{opacity:.66}:host([selectable][selected])::after{opacity:1}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}a{text-decoration:none;color:inherit}`],_t([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),_t([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),_t([l({type:String})],n.UUICardElement.prototype,"href",2),_t([l({type:String})],n.UUICardElement.prototype,"target",2),_t([l({type:String})],n.UUICardElement.prototype,"rel",2),n.UUICardElement=_t([m("uui-card")],n.UUICardElement);var Vu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Gn=i=>{throw TypeError(i)},Li=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vu(e,t,o),o},Ru=(i,e,t)=>e.has(i)||Gn("Cannot "+t),Fu=(i,e,t)=>e.has(i)?Gn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),qn=(i,e,t)=>(Ru(i,e,"access private method"),t),Ti,Wn,Kn;n.UUICardBlockTypeElement=class extends n.UUICardElement{constructor(){super(...arguments),Fu(this,Ti),this.name=""}render(){return u`<div id="portrait" style="${ce({backgroundColor:this.background})}"><slot></slot></div>${this.href?qn(this,Ti,Kn).call(this):qn(this,Ti,Wn).call(this)}<slot name="tag"></slot><slot name="actions"></slot>`}},Ti=new WeakSet,Wn=function(){return u`<button id="open-part" tabindex="${this.disabled?k:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><strong>${this.name}</strong><small>${this.description}</small></button>`},Kn=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><strong>${this.name}</strong><small>${this.description}</small></a>`},n.UUICardBlockTypeElement.styles=[...n.UUICardElement.styles,b`:host{flex-direction:column;justify-content:flex-start}:host(:hover) #info{color:var(--uui-color-interactive-emphasis,#3544b1)}#portrait{background-color:var(--uui-color-surface-alt,#f3f3f5);display:flex;justify-content:center;min-height:150px;max-height:150px}slot:not([name])::slotted(*){align-self:center;font-size:var(--uui-size-8,24px);border-radius:var(--uui-border-radius,3px);object-fit:cover;max-width:100%;max-height:100%}#open-part{text-align:left;background-color:var(--uui-color-surface,#fff);cursor:pointer;color:var(--uui-color-interactive,#1b264f);border:none;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);display:flex;flex-direction:column;line-height:var(--uui-size-6,18px)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover strong{text-decoration:underline}#open-part:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],Li([l({type:String})],n.UUICardBlockTypeElement.prototype,"name",2),Li([l({type:String})],n.UUICardBlockTypeElement.prototype,"description",2),Li([l({type:String,attribute:"background"})],n.UUICardBlockTypeElement.prototype,"background",2),n.UUICardBlockTypeElement=Li([m("uui-card-block-type")],n.UUICardBlockTypeElement);var Gu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Xn=i=>{throw TypeError(i)},Go=(i,e,t,r)=>{for(var o=r>1?void 0:r?qu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gu(e,t,o),o},Wu=(i,e,t)=>e.has(i)||Xn("Cannot "+t),Ku=(i,e,t)=>e.has(i)?Xn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Yn=(i,e,t)=>(Wu(i,e,"access private method"),t),Ni,Zn,Qn;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Ku(this,Ni),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return $(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`${this.href?Yn(this,Ni,Qn).call(this):Yn(this,Ni,Zn).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},Ni=new WeakSet,Zn=function(){return u`<div id="open-part" tabindex="${this.disabled?k:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></div>`},Qn=function(){return u`<a id="open-part" tabindex="${this.disabled?k:0}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></a>`},n.UUICardContentNodeElement.styles=[...n.UUICardElement.styles,b`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px) var(--uui-size-4,12px)}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name]){display:block;margin:var(--uui-size-1,3px);margin-top:var(--uui-size-3,9px)}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:calc(2 * var(--uui-size-3,9px))}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer}:host([disabled]) #open-part{pointer-events:none}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}#name{margin-top:4px}`],Go([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Go([y()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Go([m("uui-card-content-node")],n.UUICardContentNodeElement);var Xu=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,Jn=i=>{throw TypeError(i)},Mi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xu(e,t,o),o},Zu=(i,e,t)=>e.has(i)||Jn("Cannot "+t),Qu=(i,e,t)=>e.has(i)?Jn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),es=(i,e,t)=>(Zu(i,e,"access private method"),t),Di,ts,is;n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments),Qu(this,Di),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}queryPreviews(e){this.hasPreview=e.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?u`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:u`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`}render(){return u`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot>${this.href?es(this,Di,is).call(this):es(this,Di,ts).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},Di=new WeakSet,ts=function(){return u`<button id="open-part" tabindex="${this.disabled?k:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button>`},is=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><span>${this.name}</span></a>`},n.UUICardMediaElement.styles=[...n.UUICardElement.styles,b`#file-symbol,#folder-symbol{align-self:center;margin:var(--uui-size-14,42px);width:80%}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;width:100%;height:100%}#open-part{position:absolute;bottom:0;width:100%;background-color:var(--uui-color-surface,#fff);color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);display:flex;justify-content:flex-start;align-items:center;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);text-align:left;word-break:break-word}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],Mi([l({type:String})],n.UUICardMediaElement.prototype,"name",2),Mi([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),Mi([y()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=Mi([m("uui-card-media")],n.UUICardMediaElement);var Ju=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,os=i=>{throw TypeError(i)},qo=(i,e,t,r)=>{for(var o=r>1?void 0:r?ec(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ju(e,t,o),o},tc=(i,e,t)=>e.has(i)||os("Cannot "+t),ic=(i,e,t)=>e.has(i)?os("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),rs=(i,e,t)=>(tc(i,e,"access private method"),t),Bi,ns,ss;n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments),ic(this,Bi),this.name="",this._avatarSlotHasContent=!1,this._avatarSlotChanged=e=>{this._avatarSlotHasContent=Su(e.target)}}connectedCallback(){super.connectedCallback(),$(this,"uui-avatar")}render(){return u`${this._avatarSlotHasContent?k:u`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar>`}<slot name="avatar" id="avatar" @slotchange="${this._avatarSlotChanged}"></slot>${this.href?rs(this,Bi,ss).call(this):rs(this,Bi,ns).call(this)}<slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},Bi=new WeakSet,ns=function(){return u`<div id="open-part" tabindex="${this.disabled?k:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div>`},ss=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><span>${this.name}</span></a>`},n.UUICardUserElement.styles=[...n.UUICardElement.styles,b`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px);align-items:center}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:var(--uui-size-6,18px)}::slotted(*){text-align:center}slot[name=tag]{position:absolute;top:6px;right:6px;display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#avatar{margin:var(--uui-size-3,9px)}slot[name=icon]::slotted(*){font-size:1.2em}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;margin:0 0 3px 0}:host([disabled]) #open-part{pointer-events:none}#open-part>span{vertical-align:center;margin-top:3px}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}`],qo([l({type:String})],n.UUICardUserElement.prototype,"name",2),qo([y()],n.UUICardUserElement.prototype,"_avatarSlotHasContent",2),n.UUICardUserElement=qo([m("uui-card-user")],n.UUICardUserElement);var oc=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,as=(i,e,t,r)=>{for(var o=r>1?void 0:r?rc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&oc(e,t,o),o};n.UUICaretElement=class extends v{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return u`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUICaretElement.styles=[b`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform-origin:50% 50%;transition:transform 280ms cubic-bezier(.17,-.88,.82,1.84)}:host([open]) svg{transform:rotate(180deg)}`],as([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=as([m("uui-caret")],n.UUICaretElement);var nc=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,ac=(i,e,t,r)=>{for(var o=r>1?void 0:r?sc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nc(e,t,o),o};n.UUICheckboxElement=class extends te{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${zi}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...te.styles,Si,b`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;width:var(--uui-checkbox-size);height:var(--uui-checkbox-size);border-radius:var(--uui-checkbox-border-radius,var(--uui-border-radius,3px));color:var(--uui-toggle-color,var(--uui-color-selected-contrast,#fff));background-color:var(--uui-toggle-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-checkbox-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;color:var(--uui-color-selected-contrast,#fff);opacity:0}#ticker::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:calc(var(--uui-checkbox-border-radius,var(--uui-border-radius,3px)) * .5);background-color:var(--uui-color-selected,#3544b1);transition:transform 120ms ease,opacity 120ms,background-color 120ms;transform:scale(0);opacity:0}label:hover input:checked:not([disabled])+#ticker::before{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:checked+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check{opacity:1}label:focus input:checked+#ticker{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) #ticker,:host(:not([pristine])[internals-invalid]) label:focus input:checked+#ticker,:host(:not([pristine])[internals-invalid]) label:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked:not([disabled])+#ticker{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([disabled]) #ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker::before{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${Pi}}:host([disabled]) input:checked+#ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],n.UUICheckboxElement=ac([m("uui-checkbox")],n.UUICheckboxElement);/**
272
+ */const U=i=>i??k;let Ai=class extends A{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t})}};Ai.CLICK="click";var Eu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,jn=i=>{throw TypeError(i)},Qe=(i,e,t,r)=>{for(var o=r>1?void 0:r?$u(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eu(e,t,o),o},ku=(i,e,t)=>e.has(i)||jn("Cannot "+t),Iu=(i,e,t)=>e.has(i)?jn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Oi=(i,e,t)=>(ku(i,e,"access private method"),t),yt,Ro,Vn,Hn;n.UUIButtonInlineCreateElement=class extends v{constructor(){super(...arguments),Iu(this,yt),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=(this.vertical?e.offsetY:e.offsetX)-5}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),e.target?.blur?.(),this.dispatchEvent(new Ai(Ai.CLICK))}render(){return this.href?Oi(this,yt,Vn).call(this):Oi(this,yt,Hn).call(this)}},yt=new WeakSet,Ro=function(){return u`<div id="plus" style="${ce({left:this.vertical?"":this._position+"px",top:this.vertical?this._position+"px":""})}"><svg id="plus-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg></div>`},Vn=function(){return u`<a id="button-wrapper" @mousemove="${this._onMouseMove}" href="${U(this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}" aria-label="${this.label?this.label:"create new element"}">${Oi(this,yt,Ro).call(this)}</a>`},Hn=function(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}">${Oi(this,yt,Ro).call(this)}</button>`},n.UUIButtonInlineCreateElement.styles=[yu,b`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${wu};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-18px}:host([vertical]) #plus{left:-4px;margin-top:-18px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],Qe([y()],n.UUIButtonInlineCreateElement.prototype,"_position",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),Qe([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"href",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"target",2),Qe([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"rel",2),n.UUIButtonInlineCreateElement=Qe([m("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let xu=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const $=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},Rn=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,d=s.top+a.scrollY;let h;o instanceof TouchEvent?h=o.touches[0]:h=o;const f=h.pageX-c,g=h.pageY-d;e?.onMove&&e.onMove(f,g)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},L=(i,e,t)=>Math.min(Math.max(i,e),t),Fn=(i,e,t)=>t+e-i,Cu=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function Su(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}const zi=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,Pu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,Au=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,Ou=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,Fo=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,zu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,Lu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,Tu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,Mu=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;var Nu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,oe=(i,e,t,r)=>{for(var o=r>1?void 0:r?Du(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nu(e,t,o),o};n.UUIButtonElement=class extends ue(le("",lu(v)),void 0){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}async focus(){await this.updateComplete,this._button.focus()}async blur(){await this.updateComplete,this._button.blur()}async click(){await this.updateComplete,this._button.click()}_onHostClick(e){if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if(this._internals?.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":$(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":$(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${zi.strings[0]}"></uui-icon>`;break;case"failed":$(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${Mu.strings[0]}"></uui-icon>`;break;default:return k}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${U(this.label)}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${U(this.label)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUIButtonElement.styles=[Si,b`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none;transition:var(--uui-button-transition,none)}#button:focus-visible{outline:2px solid var(--color-emphasis)}a:not([href]):active,button[disabled]:active{animation:${Pi}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}#icon-check,#icon-wrong{display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-emphasis:var(--uui-color-positive-emphasis,rgb(13, 155, 98));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(251, 224, 101));--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]) #button{--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-danger-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-danger-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary]) #button:focus-visible{outline-offset:2px}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],oe([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),oe([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),oe([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),oe([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),oe([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),oe([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),oe([l({type:String})],n.UUIButtonElement.prototype,"href",2),oe([l({type:String})],n.UUIButtonElement.prototype,"target",2),oe([l({type:String})],n.UUIButtonElement.prototype,"rel",2),oe([P("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=oe([m("uui-button")],n.UUIButtonElement);let wt=class extends A{};wt.OPEN="open";var Bu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,_t=(i,e,t,r)=>{for(var o=r>1?void 0:r?ju(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Bu(e,t,o),o};n.UUICardElement=class extends Ii(mt(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new wt(wt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new wt(wt.OPEN)))}render(){return u`<slot></slot>`}},n.UUICardElement.styles=[b`:host{position:relative;display:flex;width:100%;justify-content:center;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));border-radius:var(--uui-border-radius,3px);min-height:var(--uui-layout-medium);background-color:var(--uui-color-surface,#fff);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(*) *{outline-color:var(--uui-color-focus,#3879ff)}:host(:focus){outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host([error])::before{content:'';position:absolute;pointer-events:none;inset:0;width:100%;height:100%;z-index:1;box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-danger,#d42054);border-radius:var(--uui-border-radius,3px)}:host([selectable]){cursor:pointer}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([selectable])::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-card-border-width) * -1);width:calc(100% + calc(var(--uui-card-border-width) * 2));height:calc(100% + calc(var(--uui-card-border-width) * 2));box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-card-border-width));transition:opacity .1s ease-out;opacity:0}:host([selectable]:hover)::after{opacity:.33}:host([selectable][selected]:hover)::after{opacity:.66}:host([selectable][selected])::after{opacity:1}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}a{text-decoration:none;color:inherit}`],_t([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),_t([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),_t([l({type:String})],n.UUICardElement.prototype,"href",2),_t([l({type:String})],n.UUICardElement.prototype,"target",2),_t([l({type:String})],n.UUICardElement.prototype,"rel",2),n.UUICardElement=_t([m("uui-card")],n.UUICardElement);var Vu=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Gn=i=>{throw TypeError(i)},Li=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vu(e,t,o),o},Ru=(i,e,t)=>e.has(i)||Gn("Cannot "+t),Fu=(i,e,t)=>e.has(i)?Gn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),qn=(i,e,t)=>(Ru(i,e,"access private method"),t),Ti,Wn,Kn;n.UUICardBlockTypeElement=class extends n.UUICardElement{constructor(){super(...arguments),Fu(this,Ti),this.name=""}render(){return u`<div id="portrait" style="${ce({backgroundColor:this.background})}"><slot></slot></div>${this.href?qn(this,Ti,Kn).call(this):qn(this,Ti,Wn).call(this)}<slot name="tag"></slot><slot name="actions"></slot>`}},Ti=new WeakSet,Wn=function(){return u`<button id="open-part" tabindex="${this.disabled?k:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><strong>${this.name}</strong><small>${this.description}</small></button>`},Kn=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><strong>${this.name}</strong><small>${this.description}</small></a>`},n.UUICardBlockTypeElement.styles=[...n.UUICardElement.styles,b`:host{flex-direction:column;justify-content:flex-start}:host(:hover) #info{color:var(--uui-color-interactive-emphasis,#3544b1)}#portrait{background-color:var(--uui-color-surface-alt,#f3f3f5);display:flex;justify-content:center;min-height:150px;max-height:150px}slot:not([name])::slotted(*){align-self:center;font-size:var(--uui-size-8,24px);border-radius:var(--uui-border-radius,3px);object-fit:cover;max-width:100%;max-height:100%}#open-part{text-align:left;background-color:var(--uui-color-surface,#fff);cursor:pointer;color:var(--uui-color-interactive,#1b264f);border:none;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);display:flex;flex-direction:column;line-height:var(--uui-size-6,18px)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover strong{text-decoration:underline}#open-part:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],Li([l({type:String})],n.UUICardBlockTypeElement.prototype,"name",2),Li([l({type:String})],n.UUICardBlockTypeElement.prototype,"description",2),Li([l({type:String,attribute:"background"})],n.UUICardBlockTypeElement.prototype,"background",2),n.UUICardBlockTypeElement=Li([m("uui-card-block-type")],n.UUICardBlockTypeElement);var Gu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Xn=i=>{throw TypeError(i)},Go=(i,e,t,r)=>{for(var o=r>1?void 0:r?qu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gu(e,t,o),o},Wu=(i,e,t)=>e.has(i)||Xn("Cannot "+t),Ku=(i,e,t)=>e.has(i)?Xn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Yn=(i,e,t)=>(Wu(i,e,"access private method"),t),Mi,Zn,Qn;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Ku(this,Mi),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(e){this._iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return $(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`${this.href?Yn(this,Mi,Qn).call(this):Yn(this,Mi,Zn).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},Mi=new WeakSet,Zn=function(){return u`<div id="open-part" tabindex="${this.disabled?k:0}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></div>`},Qn=function(){return u`<a id="open-part" tabindex="${this.disabled?k:0}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""} </span><span id="name">${this.name}</span></a>`},n.UUICardContentNodeElement.styles=[...n.UUICardElement.styles,b`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px) var(--uui-size-4,12px)}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name]){display:block;margin:var(--uui-size-1,3px);margin-top:var(--uui-size-3,9px)}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:calc(2 * var(--uui-size-3,9px))}#icon{font-size:1.2em;margin-right:var(--uui-size-1,3px)}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer}:host([disabled]) #open-part{pointer-events:none}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}#name{margin-top:4px}`],Go([l({type:String})],n.UUICardContentNodeElement.prototype,"name",2),Go([y()],n.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),n.UUICardContentNodeElement=Go([m("uui-card-content-node")],n.UUICardContentNodeElement);var Xu=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,Jn=i=>{throw TypeError(i)},Ni=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xu(e,t,o),o},Zu=(i,e,t)=>e.has(i)||Jn("Cannot "+t),Qu=(i,e,t)=>e.has(i)?Jn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),es=(i,e,t)=>(Zu(i,e,"access private method"),t),Di,ts,is;n.UUICardMediaElement=class extends n.UUICardElement{constructor(){super(...arguments),Qu(this,Di),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}queryPreviews(e){this.hasPreview=e.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?u`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:u`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`}render(){return u`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot>${this.href?es(this,Di,is).call(this):es(this,Di,ts).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},Di=new WeakSet,ts=function(){return u`<button id="open-part" tabindex="${this.disabled?k:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button>`},is=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><span>${this.name}</span></a>`},n.UUICardMediaElement.styles=[...n.UUICardElement.styles,b`#file-symbol,#folder-symbol{align-self:center;margin:var(--uui-size-14,42px);width:80%}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;width:100%;height:100%}#open-part{position:absolute;bottom:0;width:100%;background-color:var(--uui-color-surface,#fff);color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);display:flex;justify-content:flex-start;align-items:center;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);text-align:left;word-break:break-word}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}`],Ni([l({type:String})],n.UUICardMediaElement.prototype,"name",2),Ni([l({type:String,attribute:"file-ext"})],n.UUICardMediaElement.prototype,"fileExt",2),Ni([y()],n.UUICardMediaElement.prototype,"hasPreview",2),n.UUICardMediaElement=Ni([m("uui-card-media")],n.UUICardMediaElement);var Ju=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,os=i=>{throw TypeError(i)},qo=(i,e,t,r)=>{for(var o=r>1?void 0:r?ec(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ju(e,t,o),o},tc=(i,e,t)=>e.has(i)||os("Cannot "+t),ic=(i,e,t)=>e.has(i)?os("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),rs=(i,e,t)=>(tc(i,e,"access private method"),t),Bi,ns,ss;n.UUICardUserElement=class extends n.UUICardElement{constructor(){super(...arguments),ic(this,Bi),this.name="",this._avatarSlotHasContent=!1,this._avatarSlotChanged=e=>{this._avatarSlotHasContent=Su(e.target)}}connectedCallback(){super.connectedCallback(),$(this,"uui-avatar")}render(){return u`${this._avatarSlotHasContent?k:u`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar>`}<slot name="avatar" id="avatar" @slotchange="${this._avatarSlotChanged}"></slot>${this.href?rs(this,Bi,ss).call(this):rs(this,Bi,ns).call(this)}<slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},Bi=new WeakSet,ns=function(){return u`<div id="open-part" tabindex="${this.disabled?k:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div>`},ss=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}"><span>${this.name}</span></a>`},n.UUICardUserElement.styles=[...n.UUICardElement.styles,b`:host{min-width:250px;flex-direction:column;justify-content:space-between;padding:var(--uui-size-3,9px);align-items:center}slot:not([name])::slotted(*){font-size:var(--uui-type-small-size,12px);line-height:var(--uui-size-6,18px)}::slotted(*){text-align:center}slot[name=tag]{position:absolute;top:6px;right:6px;display:flex;justify-content:right}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#avatar{margin:var(--uui-size-3,9px)}slot[name=icon]::slotted(*){font-size:1.2em}#open-part{display:flex;position:relative;font-weight:700;align-items:center;cursor:pointer;margin:0 0 3px 0}:host([disabled]) #open-part{pointer-events:none}#open-part>span{vertical-align:center;margin-top:3px}#open-part:hover{text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}`],qo([l({type:String})],n.UUICardUserElement.prototype,"name",2),qo([y()],n.UUICardUserElement.prototype,"_avatarSlotHasContent",2),n.UUICardUserElement=qo([m("uui-card-user")],n.UUICardUserElement);var oc=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,as=(i,e,t,r)=>{for(var o=r>1?void 0:r?rc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&oc(e,t,o),o};n.UUICaretElement=class extends v{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return u`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUICaretElement.styles=[b`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform-origin:50% 50%;transition:transform 280ms cubic-bezier(.17,-.88,.82,1.84)}:host([open]) svg{transform:rotate(180deg)}`],as([l({type:Boolean,reflect:!0})],n.UUICaretElement.prototype,"open",2),n.UUICaretElement=as([m("uui-caret")],n.UUICaretElement);var nc=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,ac=(i,e,t,r)=>{for(var o=r>1?void 0:r?sc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nc(e,t,o),o};n.UUICheckboxElement=class extends te{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${zi}</div></div>`}},n.UUICheckboxElement.formAssociated=!0,n.UUICheckboxElement.styles=[...te.styles,Si,b`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;width:var(--uui-checkbox-size);height:var(--uui-checkbox-size);border-radius:var(--uui-checkbox-border-radius,var(--uui-border-radius,3px));color:var(--uui-toggle-color,var(--uui-color-selected-contrast,#fff));background-color:var(--uui-toggle-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-checkbox-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-checkbox-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked+#ticker{border-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;color:var(--uui-color-selected-contrast,#fff);opacity:0}#ticker::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:calc(var(--uui-checkbox-border-radius,var(--uui-border-radius,3px)) * .5);background-color:var(--uui-color-selected,#3544b1);transition:transform 120ms ease,opacity 120ms,background-color 120ms;transform:scale(0);opacity:0}label:hover input:checked:not([disabled])+#ticker::before{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:checked+#ticker::before{transform:scale(1);opacity:1}input:checked+#ticker #icon-check{opacity:1}label:focus input:checked+#ticker{background-color:var(--uui-color-selected-emphasis,#4656c8)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active input:checked+#ticker::before{transform:scale(.9)}:host(:not([pristine]):invalid) #ticker,:host(:not([pristine]):invalid) label:focus input:checked+#ticker,:host(:not([pristine]):invalid) label:hover #ticker,:host(:not([pristine]):invalid) label:hover input:checked:not([disabled])+#ticker,:host(:not([pristine])[internals-invalid]) #ticker,:host(:not([pristine])[internals-invalid]) label:focus input:checked+#ticker,:host(:not([pristine])[internals-invalid]) label:hover #ticker,:host(:not([pristine])[internals-invalid]) label:hover input:checked:not([disabled])+#ticker{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([disabled]) #ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker::before{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${Pi}}:host([disabled]) input:checked+#ticker #icon-check{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],n.UUICheckboxElement=ac([m("uui-checkbox")],n.UUICheckboxElement);/**
273
273
  * @license
274
274
  * Copyright 2018 Google LLC
275
275
  * SPDX-License-Identifier: BSD-3-Clause
@@ -281,7 +281,7 @@
281
281
  * @license
282
282
  * Copyright 2020 Google LLC
283
283
  * SPDX-License-Identifier: BSD-3-Clause
284
- */const wc=vt(class extends ft{constructor(i){if(super(i),i.type!==ie.PROPERTY&&i.type!==ie.ATTRIBUTE&&i.type!==ie.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ys(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===W||e===k)return e;const t=i.element,r=i.name;if(i.type===ie.PROPERTY){if(e===t[r])return W}else if(i.type===ie.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return W}else if(i.type===ie.ATTRIBUTE&&t.getAttribute(r)===e+"")return W;return _s(i),e}});var _c={grad:.9,turn:360,rad:360/(2*Math.PI)},Ue=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},j=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},ee=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Us=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Es=function(i){return{r:ee(i.r,0,255),g:ee(i.g,0,255),b:ee(i.b,0,255),a:ee(i.a)}},Qo=function(i){return{r:j(i.r),g:j(i.g),b:j(i.b),a:j(i.a,3)}},Uc=/^#([0-9a-f]{3,8})$/i,Hi=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},$s=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},ks=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),d=r*(1-(1-e+s)*t),h=s%6;return{r:255*[r,c,a,a,d,r][h],g:255*[d,r,r,c,a,a][h],b:255*[a,a,d,r,r,c][h],a:o}},Is=function(i){return{h:Us(i.h),s:ee(i.s,0,100),l:ee(i.l,0,100),a:ee(i.a)}},xs=function(i){return{h:j(i.h),s:j(i.s),l:j(i.l),a:j(i.a,3)}},Cs=function(i){return ks((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},ii=function(i){return{h:(e=$s(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},Ec=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$c=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ic=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jo={string:[[function(i){var e=Uc.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?j(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?j(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=kc.exec(i)||Ic.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Es({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=Ec.exec(i)||$c.exec(i);if(!e)return null;var t,r,o=Is({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(_c[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Cs(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return Ue(e)&&Ue(t)&&Ue(r)?Es({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!Ue(e)||!Ue(t)||!Ue(r))return null;var a=Is({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return Cs(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!Ue(e)||!Ue(t)||!Ue(r))return null;var a=function(c){return{h:Us(c.h),s:ee(c.s,0,100),v:ee(c.v,0,100),a:ee(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return ks(a)},"hsv"]]},Ss=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},xc=function(i){return typeof i=="string"?Ss(i.trim(),Jo.string):typeof i=="object"&&i!==null?Ss(i,Jo.object):[null,void 0]},er=function(i,e){var t=ii(i);return{h:t.h,s:ee(t.s+100*e,0,100),l:t.l,a:t.a}},tr=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Ps=function(i,e){var t=ii(i);return{h:t.h,s:t.s,l:ee(t.l+100*e,0,100),a:t.a}},Ri=function(){function i(e){this.parsed=xc(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return j(tr(this.rgba),2)},i.prototype.isDark=function(){return tr(this.rgba)<.5},i.prototype.isLight=function(){return tr(this.rgba)>=.5},i.prototype.toHex=function(){return e=Qo(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?Hi(j(255*s)):"","#"+Hi(t)+Hi(r)+Hi(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return Qo(this.rgba)},i.prototype.toRgbString=function(){return e=Qo(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return xs(ii(this.rgba))},i.prototype.toHslString=function(){return e=xs(ii(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=$s(this.rgba),{h:j(e.h),s:j(e.s),v:j(e.v),a:j(e.a,3)};var e},i.prototype.invert=function(){return re({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),re(er(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),re(er(this.rgba,-e))},i.prototype.grayscale=function(){return re(er(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),re(Ps(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),re(Ps(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?re({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):j(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=ii(this.rgba);return typeof e=="number"?re({h:e,s:t.s,l:t.l,a:t.a}):j(t.h)},i.prototype.isEqual=function(e){return this.toHex()===re(e).toHex()},i}(),re=function(i){return i instanceof Ri?i:new Ri(i)},As=[],Cc=function(i){i.forEach(function(e){As.indexOf(e)<0&&(e(Ri,Jo),As.push(e))})};function Sc(i,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in t)r[t[o]]=o;var s={};i.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var c,d,h=r[this.toHex()];if(h)return h;if(a?.closest){var f=this.toRgb(),g=1/0,_="black";if(!s.length)for(var p in t)s[p]=new i(t[p]).toRgb();for(var w in t){var C=(c=f,d=s[w],Math.pow(c.r-d.r,2)+Math.pow(c.g-d.g,2)+Math.pow(c.b-d.b,2));C<g&&(g=C,_=w)}return _}},e.string.push([function(a){var c=a.toLowerCase(),d=c==="transparent"?"#0000":t[c];return d?new i(d).toRgb():null},"name"])}let Ut=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ut.CHANGE="change";var Pc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,M=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ac(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pc(e,t,o),o};Cc([Sc]);const Os="EyeDropper"in window;n.UUIColorPickerElement=class extends le("label",v){constructor(){super(...arguments),this._value="",this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=0,this._colord=re("hsl(0, 0%, 0%)"),this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}set value(e){this.value!==e&&this.setColor(e),this._value=e}get value(){return this._value}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-icon-registry-essential"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-button-group"),$(this,"uui-color-swatches"),$(this,"uui-color-swatch"),$(this,"uui-color-area"),$(this,"uui-color-slider"),$(this,"uui-popover-container")}getFormattedValue(e){const t=this.opacity?`${e}a`:e,r=this._colord.toHex(),o=r.length>7?r.substring(0,r.length-2):r,{r:s,g:a,b:c}=this._colord.toRgb(),{h:d,s:h,l:f}=this._colord.toHsl(),{v:g}=this._colord.toHsv(),_=this._colord.alpha();switch(t){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(r);case"rgb":return this.setLetterCase(`rgb(${s}, ${a}, ${c})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${d}, ${h}%, ${f}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${d}, ${h}%, ${f}%)`);case"hsva":return this.setLetterCase(`hsva(${d}, ${h}%, ${g}%, ${_})`);default:return""}}getBrightness(e){return L(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return L((200-this.saturation)*e/100*5/10,0,100)}handleFormatToggle(){const e=["hex","rgb","hsl","hsv"],t=(e.indexOf(this.format)+1)%e.length;this.format=e[t],this._syncValues()}handleAlphaChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(t.value)/100};this.setColor(r)}handleHueChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t={h:e.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(t)}handleGridChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:t.saturation,l:t.lightness,a:this.alpha/100};this.setColor(r)}handleInputChange(e){e.stopImmediatePropagation(),this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue)}handleInputKeyDown(e){e.stopImmediatePropagation(),e.key==="Enter"&&(this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue),setTimeout(()=>this._input.select()))}handleColorSwatchChange(e){e.stopImmediatePropagation();const t=e.target;this.setColor(t.value)}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}handleEyeDropper(){Os&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){if(e===this.value)return;if(!e)return this.alpha=0,this.inputValue="",this._value=e,this.dispatchEvent(new Ut(Ut.CHANGE)),!0;const t=new Ri(e),{h:r,s:o,l:s,a}=t.toHsl();this.hue=r,this.saturation=o,this.lightness=s,this.alpha=this.opacity?a*100:100;const c=e;return c&&c.h&&(this.hue=c.h),this._colord=t,this._syncValues(),this.dispatchEvent(new Ut(Ut.CHANGE)),!0}setLetterCase(e){return typeof e!="string"?"":this.uppercase?e.toUpperCase():e.toLowerCase()}getHexString(e,t,r,o=100){const s=re(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this._value=this.inputValue}_renderColorPicker(){return u`<div class="${Wo({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}" aria-disabled="${this.disabled?"true":"false"}"><uui-color-area .value="${this.value}" .hue="${Math.round(this.hue)}" ?disabled="${this.disabled}" @change="${this.handleGridChange}"></uui-color-area><div class="color-picker__controls"><div class="color-picker__sliders"><uui-color-slider label="hue" class="hue-slider" .value="${Math.round(this.hue)}" ?disabled="${this.disabled}" @change="${this.handleHueChange}"></uui-color-slider>${this.opacity?u`<uui-color-slider label="alpha" class="opacity-slider" .value="${Math.round(this.alpha)}" type="opacity" .color="${this.getHexString(this.hue,this.saturation,this.lightness)}" ?disabled="${this.disabled}" @change="${this.handleAlphaChange}"></uui-color-slider>`:""}</div><button type="button" part="preview" class="color-picker__preview color-picker__transparent-bg" title="Copy" aria-label="Copy" style="${ce({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.handleCopy}"></button></div><div class="color-picker__user-input" aria-live="polite"><uui-input label="label" type="text" part="input" name="${this.name}" autocomplete="off" autocapitalize="off" spellcheck="false" .value="${wc(this.inputValue)}" ?disabled="${this.disabled}" @keydown="${this.handleInputKeyDown}" @change="${this.handleInputChange}"></uui-input><uui-button-group>${this.noFormatToggle?"":u`<uui-button label="Toggle color format" @click="${this.handleFormatToggle}" class="color-picker__toggle-format" ?disabled="${this.disabled}" compact="compact"><span>${this.format}</span></uui-button>`} ${Os?u`<uui-button label="Select a color" ?disabled="${this.disabled}" @click="${this.handleEyeDropper}" compact="compact"><uui-icon-registry-essential><uui-icon name="colorpicker"></uui-icon></uui-icon-registry-essential></uui-button>`:""}</uui-button-group></div>${this._renderSwatches()}</div>`}_renderSwatches(){return this.swatches?u`<uui-color-swatches id="swatches" class="color-picker__swatches" label="Swatches" ?disabled="${this.disabled}" @change="${this.handleColorSwatchChange}">${this.swatches.map(e=>u`<uui-color-swatch label="${e}" .value="${e}"></uui-color-swatch>`)}</uui-color-swatches>`:k}_renderPreviewButton(){return u`<button type="button" part="trigger" aria-label="${this.label||"Open Color picker"}" class="${Wo({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}" style="${ce({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" ?disabled="${this.disabled}" aria-haspopup="true" aria-expanded="false" popovertarget="color-picker-popover"></button><uui-popover-container id="color-picker-popover">${this._renderColorPicker()}</uui-popover-container>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},n.UUIColorPickerElement.styles=[b`:host{--uui-look-outline-border:#ddd;--uui-look-outline-border-hover:#aaa;font-size:.8rem;display:block;width:var(--uui-color-picker-width,280px)}uui-popover-container{width:inherit}.color-picker{width:100%;background-color:#fff;user-select:none;border:solid 1px #e4e4e7}.color-picker__user-input{display:flex;padding:0 .75rem .75rem .75rem}.color-picker__user-input uui-button{border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));border-left:none}.color-picker__preview,.color-picker__trigger{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;position:relative;width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:0 0}.color-picker__preview{cursor:copy;margin-left:.75rem;border-radius:50%}.color-picker__trigger[disabled]{cursor:not-allowed;opacity:.5}.color-picker__preview::before,.color-picker__trigger::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);background-color:var(--preview-color)}.color-dropdown__trigger--empty::before{background-color:transparent}.color-picker__transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-picker__preview-color--copied{animation:pulse .75s}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--uui-palette-space-cadet-light,#26356e)}70%{box-shadow:0 0 0 .5rem transparent}100%{box-shadow:0 0 0 0 transparent}}.color-picker__controls{padding:.75rem;display:flex;align-items:center}.color-picker__sliders{flex:1 1 auto}uui-color-slider:not(:last-of-type){margin-bottom:1rem}.color-picker__toggle-format{min-width:45px;--uui-button-font-size:0.8rem}.color-picker__toggle-format>span{text-transform:uppercase}uui-color-swatches{border-top:solid 1px #d4d4d8;padding:.75rem}button[slot=trigger]{border-radius:50%;cursor:pointer;width:36px;height:36px}uui-input{font-size:.85rem;box-sizing:content-box;flex:1}uui-color-area{width:100%}`],M([P('[part="input"]')],n.UUIColorPickerElement.prototype,"_input",2),M([P(".color-picker__preview")],n.UUIColorPickerElement.prototype,"_previewButton",2),M([P("#swatches")],n.UUIColorPickerElement.prototype,"_swatches",2),M([y()],n.UUIColorPickerElement.prototype,"inputValue",2),M([y()],n.UUIColorPickerElement.prototype,"hue",2),M([y()],n.UUIColorPickerElement.prototype,"saturation",2),M([y()],n.UUIColorPickerElement.prototype,"lightness",2),M([y()],n.UUIColorPickerElement.prototype,"alpha",2),M([y()],n.UUIColorPickerElement.prototype,"_colord",2),M([l()],n.UUIColorPickerElement.prototype,"value",1),M([l()],n.UUIColorPickerElement.prototype,"format",2),M([l()],n.UUIColorPickerElement.prototype,"name",2),M([l()],n.UUIColorPickerElement.prototype,"size",2),M([l({attribute:"no-format-toggle",type:Boolean})],n.UUIColorPickerElement.prototype,"noFormatToggle",2),M([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"inline",2),M([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"disabled",2),M([l({type:Boolean})],n.UUIColorPickerElement.prototype,"opacity",2),M([l({type:Boolean})],n.UUIColorPickerElement.prototype,"uppercase",2),M([l({attribute:!1})],n.UUIColorPickerElement.prototype,"swatches",2),n.UUIColorPickerElement=M([m("uui-color-picker")],n.UUIColorPickerElement);let Fi=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Fi.CHANGE="change";var Oc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Ee=(i,e,t,r)=>{for(var o=r>1?void 0:r?zc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Oc(e,t,o),o};n.UUIColorSliderElement=class extends le("label",v){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.disabled=!1}willUpdate(e){e.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(e){if(this.disabled||!this.container||!this.handle)return;const{width:t,height:r}=this.container.getBoundingClientRect();this.handle.focus(),e.preventDefault(),Rn(this.container,{onMove:(o,s)=>{this.vertical?this.value=Fn(L(s/r*this.max,this.min,this.max),this.min,this.max):this.value=L(o/t*this.max,this.min,this.max),this.syncValues()},initialEvent:e})}handleClick(e){this.disabled||(this.value=this.getValueFromMousePosition(e),this.syncValues())}handleKeyDown(e){const t=e.shiftKey?10:1;e.key==="ArrowLeft"?(e.preventDefault(),this.value=L(this.value-t,this.min,this.max),this.syncValues()):e.key==="ArrowRight"?(e.preventDefault(),this.value=L(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowUp"?(e.preventDefault(),this.value=L(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowDown"?(e.preventDefault(),this.value=L(this.value-t,this.min,this.max),this.syncValues()):e.key==="Home"?(e.preventDefault(),this.value=this.min,this.syncValues()):e.key==="End"&&(e.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(e){return this.vertical?this.getValueFromYCoordinate(e.clientY):this.getValueFromXCoordinate(e.clientX)}getValueFromTouchPosition(e){return this.vertical?this.getValueFromYCoordinate(e.touches[0].clientY):this.getValueFromXCoordinate(e.touches[0].clientX)}getValueFromXCoordinate(e){const{left:t,width:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}getValueFromYCoordinate(e){const{top:t,height:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}roundToPrecision(e){const t=1/this.precision;return Math.ceil(e*t)/t}syncValues(){this.dispatchEvent(new Fi(Fi.CHANGE))}get cssPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/Fn(this.value,this.min,this.max):this.max/this.value)}render(){return u`<div part="slider" id="color-slider" role="slider" aria-label="${this.label}" aria-orientation="${this.vertical?"vertical":"horizontal"}" aria-valuemin="${Math.round(this.min)}" aria-valuemax="${Math.round(this.max)}" aria-valuenow="${Math.round(this.value)}" @click="${this.handleClick}" @mousedown="${this.handleDrag}" @touchstart="${this.handleDrag}" @keydown="${this.handleKeyDown}">${this.type==="opacity"?u`<div id="current-hue" style="${ce({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
284
+ */const wc=vt(class extends ft{constructor(i){if(super(i),i.type!==ie.PROPERTY&&i.type!==ie.ATTRIBUTE&&i.type!==ie.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ys(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[e]){if(e===W||e===k)return e;const t=i.element,r=i.name;if(i.type===ie.PROPERTY){if(e===t[r])return W}else if(i.type===ie.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(r))return W}else if(i.type===ie.ATTRIBUTE&&t.getAttribute(r)===e+"")return W;return _s(i),e}});var _c={grad:.9,turn:360,rad:360/(2*Math.PI)},Ue=function(i){return typeof i=="string"?i.length>0:typeof i=="number"},j=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*i)/t+0},ee=function(i,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),i>t?t:i>e?i:e},Us=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},Es=function(i){return{r:ee(i.r,0,255),g:ee(i.g,0,255),b:ee(i.b,0,255),a:ee(i.a)}},Qo=function(i){return{r:j(i.r),g:j(i.g),b:j(i.b),a:j(i.a,3)}},Uc=/^#([0-9a-f]{3,8})$/i,Hi=function(i){var e=i.toString(16);return e.length<2?"0"+e:e},$s=function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=Math.max(e,t,r),a=s-Math.min(e,t,r),c=a?s===e?(t-r)/a:s===t?2+(r-e)/a:4+(e-t)/a:0;return{h:60*(c<0?c+6:c),s:s?a/s*100:0,v:s/255*100,a:o}},ks=function(i){var e=i.h,t=i.s,r=i.v,o=i.a;e=e/360*6,t/=100,r/=100;var s=Math.floor(e),a=r*(1-t),c=r*(1-(e-s)*t),d=r*(1-(1-e+s)*t),h=s%6;return{r:255*[r,c,a,a,d,r][h],g:255*[d,r,r,c,a,a][h],b:255*[a,a,d,r,r,c][h],a:o}},Is=function(i){return{h:Us(i.h),s:ee(i.s,0,100),l:ee(i.l,0,100),a:ee(i.a)}},xs=function(i){return{h:j(i.h),s:j(i.s),l:j(i.l),a:j(i.a,3)}},Cs=function(i){return ks((t=(e=i).s,{h:e.h,s:(t*=((r=e.l)<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}));var e,t,r},ii=function(i){return{h:(e=$s(i)).h,s:(o=(200-(t=e.s))*(r=e.v)/100)>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:e.a};var e,t,r,o},Ec=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$c=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,kc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ic=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jo={string:[[function(i){var e=Uc.exec(i);return e?(i=e[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:i.length===4?j(parseInt(i[3]+i[3],16)/255,2):1}:i.length===6||i.length===8?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:i.length===8?j(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var e=kc.exec(i)||Ic.exec(i);return e?e[2]!==e[4]||e[4]!==e[6]?null:Es({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(i){var e=Ec.exec(i)||$c.exec(i);if(!e)return null;var t,r,o=Is({h:(t=e[1],r=e[2],r===void 0&&(r="deg"),Number(t)*(_c[r]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Cs(o)},"hsl"]],object:[[function(i){var e=i.r,t=i.g,r=i.b,o=i.a,s=o===void 0?1:o;return Ue(e)&&Ue(t)&&Ue(r)?Es({r:Number(e),g:Number(t),b:Number(r),a:Number(s)}):null},"rgb"],[function(i){var e=i.h,t=i.s,r=i.l,o=i.a,s=o===void 0?1:o;if(!Ue(e)||!Ue(t)||!Ue(r))return null;var a=Is({h:Number(e),s:Number(t),l:Number(r),a:Number(s)});return Cs(a)},"hsl"],[function(i){var e=i.h,t=i.s,r=i.v,o=i.a,s=o===void 0?1:o;if(!Ue(e)||!Ue(t)||!Ue(r))return null;var a=function(c){return{h:Us(c.h),s:ee(c.s,0,100),v:ee(c.v,0,100),a:ee(c.a)}}({h:Number(e),s:Number(t),v:Number(r),a:Number(s)});return ks(a)},"hsv"]]},Ss=function(i,e){for(var t=0;t<e.length;t++){var r=e[t][0](i);if(r)return[r,e[t][1]]}return[null,void 0]},xc=function(i){return typeof i=="string"?Ss(i.trim(),Jo.string):typeof i=="object"&&i!==null?Ss(i,Jo.object):[null,void 0]},er=function(i,e){var t=ii(i);return{h:t.h,s:ee(t.s+100*e,0,100),l:t.l,a:t.a}},tr=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},Ps=function(i,e){var t=ii(i);return{h:t.h,s:t.s,l:ee(t.l+100*e,0,100),a:t.a}},Ri=function(){function i(e){this.parsed=xc(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return i.prototype.isValid=function(){return this.parsed!==null},i.prototype.brightness=function(){return j(tr(this.rgba),2)},i.prototype.isDark=function(){return tr(this.rgba)<.5},i.prototype.isLight=function(){return tr(this.rgba)>=.5},i.prototype.toHex=function(){return e=Qo(this.rgba),t=e.r,r=e.g,o=e.b,a=(s=e.a)<1?Hi(j(255*s)):"","#"+Hi(t)+Hi(r)+Hi(o)+a;var e,t,r,o,s,a},i.prototype.toRgb=function(){return Qo(this.rgba)},i.prototype.toRgbString=function(){return e=Qo(this.rgba),t=e.r,r=e.g,o=e.b,(s=e.a)<1?"rgba("+t+", "+r+", "+o+", "+s+")":"rgb("+t+", "+r+", "+o+")";var e,t,r,o,s},i.prototype.toHsl=function(){return xs(ii(this.rgba))},i.prototype.toHslString=function(){return e=xs(ii(this.rgba)),t=e.h,r=e.s,o=e.l,(s=e.a)<1?"hsla("+t+", "+r+"%, "+o+"%, "+s+")":"hsl("+t+", "+r+"%, "+o+"%)";var e,t,r,o,s},i.prototype.toHsv=function(){return e=$s(this.rgba),{h:j(e.h),s:j(e.s),v:j(e.v),a:j(e.a,3)};var e},i.prototype.invert=function(){return re({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},i.prototype.saturate=function(e){return e===void 0&&(e=.1),re(er(this.rgba,e))},i.prototype.desaturate=function(e){return e===void 0&&(e=.1),re(er(this.rgba,-e))},i.prototype.grayscale=function(){return re(er(this.rgba,-1))},i.prototype.lighten=function(e){return e===void 0&&(e=.1),re(Ps(this.rgba,e))},i.prototype.darken=function(e){return e===void 0&&(e=.1),re(Ps(this.rgba,-e))},i.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},i.prototype.alpha=function(e){return typeof e=="number"?re({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):j(this.rgba.a,3);var t},i.prototype.hue=function(e){var t=ii(this.rgba);return typeof e=="number"?re({h:e,s:t.s,l:t.l,a:t.a}):j(t.h)},i.prototype.isEqual=function(e){return this.toHex()===re(e).toHex()},i}(),re=function(i){return i instanceof Ri?i:new Ri(i)},As=[],Cc=function(i){i.forEach(function(e){As.indexOf(e)<0&&(e(Ri,Jo),As.push(e))})};function Sc(i,e){var t={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in t)r[t[o]]=o;var s={};i.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var c,d,h=r[this.toHex()];if(h)return h;if(a?.closest){var f=this.toRgb(),g=1/0,_="black";if(!s.length)for(var p in t)s[p]=new i(t[p]).toRgb();for(var w in t){var C=(c=f,d=s[w],Math.pow(c.r-d.r,2)+Math.pow(c.g-d.g,2)+Math.pow(c.b-d.b,2));C<g&&(g=C,_=w)}return _}},e.string.push([function(a){var c=a.toLowerCase(),d=c==="transparent"?"#0000":t[c];return d?new i(d).toRgb():null},"name"])}let Ut=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ut.CHANGE="change";var Pc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,N=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ac(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Pc(e,t,o),o};Cc([Sc]);const Os="EyeDropper"in window;n.UUIColorPickerElement=class extends le("label",v){constructor(){super(...arguments),this._value="",this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=0,this._colord=re("hsl(0, 0%, 0%)"),this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}set value(e){this.value!==e&&this.setColor(e),this._value=e}get value(){return this._value}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-icon-registry-essential"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-button-group"),$(this,"uui-color-swatches"),$(this,"uui-color-swatch"),$(this,"uui-color-area"),$(this,"uui-color-slider"),$(this,"uui-popover-container")}getFormattedValue(e){const t=this.opacity?`${e}a`:e,r=this._colord.toHex(),o=r.length>7?r.substring(0,r.length-2):r,{r:s,g:a,b:c}=this._colord.toRgb(),{h:d,s:h,l:f}=this._colord.toHsl(),{v:g}=this._colord.toHsv(),_=this._colord.alpha();switch(t){case"hex":return this.setLetterCase(o);case"hexa":return this.setLetterCase(r);case"rgb":return this.setLetterCase(`rgb(${s}, ${a}, ${c})`);case"rgba":return this.setLetterCase(this._colord.toRgbString());case"hsl":return this.setLetterCase(`hsl(${d}, ${h}%, ${f}%)`);case"hsla":return this.setLetterCase(this._colord.toHslString());case"hsv":return this.setLetterCase(`hsv(${d}, ${h}%, ${f}%)`);case"hsva":return this.setLetterCase(`hsva(${d}, ${h}%, ${g}%, ${_})`);default:return""}}getBrightness(e){return L(-1*(200*e/(this.saturation-200)),0,100)}getLightness(e){return L((200-this.saturation)*e/100*5/10,0,100)}handleFormatToggle(){const e=["hex","rgb","hsl","hsv"],t=(e.indexOf(this.format)+1)%e.length;this.format=e[t],this._syncValues()}handleAlphaChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(t.value)/100};this.setColor(r)}handleHueChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t={h:e.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(t)}handleGridChange(e){e.stopPropagation(),this._swatches?.resetSelection();const t=e.target,r={h:this.hue,s:t.saturation,l:t.lightness,a:this.alpha/100};this.setColor(r)}handleInputChange(e){e.stopImmediatePropagation(),this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue)}handleInputKeyDown(e){e.stopImmediatePropagation(),e.key==="Enter"&&(this._swatches?.resetSelection(),this.inputValue=this._input.value,this.setColor(this.inputValue),setTimeout(()=>this._input.select()))}handleColorSwatchChange(e){e.stopImmediatePropagation();const t=e.target;this.setColor(t.value)}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}handleEyeDropper(){Os&&new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(e){if(e===this.value)return;if(!e)return this.alpha=0,this.inputValue="",this._value=e,this.dispatchEvent(new Ut(Ut.CHANGE)),!0;const t=new Ri(e),{h:r,s:o,l:s,a}=t.toHsl();this.hue=r,this.saturation=o,this.lightness=s,this.alpha=this.opacity?a*100:100;const c=e;return c&&c.h&&(this.hue=c.h),this._colord=t,this._syncValues(),this.dispatchEvent(new Ut(Ut.CHANGE)),!0}setLetterCase(e){return typeof e!="string"?"":this.uppercase?e.toUpperCase():e.toLowerCase()}getHexString(e,t,r,o=100){const s=re(`hsla(${e}, ${t}%, ${r}%, ${o/100})`);return s.isValid()?s.toHex():""}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this._value=this.inputValue}_renderColorPicker(){return u`<div class="${Wo({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}" aria-disabled="${this.disabled?"true":"false"}"><uui-color-area .value="${this.value}" .hue="${Math.round(this.hue)}" ?disabled="${this.disabled}" @change="${this.handleGridChange}"></uui-color-area><div class="color-picker__controls"><div class="color-picker__sliders"><uui-color-slider label="hue" class="hue-slider" .value="${Math.round(this.hue)}" ?disabled="${this.disabled}" @change="${this.handleHueChange}"></uui-color-slider>${this.opacity?u`<uui-color-slider label="alpha" class="opacity-slider" .value="${Math.round(this.alpha)}" type="opacity" .color="${this.getHexString(this.hue,this.saturation,this.lightness)}" ?disabled="${this.disabled}" @change="${this.handleAlphaChange}"></uui-color-slider>`:""}</div><button type="button" part="preview" class="color-picker__preview color-picker__transparent-bg" title="Copy" aria-label="Copy" style="${ce({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" @click="${this.handleCopy}"></button></div><div class="color-picker__user-input" aria-live="polite"><uui-input label="label" type="text" part="input" name="${this.name}" autocomplete="off" autocapitalize="off" spellcheck="false" .value="${wc(this.inputValue)}" ?disabled="${this.disabled}" @keydown="${this.handleInputKeyDown}" @change="${this.handleInputChange}"></uui-input><uui-button-group>${this.noFormatToggle?"":u`<uui-button label="Toggle color format" @click="${this.handleFormatToggle}" class="color-picker__toggle-format" ?disabled="${this.disabled}" compact="compact"><span>${this.format}</span></uui-button>`} ${Os?u`<uui-button label="Select a color" ?disabled="${this.disabled}" @click="${this.handleEyeDropper}" compact="compact"><uui-icon-registry-essential><uui-icon name="colorpicker"></uui-icon></uui-icon-registry-essential></uui-button>`:""}</uui-button-group></div>${this._renderSwatches()}</div>`}_renderSwatches(){return this.swatches?u`<uui-color-swatches id="swatches" class="color-picker__swatches" label="Swatches" ?disabled="${this.disabled}" @change="${this.handleColorSwatchChange}">${this.swatches.map(e=>u`<uui-color-swatch label="${e}" .value="${e}"></uui-color-swatch>`)}</uui-color-swatches>`:k}_renderPreviewButton(){return u`<button type="button" part="trigger" aria-label="${this.label||"Open Color picker"}" class="${Wo({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}" style="${ce({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}" ?disabled="${this.disabled}" aria-haspopup="true" aria-expanded="false" popovertarget="color-picker-popover"></button><uui-popover-container id="color-picker-popover">${this._renderColorPicker()}</uui-popover-container>`}render(){return this.inline?this._renderColorPicker():this._renderPreviewButton()}},n.UUIColorPickerElement.styles=[b`:host{--uui-look-outline-border:#ddd;--uui-look-outline-border-hover:#aaa;font-size:.8rem;display:block;width:var(--uui-color-picker-width,280px)}uui-popover-container{width:inherit}.color-picker{width:100%;background-color:#fff;user-select:none;border:solid 1px #e4e4e7}.color-picker__user-input{display:flex;padding:0 .75rem .75rem .75rem}.color-picker__user-input uui-button{border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));border-left:none}.color-picker__preview,.color-picker__trigger{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;position:relative;width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:0 0}.color-picker__preview{cursor:copy;margin-left:.75rem;border-radius:50%}.color-picker__trigger[disabled]{cursor:not-allowed;opacity:.5}.color-picker__preview::before,.color-picker__trigger::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);background-color:var(--preview-color)}.color-dropdown__trigger--empty::before{background-color:transparent}.color-picker__transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-picker__preview-color--copied{animation:pulse .75s}@keyframes pulse{0%{box-shadow:0 0 0 0 var(--uui-palette-space-cadet-light,#26356e)}70%{box-shadow:0 0 0 .5rem transparent}100%{box-shadow:0 0 0 0 transparent}}.color-picker__controls{padding:.75rem;display:flex;align-items:center}.color-picker__sliders{flex:1 1 auto}uui-color-slider:not(:last-of-type){margin-bottom:1rem}.color-picker__toggle-format{min-width:45px;--uui-button-font-size:0.8rem}.color-picker__toggle-format>span{text-transform:uppercase}uui-color-swatches{border-top:solid 1px #d4d4d8;padding:.75rem}button[slot=trigger]{border-radius:50%;cursor:pointer;width:36px;height:36px}uui-input{font-size:.85rem;box-sizing:content-box;flex:1}uui-color-area{width:100%}`],N([P('[part="input"]')],n.UUIColorPickerElement.prototype,"_input",2),N([P(".color-picker__preview")],n.UUIColorPickerElement.prototype,"_previewButton",2),N([P("#swatches")],n.UUIColorPickerElement.prototype,"_swatches",2),N([y()],n.UUIColorPickerElement.prototype,"inputValue",2),N([y()],n.UUIColorPickerElement.prototype,"hue",2),N([y()],n.UUIColorPickerElement.prototype,"saturation",2),N([y()],n.UUIColorPickerElement.prototype,"lightness",2),N([y()],n.UUIColorPickerElement.prototype,"alpha",2),N([y()],n.UUIColorPickerElement.prototype,"_colord",2),N([l()],n.UUIColorPickerElement.prototype,"value",1),N([l()],n.UUIColorPickerElement.prototype,"format",2),N([l()],n.UUIColorPickerElement.prototype,"name",2),N([l()],n.UUIColorPickerElement.prototype,"size",2),N([l({attribute:"no-format-toggle",type:Boolean})],n.UUIColorPickerElement.prototype,"noFormatToggle",2),N([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"inline",2),N([l({type:Boolean,reflect:!0})],n.UUIColorPickerElement.prototype,"disabled",2),N([l({type:Boolean})],n.UUIColorPickerElement.prototype,"opacity",2),N([l({type:Boolean})],n.UUIColorPickerElement.prototype,"uppercase",2),N([l({attribute:!1})],n.UUIColorPickerElement.prototype,"swatches",2),n.UUIColorPickerElement=N([m("uui-color-picker")],n.UUIColorPickerElement);let Fi=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Fi.CHANGE="change";var Oc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,Ee=(i,e,t,r)=>{for(var o=r>1?void 0:r?zc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Oc(e,t,o),o};n.UUIColorSliderElement=class extends le("label",v){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.disabled=!1}willUpdate(e){e.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(e){if(this.disabled||!this.container||!this.handle)return;const{width:t,height:r}=this.container.getBoundingClientRect();this.handle.focus(),e.preventDefault(),Rn(this.container,{onMove:(o,s)=>{this.vertical?this.value=Fn(L(s/r*this.max,this.min,this.max),this.min,this.max):this.value=L(o/t*this.max,this.min,this.max),this.syncValues()},initialEvent:e})}handleClick(e){this.disabled||(this.value=this.getValueFromMousePosition(e),this.syncValues())}handleKeyDown(e){const t=e.shiftKey?10:1;e.key==="ArrowLeft"?(e.preventDefault(),this.value=L(this.value-t,this.min,this.max),this.syncValues()):e.key==="ArrowRight"?(e.preventDefault(),this.value=L(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowUp"?(e.preventDefault(),this.value=L(this.value+t,this.min,this.max),this.syncValues()):e.key==="ArrowDown"?(e.preventDefault(),this.value=L(this.value-t,this.min,this.max),this.syncValues()):e.key==="Home"?(e.preventDefault(),this.value=this.min,this.syncValues()):e.key==="End"&&(e.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(e){return this.vertical?this.getValueFromYCoordinate(e.clientY):this.getValueFromXCoordinate(e.clientX)}getValueFromTouchPosition(e){return this.vertical?this.getValueFromYCoordinate(e.touches[0].clientY):this.getValueFromXCoordinate(e.touches[0].clientX)}getValueFromXCoordinate(e){const{left:t,width:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}getValueFromYCoordinate(e){const{top:t,height:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((e-t)/r*this.max),this.min,this.max)}roundToPrecision(e){const t=1/this.precision;return Math.ceil(e*t)/t}syncValues(){this.dispatchEvent(new Fi(Fi.CHANGE))}get cssPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/Fn(this.value,this.min,this.max):this.max/this.value)}render(){return u`<div part="slider" id="color-slider" role="slider" aria-label="${this.label}" aria-orientation="${this.vertical?"vertical":"horizontal"}" aria-valuemin="${Math.round(this.min)}" aria-valuemax="${Math.round(this.max)}" aria-valuenow="${Math.round(this.value)}" @click="${this.handleClick}" @mousedown="${this.handleDrag}" @touchstart="${this.handleDrag}" @keydown="${this.handleKeyDown}">${this.type==="opacity"?u`<div id="current-hue" style="${ce({backgroundImage:`linear-gradient(to ${this.vertical?"top":"right"},
285
285
  transparent 0%,
286
286
  ${this.color} 100%
287
287
  )`})}"></div>`:""} <span id="color-slider__handle" style="--current-value:${this.cssPropCurrentValue}" tabindex="${U(this.disabled?void 0:"0")}"></span></div>${Math.round(this.value)}`}},n.UUIColorSliderElement.styles=[b`:host{--uui-slider-height:15px;--uui-slider-handle-size:17px;--uui-slider-background-image:#fff;--uui-slider-background-size:100%;--uui-slider-background-position:top left;display:block}:host([type=hue]){--uui-slider-background-image:linear-gradient(
@@ -306,7 +306,7 @@
306
306
  45deg,
307
307
  var(--uui-palette-grey,#c4c4c4) 25%,
308
308
  transparent 25%
309
- ),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, var(--uui-palette-grey,#c4c4c4) 25%, transparent 25%);--uui-slider-background-size:10px 10px;--uui-slider-background-position:0 0,0 0,-5px -5px,5px 5px}#color-slider{position:relative;background-image:var(--uui-slider-background-image);background-size:var(--uui-slider-background-size);background-position:var(--uui-slider-background-position);border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:100%;height:var(--uui-slider-height)}:host([vertical]) #color-slider{width:var(--uui-slider-height);height:300px}:host([disabled]){cursor:not-allowed}:host([disabled]) #color-slider{user-select:none;pointer-events:none;opacity:.55}#color-slider__handle{position:absolute;top:calc(50% - var(--uui-slider-handle-size)/ 2);width:var(--uui-slider-handle-size);height:var(--uui-slider-handle-size);background-color:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);margin-left:calc(var(--uui-slider-handle-size)/ -2);left:var(--current-value,0)}:host([vertical]) #color-slider__handle{left:unset;top:var(--current-value,100%);margin-left:-1px;margin-top:calc(var(--uui-slider-handle-size)/ -2)}::slotted(:first-child){border-radius:3px;position:absolute;top:0;left:0;width:100%;height:100%}#current-hue{border-radius:3px;position:absolute;inset:0}`],Ee([l({reflect:!0})],n.UUIColorSliderElement.prototype,"type",2),Ee([l()],n.UUIColorSliderElement.prototype,"color",2),Ee([l({type:Number})],n.UUIColorSliderElement.prototype,"min",2),Ee([l({type:Number})],n.UUIColorSliderElement.prototype,"max",2),Ee([l({type:Number})],n.UUIColorSliderElement.prototype,"precision",2),Ee([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"vertical",2),Ee([l()],n.UUIColorSliderElement.prototype,"value",2),Ee([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"disabled",2),n.UUIColorSliderElement=Ee([m("uui-color-slider")],n.UUIColorSliderElement);var Lc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,oi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Tc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lc(e,t,o),o};n.UUIColorSwatchElement=class extends le("label",mt(Qt(v))){constructor(){super(),this.disabled=!1,this.showLabel=!1,this.addEventListener("click",this._setAriaAttributes)}get value(){return this._value??""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get color(){return this._color}set color(e){const t=this._color;this._color=e,this.requestUpdate("color",t)}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._setAriaAttributes()}willUpdate(e){e.has("disabled")&&this.selectable&&(this.selectable=!this.disabled,this.deselectable=!this.disabled),(e.has("selectable")||e.has("selected"))&&this._setAriaAttributes()}render(){return u`<button id="swatch" aria-label="${this.label}" aria-disabled="${this.disabled}" title="${this.label}"><div class="color-swatch color-swatch--transparent-bg"><div class="color-swatch__color" style="background-color:var(--uui-swatch-color,${this.color??this.value})"></div><div class="color-swatch__check" style="color:var(--uui-swatch-color,${this.color??this.value})">${zi}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:k}},n.UUIColorSwatchElement.styles=[b`:host{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;transition:box-shadow .1s ease-out;flex-direction:column}*,:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus-within:not([disabled])){outline:0}:host(:focus:not([disabled])) #swatch{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-swatch-border-width,1px);outline-style:solid;outline-offset:var(--uui-swatch-border-width,1px)}:host([selectable]) #swatch{cursor:pointer}:host([disabled]){cursor:not-allowed;opacity:.5}#swatch{cursor:inherit;outline:0;background:0 0;border:none;padding:0;margin:0;text-align:left;border-radius:3px}:host(:not([selectable])) #swatch:focus{outline:0}:host([selectable]) #swatch::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-swatch-border-width,1px) * -1);width:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));height:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));box-sizing:border-box;border:var(--uui-swatch-border-width,2px) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-swatch-border-width,1px));transition:opacity .1s ease-out;opacity:0}:host([selectable]:not([disabled]):hover) #swatch::after{opacity:.33}:host([selectable][selected]:not([disabled]):hover) #swatch::after{opacity:.66}:host([selectable][selected]:not([disabled])) #swatch::after{opacity:1}.color-swatch{position:relative;width:var(--uui-swatch-size,25px);height:var(--uui-swatch-size,25px);border-radius:3px;display:flex;flex-direction:column;justify-content:center;align-items:center}:host([show-label]) .color-swatch{width:120px;height:50px}.color-swatch.color-swatch--transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-swatch__color{width:100%;height:100%;border:1px solid rgba(0,0,0,.125);border-radius:inherit;box-sizing:border-box}:host([show-label]) .color-swatch__color{border-radius:3px 3px 0 0}.color-swatch__check{position:absolute;vertical-align:middle;width:calc(var(--uui-swatch-size,25px)/ 2);height:calc(var(--uui-swatch-size,25px)/ 2);line-height:0;filter:invert(1) grayscale(1) contrast(9);pointer-events:none;opacity:0}:host([selected]) .color-swatch__check{opacity:1}.label,slot[name=label]::slotted(*){font-size:var(--uui-size-4,12px)}.color-swatch__label{max-width:120px;box-sizing:border-box;padding:var(--uui-size-space-1,3px) var(--uui-size-space-2,6px);line-height:1.5;display:flex;flex-direction:column;background:#fff;border:1px solid var(--uui-color-border,#d8d7d9);border-radius:0 0 3px 3px;font-size:var(--uui-size-4,12px)}.color-swatch__label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}`],oi([l()],n.UUIColorSwatchElement.prototype,"value",1),oi([l()],n.UUIColorSwatchElement.prototype,"color",1),oi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"disabled",2),oi([l({type:Boolean,attribute:"show-label",reflect:!0})],n.UUIColorSwatchElement.prototype,"showLabel",2),n.UUIColorSwatchElement=oi([m("uui-color-swatch")],n.UUIColorSwatchElement);let Et=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Et.CHANGE="change";var Nc=Object.defineProperty,Mc=Object.getOwnPropertyDescriptor,Gi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nc(e,t,o),o};n.UUIColorSwatchesElement=class extends le("label",v){constructor(){super(),this.value="",this.disabled=!1,this._onSelected=e=>{const t=e.target;this.swatches.includes(t)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new Et(Et.CHANGE)))},this._onDeselected=e=>{const t=e.target;this.swatches.includes(t)&&(this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new Et(Et.CHANGE))))},this.addEventListener(Le.SELECTED,this._onSelected),this.addEventListener(Le.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(e){e.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this.swatches||this.swatches.length===0||this.swatches.forEach(e=>{e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),this.disabled?e.setAttribute("disabled",""):e.setAttribute("selectable","selectable"),this.value!==""&&e.value===this.value&&(e.selected=!0,e.setAttribute("aria-checked","true"),this._selectedElement=e,this._activeElement=this._selectedElement)})}resetSelection(){this.swatches.forEach(e=>{e.selected=!1,e.active=!1,e.selectable=!e.disabled}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIColorSwatchesElement.styles=[b`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],Gi([l()],n.UUIColorSwatchesElement.prototype,"value",2),Gi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchesElement.prototype,"disabled",2),Gi([Oe({selector:"uui-color-swatch"})],n.UUIColorSwatchesElement.prototype,"swatches",2),n.UUIColorSwatchesElement=Gi([m("uui-color-swatches")],n.UUIColorSwatchesElement);let ne=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ne.CHANGE="change",ne.INNER_SLOT_CHANGE="inner-slot-change";var Dc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,zs=i=>{throw TypeError(i)},Te=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dc(e,t,o),o},jc=(i,e,t)=>e.has(i)||zs("Cannot "+t),Vc=(i,e,t)=>e.has(i)?zs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ls=(i,e,t)=>(jc(i,e,"access private method"),t),qi,ir;n.UUIComboboxListElement=class extends v{constructor(){super(...arguments),Vc(this,qi),this.displayValue="",this._value="",this._activeElementValue=null,this._onSlotChange=()=>{Ls(this,qi,ir).call(this),this._updateSelection(),this.dispatchEvent(new ne(ne.INNER_SLOT_CHANGE))},this._onSelected=e=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e.composedPath()[0],this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new ne(ne.CHANGE))},this._onDeselected=e=>{const t=e.composedPath()[0];this._selectedElement===t&&(this.value="",this.displayValue="",this.dispatchEvent(new ne(ne.CHANGE)))},this._moveIndex=e=>{const t=Math.min(Math.max(this._getActiveIndex+e,0),this._options.length-1);this._goToIndex(t)},this._onKeyDown=e=>{if(!(this._options.length<=0))switch(e.key){case"ArrowUp":e.preventDefault(),e.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":e.preventDefault(),e.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{e.preventDefault(),this._goToIndex(0);break}case"Enter":{e.preventDefault(),this._getActiveElement?.click();break}case"End":{e.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(e){if(this._value===e)return;const t=this._value;this._value=e,this._updateSelection(),this.requestUpdate("value",t)}get for(){return this._for}set for(e){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=e,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Le.SELECTED,this._onSelected),this.addEventListener(Le.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Le.SELECTED,this._onSelected),this.removeEventListener(Le.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const e of this._options)e.value===this._value?(this.displayValue=e.displayValue||"",e.selected=!0):e.selected=!1}get _getActiveIndex(){return this._activeElementValue===null?-1:this._options.findIndex(e=>e.value===this._activeElementValue)}get _getActiveElement(){return this._activeElementValue===null?null:this._options.find(e=>e.value===this._activeElementValue)}_goToIndex(e){if(this._options.length===0)return;e=Math.min(Math.max(e,0),this._options.length-1);const t=this._options[e];this._activeElementValue=t.value,Ls(this,qi,ir).call(this),t&&t.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},qi=new WeakSet,ir=function(){for(let e=0;e<this._activeOptions.length;e++)this._activeOptions[e].active=!1;const i=this._getActiveElement;i?i.active=!0:this._goToIndex(0)},n.UUIComboboxListElement.styles=[b`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Te([l()],n.UUIComboboxListElement.prototype,"value",1),Te([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),Te([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),Te([Oe({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),Te([Oe({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),Te([y()],n.UUIComboboxListElement.prototype,"_value",2),Te([y()],n.UUIComboboxListElement.prototype,"_activeElementValue",2),n.UUIComboboxListElement=Te([m("uui-combobox-list")],n.UUIComboboxListElement);var Hc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,$t=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hc(e,t,o),o};n.UUIComboboxListOptionElement=class extends mt(Qt(v)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){return this._value?this._value:this.textContent?.trim()||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get displayValue(){return this._displayValue?this._displayValue:this.textContent?.trim()||""}set displayValue(e){const t=this._displayValue;this._displayValue=e,this.requestUpdate("displayValue",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.selectable=!this._disabled,this.requestUpdate("disabled",t)}render(){return u`<slot></slot>`}},n.UUIComboboxListOptionElement.styles=[b`:host{position:relative;cursor:pointer;margin:0 4px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px;padding-left:4px}:host(:first-child){margin-top:6px}:host(:last-child){margin-bottom:6px}:host([selected]):host([active])::after{display:block;content:'';position:absolute;inset:0;outline:var(--uui-color-surface,#fff) solid 2px;outline-offset:-4px}:host(:hover){background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]){cursor:auto;color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]:hover){background-color:var(--uui-color-disabled,#f3f3f5)}:host([active]){outline-color:var(--uui-color-focus,#3879ff)}:host([selected]){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected,#3544b1)}:host([selected]:hover){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([selected][disabled]){color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}`],$t([y()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),$t([y()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),$t([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),$t([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),$t([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=$t([m("uui-combobox-list-option")],n.UUIComboboxListOptionElement);let X=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};X.SEARCH="search",X.CHANGE="change";var Fc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,Ts=i=>{throw TypeError(i)},K=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fc(e,t,o),o},or=(i,e,t)=>e.has(i)||Ts("Cannot "+t),x=(i,e,t)=>(or(i,e,"read from private field"),t?t.call(i):e.get(i)),V=(i,e,t)=>e.has(i)?Ts("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ns=(i,e,t,r)=>(or(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),rr=(i,e,t)=>(or(i,e,"access private method"),t),se,kt,ri,ni,Wi,Ki,Xi,nr,sr,ar,lr,Yi,It,ur,Zi,Qi,cr,Ji;n.UUIComboboxElement=class extends ue(v,""){constructor(){super(...arguments),V(this,ni),this.closeLabel="Close",this.disabled=!1,this.readonly=!1,V(this,se),V(this,kt),this._displayValue="",this._search="",this._isPhone=!1,this._isOpen=!1,V(this,ri,()=>{this._isPhone=x(this,kt).matches}),V(this,Ki,()=>requestAnimationFrame(()=>this._input.focus())),V(this,Xi,()=>requestAnimationFrame(()=>{this.shadowRoot?.activeElement||x(this,It).call(this)})),V(this,nr,e=>{e.preventDefault(),e.stopImmediatePropagation(),this.search=e.target.value,this.dispatchEvent(new X(X.SEARCH)),x(this,Yi).call(this)}),V(this,sr,()=>{this.value&&this.value!==x(this,se)?.value&&rr(this,ni,Wi).call(this,this.value)}),V(this,ar,()=>{this.value=x(this,se)?.value||"",this.search=this.value?this.search:"",x(this,It).call(this),this.dispatchEvent(new X(X.CHANGE))}),V(this,lr,()=>{this.readonly||(this.open=!this.open)}),V(this,Yi,()=>{this.open||this.readonly||(this.open=!0)}),V(this,It,()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new X(X.SEARCH)))}),V(this,ur,e=>{this.open===!1&&e.key==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation()),(e.key==="ArrowUp"||e.key==="ArrowDown")&&x(this,Yi).call(this),(e.key==="Escape"||e.key==="Enter")&&x(this,It).call(this)}),V(this,Zi,e=>{e.key&&e.key!=="Enter"||(e.preventDefault(),e.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new X(X.SEARCH)),this.dispatchEvent(new X(X.CHANGE)))}),V(this,Qi,()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" autocomplete="off" .disabled="${this.disabled}" .readonly="${this.readonly}" popovertarget="combobox-popover" @click="${x(this,lr)}" @input="${x(this,nr)}" @keydown="${x(this,ur)}"><slot name="input-prepend" slot="prepend"></slot>${x(this,cr).call(this)}<div id="expand-symbol-wrapper" slot="append"><uui-symbol-expand .open="${this._isOpen}"></uui-symbol-expand></div><slot name="input-append" slot="append"></slot></uui-input>`),V(this,cr,()=>this.disabled||this.readonly?k:this.value||this.search?u`<uui-button id="clear-button" @click="${x(this,Zi)}" @keydown="${x(this,Zi)}" label="clear" slot="append" compact="compact" style="height:100%"><uui-icon name="remove" .fallback="${Fo.strings[0]}"></uui-icon></uui-button>`:""),V(this,Ji,()=>u`<div id="dropdown"><uui-scroll-container tabindex="-1" id="scroll-container"><slot></slot></uui-scroll-container></div>`)}get value(){return super.value}set value(e){typeof e=="string"&&rr(this,ni,Wi).call(this,e),super.value=e}get search(){return this._search}set search(e){if(this.search===e)return;const t=this._search;this._search=e,this.requestUpdate("search",t)}get open(){return this._isOpen}set open(e){const t=e;this._isOpen=e;const r=this._comboboxPopoverElement;if(r)if(e){const o=this._input.offsetWidth;r.style.setProperty("--popover-width",`${o}px`),r.showPopover()}else r.hidePopover();this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",x(this,Xi)),this.addEventListener("mousedown",x(this,Ki)),Ns(this,kt,window.matchMedia("(max-width: 600px)")),x(this,ri).call(this),x(this,kt).addEventListener("change",x(this,ri)),$(this,"uui-icon"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-combobox-list"),$(this,"uui-scroll-container"),$(this,"uui-popover-container"),$(this,"uui-symbol-expand")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",x(this,Xi)),this.removeEventListener("mousedown",x(this,Ki)),x(this,kt).removeEventListener("change",x(this,ri))}async firstUpdated(){const e=this._comboboxListElements?.[0];e&&(Ns(this,se,e),x(this,se).for=this,x(this,se).addEventListener(ne.CHANGE,x(this,ar)),x(this,se).addEventListener(ne.INNER_SLOT_CHANGE,x(this,sr)),await this.updateComplete,rr(this,ni,Wi).call(this,this.value))}getFormElement(){return this._input}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}render(){return this._isPhone&&this.open?u`<div id="phone-wrapper"><uui-button label="close" look="primary" @click="${x(this,It)}">${this.closeLabel}</uui-button>${x(this,Qi).call(this)} ${x(this,Ji).call(this)}</div>`:u`${x(this,Qi).call(this)}<uui-popover-container id="combobox-popover" popover="manual" placement="bottom-end">${x(this,Ji).call(this)}</uui-popover-container>`}},se=new WeakMap,kt=new WeakMap,ri=new WeakMap,ni=new WeakSet,Wi=function(i){x(this,se)&&(x(this,se).value=i,requestAnimationFrame(()=>this._displayValue=x(this,se).displayValue||""))},Ki=new WeakMap,Xi=new WeakMap,nr=new WeakMap,sr=new WeakMap,ar=new WeakMap,lr=new WeakMap,Yi=new WeakMap,It=new WeakMap,ur=new WeakMap,Zi=new WeakMap,Qi=new WeakMap,cr=new WeakMap,Ji=new WeakMap,n.UUIComboboxElement.styles=[b`:host{display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#combobox-popover{width:var(--uui-dropdown-width,var(--popover-width,inherit))}#scroll-container{overflow-y:auto;width:100%;max-height:var(--uui-combobox-popover-max-height,500px)}#expand-symbol-wrapper{height:100%;padding-right:var(--uui-size-space-3,9px);display:flex;justify-content:center}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-color-border,#d8d7d9);border-radius:var(--uui-border-radius,3px);width:100%;height:100%;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23))}:host([disabled]) #caret{fill:var(--uui-color-disabled-contrast,#c4c4c4)}#phone-wrapper{position:fixed;inset:0;display:flex;flex-direction:column;z-index:1;font-size:1.1em}#phone-wrapper #dropdown{display:flex}#phone-wrapper #combobox-input{height:var(--uui-size-16,48px)}#phone-wrapper>uui-button{height:var(--uui-size-14,42px);width:100%}#phone-wrapper #scroll-container{max-height:unset}`],K([l({attribute:"value",reflect:!0})],n.UUIComboboxElement.prototype,"value",1),K([l({type:String})],n.UUIComboboxElement.prototype,"search",1),K([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",1),K([l({type:String})],n.UUIComboboxElement.prototype,"closeLabel",2),K([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"disabled",2),K([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"readonly",2),K([P("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),K([P("#combobox-popover")],n.UUIComboboxElement.prototype,"_comboboxPopoverElement",2),K([Oe({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),K([y()],n.UUIComboboxElement.prototype,"_displayValue",2),K([y()],n.UUIComboboxElement.prototype,"_search",2),K([y()],n.UUIComboboxElement.prototype,"_isPhone",2),K([y()],n.UUIComboboxElement.prototype,"_isOpen",2),n.UUIComboboxElement=K([m("uui-combobox")],n.UUIComboboxElement);var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,dr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qc(e,t,o),o};n.UUIDialogLayoutElement=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return u`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return u`<slot></slot>`}renderActions(){return u`<slot id="actions" name="actions"></slot>`}render(){return u`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}},n.UUIDialogLayoutElement.styles=[b`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px);color:var(--uui-color-text,#060606)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],dr([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),dr([y()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=dr([m("uui-dialog-layout")],n.UUIDialogLayoutElement);var Kc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,Yc=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kc(e,t,o),o};n.UUIDialogElement=class extends v{render(){return u`<slot></slot>`}},n.UUIDialogElement.styles=[b`:host{position:relative;display:block;max-width:580px;color:var(--uui-color-text,#060606);background-color:var(--uui-dialog-background-color,var(--uui-color-surface,#fff));box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22));border-radius:var(--uui-dialog-border-radius,calc(var(--uui-border-radius,3px) * 2))}`],n.UUIDialogElement=Yc([m("uui-dialog")],n.UUIDialogElement);var Zc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Ms=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zc(e,t,o),o};n.UUISymbolFileDropzoneElement=class extends v{constructor(){super(...arguments),this.error=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="upload-icon"><path d="${this.error?"M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z":"M206.491 364.184h99.013V223.676h92.922L255.997 51.111 113.575 223.676h92.916zM85.043 398.311h341.912v62.578H85.043z"}"/></svg>`}},n.UUISymbolFileDropzoneElement.styles=[b`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-default,#1b264f);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],Ms([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=Ms([m("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);let xt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};xt.CHANGE="change";var Jc=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,Ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?ed(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jc(e,t,o),o};n.UUIFileDropzoneElement=class extends le("",v){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this._accept="",this.disallowFolderUpload=!1,this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(e){if(e){const r=[],o=[];e.split(",").forEach(s=>{s=s.trim().toLowerCase(),/[a-z]+\/[a-z*]/s.test(s)?r.push(s):o.push(s.replace(/^\./,""))}),this._acceptedMimeTypes=r,this._acceptedFileExtensions=o}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[];const t=this._accept;this._accept=e,this.requestUpdate("accept",t)}get accept(){return this._accept}browse(){this._input.click()}async _getAllEntries(e){const t=[...e],r=[],o=[];for(const s of t)if(s?.kind==="file"){if(s.type){const a=s.getAsFile();if(!a)continue;this._isAccepted(a)&&o.push(a)}else if(!this.disallowFolderUpload){const a=this._getEntry(s);if(a){const c=await this._mkdir(a);r.push(c)}}}return{files:o,folders:r}}_getEntry(e){let t=null;return"webkitGetAsEntry"in e?t=e.webkitGetAsEntry():"getAsEntry"in e&&(t=e.getAsEntry()),t}async _mkdir(e){const t=e.createReader(),r=[],o=[],s=a=>new Promise((c,d)=>{a.readEntries(async h=>{if(!h.length){c();return}for(const f of h)if(f.isFile){const g=await this._getAsFile(f);this._isAccepted(g)&&o.push(g)}else if(f.isDirectory){const g=await this._mkdir(f);r.push(g)}s(a),c()},d)});return await s(t),{folderName:e.name,folders:r,files:o}}_isAccepted(e){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const t=e.type.toLowerCase(),r=e.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o in this._acceptedMimeTypes)if(t===o||o.endsWith("/*")&&t.startsWith(o.replace("/*","")))return!0;return!1}async _getAsFile(e){return new Promise((t,r)=>e.file(t,r))}async _onDrop(e){e.preventDefault(),this._dropzone.classList.remove("hover");const t=e.dataTransfer?.items;if(t){const r=await this._getAllEntries(t);this.multiple===!1&&r.files.length&&(r.files=[r.files[0]]),this._getAllEntries(t),this.dispatchEvent(new xt(xt.CHANGE,{detail:r}))}}_onDragOver(e){e.preventDefault()}_onDragEnter(e){this._dropzone.classList.add("hover"),e.preventDefault()}_onDragLeave(e){this._dropzone.classList.remove("hover"),e.preventDefault()}_onFileInputChange(){const e=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new xt(xt.CHANGE,{detail:{files:e}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${e=>e.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"><slot></slot></div>`}},n.UUIFileDropzoneElement.styles=[b`#dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:100%;height:100%;padding:var(--uui-size-4,12px);border:3px solid transparent;margin:-3px;backdrop-filter:blur(2px)}#dropzone.hover{border-color:var(--uui-color-default,#1b264f)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-default,#1b264f);background-color:var(--uui-color-default,#1b264f)}#symbol{color:var(--uui-color-default,#1b264f);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],Ct([P("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),Ct([P("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),Ct([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",1),Ct([l({type:Boolean,reflect:!0,attribute:"disallow-folder-upload"})],n.UUIFileDropzoneElement.prototype,"disallowFolderUpload",2),Ct([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=Ct([m("uui-file-dropzone")],n.UUIFileDropzoneElement);let td=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const s=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const c=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*c)/c>=o&&a<s.length-1);return e.toFixed(r)+" "+s[a]}};var id=Object.defineProperty,od=Object.getOwnPropertyDescriptor,de=(i,e,t,r)=>{for(var o=r>1?void 0:r?od(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&id(e,t,o),o};n.UUIFilePreviewElement=class extends v{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(e){const t=this._file;e instanceof File&&(this._name=e.name.split(".")[0],this._extension=e.name.split(".")[1],this._isDirectory=!1,this._size=e.size,this._isFileAnImage(e)&&(this._isImage=!0,this._getThumbnail(e).then(r=>{this._src=r})),this.requestUpdate("file",t))}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-file-thumbnail"),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?u`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?u`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:u`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const e=this._name.substring(0,this._name.length-6),t=this._name.substring(this._name.length-6,this._name.length);return u`<span id="file-name" class="${this._url?"has-source":""}" @click="${()=>this._url?this._openSource():""}" @keydown="${()=>""}"><span id="file-name-start">${e}</span> <span id="file-name-end">${t}</span></span>`}_isFileAnImage(e){return e?e.type.split("/")[0]==="image":!1}async _getThumbnail(e){return await new Promise(t=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)}})}render(){return u`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?u`${td.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.UUIFilePreviewElement.styles=[b`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1;color:var(--uui-color-text,#060606)}:host(:hover) slot[name=actions]::slotted(*){opacity:1}slot[name=actions]::slotted(*){position:absolute;top:8px;right:8px;max-width:100%;height:32px;font-size:13px;opacity:0;z-index:1;transition:opacity 150ms}#file-symbol{aspect-ratio:1/1;margin:auto;max-width:100%;max-height:100%}#file-info{min-width:0;display:flex;text-align:center;flex-direction:column;font-size:1rem}#file-name{display:flex;justify-content:center}#file-name-start{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#file-name-end{white-space:nowrap}#file-size{opacity:.6}.has-source:hover{text-decoration:underline;cursor:pointer}`],de([y()],n.UUIFilePreviewElement.prototype,"_name",2),de([y()],n.UUIFilePreviewElement.prototype,"_url",2),de([y()],n.UUIFilePreviewElement.prototype,"_extension",2),de([y()],n.UUIFilePreviewElement.prototype,"_src",2),de([y()],n.UUIFilePreviewElement.prototype,"_size",2),de([y()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),de([y()],n.UUIFilePreviewElement.prototype,"_file",2),de([y()],n.UUIFilePreviewElement.prototype,"_isImage",2),de([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=de([m("uui-file-preview")],n.UUIFilePreviewElement);var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,eo=(i,e,t,r)=>{for(var o=r>1?void 0:r?nd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rd(e,t,o),o};n.UUIFormLayoutItemElement=class extends v{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=e=>{this._labelSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=e=>{this._descriptionSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),$(this,"uui-form-validation-message")}render(){return u`<div id="label" style="${this._labelSlotHasContent?"":"display: none"}"><slot name="label" @slotchange="${this._labelSlotChanged}"></slot></div><div id="description" style="${this._descriptionSlotHasContent||this.description!==null?"":"display: none"}">${this.description}<slot name="description" @slotchange="${this._descriptionSlotChanged}"></slot></div><uui-form-validation-message><slot></slot><slot name="message" slot="message"></slot></uui-form-validation-message>`}},n.UUIFormLayoutItemElement.styles=[b`:host{position:relative;display:block;margin-top:var(--uui-size-space-5,18px);margin-bottom:var(--uui-size-space-5,18px)}#label{margin-top:-5px;margin-bottom:5px}#description{color:var(--uui-color-disabled-contrast,#c4c4c4);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],eo([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),eo([y()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),eo([y()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=eo([m("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
309
+ ),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, transparent 75%, var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg, var(--uui-palette-grey,#c4c4c4) 25%, transparent 25%);--uui-slider-background-size:10px 10px;--uui-slider-background-position:0 0,0 0,-5px -5px,5px 5px}#color-slider{position:relative;background-image:var(--uui-slider-background-image);background-size:var(--uui-slider-background-size);background-position:var(--uui-slider-background-position);border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:100%;height:var(--uui-slider-height)}:host([vertical]) #color-slider{width:var(--uui-slider-height);height:300px}:host([disabled]){cursor:not-allowed}:host([disabled]) #color-slider{user-select:none;pointer-events:none;opacity:.55}#color-slider__handle{position:absolute;top:calc(50% - var(--uui-slider-handle-size)/ 2);width:var(--uui-slider-handle-size);height:var(--uui-slider-handle-size);background-color:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(0,0,0,.25);margin-left:calc(var(--uui-slider-handle-size)/ -2);left:var(--current-value,0)}:host([vertical]) #color-slider__handle{left:unset;top:var(--current-value,100%);margin-left:-1px;margin-top:calc(var(--uui-slider-handle-size)/ -2)}::slotted(:first-child){border-radius:3px;position:absolute;top:0;left:0;width:100%;height:100%}#current-hue{border-radius:3px;position:absolute;inset:0}`],Ee([l({reflect:!0})],n.UUIColorSliderElement.prototype,"type",2),Ee([l()],n.UUIColorSliderElement.prototype,"color",2),Ee([l({type:Number})],n.UUIColorSliderElement.prototype,"min",2),Ee([l({type:Number})],n.UUIColorSliderElement.prototype,"max",2),Ee([l({type:Number})],n.UUIColorSliderElement.prototype,"precision",2),Ee([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"vertical",2),Ee([l()],n.UUIColorSliderElement.prototype,"value",2),Ee([l({type:Boolean,reflect:!0})],n.UUIColorSliderElement.prototype,"disabled",2),n.UUIColorSliderElement=Ee([m("uui-color-slider")],n.UUIColorSliderElement);var Lc=Object.defineProperty,Tc=Object.getOwnPropertyDescriptor,oi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Tc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lc(e,t,o),o};n.UUIColorSwatchElement=class extends le("label",mt(Qt(v))){constructor(){super(),this.disabled=!1,this.showLabel=!1,this.addEventListener("click",this._setAriaAttributes)}get value(){return this._value??""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get color(){return this._color}set color(e){const t=this._color;this._color=e,this.requestUpdate("color",t)}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._setAriaAttributes()}willUpdate(e){e.has("disabled")&&this.selectable&&(this.selectable=!this.disabled,this.deselectable=!this.disabled),(e.has("selectable")||e.has("selected"))&&this._setAriaAttributes()}render(){return u`<button id="swatch" aria-label="${this.label}" aria-disabled="${this.disabled}" title="${this.label}"><div class="color-swatch color-swatch--transparent-bg"><div class="color-swatch__color" style="background-color:var(--uui-swatch-color,${this.color??this.value})"></div><div class="color-swatch__check" style="color:var(--uui-swatch-color,${this.color??this.value})">${zi}</div></div>${this._renderWithLabel()}</button>`}_renderWithLabel(){return this.showLabel?u`<div class="color-swatch__label"><strong>${this.renderLabel()}</strong> ${this.value}</div>`:k}},n.UUIColorSwatchElement.styles=[b`:host{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;transition:box-shadow .1s ease-out;flex-direction:column}*,:host(*){outline-color:var(--uui-color-focus,#3879ff);outline-offset:4px}:host(:focus-within:not([disabled])){outline:0}:host(:focus:not([disabled])) #swatch{outline-color:var(--uui-color-focus,#3879ff);outline-width:var(--uui-swatch-border-width,1px);outline-style:solid;outline-offset:var(--uui-swatch-border-width,1px)}:host([selectable]) #swatch{cursor:pointer}:host([disabled]){cursor:not-allowed;opacity:.5}#swatch{cursor:inherit;outline:0;background:0 0;border:none;padding:0;margin:0;text-align:left;border-radius:3px}:host(:not([selectable])) #swatch:focus{outline:0}:host([selectable]) #swatch::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-swatch-border-width,1px) * -1);width:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));height:calc(100% + calc(var(--uui-swatch-border-width,1px) * 2));box-sizing:border-box;border:var(--uui-swatch-border-width,2px) solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + var(--uui-swatch-border-width,1px));transition:opacity .1s ease-out;opacity:0}:host([selectable]:not([disabled]):hover) #swatch::after{opacity:.33}:host([selectable][selected]:not([disabled]):hover) #swatch::after{opacity:.66}:host([selectable][selected]:not([disabled])) #swatch::after{opacity:1}.color-swatch{position:relative;width:var(--uui-swatch-size,25px);height:var(--uui-swatch-size,25px);border-radius:3px;display:flex;flex-direction:column;justify-content:center;align-items:center}:host([show-label]) .color-swatch{width:120px;height:50px}.color-swatch.color-swatch--transparent-bg{background-image:linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,transparent 75%,var(--uui-palette-grey,#c4c4c4) 75%),linear-gradient(45deg,var(--uui-palette-grey,#c4c4c4) 25%,transparent 25%);background-size:10px 10px;background-position:0 0,0 0,-5px -5px,5px 5px}.color-swatch__color{width:100%;height:100%;border:1px solid rgba(0,0,0,.125);border-radius:inherit;box-sizing:border-box}:host([show-label]) .color-swatch__color{border-radius:3px 3px 0 0}.color-swatch__check{position:absolute;vertical-align:middle;width:calc(var(--uui-swatch-size,25px)/ 2);height:calc(var(--uui-swatch-size,25px)/ 2);line-height:0;filter:invert(1) grayscale(1) contrast(9);pointer-events:none;opacity:0}:host([selected]) .color-swatch__check{opacity:1}.label,slot[name=label]::slotted(*){font-size:var(--uui-size-4,12px)}.color-swatch__label{max-width:120px;box-sizing:border-box;padding:var(--uui-size-space-1,3px) var(--uui-size-space-2,6px);line-height:1.5;display:flex;flex-direction:column;background:#fff;border:1px solid var(--uui-color-border,#d8d7d9);border-radius:0 0 3px 3px;font-size:var(--uui-size-4,12px)}.color-swatch__label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}`],oi([l()],n.UUIColorSwatchElement.prototype,"value",1),oi([l()],n.UUIColorSwatchElement.prototype,"color",1),oi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchElement.prototype,"disabled",2),oi([l({type:Boolean,attribute:"show-label",reflect:!0})],n.UUIColorSwatchElement.prototype,"showLabel",2),n.UUIColorSwatchElement=oi([m("uui-color-swatch")],n.UUIColorSwatchElement);let Et=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Et.CHANGE="change";var Mc=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,Gi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mc(e,t,o),o};n.UUIColorSwatchesElement=class extends le("label",v){constructor(){super(),this.value="",this.disabled=!1,this._onSelected=e=>{const t=e.target;this.swatches.includes(t)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new Et(Et.CHANGE)))},this._onDeselected=e=>{const t=e.target;this.swatches.includes(t)&&(this._activeElement===t&&(this._activeElement=void 0),this._selectedElement===t&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new Et(Et.CHANGE))))},this.addEventListener(Le.SELECTED,this._onSelected),this.addEventListener(Le.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(e){this.__activeElement&&(this.__activeElement.active=!1),e&&(e.active=!0,this.__activeElement=e)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(e){e.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this.swatches||this.swatches.length===0||this.swatches.forEach(e=>{e.setAttribute("aria-checked","false"),e.setAttribute("role","radio"),this.disabled?e.setAttribute("disabled",""):e.setAttribute("selectable","selectable"),this.value!==""&&e.value===this.value&&(e.selected=!0,e.setAttribute("aria-checked","true"),this._selectedElement=e,this._activeElement=this._selectedElement)})}resetSelection(){this.swatches.forEach(e=>{e.selected=!1,e.active=!1,e.selectable=!e.disabled}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIColorSwatchesElement.styles=[b`:host{display:flex;flex-wrap:wrap;gap:.4rem}`],Gi([l()],n.UUIColorSwatchesElement.prototype,"value",2),Gi([l({type:Boolean,reflect:!0})],n.UUIColorSwatchesElement.prototype,"disabled",2),Gi([Oe({selector:"uui-color-swatch"})],n.UUIColorSwatchesElement.prototype,"swatches",2),n.UUIColorSwatchesElement=Gi([m("uui-color-swatches")],n.UUIColorSwatchesElement);let ne=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ne.CHANGE="change",ne.INNER_SLOT_CHANGE="inner-slot-change";var Dc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,zs=i=>{throw TypeError(i)},Te=(i,e,t,r)=>{for(var o=r>1?void 0:r?Bc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Dc(e,t,o),o},jc=(i,e,t)=>e.has(i)||zs("Cannot "+t),Vc=(i,e,t)=>e.has(i)?zs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ls=(i,e,t)=>(jc(i,e,"access private method"),t),qi,ir;n.UUIComboboxListElement=class extends v{constructor(){super(...arguments),Vc(this,qi),this.displayValue="",this._value="",this._activeElementValue=null,this._onSlotChange=()=>{Ls(this,qi,ir).call(this),this._updateSelection(),this.dispatchEvent(new ne(ne.INNER_SLOT_CHANGE))},this._onSelected=e=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e.composedPath()[0],this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new ne(ne.CHANGE))},this._onDeselected=e=>{const t=e.composedPath()[0];this._selectedElement===t&&(this.value="",this.displayValue="",this.dispatchEvent(new ne(ne.CHANGE)))},this._moveIndex=e=>{const t=Math.min(Math.max(this._getActiveIndex+e,0),this._options.length-1);this._goToIndex(t)},this._onKeyDown=e=>{if(!(this._options.length<=0))switch(e.key){case"ArrowUp":e.preventDefault(),e.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":e.preventDefault(),e.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{e.preventDefault(),this._goToIndex(0);break}case"Enter":{e.preventDefault(),this._getActiveElement?.click();break}case"End":{e.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(e){if(this._value===e)return;const t=this._value;this._value=e,this._updateSelection(),this.requestUpdate("value",t)}get for(){return this._for}set for(e){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=e,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Le.SELECTED,this._onSelected),this.addEventListener(Le.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Le.SELECTED,this._onSelected),this.removeEventListener(Le.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const e of this._options)e.value===this._value?(this.displayValue=e.displayValue||"",e.selected=!0):e.selected=!1}get _getActiveIndex(){return this._activeElementValue===null?-1:this._options.findIndex(e=>e.value===this._activeElementValue)}get _getActiveElement(){return this._activeElementValue===null?null:this._options.find(e=>e.value===this._activeElementValue)}_goToIndex(e){if(this._options.length===0)return;e=Math.min(Math.max(e,0),this._options.length-1);const t=this._options[e];this._activeElementValue=t.value,Ls(this,qi,ir).call(this),t&&t.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},qi=new WeakSet,ir=function(){for(let e=0;e<this._activeOptions.length;e++)this._activeOptions[e].active=!1;const i=this._getActiveElement;i?i.active=!0:this._goToIndex(0)},n.UUIComboboxListElement.styles=[b`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Te([l()],n.UUIComboboxListElement.prototype,"value",1),Te([l({type:String})],n.UUIComboboxListElement.prototype,"displayValue",2),Te([l({attribute:!1})],n.UUIComboboxListElement.prototype,"for",1),Te([Oe({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],n.UUIComboboxListElement.prototype,"_options",2),Te([Oe({flatten:!0,selector:"uui-combobox-list-option[active]"})],n.UUIComboboxListElement.prototype,"_activeOptions",2),Te([y()],n.UUIComboboxListElement.prototype,"_value",2),Te([y()],n.UUIComboboxListElement.prototype,"_activeElementValue",2),n.UUIComboboxListElement=Te([m("uui-combobox-list")],n.UUIComboboxListElement);var Hc=Object.defineProperty,Rc=Object.getOwnPropertyDescriptor,$t=(i,e,t,r)=>{for(var o=r>1?void 0:r?Rc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Hc(e,t,o),o};n.UUIComboboxListOptionElement=class extends mt(Qt(v)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){return this._value?this._value:this.textContent?.trim()||""}set value(e){const t=this._value;this._value=e,this.requestUpdate("value",t)}get displayValue(){return this._displayValue?this._displayValue:this.textContent?.trim()||""}set displayValue(e){const t=this._displayValue;this._displayValue=e,this.requestUpdate("displayValue",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.selectable=!this._disabled,this.requestUpdate("disabled",t)}render(){return u`<slot></slot>`}},n.UUIComboboxListOptionElement.styles=[b`:host{position:relative;cursor:pointer;margin:0 4px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px;padding-left:4px}:host(:first-child){margin-top:6px}:host(:last-child){margin-bottom:6px}:host([selected]):host([active])::after{display:block;content:'';position:absolute;inset:0;outline:var(--uui-color-surface,#fff) solid 2px;outline-offset:-4px}:host(:hover){background-color:var(--uui-color-surface-emphasis,#fafafa);color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]){cursor:auto;color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]:hover){background-color:var(--uui-color-disabled,#f3f3f5)}:host([active]){outline-color:var(--uui-color-focus,#3879ff)}:host([selected]){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected,#3544b1)}:host([selected]:hover){color:var(--uui-color-selected-contrast,#fff);background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([selected][disabled]){color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}`],$t([y()],n.UUIComboboxListOptionElement.prototype,"_disabled",2),$t([y()],n.UUIComboboxListOptionElement.prototype,"_displayValue",2),$t([l({type:String})],n.UUIComboboxListOptionElement.prototype,"value",1),$t([l({type:String,attribute:"display-value"})],n.UUIComboboxListOptionElement.prototype,"displayValue",1),$t([l({type:Boolean,reflect:!0})],n.UUIComboboxListOptionElement.prototype,"disabled",1),n.UUIComboboxListOptionElement=$t([m("uui-combobox-list-option")],n.UUIComboboxListOptionElement);let X=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};X.SEARCH="search",X.CHANGE="change";var Fc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,Ts=i=>{throw TypeError(i)},K=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fc(e,t,o),o},or=(i,e,t)=>e.has(i)||Ts("Cannot "+t),x=(i,e,t)=>(or(i,e,"read from private field"),t?t.call(i):e.get(i)),V=(i,e,t)=>e.has(i)?Ts("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ms=(i,e,t,r)=>(or(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),rr=(i,e,t)=>(or(i,e,"access private method"),t),se,kt,ri,ni,Wi,Ki,Xi,nr,sr,ar,lr,Yi,It,ur,Zi,Qi,cr,Ji;n.UUIComboboxElement=class extends ue(v,""){constructor(){super(...arguments),V(this,ni),this.closeLabel="Close",this.disabled=!1,this.readonly=!1,V(this,se),V(this,kt),this._displayValue="",this._search="",this._isPhone=!1,this._isOpen=!1,V(this,ri,()=>{this._isPhone=x(this,kt).matches}),V(this,Ki,()=>requestAnimationFrame(()=>this._input.focus())),V(this,Xi,()=>requestAnimationFrame(()=>{this.shadowRoot?.activeElement||x(this,It).call(this)})),V(this,nr,e=>{e.preventDefault(),e.stopImmediatePropagation(),this.search=e.target.value,this.dispatchEvent(new X(X.SEARCH)),x(this,Yi).call(this)}),V(this,sr,()=>{this.value&&this.value!==x(this,se)?.value&&rr(this,ni,Wi).call(this,this.value)}),V(this,ar,()=>{this.value=x(this,se)?.value||"",this.search=this.value?this.search:"",x(this,It).call(this),this.dispatchEvent(new X(X.CHANGE))}),V(this,lr,()=>{this.readonly||(this.open=!this.open)}),V(this,Yi,()=>{this.open||this.readonly||(this.open=!0)}),V(this,It,()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new X(X.SEARCH)))}),V(this,ur,e=>{this.open===!1&&e.key==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation()),(e.key==="ArrowUp"||e.key==="ArrowDown")&&x(this,Yi).call(this),(e.key==="Escape"||e.key==="Enter")&&x(this,It).call(this)}),V(this,Zi,e=>{e.key&&e.key!=="Enter"||(e.preventDefault(),e.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new X(X.SEARCH)),this.dispatchEvent(new X(X.CHANGE)))}),V(this,Qi,()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" autocomplete="off" .disabled="${this.disabled}" .readonly="${this.readonly}" popovertarget="combobox-popover" @click="${x(this,lr)}" @input="${x(this,nr)}" @keydown="${x(this,ur)}"><slot name="input-prepend" slot="prepend"></slot>${x(this,cr).call(this)}<div id="expand-symbol-wrapper" slot="append"><uui-symbol-expand .open="${this._isOpen}"></uui-symbol-expand></div><slot name="input-append" slot="append"></slot></uui-input>`),V(this,cr,()=>this.disabled||this.readonly?k:this.value||this.search?u`<uui-button id="clear-button" @click="${x(this,Zi)}" @keydown="${x(this,Zi)}" label="clear" slot="append" compact="compact" style="height:100%"><uui-icon name="remove" .fallback="${Fo.strings[0]}"></uui-icon></uui-button>`:""),V(this,Ji,()=>u`<div id="dropdown"><uui-scroll-container tabindex="-1" id="scroll-container"><slot></slot></uui-scroll-container></div>`)}get value(){return super.value}set value(e){typeof e=="string"&&rr(this,ni,Wi).call(this,e),super.value=e}get search(){return this._search}set search(e){if(this.search===e)return;const t=this._search;this._search=e,this.requestUpdate("search",t)}get open(){return this._isOpen}set open(e){const t=e;this._isOpen=e;const r=this._comboboxPopoverElement;if(r)if(e){const o=this._input.offsetWidth;r.style.setProperty("--popover-width",`${o}px`),r.showPopover()}else r.hidePopover();this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",x(this,Xi)),this.addEventListener("mousedown",x(this,Ki)),Ms(this,kt,window.matchMedia("(max-width: 600px)")),x(this,ri).call(this),x(this,kt).addEventListener("change",x(this,ri)),$(this,"uui-icon"),$(this,"uui-input"),$(this,"uui-button"),$(this,"uui-combobox-list"),$(this,"uui-scroll-container"),$(this,"uui-popover-container"),$(this,"uui-symbol-expand")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",x(this,Xi)),this.removeEventListener("mousedown",x(this,Ki)),x(this,kt).removeEventListener("change",x(this,ri))}async firstUpdated(){const e=this._comboboxListElements?.[0];e&&(Ms(this,se,e),x(this,se).for=this,x(this,se).addEventListener(ne.CHANGE,x(this,ar)),x(this,se).addEventListener(ne.INNER_SLOT_CHANGE,x(this,sr)),await this.updateComplete,rr(this,ni,Wi).call(this,this.value))}getFormElement(){return this._input}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}render(){return this._isPhone&&this.open?u`<div id="phone-wrapper"><uui-button label="close" look="primary" @click="${x(this,It)}">${this.closeLabel}</uui-button>${x(this,Qi).call(this)} ${x(this,Ji).call(this)}</div>`:u`${x(this,Qi).call(this)}<uui-popover-container id="combobox-popover" popover="manual" placement="bottom-end">${x(this,Ji).call(this)}</uui-popover-container>`}},se=new WeakMap,kt=new WeakMap,ri=new WeakMap,ni=new WeakSet,Wi=function(i){x(this,se)&&(x(this,se).value=i,requestAnimationFrame(()=>this._displayValue=x(this,se).displayValue||""))},Ki=new WeakMap,Xi=new WeakMap,nr=new WeakMap,sr=new WeakMap,ar=new WeakMap,lr=new WeakMap,Yi=new WeakMap,It=new WeakMap,ur=new WeakMap,Zi=new WeakMap,Qi=new WeakMap,cr=new WeakMap,Ji=new WeakMap,n.UUIComboboxElement.styles=[b`:host{display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#combobox-popover{width:var(--uui-dropdown-width,var(--popover-width,inherit))}#scroll-container{overflow-y:auto;width:100%;max-height:var(--uui-combobox-popover-max-height,500px)}#expand-symbol-wrapper{height:100%;padding-right:var(--uui-size-space-3,9px);display:flex;justify-content:center}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,var(--uui-color-surface,#fff));border:1px solid var(--uui-color-border,#d8d7d9);border-radius:var(--uui-border-radius,3px);width:100%;height:100%;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23))}:host([disabled]) #caret{fill:var(--uui-color-disabled-contrast,#c4c4c4)}#phone-wrapper{position:fixed;inset:0;display:flex;flex-direction:column;z-index:1;font-size:1.1em}#phone-wrapper #dropdown{display:flex}#phone-wrapper #combobox-input{height:var(--uui-size-16,48px)}#phone-wrapper>uui-button{height:var(--uui-size-14,42px);width:100%}#phone-wrapper #scroll-container{max-height:unset}`],K([l({attribute:"value",reflect:!0})],n.UUIComboboxElement.prototype,"value",1),K([l({type:String})],n.UUIComboboxElement.prototype,"search",1),K([l({type:Boolean})],n.UUIComboboxElement.prototype,"open",1),K([l({type:String})],n.UUIComboboxElement.prototype,"closeLabel",2),K([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"disabled",2),K([l({type:Boolean,reflect:!0})],n.UUIComboboxElement.prototype,"readonly",2),K([P("#combobox-input")],n.UUIComboboxElement.prototype,"_input",2),K([P("#combobox-popover")],n.UUIComboboxElement.prototype,"_comboboxPopoverElement",2),K([Oe({flatten:!0,selector:"uui-combobox-list"})],n.UUIComboboxElement.prototype,"_comboboxListElements",2),K([y()],n.UUIComboboxElement.prototype,"_displayValue",2),K([y()],n.UUIComboboxElement.prototype,"_search",2),K([y()],n.UUIComboboxElement.prototype,"_isPhone",2),K([y()],n.UUIComboboxElement.prototype,"_isOpen",2),n.UUIComboboxElement=K([m("uui-combobox")],n.UUIComboboxElement);var qc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,dr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&qc(e,t,o),o};n.UUIDialogLayoutElement=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return u`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return u`<slot></slot>`}renderActions(){return u`<slot id="actions" name="actions"></slot>`}render(){return u`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}},n.UUIDialogLayoutElement.styles=[b`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px);color:var(--uui-color-text,#060606)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],dr([l({type:String})],n.UUIDialogLayoutElement.prototype,"headline",2),dr([y()],n.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIDialogLayoutElement=dr([m("uui-dialog-layout")],n.UUIDialogLayoutElement);var Kc=Object.defineProperty,Xc=Object.getOwnPropertyDescriptor,Yc=(i,e,t,r)=>{for(var o=r>1?void 0:r?Xc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Kc(e,t,o),o};n.UUIDialogElement=class extends v{render(){return u`<slot></slot>`}},n.UUIDialogElement.styles=[b`:host{position:relative;display:block;max-width:580px;color:var(--uui-color-text,#060606);background-color:var(--uui-dialog-background-color,var(--uui-color-surface,#fff));box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22));border-radius:var(--uui-dialog-border-radius,calc(var(--uui-border-radius,3px) * 2))}`],n.UUIDialogElement=Yc([m("uui-dialog")],n.UUIDialogElement);var Zc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Ns=(i,e,t,r)=>{for(var o=r>1?void 0:r?Qc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Zc(e,t,o),o};n.UUISymbolFileDropzoneElement=class extends v{constructor(){super(...arguments),this.error=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="upload-icon"><path d="${this.error?"M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z":"M206.491 364.184h99.013V223.676h92.922L255.997 51.111 113.575 223.676h92.916zM85.043 398.311h341.912v62.578H85.043z"}"/></svg>`}},n.UUISymbolFileDropzoneElement.styles=[b`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-default,#1b264f);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],Ns([l({type:Boolean,reflect:!0})],n.UUISymbolFileDropzoneElement.prototype,"error",2),n.UUISymbolFileDropzoneElement=Ns([m("uui-symbol-file-dropzone")],n.UUISymbolFileDropzoneElement);let xt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};xt.CHANGE="change";var Jc=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,Ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?ed(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jc(e,t,o),o};n.UUIFileDropzoneElement=class extends le("",v){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this._accept="",this.disallowFolderUpload=!1,this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(e){if(e){const r=[],o=[];e.split(",").forEach(s=>{s=s.trim().toLowerCase(),/[a-z]+\/[a-z*]/s.test(s)?r.push(s):o.push(s.replace(/^\./,""))}),this._acceptedMimeTypes=r,this._acceptedFileExtensions=o}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[];const t=this._accept;this._accept=e,this.requestUpdate("accept",t)}get accept(){return this._accept}browse(){this._input.click()}async _getAllEntries(e){const t=[...e],r=[],o=[];for(const s of t)if(s?.kind==="file"){if(s.type){const a=s.getAsFile();if(!a)continue;this._isAccepted(a)&&o.push(a)}else if(!this.disallowFolderUpload&&this.multiple){const a=this._getEntry(s);if(a){const c=await this._mkdir(a);r.push(c)}}}return{files:o,folders:r}}_getEntry(e){let t=null;return"webkitGetAsEntry"in e?t=e.webkitGetAsEntry():"getAsEntry"in e&&(t=e.getAsEntry()),t}async _mkdir(e){const t=e.createReader(),r=[],o=[],s=a=>new Promise((c,d)=>{a.readEntries(async h=>{if(!h.length){c();return}for(const f of h)if(f.isFile){const g=await this._getAsFile(f);this._isAccepted(g)&&o.push(g)}else if(f.isDirectory){const g=await this._mkdir(f);r.push(g)}await s(a),c()},d)});return await s(t),{folderName:e.name,folders:r,files:o}}_isAccepted(e){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const t=e.type.toLowerCase(),r=e.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o of this._acceptedMimeTypes)if(t===o||o.endsWith("/*")&&t.startsWith(o.replace("*","")))return!0;return!1}async _getAsFile(e){return new Promise((t,r)=>e.file(t,r))}async _onDrop(e){e.preventDefault(),this._dropzone.classList.remove("hover");const t=e.dataTransfer?.items;if(t){const r=await this._getAllEntries(t);if(this.multiple===!1&&r.files.length&&(r.files=[r.files[0]],r.folders=[]),!r.files.length&&!r.folders.length)return;this.dispatchEvent(new xt(xt.CHANGE,{detail:r}))}}_onDragOver(e){e.preventDefault()}_onDragEnter(e){this._dropzone.classList.add("hover"),e.preventDefault()}_onDragLeave(e){this._dropzone.classList.remove("hover"),e.preventDefault()}_onFileInputChange(){const e=this._input.files?Array.from(this._input.files):[];this.multiple===!1&&e.length>1&&e.splice(1,e.length-1);const t=e.filter(r=>this._isAccepted(r));t.length&&this.dispatchEvent(new xt(xt.CHANGE,{detail:{files:t,folders:[]}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${e=>e.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"><slot></slot></div>`}},n.UUIFileDropzoneElement.styles=[b`#dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;box-sizing:border-box;width:100%;height:100%;padding:var(--uui-size-4,12px);border:3px solid transparent;margin:-3px;backdrop-filter:blur(2px)}#dropzone.hover{border-color:var(--uui-color-default,#1b264f)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-default,#1b264f);background-color:var(--uui-color-default,#1b264f)}#symbol{color:var(--uui-color-default,#1b264f);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],Ct([P("#input")],n.UUIFileDropzoneElement.prototype,"_input",2),Ct([P("#dropzone")],n.UUIFileDropzoneElement.prototype,"_dropzone",2),Ct([l({type:String})],n.UUIFileDropzoneElement.prototype,"accept",1),Ct([l({type:Boolean,reflect:!0,attribute:"disallow-folder-upload"})],n.UUIFileDropzoneElement.prototype,"disallowFolderUpload",2),Ct([l({type:Boolean})],n.UUIFileDropzoneElement.prototype,"multiple",2),n.UUIFileDropzoneElement=Ct([m("uui-file-dropzone")],n.UUIFileDropzoneElement);let td=class{static humanFileSize(e,t=!1,r=1){const o=t?1e3:1024;if(Math.abs(e)<o)return e+" B";const s=t?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const c=10**r;do e/=o,++a;while(Math.round(Math.abs(e)*c)/c>=o&&a<s.length-1);return e.toFixed(r)+" "+s[a]}};var id=Object.defineProperty,od=Object.getOwnPropertyDescriptor,de=(i,e,t,r)=>{for(var o=r>1?void 0:r?od(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&id(e,t,o),o};n.UUIFilePreviewElement=class extends v{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(e){const t=this._file;e instanceof File&&(this._name=e.name.split(".")[0],this._extension=e.name.split(".")[1],this._isDirectory=!1,this._size=e.size,this._isFileAnImage(e)&&(this._isImage=!0,this._getThumbnail(e).then(r=>{this._src=r})),this.requestUpdate("file",t))}connectedCallback(){super.connectedCallback(),$(this,"uui-symbol-file-thumbnail"),$(this,"uui-symbol-folder"),$(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?u`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?u`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:u`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const e=this._name.substring(0,this._name.length-6),t=this._name.substring(this._name.length-6,this._name.length);return u`<span id="file-name" class="${this._url?"has-source":""}" @click="${()=>this._url?this._openSource():""}" @keydown="${()=>""}"><span id="file-name-start">${e}</span> <span id="file-name-end">${t}</span></span>`}_isFileAnImage(e){return e?e.type.split("/")[0]==="image":!1}async _getThumbnail(e){return await new Promise(t=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)}})}render(){return u`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?u`${td.humanFileSize(this._size,!0)}`:""}</span></div>`}},n.UUIFilePreviewElement.styles=[b`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1;color:var(--uui-color-text,#060606)}:host(:hover) slot[name=actions]::slotted(*){opacity:1}slot[name=actions]::slotted(*){position:absolute;top:8px;right:8px;max-width:100%;height:32px;font-size:13px;opacity:0;z-index:1;transition:opacity 150ms}#file-symbol{aspect-ratio:1/1;margin:auto;max-width:100%;max-height:100%}#file-info{min-width:0;display:flex;text-align:center;flex-direction:column;font-size:1rem}#file-name{display:flex;justify-content:center}#file-name-start{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#file-name-end{white-space:nowrap}#file-size{opacity:.6}.has-source:hover{text-decoration:underline;cursor:pointer}`],de([y()],n.UUIFilePreviewElement.prototype,"_name",2),de([y()],n.UUIFilePreviewElement.prototype,"_url",2),de([y()],n.UUIFilePreviewElement.prototype,"_extension",2),de([y()],n.UUIFilePreviewElement.prototype,"_src",2),de([y()],n.UUIFilePreviewElement.prototype,"_size",2),de([y()],n.UUIFilePreviewElement.prototype,"_isDirectory",2),de([y()],n.UUIFilePreviewElement.prototype,"_file",2),de([y()],n.UUIFilePreviewElement.prototype,"_isImage",2),de([l({attribute:!1})],n.UUIFilePreviewElement.prototype,"file",1),n.UUIFilePreviewElement=de([m("uui-file-preview")],n.UUIFilePreviewElement);var rd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,eo=(i,e,t,r)=>{for(var o=r>1?void 0:r?nd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rd(e,t,o),o};n.UUIFormLayoutItemElement=class extends v{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=e=>{this._labelSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=e=>{this._descriptionSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),$(this,"uui-form-validation-message")}render(){return u`<div id="label" style="${this._labelSlotHasContent?"":"display: none"}"><slot name="label" @slotchange="${this._labelSlotChanged}"></slot></div><div id="description" style="${this._descriptionSlotHasContent||this.description!==null?"":"display: none"}">${this.description}<slot name="description" @slotchange="${this._descriptionSlotChanged}"></slot></div><uui-form-validation-message><slot></slot><slot name="message" slot="message"></slot></uui-form-validation-message>`}},n.UUIFormLayoutItemElement.styles=[b`:host{position:relative;display:block;margin-top:var(--uui-size-space-5,18px);margin-bottom:var(--uui-size-space-5,18px)}#label{margin-top:-5px;margin-bottom:5px}#description{color:var(--uui-color-disabled-contrast,#c4c4c4);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],eo([l({type:String})],n.UUIFormLayoutItemElement.prototype,"description",2),eo([y()],n.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),eo([y()],n.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),n.UUIFormLayoutItemElement=eo([m("uui-form-layout-item")],n.UUIFormLayoutItemElement);/**
310
310
  * @license
311
311
  * Copyright 2017 Google LLC
312
312
  * SPDX-License-Identifier: BSD-3-Clause
@@ -314,17 +314,17 @@
314
314
  * @license
315
315
  * Copyright 2017 Google LLC
316
316
  * SPDX-License-Identifier: BSD-3-Clause
317
- */let pr=class extends ft{constructor(e){if(super(e),this.et=k,e.type!==ie.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this.ft=void 0,this.et=e;if(e===W)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}};pr.directiveName="unsafeHTML",pr.resultType=1;const to=vt(pr);var sd=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,Bs=(i,e,t,r)=>{for(var o=r>1?void 0:r?ad(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sd(e,t,o),o};n.UUIFormValidationMessageElement=class extends v{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=e=>{const t=e.composedPath()[0];t.pristine===!1?this._messages.set(t,t.validationMessage):this._messages.delete(t),this.requestUpdate()},this._onControlValid=e=>{const t=e.composedPath()[0];this._messages.delete(t),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(e){let t=null;typeof e=="string"?t=this.getRootNode()?.getElementById(e):e instanceof HTMLElement&&(t=e);const r=t??this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(gt.INVALID,this._onControlInvalid),o.removeEventListener(gt.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(gt.INVALID,this._onControlInvalid),this._for.addEventListener(gt.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${hr(this._messages,e=>u`<div>${to(e[1])}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[b`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],Bs([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=Bs([m("uui-form-validation-message")],n.UUIFormValidationMessageElement);var ld=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,cd=(i,e,t,r)=>{for(var o=r>1?void 0:r?ud(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ld(e,t,o),o};n.UUIFormElement=class extends v{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(e){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const t=e.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=t.length>0?t[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(e){if(e.target===null)return;const t=e.target;if(!t.checkValidity()){t.setAttribute("submit-invalid","");return}t.removeAttribute("submit-invalid")}_onReset(e){e.target!==null&&e.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=cd([m("uui-form")],n.UUIFormElement);let St=class extends A{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t}),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};St.ICON_REQUEST="icon-request";var dd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,et=(i,e,t,r)=>{for(var o=r>1?void 0:r?hd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dd(e,t,o),o};n.UUIIconElement=class extends v{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new St(St.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:to(this.fallback):this._nameSvg!==null?to(this._nameSvg):this.svg!==null?to(this.svg):u`<slot></slot>`}},n.UUIIconElement.styles=[b`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{color:var(--uui-icon-color,currentColor)}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],et([y()],n.UUIIconElement.prototype,"_nameSvg",2),et([l()],n.UUIIconElement.prototype,"label",2),et([l()],n.UUIIconElement.prototype,"name",1),et([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),et([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),et([y()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=et([m("uui-icon")],n.UUIIconElement);let br=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},mr=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(St.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(St.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new br(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new br}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var pd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,js=(i,e,t,r)=>{for(var o=r>1?void 0:r?bd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pd(e,t,o),o};n.UUIIconRegistryElement=class extends v{constructor(){super(),this._icons={},this._registry=new mr,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},js([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=js([m("uui-icon-registry")],n.UUIIconRegistryElement);const md=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,gd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,vd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,fd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`,yd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,wd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,_d=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,Ud=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,Ed=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`,$d=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,kd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,Id=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,xd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,Cd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,Sd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,Pd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,Ad=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,Od=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`,zd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,Ld=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`,Td=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,Nd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`,Md=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,Dd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`,Bd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,jd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`,Vd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`,Hd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`,Rd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,Fd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,Gd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`,qd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;let Vs=class extends mr{constructor(){super(),this.defineIcon("add",md.strings[0]),this.defineIcon("alert",gd.strings[0]),this.defineIcon("attachment",vd.strings[0]),this.defineIcon("calendar",fd.strings[0]),this.defineIcon("check",yd.strings[0]),this.defineIcon("clipboard",wd.strings[0]),this.defineIcon("code",_d.strings[0]),this.defineIcon("colorpicker",Ud.strings[0]),this.defineIcon("copy",Ed.strings[0]),this.defineIcon("delete",$d.strings[0]),this.defineIcon("document",kd.strings[0]),this.defineIcon("download",Id.strings[0]),this.defineIcon("edit",xd.strings[0]),this.defineIcon("favorite",Cd.strings[0]),this.defineIcon("folder",Sd.strings[0]),this.defineIcon("forbidden",Pd.strings[0]),this.defineIcon("info",Ad.strings[0]),this.defineIcon("link",Od.strings[0]),this.defineIcon("lock",zd.strings[0]),this.defineIcon("pause",Ld.strings[0]),this.defineIcon("picture",Td.strings[0]),this.defineIcon("play",Nd.strings[0]),this.defineIcon("remove",Md.strings[0]),this.defineIcon("search",Dd.strings[0]),this.defineIcon("see",Bd.strings[0]),this.defineIcon("settings",jd.strings[0]),this.defineIcon("subtract",Vd.strings[0]),this.defineIcon("sync",Hd.strings[0]),this.defineIcon("unlock",Rd.strings[0]),this.defineIcon("unsee",Fd.strings[0]),this.defineIcon("wand",Gd.strings[0]),this.defineIcon("wrong",qd.strings[0])}};var Wd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,Xd=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wd(e,t,o),o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new Vs}},n.UUIIconRegistryEssentialElement=Xd([m("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var Yd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,Pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yd(e,t,o),o};n.UUIInputFileElement=class extends ue(v){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return super.value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-file-dropzone"),$(this,"uui-button"),$(this,"uui-action-bar"),$(this,"uui-file-preview")}getFormElement(){return this._dropZone}async blur(){await this.updateComplete,this._dropzone.blur()}async focus(){await this.updateComplete,this._dropzone.focus()}async click(){await this.updateComplete,this._dropzone.browse()}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const s=o instanceof File;r.append(this.name,s?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${Pu.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${hr(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:k}</div>`}},n.UUIInputFileElement.styles=[b`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],Pt([P("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),Pt([P("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),Pt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),Pt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),Pt([y()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=Pt([m("uui-input-file")],n.UUIInputFileElement);let tt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};tt.CHANGE="change",tt.INPUT="input";var Qd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,H=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qd(e,t,o),o};n.UUIInputElement=class extends ue(le("",v),""){constructor(){super(),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this.value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this.value).length>this.maxlength),this.updateComplete.then(()=>{this.addFormControlElement(this._input)})}get type(){return this._type}set type(e){this._type=e}_onKeypress(e){this.type!=="color"&&e.key=="Enter"&&this.submit()}async blur(){await this.updateComplete,this._input.blur()}async focus(){await this.updateComplete,this._input.focus()}async select(){await this.updateComplete,this._input.select()}getFormElement(){return this.shadowRoot?.querySelector("input")}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new tt(tt.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new tt(tt.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${U(this.pattern)}" min="${U(this.min)}" max="${U(this.max)}" step="${U(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${U(this.autocomplete)}" placeholder="${U(this.placeholder)}" aria-label="${U(this.label)}" inputmode="${U(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[b`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-input-height,var(--uui-size-11,33px));text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-color-surface,#fff));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-danger,#d42054)}input{font-family:inherit;padding:var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:0;box-sizing:border-box;border:none;background:0 0;width:100%;height:inherit;text-align:inherit;outline:0}input[type=password]::-ms-reveal{display:none}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input),::slotted(uui-input-lock){height:100%;--uui-input-border-width:0}`],H([l()],n.UUIInputElement.prototype,"min",2),H([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),H([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),H([l()],n.UUIInputElement.prototype,"max",2),H([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),H([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),H([l({type:Number})],n.UUIInputElement.prototype,"step",2),H([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),H([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),H([l()],n.UUIInputElement.prototype,"placeholder",2),H([l()],n.UUIInputElement.prototype,"autocomplete",2),H([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),H([l({type:String})],n.UUIInputElement.prototype,"type",1),H([l({type:String})],n.UUIInputElement.prototype,"pattern",2),H([l({type:String})],n.UUIInputElement.prototype,"inputMode",2),H([P("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=H([m("uui-input")],n.UUIInputElement);let io=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};io.LOCK_CHANGE="lock-change";var eh=Object.defineProperty,th=Object.getOwnPropertyDescriptor,Hs=(i,e,t,r)=>{for(var o=r>1?void 0:r?th(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eh(e,t,o),o};n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked,this.pristine=!1,this.dispatchEvent(new io(io.LOCK_CHANGE))}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${Au.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${Lu.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?"Unlock input":"Lock input"}">${this.renderIcon()}</uui-button>`}},n.UUIInputLockElement.styles=[...n.UUIInputElement.styles,b`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],Hs([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=Hs([m("uui-input-lock")],n.UUIInputLockElement);var ih=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,gr=(i,e,t,r)=>{for(var o=r>1?void 0:r?oh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ih(e,t,o),o};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${zu.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${Tu.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,b`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],gr([y()],n.UUIInputPasswordElement.prototype,"passwordType",2),gr([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=gr([m("uui-input-password")],n.UUIInputPasswordElement);var rh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,sh=(i,e,t,r)=>{for(var o=r>1?void 0:r?nh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rh(e,t,o),o};n.UUIKeyboardShortcutElement=class extends v{render(){return u`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[b`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],n.UUIKeyboardShortcutElement=sh([m("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,uh=(i,e,t,r)=>{for(var o=r>1?void 0:r?lh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ah(e,t,o),o};n.UUIKeyElement=class extends v{render(){return u`<slot></slot>`}},n.UUIKeyElement.styles=[b`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],n.UUIKeyElement=uh([m("uui-key")],n.UUIKeyElement);var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,oo=(i,e,t,r)=>{for(var o=r>1?void 0:r?dh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ch(e,t,o),o};n.UUILabelElement=class extends v{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){return typeof this.for=="string"?this.getRootNode()?.getElementById(this.for)||null:this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[b`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],oo([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),oo([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),oo([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=oo([m("uui-label")],n.UUILabelElement);var hh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,vr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ph(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hh(e,t,o),o};const bh=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUILoaderBarElement=class extends v{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=bh(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},n.UUILoaderBarElement.styles=[b`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-default,#1b264f)}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar,#bar-background{background:currentColor}#bar{transition:max-width 120ms ease}#bar-background{opacity:.3}#bar-anim{transform:scaleX(.4);animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#fff 0,#fff 25%,transparent 100%)}#bar-anim.animate{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}@keyframes bar-loading{0%{transform-origin:-175% 0}100%{transform-origin:175% 0}}`],vr([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),vr([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=vr([m("uui-loader-bar")],n.UUILoaderBarElement);var mh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,fr=(i,e,t,r)=>{for(var o=r>1?void 0:r?gh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&mh(e,t,o),o};n.UUILoaderCircleElement=class extends v{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${ce(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[b`:host{vertical-align:middle;line-height:0;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:1em;height:1em;color:var(--uui-color-default,#1b264f)}#spinner{width:100%;height:100%}#spinner g{transform-origin:50% 50%;animation:18s linear infinite spinner-animation}#spinner.animate g{animation:.8s linear infinite spinner-animation}@keyframes spinner-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#spinner.animate #circle{animation:1.4s ease-in infinite circle-animation}@keyframes circle-animation{0%{stroke-dashoffset:-55}38%{stroke-dashoffset:-88}100%{stroke-dashoffset:-55}}svg circle{fill:transparent;stroke:currentColor;stroke-width:6px}#bg{opacity:.5}#circle{stroke-linecap:round;stroke-dasharray:0 0;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray 120ms ease}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:.3em;font-weight:700;text-align:center;padding-top:.09em}`],fr([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),fr([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=fr([m("uui-loader-circle")],n.UUILoaderCircleElement);var vh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,yh=(i,e,t,r)=>{for(var o=r>1?void 0:r?fh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vh(e,t,o),o};n.UUILoaderElement=class extends v{render(){return u`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[b`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],n.UUILoaderElement=yh([m("uui-loader")],n.UUILoaderElement);/**
317
+ */let pr=class extends ft{constructor(e){if(super(e),this.et=k,e.type!==ie.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this.ft=void 0,this.et=e;if(e===W)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}};pr.directiveName="unsafeHTML",pr.resultType=1;const to=vt(pr);var sd=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,Bs=(i,e,t,r)=>{for(var o=r>1?void 0:r?ad(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sd(e,t,o),o};n.UUIFormValidationMessageElement=class extends v{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=e=>{const t=e.composedPath()[0];t.pristine===!1?this._messages.set(t,t.validationMessage):this._messages.delete(t),this.requestUpdate()},this._onControlValid=e=>{const t=e.composedPath()[0];this._messages.delete(t),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(e){let t=null;typeof e=="string"?t=this.getRootNode()?.getElementById(e):e instanceof HTMLElement&&(t=e);const r=t??this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(gt.INVALID,this._onControlInvalid),o.removeEventListener(gt.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(gt.INVALID,this._onControlInvalid),this._for.addEventListener(gt.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${hr(this._messages,e=>u`<div>${to(e[1])}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[b`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],Bs([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=Bs([m("uui-form-validation-message")],n.UUIFormValidationMessageElement);var ld=Object.defineProperty,ud=Object.getOwnPropertyDescriptor,cd=(i,e,t,r)=>{for(var o=r>1?void 0:r?ud(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ld(e,t,o),o};n.UUIFormElement=class extends v{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(e){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const t=e.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=t.length>0?t[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(e){if(e.target===null)return;const t=e.target;if(!t.checkValidity()){t.setAttribute("submit-invalid","");return}t.removeAttribute("submit-invalid")}_onReset(e){e.target!==null&&e.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=cd([m("uui-form")],n.UUIFormElement);let St=class extends A{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t}),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};St.ICON_REQUEST="icon-request";var dd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,et=(i,e,t,r)=>{for(var o=r>1?void 0:r?hd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dd(e,t,o),o};n.UUIIconElement=class extends v{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new St(St.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:to(this.fallback):this._nameSvg!==null?to(this._nameSvg):this.svg!==null?to(this.svg):u`<slot></slot>`}},n.UUIIconElement.styles=[b`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{color:var(--uui-icon-color,currentColor)}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],et([y()],n.UUIIconElement.prototype,"_nameSvg",2),et([l()],n.UUIIconElement.prototype,"label",2),et([l()],n.UUIIconElement.prototype,"name",1),et([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),et([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),et([y()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=et([m("uui-icon")],n.UUIIconElement);let br=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},mr=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(St.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(St.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new br(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new br}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var pd=Object.defineProperty,bd=Object.getOwnPropertyDescriptor,js=(i,e,t,r)=>{for(var o=r>1?void 0:r?bd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pd(e,t,o),o};n.UUIIconRegistryElement=class extends v{constructor(){super(),this._icons={},this._registry=new mr,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},js([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=js([m("uui-icon-registry")],n.UUIIconRegistryElement);const md=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,gd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,vd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,fd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`,yd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,wd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,_d=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,Ud=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,Ed=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`,$d=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,kd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,Id=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,xd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,Cd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,Sd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,Pd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,Ad=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,Od=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`,zd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,Ld=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`,Td=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,Md=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`,Nd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,Dd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`,Bd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,jd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`,Vd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`,Hd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`,Rd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,Fd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,Gd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`,qd=E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;let Vs=class extends mr{constructor(){super(),this.defineIcon("add",md.strings[0]),this.defineIcon("alert",gd.strings[0]),this.defineIcon("attachment",vd.strings[0]),this.defineIcon("calendar",fd.strings[0]),this.defineIcon("check",yd.strings[0]),this.defineIcon("clipboard",wd.strings[0]),this.defineIcon("code",_d.strings[0]),this.defineIcon("colorpicker",Ud.strings[0]),this.defineIcon("copy",Ed.strings[0]),this.defineIcon("delete",$d.strings[0]),this.defineIcon("document",kd.strings[0]),this.defineIcon("download",Id.strings[0]),this.defineIcon("edit",xd.strings[0]),this.defineIcon("favorite",Cd.strings[0]),this.defineIcon("folder",Sd.strings[0]),this.defineIcon("forbidden",Pd.strings[0]),this.defineIcon("info",Ad.strings[0]),this.defineIcon("link",Od.strings[0]),this.defineIcon("lock",zd.strings[0]),this.defineIcon("pause",Ld.strings[0]),this.defineIcon("picture",Td.strings[0]),this.defineIcon("play",Md.strings[0]),this.defineIcon("remove",Nd.strings[0]),this.defineIcon("search",Dd.strings[0]),this.defineIcon("see",Bd.strings[0]),this.defineIcon("settings",jd.strings[0]),this.defineIcon("subtract",Vd.strings[0]),this.defineIcon("sync",Hd.strings[0]),this.defineIcon("unlock",Rd.strings[0]),this.defineIcon("unsee",Fd.strings[0]),this.defineIcon("wand",Gd.strings[0]),this.defineIcon("wrong",qd.strings[0])}};var Wd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,Xd=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wd(e,t,o),o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new Vs}},n.UUIIconRegistryEssentialElement=Xd([m("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var Yd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,Pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yd(e,t,o),o};n.UUIInputFileElement=class extends ue(v){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return super.value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-file-dropzone"),$(this,"uui-button"),$(this,"uui-action-bar"),$(this,"uui-file-preview")}getFormElement(){return this._dropZone}async blur(){await this.updateComplete,this._dropzone.blur()}async focus(){await this.updateComplete,this._dropzone.focus()}async click(){await this.updateComplete,this._dropzone.browse()}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const s=o instanceof File;r.append(this.name,s?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${Pu.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${hr(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:k}</div>`}},n.UUIInputFileElement.styles=[b`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],Pt([P("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),Pt([P("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),Pt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),Pt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),Pt([y()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=Pt([m("uui-input-file")],n.UUIInputFileElement);let tt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};tt.CHANGE="change",tt.INPUT="input";var Qd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,H=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jd(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qd(e,t,o),o};n.UUIInputElement=class extends ue(le("",v),""){constructor(){super(),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this.value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this.value).length>this.maxlength),this.updateComplete.then(()=>{this.addFormControlElement(this._input)})}get type(){return this._type}set type(e){this._type=e}_onKeypress(e){this.type!=="color"&&e.key=="Enter"&&this.submit()}async blur(){await this.updateComplete,this._input.blur()}async focus(){await this.updateComplete,this._input.focus()}async select(){await this.updateComplete,this._input.select()}getFormElement(){return this.shadowRoot?.querySelector("input")}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new tt(tt.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new tt(tt.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${U(this.pattern)}" min="${U(this.min)}" max="${U(this.max)}" step="${U(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${U(this.autocomplete)}" placeholder="${U(this.placeholder)}" aria-label="${U(this.label)}" inputmode="${U(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[b`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-input-height,var(--uui-size-11,33px));text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-color-surface,#fff));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-color-border,#d8d7d9));--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-danger,#d42054)}input{font-family:inherit;padding:var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:0;box-sizing:border-box;border:none;background:0 0;width:100%;height:inherit;text-align:inherit;outline:0}input[type=password]::-ms-reveal{display:none}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input),::slotted(uui-input-lock){height:100%;--uui-input-border-width:0}`],H([l()],n.UUIInputElement.prototype,"min",2),H([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),H([l({type:String,attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),H([l()],n.UUIInputElement.prototype,"max",2),H([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),H([l({type:String,attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),H([l({type:Number})],n.UUIInputElement.prototype,"step",2),H([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),H([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),H([l()],n.UUIInputElement.prototype,"placeholder",2),H([l()],n.UUIInputElement.prototype,"autocomplete",2),H([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),H([l({type:String})],n.UUIInputElement.prototype,"type",1),H([l({type:String})],n.UUIInputElement.prototype,"pattern",2),H([l({type:String})],n.UUIInputElement.prototype,"inputMode",2),H([P("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=H([m("uui-input")],n.UUIInputElement);let io=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};io.LOCK_CHANGE="lock-change";var eh=Object.defineProperty,th=Object.getOwnPropertyDescriptor,Hs=(i,e,t,r)=>{for(var o=r>1?void 0:r?th(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eh(e,t,o),o};n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked,this.pristine=!1,this.dispatchEvent(new io(io.LOCK_CHANGE))}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${Au.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${Lu.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?"Unlock input":"Lock input"}">${this.renderIcon()}</uui-button>`}},n.UUIInputLockElement.styles=[...n.UUIInputElement.styles,b`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],Hs([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",2),n.UUIInputLockElement=Hs([m("uui-input-lock")],n.UUIInputLockElement);var ih=Object.defineProperty,oh=Object.getOwnPropertyDescriptor,gr=(i,e,t,r)=>{for(var o=r>1?void 0:r?oh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ih(e,t,o),o};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),$(this,"uui-icon"),$(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${zu.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${Tu.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,b`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],gr([y()],n.UUIInputPasswordElement.prototype,"passwordType",2),gr([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=gr([m("uui-input-password")],n.UUIInputPasswordElement);var rh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,sh=(i,e,t,r)=>{for(var o=r>1?void 0:r?nh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rh(e,t,o),o};n.UUIKeyboardShortcutElement=class extends v{render(){return u`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[b`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],n.UUIKeyboardShortcutElement=sh([m("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,uh=(i,e,t,r)=>{for(var o=r>1?void 0:r?lh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ah(e,t,o),o};n.UUIKeyElement=class extends v{render(){return u`<slot></slot>`}},n.UUIKeyElement.styles=[b`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],n.UUIKeyElement=uh([m("uui-key")],n.UUIKeyElement);var ch=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,oo=(i,e,t,r)=>{for(var o=r>1?void 0:r?dh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ch(e,t,o),o};n.UUILabelElement=class extends v{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){return typeof this.for=="string"?this.getRootNode()?.getElementById(this.for)||null:this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[b`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],oo([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),oo([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),oo([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=oo([m("uui-label")],n.UUILabelElement);var hh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,vr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ph(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&hh(e,t,o),o};const bh=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUILoaderBarElement=class extends v{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=bh(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},n.UUILoaderBarElement.styles=[b`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-default,#1b264f)}#bar,#bar-anim,#bar-background{position:absolute;inset:0;height:100%}#bar,#bar-background{background:currentColor}#bar{transition:max-width 120ms ease}#bar-background{opacity:.3}#bar-anim{transform:scaleX(.4);animation:bar-loading 1s infinite linear;background:linear-gradient(-90deg,#fff 0,#fff 25%,transparent 100%)}#bar-anim.animate{background:linear-gradient(-90deg,currentColor 0,currentColor 25%,transparent 100%)}@keyframes bar-loading{0%{transform-origin:-175% 0}100%{transform-origin:175% 0}}`],vr([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),vr([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=vr([m("uui-loader-bar")],n.UUILoaderBarElement);var mh=Object.defineProperty,gh=Object.getOwnPropertyDescriptor,fr=(i,e,t,r)=>{for(var o=r>1?void 0:r?gh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&mh(e,t,o),o};n.UUILoaderCircleElement=class extends v{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${ce(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[b`:host{vertical-align:middle;line-height:0;overflow:hidden;display:inline-flex;justify-content:center;align-items:center;position:relative;width:1em;height:1em;color:var(--uui-color-default,#1b264f)}#spinner{width:100%;height:100%}#spinner g{transform-origin:50% 50%;animation:18s linear infinite spinner-animation}#spinner.animate g{animation:.8s linear infinite spinner-animation}@keyframes spinner-animation{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}#spinner.animate #circle{animation:1.4s ease-in infinite circle-animation}@keyframes circle-animation{0%{stroke-dashoffset:-55}38%{stroke-dashoffset:-88}100%{stroke-dashoffset:-55}}svg circle{fill:transparent;stroke:currentColor;stroke-width:6px}#bg{opacity:.5}#circle{stroke-linecap:round;stroke-dasharray:0 0;transform-origin:50% 50%;transform:rotate(-90deg);transition:stroke-dasharray 120ms ease}#progress-display{position:absolute;left:0;top:50%;right:0;stroke:currentColor;transform:translateY(-50%);font-size:.3em;font-weight:700;text-align:center;padding-top:.09em}`],fr([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),fr([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=fr([m("uui-loader-circle")],n.UUILoaderCircleElement);var vh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,yh=(i,e,t,r)=>{for(var o=r>1?void 0:r?fh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vh(e,t,o),o};n.UUILoaderElement=class extends v{render(){return u`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[b`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],n.UUILoaderElement=yh([m("uui-loader")],n.UUILoaderElement);/**
318
318
  * @license
319
319
  * Copyright 2017 Google LLC
320
320
  * SPDX-License-Identifier: BSD-3-Clause
321
321
  */const si=(i,e)=>{var t,r;const o=i._$AN;if(o===void 0)return!1;for(const s of o)(r=(t=s)._$AO)===null||r===void 0||r.call(t,e,!1),si(s,e);return!0},ro=i=>{let e,t;do{if((e=i._$AM)===void 0)break;t=e._$AN,t.delete(i),i=e}while(t?.size===0)},Rs=i=>{for(let e;e=i._$AM;i=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(i))break;t.add(i),Uh(e)}};function wh(i){this._$AN!==void 0?(ro(this),this._$AM=i,Rs(this)):this._$AM=i}function _h(i,e=!1,t=0){const r=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(r))for(let s=t;s<r.length;s++)si(r[s],!1),ro(r[s]);else r!=null&&(si(r,!1),ro(r));else si(this,i)}const Uh=i=>{var e,t,r,o;i.type==ie.CHILD&&((e=(r=i)._$AP)!==null&&e!==void 0||(r._$AP=_h),(t=(o=i)._$AQ)!==null&&t!==void 0||(o._$AQ=wh))};let Eh=class extends ft{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),Rs(this),this.isConnected=e._$AU}_$AO(e,t=!0){var r,o;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(o=this.disconnected)===null||o===void 0||o.call(this)),t&&(si(this,e),ro(this))}setValue(e){if(ys(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};const yr=new WeakMap,wr=vt(class extends Eh{render(i){return k}update(i,[e]){var t;const r=e!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=e,this.dt=(t=i.options)===null||t===void 0?void 0:t.host,this.ot(this.lt=i.element)),k}ot(i){var e;if(typeof this.G=="function"){const t=(e=this.dt)!==null&&e!==void 0?e:globalThis;let r=yr.get(t);r===void 0&&(r=new WeakMap,yr.set(t,r)),r.get(this.G)!==void 0&&this.G.call(this.dt,void 0),r.set(this.G,i),i!==void 0&&this.G.call(this.dt,i)}else this.G.value=i}get rt(){var i,e,t;return typeof this.G=="function"?(e=yr.get((i=this.dt)!==null&&i!==void 0?i:globalThis))===null||e===void 0?void 0:e.get(this.G):(t=this.G)===null||t===void 0?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});let $e=class extends A{};$e.SHOW_CHILDREN="show-children",$e.HIDE_CHILDREN="hide-children",$e.CLICK_LABEL="click-label";var $h=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,he=(i,e,t,r)=>{for(var o=r>1?void 0:r?kh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$h(e,t,o),o};n.UUIMenuItemElement=class extends Ii(mt(Qt(le("label",v)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1,this._labelButtonChanged=e=>{this.selectableTarget=e||this},this._iconSlotChanged=e=>{this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const e=this.showChildren?$e.HIDE_CHILDREN:$e.SHOW_CHILDREN,t=new $e(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const e=new $e($e.CLICK_LABEL);this.dispatchEvent(e)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),$(this,"uui-symbol-expand"),$(this,"uui-loader-bar")}async focus(){await this.updateComplete,this.shadowRoot?.querySelector("#label-button")?.focus?.()}_renderLabelInside(){return u`<slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this._iconSlotChanged}"></slot>${this.renderLabel()}<slot name="badge" id="badge"></slot>`}_renderLabelAsAnchor(){return this.disabled?u`<span id="label-button" ${wr(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${wr(this._labelButtonChanged)} href="${U(this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}" @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${wr(this._labelButtonChanged)} @click="${this._onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</button>`}render(){return u`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?u`<button id="caret-button" @click="${this._onCaretClicked}"><uui-symbol-expand ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div>${this.selectOnly===!1?u`<slot id="actions-container" name="actions"></slot>`:""} ${this.loading?u`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?u`<slot></slot>`:""}`}},n.UUIMenuItemElement.styles=[b`:host{box-sizing:border-box;display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none;--flat-structure-reversed:calc(
322
322
  1 - var(--uui-menu-item-flat-structure, 0)
323
- )}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:calc(var(--flat-structure-reversed) * var(--uui-size-8,24px)) 1fr;grid-template-rows:1fr;white-space:nowrap}:host(:not([active],[selected],[disabled])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled],[select-mode=highlight])) #menu-item #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}:host(:not([active],[selected])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-color-hover,var(--uui-color-interactive-emphasis,#3544b1))}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-menu-item-color-active,var(--uui-color-current-contrast,#1b264f))}:host([active]) #label-button-background{background-color:var(--uui-menu-item-background-color-active,var(--uui-color-current,#f5c1bc))}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-active-hover,var(--uui-color-current-emphasis,#f8d6d3))}:host([disabled]) #menu-item{color:var(--uui-menu-item-color-disabled,var(--uui-color-disabled-contrast,#c4c4c4));background-color:var(--uui-menu-item-background-color-disabled,var(--uui-color-disabled,#f3f3f5))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button,:host([selected]:not([select-mode=highlight],[disabled])) #label-button{color:var(--uui-menu-item-color-selected,var(--uui-color-selected-contrast,#fff))}:host([selected]:not([select-mode=highlight],[disabled])) #label-button-background{background-color:var(--uui-menu-item-background-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button:hover,:host([selected]:not([select-mode=highlight],[disabled])) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-selected-hover,var(--uui-color-selected-emphasis,#4656c8))}:host([select-mode=highlight]:not([disabled],[active],[selectable])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight,var(--uui-color-surface-emphasis,#fafafa))}:host([select-mode=highlight][active]:not([disabled])) #menu-item #label-button-background{border-radius:var(--uui-border-radius,3px)}:host([select-mode=highlight][active][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-active-selected,var(--uui-color-current-emphasis,#f8d6d3))}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #caret-button,:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button{color:var(--uui-menu-item-color-highlight-selected,var(--uui-color-interactive,#1b264f))}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([selected][selectable][select-mode=highlight]:not([active])) #menu-item #caret-button:hover{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-menu-item-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([select-mode=highlight]:not([disabled])) #menu-item #label-button-background::after{border-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));opacity:0}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #caret-button:hover::after{border-top-left-radius:var(--uui-border-radius,3px);border-bottom-left-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px 0 1px 1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));border-right:none}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button-background::after{opacity:1}:host([select-mode=highlight][selectable]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.33}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.66}:host([disabled]) #label-button{cursor:default}button{display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;padding:0;text-align:left;border:none;color:inherit;background-color:transparent;cursor:pointer;min-height:var(--uui-size-12,36px);z-index:1}#label-button{position:relative;flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;padding-right:var(--uui-size-space-3,9px);padding-left:calc(var(--uui-menu-item-flat-structure) * var(--uui-size-space-3,9px));display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1;font-weight:inherit}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--uui-menu-item-border-radius,0)}#actions-container{opacity:0;width:0;grid-column-start:3;overflow:hidden}:host(:not([disabled])) #menu-item:focus #actions-container,:host(:not([disabled])) #menu-item:focus-within #actions-container,:host(:not([disabled])) #menu-item:hover #actions-container{opacity:1;width:auto}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;font-size:16px;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}:host([select-mode=highlight]) #label-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #label-button:focus-visible::after{content:'';border-radius:calc(var(--uui-border-radius,3px) - 1px);position:absolute;inset:3px 3px 3px -5px;border:2px solid var(--uui-color-focus,#3879ff)}:host([select-mode=highlight]) #caret-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #caret-button:focus-visible::after{content:'';position:absolute;inset:3px;border-radius:calc(var(--uui-border-radius,3px) - 1px);border:2px solid var(--uui-color-focus,#3879ff)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],he([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),he([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),he([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),he([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),he([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),he([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),he([l({type:String})],n.UUIMenuItemElement.prototype,"rel",2),he([l({type:String,attribute:"select-mode",reflect:!0})],n.UUIMenuItemElement.prototype,"selectMode",2),he([y()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=he([m("uui-menu-item")],n.UUIMenuItemElement);var Ih=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,At=(i,e,t,r)=>{for(var o=r>1?void 0:r?xh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ih(e,t,o),o};const it="uui:modal-close";let Y=class extends v{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(it,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._closeModal()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){this.isOpen=!0,this._dialogElement?.showModal(),this._dialogElement?.addEventListener("cancel",this.close)}_closeModal(){this.isClosing=!0,this.isOpen=!1,this._dialogElement?.close(),this.dispatchEvent(new CustomEvent("close-end")),this.remove()}};Y.styles=[b`dialog{display:block;margin:0;padding:0;max-width:unset;max-height:unset;border:none;background:0 0}dialog::backdrop{background:0 0;opacity:0}dialog::after{content:'';position:absolute;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));pointer-events:none;opacity:1;transition:opacity var(--uui-modal-transition-duration,250ms);z-index:1}:host([index='0']) dialog::after{opacity:0}`],At([P("dialog")],Y.prototype,"_dialogElement",2),At([l({type:Boolean,reflect:!0,attribute:"is-open"})],Y.prototype,"isOpen",2),At([l({type:Boolean,reflect:!0,attribute:"is-closing"})],Y.prototype,"isClosing",2),At([l({type:Number,reflect:!0})],Y.prototype,"index",2),At([l({type:Number,reflect:!0,attribute:"unique-index"})],Y.prototype,"uniqueIndex",2),At([l({type:Number,attribute:"transition-duration"})],Y.prototype,"transitionDuration",1);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Fs=i=>{throw TypeError(i)},Gs=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ch(e,t,o),o},qs=(i,e,t)=>e.has(i)||Fs("Cannot "+t),Ws=(i,e,t)=>(qs(i,e,"read from private field"),t?t.call(i):e.get(i)),Ph=(i,e,t)=>e.has(i)?Fs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ah=(i,e,t)=>(qs(i,e,"access private method"),t),ai,_r,Ks;n.UUIModalSidebarElement=class extends Y{constructor(){super(),Ph(this,ai),this.size="full",this.addEventListener(it,Ah(this,ai,Ks).bind(this))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-Ws(this,ai,_r)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return u`<dialog><slot></slot></dialog>`}},ai=new WeakSet,_r=function(){return this._dialogElement?.getBoundingClientRect().width??0},Ks=function(i){i.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-Ws(this,ai,_r)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},n.UUIModalSidebarElement.styles=[...Y.styles,b`:host{--uui-modal-sidebar-left-gap:24px;--uui-modal-sidebar-background:var(--uui-color-surface,#fff)}@media (min-width:600px){:host{--uui-modal-sidebar-left-gap:64px}}dialog{height:100%;width:100%;box-sizing:border-box;max-width:calc(100% - var(--uui-modal-sidebar-left-gap));margin-left:auto;right:var(--uui-modal-offset);transition:right var(--uui-modal-transition-duration,250ms);background:var(--uui-modal-sidebar-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}:host([hide]) dialog{display:none}:host([size=large]) dialog{max-width:min(1200px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=medium]) dialog{max-width:min(800px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=small]) dialog{max-width:min(400px,calc(100% - var(--uui-modal-sidebar-left-gap)))}`],Gs([l({reflect:!0})],n.UUIModalSidebarElement.prototype,"size",2),n.UUIModalSidebarElement=Gs([m("uui-modal-sidebar")],n.UUIModalSidebarElement);var Oh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Xs=i=>{throw TypeError(i)},Ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?zh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Oh(e,t,o),o},Ys=(i,e,t)=>e.has(i)||Xs("Cannot "+t),li=(i,e,t)=>(Ys(i,e,"read from private field"),t?t.call(i):e.get(i)),Ur=(i,e,t)=>e.has(i)?Xs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),no=(i,e,t)=>(Ys(i,e,"access private method"),t),Er,zt,Lt,$r,kr;n.UUIModalContainerElement=class extends v{constructor(){super(),Ur(this,Lt),this.sidebarGap=64,this.transitionDurationMS=250,Ur(this,Er,()=>{const e=this._modals??[];if(this._modals=this.modalSlot?.assignedElements({flatten:!0}).filter(t=>t instanceof Y)??[],e.filter(t=>this._modals.indexOf(t)===-1).forEach(t=>t.removeEventListener(it,li(this,zt))),this._modals.filter(t=>e.indexOf(t)===-1).forEach(t=>t.addEventListener(it,li(this,zt))),this._sidebars=this._modals.filter(t=>t instanceof n.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}no(this,Lt,$r).call(this),no(this,Lt,kr).call(this)}),Ur(this,zt,e=>{if(e.stopImmediatePropagation(),e.target?.removeEventListener(it,li(this,zt)),!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}no(this,Lt,$r).call(this),no(this,Lt,kr).call(this)}),this.addEventListener(it,li(this,zt))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${li(this,Er)}"></slot>`}},Er=new WeakMap,zt=new WeakMap,Lt=new WeakSet,$r=function(){this.setAttribute("backdrop","");const i=this._modals?.filter(e=>!e.isClosing).reverse()??[];i?.forEach((e,t)=>{e.index=t,e.transitionDuration=this.transitionDurationMS}),i?.forEach(e=>{const t=i?.filter(r=>r.constructor.name===e.constructor.name);e.uniqueIndex=t?.indexOf(e)??0})},kr=function(){requestAnimationFrame(()=>{let i=0;const e=this._sidebars?.filter(t=>!t.isClosing).reverse()??[];for(let t=0;t<e.length;t++){const r=e[t],o=e[t+1],s=i;if(r.updateComplete.then(()=>{r.style.setProperty("--uui-modal-offset",s+"px")}),o?.hasAttribute("hide"))break;const a=r.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,c=o?.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,d=a+i+this.sidebarGap-c;i=d>0?d:0}})},n.UUIModalContainerElement.styles=b`:host{position:fixed;--uui-modal-color-backdrop:rgba(0, 0, 0, 0.5)}:host::after{content:'';position:fixed;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));opacity:0;pointer-events:none;transition:opacity var(--uui-modal-transition-duration,250ms)}:host([backdrop])::after{opacity:1}`,Ot([P("slot")],n.UUIModalContainerElement.prototype,"modalSlot",2),Ot([y()],n.UUIModalContainerElement.prototype,"_modals",2),Ot([y()],n.UUIModalContainerElement.prototype,"_sidebars",2),Ot([l({type:Number})],n.UUIModalContainerElement.prototype,"sidebarGap",2),Ot([l({type:Number})],n.UUIModalContainerElement.prototype,"transitionDurationMS",2),n.UUIModalContainerElement=Ot([m("uui-modal-container")],n.UUIModalContainerElement);var Lh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Nh=(i,e,t,r)=>{for(var o=r>1?void 0:r?Th(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lh(e,t,o),o};n.UUIModalDialogElement=class extends Y{render(){return u`<dialog><slot></slot></dialog>`}},n.UUIModalDialogElement.styles=[...Y.styles,b`:host{--uui-modal-dialog-background:var(--uui-color-surface,#fff)}dialog{margin:auto;max-width:100%;max-height:100%;border-radius:var(--uui-modal-dialog-border-radius,calc(var(--uui-border-radius,3px) * 4));background:var(--uui-modal-dialog-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}`],n.UUIModalDialogElement=Nh([m("uui-modal-dialog")],n.UUIModalDialogElement);let Ne=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Ne.CHANGE="change";var Mh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,ke=(i,e,t,r)=>{for(var o=r>1?void 0:r?Dh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mh(e,t,o),o};const Bh=45,Ir=(i,e,t)=>Math.min(Math.max(i,e),t),jh=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);n.UUIPaginationElement=class extends v{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),$(this,"uui-button"),$(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((o,s)=>o+s.getBoundingClientRect().width,0),r=(e-t)/Bh/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,r=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return jh(Ir(t,1,this.total),Ir(r,1,this.total))}get total(){return this._total}set total(e){this._total=e,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",e)}get current(){return this._current}set current(e){const t=this._current;this._current=Ir(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new Ne(Ne.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new Ne(Ne.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new Ne(Ne.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to first page" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}">First</uui-button>`}renderPrevious(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to previous page" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}">Previous</uui-button>`}renderNext(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to next page" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}">Next</uui-button>`}renderLast(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to last page" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}">Last</uui-button>`}renderDots(){return u`<uui-button compact="compact" look="outline" role="listitem" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(e){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return u`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return u`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return u`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}},n.UUIPaginationElement.styles=[b`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-color-border-standalone,#c2c2c2);--uui-button-border-color-hover:var(--uui-color-interactive-emphasis,#3544b1);--uui-button-border-color-disabled:var(--uui-color-border-standalone,#c2c2c2)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-color-current,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],ke([Fa("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),ke([P("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),ke([l()],n.UUIPaginationElement.prototype,"label",2),ke([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),ke([l({type:Number})],n.UUIPaginationElement.prototype,"total",1),ke([y()],n.UUIPaginationElement.prototype,"_range",2),ke([y()],n.UUIPaginationElement.prototype,"_visiblePages",2),ke([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=ke([m("uui-pagination")],n.UUIPaginationElement);let xr=class extends A{};xr.CLOSE="close";var Vh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,ui=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vh(e,t,o),o};function so(i,e,t){return i<e?e:i>t?t:i}n.UUIPopoverElement=class extends v{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=e=>{this._trigger=e.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=e=>{e.forEach(t=>{t.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=e=>{if(e.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=e=>{e.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(e){const t=this._placement;this._placement=e||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",t)}get open(){return this._open}set open(e){const t=this._open;this._open=e,e?this._openPopover():this._closePopover(),this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const e=new xr(xr.CLOSE,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.open=!1)}_getScrollParents(){const e=this.shadowRoot.host;let t=getComputedStyle(e);if(t.position==="fixed")return;const r=t.position==="absolute",o=/(auto|scroll)/;let s=e;for(;s=s.parentElement;)if(t=getComputedStyle(s),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(s),t.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const e={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,e),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(e=>{e.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(e=>{e.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){if(!this.shadowRoot)return;const e=this.containerElement;if(!e)return;const t=this.containerElement?.getBoundingClientRect(),r=this._trigger?.getBoundingClientRect();if(r!=null&&t!=null){const o=this._scrollParents.map(ve=>ve.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,t,o));let s=this._currentPlacement.indexOf("top")!==-1,a=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,d=this._currentPlacement.indexOf("right")!==-1;const h=this._currentPlacement.indexOf("-start")!==-1,f=this._currentPlacement.indexOf("-end")!==-1;let g=.5,_=.5,p=.5,w=.5,C=0,I=0;if(this.placement==="auto"){const ve=this._scrollParents[0],vi=ve.clientWidth,ct=ve.clientHeight,qt=r.x-t.width,Wt=vi-(r.x+r.width)-t.width,Fr=r.y-t.height,yo=ct-(r.y+r.height)-t.height;let wo=.5,_o=.5;const Rb=Math.max(qt,Wt);let za=Math.max(Fr,yo);yo>Fr&&yo>this.margin&&(za+=9999),Rb>za?(qt>Wt?(wo=0,c=!0):(wo=1,d=!0),C=this.margin):(Fr>yo?(_o=0,s=!0):(_o=1,a=!0),I=this.margin),g=wo,_=_o,p=1-wo,w=1-_o}else s&&(w=1,_=0),a&&(w=0,_=1),(s||a)&&(I=this.margin,h&&(p=0,g=0),f&&(p=1,g=1)),c&&(p=1,g=0),d&&(p=0,g=1),(c||d)&&(C=this.margin,h&&(w=0,_=0),f&&(w=1,_=1));const D=-t.width*p+r.width*g-C*(p*2-1),Se=-t.height*w+r.height*_-I*(w*2-1);let lt=D,ut=Se;s||a?(this._scrollParents.forEach((ve,vi)=>{const ct=ve===document.body?0:o[vi].x,qt=-r.x+ct,Wt=ve.clientWidth-r.x-r.width+D+ct-(t.width-r.width)*(1-g);lt=so(lt,qt,Wt)}),lt=so(lt,-t.width,r.width)):(c||d)&&(this._scrollParents.forEach((ve,vi)=>{const ct=ve===document.body?0:o[vi].y,qt=-r.y+ct,Wt=ve.clientHeight-r.y-r.height+Se+ct-(t.height-r.height)*(1-_);ut=so(ut,qt,Wt)}),ut=so(ut,-t.height,r.height)),(this._positionX!==lt||this._positionY!==ut)&&(this._positionX=lt,this._positionY=ut,D===lt&&Se===ut&&this._stopScrollListener(),e.style.left=`${this._positionX}px`,e.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),s=o[0],a=o[1]||null;let c;return this._scrollParents.some((d,h)=>{const f=d===document.body?0:r[h].x,g=d===document.body?0:r[h].y;return s==="top"&&t.y-2<=g?(c="bottom",!0):s==="bottom"&&t.y+t.height+2>=d.clientHeight+g?(c="top",!0):s==="left"&&t.x-2<=f?(c="right",!0):s==="right"&&t.x+t.width+2>=d.clientWidth+f?(c="left",!0):!1}),c?(this._startScrollListener(),c+(a?`-${a}`:"")):e}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},n.UUIPopoverElement.styles=[b`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:var(--uui-popover-z-index,1)}slot[name=popover]{display:block}#trigger{position:relative;width:100%}slot[name=trigger]::slotted(uui-button){--uui-button-border-radius:var(
323
+ )}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:calc(var(--flat-structure-reversed) * var(--uui-size-8,24px)) 1fr;grid-template-rows:1fr;white-space:nowrap}:host(:not([active],[selected],[disabled])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled],[select-mode=highlight])) #menu-item #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}:host(:not([active],[selected])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-color-hover,var(--uui-color-interactive-emphasis,#3544b1))}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-menu-item-color-active,var(--uui-color-current-contrast,#1b264f))}:host([active]) #label-button-background{background-color:var(--uui-menu-item-background-color-active,var(--uui-color-current,#f5c1bc))}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-active-hover,var(--uui-color-current-emphasis,#f8d6d3))}:host([disabled]) #menu-item{color:var(--uui-menu-item-color-disabled,var(--uui-color-disabled-contrast,#c4c4c4));background-color:var(--uui-menu-item-background-color-disabled,var(--uui-color-disabled,#f3f3f5))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button,:host([selected]:not([select-mode=highlight],[disabled])) #label-button{color:var(--uui-menu-item-color-selected,var(--uui-color-selected-contrast,#fff))}:host([selected]:not([select-mode=highlight],[disabled])) #label-button-background{background-color:var(--uui-menu-item-background-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button:hover,:host([selected]:not([select-mode=highlight],[disabled])) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-selected-hover,var(--uui-color-selected-emphasis,#4656c8))}:host([select-mode=highlight]:not([disabled],[active],[selectable])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight,var(--uui-color-surface-emphasis,#fafafa))}:host([select-mode=highlight][active]:not([disabled])) #menu-item #label-button-background{border-radius:var(--uui-border-radius,3px)}:host([select-mode=highlight][active][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-active-selected,var(--uui-color-current-emphasis,#f8d6d3))}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #caret-button,:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button{color:var(--uui-menu-item-color-highlight-selected,var(--uui-color-interactive,#1b264f))}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([selected][selectable][select-mode=highlight]:not([active])) #menu-item #caret-button:hover{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-menu-item-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([select-mode=highlight]:not([disabled])) #menu-item #label-button-background::after{border-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));opacity:0}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #caret-button:hover::after{border-top-left-radius:var(--uui-border-radius,3px);border-bottom-left-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px 0 1px 1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));border-right:none}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button-background::after{opacity:1}:host([select-mode=highlight][selectable]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.33}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.66}:host([disabled]) #label-button{cursor:default}button{display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;padding:0;text-align:left;border:none;color:inherit;background-color:transparent;cursor:pointer;min-height:var(--uui-size-12,36px);z-index:1}#label-button{position:relative;flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;padding-right:var(--uui-size-space-3,9px);padding-left:calc(var(--uui-menu-item-flat-structure) * var(--uui-size-space-3,9px));display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1;font-weight:inherit}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--uui-menu-item-border-radius,0)}#actions-container{opacity:0;width:0;grid-column-start:3;overflow:hidden}:host(:not([disabled])) #menu-item:focus #actions-container,:host(:not([disabled])) #menu-item:focus-within #actions-container,:host(:not([disabled])) #menu-item:hover #actions-container{opacity:1;width:auto}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;font-size:16px;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}:host([select-mode=highlight]) #label-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #label-button:focus-visible::after{content:'';border-radius:calc(var(--uui-border-radius,3px) - 1px);position:absolute;inset:3px 3px 3px -5px;border:2px solid var(--uui-color-focus,#3879ff)}:host([select-mode=highlight]) #caret-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #caret-button:focus-visible::after{content:'';position:absolute;inset:3px;border-radius:calc(var(--uui-border-radius,3px) - 1px);border:2px solid var(--uui-color-focus,#3879ff)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],he([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),he([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),he([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),he([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),he([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),he([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),he([l({type:String})],n.UUIMenuItemElement.prototype,"rel",2),he([l({type:String,attribute:"select-mode",reflect:!0})],n.UUIMenuItemElement.prototype,"selectMode",2),he([y()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=he([m("uui-menu-item")],n.UUIMenuItemElement);var Ih=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,At=(i,e,t,r)=>{for(var o=r>1?void 0:r?xh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ih(e,t,o),o};const it="uui:modal-close";let Y=class extends v{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(it,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this._closeModal()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){this.isOpen=!0,this._dialogElement?.showModal(),this._dialogElement?.addEventListener("cancel",this.close)}_closeModal(){this.isClosing=!0,this.isOpen=!1,this._dialogElement?.close(),this.dispatchEvent(new CustomEvent("close-end")),this.remove()}};Y.styles=[b`dialog{display:block;margin:0;padding:0;max-width:unset;max-height:unset;border:none;background:0 0}dialog::backdrop{background:0 0;opacity:0}dialog::after{content:'';position:absolute;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));pointer-events:none;opacity:1;transition:opacity var(--uui-modal-transition-duration,250ms);z-index:1}:host([index='0']) dialog::after{opacity:0}`],At([P("dialog")],Y.prototype,"_dialogElement",2),At([l({type:Boolean,reflect:!0,attribute:"is-open"})],Y.prototype,"isOpen",2),At([l({type:Boolean,reflect:!0,attribute:"is-closing"})],Y.prototype,"isClosing",2),At([l({type:Number,reflect:!0})],Y.prototype,"index",2),At([l({type:Number,reflect:!0,attribute:"unique-index"})],Y.prototype,"uniqueIndex",2),At([l({type:Number,attribute:"transition-duration"})],Y.prototype,"transitionDuration",1);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Fs=i=>{throw TypeError(i)},Gs=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ch(e,t,o),o},qs=(i,e,t)=>e.has(i)||Fs("Cannot "+t),Ws=(i,e,t)=>(qs(i,e,"read from private field"),t?t.call(i):e.get(i)),Ph=(i,e,t)=>e.has(i)?Fs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ah=(i,e,t)=>(qs(i,e,"access private method"),t),ai,_r,Ks;n.UUIModalSidebarElement=class extends Y{constructor(){super(),Ph(this,ai),this.size="full",this.addEventListener(it,Ah(this,ai,Ks).bind(this))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-Ws(this,ai,_r)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return u`<dialog><slot></slot></dialog>`}},ai=new WeakSet,_r=function(){return this._dialogElement?.getBoundingClientRect().width??0},Ks=function(i){i.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-Ws(this,ai,_r)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},n.UUIModalSidebarElement.styles=[...Y.styles,b`:host{--uui-modal-sidebar-left-gap:24px;--uui-modal-sidebar-background:var(--uui-color-surface,#fff)}@media (min-width:600px){:host{--uui-modal-sidebar-left-gap:64px}}dialog{height:100%;width:100%;box-sizing:border-box;max-width:calc(100% - var(--uui-modal-sidebar-left-gap));margin-left:auto;right:var(--uui-modal-offset);transition:right var(--uui-modal-transition-duration,250ms);background:var(--uui-modal-sidebar-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}:host([hide]) dialog{display:none}:host([size=large]) dialog{max-width:min(1200px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=medium]) dialog{max-width:min(800px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=small]) dialog{max-width:min(400px,calc(100% - var(--uui-modal-sidebar-left-gap)))}`],Gs([l({reflect:!0})],n.UUIModalSidebarElement.prototype,"size",2),n.UUIModalSidebarElement=Gs([m("uui-modal-sidebar")],n.UUIModalSidebarElement);var Oh=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Xs=i=>{throw TypeError(i)},Ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?zh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Oh(e,t,o),o},Ys=(i,e,t)=>e.has(i)||Xs("Cannot "+t),li=(i,e,t)=>(Ys(i,e,"read from private field"),t?t.call(i):e.get(i)),Ur=(i,e,t)=>e.has(i)?Xs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),no=(i,e,t)=>(Ys(i,e,"access private method"),t),Er,zt,Lt,$r,kr;n.UUIModalContainerElement=class extends v{constructor(){super(),Ur(this,Lt),this.sidebarGap=64,this.transitionDurationMS=250,Ur(this,Er,()=>{const e=this._modals??[];if(this._modals=this.modalSlot?.assignedElements({flatten:!0}).filter(t=>t instanceof Y)??[],e.filter(t=>this._modals.indexOf(t)===-1).forEach(t=>t.removeEventListener(it,li(this,zt))),this._modals.filter(t=>e.indexOf(t)===-1).forEach(t=>t.addEventListener(it,li(this,zt))),this._sidebars=this._modals.filter(t=>t instanceof n.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}no(this,Lt,$r).call(this),no(this,Lt,kr).call(this)}),Ur(this,zt,e=>{if(e.stopImmediatePropagation(),e.target?.removeEventListener(it,li(this,zt)),!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}no(this,Lt,$r).call(this),no(this,Lt,kr).call(this)}),this.addEventListener(it,li(this,zt))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${li(this,Er)}"></slot>`}},Er=new WeakMap,zt=new WeakMap,Lt=new WeakSet,$r=function(){this.setAttribute("backdrop","");const i=this._modals?.filter(e=>!e.isClosing).reverse()??[];i?.forEach((e,t)=>{e.index=t,e.transitionDuration=this.transitionDurationMS}),i?.forEach(e=>{const t=i?.filter(r=>r.constructor.name===e.constructor.name);e.uniqueIndex=t?.indexOf(e)??0})},kr=function(){requestAnimationFrame(()=>{let i=0;const e=this._sidebars?.filter(t=>!t.isClosing).reverse()??[];for(let t=0;t<e.length;t++){const r=e[t],o=e[t+1],s=i;if(r.updateComplete.then(()=>{r.style.setProperty("--uui-modal-offset",s+"px")}),o?.hasAttribute("hide"))break;const a=r.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,c=o?.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,d=a+i+this.sidebarGap-c;i=d>0?d:0}})},n.UUIModalContainerElement.styles=b`:host{position:fixed;--uui-modal-color-backdrop:rgba(0, 0, 0, 0.5)}:host::after{content:'';position:fixed;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));opacity:0;pointer-events:none;transition:opacity var(--uui-modal-transition-duration,250ms)}:host([backdrop])::after{opacity:1}`,Ot([P("slot")],n.UUIModalContainerElement.prototype,"modalSlot",2),Ot([y()],n.UUIModalContainerElement.prototype,"_modals",2),Ot([y()],n.UUIModalContainerElement.prototype,"_sidebars",2),Ot([l({type:Number})],n.UUIModalContainerElement.prototype,"sidebarGap",2),Ot([l({type:Number})],n.UUIModalContainerElement.prototype,"transitionDurationMS",2),n.UUIModalContainerElement=Ot([m("uui-modal-container")],n.UUIModalContainerElement);var Lh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Mh=(i,e,t,r)=>{for(var o=r>1?void 0:r?Th(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Lh(e,t,o),o};n.UUIModalDialogElement=class extends Y{render(){return u`<dialog><slot></slot></dialog>`}},n.UUIModalDialogElement.styles=[...Y.styles,b`:host{--uui-modal-dialog-background:var(--uui-color-surface,#fff)}dialog{margin:auto;max-width:100%;max-height:100%;border-radius:var(--uui-modal-dialog-border-radius,calc(var(--uui-border-radius,3px) * 4));background:var(--uui-modal-dialog-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}`],n.UUIModalDialogElement=Mh([m("uui-modal-dialog")],n.UUIModalDialogElement);let Me=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Me.CHANGE="change";var Nh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,ke=(i,e,t,r)=>{for(var o=r>1?void 0:r?Dh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nh(e,t,o),o};const Bh=45,Ir=(i,e,t)=>Math.min(Math.max(i,e),t),jh=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);n.UUIPaginationElement=class extends v{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),$(this,"uui-button"),$(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((o,s)=>o+s.getBoundingClientRect().width,0),r=(e-t)/Bh/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,r=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return jh(Ir(t,1,this.total),Ir(r,1,this.total))}get total(){return this._total}set total(e){this._total=e,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",e)}get current(){return this._current}set current(e){const t=this._current;this._current=Ir(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new Me(Me.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new Me(Me.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new Me(Me.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to first page" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}">First</uui-button>`}renderPrevious(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="Go to previous page" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}">Previous</uui-button>`}renderNext(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to next page" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}">Next</uui-button>`}renderLast(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="Go to last page" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}">Last</uui-button>`}renderDots(){return u`<uui-button compact="compact" look="outline" role="listitem" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(e){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return u`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return u`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return u`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}},n.UUIPaginationElement.styles=[b`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-color-border-standalone,#c2c2c2);--uui-button-border-color-hover:var(--uui-color-interactive-emphasis,#3544b1);--uui-button-border-color-disabled:var(--uui-color-border-standalone,#c2c2c2)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-color-current,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],ke([Fa("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),ke([P("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),ke([l()],n.UUIPaginationElement.prototype,"label",2),ke([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),ke([l({type:Number})],n.UUIPaginationElement.prototype,"total",1),ke([y()],n.UUIPaginationElement.prototype,"_range",2),ke([y()],n.UUIPaginationElement.prototype,"_visiblePages",2),ke([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=ke([m("uui-pagination")],n.UUIPaginationElement);let xr=class extends A{};xr.CLOSE="close";var Vh=Object.defineProperty,Hh=Object.getOwnPropertyDescriptor,ui=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vh(e,t,o),o};function so(i,e,t){return i<e?e:i>t?t:i}n.UUIPopoverElement=class extends v{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=e=>{this._trigger=e.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=e=>{e.forEach(t=>{t.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=e=>{if(e.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=e=>{e.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(e){const t=this._placement;this._placement=e||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",t)}get open(){return this._open}set open(e){const t=this._open;this._open=e,e?this._openPopover():this._closePopover(),this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const e=new xr(xr.CLOSE,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.open=!1)}_getScrollParents(){const e=this.shadowRoot.host;let t=getComputedStyle(e);if(t.position==="fixed")return;const r=t.position==="absolute",o=/(auto|scroll)/;let s=e;for(;s=s.parentElement;)if(t=getComputedStyle(s),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(s),t.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const e={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,e),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(e=>{e.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(e=>{e.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){if(!this.shadowRoot)return;const e=this.containerElement;if(!e)return;const t=this.containerElement?.getBoundingClientRect(),r=this._trigger?.getBoundingClientRect();if(r!=null&&t!=null){const o=this._scrollParents.map(ve=>ve.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,t,o));let s=this._currentPlacement.indexOf("top")!==-1,a=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,d=this._currentPlacement.indexOf("right")!==-1;const h=this._currentPlacement.indexOf("-start")!==-1,f=this._currentPlacement.indexOf("-end")!==-1;let g=.5,_=.5,p=.5,w=.5,C=0,I=0;if(this.placement==="auto"){const ve=this._scrollParents[0],vi=ve.clientWidth,ct=ve.clientHeight,qt=r.x-t.width,Wt=vi-(r.x+r.width)-t.width,Fr=r.y-t.height,yo=ct-(r.y+r.height)-t.height;let wo=.5,_o=.5;const Rb=Math.max(qt,Wt);let za=Math.max(Fr,yo);yo>Fr&&yo>this.margin&&(za+=9999),Rb>za?(qt>Wt?(wo=0,c=!0):(wo=1,d=!0),C=this.margin):(Fr>yo?(_o=0,s=!0):(_o=1,a=!0),I=this.margin),g=wo,_=_o,p=1-wo,w=1-_o}else s&&(w=1,_=0),a&&(w=0,_=1),(s||a)&&(I=this.margin,h&&(p=0,g=0),f&&(p=1,g=1)),c&&(p=1,g=0),d&&(p=0,g=1),(c||d)&&(C=this.margin,h&&(w=0,_=0),f&&(w=1,_=1));const D=-t.width*p+r.width*g-C*(p*2-1),Se=-t.height*w+r.height*_-I*(w*2-1);let lt=D,ut=Se;s||a?(this._scrollParents.forEach((ve,vi)=>{const ct=ve===document.body?0:o[vi].x,qt=-r.x+ct,Wt=ve.clientWidth-r.x-r.width+D+ct-(t.width-r.width)*(1-g);lt=so(lt,qt,Wt)}),lt=so(lt,-t.width,r.width)):(c||d)&&(this._scrollParents.forEach((ve,vi)=>{const ct=ve===document.body?0:o[vi].y,qt=-r.y+ct,Wt=ve.clientHeight-r.y-r.height+Se+ct-(t.height-r.height)*(1-_);ut=so(ut,qt,Wt)}),ut=so(ut,-t.height,r.height)),(this._positionX!==lt||this._positionY!==ut)&&(this._positionX=lt,this._positionY=ut,D===lt&&Se===ut&&this._stopScrollListener(),e.style.left=`${this._positionX}px`,e.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),s=o[0],a=o[1]||null;let c;return this._scrollParents.some((d,h)=>{const f=d===document.body?0:r[h].x,g=d===document.body?0:r[h].y;return s==="top"&&t.y-2<=g?(c="bottom",!0):s==="bottom"&&t.y+t.height+2>=d.clientHeight+g?(c="top",!0):s==="left"&&t.x-2<=f?(c="right",!0):s==="right"&&t.x+t.width+2>=d.clientWidth+f?(c="left",!0):!1}),c?(this._startScrollListener(),c+(a?`-${a}`:"")):e}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},n.UUIPopoverElement.styles=[b`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:var(--uui-popover-z-index,1)}slot[name=popover]{display:block}#trigger{position:relative;width:100%}slot[name=trigger]::slotted(uui-button){--uui-button-border-radius:var(
324
324
  --uui-popover-toggle-slot-button-border-radius
325
325
  );--uui-button-merge-border-left:var(
326
326
  --uui-popover-toggle-slot-button-merge-border-left
327
- )}`],ui([P("#container")],n.UUIPopoverElement.prototype,"containerElement",2),ui([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),ui([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),ui([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=ui([m("uui-popover")],n.UUIPopoverElement);function Rh(){const i=this.addEventListener;this.addEventListener=function(t,r,o){if(t!=="focusout"){if(t==="beforetoggle"){this.polyfill_onBeforeToggle=s=>{this.dispatchEvent(new CustomEvent("polyfill-beforetoggle",{bubbles:!1,composed:!1,detail:{oldState:s.oldState,newState:s.newState}})),r(s)};return}i.call(this,t,r,o)}},this.polyfill_onFocusout=t=>{const r=t.relatedTarget;if(!r)return;const o=r?.closest("uui-popover-container"),s=r?.closest("[popovertarget]");!o&&!s&&this.hidePopover()},this.polyfill_onClick=t=>{t.composedPath().some(r=>r.tagName==="UUI-POPOVER-CONTAINER"||r.attributes?.popovertarget)||this.hidePopover()},this.polyfill_onParentPopoverUpdate=t=>{t.detail.newState==="closed"&&this.hidePopover()};const e=t=>t.parentElement?t.parentElement?.tagName==="UUI-POPOVER-CONTAINER"?t.parentElement:e(t.parentElement):null;this.polyfill_hasBeenMovedToBody||(this.style.display="none",this.style.position="fixed",this.style.inset="0",this.style.zIndex="9999"),this.showPopover=()=>{this.polyfill_hasBeenMovedToBody||(this.polyfill_parentPopoverContainer=e(this)),this.polyfill_onBeforeToggle({oldState:"closed",newState:"open"}),this.style.display="block",this.polyfill_parentPopoverContainer?.addEventListener("polyfill-beforetoggle",this.polyfill_onParentPopoverUpdate),window.addEventListener("click",this.polyfill_onClick),window.addEventListener("focusout",this.polyfill_onFocusout),this.polyfill_originalParent=this.parentNode,this.polyfill_originalNextSibling=this.nextSibling;const t=this.getRootNode();if(t&&t.adoptedStyleSheets){const r=t.adoptedStyleSheets.reduce((a,c)=>a+Object.values(c.cssRules).reduce((d,h)=>d+`#${this.id} ${h.cssText}`,""),""),o=document.createElement("style");o.innerHTML=r,o.id="uui-popover-polyfill-style";const s=this.shadowRoot.host.querySelector("#uui-popover-polyfill-style");s&&s.parentNode.removeChild(s),this.insertAdjacentElement("beforeend",o)}this.parentNode!==document.body&&(this.parentNode?.removeChild(this),this.polyfill_hasBeenMovedToBody=!0,document.body.appendChild(this))},this.hidePopover=()=>{this.polyfill_hasBeenMovedToBody&&(document.body.removeChild(this),this.polyfill_hasBeenMovedToBody=!1,this.polyfill_originalParent?.insertBefore(this,this.polyfill_originalNextSibling)),window.removeEventListener("click",this.polyfill_onClick),window.removeEventListener("focusout",this.polyfill_onFocusout),this.polyfill_parentPopoverContainer?.removeEventListener("polyfill-beforetoggle",this.polyfill_onParentPopoverUpdate),this.polyfill_onBeforeToggle({oldState:"open",newState:"closed"}),this.style.display="none"}}var Fh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Zs=i=>{throw TypeError(i)},ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fh(e,t,o),o},Cr=(i,e,t)=>e.has(i)||Zs("Cannot "+t),T=(i,e,t)=>(Cr(i,e,"read from private field"),t?t.call(i):e.get(i)),rt=(i,e,t)=>e.has(i)?Zs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),qh=(i,e,t,r)=>(Cr(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Tt=(i,e,t)=>(Cr(i,e,"access private method"),t),Ie,Nt,ao,Me,ci,Sr,De,Pr,Qs,Ar,Js;n.UUIPopoverContainerElement=class extends v{constructor(){super(...arguments),rt(this,De),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,rt(this,Ie,null),rt(this,Nt,[]),rt(this,ao,e=>{if(this._open=e.newState==="open",qh(this,Ie,Cu(this,"popovertarget",this.id)),Tt(this,De,Js).call(this),T(this,Ie)?.dispatchEvent(new CustomEvent("uui-popover-before-toggle",{bubbles:!1,composed:!1,detail:{oldState:e.oldState,newState:e.newState}})),!this._open){Tt(this,De,Ar).call(this);return}Tt(this,De,Qs).call(this),requestAnimationFrame(()=>{T(this,Me).call(this)})}),rt(this,Me,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",T(this,ci).call(this,3))}),rt(this,ci,e=>{if(T(this,Sr).call(this),e--,T(this,Ie)===null)return;const t=this._actualPlacement.indexOf("top")!==-1,r=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,s=this._actualPlacement.indexOf("right")!==-1,a=this._actualPlacement.indexOf("-start")!==-1,c=this._actualPlacement.indexOf("-end")!==-1,d=T(this,Ie).getBoundingClientRect(),h=this.getBoundingClientRect();let f=0,g=0;r&&(f=d.top+d.height,a&&(g=d.left),c&&(g=d.left+d.width-h.width),!a&&!c&&(g=d.left+d.width/2-h.width/2)),t&&(f=d.top-h.height,a&&(g=d.left),c&&(g=d.left+d.width-h.width),!a&&!c&&(g=d.left+d.width/2-h.width/2)),o&&(g=d.left-h.width,a&&(f=d.top),c&&(f=d.top+d.height-h.height),!a&&!c&&(f=d.top+d.height/2-h.height/2)),s&&(g=d.left+d.width,a&&(f=d.top),c&&(f=d.top+d.height-h.height),!a&&!c&&(f=d.top+d.height/2-h.height/2));const _=window.innerWidth,p=window.innerHeight,w=Math.min(0,d.top+d.height),C=Math.max(Math.min(f,p-h.height),d.top-h.height);if(Math.max(w,C)!==f&&(t||r)&&e>0){Tt(this,De,Pr).call(this),T(this,ci).call(this,e);return}f=Math.max(w,C);const I=Math.min(0,d.left+d.width),D=Math.max(Math.min(g,_-h.width),d.left-h.width),Se=Math.max(I,D);if(Se!==g&&(o||s)&&e>0){Tt(this,De,Pr).call(this),T(this,ci).call(this,e);return}g=Se,(f+h.height<0||f>p||g+h.width<0||g>_)&&this.hidePopover(),this.style.transform=`translate(${g}px, ${f}px)`,this.style.opacity="1"}),rt(this,Sr,()=>{const e={top:"bottom",bottom:"top",left:"right",right:"left"};let t=this._actualPlacement.split("-")[0];t=e[t]||t,t=t.charAt(0).toUpperCase()+t.slice(1);const r=`padding${t}`;this.style.padding="0",this.style[r]=`${this.margin}px`})}get open(){return this._open}get placement(){return this._placement}set placement(e){this._placement=e,this._actualPlacement=e,T(this,Me).call(this)}connectedCallback(){!HTMLElement.prototype.hasOwnProperty("popover")&&Rh.bind(this)(),this.hasAttribute("popover")||this.setAttribute("popover",""),super.connectedCallback(),this.addEventListener("beforetoggle",T(this,ao))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",T(this,ao)),Tt(this,De,Ar).call(this)}render(){return u`<slot></slot>`}},Ie=new WeakMap,Nt=new WeakMap,ao=new WeakMap,Me=new WeakMap,ci=new WeakMap,Sr=new WeakMap,De=new WeakSet,Pr=function(){const[i,e]=this._actualPlacement.split("-"),t=i==="top"?"bottom":i==="bottom"?"top":i==="left"?"right":"left";this._actualPlacement=`${t}-${e}`},Qs=function(){T(this,Nt).forEach(i=>{i.addEventListener("scroll",T(this,Me),{passive:!0})}),document.addEventListener("scroll",T(this,Me),{passive:!0})},Ar=function(){T(this,Nt).forEach(i=>{i.removeEventListener("scroll",T(this,Me))}),document.removeEventListener("scroll",T(this,Me))},Js=function(){if(!T(this,Ie))return;let i=getComputedStyle(T(this,Ie));if(i.position==="fixed")return;const e=i.position==="absolute",t=/(auto|scroll)/;let r=T(this,Ie);for(;r=r.parentElement;)if(i=getComputedStyle(r),!(e&&i.position==="static")&&(t.test(i.overflow+i.overflowY+i.overflowX)&&T(this,Nt).push(r),i.position==="fixed"))return;T(this,Nt).push(document.body)},n.UUIPopoverContainerElement.styles=[b`:host{margin:0;width:fit-content;height:fit-content;border:none;border-radius:0;padding:0;background-color:none;background:0 0;overflow:visible}`],ot([l({type:Number})],n.UUIPopoverContainerElement.prototype,"margin",2),ot([l({type:Boolean})],n.UUIPopoverContainerElement.prototype,"open",1),ot([l({type:String,reflect:!0})],n.UUIPopoverContainerElement.prototype,"placement",1),ot([y()],n.UUIPopoverContainerElement.prototype,"_placement",2),ot([y()],n.UUIPopoverContainerElement.prototype,"_open",2),ot([y()],n.UUIPopoverContainerElement.prototype,"_actualPlacement",2),n.UUIPopoverContainerElement=ot([m("uui-popover-container")],n.UUIPopoverContainerElement);var Wh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,ea=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wh(e,t,o),o};const Xh=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUIProgressBarElement=class extends v{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=Xh(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${ce(this._getProgressStyle())}"></div>`}},n.UUIProgressBarElement.styles=[b`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-color-surface-alt,#f3f3f5);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-color-positive,#0b8152);height:100%;width:0%}`],ea([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=ea([m("uui-progress-bar")],n.UUIProgressBarElement);let Mt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Mt.CHANGE="change";var Yh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,ta=i=>{throw TypeError(i)},Be=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yh(e,t,o),o},Qh=(i,e,t)=>e.has(i)||ta("Cannot "+t),ia=(i,e,t)=>(Qh(i,e,"read from private field"),t?t.call(i):e.get(i)),oa=(i,e,t)=>e.has(i)?ta("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Or,zr;n.UUIRadioElement=class extends v{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,this.readonly=!1,oa(this,Or,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),oa(this,zr,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",ia(this,zr)),this.addEventListener("blur",ia(this,Or))}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,e===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-hidden",e?"true":"false"),this.setAttribute("tabindex",e?"-1":"0"),this.requestUpdate("disabled",t)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(e){e.stopPropagation();const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new Mt(Mt.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return u`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled||this.readonly}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},Or=new WeakMap,zr=new WeakMap,n.UUIRadioElement.styles=[Si,b`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:var(--uui-size-6,18px);margin:var(--uui-size-2,6px) 0}label{display:block;box-sizing:border-box;display:flex;align-items:center;cursor:pointer;line-height:18px}#input{width:0;height:0;opacity:0;margin:0}.label{margin-top:2px}#button{box-sizing:border-box;display:inline-block;width:var(--uui-radio-button-size,18px);height:var(--uui-radio-button-size,18px);background-color:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border-standalone,#c2c2c2);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative;flex:0 0 var(--uui-radio-button-size)}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-color-selected,#3544b1);border-radius:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:all .15s ease-in-out}:host(:hover) #button{border:1px solid var(--uui-color-border-emphasis,#a1a1a1)}:host(:focus){outline:0}:host(:focus) #button{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-color-selected,#3544b1)}input:checked:hover~#button{border:1px solid var(--uui-color-selected-emphasis,#4656c8)}input:checked:hover~#button::after{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) label{cursor:default;opacity:.5}:host([disabled]) .label{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]:active) #button{animation:${Pi}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],Be([P("#input")],n.UUIRadioElement.prototype,"inputElement",2),Be([l({type:String})],n.UUIRadioElement.prototype,"name",2),Be([l({type:String})],n.UUIRadioElement.prototype,"value",2),Be([l({type:String})],n.UUIRadioElement.prototype,"label",2),Be([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",1),Be([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",1),Be([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"readonly",2),n.UUIRadioElement=Be([m("uui-radio")],n.UUIRadioElement);let lo=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};lo.CHANGE="change";var Jh=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Lr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ep(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jh(e,t,o),o};const tp="ArrowLeft",ip="ArrowUp",op="ArrowRight",rp="ArrowDown",np=" ";n.UUIRadioGroupElement=class extends ue(v,""){constructor(){super(),this.disabled=!1,this.readonly=!1,this._selected=null,this._radioElements=[],this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=e=>{e.target.checked===!0&&(this.value=e.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown),this.addEventListener("keypress",this._onKeypress),this.updateComplete.then(()=>{this._updateRadioElementsCheckedState(this.value)})}get value(){return super.value}set value(e){super.value=e,(!e||e==="")&&this._makeFirstEnabledFocusable(),this._updateRadioElementsCheckedState(e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}async focus(){await this.updateComplete,this._selected!==null?this._radioElements[this._selected]?.focus():this._findNextEnabledElement()?.focus()}async blur(){await this.updateComplete,this._selected!==null?this._radioElements[this._selected]?.blur():this._findNextEnabledElement()?.blur()}async click(){await this.updateComplete,this._selected!==null?this._radioElements[this._selected]?.click():this._findNextEnabledElement()?.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}_setNameOnRadios(e){this._radioElements?.forEach(t=>t.name=e)}_updateRadioElementsCheckedState(e){this._radioElements.forEach((t,r)=>{t.value===e?(t.checked=!0,this._selected=r):t.checked=!1})}_setDisableOnRadios(e){this._radioElements?.forEach(t=>t.disabled=e)}_setReadonlyOnRadios(e){this._radioElements?.forEach(t=>t.readonly=e)}_handleSlotChange(e){if(e.stopPropagation(),this._radioElements?.forEach(r=>{r.removeEventListener(Mt.CHANGE,this._handleSelectOnClick),r.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=e.target.assignedElements({flatten:!0}).filter(r=>r instanceof n.UUIRadioElement),this._radioElements.length===0)return;this._radioElements.forEach(r=>{r.addEventListener(Mt.CHANGE,this._handleSelectOnClick),r.addEventListener("blur",this._onChildBlur)}),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0),this.readonly&&this._setReadonlyOnRadios(!0);const t=this._radioElements.filter(r=>r.checked===!0);if(t.length>1&&(this._radioElements.forEach(r=>{r.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),t.length===1){const r=t[0];this.value=r.value,this._selected=this._radioElements.indexOf(r),r.disabled===!1&&r.readonly===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r.makeFocusable()):this._makeFirstEnabledFocusable()}else this._makeFirstEnabledFocusable()}_makeFirstEnabledFocusable(){this._selected=null,this._radioElements?.forEach(e=>{e.makeUnfocusable()}),this._findNextEnabledElement()?.makeFocusable()}_findNextEnabledElement(e=1){if(!this._radioElements)return null;const t=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let s=(t+o*e)%r;const a=this._radioElements[s];if(s<0&&(s+=r),a.disabled===!1&&a.readonly===!1)return a;o++}return null}_selectPreviousElement(){this.value=this._findNextEnabledElement(-1)?.value||"",this._radioElements[this._selected||0]?.focus(),this._fireChangeEvent()}_selectNextElement(){this.value=this._findNextEnabledElement()?.value||"",this._radioElements[this._selected||0]?.focus(),this._fireChangeEvent()}_onKeydown(e){switch(e.key){case tp:case ip:{e.preventDefault(),this._selectPreviousElement();break}case op:case rp:{e.preventDefault(),this._selectNextElement();break}case np:this._selected===null&&(this.value=this._findNextEnabledElement()?.value,this._fireChangeEvent())}}_onKeypress(e){e.key=="Enter"&&this.submit()}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new lo(lo.CHANGE))}updated(e){super.updated(e),e.has("disabled")&&this._setDisableOnRadios(this.disabled),e.has("readonly")&&this._setReadonlyOnRadios(this.readonly),e.has("name")&&this._setNameOnRadios(e.get("name"))}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIRadioGroupElement.formAssociated=!0,n.UUIRadioGroupElement.styles=[b`:host{display:inline-block;padding-right:3px;border:1px solid transparent;border-radius:var(--uui-border-radius,3px)}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],Lr([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),Lr([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"readonly",2),n.UUIRadioGroupElement=Lr([m("uui-radio-group")],n.UUIRadioGroupElement);let pe=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};pe.INPUT="input",pe.CHANGE="change";var sp=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,ra=i=>{throw TypeError(i)},N=(i,e,t,r)=>{for(var o=r>1?void 0:r?ap(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sp(e,t,o),o},lp=(i,e,t)=>e.has(i)||ra("Cannot "+t),up=(i,e,t)=>e.has(i)?ra("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Dt=(i,e,t)=>(lp(i,e,"access private method"),t),je,nt;const Tr={TOP:3,CENTER:2,BACK:1},di=18,xe=12,cp=24;n.UUIRangeSliderElement=class extends ue(v,""){constructor(){super(),up(this,je),this.disabled=!1,this.readonly=!1,this._min=0,this._max=0,this.hideStepValues=!1,this._step=1,this._movement=!1,this.startPoint={mouse:0,low:0,high:0},this._lowInputValue=0,this._highInputValue=0,this._trackWidth=0,this._lowValuePercentStart=0,this._highValuePercentEnd=100,this._onKeypress=e=>{e.key=="Enter"&&this.submit()},this._onTouchStart=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchcancel",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove),this._movement=!0,this._saveStartPoints(e.touches[0].pageX);else{const r=this._getClickedValue(e.touches[0].pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onTouchMove=e=>{this._dragBothValuesByMousePos(e.touches[0].pageX)},this._onTouchEnd=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchcancel",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this._onMouseDown=e=>{if(this.disabled||this.readonly)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove),this._movement=!0,this._saveStartPoints(e.pageX);else{const r=this._getClickedValue(e.pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onMouseMove=e=>{e.preventDefault(),this._dragBothValuesByMousePos(e.pageX)},this._onMouseUp=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack?.offsetWidth})}get min(){return this._min}set min(e){this._min=e,Dt(this,je,nt).call(this)}get max(){return this._max}set max(e){this._max=e,Dt(this,je,nt).call(this)}get step(){return this._step}set step(e){this._step=e,Dt(this,je,nt).call(this)}get minGap(){return this._minGap}set minGap(e){this._minGap=e,Dt(this,je,nt).call(this)}get maxGap(){return this._maxGap}set maxGap(e){this._maxGap=e,Dt(this,je,nt).call(this)}get value(){return super.value}set value(e){super.value=e,Dt(this,je,nt).call(this)}setValueLow(e){e=L(e,this.maxGap?this._highInputValue-this.maxGap>this.min?this._highInputValue-this.maxGap:this.min:this.min,this.minGap?this._highInputValue-this.minGap:this._highInputValue-this.step),this.setValue(e,this._highInputValue)}setValueHigh(e){e=L(e,this.minGap?this._lowInputValue+this.minGap:this._lowInputValue+this.step,this.maxGap?this.maxGap+this._lowInputValue<this.max?this.maxGap+this._lowInputValue:this.max:this.max),this.setValue(this._lowInputValue,e)}setValue(e,t,r){if(r){const o=this.startPoint.high-this.startPoint.low;e=L(e,this.min,this.max-o),t=L(t,this.min+o,this.max)}this._inputLow.value=e.toString(),this._inputHigh.value=t.toString(),this.value=`${e},${t}`}getFormElement(){return this._currentFocus?this._currentFocus:this._inputLow}async focus(){await this.updateComplete,this.getFormElement().focus()}async blur(){await this.updateComplete,this.getFormElement().blur()}connectedCallback(){super.connectedCallback(),this.value||(this.value=`${this._min},${this._max}`)}firstUpdated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._runPropertiesChecks()}_runPropertiesChecks(){if(new RegExp(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/).test(this.value)||console.error("Range slider (Value error occurred): Bad input"),this._highInputValue===this._lowInputValue&&console.error("Range slider (Value error occurred): Low-end and high-end value should never be equal. Use <uui-slider></uui-slider> instead."),this._lowInputValue>this._highInputValue&&console.error("Range slider (Value error occurred): Low-end value should never be higher than high-end value."),(this._highInputValue>this._max||this._highInputValue<this._min)&&(this.setValueHigh(this._max),console.warn(`Conflict with the high-end value and max value. High-end value has been converted to the max value (${this._max})`)),(this._lowInputValue<this._min||this._lowInputValue>this._max)&&(this.setValueLow(this._min),console.warn(`Conflict with the low-end value and min value. Low-end value has been converted to the min value (${this._min})`)),this._step<=0&&(this._step=1,console.warn("Property step needs a value higher than 0. Converted the step value to 1 (default)")),(this._max-this._min)/this._step%1!==0&&console.error("Conflict with step value and the min and max values. May experience bad side effects"),this._minGap&&this._minGap<this._step&&(this._minGap=void 0,console.warn("Conflict with min-gap and step value. The min-gap needs to be higher than the step value. Removed the min-gap property.")),this._minGap&&this._maxGap&&this._minGap>this._maxGap&&(this._minGap=void 0,this._maxGap=void 0,console.warn("Conflict with min-gap and max-gap. Removed the min-gap and max-gap properties.")),this._minGap&&this._max-this._min<this._minGap&&(this._minGap=void 0,console.warn("Conflict with the min-gap and the total range. Removed the min-gap.")),this._maxGap&&this._highInputValue-this._lowInputValue>this._maxGap&&(this.setValueHigh(this._lowInputValue+this._maxGap),console.warn(`Conflict with value and max-gap. High-end value has been converted to the highest possible value based on the low-end value and the max gap value (${this._highInputValue})`)),this._minGap&&this._highInputValue-this._lowInputValue<this._minGap){const e=this._minGap;this._highInputValue-e<this._min?(this.setValueHigh(this._lowInputValue+e),console.warn(`Conflict with value and min gap. High-end value has been converted to the lowest possible value based on the low-end value and the min gap value (${this._highInputValue}).`)):(this.setValueLow(this._highInputValue-e),console.warn(`Conflict with value and min gap. Low-end value has been converted to the highest possible value based on the high-end value and the min gap value (${this._lowInputValue}).`))}}_updateInnerColor(){const e=this._max-this._min,t=this._lowInputValue-this._min,r=this._highInputValue-this._min,o=t/e*100,s=100-r/e*100;this._lowValuePercentStart=L(o,0,100),this._highValuePercentEnd=L(s,0,100)}_getClickedValue(e){const t=this._outerTrack.getBoundingClientRect().left,r=(e-t-xe)/(this._trackWidth-xe*2)*(this._max-this._min)+this._min;return Math.round(r/this._step)*this._step}_saveStartPoints(e){this.startPoint={mouse:e,low:this._lowInputValue,high:this._highInputValue}}_dragBothValuesByMousePos(e){const t=this._outerTrack.offsetWidth,r=e-this.startPoint.mouse,o=this._max-this._min,s=r/(t+xe*2),a=Math.round(s*o/this._step)*this._step,c=this.startPoint.low+a,d=this.startPoint.high+a;this.setValue(c,d,!0),this.dispatchEvent(new pe(pe.INPUT))}_onLowInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputLow;const t=Number(e.target.value);this.setValueLow(t),this.dispatchEvent(new pe(pe.INPUT))}_onHighInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputHigh;const t=Number(e.target.value);this.setValueHigh(t),this.dispatchEvent(new pe(pe.INPUT))}_onLowChange(){this.setValueLow(Number(this._inputLow.value)),this.onChanged()}_onHighChange(){this.setValueHigh(Number(this._inputHigh.value)),this.onChanged()}onChanged(){this.pristine=!1,this.dispatchEvent(new pe(pe.CHANGE))}render(){return u`
327
+ )}`],ui([P("#container")],n.UUIPopoverElement.prototype,"containerElement",2),ui([l({type:Number})],n.UUIPopoverElement.prototype,"margin",2),ui([l({type:String,reflect:!0})],n.UUIPopoverElement.prototype,"placement",1),ui([l({type:Boolean,reflect:!0})],n.UUIPopoverElement.prototype,"open",1),n.UUIPopoverElement=ui([m("uui-popover")],n.UUIPopoverElement);function Rh(){const i=this.addEventListener;this.addEventListener=function(t,r,o){if(t!=="focusout"){if(t==="beforetoggle"){this.polyfill_onBeforeToggle=s=>{this.dispatchEvent(new CustomEvent("polyfill-beforetoggle",{bubbles:!1,composed:!1,detail:{oldState:s.oldState,newState:s.newState}})),r(s)};return}i.call(this,t,r,o)}},this.polyfill_onFocusout=t=>{const r=t.relatedTarget;if(!r)return;const o=r?.closest("uui-popover-container"),s=r?.closest("[popovertarget]");!o&&!s&&this.hidePopover()},this.polyfill_onClick=t=>{t.composedPath().some(r=>r.tagName==="UUI-POPOVER-CONTAINER"||r.attributes?.popovertarget)||this.hidePopover()},this.polyfill_onParentPopoverUpdate=t=>{t.detail.newState==="closed"&&this.hidePopover()};const e=t=>t.parentElement?t.parentElement?.tagName==="UUI-POPOVER-CONTAINER"?t.parentElement:e(t.parentElement):null;this.polyfill_hasBeenMovedToBody||(this.style.display="none",this.style.position="fixed",this.style.inset="0",this.style.zIndex="9999"),this.showPopover=()=>{this.polyfill_hasBeenMovedToBody||(this.polyfill_parentPopoverContainer=e(this)),this.polyfill_onBeforeToggle({oldState:"closed",newState:"open"}),this.style.display="block",this.polyfill_parentPopoverContainer?.addEventListener("polyfill-beforetoggle",this.polyfill_onParentPopoverUpdate),window.addEventListener("click",this.polyfill_onClick),window.addEventListener("focusout",this.polyfill_onFocusout),this.polyfill_originalParent=this.parentNode,this.polyfill_originalNextSibling=this.nextSibling;const t=this.getRootNode();if(t&&t.adoptedStyleSheets){const r=t.adoptedStyleSheets.reduce((a,c)=>a+Object.values(c.cssRules).reduce((d,h)=>d+`#${this.id} ${h.cssText}`,""),""),o=document.createElement("style");o.innerHTML=r,o.id="uui-popover-polyfill-style";const s=this.shadowRoot.host.querySelector("#uui-popover-polyfill-style");s&&s.parentNode.removeChild(s),this.insertAdjacentElement("beforeend",o)}this.parentNode!==document.body&&(this.parentNode?.removeChild(this),this.polyfill_hasBeenMovedToBody=!0,document.body.appendChild(this))},this.hidePopover=()=>{this.polyfill_hasBeenMovedToBody&&(document.body.removeChild(this),this.polyfill_hasBeenMovedToBody=!1,this.polyfill_originalParent?.insertBefore(this,this.polyfill_originalNextSibling)),window.removeEventListener("click",this.polyfill_onClick),window.removeEventListener("focusout",this.polyfill_onFocusout),this.polyfill_parentPopoverContainer?.removeEventListener("polyfill-beforetoggle",this.polyfill_onParentPopoverUpdate),this.polyfill_onBeforeToggle({oldState:"open",newState:"closed"}),this.style.display="none"}}var Fh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Zs=i=>{throw TypeError(i)},ot=(i,e,t,r)=>{for(var o=r>1?void 0:r?Gh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Fh(e,t,o),o},Cr=(i,e,t)=>e.has(i)||Zs("Cannot "+t),T=(i,e,t)=>(Cr(i,e,"read from private field"),t?t.call(i):e.get(i)),rt=(i,e,t)=>e.has(i)?Zs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),qh=(i,e,t,r)=>(Cr(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Tt=(i,e,t)=>(Cr(i,e,"access private method"),t),Ie,Mt,ao,Ne,ci,Sr,De,Pr,Qs,Ar,Js;n.UUIPopoverContainerElement=class extends v{constructor(){super(...arguments),rt(this,De),this.margin=0,this._placement="bottom-start",this._open=!1,this._actualPlacement=this._placement,rt(this,Ie,null),rt(this,Mt,[]),rt(this,ao,e=>{if(this._open=e.newState==="open",qh(this,Ie,Cu(this,"popovertarget",this.id)),Tt(this,De,Js).call(this),T(this,Ie)?.dispatchEvent(new CustomEvent("uui-popover-before-toggle",{bubbles:!1,composed:!1,detail:{oldState:e.oldState,newState:e.newState}})),!this._open){Tt(this,De,Ar).call(this);return}Tt(this,De,Qs).call(this),requestAnimationFrame(()=>{T(this,Ne).call(this)})}),rt(this,Ne,()=>{this._open&&(this._actualPlacement=this._placement,this.style.opacity="0",T(this,ci).call(this,3))}),rt(this,ci,e=>{if(T(this,Sr).call(this),e--,T(this,Ie)===null)return;const t=this._actualPlacement.indexOf("top")!==-1,r=this._actualPlacement.indexOf("bottom")!==-1,o=this._actualPlacement.indexOf("left")!==-1,s=this._actualPlacement.indexOf("right")!==-1,a=this._actualPlacement.indexOf("-start")!==-1,c=this._actualPlacement.indexOf("-end")!==-1,d=T(this,Ie).getBoundingClientRect(),h=this.getBoundingClientRect();let f=0,g=0;r&&(f=d.top+d.height,a&&(g=d.left),c&&(g=d.left+d.width-h.width),!a&&!c&&(g=d.left+d.width/2-h.width/2)),t&&(f=d.top-h.height,a&&(g=d.left),c&&(g=d.left+d.width-h.width),!a&&!c&&(g=d.left+d.width/2-h.width/2)),o&&(g=d.left-h.width,a&&(f=d.top),c&&(f=d.top+d.height-h.height),!a&&!c&&(f=d.top+d.height/2-h.height/2)),s&&(g=d.left+d.width,a&&(f=d.top),c&&(f=d.top+d.height-h.height),!a&&!c&&(f=d.top+d.height/2-h.height/2));const _=window.innerWidth,p=window.innerHeight,w=Math.min(0,d.top+d.height),C=Math.max(Math.min(f,p-h.height),d.top-h.height);if(Math.max(w,C)!==f&&(t||r)&&e>0){Tt(this,De,Pr).call(this),T(this,ci).call(this,e);return}f=Math.max(w,C);const I=Math.min(0,d.left+d.width),D=Math.max(Math.min(g,_-h.width),d.left-h.width),Se=Math.max(I,D);if(Se!==g&&(o||s)&&e>0){Tt(this,De,Pr).call(this),T(this,ci).call(this,e);return}g=Se,(f+h.height<0||f>p||g+h.width<0||g>_)&&this.hidePopover(),this.style.transform=`translate(${g}px, ${f}px)`,this.style.opacity="1"}),rt(this,Sr,()=>{const e={top:"bottom",bottom:"top",left:"right",right:"left"};let t=this._actualPlacement.split("-")[0];t=e[t]||t,t=t.charAt(0).toUpperCase()+t.slice(1);const r=`padding${t}`;this.style.padding="0",this.style[r]=`${this.margin}px`})}get open(){return this._open}get placement(){return this._placement}set placement(e){this._placement=e,this._actualPlacement=e,T(this,Ne).call(this)}connectedCallback(){!HTMLElement.prototype.hasOwnProperty("popover")&&Rh.bind(this)(),this.hasAttribute("popover")||this.setAttribute("popover",""),super.connectedCallback(),this.addEventListener("beforetoggle",T(this,ao))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("beforetoggle",T(this,ao)),Tt(this,De,Ar).call(this)}render(){return u`<slot></slot>`}},Ie=new WeakMap,Mt=new WeakMap,ao=new WeakMap,Ne=new WeakMap,ci=new WeakMap,Sr=new WeakMap,De=new WeakSet,Pr=function(){const[i,e]=this._actualPlacement.split("-"),t=i==="top"?"bottom":i==="bottom"?"top":i==="left"?"right":"left";this._actualPlacement=`${t}-${e}`},Qs=function(){T(this,Mt).forEach(i=>{i.addEventListener("scroll",T(this,Ne),{passive:!0})}),document.addEventListener("scroll",T(this,Ne),{passive:!0})},Ar=function(){T(this,Mt).forEach(i=>{i.removeEventListener("scroll",T(this,Ne))}),document.removeEventListener("scroll",T(this,Ne))},Js=function(){if(!T(this,Ie))return;let i=getComputedStyle(T(this,Ie));if(i.position==="fixed")return;const e=i.position==="absolute",t=/(auto|scroll)/;let r=T(this,Ie);for(;r=r.parentElement;)if(i=getComputedStyle(r),!(e&&i.position==="static")&&(t.test(i.overflow+i.overflowY+i.overflowX)&&T(this,Mt).push(r),i.position==="fixed"))return;T(this,Mt).push(document.body)},n.UUIPopoverContainerElement.styles=[b`:host{margin:0;width:fit-content;height:fit-content;border:none;border-radius:0;padding:0;background-color:none;background:0 0;overflow:visible}`],ot([l({type:Number})],n.UUIPopoverContainerElement.prototype,"margin",2),ot([l({type:Boolean})],n.UUIPopoverContainerElement.prototype,"open",1),ot([l({type:String,reflect:!0})],n.UUIPopoverContainerElement.prototype,"placement",1),ot([y()],n.UUIPopoverContainerElement.prototype,"_placement",2),ot([y()],n.UUIPopoverContainerElement.prototype,"_open",2),ot([y()],n.UUIPopoverContainerElement.prototype,"_actualPlacement",2),n.UUIPopoverContainerElement=ot([m("uui-popover-container")],n.UUIPopoverContainerElement);var Wh=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,ea=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wh(e,t,o),o};const Xh=(i,e,t)=>Math.min(Math.max(i,e),t);n.UUIProgressBarElement=class extends v{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=Xh(e,0,100),this.requestUpdate("progress",t)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${ce(this._getProgressStyle())}"></div>`}},n.UUIProgressBarElement.styles=[b`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-color-surface-alt,#f3f3f5);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-color-positive,#0b8152);height:100%;width:0%}`],ea([l({type:Number})],n.UUIProgressBarElement.prototype,"progress",1),n.UUIProgressBarElement=ea([m("uui-progress-bar")],n.UUIProgressBarElement);let Nt=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Nt.CHANGE="change";var Yh=Object.defineProperty,Zh=Object.getOwnPropertyDescriptor,ta=i=>{throw TypeError(i)},Be=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yh(e,t,o),o},Qh=(i,e,t)=>e.has(i)||ta("Cannot "+t),ia=(i,e,t)=>(Qh(i,e,"read from private field"),t?t.call(i):e.get(i)),oa=(i,e,t)=>e.has(i)?ta("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Or,zr;n.UUIRadioElement=class extends v{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,this.readonly=!1,oa(this,Or,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),oa(this,zr,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",ia(this,zr)),this.addEventListener("blur",ia(this,Or))}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,e===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",t)}get disabled(){return this._disabled}set disabled(e){const t=this._disabled;this._disabled=e,this.setAttribute("aria-hidden",e?"true":"false"),this.setAttribute("tabindex",e?"-1":"0"),this.requestUpdate("disabled",t)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(e){e.stopPropagation();const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new Nt(Nt.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return u`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled||this.readonly}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},Or=new WeakMap,zr=new WeakMap,n.UUIRadioElement.styles=[Si,b`:host{display:block;box-sizing:border-box;font-family:inherit;color:currentColor;--uui-radio-button-size:var(--uui-size-6,18px);margin:var(--uui-size-2,6px) 0}label{display:block;box-sizing:border-box;display:flex;align-items:center;cursor:pointer;line-height:18px}#input{width:0;height:0;opacity:0;margin:0}.label{margin-top:2px}#button{box-sizing:border-box;display:inline-block;width:var(--uui-radio-button-size,18px);height:var(--uui-radio-button-size,18px);background-color:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border-standalone,#c2c2c2);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative;flex:0 0 var(--uui-radio-button-size)}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-color-selected,#3544b1);border-radius:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);transition:all .15s ease-in-out}:host(:hover) #button{border:1px solid var(--uui-color-border-emphasis,#a1a1a1)}:host(:focus){outline:0}:host(:focus) #button{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-color-selected,#3544b1)}input:checked:hover~#button{border:1px solid var(--uui-color-selected-emphasis,#4656c8)}input:checked:hover~#button::after{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) label{cursor:default;opacity:.5}:host([disabled]) .label{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]:active) #button{animation:${Pi}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],Be([P("#input")],n.UUIRadioElement.prototype,"inputElement",2),Be([l({type:String})],n.UUIRadioElement.prototype,"name",2),Be([l({type:String})],n.UUIRadioElement.prototype,"value",2),Be([l({type:String})],n.UUIRadioElement.prototype,"label",2),Be([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"checked",1),Be([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"disabled",1),Be([l({type:Boolean,reflect:!0})],n.UUIRadioElement.prototype,"readonly",2),n.UUIRadioElement=Be([m("uui-radio")],n.UUIRadioElement);let lo=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};lo.CHANGE="change";var Jh=Object.defineProperty,ep=Object.getOwnPropertyDescriptor,Lr=(i,e,t,r)=>{for(var o=r>1?void 0:r?ep(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Jh(e,t,o),o};const tp="ArrowLeft",ip="ArrowUp",op="ArrowRight",rp="ArrowDown",np=" ";n.UUIRadioGroupElement=class extends ue(v,""){constructor(){super(),this.disabled=!1,this.readonly=!1,this._selected=null,this._radioElements=[],this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=e=>{e.target.checked===!0&&(this.value=e.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown),this.addEventListener("keypress",this._onKeypress),this.updateComplete.then(()=>{this._updateRadioElementsCheckedState(this.value)})}get value(){return super.value}set value(e){super.value=e,(!e||e==="")&&this._makeFirstEnabledFocusable(),this._updateRadioElementsCheckedState(e)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}async focus(){await this.updateComplete,this._selected!==null?this._radioElements[this._selected]?.focus():this._findNextEnabledElement()?.focus()}async blur(){await this.updateComplete,this._selected!==null?this._radioElements[this._selected]?.blur():this._findNextEnabledElement()?.blur()}async click(){await this.updateComplete,this._selected!==null?this._radioElements[this._selected]?.click():this._findNextEnabledElement()?.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}_setNameOnRadios(e){this._radioElements?.forEach(t=>t.name=e)}_updateRadioElementsCheckedState(e){this._radioElements.forEach((t,r)=>{t.value===e?(t.checked=!0,this._selected=r):t.checked=!1})}_setDisableOnRadios(e){this._radioElements?.forEach(t=>t.disabled=e)}_setReadonlyOnRadios(e){this._radioElements?.forEach(t=>t.readonly=e)}_handleSlotChange(e){if(e.stopPropagation(),this._radioElements?.forEach(r=>{r.removeEventListener(Nt.CHANGE,this._handleSelectOnClick),r.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=e.target.assignedElements({flatten:!0}).filter(r=>r instanceof n.UUIRadioElement),this._radioElements.length===0)return;this._radioElements.forEach(r=>{r.addEventListener(Nt.CHANGE,this._handleSelectOnClick),r.addEventListener("blur",this._onChildBlur)}),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0),this.readonly&&this._setReadonlyOnRadios(!0);const t=this._radioElements.filter(r=>r.checked===!0);if(t.length>1&&(this._radioElements.forEach(r=>{r.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),t.length===1){const r=t[0];this.value=r.value,this._selected=this._radioElements.indexOf(r),r.disabled===!1&&r.readonly===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r.makeFocusable()):this._makeFirstEnabledFocusable()}else this._makeFirstEnabledFocusable()}_makeFirstEnabledFocusable(){this._selected=null,this._radioElements?.forEach(e=>{e.makeUnfocusable()}),this._findNextEnabledElement()?.makeFocusable()}_findNextEnabledElement(e=1){if(!this._radioElements)return null;const t=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let s=(t+o*e)%r;const a=this._radioElements[s];if(s<0&&(s+=r),a.disabled===!1&&a.readonly===!1)return a;o++}return null}_selectPreviousElement(){this.value=this._findNextEnabledElement(-1)?.value||"",this._radioElements[this._selected||0]?.focus(),this._fireChangeEvent()}_selectNextElement(){this.value=this._findNextEnabledElement()?.value||"",this._radioElements[this._selected||0]?.focus(),this._fireChangeEvent()}_onKeydown(e){switch(e.key){case tp:case ip:{e.preventDefault(),this._selectPreviousElement();break}case op:case rp:{e.preventDefault(),this._selectNextElement();break}case np:this._selected===null&&(this.value=this._findNextEnabledElement()?.value,this._fireChangeEvent())}}_onKeypress(e){e.key=="Enter"&&this.submit()}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new lo(lo.CHANGE))}updated(e){super.updated(e),e.has("disabled")&&this._setDisableOnRadios(this.disabled),e.has("readonly")&&this._setReadonlyOnRadios(this.readonly),e.has("name")&&this._setNameOnRadios(e.get("name"))}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},n.UUIRadioGroupElement.formAssociated=!0,n.UUIRadioGroupElement.styles=[b`:host{display:inline-block;padding-right:3px;border:1px solid transparent;border-radius:var(--uui-border-radius,3px)}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],Lr([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"disabled",2),Lr([l({type:Boolean,reflect:!0})],n.UUIRadioGroupElement.prototype,"readonly",2),n.UUIRadioGroupElement=Lr([m("uui-radio-group")],n.UUIRadioGroupElement);let pe=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};pe.INPUT="input",pe.CHANGE="change";var sp=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,ra=i=>{throw TypeError(i)},M=(i,e,t,r)=>{for(var o=r>1?void 0:r?ap(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sp(e,t,o),o},lp=(i,e,t)=>e.has(i)||ra("Cannot "+t),up=(i,e,t)=>e.has(i)?ra("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Dt=(i,e,t)=>(lp(i,e,"access private method"),t),je,nt;const Tr={TOP:3,CENTER:2,BACK:1},di=18,xe=12,cp=24;n.UUIRangeSliderElement=class extends ue(v,""){constructor(){super(),up(this,je),this.disabled=!1,this.readonly=!1,this._min=0,this._max=0,this.hideStepValues=!1,this._step=1,this._movement=!1,this.startPoint={mouse:0,low:0,high:0},this._lowInputValue=0,this._highInputValue=0,this._trackWidth=0,this._lowValuePercentStart=0,this._highValuePercentEnd=100,this._onKeypress=e=>{e.key=="Enter"&&this.submit()},this._onTouchStart=e=>{if(this.disabled)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchcancel",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove),this._movement=!0,this._saveStartPoints(e.touches[0].pageX);else{const r=this._getClickedValue(e.touches[0].pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onTouchMove=e=>{this._dragBothValuesByMousePos(e.touches[0].pageX)},this._onTouchEnd=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchcancel",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this._onMouseDown=e=>{if(this.disabled||this.readonly)return;const t=e.composedPath()[0];if(t!==this._outerTrack)if(t===this._innerColor||t===this._innerColorThumb)window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove),this._movement=!0,this._saveStartPoints(e.pageX);else{const r=this._getClickedValue(e.pageX),o=Math.abs(this._lowInputValue-r),s=Math.abs(this._highInputValue-r);o<s?this.setValueLow(r):this.setValueHigh(r)}},this._onMouseMove=e=>{e.preventDefault(),this._dragBothValuesByMousePos(e.pageX)},this._onMouseUp=()=>{this._movement=!1,this.onChanged(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack?.offsetWidth})}get min(){return this._min}set min(e){this._min=e,Dt(this,je,nt).call(this)}get max(){return this._max}set max(e){this._max=e,Dt(this,je,nt).call(this)}get step(){return this._step}set step(e){this._step=e,Dt(this,je,nt).call(this)}get minGap(){return this._minGap}set minGap(e){this._minGap=e,Dt(this,je,nt).call(this)}get maxGap(){return this._maxGap}set maxGap(e){this._maxGap=e,Dt(this,je,nt).call(this)}get value(){return super.value}set value(e){super.value=e,Dt(this,je,nt).call(this)}setValueLow(e){e=L(e,this.maxGap?this._highInputValue-this.maxGap>this.min?this._highInputValue-this.maxGap:this.min:this.min,this.minGap?this._highInputValue-this.minGap:this._highInputValue-this.step),this.setValue(e,this._highInputValue)}setValueHigh(e){e=L(e,this.minGap?this._lowInputValue+this.minGap:this._lowInputValue+this.step,this.maxGap?this.maxGap+this._lowInputValue<this.max?this.maxGap+this._lowInputValue:this.max:this.max),this.setValue(this._lowInputValue,e)}setValue(e,t,r){if(r){const o=this.startPoint.high-this.startPoint.low;e=L(e,this.min,this.max-o),t=L(t,this.min+o,this.max)}this._inputLow.value=e.toString(),this._inputHigh.value=t.toString(),this.value=`${e},${t}`}getFormElement(){return this._currentFocus?this._currentFocus:this._inputLow}async focus(){await this.updateComplete,this.getFormElement().focus()}async blur(){await this.updateComplete,this.getFormElement().blur()}connectedCallback(){super.connectedCallback(),this.value||(this.value=`${this._min},${this._max}`)}firstUpdated(e){super.updated(e),this._trackWidth=this._outerTrack.offsetWidth,this._runPropertiesChecks()}_runPropertiesChecks(){if(new RegExp(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/).test(this.value)||console.error("Range slider (Value error occurred): Bad input"),this._highInputValue===this._lowInputValue&&console.error("Range slider (Value error occurred): Low-end and high-end value should never be equal. Use <uui-slider></uui-slider> instead."),this._lowInputValue>this._highInputValue&&console.error("Range slider (Value error occurred): Low-end value should never be higher than high-end value."),(this._highInputValue>this._max||this._highInputValue<this._min)&&(this.setValueHigh(this._max),console.warn(`Conflict with the high-end value and max value. High-end value has been converted to the max value (${this._max})`)),(this._lowInputValue<this._min||this._lowInputValue>this._max)&&(this.setValueLow(this._min),console.warn(`Conflict with the low-end value and min value. Low-end value has been converted to the min value (${this._min})`)),this._step<=0&&(this._step=1,console.warn("Property step needs a value higher than 0. Converted the step value to 1 (default)")),(this._max-this._min)/this._step%1!==0&&console.error("Conflict with step value and the min and max values. May experience bad side effects"),this._minGap&&this._minGap<this._step&&(this._minGap=void 0,console.warn("Conflict with min-gap and step value. The min-gap needs to be higher than the step value. Removed the min-gap property.")),this._minGap&&this._maxGap&&this._minGap>this._maxGap&&(this._minGap=void 0,this._maxGap=void 0,console.warn("Conflict with min-gap and max-gap. Removed the min-gap and max-gap properties.")),this._minGap&&this._max-this._min<this._minGap&&(this._minGap=void 0,console.warn("Conflict with the min-gap and the total range. Removed the min-gap.")),this._maxGap&&this._highInputValue-this._lowInputValue>this._maxGap&&(this.setValueHigh(this._lowInputValue+this._maxGap),console.warn(`Conflict with value and max-gap. High-end value has been converted to the highest possible value based on the low-end value and the max gap value (${this._highInputValue})`)),this._minGap&&this._highInputValue-this._lowInputValue<this._minGap){const e=this._minGap;this._highInputValue-e<this._min?(this.setValueHigh(this._lowInputValue+e),console.warn(`Conflict with value and min gap. High-end value has been converted to the lowest possible value based on the low-end value and the min gap value (${this._highInputValue}).`)):(this.setValueLow(this._highInputValue-e),console.warn(`Conflict with value and min gap. Low-end value has been converted to the highest possible value based on the high-end value and the min gap value (${this._lowInputValue}).`))}}_updateInnerColor(){const e=this._max-this._min,t=this._lowInputValue-this._min,r=this._highInputValue-this._min,o=t/e*100,s=100-r/e*100;this._lowValuePercentStart=L(o,0,100),this._highValuePercentEnd=L(s,0,100)}_getClickedValue(e){const t=this._outerTrack.getBoundingClientRect().left,r=(e-t-xe)/(this._trackWidth-xe*2)*(this._max-this._min)+this._min;return Math.round(r/this._step)*this._step}_saveStartPoints(e){this.startPoint={mouse:e,low:this._lowInputValue,high:this._highInputValue}}_dragBothValuesByMousePos(e){const t=this._outerTrack.offsetWidth,r=e-this.startPoint.mouse,o=this._max-this._min,s=r/(t+xe*2),a=Math.round(s*o/this._step)*this._step,c=this.startPoint.low+a,d=this.startPoint.high+a;this.setValue(c,d,!0),this.dispatchEvent(new pe(pe.INPUT))}_onLowInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputLow;const t=Number(e.target.value);this.setValueLow(t),this.dispatchEvent(new pe(pe.INPUT))}_onHighInput(e){this.disabled&&e.preventDefault(),this.readonly&&e.preventDefault(),this._currentFocus=this._inputHigh;const t=Number(e.target.value);this.setValueHigh(t),this.dispatchEvent(new pe(pe.INPUT))}_onLowChange(){this.setValueLow(Number(this._inputLow.value)),this.onChanged()}_onHighChange(){this.setValueHigh(Number(this._inputHigh.value)),this.onChanged()}onChanged(){this.pristine=!1,this.dispatchEvent(new pe(pe.CHANGE))}render(){return u`
328
328
  <div id="range-slider">
329
329
  ${this._renderNativeInputs()}
330
330
  <div id="inner-track">
@@ -672,7 +672,7 @@
672
672
  inset 0 0 0 2px var(--uui-palette-mine-grey,#3e3e3e),
673
673
  inset 0 0 0 4px var(--uui-color-surface,#fff);
674
674
  }
675
- `],N([l({type:String})],n.UUIRangeSliderElement.prototype,"label",2),N([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"disabled",2),N([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"readonly",2),N([l({type:Number})],n.UUIRangeSliderElement.prototype,"min",1),N([l({type:Number})],n.UUIRangeSliderElement.prototype,"max",1),N([l({type:Boolean,attribute:"hide-step-values"})],n.UUIRangeSliderElement.prototype,"hideStepValues",2),N([l({type:Number})],n.UUIRangeSliderElement.prototype,"step",1),N([l({type:Number,attribute:"min-gap"})],n.UUIRangeSliderElement.prototype,"minGap",1),N([l({type:Number,attribute:"max-gap"})],n.UUIRangeSliderElement.prototype,"maxGap",1),N([l({type:String})],n.UUIRangeSliderElement.prototype,"value",1),N([y()],n.UUIRangeSliderElement.prototype,"_movement",2),N([y()],n.UUIRangeSliderElement.prototype,"_lowInputValue",2),N([y()],n.UUIRangeSliderElement.prototype,"_highInputValue",2),N([y()],n.UUIRangeSliderElement.prototype,"_trackWidth",2),N([y()],n.UUIRangeSliderElement.prototype,"_lowValuePercentStart",2),N([y()],n.UUIRangeSliderElement.prototype,"_highValuePercentEnd",2),N([P("#range-slider")],n.UUIRangeSliderElement.prototype,"_outerTrack",2),N([P("#inputLow")],n.UUIRangeSliderElement.prototype,"_inputLow",2),N([P("#inputHigh")],n.UUIRangeSliderElement.prototype,"_inputHigh",2),N([P(".color")],n.UUIRangeSliderElement.prototype,"_innerColor",2),N([P("#inner-color-thumb")],n.UUIRangeSliderElement.prototype,"_innerColorThumb",2),n.UUIRangeSliderElement=N([m("uui-range-slider")],n.UUIRangeSliderElement);var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,pp=(i,e,t,r)=>{for(var o=r>1?void 0:r?hp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dp(e,t,o),o};n.UUIRefListElement=class extends v{render(){return u`<slot></slot>`}},n.UUIRefListElement.styles=[b`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;left:0;right:0;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],n.UUIRefListElement=pp([m("uui-ref-list")],n.UUIRefListElement);let Bt=class extends A{};Bt.OPEN="open";var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,uo=(i,e,t,r)=>{for(var o=r>1?void 0:r?mp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bp(e,t,o),o};n.UUIRefElement=class extends Ii(mt(v)){constructor(){super(...arguments),this.disabled=!1,this.readonly=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new Bt(Bt.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new Bt(Bt.OPEN)))}},n.UUIRefElement.styles=[b`:host{position:relative;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host(:focus){outline-color:#6ab4f0}:host([error]){border:2px solid var(--uui-color-danger,#d42054);box-shadow:0 0 4px 0 var(--uui-color-danger,#d42054),inset 0 0 2px 0 var(--uui-color-danger,#d42054)}:host([standalone]){border:1px solid var(--uui-color-border,#d8d7d9)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-2,6px) * 4);margin-right:var(--uui-size-2,6px)}#actions-container{opacity:0;transition:opacity 120ms}:host(:hover) #actions-container{opacity:1}:host([standalone]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([standalone][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],uo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"disabled",2),uo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"readonly",2),uo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=uo([m("uui-ref")],n.UUIRefElement);var gp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,na=i=>{throw TypeError(i)},st=(i,e,t,r)=>{for(var o=r>1?void 0:r?vp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&gp(e,t,o),o},fp=(i,e,t)=>e.has(i)||na("Cannot "+t),yp=(i,e,t)=>e.has(i)?na("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ve=(i,e,t)=>(fp(i,e,"access private method"),t),be,sa,aa,co,la,ua,ca;n.UUIRefNodeElement=class extends n.UUIRefElement{constructor(){super(...arguments),yp(this,be),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}render(){return u`${Ve(this,be,ca).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}},be=new WeakSet,sa=function(i){this._iconSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0},aa=function(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`},co=function(){return u`<span id="content"><span id="icon"><slot name="icon" @slotchange="${Ve(this,be,sa)}"></slot>${this._iconSlotHasContent===!1?Ve(this,be,aa).call(this):""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></span>`},la=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}">${Ve(this,be,co).call(this)}</a>`},ua=function(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}">${Ve(this,be,co).call(this)}</button>`},ca=function(){return this.readonly?u`${Ve(this,be,co).call(this)}`:this.href?Ve(this,be,la).call(this):Ve(this,be,ua).call(this)},n.UUIRefNodeElement.styles=[...n.UUIRefElement.styles,b`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#content{align-self:stretch;line-height:normal;display:flex;position:relative;align-items:center}#open-part{color:inherit;text-decoration:none;cursor:pointer}#icon{font-size:1.2em;margin-left:var(--uui-size-2,6px);margin-right:var(--uui-size-1,3px)}#info{display:flex;flex-direction:column;align-items:start;justify-content:center;height:100%;padding-left:var(--uui-size-2,6px)}#name{font-weight:700}#detail{font-size:var(--uui-type-small-size,12px)}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{font-weight:700;text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]) #icon{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #name{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #detail{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],st([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"href",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"target",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"rel",2),st([y()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=st([m("uui-ref-node")],n.UUIRefNodeElement);var wp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,da=(i,e,t,r)=>{for(var o=r>1?void 0:r?_p(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wp(e,t,o),o};n.UUIRefNodeDataTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],da([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=da([m("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var Up=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,ha=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ep(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Up(e,t,o),o};n.UUIRefNodeDocumentTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],ha([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=ha([m("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var $p=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,Ip=(i,e,t,r)=>{for(var o=r>1?void 0:r?kp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$p(e,t,o),o};n.UUIRefNodeFormElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}},n.UUIRefNodeFormElement.styles=[...n.UUIRefNodeElement.styles],n.UUIRefNodeFormElement=Ip([m("uui-ref-node-form")],n.UUIRefNodeFormElement);var xp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,pa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Cp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xp(e,t,o),o};n.UUIRefNodeMemberElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],pa([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=pa([m("uui-ref-node-member")],n.UUIRefNodeMemberElement);var Sp=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,Nr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sp(e,t,o),o};n.UUIRefNodePackageElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.version!==""&&e.push(this.version),this.author!==""&&e.push(this.author),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],Nr([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),Nr([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=Nr([m("uui-ref-node-package")],n.UUIRefNodePackageElement);var Ap=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,ba=(i,e,t,r)=>{for(var o=r>1?void 0:r?Op(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ap(e,t,o),o};n.UUIRefNodeUserElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],ba([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=ba([m("uui-ref-node-user")],n.UUIRefNodeUserElement);var zp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,ma=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zp(e,t,o),o};n.UUIScrollContainerElement=class extends v{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},n.UUIScrollContainerElement.styles=[b`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);overflow-y:auto}:host([enforce-scroll]){overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-color-surface,#fff);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-color-disabled-contrast,#c4c4c4);border-radius:3px}`],ma([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],n.UUIScrollContainerElement.prototype,"enforceScroll",2),n.UUIScrollContainerElement=ma([m("uui-scroll-container")],n.UUIScrollContainerElement);let ho=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ho.CHANGE="change";var Tp=Object.defineProperty,Np=Object.getOwnPropertyDescriptor,ae=(i,e,t,r)=>{for(var o=r>1?void 0:r?Np(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tp(e,t,o),o};n.UUISelectElement=class extends ue(v,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(e=>e.group).map(e=>e.group))))}willUpdate(e){if(e.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const t=this.options.find(r=>r.selected);this.value=t?t.value:""}e.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),e.has("disabledGroups")&&this._createDisabledGroups()}setValue(e){e.stopPropagation();const t=e.target;e.target&&(this.value=t.value),this.dispatchEvent(new ho(ho.CHANGE,{bubbles:!0,composed:!1}))}_renderOption(e,t,r,o){return u`<option value="${t}" ?selected="${r}" ?disabled="${o}">${e}</option>`}_renderGrouped(){return this._groups.length===0?k:u`${this._groups.map(e=>u`<optgroup label="${e}" ?disabled="${this._disabledGroups.some(t=>t.toLowerCase()===e.toLowerCase())}">${this.options.map(t=>t.group===e?this._renderOption(t.name,t.value,t.selected,t.disabled):"")}</optgroup>`)}`}_getDisplayValue(){return this.options.find(e=>e.value===this.value)?.name||this.value}render(){return this.readonly?u`<span>${this._getDisplayValue()}</span>`:u`<select id="native" aria-label="${this.label}" @change="${this.setValue}" ?disabled="${this.disabled}" .name="${this.name}" .value="${this.value}"><option disabled="disabled" selected="selected" value="" hidden>${this.placeholder}</option>${this._renderGrouped()} ${this.options.filter(e=>!e.group).map(e=>this._renderOption(e.name,e.value,e.selected,e.disabled))}</select>`}},n.UUISelectElement.styles=[b`:host{display:inline-block;position:relative;font-family:inherit}#native{display:inline-block;font-family:inherit;font-size:var(--uui-select-font-size,var(--uui-size-5,15px));height:var(--uui-select-height,var(--uui-size-11,33px));padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:var(--uui-select-text-color,var(--uui-color-text,#060606));box-sizing:border-box;border-radius:0;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease;width:100%;background-color:var(--uui-select-background-color,var(--uui-color-surface,#fff))}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-color-disabled,#f3f3f5))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-color-selected,#3544b1));color:var(--uui-select-selected-option-color,var(--uui-color-selected-contrast,#fff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([error]) #native[disabled]{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],ae([l({type:String})],n.UUISelectElement.prototype,"label",2),ae([l()],n.UUISelectElement.prototype,"placeholder",2),ae([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),ae([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"readonly",2),ae([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),ae([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),ae([y()],n.UUISelectElement.prototype,"_groups",2),ae([l()],n.UUISelectElement.prototype,"disabledGroups",2),ae([y()],n.UUISelectElement.prototype,"_disabledGroups",2),ae([P("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=ae([m("uui-select")],n.UUISelectElement);const Mp=b`
675
+ `],M([l({type:String})],n.UUIRangeSliderElement.prototype,"label",2),M([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"disabled",2),M([l({type:Boolean,reflect:!0})],n.UUIRangeSliderElement.prototype,"readonly",2),M([l({type:Number})],n.UUIRangeSliderElement.prototype,"min",1),M([l({type:Number})],n.UUIRangeSliderElement.prototype,"max",1),M([l({type:Boolean,attribute:"hide-step-values"})],n.UUIRangeSliderElement.prototype,"hideStepValues",2),M([l({type:Number})],n.UUIRangeSliderElement.prototype,"step",1),M([l({type:Number,attribute:"min-gap"})],n.UUIRangeSliderElement.prototype,"minGap",1),M([l({type:Number,attribute:"max-gap"})],n.UUIRangeSliderElement.prototype,"maxGap",1),M([l({type:String})],n.UUIRangeSliderElement.prototype,"value",1),M([y()],n.UUIRangeSliderElement.prototype,"_movement",2),M([y()],n.UUIRangeSliderElement.prototype,"_lowInputValue",2),M([y()],n.UUIRangeSliderElement.prototype,"_highInputValue",2),M([y()],n.UUIRangeSliderElement.prototype,"_trackWidth",2),M([y()],n.UUIRangeSliderElement.prototype,"_lowValuePercentStart",2),M([y()],n.UUIRangeSliderElement.prototype,"_highValuePercentEnd",2),M([P("#range-slider")],n.UUIRangeSliderElement.prototype,"_outerTrack",2),M([P("#inputLow")],n.UUIRangeSliderElement.prototype,"_inputLow",2),M([P("#inputHigh")],n.UUIRangeSliderElement.prototype,"_inputHigh",2),M([P(".color")],n.UUIRangeSliderElement.prototype,"_innerColor",2),M([P("#inner-color-thumb")],n.UUIRangeSliderElement.prototype,"_innerColorThumb",2),n.UUIRangeSliderElement=M([m("uui-range-slider")],n.UUIRangeSliderElement);var dp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,pp=(i,e,t,r)=>{for(var o=r>1?void 0:r?hp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dp(e,t,o),o};n.UUIRefListElement=class extends v{render(){return u`<slot></slot>`}},n.UUIRefListElement.styles=[b`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;left:0;right:0;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],n.UUIRefListElement=pp([m("uui-ref-list")],n.UUIRefListElement);let Bt=class extends A{};Bt.OPEN="open";var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,uo=(i,e,t,r)=>{for(var o=r>1?void 0:r?mp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bp(e,t,o),o};n.UUIRefElement=class extends Ii(mt(v)){constructor(){super(...arguments),this.disabled=!1,this.readonly=!1,this.error=!1}handleOpenClick(e){e.stopPropagation(),this.dispatchEvent(new Bt(Bt.OPEN))}handleOpenKeydown(e){e.key!==" "&&e.key!=="Enter"||(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new Bt(Bt.OPEN)))}},n.UUIRefElement.styles=[b`:host{position:relative;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host(:focus){outline-color:#6ab4f0}:host([error]){border:2px solid var(--uui-color-danger,#d42054);box-shadow:0 0 4px 0 var(--uui-color-danger,#d42054),inset 0 0 2px 0 var(--uui-color-danger,#d42054)}:host([standalone]){border:1px solid var(--uui-color-border,#d8d7d9)}:host([selectable]){cursor:pointer}:host([selectable]) #select-border{position:absolute;z-index:2;top:-2px;left:-2px;right:-2px;bottom:-2px;pointer-events:none;opacity:0;transition:opacity 120ms}:host([selectable]) #select-border::after{content:'';position:absolute;width:100%;height:100%;box-sizing:border-box;border:2px solid var(--uui-color-selected,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-color-selected,#3544b1),inset 0 0 2px 0 var(--uui-color-selected,#3544b1)}:host([selected]) #select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border{opacity:.33}:host([selectable][selected]:hover) #select-border{opacity:.8}:host([selectable]:not([selected])) #open-part:hover+#select-border{opacity:0}:host([selectable][selected]) #open-part:hover+#select-border{opacity:1}:host([selectable]:not([selected]):hover) #select-border::after{animation:not-selected--hover 1.2s infinite}@keyframes not-selected--hover{0%,100%{opacity:.66}50%{opacity:1}}:host([selectable][selected]:hover) #select-border::after{animation:selected--hover 1.4s infinite}@keyframes selected--hover{0%,100%{opacity:1}50%{opacity:.66}}:host([selectable]) #open-part:hover+#select-border::after{animation:none}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-2,6px) * 4);margin-right:var(--uui-size-2,6px)}#actions-container{opacity:0;transition:opacity 120ms}:host(:hover) #actions-container{opacity:1}:host([standalone]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([standalone][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],uo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"disabled",2),uo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"readonly",2),uo([l({type:Boolean,reflect:!0})],n.UUIRefElement.prototype,"error",2),n.UUIRefElement=uo([m("uui-ref")],n.UUIRefElement);var gp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,na=i=>{throw TypeError(i)},st=(i,e,t,r)=>{for(var o=r>1?void 0:r?vp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&gp(e,t,o),o},fp=(i,e,t)=>e.has(i)||na("Cannot "+t),yp=(i,e,t)=>e.has(i)?na("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ve=(i,e,t)=>(fp(i,e,"access private method"),t),be,sa,aa,co,la,ua,ca;n.UUIRefNodeElement=class extends n.UUIRefElement{constructor(){super(...arguments),yp(this,be),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}render(){return u`${Ve(this,be,ca).call(this)}<div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}},be=new WeakSet,sa=function(i){this._iconSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0},aa=function(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`},co=function(){return u`<span id="content"><span id="icon"><slot name="icon" @slotchange="${Ve(this,be,sa)}"></slot>${this._iconSlotHasContent===!1?Ve(this,be,aa).call(this):""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></span>`},la=function(){return u`<a id="open-part" tabindex="${this.disabled?k:"0"}" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}">${Ve(this,be,co).call(this)}</a>`},ua=function(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}">${Ve(this,be,co).call(this)}</button>`},ca=function(){return this.readonly?u`${Ve(this,be,co).call(this)}`:this.href?Ve(this,be,la).call(this):Ve(this,be,ua).call(this)},n.UUIRefNodeElement.styles=[...n.UUIRefElement.styles,b`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#content{align-self:stretch;line-height:normal;display:flex;position:relative;align-items:center}#open-part{color:inherit;text-decoration:none;cursor:pointer}#icon{font-size:1.2em;margin-left:var(--uui-size-2,6px);margin-right:var(--uui-size-1,3px)}#info{display:flex;flex-direction:column;align-items:start;justify-content:center;height:100%;padding-left:var(--uui-size-2,6px)}#name{font-weight:700}#detail{font-size:var(--uui-type-small-size,12px)}:host(:not([disabled])) #open-part:hover #icon{color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #name{font-weight:700;text-decoration:underline;color:var(--uui-color-interactive-emphasis,#3544b1)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-color-interactive-emphasis,#3544b1)}:host([disabled]) #icon{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #name{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #detail{color:var(--uui-color-disabled-contrast,#c4c4c4)}`],st([l({type:String})],n.UUIRefNodeElement.prototype,"name",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"detail",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"href",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"target",2),st([l({type:String})],n.UUIRefNodeElement.prototype,"rel",2),st([y()],n.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),n.UUIRefNodeElement=st([m("uui-ref-node")],n.UUIRefNodeElement);var wp=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,da=(i,e,t,r)=>{for(var o=r>1?void 0:r?_p(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wp(e,t,o),o};n.UUIRefNodeDataTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDataTypeElement.styles=[...n.UUIRefNodeElement.styles],da([l({type:String})],n.UUIRefNodeDataTypeElement.prototype,"alias",2),n.UUIRefNodeDataTypeElement=da([m("uui-ref-node-data-type")],n.UUIRefNodeDataTypeElement);var Up=Object.defineProperty,Ep=Object.getOwnPropertyDescriptor,ha=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ep(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Up(e,t,o),o};n.UUIRefNodeDocumentTypeElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const e=[];return this.alias!==""&&e.push(this.alias),this.detail!==""&&e.push(this.detail),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeDocumentTypeElement.styles=[...n.UUIRefNodeElement.styles],ha([l({type:String})],n.UUIRefNodeDocumentTypeElement.prototype,"alias",2),n.UUIRefNodeDocumentTypeElement=ha([m("uui-ref-node-document-type")],n.UUIRefNodeDocumentTypeElement);var $p=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,Ip=(i,e,t,r)=>{for(var o=r>1?void 0:r?kp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$p(e,t,o),o};n.UUIRefNodeFormElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}},n.UUIRefNodeFormElement.styles=[...n.UUIRefNodeElement.styles],n.UUIRefNodeFormElement=Ip([m("uui-ref-node-form")],n.UUIRefNodeFormElement);var xp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,pa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Cp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xp(e,t,o),o};n.UUIRefNodeMemberElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeMemberElement.styles=[...n.UUIRefNodeElement.styles],pa([l({type:String,attribute:"group-name"})],n.UUIRefNodeMemberElement.prototype,"groupName",2),n.UUIRefNodeMemberElement=pa([m("uui-ref-node-member")],n.UUIRefNodeMemberElement);var Sp=Object.defineProperty,Pp=Object.getOwnPropertyDescriptor,Mr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sp(e,t,o),o};n.UUIRefNodePackageElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.version!==""&&e.push(this.version),this.author!==""&&e.push(this.author),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodePackageElement.styles=[...n.UUIRefNodeElement.styles],Mr([l({type:String})],n.UUIRefNodePackageElement.prototype,"version",2),Mr([l({type:String})],n.UUIRefNodePackageElement.prototype,"author",2),n.UUIRefNodePackageElement=Mr([m("uui-ref-node-package")],n.UUIRefNodePackageElement);var Ap=Object.defineProperty,Op=Object.getOwnPropertyDescriptor,ba=(i,e,t,r)=>{for(var o=r>1?void 0:r?Op(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ap(e,t,o),o};n.UUIRefNodeUserElement=class extends n.UUIRefNodeElement{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const e=[];return this.detail!==""&&e.push(this.detail),this.groupName!==""&&e.push(this.groupName),u`<small id="detail">${e.join(" | ")}<slot name="detail"></slot></small>`}},n.UUIRefNodeUserElement.styles=[...n.UUIRefNodeElement.styles],ba([l({type:String,attribute:"group-name"})],n.UUIRefNodeUserElement.prototype,"groupName",2),n.UUIRefNodeUserElement=ba([m("uui-ref-node-user")],n.UUIRefNodeUserElement);var zp=Object.defineProperty,Lp=Object.getOwnPropertyDescriptor,ma=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zp(e,t,o),o};n.UUIScrollContainerElement=class extends v{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},n.UUIScrollContainerElement.styles=[b`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);overflow-y:auto}:host([enforce-scroll]){overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-color-surface,#fff);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-color-disabled-contrast,#c4c4c4);border-radius:3px}`],ma([l({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],n.UUIScrollContainerElement.prototype,"enforceScroll",2),n.UUIScrollContainerElement=ma([m("uui-scroll-container")],n.UUIScrollContainerElement);let ho=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};ho.CHANGE="change";var Tp=Object.defineProperty,Mp=Object.getOwnPropertyDescriptor,ae=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tp(e,t,o),o};n.UUISelectElement=class extends ue(v,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}async focus(){await this.updateComplete,this._input.focus()}async blur(){await this.updateComplete,this._input.blur()}async click(){await this.updateComplete,this._input.click()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(e=>e.group).map(e=>e.group))))}willUpdate(e){if(e.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const t=this.options.find(r=>r.selected);this.value=t?t.value:""}e.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),e.has("disabledGroups")&&this._createDisabledGroups()}setValue(e){e.stopPropagation();const t=e.target;e.target&&(this.value=t.value),this.dispatchEvent(new ho(ho.CHANGE,{bubbles:!0,composed:!1}))}_renderOption(e,t,r,o){return u`<option value="${t}" ?selected="${r}" ?disabled="${o}">${e}</option>`}_renderGrouped(){return this._groups.length===0?k:u`${this._groups.map(e=>u`<optgroup label="${e}" ?disabled="${this._disabledGroups.some(t=>t.toLowerCase()===e.toLowerCase())}">${this.options.map(t=>t.group===e?this._renderOption(t.name,t.value,t.selected,t.disabled):"")}</optgroup>`)}`}_getDisplayValue(){return this.options.find(e=>e.value===this.value)?.name||this.value}render(){return this.readonly?u`<span>${this._getDisplayValue()}</span>`:u`<select id="native" aria-label="${this.label}" @change="${this.setValue}" ?disabled="${this.disabled}" .name="${this.name}" .value="${this.value}"><option disabled="disabled" selected="selected" value="" hidden>${this.placeholder}</option>${this._renderGrouped()} ${this.options.filter(e=>!e.group).map(e=>this._renderOption(e.name,e.value,e.selected,e.disabled))}</select>`}},n.UUISelectElement.styles=[b`:host{display:inline-block;position:relative;font-family:inherit}#native{display:inline-block;font-family:inherit;font-size:var(--uui-select-font-size,var(--uui-size-5,15px));height:var(--uui-select-height,var(--uui-size-11,33px));padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:var(--uui-select-text-color,var(--uui-color-text,#060606));box-sizing:border-box;border-radius:0;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease;width:100%;background-color:var(--uui-select-background-color,var(--uui-color-surface,#fff))}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-color-disabled,#f3f3f5))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-color-selected,#3544b1));color:var(--uui-select-selected-option-color,var(--uui-color-selected-contrast,#fff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-color-danger-standalone,#bf214e)}:host([error]) #native[disabled]{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],ae([l({type:String})],n.UUISelectElement.prototype,"label",2),ae([l()],n.UUISelectElement.prototype,"placeholder",2),ae([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"disabled",2),ae([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"readonly",2),ae([l({type:Boolean,reflect:!0})],n.UUISelectElement.prototype,"error",2),ae([l({type:Array,attribute:!1})],n.UUISelectElement.prototype,"options",2),ae([y()],n.UUISelectElement.prototype,"_groups",2),ae([l()],n.UUISelectElement.prototype,"disabledGroups",2),ae([y()],n.UUISelectElement.prototype,"_disabledGroups",2),ae([P("#native")],n.UUISelectElement.prototype,"_input",2),n.UUISelectElement=ae([m("uui-select")],n.UUISelectElement);const Np=b`
676
676
  input[type='range'] {
677
677
  left: 0;
678
678
  position: absolute;
@@ -813,7 +813,7 @@
813
813
  </div>
814
814
  </div>
815
815
  ${Vp(this._steps,this._stepWidth,this.hideStepValues)}
816
- `}},po=new WeakMap,bo=new WeakMap,n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[_u,Mp,b`
816
+ `}},po=new WeakMap,bo=new WeakMap,n.UUISliderElement.formAssociated=!0,n.UUISliderElement.styles=[_u,Np,b`
817
817
  :host {
818
818
  display: inline-block;
819
819
  width: 100%;
@@ -962,12 +962,12 @@
962
962
  :host([readonly]) #thumb-label {
963
963
  opacity: 1;
964
964
  }
965
- `],F([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),F([l({type:Boolean,attribute:"hide-value-label"})],n.UUISliderElement.prototype,"hideValueLabel",2),F([l({type:Number})],n.UUISliderElement.prototype,"min",2),F([l({type:Number})],n.UUISliderElement.prototype,"max",2),F([l({type:Number})],n.UUISliderElement.prototype,"step",1),F([l({type:String})],n.UUISliderElement.prototype,"value",1),F([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),F([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"readonly",2),F([l({type:String})],n.UUISliderElement.prototype,"label",2),F([P("#input")],n.UUISliderElement.prototype,"_input",2),F([P("#track")],n.UUISliderElement.prototype,"_track",2),F([y()],n.UUISliderElement.prototype,"_stepWidth",2),F([y()],n.UUISliderElement.prototype,"_steps",2),F([y()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=F([m("uui-slider")],n.UUISliderElement);var Rp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Ua=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rp(e,t,o),o};n.UUISymbolExpandElement=class extends v{constructor(){super(...arguments),this.open=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolExpandElement.styles=[b`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform:rotate(-90deg);transform-origin:50% 50%;transition:transform 120ms ease-in-out;width:100%;height:100%}:host([open]) svg{transform:rotate(0)}`],Ua([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=Ua([m("uui-symbol-expand")],n.UUISymbolExpandElement);var Gp=Object.defineProperty,qp=Object.getOwnPropertyDescriptor,Mr=(i,e,t,r)=>{for(var o=r>1?void 0:r?qp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gp(e,t,o),o};n.UUISymbolFileThumbnailElement=class extends v{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${Ou.strings[0]}"></uui-icon>`}},n.UUISymbolFileThumbnailElement.styles=[b`:host{display:block;width:100%;height:100%}img{object-fit:contain;height:100%;width:100%}uui-icon{width:100%;height:100%;max-width:100%;display:flex;max-height:100%;justify-content:center;color:var(--uui-color-surface,#fff);background:var(--uui-color-surface-alt,#f3f3f5)}`],Mr([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),Mr([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=Mr([m("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var Wp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Ea=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wp(e,t,o),o};n.UUISymbolFileElement=class extends v{constructor(){super(...arguments),this.type=""}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg> ${this.type?u`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}},n.UUISymbolFileElement.styles=[b`:host{position:relative;display:block}#file-type{position:absolute;bottom:24%;left:25.5%;margin-left:calc(var(--uui-size-3,9px) * -1);padding:0 var(--uui-size-3,9px);font-weight:700;background-color:var(--uui-color-surface-alt,#f3f3f5);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#icon{fill:var(--uui-color-border-standalone,#c2c2c2)}`],Ea([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=Ea([m("uui-symbol-file")],n.UUISymbolFileElement);var Xp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Zp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xp(e,t,o),o};n.UUISymbolFolderElement=class extends v{render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z"/></svg>`}},n.UUISymbolFolderElement.styles=[b`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],n.UUISymbolFolderElement=Zp([m("uui-symbol-folder")],n.UUISymbolFolderElement);var Qp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,$a=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qp(e,t,o),o};n.UUISymbolLockElement=class extends v{constructor(){super(...arguments),this.open=!1}render(){return E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?E`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:E`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}</svg>`}},n.UUISymbolLockElement.styles=[b`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],$a([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=$a([m("uui-symbol-lock")],n.UUISymbolLockElement);var eb=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,ib=(i,e,t,r)=>{for(var o=r>1?void 0:r?tb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eb(e,t,o),o};n.UUISymbolMoreElement=class extends v{render(){return u`···`}},n.UUISymbolMoreElement.styles=[b`:host{display:inline-block;font-size:1.48em;line-height:.8em;user-select:none}`],n.UUISymbolMoreElement=ib([m("uui-symbol-more")],n.UUISymbolMoreElement);var ob=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,ka=(i,e,t,r)=>{for(var o=r>1?void 0:r?rb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ob(e,t,o),o};n.UUISymbolSortElement=class extends Qt(v){constructor(){super(...arguments),this.descending=!1}render(){return u`<svg id="up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg> <svg id="down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolSortElement.styles=[b`:host{position:relative;display:inline-block;width:.8em;height:1em;vertical-align:middle;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.8em;fill:currentColor;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-.5em}#up{transform:rotate(180deg);margin-top:-.7em}#down{margin-top:-.3em}:host([active]) #up{margin-top:calc(-.5em - (.2em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.5em + (.2em * var(--uui-symbol-sort-hover,0)))}:host(:hover){--uui-symbol-sort-hover:1}:host(:not([active])) #down,:host(:not([active])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active]:not([descending])) #down{opacity:1}:host([active]:not([descending])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active][descending]) #up{opacity:1}:host([active][descending]) #down{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}`],ka([l({type:Boolean,reflect:!0})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=ka([m("uui-symbol-sort")],n.UUISymbolSortElement);var nb=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,ab=(i,e,t,r)=>{for(var o=r>1?void 0:r?sb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nb(e,t,o),o};n.UUITableElement=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},n.UUITableElement.styles=[b`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],n.UUITableElement=ab([m("uui-table")],n.UUITableElement);var lb=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,mo=(i,e,t,r)=>{for(var o=r>1?void 0:r?ub(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lb(e,t,o),o};n.UUITableCellElement=class extends v{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(e){super.updated(e),e.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},n.UUITableCellElement.styles=[b`:host{position:relative;display:table-cell;height:var(--uui-table-cell-height,var(--uui-size-12,36px));padding:var(--uui-table-cell-padding,var(--uui-size-4,12px) var(--uui-size-5,15px));border-top:1px solid var(--uui-color-border,#d8d7d9);vertical-align:middle}:host([clip-text]){max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}:host([disable-child-interaction]) ::slotted(*){pointer-events:none}:host([disable-child-interaction])::after{content:'';position:absolute;inset:0}:host([no-padding]){padding:0}`],mo([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),mo([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),mo([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=mo([m("uui-table-cell")],n.UUITableCellElement);var cb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,hb=(i,e,t,r)=>{for(var o=r>1?void 0:r?db(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&cb(e,t,o),o};n.UUITableColumnElement=class extends v{},n.UUITableColumnElement.styles=[b`:host{display:table-column}`],n.UUITableColumnElement=hb([m("uui-table-column")],n.UUITableColumnElement);var pb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,mb=(i,e,t,r)=>{for(var o=r>1?void 0:r?bb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pb(e,t,o),o};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,b`:host{border-top:none}`],n.UUITableHeadCellElement=mb([m("uui-table-head-cell")],n.UUITableHeadCellElement);var gb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,fb=(i,e,t,r)=>{for(var o=r>1?void 0:r?vb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&gb(e,t,o),o};n.UUITableHeadElement=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},n.UUITableHeadElement.styles=[b`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=fb([m("uui-table-head")],n.UUITableHeadElement);var yb=Object.defineProperty,wb=Object.getOwnPropertyDescriptor,Ia=(i,e,t,r)=>{for(var o=r>1?void 0:r?wb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&yb(e,t,o),o};n.UUITableRowElement=class extends Ii(mt(v)){constructor(){super();let e=!1;this.addEventListener("blur",()=>{e===!1&&this.style.setProperty("--uui-show-focus-outline","1"),e=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),e=!0}),this.addEventListener("mouseup",()=>{e=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(e){e.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(e=>{this.elementIsTableCell(e)&&(e.disableChildInteraction=this.selectOnly)})}elementIsTableCell(e){return e instanceof n.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.UUITableRowElement.styles=[b`:host{display:table-row;position:relative;outline-offset:-3px}:host([selectable]){cursor:pointer}:host(:focus){outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host([selected]){outline:2px solid var(--uui-table-row-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:focus){outline-color:var(--uui-color-focus,#3879ff)}`],Ia([Oe({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=Ia([m("uui-table-row")],n.UUITableRowElement);var _b=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ub(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_b(e,t,o),o};n.UUITabElement=class extends Qt(le("",v)){constructor(){super(),this.disabled=!1,this.orientation="horizontal",this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return this.href?u`<a id="button" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button type="button" id="button" ?disabled="${this.disabled}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUITabElement.styles=[b`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit;width:fit-content}#button{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:var(--uui-size-12,36px);min-width:70px;padding:var(--uui-size-3,9px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px));border:none;font-size:inherit;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}:host([orientation=vertical]) #button{min-height:var(--uui-size-14,42px);padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px))}:host(:not([disabled])) #button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#3544b1))}:host(:not([disabled])) #button:active{box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}:host([active]){color:var(--uui-tab-text-active,unset)}:host([disabled]) #button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button::before{content:'';position:absolute;background-color:var(--uui-color-current,#f5c1bc);opacity:0}:host([active]) #button::before{opacity:1}:host([orientation=horizontal]) #button::before{left:auto;right:auto;border-radius:var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0 0;height:0;width:calc(100% - 15px);bottom:0;transition:opacity linear 120ms,height ease-in-out 120ms}:host([active][orientation=horizontal]) #button::before{height:4px}:host([orientation=vertical]) #button::before{top:auto;bottom:auto;border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0;height:calc(100% - 12px);width:0;left:0;transition:opacity linear 120ms,width ease-in-out 120ms}:host([active][orientation=vertical]) #button::before{width:4px}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #button::before{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=icon]::slotted(*){font-size:20px;margin-bottom:var(--uui-size-2,6px)}slot.label{text-align:center;display:flex;width:100%;flex-direction:column}:host([orientation=vertical]) slot.label{text-align:left}`],jt([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),jt([l({type:String})],n.UUITabElement.prototype,"href",2),jt([l({type:String})],n.UUITabElement.prototype,"target",2),jt([l({type:String})],n.UUITabElement.prototype,"rel",2),jt([l({type:String,reflect:!0})],n.UUITabElement.prototype,"orientation",2),n.UUITabElement=jt([m("uui-tab")],n.UUITabElement);var Eb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,xa=i=>{throw TypeError(i)},Vt=(i,e,t,r)=>{for(var o=r>1?void 0:r?$b(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eb(e,t,o),o},Dr=(i,e,t)=>e.has(i)||xa("Cannot "+t),S=(i,e,t)=>(Dr(i,e,"read from private field"),t?t.call(i):e.get(i)),me=(i,e,t)=>e.has(i)?xa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),pi=(i,e,t,r)=>(Dr(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Z=(i,e,t)=>(Dr(i,e,"access private method"),t),go,ge,Ce,Ht,Rt,vo,bi,mi,G,Ca,Sa,Br,Pa,Ft,fo,Aa,jr,Vr;n.UUITabGroupElement=class extends v{constructor(){super(...arguments),me(this,G),me(this,go,0),this.dropdownContentDirection="vertical",me(this,ge,[]),me(this,Ce,[]),me(this,Ht,new Map),me(this,Rt,[]),me(this,vo,new ResizeObserver(Z(this,G,Sa).bind(this))),me(this,bi,[]),me(this,mi,!1),me(this,Ft,e=>{const t=e.currentTarget;if(Z(this,G,Vr).call(this,t)){t.active=!0;const r=S(this,Ht).get(t);r&&(r.active=!0),[...S(this,ge),...S(this,Ce)].filter(o=>o!==t&&o!==r).forEach(o=>{Z(this,G,Vr).call(this,o)&&(o.active=!1)}),S(this,Ce).some(o=>o.active&&o!==r)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),Z(this,G,Ca).call(this)}disconnectedCallback(){super.disconnectedCallback(),S(this,vo).unobserve(this),Z(this,G,Br).call(this)}render(){return u`<div id="main"><div id="grid"><slot @slotchange="${Z(this,G,Pa)}"></slot></div><uui-button popovertarget="popover-container" style="display:none" id="more-button" label="More" compact="compact"><uui-symbol-more></uui-symbol-more></uui-button></div><uui-popover-container id="popover-container" popover placement="bottom-end"><div id="hidden-tabs-container">${hr(S(this,Ce),e=>u`${e}`)}</div></uui-popover-container>`}},go=new WeakMap,ge=new WeakMap,Ce=new WeakMap,Ht=new WeakMap,Rt=new WeakMap,vo=new WeakMap,bi=new WeakMap,mi=new WeakMap,G=new WeakSet,Ca=async function(){$(this,"uui-button"),$(this,"uui-popover-container"),$(this,"uui-symbol-more"),this.hasAttribute("role")||this.setAttribute("role","tablist"),await this.updateComplete,S(this,vo).observe(this._mainElement)},Sa=function(i){const e=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap"));(Number.isNaN(e)?0:e)!==S(this,go)?Z(this,G,fo).call(this):Z(this,G,jr).call(this,i[0].contentBoxSize[0].inlineSize)},Br=function(){S(this,ge).forEach(i=>{i.removeEventListener("click",S(this,Ft)),S(this,bi).forEach(e=>e.disconnect())}),S(this,bi).length=0,S(this,Rt).length=0},Pa=function(){Z(this,G,Br).call(this),Z(this,G,Aa).call(this),S(this,ge).forEach(i=>{i.addEventListener("click",S(this,Ft));const e=new ResizeObserver(Z(this,G,fo).bind(this));e.observe(i),S(this,bi).push(e)})},Ft=new WeakMap,fo=async function(){if(S(this,mi))return;pi(this,mi,!0),requestAnimationFrame(()=>{pi(this,mi,!1)}),await this.updateComplete;const i=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap")),e=Number.isNaN(i)?0:i;pi(this,go,e);let t=0;for(let o=0;o<S(this,ge).length;o++)S(this,ge)[o].style.display="",t+=S(this,ge)[o].offsetWidth,S(this,Rt)[o]=t,t+=e;const r=2;this._mainElement.style.width=t-e+r+"px",Z(this,G,jr).call(this,this._mainElement.offsetWidth)},Aa=function(){pi(this,ge,this._slottedNodes?this._slottedNodes:[]),Z(this,G,fo).call(this)},jr=function(i){const e=this._moreButtonElement.offsetWidth,t=i-(e||0);S(this,Ce).forEach(s=>{s.removeEventListener("click",S(this,Ft))}),pi(this,Ce,[]),S(this,Ht).clear();let r=!1;const o=S(this,Rt).length;for(let s=0;s<o;s++){const a=S(this,Rt)[s],c=S(this,ge)[s];if(a<=(s===o-1?i:t))c.style.display="";else{const d=c.cloneNode(!0);d.addEventListener("click",S(this,Ft)),d.classList.add("hidden-tab"),d.style.display="",d.orientation=this.dropdownContentDirection,S(this,Ht).set(d,c),S(this,Ht).set(c,d),S(this,Ce).push(d),c.style.display="none",c.active&&(r=!0)}}S(this,Ce).length===0?(this._moreButtonElement.style.display="none",this._popoverContainerElement.hidePopover()):this._moreButtonElement.style.display="",r?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside"),this.requestUpdate()},Vr=function(i){return typeof i=="object"&&"active"in i&&typeof i.active=="boolean"},n.UUITabGroupElement.styles=[b`:host{min-width:0;display:flex;height:100%}#main{display:flex;justify-content:space-between;overflow:hidden}#grid{width:1fr;display:flex;height:100%;min-height:48px;overflow:hidden;text-wrap:nowrap;color:var(--uui-tab-text);gap:var(--uui-tab-group-gap,0)}#popover-container{--uui-tab-text:var(--uui-tab-group-dropdown-tab-text, unset);--uui-tab-text-hover:var(
965
+ `],F([l({type:Boolean,attribute:"hide-step-values"})],n.UUISliderElement.prototype,"hideStepValues",2),F([l({type:Boolean,attribute:"hide-value-label"})],n.UUISliderElement.prototype,"hideValueLabel",2),F([l({type:Number})],n.UUISliderElement.prototype,"min",2),F([l({type:Number})],n.UUISliderElement.prototype,"max",2),F([l({type:Number})],n.UUISliderElement.prototype,"step",1),F([l({type:String})],n.UUISliderElement.prototype,"value",1),F([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"disabled",2),F([l({type:Boolean,reflect:!0})],n.UUISliderElement.prototype,"readonly",2),F([l({type:String})],n.UUISliderElement.prototype,"label",2),F([P("#input")],n.UUISliderElement.prototype,"_input",2),F([P("#track")],n.UUISliderElement.prototype,"_track",2),F([y()],n.UUISliderElement.prototype,"_stepWidth",2),F([y()],n.UUISliderElement.prototype,"_steps",2),F([y()],n.UUISliderElement.prototype,"_sliderPosition",2),n.UUISliderElement=F([m("uui-slider")],n.UUISliderElement);var Rp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Ua=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rp(e,t,o),o};n.UUISymbolExpandElement=class extends v{constructor(){super(...arguments),this.open=!1}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolExpandElement.styles=[b`:host{display:inline-block;width:12px;vertical-align:middle}svg{fill:currentColor;transform:rotate(-90deg);transform-origin:50% 50%;transition:transform 120ms ease-in-out;width:100%;height:100%}:host([open]) svg{transform:rotate(0)}`],Ua([l({type:Boolean,reflect:!0})],n.UUISymbolExpandElement.prototype,"open",2),n.UUISymbolExpandElement=Ua([m("uui-symbol-expand")],n.UUISymbolExpandElement);var Gp=Object.defineProperty,qp=Object.getOwnPropertyDescriptor,Nr=(i,e,t,r)=>{for(var o=r>1?void 0:r?qp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gp(e,t,o),o};n.UUISymbolFileThumbnailElement=class extends v{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),$(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${Ou.strings[0]}"></uui-icon>`}},n.UUISymbolFileThumbnailElement.styles=[b`:host{display:block;width:100%;height:100%}img{object-fit:contain;height:100%;width:100%}uui-icon{width:100%;height:100%;max-width:100%;display:flex;max-height:100%;justify-content:center;color:var(--uui-color-surface,#fff);background:var(--uui-color-surface-alt,#f3f3f5)}`],Nr([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"src",2),Nr([l({type:String})],n.UUISymbolFileThumbnailElement.prototype,"alt",2),n.UUISymbolFileThumbnailElement=Nr([m("uui-symbol-file-thumbnail")],n.UUISymbolFileThumbnailElement);var Wp=Object.defineProperty,Kp=Object.getOwnPropertyDescriptor,Ea=(i,e,t,r)=>{for(var o=r>1?void 0:r?Kp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Wp(e,t,o),o};n.UUISymbolFileElement=class extends v{constructor(){super(...arguments),this.type=""}render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg> ${this.type?u`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}},n.UUISymbolFileElement.styles=[b`:host{position:relative;display:block}#file-type{position:absolute;bottom:24%;left:25.5%;margin-left:calc(var(--uui-size-3,9px) * -1);padding:0 var(--uui-size-3,9px);font-weight:700;background-color:var(--uui-color-surface-alt,#f3f3f5);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#icon{fill:var(--uui-color-border-standalone,#c2c2c2)}`],Ea([l({type:String})],n.UUISymbolFileElement.prototype,"type",2),n.UUISymbolFileElement=Ea([m("uui-symbol-file")],n.UUISymbolFileElement);var Xp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,Zp=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xp(e,t,o),o};n.UUISymbolFolderElement=class extends v{render(){return u`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="100%" id="icon"><path d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z"/></svg>`}},n.UUISymbolFolderElement.styles=[b`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],n.UUISymbolFolderElement=Zp([m("uui-symbol-folder")],n.UUISymbolFolderElement);var Qp=Object.defineProperty,Jp=Object.getOwnPropertyDescriptor,$a=(i,e,t,r)=>{for(var o=r>1?void 0:r?Jp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Qp(e,t,o),o};n.UUISymbolLockElement=class extends v{constructor(){super(...arguments),this.open=!1}render(){return E`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?E`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:E`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}</svg>`}},n.UUISymbolLockElement.styles=[b`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],$a([l({type:Boolean,reflect:!0})],n.UUISymbolLockElement.prototype,"open",2),n.UUISymbolLockElement=$a([m("uui-symbol-lock")],n.UUISymbolLockElement);var eb=Object.defineProperty,tb=Object.getOwnPropertyDescriptor,ib=(i,e,t,r)=>{for(var o=r>1?void 0:r?tb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&eb(e,t,o),o};n.UUISymbolMoreElement=class extends v{render(){return u`···`}},n.UUISymbolMoreElement.styles=[b`:host{display:inline-block;font-size:1.48em;line-height:.8em;user-select:none}`],n.UUISymbolMoreElement=ib([m("uui-symbol-more")],n.UUISymbolMoreElement);var ob=Object.defineProperty,rb=Object.getOwnPropertyDescriptor,ka=(i,e,t,r)=>{for(var o=r>1?void 0:r?rb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ob(e,t,o),o};n.UUISymbolSortElement=class extends Qt(v){constructor(){super(...arguments),this.descending=!1}render(){return u`<svg id="up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg> <svg id="down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},n.UUISymbolSortElement.styles=[b`:host{position:relative;display:inline-block;width:.8em;height:1em;vertical-align:middle;pointer-events:none}svg{position:absolute;left:0;top:50%;width:.8em;fill:currentColor;transform-origin:50% 50%;transition:transform 120ms ease-in-out,opacity 120ms,margin-top 240ms;opacity:0;margin-top:-.5em}#up{transform:rotate(180deg);margin-top:-.7em}#down{margin-top:-.3em}:host([active]) #up{margin-top:calc(-.5em - (.2em * var(--uui-symbol-sort-hover,0)))}:host([active]) #down{margin-top:calc(-.5em + (.2em * var(--uui-symbol-sort-hover,0)))}:host(:hover){--uui-symbol-sort-hover:1}:host(:not([active])) #down,:host(:not([active])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active]:not([descending])) #down{opacity:1}:host([active]:not([descending])) #up{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}:host([active][descending]) #up{opacity:1}:host([active][descending]) #down{opacity:calc(.25 * var(--uui-symbol-sort-hover,0))}`],ka([l({type:Boolean,reflect:!0})],n.UUISymbolSortElement.prototype,"descending",2),n.UUISymbolSortElement=ka([m("uui-symbol-sort")],n.UUISymbolSortElement);var nb=Object.defineProperty,sb=Object.getOwnPropertyDescriptor,ab=(i,e,t,r)=>{for(var o=r>1?void 0:r?sb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nb(e,t,o),o};n.UUITableElement=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},n.UUITableElement.styles=[b`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],n.UUITableElement=ab([m("uui-table")],n.UUITableElement);var lb=Object.defineProperty,ub=Object.getOwnPropertyDescriptor,mo=(i,e,t,r)=>{for(var o=r>1?void 0:r?ub(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lb(e,t,o),o};n.UUITableCellElement=class extends v{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(e){super.updated(e),e.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},n.UUITableCellElement.styles=[b`:host{position:relative;display:table-cell;height:var(--uui-table-cell-height,var(--uui-size-12,36px));padding:var(--uui-table-cell-padding,var(--uui-size-4,12px) var(--uui-size-5,15px));border-top:1px solid var(--uui-color-border,#d8d7d9);vertical-align:middle}:host([clip-text]){max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}:host([disable-child-interaction]) ::slotted(*){pointer-events:none}:host([disable-child-interaction])::after{content:'';position:absolute;inset:0}:host([no-padding]){padding:0}`],mo([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],n.UUITableCellElement.prototype,"disableChildInteraction",2),mo([l({type:Boolean,reflect:!0,attribute:"no-padding"})],n.UUITableCellElement.prototype,"noPadding",2),mo([l({type:Boolean,reflect:!0,attribute:"clip-text"})],n.UUITableCellElement.prototype,"clipText",2),n.UUITableCellElement=mo([m("uui-table-cell")],n.UUITableCellElement);var cb=Object.defineProperty,db=Object.getOwnPropertyDescriptor,hb=(i,e,t,r)=>{for(var o=r>1?void 0:r?db(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&cb(e,t,o),o};n.UUITableColumnElement=class extends v{},n.UUITableColumnElement.styles=[b`:host{display:table-column}`],n.UUITableColumnElement=hb([m("uui-table-column")],n.UUITableColumnElement);var pb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,mb=(i,e,t,r)=>{for(var o=r>1?void 0:r?bb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&pb(e,t,o),o};n.UUITableHeadCellElement=class extends n.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},n.UUITableHeadCellElement.styles=[...n.UUITableCellElement.styles,b`:host{border-top:none}`],n.UUITableHeadCellElement=mb([m("uui-table-head-cell")],n.UUITableHeadCellElement);var gb=Object.defineProperty,vb=Object.getOwnPropertyDescriptor,fb=(i,e,t,r)=>{for(var o=r>1?void 0:r?vb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&gb(e,t,o),o};n.UUITableHeadElement=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},n.UUITableHeadElement.styles=[b`:host{display:table-header-group;font-weight:700}`],n.UUITableHeadElement=fb([m("uui-table-head")],n.UUITableHeadElement);var yb=Object.defineProperty,wb=Object.getOwnPropertyDescriptor,Ia=(i,e,t,r)=>{for(var o=r>1?void 0:r?wb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&yb(e,t,o),o};n.UUITableRowElement=class extends Ii(mt(v)){constructor(){super();let e=!1;this.addEventListener("blur",()=>{e===!1&&this.style.setProperty("--uui-show-focus-outline","1"),e=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),e=!0}),this.addEventListener("mouseup",()=>{e=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(e){e.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(e=>{this.elementIsTableCell(e)&&(e.disableChildInteraction=this.selectOnly)})}elementIsTableCell(e){return e instanceof n.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},n.UUITableRowElement.styles=[b`:host{display:table-row;position:relative;outline-offset:-3px}:host([selectable]){cursor:pointer}:host(:focus){outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host([selected]){outline:2px solid var(--uui-table-row-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:focus){outline-color:var(--uui-color-focus,#3879ff)}`],Ia([Oe({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],n.UUITableRowElement.prototype,"slotCellNodes",2),n.UUITableRowElement=Ia([m("uui-table-row")],n.UUITableRowElement);var _b=Object.defineProperty,Ub=Object.getOwnPropertyDescriptor,jt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ub(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_b(e,t,o),o};n.UUITabElement=class extends Qt(le("",v)){constructor(){super(),this.disabled=!1,this.orientation="horizontal",this.addEventListener("click",this.onHostClick)}onHostClick(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}render(){return this.href?u`<a id="button" href="${U(this.disabled?void 0:this.href)}" target="${U(this.target||void 0)}" rel="${U(this.rel||U(this.target==="_blank"?"noopener noreferrer":void 0))}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button type="button" id="button" ?disabled="${this.disabled}" role="tab"><slot name="icon"></slot>${this.renderLabel()}<slot name="extra"></slot></button>`}},n.UUITabElement.styles=[b`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit;width:fit-content}#button{position:relative;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-height:var(--uui-size-12,36px);min-width:70px;padding:var(--uui-size-3,9px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px));border:none;font-size:inherit;background:0 0;color:inherit;cursor:pointer;font-family:inherit;text-decoration:none;line-height:normal}:host([orientation=vertical]) #button{min-height:var(--uui-size-14,42px);padding:var(--uui-size-2,6px) var(--uui-tab-padding-horizontal,var(--uui-size-5,15px))}:host(:not([disabled])) #button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#3544b1))}:host(:not([disabled])) #button:active{box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}:host([active]){color:var(--uui-tab-text-active,unset)}:host([disabled]) #button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button::before{content:'';position:absolute;background-color:var(--uui-color-current,#f5c1bc);opacity:0}:host([active]) #button::before{opacity:1}:host([orientation=horizontal]) #button::before{left:auto;right:auto;border-radius:var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0 0;height:0;width:calc(100% - 15px);bottom:0;transition:opacity linear 120ms,height ease-in-out 120ms}:host([active][orientation=horizontal]) #button::before{height:4px}:host([orientation=vertical]) #button::before{top:auto;bottom:auto;border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0;height:calc(100% - 12px);width:0;left:0;transition:opacity linear 120ms,width ease-in-out 120ms}:host([active][orientation=vertical]) #button::before{width:4px}#button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([disabled]) #button::before{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=icon]::slotted(*){font-size:20px;margin-bottom:var(--uui-size-2,6px)}slot.label{text-align:center;display:flex;width:100%;flex-direction:column}:host([orientation=vertical]) slot.label{text-align:left}`],jt([l({type:Boolean,reflect:!0})],n.UUITabElement.prototype,"disabled",2),jt([l({type:String})],n.UUITabElement.prototype,"href",2),jt([l({type:String})],n.UUITabElement.prototype,"target",2),jt([l({type:String})],n.UUITabElement.prototype,"rel",2),jt([l({type:String,reflect:!0})],n.UUITabElement.prototype,"orientation",2),n.UUITabElement=jt([m("uui-tab")],n.UUITabElement);var Eb=Object.defineProperty,$b=Object.getOwnPropertyDescriptor,xa=i=>{throw TypeError(i)},Vt=(i,e,t,r)=>{for(var o=r>1?void 0:r?$b(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Eb(e,t,o),o},Dr=(i,e,t)=>e.has(i)||xa("Cannot "+t),S=(i,e,t)=>(Dr(i,e,"read from private field"),t?t.call(i):e.get(i)),me=(i,e,t)=>e.has(i)?xa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),pi=(i,e,t,r)=>(Dr(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),Z=(i,e,t)=>(Dr(i,e,"access private method"),t),go,ge,Ce,Ht,Rt,vo,bi,mi,G,Ca,Sa,Br,Pa,Ft,fo,Aa,jr,Vr;n.UUITabGroupElement=class extends v{constructor(){super(...arguments),me(this,G),me(this,go,0),this.dropdownContentDirection="vertical",me(this,ge,[]),me(this,Ce,[]),me(this,Ht,new Map),me(this,Rt,[]),me(this,vo,new ResizeObserver(Z(this,G,Sa).bind(this))),me(this,bi,[]),me(this,mi,!1),me(this,Ft,e=>{const t=e.currentTarget;if(Z(this,G,Vr).call(this,t)){t.active=!0;const r=S(this,Ht).get(t);r&&(r.active=!0),[...S(this,ge),...S(this,Ce)].filter(o=>o!==t&&o!==r).forEach(o=>{Z(this,G,Vr).call(this,o)&&(o.active=!1)}),S(this,Ce).some(o=>o.active&&o!==r)?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside")}})}connectedCallback(){super.connectedCallback(),Z(this,G,Ca).call(this)}disconnectedCallback(){super.disconnectedCallback(),S(this,vo).unobserve(this),Z(this,G,Br).call(this)}render(){return u`<div id="main"><div id="grid"><slot @slotchange="${Z(this,G,Pa)}"></slot></div><uui-button popovertarget="popover-container" style="display:none" id="more-button" label="More" compact="compact"><uui-symbol-more></uui-symbol-more></uui-button></div><uui-popover-container id="popover-container" popover placement="bottom-end"><div id="hidden-tabs-container">${hr(S(this,Ce),e=>u`${e}`)}</div></uui-popover-container>`}},go=new WeakMap,ge=new WeakMap,Ce=new WeakMap,Ht=new WeakMap,Rt=new WeakMap,vo=new WeakMap,bi=new WeakMap,mi=new WeakMap,G=new WeakSet,Ca=async function(){$(this,"uui-button"),$(this,"uui-popover-container"),$(this,"uui-symbol-more"),this.hasAttribute("role")||this.setAttribute("role","tablist"),await this.updateComplete,S(this,vo).observe(this._mainElement)},Sa=function(i){const e=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap"));(Number.isNaN(e)?0:e)!==S(this,go)?Z(this,G,fo).call(this):Z(this,G,jr).call(this,i[0].contentBoxSize[0].inlineSize)},Br=function(){S(this,ge).forEach(i=>{i.removeEventListener("click",S(this,Ft)),S(this,bi).forEach(e=>e.disconnect())}),S(this,bi).length=0,S(this,Rt).length=0},Pa=function(){Z(this,G,Br).call(this),Z(this,G,Aa).call(this),S(this,ge).forEach(i=>{i.addEventListener("click",S(this,Ft));const e=new ResizeObserver(Z(this,G,fo).bind(this));e.observe(i),S(this,bi).push(e)})},Ft=new WeakMap,fo=async function(){if(S(this,mi))return;pi(this,mi,!0),requestAnimationFrame(()=>{pi(this,mi,!1)}),await this.updateComplete;const i=Number.parseFloat(this.style.getPropertyValue("--uui-tab-group-gap")),e=Number.isNaN(i)?0:i;pi(this,go,e);let t=0;for(let o=0;o<S(this,ge).length;o++)S(this,ge)[o].style.display="",t+=S(this,ge)[o].offsetWidth,S(this,Rt)[o]=t,t+=e;const r=2;this._mainElement.style.width=t-e+r+"px",Z(this,G,jr).call(this,this._mainElement.offsetWidth)},Aa=function(){pi(this,ge,this._slottedNodes?this._slottedNodes:[]),Z(this,G,fo).call(this)},jr=function(i){const e=this._moreButtonElement.offsetWidth,t=i-(e||0);S(this,Ce).forEach(s=>{s.removeEventListener("click",S(this,Ft))}),pi(this,Ce,[]),S(this,Ht).clear();let r=!1;const o=S(this,Rt).length;for(let s=0;s<o;s++){const a=S(this,Rt)[s],c=S(this,ge)[s];if(a<=(s===o-1?i:t))c.style.display="";else{const d=c.cloneNode(!0);d.addEventListener("click",S(this,Ft)),d.classList.add("hidden-tab"),d.style.display="",d.orientation=this.dropdownContentDirection,S(this,Ht).set(d,c),S(this,Ht).set(c,d),S(this,Ce).push(d),c.style.display="none",c.active&&(r=!0)}}S(this,Ce).length===0?(this._moreButtonElement.style.display="none",this._popoverContainerElement.hidePopover()):this._moreButtonElement.style.display="",r?this._moreButtonElement.classList.add("active-inside"):this._moreButtonElement.classList.remove("active-inside"),this.requestUpdate()},Vr=function(i){return typeof i=="object"&&"active"in i&&typeof i.active=="boolean"},n.UUITabGroupElement.styles=[b`:host{min-width:0;display:flex;height:100%}#main{display:flex;justify-content:space-between;overflow:hidden}#grid{width:1fr;display:flex;height:100%;min-height:48px;overflow:hidden;text-wrap:nowrap;color:var(--uui-tab-text);gap:var(--uui-tab-group-gap,0)}#popover-container{--uui-tab-text:var(--uui-tab-group-dropdown-tab-text, unset);--uui-tab-text-hover:var(
966
966
  --uui-tab-group-dropdown-tab-text-hover,
967
967
  unset
968
968
  );--uui-tab-text-active:var(
969
969
  --uui-tab-group-dropdown-tab-text-active,
970
970
  unset
971
971
  )}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}.hidden-tab{width:100%}#hidden-tabs-container{width:fit-content;display:flex;flex-direction:column;background-color:var(--uui-tab-group-dropdown-background,var(--uui-color-surface,#fff));border-radius:var(--uui-border-radius,3px);box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23));overflow:hidden}:host([dropdown-direction=horizontal]) #hidden-tabs-container{flex-direction:row}#more-button{position:relative;--uui-button-contrast:var(--uui-tab-text);--uui-button-contrast-hover:var(--uui-tab-text-hover);--uui-button-background-color:transparent;--uui-button-background-color-hover:transparent}#more-button::before{content:'';position:absolute;bottom:0;width:100%;background-color:var(--uui-color-current,#f5c1bc);height:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#more-button.active-inside::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}`],Vt([P("#more-button")],n.UUITabGroupElement.prototype,"_moreButtonElement",2),Vt([P("#popover-container")],n.UUITabGroupElement.prototype,"_popoverContainerElement",2),Vt([P("#main")],n.UUITabGroupElement.prototype,"_mainElement",2),Vt([Oe({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),Vt([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],n.UUITabGroupElement.prototype,"dropdownContentDirection",2),n.UUITabGroupElement=Vt([m("uui-tab-group")],n.UUITabGroupElement);class kb extends A{}class Ib extends A{}var xb=Object.defineProperty,Cb=Object.getOwnPropertyDescriptor,Hr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Cb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xb(e,t,o),o};n.UUITagElement=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},n.UUITagElement.styles=[b`:host{display:inline-block;font-size:var(--uui-tag-font-size,var(--uui-type-small-size,12px));font-weight:700;line-height:1;padding:var(--uui-tag-padding,var(--uui-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em));border-radius:100px;user-select:none;border-radius:var(--uui-tag-border-radius,var(--uui-size-4,12px));border:1px solid var(--uui-tag-border-color,transparent)}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:transparent;color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:transparent;color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}`],Hr([l({reflect:!0})],n.UUITagElement.prototype,"color",2),Hr([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=Hr([m("uui-tag")],n.UUITagElement);let gi=class extends A{constructor(e,t={}){super(e,{bubbles:!0,...t})}};gi.CHANGE="change",gi.INPUT="input";var Sb=Object.defineProperty,Pb=Object.getOwnPropertyDescriptor,R=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sb(e,t,o),o};n.UUITextareaElement=class extends ue(v,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this.value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this.value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}async focus(){await this.updateComplete,this._textarea.focus()}async blur(){await this.updateComplete,this._textarea.blur()}async click(){await this.updateComplete,this._textarea.click()}getFormElement(){return this._textarea}onInput(e){this.value=e.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new gi(gi.CHANGE))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,r=e.scrollTop,o=getComputedStyle(e).height;e.style.display="block",e.style.height=o,t.style.height="auto",t.scrollHeight+2>t.clientHeight?t.style.height=t.scrollHeight+2+"px":t.scrollHeight+2<t.clientHeight&&t.style.removeProperty("height"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" rows="${U(this.rows)}" cols="${U(this.cols)}" .value="${this.value}" .name="${this.name}" wrap="${U(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
972
- </textarea>`}},n.UUITextareaElement.formAssociated=!0,n.UUITextareaElement.styles=[b`:host{position:relative}:host([error]) textarea{border:1px solid var(--uui-color-danger,#d42054)!important}:host([error]) textarea[disabled]{border:1px solid var(--uui-color-danger,#d42054)!important}:host([auto-height]) textarea{resize:none}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}textarea[readonly]{border-color:var(--uui-textarea-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2));background-color:var(--uui-textarea-background-color-readonly,var(--uui-color-disabled,#f3f3f5))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-textarea-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}textarea{color:var(--uui-color-text,#060606);font-family:inherit;line-height:var(--uui-size-6,18px);box-sizing:border-box;min-width:100%;max-width:100%;font-size:inherit;padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-color-border,#d8d7d9));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height);background-color:var(--uui-textarea-background-color,var(--uui-color-surface,#fff))}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-color-border-emphasis,#a1a1a1))}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],R([l()],n.UUITextareaElement.prototype,"placeholder",2),R([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),R([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),R([l({type:String})],n.UUITextareaElement.prototype,"name",2),R([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),R([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),R([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),R([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),R([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),R([P("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),R([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),R([l({type:String})],n.UUITextareaElement.prototype,"label",2),R([l({type:Number})],n.UUITextareaElement.prototype,"rows",2),R([l({type:Number})],n.UUITextareaElement.prototype,"cols",2),R([l({type:String})],n.UUITextareaElement.prototype,"wrap",2),n.UUITextareaElement=R([m("uui-textarea")],n.UUITextareaElement);let q=class extends A{};q.OPENING="opening",q.OPENED="opened",q.CLOSING="closing",q.CLOSED="closed";var Ab=Object.defineProperty,Ob=Object.getOwnPropertyDescriptor,Gt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ob(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ab(e,t,o),o};n.UUIToastNotificationElement=class extends v{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",e=>{e.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,e!==null?(this._timer===null?this._timer=new xu(this._onOpenTimerComplete,e):this._timer.setDuration(e),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):(this._timer?.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(e){e===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),$(this,"uui-button"),$(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new q(q.OPENING)),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&this._timer?.start(),this.dispatchEvent(new q(q.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){if(this._open===!1)return;const e=new q(q.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,this._timer?.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new q(q.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return u`<div id="toast" class="${this._animate?"animate":""}"><div><div id="close"><uui-button .label="${"close"}" .color="${this.color}" .look="${this.color?"primary":"default"}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${Fo.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[Ui,b`:host{--uui-toast-notification-margin:var(--uui-size-space-2,6px);position:relative;display:block;width:100%;max-width:400px;margin:0 var(--uui-toast-notification-margin);box-sizing:border-box;height:0;pointer-events:none;transition:height var(--uui-toast-notification-animation-duration,480ms) ease-in-out}:host([is-open]){pointer-events:all;transition-timing-function:cubic-bezier(.19,1,.22,1)}#toast{position:relative;display:block;padding:calc(var(--uui-toast-notification-margin) * .5) 0;width:100%;max-width:400px}#toast.animate{position:absolute}#toast>div{position:relative;display:block;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));background-color:var(--uui-color-surface,#fff);padding:var(--uui-size-layout-1,24px);padding-right:var(--uui-size-layout-1,24px);padding-left:var(--uui-size-layout-3,42px);border-radius:calc(var(--uui-border-radius,3px) * 2);opacity:0;transition:opacity var(--uui-toast-notification-animation-duration,480ms)}:host([is-open]) #toast>div{opacity:1}#close{float:right;margin-top:-6px;margin-left:var(--uui-size-space-1,3px);margin-bottom:-4px}#close>uui-button{--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}:host #toast>div{background-color:var(--uui-color-surface,#fff);color:var(--uui-color-text,#060606);border-color:var(--uui-color-surface,#fff)}:host([color=default]) #toast>div{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff);border-color:var(--uui-color-default-standalone,#1c233b)}:host([color=positive]) #toast>div{background-color:var(--uui-color-positive,#0b8152);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#0a7349)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fbd142);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#a17700)}:host([color=danger]) #toast>div{background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff);border-color:var(--uui-color-danger-standalone,#bf214e)}`],Gt([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),Gt([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),Gt([P("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),Gt([y()],n.UUIToastNotificationElement.prototype,"_animate",2),Gt([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=Gt([m("uui-toast-notification")],n.UUIToastNotificationElement);var zb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,Oa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zb(e,t,o),o};n.UUIToastNotificationContainerElement=class extends v{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{this._autoClosePause=!0,this._toasts?.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,this._toasts?.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=e=>{this.removeToast(e.target)},this._toasts=[],this.onSlotChanged=e=>{const t=[...this._toasts];this._toasts=e.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),t.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(q.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>t.indexOf(r)===-1).forEach(r=>{r.addEventListener(q.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,this._toasts?.forEach(t=>t.autoClose=e)}removeToast(e){if(!e)e=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(e)===-1){console.warn("Toast-notification",e,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(e)}closeToast(e){let t=e;t||(t=this._toasts[this._toasts.length-1]),t.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},n.UUIToastNotificationContainerElement.styles=[b`:host{position:absolute;overflow:hidden;max-width:100%;height:100%;pointer-events:none;box-sizing:border-box}slot{display:flex;flex-direction:column;align-items:end;height:100%;box-sizing:border-box;padding-top:var(--uui-size-space-1,3px);padding-bottom:var(--uui-size-space-1,3px)}:host([bottom-up]) slot{justify-content:end}:host([left-align]) slot{align-items:start}`],Oa([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=Oa([m("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var Tb=Object.defineProperty,Nb=Object.getOwnPropertyDescriptor,Rr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Nb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tb(e,t,o),o};n.UUIToastNotificationLayoutElement=class extends v{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}render(){return u`<div id="message" class="uui-text"><h5 style="${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot></slot><slot id="actions" name="actions"></slot></div>`}},n.UUIToastNotificationLayoutElement.styles=[Ui,b`#message{margin-bottom:calc(var(--uui-size-space-1,3px) * -1)}#message::after{content:'';display:block;clear:both}#actions{display:block;float:right;margin-top:var(--uui-size-space-4,12px);margin-bottom:calc(var(--uui-size-space-2,6px) * -1)}`],Rr([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),Rr([y()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=Rr([m("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var Mb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,Bb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Db(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Mb(e,t,o),o};n.UUIToggleElement=class extends te{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-checked">${zi}</div><div id="icon-unchecked">${Fo}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...te.styles,Si,b`:host{--uui-toggle-size:18px;--uui-toggle-switch-width:calc(2 * var(--uui-toggle-size))}#slider{position:relative;grid-area:'input';display:flex;align-items:center;flex-shrink:0;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-color-border,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-toggle-background-color-hover,var(--uui-color-border,#d8d7d9))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-color-focus,#3879ff));background-color:var(--uui-toggle-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked~#slider{background-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-checked,#icon-unchecked{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:color 120ms}#icon-checked{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}#icon-unchecked{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-checked{color:var(--uui-color-selected-contrast,#fff)}#slider::after{content:'';position:absolute;top:2px;left:2px;width:calc(var(--uui-toggle-size) - 4px);height:calc(var(--uui-toggle-size) - 4px);border-radius:100px;background-color:var(--uui-color-selected-contrast,#fff);transition:width 120ms ease,left 120ms ease,transform 120ms ease,background-color 120ms}input:checked~#slider::after{left:calc(100% - 2px);transform:translateX(-100%)}input:focus~#slider{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}:host([disabled]) input:checked~#slider{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #slider::after{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #slider #icon-unchecked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${Pi}}:host([disabled]) input:checked #slider #icon-checked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host(:not([pristine]):invalid) #slider,:host(:not([pristine]):invalid) label:hover #slider,:host(:not([pristine])[internals-invalid]) #slider,:host(:not([pristine])[internals-invalid]) label:hover #slider{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],n.UUIToggleElement=Bb([m("uui-toggle")],n.UUIToggleElement);var jb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,Hb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jb(e,t,o),o};n.UUIVisuallyHiddenElement=class extends v{render(){return u`<slot></slot>`}},n.UUIVisuallyHiddenElement.styles=[b`:host(:not(:focus-within)){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`],n.UUIVisuallyHiddenElement=Hb([m("uui-visually-hidden")],n.UUIVisuallyHiddenElement),n.ActiveMixin=il,n.LabelMixin=nl,n.PopoverTargetMixin=xl,n.SelectOnlyMixin=hl,n.SelectableMixin=ll,n.Timer=gl,n.UUIBlinkAnimationValue=Ka,n.UUIBlinkKeyframes=Wa,n.UUIBooleanInputElement=te,n.UUIBooleanInputEvent=Ci,n.UUIButtonInlineCreateEvent=Ai,n.UUICardEvent=wt,n.UUIColorAreaEvent=Vi,n.UUIColorPickerChangeEvent=Ut,n.UUIColorSliderEvent=Fi,n.UUIColorSwatchesEvent=Et,n.UUIComboboxEvent=X,n.UUIComboboxListEvent=ne,n.UUIEvent=No,n.UUIFileDropzoneEvent=xt,n.UUIFormControlEvent=ye,n.UUIFormControlMixin=ml,n.UUIHorizontalPulseAnimationValue=Ya,n.UUIHorizontalPulseKeyframes=Xa,n.UUIHorizontalShakeAnimationValue=Qa,n.UUIHorizontalShakeKeyframes=Za,n.UUIIconHost=br,n.UUIIconRegistry=mr,n.UUIIconRegistryEssential=Vs,n.UUIIconRequestEvent=St,n.UUIInputEvent=tt,n.UUIInputLockEvent=io,n.UUIInterfaceColorValues=Pl,n.UUIInterfaceHeadingValues=Al,n.UUIInterfaceLookValues=Sl,n.UUIMenuItemEvent=$e,n.UUIModalCloseEvent=it,n.UUIModalElement=Y,n.UUIPaginationEvent=Ne,n.UUIRadioEvent=Mt,n.UUIRadioGroupEvent=lo,n.UUIRefEvent=Bt,n.UUISelectEvent=ho,n.UUISelectableEvent=qe,n.UUISliderEvent=at,n.UUITabEvent=kb,n.UUITabGroupEvent=Ib,n.UUITextStyles=Ui,n.UUITextareaEvent=gi,n.UUIToastNotificationEvent=q,n.clamp=yl,n.defineElement=Cl,n.demandCustomElement=vl,n.drag=fl,n.findAncestorByAttributeValue=wn,n.reverseNumberInRange=wl,n.slotHasContent=Ul,n.toHex=_l});
972
+ </textarea>`}},n.UUITextareaElement.formAssociated=!0,n.UUITextareaElement.styles=[b`:host{position:relative}:host([error]) textarea{border:1px solid var(--uui-color-danger,#d42054)!important}:host([error]) textarea[disabled]{border:1px solid var(--uui-color-danger,#d42054)!important}:host([auto-height]) textarea{resize:none}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}textarea[readonly]{border-color:var(--uui-textarea-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2));background-color:var(--uui-textarea-background-color-readonly,var(--uui-color-disabled,#f3f3f5))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-textarea-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}textarea{color:var(--uui-color-text,#060606);font-family:inherit;line-height:var(--uui-size-6,18px);box-sizing:border-box;min-width:100%;max-width:100%;font-size:inherit;padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-color-border,#d8d7d9));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height);background-color:var(--uui-textarea-background-color,var(--uui-color-surface,#fff))}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-color-border-emphasis,#a1a1a1))}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],R([l()],n.UUITextareaElement.prototype,"placeholder",2),R([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),R([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),R([l({type:String})],n.UUITextareaElement.prototype,"name",2),R([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),R([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),R([l({type:String,attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),R([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),R([l({type:String,attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),R([P("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),R([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),R([l({type:String})],n.UUITextareaElement.prototype,"label",2),R([l({type:Number})],n.UUITextareaElement.prototype,"rows",2),R([l({type:Number})],n.UUITextareaElement.prototype,"cols",2),R([l({type:String})],n.UUITextareaElement.prototype,"wrap",2),n.UUITextareaElement=R([m("uui-textarea")],n.UUITextareaElement);let q=class extends A{};q.OPENING="opening",q.OPENED="opened",q.CLOSING="closing",q.CLOSED="closed";var Ab=Object.defineProperty,Ob=Object.getOwnPropertyDescriptor,Gt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ob(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ab(e,t,o),o};n.UUIToastNotificationElement=class extends v{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",e=>{e.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,e!==null?(this._timer===null?this._timer=new xu(this._onOpenTimerComplete,e):this._timer.setDuration(e),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):(this._timer?.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(e){e===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),$(this,"uui-button"),$(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new q(q.OPENING)),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&this._timer?.start(),this.dispatchEvent(new q(q.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){if(this._open===!1)return;const e=new q(q.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,this._timer?.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new q(q.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return u`<div id="toast" class="${this._animate?"animate":""}"><div><div id="close"><uui-button .label="${"close"}" .color="${this.color}" .look="${this.color?"primary":"default"}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${Fo.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[Ui,b`:host{--uui-toast-notification-margin:var(--uui-size-space-2,6px);position:relative;display:block;width:100%;max-width:400px;margin:0 var(--uui-toast-notification-margin);box-sizing:border-box;height:0;pointer-events:none;transition:height var(--uui-toast-notification-animation-duration,480ms) ease-in-out}:host([is-open]){pointer-events:all;transition-timing-function:cubic-bezier(.19,1,.22,1)}#toast{position:relative;display:block;padding:calc(var(--uui-toast-notification-margin) * .5) 0;width:100%;max-width:400px}#toast.animate{position:absolute}#toast>div{position:relative;display:block;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));background-color:var(--uui-color-surface,#fff);padding:var(--uui-size-layout-1,24px);padding-right:var(--uui-size-layout-1,24px);padding-left:var(--uui-size-layout-3,42px);border-radius:calc(var(--uui-border-radius,3px) * 2);opacity:0;transition:opacity var(--uui-toast-notification-animation-duration,480ms)}:host([is-open]) #toast>div{opacity:1}#close{float:right;margin-top:-6px;margin-left:var(--uui-size-space-1,3px);margin-bottom:-4px}#close>uui-button{--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}:host #toast>div{background-color:var(--uui-color-surface,#fff);color:var(--uui-color-text,#060606);border-color:var(--uui-color-surface,#fff)}:host([color=default]) #toast>div{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff);border-color:var(--uui-color-default-standalone,#1c233b)}:host([color=positive]) #toast>div{background-color:var(--uui-color-positive,#0b8152);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#0a7349)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fbd142);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#a17700)}:host([color=danger]) #toast>div{background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff);border-color:var(--uui-color-danger-standalone,#bf214e)}`],Gt([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),Gt([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),Gt([P("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),Gt([y()],n.UUIToastNotificationElement.prototype,"_animate",2),Gt([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=Gt([m("uui-toast-notification")],n.UUIToastNotificationElement);var zb=Object.defineProperty,Lb=Object.getOwnPropertyDescriptor,Oa=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zb(e,t,o),o};n.UUIToastNotificationContainerElement=class extends v{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{this._autoClosePause=!0,this._toasts?.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,this._toasts?.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=e=>{this.removeToast(e.target)},this._toasts=[],this.onSlotChanged=e=>{const t=[...this._toasts];this._toasts=e.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),t.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(q.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>t.indexOf(r)===-1).forEach(r=>{r.addEventListener(q.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,this._toasts?.forEach(t=>t.autoClose=e)}removeToast(e){if(!e)e=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(e)===-1){console.warn("Toast-notification",e,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(e)}closeToast(e){let t=e;t||(t=this._toasts[this._toasts.length-1]),t.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},n.UUIToastNotificationContainerElement.styles=[b`:host{position:absolute;overflow:hidden;max-width:100%;height:100%;pointer-events:none;box-sizing:border-box}slot{display:flex;flex-direction:column;align-items:end;height:100%;box-sizing:border-box;padding-top:var(--uui-size-space-1,3px);padding-bottom:var(--uui-size-space-1,3px)}:host([bottom-up]) slot{justify-content:end}:host([left-align]) slot{align-items:start}`],Oa([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=Oa([m("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var Tb=Object.defineProperty,Mb=Object.getOwnPropertyDescriptor,Rr=(i,e,t,r)=>{for(var o=r>1?void 0:r?Mb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Tb(e,t,o),o};n.UUIToastNotificationLayoutElement=class extends v{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}render(){return u`<div id="message" class="uui-text"><h5 style="${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot></slot><slot id="actions" name="actions"></slot></div>`}},n.UUIToastNotificationLayoutElement.styles=[Ui,b`#message{margin-bottom:calc(var(--uui-size-space-1,3px) * -1)}#message::after{content:'';display:block;clear:both}#actions{display:block;float:right;margin-top:var(--uui-size-space-4,12px);margin-bottom:calc(var(--uui-size-space-2,6px) * -1)}`],Rr([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),Rr([y()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=Rr([m("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var Nb=Object.defineProperty,Db=Object.getOwnPropertyDescriptor,Bb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Db(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Nb(e,t,o),o};n.UUIToggleElement=class extends te{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-checked">${zi}</div><div id="icon-unchecked">${Fo}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...te.styles,Si,b`:host{--uui-toggle-size:18px;--uui-toggle-switch-width:calc(2 * var(--uui-toggle-size))}#slider{position:relative;grid-area:'input';display:flex;align-items:center;flex-shrink:0;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-color-border,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-color-border-emphasis,#a1a1a1));background-color:var(--uui-toggle-background-color-hover,var(--uui-color-border,#d8d7d9))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-color-focus,#3879ff));background-color:var(--uui-toggle-background-color-focus,var(--uui-color-surface-emphasis,#fafafa))}input:checked~#slider{background-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-checked,#icon-unchecked{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:color 120ms}#icon-checked{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}#icon-unchecked{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-checked{color:var(--uui-color-selected-contrast,#fff)}#slider::after{content:'';position:absolute;top:2px;left:2px;width:calc(var(--uui-toggle-size) - 4px);height:calc(var(--uui-toggle-size) - 4px);border-radius:100px;background-color:var(--uui-color-selected-contrast,#fff);transition:width 120ms ease,left 120ms ease,transform 120ms ease,background-color 120ms}input:checked~#slider::after{left:calc(100% - 2px);transform:translateX(-100%)}input:focus~#slider{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}:host([disabled]) input:checked~#slider{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #slider::after{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #slider #icon-unchecked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${Pi}}:host([disabled]) input:checked #slider #icon-checked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host(:not([pristine]):invalid) #slider,:host(:not([pristine]):invalid) label:hover #slider,:host(:not([pristine])[internals-invalid]) #slider,:host(:not([pristine])[internals-invalid]) label:hover #slider{border:1px solid var(--uui-color-danger-standalone,#bf214e)}`],n.UUIToggleElement=Bb([m("uui-toggle")],n.UUIToggleElement);var jb=Object.defineProperty,Vb=Object.getOwnPropertyDescriptor,Hb=(i,e,t,r)=>{for(var o=r>1?void 0:r?Vb(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&jb(e,t,o),o};n.UUIVisuallyHiddenElement=class extends v{render(){return u`<slot></slot>`}},n.UUIVisuallyHiddenElement.styles=[b`:host(:not(:focus-within)){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`],n.UUIVisuallyHiddenElement=Hb([m("uui-visually-hidden")],n.UUIVisuallyHiddenElement),n.ActiveMixin=il,n.LabelMixin=nl,n.PopoverTargetMixin=xl,n.SelectOnlyMixin=hl,n.SelectableMixin=ll,n.Timer=gl,n.UUIBlinkAnimationValue=Ka,n.UUIBlinkKeyframes=Wa,n.UUIBooleanInputElement=te,n.UUIBooleanInputEvent=Ci,n.UUIButtonInlineCreateEvent=Ai,n.UUICardEvent=wt,n.UUIColorAreaEvent=Vi,n.UUIColorPickerChangeEvent=Ut,n.UUIColorSliderEvent=Fi,n.UUIColorSwatchesEvent=Et,n.UUIComboboxEvent=X,n.UUIComboboxListEvent=ne,n.UUIEvent=Mo,n.UUIFileDropzoneEvent=xt,n.UUIFormControlEvent=ye,n.UUIFormControlMixin=ml,n.UUIHorizontalPulseAnimationValue=Ya,n.UUIHorizontalPulseKeyframes=Xa,n.UUIHorizontalShakeAnimationValue=Qa,n.UUIHorizontalShakeKeyframes=Za,n.UUIIconHost=br,n.UUIIconRegistry=mr,n.UUIIconRegistryEssential=Vs,n.UUIIconRequestEvent=St,n.UUIInputEvent=tt,n.UUIInputLockEvent=io,n.UUIInterfaceColorValues=Pl,n.UUIInterfaceHeadingValues=Al,n.UUIInterfaceLookValues=Sl,n.UUIMenuItemEvent=$e,n.UUIModalCloseEvent=it,n.UUIModalElement=Y,n.UUIPaginationEvent=Me,n.UUIRadioEvent=Nt,n.UUIRadioGroupEvent=lo,n.UUIRefEvent=Bt,n.UUISelectEvent=ho,n.UUISelectableEvent=qe,n.UUISliderEvent=at,n.UUITabEvent=kb,n.UUITabGroupEvent=Ib,n.UUITextStyles=Ui,n.UUITextareaEvent=gi,n.UUIToastNotificationEvent=q,n.clamp=yl,n.defineElement=Cl,n.demandCustomElement=vl,n.drag=fl,n.findAncestorByAttributeValue=wn,n.reverseNumberInRange=wl,n.slotHasContent=Ul,n.toHex=_l});
973
973
  //# sourceMappingURL=uui.min.js.map