@umbraco-ui/uui 1.14.0-rc.1 → 1.14.0-rc.3

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
@@ -231,7 +231,23 @@
231
231
  margin-top: var(--uui-size-layout-1,24px);
232
232
  margin-bottom: var(--uui-size-layout-1,24px);
233
233
  }
234
- `;const It=je(Su),Pu=g`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Au=je("uui-blink 0.9s infinite both"),zu=g`@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}}`,Lu=je("pulse 0.8s ease-in-out infinite both"),Mu=g`@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)}}`,Ou=je("uui-horizontal-shake 600ms ease backwards");let Ur=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Pe=class extends Ur{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Pe.VALID="valid",Pe.INVALID="invalid";let ot=class extends Ur{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};ot.SELECTED="selected",ot.DESELECTED="deselected";var Tu=Object.defineProperty,Nu=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Tu(e,t,o),o};const Bu=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Nu([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var Du=Object.defineProperty,ys=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Du(e,t,o),o};const Vu=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}firstUpdated(o){super.firstUpdated(o),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"display: none"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return ys([l({type:String})],t.prototype,"label"),ys([U()],t.prototype,"_labelSlotHasContent"),t};var ju=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,ws=i=>{throw TypeError(i)},Us=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ju(e,t,o),o},_r=(i,e,t)=>e.has(i)||ws("Cannot "+t),X=(i,e,t)=>(_r(i,e,"read from private field"),t?t.call(i):e.get(i)),Wi=(i,e,t)=>e.has(i)?ws("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ru=(i,e,t,r)=>(_r(i,e,"write to private field"),e.set(i,t),t),qi=(i,e,t)=>(_r(i,e,"access private method"),t);const Fu=i=>{var e,t,r,o,s,a,c;class h extends i{constructor(...b){super(...b),Wi(this,o),this._selectable=!1,this.deselectable=!0,this.selected=!1,Wi(this,e,this),Wi(this,t,p=>{p.code!=="Space"&&p.code!=="Enter"||p.composedPath().indexOf(X(this,e))===0&&X(this,r).call(this,p)}),Wi(this,r,p=>{if((this._selectable||this.deselectable&&this.selected)===!1)return;const _=p.composedPath();X(this,e)===this&&_.some(m=>{const w=m.tagName;return w==="A"||w==="BUTTON"||w==="INPUT"||w==="TEXTAREA"||w==="SELECT"})||_.indexOf(X(this,e))!==-1&&(p.type==="keydown"&&p.preventDefault(),qi(this,o,s).call(this))}),this.addEventListener("click",X(this,r)),this.addEventListener("keydown",X(this,t))}get selectable(){return this._selectable}set selectable(b){const p=this._selectable;p!==b&&(this._selectable=b,X(this,e)===this&&X(this,e).setAttribute("tabindex",`${b?"0":"-1"}`),this.requestUpdate("selectable",p))}get selectableTarget(){return X(this,e)}set selectableTarget(b){const p=X(this,e);p.removeAttribute("tabindex"),p.removeEventListener("click",X(this,r)),p.removeEventListener("keydown",X(this,t)),Ru(this,e,b),X(this,e)===this&&X(this,e).setAttribute("tabindex",this._selectable?"0":"-1"),b.addEventListener("click",X(this,r)),b.addEventListener("keydown",X(this,t))}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,o=new WeakSet,s=function(){this.selectable&&(this.deselectable===!1?qi(this,o,a).call(this):this.selected?qi(this,o,c).call(this):qi(this,o,a).call(this))},a=function(){if(!this.selectable)return;const d=new ot(ot.SELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!0)},c=function(){if(!this.deselectable)return;const d=new ot(ot.DESELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!1)},Us([l({type:Boolean,reflect:!0})],h.prototype,"selectable",1),Us([l({type:Boolean,reflect:!0})],h.prototype,"selected",2),h};var Gu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,qu=(i,e,t,r)=>{for(var o=Wu(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Gu(e,t,o),o};const Ku=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return qu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};var Xu=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,_s=i=>{throw TypeError(i)},rt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xu(e,t,o),o},$r=(i,e,t)=>e.has(i)||_s("Cannot "+t),L=(i,e,t)=>($r(i,e,"read from private field"),t?t.call(i):e.get(i)),nt=(i,e,t)=>e.has(i)?_s("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),kr=(i,e,t,r)=>($r(i,e,"write to private field"),e.set(i,t),t),Ki=(i,e,t)=>($r(i,e,"access private method"),t);const Zu=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],Qu=(i,e)=>{var t,r,o,s,a,c,h,d,b;class p extends i{constructor(...m){super(...m),nt(this,c),this.name="",nt(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",nt(this,r,e),nt(this,o,null),nt(this,s,[]),nt(this,a,[]),nt(this,b,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return L(this,r)}set value(m){const w=L(this,r);kr(this,r,m),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(L(this,r)??null),this.requestUpdate("value",w)}set pristine(m){this._pristine!==m&&(this._pristine=m,m?this.setAttribute("pristine",""):this.removeAttribute("pristine"),Ki(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const m=L(this,a).find(w=>w.validity.valid===!1);m?"focusFirstInvalidElement"in m?m.focusFirstInvalidElement():m.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),Ki(this,c,h).call(this)}addValidator(m,w,S){const C={flagKey:m,getMessageMethod:w,checkMethod:S,weight:Zu.indexOf(m)};return L(this,s).push(C),L(this,s).sort((N,te)=>N.weight>te.weight?1:te.weight>N.weight?-1:0),C}removeValidator(m){const w=L(this,s).indexOf(m);w!==-1&&L(this,s).splice(w,1)}addFormControlElement(m){L(this,a).push(m),m.addEventListener(Pe.INVALID,()=>{this._runValidators()}),m.addEventListener(Pe.VALID,()=>{this._runValidators()}),this._pristine===!1&&(m.checkValidity(),this._runValidators())}setCustomValidity(m){this._customValidityObject&&this.removeValidator(this._customValidityObject),m!=null&&m!==""&&(this._customValidityObject=this.addValidator("customError",()=>m,()=>!0)),this._runValidators()}_runValidators(){kr(this,t,{});let m,w;L(this,s).some(C=>C.checkMethod()?(L(this,t)[C.flagKey]=!0,m=C.getMessageMethod(),!0):!1),m||L(this,a).some(C=>{let N;for(N in C.validity)if(N!=="valid"&&C.validity[N])return L(this,t)[N]=!0,m=C.validationMessage,w??(w=C),!0;return!1});const S=Object.values(L(this,t)).includes(!0);L(this,t).valid=!S,this._internals.setValidity(L(this,t),m,w??this.getFormElement()??void 0),Ki(this,c,d).call(this)}updated(m){super.updated(m),this._runValidators()}submit(){L(this,o)?.requestSubmit()}formAssociatedCallback(){Ki(this,c,h).call(this),kr(this,o,this._internals.form),L(this,o)&&(L(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),L(this,o).addEventListener("submit",L(this,b)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const m in L(this,a))if(L(this,a)[m].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return L(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){L(this,o)&&L(this,o).removeEventListener("submit",L(this,b))},d=function(){this._pristine!==!0&&(L(this,t).valid?this.dispatchEvent(new Pe(Pe.VALID)):this.dispatchEvent(new Pe(Pe.INVALID)))},b=new WeakMap,p.formAssociated=!0,rt([l({type:String})],p.prototype,"name",2),rt([l()],p.prototype,"value",1),rt([l({type:Boolean,reflect:!0,attribute:"pristine"})],p.prototype,"pristine",1),rt([l({type:Boolean,reflect:!0})],p.prototype,"required",2),rt([l({type:String,attribute:"required-message"})],p.prototype,"requiredMessage",2),rt([l({type:Boolean,reflect:!0})],p.prototype,"error",2),rt([l({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),p};class Ju{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}}const ec=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},tc=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;if("TouchEvent"in window&&o instanceof TouchEvent)d=o.touches[0];else if(o instanceof MouseEvent)d=o;else return;const b=d.pageX-c,p=d.pageY-h;e?.onMove&&e.onMove(b,p)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},ic=(i,e,t)=>Math.min(Math.max(i,e),t),oc=(i,e,t)=>t+e-i,rc=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},$s=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function nc(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}var sc=Object.defineProperty,ks=i=>{throw TypeError(i)},ac=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&sc(e,t,o),o},Es=(i,e,t)=>e.has(i)||ks("Cannot "+t),xs=(i,e,t)=>(Es(i,e,"read from private field"),e.get(i)),Is=(i,e,t)=>e.has(i)?ks("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),lc=(i,e,t,r)=>(Es(i,e,"write to private field"),e.set(i,t),t);const uc=i=>{var e,t;class r extends i{constructor(...s){super(...s),Is(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=$s(this,"id",this.popoverContainerElement);a&&(xs(this,e)?a.hidePopover():a.showPopover())},Is(this,t,a=>{requestAnimationFrame(()=>{lc(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",xs(this,t))}}return e=new WeakMap,t=new WeakMap,ac([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};function cc(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const hc=["default","primary","secondary","outline","placeholder"],dc=["default","positive","warning","danger","invalid"],pc=["h1","h2","h3","h4","h5","h6"];function v(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var mc=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIButtonGroupElement=class extends f{render(){return u`<slot></slot>`}},n.UUIButtonGroupElement.styles=[g`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=mc([v("uui-button-group")],n.UUIButtonGroupElement);var bc=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,g`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],n.UUIActionBarElement=bc([v("uui-action-bar")],n.UUIActionBarElement);var vc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,Xi=(i,e,t,r)=>{for(var o=r>1?void 0:r?gc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vc(e,t,o),o};n.UUIAvatarGroupElement=class extends f{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},n.UUIAvatarGroupElement.styles=[g`: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}`],Xi([Re({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Xi([U()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),Xi([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=Xi([v("uui-avatar-group")],n.UUIAvatarGroupElement);var fc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,Ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?yc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fc(e,t,o),o};n.UUIAvatarElement=class extends f{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this.name=""}get _initials(){return this.initials?.substring(0,3)||this.createInitials(this.name)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=[...e.matchAll(/(?:^|\s)(.)/g)].map(o=>o[1]).join("");return r?.length?(t=r[0].charAt(0),r.length>1&&(t+=r[r.length-1].charAt(0)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this._initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this._initials}<slot></slot>`}},n.UUIAvatarElement.styles=[g`: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%}`],Ct([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),Ct([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),Ct([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),Ct([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",2),Ct([l({type:String})],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=Ct([v("uui-avatar")],n.UUIAvatarElement);var wc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Yi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wc(e,t,o),o};n.UUIBadgeElement=class extends f{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.UUIBadgeElement.styles=[g`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host([color=invalid]){--color:var(--uui-color-invalid,#d42054);--color-standalone:var(--uui-color-invalid-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-invalid-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],Yi([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),Yi([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),Yi([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=Yi([v("uui-badge")],n.UUIBadgeElement);var _c=Object.defineProperty,$c=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&_c(e,t,o),o};const wi=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return $c([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var kc=Object.defineProperty,Cs=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&kc(e,t,o),o};const we=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}firstUpdated(o){super.firstUpdated(o),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"display: none"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Cs([l({type:String})],t.prototype,"label"),Cs([U()],t.prototype,"_labelSlotHasContent"),t};let Ec=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},St=class extends Ec{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};St.SELECTED="selected",St.DESELECTED="deselected";var xc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Ss=i=>{throw TypeError(i)},Ps=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ic(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xc(e,t,o),o},Er=(i,e,t)=>e.has(i)||Ss("Cannot "+t),Y=(i,e,t)=>(Er(i,e,"read from private field"),t?t.call(i):e.get(i)),Zi=(i,e,t)=>e.has(i)?Ss("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Cc=(i,e,t,r)=>(Er(i,e,"write to private field"),e.set(i,t),t),Qi=(i,e,t)=>(Er(i,e,"access private method"),t);const Pt=i=>{var e,t,r,o,s,a,c;class h extends i{constructor(...b){super(...b),Zi(this,o),this._selectable=!1,this.deselectable=!0,this.selected=!1,Zi(this,e,this),Zi(this,t,p=>{p.code!=="Space"&&p.code!=="Enter"||p.composedPath().indexOf(Y(this,e))===0&&Y(this,r).call(this,p)}),Zi(this,r,p=>{if((this._selectable||this.deselectable&&this.selected)===!1)return;const _=p.composedPath();Y(this,e)===this&&_.some(m=>{const w=m.tagName;return w==="A"||w==="BUTTON"||w==="INPUT"||w==="TEXTAREA"||w==="SELECT"})||_.indexOf(Y(this,e))!==-1&&(p.type==="keydown"&&p.preventDefault(),Qi(this,o,s).call(this))}),this.addEventListener("click",Y(this,r)),this.addEventListener("keydown",Y(this,t))}get selectable(){return this._selectable}set selectable(b){const p=this._selectable;p!==b&&(this._selectable=b,Y(this,e)===this&&Y(this,e).setAttribute("tabindex",`${b?"0":"-1"}`),this.requestUpdate("selectable",p))}get selectableTarget(){return Y(this,e)}set selectableTarget(b){const p=Y(this,e);p.removeAttribute("tabindex"),p.removeEventListener("click",Y(this,r)),p.removeEventListener("keydown",Y(this,t)),Cc(this,e,b),Y(this,e)===this&&Y(this,e).setAttribute("tabindex",this._selectable?"0":"-1"),b.addEventListener("click",Y(this,r)),b.addEventListener("keydown",Y(this,t))}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,o=new WeakSet,s=function(){this.selectable&&(this.deselectable===!1?Qi(this,o,a).call(this):this.selected?Qi(this,o,c).call(this):Qi(this,o,a).call(this))},a=function(){if(!this.selectable)return;const d=new St(St.SELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!0)},c=function(){if(!this.deselectable)return;const d=new St(St.DESELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!1)},Ps([l({type:Boolean,reflect:!0})],h.prototype,"selectable",1),Ps([l({type:Boolean,reflect:!0})],h.prototype,"selected",2),h};var Sc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,Ac=(i,e,t,r)=>{for(var o=Pc(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Sc(e,t,o),o};const Ji=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Ac([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};let As=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Fe=class extends As{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Fe.VALID="valid",Fe.INVALID="invalid";let zs=class extends As{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};zs.SELECTED="selected",zs.DESELECTED="deselected";var zc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Ls=i=>{throw TypeError(i)},st=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zc(e,t,o),o},xr=(i,e,t)=>e.has(i)||Ls("Cannot "+t),M=(i,e,t)=>(xr(i,e,"read from private field"),t?t.call(i):e.get(i)),at=(i,e,t)=>e.has(i)?Ls("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ir=(i,e,t,r)=>(xr(i,e,"write to private field"),e.set(i,t),t),eo=(i,e,t)=>(xr(i,e,"access private method"),t);const Mc=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],Ue=(i,e)=>{var t,r,o,s,a,c,h,d,b;class p extends i{constructor(...m){super(...m),at(this,c),this.name="",at(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",at(this,r,e),at(this,o,null),at(this,s,[]),at(this,a,[]),at(this,b,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return M(this,r)}set value(m){const w=M(this,r);Ir(this,r,m),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(M(this,r)??null),this.requestUpdate("value",w)}set pristine(m){this._pristine!==m&&(this._pristine=m,m?this.setAttribute("pristine",""):this.removeAttribute("pristine"),eo(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const m=M(this,a).find(w=>w.validity.valid===!1);m?"focusFirstInvalidElement"in m?m.focusFirstInvalidElement():m.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),eo(this,c,h).call(this)}addValidator(m,w,S){const C={flagKey:m,getMessageMethod:w,checkMethod:S,weight:Mc.indexOf(m)};return M(this,s).push(C),M(this,s).sort((N,te)=>N.weight>te.weight?1:te.weight>N.weight?-1:0),C}removeValidator(m){const w=M(this,s).indexOf(m);w!==-1&&M(this,s).splice(w,1)}addFormControlElement(m){M(this,a).push(m),m.addEventListener(Fe.INVALID,()=>{this._runValidators()}),m.addEventListener(Fe.VALID,()=>{this._runValidators()}),this._pristine===!1&&(m.checkValidity(),this._runValidators())}setCustomValidity(m){this._customValidityObject&&this.removeValidator(this._customValidityObject),m!=null&&m!==""&&(this._customValidityObject=this.addValidator("customError",()=>m,()=>!0)),this._runValidators()}_runValidators(){Ir(this,t,{});let m,w;M(this,s).some(C=>C.checkMethod()?(M(this,t)[C.flagKey]=!0,m=C.getMessageMethod(),!0):!1),m||M(this,a).some(C=>{let N;for(N in C.validity)if(N!=="valid"&&C.validity[N])return M(this,t)[N]=!0,m=C.validationMessage,w??(w=C),!0;return!1});const S=Object.values(M(this,t)).includes(!0);M(this,t).valid=!S,this._internals.setValidity(M(this,t),m,w??this.getFormElement()??void 0),eo(this,c,d).call(this)}updated(m){super.updated(m),this._runValidators()}submit(){M(this,o)?.requestSubmit()}formAssociatedCallback(){eo(this,c,h).call(this),Ir(this,o,this._internals.form),M(this,o)&&(M(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),M(this,o).addEventListener("submit",M(this,b)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const m in M(this,a))if(M(this,a)[m].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return M(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){M(this,o)&&M(this,o).removeEventListener("submit",M(this,b))},d=function(){this._pristine!==!0&&(M(this,t).valid?this.dispatchEvent(new Fe(Fe.VALID)):this.dispatchEvent(new Fe(Fe.INVALID)))},b=new WeakMap,p.formAssociated=!0,st([l({type:String})],p.prototype,"name",2),st([l()],p.prototype,"value",1),st([l({type:Boolean,reflect:!0,attribute:"pristine"})],p.prototype,"pristine",1),st([l({type:Boolean,reflect:!0})],p.prototype,"required",2),st([l({type:String,attribute:"required-message"})],p.prototype,"requiredMessage",2),st([l({type:Boolean,reflect:!0})],p.prototype,"error",2),st([l({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),p},Oc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};var Tc=Object.defineProperty,Ms=i=>{throw TypeError(i)},Nc=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Tc(e,t,o),o},Os=(i,e,t)=>e.has(i)||Ms("Cannot "+t),Ts=(i,e,t)=>(Os(i,e,"read from private field"),e.get(i)),Ns=(i,e,t)=>e.has(i)?Ms("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Bc=(i,e,t,r)=>(Os(i,e,"write to private field"),e.set(i,t),t);const Dc=i=>{var e,t;class r extends i{constructor(...s){super(...s),Ns(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Oc(this,"id",this.popoverContainerElement);a&&(Ts(this,e)?a.hidePopover():a.showPopover())},Ns(this,t,a=>{requestAnimationFrame(()=>{Bc(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Ts(this,t))}}return e=new WeakMap,t=new WeakMap,Nc([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};let z=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},At=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};At.VALID="valid",At.INVALID="invalid";let Ge=class extends z{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Ge.SELECTED="selected",Ge.DESELECTED="deselected";let to=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};to.CHANGE="change";var Vc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,Bs=i=>{throw TypeError(i)},zt=(i,e,t,r)=>{for(var o=r>1?void 0:r?jc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vc(e,t,o),o},Hc=(i,e,t)=>e.has(i)||Bs("Cannot "+t),Rc=(i,e,t)=>e.has(i)?Bs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Fc=(i,e,t)=>(Hc(i,e,"access private method"),t),Cr,Ds;let ce=class extends Ue(we("",f),""){constructor(e="checkbox"){super(),Rc(this,Cr),this._value="",this.labelPosition="right",this._checked=!1,this.indeterminate=!1,this.disabled=!1,this.readonly=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keydown",Fc(this,Cr,Ds))}get value(){return this._value}set value(e){const t=super.value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){super.firstUpdated(e);const t=this.shadowRoot?.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),t.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),t.addEventListener("mouseup",()=>{r=!1})}async focus(){await this.updateComplete,this._input.focus()}async click(){await this.updateComplete,this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.indeterminate=this._input.indeterminate,this.dispatchEvent(new to(to.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled||this.readonly}" .checked="${this.checked}" .indeterminate="${this.indeterminate}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};Cr=new WeakSet,Ds=function(i){i.key=="Enter"&&this.submit()},ce.styles=[g`:host{display:inline-block}label{position:relative;cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}:host([readonly]) label{cursor:default}input{position:absolute;height:0;width:0;opacity:0}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) label{cursor:not-allowed;opacity:.5}.label{display:block}span.label:empty{display:none}`],zt([l({type:String,attribute:"label-position",reflect:!0})],ce.prototype,"labelPosition",2),zt([l({type:Boolean})],ce.prototype,"checked",1),zt([l({type:Boolean,reflect:!0})],ce.prototype,"indeterminate",2),zt([l({type:Boolean,reflect:!0})],ce.prototype,"disabled",2),zt([l({type:Boolean,reflect:!0})],ce.prototype,"readonly",2),zt([A("#input")],ce.prototype,"_input",2);/**
234
+ `;const It=je(Su),Pu=g`@keyframes uui-blink{0%,100%{opacity:.5}50%{opacity:1}}`,Au=je("uui-blink 0.9s infinite both"),zu=g`@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}}`,Lu=je("pulse 0.8s ease-in-out infinite both"),Mu=g`@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)}}`,Ou=je("uui-horizontal-shake 600ms ease backwards");let Ur=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Pe=class extends Ur{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Pe.VALID="valid",Pe.INVALID="invalid";let ot=class extends Ur{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};ot.SELECTED="selected",ot.DESELECTED="deselected";var Tu=Object.defineProperty,Nu=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Tu(e,t,o),o};const Bu=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return Nu([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var Du=Object.defineProperty,ys=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Du(e,t,o),o};const Vu=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}firstUpdated(o){super.firstUpdated(o),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"display: none"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return ys([l({type:String})],t.prototype,"label"),ys([U()],t.prototype,"_labelSlotHasContent"),t};var ju=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,ws=i=>{throw TypeError(i)},Us=(i,e,t,r)=>{for(var o=r>1?void 0:r?Hu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ju(e,t,o),o},_r=(i,e,t)=>e.has(i)||ws("Cannot "+t),X=(i,e,t)=>(_r(i,e,"read from private field"),t?t.call(i):e.get(i)),Wi=(i,e,t)=>e.has(i)?ws("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ru=(i,e,t,r)=>(_r(i,e,"write to private field"),e.set(i,t),t),qi=(i,e,t)=>(_r(i,e,"access private method"),t);const Fu=i=>{var e,t,r,o,s,a,c;class h extends i{constructor(...b){super(...b),Wi(this,o),this._selectable=!1,this.deselectable=!0,this.selected=!1,Wi(this,e,this),Wi(this,t,p=>{p.code!=="Space"&&p.code!=="Enter"||p.composedPath().indexOf(X(this,e))===0&&X(this,r).call(this,p)}),Wi(this,r,p=>{if((this._selectable||this.deselectable&&this.selected)===!1)return;const _=p.composedPath();X(this,e)===this&&_.some(m=>{const w=m.tagName;return w==="A"||w==="BUTTON"||w==="INPUT"||w==="TEXTAREA"||w==="SELECT"})||_.indexOf(X(this,e))!==-1&&(p.type==="keydown"&&p.preventDefault(),qi(this,o,s).call(this))}),this.addEventListener("click",X(this,r)),this.addEventListener("keydown",X(this,t))}get selectable(){return this._selectable}set selectable(b){const p=this._selectable;p!==b&&(this._selectable=b,X(this,e)===this&&X(this,e).setAttribute("tabindex",`${b?"0":"-1"}`),this.requestUpdate("selectable",p))}get selectableTarget(){return X(this,e)}set selectableTarget(b){const p=X(this,e);p.removeAttribute("tabindex"),p.removeEventListener("click",X(this,r)),p.removeEventListener("keydown",X(this,t)),Ru(this,e,b),X(this,e)===this&&X(this,e).setAttribute("tabindex",this._selectable?"0":"-1"),b.addEventListener("click",X(this,r)),b.addEventListener("keydown",X(this,t))}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,o=new WeakSet,s=function(){this.selectable&&(this.deselectable===!1?qi(this,o,a).call(this):this.selected?qi(this,o,c).call(this):qi(this,o,a).call(this))},a=function(){if(!this.selectable)return;const d=new ot(ot.SELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!0)},c=function(){if(!this.deselectable)return;const d=new ot(ot.DESELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!1)},Us([l({type:Boolean,reflect:!0})],h.prototype,"selectable",1),Us([l({type:Boolean,reflect:!0})],h.prototype,"selected",2),h};var Gu=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,qu=(i,e,t,r)=>{for(var o=Wu(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Gu(e,t,o),o};const Ku=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return qu([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};var Xu=Object.defineProperty,Yu=Object.getOwnPropertyDescriptor,_s=i=>{throw TypeError(i)},rt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Yu(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Xu(e,t,o),o},$r=(i,e,t)=>e.has(i)||_s("Cannot "+t),L=(i,e,t)=>($r(i,e,"read from private field"),t?t.call(i):e.get(i)),nt=(i,e,t)=>e.has(i)?_s("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),kr=(i,e,t,r)=>($r(i,e,"write to private field"),e.set(i,t),t),Ki=(i,e,t)=>($r(i,e,"access private method"),t);const Zu=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],Qu=(i,e)=>{var t,r,o,s,a,c,h,d,b;class p extends i{constructor(...m){super(...m),nt(this,c),this.name="",nt(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",nt(this,r,e),nt(this,o,null),nt(this,s,[]),nt(this,a,[]),nt(this,b,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return L(this,r)}set value(m){const w=L(this,r);kr(this,r,m),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(L(this,r)??null),this.requestUpdate("value",w)}set pristine(m){this._pristine!==m&&(this._pristine=m,m?this.setAttribute("pristine",""):this.removeAttribute("pristine"),Ki(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const m=L(this,a).find(w=>w.validity.valid===!1);m?"focusFirstInvalidElement"in m?m.focusFirstInvalidElement():m.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),Ki(this,c,h).call(this)}addValidator(m,w,S){const C={flagKey:m,getMessageMethod:w,checkMethod:S,weight:Zu.indexOf(m)};return L(this,s).push(C),L(this,s).sort((N,te)=>N.weight>te.weight?1:te.weight>N.weight?-1:0),C}removeValidator(m){const w=L(this,s).indexOf(m);w!==-1&&L(this,s).splice(w,1)}addFormControlElement(m){L(this,a).push(m),m.addEventListener(Pe.INVALID,()=>{this._runValidators()}),m.addEventListener(Pe.VALID,()=>{this._runValidators()}),this._pristine===!1&&(m.checkValidity(),this._runValidators())}setCustomValidity(m){this._customValidityObject&&this.removeValidator(this._customValidityObject),m!=null&&m!==""&&(this._customValidityObject=this.addValidator("customError",()=>m,()=>!0)),this._runValidators()}_runValidators(){kr(this,t,{});let m,w;L(this,s).some(C=>C.checkMethod()?(L(this,t)[C.flagKey]=!0,m=C.getMessageMethod(),!0):!1),m||L(this,a).some(C=>{let N;for(N in C.validity)if(N!=="valid"&&C.validity[N])return L(this,t)[N]=!0,m=C.validationMessage,w??(w=C),!0;return!1});const S=Object.values(L(this,t)).includes(!0);L(this,t).valid=!S,this._internals.setValidity(L(this,t),m,w??this.getFormElement()??void 0),Ki(this,c,d).call(this)}updated(m){super.updated(m),this._runValidators()}submit(){L(this,o)?.requestSubmit()}formAssociatedCallback(){Ki(this,c,h).call(this),kr(this,o,this._internals.form),L(this,o)&&(L(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),L(this,o).addEventListener("submit",L(this,b)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const m in L(this,a))if(L(this,a)[m].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return L(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){L(this,o)&&L(this,o).removeEventListener("submit",L(this,b))},d=function(){this._pristine!==!0&&(L(this,t).valid?this.dispatchEvent(new Pe(Pe.VALID)):this.dispatchEvent(new Pe(Pe.INVALID)))},b=new WeakMap,p.formAssociated=!0,rt([l({type:String})],p.prototype,"name",2),rt([l()],p.prototype,"value",1),rt([l({type:Boolean,reflect:!0,attribute:"pristine"})],p.prototype,"pristine",1),rt([l({type:Boolean,reflect:!0})],p.prototype,"required",2),rt([l({type:String,attribute:"required-message"})],p.prototype,"requiredMessage",2),rt([l({type:Boolean,reflect:!0})],p.prototype,"error",2),rt([l({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),p};class Ju{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}}const ec=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},tc=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;if("TouchEvent"in window&&o instanceof TouchEvent)d=o.touches[0];else if(o instanceof MouseEvent)d=o;else return;const b=d.pageX-c,p=d.pageY-h;e?.onMove&&e.onMove(b,p)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},ic=(i,e,t)=>Math.min(Math.max(i,e),t),oc=(i,e,t)=>t+e-i,rc=i=>{const e=Math.round(i).toString(16);return e.length===1?`0${e}`:e},$s=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function nc(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}var sc=Object.defineProperty,ks=i=>{throw TypeError(i)},ac=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&sc(e,t,o),o},Es=(i,e,t)=>e.has(i)||ks("Cannot "+t),xs=(i,e,t)=>(Es(i,e,"read from private field"),e.get(i)),Is=(i,e,t)=>e.has(i)?ks("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),lc=(i,e,t,r)=>(Es(i,e,"write to private field"),e.set(i,t),t);const uc=i=>{var e,t;class r extends i{constructor(...s){super(...s),Is(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=$s(this,"id",this.popoverContainerElement);a&&(xs(this,e)?a.hidePopover():a.showPopover())},Is(this,t,a=>{requestAnimationFrame(()=>{lc(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",xs(this,t))}}return e=new WeakMap,t=new WeakMap,ac([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};function cc(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}const hc=["default","primary","secondary","outline","placeholder"],dc=["default","positive","warning","danger","invalid"],pc=["h1","h2","h3","h4","h5","h6"];function v(i,e){return t=>{if(!(i.indexOf("-")>0)){console.error(`${i} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(i)||window.customElements.define(i,t,e)}}var mc=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIButtonGroupElement=class extends f{render(){return u`<slot></slot>`}},n.UUIButtonGroupElement.styles=[g`:host{display:inline-flex;align-items:stretch}::slotted(*){--uui-button-border-radius:0;flex-grow:1}::slotted([look=outline]:not(:first-child)){--uui-button-merge-border-left:1}::slotted([look=placeholder]:not(:first-child)){--uui-button-merge-border-left:1}::slotted(:first-child){--uui-button-border-radius:var(--uui-border-radius,3px) 0 0 var(--uui-border-radius,3px)}::slotted(:last-child){--uui-button-border-radius:0 var(--uui-border-radius,3px) var(--uui-border-radius,3px) 0}::slotted(:hover){z-index:1}`],n.UUIButtonGroupElement=mc([v("uui-button-group")],n.UUIButtonGroupElement);var bc=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIActionBarElement=class extends n.UUIButtonGroupElement{},n.UUIActionBarElement.styles=[...n.UUIButtonGroupElement.styles,g`::slotted(*){--uui-button-padding-left-factor:0.5;--uui-button-padding-right-factor:0.5}::slotted(:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:2}::slotted(:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:2}::slotted(:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:2;--uui-button-padding-right-factor:2}::slotted([look=outline]),::slotted([look=placeholder]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1}::slotted(uui-button[look=outline]:first-child),::slotted(uui-button[look=placeholder]:first-child){--uui-button-border-radius:50px 0 0 50px;--uui-button-padding-left-factor:1.5}::slotted(uui-button[look=outline]:last-child),::slotted(uui-button[look=placeholder]:last-child){--uui-button-border-radius:0 50px 50px 0;--uui-button-padding-right-factor:1.5}::slotted(uui-button[look=outline]:first-child:last-child),::slotted(uui-button[look=placeholder]:first-child:last-child){--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}`],n.UUIActionBarElement=bc([v("uui-action-bar")],n.UUIActionBarElement);var vc=Object.defineProperty,gc=Object.getOwnPropertyDescriptor,Xi=(i,e,t,r)=>{for(var o=r>1?void 0:r?gc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vc(e,t,o),o};n.UUIAvatarGroupElement=class extends f{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(e){e.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((e,t)=>{e.style.display=t<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return u`<slot @slotchange="${this._onSlotChange}"></slot>${this._isLimitExceeded()?u`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}`}},n.UUIAvatarGroupElement.styles=[g`: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}`],Xi([Re({selector:"uui-avatar, [uui-avatar]",flatten:!0})],n.UUIAvatarGroupElement.prototype,"_avatarNodes",2),Xi([U()],n.UUIAvatarGroupElement.prototype,"_avatarArray",2),Xi([l({type:Number,attribute:!0})],n.UUIAvatarGroupElement.prototype,"limit",2),n.UUIAvatarGroupElement=Xi([v("uui-avatar-group")],n.UUIAvatarGroupElement);var fc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,Ct=(i,e,t,r)=>{for(var o=r>1?void 0:r?yc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fc(e,t,o),o};n.UUIAvatarElement=class extends f{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this.name=""}get _initials(){return this.initials?.substring(0,3)||this.createInitials(this.name)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(e){let t="";if(!e)return t;const r=[...e.matchAll(/(?:^|\s)(.)/g)].map(o=>o[1]).join("");return r?.length?(t=r[0].charAt(0),r.length>1&&(t+=r[r.length-1].charAt(0)),t.toUpperCase()):t}renderImage(){return u`<img src="${this.imgSrc}" srcset="${this.imgSrcset}" alt="${this._initials}" title="${this.name}">`}render(){return u`${this.imgSrc?this.renderImage():""} ${this.imgSrc?"":this._initials}<slot></slot>`}},n.UUIAvatarElement.styles=[g`: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%}`],Ct([l({type:Boolean,attribute:!0,reflect:!0})],n.UUIAvatarElement.prototype,"overflow",2),Ct([l({type:String,attribute:"img-src"})],n.UUIAvatarElement.prototype,"imgSrc",2),Ct([l({type:String,attribute:"img-srcset"})],n.UUIAvatarElement.prototype,"imgSrcset",2),Ct([l({type:String,reflect:!0})],n.UUIAvatarElement.prototype,"name",2),Ct([l({type:String})],n.UUIAvatarElement.prototype,"initials",2),n.UUIAvatarElement=Ct([v("uui-avatar")],n.UUIAvatarElement);var wc=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Yi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Uc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&wc(e,t,o),o};n.UUIBadgeElement=class extends f{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return u`<slot></slot>`}},n.UUIBadgeElement.styles=[g`:host{position:var(--uui-badge-position,absolute);display:flex;justify-content:center;align-items:center;padding:var(--uui-size-1,3px) var(--uui-size-2,6px);inset:var(--uui-badge-inset,-8px -8px auto auto);text-align:center;font-size:var(--uui-badge-font-size,var(--uui-type-small-size,12px));font-weight:900;line-height:1;margin-right:0;min-width:var(--uui-size-8,24px);min-height:var(--uui-size-8,24px);box-sizing:border-box;border-radius:var(--uui-size-4,12px);border:1px solid transparent}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(
235
+ 28,
236
+ 35,
237
+ 59
238
+ ));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(
239
+ 10,
240
+ 115,
241
+ 73
242
+ ));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(
243
+ 191,
244
+ 33,
245
+ 78
246
+ ));--color-contrast:var(--uui-color-danger-contrast,white)}:host([color=invalid]){--color:var(--uui-color-invalid,#d42054);--color-standalone:var(--uui-color-invalid-standalone,rgb(
247
+ 191,
248
+ 33,
249
+ 78
250
+ ));--color-contrast:var(--uui-color-invalid-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}::slotted(uui-icon){margin-left:-.2em;margin-right:-.2em}@keyframes --uui-badge-bounce{0%{transform:translateY(0)}20%{transform:translateY(-6px)}40%{transform:translateY(0)}55%{transform:translateY(-3px)}70%{transform:translateY(0)}100%{transform:translateY(0)}}:host([attention]){animation-duration:1.4s;animation-iteration-count:infinite;animation-name:--uui-badge-bounce;animation-timing-function:ease}@media (prefers-reduced-motion){:host([attention]){animation:none}}`],Yi([l({reflect:!0})],n.UUIBadgeElement.prototype,"color",2),Yi([l({reflect:!0})],n.UUIBadgeElement.prototype,"look",2),Yi([l({type:Boolean,reflect:!0})],n.UUIBadgeElement.prototype,"attention",2),n.UUIBadgeElement=Yi([v("uui-badge")],n.UUIBadgeElement);var _c=Object.defineProperty,$c=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&_c(e,t,o),o};const wi=i=>{class e extends i{constructor(){super(...arguments),this.active=!1}}return $c([l({type:Boolean,reflect:!0})],e.prototype,"active"),e};var kc=Object.defineProperty,Cs=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&kc(e,t,o),o};const we=(i,e)=>{class t extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}firstUpdated(o){super.firstUpdated(o),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(o){this._labelSlotHasContent=o.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return u`${this._labelSlotHasContent===!1?u`<span class="label">${this.label}</span>`:""}<slot class="label" style="${this._labelSlotHasContent?"":"display: none"}" name="${i||""}" @slotchange="${this.labelSlotChanged}"></slot>`}}return Cs([l({type:String})],t.prototype,"label"),Cs([U()],t.prototype,"_labelSlotHasContent"),t};let Ec=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},St=class extends Ec{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};St.SELECTED="selected",St.DESELECTED="deselected";var xc=Object.defineProperty,Ic=Object.getOwnPropertyDescriptor,Ss=i=>{throw TypeError(i)},Ps=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ic(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xc(e,t,o),o},Er=(i,e,t)=>e.has(i)||Ss("Cannot "+t),Y=(i,e,t)=>(Er(i,e,"read from private field"),t?t.call(i):e.get(i)),Zi=(i,e,t)=>e.has(i)?Ss("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Cc=(i,e,t,r)=>(Er(i,e,"write to private field"),e.set(i,t),t),Qi=(i,e,t)=>(Er(i,e,"access private method"),t);const Pt=i=>{var e,t,r,o,s,a,c;class h extends i{constructor(...b){super(...b),Zi(this,o),this._selectable=!1,this.deselectable=!0,this.selected=!1,Zi(this,e,this),Zi(this,t,p=>{p.code!=="Space"&&p.code!=="Enter"||p.composedPath().indexOf(Y(this,e))===0&&Y(this,r).call(this,p)}),Zi(this,r,p=>{if((this._selectable||this.deselectable&&this.selected)===!1)return;const _=p.composedPath();Y(this,e)===this&&_.some(m=>{const w=m.tagName;return w==="A"||w==="BUTTON"||w==="INPUT"||w==="TEXTAREA"||w==="SELECT"})||_.indexOf(Y(this,e))!==-1&&(p.type==="keydown"&&p.preventDefault(),Qi(this,o,s).call(this))}),this.addEventListener("click",Y(this,r)),this.addEventListener("keydown",Y(this,t))}get selectable(){return this._selectable}set selectable(b){const p=this._selectable;p!==b&&(this._selectable=b,Y(this,e)===this&&Y(this,e).setAttribute("tabindex",`${b?"0":"-1"}`),this.requestUpdate("selectable",p))}get selectableTarget(){return Y(this,e)}set selectableTarget(b){const p=Y(this,e);p.removeAttribute("tabindex"),p.removeEventListener("click",Y(this,r)),p.removeEventListener("keydown",Y(this,t)),Cc(this,e,b),Y(this,e)===this&&Y(this,e).setAttribute("tabindex",this._selectable?"0":"-1"),b.addEventListener("click",Y(this,r)),b.addEventListener("keydown",Y(this,t))}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,o=new WeakSet,s=function(){this.selectable&&(this.deselectable===!1?Qi(this,o,a).call(this):this.selected?Qi(this,o,c).call(this):Qi(this,o,a).call(this))},a=function(){if(!this.selectable)return;const d=new St(St.SELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!0)},c=function(){if(!this.deselectable)return;const d=new St(St.DESELECTED);this.dispatchEvent(d),!d.defaultPrevented&&(this.selected=!1)},Ps([l({type:Boolean,reflect:!0})],h.prototype,"selectable",1),Ps([l({type:Boolean,reflect:!0})],h.prototype,"selected",2),h};var Sc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,Ac=(i,e,t,r)=>{for(var o=Pc(e,t),s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Sc(e,t,o),o};const Ji=i=>{class e extends i{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(r){const o=this._selectOnly;this._selectOnly=r,this.requestUpdate("selectOnly",o)}}return Ac([l({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly"),e};let As=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},Fe=class extends As{constructor(e,t={}){super(e,{bubbles:!0,...t})}};Fe.VALID="valid",Fe.INVALID="invalid";let zs=class extends As{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};zs.SELECTED="selected",zs.DESELECTED="deselected";var zc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Ls=i=>{throw TypeError(i)},st=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zc(e,t,o),o},xr=(i,e,t)=>e.has(i)||Ls("Cannot "+t),M=(i,e,t)=>(xr(i,e,"read from private field"),t?t.call(i):e.get(i)),at=(i,e,t)=>e.has(i)?Ls("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ir=(i,e,t,r)=>(xr(i,e,"write to private field"),e.set(i,t),t),eo=(i,e,t)=>(xr(i,e,"access private method"),t);const Mc=["customError","valueMissing","badInput","typeMismatch","patternMismatch","rangeOverflow","rangeUnderflow","stepMismatch","tooLong","tooShort"],Ue=(i,e)=>{var t,r,o,s,a,c,h,d,b;class p extends i{constructor(...m){super(...m),at(this,c),this.name="",at(this,t,{}),this._pristine=!1,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",at(this,r,e),at(this,o,null),at(this,s,[]),at(this,a,[]),at(this,b,()=>{this.pristine=!1}),this._internals=this.attachInternals(),this.pristine=!0,this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1,this.checkValidity()})}get value(){return M(this,r)}set value(m){const w=M(this,r);Ir(this,r,m),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(M(this,r)??null),this.requestUpdate("value",w)}set pristine(m){this._pristine!==m&&(this._pristine=m,m?this.setAttribute("pristine",""):this.removeAttribute("pristine"),eo(this,c,d).call(this))}get pristine(){return this._pristine}hasValue(){return this.value!==this.getDefaultValue()}focusFirstInvalidElement(){const m=M(this,a).find(w=>w.validity.valid===!1);m?"focusFirstInvalidElement"in m?m.focusFirstInvalidElement():m.focus():this.focus()}disconnectedCallback(){super.disconnectedCallback(),eo(this,c,h).call(this)}addValidator(m,w,S){const C={flagKey:m,getMessageMethod:w,checkMethod:S,weight:Mc.indexOf(m)};return M(this,s).push(C),M(this,s).sort((N,te)=>N.weight>te.weight?1:te.weight>N.weight?-1:0),C}removeValidator(m){const w=M(this,s).indexOf(m);w!==-1&&M(this,s).splice(w,1)}addFormControlElement(m){M(this,a).push(m),m.addEventListener(Fe.INVALID,()=>{this._runValidators()}),m.addEventListener(Fe.VALID,()=>{this._runValidators()}),this._pristine===!1&&(m.checkValidity(),this._runValidators())}setCustomValidity(m){this._customValidityObject&&this.removeValidator(this._customValidityObject),m!=null&&m!==""&&(this._customValidityObject=this.addValidator("customError",()=>m,()=>!0)),this._runValidators()}_runValidators(){Ir(this,t,{});let m,w;M(this,s).some(C=>C.checkMethod()?(M(this,t)[C.flagKey]=!0,m=C.getMessageMethod(),!0):!1),m||M(this,a).some(C=>{let N;for(N in C.validity)if(N!=="valid"&&C.validity[N])return M(this,t)[N]=!0,m=C.validationMessage,w??(w=C),!0;return!1});const S=Object.values(M(this,t)).includes(!0);M(this,t).valid=!S,this._internals.setValidity(M(this,t),m,w??this.getFormElement()??void 0),eo(this,c,d).call(this)}updated(m){super.updated(m),this._runValidators()}submit(){M(this,o)?.requestSubmit()}formAssociatedCallback(){eo(this,c,h).call(this),Ir(this,o,this._internals.form),M(this,o)&&(M(this,o).hasAttribute("submit-invalid")&&(this.pristine=!1),M(this,o).addEventListener("submit",M(this,b)))}formResetCallback(){this.pristine=!0,this.value=this.getInitialValue()??this.getDefaultValue()}getDefaultValue(){return e}getInitialValue(){return this.getAttribute("value")}checkValidity(){this.pristine=!1,this._runValidators();for(const m in M(this,a))if(M(this,a)[m].checkValidity()===!1)return!1;return this._internals?.checkValidity()}get validity(){return M(this,t)}get validationMessage(){return this._internals?.validationMessage}}return t=new WeakMap,r=new WeakMap,o=new WeakMap,s=new WeakMap,a=new WeakMap,c=new WeakSet,h=function(){M(this,o)&&M(this,o).removeEventListener("submit",M(this,b))},d=function(){this._pristine!==!0&&(M(this,t).valid?this.dispatchEvent(new Fe(Fe.VALID)):this.dispatchEvent(new Fe(Fe.INVALID)))},b=new WeakMap,p.formAssociated=!0,st([l({type:String})],p.prototype,"name",2),st([l()],p.prototype,"value",1),st([l({type:Boolean,reflect:!0,attribute:"pristine"})],p.prototype,"pristine",1),st([l({type:Boolean,reflect:!0})],p.prototype,"required",2),st([l({type:String,attribute:"required-message"})],p.prototype,"requiredMessage",2),st([l({type:Boolean,reflect:!0})],p.prototype,"error",2),st([l({type:String,attribute:"error-message"})],p.prototype,"errorMessage",2),p},Oc=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};var Tc=Object.defineProperty,Ms=i=>{throw TypeError(i)},Nc=(i,e,t,r)=>{for(var o=void 0,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(e,t,o)||o);return o&&Tc(e,t,o),o},Os=(i,e,t)=>e.has(i)||Ms("Cannot "+t),Ts=(i,e,t)=>(Os(i,e,"read from private field"),e.get(i)),Ns=(i,e,t)=>e.has(i)?Ms("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Bc=(i,e,t,r)=>(Os(i,e,"write to private field"),e.set(i,t),t);const Dc=i=>{var e,t;class r extends i{constructor(...s){super(...s),Ns(this,e,!1),this._togglePopover=()=>{if(!this.popoverContainerElement)return;const a=Oc(this,"id",this.popoverContainerElement);a&&(Ts(this,e)?a.hidePopover():a.showPopover())},Ns(this,t,a=>{requestAnimationFrame(()=>{Bc(this,e,a.detail.newState==="open")})}),this.addEventListener("uui-popover-before-toggle",Ts(this,t))}}return e=new WeakMap,t=new WeakMap,Nc([l({type:String,attribute:"popovertarget"})],r.prototype,"popoverContainerElement"),r};let z=class extends Event{constructor(e,t={}){super(e,{...t}),this.detail=t.detail||{}}},At=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};At.VALID="valid",At.INVALID="invalid";let Ge=class extends z{constructor(e,t={}){super(e,{bubbles:!0,cancelable:!0,...t})}};Ge.SELECTED="selected",Ge.DESELECTED="deselected";let to=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};to.CHANGE="change";var Vc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,Bs=i=>{throw TypeError(i)},zt=(i,e,t,r)=>{for(var o=r>1?void 0:r?jc(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Vc(e,t,o),o},Hc=(i,e,t)=>e.has(i)||Bs("Cannot "+t),Rc=(i,e,t)=>e.has(i)?Bs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Fc=(i,e,t)=>(Hc(i,e,"access private method"),t),Cr,Ds;let ce=class extends Ue(we("",f),""){constructor(e="checkbox"){super(),Rc(this,Cr),this._value="",this.labelPosition="right",this._checked=!1,this.indeterminate=!1,this.disabled=!1,this.readonly=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keydown",Fc(this,Cr,Ds))}get value(){return this._value}set value(e){const t=super.value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",t)}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",t)}getFormElement(){return this._input}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){super.firstUpdated(e);const t=this.shadowRoot?.querySelector("label");let r=!1;this._input.addEventListener("blur",()=>{r===!1&&this.style.setProperty("--uui-show-focus-outline","1"),r=!1}),t.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),r=!0}),t.addEventListener("mouseup",()=>{r=!1})}async focus(){await this.updateComplete,this._input.focus()}async click(){await this.updateComplete,this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.indeterminate=this._input.indeterminate,this.dispatchEvent(new to(to.CHANGE))}render(){return u`<label><input id="input" type="checkbox" @change="${this._onInputChange}" .disabled="${this.disabled||this.readonly}" .checked="${this.checked}" .indeterminate="${this.indeterminate}" aria-checked="${this.checked?"true":"false"}" aria-label="${this.label}" role="${this.inputRole}"> ${this.renderCheckbox()} ${this.renderLabel()}</label>`}};Cr=new WeakSet,Ds=function(i){i.key=="Enter"&&this.submit()},ce.styles=[g`:host{display:inline-block}label{position:relative;cursor:pointer;user-select:none;display:flex;flex-wrap:nowrap;align-items:center;justify-items:center;gap:var(--uui-size-3,9px)}:host([readonly]) label{cursor:default}input{position:absolute;height:0;width:0;opacity:0}:host([label-position=left]) label{flex-direction:row-reverse}:host([label-position=top]) label{gap:var(--uui-size-half-base-unit);flex-direction:column-reverse}:host([label-position=bottom]) label{gap:var(--uui-size-half-base-unit);flex-direction:column}:host([disabled]) label{cursor:not-allowed;opacity:.5}.label{display:block}span.label:empty{display:none}`],zt([l({type:String,attribute:"label-position",reflect:!0})],ce.prototype,"labelPosition",2),zt([l({type:Boolean})],ce.prototype,"checked",1),zt([l({type:Boolean,reflect:!0})],ce.prototype,"indeterminate",2),zt([l({type:Boolean,reflect:!0})],ce.prototype,"disabled",2),zt([l({type:Boolean,reflect:!0})],ce.prototype,"readonly",2),zt([A("#input")],ce.prototype,"_input",2);/**
235
251
  * @license
236
252
  * Copyright 2020 Google LLC
237
253
  * SPDX-License-Identifier: BSD-3-Clause
@@ -293,7 +309,39 @@
293
309
  * @license
294
310
  * Copyright 2018 Google LLC
295
311
  * SPDX-License-Identifier: BSD-3-Clause
296
- */const $=i=>i??x;let ro=class extends z{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t})}};ro.CLICK="click";var oh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,Ws=i=>{throw TypeError(i)},ut=(i,e,t,r)=>{for(var o=r>1?void 0:r?rh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&oh(e,t,o),o},nh=(i,e,t)=>e.has(i)||Ws("Cannot "+t),sh=(i,e,t)=>e.has(i)?Ws("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),no=(i,e,t)=>(nh(i,e,"access private method"),t),Ot,Ar,qs,Ks;n.UUIButtonInlineCreateElement=class extends f{constructor(){super(...arguments),sh(this,Ot),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=(this.vertical?e.offsetY:e.offsetX)-5}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),e.target?.blur?.(),this.dispatchEvent(new ro(ro.CLICK))}render(){return this.href?no(this,Ot,qs).call(this):no(this,Ot,Ks).call(this)}},Ot=new WeakSet,Ar=function(){return u`<div id="plus" style="${Ae({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>`},qs=function(){return u`<a id="button-wrapper" @mousemove="${this._onMouseMove}" href="${$(this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}" aria-label="${this.label?this.label:"create new element"}">${no(this,Ot,Ar).call(this)}</a>`},Ks=function(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}">${no(this,Ot,Ar).call(this)}</button>`},n.UUIButtonInlineCreateElement.styles=[Jc,g`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${eh};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-18px}:host([vertical]) #plus{left:-4px;margin-top:-18px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],ut([U()],n.UUIButtonInlineCreateElement.prototype,"_position",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),ut([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"href",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"target",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"rel",2),n.UUIButtonInlineCreateElement=ut([v("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let ah=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const k=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},Xs=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;if("TouchEvent"in window&&o instanceof TouchEvent)d=o.touches[0];else if(o instanceof MouseEvent)d=o;else return;const b=d.pageX-c,p=d.pageY-h;e?.onMove&&e.onMove(b,p)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},O=(i,e,t)=>Math.min(Math.max(i,e),t),Ys=(i,e,t)=>t+e-i,lh=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function uh(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`;const so=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`;const ch=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`;const hh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`;const dh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`;const zr=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`;const ph=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`;const mh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`;const bh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,vh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`;const gh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;var fh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Zs=i=>{throw TypeError(i)},ve=(i,e,t,r)=>{for(var o=r>1?void 0:r?yh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fh(e,t,o),o},Qs=(i,e,t)=>e.has(i)||Zs("Cannot "+t),wh=(i,e,t)=>(Qs(i,e,"read from private field"),e.get(i)),Uh=(i,e,t)=>e.has(i)?Zs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),_h=(i,e,t,r)=>(Qs(i,e,"write to private field"),e.set(i,t),t),ao;n.UUIButtonElement=class extends Ue(we("",Dc(f))){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,Uh(this,ao),this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}async focus(){await this.updateComplete,this._button.focus()}async blur(){await this.updateComplete,this._button.blur()}async click(){await this.updateComplete,this._button.click()}_onHostClick(e){if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if(this._internals?.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(wh(this,ao)),(this.state==="success"||this.state==="failed")&&_h(this,ao,setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":k(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":k(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${so.strings[0]}"></uui-icon>`;break;case"failed":k(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${gh.strings[0]}"></uui-icon>`;break;default:return x}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${$(this.label)}" href="${$(this.disabled?void 0:this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${$(this.label)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},ao=new WeakMap,n.UUIButtonElement.styles=[io,g`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;transition:opacity 120ms;display:flex;gap:var(--uui-size-1,3px);align-items:center}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none;transition:var(--uui-button-transition,none)}#button:focus-visible{outline:2px solid var(--color-emphasis)}a:not([href]):active,button[disabled]:active{animation:${oo}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}#icon-check,#icon-wrong{display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-emphasis:var(--uui-color-positive-emphasis,rgb(13, 155, 98));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(251, 224, 101));--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]) #button{--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-danger-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-danger-contrast,white)}:host([color=invalid]) #button{--color:var(--uui-color-invalid,#d42054);--color-standalone:var(--uui-color-invalid-standalone,rgb(191, 33, 78));--color-emphasis:var(--uui-color-invalid-emphasis,rgb(226, 60, 107));--color-contrast:var(--uui-color-invalid-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary]) #button:focus-visible{outline-offset:2px}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],ve([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),ve([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),ve([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),ve([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),ve([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),ve([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),ve([l({type:String})],n.UUIButtonElement.prototype,"href",2),ve([l({type:String})],n.UUIButtonElement.prototype,"target",2),ve([l({type:String})],n.UUIButtonElement.prototype,"rel",2),ve([A("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=ve([v("uui-button")],n.UUIButtonElement);let ct=class extends z{constructor(){super(...arguments),this.text=null}};ct.COPIED="copied",ct.COPYING="copying";var $h=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Js=i=>{throw TypeError(i)},lo=(i,e,t,r)=>{for(var o=r>1?void 0:r?kh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$h(e,t,o),o},ea=(i,e,t)=>e.has(i)||Js("Cannot "+t),Lr=(i,e,t)=>(ea(i,e,"read from private field"),t?t.call(i):e.get(i)),ta=(i,e,t)=>e.has(i)?Js("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Eh=(i,e,t,r)=>(ea(i,e,"write to private field"),e.set(i,t),t),Ui,Mr;n.UUIButtonCopyTextElement=class extends n.UUIButtonElement{constructor(){super(),this.text="",this.copyFrom="",this.animationStateDelay=250,ta(this,Ui),ta(this,Mr,async()=>{this.state="waiting";let e=this.text;if(this.copyFrom){const r=document.getElementById(this.copyFrom);if(r)"value"in r?e=r.value:e=r.textContent??r.innerText??"";else{console.error(`Element ID ${this.copyFrom} not found to copy from`),this.state="failed";return}}const t=new ct(ct.COPYING);t.text=e,this.dispatchEvent(t),t.text!=null&&(e=t.text);try{await navigator.clipboard.writeText(e);const r=new ct(ct.COPIED);r.text=e,this.dispatchEvent(r),Eh(this,Ui,setTimeout(()=>{this.state="success"},this.animationStateDelay))}catch(r){this.state="failed",console.error("Error copying to clipboard",r)}}),k(this,"uui-icon"),this.addEventListener("click",Lr(this,Mr))}disconnectedCallback(){super.disconnectedCallback(),Lr(this,Ui)&&clearTimeout(Lr(this,Ui))}renderLabel(){return u`<slot class="label"><uui-icon name="copy"></uui-icon></slot>`}},Ui=new WeakMap,Mr=new WeakMap,n.UUIButtonCopyTextElement.styles=n.UUIButtonElement.styles,lo([l({type:String})],n.UUIButtonCopyTextElement.prototype,"text",2),lo([l({type:String,attribute:"copy-from"})],n.UUIButtonCopyTextElement.prototype,"copyFrom",2),lo([l({type:Number,attribute:"animation-state-delay"})],n.UUIButtonCopyTextElement.prototype,"animationStateDelay",2),n.UUIButtonCopyTextElement=lo([v("uui-button-copy-text")],n.UUIButtonCopyTextElement);let Tt=class extends z{};Tt.OPEN="open";var xh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Nt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ih(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xh(e,t,o),o};n.UUICardElement=class extends Ji(Pt(f)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new Tt(Tt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new Tt(Tt.OPEN)))}render(){return u`<slot id="open-part"></slot><div id="select-border"></div>`}},n.UUICardElement.styles=[It,g`: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([selectable]:focus-visible){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() *{outline-color:var(--uui-color-focus,#3879ff)}: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-invalid,#d42054);border-radius:var(--uui-border-radius,3px)}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}a{text-decoration:none;color:inherit;line-height:initial}a:focus,button: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);border-radius:var(--uui-border-radius,3px)}: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}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}`],Nt([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),Nt([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),Nt([l({type:String})],n.UUICardElement.prototype,"href",2),Nt([l({type:String})],n.UUICardElement.prototype,"target",2),Nt([l({type:String})],n.UUICardElement.prototype,"rel",2),n.UUICardElement=Nt([v("uui-card")],n.UUICardElement);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,ia=i=>{throw TypeError(i)},uo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ch(e,t,o),o},Ph=(i,e,t)=>e.has(i)||ia("Cannot "+t),Ah=(i,e,t)=>e.has(i)?ia("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),_i=(i,e,t)=>(Ph(i,e,"access private method"),t),ht,oa,ra,na,Or;n.UUICardBlockTypeElement=class extends n.UUICardElement{constructor(){super(...arguments),Ah(this,ht),this.name=""}get background(){}set background(e){this.style.backgroundColor=e??""}render(){return u`${_i(this,ht,na).call(this)} ${this.href?_i(this,ht,ra).call(this):_i(this,ht,oa).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},ht=new WeakSet,oa=function(){return u`<button id="open-part" class="uui-text" tabindex="${this.disabled?x:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${_i(this,ht,Or).call(this)}</button>`},ra=function(){return u`<a id="open-part" class="uui-text" tabindex="${this.disabled?x:"0"}" href="${$(this.disabled?void 0:this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}">${_i(this,ht,Or).call(this)}</a>`},na=function(){return u`<div id="portrait"><slot></slot></div>`},Or=function(){return u`<div id="content"><span title="${this.name}" id="name">${this.name}</span> <small title="${this.description}">${this.description}<slot name="description"></slot></small></div>`},n.UUICardBlockTypeElement.styles=[...n.UUICardElement.styles,g`:host{background-color:var(--uui-color-surface-alt,#f3f3f5)}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;z-index:2}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;z-index:2;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#portrait{display:flex;justify-content:center;min-height:150px;max-height:150px;width:100%;margin-bottom:var(--uui-size-layout-2,30px)}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;max-width:100%;max-height:100%;font-size:var(--uui-size-8,24px)}#open-part{position:absolute;z-index:1;inset:0;color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}#open-part:hover #name{text-decoration:underline}#open-part #name,#open-part small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}#content{position:relative;display:flex;flex-direction:column;width:100%;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;text-align:left;word-break:break-word;padding-top:var(--uui-size-space-3,9px)}#content::before{content:'';position:absolute;inset:0;z-index:-1;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);pointer-events:none;opacity:.96}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}:host([selectable]) #open-part{inset:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host(:not([selectable])) #content{padding:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host([selectable]) #content::before{inset:calc(var(--uui-size-space-3,9px) * -1) calc(var(--uui-size-space-4,12px) * -1);top:0}`],uo([l({type:String})],n.UUICardBlockTypeElement.prototype,"name",2),uo([l({type:String})],n.UUICardBlockTypeElement.prototype,"description",2),uo([l({type:String,attribute:"background"})],n.UUICardBlockTypeElement.prototype,"background",1),n.UUICardBlockTypeElement=uo([v("uui-card-block-type")],n.UUICardBlockTypeElement);var zh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,sa=i=>{throw TypeError(i)},co=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zh(e,t,o),o},Mh=(i,e,t)=>e.has(i)||sa("Cannot "+t),Oh=(i,e,t)=>e.has(i)?sa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ho=(i,e,t)=>(Mh(i,e,"access private method"),t),Bt,Tr,aa,la;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Oh(this,Bt),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon=`<svg
312
+ */const $=i=>i??x;let ro=class extends z{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t})}};ro.CLICK="click";var oh=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,Ws=i=>{throw TypeError(i)},ut=(i,e,t,r)=>{for(var o=r>1?void 0:r?rh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&oh(e,t,o),o},nh=(i,e,t)=>e.has(i)||Ws("Cannot "+t),sh=(i,e,t)=>e.has(i)?Ws("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),no=(i,e,t)=>(nh(i,e,"access private method"),t),Ot,Ar,qs,Ks;n.UUIButtonInlineCreateElement=class extends f{constructor(){super(...arguments),sh(this,Ot),this._position=0,this.vertical=!1}_onMouseMove(e){this._position=(this.vertical?e.offsetY:e.offsetX)-5}_handleClick(e){e.preventDefault(),e.stopImmediatePropagation(),e.target?.blur?.(),this.dispatchEvent(new ro(ro.CLICK))}render(){return this.href?no(this,Ot,qs).call(this):no(this,Ot,Ks).call(this)}},Ot=new WeakSet,Ar=function(){return u`<div id="plus" style="${Ae({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>`},qs=function(){return u`<a id="button-wrapper" @mousemove="${this._onMouseMove}" href="${$(this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}" aria-label="${this.label?this.label:"create new element"}">${no(this,Ot,Ar).call(this)}</a>`},Ks=function(){return u`<button id="button-wrapper" @mousemove="${this._onMouseMove}" @click="${this._handleClick}" aria-label="${this.label?this.label:"create new element"}">${no(this,Ot,Ar).call(this)}</button>`},n.UUIButtonInlineCreateElement.styles=[Jc,g`:host{display:flex;position:relative;z-index:1}:host(:not([vertical])){height:20px;width:100%;margin:-10px 0}:host([vertical]){height:100%;width:20px;margin:0 -10px}#button-wrapper{display:flex;justify-content:center;align-items:center;position:absolute;z-index:1;outline:0;transition:opacity .24s;display:inline-flex;width:100%;border:none;height:100%;padding:0;text-decoration:none;background:0 0;color:currentColor;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;opacity:0}:host(:focus) #button-wrapper,:host(:focus-within) #button-wrapper,:host(:hover) #button-wrapper{opacity:1}:host(:focus) #button-wrapper:before,:host(:focus-within) #button-wrapper:before,:host(:hover) #button-wrapper:before{animation:${eh};background-color:var(--uui-color-interactive-emphasis,#3544b1);border-color:var(--uui-color-surface,#fff)!important}#button-wrapper:before{content:'';position:absolute;right:0;left:0;height:2px;background-color:transparent;border-top:1px solid transparent;border-bottom:1px solid transparent;border-radius:2px;pointer-events:none;transition:background-color 720ms ease-out,border-color 240ms}:host(:not([vertical])) #button-wrapper:before{top:50%;transform:translateY(-50%)}:host([vertical]) #button-wrapper:before{height:100%;width:2px;left:50%;transform:translateX(-50%);border-top:none;border-bottom:none;border-left:1px solid transparent;border-right:1px solid transparent}:host(:not([vertical]):not(:hover)) #plus:not(:focus){left:calc(50% - 2px)!important}:host([vertical]:not(:hover)) #plus:not(:focus){top:calc(50% - 2px)!important}#plus{position:absolute;display:flex;justify-content:center;align-items:center;pointer-events:none;box-sizing:border-box;width:28px;height:28px;border-radius:3em;font-size:14px;border:2px solid var(--uui-color-interactive-emphasis,#3544b1);color:var(--uui-color-interactive-emphasis,#3544b1);background-color:var(--uui-color-surface,#fff);opacity:0;transform:scale(0);transition:transform 240ms ease-in,opacity 240ms,left .1s linear 150ms,top .1s linear 150ms}:host(:focus) #plus,:host(:focus-within) #plus,:host(:hover) #plus{opacity:1;transform:scale(1);transition:transform 240ms cubic-bezier(.175,.885,.32,1.275),opacity 80ms,box-shadow 240ms cubic-bezier(.175,.885,.32,1.275);box-shadow:0 0 0 2px var(--uui-color-surface,#fff)}:host(:not([vertical])) #plus{margin-left:-18px}:host([vertical]) #plus{left:-4px;margin-top:-18px}#button-wrapper:focus #plus{border:2px solid var(--uui-color-focus,#3879ff);color:var(--uui-color-focus,#3879ff)}#plus-icon{width:50%;fill:currentColor}#button-wrapper:active #plus{transform:scale(1.1)}`],ut([U()],n.UUIButtonInlineCreateElement.prototype,"_position",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"label",2),ut([l({type:Boolean,reflect:!0})],n.UUIButtonInlineCreateElement.prototype,"vertical",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"href",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"target",2),ut([l({type:String})],n.UUIButtonInlineCreateElement.prototype,"rel",2),n.UUIButtonInlineCreateElement=ut([v("uui-button-inline-create")],n.UUIButtonInlineCreateElement);let ah=class{constructor(e,t){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(t)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const k=(i,e,t=`This element has to be present for ${i.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${i.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",t,i)},Xs=(i,e)=>{function t(o){const s=i.getBoundingClientRect(),a=i.ownerDocument.defaultView,c=s.left+a.scrollX,h=s.top+a.scrollY;let d;if("TouchEvent"in window&&o instanceof TouchEvent)d=o.touches[0];else if(o instanceof MouseEvent)d=o;else return;const b=d.pageX-c,p=d.pageY-h;e?.onMove&&e.onMove(b,p)}function r(){document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r),e?.onStop&&e.onStop()}document.addEventListener("pointermove",t,{passive:!0}),document.addEventListener("pointerup",r),e?.initialEvent&&t(e.initialEvent)},O=(i,e,t)=>Math.min(Math.max(i,e),t),Ys=(i,e,t)=>t+e-i,lh=(i,e,t)=>{let r=i;for(;r!==null;){const o=r instanceof HTMLElement&&r.hasAttribute(e)&&r.getAttribute(e)===t,s=r.querySelector(`[${e}="${t}"]`)!==null;if(o)return r;if(s)return r.querySelector(`[${e}="${t}"]`);r=r.parentElement||r.parentNode||r.host||null}return null};function uh(i){return i?i.assignedNodes({flatten:!0}).length>0:!1}y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`;const so=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`;const ch=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`;const hh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`;const dh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`;const zr=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`;const ph=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`;const mh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`;const bh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,vh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`;y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`;const gh=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;var fh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,Zs=i=>{throw TypeError(i)},ve=(i,e,t,r)=>{for(var o=r>1?void 0:r?yh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fh(e,t,o),o},Qs=(i,e,t)=>e.has(i)||Zs("Cannot "+t),wh=(i,e,t)=>(Qs(i,e,"read from private field"),e.get(i)),Uh=(i,e,t)=>e.has(i)?Zs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),_h=(i,e,t,r)=>(Qs(i,e,"write to private field"),e.set(i,t),t),ao;n.UUIButtonElement=class extends Ue(we("",Dc(f))){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,Uh(this,ao),this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}async focus(){await this.updateComplete,this._button.focus()}async blur(){await this.updateComplete,this._button.blur()}async click(){await this.updateComplete,this._button.click()}_onHostClick(e){if(this.disabled){e.preventDefault(),e.stopImmediatePropagation();return}if(this._internals?.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}this._togglePopover()}updated(e){super.updated(e),e.has("state")&&(clearTimeout(wh(this,ao)),(this.state==="success"||this.state==="failed")&&_h(this,ao,setTimeout(()=>this.state=void 0,2e3)))}renderState(){let e;switch(this.state){case"waiting":k(this,"uui-loader-circle"),e=u`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":k(this,"uui-icon"),e=u`<uui-icon name="check" .fallback="${so.strings[0]}"></uui-icon>`;break;case"failed":k(this,"uui-icon"),e=u`<uui-icon name="wrong" .fallback="${gh.strings[0]}"></uui-icon>`;break;default:return x}return u`<div id="state">${e}</div>`}render(){return this.href?u`<a id="button" aria-label="${$(this.label)}" href="${$(this.disabled?void 0:this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></a>`:u`<button id="button" ?disabled="${this.disabled}" aria-label="${$(this.label)}">${this.renderState()} ${this.renderLabel()}<slot name="extra"></slot></button>`}},ao=new WeakMap,n.UUIButtonElement.styles=[io,g`:host{position:relative;display:inline-flex;margin-left:calc(var(--uui-button-merge-border-left,0) * -1px);--uui-button-padding-left-factor:3;--uui-button-padding-right-factor:3;--uui-button-padding-top-factor:1;--uui-button-padding-bottom-factor:1;min-height:var(--uui-button-height,var(--uui-size-11,33px));max-height:100%;cursor:pointer;text-align:center;font-size:var(--uui-button-font-size,inherit);font-weight:var(--uui-button-font-weight,500);transition:background-color 80ms,border-color 80ms,color 80ms}:host([compact]){--uui-button-padding-left-factor:1;--uui-button-padding-right-factor:1;--uui-button-padding-top-factor:0;--uui-button-padding-bottom-factor:0}.label{line-height:normal;transition:opacity 120ms;display:flex;gap:var(--uui-size-1,3px);align-items:center}:host([state]:not([state=''])) .label{opacity:0}#state{position:absolute;opacity:0;animation-name:fadeIn;animation-delay:40ms;animation-duration:360ms;animation-fill-mode:forwards;display:flex;justify-content:center;width:100%;height:100%;align-items:center}#button{width:100%;background-color:transparent;color:inherit;font-size:inherit;border-radius:inherit;font-family:inherit;font-weight:inherit;text-align:inherit;border:none;cursor:inherit;display:inline-flex;align-items:center;justify-content:var(--uui-button-content-align,center);text-decoration:none;color:currentColor;line-height:inherit;border-width:var(--uui-button-border-width,1px);border-style:solid;border-radius:var(--uui-button-border-radius,var(--uui-border-radius,3px));cursor:pointer;padding:calc(var(--uui-size-2,6px) * var(--uui-button-padding-top-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-right-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-bottom-factor)) calc(var(--uui-size-2,6px) * var(--uui-button-padding-left-factor));box-shadow:none;transition:var(--uui-button-transition,none)}#button:focus-visible{outline:2px solid var(--color-emphasis)}a:not([href]):active,button[disabled]:active{animation:${oo}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}#icon-check,#icon-wrong{display:grid;place-items:center;width:1.5em}#loader{font-size:1.5em}:host([look]:not([look=''])) #loader{color:inherit}:host(:not([color]):not([look=primary])),:host([color='']:not([look=primary])),:host([color=default]:not([look=primary])){--uui-button-contrast-hover:var(--uui-color-default-emphasis,#3544b1)}:host([color=warning][look=outline]) #button,:host([color=warning][look=placeholder]) #button{--uui-button-contrast-hover:var(--color-standalone)}#button{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(
313
+ 28,
314
+ 35,
315
+ 59
316
+ ));--color-emphasis:var(--uui-color-default-emphasis,#3544b1);--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]) #button{--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(
317
+ 10,
318
+ 115,
319
+ 73
320
+ ));--color-emphasis:var(--uui-color-positive-emphasis,rgb(
321
+ 13,
322
+ 155,
323
+ 98
324
+ ));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]) #button{--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-emphasis:var(--uui-color-warning-emphasis,rgb(
325
+ 251,
326
+ 224,
327
+ 101
328
+ ));--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(
329
+ 191,
330
+ 33,
331
+ 78
332
+ ));--color-emphasis:var(--uui-color-danger-emphasis,rgb(
333
+ 226,
334
+ 60,
335
+ 107
336
+ ));--color-contrast:var(--uui-color-danger-contrast,white)}:host([color=invalid]) #button{--color:var(--uui-color-invalid,#d42054);--color-standalone:var(--uui-color-invalid-standalone,rgb(
337
+ 191,
338
+ 33,
339
+ 78
340
+ ));--color-emphasis:var(--uui-color-invalid-emphasis,rgb(
341
+ 226,
342
+ 60,
343
+ 107
344
+ ));--color-contrast:var(--uui-color-invalid-contrast,white)}:host([disabled]) #button{--color:var(--uui-color-disabled,#f3f3f5);--color-standalone:var(--uui-color-disabled-contrast,#c4c4c4);--color-emphasis:var(--uui-color-disabled,#f3f3f5);--color-contrast:var(--uui-color-disabled-contrast,#c4c4c4);cursor:default}#button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent)}:host(:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,transparent)}:host([look=primary]) #button{background-color:var(--uui-button-background-color,var(--color));color:var(--uui-button-contrast,var(--color-contrast));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=primary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--color-emphasis));color:var(--uui-button-contrast-hover,var(--color-contrast));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=primary]) #button:focus-visible{outline-offset:2px}:host([look=primary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=secondary]) #button{background-color:var(--uui-button-background-color,var(--uui-color-surface-alt,#f3f3f5));color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,transparent);font-weight:var(--uui-button-font-weight,700)}:host([look=secondary]:hover) #button{background-color:var(--uui-button-background-color-hover,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover,transparent)}:host([look=secondary][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-contrast));border-color:var(--uui-button-border-color-disabled,var(--color))}:host([look=outline]) #button{background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2));font-weight:var(--uui-button-font-weight,700)}:host([look=outline]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=outline][disabled]) #button{background-color:var(--uui-button-background-color-disabled,transparent);color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}:host([look=placeholder]) #button{border-style:dashed;background-color:var(--uui-button-background-color,transparent);color:var(--uui-button-contrast,var(--color-standalone));border-color:var(--uui-button-border-color,var(--uui-color-border-standalone,#c2c2c2))}:host([look=placeholder]:not([disabled]):hover) #button{background-color:var(--uui-button-background-color-hover,transparent);color:var(--uui-button-contrast-hover,var(--color-standalone));border-color:var(--uui-button-border-color-hover)}:host([look=placeholder][disabled]) #button{background-color:var(--uui-button-background-color-disabled,var(--color));color:var(--uui-button-contrast-disabled,var(--color-standalone));border-color:var(--uui-button-border-color-disabled,var(--color-standalone))}`],ve([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"type",2),ve([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"disabled",2),ve([l({reflect:!0})],n.UUIButtonElement.prototype,"look",2),ve([l({reflect:!0})],n.UUIButtonElement.prototype,"color",2),ve([l({type:Boolean,reflect:!0})],n.UUIButtonElement.prototype,"compact",2),ve([l({type:String,reflect:!0})],n.UUIButtonElement.prototype,"state",2),ve([l({type:String})],n.UUIButtonElement.prototype,"href",2),ve([l({type:String})],n.UUIButtonElement.prototype,"target",2),ve([l({type:String})],n.UUIButtonElement.prototype,"rel",2),ve([A("#button")],n.UUIButtonElement.prototype,"_button",2),n.UUIButtonElement=ve([v("uui-button")],n.UUIButtonElement);let ct=class extends z{constructor(){super(...arguments),this.text=null}};ct.COPIED="copied",ct.COPYING="copying";var $h=Object.defineProperty,kh=Object.getOwnPropertyDescriptor,Js=i=>{throw TypeError(i)},lo=(i,e,t,r)=>{for(var o=r>1?void 0:r?kh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&$h(e,t,o),o},ea=(i,e,t)=>e.has(i)||Js("Cannot "+t),Lr=(i,e,t)=>(ea(i,e,"read from private field"),t?t.call(i):e.get(i)),ta=(i,e,t)=>e.has(i)?Js("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Eh=(i,e,t,r)=>(ea(i,e,"write to private field"),e.set(i,t),t),Ui,Mr;n.UUIButtonCopyTextElement=class extends n.UUIButtonElement{constructor(){super(),this.text="",this.copyFrom="",this.animationStateDelay=250,ta(this,Ui),ta(this,Mr,async()=>{this.state="waiting";let e=this.text;if(this.copyFrom){const r=document.getElementById(this.copyFrom);if(r)"value"in r?e=r.value:e=r.textContent??r.innerText??"";else{console.error(`Element ID ${this.copyFrom} not found to copy from`),this.state="failed";return}}const t=new ct(ct.COPYING);t.text=e,this.dispatchEvent(t),t.text!=null&&(e=t.text);try{await navigator.clipboard.writeText(e);const r=new ct(ct.COPIED);r.text=e,this.dispatchEvent(r),Eh(this,Ui,setTimeout(()=>{this.state="success"},this.animationStateDelay))}catch(r){this.state="failed",console.error("Error copying to clipboard",r)}}),k(this,"uui-icon"),this.addEventListener("click",Lr(this,Mr))}disconnectedCallback(){super.disconnectedCallback(),Lr(this,Ui)&&clearTimeout(Lr(this,Ui))}renderLabel(){return u`<slot class="label"><uui-icon name="copy"></uui-icon></slot>`}},Ui=new WeakMap,Mr=new WeakMap,n.UUIButtonCopyTextElement.styles=n.UUIButtonElement.styles,lo([l({type:String})],n.UUIButtonCopyTextElement.prototype,"text",2),lo([l({type:String,attribute:"copy-from"})],n.UUIButtonCopyTextElement.prototype,"copyFrom",2),lo([l({type:Number,attribute:"animation-state-delay"})],n.UUIButtonCopyTextElement.prototype,"animationStateDelay",2),n.UUIButtonCopyTextElement=lo([v("uui-button-copy-text")],n.UUIButtonCopyTextElement);let Tt=class extends z{};Tt.OPEN="open";var xh=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,Nt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Ih(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&xh(e,t,o),o};n.UUICardElement=class extends Ji(Pt(f)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(e){this.disabled||(e.stopPropagation(),this.dispatchEvent(new Tt(Tt.OPEN)))}handleOpenKeydown(e){this.disabled||e.key==="Enter"&&(e.preventDefault(),e.stopPropagation(),this.dispatchEvent(new Tt(Tt.OPEN)))}render(){return u`<slot id="open-part"></slot><div id="select-border"></div>`}},n.UUICardElement.styles=[It,g`: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([selectable]:focus-visible){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() *{outline-color:var(--uui-color-focus,#3879ff)}: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-invalid,#d42054);border-radius:var(--uui-border-radius,3px)}button{font-size:inherit;font-family:inherit;border:0;padding:0;background-color:transparent;text-align:left;color:var(--uui-color-text,#060606)}a{text-decoration:none;color:inherit;line-height:initial}a:focus,button: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);border-radius:var(--uui-border-radius,3px)}: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}:host([disabled]){background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-disabled-contrast,#c4c4c4)}`],Nt([l({type:Boolean,reflect:!0,attribute:"disabled"})],n.UUICardElement.prototype,"disabled",2),Nt([l({type:Boolean,reflect:!0})],n.UUICardElement.prototype,"error",2),Nt([l({type:String})],n.UUICardElement.prototype,"href",2),Nt([l({type:String})],n.UUICardElement.prototype,"target",2),Nt([l({type:String})],n.UUICardElement.prototype,"rel",2),n.UUICardElement=Nt([v("uui-card")],n.UUICardElement);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,ia=i=>{throw TypeError(i)},uo=(i,e,t,r)=>{for(var o=r>1?void 0:r?Sh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Ch(e,t,o),o},Ph=(i,e,t)=>e.has(i)||ia("Cannot "+t),Ah=(i,e,t)=>e.has(i)?ia("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),_i=(i,e,t)=>(Ph(i,e,"access private method"),t),ht,oa,ra,na,Or;n.UUICardBlockTypeElement=class extends n.UUICardElement{constructor(){super(...arguments),Ah(this,ht),this.name=""}get background(){}set background(e){this.style.backgroundColor=e??""}render(){return u`${_i(this,ht,na).call(this)} ${this.href?_i(this,ht,ra).call(this):_i(this,ht,oa).call(this)}<div id="select-border"></div><slot name="tag"></slot><slot name="actions"></slot>`}},ht=new WeakSet,oa=function(){return u`<button id="open-part" class="uui-text" tabindex="${this.disabled?x:"0"}" @click="${this.handleOpenClick}" @keydown="${this.handleOpenKeydown}">${_i(this,ht,Or).call(this)}</button>`},ra=function(){return u`<a id="open-part" class="uui-text" tabindex="${this.disabled?x:"0"}" href="${$(this.disabled?void 0:this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}">${_i(this,ht,Or).call(this)}</a>`},na=function(){return u`<div id="portrait"><slot></slot></div>`},Or=function(){return u`<div id="content"><span title="${this.name}" id="name">${this.name}</span> <small title="${this.description}">${this.description}<slot name="description"></slot></small></div>`},n.UUICardBlockTypeElement.styles=[...n.UUICardElement.styles,g`:host{background-color:var(--uui-color-surface-alt,#f3f3f5)}slot[name=tag]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;z-index:2}slot[name=actions]{position:absolute;top:var(--uui-size-4,12px);right:var(--uui-size-4,12px);display:flex;justify-content:right;z-index:2;opacity:0;transition:opacity 120ms}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}#portrait{display:flex;justify-content:center;min-height:150px;max-height:150px;width:100%;margin-bottom:var(--uui-size-layout-2,30px)}slot:not([name])::slotted(*){align-self:center;border-radius:var(--uui-border-radius,3px);object-fit:cover;max-width:100%;max-height:100%;font-size:var(--uui-size-8,24px)}#open-part{position:absolute;z-index:1;inset:0;color:var(--uui-color-interactive,#1b264f);border:none;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end}:host([disabled]) #open-part{pointer-events:none;background:var(--uui-color-disabled,#f3f3f5);color:var(--uui-color-contrast-disabled)}#open-part:hover{color:var(--uui-color-interactive-emphasis,#3544b1)}#open-part:hover #name{text-decoration:underline}#open-part #name,#open-part small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}:host([image]:not([image=''])) #open-part{transition:opacity .5s .5s;opacity:0}#content{position:relative;display:flex;flex-direction:column;width:100%;font-family:inherit;font-size:var(--uui-type-small-size,12px);box-sizing:border-box;text-align:left;word-break:break-word;padding-top:var(--uui-size-space-3,9px)}#content::before{content:'';position:absolute;inset:0;z-index:-1;border-top:1px solid var(--uui-color-divider,#f6f6f7);border-radius:0 0 var(--uui-border-radius,3px) var(--uui-border-radius,3px);background-color:var(--uui-color-surface,#fff);pointer-events:none;opacity:.96}:host(:focus) slot[name=actions],:host(:focus-within) slot[name=actions],:host(:hover) slot[name=actions]{opacity:1}:host([image]:not([image='']):hover,[image]:not([image='']):focus,[image]:not([image='']):focus-within,[selected][image]:not([image='']),[error][image]:not([image=''])) #open-part{opacity:1;transition-duration:120ms;transition-delay:0s}:host([selectable]) #open-part{inset:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host(:not([selectable])) #content{padding:var(--uui-size-space-3,9px) var(--uui-size-space-4,12px)}:host([selectable]) #content::before{inset:calc(var(--uui-size-space-3,9px) * -1) calc(var(--uui-size-space-4,12px) * -1);top:0}`],uo([l({type:String})],n.UUICardBlockTypeElement.prototype,"name",2),uo([l({type:String})],n.UUICardBlockTypeElement.prototype,"description",2),uo([l({type:String,attribute:"background"})],n.UUICardBlockTypeElement.prototype,"background",1),n.UUICardBlockTypeElement=uo([v("uui-card-block-type")],n.UUICardBlockTypeElement);var zh=Object.defineProperty,Lh=Object.getOwnPropertyDescriptor,sa=i=>{throw TypeError(i)},co=(i,e,t,r)=>{for(var o=r>1?void 0:r?Lh(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&zh(e,t,o),o},Mh=(i,e,t)=>e.has(i)||sa("Cannot "+t),Oh=(i,e,t)=>e.has(i)?sa("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),ho=(i,e,t)=>(Mh(i,e,"access private method"),t),Bt,Tr,aa,la;n.UUICardContentNodeElement=class extends n.UUICardElement{constructor(){super(...arguments),Oh(this,Bt),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon=`<svg
297
345
  xmlns="http://www.w3.org/2000/svg"
298
346
  viewBox="0 0 24 24"
299
347
  fill="none"
@@ -353,7 +401,7 @@
353
401
  * @license
354
402
  * Copyright 2017 Google LLC
355
403
  * SPDX-License-Identifier: BSD-3-Clause
356
- */class cn extends Mt{constructor(e){if(super(e),this.et=x,e.type!==be.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===x||e==null)return this.ft=void 0,this.et=e;if(e===ie)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const Oo=Lt(cn);var op=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,al=(i,e,t,r)=>{for(var o=r>1?void 0:r?rp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&op(e,t,o),o};n.UUIFormValidationMessageElement=class extends f{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=e=>{const t=e.composedPath()[0];t.pristine===!1?this._messages.set(t,t.validationMessage):this._messages.delete(t),this.requestUpdate("_messages")},this._onControlValid=e=>{const t=e.composedPath()[0];this._messages.delete(t),this.requestUpdate("_messages")},this.for===null&&(this.for=this)}get for(){return this._for}set for(e){let t=null;typeof e=="string"?t=this.getRootNode()?.getElementById(e):e instanceof HTMLElement&&(t=e);const r=t??this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(At.INVALID,this._onControlInvalid),o.removeEventListener(At.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(At.INVALID,this._onControlInvalid),this._for.addEventListener(At.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${un(this._messages,e=>u`<div>${Oo(e[1])}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[g`#messages{color:var(--uui-color-invalid-standalone,#bf214e)}`],al([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=al([v("uui-form-validation-message")],n.UUIFormValidationMessageElement);var np=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIFormElement=class extends f{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(e){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const t=e.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=t.length>0?t[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(e){if(e.target===null)return;const t=e.target;if(!t.checkValidity()){t.setAttribute("submit-invalid","");return}t.removeAttribute("submit-invalid")}_onReset(e){e.target!==null&&e.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=np([v("uui-form")],n.UUIFormElement);let Yt=class extends z{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t}),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};Yt.ICON_REQUEST="icon-request";var sp=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?ap(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sp(e,t,o),o};n.UUIIconElement=class extends f{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new Yt(Yt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:u`${Oo(this.fallback)}`:this._nameSvg!==null?u`${Oo(this._nameSvg)}`:this.svg!==null?u`${Oo(this.svg)}`:u`<slot></slot>`}},n.UUIIconElement.styles=[g`:host{vertical-align:text-bottom;display:inline-flex;align-items:center;justify-content:center;width:1.125em;height:1.125em}::slotted(svg),:host svg{color:var(--uui-icon-color,currentColor);width:100%}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],pt([U()],n.UUIIconElement.prototype,"_nameSvg",2),pt([l()],n.UUIIconElement.prototype,"label",2),pt([l()],n.UUIIconElement.prototype,"name",1),pt([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),pt([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),pt([U()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=pt([v("uui-icon")],n.UUIIconElement);let hn=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},dn=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(Yt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Yt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new hn(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new hn}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var lp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,ll=(i,e,t,r)=>{for(var o=r>1?void 0:r?up(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lp(e,t,o),o};n.UUIIconRegistryElement=class extends f{constructor(){super(),this._icons={},this._registry=new dn,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},ll([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=ll([v("uui-icon-registry")],n.UUIIconRegistryElement);const cp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,hp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,dp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,pp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`,mp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,bp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,vp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,gp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,fp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`,yp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,wp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,Up=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,_p=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,$p=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,kp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,Ep=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,xp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,Ip=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`,Cp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,Sp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`,Pp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,Ap=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`,zp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,Lp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`,Mp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,Op=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`,Tp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`,Np=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`,Bp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,Dp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,Vp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`,jp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;let ul=class extends dn{constructor(){super(),this.defineIcon("add",cp.strings[0]),this.defineIcon("alert",hp.strings[0]),this.defineIcon("attachment",dp.strings[0]),this.defineIcon("calendar",pp.strings[0]),this.defineIcon("check",mp.strings[0]),this.defineIcon("clipboard",bp.strings[0]),this.defineIcon("code",vp.strings[0]),this.defineIcon("colorpicker",gp.strings[0]),this.defineIcon("copy",fp.strings[0]),this.defineIcon("delete",yp.strings[0]),this.defineIcon("document",wp.strings[0]),this.defineIcon("download",Up.strings[0]),this.defineIcon("edit",_p.strings[0]),this.defineIcon("favorite",$p.strings[0]),this.defineIcon("folder",kp.strings[0]),this.defineIcon("forbidden",Ep.strings[0]),this.defineIcon("info",xp.strings[0]),this.defineIcon("link",Ip.strings[0]),this.defineIcon("lock",Cp.strings[0]),this.defineIcon("pause",Sp.strings[0]),this.defineIcon("picture",Pp.strings[0]),this.defineIcon("play",Ap.strings[0]),this.defineIcon("remove",zp.strings[0]),this.defineIcon("search",Lp.strings[0]),this.defineIcon("see",Mp.strings[0]),this.defineIcon("settings",Op.strings[0]),this.defineIcon("subtract",Tp.strings[0]),this.defineIcon("sync",Np.strings[0]),this.defineIcon("unlock",Bp.strings[0]),this.defineIcon("unsee",Dp.strings[0]),this.defineIcon("wand",Vp.strings[0]),this.defineIcon("wrong",jp.strings[0])}};var Hp=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new ul}},n.UUIIconRegistryEssentialElement=Hp([v("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var Rp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Zt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rp(e,t,o),o};n.UUIInputFileElement=class extends Ue(f){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return super.value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),k(this,"uui-icon"),k(this,"uui-file-dropzone"),k(this,"uui-button"),k(this,"uui-action-bar"),k(this,"uui-file-preview")}getFormElement(){return this._dropZone}async blur(){await this.updateComplete,this._dropzone.blur()}async focus(){await this.updateComplete,this._dropzone.focus()}async click(){await this.updateComplete,this._dropzone.browse()}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const s=o instanceof File;r.append(this.name,s?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${ch.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${un(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:x}</div>`}},n.UUIInputFileElement.styles=[g`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],Zt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),Zt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),Zt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),Zt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),Zt([U()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=Zt([v("uui-input-file")],n.UUIInputFileElement);let mt=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};mt.CHANGE="change",mt.INPUT="input";var Gp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,cl=i=>{throw TypeError(i)},q=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gp(e,t,o),o},qp=(i,e,t)=>e.has(i)||cl("Cannot "+t),Kp=(i,e,t)=>e.has(i)?cl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Xp=(i,e,t)=>(qp(i,e,"access private method"),t),pn,hl;n.UUIInputElement=class extends Ue(we("",f),""){constructor(){super(),Kp(this,pn),this.minlengthMessage=e=>`${e} characters left`,this.maxlengthMessage=(e,t)=>`Maximum length exceeded (${t}/${e} characters)`,this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="text",this.tabIndex=0,this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keydown",Xp(this,pn,hl)),this.addValidator("tooShort",()=>{const e=this.minlengthMessage;return typeof e=="function"?e(this.minlength?this.minlength-String(this.value).length:0):e},()=>!!this.minlength&&String(this.value).length<this.minlength),this.addValidator("tooLong",()=>{const e=this.maxlengthMessage;return typeof e=="function"?e(this.maxlength??0,String(this.value).length):e},()=>!!this.maxlength&&String(this.value).length>this.maxlength),this.updateComplete.then(()=>{this.addFormControlElement(this._input)})}get type(){return this._type}set type(e){this._type=e}async blur(){await this.updateComplete,this._input.blur()}async focus(){await this.updateComplete,this._input.focus()}async select(){await this.updateComplete,this._input.select()}getFormElement(){return this.shadowRoot?.querySelector("input")}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new mt(mt.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new mt(mt.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${$(this.pattern)}" min="${$(this.min)}" max="${$(this.max)}" step="${$(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${$(this.autocomplete)}" placeholder="${$(this.placeholder)}" aria-label="${$(this.label)}" inputmode="${$(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" tabindex="${$(this.tabIndex)}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},pn=new WeakSet,hl=function(i){this.type!=="color"&&i.key=="Enter"&&this.submit()},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[g`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-input-height,var(--uui-size-11,33px));text-align:left;color:var(--uui-color-text,#060606);color-scheme:var(--uui-color-scheme,normal);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));border-radius:var(--uui-border-radius,3px);--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-grow:1}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-invalid,#d42054)}input{font-family:inherit;padding:1px var(--uui-size-space-3,9px) var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:var(--uui-border-radius,3px);box-sizing:border-box;border:none;background:0 0;width:100%;height:inherit;text-align:inherit;outline:0}input[type=password]::-ms-reveal{display:none}input[type=color]{width:30px;padding:0;border:none}slot[name=append],slot[name=prepend]{display:flex;align-items:center;line-height:1}::slotted(uui-input),::slotted(uui-input-lock){height:100%;--uui-input-border-width:0}`],q([l()],n.UUIInputElement.prototype,"min",2),q([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),q([l({attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),q([l()],n.UUIInputElement.prototype,"max",2),q([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),q([l({attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),q([l({type:Number})],n.UUIInputElement.prototype,"step",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),q([l()],n.UUIInputElement.prototype,"placeholder",2),q([l()],n.UUIInputElement.prototype,"autocomplete",2),q([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),q([l({type:String})],n.UUIInputElement.prototype,"type",1),q([l({attribute:"inputmode"})],n.UUIInputElement.prototype,"inputMode",2),q([l({type:String})],n.UUIInputElement.prototype,"pattern",2),q([l({type:Number,reflect:!1,attribute:"tabindex"})],n.UUIInputElement.prototype,"tabIndex",2),q([A("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=q([v("uui-input")],n.UUIInputElement);let To=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};To.LOCK_CHANGE="lock-change";var Yp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,dl=i=>{throw TypeError(i)},No=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yp(e,t,o),o},pl=(i,e,t)=>e.has(i)||dl("Cannot "+t),Qp=(i,e,t)=>(pl(i,e,"read from private field"),t?t.call(i):e.get(i)),Jp=(i,e,t)=>e.has(i)?dl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),em=(i,e,t,r)=>(pl(i,e,"write to private field"),e.set(i,t),t),Bo;n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),Jp(this,Bo,!0),this.unlockLabel="Unlock input",this.lockLabel="Lock input",this.readonly=!0,this.tabIndex=-1}set locked(e){em(this,Bo,e),this.tabIndex=e?-1:0}get locked(){return Qp(this,Bo)}connectedCallback(){super.connectedCallback(),k(this,"uui-icon"),k(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked,this.pristine=!1,this.dispatchEvent(new To(To.LOCK_CHANGE)),this.locked||this._input?.focus()}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${hh.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${bh.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?this.unlockLabel:this.lockLabel}">${this.renderIcon()}</uui-button>`}},Bo=new WeakMap,n.UUIInputLockElement.styles=[...n.UUIInputElement.styles,g`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],No([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",1),No([l({type:String,reflect:!1,attribute:"unlock-label"})],n.UUIInputLockElement.prototype,"unlockLabel",2),No([l({type:String,reflect:!1,attribute:"lock-label"})],n.UUIInputLockElement.prototype,"lockLabel",2),n.UUIInputLockElement=No([v("uui-input-lock")],n.UUIInputLockElement);var tm=Object.defineProperty,im=Object.getOwnPropertyDescriptor,mn=(i,e,t,r)=>{for(var o=r>1?void 0:r?im(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tm(e,t,o),o};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){this.passwordType=e}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),k(this,"uui-icon"),k(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${ph.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${vh.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,g`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],mn([U()],n.UUIInputPasswordElement.prototype,"passwordType",2),mn([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=mn([v("uui-input-password")],n.UUIInputPasswordElement);var om=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyboardShortcutElement=class extends f{render(){return u`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[g`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],n.UUIKeyboardShortcutElement=om([v("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var rm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyElement=class extends f{render(){return u`<slot></slot>`}},n.UUIKeyElement.styles=[g`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],n.UUIKeyElement=rm([v("uui-key")],n.UUIKeyElement);var nm=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,Do=(i,e,t,r)=>{for(var o=r>1?void 0:r?sm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nm(e,t,o),o};n.UUILabelElement=class extends f{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){return typeof this.for=="string"?this.getRootNode()?.getElementById(this.for)||null:this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[g`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],Do([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),Do([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),Do([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=Do([v("uui-label")],n.UUILabelElement);var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,bn=(i,e,t,r)=>{for(var o=r>1?void 0:r?lm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&am(e,t,o),o};n.UUILoaderBarElement=class extends f{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=O(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},n.UUILoaderBarElement.styles=[g`: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}}`],bn([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),bn([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=bn([v("uui-loader-bar")],n.UUILoaderBarElement);var um=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,vn=(i,e,t,r)=>{for(var o=r>1?void 0:r?cm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&um(e,t,o),o};n.UUILoaderCircleElement=class extends f{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${Ae(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[g`: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}`],vn([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),vn([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=vn([v("uui-loader-circle")],n.UUILoaderCircleElement);var hm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUILoaderElement=class extends f{render(){return u`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[g`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],n.UUILoaderElement=hm([v("uui-loader")],n.UUILoaderElement);let Te=class extends z{};Te.SHOW_CHILDREN="show-children",Te.HIDE_CHILDREN="hide-children",Te.CLICK_LABEL="click-label";var dm=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,ml=i=>{throw TypeError(i)},fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?pm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dm(e,t,o),o},mm=(i,e,t)=>e.has(i)||ml("Cannot "+t),bm=(i,e,t)=>e.has(i)?ml("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),bl=(i,e,t)=>(mm(i,e,"access private method"),t),Vo,gn;n.UUIMenuItemElement=class extends Ji(Pt(wi(we("label",f)))){constructor(){super(...arguments),bm(this,Vo),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.caretLabel="Reveal the underlying items",this.iconSlotHasContent=!1,this._labelButtonChanged=e=>{this.selectableTarget=e||this},this._iconSlotChanged=e=>{this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const e=this.showChildren?Te.HIDE_CHILDREN:Te.SHOW_CHILDREN,t=new Te(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),k(this,"uui-symbol-expand"),k(this,"uui-loader-bar")}async focus(){await this.updateComplete,this.shadowRoot?.querySelector("#label-button")?.focus?.()}_renderLabelInside(){return u`<slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this._iconSlotChanged}"></slot>${this.renderLabel()}<slot name="badge" id="badge"></slot>`}_renderLabelAsAnchor(){return this.disabled?u`<span id="label-button" ${_o(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${_o(this._labelButtonChanged)} href="${$(this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}" @click="${bl(this,Vo,gn)}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${_o(this._labelButtonChanged)} @click="${bl(this,Vo,gn)}" ?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" aria-label="${this.caretLabel}" @click="${this._onCaretClicked}"><uui-symbol-expand aria-hidden="true" ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href&&this.selectOnly!==!0&&this.selectable!==!0?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div><slot id="actions-container" name="actions"></slot>${this.loading?u`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?u`<slot></slot>`:""}`}},Vo=new WeakSet,gn=function(){if(this.selectOnly)return;const i=new Te(Te.CLICK_LABEL);this.dispatchEvent(i)},n.UUIMenuItemElement.styles=[g`:host{box-sizing:border-box;display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none;--flat-structure-reversed:calc(
404
+ */class cn extends Mt{constructor(e){if(super(e),this.et=x,e.type!==be.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===x||e==null)return this.ft=void 0,this.et=e;if(e===ie)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}cn.directiveName="unsafeHTML",cn.resultType=1;const Oo=Lt(cn);var op=Object.defineProperty,rp=Object.getOwnPropertyDescriptor,al=(i,e,t,r)=>{for(var o=r>1?void 0:r?rp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&op(e,t,o),o};n.UUIFormValidationMessageElement=class extends f{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=e=>{const t=e.composedPath()[0];t.pristine===!1?this._messages.set(t,t.validationMessage):this._messages.delete(t),this.requestUpdate("_messages")},this._onControlValid=e=>{const t=e.composedPath()[0];this._messages.delete(t),this.requestUpdate("_messages")},this.for===null&&(this.for=this)}get for(){return this._for}set for(e){let t=null;typeof e=="string"?t=this.getRootNode()?.getElementById(e):e instanceof HTMLElement&&(t=e);const r=t??this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(At.INVALID,this._onControlInvalid),o.removeEventListener(At.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(At.INVALID,this._onControlInvalid),this._for.addEventListener(At.VALID,this._onControlValid))}render(){return u`<slot></slot><div id="messages">${un(this._messages,e=>u`<div>${Oo(e[1])}</div>`)}<slot name="message"></slot></div>`}},n.UUIFormValidationMessageElement.styles=[g`#messages{color:var(--uui-color-invalid-standalone,#bf214e)}`],al([l({reflect:!1,attribute:!0})],n.UUIFormValidationMessageElement.prototype,"for",1),n.UUIFormValidationMessageElement=al([v("uui-form-validation-message")],n.UUIFormValidationMessageElement);var np=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIFormElement=class extends f{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(e){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const t=e.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=t.length>0?t[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(e){if(e.target===null)return;const t=e.target;if(!t.checkValidity()){t.setAttribute("submit-invalid","");return}t.removeAttribute("submit-invalid")}_onReset(e){e.target!==null&&e.target.removeAttribute("submit-invalid")}render(){return u`<slot @slotchange="${this._onSlotChanged}"></slot>`}},n.UUIFormElement=np([v("uui-form")],n.UUIFormElement);let Yt=class extends z{constructor(e,t={}){super(e,{bubbles:!0,composed:!0,...t}),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}};Yt.ICON_REQUEST="icon-request";var sp=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,pt=(i,e,t,r)=>{for(var o=r>1?void 0:r?ap(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sp(e,t,o),o};n.UUIIconElement=class extends f{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.label="",this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(e){this._name=e,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const e=new Yt(Yt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(e),e.icon!==null?(this._retrievedNameIcon=!0,e.icon.then(t=>{this._useFallback=!1,this._nameSvg=t})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon(),typeof this.label=="string"&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}render(){return this._useFallback===!0?this.fallback===null?u`<slot name="fallback"></slot>`:u`${Oo(this.fallback)}`:this._nameSvg!==null?u`${Oo(this._nameSvg)}`:this.svg!==null?u`${Oo(this.svg)}`:u`<slot></slot>`}},n.UUIIconElement.styles=[g`:host{vertical-align:text-bottom;display:inline-flex;align-items:center;justify-content:center;width:1.125em;height:1.125em}::slotted(svg),:host svg{color:var(--uui-icon-color,currentColor);width:100%}:host-context(div[slot=prepend]){margin-left:var(--uui-size-2,6px)}:host-context(div[slot=append]){margin-right:var(--uui-size-2,6px)}`],pt([U()],n.UUIIconElement.prototype,"_nameSvg",2),pt([l()],n.UUIIconElement.prototype,"label",2),pt([l()],n.UUIIconElement.prototype,"name",1),pt([l({attribute:!1})],n.UUIIconElement.prototype,"svg",2),pt([l({attribute:!1})],n.UUIIconElement.prototype,"fallback",2),pt([U()],n.UUIIconElement.prototype,"_useFallback",2),n.UUIIconElement=pt([v("uui-icon")],n.UUIIconElement);let hn=class{constructor(e){this.promise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),e&&this.resolve(e)}set svg(e){this.resolve(e)}},dn=class{constructor(){this.icons={},this._onIconRequest=e=>{const t=this.getIcon(e.detail.iconName);t!==null&&e.acceptRequest(t)}}attach(e){e.addEventListener(Yt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Yt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,t){if(this.icons[e]){this.icons[e].svg=t;return}this.icons[e]=new hn(t)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new hn}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}};var lp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,ll=(i,e,t,r)=>{for(var o=r>1?void 0:r?up(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lp(e,t,o),o};n.UUIIconRegistryElement=class extends f{constructor(){super(),this._icons={},this._registry=new dn,this._registry.attach(this)}get icons(){return this._icons}set icons(e){this._icons=e,this._registry&&Object.entries(this._icons).forEach(([t,r])=>this._registry.defineIcon(t,r))}get registry(){return this._registry}set registry(e){this.registry&&this.registry.detach(this),e.attach(this),this._registry=e}render(){return u`<slot></slot>`}},ll([l({attribute:!1})],n.UUIIconRegistryElement.prototype,"_icons",2),n.UUIIconRegistryElement=ll([v("uui-icon-registry")],n.UUIIconRegistryElement);const cp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M12 5v14"/></svg>`,hp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/></svg>`,dp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>`,pp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/><path d="M8 14h.01"/><path d="M12 14h.01"/><path d="M16 14h.01"/><path d="M8 18h.01"/><path d="M12 18h.01"/><path d="M16 18h.01"/></svg>`,mp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>`,bp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>`,vp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>`,gp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m2 22 1-1h3l9-9"/><path d="M3 21v-3l9-9"/><path d="m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"/></svg>`,fp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15.5 2H8.6c-.4 0-.8.2-1.1.5-.3.3-.5.7-.5 1.1v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8c.4 0 .8-.2 1.1-.5.3-.3.5-.7.5-1.1V6.5L15.5 2z"/><path d="M3 7.6v12.8c0 .4.2.8.5 1.1.3.3.7.5 1.1.5h9.8"/><path d="M15 2v5h5"/></svg>`,yp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg>`,wp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>`,Up=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,_p=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m15 5 4 4"/></svg>`,$p=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"/></svg>`,kp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/><path d="M2 10h20"/></svg>`,Ep=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`,xp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>`,Ip=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>`,Cp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`,Sp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="4" height="16" x="6" y="4"/><rect width="4" height="16" x="14" y="4"/></svg>`,Pp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/></svg>`,Ap=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"/></svg>`,zp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>`,Lp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>`,Mp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z"/><circle cx="12" cy="12" r="3"/></svg>`,Op=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>`,Tp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/></svg>`,Np=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>`,Bp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 9.9-1"/></svg>`,Dp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M9.88 9.88a3 3 0 1 0 4.24 4.24"/><path d="M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68"/><path d="M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61"/><line x1="2" x2="22" y1="2" y2="22"/></svg>`,Vp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M15 4V2"/><path d="M15 16v-2"/><path d="M8 9h2"/><path d="M20 9h2"/><path d="M17.8 11.8 19 13"/><path d="M15 9h0"/><path d="M17.8 6.2 19 5"/><path d="m3 21 9-9"/><path d="M12.2 6.2 11 5"/></svg>`,jp=y`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="m15 9-6 6"/><path d="m9 9 6 6"/></svg>`;let ul=class extends dn{constructor(){super(),this.defineIcon("add",cp.strings[0]),this.defineIcon("alert",hp.strings[0]),this.defineIcon("attachment",dp.strings[0]),this.defineIcon("calendar",pp.strings[0]),this.defineIcon("check",mp.strings[0]),this.defineIcon("clipboard",bp.strings[0]),this.defineIcon("code",vp.strings[0]),this.defineIcon("colorpicker",gp.strings[0]),this.defineIcon("copy",fp.strings[0]),this.defineIcon("delete",yp.strings[0]),this.defineIcon("document",wp.strings[0]),this.defineIcon("download",Up.strings[0]),this.defineIcon("edit",_p.strings[0]),this.defineIcon("favorite",$p.strings[0]),this.defineIcon("folder",kp.strings[0]),this.defineIcon("forbidden",Ep.strings[0]),this.defineIcon("info",xp.strings[0]),this.defineIcon("link",Ip.strings[0]),this.defineIcon("lock",Cp.strings[0]),this.defineIcon("pause",Sp.strings[0]),this.defineIcon("picture",Pp.strings[0]),this.defineIcon("play",Ap.strings[0]),this.defineIcon("remove",zp.strings[0]),this.defineIcon("search",Lp.strings[0]),this.defineIcon("see",Mp.strings[0]),this.defineIcon("settings",Op.strings[0]),this.defineIcon("subtract",Tp.strings[0]),this.defineIcon("sync",Np.strings[0]),this.defineIcon("unlock",Bp.strings[0]),this.defineIcon("unsee",Dp.strings[0]),this.defineIcon("wand",Vp.strings[0]),this.defineIcon("wrong",jp.strings[0])}};var Hp=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIIconRegistryEssentialElement=class extends n.UUIIconRegistryElement{constructor(){super(),this.registry=new ul}},n.UUIIconRegistryEssentialElement=Hp([v("uui-icon-registry-essential")],n.UUIIconRegistryEssentialElement);var Rp=Object.defineProperty,Fp=Object.getOwnPropertyDescriptor,Zt=(i,e,t,r)=>{for(var o=r>1?void 0:r?Fp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Rp(e,t,o),o};n.UUIInputFileElement=class extends Ue(f){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=e=>{let t=[];for(const r of e)this.multiple?t.push(r):t=[r];this._files=t},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return super.value}set value(e){if(super.value=e,e instanceof FormData){const t=this.multiple?e.getAll(this.name):[e.get(this.name)];this._updateFileWrappers(t);return}if(e instanceof File){this._updateFileWrappers([e]);return}}connectedCallback(){super.connectedCallback(),k(this,"uui-icon"),k(this,"uui-file-dropzone"),k(this,"uui-button"),k(this,"uui-action-bar"),k(this,"uui-file-preview")}getFormElement(){return this._dropZone}async blur(){await this.updateComplete,this._dropzone.blur()}async focus(){await this.updateComplete,this._dropzone.focus()}async click(){await this.updateComplete,this._dropzone.browse()}_handleClick(e){e.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(e){const t=e.detail.files.filter(o=>o instanceof File||o.isFile);if(!this.multiple){const o=t[0],s=o instanceof File?o:await this._getFile(o);if(this.value instanceof File){this.value=s;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,s),this._updateFileWrappers([s]);return}}let r=this.value;if(t.length>0&&!(this.value instanceof FormData)&&(r=new FormData),r instanceof FormData)for(const o of t){const s=o instanceof File;r.append(this.name,s?o:await this._getFile(o))}this.value=r}async _getFile(e){return await new Promise((t,r)=>e.file(t,r))}_removeFile(e){const t=this._files[e];if(this.value instanceof FormData){const r=this.value.getAll(this.name).filter(o=>o!==t);if(r.length===0)this.value="";else{this.value.delete(this.name);for(const o of r)this.value.append(this.name,o)}this._updateFileWrappers(r)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(e){e?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(e,t){return u`<uui-file-preview .file="${e}"><uui-action-bar slot="actions"><uui-button @click="${()=>this._removeFile(t)}" color="danger" label="${`Delete ${e.name}`}"><uui-icon name="delete" .fallback="${ch.strings[0]}"></uui-icon></uui-button></uui-action-bar></uui-file-preview>`}_renderFiles(){return u`${un(this._files,e=>e.name+e.size,(e,t)=>this._renderFileItem(e,t))}`}render(){return u`<uui-file-dropzone id="dropzone" ?multiple="${this.multiple}" .accept="${this.accept}" @change="${this._handleFilesChange}" label="Drop files here"></uui-file-dropzone><div id="files">${this._renderFiles()} ${this._files.length===0||this.multiple?u`<uui-button @click="${this._handleClick}" id="add-button" look="placeholder" label="Add"></uui-button>`:x}</div>`}},n.UUIInputFileElement.styles=[g`:host{width:100%;height:100%;position:relative;display:flex;box-sizing:border-box;border:1px solid var(--uui-color-border,#d8d7d9)}#input{position:absolute;width:0;height:0;opacity:0;display:none}#files{display:grid;box-sizing:border-box;justify-items:center;width:100%;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:min-content;gap:16px;padding:16px;overflow:auto;max-height:100%}#dropzone{display:none;position:absolute;inset:0;z-index:10;justify-content:center;align-items:center}#add-button{width:150px;height:150px;display:flex;padding:16px;box-sizing:border-box;justify-content:center;align-items:stretch}`],Zt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropzone",2),Zt([A("#dropzone")],n.UUIInputFileElement.prototype,"_dropZone",2),Zt([l({type:String})],n.UUIInputFileElement.prototype,"accept",2),Zt([l({type:Boolean})],n.UUIInputFileElement.prototype,"multiple",2),Zt([U()],n.UUIInputFileElement.prototype,"_files",2),n.UUIInputFileElement=Zt([v("uui-input-file")],n.UUIInputFileElement);let mt=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};mt.CHANGE="change",mt.INPUT="input";var Gp=Object.defineProperty,Wp=Object.getOwnPropertyDescriptor,cl=i=>{throw TypeError(i)},q=(i,e,t,r)=>{for(var o=r>1?void 0:r?Wp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Gp(e,t,o),o},qp=(i,e,t)=>e.has(i)||cl("Cannot "+t),Kp=(i,e,t)=>e.has(i)?cl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Xp=(i,e,t)=>(qp(i,e,"access private method"),t),pn,hl;n.UUIInputElement=class extends Ue(we("",f),""){constructor(){super(),Kp(this,pn),this.minlengthMessage=e=>`${e} characters left`,this.maxlengthMessage=(e,t)=>`Maximum length exceeded (${t}/${e} characters)`,this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="text",this.tabIndex=0,this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keydown",Xp(this,pn,hl)),this.addValidator("tooShort",()=>{const e=this.minlengthMessage;return typeof e=="function"?e(this.minlength?this.minlength-String(this.value).length:0):e},()=>!!this.minlength&&String(this.value).length<this.minlength),this.addValidator("tooLong",()=>{const e=this.maxlengthMessage;return typeof e=="function"?e(this.maxlength??0,String(this.value).length):e},()=>!!this.maxlength&&String(this.value).length>this.maxlength),this.updateComplete.then(()=>{this.addFormControlElement(this._input)})}get type(){return this._type}set type(e){this._type=e}async blur(){await this.updateComplete,this._input.blur()}async focus(){await this.updateComplete,this._input.focus()}async select(){await this.updateComplete,this._input.select()}getFormElement(){return this.shadowRoot?.querySelector("input")}onInput(e){e.stopPropagation(),this.value=e.target.value,this.dispatchEvent(new mt(mt.INPUT))}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new mt(mt.CHANGE))}renderPrepend(){return u`<slot name="prepend"></slot>`}renderAppend(){return u`<slot name="append"></slot>`}render(){return u`${this.renderPrepend()} ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()} ${this.renderAppend()}`}renderInputWithAutoWidth(){return u`<div id="control">${this.renderInput()}${this.renderAutoWidthBackground()}</div>`}renderInput(){return u`<input id="input" .type="${this.type}" .value="${this.value}" .name="${this.name}" pattern="${$(this.pattern)}" min="${$(this.min)}" max="${$(this.max)}" step="${$(this.step)}" spellcheck="${this.spellcheck}" autocomplete="${$(this.autocomplete)}" placeholder="${$(this.placeholder)}" aria-label="${$(this.label)}" inputmode="${$(this.inputMode)}" ?disabled="${this.disabled}" ?autofocus="${this.autofocus}" ?required="${this.required}" ?readonly="${this.readonly}" tabindex="${$(this.tabIndex)}" @input="${this.onInput}" @change="${this.onChange}">`}renderAutoWidthBackground(){return u`<div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return u`${this.value.length>0?this.value:this.placeholder}`}},pn=new WeakSet,hl=function(i){this.type!=="color"&&i.key=="Enter"&&this.submit()},n.UUIInputElement.formAssociated=!0,n.UUIInputElement.styles=[g`:host{position:relative;display:inline-flex;align-items:stretch;height:var(--uui-input-height,var(--uui-size-11,33px));text-align:left;color:var(--uui-color-text,#060606);color-scheme:var(--uui-color-scheme,normal);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));border-radius:var(--uui-border-radius,3px);--uui-button-height:100%;--auto-width-text-margin-right:0;--auto-width-text-margin-left:0}#control{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-grow:1}#auto{border:0 1px solid transparent;visibility:hidden;white-space:pre;z-index:-1;height:0;padding:0 var(--uui-size-space-3,9px);margin:0 var(--auto-width-text-margin-right) 0 var(--auto-width-text-margin-left)}:host([auto-width]) #input{width:10px;min-width:100%}:host(:hover){border-color:var(--uui-input-border-color-hover,var(--uui-color-border-standalone,#c2c2c2))}:host(:focus-within){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1));outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:focus){border-color:var(--uui-input-border-color-focus,var(--uui-color-border-emphasis,#a1a1a1))}:host([disabled]){background-color:var(--uui-input-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) input{-webkit-text-fill-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([readonly]){background-color:var(--uui-input-background-color-readonly,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-input-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2))}:host(:not([pristine]):invalid),:host(:not([pristine])[internals-invalid]){border-color:var(--uui-color-invalid,#d42054)}input{font-family:inherit;padding:1px var(--uui-size-space-3,9px) var(--uui-size-1,3px) var(--uui-size-space-3,9px);font-size:inherit;color:inherit;border-radius:var(--uui-border-radius,3px);box-sizing:border-box;border:none;background:0 0;width:100%;height:inherit;text-align:inherit;outline:0}input[type=password]::-ms-reveal{display:none}input[type=color]{width:30px;padding:0;border:none}slot[name=append],slot[name=prepend]{display:flex;align-items:center;line-height:1;height:100%}::slotted(uui-input),::slotted(uui-input-lock){height:100%;--uui-input-border-width:0}`],q([l()],n.UUIInputElement.prototype,"min",2),q([l({type:Number})],n.UUIInputElement.prototype,"minlength",2),q([l({attribute:"minlength-message"})],n.UUIInputElement.prototype,"minlengthMessage",2),q([l()],n.UUIInputElement.prototype,"max",2),q([l({type:Number})],n.UUIInputElement.prototype,"maxlength",2),q([l({attribute:"maxlength-message"})],n.UUIInputElement.prototype,"maxlengthMessage",2),q([l({type:Number})],n.UUIInputElement.prototype,"step",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"disabled",2),q([l({type:Boolean,reflect:!0})],n.UUIInputElement.prototype,"readonly",2),q([l()],n.UUIInputElement.prototype,"placeholder",2),q([l()],n.UUIInputElement.prototype,"autocomplete",2),q([l({type:Boolean,reflect:!0,attribute:"auto-width"})],n.UUIInputElement.prototype,"autoWidth",2),q([l({type:String})],n.UUIInputElement.prototype,"type",1),q([l({attribute:"inputmode"})],n.UUIInputElement.prototype,"inputMode",2),q([l({type:String})],n.UUIInputElement.prototype,"pattern",2),q([l({type:Number,reflect:!1,attribute:"tabindex"})],n.UUIInputElement.prototype,"tabIndex",2),q([A("#input")],n.UUIInputElement.prototype,"_input",2),n.UUIInputElement=q([v("uui-input")],n.UUIInputElement);let To=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};To.LOCK_CHANGE="lock-change";var Yp=Object.defineProperty,Zp=Object.getOwnPropertyDescriptor,dl=i=>{throw TypeError(i)},No=(i,e,t,r)=>{for(var o=r>1?void 0:r?Zp(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Yp(e,t,o),o},pl=(i,e,t)=>e.has(i)||dl("Cannot "+t),Qp=(i,e,t)=>(pl(i,e,"read from private field"),t?t.call(i):e.get(i)),Jp=(i,e,t)=>e.has(i)?dl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),em=(i,e,t,r)=>(pl(i,e,"write to private field"),e.set(i,t),t),Bo;n.UUIInputLockElement=class extends n.UUIInputElement{constructor(){super(),Jp(this,Bo,!0),this.unlockLabel="Unlock input",this.lockLabel="Lock input",this.readonly=!0,this.tabIndex=-1}set locked(e){em(this,Bo,e),this.tabIndex=e?-1:0}get locked(){return Qp(this,Bo)}connectedCallback(){super.connectedCallback(),k(this,"uui-icon"),k(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked,this.pristine=!1,this.dispatchEvent(new To(To.LOCK_CHANGE)),this.locked||this._input?.focus()}renderIcon(){return this.locked===!0?u`<uui-icon name="lock" .fallback="${hh.strings[0]}"></uui-icon>`:u`<uui-icon name="unlock" .fallback="${bh.strings[0]}"></uui-icon>`}renderPrepend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onLockToggle}" compact="compact" id="lock" label="${this.locked?this.unlockLabel:this.lockLabel}">${this.renderIcon()}</uui-button>`}},Bo=new WeakMap,n.UUIInputLockElement.styles=[...n.UUIInputElement.styles,g`#lock{height:100%;--uui-button-padding-left-factor:0.75;--uui-button-padding-right-factor:0.75;font-size:12px}:host([locked]) #input{cursor:not-allowed;opacity:.55}`],No([l({type:Boolean,reflect:!0})],n.UUIInputLockElement.prototype,"locked",1),No([l({type:String,reflect:!1,attribute:"unlock-label"})],n.UUIInputLockElement.prototype,"unlockLabel",2),No([l({type:String,reflect:!1,attribute:"lock-label"})],n.UUIInputLockElement.prototype,"lockLabel",2),n.UUIInputLockElement=No([v("uui-input-lock")],n.UUIInputLockElement);var tm=Object.defineProperty,im=Object.getOwnPropertyDescriptor,mn=(i,e,t,r)=>{for(var o=r>1?void 0:r?im(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&tm(e,t,o),o};n.UUIInputPasswordElement=class extends n.UUIInputElement{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(e){this.passwordType=e}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),k(this,"uui-icon"),k(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?u`<uui-icon name="see" .fallback="${ph.strings[0]}"></uui-icon>`:u`<uui-icon name="unsee" .fallback="${vh.strings[0]}"></uui-icon>`}renderAppend(){return u`<uui-button .disabled="${this.disabled}" @click="${this._onPasswordToggle}" compact="compact" label="${this.passwordType==="password"?"Show password":"Hide password"}" id="eye">${this.renderIcon()}</uui-button>`}},n.UUIInputPasswordElement.styles=[...n.UUIInputElement.styles,g`#eye{height:100%;margin-left:-6px}#clear:hover{color:#000}`],mn([U()],n.UUIInputPasswordElement.prototype,"passwordType",2),mn([l()],n.UUIInputPasswordElement.prototype,"type",1),n.UUIInputPasswordElement=mn([v("uui-input-password")],n.UUIInputPasswordElement);var om=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyboardShortcutElement=class extends f{render(){return u`<slot></slot>`}},n.UUIKeyboardShortcutElement.styles=[g`:host{display:inline-block;font-family:inherit;font-size:var(--uui-size-4,12px);color:var(--uui-color-text,#060606)}::slotted(:first-child)uui-key{margin-left:0}::slotted(:last-child)uui-key{margin-right:0}`],n.UUIKeyboardShortcutElement=om([v("uui-keyboard-shortcut")],n.UUIKeyboardShortcutElement);var rm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIKeyElement=class extends f{render(){return u`<slot></slot>`}},n.UUIKeyElement.styles=[g`:host{background:var(--uui-color-surface,#fff);border:1px solid var(--uui-color-border,#d8d7d9);font-family:inherit;font-size:var(--uui-type-small-size,12px);color:var(--uui-color-text,#060606);border-radius:5px;margin:0 5px;padding:5px 7px;box-sizing:border-box;user-select:none;text-transform:lowercase}`],n.UUIKeyElement=rm([v("uui-key")],n.UUIKeyElement);var nm=Object.defineProperty,sm=Object.getOwnPropertyDescriptor,Do=(i,e,t,r)=>{for(var o=r>1?void 0:r?sm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&nm(e,t,o),o};n.UUILabelElement=class extends f{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const e=this.getForElement();e&&(e.focus(),e.click())}getForElement(){return typeof this.for=="string"?this.getRootNode()?.getElementById(this.for)||null:this.for||null}render(){return u`<slot></slot>${this.required?u`<div id="required">*</div>`:""}`}},n.UUILabelElement.styles=[g`:host{font-weight:700}:host([for]){cursor:pointer}:host([disabled]){cursor:default}#required{display:inline;color:var(--uui-color-danger,#d42054);font-weight:900}`],Do([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"disabled",2),Do([l({reflect:!0,attribute:!0})],n.UUILabelElement.prototype,"for",2),Do([l({type:Boolean,reflect:!0})],n.UUILabelElement.prototype,"required",2),n.UUILabelElement=Do([v("uui-label")],n.UUILabelElement);var am=Object.defineProperty,lm=Object.getOwnPropertyDescriptor,bn=(i,e,t,r)=>{for(var o=r>1?void 0:r?lm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&am(e,t,o),o};n.UUILoaderBarElement=class extends f{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(e){const t=this._progress;this._progress=O(e,0,100),this.requestUpdate("progress",t)}get animationDuration(){return this._animationDuration}set animationDuration(e){const t=this._animationDuration;this._animationDuration=e>=0?e:1,this.requestUpdate("animationDuration",t)}render(){return u`${this.progress?u`<div id="bar" style="max-width:${this.progress.toString()}"></div>`:""}<div id="bar-anim" class="${this.progress?"":"animate"}" style="animation-duration:${this.animationDuration}"></div><div id="bar-background"></div>`}},n.UUILoaderBarElement.styles=[g`: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}}`],bn([l({type:Number})],n.UUILoaderBarElement.prototype,"progress",1),bn([l({type:Number})],n.UUILoaderBarElement.prototype,"animationDuration",1),n.UUILoaderBarElement=bn([v("uui-loader-bar")],n.UUILoaderBarElement);var um=Object.defineProperty,cm=Object.getOwnPropertyDescriptor,vn=(i,e,t,r)=>{for(var o=r>1?void 0:r?cm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&um(e,t,o),o};n.UUILoaderCircleElement=class extends f{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const e=this.clientHeight>=30;this._isLarge!=e&&(this._isLarge=e,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?u`<span id="progress-display">${this.progress}</span>`:""}render(){return u`<svg id="spinner" class="${this.progress?"":"animate"}" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle id="bg" cx="50%" cy="50%" r="16"/><g><circle id="circle" cx="50%" cy="50%" r="16" style="${Ae(this._circleStyle())}"/></g></svg> ${this.renderProgress()}`}},n.UUILoaderCircleElement.styles=[g`: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}`],vn([l({type:Number})],n.UUILoaderCircleElement.prototype,"progress",2),vn([l({type:Boolean,reflect:!0,attribute:"show-progress"})],n.UUILoaderCircleElement.prototype,"showProgress",2),n.UUILoaderCircleElement=vn([v("uui-loader-circle")],n.UUILoaderCircleElement);var hm=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUILoaderElement=class extends f{render(){return u`<div></div><div></div><div></div>`}},n.UUILoaderElement.styles=[g`:host{color:var(--uui-color-default,#1b264f)}div{display:inline-block;width:var(--uui-size-2,6px);height:var(--uui-size-2,6px);border:2px solid currentColor;border-radius:100%;animation:loaderAnimation 1.4s infinite}div:nth-child(1n){animation-delay:0s}div:nth-child(2n){animation-delay:.15s}div:nth-child(3n){animation-delay:.3s}@keyframes loaderAnimation{0%{transform:scale(.5);background-color:currentColor}50%{transform:scale(1);background-color:transparent}100%{transform:scale(.5);background-color:currentColor}}`],n.UUILoaderElement=hm([v("uui-loader")],n.UUILoaderElement);let Te=class extends z{};Te.SHOW_CHILDREN="show-children",Te.HIDE_CHILDREN="hide-children",Te.CLICK_LABEL="click-label";var dm=Object.defineProperty,pm=Object.getOwnPropertyDescriptor,ml=i=>{throw TypeError(i)},fe=(i,e,t,r)=>{for(var o=r>1?void 0:r?pm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dm(e,t,o),o},mm=(i,e,t)=>e.has(i)||ml("Cannot "+t),bm=(i,e,t)=>e.has(i)?ml("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),bl=(i,e,t)=>(mm(i,e,"access private method"),t),Vo,gn;n.UUIMenuItemElement=class extends Ji(Pt(wi(we("label",f)))){constructor(){super(...arguments),bm(this,Vo),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.caretLabel="Reveal the underlying items",this.iconSlotHasContent=!1,this._labelButtonChanged=e=>{this.selectableTarget=e||this},this._iconSlotChanged=e=>{this.iconSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const e=this.showChildren?Te.HIDE_CHILDREN:Te.SHOW_CHILDREN,t=new Te(e,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.showChildren=!this.showChildren)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),k(this,"uui-symbol-expand"),k(this,"uui-loader-bar")}async focus(){await this.updateComplete,this.shadowRoot?.querySelector("#label-button")?.focus?.()}_renderLabelInside(){return u`<slot name="icon" id="icon" style="${this.iconSlotHasContent?"":"display: none;"}" @slotchange="${this._iconSlotChanged}"></slot>${this.renderLabel()}<slot name="badge" id="badge"></slot>`}_renderLabelAsAnchor(){return this.disabled?u`<span id="label-button" ${_o(this._labelButtonChanged)}>${this._renderLabelInside()}</span>`:u`<a id="label-button" ${_o(this._labelButtonChanged)} href="${$(this.href)}" target="${$(this.target||void 0)}" rel="${$(this.rel||$(this.target==="_blank"?"noopener noreferrer":void 0))}" @click="${bl(this,Vo,gn)}" ?disabled="${this.disabled}" aria-label="${this.label}">${this._renderLabelInside()}</a>`}_renderLabelAsButton(){return u`<button id="label-button" ${_o(this._labelButtonChanged)} @click="${bl(this,Vo,gn)}" ?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" aria-label="${this.caretLabel}" @click="${this._onCaretClicked}"><uui-symbol-expand aria-hidden="true" ?open="${this.showChildren}"></uui-symbol-expand></button>`:""} ${this.href&&this.selectOnly!==!0&&this.selectable!==!0?this._renderLabelAsAnchor():this._renderLabelAsButton()}<div id="label-button-background"></div><slot id="actions-container" name="actions"></slot>${this.loading?u`<uui-loader-bar id="loader"></uui-loader-bar>`:""}</div>${this.showChildren?u`<slot></slot>`:""}`}},Vo=new WeakSet,gn=function(){if(this.selectOnly)return;const i=new Te(Te.CLICK_LABEL);this.dispatchEvent(i)},n.UUIMenuItemElement.styles=[g`:host{box-sizing:border-box;display:block;--uui-menu-item-child-indent:calc(var(--uui-menu-item-indent, 0) + 1);user-select:none;--flat-structure-reversed:calc(
357
405
  1 - var(--uui-menu-item-flat-structure, 0)
358
406
  )}#menu-item{position:relative;padding-left:calc(var(--uui-menu-item-indent,0) * var(--uui-size-4,12px));display:grid;grid-template-columns:calc(var(--flat-structure-reversed) * var(--uui-size-8,24px)) 1fr;grid-template-rows:1fr;white-space:nowrap}:host(:not([active],[selected],[disabled])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled],[select-mode=highlight])) #menu-item #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-hover,var(--uui-color-surface-emphasis,#fafafa))}:host(:not([active],[selected])) #menu-item #caret-button:hover,:host(:not([active],[selected],[disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-color-hover,var(--uui-color-interactive-emphasis,#3544b1))}:host([active]) #caret-button,:host([active]) #label-button{color:var(--uui-menu-item-color-active,var(--uui-color-current-contrast,#1b264f))}:host([active]) #label-button-background{background-color:var(--uui-menu-item-background-color-active,var(--uui-color-current,#f5c1bc))}:host([active]) #caret-button:hover,:host([active]) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-active-hover,var(--uui-color-current-emphasis,#f8d6d3))}:host([disabled]) #menu-item{background-color:var(--uui-menu-item-background-color-disabled,var(--uui-color-disabled,#f3f3f5))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button,:host([selected]:not([select-mode=highlight],[disabled])) #label-button{color:var(--uui-menu-item-color-selected,var(--uui-color-selected-contrast,#fff))}:host([selected]:not([select-mode=highlight],[disabled])) #label-button-background{background-color:var(--uui-menu-item-background-color-selected,var(--uui-color-selected,#3544b1))}:host([selected]:not([select-mode=highlight],[disabled])) #caret-button:hover,:host([selected]:not([select-mode=highlight],[disabled])) #label-button:hover~#label-button-background{background-color:var(--uui-menu-item-background-color-selected-hover,var(--uui-color-selected-emphasis,#4656c8))}:host([select-mode=highlight]:not([disabled],[active],[selectable])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight,var(--uui-color-surface-emphasis,#fafafa))}:host([select-mode=highlight][active]:not([disabled])) #menu-item #label-button-background{border-radius:var(--uui-border-radius,3px)}:host([select-mode=highlight][active][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-active-selected,var(--uui-color-current-emphasis,#f8d6d3))}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #caret-button,:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button{color:var(--uui-menu-item-color-highlight-selected,var(--uui-color-interactive,#1b264f))}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #label-button:hover{color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([selected][selectable][select-mode=highlight]:not([active])) #menu-item #caret-button:hover{border-radius:var(--uui-border-radius,3px);background-color:var(--uui-menu-item-background-color-highlight-selectable-selected,var(--uui-color-surface-emphasis,#fafafa));color:var(--uui-menu-item-color-highlight-selectable-selected,var(--uui-color-interactive-emphasis,#3544b1))}:host([select-mode=highlight]:not([disabled])) #menu-item #label-button-background::after{border-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));opacity:0}:host([select-mode=highlight][selectable][selected]:not([disabled])) #menu-item #caret-button:hover::after{border-top-left-radius:var(--uui-border-radius,3px);border-bottom-left-radius:var(--uui-border-radius,3px);position:absolute;content:'';inset:1px 0 1px 1px;border:2px solid var(--uui-menu-item-border-color-highlight,var(--uui-color-selected,#3544b1));border-right:none}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button-background::after{opacity:1}:host([select-mode=highlight][selectable]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.33}:host([select-mode=highlight][selected]:not([disabled])) #menu-item #label-button:hover~#label-button-background::after{opacity:.66}:host([disabled]) #label-button{cursor:default;opacity:.5}button{display:inline-flex;align-items:center;font-family:inherit;font-size:inherit;padding:0;text-align:left;border:none;color:inherit;background-color:transparent;cursor:pointer;min-height:var(--uui-size-12,36px);z-index:1}#label-button{position:relative;flex-grow:1;grid-column-start:2;white-space:nowrap;overflow:hidden;padding-right:var(--uui-size-space-3,9px);padding-left:calc(var(--uui-menu-item-flat-structure) * var(--uui-size-space-3,9px));display:inline-flex;align-items:center;text-decoration:none;color:currentColor;min-height:var(--uui-size-12,36px);z-index:1;font-weight:inherit}#label-button .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}span#label-button{pointer-events:none}#caret-button{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:end;padding-inline-end:3px;color:var(--uui-color-interactive,#1b264f)}#label-button-background{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--uui-menu-item-border-radius,0)}#actions-container{opacity:0;width:0;grid-column-start:3;overflow:hidden}:host(:not([disabled])) #menu-item:focus #actions-container,:host(:not([disabled])) #menu-item:focus-within #actions-container,:host(:not([disabled])) #menu-item:hover #actions-container{opacity:1;width:auto}#loader{position:absolute;width:100%;bottom:0}#icon{display:inline-flex;margin-right:var(--uui-size-2,6px)}#badge{font-size:12px;--uui-badge-position:relative;--uui-badge-position:auto;display:block;margin-left:6px}:host([select-mode=highlight]) #label-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #label-button:focus-visible::after{content:'';border-radius:calc(var(--uui-border-radius,3px) - 1px);position:absolute;inset:3px 3px 3px -5px;border:2px solid var(--uui-color-focus,#3879ff)}:host([select-mode=highlight]) #caret-button:focus-visible{outline:0;overflow:initial}:host([select-mode=highlight]) #caret-button:focus-visible::after{content:'';position:absolute;inset:3px;border-radius:calc(var(--uui-border-radius,3px) - 1px);border:2px solid var(--uui-color-focus,#3879ff)}slot:not([name]){position:relative;display:block;width:100%}slot:not([name]){--uui-menu-item-indent:var(--uui-menu-item-child-indent)}slot[name=actions]{display:flex;align-items:center;--uui-button-height:calc(var(--uui-size-base-unit) * 4);margin-right:var(--uui-size-base-unit)}`],fe([l({type:Boolean,reflect:!0})],n.UUIMenuItemElement.prototype,"disabled",2),fe([l({type:Boolean,reflect:!0,attribute:"show-children"})],n.UUIMenuItemElement.prototype,"showChildren",2),fe([l({type:Boolean,attribute:"has-children"})],n.UUIMenuItemElement.prototype,"hasChildren",2),fe([l({type:Boolean,attribute:"loading"})],n.UUIMenuItemElement.prototype,"loading",2),fe([l({type:String})],n.UUIMenuItemElement.prototype,"href",2),fe([l({type:String})],n.UUIMenuItemElement.prototype,"target",2),fe([l({type:String})],n.UUIMenuItemElement.prototype,"rel",2),fe([l({type:String,attribute:"select-mode",reflect:!0})],n.UUIMenuItemElement.prototype,"selectMode",2),fe([l({type:String,attribute:"caret-label"})],n.UUIMenuItemElement.prototype,"caretLabel",2),fe([U()],n.UUIMenuItemElement.prototype,"iconSlotHasContent",2),n.UUIMenuItemElement=fe([v("uui-menu-item")],n.UUIMenuItemElement);var vm=Object.defineProperty,gm=Object.getOwnPropertyDescriptor,Qt=(i,e,t,r)=>{for(var o=r>1?void 0:r?gm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&vm(e,t,o),o};const vl="uui:modal-open",Jt="uui:modal-close",gl="uui:modal-close-end";let ae=class extends f{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(vl,{cancelable:!0}),r=new CustomEvent("open",{cancelable:!0});this.dispatchEvent(t),this.dispatchEvent(r),!(t.defaultPrevented||r.defaultPrevented)&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const t=new CustomEvent(Jt,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&this.forceClose()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){this.isOpen=!0,this._dialogElement?.showModal(),this._dialogElement?.addEventListener("cancel",this.close)}forceClose(){this.isClosing=!0,this.isOpen=!1,this._dialogElement?.close(),this.dispatchEvent(new CustomEvent("close-end")),this.dispatchEvent(new CustomEvent(gl)),this.remove()}};ae.styles=[g`dialog{display:block;margin:0;padding:0;max-width:unset;max-height:unset;border:none;background:0 0;color:var(--uui-color-text,#060606)}dialog::backdrop{background:0 0;opacity:0}dialog::after{content:'';position:absolute;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));pointer-events:none;opacity:1;transition:opacity var(--uui-modal-transition-duration,250ms);z-index:1}:host([index='0']) dialog::after{opacity:0}`],Qt([A("dialog")],ae.prototype,"_dialogElement",2),Qt([l({type:Boolean,reflect:!0,attribute:"is-open"})],ae.prototype,"isOpen",2),Qt([l({type:Boolean,reflect:!0,attribute:"is-closing"})],ae.prototype,"isClosing",2),Qt([l({type:Number,reflect:!0})],ae.prototype,"index",2),Qt([l({type:Number,reflect:!0,attribute:"unique-index"})],ae.prototype,"uniqueIndex",2),Qt([l({type:Number,attribute:"transition-duration"})],ae.prototype,"transitionDuration",1);var fm=Object.defineProperty,ym=Object.getOwnPropertyDescriptor,fl=i=>{throw TypeError(i)},yl=(i,e,t,r)=>{for(var o=r>1?void 0:r?ym(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fm(e,t,o),o},wm=(i,e,t)=>e.has(i)||fl("Cannot "+t),wl=(i,e,t)=>(wm(i,e,"read from private field"),t?t.call(i):e.get(i)),Um=(i,e,t)=>e.has(i)?fl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),jo,fn;n.UUIModalSidebarElement=class extends ae{constructor(){super(...arguments),Um(this,jo),this.size="full"}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-offset",-wl(this,jo,fn)+"px")}updated(e){super.updated(e),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}forceClose(){this.isClosing||(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-wl(this,jo,fn)+"px"),setTimeout(()=>{super.forceClose()},this.transitionDuration))}render(){return u`<dialog><slot></slot></dialog>`}},jo=new WeakSet,fn=function(){return this._dialogElement?.getBoundingClientRect().width??0},n.UUIModalSidebarElement.styles=[...ae.styles,g`:host{outline:0;--uui-modal-sidebar-left-gap:24px;--uui-modal-sidebar-background:var(--uui-color-surface,#fff)}@media (min-width:600px){:host{--uui-modal-sidebar-left-gap:64px}}dialog{height:100%;width:100%;box-sizing:border-box;max-width:calc(100% - var(--uui-modal-sidebar-left-gap));margin-left:auto;right:var(--uui-modal-offset);transition:right var(--uui-modal-transition-duration,250ms);background:var(--uui-modal-sidebar-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}:host([hide]) dialog{display:none}:host([size=large]) dialog{max-width:min(1200px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=medium]) dialog{max-width:min(800px,calc(100% - var(--uui-modal-sidebar-left-gap)))}:host([size=small]) dialog{max-width:min(500px,calc(100% - var(--uui-modal-sidebar-left-gap)))}`],yl([l({reflect:!0})],n.UUIModalSidebarElement.prototype,"size",2),n.UUIModalSidebarElement=yl([v("uui-modal-sidebar")],n.UUIModalSidebarElement);var _m=Object.defineProperty,$m=Object.getOwnPropertyDescriptor,Ul=i=>{throw TypeError(i)},ei=(i,e,t,r)=>{for(var o=r>1?void 0:r?$m(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&_m(e,t,o),o},_l=(i,e,t)=>e.has(i)||Ul("Cannot "+t),Ai=(i,e,t)=>(_l(i,e,"read from private field"),t?t.call(i):e.get(i)),yn=(i,e,t)=>e.has(i)?Ul("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ho=(i,e,t)=>(_l(i,e,"access private method"),t),wn,ti,ii,Un,_n;n.UUIModalContainerElement=class extends f{constructor(){super(),yn(this,ii),this.sidebarGap=64,this.transitionDurationMS=250,yn(this,wn,()=>{const e=this._modals??[];if(this._modals=this.modalSlot?.assignedElements({flatten:!0}).filter(t=>t instanceof ae)??[],e.filter(t=>this._modals.indexOf(t)===-1).forEach(t=>t.removeEventListener(Jt,Ai(this,ti))),this._modals.filter(t=>e.indexOf(t)===-1).forEach(t=>t.addEventListener(Jt,Ai(this,ti))),this._sidebars=this._modals.filter(t=>t instanceof n.UUIModalSidebarElement),this._modals.length===0){this.removeAttribute("backdrop");return}Ho(this,ii,Un).call(this),Ho(this,ii,_n).call(this)}),yn(this,ti,e=>{if(e.stopImmediatePropagation(),e.target?.removeEventListener(Jt,Ai(this,ti)),!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}Ho(this,ii,Un).call(this),Ho(this,ii,_n).call(this)}),this.addEventListener(Jt,Ai(this,ti))}firstUpdated(e){super.firstUpdated(e),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return u`<slot @slotchange="${Ai(this,wn)}"></slot>`}},wn=new WeakMap,ti=new WeakMap,ii=new WeakSet,Un=function(){this.setAttribute("backdrop","");const i=this._modals?.filter(e=>!e.isClosing).reverse()??[];i?.forEach((e,t)=>{e.index=t,e.transitionDuration=this.transitionDurationMS}),i?.forEach(e=>{const t=i?.filter(r=>r.constructor.name===e.constructor.name);e.uniqueIndex=t?.indexOf(e)??0})},_n=function(){requestAnimationFrame(()=>{let i=0;const e=this._sidebars?.filter(t=>!t.isClosing).reverse()??[];for(let t=0;t<e.length;t++){const r=e[t],o=e[t+1],s=i;if(r.updateComplete.then(()=>{r.style.setProperty("--uui-modal-offset",s+"px")}),o?.hasAttribute("hide"))break;const a=r.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,c=o?.shadowRoot?.querySelector("dialog")?.getBoundingClientRect().width??0,h=a+i+this.sidebarGap-c;i=h>0?h:0}})},n.UUIModalContainerElement.styles=g`:host{position:fixed;--uui-modal-color-backdrop:rgba(0, 0, 0, 0.5)}:host::after{content:'';position:fixed;inset:0;background-color:var(--uui-modal-color-backdrop,rgba(0,0,0,.5));opacity:0;pointer-events:none;transition:opacity var(--uui-modal-transition-duration,250ms)}:host([backdrop])::after{opacity:1}`,ei([A("slot")],n.UUIModalContainerElement.prototype,"modalSlot",2),ei([U()],n.UUIModalContainerElement.prototype,"_modals",2),ei([U()],n.UUIModalContainerElement.prototype,"_sidebars",2),ei([l({type:Number})],n.UUIModalContainerElement.prototype,"sidebarGap",2),ei([l({type:Number})],n.UUIModalContainerElement.prototype,"transitionDurationMS",2),n.UUIModalContainerElement=ei([v("uui-modal-container")],n.UUIModalContainerElement);var km=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIModalDialogElement=class extends ae{render(){return u`<dialog><slot></slot></dialog>`}},n.UUIModalDialogElement.styles=[...ae.styles,g`:host{outline:0;--uui-modal-dialog-background:var(--uui-color-surface,#fff)}dialog{margin:auto;max-width:100%;max-height:100%;border-radius:var(--uui-modal-dialog-border-radius,calc(var(--uui-border-radius,3px) * 4));background:var(--uui-modal-dialog-background,var(--uui-color-surface,#fff))}:host([index='0']) dialog{box-shadow:var(--uui-shadow-depth-5,0 19px 38px rgba(0,0,0,.3) ,0 15px 12px rgba(0,0,0,.22))}:host(:not([index='0'])) dialog{outline:1px solid rgba(0,0,0,.1)}`],n.UUIModalDialogElement=km([v("uui-modal-dialog")],n.UUIModalDialogElement);let qe=class extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}};qe.CHANGE="change";var Em=Object.defineProperty,xm=Object.getOwnPropertyDescriptor,le=(i,e,t,r)=>{for(var o=r>1?void 0:r?xm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Em(e,t,o),o};const Im=45,$n=(i,e,t)=>Math.min(Math.max(i,e),t),Cm=(i,e)=>Array.from({length:e-i+1},(t,r)=>i+r);n.UUIPaginationElement=class extends f{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this.firstLabel="First",this.previousLabel="Previous",this.nextLabel="Next",this.lastLabel="Last",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),k(this,"uui-button"),k(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(e){(e.has("current")||e.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const e=this.offsetWidth,t=Array.from(this._navButtons).reduce((o,s)=>o+s.getBoundingClientRect().width,0),r=(e-t)/Im/2;this._range=Math.max(1,Math.floor(r)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(e){const t=e<this._range?1:e<this.total-this._range?e-this._range:this.total-this._range*2,r=e<=this._range?this._range*2+1:e<this.total-this._range?e+this._range:this.total;return Cm($n(t,1,this.total),$n(r,1,this.total))}get total(){return this._total}set total(e){this._total=e,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",e)}get current(){return this._current}set current(e){const t=this._current;this._current=$n(e,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",t)}goToNextPage(){this.current++,this.dispatchEvent(new qe(qe.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new qe(qe.CHANGE))}goToPage(e){this.current=e,this.dispatchEvent(new qe(qe.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const e=this.renderRoot.querySelector(".active");e&&e.focus()})}renderFirst(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="${this.firstLabel}" ?disabled="${this._current===1}" @click="${()=>this.goToPage(1)}"></uui-button>`}renderPrevious(){return u`<uui-button compact="compact" look="outline" class="nav" role="listitem" label="${this.previousLabel}" ?disabled="${this._current===1}" @click="${this.goToPreviousPage}"></uui-button>`}renderNext(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="${this.nextLabel}" ?disabled="${this._current===this.total}" @click="${this.goToNextPage}"></uui-button>`}renderLast(){return u`<uui-button compact="compact" look="outline" role="listitem" class="nav" label="${this.lastLabel}" ?disabled="${this.total===this._current}" @click="${()=>this.goToPage(this.total)}"></uui-button>`}renderDots(){return u`<uui-button compact="compact" look="outline" role="listitem" tabindex="-1" class="dots" label="More pages">...</uui-button>`}renderPage(e){return u`<uui-button compact="compact" look="outline" role="listitem" label="Go to page ${e}" class="${"page"+(e===this._current?" active":"")}" tabindex="${e===this._current?"-1":""}" @click="${()=>{e!==this._current&&(this.goToPage(e),this.focusActivePage())}}">${e}</uui-button>`}renderNavigationLeft(){return u`${this.renderFirst()} ${this.renderPrevious()} ${this._visiblePages.includes(1)?"":this.renderDots()}`}renderNavigationRight(){return u`${this._visiblePages.includes(this.total)?"":this.renderDots()} ${this.renderNext()} ${this.renderLast()}`}render(){return u`<uui-button-group role="list" id="pages">${this.renderNavigationLeft()} ${this._visiblePages.map(e=>this.renderPage(e))} ${this.renderNavigationRight()}</uui-button-group>`}},n.UUIPaginationElement.styles=[g`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}`],le([Iu("uui-button.nav")],n.UUIPaginationElement.prototype,"_navButtons",2),le([A("#pages")],n.UUIPaginationElement.prototype,"_pagesGroup",2),le([l()],n.UUIPaginationElement.prototype,"label",2),le([l({reflect:!0,attribute:"aria-label"})],n.UUIPaginationElement.prototype,"ariaLabel",2),le([l()],n.UUIPaginationElement.prototype,"firstLabel",2),le([l()],n.UUIPaginationElement.prototype,"previousLabel",2),le([l()],n.UUIPaginationElement.prototype,"nextLabel",2),le([l()],n.UUIPaginationElement.prototype,"lastLabel",2),le([l({type:Number})],n.UUIPaginationElement.prototype,"total",1),le([U()],n.UUIPaginationElement.prototype,"_range",2),le([U()],n.UUIPaginationElement.prototype,"_visiblePages",2),le([l({type:Number})],n.UUIPaginationElement.prototype,"current",1),n.UUIPaginationElement=le([v("uui-pagination")],n.UUIPaginationElement);let kn=class extends z{};kn.CLOSE="close";var Sm=Object.defineProperty,Pm=Object.getOwnPropertyDescriptor,zi=(i,e,t,r)=>{for(var o=r>1?void 0:r?Pm(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&Sm(e,t,o),o};function Ro(i,e,t){return i<e?e:i>t?t:i}n.UUIPopoverElement=class extends f{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=e=>{this._trigger=e.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=e=>{e.forEach(t=>{t.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=e=>{if(e.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=e=>{e.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(e){const t=this._placement;this._placement=e||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",t)}get open(){return this._open}set open(e){const t=this._open;this._open=e,e?this._openPopover():this._closePopover(),this.requestUpdate("open",t)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const e=new kn(kn.CLOSE,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.open=!1)}_getScrollParents(){const e=this.shadowRoot.host;let t=getComputedStyle(e);if(t.position==="fixed")return;const r=t.position==="absolute",o=/(auto|scroll)/;let s=e;for(;s=s.parentElement;)if(t=getComputedStyle(s),!(r&&t.position==="static")&&(o.test(t.overflow+t.overflowY+t.overflowX)&&this._scrollParents.push(s),t.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const e={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,e),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(e=>{e.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(e=>{e.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){if(!this.shadowRoot)return;const e=this.containerElement;if(!e)return;const t=this.containerElement?.getBoundingClientRect(),r=this._trigger?.getBoundingClientRect();if(r!=null&&t!=null){const o=this._scrollParents.map(Se=>Se.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,t,o));let s=this._currentPlacement.indexOf("top")!==-1,a=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,h=this._currentPlacement.indexOf("right")!==-1;const d=this._currentPlacement.indexOf("-start")!==-1,b=this._currentPlacement.indexOf("-end")!==-1;let p=.5,_=.5,m=.5,w=.5,S=0,C=0;if(this.placement==="auto"){const Se=this._scrollParents[0],ji=Se.clientWidth,$t=Se.clientHeight,bi=r.x-t.width,vi=ji-(r.x+r.width)-t.width,Jn=r.y-t.height,rr=$t-(r.y+r.height)-t.height;let nr=.5,sr=.5;const dv=Math.max(bi,vi);let uu=Math.max(Jn,rr);rr>Jn&&rr>this.margin&&(uu+=9999),dv>uu?(bi>vi?(nr=0,c=!0):(nr=1,h=!0),S=this.margin):(Jn>rr?(sr=0,s=!0):(sr=1,a=!0),C=this.margin),p=nr,_=sr,m=1-nr,w=1-sr}else s&&(w=1,_=0),a&&(w=0,_=1),(s||a)&&(C=this.margin,d&&(m=0,p=0),b&&(m=1,p=1)),c&&(m=1,p=0),h&&(m=0,p=1),(c||h)&&(S=this.margin,d&&(w=0,_=0),b&&(w=1,_=1));const N=-t.width*m+r.width*p-S*(m*2-1),te=-t.height*w+r.height*_-C*(w*2-1);let Ut=N,_t=te;s||a?(this._scrollParents.forEach((Se,ji)=>{const $t=Se===document.body?0:o[ji].x,bi=-r.x+$t,vi=Se.clientWidth-r.x-r.width+N+$t-(t.width-r.width)*(1-p);Ut=Ro(Ut,bi,vi)}),Ut=Ro(Ut,-t.width,r.width)):(c||h)&&(this._scrollParents.forEach((Se,ji)=>{const $t=Se===document.body?0:o[ji].y,bi=-r.y+$t,vi=Se.clientHeight-r.y-r.height+te+$t-(t.height-r.height)*(1-_);_t=Ro(_t,bi,vi)}),_t=Ro(_t,-t.height,r.height)),(this._positionX!==Ut||this._positionY!==_t)&&(this._positionX=Ut,this._positionY=_t,N===Ut&&te===_t&&this._stopScrollListener(),e.style.left=`${this._positionX}px`,e.style.top=`${this._positionY}px`)}}_managePlacementFlip(e,t,r){const o=e.split("-"),s=o[0],a=o[1]||null;let c;return this._scrollParents.some((h,d)=>{const b=h===document.body?0:r[d].x,p=h===document.body?0:r[d].y;return s==="top"&&t.y-2<=p?(c="bottom",!0):s==="bottom"&&t.y+t.height+2>=h.clientHeight+p?(c="top",!0):s==="left"&&t.x-2<=b?(c="right",!0):s==="right"&&t.x+t.width+2>=h.clientWidth+b?(c="left",!0):!1}),c?(this._startScrollListener(),c+(a?`-${a}`:"")):e}render(){return u`<slot id="trigger" name="trigger" @slotchange="${this._onTriggerSlotChanged}"></slot><div id="container">${this._open?u`<slot name="popover"></slot>`:""}</div>`}},n.UUIPopoverElement.styles=[g`:host{position:relative;display:inline-block;width:100%}#container{position:absolute;width:100%;z-index:var(--uui-popover-z-index,1)}slot[name=popover]{display:block}#trigger{position:relative;width:100%}slot[name=trigger]::slotted(uui-button){--uui-button-border-radius:var(
359
407
  --uui-popover-toggle-slot-button-border-radius
@@ -420,13 +468,21 @@
420
468
  </div>`}},Qe=new WeakSet,ft=function(){const i=this.value.split(",");let e=Number(i[0])||0,t=Number(i[1])||0;t=O(t,this._min,this._max),e=this._min+Math.round((e-this._min)/this._step)*this._step,t=this._min+Math.round((t-this._min)/this._step)*this._step,this._lowInputValue=O(e,this._min,this._minGap?t-this._minGap:t-this._step),this._highInputValue=O(t,this._minGap?this._lowInputValue+this._minGap:this._lowInputValue+this._step,Math.min(this._maxGap?e+this._maxGap:this._max,this._max)),this._updateInnerColor(),this.requestUpdate()},Dn=new WeakMap,n.UUIRangeSliderElement.formAssociated=!0,n.UUIRangeSliderElement.styles=[g`
421
469
  :host {
422
470
  --color-interactive: var(--uui-color-selected,#3544b1);
423
- --color-hover: var(--uui-color-selected-emphasis,rgb(70, 86, 200));
471
+ --color-hover: var(--uui-color-selected-emphasis,rgb(
472
+ 70,
473
+ 86,
474
+ 200
475
+ ));
424
476
  --color-focus: var(--uui-color-focus,#3879ff);
425
477
  min-height: 30px;
426
478
  }
427
479
 
428
480
  :host([error]) {
429
- --color-interactive: var(--uui-color-invalid-standalone,rgb(191, 33, 78));
481
+ --color-interactive: var(--uui-color-invalid-standalone,rgb(
482
+ 191,
483
+ 33,
484
+ 78
485
+ ));
430
486
  --color-hover: var(--uui-color-invalid,#d42054);
431
487
  }
432
488
 
@@ -504,11 +560,19 @@
504
560
  }
505
561
 
506
562
  :host([error]) .color {
507
- background-color: var(--uui-color-invalid-standalone,rgb(191, 33, 78));
563
+ background-color: var(--uui-color-invalid-standalone,rgb(
564
+ 191,
565
+ 33,
566
+ 78
567
+ ));
508
568
  }
509
569
  :host([error]) #inner-color-thumb:hover ~ .color,
510
570
  :host([error]) #inner-color-thumb:focus ~ .color {
511
- background-color: var(--uui-color-invalid-emphasis,rgb(226, 60, 107));
571
+ background-color: var(--uui-color-invalid-emphasis,rgb(
572
+ 226,
573
+ 60,
574
+ 107
575
+ ));
512
576
  }
513
577
 
514
578
  /** Steps */
@@ -536,7 +600,11 @@
536
600
  }
537
601
 
538
602
  :host([error]) .track-step.filled {
539
- fill: var(--uui-color-invalid-emphasis,rgb(226, 60, 107));
603
+ fill: var(--uui-color-invalid-emphasis,rgb(
604
+ 226,
605
+ 60,
606
+ 107
607
+ ));
540
608
  }
541
609
 
542
610
  :host #inner-color-thumb.active ~ .step-wrapper .track-step.filled,
@@ -942,7 +1010,11 @@
942
1010
  }
943
1011
  :host([disabled]) #thumb {
944
1012
  background-color: var(--uui-color-disabled,#f3f3f5);
945
- border-color: var(--uui-color-disabled-standalone,rgb(226, 226, 226));
1013
+ border-color: var(--uui-color-disabled-standalone,rgb(
1014
+ 226,
1015
+ 226,
1016
+ 226
1017
+ ));
946
1018
  }
947
1019
 
948
1020
  #thumb:after {
@@ -1003,7 +1075,11 @@
1003
1075
  }
1004
1076
 
1005
1077
  :host(:not([pristine]):invalid) #thumb {
1006
- border-color: var(--uui-color-invalid-standalone,rgb(191, 33, 78));
1078
+ border-color: var(--uui-color-invalid-standalone,rgb(
1079
+ 191,
1080
+ 33,
1081
+ 78
1082
+ ));
1007
1083
  }
1008
1084
  :host(:not([pristine]):invalid) #thumb:after {
1009
1085
  background-color: var(--uui-color-invalid,#d42054);
@@ -1012,7 +1088,11 @@
1012
1088
  // readonly
1013
1089
  :host([readonly]) #thumb {
1014
1090
  background-color: var(--uui-color-disabled,#f3f3f5);
1015
- border-color: var(--uui-color-disabled-standalone,rgb(226, 226, 226));
1091
+ border-color: var(--uui-color-disabled-standalone,rgb(
1092
+ 226,
1093
+ 226,
1094
+ 226
1095
+ ));
1016
1096
  }
1017
1097
 
1018
1098
  :host([readonly]) #thumb-label {
@@ -1024,6 +1104,22 @@
1024
1104
  );--uui-tab-text-active:var(
1025
1105
  --uui-tab-group-dropdown-tab-text-active,
1026
1106
  unset
1027
- )}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}.hidden-tab{width:100%}#hidden-tabs-container{width:fit-content;display:flex;flex-direction:column;background-color:var(--uui-tab-group-dropdown-background,var(--uui-color-surface,#fff));border-radius:var(--uui-border-radius,3px);box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23));overflow:hidden}:host([dropdown-direction=horizontal]) #hidden-tabs-container{flex-direction:row}#more-button{position:relative;--uui-button-contrast:var(--uui-tab-text);--uui-button-contrast-hover:var(--uui-tab-text-hover);--uui-button-background-color:transparent;--uui-button-background-color-hover:transparent}#more-button::before{content:'';position:absolute;bottom:0;width:100%;background-color:var(--uui-color-current,#f5c1bc);height:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#more-button.active-inside::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}`],ci([A("#more-button")],n.UUITabGroupElement.prototype,"_moreButtonElement",2),ci([A("#popover-container")],n.UUITabGroupElement.prototype,"_popoverContainerElement",2),ci([A("#main")],n.UUITabGroupElement.prototype,"_mainElement",2),ci([Re({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),ci([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],n.UUITabGroupElement.prototype,"dropdownContentDirection",2),n.UUITabGroupElement=ci([v("uui-tab-group")],n.UUITabGroupElement);class Qb extends z{}class Jb extends z{}var ev=Object.defineProperty,tv=Object.getOwnPropertyDescriptor,Zn=(i,e,t,r)=>{for(var o=r>1?void 0:r?tv(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ev(e,t,o),o};n.UUITagElement=class extends f{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},n.UUITagElement.styles=[g`:host{display:inline-block;font-size:var(--uui-tag-font-size,var(--uui-type-small-size,12px));font-weight:700;line-height:1;padding:var(--uui-tag-padding,var(--uui-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em));border-radius:100px;user-select:none;border-radius:var(--uui-tag-border-radius,var(--uui-size-4,12px));border:1px solid var(--uui-tag-border-color,transparent)}slot{display:block;align-content:center;margin:2px}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(28, 35, 59));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(10, 115, 73));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-danger-contrast,white)}:host([color=invalid]){--color:var(--uui-color-invalid,#d42054);--color-standalone:var(--uui-color-invalid-standalone,rgb(191, 33, 78));--color-contrast:var(--uui-color-invalid-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:transparent;color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:transparent;color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}`],Zn([l({reflect:!0})],n.UUITagElement.prototype,"color",2),Zn([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=Zn([v("uui-tag")],n.UUITagElement);class Vi extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}}Vi.CHANGE="change",Vi.INPUT="input";var iv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,Z=(i,e,t,r)=>{for(var o=r>1?void 0:r?ov(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&iv(e,t,o),o};n.UUITextareaElement=class extends Ue(f,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage=e=>`${e} characters left`,this.maxlengthMessage=(e,t)=>`Maximum ${e} characters, ${t} too many.`,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",()=>{const e=this.minlengthMessage;return typeof e=="function"?e(this.minlength?this.minlength-String(this.value).length:0):e},()=>!!this.minlength&&this.value.length<this.minlength),this.addValidator("tooLong",()=>{const e=this.maxlengthMessage;return typeof e=="function"?e(this.maxlength??0,String(this.value).length):e},()=>!!this.maxlength&&this.value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}async focus(){await this.updateComplete,this._textarea.focus()}async blur(){await this.updateComplete,this._textarea.blur()}async click(){await this.updateComplete,this._textarea.click()}getFormElement(){return this._textarea}onInput(e){this.value=e.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Vi(Vi.CHANGE))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,r=e.scrollTop,o=getComputedStyle(e).height;e.style.display="block",e.style.height=o,t.style.height="auto",t.scrollHeight+2>t.clientHeight?t.style.height=t.scrollHeight+2+"px":t.scrollHeight+2<t.clientHeight&&t.style.removeProperty("height"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" rows="${$(this.rows)}" cols="${$(this.cols)}" .value="${this.value}" .name="${this.name}" wrap="${$(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
1107
+ )}::slotted(:not(:last-of-type)){border-right:1px solid var(--uui-tab-divider,none)}.hidden-tab{width:100%}#hidden-tabs-container{width:fit-content;display:flex;flex-direction:column;background-color:var(--uui-tab-group-dropdown-background,var(--uui-color-surface,#fff));border-radius:var(--uui-border-radius,3px);box-shadow:var(--uui-shadow-depth-3,0 10px 20px rgba(0,0,0,.19) ,0 6px 6px rgba(0,0,0,.23));overflow:hidden}:host([dropdown-direction=horizontal]) #hidden-tabs-container{flex-direction:row}#more-button{position:relative;--uui-button-contrast:var(--uui-tab-text);--uui-button-contrast-hover:var(--uui-tab-text-hover);--uui-button-background-color:transparent;--uui-button-background-color-hover:transparent}#more-button::before{content:'';position:absolute;bottom:0;width:100%;background-color:var(--uui-color-current,#f5c1bc);height:0;border-radius:3px 3px 0 0;opacity:0;transition:opacity ease-in 120ms,height ease-in 120ms}#more-button.active-inside::before{opacity:1;height:4px;transition:opacity 120ms,height ease-out 120ms}`],ci([A("#more-button")],n.UUITabGroupElement.prototype,"_moreButtonElement",2),ci([A("#popover-container")],n.UUITabGroupElement.prototype,"_popoverContainerElement",2),ci([A("#main")],n.UUITabGroupElement.prototype,"_mainElement",2),ci([Re({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],n.UUITabGroupElement.prototype,"_slottedNodes",2),ci([l({type:String,reflect:!0,attribute:"dropdown-content-direction"})],n.UUITabGroupElement.prototype,"dropdownContentDirection",2),n.UUITabGroupElement=ci([v("uui-tab-group")],n.UUITabGroupElement);class Qb extends z{}class Jb extends z{}var ev=Object.defineProperty,tv=Object.getOwnPropertyDescriptor,Zn=(i,e,t,r)=>{for(var o=r>1?void 0:r?tv(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ev(e,t,o),o};n.UUITagElement=class extends f{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return u`<slot></slot>`}},n.UUITagElement.styles=[g`:host{display:inline-block;font-size:var(--uui-tag-font-size,var(--uui-type-small-size,12px));font-weight:700;line-height:1;padding:var(--uui-tag-padding,var(--uui-size-space-1,3px) calc(var(--uui-size-space-1,3px) + .5em));border-radius:100px;user-select:none;border-radius:var(--uui-tag-border-radius,var(--uui-size-4,12px));border:1px solid var(--uui-tag-border-color,transparent)}slot{display:block;align-content:center;margin:2px}:host{--color:var(--uui-color-default,#1b264f);--color-standalone:var(--uui-color-default-standalone,rgb(
1108
+ 28,
1109
+ 35,
1110
+ 59
1111
+ ));--color-contrast:var(--uui-color-default-contrast,#fff)}:host([color=positive]){--color:var(--uui-color-positive,#0b8152);--color-standalone:var(--uui-color-positive-standalone,rgb(
1112
+ 10,
1113
+ 115,
1114
+ 73
1115
+ ));--color-contrast:var(--uui-color-positive-contrast,#fff)}:host([color=warning]){--color:var(--uui-color-warning,#fbd142);--color-standalone:var(--uui-color-warning-standalone,#a17700);--color-contrast:var(--uui-color-warning-contrast,#000)}:host([color=danger]){--color:var(--uui-color-danger,#d42054);--color-standalone:var(--uui-color-danger-standalone,rgb(
1116
+ 191,
1117
+ 33,
1118
+ 78
1119
+ ));--color-contrast:var(--uui-color-danger-contrast,white)}:host([color=invalid]){--color:var(--uui-color-invalid,#d42054);--color-standalone:var(--uui-color-invalid-standalone,rgb(
1120
+ 191,
1121
+ 33,
1122
+ 78
1123
+ ));--color-contrast:var(--uui-color-invalid-contrast,white)}:host{background-color:var(--uui-color-surface,#fff);color:var(--color-standalone);border-color:transparent}:host([look=primary]){background-color:var(--color);color:var(--color-contrast);border-color:transparent}:host([look=secondary]){background-color:var(--uui-color-surface-alt,#f3f3f5);color:var(--color-standalone);border-color:transparent}:host([look=outline]){background-color:transparent;color:var(--color-standalone);border-color:var(--color-standalone)}:host([look=placeholder]){border-style:dashed;background-color:transparent;color:var(--color-standalone);border-color:var(--uui-color-border-standalone,#c2c2c2)}`],Zn([l({reflect:!0})],n.UUITagElement.prototype,"color",2),Zn([l({reflect:!0})],n.UUITagElement.prototype,"look",2),n.UUITagElement=Zn([v("uui-tag")],n.UUITagElement);class Vi extends z{constructor(e,t={}){super(e,{bubbles:!0,...t})}}Vi.CHANGE="change",Vi.INPUT="input";var iv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,Z=(i,e,t,r)=>{for(var o=r>1?void 0:r?ov(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&iv(e,t,o),o};n.UUITextareaElement=class extends Ue(f,""){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage=e=>`${e} characters left`,this.maxlengthMessage=(e,t)=>`Maximum ${e} characters, ${t} too many.`,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",()=>{const e=this.minlengthMessage;return typeof e=="function"?e(this.minlength?this.minlength-String(this.value).length:0):e},()=>!!this.minlength&&this.value.length<this.minlength),this.addValidator("tooLong",()=>{const e=this.maxlengthMessage;return typeof e=="function"?e(this.maxlength??0,String(this.value).length):e},()=>!!this.maxlength&&this.value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this),this.autoHeight&&requestAnimationFrame(()=>{this.autoUpdateHeight()})}async focus(){await this.updateComplete,this._textarea.focus()}async blur(){await this.updateComplete,this._textarea.blur()}async click(){await this.updateComplete,this._textarea.click()}getFormElement(){return this._textarea}onInput(e){this.value=e.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(e){e.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Vi(Vi.CHANGE))}autoUpdateHeight(){const e=this.shadowRoot.host,t=this._textarea,r=e.scrollTop,o=getComputedStyle(e).height;e.style.display="block",e.style.height=o,t.style.height="auto",t.scrollHeight+2>t.clientHeight?t.style.height=t.scrollHeight+2+"px":t.scrollHeight+2<t.clientHeight&&t.style.removeProperty("height"),e.style.removeProperty("display"),e.style.removeProperty("height"),e.scrollTop=r}render(){return u`<textarea id="textarea" rows="${$(this.rows)}" cols="${$(this.cols)}" .value="${this.value}" .name="${this.name}" wrap="${$(this.wrap)}" placeholder="${this.placeholder}" aria-label="${this.label}" .disabled="${this.disabled}" ?readonly="${this.readonly}" @input="${this.onInput}" @change="${this.onChange}">
1028
1124
  </textarea>`}},n.UUITextareaElement.formAssociated=!0,n.UUITextareaElement.styles=[g`:host{position:relative}:host([error]) textarea,:host([error]) textarea[disabled]{border:1px solid var(--uui-color-invalid,#d42054)!important}:host(:not([pristine]):invalid) textarea,:host(:not([pristine])[internals-invalid]) textarea{border-color:var(--uui-color-invalid,#d42054)}:host([auto-height]) textarea{resize:none}.label{display:inline-block;margin-bottom:var(--uui-size-1,3px);font-weight:700}textarea[readonly]{border-color:var(--uui-textarea-border-color-readonly,var(--uui-color-disabled-standalone,#e2e2e2));background-color:var(--uui-textarea-background-color-readonly,var(--uui-color-disabled,#f3f3f5))}textarea[disabled]{cursor:not-allowed;background-color:var(--uui-textarea-background-color-disabled,var(--uui-color-disabled,#f3f3f5));border-color:var(--uui-textarea-border-color-disabled,var(--uui-color-disabled,#f3f3f5));color:var(--uui-color-disabled-contrast,#c4c4c4)}textarea{color:var(--uui-color-text,#060606);font-family:inherit;line-height:var(--uui-size-6,18px);box-sizing:border-box;min-width:100%;max-width:100%;font-size:inherit;padding:var(--uui-size-2,6px);border:1px solid var(--uui-textarea-border-color,var(--uui-color-border,#d8d7d9));border-radius:var(--uui-border-radius,3px);outline:0;min-height:var(--uui-textarea-min-height);max-height:var(--uui-textarea-max-height);background-color:var(--uui-textarea-background-color,var(--uui-color-surface,#fff))}:host(:focus) textarea,:host(:hover) textarea:not([readonly]):not([disabled]) :host(:focus-within) textarea{border-color:var(--uui-textarea-border-color,var(--uui-color-border-emphasis,#a1a1a1))}textarea:focus{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}`],Z([l()],n.UUITextareaElement.prototype,"placeholder",2),Z([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"disabled",2),Z([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"readonly",2),Z([l({type:String})],n.UUITextareaElement.prototype,"name",2),Z([l({type:Boolean,reflect:!0})],n.UUITextareaElement.prototype,"error",2),Z([l({type:Number})],n.UUITextareaElement.prototype,"minlength",2),Z([l({attribute:"minlength-message"})],n.UUITextareaElement.prototype,"minlengthMessage",2),Z([l({type:Number})],n.UUITextareaElement.prototype,"maxlength",2),Z([l({attribute:"maxlength-message"})],n.UUITextareaElement.prototype,"maxlengthMessage",2),Z([A("#textarea")],n.UUITextareaElement.prototype,"_textarea",2),Z([l({type:Boolean,attribute:"auto-height",reflect:!0})],n.UUITextareaElement.prototype,"autoHeight",2),Z([l({type:String})],n.UUITextareaElement.prototype,"label",2),Z([l({type:Number})],n.UUITextareaElement.prototype,"rows",2),Z([l({type:Number})],n.UUITextareaElement.prototype,"cols",2),Z([l({type:String})],n.UUITextareaElement.prototype,"wrap",2),n.UUITextareaElement=Z([v("uui-textarea")],n.UUITextareaElement);let ee=class extends z{};ee.OPENING="opening",ee.OPENED="opened",ee.CLOSING="closing",ee.CLOSED="closed";var rv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,mi=(i,e,t,r)=>{for(var o=r>1?void 0:r?nv(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&rv(e,t,o),o};n.UUIToastNotificationElement=class extends f{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",e=>{e.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,e!==null?(this._timer===null?this._timer=new ah(this._onOpenTimerComplete,e):this._timer.setDuration(e),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):(this._timer?.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(e){e===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),k(this,"uui-button"),k(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 ee(ee.OPENING)),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&this._timer?.start(),this.dispatchEvent(new ee(ee.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){if(this._open===!1)return;const e=new ee(ee.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,this._timer?.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new ee(ee.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="${zr.strings[0]}"></uui-icon></uui-button></div><slot></slot></div></div>`}},n.UUIToastNotificationElement.styles=[It,g`:host{--uui-toast-notification-margin:var(--uui-size-space-2,6px);position:relative;display:block;width:100%;max-width:400px;margin:0 var(--uui-toast-notification-margin);box-sizing:border-box;height:0;pointer-events:none;transition:height var(--uui-toast-notification-animation-duration,480ms) ease-in-out}:host([is-open]){pointer-events:all;transition-timing-function:cubic-bezier(.19,1,.22,1)}#toast{position:relative;display:block;padding:calc(var(--uui-toast-notification-margin) * .5) 0;width:100%;max-width:400px}#toast.animate{position:absolute}#toast>div{position:relative;display:block;box-sizing:border-box;box-shadow:var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,.12) ,0 1px 2px rgba(0,0,0,.24));background-color:var(--uui-color-surface,#fff);padding:var(--uui-size-layout-1,24px);padding-right:var(--uui-size-layout-1,24px);padding-left:var(--uui-size-layout-3,42px);border-radius:calc(var(--uui-border-radius,3px) * 2);opacity:0;transition:opacity var(--uui-toast-notification-animation-duration,480ms)}:host([is-open]) #toast>div{opacity:1}#close{float:right;margin-top:-6px;margin-left:var(--uui-size-space-1,3px);margin-bottom:-4px}#close>uui-button{--uui-button-border-radius:50px 50px 50px 50px;--uui-button-padding-left-factor:1.5;--uui-button-padding-right-factor:1.5}:host #toast>div{background-color:var(--uui-color-surface,#fff);color:var(--uui-color-text,#060606);border-color:var(--uui-color-surface,#fff)}:host([color=default]) #toast>div{background-color:var(--uui-color-default,#1b264f);color:var(--uui-color-default-contrast,#fff);border-color:var(--uui-color-default-standalone,#1c233b)}:host([color=positive]) #toast>div{background-color:var(--uui-color-positive,#0b8152);color:var(--uui-color-positive-contrast,#fff);border-color:var(--uui-color-positive-standalone,#0a7349)}:host([color=warning]) #toast>div{background-color:var(--uui-color-warning,#fbd142);color:var(--uui-color-warning-contrast,#000);border-color:var(--uui-color-warning-standalone,#a17700)}:host([color=danger]) #toast>div{background-color:var(--uui-color-danger,#d42054);color:var(--uui-color-danger-contrast,#fff);border-color:var(--uui-color-danger-standalone,#bf214e)}:host([color=invalid]) #toast>div{background-color:var(--uui-color-invalid,#d42054);color:var(--uui-color-invalid-contrast,#fff);border-color:var(--uui-color-invalid-standalone,#bf214e)}`],mi([l({reflect:!0})],n.UUIToastNotificationElement.prototype,"color",2),mi([l({type:Number})],n.UUIToastNotificationElement.prototype,"autoClose",1),mi([A("#toast")],n.UUIToastNotificationElement.prototype,"_toastEl",2),mi([U()],n.UUIToastNotificationElement.prototype,"_animate",2),mi([l({type:Boolean,reflect:!0})],n.UUIToastNotificationElement.prototype,"open",1),n.UUIToastNotificationElement=mi([v("uui-toast-notification")],n.UUIToastNotificationElement);var sv=Object.defineProperty,av=Object.getOwnPropertyDescriptor,lu=(i,e,t,r)=>{for(var o=r>1?void 0:r?av(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sv(e,t,o),o};n.UUIToastNotificationContainerElement=class extends f{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{this._autoClosePause=!0,this._toasts?.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,this._toasts?.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=e=>{this.removeToast(e.target)},this._toasts=[],this.onSlotChanged=e=>{const t=[...this._toasts];this._toasts=e.target.assignedElements({flatten:!0}).filter(r=>r.nodeName==="UUI-TOAST-NOTIFICATION"),t.filter(r=>this._toasts.indexOf(r)===-1).forEach(r=>{r.removeEventListener(ee.CLOSED,this.onToastClosed),r.removeEventListener("mouseenter",this.pauseAutoClose),r.removeEventListener("mouseleave",this.resumeAutoClose),r.removeEventListener("focus",this.pauseAutoClose),r.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(r=>t.indexOf(r)===-1).forEach(r=>{r.addEventListener(ee.CLOSED,this.onToastClosed),r.addEventListener("mouseenter",this.pauseAutoClose),r.addEventListener("mouseleave",this.resumeAutoClose),r.addEventListener("focus",this.pauseAutoClose),r.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(r.autoClose=this._autoClose),this._autoClosePause===!0&&r.pauseAutoClose(),r.open=!0})}}get autoClose(){return this._autoClose}set autoClose(e){this._autoClose=e,this._toasts?.forEach(t=>t.autoClose=e)}removeToast(e){if(!e)e=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(e)===-1){console.warn("Toast-notification",e,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(e)}closeToast(e){let t=e;t||(t=this._toasts[this._toasts.length-1]),t.open=!1}render(){return u`<slot @slotchange="${this.onSlotChanged}"></slot>`}},n.UUIToastNotificationContainerElement.styles=[g`: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}`],lu([l({type:Number,reflect:!0,attribute:"auto-close"})],n.UUIToastNotificationContainerElement.prototype,"_autoClose",2),n.UUIToastNotificationContainerElement=lu([v("uui-toast-notification-container")],n.UUIToastNotificationContainerElement);var lv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,Qn=(i,e,t,r)=>{for(var o=r>1?void 0:r?uv(e,t):e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&lv(e,t,o),o};n.UUIToastNotificationLayoutElement=class extends f{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=e=>{this._headlineSlotHasContent=e.target.assignedNodes({flatten:!0}).length>0}}render(){return u`<div id="message" class="uui-text"><h5 style="${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}">${this.headline}<slot name="headline" @slotchange="${this._headlineSlotChanged}"></slot></h5><slot></slot><slot id="actions" name="actions"></slot></div>`}},n.UUIToastNotificationLayoutElement.styles=[It,g`#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)}`],Qn([l({type:String})],n.UUIToastNotificationLayoutElement.prototype,"headline",2),Qn([U()],n.UUIToastNotificationLayoutElement.prototype,"_headlineSlotHasContent",2),n.UUIToastNotificationLayoutElement=Qn([v("uui-toast-notification-layout")],n.UUIToastNotificationLayoutElement);var cv=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIToggleElement=class extends ce{constructor(){super("switch")}renderCheckbox(){return u`<div id="toggle"><div id="icon-checked">${so}</div><div id="icon-unchecked">${zr}</div></div>`}},n.UUIToggleElement.formAssociated=!0,n.UUIToggleElement.styles=[...ce.styles,io,g`:host{--uui-toggle-size:18px;--uui-toggle-switch-width:calc(2 * var(--uui-toggle-size))}#toggle{position:relative;grid-area:'input';display:flex;align-items:center;flex-shrink:0;width:var(--uui-toggle-switch-width);height:var(--uui-toggle-size);border-radius:100px;background-color:var(--uui-toggle-background-color,var(--uui-color-border,#d8d7d9));border:1px solid var(--uui-toggle-border-color,var(--uui-color-border-standalone,#c2c2c2));font-size:calc(var(--uui-toggle-size) * .6)}label:hover input:not([disabled])~#toggle{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 #toggle{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~#toggle{background-color:var(--uui-color-selected,#3544b1)}label:hover input:checked:not([disabled])~#toggle{background-color:var(--uui-color-selected-emphasis,#4656c8)}label:focus input:checked~#toggle{background-color:var(--uui-color-selected-emphasis,#4656c8)}#icon-checked,#icon-unchecked{position:absolute;vertical-align:middle;width:1em;height:1em;line-height:0;transition:color 120ms}#icon-checked{margin-left:-.5em;left:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}#icon-unchecked{margin-right:-.5em;right:calc(var(--uui-toggle-size) * .5);color:var(--uui-color-interactive,#1b264f)}input:checked~#toggle #icon-checked{color:var(--uui-color-selected-contrast,#fff)}#toggle::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~#toggle::after{left:calc(100% - 2px);transform:translateX(-100%)}input:focus~#toggle{outline:calc(2px * var(--uui-show-focus-outline,1)) solid var(--uui-color-focus,#3879ff)}:host(:not([disabled],[readonly])) label:active #toggle::after{width:calc(1.06 * var(--uui-toggle-size))}:host([disabled]) #toggle{background-color:var(--uui-color-disabled-standalone,#e2e2e2)}:host([disabled]) input:checked~#toggle{background-color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) #toggle::after{background-color:var(--uui-color-disabled,#f3f3f5)}:host([disabled]) #toggle #icon-unchecked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host([disabled]) label:active #toggle{animation:${oo}}:host([disabled]) input:checked #toggle #icon-checked{color:var(--uui-color-disabled-contrast,#c4c4c4)}:host(:not([pristine]):invalid) #toggle,:host(:not([pristine]):invalid) label:hover #toggle,:host(:not([pristine])[internals-invalid]) #toggle,:host(:not([pristine])[internals-invalid]) label:hover #toggle{border:1px solid var(--uui-color-invalid-standalone,#bf214e)}`],n.UUIToggleElement=cv([v("uui-toggle")],n.UUIToggleElement);var hv=(i,e,t,r)=>{for(var o=e,s=i.length-1,a;s>=0;s--)(a=i[s])&&(o=a(o)||o);return o};n.UUIVisuallyHiddenElement=class extends f{render(){return u`<slot></slot>`}},n.UUIVisuallyHiddenElement.styles=[g`:host(:not(:focus-within)){position:absolute!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:none!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important}`],n.UUIVisuallyHiddenElement=hv([v("uui-visually-hidden")],n.UUIVisuallyHiddenElement),n.ActiveMixin=Bu,n.LabelMixin=Vu,n.PopoverTargetMixin=uc,n.SelectOnlyMixin=Ku,n.SelectableMixin=Fu,n.Timer=Ju,n.UUIBlinkAnimationValue=Au,n.UUIBlinkKeyframes=Pu,n.UUIBooleanInputElement=ce,n.UUIBooleanInputEvent=to,n.UUIButtonInlineCreateEvent=ro,n.UUICardEvent=Tt,n.UUIColorAreaEvent=vo,n.UUIColorPickerChangeEvent=jt,n.UUIColorSliderEvent=wo,n.UUIColorSwatchesEvent=Rt,n.UUIComboboxEvent=se,n.UUIComboboxListEvent=ne,n.UUICopyTextEvent=ct,n.UUIEvent=Ur,n.UUIFileDropzoneEvent=Kt,n.UUIFormControlEvent=Pe,n.UUIFormControlMixin=Qu,n.UUIHorizontalPulseAnimationValue=Lu,n.UUIHorizontalPulseKeyframes=zu,n.UUIHorizontalShakeAnimationValue=Ou,n.UUIHorizontalShakeKeyframes=Mu,n.UUIIconHost=hn,n.UUIIconRegistry=dn,n.UUIIconRegistryEssential=ul,n.UUIIconRequestEvent=Yt,n.UUIInputEvent=mt,n.UUIInputLockEvent=To,n.UUIInterfaceColorValues=dc,n.UUIInterfaceHeadingValues=pc,n.UUIInterfaceLookValues=hc,n.UUIMenuItemEvent=Te,n.UUIModalCloseEndEvent=gl,n.UUIModalCloseEvent=Jt,n.UUIModalElement=ae,n.UUIModalOpenEvent=vl,n.UUIPaginationEvent=qe,n.UUIRadioEvent=ni,n.UUIRadioGroupEvent=Go,n.UUIRefEvent=li,n.UUISelectEvent=Zo,n.UUISelectableEvent=ot,n.UUISliderEvent=wt,n.UUITabEvent=Qb,n.UUITabGroupEvent=Jb,n.UUITextStyles=It,n.UUITextareaEvent=Vi,n.UUIToastNotificationEvent=ee,n.clamp=ic,n.defineElement=cc,n.demandCustomElement=ec,n.drag=tc,n.findAncestorByAttributeValue=$s,n.reverseNumberInRange=oc,n.slotHasContent=nc,n.toHex=rc});
1029
1125
  //# sourceMappingURL=uui.min.js.map