@umbraco-ui/uui 0.2.0 → 1.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uui.min.js CHANGED
@@ -1,46 +1,46 @@
1
- (function(u){typeof define=="function"&&define.amd?define(u):u()})(function(){"use strict";function u(t,e){return r=>{if(t.indexOf("-")>0===!1){console.error(`${t} 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(t)||window.customElements.define(t,r,e)}}/**
1
+ (function(s,c){typeof exports=="object"&&typeof module<"u"?c(exports):typeof define=="function"&&define.amd?define(["exports"],c):(s=typeof globalThis<"u"?globalThis:s||self,c(s.uui={}))})(this,function(s){"use strict";function c(t,e){return o=>{if(t.indexOf("-")>0===!1){console.error(`${t} 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(t)||window.customElements.define(t,o,e)}}/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const bi=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gi=Symbol(),br=new Map;class gr{constructor(e,r){if(this._$cssResult$=!0,r!==gi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=br.get(this.cssText);return bi&&e===void 0&&(br.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const Qe=t=>new gr(typeof t=="string"?t:t+"",gi),c=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((o,i,s)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new gr(r,gi)},es=(t,e)=>{bi?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const o=document.createElement("style"),i=window.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)})},mr=bi?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const o of e.cssRules)r+=o.cssText;return Qe(r)})(t):t;/**
5
+ */const gt=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),Jt=new Map;class ei{constructor(e,o){if(this._$cssResult$=!0,o!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=Jt.get(this.cssText);return gt&&e===void 0&&(Jt.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const Pe=t=>new ei(typeof t=="string"?t:t+"",_t),d=(t,...e)=>{const o=t.length===1?t[0]:e.reduce((r,i,n)=>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.")})(i)+t[n+1],t[0]);return new ei(o,_t)},Lo=(t,e)=>{gt?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{const r=document.createElement("style"),i=window.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=o.cssText,t.appendChild(r)})},ti=gt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let o="";for(const r of e.cssRules)o+=r.cssText;return Pe(o)})(t):t;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var mi;const _r=window.trustedTypes,ts=_r?_r.emptyScript:"",yr=window.reactiveElementPolyfillSupport,_i={toAttribute(t,e){switch(e){case Boolean:t=t?ts:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},xr=(t,e)=>e!==t&&(e==e||t==t),yi={attribute:!0,type:String,converter:_i,reflect:!1,hasChanged:xr};class Ce extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var r;(r=this.l)!==null&&r!==void 0||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,o)=>{const i=this._$Eh(o,r);i!==void 0&&(this._$Eu.set(i,o),e.push(i))}),e}static createProperty(e,r=yi){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,o,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){return{get(){return this[r]},set(i){const s=this[e];this[r]=i,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||yi}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const r=this.properties,o=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of o)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const i of o)r.unshift(mr(i))}else e!==void 0&&r.push(mr(e));return r}static _$Eh(e,r){const o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Em(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,o;((r=this._$Eg)!==null&&r!==void 0?r:this._$Eg=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var r;(r=this._$Eg)===null||r===void 0||r.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Et.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return es(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$Eg)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostConnected)===null||o===void 0?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$Eg)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostDisconnected)===null||o===void 0?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$ES(e,r,o=yi){var i,s;const n=this.constructor._$Eh(e,o);if(n!==void 0&&o.reflect===!0){const p=((s=(i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==null&&s!==void 0?s:_i.toAttribute)(r,o.type);this._$Ei=e,p==null?this.removeAttribute(n):this.setAttribute(n,p),this._$Ei=null}}_$AK(e,r){var o,i,s;const n=this.constructor,p=n._$Eu.get(e);if(p!==void 0&&this._$Ei!==p){const v=n.getPropertyOptions(p),h=v.converter,E=(s=(i=(o=h)===null||o===void 0?void 0:o.fromAttribute)!==null&&i!==void 0?i:typeof h=="function"?h:null)!==null&&s!==void 0?s:_i.fromAttribute;this._$Ei=p,this[p]=E(r,v.type),this._$Ei=null}}requestUpdate(e,r,o){let i=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||xr)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Ei!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):i=!1),!this.isUpdatePending&&i&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(r){Promise.reject(r)}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._$Et&&(this._$Et.forEach((i,s)=>this[s]=i),this._$Et=void 0);let r=!1;const o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(o)):this._$EU()}catch(i){throw r=!1,this._$EU(),i}r&&this._$AE(o)}willUpdate(e){}_$AE(e){var r;(r=this._$Eg)===null||r===void 0||r.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,o)=>this._$ES(o,this[o],r)),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}Ce.finalized=!0,Ce.elementProperties=new Map,Ce.elementStyles=[],Ce.shadowRootOptions={mode:"open"},yr?.({ReactiveElement:Ce}),((mi=globalThis.reactiveElementVersions)!==null&&mi!==void 0?mi:globalThis.reactiveElementVersions=[]).push("1.3.1");/**
9
+ */var yt;const ii=window.trustedTypes,To=ii?ii.emptyScript:"",oi=window.reactiveElementPolyfillSupport,Ut={toAttribute(t,e){switch(e){case Boolean:t=t?To:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=t!==null;break;case Number:o=t===null?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch{o=null}}return o}},ri=(t,e)=>e!==t&&(e==e||t==t),wt={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:ri};class ae extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var o;(o=this.l)!==null&&o!==void 0||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((o,r)=>{const i=this._$Eh(r,o);i!==void 0&&(this._$Eu.set(i,r),e.push(i))}),e}static createProperty(e,o=wt){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(e,o),!o.noAccessor&&!this.prototype.hasOwnProperty(e)){const r=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,r,o);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,o,r){return{get(){return this[o]},set(i){const n=this[e];this[o]=i,this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||wt}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const o=this.properties,r=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const i of r)this.createProperty(i,o[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const o=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const i of r)o.unshift(ti(i))}else e!==void 0&&o.push(ti(e));return o}static _$Eh(e,o){const r=o.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Em(),this.requestUpdate(),(e=this.constructor.l)===null||e===void 0||e.forEach(o=>o(this))}addController(e){var o,r;((o=this._$Eg)!==null&&o!==void 0?o:this._$Eg=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var o;(o=this._$Eg)===null||o===void 0||o.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((e,o)=>{this.hasOwnProperty(o)&&(this._$Et.set(o,this[o]),delete this[o])})}createRenderRoot(){var e;const o=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Lo(o,this.constructor.elementStyles),o}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$Eg)===null||e===void 0||e.forEach(o=>{var r;return(r=o.hostConnected)===null||r===void 0?void 0:r.call(o)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$Eg)===null||e===void 0||e.forEach(o=>{var r;return(r=o.hostDisconnected)===null||r===void 0?void 0:r.call(o)})}attributeChangedCallback(e,o,r){this._$AK(e,r)}_$ES(e,o,r=wt){var i,n;const a=this.constructor._$Eh(e,r);if(a!==void 0&&r.reflect===!0){const v=((n=(i=r.converter)===null||i===void 0?void 0:i.toAttribute)!==null&&n!==void 0?n:Ut.toAttribute)(o,r.type);this._$Ei=e,v==null?this.removeAttribute(a):this.setAttribute(a,v),this._$Ei=null}}_$AK(e,o){var r,i,n;const a=this.constructor,v=a._$Eu.get(e);if(v!==void 0&&this._$Ei!==v){const m=a.getPropertyOptions(v),p=m.converter,I=(n=(i=(r=p)===null||r===void 0?void 0:r.fromAttribute)!==null&&i!==void 0?i:typeof p=="function"?p:null)!==null&&n!==void 0?n:Ut.fromAttribute;this._$Ei=v,this[v]=I(o,m.type),this._$Ei=null}}requestUpdate(e,o,r){let i=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||ri)(this[e],o)?(this._$AL.has(e)||this._$AL.set(e,o),r.reflect===!0&&this._$Ei!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):i=!1),!this.isUpdatePending&&i&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(o){Promise.reject(o)}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._$Et&&(this._$Et.forEach((i,n)=>this[n]=i),this._$Et=void 0);let o=!1;const r=this._$AL;try{o=this.shouldUpdate(r),o?(this.willUpdate(r),(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var n;return(n=i.hostUpdate)===null||n===void 0?void 0:n.call(i)}),this.update(r)):this._$EU()}catch(i){throw o=!1,this._$EU(),i}o&&this._$AE(r)}willUpdate(e){}_$AE(e){var o;(o=this._$Eg)===null||o===void 0||o.forEach(r=>{var i;return(i=r.hostUpdated)===null||i===void 0?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((o,r)=>this._$ES(r,this[r],o)),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}ae.finalized=!0,ae.elementProperties=new Map,ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},oi?.({ReactiveElement:ae}),((yt=globalThis.reactiveElementVersions)!==null&&yt!==void 0?yt:globalThis.reactiveElementVersions=[]).push("1.3.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var xi;const Pe=globalThis.trustedTypes,wr=Pe?Pe.createPolicy("lit-html",{createHTML:t=>t}):void 0,G=`lit$${(Math.random()+"").slice(9)}$`,wi="?"+G,is=`<${wi}>`,ke=document,Je=(t="")=>ke.createComment(t),et=t=>t===null||typeof t!="object"&&typeof t!="function",$r=Array.isArray,Er=t=>{var e;return $r(t)||typeof((e=t)===null||e===void 0?void 0:e[Symbol.iterator])=="function"},tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cr=/-->/g,Pr=/>/g,le=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,kr=/'/g,Or=/"/g,zr=/^(?:script|style|textarea|title)$/i,Sr=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),l=Sr(1),b=Sr(2),W=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ir=new WeakMap,rs=(t,e,r)=>{var o,i;const s=(o=r?.renderBefore)!==null&&o!==void 0?o:e;let n=s._$litPart$;if(n===void 0){const p=(i=r?.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=n=new ze(e.insertBefore(Je(),p),p,void 0,r??{})}return n._$AI(t),n},Oe=ke.createTreeWalker(ke,129,null,!1),Ar=(t,e)=>{const r=t.length-1,o=[];let i,s=e===2?"<svg>":"",n=tt;for(let v=0;v<r;v++){const h=t[v];let E,m,f=-1,_=0;for(;_<h.length&&(n.lastIndex=_,m=n.exec(h),m!==null);)_=n.lastIndex,n===tt?m[1]==="!--"?n=Cr:m[1]!==void 0?n=Pr:m[2]!==void 0?(zr.test(m[2])&&(i=RegExp("</"+m[2],"g")),n=le):m[3]!==void 0&&(n=le):n===le?m[0]===">"?(n=i??tt,f=-1):m[1]===void 0?f=-2:(f=n.lastIndex-m[2].length,E=m[1],n=m[3]===void 0?le:m[3]==='"'?Or:kr):n===Or||n===kr?n=le:n===Cr||n===Pr?n=tt:(n=le,i=void 0);const x=n===le&&t[v+1].startsWith("/>")?" ":"";s+=n===tt?h+is:f>=0?(o.push(E),h.slice(0,f)+"$lit$"+h.slice(f)+G+x):h+G+(f===-2?(o.push(void 0),v):x)}const p=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[wr!==void 0?wr.createHTML(p):p,o]};class it{constructor({strings:e,_$litType$:r},o){let i;this.parts=[];let s=0,n=0;const p=e.length-1,v=this.parts,[h,E]=Ar(e,r);if(this.el=it.createElement(h,o),Oe.currentNode=this.el.content,r===2){const m=this.el.content,f=m.firstChild;f.remove(),m.append(...f.childNodes)}for(;(i=Oe.nextNode())!==null&&v.length<p;){if(i.nodeType===1){if(i.hasAttributes()){const m=[];for(const f of i.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(G)){const _=E[n++];if(m.push(f),_!==void 0){const x=i.getAttribute(_.toLowerCase()+"$lit$").split(G),w=/([.?@])?(.*)/.exec(_);v.push({type:1,index:s,name:w[2],strings:x,ctor:w[1]==="."?Dr:w[1]==="?"?Lr:w[1]==="@"?jr:rt})}else v.push({type:6,index:s})}for(const f of m)i.removeAttribute(f)}if(zr.test(i.tagName)){const m=i.textContent.split(G),f=m.length-1;if(f>0){i.textContent=Pe?Pe.emptyScript:"";for(let _=0;_<f;_++)i.append(m[_],Je()),Oe.nextNode(),v.push({type:2,index:++s});i.append(m[f],Je())}}}else if(i.nodeType===8)if(i.data===wi)v.push({type:2,index:s});else{let m=-1;for(;(m=i.data.indexOf(G,m+1))!==-1;)v.push({type:7,index:s}),m+=G.length-1}s++}}static createElement(e,r){const o=ke.createElement("template");return o.innerHTML=e,o}}function ue(t,e,r=t,o){var i,s,n,p;if(e===W)return e;let v=o!==void 0?(i=r._$Cl)===null||i===void 0?void 0:i[o]:r._$Cu;const h=et(e)?void 0:e._$litDirective$;return v?.constructor!==h&&((s=v?._$AO)===null||s===void 0||s.call(v,!1),h===void 0?v=void 0:(v=new h(t),v._$AT(t,r,o)),o!==void 0?((n=(p=r)._$Cl)!==null&&n!==void 0?n:p._$Cl=[])[o]=v:r._$Cu=v),v!==void 0&&(e=ue(t,v._$AS(t,e.values),v,o)),e}class Ur{constructor(e,r){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var r;const{el:{content:o},parts:i}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:ke).importNode(o,!0);Oe.currentNode=s;let n=Oe.nextNode(),p=0,v=0,h=i[0];for(;h!==void 0;){if(p===h.index){let E;h.type===2?E=new ze(n,n.nextSibling,this,e):h.type===1?E=new h.ctor(n,h.name,h.strings,this,e):h.type===6&&(E=new Hr(n,this,e)),this.v.push(E),h=i[++v]}p!==h?.index&&(n=Oe.nextNode(),p++)}return s}m(e){let r=0;for(const o of this.v)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}}class ze{constructor(e,r,o,i){var s;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=i,this._$Cg=(s=i?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ue(this,e,r),et(e)?e===$||e==null||e===""?(this._$AH!==$&&this._$AR(),this._$AH=$):e!==this._$AH&&e!==W&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.k(e):Er(e)?this.S(e):this.$(e)}M(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==$&&et(this._$AH)?this._$AA.nextSibling.data=e:this.k(ke.createTextNode(e)),this._$AH=e}T(e){var r;const{values:o,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=it.createElement(i.h,this.options)),i);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.m(o);else{const n=new Ur(s,this),p=n.p(this.options);n.m(o),this.k(p),this._$AH=n}}_$AC(e){let r=Ir.get(e.strings);return r===void 0&&Ir.set(e.strings,r=new it(e)),r}S(e){$r(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let o,i=0;for(const s of e)i===r.length?r.push(o=new ze(this.M(Je()),this.M(Je()),this,this.options)):o=r[i],o._$AI(s),i++;i<r.length&&(this._$AR(o&&o._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cg=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}}class rt{constructor(e,r,o,i,s){this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,o,i){const s=this.strings;let n=!1;if(s===void 0)e=ue(this,e,r,0),n=!et(e)||e!==this._$AH&&e!==W,n&&(this._$AH=e);else{const p=e;let v,h;for(e=s[0],v=0;v<s.length-1;v++)h=ue(this,p[o+v],r,v),h===W&&(h=this._$AH[v]),n||(n=!et(h)||h!==this._$AH[v]),h===$?e=$:e!==$&&(e+=(h??"")+s[v+1]),this._$AH[v]=h}n&&!i&&this.C(e)}C(e){e===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Dr extends rt{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===$?void 0:e}}const os=Pe?Pe.emptyScript:"";class Lr extends rt{constructor(){super(...arguments),this.type=4}C(e){e&&e!==$?this.element.setAttribute(this.name,os):this.element.removeAttribute(this.name)}}class jr extends rt{constructor(e,r,o,i,s){super(e,r,o,i,s),this.type=5}_$AI(e,r=this){var o;if((e=(o=ue(this,e,r,0))!==null&&o!==void 0?o:$)===W)return;const i=this._$AH,s=e===$&&i!==$||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==$&&(i===$||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,o;typeof this._$AH=="function"?this._$AH.call((o=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class Hr{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){ue(this,e)}}const ss={L:"$lit$",P:G,V:wi,I:1,N:Ar,R:Ur,j:Er,D:ue,H:ze,F:rt,O:Lr,W:jr,B:Dr,Z:Hr},Nr=window.litHtmlPolyfillSupport;Nr?.(it,ze),((xi=globalThis.litHtmlVersions)!==null&&xi!==void 0?xi:globalThis.litHtmlVersions=[]).push("2.2.2");/**
13
+ */var Et;const le=globalThis.trustedTypes,si=le?le.createPolicy("lit-html",{createHTML:t=>t}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,$t="?"+B,No=`<${$t}>`,ue=document,Oe=(t="")=>ue.createComment(t),ze=t=>t===null||typeof t!="object"&&typeof t!="function",ni=Array.isArray,ai=t=>{var e;return ni(t)||typeof((e=t)===null||e===void 0?void 0:e[Symbol.iterator])=="function"},Se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,li=/-->/g,ui=/>/g,q=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,ci=/'/g,di=/"/g,hi=/^(?:script|style|textarea|title)$/i,pi=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),u=pi(1),b=pi(2),H=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),vi=new WeakMap,Bo=(t,e,o)=>{var r,i;const n=(r=o?.renderBefore)!==null&&r!==void 0?r:e;let a=n._$litPart$;if(a===void 0){const v=(i=o?.renderBefore)!==null&&i!==void 0?i:null;n._$litPart$=a=new de(e.insertBefore(Oe(),v),v,void 0,o??{})}return a._$AI(t),a},ce=ue.createTreeWalker(ue,129,null,!1),mi=(t,e)=>{const o=t.length-1,r=[];let i,n=e===2?"<svg>":"",a=Se;for(let m=0;m<o;m++){const p=t[m];let I,_,f=-1,y=0;for(;y<p.length&&(a.lastIndex=y,_=a.exec(p),_!==null);)y=a.lastIndex,a===Se?_[1]==="!--"?a=li:_[1]!==void 0?a=ui:_[2]!==void 0?(hi.test(_[2])&&(i=RegExp("</"+_[2],"g")),a=q):_[3]!==void 0&&(a=q):a===q?_[0]===">"?(a=i??Se,f=-1):_[1]===void 0?f=-2:(f=a.lastIndex-_[2].length,I=_[1],a=_[3]===void 0?q:_[3]==='"'?di:ci):a===di||a===ci?a=q:a===li||a===ui?a=Se:(a=q,i=void 0);const w=a===q&&t[m+1].startsWith("/>")?" ":"";n+=a===Se?p+No:f>=0?(r.push(I),p.slice(0,f)+"$lit$"+p.slice(f)+B+w):p+B+(f===-2?(r.push(void 0),m):w)}const v=n+(t[o]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[si!==void 0?si.createHTML(v):v,r]};class Ae{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const v=e.length-1,m=this.parts,[p,I]=mi(e,o);if(this.el=Ae.createElement(p,r),ce.currentNode=this.el.content,o===2){const _=this.el.content,f=_.firstChild;f.remove(),_.append(...f.childNodes)}for(;(i=ce.nextNode())!==null&&m.length<v;){if(i.nodeType===1){if(i.hasAttributes()){const _=[];for(const f of i.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(B)){const y=I[a++];if(_.push(f),y!==void 0){const w=i.getAttribute(y.toLowerCase()+"$lit$").split(B),$=/([.?@])?(.*)/.exec(y);m.push({type:1,index:n,name:$[2],strings:w,ctor:$[1]==="."?bi:$[1]==="?"?gi:$[1]==="@"?_i:ke})}else m.push({type:6,index:n})}for(const f of _)i.removeAttribute(f)}if(hi.test(i.tagName)){const _=i.textContent.split(B),f=_.length-1;if(f>0){i.textContent=le?le.emptyScript:"";for(let y=0;y<f;y++)i.append(_[y],Oe()),ce.nextNode(),m.push({type:2,index:++n});i.append(_[f],Oe())}}}else if(i.nodeType===8)if(i.data===$t)m.push({type:2,index:n});else{let _=-1;for(;(_=i.data.indexOf(B,_+1))!==-1;)m.push({type:7,index:n}),_+=B.length-1}n++}}static createElement(e,o){const r=ue.createElement("template");return r.innerHTML=e,r}}function W(t,e,o=t,r){var i,n,a,v;if(e===H)return e;let m=r!==void 0?(i=o._$Cl)===null||i===void 0?void 0:i[r]:o._$Cu;const p=ze(e)?void 0:e._$litDirective$;return m?.constructor!==p&&((n=m?._$AO)===null||n===void 0||n.call(m,!1),p===void 0?m=void 0:(m=new p(t),m._$AT(t,o,r)),r!==void 0?((a=(v=o)._$Cl)!==null&&a!==void 0?a:v._$Cl=[])[r]=m:o._$Cu=m),m!==void 0&&(e=W(t,m._$AS(t,e.values),m,r)),e}class fi{constructor(e,o){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var o;const{el:{content:r},parts:i}=this._$AD,n=((o=e?.creationScope)!==null&&o!==void 0?o:ue).importNode(r,!0);ce.currentNode=n;let a=ce.nextNode(),v=0,m=0,p=i[0];for(;p!==void 0;){if(v===p.index){let I;p.type===2?I=new de(a,a.nextSibling,this,e):p.type===1?I=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(I=new yi(a,this,e)),this.v.push(I),p=i[++m]}v!==p?.index&&(a=ce.nextNode(),v++)}return n}m(e){let o=0;for(const r of this.v)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,o),o+=r.strings.length-2):r._$AI(e[o])),o++}}class de{constructor(e,o,r,i){var n;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=r,this.options=i,this._$Cg=(n=i?.isConnected)===null||n===void 0||n}get _$AU(){var e,o;return(o=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&o!==void 0?o:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&e.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=W(this,e,o),ze(e)?e===E||e==null||e===""?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==H&&this.$(e):e._$litType$!==void 0?this.T(e):e.nodeType!==void 0?this.k(e):ai(e)?this.S(e):this.$(e)}M(e,o=this._$AB){return this._$AA.parentNode.insertBefore(e,o)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==E&&ze(this._$AH)?this._$AA.nextSibling.data=e:this.k(ue.createTextNode(e)),this._$AH=e}T(e){var o;const{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Ae.createElement(i.h,this.options)),i);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===n)this._$AH.m(r);else{const a=new fi(n,this),v=a.p(this.options);a.m(r),this.k(v),this._$AH=a}}_$AC(e){let o=vi.get(e.strings);return o===void 0&&vi.set(e.strings,o=new Ae(e)),o}S(e){ni(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new de(this.M(Oe()),this.M(Oe()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(e=this._$AA.nextSibling,o){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,o);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var o;this._$AM===void 0&&(this._$Cg=e,(o=this._$AP)===null||o===void 0||o.call(this,e))}}class ke{constructor(e,o,r,i,n){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=o,this._$AM=i,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,o=this,r,i){const n=this.strings;let a=!1;if(n===void 0)e=W(this,e,o,0),a=!ze(e)||e!==this._$AH&&e!==H,a&&(this._$AH=e);else{const v=e;let m,p;for(e=n[0],m=0;m<n.length-1;m++)p=W(this,v[r+m],o,m),p===H&&(p=this._$AH[m]),a||(a=!ze(p)||p!==this._$AH[m]),p===E?e=E:e!==E&&(e+=(p??"")+n[m+1]),this._$AH[m]=p}a&&!i&&this.C(e)}C(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class bi extends ke{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===E?void 0:e}}const Ho=le?le.emptyScript:"";class gi extends ke{constructor(){super(...arguments),this.type=4}C(e){e&&e!==E?this.element.setAttribute(this.name,Ho):this.element.removeAttribute(this.name)}}class _i extends ke{constructor(e,o,r,i,n){super(e,o,r,i,n),this.type=5}_$AI(e,o=this){var r;if((e=(r=W(this,e,o,0))!==null&&r!==void 0?r:E)===H)return;const i=this._$AH,n=e===E&&i!==E||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==E&&(i===E||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var o,r;typeof this._$AH=="function"?this._$AH.call((r=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e)}}class yi{constructor(e,o,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){W(this,e)}}const jo={L:"$lit$",P:B,V:$t,I:1,N:mi,R:fi,j:ai,D:W,H:de,F:ke,O:gi,W:_i,B:bi,Z:yi},Ui=window.litHtmlPolyfillSupport;Ui?.(Ae,de),((Et=globalThis.litHtmlVersions)!==null&&Et!==void 0?Et:globalThis.litHtmlVersions=[]).push("2.2.2");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */var $i,Ei;class d extends Ce{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,r;const o=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=o.firstChild),o}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=rs(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!1)}render(){return W}}d.finalized=!0,d._$litElement$=!0,($i=globalThis.litElementHydrateSupport)===null||$i===void 0||$i.call(globalThis,{LitElement:d});const Tr=globalThis.litElementPolyfillSupport;Tr?.({LitElement:d}),((Ei=globalThis.litElementVersions)!==null&&Ei!==void 0?Ei:globalThis.litElementVersions=[]).push("3.2.0");var ns=Object.defineProperty,as=Object.getOwnPropertyDescriptor,ls=(t,e,r,o)=>{for(var i=o>1?void 0:o?as(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ns(e,r,i),i};let ot=class extends d{render(){return l`<slot></slot>`}};ot.styles=[c`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted(: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(uui-dropdown){--uui-dropdown-toggle-slot-button-border-radius:0}::slotted(uui-dropdown:not(:first-child)){--uui-dropdown-toggle-slot-button-merge-border-left:1}::slotted(uui-dropdown:first-child){--uui-dropdown-toggle-slot-button-border-radius:var(
17
+ */var It,xt;class h extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,o;const r=super.createRenderRoot();return(e=(o=this.renderOptions).renderBefore)!==null&&e!==void 0||(o.renderBefore=r.firstChild),r}update(e){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=Bo(o,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Dt)===null||e===void 0||e.setConnected(!1)}render(){return H}}h.finalized=!0,h._$litElement$=!0,(It=globalThis.litElementHydrateSupport)===null||It===void 0||It.call(globalThis,{LitElement:h});const wi=globalThis.litElementPolyfillSupport;wi?.({LitElement:h}),((xt=globalThis.litElementVersions)!==null&&xt!==void 0?xt:globalThis.litElementVersions=[]).push("3.2.0");var Mo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Fo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ro(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Mo(e,o,i),i};s.UUIButtonGroupElement=class extends h{render(){return u`<slot></slot>`}},s.UUIButtonGroupElement.styles=[d`: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(uui-dropdown){--uui-dropdown-toggle-slot-button-border-radius:0}::slotted(uui-dropdown:not(:first-child)){--uui-dropdown-toggle-slot-button-merge-border-left:1}::slotted(uui-dropdown:first-child){--uui-dropdown-toggle-slot-button-border-radius:var(
18
18
  --uui-border-radius,3px
19
- ) 0 0 var(--uui-border-radius,3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],ot=ls([u("uui-button-group")],ot);var us=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,ds=(t,e,r,o)=>{for(var i=o>1?void 0:o?cs(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&us(e,r,i),i};let Ci=class extends ot{};Ci.styles=[...ot.styles,c`::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}`],Ci=ds([u("uui-action-bar")],Ci);/**
19
+ ) 0 0 var(--uui-border-radius,3px)}::slotted(uui-dropdown:last-child){--uui-dropdown-toggle-slot-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],s.UUIButtonGroupElement=Fo([c("uui-button-group")],s.UUIButtonGroupElement);var Vo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,qo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Go(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Vo(e,o,i),i};s.UUIActionBarElement=class extends s.UUIButtonGroupElement{},s.UUIActionBarElement.styles=[...s.UUIButtonGroupElement.styles,d`::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}`],s.UUIActionBarElement=qo([c("uui-action-bar")],s.UUIActionBarElement);/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */const hs=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function a(t){return(e,r)=>r!==void 0?((o,i,s)=>{i.constructor.createProperty(s,o)})(t,e,r):hs(t,e)}/**
23
+ */const Wo=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(o){o.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(o){o.createProperty(e.key,t)}};function l(t){return(e,o)=>o!==void 0?((r,i,n)=>{i.constructor.createProperty(n,r)})(t,e,o):Wo(t,e)}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */function g(t){return a({...t,state:!0})}/**
27
+ */function g(t){return l({...t,state:!0})}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const Pi=({finisher:t,descriptor:e})=>(r,o)=>{var i;if(o===void 0){const s=(i=r.originalKey)!==null&&i!==void 0?i:r.key,n=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(n.finisher=function(p){t(p,s)}),n}{const s=r.constructor;e!==void 0&&Object.defineProperty(r,o,e(o)),t?.(s,o)}};/**
31
+ */const Ct=({finisher:t,descriptor:e})=>(o,r)=>{var i;if(r===void 0){const n=(i=o.originalKey)!==null&&i!==void 0?i:o.key,a=e!=null?{kind:"method",placement:"prototype",key:n,descriptor:e(o.key)}:{...o,key:n};return t!=null&&(a.finisher=function(v){t(v,n)}),a}{const n=o.constructor;e!==void 0&&Object.defineProperty(o,r,e(r)),t?.(n,r)}};/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */function O(t,e){return Pi({descriptor:r=>{const o={get(){var i,s;return(s=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const i=typeof r=="symbol"?Symbol():"__"+r;o.get=function(){var s,n;return this[i]===void 0&&(this[i]=(n=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&n!==void 0?n:null),this[i]}}return o}})}/**
35
+ */function C(t,e){return Ct({descriptor:o=>{const r={get(){var i,n;return(n=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(t))!==null&&n!==void 0?n:null},enumerable:!0,configurable:!0};if(e){const i=typeof o=="symbol"?Symbol():"__"+o;r.get=function(){var n,a;return this[i]===void 0&&(this[i]=(a=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(t))!==null&&a!==void 0?a:null),this[i]}}return r}})}/**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */function ps(t){return Pi({descriptor:e=>({get(){var r,o;return(o=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&o!==void 0?o:[]},enumerable:!0,configurable:!0})})}/**
39
+ */function Ko(t){return Ct({descriptor:e=>({get(){var o,r;return(r=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelectorAll(t))!==null&&r!==void 0?r:[]},enumerable:!0,configurable:!0})})}/**
40
40
  * @license
41
41
  * Copyright 2021 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */var ki;const vs=((ki=window.HTMLSlotElement)===null||ki===void 0?void 0:ki.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function ce(t){const{slot:e,selector:r}=t??{};return Pi({descriptor:o=>({get(){var i;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(s),p=n!=null?vs(n,t):[];return r?p.filter(v=>v.matches(r)):p},enumerable:!0,configurable:!0})})}var fs=Object.defineProperty,bs=Object.getOwnPropertyDescriptor,Ot=(t,e,r,o)=>{for(var i=o>1?void 0:o?bs(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fs(e,r,i),i};let Se=class extends d{constructor(){super(...arguments);this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(t){t.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((t,e)=>{t.style.display=e<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return l`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?l`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}};Se.styles=[c`: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}`],Ot([ce({selector:"uui-avatar, [uui-avatar]",flatten:!0})],Se.prototype,"_avatarNodes",2),Ot([g()],Se.prototype,"_avatarArray",2),Ot([a({type:Number,attribute:!0})],Se.prototype,"limit",2),Se=Ot([u("uui-avatar-group")],Se);var gs=Object.defineProperty,ms=Object.getOwnPropertyDescriptor,Ie=(t,e,r,o)=>{for(var i=o>1?void 0:o?ms(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gs(e,r,i),i};let te=class extends d{constructor(){super(...arguments);this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(t){const e=this._name;this._name=t,this.initials=this.createInitials(this._name),this.requestUpdate("title",e)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(t){let e="";if(t){const r=t.match(/(\w+)/g)||[];e=r[0].substring(0,1),r.length>1&&(e+=r[r.length-1].substring(0,1))}return e.toUpperCase()}renderImage(){return l`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this.initials}" title="${this.name}">`}render(){return l`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this.initials}<slot></slot>`}};te.styles=[c`: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-color-spanish-pink,#f5c1bc);color:var(--uui-color-space-cadet,#1b264f)}:host([overflow]){overflow:unset}img{object-fit:cover;height:100%;width:100%;overflow:hidden;border-radius:50%}`],Ie([a({type:Boolean,attribute:!0,reflect:!0})],te.prototype,"overflow",2),Ie([a({type:String,attribute:"img-src"})],te.prototype,"imgSrc",2),Ie([a({type:String,attribute:"img-srcset"})],te.prototype,"imgSrcset",2),Ie([a({type:String,reflect:!0})],te.prototype,"name",1),Ie([g()],te.prototype,"initials",2),te=Ie([u("uui-avatar")],te);var _s=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,Oi=(t,e,r,o)=>{for(var i=o>1?void 0:o?ys(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&_s(e,r,i),i};let st=class extends d{constructor(){super(...arguments);this.look="danger",this.attention=!1}render(){return l`<slot></slot>`}};st.styles=[c`: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-width:var(--uui-badge-border-width,1px);border-style:solid;border-color:var(--uui-badge-border-color,var(--uui-interface-surface,#fefefe));border-radius:var(--uui-size-4,12px);background-color:var(--uui-badge-background-color,var(--uui-interface-surface,#fefefe));color:var(--uui-badge-contrast,var(--uui-interface-contrast,#060606))}::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}}:host([look=primary]){background-color:var(--uui-look-primary-surface,#1b264f);color:var(--uui-look-primary-contrast,#fefefe);border-style:var(--uui-badge-border-style,var(--uui-look-primary-border-style,solid));border-color:var(--uui-look-primary-border,#1b264f)}:host([look=secondary]){background-color:var(--uui-look-secondary-surface,#e2dad4);color:var(--uui-look-secondary-contrast,#1b264f);border-style:var(--uui-badge-border-style,var(--uui-look-secondary-border-style,solid));border-color:var(--uui-look-secondary-border,#e2dad4)}:host([look=outline]){background-color:var(--uui-look-outline-surface,transparent);color:var(--uui-look-outline-contrast,#1b264f);border-style:var(--uui-badge-border-style,var(--uui-look-outline-border-style,solid));border-color:var(--uui-look-outline-border,#1b264f)}:host([look=placeholder]){background-color:var(--uui-look-placeholder-surface,transparent);color:var(--uui-look-placeholder-contrast,#1b264f);border-style:var(--uui-badge-border-style,var(--uui-look-placeholder-border-style,dashed));border-color:var(--uui-look-placeholder-border,#1b264f)}:host([look=positive]){background-color:var(--uui-look-positive-surface,#25aa60);color:var(--uui-look-positive-contrast,#fefefe);border-style:var(--uui-badge-border-style,var(--uui-look-positive-border-style,solid));border-color:var(--uui-look-positive-border,#25aa60)}:host([look=warning]){background-color:var(--uui-look-warning-surface,#fad634);color:var(--uui-look-warning-contrast,#060606);border-style:var(--uui-badge-border-style,var(--uui-look-warning-border-style,solid));border-color:var(--uui-look-warning-border,#fad634)}:host([look=danger]){background-color:var(--uui-look-danger-surface,#d42054);color:var(--uui-look-danger-contrast,#fefefe);border-style:var(--uui-badge-border-style,var(--uui-look-danger-border-style,solid));border-color:var(--uui-look-danger-border,#d42054)}`],Oi([a({type:String,reflect:!0})],st.prototype,"look",2),Oi([a({type:Boolean,reflect:!0})],st.prototype,"attention",2),st=Oi([u("uui-badge")],st);var xs=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,$s=(t,e,r,o)=>{for(var i=o>1?void 0:o?ws(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&xs(e,r,i),i};const zt=t=>{class e extends t{constructor(){super(...arguments);this.active=!1}}return $s([a({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Es=Object.defineProperty,Cs=Object.getOwnPropertyDescriptor,Mr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Cs(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Es(e,r,i),i};const nt=(t,e)=>{class r extends e{constructor(){super(...arguments);this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(i){this._labelSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`${this._labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"visibility: hidden"}" name="${t||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Mr([a({type:String})],r.prototype,"label",2),Mr([g()],r.prototype,"_labelSlotHasContent",2),r};var Ps=Object.defineProperty,Br=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Os=Object.prototype.propertyIsEnumerable,Vr=(t,e,r)=>e in t?Ps(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Fr=(t,e)=>{for(var r in e||(e={}))ks.call(e,r)&&Vr(t,r,e[r]);if(Br)for(var r of Br(e))Os.call(e,r)&&Vr(t,r,e[r]);return t};const zs={composed:!0};class Ss extends Event{constructor(e,r={}){super(e,Fr(Fr({},zs),r));this.detail=r.detail||{}}}var Is=Object.defineProperty,Rr=Object.getOwnPropertySymbols,As=Object.prototype.hasOwnProperty,Us=Object.prototype.propertyIsEnumerable,qr=(t,e,r)=>e in t?Is(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Gr=(t,e)=>{for(var r in e||(e={}))As.call(e,r)&&qr(t,r,e[r]);if(Rr)for(var r of Rr(e))Us.call(e,r)&&qr(t,r,e[r]);return t};class Ae extends Ss{constructor(e,r={}){super(e,Gr(Gr({},{bubbles:!0}),r))}}Ae.SELECTED="selected",Ae.UNSELECTED="unselected";var Ds=Object.defineProperty,Ls=Object.getOwnPropertyDescriptor,Wr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ls(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ds(e,r,i),i};const at=t=>{class e extends t{constructor(...o){super(...o);this._selectable=!1,this.unselectable=!0,this.selected=!1,this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const i=this._selectable;this._selectable=o,this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selected",i)}handleSelectKeydown(o){o.key!==" "&&o.key!=="Enter"||(o.preventDefault(),this._handleClick())}_select(){!this.selectable||(this.selected=!0,this.dispatchEvent(new Ae(Ae.SELECTED)))}_unselect(){!this.unselectable||(this.selected=!1,this.dispatchEvent(new Ae(Ae.UNSELECTED)))}_handleClick(){this.unselectable===!1?this._select():this.selected?this._unselect():this._select()}}return Wr([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Wr([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var js=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Ns=(t,e,r,o)=>{for(var i=o>1?void 0:o?Hs(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&js(e,r,i),i};const St=t=>{class e extends t{constructor(){super(...arguments);this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const i=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",i)}}return Ns([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Ts=Object.defineProperty,Kr=Object.getOwnPropertySymbols,Ms=Object.prototype.hasOwnProperty,Bs=Object.prototype.propertyIsEnumerable,Yr=(t,e,r)=>e in t?Ts(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xr=(t,e)=>{for(var r in e||(e={}))Ms.call(e,r)&&Yr(t,r,e[r]);if(Kr)for(var r of Kr(e))Bs.call(e,r)&&Yr(t,r,e[r]);return t};const Vs={composed:!0};class Zr extends Event{constructor(e,r={}){super(e,Xr(Xr({},Vs),r));this.detail=r.detail||{}}}var Fs=Object.defineProperty,Qr=Object.getOwnPropertySymbols,Rs=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable,Jr=(t,e,r)=>e in t?Fs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,eo=(t,e)=>{for(var r in e||(e={}))Rs.call(e,r)&&Jr(t,r,e[r]);if(Qr)for(var r of Qr(e))qs.call(e,r)&&Jr(t,r,e[r]);return t};class Ue extends Zr{constructor(e,r={}){super(e,eo(eo({},{bubbles:!0}),r))}}Ue.VALID="valid",Ue.INVALID="invalid";var Gs=Object.defineProperty,to=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,Ks=Object.prototype.propertyIsEnumerable,io=(t,e,r)=>e in t?Gs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ro=(t,e)=>{for(var r in e||(e={}))Ws.call(e,r)&&io(t,r,e[r]);if(to)for(var r of to(e))Ks.call(e,r)&&io(t,r,e[r]);return t};class oo extends Zr{constructor(e,r={}){super(e,ro(ro({},{bubbles:!0}),r))}}oo.SELECTED="selected",oo.UNSELECTED="unselected";var Ys=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,de=(t,e,r,o)=>{for(var i=o>1?void 0:o?Xs(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ys(e,r,i),i};const K=t=>{class e extends t{constructor(...o){super(...o);this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const i=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",i)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,i,s){const n={flagKey:o,getMessageMethod:i,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const i=this._validators.indexOf(o);i!==-1&&this._validators.splice(i,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(i=>{for(const s in i.validity)s!=="valid"&&i.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,i.validationMessage,i))}),this._validators.forEach(i=>{i.checkMethod()&&(this._validityState[i.flagKey]=!0,this._internals.setValidity(this._validityState,i.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new Ue(Ue.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new Ue(Ue.VALID)))}updated(o){super.updated(o),this._runValidators()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const i in this._formCtrlElements)if(this._formCtrlElements[i].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,de([a({type:String})],e.prototype,"name",2),de([a()],e.prototype,"value",1),de([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),de([a({type:Boolean,reflect:!0})],e.prototype,"required",2),de([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),de([a({type:Boolean,reflect:!0})],e.prototype,"error",2),de([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};var Zs=Object.defineProperty,so=Object.getOwnPropertySymbols,Qs=Object.prototype.hasOwnProperty,Js=Object.prototype.propertyIsEnumerable,no=(t,e,r)=>e in t?Zs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ao=(t,e)=>{for(var r in e||(e={}))Qs.call(e,r)&&no(t,r,e[r]);if(so)for(var r of so(e))Js.call(e,r)&&no(t,r,e[r]);return t};const en={composed:!0};class C extends Event{constructor(e,r={}){super(e,ao(ao({},en),r));this.detail=r.detail||{}}}var tn=Object.defineProperty,lo=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,uo=(t,e,r)=>e in t?tn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,co=(t,e)=>{for(var r in e||(e={}))rn.call(e,r)&&uo(t,r,e[r]);if(lo)for(var r of lo(e))on.call(e,r)&&uo(t,r,e[r]);return t};class De extends C{constructor(e,r={}){super(e,co(co({},{bubbles:!0}),r))}}De.VALID="valid",De.INVALID="invalid";var sn=Object.defineProperty,ho=Object.getOwnPropertySymbols,nn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,po=(t,e,r)=>e in t?sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vo=(t,e)=>{for(var r in e||(e={}))nn.call(e,r)&&po(t,r,e[r]);if(ho)for(var r of ho(e))an.call(e,r)&&po(t,r,e[r]);return t};class Le extends C{constructor(e,r={}){super(e,vo(vo({},{bubbles:!0}),r))}}Le.SELECTED="selected",Le.UNSELECTED="unselected";class zi extends C{}zi.CHANGE="change";var ln=Object.defineProperty,un=Object.getOwnPropertyDescriptor,It=(t,e,r,o)=>{for(var i=o>1?void 0:o?un(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ln(e,r,i),i};class Y extends K(nt("",d)){constructor(e="checkbox"){super();this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e}get value(){return this._value}set value(e){const r=this._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",r)}get checked(){return this._checked}set checked(e){const r=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",r)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var r;super.firstUpdated(e);const o=(r=this.shadowRoot)==null?void 0:r.querySelector("label");let i=!1;this._input.addEventListener("blur",()=>{i===!1&&this.style.setProperty("--uui-show-focus-outline","1"),i=!1}),o.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),i=!0}),o.addEventListener("mouseup",()=>{i=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(){this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new zi(zi.CHANGE))}render(){return l`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}}Y.styles=[c`:host{display:inline-block}label{cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}input{position:absolute;height:0;width:0;margin-top:-4px}: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}`],It([a({type:String,attribute:"label-position",reflect:!0})],Y.prototype,"labelPosition",2),It([a({type:Boolean})],Y.prototype,"checked",1),It([a({type:Boolean,reflect:!0})],Y.prototype,"disabled",2),It([O("#input")],Y.prototype,"_input",2);var cn=`.uui-text {
43
+ */var Pt;const Yo=((Pt=window.HTMLSlotElement)===null||Pt===void 0?void 0:Pt.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(o=>o.nodeType===Node.ELEMENT_NODE);function K(t){const{slot:e,selector:o}=t??{};return Ct({descriptor:r=>({get(){var i;const n="slot"+(e?`[name=${e}]`:":not([name])"),a=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(n),v=a!=null?Yo(a,t):[];return o?v.filter(m=>m.matches(o)):v},enumerable:!0,configurable:!0})})}var Xo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,Ve=(t,e,o,r)=>{for(var i=r>1?void 0:r?Zo(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Xo(e,o,i),i};s.UUIAvatarGroupElement=class extends h{constructor(){super(...arguments);this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(t){t.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((t,e)=>{t.style.display=e<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>`:""}`}},s.UUIAvatarGroupElement.styles=[d`: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}`],Ve([K({selector:"uui-avatar, [uui-avatar]",flatten:!0})],s.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Ve([g()],s.UUIAvatarGroupElement.prototype,"_avatarArray",2),Ve([l({type:Number,attribute:!0})],s.UUIAvatarGroupElement.prototype,"limit",2),s.UUIAvatarGroupElement=Ve([c("uui-avatar-group")],s.UUIAvatarGroupElement);var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,he=(t,e,o,r)=>{for(var i=r>1?void 0:r?Jo(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Qo(e,o,i),i};s.UUIAvatarElement=class extends h{constructor(){super(...arguments);this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(t){const e=this._name;this._name=t,this.initials=this.createInitials(this._name),this.requestUpdate("title",e)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(t){let e="";if(t){const o=t.match(/(\w+)/g)||[];e=o[0].substring(0,1),o.length>1&&(e+=o[o.length-1].substring(0,1))}return e.toUpperCase()}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>`}},s.UUIAvatarElement.styles=[d`: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%}`],he([l({type:Boolean,attribute:!0,reflect:!0})],s.UUIAvatarElement.prototype,"overflow",2),he([l({type:String,attribute:"img-src"})],s.UUIAvatarElement.prototype,"imgSrc",2),he([l({type:String,attribute:"img-srcset"})],s.UUIAvatarElement.prototype,"imgSrcset",2),he([l({type:String,reflect:!0})],s.UUIAvatarElement.prototype,"name",1),he([g()],s.UUIAvatarElement.prototype,"initials",2),s.UUIAvatarElement=he([c("uui-avatar")],s.UUIAvatarElement);var er=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,Ot=(t,e,o,r)=>{for(var i=r>1?void 0:r?tr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&er(e,o,i),i};s.UUIBadgeElement=class extends h{constructor(){super(...arguments);this.color="",this.attention=!1}render(){return u`<slot></slot>`}},s.UUIBadgeElement.styles=[d`: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);background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff)}:host([color=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--uui-color-default,#1b264f)}:host([color=positive]){background-color:var(--uui-color-positive,#25aa60);color:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){background-color:var(--uui-color-warning,#fad634);color:var(--uui-color-warning-contrast,#000)}:host([color=danger]){background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff)}::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}}`],Ot([l({type:String,reflect:!0})],s.UUIBadgeElement.prototype,"color",2),Ot([l({type:Boolean,reflect:!0})],s.UUIBadgeElement.prototype,"attention",2),s.UUIBadgeElement=Ot([c("uui-badge")],s.UUIBadgeElement);var ir=Object.defineProperty,or=Object.getOwnPropertyDescriptor,rr=(t,e,o,r)=>{for(var i=r>1?void 0:r?or(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ir(e,o,i),i};const Ge=t=>{class e extends t{constructor(){super(...arguments);this.active=!1}}return rr([l({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var sr=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,Ei=(t,e,o,r)=>{for(var i=r>1?void 0:r?nr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&sr(e,o,i),i};const De=(t,e)=>{class o extends e{constructor(){super(...arguments);this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(i){this._labelSlotHasContent=i.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="${t||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Ei([l({type:String})],o.prototype,"label",2),Ei([g()],o.prototype,"_labelSlotHasContent",2),o};var ar=Object.defineProperty,$i=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,Ii=(t,e,o)=>e in t?ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,xi=(t,e)=>{for(var o in e||(e={}))lr.call(e,o)&&Ii(t,o,e[o]);if($i)for(var o of $i(e))ur.call(e,o)&&Ii(t,o,e[o]);return t};const cr={composed:!0};class dr extends Event{constructor(e,o={}){super(e,xi(xi({},cr),o));this.detail=o.detail||{}}}var hr=Object.defineProperty,Ci=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,Pi=(t,e,o)=>e in t?hr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Oi=(t,e)=>{for(var o in e||(e={}))pr.call(e,o)&&Pi(t,o,e[o]);if(Ci)for(var o of Ci(e))vr.call(e,o)&&Pi(t,o,e[o]);return t};class pe extends dr{constructor(e,o={}){super(e,Oi(Oi({},{bubbles:!0}),o))}}pe.SELECTED="selected",pe.UNSELECTED="unselected";var mr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,zi=(t,e,o,r)=>{for(var i=r>1?void 0:r?fr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&mr(e,o,i),i};const Le=t=>{class e extends t{constructor(...r){super(...r);this._selectable=!1,this.unselectable=!0,this.selected=!1,this.selectableTarget=this,this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(r){const i=this._selectable;this._selectable=r,this.setAttribute("tabindex",`${r?"0":"-1"}`),this.requestUpdate("selected",i)}handleSelectKeydown(r){if(r.composedPath().indexOf(this.selectableTarget)!==-1){if(r.key!==" "&&r.key!=="Enter")return;r.preventDefault(),this._toggleSelect()}}_select(){!this.selectable||(this.selected=!0,this.dispatchEvent(new pe(pe.SELECTED)))}_unselect(){!this.unselectable||(this.selected=!1,this.dispatchEvent(new pe(pe.UNSELECTED)))}_handleClick(r){r.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.unselectable===!1?this._select():this.selected?this._unselect():this._select()}}return zi([l({type:Boolean,reflect:!0})],e.prototype,"selectable",1),zi([l({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var br=Object.defineProperty,gr=Object.getOwnPropertyDescriptor,_r=(t,e,o,r)=>{for(var i=r>1?void 0:r?gr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&br(e,o,i),i};const qe=t=>{class e extends t{constructor(){super(...arguments);this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const i=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",i)}}return _r([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var yr=Object.defineProperty,Si=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Ai=(t,e,o)=>e in t?yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ki=(t,e)=>{for(var o in e||(e={}))Ur.call(e,o)&&Ai(t,o,e[o]);if(Si)for(var o of Si(e))wr.call(e,o)&&Ai(t,o,e[o]);return t};const Er={composed:!0};class Di extends Event{constructor(e,o={}){super(e,ki(ki({},Er),o));this.detail=o.detail||{}}}var $r=Object.defineProperty,Li=Object.getOwnPropertySymbols,Ir=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,Ti=(t,e,o)=>e in t?$r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ni=(t,e)=>{for(var o in e||(e={}))Ir.call(e,o)&&Ti(t,o,e[o]);if(Li)for(var o of Li(e))xr.call(e,o)&&Ti(t,o,e[o]);return t};class ve extends Di{constructor(e,o={}){super(e,Ni(Ni({},{bubbles:!0}),o))}}ve.VALID="valid",ve.INVALID="invalid";var Cr=Object.defineProperty,Bi=Object.getOwnPropertySymbols,Pr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Hi=(t,e,o)=>e in t?Cr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ji=(t,e)=>{for(var o in e||(e={}))Pr.call(e,o)&&Hi(t,o,e[o]);if(Bi)for(var o of Bi(e))Or.call(e,o)&&Hi(t,o,e[o]);return t};class Mi extends Di{constructor(e,o={}){super(e,ji(ji({},{bubbles:!0}),o))}}Mi.SELECTED="selected",Mi.UNSELECTED="unselected";var zr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,Y=(t,e,o,r)=>{for(var i=r>1?void 0:r?Sr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&zr(e,o,i),i};const j=t=>{class e extends t{constructor(...r){super(...r);this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(r){const i=this._value;this._value=r,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",i)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(r,i,n){const a={flagKey:r,getMessageMethod:i,checkMethod:n};return this._validators.push(a),a}removeValidator(r){const i=this._validators.indexOf(r);i!==-1&&this._validators.splice(i,1)}addFormControlElement(r){this._formCtrlElements.push(r)}setCustomValidity(r){this._customValidityObject&&this.removeValidator(this._customValidityObject),r!=null&&r!==""&&(this._customValidityObject=this.addValidator("customError",()=>r,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(i=>{for(const n in i.validity)n!=="valid"&&i.validity[n]&&(this._validityState[n]=!0,this._internals.setValidity(this._validityState,i.validationMessage,i))}),this._validators.forEach(i=>{i.checkMethod()&&(this._validityState[i.flagKey]=!0,this._internals.setValidity(this._validityState,i.getMessageMethod(),this.getFormElement()))});const r=Object.values(this._validityState).includes(!0);this._validityState.valid=!r,r?this.dispatchEvent(new ve(ve.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new ve(ve.VALID)))}updated(r){super.updated(r),this._runValidators()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var r;for(const i in this._formCtrlElements)if(this._formCtrlElements[i].checkValidity()===!1)return!1;return(r=this._internals)==null?void 0:r.checkValidity()}get validity(){return this._validityState}get validationMessage(){var r;return(r=this._internals)==null?void 0:r.validationMessage}}return e.formAssociated=!0,Y([l({type:String})],e.prototype,"name",2),Y([l()],e.prototype,"value",1),Y([l({type:Boolean,reflect:!0})],e.prototype,"pristine",2),Y([l({type:Boolean,reflect:!0})],e.prototype,"required",2),Y([l({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),Y([l({type:Boolean,reflect:!0})],e.prototype,"error",2),Y([l({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};var Ar=Object.defineProperty,Ri=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Dr=Object.prototype.propertyIsEnumerable,Fi=(t,e,o)=>e in t?Ar(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Vi=(t,e)=>{for(var o in e||(e={}))kr.call(e,o)&&Fi(t,o,e[o]);if(Ri)for(var o of Ri(e))Dr.call(e,o)&&Fi(t,o,e[o]);return t};const Lr={composed:!0};class x extends Event{constructor(e,o={}){super(e,Vi(Vi({},Lr),o));this.detail=o.detail||{}}}var Tr=Object.defineProperty,Gi=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,qi=(t,e,o)=>e in t?Tr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Wi=(t,e)=>{for(var o in e||(e={}))Nr.call(e,o)&&qi(t,o,e[o]);if(Gi)for(var o of Gi(e))Br.call(e,o)&&qi(t,o,e[o]);return t};class me extends x{constructor(e,o={}){super(e,Wi(Wi({},{bubbles:!0}),o))}}me.VALID="valid",me.INVALID="invalid";var Hr=Object.defineProperty,Ki=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,Yi=(t,e,o)=>e in t?Hr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Xi=(t,e)=>{for(var o in e||(e={}))jr.call(e,o)&&Yi(t,o,e[o]);if(Ki)for(var o of Ki(e))Mr.call(e,o)&&Yi(t,o,e[o]);return t};class fe extends x{constructor(e,o={}){super(e,Xi(Xi({},{bubbles:!0}),o))}}fe.SELECTED="selected",fe.UNSELECTED="unselected";class We extends x{}We.CHANGE="change";var Rr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,Ke=(t,e,o,r)=>{for(var i=r>1?void 0:r?Fr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Rr(e,o,i),i};class D extends j(De("",h)){constructor(e="checkbox"){super();this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e}get value(){return this._value}set value(e){const o=this._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",o)}get checked(){return this._checked}set checked(e){const o=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",o)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var o;super.firstUpdated(e);const r=(o=this.shadowRoot)==null?void 0:o.querySelector("label");let i=!1;this._input.addEventListener("blur",()=>{i===!1&&this.style.setProperty("--uui-show-focus-outline","1"),i=!1}),r.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),i=!0}),r.addEventListener("mouseup",()=>{i=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(){this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new We(We.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled}" .checked="${this.checked}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}}D.styles=[d`:host{display:inline-block}label{cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}input{position:absolute;height:0;width:0;margin-top:-4px}: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}`],Ke([l({type:String,attribute:"label-position",reflect:!0})],D.prototype,"labelPosition",2),Ke([l({type:Boolean})],D.prototype,"checked",1),Ke([l({type:Boolean,reflect:!0})],D.prototype,"disabled",2),Ke([C("#input")],D.prototype,"_input",2);var Vr=`.uui-text {
44
44
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
45
45
  font-size: 15px;
46
46
  line-height: calc(var(--uui-size-2,6px) * 4);
@@ -146,10 +146,10 @@
146
146
 
147
147
  .uui-text a:link,
148
148
  .uui-text a:active {
149
- color: var(--uui-color-space-cadet,#1b264f);
149
+ color: var(--uui-color-space-cadet);
150
150
  }
151
151
  .uui-text a:hover {
152
- color: var(--uui-color-violet-blue,#3544b1);
152
+ color: var(--uui-color-violet-blue);
153
153
  }
154
154
 
155
155
  .uui-text small {
@@ -204,31 +204,35 @@
204
204
  margin-top: var(--uui-size-layout-1,24px);
205
205
  margin-bottom: var(--uui-size-layout-1,24px);
206
206
  }
207
- `;const Si=Qe(cn);var dn=Object.defineProperty,hn=Object.getOwnPropertyDescriptor,At=(t,e,r,o)=>{for(var i=o>1?void 0:o?hn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&dn(e,r,i),i};let je=class extends d{constructor(){super(...arguments);this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=t=>{this._headerSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeader(){return l`<div id="header" class="uui-text" style="${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}"><h5 id="headline" style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot name="header" @slotchange="${this._headerSlotChanged}"></slot></div>`}render(){return l`${this.renderHeader()}<slot></slot>`}};je.styles=[Si,c`:host{display:block;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);background-color:var(--uui-interface-surface,#fefefe)}#header{display:block;border-bottom:1px solid var(--uui-interface-border,#c4c4c4);padding:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}slot:not([name]){display:block;padding:var(--uui-box-default-padding,var(--uui-size-space-5,18px))}`],At([a({type:String})],je.prototype,"headline",2),At([g()],je.prototype,"_headlineSlotHasContent",2),At([g()],je.prototype,"_headerSlotHasContent",2),je=At([u("uui-box")],je);var pn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,Ii=(t,e,r,o)=>{for(var i=o>1?void 0:o?vn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pn(e,r,i),i};let He=class extends d{constructor(){super(...arguments);this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return l`<a id="link" href="${this.href}"><slot></slot></a><span part="separator"></span>`}renderCurrent(){return l`<span id="last-item"><slot></slot></span>`}render(){return l`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}};He.styles=[c`:host{font-size:var(--uui-type-small-size,12px);color:currentColor}a,a:visited{color:currentColor}a:hover{color:var(--uui-interface-contrast-hover,#1b264f)}a:focus{color:var(--uui-interface-contrast-focus,#060606)}[part=separator]::after{content:'/';speak:never;position:relative;top:1px;margin:-3px 1px 0;color:var(--uui-interface-border,#c4c4c4)}#last-item,#link{padding:0 4px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#link{cursor:pointer}`],Ii([a()],He.prototype,"href",2),Ii([a({type:Boolean,attribute:"last-item"})],He.prototype,"lastItem",2),He=Ii([u("uui-breadcrumb-item")],He);var fn=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,fo=(t,e,r,o)=>{for(var i=o>1?void 0:o?bn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fn(e,r,i),i};let Ut=class extends d{elementIsBreadcrumbItem(t){return t instanceof He}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const t=this.slotNodes[this.slotNodes.length-1];t.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(t)&&(t.lastItem=!0)}}render(){return l`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}};Ut.styles=[c`:host{display:flex}#breadcrumbs-list{display:flex;list-style-type:decimal;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}`],fo([ce({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],Ut.prototype,"slotNodes",2),Ut=fo([u("uui-breadcrumbs")],Ut);const gn=c`@keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}`,mn=Qe("uui-blink 0.9s infinite both"),_n=c`@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}}`;Qe("pulse 0.8s ease-in-out infinite both");const Dt=c`@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)}}`,Lt=Qe("uui-horizontal-shake 600ms ease backwards");/**
207
+ `;const Ye=Pe(Vr);var Gr=Object.defineProperty,qr=Object.getOwnPropertyDescriptor,Xe=(t,e,o,r)=>{for(var i=r>1?void 0:r?qr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Gr(e,o,i),i};s.UUIBoxElement=class extends h{constructor(){super(...arguments);this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=t=>{this._headerSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeader(){return u`<div id="header" class="uui-text" style="${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}"><h5 id="headline" style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot name="header" @slotchange="${this._headerSlotChanged}"></slot></div>`}render(){return u`${this.renderHeader()}<slot></slot>`}},s.UUIBoxElement.styles=[Ye,d`:host{display:block;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);background-color:var(--uui-color-surface,#fff)}#header{display:block;border-bottom:1px solid var(--uui-color-divider-standalone,#e9e9eb);padding:var(--uui-size-space-4,12px) var(--uui-size-space-5,18px)}slot:not([name]){display:block;padding:var(--uui-box-default-padding,var(--uui-size-space-5,18px))}`],Xe([l({type:String})],s.UUIBoxElement.prototype,"headline",2),Xe([g()],s.UUIBoxElement.prototype,"_headlineSlotHasContent",2),Xe([g()],s.UUIBoxElement.prototype,"_headerSlotHasContent",2),s.UUIBoxElement=Xe([c("uui-box")],s.UUIBoxElement);var Wr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,zt=(t,e,o,r)=>{for(var i=r>1?void 0:r?Kr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Wr(e,o,i),i};s.UUIBreadcrumbItemElement=class extends h{constructor(){super(...arguments);this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return u`<a id="link" href="${this.href}"><slot></slot></a><span part="separator"></span>`}renderCurrent(){return u`<span id="last-item"><slot></slot></span>`}render(){return u`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}},s.UUIBreadcrumbItemElement.styles=[d`:host{font-size:var(--uui-type-small-size,12px);color:currentColor}a,a:visited{color:currentColor}a:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}a:focus{color:var(--uui-color-focus,#3879ff)}[part=separator]::after{content:'/';speak:never;position:relative;top:1px;margin:-3px 1px 0;color:var(--uui-color-border,#d8d7d9)}#last-item,#link{padding:0 4px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#link{cursor:pointer}`],zt([l()],s.UUIBreadcrumbItemElement.prototype,"href",2),zt([l({type:Boolean,attribute:"last-item"})],s.UUIBreadcrumbItemElement.prototype,"lastItem",2),s.UUIBreadcrumbItemElement=zt([c("uui-breadcrumb-item")],s.UUIBreadcrumbItemElement);var Yr=Object.defineProperty,Xr=Object.getOwnPropertyDescriptor,Zi=(t,e,o,r)=>{for(var i=r>1?void 0:r?Xr(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Yr(e,o,i),i};s.UUIBreadcrumbsElement=class extends h{elementIsBreadcrumbItem(t){return t instanceof s.UUIBreadcrumbItemElement}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const t=this.slotNodes[this.slotNodes.length-1];t.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(t)&&(t.lastItem=!0)}}render(){return u`<ol id="breadcrumbs-list"><slot @slotchange="${this.handleSlotChange}"></slot></ol>`}},s.UUIBreadcrumbsElement.styles=[d`:host{display:flex}#breadcrumbs-list{display:flex;list-style-type:decimal;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}`],Zi([K({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],s.UUIBreadcrumbsElement.prototype,"slotNodes",2),s.UUIBreadcrumbsElement=Zi([c("uui-breadcrumbs")],s.UUIBreadcrumbsElement);const Zr=d`@keyframes uui-blink{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}`,Qr=Pe("uui-blink 0.9s infinite both"),Jr=d`@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}}`;Pe("pulse 0.8s ease-in-out infinite both");const Ze=d`@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)}}`,Qe=Pe("uui-horizontal-shake 600ms ease backwards");/**
208
208
  * @license
209
209
  * Copyright 2017 Google LLC
210
210
  * SPDX-License-Identifier: BSD-3-Clause
211
- */const Ai={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ui=t=>(...e)=>({_$litDirective$:t,values:e});class Di{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/**
211
+ */const Je={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},et=t=>(...e)=>({_$litDirective$:t,values:e});class tt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,o,r){this._$Ct=e,this._$AM=o,this._$Ci=r}_$AS(e,o){return this.update(e,o)}update(e,o){return this.render(...o)}}/**
212
212
  * @license
213
213
  * Copyright 2018 Google LLC
214
214
  * SPDX-License-Identifier: BSD-3-Clause
215
- */const jt=Ui(class extends Di{constructor(t){var e;if(super(t),t.type!==Ai.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return o==null?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ct===void 0){this.ct=new Set;for(const o in e)this.ct.add(o);return this.render(e)}this.ct.forEach(o=>{e[o]==null&&(this.ct.delete(o),o.includes("-")?r.removeProperty(o):r[o]="")});for(const o in e){const i=e[o];i!=null&&(this.ct.add(o),o.includes("-")?r.setProperty(o,i):r[o]=i)}return W}});class Li extends C{}Li.CLICK="click";var yn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Ht=(t,e,r,o)=>{for(var i=o>1?void 0:o?xn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&yn(e,r,i),i};let Ne=class extends d{constructor(){super(...arguments);this._position=0,this.vertical=!1}_onMouseMove(t){this._position=this.vertical?t.offsetY:t.offsetX}_handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new Li(Li.CLICK))}render(){return l`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}"><div id="plus" style="${jt({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></button>`}};Ne.styles=[gn,c`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-8px 0}:host([vertical]){height:100%;width:20px;margin:0 -8px}#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}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:var(--uui-interface-select,#3544b1);border-top:1px solid var(--uui-interface-surface,#fefefe);border-bottom:1px solid var(--uui-interface-surface,#fefefe);border-radius:2px;pointer-events:none;animation:${mn}}: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%)}: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-interface-select,#3544b1);color:var(--uui-interface-select,#3544b1);background-color:var(--uui-interface-surface,#fefefe);box-shadow:0 0 0 2px var(--uui-interface-surface,#fefefe);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}:host(:not([vertical])) #plus{margin-left:-21px}:host([vertical]) #plus{left:-4px;margin-top:-21px}#button-wrapper:focus #plus{border:2px solid #6ab4f0}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],Ht([g()],Ne.prototype,"_position",2),Ht([a({type:String})],Ne.prototype,"label",2),Ht([a({type:Boolean,reflect:!0})],Ne.prototype,"vertical",2),Ne=Ht([u("uui-button-inline-create")],Ne);class wn{constructor(e,r){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(r)}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 y=(t,e,r=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",r,t)},ji="",Hi=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,$n=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,En=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,Cn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,bo=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,Pn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,kn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,On=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,go=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;var zn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,he=(t,e,r,o)=>{for(var i=o>1?void 0:o?Sn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&zn(e,r,i),i};let X=class extends K(nt("",d)){constructor(){super();this.type="button",this.disabled=!1,this.look=ji,this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(t){var e;if(this.disabled){t.preventDefault(),t.stopImmediatePropagation();return}if((e=this._internals)!=null&&e.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}}updated(t){super.updated(t),t.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let t=l``;switch(this.state){case"waiting":y(this,"uui-loader-circle"),t=l`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":y(this,"uui-icon"),t=l`<uui-icon name="check" .fallback="${Hi.strings[0]}"></uui-icon>`;break;case"failed":y(this,"uui-icon"),t=l`<uui-icon name="wrong" .fallback="${go.strings[0]}"></uui-icon>`;break;default:return""}return l`<div id="state">${t}</div>`}render(){return l`<button id="button" ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}};X.styles=[Dt,c`: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;height:var(--uui-button-height,auto);max-height:100%;text-align:center;font-weight:var(--uui-button-font-weight,var(--uui-interface-font-weight,400))}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}.label{display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards}button{height:100%;width:100%;padding:calc(calc(8 / 15 * 1em) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(calc(8 / 15 * 1em) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));text-align:inherit;vertical-align:middle;box-shadow:none;border-width:var(--uui-button-border-width,1px);border-style:solid;border-color:var(--uui-button-border-color,var(--uui-interface-surface,#fefefe));border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;font-size:var(--uui-button-font-size,inherit);font-family:inherit;font-weight:inherit;background-color:var(--uui-button-background-color,var(--uui-interface-surface,#fefefe));color:var(--uui-button-contrast,var(--uui-interface-contrast,#060606));transition:background-color 80ms,border-color 80ms,color 80ms}button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-interface-surface-hover,#fafafa));border-color:var(--uui-button-border-color-hover,var(--uui-interface-surface-hover,#fafafa));color:var(--uui-button-contrast-hover,var(--uui-interface-contrast-hover,#1b264f))}button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border-color:var(--uui-button-border-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));color:var(--uui-button-contrast-disabled,var(--uui-interface-contrast-disabled,#73716e));cursor:default}button[disabled]:active{animation:${Lt}}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}:host([look=primary]){font-weight:var(--uui-look-primary-font-weight,700)}:host([look=primary]) button{background-color:var(--uui-button-background-color,var(--uui-look-primary-surface,#1b264f));color:var(--uui-look-primary-contrast,#fefefe);border-style:var(--uui-button-border-style,var(--uui-look-primary-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-primary-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-primary-border,#1b264f))}:host([look=primary]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-primary-surface-hover,#3544b1));color:var(--uui-look-primary-contrast-hover,#fefefe);border-color:var(--uui-button-border-color-hover,var(--uui-look-primary-border-hover,#3544b1))}:host([look=primary]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-primary-surface-disabled,#737882));color:var(--uui-look-primary-contrast-disabled,#e4e4e4);border-color:var(--uui-button-border-color-disabled,var(--uui-look-primary-border-disabled,#737882))}:host([look=secondary]){font-weight:var(--uui-look-secondary-font-weight,500)}:host([look=secondary]) button{background-color:var(--uui-button-background-color,var(--uui-look-secondary-surface,#e2dad4));color:var(--uui-look-secondary-contrast,#1b264f);border-style:var(--uui-button-border-style,var(--uui-look-secondary-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-secondary-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-secondary-border,#e2dad4))}:host([look=secondary]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-secondary-surface-hover,#f3efed));color:var(--uui-look-secondary-contrast-hover,#3544b1);border-color:var(--uui-button-border-color-hover,var(--uui-look-secondary-border-hover,#f3efed))}:host([look=secondary]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-secondary-surface-disabled,#cfcfcf));color:var(--uui-look-secondary-contrast-disabled,#6a759a);border-color:var(--uui-button-border-color-disabled,var(--uui-look-secondary-border-disabled,#cfcfcf))}:host([look=outline]) button{font-weight:var(--uui-look-outline-font-weight,700)}:host([look=outline]) button{background-color:var(--uui-button-background-color,var(--uui-look-outline-surface,transparent));color:var(--uui-look-outline-contrast,#1b264f);border-style:var(--uui-button-border-style,var(--uui-look-outline-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-outline-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-outline-border,#1b264f))}:host([look=outline]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-outline-surface-hover,transparent));color:var(--uui-look-outline-contrast-hover,#3544b1);border-color:var(--uui-button-border-color-hover,var(--uui-look-outline-border-hover,#3544b1))}:host([look=outline]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-outline-surface-disabled,transparent));color:var(--uui-look-outline-contrast-disabled,#6a759a);border-color:var(--uui-button-border-color-disabled,var(--uui-look-outline-border-disabled,#6a759a))}:host([look=placeholder]){font-weight:var(--uui-look-placeholder-font-weight,400)}:host([look=placeholder]) button{background-color:var(--uui-button-background-color,var(--uui-look-placeholder-surface,transparent));color:var(--uui-look-placeholder-contrast,#1b264f);border-style:var(--uui-button-border-style,var(--uui-look-placeholder-border-style,dashed));border-radius:var(--uui-button-border-radius,var(--uui-look-placeholder-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-placeholder-border,#1b264f))}:host([look=placeholder]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-placeholder-surface-hover,transparent));color:var(--uui-look-placeholder-contrast-hover,#3544b1);border-color:var(--uui-button-border-color-hover,var(--uui-look-placeholder-border-hover,#3544b1))}:host([look=placeholder]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-placeholder-surface-disabled,transparent));color:var(--uui-look-placeholder-contrast-disabled,#6a759a);border-color:var(--uui-button-border-color-disabled,var(--uui-look-placeholder-border-disabled,#6a759a))}:host([look=positive]){font-weight:var(--uui-look-positive-font-weight,700)}:host([look=positive]) button{background-color:var(--uui-button-background-color,var(--uui-look-positive-surface,#25aa60));color:var(--uui-look-positive-contrast,#fefefe);border-style:var(--uui-button-border-style,var(--uui-look-positive-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-positive-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-positive-border,#25aa60))}:host([look=positive]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-positive-surface-hover,#2bc570));color:var(--uui-look-positive-contrast-hover,#fefefe);border-color:var(--uui-button-border-color-hover,var(--uui-look-positive-border-hover,#2bc570))}:host([look=positive]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-positive-surface-disabled,#597566));color:var(--uui-look-positive-contrast-disabled,#fefefe);border-color:var(--uui-button-border-color-disabled,var(--uui-look-positive-border-disabled,#597566))}:host([look=warning]){font-weight:var(--uui-look-warning-font-weight,700)}:host([look=warning]) button{background-color:var(--uui-button-background-color,var(--uui-look-warning-surface,#fad634));color:var(--uui-look-warning-contrast,#060606);border-style:var(--uui-button-border-style,var(--uui-look-warning-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-warning-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-warning-border,#fad634))}:host([look=warning]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-warning-surface-hover,#fbe065));color:var(--uui-look-warning-contrast-hover,#060606);border-color:var(--uui-button-border-color-hover,var(--uui-look-warning-border-hover,#fbe065))}:host([look=warning]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-warning-surface-disabled,#a6a085));color:var(--uui-look-warning-contrast-disabled,#060606);border-color:var(--uui-button-border-color-disabled,var(--uui-look-warning-border-disabled,#a6a085))}:host([look=danger]){font-weight:var(--uui-look-danger-font-weight,700)}:host([look=danger]) button{background-color:var(--uui-button-background-color,var(--uui-look-danger-surface,#d42054));color:var(--uui-look-danger-contrast,#fefefe);border-style:var(--uui-button-border-style,var(--uui-look-danger-border-style,solid));border-radius:var(--uui-button-border-radius,var(--uui-look-danger-border-radius,var(--uui-border-radius,3px)));border-color:var(--uui-button-border-color,var(--uui-look-danger-border,#d42054))}:host([look=danger]) button:hover{background-color:var(--uui-button-background-color-hover,var(--uui-look-danger-surface-hover,#e23c6b));color:var(--uui-look-danger-contrast-hover,#fefefe);border-color:var(--uui-button-border-color-hover,var(--uui-look-danger-border-hover,#e23c6b))}:host([look=danger]) button[disabled]{background-color:var(--uui-button-background-color-disabled,var(--uui-look-danger-surface-disabled,#856b72));color:var(--uui-look-danger-contrast-disabled,#fefefe);border-color:var(--uui-button-border-color-disabled,var(--uui-look-danger-border-disabled,#856b72))}`],he([a({type:String,reflect:!0})],X.prototype,"type",2),he([a({type:Boolean,reflect:!0})],X.prototype,"disabled",2),he([a({reflect:!0})],X.prototype,"look",2),he([a({type:Boolean,reflect:!0})],X.prototype,"compact",2),he([a({type:String,reflect:!0})],X.prototype,"state",2),he([O("#button")],X.prototype,"_button",2),X=he([u("uui-button")],X);class lt extends C{}lt.OPEN="open";var In=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Ni=(t,e,r,o)=>{for(var i=o>1?void 0:o?An(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&In(e,r,i),i};let N=class extends St(at(d)){constructor(){super(...arguments);this.disabled=!1,this.error=!1}handleOpenClick(t){this.disabled||(t.stopPropagation(),this.dispatchEvent(new lt(lt.OPEN)))}handleOpenKeydown(t){this.disabled||t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new lt(lt.OPEN)))}};N.styles=[c`: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-interface-surface,#fefefe);--uui-card-border-width:3px;transition:box-shadow .1s ease-out}:host(*) *{outline-color:var(--uui-interface-outline,#3879ff);outline-offset:4px}:host(:focus){outline-color:var(--uui-interface-outline,#3879ff);outline-width:var(--uui-card-border-width);outline-style:solid;outline-offset:var(--uui-card-border-width)}:host([error]){border:var(--uui-card-border-width) solid var(--uui-look-danger-border,#d42054)}:host([selectable]){cursor:pointer}:host([disabled]){background:var(--uui-interface-surface-disabled,#e4e4e4);color:var(--uui-interface-contrast-disabled,#73716e)}:host([selectable])::after{content:'';position:absolute;pointer-events:none;inset:calc(var(--uui-card-border-width) * -1);width:calc(100% + var(--uui-card-border-width) * 2);height:calc(100% + var(--uui-card-border-width) * 2);box-sizing:border-box;border:var(--uui-card-border-width) solid var(--uui-interface-select,#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([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([error])::after{inset:calc(var(--uui-card-border-width) * -2);width:calc(100% + calc(var(--uui-card-border-width) * 4));height:calc(100% + calc(var(--uui-card-border-width) * 4))}:host([select-only]) *,:host([select-only]) ::slotted(*){pointer-events:none}`],Ni([a({type:Boolean,reflect:!0,attribute:"disabled"})],N.prototype,"disabled",2),Ni([a({type:Boolean,reflect:!0})],N.prototype,"error",2),N=Ni([u("uui-card")],N);var Un=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Ti=(t,e,r,o)=>{for(var i=o>1?void 0:o?Dn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Un(e,r,i),i};let ut=class extends N{constructor(){super(...arguments);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(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return y(this,"uui-icon"),l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`<div id="open-part" tabindex="${this.disabled?$: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><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}};ut.styles=[...N.styles,c`: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-interface-contrast-hover,#1b264f)}#name{margin-top:4px}`],Ti([a({type:String})],ut.prototype,"name",2),Ti([g()],ut.prototype,"_iconSlotHasContent",2),ut=Ti([u("uui-card-content-node")],ut);var Ln=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,Nt=(t,e,r,o)=>{for(var i=o>1?void 0:o?jn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ln(e,r,i),i};let Te=class extends N{constructor(){super(...arguments);this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),y(this,"uui-symbol-folder"),y(this,"uui-symbol-file")}queryPreviews(t){this.hasPreview=t.path[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!1?this.fileExt===""?l`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:l`<uui-symbol-file id="file-symbol" type="${this.fileExt}"></uui-symbol-file>`:""}render(){return l`${this.renderMedia()}<slot @slotchange="${this.queryPreviews}"></slot><button id="open-part" tabindex="${this.disabled?$:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button><div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}};Te.styles=[...N.styles,c`#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-white,#fefefe);color:var(--uui-color-black,#060606);border:none;cursor:pointer;border-top:1px solid rgba(0,0,0,.04);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)}:host([disabled]) #open-part{pointer-events:none}#open-part:hover{text-decoration:underline;color:var(--uui-interface-contrast-hover,#1b264f)}: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}`],Nt([a({type:String})],Te.prototype,"name",2),Nt([a({type:String,attribute:"file-ext"})],Te.prototype,"fileExt",2),Nt([g()],Te.prototype,"hasPreview",2),Te=Nt([u("uui-card-media")],Te);var Hn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,mo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Nn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Hn(e,r,i),i};let Tt=class extends N{constructor(){super(...arguments);this.name=""}connectedCallback(){super.connectedCallback(),y(this,"uui-avatar")}render(){return l`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar><div id="open-part" tabindex="${this.disabled?$:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}};Tt.styles=[...N.styles,c`: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-interface-contrast-hover,#1b264f)}`],mo([a({type:String})],Tt.prototype,"name",2),Tt=mo([u("uui-card-user")],Tt);var Tn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,_o=(t,e,r,o)=>{for(var i=o>1?void 0:o?Mn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Tn(e,r,i),i};let Mt=class extends d{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 l`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}};Mt.styles=[c`: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)}`],_o([a({type:Boolean,reflect:!0})],Mt.prototype,"open",2),Mt=_o([u("uui-caret")],Mt);var Bn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Fn=(t,e,r,o)=>{for(var i=o>1?void 0:o?Vn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Bn(e,r,i),i};let Bt=class extends Y{renderCheckbox(){return l`<div id="ticker"><div id="icon-check">${Hi}</div></div>`}};Bt.formAssociated=!0,Bt.styles=[...Y.styles,Dt,c`:host{--uui-checkbox-size:18px}#ticker{position:relative;grid-area:'input';display:flex;align-items:center;justify-content:center;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-interface-chosen-contrast,#fefefe));background-color:var(--uui-toggle-background-color,var(--uui-interface-surface,#fefefe));border:1px solid var(--uui-checkbox-border-color,var(--uui-interface-border,#c4c4c4));font-size:calc(var(--uui-checkbox-size) * .7)}label:hover input:not([disabled])+#ticker{border-color:var(--uui-checkbox-border-color-hover,var(--uui-interface-border-hover,#b3b3b3));background-color:var(--uui-checkbox-background-color-hover,var(--uui-interface-surface-hover,#fafafa))}label:focus #ticker{border-color:var(--uui-checkbox-border-color-focus,var(--uui-interface-border-focus,#b3b3b3));background-color:var(--uui-checkbox-background-color-focus,var(--uui-interface-surface-alt-focus,#d8d7d9))}input:checked+#ticker{border-color:var(--uui-interface-chosen,#1b264f)}label:hover input:checked:not([disabled])+#ticker{border-color:var(--uui-interface-chosen-hover,#26356e)}label:focus input:checked+#ticker{border-color:var(--uui-interface-chosen-focus,#1b264f)}#icon-check{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms,opacity 120ms;fill:var(--uui-interface-chosen-contrast,#fefefe);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-interface-chosen,#1b264f);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-interface-chosen-hover,#26356e)}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-interface-chosen-focus,#1b264f)}input:focus+#ticker{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}:host(:not([disabled])) 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-look-danger-border,#d42054)}:host([disabled]) #ticker{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) input:checked+#ticker{background-color:var(--uui-interface-chosen-disabled,#6a759a)}:host([disabled]) #ticker:after{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) #ticker #icon-check{fill:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) label:active #ticker{animation:${Lt}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-interface-chosen-contrast-disabled,#e4e4e4)}`],Bt=Fn([u("uui-checkbox")],Bt);var Rn=Object.defineProperty,yo=Object.getOwnPropertySymbols,qn=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable,xo=(t,e,r)=>e in t?Rn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,wo=(t,e)=>{for(var r in e||(e={}))qn.call(e,r)&&xo(t,r,e[r]);if(yo)for(var r of yo(e))Gn.call(e,r)&&xo(t,r,e[r]);return t};class Me extends C{constructor(e,r={}){super(e,wo(wo({},{bubbles:!0}),r))}}Me.CHANGE="change";var Wn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,pe=(t,e,r,o)=>{for(var i=o>1?void 0:o?Kn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Wn(e,r,i),i};let Z=class extends d{constructor(){super(...arguments);this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let t=0;t<this._activeOptions.length;t++)t===0?this._activeElement=this._activeOptions[t]:this._activeOptions[t].active=!1;this._updateSelection()},this._onSelected=t=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new Me(Me.CHANGE))},this._onUnselected=t=>{const e=t.composedPath()[0];this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this.value="",this.displayValue="",this.dispatchEvent(new Me(Me.CHANGE)))},this._moveIndex=t=>{const e=Math.min(Math.max(this._getActiveIndex()+t,0),this._options.length-1);this._goToIndex(e)},this._onKeyDown=t=>{var e;if(!(this._options.length<=0))switch(t.key){case"ArrowUp":t.preventDefault(),t.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":t.preventDefault(),t.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{t.preventDefault(),this._goToIndex(0);break}case"Enter":{t.preventDefault(),(e=this._activeElement)==null||e.click();break}case"End":{t.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(t){if(this._value===t)return;const e=this._value;this._value=t,this._updateSelection(),this.requestUpdate("value",e)}get for(){return this._for}set for(t){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=t,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Le.SELECTED,this._onSelected),this.addEventListener(Le.UNSELECTED,this._onUnselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Le.SELECTED,this._onSelected),this.removeEventListener(Le.UNSELECTED,this._onUnselected)}_updateSelection(){this.displayValue="";for(const t of this._options)t.value===this._value?(this.displayValue=t.displayValue||"",t.selected=!0):t.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(t){t=Math.min(Math.max(t,0),this._options.length-1),this._activeElement=this._options[t],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return l`<slot @slotchange="${this._onSlotChange}"></slot>`}};Z.styles=[c`:host{display:flex;flex-direction:column;box-sizing:border-box}`],pe([a({type:String})],Z.prototype,"value",1),pe([a({type:String})],Z.prototype,"displayValue",2),pe([a({attribute:!1})],Z.prototype,"for",1),pe([ce({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],Z.prototype,"_options",2),pe([ce({flatten:!0,selector:"uui-combobox-list-option[active]"})],Z.prototype,"_activeOptions",2),pe([g()],Z.prototype,"_value",2),Z=pe([u("uui-combobox-list")],Z);var Yn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Be=(t,e,r,o)=>{for(var i=o>1?void 0:o?Xn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Yn(e,r,i),i};let ie=class extends at(zt(d)){constructor(){super();this._disabled=!1,this._displayValue="",this.selectable=!0,this.unselectable=!1}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get displayValue(){var t;return this._displayValue?this._displayValue:((t=this.textContent)==null?void 0:t.trim())||""}set displayValue(t){const e=this._displayValue;this._displayValue=t,this.requestUpdate("displayValue",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.selectable=!this._disabled,this.requestUpdate("disabled",e)}render(){return l`<slot></slot>`}};ie.styles=[c`:host{position:relative;cursor:pointer;margin:0 6px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px}: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:#fff solid 2px;outline-offset:-4px}:host::before{display:block;content:'';opacity:0;position:absolute;inset:0;background-color:var(--uui-interface-select,#3544b1)}:host(:hover)::before{opacity:.15;border-radius:var(--uui-border-radius,3px)}:host([disabled]){cursor:auto;color:var(--uui-interface-surface-contrast-disabled);background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]:hover){background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([active]){outline-color:var(--uui-interface-outline,#3879ff)}:host([selected]){color:var(--uui-interface-select-contrast,#fefefe);background-color:var(--uui-interface-select,#3544b1)}:host([selected]:hover){color:var(--uui-interface-select-contrast-hover,#fefefe);background-color:var(--uui-interface-select-hover,#4656c8)}:host([selected][disabled]){color:var(--uui-interface-select-contrast-disabled,#e4e4e4);background-color:var(--uui-interface-select-disabled,#575757)}`],Be([g()],ie.prototype,"_disabled",2),Be([g()],ie.prototype,"_displayValue",2),Be([a({type:String})],ie.prototype,"value",1),Be([a({type:String,attribute:"display-value"})],ie.prototype,"displayValue",1),Be([a({type:Boolean,reflect:!0})],ie.prototype,"disabled",1),ie=Be([u("uui-combobox-list-option")],ie);class M extends C{}M.SEARCH="search",M.CHANGE="change";var Zn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,ve=(t,e,r,o)=>{for(var i=o>1?void 0:o?Qn(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Zn(e,r,i),i};let Q=class extends K(d){constructor(){super(...arguments);this.open=!1,this._displayValue="",this._search="",this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{document.activeElement!==this&&this._close()}),this._onInput=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.search=t.target.value,this.dispatchEvent(new M(M.SEARCH)),this._open()},this._onChange=t=>{var e,r;t.stopImmediatePropagation(),this.value=((e=this._comboboxList)==null?void 0:e.value)||"",this._displayValue=((r=this._comboboxList)==null?void 0:r.displayValue)||"",this.search=this.value?this.search:"",this._close(),this.dispatchEvent(new M(M.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._close=()=>{var t;!this.open||(this.open=!1,this._displayValue=((t=this._comboboxList)==null?void 0:t.displayValue)||"",this._input.value=this._displayValue,this.search="",this.dispatchEvent(new M(M.SEARCH)))},this._onKeyDown=t=>{this.open===!1&&t.key==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation()),(t.key==="ArrowUp"||t.key==="ArrowDown")&&this._open(),(t.key==="Escape"||t.key==="Enter")&&this._close()},this._clear=t=>{t.key&&t.key!=="Enter"||(t.preventDefault(),t.stopImmediatePropagation(),this._displayValue="",this._input.value=this._displayValue,this.search="",this.value="",this._comboboxList.value=this.value,this.dispatchEvent(new M(M.CHANGE)))},this._renderInput=()=>l`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" .placeholder="${this._displayValue}" autocomplete="off" @click="${this._open}" @input="${this._onInput}" @keydown="${this._onKeyDown}"><slot name="input-prepend" slot="prepend"></slot>${this._renderClearButton()} ${this._renderCaret()}<slot name="input-append" slot="append"></slot></uui-input>`,this._renderCaret=()=>l`<svg id="caret" slot="append" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`,this._renderClearButton=()=>l`<uui-button id="clear-button" class="${this.value||this.search?"--show":""}" @click="${this._clear}" @keydown="${this._clear}" label="clear" slot="append" compact="compact" style="height:100%;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0"><uui-icon name="remove" .fallback="${bo.strings[0]}"></uui-icon></uui-button>`,this._renderDropdown=()=>l`<div id="dropdown" slot="popover"><uui-scroll-container id="scroll-container"><slot></slot></uui-scroll-container></div>`}get value(){return this._value}set value(t){super.value=t,typeof t=="string"&&this._updateValue(t)}get search(){return this._search}set search(t){if(this.search===t)return;const e=this._search;this._search=t,this.requestUpdate("search",e)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",this._onBlur),this.addEventListener("mousedown",this._onMouseDown),y(this,"uui-icon"),y(this,"uui-input"),y(this,"uui-button"),y(this,"uui-combobox-list"),y(this,"uui-scroll-container")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this._onBlur),this.removeEventListener("mousedown",this._onMouseDown)}async firstUpdated(){var t;const e=(t=this._comboboxListElements)==null?void 0:t[0];e&&(this._comboboxList=e,this._comboboxList.for=this,this._comboboxList.addEventListener(Me.CHANGE,this._onChange),typeof this.value=="string"&&(await this.updateComplete,this._updateValue(this.value)))}_updateValue(t){var e;this._comboboxList&&(this._comboboxList.value=t,this._displayValue=((e=this._comboboxList)==null?void 0:e.displayValue)||"")}getFormElement(){return this._input}render(){return l`<uui-popover .open="${this.open}" .margin="${-1}" @close="${()=>this._close()}">${this._renderInput()} ${this._renderDropdown()}</uui-popover>`}};Q.styles=[c`:host{position:relative;display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#scroll-container{max-height:var(--uui-combobox-popover-max-height,500px);overflow-y:auto}#dropdown{overflow:hidden;z-index:-1;background-color:var(--uui-combobox-popover-background-color,#fff);border:1px solid var(--uui-interface-border,#c4c4c4);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))}#clear-button{pointer-events:none;opacity:0;transition:opacity 120ms}#clear-button.--show{pointer-events:auto;opacity:1}#caret{margin-right:var(--uui-size-3,9px);display:flex;width:1.15em;flex-shrink:0;margin-top:-1px}`],ve([a({type:String})],Q.prototype,"search",1),ve([a({type:Boolean})],Q.prototype,"open",2),ve([O("#combobox-input")],Q.prototype,"_input",2),ve([ce({flatten:!0,selector:"uui-combobox-list"})],Q.prototype,"_comboboxListElements",2),ve([g()],Q.prototype,"_displayValue",2),ve([g()],Q.prototype,"_search",2),Q=ve([u("uui-combobox")],Q);var Jn=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,Mi=(t,e,r,o)=>{for(var i=o>1?void 0:o?ea(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Jn(e,r,i),i};let ct=class extends d{constructor(){super(...arguments);this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return l`<h3 style="${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h3>`}renderContent(){return l`<slot></slot>`}renderActions(){return l`<slot id="actions" name="actions"></slot>`}render(){return l`${this.renderHeadline()} ${this.renderContent()} ${this.renderActions()}`}};ct.styles=[c`:host{display:block;padding:var(--uui-size-10,30px) var(--uui-size-14,42px)}#actions{margin-top:var(--uui-size-8,24px);display:flex;justify-content:end;gap:var(--uui-size-4,12px)}`],Mi([a({type:String})],ct.prototype,"headline",2),Mi([g()],ct.prototype,"_headlineSlotHasContent",2),ct=Mi([u("uui-dialog-layout")],ct);var ta=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,ra=(t,e,r,o)=>{for(var i=o>1?void 0:o?ia(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ta(e,r,i),i};let Bi=class extends d{render(){return l`<slot></slot>`}};Bi.styles=[c`:host{position:relative;display:block;max-width:400px;background-color:var(--uui-dialog-background-color,var(--uui-interface-surface,#fefefe));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))}`],Bi=ra([u("uui-dialog")],Bi);class dt extends C{}dt.FILE_CHANGE="file-change";var oa=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,ht=(t,e,r,o)=>{for(var i=o>1?void 0:o?sa(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&oa(e,r,i),i};let fe=class extends nt("",d){constructor(){super();this.accept="",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)}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),y(this,"uui-symbol-file-dropzone")}_checkIsItDirectory(t){return t.type?!1:t.webkitGetAsEntry().isDirectory}async _getAllFileEntries(t){const e=[],r=[];for(let o=0;o<t.length;o++)r.push(t[o].webkitGetAsEntry());if(this.accept){const o=[],i=[];for(this.accept.split(",").forEach(s=>{s.includes("*")?i.push(s.split("*")[0].trim().toLowerCase()):o.push(s.trim().toLowerCase())});r.length>0;){const s=r.shift();s.isFile&&await this._isAccepted(o,i,s)?e.push(s):s.isDirectory&&(e.push(s),r.push(...await this._readAllDirectoryEntries(s.createReader())))}}else for(;r.length>0;){const o=r.shift();o.isFile?e.push(o):o.isDirectory&&(e.push(o),r.push(...await this._readAllDirectoryEntries(o.createReader())))}return e}async _readAllDirectoryEntries(t){const e=[];let r=await this._readEntriesPromise(t);for(;r.length>0;)e.push(...r),r=await this._readEntriesPromise(t);return e}async _readEntriesPromise(t){try{return await new Promise((e,r)=>{t.readEntries(e,r)})}catch(e){console.log(e)}}async _getFile(t){return await new Promise((e,r)=>t.file(e,r))}async _isAccepted(t,e,r){const o=await this._getFile(r),i=o.type.toLowerCase(),s="."+o.name.split(".")[1].toLowerCase();return!!(t.includes(s)||t.includes(i)||e.some(n=>i.startsWith(n)))}async _onDrop(t){var e;t.preventDefault(),this._dropzone.classList.remove("hover");const r=(e=t.dataTransfer)==null?void 0:e.items;if(r){let o=await this._getAllFileEntries(r);this.multiple===!1&&o.length>0&&(o=[o[0]]),this.dispatchEvent(new dt(dt.FILE_CHANGE,{detail:{files:o}}))}}_onDragOver(t){t.preventDefault()}_onDragEnter(t){this._dropzone.classList.add("hover"),t.preventDefault()}_onDragLeave(t){this._dropzone.classList.remove("hover"),t.preventDefault()}_onFileInputChange(){const t=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new dt(dt.FILE_CHANGE,{detail:{files:t}}))}render(){return l`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${t=>t.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"></div>`}};fe.styles=[c`#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-primary,#3544b1)}#dropzone.hover::before{content:'';position:absolute;inset:0;opacity:.2;border-color:var(--uui-color-primary,#3544b1);background-color:var(--uui-color-primary,#3544b1)}#symbol{color:var(--uui-color-primary,#3544b1);max-width:100%;max-height:100%}#input{position:absolute;width:0;height:0;opacity:0;display:none}`],ht([O("#input")],fe.prototype,"_input",2),ht([O("#dropzone")],fe.prototype,"_dropzone",2),ht([a({type:String})],fe.prototype,"accept",2),ht([a({type:Boolean})],fe.prototype,"multiple",2),fe=ht([u("uui-file-dropzone")],fe);class na{static humanFileSize(e,r=!1,o=1){const i=r?1e3:1024;if(Math.abs(e)<i)return e+" B";const s=r?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let n=-1;const p=10**o;do e/=i,++n;while(Math.round(Math.abs(e)*p)/p>=i&&n<s.length-1);return e.toFixed(o)+" "+s[n]}}var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,B=(t,e,r,o)=>{for(var i=o>1?void 0:o?la(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&aa(e,r,i),i};let L=class extends d{constructor(){super(...arguments);this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(t){const e=this._file;t instanceof File&&(this._name=t.name.split(".")[0],this._extension=t.name.split(".")[1],this._isDirectory=!1,this._size=t.size,this._isFileAnImage(t)&&(this._isImage=!0,this._getThumbnail(t).then(r=>{this._src=r})),this.requestUpdate("file",e))}connectedCallback(){super.connectedCallback(),y(this,"uui-symbol-file-thumbnail"),y(this,"uui-symbol-folder"),y(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?l`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?l`<uui-symbol-file-thumbnail .src="${this._src}" .alt="${this._name}" id="file-symbol"></uui-symbol-file-thumbnail>`:l`<uui-symbol-file id="file-symbol" .type="${this._extension}"></uui-symbol-file>`}_renderLongName(){const e=this._name.substring(0,this._name.length-6),r=this._name.substring(this._name.length-6,this._name.length);return l`<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">${r}</span></span>`}_isFileAnImage(t){return t?t.type.split("/")[0]==="image":!1}async _getThumbnail(t){return await new Promise(e=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>{e(r.result)}})}render(){return l`<slot id="actions" name="actions"></slot>${this._fileTypeTemplate()}<div id="file-info">${this._renderLongName()} <span id="file-size">${this._size&&!this._isDirectory?l`${na.humanFileSize(this._size,!0)}`:""}</span></div>`}};L.styles=[c`:host{position:relative;display:grid;grid-template-rows:100px 50px;width:150px;height:150px;box-sizing:border-box;aspect-ratio:1}: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}`],B([g()],L.prototype,"_name",2),B([g()],L.prototype,"_url",2),B([g()],L.prototype,"_extension",2),B([g()],L.prototype,"_src",2),B([g()],L.prototype,"_size",2),B([g()],L.prototype,"_isDirectory",2),B([g()],L.prototype,"_file",2),B([g()],L.prototype,"_isImage",2),B([a({attribute:!1})],L.prototype,"file",1),L=B([u("uui-file-preview")],L);var ua=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,Vt=(t,e,r,o)=>{for(var i=o>1?void 0:o?ca(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ua(e,r,i),i};let Ve=class extends d{constructor(){super(...arguments);this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=t=>{this._labelSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=t=>{this._descriptionSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),y(this,"uui-form-validation-message")}render(){return l`<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>`}};Ve.styles=[c`: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-interface-contrast-disabled,#73716e);font-size:var(--uui-type-small-size,12px)}#label+#description{margin-top:-8px;min-height:8px}`],Vt([a({type:String})],Ve.prototype,"description",2),Vt([g()],Ve.prototype,"_labelSlotHasContent",2),Vt([g()],Ve.prototype,"_descriptionSlotHasContent",2),Ve=Vt([u("uui-form-layout-item")],Ve);/**
215
+ */const it=et(class extends tt{constructor(t){var e;if(super(t),t.type!==Je.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,o)=>{const r=t[o];return r==null?e:e+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(t,[e]){const{style:o}=t.element;if(this.ct===void 0){this.ct=new Set;for(const r in e)this.ct.add(r);return this.render(e)}this.ct.forEach(r=>{e[r]==null&&(this.ct.delete(r),r.includes("-")?o.removeProperty(r):o[r]="")});for(const r in e){const i=e[r];i!=null&&(this.ct.add(r),r.includes("-")?o.setProperty(r,i):o[r]=i)}return H}});class ot extends x{}ot.CLICK="click";var es=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,rt=(t,e,o,r)=>{for(var i=r>1?void 0:r?ts(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&es(e,o,i),i};s.UUIButtonInlineCreateElement=class extends h{constructor(){super(...arguments);this._position=0,this.vertical=!1}_onMouseMove(t){this._position=this.vertical?t.offsetY:t.offsetX}_handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new ot(ot.CLICK))}render(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}"><div id="plus" style="${it({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></button>`}},s.UUIButtonInlineCreateElement.styles=[Zr,d`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-8px 0}:host([vertical]){height:100%;width:20px;margin:0 -8px}#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}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:var(--uui-color-selected,#3544b1);border-top:1px solid var(--uui-color-surface,#fff);border-bottom:1px solid var(--uui-color-surface,#fff);border-radius:2px;pointer-events:none;animation:${Qr}}: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%)}: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-selected,#3544b1);color:var(--uui-color-selected,#3544b1);background-color:var(--uui-color-surface,#fff);box-shadow:0 0 0 2px 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}:host(:not([vertical])) #plus{margin-left:-21px}:host([vertical]) #plus{left:-4px;margin-top:-21px}#button-wrapper:focus #plus{border:2px solid #6ab4f0}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],rt([g()],s.UUIButtonInlineCreateElement.prototype,"_position",2),rt([l({type:String})],s.UUIButtonInlineCreateElement.prototype,"label",2),rt([l({type:Boolean,reflect:!0})],s.UUIButtonInlineCreateElement.prototype,"vertical",2),s.UUIButtonInlineCreateElement=rt([c("uui-button-inline-create")],s.UUIButtonInlineCreateElement);class is{constructor(e,o){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(o)}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 U=(t,e,o=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",o,t)},St=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,os=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,rs=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,ss=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Qi=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,ns=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,as=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,ls=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Ji=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;var us=Object.defineProperty,cs=Object.getOwnPropertyDescriptor,F=(t,e,o,r)=>{for(var i=r>1?void 0:r?cs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&us(e,o,i),i};s.UUIButtonElement=class extends j(De("",h)){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}_onHostClick(t){var e;if(this.disabled){t.preventDefault(),t.stopImmediatePropagation();return}if((e=this._internals)!=null&&e.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}}updated(t){super.updated(t),t.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let t=u``;switch(this.state){case"waiting":U(this,"uui-loader-circle"),t=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":U(this,"uui-icon"),t=u`<uui-icon name="check" .fallback="${St.strings[0]}"></uui-icon>`;break;case"failed":U(this,"uui-icon"),t=u`<uui-icon name="wrong" .fallback="${Ji.strings[0]}"></uui-icon>`;break;default:return""}return u`<div id="state">${t}</div>`}render(){return u`<button id="button" ?disabled="${this.disabled}" aria-label="${this.label}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},s.UUIButtonElement.styles=[Ze,d`: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;height:var(--uui-button-height,auto);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}.label{display:block;transition:opacity 120ms}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards}button{height:100%;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;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(calc(8 / 15 * 1em) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(calc(8 / 15 * 1em) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));vertical-align:middle;box-shadow:none}button[disabled]:active{animation:${Qe}}#icon-check,#icon-wrong{fill:currentColor;display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}:host(:not([color]):not([look=primary])) button,:host([color='']:not([look=primary])) button,:host([color=default]:not([look=primary])) button{--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,#25aa60);--color-standalone:var(--uui-color-positive-standalone,rgb(38, 156, 91));--color-emphasis:var(--uui-color-positive-emphasis,rgb(43, 197, 112));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) button{--color:var(--uui-color-warning,#fad634);--color-standalone:var(--uui-color-warning-standalone,rgb(224, 193, 51));--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][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,--color-standalone);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-emphasis));border-color:var(--uui-button-border-color-hover,var(--color-emphasis))}: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,--color-standalone)}: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))}`],F([l({type:String,reflect:!0})],s.UUIButtonElement.prototype,"type",2),F([l({type:Boolean,reflect:!0})],s.UUIButtonElement.prototype,"disabled",2),F([l({reflect:!0})],s.UUIButtonElement.prototype,"look",2),F([l({reflect:!0})],s.UUIButtonElement.prototype,"color",2),F([l({type:Boolean,reflect:!0})],s.UUIButtonElement.prototype,"compact",2),F([l({type:String,reflect:!0})],s.UUIButtonElement.prototype,"state",2),F([C("#button")],s.UUIButtonElement.prototype,"_button",2),s.UUIButtonElement=F([c("uui-button")],s.UUIButtonElement);class be extends x{}be.OPEN="open";var ds=Object.defineProperty,hs=Object.getOwnPropertyDescriptor,At=(t,e,o,r)=>{for(var i=r>1?void 0:r?hs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ds(e,o,i),i};s.UUICardElement=class extends qe(Le(h)){constructor(){super(...arguments);this.disabled=!1,this.error=!1}handleOpenClick(t){this.disabled||(t.stopPropagation(),this.dispatchEvent(new be(be.OPEN)))}handleOpenKeydown(t){this.disabled||t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new be(be.OPEN)))}},s.UUICardElement.styles=[d`: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(: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}`],At([l({type:Boolean,reflect:!0,attribute:"disabled"})],s.UUICardElement.prototype,"disabled",2),At([l({type:Boolean,reflect:!0})],s.UUICardElement.prototype,"error",2),s.UUICardElement=At([c("uui-card")],s.UUICardElement);var ps=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,kt=(t,e,o,r)=>{for(var i=r>1?void 0:r?vs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ps(e,o,i),i};s.UUICardContentNodeElement=class extends s.UUICardElement{constructor(){super(...arguments);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(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return U(this,"uui-icon"),u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`<div id="open-part" tabindex="${this.disabled?E: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><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},s.UUICardContentNodeElement.styles=[...s.UUICardElement.styles,d`: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}`],kt([l({type:String})],s.UUICardContentNodeElement.prototype,"name",2),kt([g()],s.UUICardContentNodeElement.prototype,"_iconSlotHasContent",2),s.UUICardContentNodeElement=kt([c("uui-card-content-node")],s.UUICardContentNodeElement);var ms=Object.defineProperty,fs=Object.getOwnPropertyDescriptor,st=(t,e,o,r)=>{for(var i=r>1?void 0:r?fs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ms(e,o,i),i};s.UUICardMediaElement=class extends s.UUICardElement{constructor(){super(...arguments);this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-folder"),U(this,"uui-symbol-file")}queryPreviews(t){this.hasPreview=t.path[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!1?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><button id="open-part" tabindex="${this.disabled?E:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></button><div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},s.UUICardMediaElement.styles=[...s.UUICardElement.styles,d`#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)}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-interface-surface-disabled);color:var(--uui-interface-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}`],st([l({type:String})],s.UUICardMediaElement.prototype,"name",2),st([l({type:String,attribute:"file-ext"})],s.UUICardMediaElement.prototype,"fileExt",2),st([g()],s.UUICardMediaElement.prototype,"hasPreview",2),s.UUICardMediaElement=st([c("uui-card-media")],s.UUICardMediaElement);var bs=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,eo=(t,e,o,r)=>{for(var i=r>1?void 0:r?gs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&bs(e,o,i),i};s.UUICardUserElement=class extends s.UUICardElement{constructor(){super(...arguments);this.name=""}connectedCallback(){super.connectedCallback(),U(this,"uui-avatar")}render(){return u`<uui-avatar id="avatar" name="${this.name}" size="m"></uui-avatar><div id="open-part" tabindex="${this.disabled?E:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}"><span>${this.name}</span></div><slot></slot><slot name="tag"></slot><slot name="actions"></slot>`}},s.UUICardUserElement.styles=[...s.UUICardElement.styles,d`: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)}`],eo([l({type:String})],s.UUICardUserElement.prototype,"name",2),s.UUICardUserElement=eo([c("uui-card-user")],s.UUICardUserElement);var _s=Object.defineProperty,ys=Object.getOwnPropertyDescriptor,to=(t,e,o,r)=>{for(var i=r>1?void 0:r?ys(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&_s(e,o,i),i};s.UUICaretElement=class extends h{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>`}},s.UUICaretElement.styles=[d`: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)}`],to([l({type:Boolean,reflect:!0})],s.UUICaretElement.prototype,"open",2),s.UUICaretElement=to([c("uui-caret")],s.UUICaretElement);var Us=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,Es=(t,e,o,r)=>{for(var i=r>1?void 0:r?ws(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Us(e,o,i),i};s.UUICheckboxElement=class extends D{renderCheckbox(){return u`<div id="ticker"><div id="icon-check">${St}</div></div>`}},s.UUICheckboxElement.formAssociated=!0,s.UUICheckboxElement.styles=[...D.styles,Ze,d`: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;fill: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])) 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{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #ticker{animation:${Qe}}:host([disabled]) input:checked+#ticker #icon-check{fill:var(--uui-color-disabled-contrast,#c4c4c4)}`],s.UUICheckboxElement=Es([c("uui-checkbox")],s.UUICheckboxElement);var $s=Object.defineProperty,io=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,xs=Object.prototype.propertyIsEnumerable,oo=(t,e,o)=>e in t?$s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ro=(t,e)=>{for(var o in e||(e={}))Is.call(e,o)&&oo(t,o,e[o]);if(io)for(var o of io(e))xs.call(e,o)&&oo(t,o,e[o]);return t};class X extends x{constructor(e,o={}){super(e,ro(ro({},{bubbles:!0}),o))}}X.CHANGE="change";var Cs=Object.defineProperty,Ps=Object.getOwnPropertyDescriptor,Z=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ps(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Cs(e,o,i),i};s.UUIComboboxListElement=class extends h{constructor(){super(...arguments);this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let t=0;t<this._activeOptions.length;t++)t===0?this._activeElement=this._activeOptions[t]:this._activeOptions[t].active=!1;this._updateSelection()},this._onSelected=t=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new X(X.CHANGE))},this._onUnselected=t=>{const e=t.composedPath()[0];this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this.value="",this.displayValue="",this.dispatchEvent(new X(X.CHANGE)))},this._moveIndex=t=>{const e=Math.min(Math.max(this._getActiveIndex()+t,0),this._options.length-1);this._goToIndex(e)},this._onKeyDown=t=>{var e;if(!(this._options.length<=0))switch(t.key){case"ArrowUp":t.preventDefault(),t.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":t.preventDefault(),t.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{t.preventDefault(),this._goToIndex(0);break}case"Enter":{t.preventDefault(),(e=this._activeElement)==null||e.click();break}case"End":{t.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(t){if(this._value===t)return;const e=this._value;this._value=t,this._updateSelection(),this.requestUpdate("value",e)}get for(){return this._for}set for(t){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=t,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(fe.SELECTED,this._onSelected),this.addEventListener(fe.UNSELECTED,this._onUnselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(fe.SELECTED,this._onSelected),this.removeEventListener(fe.UNSELECTED,this._onUnselected)}_updateSelection(){this.displayValue="";for(const t of this._options)t.value===this._value?(this.displayValue=t.displayValue||"",t.selected=!0):t.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(t){t=Math.min(Math.max(t,0),this._options.length-1),this._activeElement=this._options[t],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>`}},s.UUIComboboxListElement.styles=[d`:host{display:flex;flex-direction:column;box-sizing:border-box}`],Z([l({type:String})],s.UUIComboboxListElement.prototype,"value",1),Z([l({type:String})],s.UUIComboboxListElement.prototype,"displayValue",2),Z([l({attribute:!1})],s.UUIComboboxListElement.prototype,"for",1),Z([K({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],s.UUIComboboxListElement.prototype,"_options",2),Z([K({flatten:!0,selector:"uui-combobox-list-option[active]"})],s.UUIComboboxListElement.prototype,"_activeOptions",2),Z([g()],s.UUIComboboxListElement.prototype,"_value",2),s.UUIComboboxListElement=Z([c("uui-combobox-list")],s.UUIComboboxListElement);var Os=Object.defineProperty,zs=Object.getOwnPropertyDescriptor,ge=(t,e,o,r)=>{for(var i=r>1?void 0:r?zs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Os(e,o,i),i};s.UUIComboboxListOptionElement=class extends Le(Ge(h)){constructor(){super();this._disabled=!1,this._displayValue="",this.selectable=!0,this.unselectable=!1}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get displayValue(){var t;return this._displayValue?this._displayValue:((t=this.textContent)==null?void 0:t.trim())||""}set displayValue(t){const e=this._displayValue;this._displayValue=t,this.requestUpdate("displayValue",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.selectable=!this._disabled,this.requestUpdate("disabled",e)}render(){return u`<slot></slot>`}},s.UUIComboboxListOptionElement.styles=[d`:host{position:relative;cursor:pointer;margin:0 6px;border-radius:var(--uui-border-radius,3px);outline:2px solid transparent;outline-offset:-2px}: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)}`],ge([g()],s.UUIComboboxListOptionElement.prototype,"_disabled",2),ge([g()],s.UUIComboboxListOptionElement.prototype,"_displayValue",2),ge([l({type:String})],s.UUIComboboxListOptionElement.prototype,"value",1),ge([l({type:String,attribute:"display-value"})],s.UUIComboboxListOptionElement.prototype,"displayValue",1),ge([l({type:Boolean,reflect:!0})],s.UUIComboboxListOptionElement.prototype,"disabled",1),s.UUIComboboxListOptionElement=ge([c("uui-combobox-list-option")],s.UUIComboboxListOptionElement);class k extends x{}k.SEARCH="search",k.CHANGE="change";var Ss=Object.defineProperty,As=Object.getOwnPropertyDescriptor,Q=(t,e,o,r)=>{for(var i=r>1?void 0:r?As(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ss(e,o,i),i};s.UUIComboboxElement=class extends j(h){constructor(){super(...arguments);this.open=!1,this._displayValue="",this._search="",this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{document.activeElement!==this&&this._close()}),this._onInput=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.search=t.target.value,this.dispatchEvent(new k(k.SEARCH)),this._open()},this._onChange=t=>{var e,o;t.stopImmediatePropagation(),this.value=((e=this._comboboxList)==null?void 0:e.value)||"",this._displayValue=((o=this._comboboxList)==null?void 0:o.displayValue)||"",this.search=this.value?this.search:"",this._close(),this.dispatchEvent(new k(k.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._close=()=>{var t;!this.open||(this.open=!1,this._displayValue=((t=this._comboboxList)==null?void 0:t.displayValue)||"",this._input.value=this._displayValue,this.search="",this.dispatchEvent(new k(k.SEARCH)))},this._onKeyDown=t=>{this.open===!1&&t.key==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation()),(t.key==="ArrowUp"||t.key==="ArrowDown")&&this._open(),(t.key==="Escape"||t.key==="Enter")&&this._close()},this._clear=t=>{t.key&&t.key!=="Enter"||(t.preventDefault(),t.stopImmediatePropagation(),this._displayValue="",this._input.value=this._displayValue,this.search="",this.value="",this._comboboxList.value=this.value,this.dispatchEvent(new k(k.CHANGE)))},this._renderInput=()=>u`<uui-input slot="trigger" id="combobox-input" label="combobox-input" type="text" .value="${this._displayValue}" .placeholder="${this._displayValue}" autocomplete="off" @click="${this._open}" @input="${this._onInput}" @keydown="${this._onKeyDown}"><slot name="input-prepend" slot="prepend"></slot>${this._renderClearButton()} ${this._renderCaret()}<slot name="input-append" slot="append"></slot></uui-input>`,this._renderCaret=()=>u`<svg id="caret" slot="append" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`,this._renderClearButton=()=>u`<uui-button id="clear-button" class="${this.value||this.search?"--show":""}" @click="${this._clear}" @keydown="${this._clear}" label="clear" slot="append" compact="compact" style="height:100%;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0"><uui-icon name="remove" .fallback="${Qi.strings[0]}"></uui-icon></uui-button>`,this._renderDropdown=()=>u`<div id="dropdown" slot="popover"><uui-scroll-container id="scroll-container"><slot></slot></uui-scroll-container></div>`}get value(){return this._value}set value(t){super.value=t,typeof t=="string"&&this._updateValue(t)}get search(){return this._search}set search(t){if(this.search===t)return;const e=this._search;this._search=t,this.requestUpdate("search",e)}connectedCallback(){super.connectedCallback(),this.addEventListener("blur",this._onBlur),this.addEventListener("mousedown",this._onMouseDown),U(this,"uui-icon"),U(this,"uui-input"),U(this,"uui-button"),U(this,"uui-combobox-list"),U(this,"uui-scroll-container")}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("blur",this._onBlur),this.removeEventListener("mousedown",this._onMouseDown)}async firstUpdated(){var t;const e=(t=this._comboboxListElements)==null?void 0:t[0];e&&(this._comboboxList=e,this._comboboxList.for=this,this._comboboxList.addEventListener(X.CHANGE,this._onChange),typeof this.value=="string"&&(await this.updateComplete,this._updateValue(this.value)))}_updateValue(t){var e;this._comboboxList&&(this._comboboxList.value=t,this._displayValue=((e=this._comboboxList)==null?void 0:e.displayValue)||"")}getFormElement(){return this._input}render(){return u`<uui-popover .open="${this.open}" .margin="${-1}" @close="${()=>this._close()}">${this._renderInput()} ${this._renderDropdown()}</uui-popover>`}},s.UUIComboboxElement.styles=[d`:host{position:relative;display:inline-block}#combobox-input{width:100%;border-radius:var(--uui-size-1,3px)}#scroll-container{max-height:var(--uui-combobox-popover-max-height,500px);overflow-y:auto}#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))}#clear-button{pointer-events:none;opacity:0;transition:opacity 120ms}#clear-button.--show{pointer-events:auto;opacity:1}#caret{margin-right:var(--uui-size-3,9px);display:flex;width:1.15em;flex-shrink:0;margin-top:-1px}`],Q([l({type:String})],s.UUIComboboxElement.prototype,"search",1),Q([l({type:Boolean})],s.UUIComboboxElement.prototype,"open",2),Q([C("#combobox-input")],s.UUIComboboxElement.prototype,"_input",2),Q([K({flatten:!0,selector:"uui-combobox-list"})],s.UUIComboboxElement.prototype,"_comboboxListElements",2),Q([g()],s.UUIComboboxElement.prototype,"_displayValue",2),Q([g()],s.UUIComboboxElement.prototype,"_search",2),s.UUIComboboxElement=Q([c("uui-combobox")],s.UUIComboboxElement);var ks=Object.defineProperty,Ds=Object.getOwnPropertyDescriptor,Dt=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ds(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ks(e,o,i),i};s.UUIDialogLayoutElement=class extends h{constructor(){super(...arguments);this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.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()}`}},s.UUIDialogLayoutElement.styles=[d`: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)}`],Dt([l({type:String})],s.UUIDialogLayoutElement.prototype,"headline",2),Dt([g()],s.UUIDialogLayoutElement.prototype,"_headlineSlotHasContent",2),s.UUIDialogLayoutElement=Dt([c("uui-dialog-layout")],s.UUIDialogLayoutElement);var Ls=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ns=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ts(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ls(e,o,i),i};s.UUIDialogElement=class extends h{render(){return u`<slot></slot>`}},s.UUIDialogElement.styles=[d`:host{position:relative;display:block;max-width:400px;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))}`],s.UUIDialogElement=Ns([c("uui-dialog")],s.UUIDialogElement);class Te extends x{}Te.FILE_CHANGE="file-change";var Bs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Ne=(t,e,o,r)=>{for(var i=r>1?void 0:r?Hs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Bs(e,o,i),i};s.UUIFileDropzoneElement=class extends De("",h){constructor(){super();this.accept="",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)}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-file-dropzone")}_checkIsItDirectory(t){return t.type?!1:t.webkitGetAsEntry().isDirectory}async _getAllFileEntries(t){const e=[],o=[];for(let r=0;r<t.length;r++)o.push(t[r].webkitGetAsEntry());if(this.accept){const r=[],i=[];for(this.accept.split(",").forEach(n=>{n.includes("*")?i.push(n.split("*")[0].trim().toLowerCase()):r.push(n.trim().toLowerCase())});o.length>0;){const n=o.shift();n.isFile&&await this._isAccepted(r,i,n)?e.push(n):n.isDirectory&&(e.push(n),o.push(...await this._readAllDirectoryEntries(n.createReader())))}}else for(;o.length>0;){const r=o.shift();r.isFile?e.push(r):r.isDirectory&&(e.push(r),o.push(...await this._readAllDirectoryEntries(r.createReader())))}return e}async _readAllDirectoryEntries(t){const e=[];let o=await this._readEntriesPromise(t);for(;o.length>0;)e.push(...o),o=await this._readEntriesPromise(t);return e}async _readEntriesPromise(t){try{return await new Promise((e,o)=>{t.readEntries(e,o)})}catch(e){console.log(e)}}async _getFile(t){return await new Promise((e,o)=>t.file(e,o))}async _isAccepted(t,e,o){const r=await this._getFile(o),i=r.type.toLowerCase(),n="."+r.name.split(".")[1].toLowerCase();return!!(t.includes(n)||t.includes(i)||e.some(a=>i.startsWith(a)))}async _onDrop(t){var e;t.preventDefault(),this._dropzone.classList.remove("hover");const o=(e=t.dataTransfer)==null?void 0:e.items;if(o){let r=await this._getAllFileEntries(o);this.multiple===!1&&r.length>0&&(r=[r[0]]),this.dispatchEvent(new Te(Te.FILE_CHANGE,{detail:{files:r}}))}}_onDragOver(t){t.preventDefault()}_onDragEnter(t){this._dropzone.classList.add("hover"),t.preventDefault()}_onDragLeave(t){this._dropzone.classList.remove("hover"),t.preventDefault()}_onFileInputChange(){const t=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new Te(Te.FILE_CHANGE,{detail:{files:t}}))}render(){return u`<div id="dropzone"><uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>${this.renderLabel()} <input @click="${t=>t.stopImmediatePropagation()}" id="input" type="file" accept="${this.accept}" ?multiple="${this.multiple}" @change="${this._onFileInputChange}" aria-label="${this.label}"></div>`}},s.UUIFileDropzoneElement.styles=[d`#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}`],Ne([C("#input")],s.UUIFileDropzoneElement.prototype,"_input",2),Ne([C("#dropzone")],s.UUIFileDropzoneElement.prototype,"_dropzone",2),Ne([l({type:String})],s.UUIFileDropzoneElement.prototype,"accept",2),Ne([l({type:Boolean})],s.UUIFileDropzoneElement.prototype,"multiple",2),s.UUIFileDropzoneElement=Ne([c("uui-file-dropzone")],s.UUIFileDropzoneElement);class js{static humanFileSize(e,o=!1,r=1){const i=o?1e3:1024;if(Math.abs(e)<i)return e+" B";const n=o?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let a=-1;const v=10**r;do e/=i,++a;while(Math.round(Math.abs(e)*v)/v>=i&&a<n.length-1);return e.toFixed(r)+" "+n[a]}}var Ms=Object.defineProperty,Rs=Object.getOwnPropertyDescriptor,L=(t,e,o,r)=>{for(var i=r>1?void 0:r?Rs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ms(e,o,i),i};s.UUIFilePreviewElement=class extends h{constructor(){super(...arguments);this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(t){const e=this._file;t instanceof File&&(this._name=t.name.split(".")[0],this._extension=t.name.split(".")[1],this._isDirectory=!1,this._size=t.size,this._isFileAnImage(t)&&(this._isImage=!0,this._getThumbnail(t).then(o=>{this._src=o})),this.requestUpdate("file",e))}connectedCallback(){super.connectedCallback(),U(this,"uui-symbol-file-thumbnail"),U(this,"uui-symbol-folder"),U(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),o=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">${o}</span></span>`}_isFileAnImage(t){return t?t.type.split("/")[0]==="image":!1}async _getThumbnail(t){return await new Promise(e=>{const o=new FileReader;o.readAsDataURL(t),o.onload=()=>{e(o.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`${js.humanFileSize(this._size,!0)}`:""}</span></div>`}},s.UUIFilePreviewElement.styles=[d`: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}`],L([g()],s.UUIFilePreviewElement.prototype,"_name",2),L([g()],s.UUIFilePreviewElement.prototype,"_url",2),L([g()],s.UUIFilePreviewElement.prototype,"_extension",2),L([g()],s.UUIFilePreviewElement.prototype,"_src",2),L([g()],s.UUIFilePreviewElement.prototype,"_size",2),L([g()],s.UUIFilePreviewElement.prototype,"_isDirectory",2),L([g()],s.UUIFilePreviewElement.prototype,"_file",2),L([g()],s.UUIFilePreviewElement.prototype,"_isImage",2),L([l({attribute:!1})],s.UUIFilePreviewElement.prototype,"file",1),s.UUIFilePreviewElement=L([c("uui-file-preview")],s.UUIFilePreviewElement);var Fs=Object.defineProperty,Vs=Object.getOwnPropertyDescriptor,nt=(t,e,o,r)=>{for(var i=r>1?void 0:r?Vs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Fs(e,o,i),i};s.UUIFormLayoutItemElement=class extends h{constructor(){super(...arguments);this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=t=>{this._labelSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=t=>{this._descriptionSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),U(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>`}},s.UUIFormLayoutItemElement.styles=[d`: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}`],nt([l({type:String})],s.UUIFormLayoutItemElement.prototype,"description",2),nt([g()],s.UUIFormLayoutItemElement.prototype,"_labelSlotHasContent",2),nt([g()],s.UUIFormLayoutItemElement.prototype,"_descriptionSlotHasContent",2),s.UUIFormLayoutItemElement=nt([c("uui-form-layout-item")],s.UUIFormLayoutItemElement);/**
216
216
  * @license
217
217
  * Copyright 2020 Google LLC
218
218
  * SPDX-License-Identifier: BSD-3-Clause
219
- */const{H:da}=ss,$o=()=>document.createComment(""),pt=(t,e,r)=>{var o;const i=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){const n=i.insertBefore($o(),s),p=i.insertBefore($o(),s);r=new da(n,p,t,t.options)}else{const n=r._$AB.nextSibling,p=r._$AM,v=p!==t;if(v){let h;(o=r._$AQ)===null||o===void 0||o.call(r,t),r._$AM=t,r._$AP!==void 0&&(h=t._$AU)!==p._$AU&&r._$AP(h)}if(n!==s||v){let h=r._$AA;for(;h!==n;){const E=h.nextSibling;i.insertBefore(h,s),h=E}}}return r},be=(t,e,r=t)=>(t._$AI(e,r),t),ha={},pa=(t,e=ha)=>t._$AH=e,va=t=>t._$AH,Vi=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA;const o=t._$AB.nextSibling;for(;r!==o;){const i=r.nextSibling;r.remove(),r=i}};/**
219
+ */const{H:Gs}=jo,qs=t=>t.strings===void 0,so=()=>document.createComment(""),Be=(t,e,o)=>{var r;const i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(o===void 0){const a=i.insertBefore(so(),n),v=i.insertBefore(so(),n);o=new Gs(a,v,t,t.options)}else{const a=o._$AB.nextSibling,v=o._$AM,m=v!==t;if(m){let p;(r=o._$AQ)===null||r===void 0||r.call(o,t),o._$AM=t,o._$AP!==void 0&&(p=t._$AU)!==v._$AU&&o._$AP(p)}if(a!==n||m){let p=o._$AA;for(;p!==a;){const I=p.nextSibling;i.insertBefore(p,n),p=I}}}return o},J=(t,e,o=t)=>(t._$AI(e,o),t),Ws={},Ks=(t,e=Ws)=>t._$AH=e,Ys=t=>t._$AH,Lt=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let o=t._$AA;const r=t._$AB.nextSibling;for(;o!==r;){const i=o.nextSibling;o.remove(),o=i}};/**
220
220
  * @license
221
221
  * Copyright 2017 Google LLC
222
222
  * SPDX-License-Identifier: BSD-3-Clause
223
- */const Eo=(t,e,r)=>{const o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},Co=Ui(class extends Di{constructor(t){if(super(t),t.type!==Ai.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);const i=[],s=[];let n=0;for(const p of t)i[n]=o?o(p,n):n,s[n]=r(p,n),n++;return{values:s,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,o]){var i;const s=va(t),{values:n,keys:p}=this.dt(e,r,o);if(!Array.isArray(s))return this.ut=p,n;const v=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],h=[];let E,m,f=0,_=s.length-1,x=0,w=n.length-1;for(;f<=_&&x<=w;)if(s[f]===null)f++;else if(s[_]===null)_--;else if(v[f]===p[x])h[x]=be(s[f],n[x]),f++,x++;else if(v[_]===p[w])h[w]=be(s[_],n[w]),_--,w--;else if(v[f]===p[w])h[w]=be(s[f],n[w]),pt(t,h[w+1],s[f]),f++,w--;else if(v[_]===p[x])h[x]=be(s[_],n[x]),pt(t,s[f],s[_]),_--,x++;else if(E===void 0&&(E=Eo(p,x,w),m=Eo(v,f,_)),E.has(v[f]))if(E.has(v[_])){const D=m.get(p[x]),xe=D!==void 0?s[D]:null;if(xe===null){const Ye=pt(t,s[f]);be(Ye,n[x]),h[x]=Ye}else h[x]=be(xe,n[x]),pt(t,s[f],xe),s[D]=null;x++}else Vi(s[_]),_--;else Vi(s[f]),f++;for(;x<=w;){const D=pt(t,h[w+1]);be(D,n[x]),h[x++]=D}for(;f<=_;){const D=s[f++];D!==null&&Vi(D)}return this.ut=p,pa(t,h),W}});var fa=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,Po=(t,e,r,o)=>{for(var i=o>1?void 0:o?ba(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fa(e,r,i),i};let Ft=class extends d{constructor(){super();this._for=null,this._messages=new Map,this._onControlInvalid=t=>{const e=t.target;e.pristine===!1?this._messages.set(e,e.validationMessage):this._messages.delete(e),this.requestUpdate()},this._onControlValid=t=>{this._messages.delete(t.target),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(t){let e=null;if(typeof t=="string"){const i=this.getRootNode();e=i?.getElementById(t)}const r=e||this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(De.INVALID,this._onControlInvalid),o.removeEventListener(De.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(De.INVALID,this._onControlInvalid),this._for.addEventListener(De.VALID,this._onControlValid))}render(){return l`<slot></slot><div id="messages">${Co(this._messages,t=>l`<div>${t[1]}</div>`)}<slot name="message"></slot></div>`}};Ft.styles=[c`#messages{color:var(--uui-look-danger-surface,#d42054)}`],Po([a({reflect:!1,attribute:!0})],Ft.prototype,"for",1),Ft=Po([u("uui-form-validation-message")],Ft);var ga=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,_a=(t,e,r,o)=>{for(var i=o>1?void 0:o?ma(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ga(e,r,i),i};let ko=class extends d{constructor(){super(...arguments);this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(t){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const e=t.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=e.length>0?e[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(t){if(t.target===null)return;const e=t.target;if(!e.checkValidity()){e.setAttribute("submit-invalid","");return}e.removeAttribute("submit-invalid")}_onReset(t){t.target!==null&&t.target.removeAttribute("submit-invalid")}render(){return l`<slot @slotchange="${this._onSlotChanged}"></slot>`}};ko=_a([u("uui-form")],ko);/**
223
+ */const no=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},ao=et(class extends tt{constructor(t){if(super(t),t.type!==Je.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,o){let r;o===void 0?o=e:e!==void 0&&(r=e);const i=[],n=[];let a=0;for(const v of t)i[a]=r?r(v,a):a,n[a]=o(v,a),a++;return{values:n,keys:i}}render(t,e,o){return this.dt(t,e,o).values}update(t,[e,o,r]){var i;const n=Ys(t),{values:a,keys:v}=this.dt(e,o,r);if(!Array.isArray(n))return this.ut=v,a;const m=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],p=[];let I,_,f=0,y=n.length-1,w=0,$=a.length-1;for(;f<=y&&w<=$;)if(n[f]===null)f++;else if(n[y]===null)y--;else if(m[f]===v[w])p[w]=J(n[f],a[w]),f++,w++;else if(m[y]===v[$])p[$]=J(n[y],a[$]),y--,$--;else if(m[f]===v[$])p[$]=J(n[f],a[$]),Be(t,p[$+1],n[f]),f++,$--;else if(m[y]===v[w])p[w]=J(n[y],a[w]),Be(t,n[f],n[y]),y--,w++;else if(I===void 0&&(I=no(v,w,$),_=no(m,f,y)),I.has(m[f]))if(I.has(m[y])){const S=_.get(v[w]),oe=S!==void 0?n[S]:null;if(oe===null){const Ie=Be(t,n[f]);J(Ie,a[w]),p[w]=Ie}else p[w]=J(oe,a[w]),Be(t,n[f],oe),n[S]=null;w++}else Lt(n[y]),y--;else Lt(n[f]),f++;for(;w<=$;){const S=Be(t,p[$+1]);J(S,a[w]),p[w++]=S}for(;f<=y;){const S=n[f++];S!==null&&Lt(S)}return this.ut=v,Ks(t,p),H}});var Xs=Object.defineProperty,Zs=Object.getOwnPropertyDescriptor,lo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Zs(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Xs(e,o,i),i};s.UUIFormValidationMessageElement=class extends h{constructor(){super();this._for=null,this._messages=new Map,this._onControlInvalid=t=>{const e=t.target;e.pristine===!1?this._messages.set(e,e.validationMessage):this._messages.delete(e),this.requestUpdate()},this._onControlValid=t=>{this._messages.delete(t.target),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(t){let e=null;if(typeof t=="string"){const i=this.getRootNode();e=i?.getElementById(t)}const o=e||this,r=this._for;r!==o&&(r!==null&&(r.removeEventListener(me.INVALID,this._onControlInvalid),r.removeEventListener(me.VALID,this._onControlValid)),this._for=o,this._for.addEventListener(me.INVALID,this._onControlInvalid),this._for.addEventListener(me.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${ao(this._messages,t=>u`<div>${t[1]}</div>`)}<slot name="message"></slot></div>`}},s.UUIFormValidationMessageElement.styles=[d`#messages{color:var(--uui-color-danger-standalone,#bf214e)}`],lo([l({reflect:!1,attribute:!0})],s.UUIFormValidationMessageElement.prototype,"for",1),s.UUIFormValidationMessageElement=lo([c("uui-form-validation-message")],s.UUIFormValidationMessageElement);var Qs=Object.defineProperty,Js=Object.getOwnPropertyDescriptor,en=(t,e,o,r)=>{for(var i=r>1?void 0:r?Js(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Qs(e,o,i),i};s.UUIFormElement=class extends h{constructor(){super(...arguments);this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(t){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const e=t.target.assignedNodes({flatten:!0}).filter(o=>o instanceof HTMLFormElement);this._formElement=e.length>0?e[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(t){if(t.target===null)return;const e=t.target;if(!e.checkValidity()){e.setAttribute("submit-invalid","");return}e.removeAttribute("submit-invalid")}_onReset(t){t.target!==null&&t.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},s.UUIFormElement=en([c("uui-form")],s.UUIFormElement);/**
224
224
  * @license
225
225
  * Copyright 2017 Google LLC
226
226
  * SPDX-License-Identifier: BSD-3-Clause
227
- */class Fi extends Di{constructor(e){if(super(e),this.it=$,e.type!==Ai.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$||e==null)return this.ft=void 0,this.it=e;if(e===W)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const r=[e];return r.raw=r,this.ft={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Fi.directiveName="unsafeHTML",Fi.resultType=1;const Ri=Ui(Fi);var ya=Object.defineProperty,Oo=Object.getOwnPropertySymbols,xa=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,zo=(t,e,r)=>e in t?ya(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,So=(t,e)=>{for(var r in e||(e={}))xa.call(e,r)&&zo(t,r,e[r]);if(Oo)for(var r of Oo(e))wa.call(e,r)&&zo(t,r,e[r]);return t};class vt extends C{constructor(e,r={}){super(e,So(So({},{bubbles:!0}),r));this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}}vt.ICON_REQUEST="icon_request";var $a=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,Fe=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ea(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&$a(e,r,i),i};let re=class extends d{constructor(){super(...arguments);this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(t){this._name=t,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const t=new vt(vt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(t),t.icon!==null?(this._retrievedNameIcon=!0,t.icon.then(e=>{this._useFallback=!1,this._nameSvg=e})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon()}render(){return this._useFallback===!0?this.fallback===null?l`<slot name="fallback"></slot>`:Ri(this.fallback):this._nameSvg!==null?Ri(this._nameSvg):this.svg!==null?Ri(this.svg):l`<slot></slot>`}};re.styles=[c`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{fill:var(--uui-icon-color,currentColor)}`],Fe([g()],re.prototype,"_nameSvg",2),Fe([a()],re.prototype,"name",1),Fe([a({attribute:!1})],re.prototype,"svg",2),Fe([a({attribute:!1})],re.prototype,"fallback",2),Fe([g()],re.prototype,"_useFallback",2),re=Fe([u("uui-icon")],re);class Io{constructor(e){this.promise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class Ao{constructor(){this.icons={},this._onIconRequest=e=>{const r=this.getIcon(e.detail.iconName);r!==null&&e.acceptRequest(r)}}attach(e){e.addEventListener(vt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(vt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,r){if(this.icons[e]){this.icons[e].svg=r;return}this.icons[e]=new Io(r)}getIcon(e){return!!this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Io}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var Ca=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Uo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pa(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ca(e,r,i),i};let Rt=class extends d{constructor(){super();this._icons={},this._registry=new Ao,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,r])=>this._registry.defineIcon(e,r))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return l`<slot></slot>`}};Uo([a({attribute:!1})],Rt.prototype,"_icons",2),Rt=Uo([u("uui-icon-registry")],Rt);const ka=b`<svg 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>`,Oa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,za=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,Sa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,Ia=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,Aa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,Ua=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,Da=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,La=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,ja=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,Ha=b`<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"/></svg>`,Na=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,Ta=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,Ma=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,Ba=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,Va=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="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"/></svg>`,Fa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,Ra=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,qa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,Ga=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,Wa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Ka=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Ya=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,Xa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,Za=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Qa=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,Ja=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,el=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,tl=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,il=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,rl=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,ol=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;class sl extends Ao{constructor(){super();this.defineIcon("add",ka.strings[0]),this.defineIcon("alert",Oa.strings[0]),this.defineIcon("attachment",za.strings[0]),this.defineIcon("calendar",Sa.strings[0]),this.defineIcon("check",Ia.strings[0]),this.defineIcon("clipboard",Aa.strings[0]),this.defineIcon("code",Ua.strings[0]),this.defineIcon("colorpicker",Da.strings[0]),this.defineIcon("copy",La.strings[0]),this.defineIcon("delete",ja.strings[0]),this.defineIcon("document",Ha.strings[0]),this.defineIcon("download",Na.strings[0]),this.defineIcon("edit",Ta.strings[0]),this.defineIcon("favorite",Ma.strings[0]),this.defineIcon("folder",Ba.strings[0]),this.defineIcon("forbidden",Va.strings[0]),this.defineIcon("info",Fa.strings[0]),this.defineIcon("link",Ra.strings[0]),this.defineIcon("lock",qa.strings[0]),this.defineIcon("pause",Ga.strings[0]),this.defineIcon("picture",Wa.strings[0]),this.defineIcon("play",Ka.strings[0]),this.defineIcon("remove",Ya.strings[0]),this.defineIcon("search",Xa.strings[0]),this.defineIcon("see",Za.strings[0]),this.defineIcon("settings",Qa.strings[0]),this.defineIcon("subtract",Ja.strings[0]),this.defineIcon("sync",el.strings[0]),this.defineIcon("unlock",tl.strings[0]),this.defineIcon("unsee",il.strings[0]),this.defineIcon("wand",rl.strings[0]),this.defineIcon("wrong",ol.strings[0])}}var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ll=(t,e,r,o)=>{for(var i=o>1?void 0:o?al(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&nl(e,r,i),i};let Do=class extends Rt{constructor(){super();this.registry=new sl}};Do=ll([u("uui-icon-registry-essential")],Do);/**
227
+ */class Tt extends tt{constructor(e){if(super(e),this.it=E,e.type!==Je.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===E||e==null)return this.ft=void 0,this.it=e;if(e===H)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this.ft;this.it=e;const o=[e];return o.raw=o,this.ft={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Tt.directiveName="unsafeHTML",Tt.resultType=1;const Nt=et(Tt);var tn=Object.defineProperty,uo=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,co=(t,e,o)=>e in t?tn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ho=(t,e)=>{for(var o in e||(e={}))on.call(e,o)&&co(t,o,e[o]);if(uo)for(var o of uo(e))rn.call(e,o)&&co(t,o,e[o]);return t};class _e extends x{constructor(e,o={}){super(e,ho(ho({},{bubbles:!0}),o));this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}}_e.ICON_REQUEST="icon_request";var sn=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,ye=(t,e,o,r)=>{for(var i=r>1?void 0:r?nn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&sn(e,o,i),i};s.UUIIconElement=class extends h{constructor(){super(...arguments);this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(t){this._name=t,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const t=new _e(_e.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(t),t.icon!==null?(this._retrievedNameIcon=!0,t.icon.then(e=>{this._useFallback=!1,this._nameSvg=e})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon()}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:Nt(this.fallback):this._nameSvg!==null?Nt(this._nameSvg):this.svg!==null?Nt(this.svg):u`<slot></slot>`}},s.UUIIconElement.styles=[d`:host{display:inline-block;vertical-align:bottom;width:1.15em;height:1.15em}::slotted(svg),:host svg{fill:var(--uui-icon-color,currentColor)}`],ye([g()],s.UUIIconElement.prototype,"_nameSvg",2),ye([l()],s.UUIIconElement.prototype,"name",1),ye([l({attribute:!1})],s.UUIIconElement.prototype,"svg",2),ye([l({attribute:!1})],s.UUIIconElement.prototype,"fallback",2),ye([g()],s.UUIIconElement.prototype,"_useFallback",2),s.UUIIconElement=ye([c("uui-icon")],s.UUIIconElement);class Bt{constructor(e){this.promise=new Promise((o,r)=>{this.resolve=o,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class Ht{constructor(){this.icons={},this._onIconRequest=e=>{const o=this.getIcon(e.detail.iconName);o!==null&&e.acceptRequest(o)}}attach(e){e.addEventListener(_e.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(_e.ICON_REQUEST,this._onIconRequest)}defineIcon(e,o){if(this.icons[e]){this.icons[e].svg=o;return}this.icons[e]=new Bt(o)}getIcon(e){return!!this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Bt}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var an=Object.defineProperty,ln=Object.getOwnPropertyDescriptor,po=(t,e,o,r)=>{for(var i=r>1?void 0:r?ln(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&an(e,o,i),i};s.UUIIconRegistryElement=class extends h{constructor(){super();this._icons={},this._registry=new Ht,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,o])=>this._registry.defineIcon(e,o))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return u`<slot></slot>`}},po([l({attribute:!1})],s.UUIIconRegistryElement.prototype,"_icons",2),s.UUIIconRegistryElement=po([c("uui-icon-registry")],s.UUIIconRegistryElement);const un=b`<svg 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>`,cn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,dn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,hn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,pn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/></svg>`,vn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,mn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,fn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,bn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,gn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,_n=b`<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"/></svg>`,yn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,Un=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,wn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,En=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,$n=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="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"/></svg>`,In=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,xn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,Cn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,Pn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,On=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,zn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Sn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,An=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,kn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Dn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,Ln=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,Tn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,Nn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><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"/></svg>`,Bn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Hn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,jn=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/></svg>`;class vo extends Ht{constructor(){super();this.defineIcon("add",un.strings[0]),this.defineIcon("alert",cn.strings[0]),this.defineIcon("attachment",dn.strings[0]),this.defineIcon("calendar",hn.strings[0]),this.defineIcon("check",pn.strings[0]),this.defineIcon("clipboard",vn.strings[0]),this.defineIcon("code",mn.strings[0]),this.defineIcon("colorpicker",fn.strings[0]),this.defineIcon("copy",bn.strings[0]),this.defineIcon("delete",gn.strings[0]),this.defineIcon("document",_n.strings[0]),this.defineIcon("download",yn.strings[0]),this.defineIcon("edit",Un.strings[0]),this.defineIcon("favorite",wn.strings[0]),this.defineIcon("folder",En.strings[0]),this.defineIcon("forbidden",$n.strings[0]),this.defineIcon("info",In.strings[0]),this.defineIcon("link",xn.strings[0]),this.defineIcon("lock",Cn.strings[0]),this.defineIcon("pause",Pn.strings[0]),this.defineIcon("picture",On.strings[0]),this.defineIcon("play",zn.strings[0]),this.defineIcon("remove",Sn.strings[0]),this.defineIcon("search",An.strings[0]),this.defineIcon("see",kn.strings[0]),this.defineIcon("settings",Dn.strings[0]),this.defineIcon("subtract",Ln.strings[0]),this.defineIcon("sync",Tn.strings[0]),this.defineIcon("unlock",Nn.strings[0]),this.defineIcon("unsee",Bn.strings[0]),this.defineIcon("wand",Hn.strings[0]),this.defineIcon("wrong",jn.strings[0])}}var Mn=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,Fn=(t,e,o,r)=>{for(var i=r>1?void 0:r?Rn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Mn(e,o,i),i};s.UUIIconRegistryEssentialElement=class extends s.UUIIconRegistryElement{constructor(){super();this.registry=new vo}},s.UUIIconRegistryEssentialElement=Fn([c("uui-icon-registry-essential")],s.UUIIconRegistryEssentialElement);/**
228
228
  * @license
229
229
  * Copyright 2018 Google LLC
230
230
  * SPDX-License-Identifier: BSD-3-Clause
231
- */const qt=t=>t??$;class Re extends C{}Re.CHANGE="change",Re.INPUT="input";var ul=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,j=(t,e,r,o)=>{for(var i=o>1?void 0:o?cl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ul(e,r,i),i};let P=class extends K(d){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._type="text",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)}get type(){return this._type}set type(t){this._type=t}firstUpdated(t){super.firstUpdated(t),this.addFormControlElement(this._input)}focus(){this._input.focus()}getFormElement(){return this._input}onInput(t){this.value=t.target.value,this.dispatchEvent(new Re(Re.INPUT))}onChange(){this.pristine=!1,this.dispatchEvent(new Re(Re.CHANGE))}renderPrepend(){return l`<slot name="prepend"></slot>`}renderAppend(){return l`<slot name="append"></slot>`}render(){return l`${this.renderPrepend()} <input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" autocomplete="${qt(this.autocomplete)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}"> ${this.renderAppend()}`}};P.formAssociated=!0,P.styles=[c`:host{position:relative;display:inline-flex;align-items:center;height:var(--uui-size-11,33px);text-align:left;box-sizing:border-box;background-color:var(--uui-input-background-color,var(--uui-interface-surface,#fefefe));border:var(--uui-input-border-width,1px) solid var(--uui-input-border-color,var(--uui-interface-border,#c4c4c4))}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-interface-border-hover,#b3b3b3))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-interface-border-focus,#b3b3b3));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-interface-border-focus,#b3b3b3))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border-color:var(--uui-input-border-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));color:var(--uui-interface-contrast-disabled,#73716e)}:host([readonly]){border-color:var(--uui-input-border-color-readonly,var(--uui-interface-border-readonly,#dedede))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-look-danger-border,#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%;text-align:inherit;outline:0}input::placeholder{transition:opacity 120ms}:host(:not([readonly])) input:focus::placeholder{opacity:0}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input){height:100%;--uui-input-border-width:0}`],j([a({type:Number})],P.prototype,"minlength",2),j([a({type:String,attribute:"minlength-message"})],P.prototype,"minlengthMessage",2),j([a({type:Number})],P.prototype,"maxlength",2),j([a({type:String,attribute:"maxlength-message"})],P.prototype,"maxlengthMessage",2),j([a({type:Boolean,reflect:!0})],P.prototype,"disabled",2),j([a({type:Boolean,reflect:!0})],P.prototype,"readonly",2),j([a({type:String})],P.prototype,"label",2),j([a()],P.prototype,"placeholder",2),j([a()],P.prototype,"autocomplete",2),j([a({type:String})],P.prototype,"type",1),j([O("#input")],P.prototype,"_input",2),P=j([u("uui-input")],P);var dl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,qe=(t,e,r,o)=>{for(var i=o>1?void 0:o?hl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&dl(e,r,i),i};let oe=class extends K(d){constructor(){super();this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const r of t)this.multiple?e.push(r):e=[r];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),y(this,"uui-icon"),y(this,"uui-file-dropzone"),y(this,"uui-button"),y(this,"uui-action-bar"),y(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const r=t.detail.files.filter(i=>i instanceof File||i.isFile);if(!this.multiple){const i=r[0],n=i instanceof File?i:await this._getFile(i);if(this.value instanceof File){this.value=n;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,n),this._updateFileWrappers([n]);return}}let o=this.value;if(r.length>0&&!(this.value instanceof FormData)&&(o=new FormData),o instanceof FormData)for(const i of r){const s=i instanceof File;o.append(this.name,s?i:await this._getFile(i))}this.value=o}async _getFile(t){return await new Promise((e,r)=>t.file(e,r))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const o=this.value.getAll(this.name).filter(i=>i!==e);if(o.length===0)this.value="";else{this.value.delete(this.name);for(const i of o)this.value.append(this.name,i)}this._updateFileWrappers(o)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return l`<uui-file-preview .file="${t}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(e)}" look="danger" label="${`Delete ${t.name}`}"><uui-icon name="delete" .fallback="${$n.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return l`${Co(this._files,t=>t.name+t.size,(t,e)=>this._renderFileItem(t,e))}`}render(){return l`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @file-change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()}<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button></div>`}};oe.styles=[c`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-interface-border,#c4c4c4)}#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:center}`],qe([O("#dropzone")],oe.prototype,"_dropzone",2),qe([O("#dropzone")],oe.prototype,"_dropZone",2),qe([a({type:String})],oe.prototype,"accept",2),qe([a({type:Boolean})],oe.prototype,"multiple",2),qe([g()],oe.prototype,"_files",2),oe=qe([u("uui-input-file")],oe);var pl=Object.defineProperty,vl=Object.getOwnPropertyDescriptor,Lo=(t,e,r,o)=>{for(var i=o>1?void 0:o?vl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pl(e,r,i),i};let Gt=class extends P{constructor(){super();this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),y(this,"uui-icon"),y(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?l`<uui-icon name="lock" .fallback="${En.strings[0]}"></uui-icon>`:l`<uui-icon name="unlock" .fallback="${kn.strings[0]}"></uui-icon>`}renderPrepend(){return l`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?"Unlock input":"Lock input"}">${this.renderIcon()}</uui-button>`}};Gt.styles=[...P.styles,c`#lock{height:100%;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.5}`],Lo([a({type:Boolean,reflect:!0})],Gt.prototype,"locked",2),Gt=Lo([u("uui-input-lock")],Gt);var fl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,qi=(t,e,r,o)=>{for(var i=o>1?void 0:o?bl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fl(e,r,i),i};let ft=class extends P{constructor(){super(...arguments);this.passwordType="password"}get type(){return this.passwordType}set type(t){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),y(this,"uui-icon"),y(this,"uui-button")}renderIcon(){return this.passwordType==="password"?l`<uui-icon name="see" .fallback="${Pn.strings[0]}"></uui-icon>`:l`<uui-icon name="unsee" .fallback="${On.strings[0]}"></uui-icon>`}renderAppend(){return l`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" style="--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}};ft.styles=[...P.styles,c`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],qi([g()],ft.prototype,"passwordType",2),qi([a()],ft.prototype,"type",1),ft=qi([u("uui-input-password")],ft);var gl=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,_l=(t,e,r,o)=>{for(var i=o>1?void 0:o?ml(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gl(e,r,i),i};let Gi=class extends d{render(){return l`<slot></slot>`}};Gi.styles=[c`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],Gi=_l([u("uui-keyboard-shortcut")],Gi);var yl=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,wl=(t,e,r,o)=>{for(var i=o>1?void 0:o?xl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&yl(e,r,i),i};let Wi=class extends d{render(){return l`<slot></slot>`}};Wi.styles=[c`:host{background:var(--uui-interface-surface,#fff);border:1px solid var(--uui-interface-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],Wi=wl([u("uui-key")],Wi);var $l=Object.defineProperty,El=Object.getOwnPropertyDescriptor,Wt=(t,e,r,o)=>{for(var i=o>1?void 0:o?El(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&$l(e,r,i),i};let Ge=class extends d{constructor(){super();this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const t=this.getForElement();t&&(t.focus(),t.click())}getForElement(){if(typeof this.for=="string"){const t=this.getRootNode();return t?.getElementById(this.for)||null}return this.for||null}render(){return l`<slot></slot>${this.required?l`<div id="required">*</div>`:""}`}};Ge.styles=[c`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-look-danger-surface,#d42054);font-weight:900}`],Wt([a({type:Boolean,reflect:!0})],Ge.prototype,"disabled",2),Wt([a({reflect:!0,attribute:!0})],Ge.prototype,"for",2),Wt([a({type:Boolean,reflect:!0})],Ge.prototype,"required",2),Ge=Wt([u("uui-label")],Ge);var Cl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,Ki=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cl(e,r,i),i};const kl=(t,e,r)=>Math.min(Math.max(t,e),r);let bt=class extends d{constructor(){super(...arguments);this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=kl(t,0,100),this.requestUpdate("progress",e)}get animationDuration(){return this._animationDuration}set animationDuration(t){const e=this._animationDuration;this._animationDuration=t>=0?t:1,this.requestUpdate("animationDuration",e)}render(){return l`${this.progress?l`<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>`}};bt.styles=[c`:host{position:relative;display:block;width:100%;height:4px;overflow:hidden;color:var(--uui-color-primary,#3544b1)}#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}}`],Ki([a({type:Number})],bt.prototype,"progress",1),Ki([a({type:Number})],bt.prototype,"animationDuration",1),bt=Ki([u("uui-loader-bar")],bt);var Ol=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,Yi=(t,e,r,o)=>{for(var i=o>1?void 0:o?zl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ol(e,r,i),i};let gt=class extends d{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 t=this.clientHeight>=30;this._isLarge!=t&&(this._isLarge=t,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?l`<span id="progress-display">${this.progress}</span>`:""}render(){return l`<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="${jt(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}};gt.styles=[c`: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-primary,#3544b1)}#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}`],Yi([a({type:Number})],gt.prototype,"progress",2),Yi([a({type:Boolean,reflect:!0,attribute:"show-progress"})],gt.prototype,"showProgress",2),gt=Yi([u("uui-loader-circle")],gt);var Sl=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,Al=(t,e,r,o)=>{for(var i=o>1?void 0:o?Il(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Sl(e,r,i),i};let Xi=class extends d{render(){return l`<div></div><div></div><div></div>`}};Xi.styles=[c`:host{color:var(--uui-color-primary,#3544b1)}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}}`],Xi=Al([u("uui-loader")],Xi);class se extends C{}se.SHOW_CHILDREN="show-children",se.HIDE_CHILDREN="hide-children",se.CLICK_LABEL="click-label";var Ul=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,ne=(t,e,r,o)=>{for(var i=o>1?void 0:o?Dl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ul(e,r,i),i};let V=class extends St(at(zt(nt("label",d)))){constructor(){super(...arguments);this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),y(this,"uui-symbol-expand"),y(this,"uui-loader-bar")}iconSlotChanged(t){this.iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}onCaretClicked(){this.showChildren=!this.showChildren;const t=this.showChildren?se.SHOW_CHILDREN:se.HIDE_CHILDREN,e=new se(t);this.dispatchEvent(e)}onLabelClicked(){const t=new se(se.CLICK_LABEL);this.dispatchEvent(t)}_renderLabelInside(){return l`<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?l`<span id="label-button">${this._renderLabelInside()}</span>`:l`<a id="label-button" href="${qt(this.href)}" target="${qt(this.target||void 0)}" rel="${qt(this.target==="_blank"?"noopener":void 0)}" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return l`<button id="label-button" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</button>`}render(){return l`<div id="menu-item" aria-label="menuitem" role="menuitem">${this.hasChildren?l`<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?l`<slot id="actions-container" name="actions"></slot>`:""} ${this.loading?l`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?l`<slot></slot>`:""}`}};V.styles=[c`:host{display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:var(--uui-size-8,24px) 1fr;grid-template-rows:1fr;white-space:nowrap}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{flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button+#label-button{padding-left:0}#caret-button{width:100%;height:100%;display:flex;align-items:center;justify-content:center}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0}#caret-button:hover~#label-button-background,#label-button:hover+#label-button-background{background-color:var(--uui-interface-surface-hover,#fafafa)}#actions-container{opacity:0;transition:opacity 120ms;grid-column-start:3}: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}#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([disabled]){color:var(--uui-interface-surface-contrast-disabled)}:host([disabled]) #label-button-background{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([active]){color:var(--uui-interface-active-contrast,#162335)}:host([active]) #label-button:hover{color:var(--uui-interface-active-contrast-hover,#1b264f)}:host([active]) #label-button-background{background-color:var(--uui-interface-active,#f5c1bc)}:host([active]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-active-hover,#f5c1bc)}:host([active][disabled]) #label-button{color:var(--uui-interface-active-contrast-disabled,#363636);background-color:var(--uui-interface-active-disabled,#dbd4d4)}:host([selected]){color:var(--uui-interface-select-contrast,#fefefe)}:host([selected]) #label-button:hover{color:var(--uui-interface-select-contrast-hover,#fefefe)}:host([selected]) #label-button-background{background-color:var(--uui-interface-select,#3544b1)}:host([selected]) #caret-button:hover~#label-button-background,:host([selected]) #label-button:hover+#label-button-background{background-color:var(--uui-interface-select-hover,#4656c8)}:host([selected][disabled]) #label-button{color:var(--uui-interface-select-contrast-disabled,#e4e4e4);background-color:var(--uui-interface-select-disabled,#575757)}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)}`],ne([a({type:Boolean,reflect:!0})],V.prototype,"disabled",2),ne([a({type:Boolean,reflect:!0,attribute:"show-children"})],V.prototype,"showChildren",2),ne([a({type:Boolean,attribute:"has-children"})],V.prototype,"hasChildren",2),ne([a({type:Boolean,attribute:"loading"})],V.prototype,"loading",2),ne([a({type:String})],V.prototype,"href",2),ne([a({type:String})],V.prototype,"target",2),ne([g()],V.prototype,"iconSlotHasContent",2),V=ne([u("uui-menu-item")],V);class ge extends C{}ge.CHANGE="change";var Ll=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,J=(t,e,r,o)=>{for(var i=o>1?void 0:o?jl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ll(e,r,i),i};const Hl=45,Zi=(t,e,r)=>Math.min(Math.max(t,e),r),Nl=(t,e)=>Array.from({length:e-t+1},(r,o)=>t+o);let T=class extends d{constructor(){super(...arguments);this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this.total=1,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),y(this,"uui-button"),y(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(t){(t.has("current")||t.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const t=this.offsetWidth,e=Array.from(this._navButtons).reduce((i,s)=>i+s.getBoundingClientRect().width,0),o=(t-e)/Hl/2;this._range=Math.max(1,Math.floor(o)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(t){const e=t<this._range?1:t<this.total-this._range?t-this._range:this.total-this._range*2,r=t<=this._range?this._range*2+1:t<this.total-this._range?t+this._range:this.total;return Nl(Zi(e,1,this.total),Zi(r,1,this.total))}get current(){return this._current}set current(t){const e=this._current;this._current=Zi(t,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",e)}goToNextPage(){this.current++,this.dispatchEvent(new ge(ge.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new ge(ge.CHANGE))}goToPage(t){this.current=t,this.dispatchEvent(new ge(ge.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const t=this.renderRoot.querySelector(".active");t&&t.focus()})}renderFirst(){return l`<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 l`<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 l`<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 l`<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 l`<uui-button compact="compact" look="outline" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(t){return l`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${t}" class="${"page"+(t===this._current?" active":"")}" tabindex="${t===this._current?"-1":""}" @click="${()=>{t!==this._current&&(this.goToPage(t),this.focusActivePage())}}">${t}</uui-button>`}renderNavigationLeft(){return l`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return l`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return l`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(t=>this.renderPage(t))} ${this.renderNavigationRight()}</uui-button-group>`}};T.styles=[c`uui-button-group{width:100%}uui-button{--uui-button-border-color:var(--uui-interface-border,#c4c4c4);--uui-button-border-color-disabled:var(--uui-interface-border,#c4c4c4)}.page{min-width:36px;max-width:72px}.page.active{--uui-button-background-color:var(--uui-interface-active,#f5c1bc)}.nav{min-width:72px}.dots{pointer-events:none}.active{pointer-events:none}`],J([ps("uui-button.nav")],T.prototype,"_navButtons",2),J([O("#pages")],T.prototype,"_pagesGroup",2),J([a()],T.prototype,"label",2),J([a({reflect:!0,attribute:"aria-label"})],T.prototype,"ariaLabel",2),J([a({type:Number})],T.prototype,"total",2),J([g()],T.prototype,"_range",2),J([g()],T.prototype,"_visiblePages",2),J([a({type:Number})],T.prototype,"current",1),T=J([u("uui-pagination")],T);class Qi extends C{}Qi.CLOSE="close";var Tl=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,mt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ml(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Tl(e,r,i),i};function Kt(t,e,r){return t<e?e:t>r?r:t}let me=class extends d{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=t=>{this._trigger=t.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=t=>{t.forEach(e=>{e.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onDocumentClick=t=>{t.composedPath().includes(this)||this._forceClosePopover()}}get placement(){return this._placement}set placement(t){const e=this._placement;this._placement=t||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",e)}get open(){return this._open}set open(t){const e=this._open;this._open=t,t?this._openPopover():this._closePopover(),this.requestUpdate("open",e)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),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),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),this._currentPlacement=null}_forceClosePopover(){this.open=!1,this.dispatchEvent(new Qi(Qi.CLOSE))}_getScrollParents(){const t=this.shadowRoot.host;let e=getComputedStyle(t);if(e.position==="fixed")return;const r=e.position==="absolute",o=/(auto|scroll)/;let i=t;for(;i=i.parentElement;)if(e=getComputedStyle(i),!(r&&e.position==="static")&&(o.test(e.overflow+e.overflowY+e.overflowX)&&this._scrollParents.push(i),e.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const t={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,t),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(t=>{t.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(t=>{t.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var t,e;if(!this.shadowRoot)return;const r=this.containerElement;if(!r)return;const o=(t=this.containerElement)==null?void 0:t.getBoundingClientRect(),i=(e=this._trigger)==null?void 0:e.getBoundingClientRect();if(i!=null&&o!=null){const s=this._scrollParents.map(q=>q.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,s));let n=this._currentPlacement.indexOf("top")!==-1,p=this._currentPlacement.indexOf("bottom")!==-1,v=this._currentPlacement.indexOf("left")!==-1,h=this._currentPlacement.indexOf("right")!==-1;const E=this._currentPlacement.indexOf("-start")!==-1,m=this._currentPlacement.indexOf("-end")!==-1;let f=.5,_=.5,x=.5,w=.5,D=0,xe=0;if(this.placement==="auto"){const q=this._scrollParents[0],kt=q.clientWidth,Ee=q.clientHeight,Xe=i.x-o.width,Ze=kt-(i.x+i.width)-o.width,fr=i.y-o.height,pi=Ee-(i.y+i.height)-o.height;let vi=.5,fi=.5;const kc=Math.max(Xe,Ze);let Jo=Math.max(fr,pi);pi>fr&&pi>this.margin&&(Jo+=9999),kc>Jo?(Xe>Ze?(vi=0,v=!0):(vi=1,h=!0),D=this.margin):(fr>pi?(fi=0,n=!0):(fi=1,p=!0),xe=this.margin),f=vi,_=fi,x=1-vi,w=1-fi}else n&&(w=1,_=0),p&&(w=0,_=1),(n||p)&&(xe=this.margin,E&&(x=0,f=0),m&&(x=1,f=1)),v&&(x=1,f=0),h&&(x=0,f=1),(v||h)&&(D=this.margin,E&&(w=0,_=0),m&&(w=1,_=1));const Ye=-o.width*x+i.width*f-D*(x*2-1),vr=-o.height*w+i.height*_-xe*(w*2-1);let we=Ye,$e=vr;n||p?(this._scrollParents.forEach((q,kt)=>{const Ee=q===document.body?0:s[kt].x,Xe=-i.x+Ee,Ze=q.clientWidth-i.x-i.width+Ye+Ee-(o.width-i.width)*(1-f);we=Kt(we,Xe,Ze)}),we=Kt(we,-o.width,i.width)):(v||h)&&(this._scrollParents.forEach((q,kt)=>{const Ee=q===document.body?0:s[kt].y,Xe=-i.y+Ee,Ze=q.clientHeight-i.y-i.height+vr+Ee-(o.height-i.height)*(1-_);$e=Kt($e,Xe,Ze)}),$e=Kt($e,-o.height,i.height)),(this._positionX!==we||this._positionY!==$e)&&(this._positionX=we,this._positionY=$e,Ye===we&&vr===$e&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(t,e,r){const i=t.split("-"),s=i[0],n=i[1]||null;let p;return this._scrollParents.some((v,h)=>{const E=v===document.body?0:r[h].x,m=v===document.body?0:r[h].y;return s==="top"&&e.y-2<=m?(p="bottom",!0):s==="bottom"&&e.y+e.height+2>=v.clientHeight+m?(p="top",!0):s==="left"&&e.x-2<=E?(p="right",!0):s==="right"&&e.x+e.width+2>=v.clientWidth+E?(p="left",!0):!1}),p?(this._startScrollListener(),p+(n?`-${n}`:"")):t}render(){return l`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?l`<slot name="popover"></slot>`:""}</div>`}};me.styles=[c`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:1}slot[name=popover]{display:block}#trigger{position:relative;width:100%}`],mt([O("#container")],me.prototype,"containerElement",2),mt([a({type:Number})],me.prototype,"margin",2),mt([a({type:String,reflect:!0})],me.prototype,"placement",1),mt([a({type:Boolean,reflect:!0})],me.prototype,"open",1),me=mt([u("uui-popover")],me);var Bl=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,jo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Vl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Bl(e,r,i),i};const Fl=(t,e,r)=>Math.min(Math.max(t,e),r);let Yt=class extends d{constructor(){super(...arguments);this._progress=0}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=Fl(t,0,100),this.requestUpdate("progress",e)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return l`<div id="bar" style="${jt(this._getProgressStyle())}"></div>`}};Yt.styles=[c`:host{width:100%;height:4px;position:relative;overflow:hidden;background:var(--uui-interface-surface-alt,#d8d7d9);border-radius:100px;display:inline-block}#bar{transition:width 250ms ease;background:var(--uui-look-positive-surface,#25aa60);height:100%;width:0%}`],jo([a({type:Number})],Yt.prototype,"progress",1),Yt=jo([u("uui-progress-bar")],Yt);class _t extends C{}_t.CHANGE="change";var Rl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,_e=(t,e,r,o)=>{for(var i=o>1?void 0:o?ql(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Rl(e,r,i),i};let F=class extends d{constructor(){super();this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","1")})}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,t===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t&&(this.setAttribute("aria-hidden","true"),this.setAttribute("tabindex","-1")),this.requestUpdate("disabled",e)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(){const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new _t(_t.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 l`<label><input id="input" type="radio" name="${this.name}" value="${this.value}" .checked="${this.checked}" .disabled="${this.disabled}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?l`<span>${this.label}</span>`:l`<slot></slot>`}</div></label>`}};F.styles=[Dt,c`: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-interface-surface,#fefefe);border:1px solid var(--uui-interface-border,#c4c4c4);border-radius:100%;margin-right:calc(var(--uui-size-2,6px) * 2);position:relative}#button::after{content:'';width:calc(var(--uui-radio-button-size)/ 2);height:calc(var(--uui-radio-button-size)/ 2);background-color:var(--uui-interface-chosen,#1b264f);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-interface-border-hover,#b3b3b3)}:host(:focus){outline:0}:host(:focus) #button{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}input:checked~#button::after{transform:translate(-50%,-50%) scale(1)}input:checked~#button{border:1px solid var(--uui-interface-chosen,#1b264f)}input:checked:hover~#button{border:1px solid var(--uui-interface-chosen-hover,#26356e)}input:checked:hover~#button::after{background-color:var(--uui-interface-chosen-hover,#26356e)}:host([disabled]) label{cursor:default;opacity:.5}:host([disabled]) .label{color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) input~#button{border:1px solid var(--uui-interface-border-disabled,#bdbdbd)}:host([disabled]) input:checked~#button{border:1px solid var(--uui-interface-chosen-disabled,#6a759a)}:host([disabled]) input:checked~#button::after{background-color:var(--uui-interface-chosen-disabled,#6a759a)}:host([disabled]:active) #button{animation:${Lt}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],_e([O("#input")],F.prototype,"inputElement",2),_e([a({type:String})],F.prototype,"name",2),_e([a({type:String})],F.prototype,"value",2),_e([a({type:String})],F.prototype,"label",2),_e([a({type:Boolean,reflect:!0})],F.prototype,"checked",1),_e([a({type:Boolean,reflect:!0})],F.prototype,"disabled",1),F=_e([u("uui-radio")],F);class Ji extends C{}Ji.CHANGE="change";var Gl=Object.defineProperty,Wl=Object.getOwnPropertyDescriptor,Ho=(t,e,r,o)=>{for(var i=o>1?void 0:o?Wl(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Gl(e,r,i),i};const Kl="ArrowLeft",Yl="ArrowUp",Xl="ArrowRight",Zl="ArrowDown",Ql=" ";let yt=class extends K(d){constructor(){super();this.disabled=!1,this._selected=null,this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=t=>{t.target.checked===!0&&(this.value=t.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown)}get value(){return this._value}set value(t){super.value=t,(t===null||t==="")&&this._makeFirstEnabledFocusable(),this._radioElements.forEach((e,r)=>{e.value===t?(e.checked=!0,this._selected=r):e.checked=!1})}focus(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.focus():(e=this._findNextEnabledElement())==null||e.focus()}click(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.click():(e=this._findNextEnabledElement())==null||e.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}_setNameOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.name=t)}_setDisableOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.disabled=t)}_handleSlotChange(t){var e;if((e=this._radioElements)==null||e.forEach(r=>{r.removeEventListener(_t.CHANGE,this._handleSelectOnClick),r.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=t.target.assignedElements({flatten:!0}).filter(r=>r instanceof F),this._radioElements.length>0){this._radioElements.forEach(o=>{o.addEventListener(_t.CHANGE,this._handleSelectOnClick),o.addEventListener("blur",this._onChildBlur)});const r=this._radioElements.filter(o=>o.checked===!0);r.length>1&&(this._radioElements.forEach(o=>{o.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),r.length===1?(this.value=r[0].value,this._selected=this._radioElements.indexOf(r[0]),r[0].disabled===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r[0].makeFocusable()):this._makeFirstEnabledFocusable(),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0)):this._makeFirstEnabledFocusable()}}_makeFirstEnabledFocusable(){var t,e;this._selected=null,(t=this._radioElements)==null||t.forEach(r=>{r.makeUnfocusable()}),(e=this._findNextEnabledElement())==null||e.makeFocusable()}_findNextEnabledElement(t=1){if(!this._radioElements)return null;const e=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let i=(e+o*t)%r;if(i<0&&(i+=r),this._radioElements[i].disabled===!1)return this._radioElements[i];o++}return null}_selectPreviousElement(){var t,e;this.value=((t=this._findNextEnabledElement(-1))==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_selectNextElement(){var t,e;this.value=((t=this._findNextEnabledElement())==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_onKeydown(t){var e;switch(t.key){case Kl:case Yl:{t.preventDefault(),this._selectPreviousElement();break}case Xl:case Zl:{t.preventDefault(),this._selectNextElement();break}case Ql:this._selected===null&&(this.value=(e=this._findNextEnabledElement())==null?void 0:e.value,this._fireChangeEvent())}}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new Ji(Ji.CHANGE))}updated(t){super.updated(t),t.has("disabled")&&this._setDisableOnRadios(t.get("disabled")),t.has("name")&&this._setNameOnRadios(t.get("name"))}render(){return l`<slot @slotchange="${this._handleSlotChange}"></slot>`}};yt.formAssociated=!0,yt.styles=[c`: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-look-danger-border,#d42054)}`],Ho([a({type:Boolean,reflect:!0})],yt.prototype,"disabled",2),yt=Ho([u("uui-radio-group")],yt);var Jl=Object.defineProperty,eu=Object.getOwnPropertyDescriptor,tu=(t,e,r,o)=>{for(var i=o>1?void 0:o?eu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Jl(e,r,i),i};let er=class extends d{render(){return l`<slot></slot>`}};er.styles=[c`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;width:100%;border-top:1px solid #d3d3d3}`],er=tu([u("uui-ref-list")],er);class xt extends C{}xt.OPEN="open";var iu=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,tr=(t,e,r,o)=>{for(var i=o>1?void 0:o?ru(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&iu(e,r,i),i};let ye=class extends St(at(d)){constructor(){super(...arguments);this.disabled=!1,this.error=!1}handleOpenClick(t){t.stopPropagation(),this.dispatchEvent(new xt(xt.OPEN))}handleOpenKeydown(t){t.key!==" "&&t.key!=="Enter"||(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new xt(xt.OPEN)))}};ye.styles=[c`: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-interface-surface,#fefefe);--uui-card-before-opacity:0;transition:--uui-card-before-opacity 120ms}:host(:focus){outline-color:#6ab4f0}:host([error]){border:2px solid var(--uui-look-danger-border,#d42054);box-shadow:0 0 4px 0 var(--uui-look-danger-border,#d42054),inset 0 0 2px 0 var(--uui-look-danger-border,#d42054)}:host([border]){border:1px solid var(--uui-interface-border,#c4c4c4)}: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-interface-select,#3544b1);border-radius:calc(var(--uui-border-radius,3px) + 2px);box-shadow:0 0 4px 0 var(--uui-interface-select,#3544b1),inset 0 0 2px 0 var(--uui-interface-select,#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}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([border]:not([disabled]):hover){border-color:var(--uui-interface-border-hover,#b3b3b3)}:host([disabled]) #open-part{cursor:default}:host([border][disabled]){border-color:var(--uui-interface-border-disabled,#bdbdbd)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],tr([a({type:Boolean,reflect:!0})],ye.prototype,"disabled",2),tr([a({type:Boolean,reflect:!0})],ye.prototype,"error",2),ye=tr([u("uui-ref")],ye);var ou=Object.defineProperty,su=Object.getOwnPropertyDescriptor,Xt=(t,e,r,o)=>{for(var i=o>1?void 0:o?su(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ou(e,r,i),i};let k=class extends ye{constructor(){super(...arguments);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(),y(this,"uui-icon")}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return l`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></button><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}};k.styles=[...ye.styles,c`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#open-part{align-self:stretch;display:flex;position:relative;align-items:center;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-interface-contrast-hover,#1b264f)}:host(:not([disabled])) #open-part:hover #name{font-weight:700;text-decoration:underline;color:var(--uui-interface-contrast-hover,#1b264f)}:host(:not([disabled])) #open-part:hover #detail{color:var(--uui-interface-contrast-hover,#1b264f)}:host([disabled]) #icon{color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) #name{color:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) #detail{color:var(--uui-interface-contrast-disabled,#73716e)}`],Xt([a({type:String})],k.prototype,"name",2),Xt([a({type:String})],k.prototype,"detail",2),Xt([g()],k.prototype,"_iconSlotHasContent",2),k=Xt([u("uui-ref-node")],k);var nu=Object.defineProperty,au=Object.getOwnPropertyDescriptor,No=(t,e,r,o)=>{for(var i=o>1?void 0:o?au(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&nu(e,r,i),i};let Zt=class extends k{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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}};Zt.styles=[...k.styles],No([a({type:String})],Zt.prototype,"alias",2),Zt=No([u("uui-ref-node-data-type")],Zt);var lu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,To=(t,e,r,o)=>{for(var i=o>1?void 0:o?uu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&lu(e,r,i),i};let Qt=class extends k{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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}};Qt.styles=[...k.styles],To([a({type:String})],Qt.prototype,"alias",2),Qt=To([u("uui-ref-node-document-type")],Qt);var cu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,hu=(t,e,r,o)=>{for(var i=o>1?void 0:o?du(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&cu(e,r,i),i};let ir=class extends k{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>'}};ir.styles=[...k.styles],ir=hu([u("uui-ref-node-form")],ir);var pu=Object.defineProperty,vu=Object.getOwnPropertyDescriptor,Mo=(t,e,r,o)=>{for(var i=o>1?void 0:o?vu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pu(e,r,i),i};let Jt=class extends k{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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}};Jt.styles=[...k.styles],Mo([a({type:String,attribute:"group-name"})],Jt.prototype,"groupName",2),Jt=Mo([u("uui-ref-node-member")],Jt);var fu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,rr=(t,e,r,o)=>{for(var i=o>1?void 0:o?bu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fu(e,r,i),i};let wt=class extends k{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 t=[];return this.detail!==""&&t.push(this.detail),this.version!==""&&t.push(this.version),this.author!==""&&t.push(this.author),l`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}};wt.styles=[...k.styles],rr([a({type:String})],wt.prototype,"version",2),rr([a({type:String})],wt.prototype,"author",2),wt=rr([u("uui-ref-node-package")],wt);var gu=Object.defineProperty,mu=Object.getOwnPropertyDescriptor,Bo=(t,e,r,o)=>{for(var i=o>1?void 0:o?mu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gu(e,r,i),i};let ei=class extends k{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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}};ei.styles=[...k.styles],Bo([a({type:String,attribute:"group-name"})],ei.prototype,"groupName",2),ei=Bo([u("uui-ref-node-user")],ei);var _u=Object.defineProperty,yu=Object.getOwnPropertyDescriptor,xu=(t,e,r,o)=>{for(var i=o>1?void 0:o?yu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&_u(e,r,i),i};let or=class extends d{connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0")}render(){return l`<slot></slot>`}};or.styles=[c`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-interface-contrast-disabled,#73716e) var(--uui-interface-background-alt);overflow-y:scroll}:host::-webkit-scrollbar{width:6px;height:6px}:host::-webkit-scrollbar-track{background:var(--uui-interface-background-alt);border-radius:3px}:host::-webkit-scrollbar-thumb{background-color:var(--uui-interface-contrast-disabled,#73716e);border-radius:3px}`],or=xu([u("uui-scroll-container")],or);class sr extends C{}sr.CHANGE="change";var wu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,R=(t,e,r,o)=>{for(var i=o>1?void 0:o?$u(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&wu(e,r,i),i};let H=class extends K(d){constructor(){super();this.placeholder="",this.disabled=!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","")})}focus(){this._input.focus()}click(){this._input.click()}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(t=>t.group).map(t=>t.group))))}willUpdate(t){if(t.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const e=this.options.find(r=>r.selected);this.value=e?e.value:""}t.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),t.has("disabledGroups")&&this._createDisabledGroups()}setValue(t){const e=t.target;t.target&&(this.value=e.value),this.dispatchEvent(new sr(sr.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(t,e,r,o){return l`<option value="${e}" ?selected="${r}" ?disabled="${o}">${t}</option>`}_renderGrouped(){return this._groups.length===0?l``:l`${this._groups.map(t=>l`<optgroup label="${t}" ?disabled="${this._disabledGroups.some(e=>e.toLowerCase()===t.toLowerCase())}">${this.options.map(e=>e.group===t?this._renderOption(e.name,e.value,e.selected,e.disabled):"")}</optgroup>`)}`}render(){return l`<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(t=>!t.group).map(t=>this._renderOption(t.name,t.value,t.selected,t.disabled))}</select>`}};H.styles=[c`:host{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));width:100%;padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:currentColor;border-radius:0;box-sizing:border-box;background-color:transparent;border:1px solid var(--uui-select-border-color,var(--uui-interface-border,#c4c4c4));transition:all 150ms ease}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}#native[disabled]{cursor:not-allowed;background-color:var(--uui-select-disabled-background-color,var(--uui-interface-surface-disabled,#e4e4e4))}#native:hover{border:1px solid var(--uui-select-border-color-hover,var(--uui-interface-border-hover,#b3b3b3))}option:checked{background:var(--uui-select-selected-option-background-color,var(--uui-interface-active,#f5c1bc))}#native:focus{outline-color:var(--uui-select-outline-color,var(--uui-color-malibu,#3879ff))}#caret{position:absolute;right:12px;top:50%;transform:translateY(-50%)}:host([error]) #native{border:1px solid var(--uui-look-danger-border,#d42054)}:host([error]) #native[disabled]{border:1px solid var(--uui-look-danger-border,#d42054)}`],R([a({type:String})],H.prototype,"label",2),R([a()],H.prototype,"placeholder",2),R([a({type:Boolean,reflect:!0})],H.prototype,"disabled",2),R([a({type:Boolean,reflect:!0})],H.prototype,"error",2),R([a({type:Array,attribute:!1})],H.prototype,"options",2),R([g()],H.prototype,"_groups",2),R([a()],H.prototype,"disabledGroups",2),R([g()],H.prototype,"_disabledGroups",2),R([O("#native")],H.prototype,"_input",2),H=R([u("uui-select")],H);const Eu=c`
231
+ */const at=t=>t??E;class ee extends x{}ee.CHANGE="change",ee.INPUT="input";var Vn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,A=(t,e,o,r)=>{for(var i=r>1?void 0:r?Gn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Vn(e,o,i),i};s.UUIInputElement=class extends j(h){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._type="text",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)}get type(){return this._type}set type(t){this._type=t}firstUpdated(t){super.firstUpdated(t),this.addFormControlElement(this._input)}focus(){this._input.focus()}getFormElement(){return this._input}onInput(t){this.value=t.target.value,this.dispatchEvent(new ee(ee.INPUT))}onChange(){this.pristine=!1,this.dispatchEvent(new ee(ee.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} <input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" autocomplete="${at(this.autocomplete)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?required="${this.required}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}"> ${this.renderAppend()}`}},s.UUIInputElement.formAssociated=!0,s.UUIInputElement.styles=[d`:host{position:relative;display:inline-flex;align-items:center;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))}: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([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%;text-align:inherit;outline:0}input::placeholder{transition:opacity 120ms}:host(:not([readonly])) input:focus::placeholder{opacity:0}input[type=color]{width:30px;padding:0;border:none}::slotted(uui-input){height:100%;--uui-input-border-width:0}`],A([l({type:Number})],s.UUIInputElement.prototype,"minlength",2),A([l({type:String,attribute:"minlength-message"})],s.UUIInputElement.prototype,"minlengthMessage",2),A([l({type:Number})],s.UUIInputElement.prototype,"maxlength",2),A([l({type:String,attribute:"maxlength-message"})],s.UUIInputElement.prototype,"maxlengthMessage",2),A([l({type:Boolean,reflect:!0})],s.UUIInputElement.prototype,"disabled",2),A([l({type:Boolean,reflect:!0})],s.UUIInputElement.prototype,"readonly",2),A([l({type:String})],s.UUIInputElement.prototype,"label",2),A([l()],s.UUIInputElement.prototype,"placeholder",2),A([l()],s.UUIInputElement.prototype,"autocomplete",2),A([l({type:String})],s.UUIInputElement.prototype,"type",1),A([C("#input")],s.UUIInputElement.prototype,"_input",2),s.UUIInputElement=A([c("uui-input")],s.UUIInputElement);var qn=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Ue=(t,e,o,r)=>{for(var i=r>1?void 0:r?Wn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&qn(e,o,i),i};s.UUIInputFileElement=class extends j(h){constructor(){super();this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const o of t)this.multiple?e.push(o):e=[o];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-file-dropzone"),U(this,"uui-button"),U(this,"uui-action-bar"),U(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const o=t.detail.files.filter(i=>i instanceof File||i.isFile);if(!this.multiple){const i=o[0],a=i instanceof File?i:await this._getFile(i);if(this.value instanceof File){this.value=a;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,a),this._updateFileWrappers([a]);return}}let r=this.value;if(o.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const i of o){const n=i instanceof File;r.append(this.name,n?i:await this._getFile(i))}this.value=r}async _getFile(t){return await new Promise((e,o)=>t.file(e,o))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(i=>i!==e);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const i of r)this.value.append(this.name,i)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return u`<uui-file-preview .file="${t}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(e)}" look="danger" label="${`Delete ${t.name}`}"><uui-icon name="delete" .fallback="${os.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${ao(this._files,t=>t.name+t.size,(t,e)=>this._renderFileItem(t,e))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @file-change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()}<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button></div>`}},s.UUIInputFileElement.styles=[d`: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:center}`],Ue([C("#dropzone")],s.UUIInputFileElement.prototype,"_dropzone",2),Ue([C("#dropzone")],s.UUIInputFileElement.prototype,"_dropZone",2),Ue([l({type:String})],s.UUIInputFileElement.prototype,"accept",2),Ue([l({type:Boolean})],s.UUIInputFileElement.prototype,"multiple",2),Ue([g()],s.UUIInputFileElement.prototype,"_files",2),s.UUIInputFileElement=Ue([c("uui-input-file")],s.UUIInputFileElement);var Kn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,mo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Yn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Kn(e,o,i),i};s.UUIInputLockElement=class extends s.UUIInputElement{constructor(){super();this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${rs.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${as.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>`}},s.UUIInputLockElement.styles=[...s.UUIInputElement.styles,d`#lock{height:100%;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.5}`],mo([l({type:Boolean,reflect:!0})],s.UUIInputLockElement.prototype,"locked",2),s.UUIInputLockElement=mo([c("uui-input-lock")],s.UUIInputLockElement);var Xn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,jt=(t,e,o,r)=>{for(var i=r>1?void 0:r?Zn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Xn(e,o,i),i};s.UUIInputPasswordElement=class extends s.UUIInputElement{constructor(){super(...arguments);this.passwordType="password"}get type(){return this.passwordType}set type(t){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),U(this,"uui-icon"),U(this,"uui-button")}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${ns.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${ls.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" style="--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},s.UUIInputPasswordElement.styles=[...s.UUIInputElement.styles,d`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],jt([g()],s.UUIInputPasswordElement.prototype,"passwordType",2),jt([l()],s.UUIInputPasswordElement.prototype,"type",1),s.UUIInputPasswordElement=jt([c("uui-input-password")],s.UUIInputPasswordElement);var Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,ea=(t,e,o,r)=>{for(var i=r>1?void 0:r?Jn(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Qn(e,o,i),i};s.UUIKeyboardShortcutElement=class extends h{render(){return u`<slot></slot>`}},s.UUIKeyboardShortcutElement.styles=[d`: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}`],s.UUIKeyboardShortcutElement=ea([c("uui-keyboard-shortcut")],s.UUIKeyboardShortcutElement);var ta=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,oa=(t,e,o,r)=>{for(var i=r>1?void 0:r?ia(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ta(e,o,i),i};s.UUIKeyElement=class extends h{render(){return u`<slot></slot>`}},s.UUIKeyElement.styles=[d`: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}`],s.UUIKeyElement=oa([c("uui-key")],s.UUIKeyElement);var ra=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,lt=(t,e,o,r)=>{for(var i=r>1?void 0:r?sa(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ra(e,o,i),i};s.UUILabelElement=class extends h{constructor(){super();this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const t=this.getForElement();t&&(t.focus(),t.click())}getForElement(){if(typeof this.for=="string"){const t=this.getRootNode();return t?.getElementById(this.for)||null}return this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},s.UUILabelElement.styles=[d`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],lt([l({type:Boolean,reflect:!0})],s.UUILabelElement.prototype,"disabled",2),lt([l({reflect:!0,attribute:!0})],s.UUILabelElement.prototype,"for",2),lt([l({type:Boolean,reflect:!0})],s.UUILabelElement.prototype,"required",2),s.UUILabelElement=lt([c("uui-label")],s.UUILabelElement);var na=Object.defineProperty,aa=Object.getOwnPropertyDescriptor,Mt=(t,e,o,r)=>{for(var i=r>1?void 0:r?aa(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&na(e,o,i),i};const la=(t,e,o)=>Math.min(Math.max(t,e),o);s.UUILoaderBarElement=class extends h{constructor(){super(...arguments);this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=la(t,0,100),this.requestUpdate("progress",e)}get animationDuration(){return this._animationDuration}set animationDuration(t){const e=this._animationDuration;this._animationDuration=t>=0?t:1,this.requestUpdate("animationDuration",e)}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>`}},s.UUILoaderBarElement.styles=[d`: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}}`],Mt([l({type:Number})],s.UUILoaderBarElement.prototype,"progress",1),Mt([l({type:Number})],s.UUILoaderBarElement.prototype,"animationDuration",1),s.UUILoaderBarElement=Mt([c("uui-loader-bar")],s.UUILoaderBarElement);var ua=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,Rt=(t,e,o,r)=>{for(var i=r>1?void 0:r?ca(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ua(e,o,i),i};s.UUILoaderCircleElement=class extends h{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 t=this.clientHeight>=30;this._isLarge!=t&&(this._isLarge=t,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="${it(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},s.UUILoaderCircleElement.styles=[d`: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}`],Rt([l({type:Number})],s.UUILoaderCircleElement.prototype,"progress",2),Rt([l({type:Boolean,reflect:!0,attribute:"show-progress"})],s.UUILoaderCircleElement.prototype,"showProgress",2),s.UUILoaderCircleElement=Rt([c("uui-loader-circle")],s.UUILoaderCircleElement);var da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,pa=(t,e,o,r)=>{for(var i=r>1?void 0:r?ha(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&da(e,o,i),i};s.UUILoaderElement=class extends h{render(){return u`<div></div><div></div><div></div>`}},s.UUILoaderElement.styles=[d`: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}}`],s.UUILoaderElement=pa([c("uui-loader")],s.UUILoaderElement);/**
232
+ * @license
233
+ * Copyright 2017 Google LLC
234
+ * SPDX-License-Identifier: BSD-3-Clause
235
+ */const He=(t,e)=>{var o,r;const i=t._$AN;if(i===void 0)return!1;for(const n of i)(r=(o=n)._$AO)===null||r===void 0||r.call(o,e,!1),He(n,e);return!0},ut=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},fo=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),fa(e)}};function va(t){this._$AN!==void 0?(ut(this),this._$AM=t,fo(this)):this._$AM=t}function ma(t,e=!1,o=0){const r=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(r))for(let n=o;n<r.length;n++)He(r[n],!1),ut(r[n]);else r!=null&&(He(r,!1),ut(r));else He(this,t)}const fa=t=>{var e,o,r,i;t.type==Je.CHILD&&((e=(r=t)._$AP)!==null&&e!==void 0||(r._$AP=ma),(o=(i=t)._$AQ)!==null&&o!==void 0||(i._$AQ=va))};class ba extends tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,r){super._$AT(e,o,r),fo(this),this.isConnected=e._$AU}_$AO(e,o=!0){var r,i;e!==this.isConnected&&(this.isConnected=e,e?(r=this.reconnected)===null||r===void 0||r.call(this):(i=this.disconnected)===null||i===void 0||i.call(this)),o&&(He(this,e),ut(this))}setValue(e){if(qs(this._$Ct))this._$Ct._$AI(e,this);else{const o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}}const Ft=new WeakMap,Vt=et(class extends ba{render(t){return E}update(t,[e]){var o;const r=e!==this.U;return r&&this.U!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.U=e,this.ht=(o=t.options)===null||o===void 0?void 0:o.host,this.ot(this.lt=t.element)),E}ot(t){var e;if(typeof this.U=="function"){const o=(e=this.ht)!==null&&e!==void 0?e:globalThis;let r=Ft.get(o);r===void 0&&(r=new WeakMap,Ft.set(o,r)),r.get(this.U)!==void 0&&this.U.call(this.ht,void 0),r.set(this.U,t),t!==void 0&&this.U.call(this.ht,t)}else this.U.value=t}get rt(){var t,e,o;return typeof this.U=="function"?(e=Ft.get((t=this.ht)!==null&&t!==void 0?t:globalThis))===null||e===void 0?void 0:e.get(this.U):(o=this.U)===null||o===void 0?void 0:o.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class M extends x{}M.SHOW_CHILDREN="show-children",M.HIDE_CHILDREN="hide-children",M.CLICK_LABEL="click-label";var ga=Object.defineProperty,_a=Object.getOwnPropertyDescriptor,V=(t,e,o,r)=>{for(var i=r>1?void 0:r?_a(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ga(e,o,i),i};s.UUIMenuItemElement=class extends qe(Le(Ge(De("label",h)))){constructor(){super(...arguments);this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1}labelButtonChanged(t){this.selectableTarget=t||this}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),U(this,"uui-symbol-expand"),U(this,"uui-loader-bar")}iconSlotChanged(t){this.iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}onCaretClicked(){this.showChildren=!this.showChildren;const t=this.showChildren?M.SHOW_CHILDREN:M.HIDE_CHILDREN,e=new M(t);this.dispatchEvent(e)}onLabelClicked(){const t=new M(M.CLICK_LABEL);this.dispatchEvent(t)}_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" ${Vt(this.labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${Vt(this.labelButtonChanged)} href="${at(this.href)}" target="${at(this.target||void 0)}" rel="${at(this.target==="_blank"?"noopener":void 0)}" @click="${this.onLabelClicked}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${Vt(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>`:""}`}},s.UUIMenuItemElement.styles=[d`:host{display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns: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])) #menu-item #label-button:hover~#label-button-background{background-color: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-color-interactive-emphasis,#3544b1)}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-color-current-contrast,#1b264f)}:host([active]) #label-button-background{background-color:var(--uui-color-current,#f5c1bc)}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([selected]) #caret-button,:host([selected]) #label-button{color:var(--uui-color-selected-contrast,#fff)}:host([selected]) #label-button-background{background-color:var(--uui-color-selected,#3544b1)}:host([selected]) #caret-button:hover,:host([selected]) #label-button:hover~#label-button-background{background-color:var(--uui-color-selected-emphasis,#4656c8)}:host([disabled]) #menu-item{color:var(--uui-color-disabled-contrast,#c4c4c4);background-color:var(--uui-color-disabled,#f3f3f5)}: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{flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button+#label-button{padding-left:0}#caret-button{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}#actions-container{opacity:0;transition:opacity 120ms;grid-column-start:3}: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}#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}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)}`],V([l({type:Boolean,reflect:!0})],s.UUIMenuItemElement.prototype,"disabled",2),V([l({type:Boolean,reflect:!0,attribute:"show-children"})],s.UUIMenuItemElement.prototype,"showChildren",2),V([l({type:Boolean,attribute:"has-children"})],s.UUIMenuItemElement.prototype,"hasChildren",2),V([l({type:Boolean,attribute:"loading"})],s.UUIMenuItemElement.prototype,"loading",2),V([l({type:String})],s.UUIMenuItemElement.prototype,"href",2),V([l({type:String})],s.UUIMenuItemElement.prototype,"target",2),V([g()],s.UUIMenuItemElement.prototype,"iconSlotHasContent",2),s.UUIMenuItemElement=V([c("uui-menu-item")],s.UUIMenuItemElement);class G extends x{}G.CHANGE="change";var ya=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,R=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ua(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ya(e,o,i),i};const wa=45,Gt=(t,e,o)=>Math.min(Math.max(t,e),o),Ea=(t,e)=>Array.from({length:e-t+1},(o,r)=>t+r);s.UUIPaginationElement=class extends h{constructor(){super(...arguments);this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this.total=1,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),U(this,"uui-button"),U(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(t){(t.has("current")||t.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const t=this.offsetWidth,e=Array.from(this._navButtons).reduce((i,n)=>i+n.getBoundingClientRect().width,0),r=(t-e)/wa/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(t){const e=t<this._range?1:t<this.total-this._range?t-this._range:this.total-this._range*2,o=t<=this._range?this._range*2+1:t<this.total-this._range?t+this._range:this.total;return Ea(Gt(e,1,this.total),Gt(o,1,this.total))}get current(){return this._current}set current(t){const e=this._current;this._current=Gt(t,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",e)}goToNextPage(){this.current++,this.dispatchEvent(new G(G.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new G(G.CHANGE))}goToPage(t){this.current=t,this.dispatchEvent(new G(G.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const t=this.renderRoot.querySelector(".active");t&&t.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" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(t){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${t}" class="${"page"+(t===this._current?" active":"")}" tabindex="${t===this._current?"-1":""}" @click="${()=>{t!==this._current&&(this.goToPage(t),this.focusActivePage())}}">${t}</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(t=>this.renderPage(t))} ${this.renderNavigationRight()}</uui-button-group>`}},s.UUIPaginationElement.styles=[d`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}`],R([Ko("uui-button.nav")],s.UUIPaginationElement.prototype,"_navButtons",2),R([C("#pages")],s.UUIPaginationElement.prototype,"_pagesGroup",2),R([l()],s.UUIPaginationElement.prototype,"label",2),R([l({reflect:!0,attribute:"aria-label"})],s.UUIPaginationElement.prototype,"ariaLabel",2),R([l({type:Number})],s.UUIPaginationElement.prototype,"total",2),R([g()],s.UUIPaginationElement.prototype,"_range",2),R([g()],s.UUIPaginationElement.prototype,"_visiblePages",2),R([l({type:Number})],s.UUIPaginationElement.prototype,"current",1),s.UUIPaginationElement=R([c("uui-pagination")],s.UUIPaginationElement);class qt extends x{}qt.CLOSE="close";var $a=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,je=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ia(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&$a(e,o,i),i};function ct(t,e,o){return t<e?e:t>o?o:t}s.UUIPopoverElement=class extends h{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=t=>{this._trigger=t.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=t=>{t.forEach(e=>{e.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onDocumentClick=t=>{t.composedPath().includes(this)||this._forceClosePopover()}}get placement(){return this._placement}set placement(t){const e=this._placement;this._placement=t||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",e)}get open(){return this._open}set open(t){const e=this._open;this._open=t,t?this._openPopover():this._closePopover(),this.requestUpdate("open",e)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),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),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),this._currentPlacement=null}_forceClosePopover(){this.open=!1,this.dispatchEvent(new qt(qt.CLOSE))}_getScrollParents(){const t=this.shadowRoot.host;let e=getComputedStyle(t);if(e.position==="fixed")return;const o=e.position==="absolute",r=/(auto|scroll)/;let i=t;for(;i=i.parentElement;)if(e=getComputedStyle(i),!(o&&e.position==="static")&&(r.test(e.overflow+e.overflowY+e.overflowX)&&this._scrollParents.push(i),e.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const t={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,t),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(t=>{t.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(t=>{t.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var t,e;if(!this.shadowRoot)return;const o=this.containerElement;if(!o)return;const r=(t=this.containerElement)==null?void 0:t.getBoundingClientRect(),i=(e=this._trigger)==null?void 0:e.getBoundingClientRect();if(i!=null&&r!=null){const n=this._scrollParents.map(N=>N.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,r,n));let a=this._currentPlacement.indexOf("top")!==-1,v=this._currentPlacement.indexOf("bottom")!==-1,m=this._currentPlacement.indexOf("left")!==-1,p=this._currentPlacement.indexOf("right")!==-1;const I=this._currentPlacement.indexOf("-start")!==-1,_=this._currentPlacement.indexOf("-end")!==-1;let f=.5,y=.5,w=.5,$=.5,S=0,oe=0;if(this.placement==="auto"){const N=this._scrollParents[0],Fe=N.clientWidth,ne=N.clientHeight,xe=i.x-r.width,Ce=Fe-(i.x+i.width)-r.width,Qt=i.y-r.height,mt=ne-(i.y+i.height)-r.height;let ft=.5,bt=.5;const vu=Math.max(xe,Ce);let Do=Math.max(Qt,mt);mt>Qt&&mt>this.margin&&(Do+=9999),vu>Do?(xe>Ce?(ft=0,m=!0):(ft=1,p=!0),S=this.margin):(Qt>mt?(bt=0,a=!0):(bt=1,v=!0),oe=this.margin),f=ft,y=bt,w=1-ft,$=1-bt}else a&&($=1,y=0),v&&($=0,y=1),(a||v)&&(oe=this.margin,I&&(w=0,f=0),_&&(w=1,f=1)),m&&(w=1,f=0),p&&(w=0,f=1),(m||p)&&(S=this.margin,I&&($=0,y=0),_&&($=1,y=1));const Ie=-r.width*w+i.width*f-S*(w*2-1),Zt=-r.height*$+i.height*y-oe*($*2-1);let re=Ie,se=Zt;a||v?(this._scrollParents.forEach((N,Fe)=>{const ne=N===document.body?0:n[Fe].x,xe=-i.x+ne,Ce=N.clientWidth-i.x-i.width+Ie+ne-(r.width-i.width)*(1-f);re=ct(re,xe,Ce)}),re=ct(re,-r.width,i.width)):(m||p)&&(this._scrollParents.forEach((N,Fe)=>{const ne=N===document.body?0:n[Fe].y,xe=-i.y+ne,Ce=N.clientHeight-i.y-i.height+Zt+ne-(r.height-i.height)*(1-y);se=ct(se,xe,Ce)}),se=ct(se,-r.height,i.height)),(this._positionX!==re||this._positionY!==se)&&(this._positionX=re,this._positionY=se,Ie===re&&Zt===se&&this._stopScrollListener(),o.style.left=`${this._positionX}px`,o.style.top=`${this._positionY}px`)}}_managePlacementFlip(t,e,o){const i=t.split("-"),n=i[0],a=i[1]||null;let v;return this._scrollParents.some((m,p)=>{const I=m===document.body?0:o[p].x,_=m===document.body?0:o[p].y;return n==="top"&&e.y-2<=_?(v="bottom",!0):n==="bottom"&&e.y+e.height+2>=m.clientHeight+_?(v="top",!0):n==="left"&&e.x-2<=I?(v="right",!0):n==="right"&&e.x+e.width+2>=m.clientWidth+I?(v="left",!0):!1}),v?(this._startScrollListener(),v+(a?`-${a}`:"")):t}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},s.UUIPopoverElement.styles=[d`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:1}slot[name=popover]{display:block}#trigger{position:relative;width:100%}`],je([C("#container")],s.UUIPopoverElement.prototype,"containerElement",2),je([l({type:Number})],s.UUIPopoverElement.prototype,"margin",2),je([l({type:String,reflect:!0})],s.UUIPopoverElement.prototype,"placement",1),je([l({type:Boolean,reflect:!0})],s.UUIPopoverElement.prototype,"open",1),s.UUIPopoverElement=je([c("uui-popover")],s.UUIPopoverElement);var xa=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,bo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ca(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&xa(e,o,i),i};const Pa=(t,e,o)=>Math.min(Math.max(t,e),o);s.UUIProgressBarElement=class extends h{constructor(){super(...arguments);this._progress=0}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=Pa(t,0,100),this.requestUpdate("progress",e)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return u`<div id="bar" style="${it(this._getProgressStyle())}"></div>`}},s.UUIProgressBarElement.styles=[d`: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,#25aa60);height:100%;width:0%}`],bo([l({type:Number})],s.UUIProgressBarElement.prototype,"progress",1),s.UUIProgressBarElement=bo([c("uui-progress-bar")],s.UUIProgressBarElement);class we extends x{}we.CHANGE="change";var Oa=Object.defineProperty,za=Object.getOwnPropertyDescriptor,te=(t,e,o,r)=>{for(var i=r>1?void 0:r?za(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Oa(e,o,i),i};s.UUIRadioElement=class extends h{constructor(){super();this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","1")})}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,t===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,t&&(this.setAttribute("aria-hidden","true"),this.setAttribute("tabindex","-1")),this.requestUpdate("disabled",e)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(){const t=this.inputElement.checked;this.checked=t,t&&this.focus(),this.dispatchEvent(new we(we.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}" @change="${this._onChange}"><div id="button"></div><div id="label">${this.label?u`<span>${this.label}</span>`:u`<slot></slot>`}</div></label>`}},s.UUIRadioElement.styles=[Ze,d`: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}#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:${Qe}}@media (prefers-reduced-motion){:host([disabled]:active) #button{animation:none}#button::after{transition:none}}`],te([C("#input")],s.UUIRadioElement.prototype,"inputElement",2),te([l({type:String})],s.UUIRadioElement.prototype,"name",2),te([l({type:String})],s.UUIRadioElement.prototype,"value",2),te([l({type:String})],s.UUIRadioElement.prototype,"label",2),te([l({type:Boolean,reflect:!0})],s.UUIRadioElement.prototype,"checked",1),te([l({type:Boolean,reflect:!0})],s.UUIRadioElement.prototype,"disabled",1),s.UUIRadioElement=te([c("uui-radio")],s.UUIRadioElement);class dt extends x{}dt.CHANGE="change";var Sa=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,go=(t,e,o,r)=>{for(var i=r>1?void 0:r?Aa(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Sa(e,o,i),i};const ka="ArrowLeft",Da="ArrowUp",La="ArrowRight",Ta="ArrowDown",Na=" ";s.UUIRadioGroupElement=class extends j(h){constructor(){super();this.disabled=!1,this._selected=null,this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=t=>{t.target.checked===!0&&(this.value=t.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown)}get value(){return this._value}set value(t){super.value=t,(t===null||t==="")&&this._makeFirstEnabledFocusable(),this._radioElements.forEach((e,o)=>{e.value===t?(e.checked=!0,this._selected=o):e.checked=!1})}focus(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.focus():(e=this._findNextEnabledElement())==null||e.focus()}click(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.click():(e=this._findNextEnabledElement())==null||e.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}_setNameOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(o=>o.name=t)}_setDisableOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(o=>o.disabled=t)}_handleSlotChange(t){var e;if((e=this._radioElements)==null||e.forEach(o=>{o.removeEventListener(we.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=t.target.assignedElements({flatten:!0}).filter(o=>o instanceof s.UUIRadioElement),this._radioElements.length>0){this._radioElements.forEach(r=>{r.addEventListener(we.CHANGE,this._handleSelectOnClick),r.addEventListener("blur",this._onChildBlur)});const o=this._radioElements.filter(r=>r.checked===!0);o.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)),o.length===1?(this.value=o[0].value,this._selected=this._radioElements.indexOf(o[0]),o[0].disabled===!1?(this._radioElements.forEach(r=>{r.makeUnfocusable()}),o[0].makeFocusable()):this._makeFirstEnabledFocusable(),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0)):this._makeFirstEnabledFocusable()}}_makeFirstEnabledFocusable(){var t,e;this._selected=null,(t=this._radioElements)==null||t.forEach(o=>{o.makeUnfocusable()}),(e=this._findNextEnabledElement())==null||e.makeFocusable()}_findNextEnabledElement(t=1){if(!this._radioElements)return null;const e=this._selected||0,o=this._radioElements.length;let r=this._selected===null?0:1;for(;r<o;){let i=(e+r*t)%o;if(i<0&&(i+=o),this._radioElements[i].disabled===!1)return this._radioElements[i];r++}return null}_selectPreviousElement(){var t,e;this.value=((t=this._findNextEnabledElement(-1))==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_selectNextElement(){var t,e;this.value=((t=this._findNextEnabledElement())==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_onKeydown(t){var e;switch(t.key){case ka:case Da:{t.preventDefault(),this._selectPreviousElement();break}case La:case Ta:{t.preventDefault(),this._selectNextElement();break}case Na:this._selected===null&&(this.value=(e=this._findNextEnabledElement())==null?void 0:e.value,this._fireChangeEvent())}}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new dt(dt.CHANGE))}updated(t){super.updated(t),t.has("disabled")&&this._setDisableOnRadios(t.get("disabled")),t.has("name")&&this._setNameOnRadios(t.get("name"))}render(){return u`<slot @slotchange="${this._handleSlotChange}"></slot>`}},s.UUIRadioGroupElement.formAssociated=!0,s.UUIRadioGroupElement.styles=[d`: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)}`],go([l({type:Boolean,reflect:!0})],s.UUIRadioGroupElement.prototype,"disabled",2),s.UUIRadioGroupElement=go([c("uui-radio-group")],s.UUIRadioGroupElement);var Ba=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,ja=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ha(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ba(e,o,i),i};s.UUIRefListElement=class extends h{render(){return u`<slot></slot>`}},s.UUIRefListElement.styles=[d`:host{display:block}::slotted(:not(:first-child)){margin-top:1px}::slotted(:not(:first-child))::before{content:'';position:absolute;top:-1px;width:100%;border-top:1px solid var(--uui-color-border,#d8d7d9)}`],s.UUIRefListElement=ja([c("uui-ref-list")],s.UUIRefListElement);class Ee extends x{}Ee.OPEN="open";var Ma=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Wt=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ra(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ma(e,o,i),i};s.UUIRefElement=class extends qe(Le(h)){constructor(){super(...arguments);this.disabled=!1,this.error=!1}handleOpenClick(t){t.stopPropagation(),this.dispatchEvent(new Ee(Ee.OPEN))}handleOpenKeydown(t){t.key!==" "&&t.key!=="Enter"||(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new Ee(Ee.OPEN)))}},s.UUIRefElement.styles=[d`: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([border]){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}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([border]:not([disabled]):hover){border-color:var(--uui-color-border-emphasis,#a1a1a1)}:host([disabled]) #open-part{cursor:default}:host([border][disabled]){border-color:var(--uui-color-disabled-standalone,#e2e2e2)}slot[name=tag]{flex-grow:1;display:flex;justify-content:flex-end;align-items:center}`],Wt([l({type:Boolean,reflect:!0})],s.UUIRefElement.prototype,"disabled",2),Wt([l({type:Boolean,reflect:!0})],s.UUIRefElement.prototype,"error",2),s.UUIRefElement=Wt([c("uui-ref")],s.UUIRefElement);var Fa=Object.defineProperty,Va=Object.getOwnPropertyDescriptor,ht=(t,e,o,r)=>{for(var i=r>1?void 0:r?Va(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Fa(e,o,i),i};s.UUIRefNodeElement=class extends s.UUIRefElement{constructor(){super(...arguments);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(),U(this,"uui-icon")}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return u`<small id="detail">${this.detail}<slot name="detail"></slot></small>`}_renderFallbackIcon(){return u`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return u`<button type="button" id="open-part" tabindex="0" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}" ?disabled="${this.disabled}"><span id="icon"><slot name="icon" @slotchange="${this._onSlotIconChange}"></slot>${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}</span><div id="info"><div id="name">${this.name}</div>${this.renderDetail()}</div></button><div id="select-border"></div><slot></slot><slot name="tag"></slot><slot name="actions" id="actions-container"></slot>`}},s.UUIRefNodeElement.styles=[...s.UUIRefElement.styles,d`:host{min-width:250px;padding:calc(var(--uui-size-2,6px) + 1px)}#open-part{align-self:stretch;display:flex;position:relative;align-items:center;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)}`],ht([l({type:String})],s.UUIRefNodeElement.prototype,"name",2),ht([l({type:String})],s.UUIRefNodeElement.prototype,"detail",2),ht([g()],s.UUIRefNodeElement.prototype,"_iconSlotHasContent",2),s.UUIRefNodeElement=ht([c("uui-ref-node")],s.UUIRefNodeElement);var Ga=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,_o=(t,e,o,r)=>{for(var i=r>1?void 0:r?qa(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ga(e,o,i),i};s.UUIRefNodeDataTypeElement=class extends s.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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeDataTypeElement.styles=[...s.UUIRefNodeElement.styles],_o([l({type:String})],s.UUIRefNodeDataTypeElement.prototype,"alias",2),s.UUIRefNodeDataTypeElement=_o([c("uui-ref-node-data-type")],s.UUIRefNodeDataTypeElement);var Wa=Object.defineProperty,Ka=Object.getOwnPropertyDescriptor,yo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ka(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Wa(e,o,i),i};s.UUIRefNodeDocumentTypeElement=class extends s.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 t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeDocumentTypeElement.styles=[...s.UUIRefNodeElement.styles],yo([l({type:String})],s.UUIRefNodeDocumentTypeElement.prototype,"alias",2),s.UUIRefNodeDocumentTypeElement=yo([c("uui-ref-node-document-type")],s.UUIRefNodeDocumentTypeElement);var Ya=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,Za=(t,e,o,r)=>{for(var i=r>1?void 0:r?Xa(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ya(e,o,i),i};s.UUIRefNodeFormElement=class extends s.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>'}},s.UUIRefNodeFormElement.styles=[...s.UUIRefNodeElement.styles],s.UUIRefNodeFormElement=Za([c("uui-ref-node-form")],s.UUIRefNodeFormElement);var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Uo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ja(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Qa(e,o,i),i};s.UUIRefNodeMemberElement=class extends s.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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeMemberElement.styles=[...s.UUIRefNodeElement.styles],Uo([l({type:String,attribute:"group-name"})],s.UUIRefNodeMemberElement.prototype,"groupName",2),s.UUIRefNodeMemberElement=Uo([c("uui-ref-node-member")],s.UUIRefNodeMemberElement);var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,Kt=(t,e,o,r)=>{for(var i=r>1?void 0:r?tl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&el(e,o,i),i};s.UUIRefNodePackageElement=class extends s.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 t=[];return this.detail!==""&&t.push(this.detail),this.version!==""&&t.push(this.version),this.author!==""&&t.push(this.author),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodePackageElement.styles=[...s.UUIRefNodeElement.styles],Kt([l({type:String})],s.UUIRefNodePackageElement.prototype,"version",2),Kt([l({type:String})],s.UUIRefNodePackageElement.prototype,"author",2),s.UUIRefNodePackageElement=Kt([c("uui-ref-node-package")],s.UUIRefNodePackageElement);var il=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,wo=(t,e,o,r)=>{for(var i=r>1?void 0:r?ol(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&il(e,o,i),i};s.UUIRefNodeUserElement=class extends s.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 t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),u`<small id="detail">${t.join(" | ")}<slot name="detail"></slot></small>`}},s.UUIRefNodeUserElement.styles=[...s.UUIRefNodeElement.styles],wo([l({type:String,attribute:"group-name"})],s.UUIRefNodeUserElement.prototype,"groupName",2),s.UUIRefNodeUserElement=wo([c("uui-ref-node-user")],s.UUIRefNodeUserElement);var rl=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,nl=(t,e,o,r)=>{for(var i=r>1?void 0:r?sl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&rl(e,o,i),i};s.UUIScrollContainerElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0")}render(){return u`<slot></slot>`}},s.UUIScrollContainerElement.styles=[d`:host{display:block;scrollbar-width:thin;scrollbar-color:var(--uui-color-disabled-contrast,#c4c4c4) var(--uui-color-surface,#fff);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}`],s.UUIScrollContainerElement=nl([c("uui-scroll-container")],s.UUIScrollContainerElement);class pt extends x{}pt.CHANGE="change";var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,T=(t,e,o,r)=>{for(var i=r>1?void 0:r?ll(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&al(e,o,i),i};s.UUISelectElement=class extends j(h){constructor(){super();this.placeholder="",this.disabled=!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","")})}focus(){this._input.focus()}click(){this._input.click()}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(t=>t.group).map(t=>t.group))))}willUpdate(t){if(t.has("options")){this._extractGroups(),this._values=this.options.map(o=>o.value);const e=this.options.find(o=>o.selected);this.value=e?e.value:""}t.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),t.has("disabledGroups")&&this._createDisabledGroups()}setValue(t){const e=t.target;t.target&&(this.value=e.value),this.dispatchEvent(new pt(pt.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(t,e,o,r){return u`<option value="${e}" ?selected="${o}" ?disabled="${r}">${t}</option>`}_renderGrouped(){return this._groups.length===0?u``:u`${this._groups.map(t=>u`<optgroup label="${t}" ?disabled="${this._disabledGroups.some(e=>e.toLowerCase()===t.toLowerCase())}">${this.options.map(e=>e.group===t?this._renderOption(e.name,e.value,e.selected,e.disabled):"")}</optgroup>`)}`}render(){return 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(t=>!t.group).map(t=>this._renderOption(t.name,t.value,t.selected,t.disabled))}</select>`}},s.UUISelectElement.styles=[d`:host{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));width:100%;padding:var(--uui-select-padding-y,var(--uui-size-1,3px)) var(--uui-select-padding-x,var(--uui-size-2,6px));color:currentColor;border-radius:0;box-sizing:border-box;background-color:transparent;border:1px solid var(--uui-select-border-color,var(--uui-color-border,#d8d7d9));transition:all 150ms ease}#native:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid 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))}#native:focus{outline-color:var(--uui-select-outline-color,var(--uui-color-focus,#3879ff))}#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)}`],T([l({type:String})],s.UUISelectElement.prototype,"label",2),T([l()],s.UUISelectElement.prototype,"placeholder",2),T([l({type:Boolean,reflect:!0})],s.UUISelectElement.prototype,"disabled",2),T([l({type:Boolean,reflect:!0})],s.UUISelectElement.prototype,"error",2),T([l({type:Array,attribute:!1})],s.UUISelectElement.prototype,"options",2),T([g()],s.UUISelectElement.prototype,"_groups",2),T([l()],s.UUISelectElement.prototype,"disabledGroups",2),T([g()],s.UUISelectElement.prototype,"_disabledGroups",2),T([C("#native")],s.UUISelectElement.prototype,"_input",2),s.UUISelectElement=T([c("uui-select")],s.UUISelectElement);const ul=d`
232
236
  input[type='range'] {
233
237
  left: 0;
234
238
  position: absolute;
@@ -335,15 +339,15 @@
335
339
  input[type='range']:focus::-ms-fill-upper {
336
340
  background: transparent;
337
341
  }
338
- `;class We extends C{}We.INPUT="input",We.CHANGE="change";var Cu=Object.defineProperty,Pu=Object.getOwnPropertyDescriptor,A=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cu(e,r,i),i};const $t=12,Vo=24,ku=(t,e)=>b`
339
- ${t.map(r=>{if(e>=Vo){const o=Math.round($t+e*t.indexOf(r));return b`<circle class="track-step" cx="${o}" cy="50%" r="4.5" />`}return b``})}
340
- `,Ou=(t,e,r)=>r?l``:l`<div id="step-values">
341
- ${t.map(o=>l` <span
342
+ `;class ie extends x{}ie.INPUT="input",ie.CHANGE="change";var cl=Object.defineProperty,dl=Object.getOwnPropertyDescriptor,O=(t,e,o,r)=>{for(var i=r>1?void 0:r?dl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&cl(e,o,i),i};const Me=12,Eo=24,hl=(t,e)=>b`
343
+ ${t.map(o=>{if(e>=Eo){const r=Math.round(Me+e*t.indexOf(o));return b`<circle class="track-step" cx="${r}" cy="50%" r="4.5" />`}return b``})}
344
+ `,pl=(t,e,o)=>o?u``:u`<div id="step-values">
345
+ ${t.map(r=>u` <span
342
346
  ><span>
343
- ${t.length<=20&&e>=Vo?o.toFixed(0):$}
347
+ ${t.length<=20&&e>=Eo?r.toFixed(0):E}
344
348
  </span></span
345
349
  >`)}
346
- </div>`,zu=(t,e,r)=>Array.from({length:(e-t)/r+1},(o,i)=>t+i*r);let z=class extends K(d){constructor(){super();this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}get value(){return this._value}set value(t){if(t instanceof File)return;const e=this._value;let r=t?parseFloat(t):0;r=Math.min(Math.max(r,this.min),this.max),this.step>0&&(r=Math.round(r/this.step)*this.step),this._value=r.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",e)}focus(){this._input.focus()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(t){super.updated(t),(t.get("max")||t.get("min")||t.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=zu(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-$t*2)/(this._steps.length-1)}_calculateSliderPosition(){const t=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(t*1e5)/1e3}%`}_onInput(){this.value=this._input.value,this.dispatchEvent(new We(We.INPUT))}_onChange(){this.pristine=!1,this.dispatchEvent(new We(We.CHANGE))}render(){return l`
350
+ </div>`,vl=(t,e,o)=>Array.from({length:(e-t)/o+1},(r,i)=>t+i*o);s.UUISliderElement=class extends j(h){constructor(){super();this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}get value(){return this._value}set value(t){if(t instanceof File)return;const e=this._value;let o=t?parseFloat(t):0;o=Math.min(Math.max(o,this.min),this.max),this.step>0&&(o=Math.round(o/this.step)*this.step),this._value=o.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",e)}focus(){this._input.focus()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(t){super.updated(t),(t.get("max")||t.get("min")||t.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=vl(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Me*2)/(this._steps.length-1)}_calculateSliderPosition(){const t=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(t*1e5)/1e3}%`}_onInput(){this.value=this._input.value,this.dispatchEvent(new ie(ie.INPUT))}_onChange(){this.pristine=!1,this.dispatchEvent(new ie(ie.CHANGE))}render(){return u`
347
351
  <input
348
352
  id="input"
349
353
  type="range"
@@ -358,17 +362,17 @@
358
362
  <div id="track" aria-hidden="true">
359
363
  <svg height="100%" width="100%">
360
364
  <rect x="9" y="9" height="3" rx="2" />
361
- ${ku(this._steps,this._stepWidth)}
365
+ ${hl(this._steps,this._stepWidth)}
362
366
  </svg>
363
367
 
364
368
  <div id="track-inner" aria-hidden="true">
365
- <div id="thumb" style=${jt({left:this._sliderPosition})}>
369
+ <div id="thumb" style=${it({left:this._sliderPosition})}>
366
370
  <div id="thumb-label">${this.value}</div>
367
371
  </div>
368
372
  </div>
369
373
  </div>
370
- ${Ou(this._steps,this._stepWidth,this.hideStepValues)}
371
- `}};z.formAssociated=!0,z.styles=[_n,Eu,c`
374
+ ${pl(this._steps,this._stepWidth,this.hideStepValues)}
375
+ `}},s.UUISliderElement.formAssociated=!0,s.UUISliderElement.styles=[Jr,ul,d`
372
376
  :host {
373
377
  display: inline-block;
374
378
  width: 100%;
@@ -391,34 +395,33 @@
391
395
 
392
396
  #track svg {
393
397
  height: 21px;
394
- /*border: 1px solid var(--uui-interface-border);*/
395
398
  border-radius: 10px;
396
- background-color: var(--uui-interface-surface,#fefefe);
399
+ background-color: var(--uui-color-surface,#fff);
397
400
  }
398
401
  #track svg rect {
399
402
  width: calc(100% - 18px);
400
- fill: var(--uui-interface-border,#c4c4c4);
403
+ fill: var(--uui-color-border-standalone,#c2c2c2);
401
404
  }
402
405
  input:hover ~ #track svg rect {
403
- fill: var(--uui-interface-border-hover,rgb(179, 179, 179));
406
+ fill: var(--uui-color-border-emphasis,#a1a1a1);
404
407
  }
405
408
 
406
409
  input:focus ~ #track svg {
407
410
  outline: calc(2px * var(--uui-show-focus-outline, 1)) solid
408
- var(--uui-interface-outline,#3879ff);
411
+ var(--uui-color-focus,#3879ff);
409
412
  }
410
413
 
411
414
  .track-step {
412
- fill: var(--uui-interface-border,#c4c4c4);
415
+ fill: var(--uui-color-border,#d8d7d9);
413
416
  }
414
417
  input:hover ~ #track svg .track-step {
415
- fill: var(--uui-interface-border-hover,rgb(179, 179, 179));
418
+ fill: var(--uui-color-border-emphasis,#a1a1a1);
416
419
  }
417
420
 
418
421
  #track-inner {
419
422
  position: absolute;
420
- left: ${$t}px; /* Match TRACK_MARGIN */
421
- right: ${$t}px; /* Match TRACK_MARGIN */
423
+ left: ${Me}px; /* Match TRACK_MARGIN */
424
+ right: ${Me}px; /* Match TRACK_MARGIN */
422
425
  }
423
426
 
424
427
  #thumb {
@@ -433,14 +436,14 @@
433
436
  border-radius: 50%;
434
437
  box-sizing: border-box;
435
438
 
436
- background-color: var(--uui-interface-surface,#fefefe);
437
- border: 2px solid var(--uui-interface-select,#3544b1);
439
+ background-color: var(--uui-color-surface,#fff);
440
+ border: 2px solid var(--uui-color-selected,#3544b1);
438
441
 
439
442
  transition: 120ms left ease;
440
443
  }
441
444
  :host([disabled]) #thumb {
442
- background-color: var(--uui-interface-surface-disabled,rgb(228, 228, 228));
443
- border-color: var(--uui-interface-select-disabled,rgb(87, 87, 87));
445
+ background-color: var(--uui-color-disabled,#f3f3f5);
446
+ border-color: var(--uui-color-disabled-standalone,rgb(226, 226, 226));
444
447
  }
445
448
 
446
449
  #thumb:after {
@@ -451,10 +454,10 @@
451
454
  height: 9px;
452
455
  width: 9px;
453
456
  border-radius: 50%;
454
- background-color: var(--uui-interface-select,#3544b1);
457
+ background-color: var(--uui-color-selected,#3544b1);
455
458
  }
456
459
  :host([disabled]) #thumb:after {
457
- background-color: var(--uui-interface-select-disabled,rgb(87, 87, 87));
460
+ background-color: var(--uui-color-disabled,#f3f3f5);
458
461
  }
459
462
 
460
463
  #thumb-label {
@@ -468,7 +471,7 @@
468
471
  text-align: center;
469
472
  opacity: 0;
470
473
  transition: 120ms opacity;
471
- color: var(--uui-interface-select,#3544b1);
474
+ color: var(--uui-color-selected,#3544b1);
472
475
  }
473
476
 
474
477
  input:focus ~ #track #thumb-label,
@@ -477,7 +480,7 @@
477
480
  }
478
481
 
479
482
  #step-values {
480
- margin: 0 ${$t}px; /* Match TRACK_MARGIN */
483
+ margin: 0 ${Me}px; /* Match TRACK_MARGIN */
481
484
  margin-top: 6px;
482
485
  display: flex;
483
486
  align-items: flex-end;
@@ -487,7 +490,7 @@
487
490
  #step-values > span {
488
491
  flex-basis: 0;
489
492
  flex-grow: 1;
490
- color: var(--uui-interface-contrast-disabled,rgb(115, 113, 110));
493
+ color: var(--uui-color-disabled-contrast,#c4c4c4);
491
494
  }
492
495
 
493
496
  #step-values > span > span {
@@ -503,11 +506,11 @@
503
506
  }
504
507
 
505
508
  :host(:not([pristine]):invalid) #thumb {
506
- border-color: var(--uui-look-danger-border,#d42054);
509
+ border-color: var(--uui-color-danger-standalone,rgb(191, 33, 78));
507
510
  }
508
511
  :host(:not([pristine]):invalid) #thumb:after {
509
- background-color: var(--uui-look-danger-surface,#d42054);
512
+ background-color: var(--uui-color-danger,#d42054);
510
513
  }
511
- `],A([a({type:Boolean,attribute:"hide-step-values"})],z.prototype,"hideStepValues",2),A([a({type:Number})],z.prototype,"min",2),A([a({type:Number})],z.prototype,"max",2),A([a({type:Number})],z.prototype,"step",2),A([a({type:String})],z.prototype,"value",1),A([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2),A([a({type:String})],z.prototype,"label",2),A([O("#input")],z.prototype,"_input",2),A([O("#track")],z.prototype,"_track",2),A([g()],z.prototype,"_stepWidth",2),A([g()],z.prototype,"_steps",2),A([g()],z.prototype,"_sliderPosition",2),z=A([u("uui-slider")],z);var Su=Object.defineProperty,Iu=Object.getOwnPropertyDescriptor,Fo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Iu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Su(e,r,i),i};let ti=class extends d{constructor(){super(...arguments);this.open=!1}render(){return l`<svg viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}};ti.styles=[c`: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}:host([open]) svg{transform:rotate(0)}`],Fo([a({type:Boolean,reflect:!0})],ti.prototype,"open",2),ti=Fo([u("uui-symbol-expand")],ti);var Au=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,Ro=(t,e,r,o)=>{for(var i=o>1?void 0:o?Uu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Au(e,r,i),i};let ii=class extends d{constructor(){super(...arguments);this.type=""}render(){return l`<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?l`<span id="file-type">${this.type.toUpperCase()}</span>`:""}`}};ii.styles=[c`: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;color:var(--uui-color-gunmetal,#162335);background-color:var(--uui-color-spanish-pink,#f5c1bc);max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#icon{fill:var(--uui-interface-border,#c4c4c4)}`],Ro([a({type:String})],ii.prototype,"type",2),ii=Ro([u("uui-symbol-file")],ii);var Du=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,qo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Lu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Du(e,r,i),i};let ri=class extends d{constructor(){super(...arguments);this.error=!1}render(){return l`<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>`}};ri.styles=[c`:host{display:flex;flex-direction:column;align-items:center;justify-content:center}#upload-icon{fill:var(--uui-color-primary,#3544b1);width:100px;transition:fill .3s ease;position:relative;z-index:2}:host([error]) #upload-icon{fill:var(--uui-color-danger,#d42054)}`],qo([a({type:Boolean,reflect:!0})],ri.prototype,"error",2),ri=qo([u("uui-symbol-file-dropzone")],ri);var ju=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,nr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Hu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ju(e,r,i),i};let Et=class extends d{constructor(){super(...arguments);this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),y(this,"uui-icon")}render(){return this.src?l`<img src="${this.src}" alt="${this.alt}">`:l`<uui-icon name="picture" .fallback="${Cn.strings[0]}"></uui-icon>`}};Et.styles=[c`: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-white,#fefefe);background:var(--uui-color-white-dimmed,#e4e4e4)}`],nr([a({type:String})],Et.prototype,"src",2),nr([a({type:String})],Et.prototype,"alt",2),Et=nr([u("uui-symbol-file-thumbnail")],Et);var Nu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,Mu=(t,e,r,o)=>{for(var i=o>1?void 0:o?Tu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Nu(e,r,i),i};let ar=class extends d{render(){return l`<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>`}};ar.styles=[c`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-interface-border,#d3d3d3)}`],ar=Mu([u("uui-symbol-folder")],ar);var Bu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Go=(t,e,r,o)=>{for(var i=o>1?void 0:o?Vu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Bu(e,r,i),i};let oi=class extends d{constructor(){super(...arguments);this.open=!1}render(){return b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?b`<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>`:b`<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>`}};oi.styles=[c`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],Go([a({type:Boolean,reflect:!0})],oi.prototype,"open",2),oi=Go([u("uui-symbol-lock")],oi);var Fu=Object.defineProperty,Ru=Object.getOwnPropertyDescriptor,qu=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ru(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Fu(e,r,i),i};let lr=class extends d{render(){return l`•••`}};lr.styles=[c`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],lr=qu([u("uui-symbol-more")],lr);var Gu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,Wo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Wu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Gu(e,r,i),i};let si=class extends zt(d){constructor(){super(...arguments);this.descending=!1}render(){return l`<svg id="up" 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" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}};si.styles=[c`: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))}`],Wo([a({type:Boolean,reflect:!0})],si.prototype,"descending",2),si=Wo([u("uui-symbol-sort")],si);var Ku=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,Xu=(t,e,r,o)=>{for(var i=o>1?void 0:o?Yu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ku(e,r,i),i};let ur=class extends d{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return l`<slot></slot>`}};ur.styles=[c`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-interface-surface,#fefefe);cursor:default}`],ur=Xu([u("uui-table")],ur);var Zu=Object.defineProperty,Qu=Object.getOwnPropertyDescriptor,ni=(t,e,r,o)=>{for(var i=o>1?void 0:o?Qu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Zu(e,r,i),i};let ee=class extends d{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(t){super.updated(t),t.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return l`<slot @slotchange="${this._detectOverflow}"></slot>`}};ee.styles=[c`:host{display: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-interface-border,#c4c4c4);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}`],ni([a({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],ee.prototype,"disableChildInteraction",2),ni([a({type:Boolean,reflect:!0,attribute:"no-padding"})],ee.prototype,"noPadding",2),ni([a({type:Boolean,reflect:!0,attribute:"clip-text"})],ee.prototype,"clipText",2),ee=ni([u("uui-table-cell")],ee);var Ju=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,tc=(t,e,r,o)=>{for(var i=o>1?void 0:o?ec(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ju(e,r,i),i};let cr=class extends d{};cr.styles=[c`:host{display:table-column}`],cr=tc([u("uui-table-column")],cr);var ic=Object.defineProperty,rc=Object.getOwnPropertyDescriptor,oc=(t,e,r,o)=>{for(var i=o>1?void 0:o?rc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ic(e,r,i),i};let dr=class extends ee{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}};dr.styles=[...ee.styles,c`:host{border-top:none}`],dr=oc([u("uui-table-head-cell")],dr);var sc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,ac=(t,e,r,o)=>{for(var i=o>1?void 0:o?nc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sc(e,r,i),i};let hr=class extends d{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return l`<slot></slot>`}};hr.styles=[c`:host{display:table-header-group;font-weight:700}`],hr=ac([u("uui-table-head")],hr);var lc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,Ko=(t,e,r,o)=>{for(var i=o>1?void 0:o?uc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&lc(e,r,i),i};let ai=class extends St(at(d)){connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(t){t.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(t=>{this.elementIsTableCell(t)&&(t.disableChildInteraction=this.selectOnly)})}elementIsTableCell(t){return t instanceof ee}render(){return l`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}};ai.styles=[c`:host{display:table-row;position:relative}:host([selectable]){cursor:pointer}:host([selected]){outline:2px solid var(--uui-interface-select,#3544b1);outline-offset:-3px}`],Ko([ce({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],ai.prototype,"slotCellNodes",2),ai=Ko([u("uui-table-row")],ai);var cc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,Yo=(t,e,r,o)=>{for(var i=o>1?void 0:o?dc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&cc(e,r,i),i};let Ct=class extends zt(nt("",d)){constructor(){super();this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}render(){return l`<button type="button" ?disabled="${this.disabled}" role="tab">${this.renderLabel()}</button>`}};Ct.styles=[c`:host{color:var(--uui-tab-text,var(--uui-interface-contrast,#060606));font-family:inherit}button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);border:none;box-sizing:border-box;min-height:32px;font-size:inherit;height:100%;min-width:75px;background:0 0;color:inherit;cursor:pointer;font-family:inherit}:host(:not([active]):not([disabled])) button:hover{color:var(--uui-tab-text-hover,var(--uui-look-primary-surface-hover,#fff))}:host(:not([active]):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]) button{color:var(--uui-tab-text-active,var(--uui-look-primary-surface-hover,#fff));cursor:default}:host([disabled]) button{color:var(--uui-interface-contrast-disabled,#73716e);cursor:default}button::before{content:'';position:absolute;height:0;width:calc(100% - 16px);left:auto;right:auto;background-color:var(--uui-interface-active,#f5c1bc);bottom:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}button:hover::before{background-color:var(--uui-interface-active-hover,#f5c1bc)}:host([active]) button::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}:host([disabled]) button::before{background-color:var(--uui-interface-active-disabled,#dbd4d4)}::slotted(uui-icon){margin-bottom:var(--uui-size-2,6px)}`],Yo([a({type:Boolean,reflect:!0})],Ct.prototype,"disabled",2),Ct=Yo([u("uui-tab")],Ct);var hc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,Xo=(t,e,r,o)=>{for(var i=o>1?void 0:o?pc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&hc(e,r,i),i};let li=class extends d{constructor(){super(...arguments);this.tabElements=[],this.onTabActive=t=>{const e=t.currentTarget;this.elementIsTabLike(e)&&(e.active=!0),this.tabElements.filter(o=>o!==e).forEach(o=>{this.elementIsTabLike(o)&&(o.active=!1)})}}setTabArray(){this.tabElements=this.slotNodes?this.slotNodes:[]}onSlotChange(){this.tabElements.forEach(t=>{t.removeEventListener("click",this.onTabActive)}),this.setTabArray(),this.tabElements.forEach(t=>{t.addEventListener("click",this.onTabActive)})}elementIsTabLike(t){return t instanceof Ct||"active"in t}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return l`<slot @slotchange="${this.onSlotChange}"></slot>`}};li.styles=[c`:host{display:flex;flex-wrap:wrap;color:var(--uui-tab-text);background:var(--uui-tab-background,none);height:100%;min-height:48px}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}`],Xo([ce({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],li.prototype,"slotNodes",2),li=Xo([u("uui-tab-group")],li);var vc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,Zo=(t,e,r,o)=>{for(var i=o>1?void 0:o?fc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&vc(e,r,i),i};let ui=class extends d{constructor(){super(...arguments);this.look=ji}render(){return l`<slot></slot>`}};ui.styles=[c`: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-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em);border-radius:100px;background-color:var(--uui-interface-surface-alt,#d8d7d9);color:var(--uui-interface-contrast,#060606);user-select:none}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host([look=primary]){background-color:var(--uui-look-primary-surface,#1b264f);color:var(--uui-look-primary-contrast,#fefefe)}:host([look=secondary]){background-color:var(--uui-look-secondary-surface,#e2dad4);color:var(--uui-look-secondary-contrast,#1b264f)}:host([look=outline]){background-color:var(--uui-look-outline-surface,transparent);color:var(--uui-look-outline-contrast,#1b264f);border:1px solid var(--uui-look-outline-border,#1b264f)}:host([look=placeholder]){background-color:var(--uui-look-placeholder-surface,transparent);color:var(--uui-look-placeholder-contrast,#1b264f);border:1px dashed var(--uui-look-placeholder-border,#1b264f)}:host([look=positive]){background-color:var(--uui-look-positive-surface,#25aa60);color:var(--uui-look-positive-contrast,#fefefe)}:host([look=warning]){background-color:var(--uui-look-warning-surface,#fad634);color:var(--uui-look-warning-contrast,#060606)}:host([look=danger]){background-color:var(--uui-look-danger-surface,#d42054);color:var(--uui-look-danger-contrast,#fefefe)}`],Zo([a({reflect:!0})],ui.prototype,"look",2),ui=Zo([u("uui-tag")],ui);class ci extends C{}ci.CHANGE="change",ci.INPUT="input";var bc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,U=(t,e,r,o)=>{for(var i=o>1?void 0:o?gc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bc(e,r,i),i};let S=class extends K(d){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)}focus(){var t;(t=this._textarea)==null||t.focus()}getFormElement(){return this._textarea}onInput(t){this.value=t.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(){this.pristine=!1,this.dispatchEvent(new ci(ci.CHANGE))}autoUpdateHeight(){const t=this.shadowRoot.host,e=this._textarea,r=t.scrollTop,o=getComputedStyle(t).height;t.style.display="block",t.style.height=o,e.style.height="auto",e.scrollHeight>e.clientHeight&&(e.style.height=e.scrollHeight+"px"),t.style.removeProperty("display"),t.style.removeProperty("height"),t.scrollTop=r}render(){return l`<textarea id="textarea" .value="${this.value}" .name="${this.name}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
512
- </textarea>`}};S.formAssociated=!0,S.styles=[c`:host{position:relative}:host([error]) textarea{border:1px solid var(--uui-look-danger-border,#d42054)!important}:host([error]) textarea[disabled]{border:1px solid var(--uui-look-danger-border,#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-input-border-color-readonly,var(--uui-interface-border-readonly,#dedede))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));border-color:var(--uui-textarea-border-color-disabled,var(--uui-interface-surface-disabled,#e4e4e4));color:var(--uui-interface-contrast-disabled,#73716e)}textarea{font-family:inherit;box-sizing:border-box;min-width:100%;max-width:100%;font-size:var(--uui-size-5,15px);padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-interface-border,#c4c4c4));border-radius:0;outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height)}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-interface-border-focus,#b3b3b3))}textarea::placeholder{transition:opacity 120ms}:host(:not([readonly])) textarea:focus::placeholder{opacity:0}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-interface-outline,#3879ff)}`],U([a()],S.prototype,"placeholder",2),U([a({type:Boolean,reflect:!0})],S.prototype,"disabled",2),U([a({type:Boolean,reflect:!0})],S.prototype,"readonly",2),U([a({type:String})],S.prototype,"name",2),U([a({type:Boolean,reflect:!0})],S.prototype,"error",2),U([a({type:Number})],S.prototype,"minlength",2),U([a({type:String,attribute:"minlength-message"})],S.prototype,"minlengthMessage",2),U([a({type:Number})],S.prototype,"maxlength",2),U([a({type:String,attribute:"maxlength-message"})],S.prototype,"maxlengthMessage",2),U([O("#textarea")],S.prototype,"_textarea",2),U([a({type:Boolean,attribute:"auto-height",reflect:!0})],S.prototype,"autoHeight",2),U([a({type:String})],S.prototype,"label",2),S=U([u("uui-textarea")],S);class I extends C{}I.OPENING="opening",I.OPENED="opened",I.CLOSING="closing",I.CLOSED="closed";var mc=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,Ke=(t,e,r,o)=>{for(var i=o>1?void 0:o?_c(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&mc(e,r,i),i};let ae=class extends d{constructor(){super();this.look=ji,this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._animate=!1,this._open=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",t=>{t.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,t!==null?(this._timer===null?this._timer=new wn(this._onOpenTimerComplete,t):this._timer.setDuration(t),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((e=this._timer)==null||e.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(t){t===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),y(this,"uui-button"),y(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 I(I.OPENING)),this._animationTimeout=window.setTimeout(()=>{var t;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((t=this._timer)==null||t.start()),this.dispatchEvent(new I(I.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var t;if(this._open===!1)return;const e=new I(I.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,(t=this._timer)==null||t.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 I(I.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return l`<div id="toast" class="${this._animate?"animate":""}"><div><div id="close"><uui-button .label="${"close"}" .look="${this.look}" @click="${()=>this.open=!1}"><uui-icon name="remove" .fallback="${bo.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}};ae.styles=[Si,c`: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-interface-surface,#fefefe);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([look=primary]) #toast>div{background-color:var(--uui-look-primary-surface,#1b264f);color:var(--uui-look-primary-contrast,#fefefe)}:host([look=positive]) #toast>div{background-color:var(--uui-look-positive-surface,#25aa60);color:var(--uui-look-positive-contrast,#fefefe)}:host([look=warning]) #toast>div{background-color:var(--uui-look-warning-surface,#fad634);color:var(--uui-look-warning-contrast,#060606);border-color:var(--uui-look-warning-border,#fad634)}:host([look=danger]) #toast>div{background-color:var(--uui-look-danger-surface,#d42054);color:var(--uui-look-danger-contrast,#fefefe);border-color:var(--uui-look-danger-border,#d42054)}`],Ke([a({reflect:!0})],ae.prototype,"look",2),Ke([a({type:Number})],ae.prototype,"autoClose",1),Ke([O("#toast")],ae.prototype,"_toastEl",2),Ke([g()],ae.prototype,"_animate",2),Ke([a({type:Boolean,reflect:!0})],ae.prototype,"open",1),ae=Ke([u("uui-toast-notification")],ae);var yc=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,Qo=(t,e,r,o)=>{for(var i=o>1?void 0:o?xc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&yc(e,r,i),i};let di=class extends d{constructor(){super(...arguments);this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var t;this._autoClosePause=!0,(t=this._toasts)==null||t.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{var t;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(t=this._toasts)==null||t.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=t=>{this.removeToast(t.target)},this._toasts=[],this.onSlotChanged=t=>{const e=[...this._toasts];this._toasts=t.target.assignedElements({flatten:!0}).filter(i=>i.nodeName==="UUI-TOAST-NOTIFICATION"),e.filter(i=>this._toasts.indexOf(i)===-1).forEach(i=>{i.removeEventListener(I.CLOSED,this.onToastClosed),i.removeEventListener("mouseenter",this.pauseAutoClose),i.removeEventListener("mouseleave",this.resumeAutoClose),i.removeEventListener("focus",this.pauseAutoClose),i.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(i=>e.indexOf(i)===-1).forEach(i=>{i.addEventListener(I.CLOSED,this.onToastClosed),i.addEventListener("mouseenter",this.pauseAutoClose),i.addEventListener("mouseleave",this.resumeAutoClose),i.addEventListener("focus",this.pauseAutoClose),i.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(i.autoClose=this._autoClose),this._autoClosePause===!0&&i.pauseAutoClose(),i.open=!0})}}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,(e=this._toasts)==null||e.forEach(r=>r.autoClose=t)}removeToast(t){if(!t)t=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(t)===-1){console.warn("Toast-notification",t,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(t)}closeToast(t){let e=t;e||(e=this._toasts[this._toasts.length-1]),e.open=!1}render(){return l`<slot @slotchange="${this.onSlotChanged}"></slot>`}};di.styles=[c`: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}`],Qo([a({type:Number,reflect:!0,attribute:"auto-close"})],di.prototype,"_autoClose",2),di=Qo([u("uui-toast-notification-container")],di);var wc=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,pr=(t,e,r,o)=>{for(var i=o>1?void 0:o?$c(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&wc(e,r,i),i};let Pt=class extends d{constructor(){super(...arguments);this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}render(){return l`<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>`}};Pt.styles=[Si,c`#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)}`],pr([a({type:String})],Pt.prototype,"headline",2),pr([g()],Pt.prototype,"_headlineSlotHasContent",2),Pt=pr([u("uui-toast-notification-layout")],Pt);var Ec=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,Pc=(t,e,r,o)=>{for(var i=o>1?void 0:o?Cc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ec(e,r,i),i};let hi=class extends Y{constructor(){super("switch")}renderCheckbox(){return l`<div id="slider"><div id="icon-check">${Hi}</div><div id="icon-wrong">${go}</div></div>`}};hi.formAssociated=!0,hi.styles=[...Y.styles,Dt,c`: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;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-interface-surface-alt,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-interface-border,#c4c4c4));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#slider{border-color:var(--uui-toggle-border-color-hover,var(--uui-interface-border-hover,#b3b3b3));background-color:var(--uui-toggle-background-color-hover,var(--uui-interface-surface-alt-hover,#c8c8c8))}label:focus #slider{border-color:var(--uui-toggle-border-color-focus,var(--uui-interface-border-focus,#b3b3b3));background-color:var(--uui-toggle-background-color-focus,var(--uui-interface-surface-alt-focus,#d8d7d9))}input:checked~#slider{background-color:var(--uui-interface-select,#3544b1)}label:hover input:checked:not([disabled])~#slider{background-color:var(--uui-interface-select-hover,#4656c8)}label:focus input:checked~#slider{background-color:var(--uui-interface-select-focus,#3544b1)}#icon-check,#icon-wrong{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms}#icon-check{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);fill:var(--uui-interface-contrast,#060606)}#icon-wrong{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);fill:var(--uui-interface-contrast,#060606)}input:checked~#slider #icon-check{fill:var(--uui-interface-select-contrast,#fefefe)}#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-interface-select-contrast,#fefefe);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-interface-outline,#3879ff)}:host(:not([disabled])) label:active #slider::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #slider{background-color:var(--uui-interface-surface-alt-disabled,#ccc)}:host([disabled]) input:checked~#slider{background-color:var(--uui-interface-select-disabled,#575757)}:host([disabled]) #slider::after{background-color:var(--uui-interface-surface-disabled,#e4e4e4)}:host([disabled]) #slider #icon-wrong{fill:var(--uui-interface-contrast-disabled,#73716e)}:host([disabled]) label:active #slider{animation:${Lt}}:host([disabled]) input:checked #slider #icon-check{fill:var(--uui-interface-select-contrast-disabled,#e4e4e4)}: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-look-danger-border,#d42054)}`],hi=Pc([u("uui-toggle")],hi)});
514
+ `],O([l({type:Boolean,attribute:"hide-step-values"})],s.UUISliderElement.prototype,"hideStepValues",2),O([l({type:Number})],s.UUISliderElement.prototype,"min",2),O([l({type:Number})],s.UUISliderElement.prototype,"max",2),O([l({type:Number})],s.UUISliderElement.prototype,"step",2),O([l({type:String})],s.UUISliderElement.prototype,"value",1),O([l({type:Boolean,reflect:!0})],s.UUISliderElement.prototype,"disabled",2),O([l({type:String})],s.UUISliderElement.prototype,"label",2),O([C("#input")],s.UUISliderElement.prototype,"_input",2),O([C("#track")],s.UUISliderElement.prototype,"_track",2),O([g()],s.UUISliderElement.prototype,"_stepWidth",2),O([g()],s.UUISliderElement.prototype,"_steps",2),O([g()],s.UUISliderElement.prototype,"_sliderPosition",2),s.UUISliderElement=O([c("uui-slider")],s.UUISliderElement);var ml=Object.defineProperty,fl=Object.getOwnPropertyDescriptor,$o=(t,e,o,r)=>{for(var i=r>1?void 0:r?fl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ml(e,o,i),i};s.UUISymbolExpandElement=class extends h{constructor(){super(...arguments);this.open=!1}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>`}},s.UUISymbolExpandElement.styles=[d`: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}:host([open]) svg{transform:rotate(0)}`],$o([l({type:Boolean,reflect:!0})],s.UUISymbolExpandElement.prototype,"open",2),s.UUISymbolExpandElement=$o([c("uui-symbol-expand")],s.UUISymbolExpandElement);var bl=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,Io=(t,e,o,r)=>{for(var i=r>1?void 0:r?gl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&bl(e,o,i),i};s.UUISymbolFileElement=class extends h{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>`:""}`}},s.UUISymbolFileElement.styles=[d`: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)}`],Io([l({type:String})],s.UUISymbolFileElement.prototype,"type",2),s.UUISymbolFileElement=Io([c("uui-symbol-file")],s.UUISymbolFileElement);var _l=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,xo=(t,e,o,r)=>{for(var i=r>1?void 0:r?yl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&_l(e,o,i),i};s.UUISymbolFileDropzoneElement=class extends h{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>`}},s.UUISymbolFileDropzoneElement.styles=[d`: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)}`],xo([l({type:Boolean,reflect:!0})],s.UUISymbolFileDropzoneElement.prototype,"error",2),s.UUISymbolFileDropzoneElement=xo([c("uui-symbol-file-dropzone")],s.UUISymbolFileDropzoneElement);var Ul=Object.defineProperty,wl=Object.getOwnPropertyDescriptor,Yt=(t,e,o,r)=>{for(var i=r>1?void 0:r?wl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ul(e,o,i),i};s.UUISymbolFileThumbnailElement=class extends h{constructor(){super(...arguments);this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),U(this,"uui-icon")}render(){return this.src?u`<img src="${this.src}" alt="${this.alt}">`:u`<uui-icon name="picture" .fallback="${ss.strings[0]}"></uui-icon>`}},s.UUISymbolFileThumbnailElement.styles=[d`: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)}`],Yt([l({type:String})],s.UUISymbolFileThumbnailElement.prototype,"src",2),Yt([l({type:String})],s.UUISymbolFileThumbnailElement.prototype,"alt",2),s.UUISymbolFileThumbnailElement=Yt([c("uui-symbol-file-thumbnail")],s.UUISymbolFileThumbnailElement);var El=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Il=(t,e,o,r)=>{for(var i=r>1?void 0:r?$l(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&El(e,o,i),i};s.UUISymbolFolderElement=class extends h{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>`}},s.UUISymbolFolderElement.styles=[d`:host{display:block;box-sizing:border-box;position:relative;max-width:100px}#icon{fill:var(--uui-color-border,#d8d7d9)}`],s.UUISymbolFolderElement=Il([c("uui-symbol-folder")],s.UUISymbolFolderElement);var xl=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,Co=(t,e,o,r)=>{for(var i=r>1?void 0:r?Cl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&xl(e,o,i),i};s.UUISymbolLockElement=class extends h{constructor(){super(...arguments);this.open=!1}render(){return b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">${this.open===!0?b`<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>`:b`<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>`}},s.UUISymbolLockElement.styles=[d`:host{display:inline-block;vertical-align:middle;width:1em}svg{fill:currentColor}`],Co([l({type:Boolean,reflect:!0})],s.UUISymbolLockElement.prototype,"open",2),s.UUISymbolLockElement=Co([c("uui-symbol-lock")],s.UUISymbolLockElement);var Pl=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,zl=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ol(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Pl(e,o,i),i};s.UUISymbolMoreElement=class extends h{render(){return u`•••`}},s.UUISymbolMoreElement.styles=[d`:host{display:inline-block;font-size:.8em;vertical-align:top;margin-top:.27em;line-height:1em;user-select:none}`],s.UUISymbolMoreElement=zl([c("uui-symbol-more")],s.UUISymbolMoreElement);var Sl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,Po=(t,e,o,r)=>{for(var i=r>1?void 0:r?Al(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Sl(e,o,i),i};s.UUISymbolSortElement=class extends Ge(h){constructor(){super(...arguments);this.descending=!1}render(){return u`<svg id="up" 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" viewBox="0 0 512 512"><path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path></svg>`}},s.UUISymbolSortElement.styles=[d`: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))}`],Po([l({type:Boolean,reflect:!0})],s.UUISymbolSortElement.prototype,"descending",2),s.UUISymbolSortElement=Po([c("uui-symbol-sort")],s.UUISymbolSortElement);var kl=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,Ll=(t,e,o,r)=>{for(var i=r>1?void 0:r?Dl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&kl(e,o,i),i};s.UUITableElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return u`<slot></slot>`}},s.UUITableElement.styles=[d`:host{display:table;width:100%;border-radius:var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);cursor:default}`],s.UUITableElement=Ll([c("uui-table")],s.UUITableElement);var Tl=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,vt=(t,e,o,r)=>{for(var i=r>1?void 0:r?Nl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Tl(e,o,i),i};s.UUITableCellElement=class extends h{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(t){super.updated(t),t.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return u`<slot @slotchange="${this._detectOverflow}"></slot>`}},s.UUITableCellElement.styles=[d`:host{display: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}`],vt([l({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],s.UUITableCellElement.prototype,"disableChildInteraction",2),vt([l({type:Boolean,reflect:!0,attribute:"no-padding"})],s.UUITableCellElement.prototype,"noPadding",2),vt([l({type:Boolean,reflect:!0,attribute:"clip-text"})],s.UUITableCellElement.prototype,"clipText",2),s.UUITableCellElement=vt([c("uui-table-cell")],s.UUITableCellElement);var Bl=Object.defineProperty,Hl=Object.getOwnPropertyDescriptor,jl=(t,e,o,r)=>{for(var i=r>1?void 0:r?Hl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Bl(e,o,i),i};s.UUITableColumnElement=class extends h{},s.UUITableColumnElement.styles=[d`:host{display:table-column}`],s.UUITableColumnElement=jl([c("uui-table-column")],s.UUITableColumnElement);var Ml=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Fl=(t,e,o,r)=>{for(var i=r>1?void 0:r?Rl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Ml(e,o,i),i};s.UUITableHeadCellElement=class extends s.UUITableCellElement{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}},s.UUITableHeadCellElement.styles=[...s.UUITableCellElement.styles,d`:host{border-top:none}`],s.UUITableHeadCellElement=Fl([c("uui-table-head-cell")],s.UUITableHeadCellElement);var Vl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,ql=(t,e,o,r)=>{for(var i=r>1?void 0:r?Gl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Vl(e,o,i),i};s.UUITableHeadElement=class extends h{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return u`<slot></slot>`}},s.UUITableHeadElement.styles=[d`:host{display:table-header-group;font-weight:700}`],s.UUITableHeadElement=ql([c("uui-table-head")],s.UUITableHeadElement);var Wl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,Oo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Kl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Wl(e,o,i),i};s.UUITableRowElement=class extends qe(Le(h)){connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(t){t.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(t=>{this.elementIsTableCell(t)&&(t.disableChildInteraction=this.selectOnly)})}elementIsTableCell(t){return t instanceof s.UUITableCellElement}render(){return u`<slot @slotchanged="${this.updateChildSelectOnly}"></slot>`}},s.UUITableRowElement.styles=[d`:host{display:table-row;position:relative}:host([selectable]){cursor:pointer}:host([selected]){outline:2px solid var(--uui-color-selected,#3544b1);outline-offset:-3px}`],Oo([K({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],s.UUITableRowElement.prototype,"slotCellNodes",2),s.UUITableRowElement=Oo([c("uui-table-row")],s.UUITableRowElement);var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,zo=(t,e,o,r)=>{for(var i=r>1?void 0:r?Xl(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Yl(e,o,i),i};s.UUITabElement=class extends Ge(De("",h)){constructor(){super();this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}render(){return u`<button type="button" ?disabled="${this.disabled}" role="tab">${this.renderLabel()}</button>`}},s.UUITabElement.styles=[d`:host{color:var(--uui-tab-text,var(--uui-color-interactive,#1b264f));font-family:inherit}button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:var(--uui-size-2,6px) var(--uui-size-4,12px);border:none;box-sizing:border-box;min-height:32px;font-size:inherit;height:100%;min-width:75px;background:0 0;color:inherit;cursor:pointer;font-family:inherit}:host(:not([active]):not([disabled])) button:hover{color:var(--uui-tab-text-hover,var(--uui-color-default-emphasis,#fff))}:host(:not([active]):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]) button{color:var(--uui-tab-text-active,var(--uui-color-default-emphasis,#fff));cursor:default}:host([disabled]) button{color:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}button::before{content:'';position:absolute;height:0;width:calc(100% - 16px);left:auto;right:auto;background-color:var(--uui-color-current,#f5c1bc);bottom:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}button:hover::before{background-color:var(--uui-color-current-emphasis,#f8d6d3)}:host([active]) button::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}:host([disabled]) button::before{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}::slotted(uui-icon){margin-bottom:var(--uui-size-2,6px)}`],zo([l({type:Boolean,reflect:!0})],s.UUITabElement.prototype,"disabled",2),s.UUITabElement=zo([c("uui-tab")],s.UUITabElement);var Zl=Object.defineProperty,Ql=Object.getOwnPropertyDescriptor,So=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ql(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&Zl(e,o,i),i};s.UUITabGroupElement=class extends h{constructor(){super(...arguments);this.tabElements=[],this.onTabActive=t=>{const e=t.currentTarget;this.elementIsTabLike(e)&&(e.active=!0),this.tabElements.filter(r=>r!==e).forEach(r=>{this.elementIsTabLike(r)&&(r.active=!1)})}}setTabArray(){this.tabElements=this.slotNodes?this.slotNodes:[]}onSlotChange(){this.tabElements.forEach(t=>{t.removeEventListener("click",this.onTabActive)}),this.setTabArray(),this.tabElements.forEach(t=>{t.addEventListener("click",this.onTabActive)})}elementIsTabLike(t){return t instanceof s.UUITabElement||"active"in t}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return u`<slot @slotchange="${this.onSlotChange}"></slot>`}},s.UUITabGroupElement.styles=[d`:host{display:flex;flex-wrap:wrap;color:var(--uui-tab-text);background:var(--uui-tab-background,none);height:100%;min-height:48px}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}`],So([K({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],s.UUITabGroupElement.prototype,"slotNodes",2),s.UUITabGroupElement=So([c("uui-tab-group")],s.UUITabGroupElement);class Jl extends x{}class eu extends x{}var tu=Object.defineProperty,iu=Object.getOwnPropertyDescriptor,Ao=(t,e,o,r)=>{for(var i=r>1?void 0:r?iu(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&tu(e,o,i),i};s.UUITagElement=class extends h{constructor(){super(...arguments);this.color="primary"}render(){return u`<slot></slot>`}},s.UUITagElement.styles=[d`: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-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em);border-radius:100px;background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--uui-color-interactive,#1b264f);user-select:none}slot{display:flex;align-items:center;justify-content:center;margin:2px}:host{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff)}:host([color=positive]){background-color:var(--uui-color-positive,#25aa60);color:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){background-color:var(--uui-color-warning,#fad634);color:var(--uui-color-warning-contrast,#000)}:host([color=danger]){background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff)}`],Ao([l({reflect:!0})],s.UUITagElement.prototype,"color",2),s.UUITagElement=Ao([c("uui-tag")],s.UUITagElement);class Re extends x{}Re.CHANGE="change",Re.INPUT="input";var ou=Object.defineProperty,ru=Object.getOwnPropertyDescriptor,z=(t,e,o,r)=>{for(var i=r>1?void 0:r?ru(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&ou(e,o,i),i};s.UUITextareaElement=class extends j(h){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)}focus(){var t;(t=this._textarea)==null||t.focus()}getFormElement(){return this._textarea}onInput(t){this.value=t.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(){this.pristine=!1,this.dispatchEvent(new Re(Re.CHANGE))}autoUpdateHeight(){const t=this.shadowRoot.host,e=this._textarea,o=t.scrollTop,r=getComputedStyle(t).height;t.style.display="block",t.style.height=r,e.style.height="auto",e.scrollHeight>e.clientHeight&&(e.style.height=e.scrollHeight+"px"),t.style.removeProperty("display"),t.style.removeProperty("height"),t.scrollTop=o}render(){return u`<textarea id="textarea" .value="${this.value}" .name="${this.name}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
515
+ </textarea>`}},s.UUITextareaElement.formAssociated=!0,s.UUITextareaElement.styles=[d`: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{font-family:inherit;box-sizing:border-box;min-width:100%;max-width:100%;font-size:var(--uui-size-5,15px);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)}: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::placeholder{transition:opacity 120ms}:host(:not([readonly])) textarea:focus::placeholder{opacity:0}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],z([l()],s.UUITextareaElement.prototype,"placeholder",2),z([l({type:Boolean,reflect:!0})],s.UUITextareaElement.prototype,"disabled",2),z([l({type:Boolean,reflect:!0})],s.UUITextareaElement.prototype,"readonly",2),z([l({type:String})],s.UUITextareaElement.prototype,"name",2),z([l({type:Boolean,reflect:!0})],s.UUITextareaElement.prototype,"error",2),z([l({type:Number})],s.UUITextareaElement.prototype,"minlength",2),z([l({type:String,attribute:"minlength-message"})],s.UUITextareaElement.prototype,"minlengthMessage",2),z([l({type:Number})],s.UUITextareaElement.prototype,"maxlength",2),z([l({type:String,attribute:"maxlength-message"})],s.UUITextareaElement.prototype,"maxlengthMessage",2),z([C("#textarea")],s.UUITextareaElement.prototype,"_textarea",2),z([l({type:Boolean,attribute:"auto-height",reflect:!0})],s.UUITextareaElement.prototype,"autoHeight",2),z([l({type:String})],s.UUITextareaElement.prototype,"label",2),s.UUITextareaElement=z([c("uui-textarea")],s.UUITextareaElement);class P extends x{}P.OPENING="opening",P.OPENED="opened",P.CLOSING="closing",P.CLOSED="closed";var su=Object.defineProperty,nu=Object.getOwnPropertyDescriptor,$e=(t,e,o,r)=>{for(var i=r>1?void 0:r?nu(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&su(e,o,i),i};s.UUIToastNotificationElement=class extends h{constructor(){super();this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._animate=!1,this._open=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",t=>{t.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,t!==null?(this._timer===null?this._timer=new is(this._onOpenTimerComplete,t):this._timer.setDuration(t),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((e=this._timer)==null||e.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(t){t===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),U(this,"uui-button"),U(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 P(P.OPENING)),this._animationTimeout=window.setTimeout(()=>{var t;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((t=this._timer)==null||t.start()),this.dispatchEvent(new P(P.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var t;if(this._open===!1)return;const e=new P(P.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,(t=this._timer)==null||t.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 P(P.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="${Qi.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},s.UUIToastNotificationElement.styles=[Ye,d`: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=primary]) #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,#25aa60);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#269c5b)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fad634);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#e0c133)}: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)}`],$e([l({reflect:!0})],s.UUIToastNotificationElement.prototype,"color",2),$e([l({type:Number})],s.UUIToastNotificationElement.prototype,"autoClose",1),$e([C("#toast")],s.UUIToastNotificationElement.prototype,"_toastEl",2),$e([g()],s.UUIToastNotificationElement.prototype,"_animate",2),$e([l({type:Boolean,reflect:!0})],s.UUIToastNotificationElement.prototype,"open",1),s.UUIToastNotificationElement=$e([c("uui-toast-notification")],s.UUIToastNotificationElement);var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,ko=(t,e,o,r)=>{for(var i=r>1?void 0:r?lu(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&au(e,o,i),i};s.UUIToastNotificationContainerElement=class extends h{constructor(){super(...arguments);this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var t;this._autoClosePause=!0,(t=this._toasts)==null||t.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{var t;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(t=this._toasts)==null||t.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=t=>{this.removeToast(t.target)},this._toasts=[],this.onSlotChanged=t=>{const e=[...this._toasts];this._toasts=t.target.assignedElements({flatten:!0}).filter(i=>i.nodeName==="UUI-TOAST-NOTIFICATION"),e.filter(i=>this._toasts.indexOf(i)===-1).forEach(i=>{i.removeEventListener(P.CLOSED,this.onToastClosed),i.removeEventListener("mouseenter",this.pauseAutoClose),i.removeEventListener("mouseleave",this.resumeAutoClose),i.removeEventListener("focus",this.pauseAutoClose),i.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(i=>e.indexOf(i)===-1).forEach(i=>{i.addEventListener(P.CLOSED,this.onToastClosed),i.addEventListener("mouseenter",this.pauseAutoClose),i.addEventListener("mouseleave",this.resumeAutoClose),i.addEventListener("focus",this.pauseAutoClose),i.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(i.autoClose=this._autoClose),this._autoClosePause===!0&&i.pauseAutoClose(),i.open=!0})}}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,(e=this._toasts)==null||e.forEach(o=>o.autoClose=t)}removeToast(t){if(!t)t=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(t)===-1){console.warn("Toast-notification",t,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(t)}closeToast(t){let e=t;e||(e=this._toasts[this._toasts.length-1]),e.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},s.UUIToastNotificationContainerElement.styles=[d`: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}`],ko([l({type:Number,reflect:!0,attribute:"auto-close"})],s.UUIToastNotificationContainerElement.prototype,"_autoClose",2),s.UUIToastNotificationContainerElement=ko([c("uui-toast-notification-container")],s.UUIToastNotificationContainerElement);var uu=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,Xt=(t,e,o,r)=>{for(var i=r>1?void 0:r?cu(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&uu(e,o,i),i};s.UUIToastNotificationLayoutElement=class extends h{constructor(){super(...arguments);this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.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>`}},s.UUIToastNotificationLayoutElement.styles=[Ye,d`#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)}`],Xt([l({type:String})],s.UUIToastNotificationLayoutElement.prototype,"headline",2),Xt([g()],s.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),s.UUIToastNotificationLayoutElement=Xt([c("uui-toast-notification-layout")],s.UUIToastNotificationLayoutElement);var du=Object.defineProperty,hu=Object.getOwnPropertyDescriptor,pu=(t,e,o,r)=>{for(var i=r>1?void 0:r?hu(e,o):e,n=t.length-1,a;n>=0;n--)(a=t[n])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&du(e,o,i),i};s.UUIToggleElement=class extends D{constructor(){super("switch")}renderCheckbox(){return u`<div id="slider"><div id="icon-check">${St}</div><div id="icon-wrong">${Ji}</div></div>`}},s.UUIToggleElement.formAssociated=!0,s.UUIToggleElement.styles=[...D.styles,Ze,d`: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;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-check,#icon-wrong{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:fill 120ms}#icon-check{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}#icon-wrong{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);fill:var(--uui-color-interactive,#1b264f)}input:checked~#slider #icon-check{fill: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])) 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-wrong{fill:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #slider{animation:${Qe}}:host([disabled]) input:checked #slider #icon-check{fill: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)}`],s.UUIToggleElement=pu([c("uui-toggle")],s.UUIToggleElement),s.UUIBooleanInputElement=D,s.UUIBooleanInputEvent=We,s.UUIButtonInlineCreateEvent=ot,s.UUICardEvent=be,s.UUIComboboxEvent=k,s.UUIComboboxListEvent=X,s.UUIIconHost=Bt,s.UUIIconRegistry=Ht,s.UUIIconRegistryEssential=vo,s.UUIIconRequestEvent=_e,s.UUIInputEvent=ee,s.UUIMenuItemEvent=M,s.UUIPaginationEvent=G,s.UUIRadioEvent=we,s.UUIRadioGroupEvent=dt,s.UUIRefEvent=Ee,s.UUISelectEvent=pt,s.UUISliderEvent=ie,s.UUITabEvent=Jl,s.UUITabGroupEvent=eu,s.UUITextStyles=Ye,s.UUITextareaEvent=Re,s.UUIToastNotificationEvent=P,Object.defineProperty(s,"__esModule",{value:!0})});
513
516
  //# sourceMappingURL=uui.min.js.map