@telia-ace/widget-components-area-flamingo 1.1.23-rc.0 → 1.1.23-rc.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,17 +2,17 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const B=globalThis,Q=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),nt=new WeakMap;let $t=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==X)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Q&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&nt.set(e,t))}return t}toString(){return this.cssText}};const Tt=i=>new $t(typeof i=="string"?i:i+"",void 0,X),P=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,r,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+i[n+1],i[0]);return new $t(e,i,X)},Ut=(i,t)=>{if(Q)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=B.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,i.appendChild(s)}},ot=Q?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Tt(e)})(i):i;/**
5
+ */const B=globalThis,Q=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),nt=new WeakMap;let $t=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==X)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Q&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&nt.set(e,t))}return t}toString(){return this.cssText}};const Tt=r=>new $t(typeof r=="string"?r:r+"",void 0,X),P=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,i,n)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[n+1],r[0]);return new $t(e,r,X)},Ut=(r,t)=>{if(Q)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=B.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},ot=Q?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Tt(e)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Nt,defineProperty:Mt,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Ht,getOwnPropertySymbols:Rt,getPrototypeOf:Lt}=Object,_=globalThis,at=_.trustedTypes,jt=at?at.emptyScript:"",Y=_.reactiveElementPolyfillSupport,T=(i,t)=>i,I={toAttribute(i,t){switch(t){case Boolean:i=i?jt:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},tt=(i,t)=>!Nt(i,t),ct={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class E extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ct){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Mt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:n}=kt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const c=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ct}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=Lt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,s=[...Ht(e),...Rt(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const r of s)e.unshift(ot(r))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ut(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var n;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:I).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=s.getPropertyOptions(r),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:I;this._$Em=r,this[r]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,r=!1,n){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??tt)(r?n:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[T("elementProperties")]=new Map,E[T("finalized")]=new Map,Y==null||Y({ReactiveElement:E}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.1");/**
9
+ */const{is:Nt,defineProperty:Mt,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Rt,getOwnPropertySymbols:Ht,getPrototypeOf:Lt}=Object,_=globalThis,at=_.trustedTypes,jt=at?at.emptyScript:"",Y=_.reactiveElementPolyfillSupport,T=(r,t)=>r,I={toAttribute(r,t){switch(t){case Boolean:r=r?jt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},tt=(r,t)=>!Nt(r,t),ct={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class E extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ct){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Mt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=kt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const c=i==null?void 0:i.call(this);n.call(this,o),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ct}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=Lt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,s=[...Rt(e),...Ht(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(ot(i))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ut(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:I).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:I;this._$Em=i,this[i]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??tt)(i?n:this[t],e))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$ES)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[T("elementProperties")]=new Map,E[T("finalized")]=new Map,Y==null||Y({ReactiveElement:E}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const U=globalThis,G=U.trustedTypes,ht=G?G.createPolicy("lit-html",{createHTML:i=>i}):void 0,mt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+m,Dt=`<${_t}>`,b=document,M=()=>b.createComment(""),k=i=>i===null||typeof i!="object"&&typeof i!="function",yt=Array.isArray,zt=i=>yt(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",J=`[
13
+ */const U=globalThis,G=U.trustedTypes,ht=G?G.createPolicy("lit-html",{createHTML:r=>r}):void 0,mt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+m,Dt=`<${_t}>`,b=document,M=()=>b.createComment(""),k=r=>r===null||typeof r!="object"&&typeof r!="function",yt=Array.isArray,zt=r=>yt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",J=`[
14
14
  \f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,dt=/>/g,y=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,vt=/^(?:script|style|textarea|title)$/i,Bt=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),C=Bt(1),w=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),gt=new WeakMap,A=b.createTreeWalker(b,129);function At(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}const It=(i,t)=>{const e=i.length-1,s=[];let r,n=t===2?"<svg>":"",o=O;for(let c=0;c<e;c++){const a=i[c];let d,p,h=-1,u=0;for(;u<a.length&&(o.lastIndex=u,p=o.exec(a),p!==null);)u=o.lastIndex,o===O?p[1]==="!--"?o=lt:p[1]!==void 0?o=dt:p[2]!==void 0?(vt.test(p[2])&&(r=RegExp("</"+p[2],"g")),o=y):p[3]!==void 0&&(o=y):o===y?p[0]===">"?(o=r??O,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?y:p[3]==='"'?ut:pt):o===ut||o===pt?o=y:o===lt||o===dt?o=O:(o=y,r=void 0);const $=o===y&&i[c+1].startsWith("/>")?" ":"";n+=o===O?a+Dt:h>=0?(s.push(d),a.slice(0,h)+mt+a.slice(h)+m+$):a+m+(h===-2?c:$)}return[At(i,n+(i[e]||"<?>")+(t===2?"</svg>":"")),s]};class H{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=It(t,e);if(this.el=H.createElement(d,s),A.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=A.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(mt)){const u=p[o++],$=r.getAttribute(h).split(m),D=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:D[2],strings:$,ctor:D[1]==="."?Wt:D[1]==="?"?Vt:D[1]==="@"?qt:V}),r.removeAttribute(h)}else h.startsWith(m)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(vt.test(r.tagName)){const h=r.textContent.split(m),u=h.length-1;if(u>0){r.textContent=G?G.emptyScript:"";for(let $=0;$<u;$++)r.append(h[$],M()),A.nextNode(),a.push({type:2,index:++n});r.append(h[u],M())}}}else if(r.nodeType===8)if(r.data===_t)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(m,h+1))!==-1;)a.push({type:7,index:n}),h+=m.length-1}n++}}static createElement(t,e){const s=b.createElement("template");return s.innerHTML=t,s}}function S(i,t,e=i,s){var o,c;if(t===w)return t;let r=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=k(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((c=r==null?void 0:r._$AO)==null||c.call(r,!1),n===void 0?r=void 0:(r=new n(i),r._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=r:e._$Cl=r),r!==void 0&&(t=S(i,r._$AS(i,t.values),r,s)),t}class Gt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,r=((t==null?void 0:t.creationScope)??b).importNode(e,!0);A.currentNode=r;let n=A.nextNode(),o=0,c=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new R(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Yt(n,this,t)),this._$AV.push(d),a=s[++c]}o!==(a==null?void 0:a.index)&&(n=A.nextNode(),o++)}return A.currentNode=b,r}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class R{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),k(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):zt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==l&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=H.createElement(At(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Gt(r,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=gt.get(t.strings);return e===void 0&&gt.set(t.strings,e=new H(t)),e}T(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,r=0;for(const n of t)r===e.length?e.push(s=new R(this.k(M()),this.k(M()),this,this.options)):s=e[r],s._$AI(n),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class V{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=l}_$AI(t,e=this,s,r){const n=this.strings;let o=!1;if(n===void 0)t=S(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=S(this,c[s+a],e,a),d===w&&(d=this._$AH[a]),o||(o=!k(d)||d!==this._$AH[a]),d===l?t=l:t!==l&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!r&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Wt extends V{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class Vt extends V{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class qt extends V{constructor(t,e,s,r,n){super(t,e,s,r,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??l)===w)return;const s=this._$AH,r=t===l&&s!==l||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==l&&(s===l||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Yt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const K=U.litHtmlPolyfillSupport;K==null||K(H,R),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.2");const Jt=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let r=s._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=r=new R(t.insertBefore(M(),n),n,void 0,e??{})}return r._$AI(i),r};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,vt=/^(?:script|style|textarea|title)$/i,Bt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),C=Bt(1),w=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),gt=new WeakMap,A=b.createTreeWalker(b,129);function At(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}const It=(r,t)=>{const e=r.length-1,s=[];let i,n=t===2?"<svg>":"",o=O;for(let c=0;c<e;c++){const a=r[c];let d,p,h=-1,u=0;for(;u<a.length&&(o.lastIndex=u,p=o.exec(a),p!==null);)u=o.lastIndex,o===O?p[1]==="!--"?o=lt:p[1]!==void 0?o=dt:p[2]!==void 0?(vt.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=y):p[3]!==void 0&&(o=y):o===y?p[0]===">"?(o=i??O,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?y:p[3]==='"'?ut:pt):o===ut||o===pt?o=y:o===lt||o===dt?o=O:(o=y,i=void 0);const $=o===y&&r[c+1].startsWith("/>")?" ":"";n+=o===O?a+Dt:h>=0?(s.push(d),a.slice(0,h)+mt+a.slice(h)+m+$):a+m+(h===-2?c:$)}return[At(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class R{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=It(t,e);if(this.el=R.createElement(d,s),A.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=A.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(mt)){const u=p[o++],$=i.getAttribute(h).split(m),D=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:D[2],strings:$,ctor:D[1]==="."?Wt:D[1]==="?"?Vt:D[1]==="@"?qt:V}),i.removeAttribute(h)}else h.startsWith(m)&&(a.push({type:6,index:n}),i.removeAttribute(h));if(vt.test(i.tagName)){const h=i.textContent.split(m),u=h.length-1;if(u>0){i.textContent=G?G.emptyScript:"";for(let $=0;$<u;$++)i.append(h[$],M()),A.nextNode(),a.push({type:2,index:++n});i.append(h[u],M())}}}else if(i.nodeType===8)if(i.data===_t)a.push({type:2,index:n});else{let h=-1;for(;(h=i.data.indexOf(m,h+1))!==-1;)a.push({type:7,index:n}),h+=m.length-1}n++}}static createElement(t,e){const s=b.createElement("template");return s.innerHTML=t,s}}function S(r,t,e=r,s){var o,c;if(t===w)return t;let i=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const n=k(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=S(r,i._$AS(r,t.values),i,s)),t}class Gt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=((t==null?void 0:t.creationScope)??b).importNode(e,!0);A.currentNode=i;let n=A.nextNode(),o=0,c=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new H(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Yt(n,this,t)),this._$AV.push(d),a=s[++c]}o!==(a==null?void 0:a.index)&&(n=A.nextNode(),o++)}return A.currentNode=b,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class H{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),k(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):zt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==l&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=R.createElement(At(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(e);else{const o=new Gt(i,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=gt.get(t.strings);return e===void 0&&gt.set(t.strings,e=new R(t)),e}T(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new H(this.k(M()),this.k(M()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class V{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=l}_$AI(t,e=this,s,i){const n=this.strings;let o=!1;if(n===void 0)t=S(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=S(this,c[s+a],e,a),d===w&&(d=this._$AH[a]),o||(o=!k(d)||d!==this._$AH[a]),d===l?t=l:t!==l&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!i&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Wt extends V{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class Vt extends V{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class qt extends V{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??l)===w)return;const s=this._$AH,i=t===l&&s!==l||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==l&&(s===l||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Yt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}}const K=U.litHtmlPolyfillSupport;K==null||K(R,H),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.2");const Jt=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let i=s._$litPart$;if(i===void 0){const n=(e==null?void 0:e.renderBefore)??null;s._$litPart$=i=new H(t.insertBefore(M(),n),n,void 0,e??{})}return i._$AI(r),i};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
@@ -20,23 +20,23 @@
20
20
  * @license
21
21
  * Copyright 2021 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */function*bt(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}/**
23
+ */function*bt(r,t){if(r!==void 0){let e=0;for(const s of r)yield t(s,e++)}}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Kt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt},Zt=(i=Kt,t,e)=>{const{kind:s,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(o,a,i)},init(c){return c!==void 0&&this.C(o,void 0,i),c}}}if(s==="setter"){const{name:o}=e;return function(c){const a=this[o];t.call(this,c),this.requestUpdate(o,a,i)}}throw Error("Unsupported decorator location: "+s)};function g(i){return(t,e)=>typeof e=="object"?Zt(i,t,e):((s,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(r,n):void 0})(i,t,e)}/**
27
+ */const Kt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:tt},Zt=(r=Kt,t,e)=>{const{kind:s,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(o,a,r)},init(c){return c!==void 0&&this.C(o,void 0,r),c}}}if(s==="setter"){const{name:o}=e;return function(c){const a=this[o];t.call(this,c),this.requestUpdate(o,a,r)}}throw Error("Unsupported decorator location: "+s)};function g(r){return(t,e)=>typeof e=="object"?Zt(r,t,e):((s,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,t,e)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */function L(i){return g({...i,state:!0,attribute:!1})}/**
31
+ */function L(r){return g({...r,state:!0,attribute:!1})}/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */const wt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=i=>(...t)=>({_$litDirective$:i,values:t});class Et{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
35
+ */const wt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xt=r=>(...t)=>({_$litDirective$:r,values:t});class Et{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
36
36
  * @license
37
37
  * Copyright 2018 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const Ft=xt(class extends Et{constructor(i){var t;if(super(i),i.type!==wt.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,r;if(this.it===void 0){this.it=new Set,i.strings!==void 0&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.st)!=null&&s.has(n))&&this.it.add(n);return this.render(t)}const e=i.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];o===this.it.has(n)||(r=this.st)!=null&&r.has(n)||(o?(e.add(n),this.it.add(n)):(e.remove(n),this.it.delete(n)))}return w}}),z=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ct=(i,t)=>{var e,s,r,n;z((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),z((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),z((r=i.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),z((n=i.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Qt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,q=(i,t,e,s)=>{for(var r=s>1?void 0:s?Xt(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&Qt(t,e,r),r};class x extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ct(this.application.settings.branding,this)}async _renderSymbol(){var c,a,d;const t=(c=this.application)==null?void 0:c.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.trigger;if(e)return C` <img src=${e} class="trigger-icon" alt="" /> `;const s=(d=this.application)==null?void 0:d.triggerIcon;if(!s)return l;const r=async p=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(u=>u[p]),{type:n,content:o}=s;switch(n){case"Telia":{const p=await r(o);return p?C`<telia-icon
39
+ */const Ft=xt(class extends Et{constructor(r){var t;if(super(r),r.type!==wt.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var s,i;if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.st)!=null&&s.has(n))&&this.it.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];o===this.it.has(n)||(i=this.st)!=null&&i.has(n)||(o?(e.add(n),this.it.add(n)):(e.remove(n),this.it.delete(n)))}return w}}),z=(r,t,e)=>{r&&e.style.setProperty(t,r)},Ct=(r,t)=>{var e,s,i,n;z((e=r.colors)==null?void 0:e.primaryBackground,"--primary-background",t),z((s=r.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),z((i=r.colors)==null?void 0:i.secondaryBackground,"--secondary-background",t),z((n=r.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Qt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,q=(r,t,e,s)=>{for(var i=s>1?void 0:s?Xt(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&Qt(t,e,i),i};class x extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ct(this.application.settings.branding,this)}async _renderSymbol(){var c,a,d;const t=(c=this.application)==null?void 0:c.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.trigger;if(e)return C` <img src=${e} class="trigger-icon" alt="" /> `;const s=(d=this.application)==null?void 0:d.triggerIcon;if(!s)return l;const i=async p=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(u=>u[p]),{type:n,content:o}=s;switch(n){case"Telia":{const p=await i(o);return p?C`<telia-icon
40
40
  class="trigger-icon"
41
41
  svg=${p.svg}
42
42
  size="lg"
@@ -144,7 +144,7 @@
144
144
  img {
145
145
  max-width: 100%;
146
146
  }
147
- `];q([g({attribute:!1})],x.prototype,"application",2);q([L()],x.prototype,"active",2);q([L()],x.prototype,"loaded",2);q([L()],x.prototype,"icon",2);var te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,v=(i,t,e,s)=>{for(var r=s>1?void 0:s?ee(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&te(t,e,r),r};const St=i=>{class t extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(s){this.properties=s}writeLayout(s){this.layout=s}writeContext(s){this.context=s}addChild(s){s.parent=this,this.nodes.push(s)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[P`
147
+ `];q([g({attribute:!1})],x.prototype,"application",2);q([L()],x.prototype,"active",2);q([L()],x.prototype,"loaded",2);q([L()],x.prototype,"icon",2);var te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,v=(r,t,e,s)=>{for(var i=s>1?void 0:s?ee(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&te(t,e,i),i};const St=r=>{class t extends r{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(s){this.properties=s}writeLayout(s){this.layout=s}writeContext(s){this.context=s}addChild(s){s.parent=this,this.nodes.push(s)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[P`
148
148
  :host {
149
149
  font-family: var(--font-family);
150
150
  grid-column: span var(--width);
@@ -164,15 +164,15 @@
164
164
  * @license
165
165
  * Copyright 2020 Google LLC
166
166
  * SPDX-License-Identifier: BSD-3-Clause
167
- */const se=i=>i.strings===void 0;/**
167
+ */const se=r=>r.strings===void 0;/**
168
168
  * @license
169
169
  * Copyright 2017 Google LLC
170
170
  * SPDX-License-Identifier: BSD-3-Clause
171
- */const N=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(s=r._$AO)==null||s.call(r,t,!1),N(r,t);return!0},W=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Ot=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),ne(t)}};function ie(i){this._$AN!==void 0?(W(this),this._$AM=i,Ot(this)):this._$AM=i}function re(i,t=!1,e=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)N(s[n],!1),W(s[n]);else s!=null&&(N(s,!1),W(s));else N(this,i)}const ne=i=>{i.type==wt.CHILD&&(i._$AP??(i._$AP=re),i._$AQ??(i._$AQ=ie))};class oe extends Et{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ot(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),e&&(N(this,t),W(this))}setValue(t){if(se(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
171
+ */const N=(r,t)=>{var s;const e=r._$AN;if(e===void 0)return!1;for(const i of e)(s=i._$AO)==null||s.call(i,t,!1),N(i,t);return!0},W=r=>{let t,e;do{if((t=r._$AM)===void 0)break;e=t._$AN,e.delete(r),r=t}while((e==null?void 0:e.size)===0)},Ot=r=>{for(let t;t=r._$AM;r=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(r))break;e.add(r),ne(t)}};function ie(r){this._$AN!==void 0?(W(this),this._$AM=r,Ot(this)):this._$AM=r}function re(r,t=!1,e=0){const s=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)N(s[n],!1),W(s[n]);else s!=null&&(N(s,!1),W(s));else N(this,r)}const ne=r=>{r.type==wt.CHILD&&(r._$AP??(r._$AP=re),r._$AQ??(r._$AQ=ie))};class oe extends Et{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ot(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(i=this.disconnected)==null||i.call(this)),e&&(N(this,t),W(this))}setValue(t){if(se(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
172
172
  * @license
173
173
  * Copyright 2020 Google LLC
174
174
  * SPDX-License-Identifier: BSD-3-Clause
175
- */const ae=()=>new ce;class ce{}const F=new WeakMap,he=xt(class extends oe{render(i){return l}update(i,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=t,this.ct=(s=i.options)==null?void 0:s.host,this.ot(this.lt=i.element)),l}ot(i){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=F.get(t);e===void 0&&(e=new WeakMap,F.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,i),i!==void 0&&this.G.call(this.ct,i)}else this.G.value=i}get rt(){var i,t;return typeof this.G=="function"?(i=F.get(this.ct??globalThis))==null?void 0:i.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var et=(i=>(i.Inline="inline",i.Trigger="trigger",i))(et||{}),le=Object.defineProperty,de=Object.getOwnPropertyDescriptor,pe=(i,t,e,s)=>{for(var r=s>1?void 0:s?de(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&le(t,e,r),r};class st extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ae()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(this.wrapperRef.value){const t=this.application.settings;t!=null&&t.branding&&Ct(t.branding,this.wrapperRef.value)}}firstUpdated(t){this.applyBranding()}render(){return this.application.renderStrategy===et.Trigger&&this.renderRoot.host.classList.add("floating"),C`<div class="widget-container" ${he(this.wrapperRef)}>
175
+ */const ae=()=>new ce;class ce{}const F=new WeakMap,he=xt(class extends oe{render(r){return l}update(r,[t]){var s;const e=t!==this.G;return e&&this.G!==void 0&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=t,this.ct=(s=r.options)==null?void 0:s.host,this.ot(this.lt=r.element)),l}ot(r){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=F.get(t);e===void 0&&(e=new WeakMap,F.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,r),r!==void 0&&this.G.call(this.ct,r)}else this.G.value=r}get rt(){var r,t;return typeof this.G=="function"?(r=F.get(this.ct??globalThis))==null?void 0:r.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var et=(r=>(r.Inline="inline",r.Trigger="trigger",r))(et||{}),le=Object.defineProperty,de=Object.getOwnPropertyDescriptor,pe=(r,t,e,s)=>{for(var i=s>1?void 0:s?de(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&le(t,e,i),i};class st extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ae()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ct(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,i])=>{e.style.setProperty(`--${s}`,i)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===et.Trigger&&this.renderRoot.host.classList.add("floating"),C`<div class="widget-container" ${he(this.wrapperRef)}>
176
176
  ${bt(this.nodes,t=>t)}
177
177
  </div>`}}st.styles=P`
178
178
  :host {
@@ -264,11 +264,11 @@
264
264
  opacity: 0;
265
265
  animation: slideDown 0.3s linear;
266
266
  }
267
- `;pe([g({attribute:!1})],st.prototype,"application",2);var ue=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,it=(i,t,e,s)=>{for(var r=s>1?void 0:s?ge(t,e):t,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=(s?o(t,e,r):o(r))||r);return s&&r&&ue(t,e,r),r};class j extends f{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return l;if(this.widget.renderStrategy===et.Trigger){const t=new x;return t.application=this.widget,t}return this.widget.render()}}j.styles=[P`
267
+ `;pe([g({attribute:!1})],st.prototype,"application",2);var ue=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,it=(r,t,e,s)=>{for(var i=s>1?void 0:s?ge(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(t,e,i):o(i))||i);return s&&i&&ue(t,e,i),i};class j extends f{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return l;if(this.widget.renderStrategy===et.Trigger){const t=new x;return t.application=this.widget,t}return this.widget.render()}}j.styles=[P`
268
268
  :host {
269
269
  display: block;
270
270
  }
271
- `];it([g({attribute:!0})],j.prototype,"name",2);it([L()],j.prototype,"widget",2);it([L()],j.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",x);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Pt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",st);customElements.get("ace-widget")||customElements.define("ace-widget",j);const fe=i=>{const t={};return Object.keys(i).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=i[e])}),t},$e=(i,t)=>{const e=fe(t);Object.entries(e).forEach(([s,r])=>{i.style.setProperty(s.replace("css-",""),r)})};class rt extends St(f){constructor(){super(...arguments),this.nodes=[]}render(){var t;return $e(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),C`${bt(this.nodes,e=>e)}`}}rt.styles=[P`
271
+ `];it([g({attribute:!0})],j.prototype,"name",2);it([L()],j.prototype,"widget",2);it([L()],j.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",x);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Pt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",st);customElements.get("ace-widget")||customElements.define("ace-widget",j);const fe=r=>{const t={};return Object.keys(r).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=r[e])}),t},$e=(r,t)=>{const e=fe(t);Object.entries(e).forEach(([s,i])=>{r.style.setProperty(s.replace("css-",""),i)})};class rt extends St(f){constructor(){super(...arguments),this.nodes=[]}render(){var t;return $e(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),C`${bt(this.nodes,e=>e)}`}}rt.styles=[P`
272
272
  :host {
273
273
  height: 100%;
274
274
  display: grid;
@@ -23,63 +23,63 @@ let ft = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Ot = (i) => new ft(typeof i == "string" ? i : i + "", void 0, X), P = (i, ...t) => {
27
- const e = i.length === 1 ? i[0] : t.reduce((s, r, n) => s + ((o) => {
26
+ const Ot = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r, ...t) => {
27
+ const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
28
28
  if (o._$cssResult$ === !0)
29
29
  return o.cssText;
30
30
  if (typeof o == "number")
31
31
  return o;
32
32
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
33
- })(r) + i[n + 1], i[0]);
34
- return new ft(e, i, X);
35
- }, Tt = (i, t) => {
33
+ })(i) + r[n + 1], r[0]);
34
+ return new ft(e, r, X);
35
+ }, Tt = (r, t) => {
36
36
  if (Q)
37
- i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
37
+ r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else
39
39
  for (const e of t) {
40
- const s = document.createElement("style"), r = B.litNonce;
41
- r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
40
+ const s = document.createElement("style"), i = B.litNonce;
41
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
42
42
  }
43
- }, nt = Q ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
43
+ }, nt = Q ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
44
44
  let e = "";
45
45
  for (const s of t.cssRules)
46
46
  e += s.cssText;
47
47
  return Ot(e);
48
- })(i) : i;
48
+ })(r) : r;
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
53
  */
54
- const { is: Ut, defineProperty: Nt, getOwnPropertyDescriptor: kt, getOwnPropertyNames: Mt, getOwnPropertySymbols: Ht, getPrototypeOf: Rt } = Object, _ = globalThis, ot = _.trustedTypes, Lt = ot ? ot.emptyScript : "", Y = _.reactiveElementPolyfillSupport, T = (i, t) => i, I = { toAttribute(i, t) {
54
+ const { is: Ut, defineProperty: Nt, getOwnPropertyDescriptor: kt, getOwnPropertyNames: Mt, getOwnPropertySymbols: Rt, getPrototypeOf: Ht } = Object, _ = globalThis, ot = _.trustedTypes, Lt = ot ? ot.emptyScript : "", Y = _.reactiveElementPolyfillSupport, T = (r, t) => r, I = { toAttribute(r, t) {
55
55
  switch (t) {
56
56
  case Boolean:
57
- i = i ? Lt : null;
57
+ r = r ? Lt : null;
58
58
  break;
59
59
  case Object:
60
60
  case Array:
61
- i = i == null ? i : JSON.stringify(i);
61
+ r = r == null ? r : JSON.stringify(r);
62
62
  }
63
- return i;
64
- }, fromAttribute(i, t) {
65
- let e = i;
63
+ return r;
64
+ }, fromAttribute(r, t) {
65
+ let e = r;
66
66
  switch (t) {
67
67
  case Boolean:
68
- e = i !== null;
68
+ e = r !== null;
69
69
  break;
70
70
  case Number:
71
- e = i === null ? null : Number(i);
71
+ e = r === null ? null : Number(r);
72
72
  break;
73
73
  case Object:
74
74
  case Array:
75
75
  try {
76
- e = JSON.parse(i);
76
+ e = JSON.parse(r);
77
77
  } catch {
78
78
  e = null;
79
79
  }
80
80
  }
81
81
  return e;
82
- } }, tt = (i, t) => !Ut(i, t), at = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: tt };
82
+ } }, tt = (r, t) => !Ut(r, t), at = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: tt };
83
83
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
84
  class E extends HTMLElement {
85
85
  static addInitializer(t) {
@@ -90,20 +90,20 @@ class E extends HTMLElement {
90
90
  }
91
91
  static createProperty(t, e = at) {
92
92
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
93
- const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
94
- r !== void 0 && Nt(this.prototype, t, r);
93
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
94
+ i !== void 0 && Nt(this.prototype, t, i);
95
95
  }
96
96
  }
97
97
  static getPropertyDescriptor(t, e, s) {
98
- const { get: r, set: n } = kt(this.prototype, t) ?? { get() {
98
+ const { get: i, set: n } = kt(this.prototype, t) ?? { get() {
99
99
  return this[e];
100
100
  }, set(o) {
101
101
  this[e] = o;
102
102
  } };
103
103
  return { get() {
104
- return r == null ? void 0 : r.call(this);
104
+ return i == null ? void 0 : i.call(this);
105
105
  }, set(o) {
106
- const c = r == null ? void 0 : r.call(this);
106
+ const c = i == null ? void 0 : i.call(this);
107
107
  n.call(this, o), this.requestUpdate(t, c, s);
108
108
  }, configurable: !0, enumerable: !0 };
109
109
  }
@@ -113,28 +113,28 @@ class E extends HTMLElement {
113
113
  static _$Ei() {
114
114
  if (this.hasOwnProperty(T("elementProperties")))
115
115
  return;
116
- const t = Rt(this);
116
+ const t = Ht(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
120
  if (this.hasOwnProperty(T("finalized")))
121
121
  return;
122
122
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
123
- const e = this.properties, s = [...Mt(e), ...Ht(e)];
124
- for (const r of s)
125
- this.createProperty(r, e[r]);
123
+ const e = this.properties, s = [...Mt(e), ...Rt(e)];
124
+ for (const i of s)
125
+ this.createProperty(i, e[i]);
126
126
  }
127
127
  const t = this[Symbol.metadata];
128
128
  if (t !== null) {
129
129
  const e = litPropertyMetadata.get(t);
130
130
  if (e !== void 0)
131
- for (const [s, r] of e)
132
- this.elementProperties.set(s, r);
131
+ for (const [s, i] of e)
132
+ this.elementProperties.set(s, i);
133
133
  }
134
134
  this._$Eh = /* @__PURE__ */ new Map();
135
135
  for (const [e, s] of this.elementProperties) {
136
- const r = this._$Eu(e, s);
137
- r !== void 0 && this._$Eh.set(r, e);
136
+ const i = this._$Eu(e, s);
137
+ i !== void 0 && this._$Eh.set(i, e);
138
138
  }
139
139
  this.elementStyles = this.finalizeStyles(this.styles);
140
140
  }
@@ -142,8 +142,8 @@ class E extends HTMLElement {
142
142
  const e = [];
143
143
  if (Array.isArray(t)) {
144
144
  const s = new Set(t.flat(1 / 0).reverse());
145
- for (const r of s)
146
- e.unshift(nt(r));
145
+ for (const i of s)
146
+ e.unshift(nt(i));
147
147
  } else
148
148
  t !== void 0 && e.push(nt(t));
149
149
  return e;
@@ -198,23 +198,23 @@ class E extends HTMLElement {
198
198
  }
199
199
  _$EO(t, e) {
200
200
  var n;
201
- const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
202
- if (r !== void 0 && s.reflect === !0) {
201
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
202
+ if (i !== void 0 && s.reflect === !0) {
203
203
  const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : I).toAttribute(e, s.type);
204
- this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
204
+ this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
205
205
  }
206
206
  }
207
207
  _$AK(t, e) {
208
208
  var n;
209
- const s = this.constructor, r = s._$Eh.get(t);
210
- if (r !== void 0 && this._$Em !== r) {
211
- const o = s.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : I;
212
- this._$Em = r, this[r] = c.fromAttribute(e, o.type), this._$Em = null;
209
+ const s = this.constructor, i = s._$Eh.get(t);
210
+ if (i !== void 0 && this._$Em !== i) {
211
+ const o = s.getPropertyOptions(i), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : I;
212
+ this._$Em = i, this[i] = c.fromAttribute(e, o.type), this._$Em = null;
213
213
  }
214
214
  }
215
- requestUpdate(t, e, s, r = !1, n) {
215
+ requestUpdate(t, e, s, i = !1, n) {
216
216
  if (t !== void 0) {
217
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? tt)(r ? n : this[t], e))
217
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? tt)(i ? n : this[t], e))
218
218
  return;
219
219
  this.C(t, e, s);
220
220
  }
@@ -246,20 +246,20 @@ class E extends HTMLElement {
246
246
  this[n] = o;
247
247
  this._$Ep = void 0;
248
248
  }
249
- const r = this.constructor.elementProperties;
250
- if (r.size > 0)
251
- for (const [n, o] of r)
249
+ const i = this.constructor.elementProperties;
250
+ if (i.size > 0)
251
+ for (const [n, o] of i)
252
252
  o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
253
253
  }
254
254
  let t = !1;
255
255
  const e = this._$AL;
256
256
  try {
257
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((r) => {
257
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((i) => {
258
258
  var n;
259
- return (n = r.hostUpdate) == null ? void 0 : n.call(r);
259
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
260
260
  }), this.update(e)) : this._$ET();
261
- } catch (r) {
262
- throw t = !1, this._$ET(), r;
261
+ } catch (i) {
262
+ throw t = !1, this._$ET(), i;
263
263
  }
264
264
  t && this._$AE(e);
265
265
  }
@@ -268,8 +268,8 @@ class E extends HTMLElement {
268
268
  _$AE(t) {
269
269
  var e;
270
270
  (e = this._$ES) == null || e.forEach((s) => {
271
- var r;
272
- return (r = s.hostUpdated) == null ? void 0 : r.call(s);
271
+ var i;
272
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
273
273
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
274
274
  }
275
275
  _$ET() {
@@ -298,61 +298,61 @@ E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProper
298
298
  * Copyright 2017 Google LLC
299
299
  * SPDX-License-Identifier: BSD-3-Clause
300
300
  */
301
- const U = globalThis, G = U.trustedTypes, ct = G ? G.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, Dt = `<${mt}>`, b = document, k = () => b.createComment(""), M = (i) => i === null || typeof i != "object" && typeof i != "function", _t = Array.isArray, jt = (i) => _t(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", J = `[
301
+ const U = globalThis, G = U.trustedTypes, ct = G ? G.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, jt = `<${mt}>`, b = document, k = () => b.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", _t = Array.isArray, Dt = (r) => _t(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
302
302
  \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, y = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
303
- \f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, yt = /^(?:script|style|textarea|title)$/i, zt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), C = zt(1), w = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
304
- function vt(i, t) {
305
- if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
303
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, yt = /^(?:script|style|textarea|title)$/i, zt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), C = zt(1), w = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
304
+ function vt(r, t) {
305
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
306
306
  throw Error("invalid template strings array");
307
307
  return ct !== void 0 ? ct.createHTML(t) : t;
308
308
  }
309
- const Bt = (i, t) => {
310
- const e = i.length - 1, s = [];
311
- let r, n = t === 2 ? "<svg>" : "", o = O;
309
+ const Bt = (r, t) => {
310
+ const e = r.length - 1, s = [];
311
+ let i, n = t === 2 ? "<svg>" : "", o = O;
312
312
  for (let c = 0; c < e; c++) {
313
- const a = i[c];
313
+ const a = r[c];
314
314
  let d, p, h = -1, u = 0;
315
315
  for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
316
- u = o.lastIndex, o === O ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (yt.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = y) : p[3] !== void 0 && (o = y) : o === y ? p[0] === ">" ? (o = r ?? O, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? y : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = y : o === ht || o === lt ? o = O : (o = y, r = void 0);
317
- const $ = o === y && i[c + 1].startsWith("/>") ? " " : "";
318
- n += o === O ? a + Dt : h >= 0 ? (s.push(d), a.slice(0, h) + $t + a.slice(h) + m + $) : a + m + (h === -2 ? c : $);
316
+ u = o.lastIndex, o === O ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (yt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = y) : p[3] !== void 0 && (o = y) : o === y ? p[0] === ">" ? (o = i ?? O, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? y : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = y : o === ht || o === lt ? o = O : (o = y, i = void 0);
317
+ const $ = o === y && r[c + 1].startsWith("/>") ? " " : "";
318
+ n += o === O ? a + jt : h >= 0 ? (s.push(d), a.slice(0, h) + $t + a.slice(h) + m + $) : a + m + (h === -2 ? c : $);
319
319
  }
320
- return [vt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
320
+ return [vt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
321
321
  };
322
- class H {
322
+ class R {
323
323
  constructor({ strings: t, _$litType$: e }, s) {
324
- let r;
324
+ let i;
325
325
  this.parts = [];
326
326
  let n = 0, o = 0;
327
327
  const c = t.length - 1, a = this.parts, [d, p] = Bt(t, e);
328
- if (this.el = H.createElement(d, s), A.currentNode = this.el.content, e === 2) {
328
+ if (this.el = R.createElement(d, s), A.currentNode = this.el.content, e === 2) {
329
329
  const h = this.el.content.firstChild;
330
330
  h.replaceWith(...h.childNodes);
331
331
  }
332
- for (; (r = A.nextNode()) !== null && a.length < c; ) {
333
- if (r.nodeType === 1) {
334
- if (r.hasAttributes())
335
- for (const h of r.getAttributeNames())
332
+ for (; (i = A.nextNode()) !== null && a.length < c; ) {
333
+ if (i.nodeType === 1) {
334
+ if (i.hasAttributes())
335
+ for (const h of i.getAttributeNames())
336
336
  if (h.endsWith($t)) {
337
- const u = p[o++], $ = r.getAttribute(h).split(m), j = /([.?@])?(.*)/.exec(u);
338
- a.push({ type: 1, index: n, name: j[2], strings: $, ctor: j[1] === "." ? Gt : j[1] === "?" ? Wt : j[1] === "@" ? Vt : V }), r.removeAttribute(h);
337
+ const u = p[o++], $ = i.getAttribute(h).split(m), D = /([.?@])?(.*)/.exec(u);
338
+ a.push({ type: 1, index: n, name: D[2], strings: $, ctor: D[1] === "." ? Gt : D[1] === "?" ? Wt : D[1] === "@" ? Vt : V }), i.removeAttribute(h);
339
339
  } else
340
- h.startsWith(m) && (a.push({ type: 6, index: n }), r.removeAttribute(h));
341
- if (yt.test(r.tagName)) {
342
- const h = r.textContent.split(m), u = h.length - 1;
340
+ h.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(h));
341
+ if (yt.test(i.tagName)) {
342
+ const h = i.textContent.split(m), u = h.length - 1;
343
343
  if (u > 0) {
344
- r.textContent = G ? G.emptyScript : "";
344
+ i.textContent = G ? G.emptyScript : "";
345
345
  for (let $ = 0; $ < u; $++)
346
- r.append(h[$], k()), A.nextNode(), a.push({ type: 2, index: ++n });
347
- r.append(h[u], k());
346
+ i.append(h[$], k()), A.nextNode(), a.push({ type: 2, index: ++n });
347
+ i.append(h[u], k());
348
348
  }
349
349
  }
350
- } else if (r.nodeType === 8)
351
- if (r.data === mt)
350
+ } else if (i.nodeType === 8)
351
+ if (i.data === mt)
352
352
  a.push({ type: 2, index: n });
353
353
  else {
354
354
  let h = -1;
355
- for (; (h = r.data.indexOf(m, h + 1)) !== -1; )
355
+ for (; (h = i.data.indexOf(m, h + 1)) !== -1; )
356
356
  a.push({ type: 7, index: n }), h += m.length - 1;
357
357
  }
358
358
  n++;
@@ -363,13 +363,13 @@ class H {
363
363
  return s.innerHTML = t, s;
364
364
  }
365
365
  }
366
- function S(i, t, e = i, s) {
366
+ function S(r, t, e = r, s) {
367
367
  var o, c;
368
368
  if (t === w)
369
369
  return t;
370
- let r = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
370
+ let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
371
371
  const n = M(t) ? void 0 : t._$litDirective$;
372
- return (r == null ? void 0 : r.constructor) !== n && ((c = r == null ? void 0 : r._$AO) == null || c.call(r, !1), n === void 0 ? r = void 0 : (r = new n(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = S(i, r._$AS(i, t.values), r, s)), t;
372
+ return (i == null ? void 0 : i.constructor) !== n && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
373
373
  }
374
374
  class It {
375
375
  constructor(t, e) {
@@ -382,17 +382,17 @@ class It {
382
382
  return this._$AM._$AU;
383
383
  }
384
384
  u(t) {
385
- const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
386
- A.currentNode = r;
385
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
386
+ A.currentNode = i;
387
387
  let n = A.nextNode(), o = 0, c = 0, a = s[0];
388
388
  for (; a !== void 0; ) {
389
389
  if (o === a.index) {
390
390
  let d;
391
- a.type === 2 ? d = new R(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new qt(n, this, t)), this._$AV.push(d), a = s[++c];
391
+ a.type === 2 ? d = new H(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new qt(n, this, t)), this._$AV.push(d), a = s[++c];
392
392
  }
393
393
  o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
394
394
  }
395
- return A.currentNode = b, r;
395
+ return A.currentNode = b, i;
396
396
  }
397
397
  p(t) {
398
398
  let e = 0;
@@ -400,13 +400,13 @@ class It {
400
400
  s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
401
401
  }
402
402
  }
403
- class R {
403
+ class H {
404
404
  get _$AU() {
405
405
  var t;
406
406
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
407
407
  }
408
- constructor(t, e, s, r) {
409
- this.type = 2, this._$AH = l, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
408
+ constructor(t, e, s, i) {
409
+ this.type = 2, this._$AH = l, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
410
410
  }
411
411
  get parentNode() {
412
412
  let t = this._$AA.parentNode;
@@ -420,7 +420,7 @@ class R {
420
420
  return this._$AB;
421
421
  }
422
422
  _$AI(t, e = this) {
423
- t = S(this, t, e), M(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : jt(t) ? this.T(t) : this._(t);
423
+ t = S(this, t, e), M(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Dt(t) ? this.T(t) : this._(t);
424
424
  }
425
425
  k(t) {
426
426
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -433,31 +433,31 @@ class R {
433
433
  }
434
434
  g(t) {
435
435
  var n;
436
- const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(vt(s.h, s.h[0]), this.options)), s);
437
- if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
436
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = R.createElement(vt(s.h, s.h[0]), this.options)), s);
437
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
438
438
  this._$AH.p(e);
439
439
  else {
440
- const o = new It(r, this), c = o.u(this.options);
440
+ const o = new It(i, this), c = o.u(this.options);
441
441
  o.p(e), this.$(c), this._$AH = o;
442
442
  }
443
443
  }
444
444
  _$AC(t) {
445
445
  let e = ut.get(t.strings);
446
- return e === void 0 && ut.set(t.strings, e = new H(t)), e;
446
+ return e === void 0 && ut.set(t.strings, e = new R(t)), e;
447
447
  }
448
448
  T(t) {
449
449
  _t(this._$AH) || (this._$AH = [], this._$AR());
450
450
  const e = this._$AH;
451
- let s, r = 0;
451
+ let s, i = 0;
452
452
  for (const n of t)
453
- r === e.length ? e.push(s = new R(this.k(k()), this.k(k()), this, this.options)) : s = e[r], s._$AI(n), r++;
454
- r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
453
+ i === e.length ? e.push(s = new H(this.k(k()), this.k(k()), this, this.options)) : s = e[i], s._$AI(n), i++;
454
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
455
455
  }
456
456
  _$AR(t = this._$AA.nextSibling, e) {
457
457
  var s;
458
458
  for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
459
- const r = t.nextSibling;
460
- t.remove(), t = r;
459
+ const i = t.nextSibling;
460
+ t.remove(), t = i;
461
461
  }
462
462
  }
463
463
  setConnected(t) {
@@ -472,10 +472,10 @@ class V {
472
472
  get _$AU() {
473
473
  return this._$AM._$AU;
474
474
  }
475
- constructor(t, e, s, r, n) {
476
- this.type = 1, this._$AH = l, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = l;
475
+ constructor(t, e, s, i, n) {
476
+ this.type = 1, this._$AH = l, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = l;
477
477
  }
478
- _$AI(t, e = this, s, r) {
478
+ _$AI(t, e = this, s, i) {
479
479
  const n = this.strings;
480
480
  let o = !1;
481
481
  if (n === void 0)
@@ -486,7 +486,7 @@ class V {
486
486
  for (t = n[0], a = 0; a < n.length - 1; a++)
487
487
  d = S(this, c[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !M(d) || d !== this._$AH[a]), d === l ? t = l : t !== l && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
488
488
  }
489
- o && !r && this.O(t);
489
+ o && !i && this.O(t);
490
490
  }
491
491
  O(t) {
492
492
  t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -509,14 +509,14 @@ class Wt extends V {
509
509
  }
510
510
  }
511
511
  class Vt extends V {
512
- constructor(t, e, s, r, n) {
513
- super(t, e, s, r, n), this.type = 5;
512
+ constructor(t, e, s, i, n) {
513
+ super(t, e, s, i, n), this.type = 5;
514
514
  }
515
515
  _$AI(t, e = this) {
516
516
  if ((t = S(this, t, e, 0) ?? l) === w)
517
517
  return;
518
- const s = this._$AH, r = t === l && s !== l || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== l && (s === l || r);
519
- r && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
518
+ const s = this._$AH, i = t === l && s !== l || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== l && (s === l || i);
519
+ i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
520
520
  }
521
521
  handleEvent(t) {
522
522
  var e;
@@ -535,15 +535,15 @@ class qt {
535
535
  }
536
536
  }
537
537
  const K = U.litHtmlPolyfillSupport;
538
- K == null || K(H, R), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
539
- const Yt = (i, t, e) => {
538
+ K == null || K(R, H), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
539
+ const Yt = (r, t, e) => {
540
540
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
541
- let r = s._$litPart$;
542
- if (r === void 0) {
541
+ let i = s._$litPart$;
542
+ if (i === void 0) {
543
543
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
544
- s._$litPart$ = r = new R(t.insertBefore(k(), n), n, void 0, e ?? {});
544
+ s._$litPart$ = i = new H(t.insertBefore(k(), n), n, void 0, e ?? {});
545
545
  }
546
- return r._$AI(i), r;
546
+ return i._$AI(r), i;
547
547
  };
548
548
  /**
549
549
  * @license
@@ -585,10 +585,10 @@ Z == null || Z({ LitElement: f });
585
585
  * Copyright 2021 Google LLC
586
586
  * SPDX-License-Identifier: BSD-3-Clause
587
587
  */
588
- function* At(i, t) {
589
- if (i !== void 0) {
588
+ function* At(r, t) {
589
+ if (r !== void 0) {
590
590
  let e = 0;
591
- for (const s of i)
591
+ for (const s of r)
592
592
  yield t(s, e++);
593
593
  }
594
594
  }
@@ -597,47 +597,47 @@ function* At(i, t) {
597
597
  * Copyright 2017 Google LLC
598
598
  * SPDX-License-Identifier: BSD-3-Clause
599
599
  */
600
- const Jt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: tt }, Kt = (i = Jt, t, e) => {
601
- const { kind: s, metadata: r } = e;
602
- let n = globalThis.litPropertyMetadata.get(r);
603
- if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, i), s === "accessor") {
600
+ const Jt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: tt }, Kt = (r = Jt, t, e) => {
601
+ const { kind: s, metadata: i } = e;
602
+ let n = globalThis.litPropertyMetadata.get(i);
603
+ if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
604
604
  const { name: o } = e;
605
605
  return { set(c) {
606
606
  const a = t.get.call(this);
607
- t.set.call(this, c), this.requestUpdate(o, a, i);
607
+ t.set.call(this, c), this.requestUpdate(o, a, r);
608
608
  }, init(c) {
609
- return c !== void 0 && this.C(o, void 0, i), c;
609
+ return c !== void 0 && this.C(o, void 0, r), c;
610
610
  } };
611
611
  }
612
612
  if (s === "setter") {
613
613
  const { name: o } = e;
614
614
  return function(c) {
615
615
  const a = this[o];
616
- t.call(this, c), this.requestUpdate(o, a, i);
616
+ t.call(this, c), this.requestUpdate(o, a, r);
617
617
  };
618
618
  }
619
619
  throw Error("Unsupported decorator location: " + s);
620
620
  };
621
- function g(i) {
622
- return (t, e) => typeof e == "object" ? Kt(i, t, e) : ((s, r, n) => {
623
- const o = r.hasOwnProperty(n);
624
- return r.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
625
- })(i, t, e);
621
+ function g(r) {
622
+ return (t, e) => typeof e == "object" ? Kt(r, t, e) : ((s, i, n) => {
623
+ const o = i.hasOwnProperty(n);
624
+ return i.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
625
+ })(r, t, e);
626
626
  }
627
627
  /**
628
628
  * @license
629
629
  * Copyright 2017 Google LLC
630
630
  * SPDX-License-Identifier: BSD-3-Clause
631
631
  */
632
- function L(i) {
633
- return g({ ...i, state: !0, attribute: !1 });
632
+ function L(r) {
633
+ return g({ ...r, state: !0, attribute: !1 });
634
634
  }
635
635
  /**
636
636
  * @license
637
637
  * Copyright 2017 Google LLC
638
638
  * SPDX-License-Identifier: BSD-3-Clause
639
639
  */
640
- const bt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (i) => (...t) => ({ _$litDirective$: i, values: t });
640
+ const bt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (r) => (...t) => ({ _$litDirective$: r, values: t });
641
641
  class xt {
642
642
  constructor(t) {
643
643
  }
@@ -660,53 +660,53 @@ class xt {
660
660
  * SPDX-License-Identifier: BSD-3-Clause
661
661
  */
662
662
  const Zt = wt(class extends xt {
663
- constructor(i) {
663
+ constructor(r) {
664
664
  var t;
665
- if (super(i), i.type !== bt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
665
+ if (super(r), r.type !== bt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
666
666
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
667
667
  }
668
- render(i) {
669
- return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
668
+ render(r) {
669
+ return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
670
670
  }
671
- update(i, [t]) {
672
- var s, r;
671
+ update(r, [t]) {
672
+ var s, i;
673
673
  if (this.it === void 0) {
674
- this.it = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.st = new Set(i.strings.join(" ").split(/\s/).filter((n) => n !== "")));
674
+ this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
675
675
  for (const n in t)
676
676
  t[n] && !((s = this.st) != null && s.has(n)) && this.it.add(n);
677
677
  return this.render(t);
678
678
  }
679
- const e = i.element.classList;
679
+ const e = r.element.classList;
680
680
  for (const n of this.it)
681
681
  n in t || (e.remove(n), this.it.delete(n));
682
682
  for (const n in t) {
683
683
  const o = !!t[n];
684
- o === this.it.has(n) || (r = this.st) != null && r.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
684
+ o === this.it.has(n) || (i = this.st) != null && i.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
685
685
  }
686
686
  return w;
687
687
  }
688
- }), z = (i, t, e) => {
689
- i && e.style.setProperty(t, i);
690
- }, Et = (i, t) => {
691
- var e, s, r, n;
692
- z((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), z(
693
- (s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
688
+ }), z = (r, t, e) => {
689
+ r && e.style.setProperty(t, r);
690
+ }, Et = (r, t) => {
691
+ var e, s, i, n;
692
+ z((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), z(
693
+ (s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
694
694
  "--text-on-primary-background",
695
695
  t
696
696
  ), z(
697
- (r = i.colors) == null ? void 0 : r.secondaryBackground,
697
+ (i = r.colors) == null ? void 0 : i.secondaryBackground,
698
698
  "--secondary-background",
699
699
  t
700
700
  ), z(
701
- (n = i.colors) == null ? void 0 : n.textOnSecondaryBackground,
701
+ (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
702
702
  "--text-on-secondary-background",
703
703
  t
704
704
  );
705
705
  };
706
- var Ft = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, q = (i, t, e, s) => {
707
- for (var r = s > 1 ? void 0 : s ? Qt(t, e) : t, n = i.length - 1, o; n >= 0; n--)
708
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
709
- return s && r && Ft(t, e, r), r;
706
+ var Ft = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, q = (r, t, e, s) => {
707
+ for (var i = s > 1 ? void 0 : s ? Qt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
708
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
709
+ return s && i && Ft(t, e, i), i;
710
710
  };
711
711
  class x extends f {
712
712
  constructor() {
@@ -737,12 +737,12 @@ class x extends f {
737
737
  const s = (d = this.application) == null ? void 0 : d.triggerIcon;
738
738
  if (!s)
739
739
  return l;
740
- const r = async (p) => await import("./index-5087564d.mjs").then(
740
+ const i = async (p) => await import("./index-5087564d.mjs").then(
741
741
  (u) => u[p]
742
742
  ), { type: n, content: o } = s;
743
743
  switch (n) {
744
744
  case "Telia": {
745
- const p = await r(o);
745
+ const p = await i(o);
746
746
  return p ? C`<telia-icon
747
747
  class="trigger-icon"
748
748
  svg=${p.svg}
@@ -880,13 +880,13 @@ q([
880
880
  q([
881
881
  L()
882
882
  ], x.prototype, "icon", 2);
883
- var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, v = (i, t, e, s) => {
884
- for (var r = s > 1 ? void 0 : s ? te(t, e) : t, n = i.length - 1, o; n >= 0; n--)
885
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
886
- return s && r && Xt(t, e, r), r;
883
+ var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, v = (r, t, e, s) => {
884
+ for (var i = s > 1 ? void 0 : s ? te(t, e) : t, n = r.length - 1, o; n >= 0; n--)
885
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
886
+ return s && i && Xt(t, e, i), i;
887
887
  };
888
- const Ct = (i) => {
889
- class t extends i {
888
+ const Ct = (r) => {
889
+ class t extends r {
890
890
  constructor() {
891
891
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
892
892
  }
@@ -957,43 +957,43 @@ St.styles = [
957
957
  * Copyright 2020 Google LLC
958
958
  * SPDX-License-Identifier: BSD-3-Clause
959
959
  */
960
- const ee = (i) => i.strings === void 0;
960
+ const ee = (r) => r.strings === void 0;
961
961
  /**
962
962
  * @license
963
963
  * Copyright 2017 Google LLC
964
964
  * SPDX-License-Identifier: BSD-3-Clause
965
965
  */
966
- const N = (i, t) => {
966
+ const N = (r, t) => {
967
967
  var s;
968
- const e = i._$AN;
968
+ const e = r._$AN;
969
969
  if (e === void 0)
970
970
  return !1;
971
- for (const r of e)
972
- (s = r._$AO) == null || s.call(r, t, !1), N(r, t);
971
+ for (const i of e)
972
+ (s = i._$AO) == null || s.call(i, t, !1), N(i, t);
973
973
  return !0;
974
- }, W = (i) => {
974
+ }, W = (r) => {
975
975
  let t, e;
976
976
  do {
977
- if ((t = i._$AM) === void 0)
977
+ if ((t = r._$AM) === void 0)
978
978
  break;
979
- e = t._$AN, e.delete(i), i = t;
979
+ e = t._$AN, e.delete(r), r = t;
980
980
  } while ((e == null ? void 0 : e.size) === 0);
981
- }, Pt = (i) => {
982
- for (let t; t = i._$AM; i = t) {
981
+ }, Pt = (r) => {
982
+ for (let t; t = r._$AM; r = t) {
983
983
  let e = t._$AN;
984
984
  if (e === void 0)
985
985
  t._$AN = e = /* @__PURE__ */ new Set();
986
- else if (e.has(i))
986
+ else if (e.has(r))
987
987
  break;
988
- e.add(i), re(t);
988
+ e.add(r), re(t);
989
989
  }
990
990
  };
991
- function se(i) {
992
- this._$AN !== void 0 ? (W(this), this._$AM = i, Pt(this)) : this._$AM = i;
991
+ function se(r) {
992
+ this._$AN !== void 0 ? (W(this), this._$AM = r, Pt(this)) : this._$AM = r;
993
993
  }
994
- function ie(i, t = !1, e = 0) {
995
- const s = this._$AH, r = this._$AN;
996
- if (r !== void 0 && r.size !== 0)
994
+ function ie(r, t = !1, e = 0) {
995
+ const s = this._$AH, i = this._$AN;
996
+ if (i !== void 0 && i.size !== 0)
997
997
  if (t)
998
998
  if (Array.isArray(s))
999
999
  for (let n = e; n < s.length; n++)
@@ -1001,10 +1001,10 @@ function ie(i, t = !1, e = 0) {
1001
1001
  else
1002
1002
  s != null && (N(s, !1), W(s));
1003
1003
  else
1004
- N(this, i);
1004
+ N(this, r);
1005
1005
  }
1006
- const re = (i) => {
1007
- i.type == bt.CHILD && (i._$AP ?? (i._$AP = ie), i._$AQ ?? (i._$AQ = se));
1006
+ const re = (r) => {
1007
+ r.type == bt.CHILD && (r._$AP ?? (r._$AP = ie), r._$AQ ?? (r._$AQ = se));
1008
1008
  };
1009
1009
  class ne extends xt {
1010
1010
  constructor() {
@@ -1014,8 +1014,8 @@ class ne extends xt {
1014
1014
  super._$AT(t, e, s), Pt(this), this.isConnected = t._$AU;
1015
1015
  }
1016
1016
  _$AO(t, e = !0) {
1017
- var s, r;
1018
- t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), W(this));
1017
+ var s, i;
1018
+ t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (N(this, t), W(this));
1019
1019
  }
1020
1020
  setValue(t) {
1021
1021
  if (ee(this._$Ct))
@@ -1039,25 +1039,25 @@ const oe = () => new ae();
1039
1039
  class ae {
1040
1040
  }
1041
1041
  const F = /* @__PURE__ */ new WeakMap(), ce = wt(class extends ne {
1042
- render(i) {
1042
+ render(r) {
1043
1043
  return l;
1044
1044
  }
1045
- update(i, [t]) {
1045
+ update(r, [t]) {
1046
1046
  var s;
1047
1047
  const e = t !== this.G;
1048
- return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = i.options) == null ? void 0 : s.host, this.ot(this.lt = i.element)), l;
1048
+ return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)), l;
1049
1049
  }
1050
- ot(i) {
1050
+ ot(r) {
1051
1051
  if (typeof this.G == "function") {
1052
1052
  const t = this.ct ?? globalThis;
1053
1053
  let e = F.get(t);
1054
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), F.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, i), i !== void 0 && this.G.call(this.ct, i);
1054
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), F.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
1055
1055
  } else
1056
- this.G.value = i;
1056
+ this.G.value = r;
1057
1057
  }
1058
1058
  get rt() {
1059
- var i, t;
1060
- return typeof this.G == "function" ? (i = F.get(this.ct ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1059
+ var r, t;
1060
+ return typeof this.G == "function" ? (r = F.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1061
1061
  }
1062
1062
  disconnected() {
1063
1063
  this.rt === this.lt && this.ot(void 0);
@@ -1066,10 +1066,10 @@ const F = /* @__PURE__ */ new WeakMap(), ce = wt(class extends ne {
1066
1066
  this.ot(this.lt);
1067
1067
  }
1068
1068
  });
1069
- var et = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(et || {}), he = Object.defineProperty, le = Object.getOwnPropertyDescriptor, de = (i, t, e, s) => {
1070
- for (var r = s > 1 ? void 0 : s ? le(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1071
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1072
- return s && r && he(t, e, r), r;
1069
+ var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(et || {}), he = Object.defineProperty, le = Object.getOwnPropertyDescriptor, de = (r, t, e, s) => {
1070
+ for (var i = s > 1 ? void 0 : s ? le(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1071
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1072
+ return s && i && he(t, e, i), i;
1073
1073
  };
1074
1074
  class st extends f {
1075
1075
  constructor() {
@@ -1079,13 +1079,21 @@ class st extends f {
1079
1079
  t.parent = this, this.nodes.push(t);
1080
1080
  }
1081
1081
  applyBranding() {
1082
- if (this.wrapperRef.value) {
1083
- const t = this.application.settings;
1084
- t != null && t.branding && Et(t.branding, this.wrapperRef.value);
1085
- }
1082
+ if (!this.wrapperRef.value)
1083
+ return;
1084
+ const t = this.application.settings;
1085
+ t != null && t.branding && Et(t.branding, this.wrapperRef.value);
1086
+ }
1087
+ applyStyles() {
1088
+ if (!this.wrapperRef.value)
1089
+ return;
1090
+ const t = this.application.styles(), e = this.wrapperRef.value;
1091
+ Object.entries(t).forEach(([s, i]) => {
1092
+ e.style.setProperty(`--${s}`, i);
1093
+ });
1086
1094
  }
1087
1095
  firstUpdated(t) {
1088
- this.applyBranding();
1096
+ this.applyBranding(), this.applyStyles();
1089
1097
  }
1090
1098
  render() {
1091
1099
  return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), C`<div class="widget-container" ${ce(this.wrapperRef)}>
@@ -1187,12 +1195,12 @@ st.styles = P`
1187
1195
  de([
1188
1196
  g({ attribute: !1 })
1189
1197
  ], st.prototype, "application", 2);
1190
- var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, it = (i, t, e, s) => {
1191
- for (var r = s > 1 ? void 0 : s ? ue(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1192
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1193
- return s && r && pe(t, e, r), r;
1198
+ var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, it = (r, t, e, s) => {
1199
+ for (var i = s > 1 ? void 0 : s ? ue(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1200
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1201
+ return s && i && pe(t, e, i), i;
1194
1202
  };
1195
- class D extends f {
1203
+ class j extends f {
1196
1204
  constructor() {
1197
1205
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
1198
1206
  }
@@ -1224,7 +1232,7 @@ class D extends f {
1224
1232
  return this.widget.render();
1225
1233
  }
1226
1234
  }
1227
- D.styles = [
1235
+ j.styles = [
1228
1236
  P`
1229
1237
  :host {
1230
1238
  display: block;
@@ -1233,26 +1241,26 @@ D.styles = [
1233
1241
  ];
1234
1242
  it([
1235
1243
  g({ attribute: !0 })
1236
- ], D.prototype, "name", 2);
1244
+ ], j.prototype, "name", 2);
1237
1245
  it([
1238
1246
  L()
1239
- ], D.prototype, "widget", 2);
1247
+ ], j.prototype, "widget", 2);
1240
1248
  it([
1241
1249
  L()
1242
- ], D.prototype, "status", 2);
1250
+ ], j.prototype, "status", 2);
1243
1251
  customElements.get("ace-trigger") || customElements.define("ace-trigger", x);
1244
1252
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", St);
1245
1253
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
1246
- customElements.get("ace-widget") || customElements.define("ace-widget", D);
1247
- const ge = (i) => {
1254
+ customElements.get("ace-widget") || customElements.define("ace-widget", j);
1255
+ const ge = (r) => {
1248
1256
  const t = {};
1249
- return Object.keys(i).forEach((e) => {
1250
- e.indexOf("css-") > -1 && (t[e] = i[e]);
1257
+ return Object.keys(r).forEach((e) => {
1258
+ e.indexOf("css-") > -1 && (t[e] = r[e]);
1251
1259
  }), t;
1252
- }, fe = (i, t) => {
1260
+ }, fe = (r, t) => {
1253
1261
  const e = ge(t);
1254
- Object.entries(e).forEach(([s, r]) => {
1255
- i.style.setProperty(s.replace("css-", ""), r);
1262
+ Object.entries(e).forEach(([s, i]) => {
1263
+ r.style.setProperty(s.replace("css-", ""), i);
1256
1264
  });
1257
1265
  };
1258
1266
  class $e extends Ct(f) {
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-f305c00f.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-01d22f63.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const o = async (e) => {
2
- e.registerComponent("area", import("./area-916940ea.mjs"));
2
+ e.registerComponent("area", import("./area-d99be1ee.mjs"));
3
3
  };
4
4
  export {
5
5
  o as default
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area-flamingo",
3
- "version": "1.1.23-rc.0",
3
+ "version": "1.1.23-rc.1",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.23-rc.0",
5
+ "@telia-ace/widget-core-flamingo": "1.1.23-rc.1",
6
6
  "lit": "^3.0.2"
7
7
  },
8
8
  "main": "./index.js",