@telia-ace/widget-components-widget-header-flamingo 1.1.38-rc.0 → 1.1.38-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-742e17a4.js")).then(t=>t.widgetHeader))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-0df63e82.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- const n = async (e) => {
2
- e.registerComponent("widget-header", import("./widget-header-acc5796f.mjs").then((t) => t.w));
1
+ const t = async (e) => {
2
+ e.registerComponent("widget-header", import("./widget-header-e7f5df48.mjs"));
3
3
  };
4
4
  export {
5
- n as default
5
+ t as default
6
6
  };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-widget-header-flamingo",
3
- "version": "1.1.38-rc.0",
3
+ "version": "1.1.38-rc.2",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.38-rc.0",
6
+ "@telia-ace/widget-core-flamingo": "1.1.38-rc.2",
7
7
  "@teliads/components": "^22.1.1",
8
8
  "@teliads/icons": "^8.4.0",
9
9
  "@lit-labs/motion": "^1.0.6",
package/types.d.ts CHANGED
@@ -2,4 +2,5 @@ export type CreateWidgetHeaderOption = {
2
2
  label: string;
3
3
  onClick: () => void;
4
4
  icon: string | null;
5
+ closeOnClick: boolean;
5
6
  };
@@ -1,32 +1,32 @@
1
- "use strict";var Dt=function(e,t){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Dt(e,t)};function it(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Kn(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(h){o(h)}}function l(u){try{c(i.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})}function Fe(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function pt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function B(e){return this instanceof B?(this.v=e,this):new B(e)}function Zn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(d){i[d]&&(r[d]=function(f){return new Promise(function($,g){s.push([d,f,$,g])>1||a(d,f)})})}function a(d,f){try{l(i[d](f))}catch($){h(s[0][3],$)}}function l(d){d.value instanceof B?Promise.resolve(d.value.v).then(c,u):h(s[0][2],d)}function c(d){a("next",d)}function u(d){a("throw",d)}function h(d,f){d(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Qn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof W=="function"?W(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function v(e){return typeof e=="function"}function We(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Pt=We(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Dt=function(e,t){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Dt(e,t)};function it(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dt(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function qn(e,t,n,i){function r(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(h){o(h)}}function l(u){try{c(i.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((i=i.apply(e,t||[])).next())})}function Fe(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(i=1,r&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function pt(e,t,n){if(n||arguments.length===2)for(var i=0,r=t.length,s;i<r;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function B(e){return this instanceof B?(this.v=e,this):new B(e)}function Yn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),r,s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(d){i[d]&&(r[d]=function(f){return new Promise(function($,g){s.push([d,f,$,g])>1||a(d,f)})})}function a(d,f){try{l(i[d](f))}catch($){h(s[0][3],$)}}function l(d){d.value instanceof B?Promise.resolve(d.value.v).then(c,u):h(s[0][2],d)}function c(d){a("next",d)}function u(d){a("throw",d)}function h(d,f){d(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Zn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof W=="function"?W(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(s){n[s]=e[s]&&function(o){return new Promise(function(a,l){o=e[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function v(e){return typeof e=="function"}function We(e){var t=function(i){Error.call(i),i.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Pt=We(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
2
2
  `+n.map(function(i,r){return r+1+") "+i.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=n}});function Bt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var xt=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=W(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){s=g instanceof Pt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=W(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ce($)}catch(g){s=s??[],g instanceof Pt?s=pt(pt([],ft(s)),ft(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Pt(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ce(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Bt(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Bt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ge=xt.EMPTY;function Ye(e){return e instanceof xt||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function ce(e){v(e)?e():e.unsubscribe()}var qe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zt={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=zt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,pt([e,t],ft(n))):setTimeout.apply(void 0,pt([e,t],ft(n)))},clearTimeout:function(e){var t=zt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ke(e){zt.setTimeout(function(){throw e})}function ue(){}function ht(e){e()}var qt=function(e){it(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,Ye(n)&&n.add(i)):i.destination=ti,i}return t.create=function(n,i,r){return new Ft(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(xt),Xn=Function.prototype.bind;function Lt(e,t){return Xn.call(e,t)}var Jn=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){lt(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){lt(i)}else lt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){lt(n)}},e}(),Ft=function(e){it(t,e);function t(n,i,r){var s=e.call(this)||this,o;if(v(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&qe.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&Lt(n.next,a),error:n.error&&Lt(n.error,a),complete:n.complete&&Lt(n.complete,a)}):o=n}return s.destination=new Jn(o),s}return t}(qt);function lt(e){Ke(e)}function Vn(e){throw e}var ti={closed:!0,next:ue,error:Vn,complete:ue},Kt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ze(e){return e}function ei(e){return e.length===0?Ze:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var w=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=ii(t)?t:new Ft(t,n,i);return ht(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=he(n),new n(function(r,s){var o=new Ft({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Kt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ei(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=he(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function he(e){var t;return(t=e??qe.Promise)!==null&&t!==void 0?t:Promise}function ni(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function ii(e){return e&&e instanceof qt||ni(e)&&Ye(e)}function ri(e){return v(e==null?void 0:e.lift)}function At(e){return function(t){if(ri(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function gt(e,t,n,i,r){return new si(e,t,n,i,r)}var si=function(e){it(t,e);function t(n,i,r,s,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=i?function(c){try{i(c)}catch(u){n.error(u)}}:e.prototype._next,l._error=s?function(c){try{s(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(qt),oi=We(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qe=function(e){it(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new de(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new oi},t.prototype.next=function(n){var i=this;ht(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=W(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;ht(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Ge:(this.currentObservers=null,a.push(n),new xt(function(){i.currentObservers=null,Bt(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new w;return n.source=this,n},t.create=function(n,i){return new de(n,i)},t}(w),de=function(e){it(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ge},t}(Qe),ai=new w(function(e){return e.complete()});function li(e){return e&&v(e.schedule)}function Xe(e){return e[e.length-1]}function ci(e){return li(Xe(e))?e.pop():void 0}function ui(e,t){return typeof Xe(e)=="number"?e.pop():t}var Je=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ve(e){return v(e==null?void 0:e.then)}function tn(e){return v(e[Kt])}function en(e){return Symbol.asyncIterator&&v(e==null?void 0:e[Symbol.asyncIterator])}function nn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function hi(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=hi();function sn(e){return v(e==null?void 0:e[rn])}function on(e){return Zn(this,arguments,function(){var n,i,r,s;return Fe(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,B(n.read())];case 3:return i=o.sent(),r=i.value,s=i.done,s?[4,B(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,B(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function an(e){return v(e==null?void 0:e.getReader)}function Y(e){if(e instanceof w)return e;if(e!=null){if(tn(e))return di(e);if(Je(e))return fi(e);if(Ve(e))return pi(e);if(en(e))return ln(e);if(sn(e))return gi(e);if(an(e))return $i(e)}throw nn(e)}function di(e){return new w(function(t){var n=e[Kt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fi(e){return new w(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function pi(e){return new w(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Ke)})}function gi(e){return new w(function(t){var n,i;try{for(var r=W(e),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}t.complete()})}function ln(e){return new w(function(t){vi(e,t).catch(function(n){return t.error(n)})})}function $i(e){return ln(on(e))}function vi(e,t){var n,i,r,s;return Kn(this,void 0,void 0,function(){var o,a;return Fe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=Qn(e),l.label=1;case 1:return[4,n.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function C(e,t,n,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=t.schedule(function(){n(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!r)return s}function cn(e,t){return t===void 0&&(t=0),At(function(n,i){n.subscribe(gt(i,function(r){return C(i,e,function(){return i.next(r)},t)},function(){return C(i,e,function(){return i.complete()},t)},function(r){return C(i,e,function(){return i.error(r)},t)}))})}function un(e,t){return t===void 0&&(t=0),At(function(n,i){i.add(e.schedule(function(){return n.subscribe(i)},t))})}function mi(e,t){return Y(e).pipe(un(t),cn(t))}function yi(e,t){return Y(e).pipe(un(t),cn(t))}function bi(e,t){return new w(function(n){var i=0;return t.schedule(function(){i===e.length?n.complete():(n.next(e[i++]),n.closed||this.schedule())})})}function _i(e,t){return new w(function(n){var i;return C(n,t,function(){i=e[rn](),C(n,t,function(){var r,s,o;try{r=i.next(),s=r.value,o=r.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return v(i==null?void 0:i.return)&&i.return()}})}function hn(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(function(n){C(n,t,function(){var i=e[Symbol.asyncIterator]();C(n,t,function(){i.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function wi(e,t){return hn(on(e),t)}function Si(e,t){if(e!=null){if(tn(e))return mi(e,t);if(Je(e))return bi(e,t);if(Ve(e))return yi(e,t);if(en(e))return hn(e,t);if(sn(e))return _i(e,t);if(an(e))return wi(e,t)}throw nn(e)}function xi(e,t){return t?Si(e,t):Y(e)}function Ai(e,t){return At(function(n,i){var r=0;n.subscribe(gt(i,function(s){i.next(e.call(t,s,r++))}))})}function Ei(e,t,n,i,r,s,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<i?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var le=!1;Y(n(g,u++)).subscribe(gt(t,function(K){r==null||r(K),s?f(K):t.next(K)},function(){le=!0},void 0,function(){if(le)try{c--;for(var K=function(){var at=l.shift();o?C(t,o,function(){return $(at)}):$(at)};l.length&&c<i;)K();d()}catch(at){t.error(at)}}))};return e.subscribe(gt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function dn(e,t,n){return n===void 0&&(n=1/0),v(t)?dn(function(i,r){return Ai(function(s,o){return t(i,s,r,o)})(Y(e(i,r)))},n):(typeof t=="number"&&(n=t),At(function(i,r){return Ei(i,r,e,n)}))}function Ci(e){return e===void 0&&(e=1/0),dn(Ze,e)}function ki(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ci(e),i=ui(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):Ci(i)(xi(r,n)):ai}/**
3
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function Bt(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var St=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,i,r,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=W(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){s=g instanceof Pt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=W(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ce($)}catch(g){s=s??[],g instanceof Pt?s=pt(pt([],ft(s)),ft(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(i)throw i.error}}}if(s)throw new Pt(s)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ce(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Bt(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&Bt(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ge=St.EMPTY;function qe(e){return e instanceof St||e&&"closed"in e&&v(e.remove)&&v(e.add)&&v(e.unsubscribe)}function ce(e){v(e)?e():e.unsubscribe()}var Ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},zt={setTimeout:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=zt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,pt([e,t],ft(n))):setTimeout.apply(void 0,pt([e,t],ft(n)))},clearTimeout:function(e){var t=zt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ze(e){zt.setTimeout(function(){throw e})}function ue(){}function ht(e){e()}var Yt=function(e){it(t,e);function t(n){var i=e.call(this)||this;return i.isStopped=!1,n?(i.destination=n,qe(n)&&n.add(i)):i.destination=Jn,i}return t.create=function(n,i,r){return new Ft(n,i,r)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(St),Kn=Function.prototype.bind;function Lt(e,t){return Kn.call(e,t)}var Qn=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(i){lt(i)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(i){lt(i)}else lt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){lt(n)}},e}(),Ft=function(e){it(t,e);function t(n,i,r){var s=e.call(this)||this,o;if(v(n)||!n)o={next:n??void 0,error:i??void 0,complete:r??void 0};else{var a;s&&Ye.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return s.unsubscribe()},o={next:n.next&&Lt(n.next,a),error:n.error&&Lt(n.error,a),complete:n.complete&&Lt(n.complete,a)}):o=n}return s.destination=new Qn(o),s}return t}(Yt);function lt(e){Ze(e)}function Xn(e){throw e}var Jn={closed:!0,next:ue,error:Xn,complete:ue},Zt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ke(e){return e}function Vn(e){return e.length===0?Ke:e.length===1?e[0]:function(n){return e.reduce(function(i,r){return r(i)},n)}}var w=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,i){var r=this,s=ei(t)?t:new Ft(t,n,i);return ht(function(){var o=r,a=o.operator,l=o.source;s.add(a?a.call(s,l):l?r._subscribe(s):r._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var i=this;return n=he(n),new n(function(r,s){var o=new Ft({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});i.subscribe(o)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Zt]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Vn(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=he(t),new t(function(i,r){var s;n.subscribe(function(o){return s=o},function(o){return r(o)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function he(e){var t;return(t=e??Ye.Promise)!==null&&t!==void 0?t:Promise}function ti(e){return e&&v(e.next)&&v(e.error)&&v(e.complete)}function ei(e){return e&&e instanceof Yt||ti(e)&&qe(e)}function ni(e){return v(e==null?void 0:e.lift)}function xt(e){return function(t){if(ni(t))return t.lift(function(n){try{return e(n,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function gt(e,t,n,i,r){return new ii(e,t,n,i,r)}var ii=function(e){it(t,e);function t(n,i,r,s,o,a){var l=e.call(this,n)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=i?function(c){try{i(c)}catch(u){n.error(u)}}:e.prototype._next,l._error=s?function(c){try{s(c)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=r?function(){try{r()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Yt),ri=We(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qe=function(e){it(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var i=new de(this,this);return i.operator=n,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ri},t.prototype.next=function(n){var i=this;ht(function(){var r,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=W(i.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(n)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(n){var i=this;ht(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=n;for(var r=i.observers;r.length;)r.shift().error(n)}})},t.prototype.complete=function(){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var i=n.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Ge:(this.currentObservers=null,a.push(n),new St(function(){i.currentObservers=null,Bt(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var i=this,r=i.hasError,s=i.thrownError,o=i.isStopped;r?n.error(s):o&&n.complete()},t.prototype.asObservable=function(){var n=new w;return n.source=this,n},t.create=function(n,i){return new de(n,i)},t}(w),de=function(e){it(t,e);function t(n,i){var r=e.call(this)||this;return r.destination=n,r.source=i,r}return t.prototype.next=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,n)},t.prototype.error=function(n){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,n)},t.prototype.complete=function(){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||i===void 0||i.call(n)},t.prototype._subscribe=function(n){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(n))!==null&&r!==void 0?r:Ge},t}(Qe),si=new w(function(e){return e.complete()});function oi(e){return e&&v(e.schedule)}function Xe(e){return e[e.length-1]}function ai(e){return oi(Xe(e))?e.pop():void 0}function li(e,t){return typeof Xe(e)=="number"?e.pop():t}var Je=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ve(e){return v(e==null?void 0:e.then)}function tn(e){return v(e[Zt])}function en(e){return Symbol.asyncIterator&&v(e==null?void 0:e[Symbol.asyncIterator])}function nn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ci(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var rn=ci();function sn(e){return v(e==null?void 0:e[rn])}function on(e){return Yn(this,arguments,function(){var n,i,r,s;return Fe(this,function(o){switch(o.label){case 0:n=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,B(n.read())];case 3:return i=o.sent(),r=i.value,s=i.done,s?[4,B(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,B(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function an(e){return v(e==null?void 0:e.getReader)}function q(e){if(e instanceof w)return e;if(e!=null){if(tn(e))return ui(e);if(Je(e))return hi(e);if(Ve(e))return di(e);if(en(e))return ln(e);if(sn(e))return fi(e);if(an(e))return pi(e)}throw nn(e)}function ui(e){return new w(function(t){var n=e[Zt]();if(v(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hi(e){return new w(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function di(e){return new w(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Ze)})}function fi(e){return new w(function(t){var n,i;try{for(var r=W(e),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}t.complete()})}function ln(e){return new w(function(t){gi(e,t).catch(function(n){return t.error(n)})})}function pi(e){return ln(on(e))}function gi(e,t){var n,i,r,s;return qn(this,void 0,void 0,function(){var o,a;return Fe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=Zn(e),l.label=1;case 1:return[4,n.next()];case 2:if(i=l.sent(),!!i.done)return[3,4];if(o=i.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),i&&!i.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function E(e,t,n,i,r){i===void 0&&(i=0),r===void 0&&(r=!1);var s=t.schedule(function(){n(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!r)return s}function cn(e,t){return t===void 0&&(t=0),xt(function(n,i){n.subscribe(gt(i,function(r){return E(i,e,function(){return i.next(r)},t)},function(){return E(i,e,function(){return i.complete()},t)},function(r){return E(i,e,function(){return i.error(r)},t)}))})}function un(e,t){return t===void 0&&(t=0),xt(function(n,i){i.add(e.schedule(function(){return n.subscribe(i)},t))})}function $i(e,t){return q(e).pipe(un(t),cn(t))}function vi(e,t){return q(e).pipe(un(t),cn(t))}function mi(e,t){return new w(function(n){var i=0;return t.schedule(function(){i===e.length?n.complete():(n.next(e[i++]),n.closed||this.schedule())})})}function yi(e,t){return new w(function(n){var i;return E(n,t,function(){i=e[rn](),E(n,t,function(){var r,s,o;try{r=i.next(),s=r.value,o=r.done}catch(a){n.error(a);return}o?n.complete():n.next(s)},0,!0)}),function(){return v(i==null?void 0:i.return)&&i.return()}})}function hn(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(function(n){E(n,t,function(){var i=e[Symbol.asyncIterator]();E(n,t,function(){i.next().then(function(r){r.done?n.complete():n.next(r.value)})},0,!0)})})}function bi(e,t){return hn(on(e),t)}function _i(e,t){if(e!=null){if(tn(e))return $i(e,t);if(Je(e))return mi(e,t);if(Ve(e))return vi(e,t);if(en(e))return hn(e,t);if(sn(e))return yi(e,t);if(an(e))return bi(e,t)}throw nn(e)}function wi(e,t){return t?_i(e,t):q(e)}function Si(e,t){return xt(function(n,i){var r=0;n.subscribe(gt(i,function(s){i.next(e.call(t,s,r++))}))})}function xi(e,t,n,i,r,s,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<i?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var le=!1;q(n(g,u++)).subscribe(gt(t,function(Z){r==null||r(Z),s?f(Z):t.next(Z)},function(){le=!0},void 0,function(){if(le)try{c--;for(var Z=function(){var at=l.shift();o?E(t,o,function(){return $(at)}):$(at)};l.length&&c<i;)Z();d()}catch(at){t.error(at)}}))};return e.subscribe(gt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function dn(e,t,n){return n===void 0&&(n=1/0),v(t)?dn(function(i,r){return Si(function(s,o){return t(i,s,r,o)})(q(e(i,r)))},n):(typeof t=="number"&&(n=t),xt(function(i,r){return xi(i,r,e,n)}))}function Ai(e){return e===void 0&&(e=1/0),dn(Ke,e)}function Ci(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ai(e),i=li(e,1/0),r=e;return r.length?r.length===1?q(r[0]):Ai(i)(wi(r,n)):si}/**
4
4
  * @license
5
5
  * Copyright 2019 Google LLC
6
6
  * SPDX-License-Identifier: BSD-3-Clause
7
- */const dt=globalThis,Zt=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qt=Symbol(),fe=new WeakMap;let fn=class{constructor(t,n,i){if(this._$cssResult$=!0,i!==Qt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Zt&&t===void 0){const i=n!==void 0&&n.length===1;i&&(t=fe.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&fe.set(n,t))}return t}toString(){return this.cssText}};const Oi=e=>new fn(typeof e=="string"?e:e+"",void 0,Qt),R=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((i,r,s)=>i+(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)+e[s+1],e[0]);return new fn(n,e,Qt)},Ti=(e,t)=>{if(Zt)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const i=document.createElement("style"),r=dt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,e.appendChild(i)}},pe=Zt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return Oi(n)})(e):e;/**
7
+ */const dt=globalThis,Kt=dt.ShadowRoot&&(dt.ShadyCSS===void 0||dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qt=Symbol(),fe=new WeakMap;let fn=class{constructor(t,n,i){if(this._$cssResult$=!0,i!==Qt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(Kt&&t===void 0){const i=n!==void 0&&n.length===1;i&&(t=fe.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&fe.set(n,t))}return t}toString(){return this.cssText}};const Ei=e=>new fn(typeof e=="string"?e:e+"",void 0,Qt),R=(e,...t)=>{const n=e.length===1?e[0]:t.reduce((i,r,s)=>i+(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)+e[s+1],e[0]);return new fn(n,e,Qt)},ki=(e,t)=>{if(Kt)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const i=document.createElement("style"),r=dt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=n.cssText,e.appendChild(i)}},pe=Kt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const i of t.cssRules)n+=i.cssText;return Ei(n)})(e):e;/**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */const{is:Pi,defineProperty:Li,getOwnPropertyDescriptor:Ii,getOwnPropertyNames:Ui,getOwnPropertySymbols:Ri,getPrototypeOf:Mi}=Object,k=globalThis,ge=k.trustedTypes,ji=ge?ge.emptyScript:"",It=k.reactiveElementPolyfillSupport,Q=(e,t)=>e,$t={toAttribute(e,t){switch(t){case Boolean:e=e?ji:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Xt=(e,t)=>!Pi(e,t),$e={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Xt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),k.litPropertyMetadata??(k.litPropertyMetadata=new WeakMap);let j=class 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,n=$e){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,n);r!==void 0&&Li(this.prototype,t,r)}}static getPropertyDescriptor(t,n,i){const{get:r,set:s}=Ii(this.prototype,t)??{get(){return this[n]},set(o){this[n]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);s.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$e}static _$Ei(){if(this.hasOwnProperty(Q("elementProperties")))return;const t=Mi(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Q("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Q("properties"))){const n=this.properties,i=[...Ui(n),...Ri(n)];for(const r of i)this.createProperty(r,n[r])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)n.unshift(pe(r))}else t!==void 0&&n.push(pe(t));return n}static _$Eu(t,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i: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(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$ES)==null||n.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ti(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$EO(t,n){var s;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:$t).toAttribute(n,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,n){var s;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:$t;this._$Em=r,this[r]=a.fromAttribute(n,o.type),this._$Em=null}}requestUpdate(t,n,i,r=!1,s){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Xt)(r?s:this[t],n))return;this.C(t,n,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,n,i){this._$AL.has(t)||this._$AL.set(t,n),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,o]of r)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.C(s,this[s],o)}let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$ES)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(n)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)==null||n.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),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(n=>this._$EO(n,this[n]))),this._$ET()}updated(t){}firstUpdated(t){}};j.elementStyles=[],j.shadowRootOptions={mode:"open"},j[Q("elementProperties")]=new Map,j[Q("finalized")]=new Map,It==null||It({ReactiveElement:j}),(k.reactiveElementVersions??(k.reactiveElementVersions=[])).push("2.0.1");/**
11
+ */const{is:Oi,defineProperty:Ti,getOwnPropertyDescriptor:Pi,getOwnPropertyNames:Li,getOwnPropertySymbols:Ii,getPrototypeOf:Ui}=Object,k=globalThis,ge=k.trustedTypes,Ri=ge?ge.emptyScript:"",It=k.reactiveElementPolyfillSupport,Q=(e,t)=>e,$t={toAttribute(e,t){switch(t){case Boolean:e=e?Ri:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Xt=(e,t)=>!Oi(e,t),$e={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Xt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),k.litPropertyMetadata??(k.litPropertyMetadata=new WeakMap);let j=class 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,n=$e){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,n);r!==void 0&&Ti(this.prototype,t,r)}}static getPropertyDescriptor(t,n,i){const{get:r,set:s}=Pi(this.prototype,t)??{get(){return this[n]},set(o){this[n]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);s.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$e}static _$Ei(){if(this.hasOwnProperty(Q("elementProperties")))return;const t=Ui(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Q("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Q("properties"))){const n=this.properties,i=[...Li(n),...Ii(n)];for(const r of i)this.createProperty(r,n[r])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[i,r]of n)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[n,i]of this.elementProperties){const r=this._$Eu(n,i);r!==void 0&&this._$Eh.set(r,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)n.unshift(pe(r))}else t!==void 0&&n.push(pe(t));return n}static _$Eu(t,n){const i=n.attribute;return i===!1?void 0:typeof i=="string"?i: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(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$ES)==null||n.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const i of n.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ki(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostConnected)==null?void 0:i.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(n=>{var i;return(i=n.hostDisconnected)==null?void 0:i.call(n)})}attributeChangedCallback(t,n,i){this._$AK(t,i)}_$EO(t,n){var s;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:$t).toAttribute(n,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,n){var s;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:$t;this._$Em=r,this[r]=a.fromAttribute(n,o.type),this._$Em=null}}requestUpdate(t,n,i,r=!1,s){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Xt)(r?s:this[t],n))return;this.C(t,n,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,n,i){this._$AL.has(t)||this._$AL.set(t,n),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,o]of r)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.C(s,this[s],o)}let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(i=this._$ES)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(n)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)==null||n.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),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(n=>this._$EO(n,this[n]))),this._$ET()}updated(t){}firstUpdated(t){}};j.elementStyles=[],j.shadowRootOptions={mode:"open"},j[Q("elementProperties")]=new Map,j[Q("finalized")]=new Map,It==null||It({ReactiveElement:j}),(k.reactiveElementVersions??(k.reactiveElementVersions=[])).push("2.0.1");/**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
- */const X=globalThis,vt=X.trustedTypes,ve=vt?vt.createPolicy("lit-html",{createHTML:e=>e}):void 0,pn="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,gn="?"+E,Hi=`<${gn}>`,L=document,V=()=>L.createComment(""),tt=e=>e===null||typeof e!="object"&&typeof e!="function",$n=Array.isArray,Ni=e=>$n(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ut=`[
16
- \f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,me=/-->/g,ye=/>/g,O=RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),be=/'/g,_e=/"/g,vn=/^(?:script|style|textarea|title)$/i,Di=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),_=Di(1),I=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),we=new WeakMap,P=L.createTreeWalker(L,129);function mn(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ve!==void 0?ve.createHTML(t):t}const Bi=(e,t)=>{const n=e.length-1,i=[];let r,s=t===2?"<svg>":"",o=Z;for(let a=0;a<n;a++){const l=e[a];let c,u,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,u=o.exec(l),u!==null);)d=o.lastIndex,o===Z?u[1]==="!--"?o=me:u[1]!==void 0?o=ye:u[2]!==void 0?(vn.test(u[2])&&(r=RegExp("</"+u[2],"g")),o=O):u[3]!==void 0&&(o=O):o===O?u[0]===">"?(o=r??Z,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?O:u[3]==='"'?_e:be):o===_e||o===be?o=O:o===me||o===ye?o=Z:(o=O,r=void 0);const f=o===O&&e[a+1].startsWith("/>")?" ":"";s+=o===Z?l+Hi:h>=0?(i.push(c),l.slice(0,h)+pn+l.slice(h)+E+f):l+E+(h===-2?a:f)}return[mn(e,s+(e[n]||"<?>")+(t===2?"</svg>":"")),i]};class et{constructor({strings:t,_$litType$:n},i){let r;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,u]=Bi(t,n);if(this.el=et.createElement(c,i),P.currentNode=this.el.content,n===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=P.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(pn)){const d=u[o++],f=r.getAttribute(h).split(E),$=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:$[2],strings:f,ctor:$[1]==="."?Fi:$[1]==="?"?Wi:$[1]==="@"?Gi:Et}),r.removeAttribute(h)}else h.startsWith(E)&&(l.push({type:6,index:s}),r.removeAttribute(h));if(vn.test(r.tagName)){const h=r.textContent.split(E),d=h.length-1;if(d>0){r.textContent=vt?vt.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],V()),P.nextNode(),l.push({type:2,index:++s});r.append(h[d],V())}}}else if(r.nodeType===8)if(r.data===gn)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(E,h+1))!==-1;)l.push({type:7,index:s}),h+=E.length-1}s++}}static createElement(t,n){const i=L.createElement("template");return i.innerHTML=t,i}}function G(e,t,n=e,i){var o,a;if(t===I)return t;let r=i!==void 0?(o=n._$Co)==null?void 0:o[i]:n._$Cl;const s=tt(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),s===void 0?r=void 0:(r=new s(e),r._$AT(e,n,i)),i!==void 0?(n._$Co??(n._$Co=[]))[i]=r:n._$Cl=r),r!==void 0&&(t=G(e,r._$AS(e,t.values),r,i)),t}class zi{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??L).importNode(n,!0);P.currentNode=r;let s=P.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new rt(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Yi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(s=P.nextNode(),o++)}return P.currentNode=L,r}p(t){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}class rt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,i,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=G(this,t,n),tt(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==I&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ni(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!==p&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var s;const{values:n,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=et.createElement(mn(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(n);else{const o=new zi(r,this),a=o.u(this.options);o.p(n),this.$(a),this._$AH=o}}_$AC(t){let n=we.get(t.strings);return n===void 0&&we.set(t.strings,n=new et(t)),n}T(t){$n(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const s of t)r===n.length?n.push(i=new rt(this.k(V()),this.k(V()),this,this.options)):i=n[r],i._$AI(s),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(t=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class Et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,i,r,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=n,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,n=this,i,r){const s=this.strings;let o=!1;if(s===void 0)t=G(this,t,n,0),o=!tt(t)||t!==this._$AH&&t!==I,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l<s.length-1;l++)c=G(this,a[i+l],n,l),c===I&&(c=this._$AH[l]),o||(o=!tt(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!r&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Fi extends Et{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}let Wi=class extends Et{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}};class Gi extends Et{constructor(t,n,i,r,s){super(t,n,i,r,s),this.type=5}_$AI(t,n=this){if((t=G(this,t,n,0)??p)===I)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}}class Yi{constructor(t,n,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const Rt=X.litHtmlPolyfillSupport;Rt==null||Rt(et,rt),(X.litHtmlVersions??(X.litHtmlVersions=[])).push("3.0.2");const qi=(e,t,n)=>{const i=(n==null?void 0:n.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const s=(n==null?void 0:n.renderBefore)??null;i._$litPart$=r=new rt(t.insertBefore(V(),s),s,void 0,n??{})}return r._$AI(e),r};/**
15
+ */const X=globalThis,vt=X.trustedTypes,ve=vt?vt.createPolicy("lit-html",{createHTML:e=>e}):void 0,pn="$lit$",C=`lit$${(Math.random()+"").slice(9)}$`,gn="?"+C,Mi=`<${gn}>`,L=document,V=()=>L.createComment(""),tt=e=>e===null||typeof e!="object"&&typeof e!="function",$n=Array.isArray,ji=e=>$n(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ut=`[
16
+ \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,me=/-->/g,ye=/>/g,O=RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),be=/'/g,_e=/"/g,vn=/^(?:script|style|textarea|title)$/i,Hi=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),_=Hi(1),I=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),we=new WeakMap,P=L.createTreeWalker(L,129);function mn(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ve!==void 0?ve.createHTML(t):t}const Ni=(e,t)=>{const n=e.length-1,i=[];let r,s=t===2?"<svg>":"",o=K;for(let a=0;a<n;a++){const l=e[a];let c,u,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,u=o.exec(l),u!==null);)d=o.lastIndex,o===K?u[1]==="!--"?o=me:u[1]!==void 0?o=ye:u[2]!==void 0?(vn.test(u[2])&&(r=RegExp("</"+u[2],"g")),o=O):u[3]!==void 0&&(o=O):o===O?u[0]===">"?(o=r??K,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?O:u[3]==='"'?_e:be):o===_e||o===be?o=O:o===me||o===ye?o=K:(o=O,r=void 0);const f=o===O&&e[a+1].startsWith("/>")?" ":"";s+=o===K?l+Mi:h>=0?(i.push(c),l.slice(0,h)+pn+l.slice(h)+C+f):l+C+(h===-2?a:f)}return[mn(e,s+(e[n]||"<?>")+(t===2?"</svg>":"")),i]};class et{constructor({strings:t,_$litType$:n},i){let r;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,u]=Ni(t,n);if(this.el=et.createElement(c,i),P.currentNode=this.el.content,n===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=P.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(pn)){const d=u[o++],f=r.getAttribute(h).split(C),$=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:$[2],strings:f,ctor:$[1]==="."?Bi:$[1]==="?"?zi:$[1]==="@"?Fi:At}),r.removeAttribute(h)}else h.startsWith(C)&&(l.push({type:6,index:s}),r.removeAttribute(h));if(vn.test(r.tagName)){const h=r.textContent.split(C),d=h.length-1;if(d>0){r.textContent=vt?vt.emptyScript:"";for(let f=0;f<d;f++)r.append(h[f],V()),P.nextNode(),l.push({type:2,index:++s});r.append(h[d],V())}}}else if(r.nodeType===8)if(r.data===gn)l.push({type:2,index:s});else{let h=-1;for(;(h=r.data.indexOf(C,h+1))!==-1;)l.push({type:7,index:s}),h+=C.length-1}s++}}static createElement(t,n){const i=L.createElement("template");return i.innerHTML=t,i}}function G(e,t,n=e,i){var o,a;if(t===I)return t;let r=i!==void 0?(o=n._$Co)==null?void 0:o[i]:n._$Cl;const s=tt(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),s===void 0?r=void 0:(r=new s(e),r._$AT(e,n,i)),i!==void 0?(n._$Co??(n._$Co=[]))[i]=r:n._$Cl=r),r!==void 0&&(t=G(e,r._$AS(e,t.values),r,i)),t}class Di{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:n},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??L).importNode(n,!0);P.currentNode=r;let s=P.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new rt(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new Wi(s,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(s=P.nextNode(),o++)}return P.currentNode=L,r}p(t){let n=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,n),n+=i.strings.length-2):i._$AI(t[n])),n++}}class rt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,n,i,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=G(this,t,n),tt(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==I&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ji(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!==p&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var s;const{values:n,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=et.createElement(mn(i.h,i.h[0]),this.options)),i);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(n);else{const o=new Di(r,this),a=o.u(this.options);o.p(n),this.$(a),this._$AH=o}}_$AC(t){let n=we.get(t.strings);return n===void 0&&we.set(t.strings,n=new et(t)),n}T(t){$n(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let i,r=0;for(const s of t)r===n.length?n.push(i=new rt(this.k(V()),this.k(V()),this,this.options)):i=n[r],i._$AI(s),r++;r<n.length&&(this._$AR(i&&i._$AB.nextSibling,r),n.length=r)}_$AR(t=this._$AA.nextSibling,n){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,n);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var n;this._$AM===void 0&&(this._$Cv=t,(n=this._$AP)==null||n.call(this,t))}}class At{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,n,i,r,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=n,this._$AM=r,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,n=this,i,r){const s=this.strings;let o=!1;if(s===void 0)t=G(this,t,n,0),o=!tt(t)||t!==this._$AH&&t!==I,o&&(this._$AH=t);else{const a=t;let l,c;for(t=s[0],l=0;l<s.length-1;l++)c=G(this,a[i+l],n,l),c===I&&(c=this._$AH[l]),o||(o=!tt(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!r&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Bi extends At{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}let zi=class extends At{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}};class Fi extends At{constructor(t,n,i,r,s){super(t,n,i,r,s),this.type=5}_$AI(t,n=this){if((t=G(this,t,n,0)??p)===I)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n;typeof this._$AH=="function"?this._$AH.call(((n=this.options)==null?void 0:n.host)??this.element,t):this._$AH.handleEvent(t)}}class Wi{constructor(t,n,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const Rt=X.litHtmlPolyfillSupport;Rt==null||Rt(et,rt),(X.litHtmlVersions??(X.litHtmlVersions=[])).push("3.0.2");const Gi=(e,t,n)=>{const i=(n==null?void 0:n.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const s=(n==null?void 0:n.renderBefore)??null;i._$litPart$=r=new rt(t.insertBefore(V(),s),s,void 0,n??{})}return r._$AI(e),r};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */let x=class extends j{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const t=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=qi(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return I}};var ze;x._$litElement$=!0,x.finalized=!0,(ze=globalThis.litElementHydrateSupport)==null||ze.call(globalThis,{LitElement:x});const Mt=globalThis.litElementPolyfillSupport;Mt==null||Mt({LitElement:x});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
21
+ */let x=class extends j{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const t=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Gi(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return I}};var ze;x._$litElement$=!0,x.finalized=!0,(ze=globalThis.litElementHydrateSupport)==null||ze.call(globalThis,{LitElement:x});const Mt=globalThis.litElementPolyfillSupport;Mt==null||Mt({LitElement:x});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Ki={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Xt},Zi=(e=Ki,t,n)=>{const{kind:i,metadata:r}=n;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(n.name,e),i==="accessor"){const{name:o}=n;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=n;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function b(e){return(t,n)=>typeof n=="object"?Zi(e,t,n):((i,r,s)=>{const o=r.hasOwnProperty(s);return r.constructor.createProperty(s,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,s):void 0})(e,t,n)}/**
25
+ */const qi={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Xt},Yi=(e=qi,t,n)=>{const{kind:i,metadata:r}=n;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(n.name,e),i==="accessor"){const{name:o}=n;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=n;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function b(e){return(t,n)=>typeof n=="object"?Yi(e,t,n):((i,r,s)=>{const o=r.hasOwnProperty(s);return r.constructor.createProperty(s,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,s):void 0})(e,t,n)}/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function q(e){return b({...e,state:!0,attribute:!1})}var Qi=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,Ji=(e,t,n,i)=>{for(var r=i>1?void 0:i?Xi(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Qi(t,n,r),r};class Jt extends x{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var n;return(n=this.shadowRoot)==null||n.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}}Jt.styles=[R`
29
+ */function Y(e){return b({...e,state:!0,attribute:!1})}var Zi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Qi=(e,t,n,i)=>{for(var r=i>1?void 0:i?Ki(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&Zi(t,n,r),r};class Jt extends x{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var n;return(n=this.shadowRoot)==null||n.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}}Jt.styles=[R`
30
30
  :host {
31
31
  position: fixed;
32
32
  display: flex;
@@ -42,7 +42,7 @@
42
42
  bottom: 20px;
43
43
  left: 20px;
44
44
  }
45
- `];Ji([b({attribute:!0})],Jt.prototype,"anchor",2);/**
45
+ `];Qi([b({attribute:!0})],Jt.prototype,"anchor",2);/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
@@ -50,19 +50,19 @@
50
50
  * @license
51
51
  * Copyright 2020 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */const Vi=e=>e.strings===void 0;/**
53
+ */const Xi=e=>e.strings===void 0;/**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const J=(e,t)=>{var i;const n=e._$AN;if(n===void 0)return!1;for(const r of n)(i=r._$AO)==null||i.call(r,t,!1),J(r,t);return!0},mt=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},bn=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),nr(t)}};function tr(e){this._$AN!==void 0?(mt(this),this._$AM=e,bn(this)):this._$AM=e}function er(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let s=n;s<i.length;s++)J(i[s],!1),mt(i[s]);else i!=null&&(J(i,!1),mt(i));else J(this,e)}const nr=e=>{e.type==Vt.CHILD&&(e._$AP??(e._$AP=er),e._$AQ??(e._$AQ=tr))};class _n extends yn{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,i){super._$AT(t,n,i),bn(this),this.isConnected=t._$AU}_$AO(t,n=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),n&&(J(this,t),mt(this))}setValue(t){if(Vi(this._$Ct))this._$Ct._$AI(t,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=t,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}const ir=new WeakMap;let Se=0;const jt=new Map,xe=new WeakSet,Ae=()=>new Promise(e=>requestAnimationFrame(e)),Ee=[{transform:"translateY(-100%) scale(0)",opacity:0}],rr=[{transform:"translateX(100%) scale(0)",opacity:0}],Ce=(e,t)=>{const n=e-t;return n===0?void 0:n},ke=(e,t)=>{const n=e/t;return n===1?void 0:n},Ht={left:(e,t)=>{const n=Ce(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateX(${n}px)`}},top:(e,t)=>{const n=Ce(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateY(${n}px)`}},width:(e,t)=>{let n;t===0&&(t=1,n={width:"1px"});const i=ke(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let n;t===0&&(t=1,n={height:"1px"});const i=ke(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},sr={duration:333,easing:"ease-in-out"},or=["left","top","width","height","opacity","color","background"],Oe=new WeakMap;class ar extends _n{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===Vt.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(n=>{this.h=n})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return p}getController(){return ir.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[n]){var r;const i=this.l===void 0;return i&&(this.l=(r=t.options)==null?void 0:r.host,this.l.addController(this),this.element=t.element,Oe.set(this.element,this)),this.optionsOrCallback=n,(i||typeof n!="function")&&this.u(n),this.render(n)}u(t){t=t??{};const n=this.getController();n!==void 0&&((t={...n.defaultOptions,...t}).keyframeOptions={...n.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=or),this.options=t}p(){const t={},n=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const s=n[r]??(Ht[r]?void 0:i[r]),o=Number(s);t[r]=isNaN(o)?s+"":o}),t}m(){let t,n=!0;return this.options.guard&&(t=this.options.guard(),n=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((s,o)=>s===r[o]))return!1}else if(r===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&n&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Ae;const n=this._(),i=this.A(this.options.keyframeOptions,n),r=this.p();if(this.g!==void 0){const{from:s,to:o}=this.O(this.g,r,n);this.log("measured",[this.g,r,s,o]),t=this.calculateKeyframes(s,o)}else{const s=jt.get(this.options.inId);if(s){jt.delete(this.options.inId);const{from:o,to:a}=this.O(s,r,n);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Se++,t.forEach(l=>l.zIndex=Se)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,n;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(n=this.webAnimation)==null||n.cancel()}reconnected(){}async disconnected(){var n;if(!this.o||(this.options.id!==void 0&&jt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await Ae(),(n=this.t)==null?void 0:n.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.p();this.log("stabilizing out");const s=this.g.left-r.left,o=this.g.top-r.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,n;(n=(t=this.options).onStart)==null||n.call(t,this)}didFinish(t){var n,i;t&&((i=(n=this.options).onComplete)==null||i.call(n,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let n=this.element.parentNode;n;n=n==null?void 0:n.parentNode){const i=Oe.get(n);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=xe.has(this.l);return t||this.l.updateComplete.then(()=>{xe.add(this.l)}),t}A(t,n=this._()){const i={...sr};return n.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}O(t,n,i){t={...t},n={...n};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return r!==void 0&&(r.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&n.left!==void 0&&(t.left=s*t.left,n.left=s*n.left),t.top!==void 0&&n.top!==void 0&&(t.top=o*t.top,n.top=o*n.top)),{from:t,to:n}}calculateKeyframes(t,n,i=!1){const r={},s={};let o=!1;const a={};for(const l in n){const c=t[l],u=n[l];if(l in Ht){const h=Ht[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,r.transform=`${r.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(r,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,r[l]=c,s[l]=u)}return r.transformOrigin=s.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,s]:void 0}async animate(t,n=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,n]),i=!0,this.webAnimation=this.element.animate(t,n);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,n;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((n=this.webAnimation)==null?void 0:n.pending)}log(t,n){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,n)}}const wn=te(ar);/**
57
+ */const J=(e,t)=>{var i;const n=e._$AN;if(n===void 0)return!1;for(const r of n)(i=r._$AO)==null||i.call(r,t,!1),J(r,t);return!0},mt=e=>{let t,n;do{if((t=e._$AM)===void 0)break;n=t._$AN,n.delete(e),e=t}while((n==null?void 0:n.size)===0)},bn=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(n===void 0)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),tr(t)}};function Ji(e){this._$AN!==void 0?(mt(this),this._$AM=e,bn(this)):this._$AM=e}function Vi(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let s=n;s<i.length;s++)J(i[s],!1),mt(i[s]);else i!=null&&(J(i,!1),mt(i));else J(this,e)}const tr=e=>{e.type==Vt.CHILD&&(e._$AP??(e._$AP=Vi),e._$AQ??(e._$AQ=Ji))};class _n extends yn{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,n,i){super._$AT(t,n,i),bn(this),this.isConnected=t._$AU}_$AO(t,n=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),n&&(J(this,t),mt(this))}setValue(t){if(Xi(this._$Ct))this._$Ct._$AI(t,this);else{const n=[...this._$Ct._$AH];n[this._$Ci]=t,this._$Ct._$AI(n,this,0)}}disconnected(){}reconnected(){}}const er=new WeakMap;let Se=0;const jt=new Map,xe=new WeakSet,Ae=()=>new Promise(e=>requestAnimationFrame(e)),Ce=[{transform:"translateY(-100%) scale(0)",opacity:0}],nr=[{transform:"translateX(100%) scale(0)",opacity:0}],Ee=(e,t)=>{const n=e-t;return n===0?void 0:n},ke=(e,t)=>{const n=e/t;return n===1?void 0:n},Ht={left:(e,t)=>{const n=Ee(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateX(${n}px)`}},top:(e,t)=>{const n=Ee(e,t);return{value:n,transform:n==null||isNaN(n)?void 0:`translateY(${n}px)`}},width:(e,t)=>{let n;t===0&&(t=1,n={width:"1px"});const i=ke(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let n;t===0&&(t=1,n={height:"1px"});const i=ke(e,t);return{value:i,overrideFrom:n,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ir={duration:333,easing:"ease-in-out"},rr=["left","top","width","height","opacity","color","background"],Oe=new WeakMap;class sr extends _n{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===Vt.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(n=>{this.h=n})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return p}getController(){return er.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[n]){var r;const i=this.l===void 0;return i&&(this.l=(r=t.options)==null?void 0:r.host,this.l.addController(this),this.element=t.element,Oe.set(this.element,this)),this.optionsOrCallback=n,(i||typeof n!="function")&&this.u(n),this.render(n)}u(t){t=t??{};const n=this.getController();n!==void 0&&((t={...n.defaultOptions,...t}).keyframeOptions={...n.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=rr),this.options=t}p(){const t={},n=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const s=n[r]??(Ht[r]?void 0:i[r]),o=Number(s);t[r]=isNaN(o)?s+"":o}),t}m(){let t,n=!0;return this.options.guard&&(t=this.options.guard(),n=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((s,o)=>s===r[o]))return!1}else if(r===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&n&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Ae;const n=this._(),i=this.A(this.options.keyframeOptions,n),r=this.p();if(this.g!==void 0){const{from:s,to:o}=this.O(this.g,r,n);this.log("measured",[this.g,r,s,o]),t=this.calculateKeyframes(s,o)}else{const s=jt.get(this.options.inId);if(s){jt.delete(this.options.inId);const{from:o,to:a}=this.O(s,r,n);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Se++,t.forEach(l=>l.zIndex=Se)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,n;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(n=this.webAnimation)==null||n.cancel()}reconnected(){}async disconnected(){var n;if(!this.o||(this.options.id!==void 0&&jt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await Ae(),(n=this.t)==null?void 0:n.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.p();this.log("stabilizing out");const s=this.g.left-r.left,o=this.g.top-r.top;getComputedStyle(this.element).position!=="static"||s===0&&o===0||(this.element.style.position="relative"),s!==0&&(this.element.style.left=s+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,n;(n=(t=this.options).onStart)==null||n.call(t,this)}didFinish(t){var n,i;t&&((i=(n=this.options).onComplete)==null||i.call(n,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let n=this.element.parentNode;n;n=n==null?void 0:n.parentNode){const i=Oe.get(n);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=xe.has(this.l);return t||this.l.updateComplete.then(()=>{xe.add(this.l)}),t}A(t,n=this._()){const i={...ir};return n.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}O(t,n,i){t={...t},n={...n};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return r!==void 0&&(r.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&n.left!==void 0&&(t.left=s*t.left,n.left=s*n.left),t.top!==void 0&&n.top!==void 0&&(t.top=o*t.top,n.top=o*n.top)),{from:t,to:n}}calculateKeyframes(t,n,i=!1){const r={},s={};let o=!1;const a={};for(const l in n){const c=t[l],u=n[l];if(l in Ht){const h=Ht[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,r.transform=`${r.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(r,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,r[l]=c,s[l]=u)}return r.transformOrigin=s.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,s]:void 0}async animate(t,n=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,n]),i=!0,this.webAnimation=this.element.animate(t,n);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,n;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((n=this.webAnimation)==null?void 0:n.pending)}log(t,n){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,n)}}const wn=te(sr),or={name:"chevron-down",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},ar={name:"more-horizontal",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},lr={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
58
58
  * @license
59
59
  * Copyright 2018 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const lr=te(class extends yn{constructor(e){var t;if(super(e),e.type!==Vt.ATTRIBUTE||e.name!=="class"||((t=e.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(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,r;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((i=this.st)!=null&&i.has(s))&&this.it.add(s);return this.render(t)}const n=e.element.classList;for(const s of this.it)s in t||(n.remove(s),this.it.delete(s));for(const s in t){const o=!!t[s];o===this.it.has(s)||(r=this.st)!=null&&r.has(s)||(o?(n.add(s),this.it.add(s)):(n.remove(s),this.it.delete(s)))}return I}}),ct=(e,t,n)=>{e&&n.style.setProperty(t,e)},Sn=(e,t)=>{var n,i,r,s;ct((n=e.colors)==null?void 0:n.primaryBackground,"--primary-background",t),ct((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),ct((r=e.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),ct((s=e.colors)==null?void 0:s.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
61
+ */const cr=te(class extends yn{constructor(e){var t;if(super(e),e.type!==Vt.ATTRIBUTE||e.name!=="class"||((t=e.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(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,r;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((i=this.st)!=null&&i.has(s))&&this.it.add(s);return this.render(t)}const n=e.element.classList;for(const s of this.it)s in t||(n.remove(s),this.it.delete(s));for(const s in t){const o=!!t[s];o===this.it.has(s)||(r=this.st)!=null&&r.has(s)||(o?(n.add(s),this.it.add(s)):(n.remove(s),this.it.delete(s)))}return I}}),ct=(e,t,n)=>{e&&n.style.setProperty(t,e)},Sn=(e,t)=>{var n,i,r,s;ct((n=e.colors)==null?void 0:n.primaryBackground,"--primary-background",t),ct((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),ct((r=e.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),ct((s=e.colors)==null?void 0:s.textOnSecondaryBackground,"--text-on-secondary-background",t)};/**
62
62
  * @license
63
63
  * Copyright 2020 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */const xn=()=>new cr;let cr=class{};const Nt=new WeakMap,An=te(class extends _n{render(e){return p}update(e,[t]){var i;const n=t!==this.G;return n&&this.G!==void 0&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),p}ot(e){if(typeof this.G=="function"){const t=this.ct??globalThis;let n=Nt.get(t);n===void 0&&(n=new WeakMap,Nt.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ct,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t;return typeof this.G=="function"?(e=Nt.get(this.ct??globalThis))==null?void 0:e.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 ur=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,Ct=(e,t,n,i)=>{for(var r=i>1?void 0:i?hr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&ur(t,n,r),r};class M extends x{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.containerRef=xn()}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&&Sn(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),n=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(n)return _` <img src=${n} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return p;const r=async u=>await Promise.resolve().then(()=>require("./index-0d9a204b.js")).then(d=>d[u]),{type:s,content:o}=i;switch(s){case"Telia":{const u=await r(o);return u?_`<telia-icon
65
+ */const xn=()=>new ur;let ur=class{};const Nt=new WeakMap,An=te(class extends _n{render(e){return p}update(e,[t]){var i;const n=t!==this.G;return n&&this.G!==void 0&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),p}ot(e){if(typeof this.G=="function"){const t=this.ct??globalThis;let n=Nt.get(t);n===void 0&&(n=new WeakMap,Nt.set(t,n)),n.get(this.G)!==void 0&&this.G.call(this.ct,void 0),n.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t;return typeof this.G=="function"?(e=Nt.get(this.ct??globalThis))==null?void 0:e.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 hr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,Ct=(e,t,n,i)=>{for(var r=i>1?void 0:i?dr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&hr(t,n,r),r};class M extends x{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.containerRef=xn()}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&&Sn(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),n=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(n)return _` <img src=${n} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return p;const r=async u=>lr,{type:s,content:o}=i;switch(s){case"Telia":{const u=await r();return u?_`<telia-icon
66
66
  class="trigger-icon"
67
67
  svg=${u.svg}
68
68
  size="lg"
@@ -71,14 +71,14 @@
71
71
  <button
72
72
  class="trigger-label"
73
73
  @click=${this.toggleActive}
74
- ${wn({keyframeOptions:{},in:rr,stabilizeOut:!0,skipInitial:!1})}
74
+ ${wn({keyframeOptions:{},in:nr,stabilizeOut:!0,skipInitial:!1})}
75
75
  >
76
76
  ${this.application.settings.branding.other.buttonLabelText}
77
77
  </button>
78
78
  `:p}
79
79
 
80
80
  <button
81
- class=${lr({trigger:!0,active:this.active,rendered:this.loaded})}
81
+ class=${cr({trigger:!0,active:this.active,rendered:this.loaded})}
82
82
  @click=${this.toggleActive}
83
83
  >
84
84
  ${this.icon}
@@ -214,7 +214,7 @@
214
214
  .trigger-label:hover {
215
215
  opacity: 0.8;
216
216
  }
217
- `];Ct([b({attribute:!1})],M.prototype,"application",2);Ct([q()],M.prototype,"active",2);Ct([q()],M.prototype,"loaded",2);Ct([q()],M.prototype,"icon",2);var dr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,T=(e,t,n,i)=>{for(var r=i>1?void 0:i?fr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&dr(t,n,r),r};const En=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}}return t.styles=[R`
217
+ `];Ct([b({attribute:!1})],M.prototype,"application",2);Ct([Y()],M.prototype,"active",2);Ct([Y()],M.prototype,"loaded",2);Ct([Y()],M.prototype,"icon",2);var fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,T=(e,t,n,i)=>{for(var r=i>1?void 0:i?pr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&fr(t,n,r),r};const Cn=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}}return t.styles=[R`
218
218
  :host {
219
219
  font-family: var(--font-family);
220
220
  grid-column: span var(--width);
@@ -226,7 +226,7 @@
226
226
  * {
227
227
  box-sizing: border-box;
228
228
  }
229
- `],T([b()],t.prototype,"properties",2),T([b()],t.prototype,"context",2),T([b()],t.prototype,"layout",2),T([b()],t.prototype,"name",2),T([b()],t.prototype,"type",2),T([b({attribute:!1})],t.prototype,"application",2),T([b({attribute:!1})],t.prototype,"parent",2),t};class Cn extends En(x){render(){return _`Non resolved component`}}Cn.styles=[R`
229
+ `],T([b()],t.prototype,"properties",2),T([b()],t.prototype,"context",2),T([b()],t.prototype,"layout",2),T([b()],t.prototype,"name",2),T([b()],t.prototype,"type",2),T([b({attribute:!1})],t.prototype,"application",2),T([b({attribute:!1})],t.prototype,"parent",2),t};class En extends Cn(x){render(){return _`Non resolved component`}}En.styles=[R`
230
230
  :host {
231
231
  display: block;
232
232
  }
@@ -234,8 +234,8 @@
234
234
  * @license
235
235
  * Copyright 2021 Google LLC
236
236
  * SPDX-License-Identifier: BSD-3-Clause
237
- */function*pr(e,t){if(e!==void 0){let n=0;for(const i of e)yield t(i,n++)}}var ee=(e=>(e.Inline="inline",e.Trigger="trigger",e))(ee||{}),gr=Object.defineProperty,$r=Object.getOwnPropertyDescriptor,vr=(e,t,n,i)=>{for(var r=i>1?void 0:i?$r(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&gr(t,n,r),r};class ne extends x{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=xn()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Sn(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),n=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{n.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===ee.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),_`<div class="widget-container" ${An(this.wrapperRef)}>
238
- ${pr(this.nodes,t=>t)}
237
+ */function*gr(e,t){if(e!==void 0){let n=0;for(const i of e)yield t(i,n++)}}var ee=(e=>(e.Inline="inline",e.Trigger="trigger",e))(ee||{}),$r=Object.defineProperty,vr=Object.getOwnPropertyDescriptor,mr=(e,t,n,i)=>{for(var r=i>1?void 0:i?vr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&$r(t,n,r),r};class ne extends x{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=xn()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Sn(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),n=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{n.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===ee.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),_`<div class="widget-container" ${An(this.wrapperRef)}>
238
+ ${gr(this.nodes,t=>t)}
239
239
  </div>`}}ne.styles=R`
240
240
  :host {
241
241
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
@@ -333,11 +333,11 @@
333
333
  opacity: 0;
334
334
  animation: slideDown 0.3s linear;
335
335
  }
336
- `;vr([b({attribute:!1})],ne.prototype,"application",2);var mr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,ie=(e,t,n,i)=>{for(var r=i>1?void 0:i?yr(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&mr(t,n,r),r};class st extends x{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(n=>n.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===ee.Trigger){const t=new M;return t.application=this.widget,t}return this.widget.render()}}st.styles=[R`
336
+ `;mr([b({attribute:!1})],ne.prototype,"application",2);var yr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,ie=(e,t,n,i)=>{for(var r=i>1?void 0:i?br(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&yr(t,n,r),r};class st extends x{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(n=>n.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===ee.Trigger){const t=new M;return t.application=this.widget,t}return this.widget.render()}}st.styles=[R`
337
337
  :host {
338
338
  display: block;
339
339
  }
340
- `];ie([b({attribute:!0})],st.prototype,"name",2);ie([q()],st.prototype,"widget",2);ie([q()],st.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",Jt);customElements.get("ace-trigger")||customElements.define("ace-trigger",M);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Cn);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ne);customElements.get("ace-widget")||customElements.define("ace-widget",st);class br{constructor(t,n,i){this.label=t,this.icon=n,this.onClick=i,this.update=new Qe}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}subscribe(){return this.update.asObservable()}}class _r{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const n=new br(t.label,t.icon,t.onClick);return this._options.push(n),this.handleUpdate(),n}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(n=>n.subscribe());this._subscription=ki(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let N,kn,kt,On=!1,yt=!1,re=!1,y=!1,Te=null,Wt=!1;const Ot=typeof window<"u"?window:{},A=Ot.document||{head:{}},Tn=Ot.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},wr=(()=>{let e=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Sr=e=>Promise.resolve(e),xr=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Pn=(e,t,n,i)=>{n&&n.map(([r,s,o])=>{const a=Er(e,r),l=Ar(t,o),c=Cr(r);m.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,s,l,c))})},Ar=(e,t)=>n=>{try{H.lazyLoad||e.$hostElement$[t](n)}catch(i){ot(i)}},Er=(e,t)=>t&4?A:t&8?Ot:t&16?A.body:e,Cr=e=>wr?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Pe="http://www.w3.org/1999/xlink",U=(e,t="")=>()=>{},Le=new WeakMap,kr=(e,t,n)=>{let i=wt.get(e);xr&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,wt.set(e,i)},Or=(e,t,n,i)=>{let r=Ln(t,n),s=wt.get(r);if(e=e.nodeType===11?e:A,s)if(typeof s=="string"){e=e.head||e;let o=Le.get(e),a;o||Le.set(e,o=new Set),o.has(r)||(a=A.createElement("style"),a.innerHTML=s,e.insertBefore(a,e.querySelector("link")),o&&o.add(r))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},Tr=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=U("attachStyles",t.$tagName$),s=Or(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=s,n.classList.add(s+"-h"),i&2&&n.classList.add(s+"-s")),r()},Ln=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Pr=e=>ss.map(t=>t(e)).find(t=>!!t),Ie={},Lr="http://www.w3.org/2000/svg",Ir="http://www.w3.org/1999/xhtml",Ur=e=>e!=null,se=e=>(e=typeof e,e==="object"||e==="function"),z=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)i=h[d],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!se(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?bt(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Mr);const u=bt(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},bt=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},oe={},Rr=e=>e&&e.$tag$===oe,Mr={forEach:(e,t)=>e.map(Ue).forEach(t),map:(e,t)=>e.map(Ue).map(t).map(jr)},Ue=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),jr=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),z(e.vtag,n,...e.vchildren||[])}const t=bt(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Re=(e,t,n,i,r,s)=>{if(n!==i){let o=Ne(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Me(n),u=Me(i);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ne(Ot,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&m.rel(e,t,n,!1),i&&m.ael(e,t,i,!1);else{const l=se(i);if((o||l&&i!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let u=i??"";t==="list"?o=!1:(n==null||e[t]!=u)&&(e[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(Pe,t):e.removeAttribute(t)):(!o||s&4||r)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(Pe,t,i):e.setAttribute(t,i))}}},Hr=/\s/,Me=e=>e?e.split(Hr):[],In=(e,t,n,i)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||Ie,o=t.$attrs$||Ie;for(i in s)i in o||Re(r,i,s[i],void 0,n,t.$flags$);for(i in o)Re(r,i,s[i],o[i],n,t.$flags$)},_t=(e,t,n,i)=>{let r=t.$children$[n],s=0,o,a,l;if(On||(re=!0,r.$tag$==="slot"&&(N&&i.classList.add(N+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=A.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=A.createTextNode("");else{if(y||(y=r.$tag$==="svg"),o=r.$elm$=A.createElementNS(y?Lr:Ir,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),In(null,r,y),Ur(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),r.$children$)for(s=0;s<r.$children$.length;++s)a=_t(e,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=kt,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=kn,o["s-sn"]=r.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===r.$tag$&&e.$elm$&&nt(e.$elm$,!1)),o},nt=(e,t)=>{m.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==kt&&r["s-ol"]&&(Mn(r).insertBefore(r,ae(r)),r["s-ol"].remove(),r["s-ol"]=void 0,re=!0),t&&nt(r,t)}m.$flags$&=-2},Un=(e,t,n,i,r,s)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===kt&&(o=o.shadowRoot);r<=s;++r)i[r]&&(a=_t(null,n,r,e),a&&(i[r].$elm$=a,o.insertBefore(a,ae(t))))},Rn=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,Nn(i),yt=!0,r["s-ol"]?r["s-ol"].remove():nt(r,!0),r.remove())},Nr=(e,t,n,i)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=i.length-1,d=i[0],f=i[h],$,g;for(;r<=l&&s<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=i[++s];else if(f==null)f=i[--h];else if(ut(c,d))D(c,d),c=t[++r],d=i[++s];else if(ut(u,f))D(u,f),u=t[--l],f=i[--h];else if(ut(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(c.$elm$.parentNode,!1),D(c,f),e.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=i[--h];else if(ut(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(u.$elm$.parentNode,!1),D(u,d),e.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=i[++s];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=_t(t&&t[s],n,o,e):(D(g,d),t[o]=void 0,$=g.$elm$),d=i[++s]):($=_t(t&&t[s],n,s,e),d=i[++s]),$&&Mn(c.$elm$).insertBefore($,ae(c.$elm$))}r>l?Un(e,i[h+1]==null?null:i[h+1].$elm$,n,i,s,h):s>h&&Rn(t,r,l)},ut=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,ae=e=>e&&e["s-ol"]||e,Mn=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,D=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(y=s==="svg"?!0:s==="foreignObject"?!1:y,s==="slot"||In(e,t,y),i!==null&&r!==null?Nr(n,i,t,r):r!==null?(e.$text$!==null&&(n.textContent=""),Un(n,null,t,r,0,r.length-1)):i!==null&&Rn(i,0,i.length-1),y&&s==="svg"&&(y=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},jn=e=>{let t=e.childNodes,n,i,r,s,o,a;for(i=0,r=t.length;i<r;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(o=n["s-sn"],n.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){n.hidden=!0;break}}jn(n)}},S=[],Hn=e=>{let t,n,i,r,s,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(je(n,r)?(s=S.find(u=>u.$nodeToRelocate$===n),yt=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&S.map(u=>{je(u.$nodeToRelocate$,n["s-sn"])&&(s=S.find(h=>h.$nodeToRelocate$===n),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):S.some(u=>u.$nodeToRelocate$===n)||S.push({$nodeToRelocate$:n}));t.nodeType===1&&Hn(t)}},je=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Nn=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Nn)},Dr=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,r=e.$vnode$||bt(null,null),s=Rr(t)?t:z(null,null,t);kt=n.tagName,i.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=n[o])),s.$tag$=null,s.$flags$|=4,e.$vnode$=s,s.$elm$=r.$elm$=n.shadowRoot||n,N=n["s-sc"],kn=n["s-cr"],On=(i.$flags$&1)!==0,yt=!1,D(r,s);{if(m.$flags$|=1,re){Hn(s.$elm$);let o,a,l,c,u,h,d=0;for(;d<S.length;d++)o=S[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<S.length;d++)if(o=S[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}yt&&jn(s.$elm$),m.$flags$&=-2,S.length=0}},Br=e=>e,zr=(e,t,n)=>{const i=Br(e);return{emit:r=>Fr(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},Fr=(e,t,n)=>{const i=m.ce(t,n);return e.dispatchEvent(i),i},Wr=(e,t)=>{},Dn=(e,t)=>(e.$flags$|=16,Wr(e,e.$ancestorComponent$),ls(()=>Gr(e,t))),Gr=(e,t)=>{const n=e.$hostElement$,i=U("scheduleUpdate",e.$cmpMeta$.$tagName$),r=n;let s;return t?s=F(r,"componentWillLoad"):s=F(r,"componentWillUpdate"),s=He(s,()=>F(r,"componentWillRender")),i(),He(s,()=>Yr(e,r,t))},Yr=async(e,t,n)=>{const i=e.$hostElement$,r=U("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&Tr(e);const s=U("render",e.$cmpMeta$.$tagName$);qr(e,t,i),s(),r(),Kr(e)},qr=(e,t,n)=>{try{Te=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Dr(e,t))}catch(a){ot(a,e.$hostElement$)}return Te=null,null},Kr=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=U("postUpdate",t),r=n;e.$ancestorComponent$,F(r,"componentDidRender"),e.$flags$&64?(F(r,"componentDidUpdate"),i()):(e.$flags$|=64,F(r,"componentDidLoad"),i())},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){ot(i)}},He=(e,t)=>e&&e.then?e.then(t):t(),Zr=(e,t)=>e!=null&&!se(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Qr=(e,t)=>Tt(e).$instanceValues$.get(t),Xr=(e,t,n,i)=>{const r=Tt(e),s=e,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;n=Zr(n,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!c){r.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(d=>{try{l[d](n,o,t)}catch(f){ot(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1)return;Dn(r,!1)}}}},Jr=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;i.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return Qr(this,s)},set(a){Xr(this,s,a,t)},configurable:!0,enumerable:!0})});{const s=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=s.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return s.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},Vr=async(e,t,n,i,r)=>{if(!(t.$flags$&32)&&(r=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Pr(e)]);const a=Ln(n,t.$modeName$);if(!wt.has(a)){const l=U("registerStyles",n.$tagName$);kr(a,o,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Dn(t,!0))()},ts=e=>{},es=e=>{if(!(m.$flags$&1)){const t=Tt(e),n=t.$cmpMeta$,i=U("connectedCallback",n.$tagName$);t.$flags$&1?(Pn(e,t,n.$listeners$),ts(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&ns(e),n.$members$&&Object.entries(n.$members$).map(([r,[s]])=>{if(s&31&&e.hasOwnProperty(r)){const o=e[r];delete e[r],e[r]=o}}),Vr(e,t,n)),i()}},ns=e=>{const t=e["s-cr"]=A.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},is=e=>{if(!(m.$flags$&1)){const t=Tt(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Bn=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){rs(this,n)},connectedCallback(){es(this),i&&i.call(this)},disconnectedCallback(){is(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,Jr(e,n)},zn=new WeakMap,Tt=e=>zn.get(e),rs=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Pn(e,n,t.$listeners$),zn.set(e,n)},Ne=(e,t)=>t in e,ot=(e,t)=>(0,console.error)(e,t),wt=new Map,ss=[],De=[],Fn=[],os=(e,t)=>n=>{e.push(n),Wt||(Wt=!0,t&&m.$flags$&4?as(Gt):m.raf(Gt))},Be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){ot(n)}e.length=0},Gt=()=>{Be(De),Be(Fn),(Wt=De.length>0)&&m.raf(Gt)},as=e=>Sr().then(e),ls=os(Fn,!0),cs=(e={})=>{const{content:t="",title:n,attributes:i=[]}=e;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return n&&(r=`<title>${n}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},us=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function hs(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class ds{constructor(t){this.voca_component=t,this.voca_added=hs(new Date)}}const fs="telia-vst{display:none}",ps=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=zr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new ds(this.dataTrackingId))}render(){return z(oe,null)}static get style(){return fs}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Wn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,ps);break}})}Wn();function Yt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function gs(){if(typeof Yt().vocadsIcons!==void 0)return Yt().vocadsIcons}function $s(){return Yt().vocadsIconsRegistered}const vs=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",ms=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if($s()&&this.name){const e=gs();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const n=cs({content:us(e),attributes:t,title:this.allyTitle});return z(oe,{class:`telia-icon telia-icon--${this.size}`},z("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:n}),z("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return vs}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function ys(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,ms);break;case"telia-vst":customElements.get(t)||Wn();break}})}ys();const Gn={name:"chevron-down",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},Yn={name:"more-horizontal",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'};var bs=Object.defineProperty,_s=Object.getOwnPropertyDescriptor,ws=(e,t,n,i)=>{for(var r=i>1?void 0:i?_s(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&bs(t,n,r),r};const qn=En(x);class St extends qn{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new _r(this)}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}render(){var s;const t=this.application.branding(),n=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,i=this.application.texts,r=i.get("widget-header.header","ACE Widget");return _` <div class="widget-header">
340
+ `];ie([b({attribute:!0})],st.prototype,"name",2);ie([Y()],st.prototype,"widget",2);ie([Y()],st.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",Jt);customElements.get("ace-trigger")||customElements.define("ace-trigger",M);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",En);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",ne);customElements.get("ace-widget")||customElements.define("ace-widget",st);class _r{constructor(t,n,i,r){this.label=t,this.icon=n,this.onClick=i,this.closeOnClick=r,this.update=new Qe}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}subscribe(){return this.update.asObservable()}}class wr{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const n=new _r(t.label,t.icon,t.onClick,t.closeOnClick);return this._options.push(n),this.handleUpdate(),n}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(n=>n.subscribe());this._subscription=Ci(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let N,kn,Et,On=!1,yt=!1,re=!1,y=!1,Te=null,Wt=!1;const kt=typeof window<"u"?window:{},A=kt.document||{head:{}},Tn=kt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,i)=>e.addEventListener(t,n,i),rel:(e,t,n,i)=>e.removeEventListener(t,n,i),ce:(e,t)=>new CustomEvent(e,t)},Sr=(()=>{let e=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),xr=e=>Promise.resolve(e),Ar=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Pn=(e,t,n,i)=>{n&&n.map(([r,s,o])=>{const a=Er(e,r),l=Cr(t,o),c=kr(r);m.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,s,l,c))})},Cr=(e,t)=>n=>{try{H.lazyLoad||e.$hostElement$[t](n)}catch(i){ot(i)}},Er=(e,t)=>t&4?A:t&8?kt:t&16?A.body:e,kr=e=>Sr?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,Pe="http://www.w3.org/1999/xlink",U=(e,t="")=>()=>{},Le=new WeakMap,Or=(e,t,n)=>{let i=wt.get(e);Ar&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,wt.set(e,i)},Tr=(e,t,n,i)=>{let r=Ln(t,n),s=wt.get(r);if(e=e.nodeType===11?e:A,s)if(typeof s=="string"){e=e.head||e;let o=Le.get(e),a;o||Le.set(e,o=new Set),o.has(r)||(a=A.createElement("style"),a.innerHTML=s,e.insertBefore(a,e.querySelector("link")),o&&o.add(r))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return r},Pr=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,r=U("attachStyles",t.$tagName$),s=Tr(n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$);i&10&&(n["s-sc"]=s,n.classList.add(s+"-h"),i&2&&n.classList.add(s+"-s")),r()},Ln=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Lr=e=>os.map(t=>t(e)).find(t=>!!t),Ie={},Ir="http://www.w3.org/2000/svg",Ur="http://www.w3.org/1999/xhtml",Rr=e=>e!=null,se=e=>(e=typeof e,e==="object"||e==="function"),z=(e,t,...n)=>{let i=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)i=h[d],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!se(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?bt(null,i):i),a=o)};if(c(n),t){t.key&&(r=t.key),t.name&&(s=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,jr);const u=bt(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},bt=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n.$name$=null,n},oe={},Mr=e=>e&&e.$tag$===oe,jr={forEach:(e,t)=>e.map(Ue).forEach(t),map:(e,t)=>e.map(Ue).map(t).map(Hr)},Ue=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),Hr=e=>{if(typeof e.vtag=="function"){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),z(e.vtag,n,...e.vchildren||[])}const t=bt(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Re=(e,t,n,i,r,s)=>{if(n!==i){let o=Ne(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Me(n),u=Me(i);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in n)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!n||i[l]!==n[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Ne(kt,a)?t=a.slice(2):t=a[2]+t.slice(3),n&&m.rel(e,t,n,!1),i&&m.ael(e,t,i,!1);else{const l=se(i);if((o||l&&i!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=i;else{let u=i??"";t==="list"?o=!1:(n==null||e[t]!=u)&&(e[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(Pe,t):e.removeAttribute(t)):(!o||s&4||r)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(Pe,t,i):e.setAttribute(t,i))}}},Nr=/\s/,Me=e=>e?e.split(Nr):[],In=(e,t,n,i)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||Ie,o=t.$attrs$||Ie;for(i in s)i in o||Re(r,i,s[i],void 0,n,t.$flags$);for(i in o)Re(r,i,s[i],o[i],n,t.$flags$)},_t=(e,t,n,i)=>{let r=t.$children$[n],s=0,o,a,l;if(On||(re=!0,r.$tag$==="slot"&&(N&&i.classList.add(N+"-s"),r.$flags$|=r.$children$?2:1)),r.$text$!==null)o=r.$elm$=A.createTextNode(r.$text$);else if(r.$flags$&1)o=r.$elm$=A.createTextNode("");else{if(y||(y=r.$tag$==="svg"),o=r.$elm$=A.createElementNS(y?Ir:Ur,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),In(null,r,y),Rr(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),r.$children$)for(s=0;s<r.$children$.length;++s)a=_t(e,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=Et,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=kn,o["s-sn"]=r.$name$||"",l=e&&e.$children$&&e.$children$[n],l&&l.$tag$===r.$tag$&&e.$elm$&&nt(e.$elm$,!1)),o},nt=(e,t)=>{m.$flags$|=1;const n=e.childNodes;for(let i=n.length-1;i>=0;i--){const r=n[i];r["s-hn"]!==Et&&r["s-ol"]&&(Mn(r).insertBefore(r,ae(r)),r["s-ol"].remove(),r["s-ol"]=void 0,re=!0),t&&nt(r,t)}m.$flags$&=-2},Un=(e,t,n,i,r,s)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===Et&&(o=o.shadowRoot);r<=s;++r)i[r]&&(a=_t(null,n,r,e),a&&(i[r].$elm$=a,o.insertBefore(a,ae(t))))},Rn=(e,t,n,i,r)=>{for(;t<=n;++t)(i=e[t])&&(r=i.$elm$,Nn(i),yt=!0,r["s-ol"]?r["s-ol"].remove():nt(r,!0),r.remove())},Dr=(e,t,n,i)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=i.length-1,d=i[0],f=i[h],$,g;for(;r<=l&&s<=h;)if(c==null)c=t[++r];else if(u==null)u=t[--l];else if(d==null)d=i[++s];else if(f==null)f=i[--h];else if(ut(c,d))D(c,d),c=t[++r],d=i[++s];else if(ut(u,f))D(u,f),u=t[--l],f=i[--h];else if(ut(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(c.$elm$.parentNode,!1),D(c,f),e.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=i[--h];else if(ut(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(u.$elm$.parentNode,!1),D(u,d),e.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=i[++s];else{for(o=-1,a=r;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=_t(t&&t[s],n,o,e):(D(g,d),t[o]=void 0,$=g.$elm$),d=i[++s]):($=_t(t&&t[s],n,s,e),d=i[++s]),$&&Mn(c.$elm$).insertBefore($,ae(c.$elm$))}r>l?Un(e,i[h+1]==null?null:i[h+1].$elm$,n,i,s,h):s>h&&Rn(t,r,l)},ut=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,ae=e=>e&&e["s-ol"]||e,Mn=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,D=(e,t)=>{const n=t.$elm$=e.$elm$,i=e.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(y=s==="svg"?!0:s==="foreignObject"?!1:y,s==="slot"||In(e,t,y),i!==null&&r!==null?Dr(n,i,t,r):r!==null?(e.$text$!==null&&(n.textContent=""),Un(n,null,t,r,0,r.length-1)):i!==null&&Rn(i,0,i.length-1),y&&s==="svg"&&(y=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},jn=e=>{let t=e.childNodes,n,i,r,s,o,a;for(i=0,r=t.length;i<r;i++)if(n=t[i],n.nodeType===1){if(n["s-sr"]){for(o=n["s-sn"],n.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==n["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){n.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){n.hidden=!0;break}}jn(n)}},S=[],Hn=e=>{let t,n,i,r,s,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(i=n.parentNode.childNodes,r=t["s-sn"],o=i.length-1;o>=0;o--)n=i[o],!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]&&(je(n,r)?(s=S.find(u=>u.$nodeToRelocate$===n),yt=!0,n["s-sn"]=n["s-sn"]||r,s?s.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&S.map(u=>{je(u.$nodeToRelocate$,n["s-sn"])&&(s=S.find(h=>h.$nodeToRelocate$===n),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):S.some(u=>u.$nodeToRelocate$===n)||S.push({$nodeToRelocate$:n}));t.nodeType===1&&Hn(t)}},je=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",Nn=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Nn)},Br=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,r=e.$vnode$||bt(null,null),s=Mr(t)?t:z(null,null,t);Et=n.tagName,i.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=n[o])),s.$tag$=null,s.$flags$|=4,e.$vnode$=s,s.$elm$=r.$elm$=n.shadowRoot||n,N=n["s-sc"],kn=n["s-cr"],On=(i.$flags$&1)!==0,yt=!1,D(r,s);{if(m.$flags$|=1,re){Hn(s.$elm$);let o,a,l,c,u,h,d=0;for(;d<S.length;d++)o=S[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<S.length;d++)if(o=S[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}yt&&jn(s.$elm$),m.$flags$&=-2,S.length=0}},zr=e=>e,Fr=(e,t,n)=>{const i=zr(e);return{emit:r=>Wr(i,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},Wr=(e,t,n)=>{const i=m.ce(t,n);return e.dispatchEvent(i),i},Gr=(e,t)=>{},Dn=(e,t)=>(e.$flags$|=16,Gr(e,e.$ancestorComponent$),cs(()=>qr(e,t))),qr=(e,t)=>{const n=e.$hostElement$,i=U("scheduleUpdate",e.$cmpMeta$.$tagName$),r=n;let s;return t?s=F(r,"componentWillLoad"):s=F(r,"componentWillUpdate"),s=He(s,()=>F(r,"componentWillRender")),i(),He(s,()=>Yr(e,r,t))},Yr=async(e,t,n)=>{const i=e.$hostElement$,r=U("update",e.$cmpMeta$.$tagName$);i["s-rc"],n&&Pr(e);const s=U("render",e.$cmpMeta$.$tagName$);Zr(e,t,i),s(),r(),Kr(e)},Zr=(e,t,n)=>{try{Te=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Br(e,t))}catch(a){ot(a,e.$hostElement$)}return Te=null,null},Kr=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=U("postUpdate",t),r=n;e.$ancestorComponent$,F(r,"componentDidRender"),e.$flags$&64?(F(r,"componentDidUpdate"),i()):(e.$flags$|=64,F(r,"componentDidLoad"),i())},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(i){ot(i)}},He=(e,t)=>e&&e.then?e.then(t):t(),Qr=(e,t)=>e!=null&&!se(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Xr=(e,t)=>Ot(e).$instanceValues$.get(t),Jr=(e,t,n,i)=>{const r=Ot(e),s=e,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;n=Qr(n,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(n);if(n!==o&&!c){r.$instanceValues$.set(t,n);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(d=>{try{l[d](n,o,t)}catch(f){ot(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,o,t)===!1)return;Dn(r,!1)}}}},Vr=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),r=e.prototype;i.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return Xr(this,s)},set(a){Jr(this,s,a,t)},configurable:!0,enumerable:!0})});{const s=new Map;r.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=s.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(r.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return s.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ts=async(e,t,n,i,r)=>{if(!(t.$flags$&32)&&(r=e.constructor,t.$flags$|=32,customElements.whenDefined(n.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Lr(e)]);const a=Ln(n,t.$modeName$);if(!wt.has(a)){const l=U("registerStyles",n.$tagName$);Or(a,o,!!(n.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Dn(t,!0))()},es=e=>{},ns=e=>{if(!(m.$flags$&1)){const t=Ot(e),n=t.$cmpMeta$,i=U("connectedCallback",n.$tagName$);t.$flags$&1?(Pn(e,t,n.$listeners$),es(t.$lazyInstance$)):(t.$flags$|=1,n.$flags$&12&&is(e),n.$members$&&Object.entries(n.$members$).map(([r,[s]])=>{if(s&31&&e.hasOwnProperty(r)){const o=e[r];delete e[r],e[r]=o}}),ts(e,t,n)),i()}},is=e=>{const t=e["s-cr"]=A.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},rs=e=>{if(!(m.$flags$&1)){const t=Ot(e);t.$rmListeners$&&(t.$rmListeners$.map(n=>n()),t.$rmListeners$=void 0)}},Bn=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const i=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){ss(this,n)},connectedCallback(){ns(this),i&&i.call(this)},disconnectedCallback(){rs(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}),e.is=n.$tagName$,Vr(e,n)},zn=new WeakMap,Ot=e=>zn.get(e),ss=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return Pn(e,n,t.$listeners$),zn.set(e,n)},Ne=(e,t)=>t in e,ot=(e,t)=>(0,console.error)(e,t),wt=new Map,os=[],De=[],Fn=[],as=(e,t)=>n=>{e.push(n),Wt||(Wt=!0,t&&m.$flags$&4?ls(Gt):m.raf(Gt))},Be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){ot(n)}e.length=0},Gt=()=>{Be(De),Be(Fn),(Wt=De.length>0)&&m.raf(Gt)},ls=e=>xr().then(e),cs=as(Fn,!0),us=(e={})=>{const{content:t="",title:n,attributes:i=[]}=e;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return n&&(r=`<title>${n}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},hs=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function ds(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class fs{constructor(t){this.voca_component=t,this.voca_added=ds(new Date)}}const ps="telia-vst{display:none}",gs=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Fr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new fs(this.dataTrackingId))}render(){return z(oe,null)}static get style(){return ps}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Wn(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,gs);break}})}Wn();function qt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function $s(){if(typeof qt().vocadsIcons!==void 0)return qt().vocadsIcons}function vs(){return qt().vocadsIconsRegistered}const ms=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",ys=Bn(class extends Tn{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(vs()&&this.name){const e=$s();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const n=us({content:hs(e),attributes:t,title:this.allyTitle});return z(oe,{class:`telia-icon telia-icon--${this.size}`},z("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:n}),z("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return ms}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function bs(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,ys);break;case"telia-vst":customElements.get(t)||Wn();break}})}bs();var _s=Object.defineProperty,ws=Object.getOwnPropertyDescriptor,Ss=(e,t,n,i)=>{for(var r=i>1?void 0:i?ws(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(r=(i?o(t,n,r):o(r))||r);return i&&r&&_s(t,n,r),r};const Gn=Cn(x);class Tt extends Gn{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new wr(this)}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}render(){var s;const t=this.application.branding(),n=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,i=this.application.texts,r=i.get("widget-header.header","ACE Widget");return _` <div class="widget-header">
341
341
  ${n?_` <img
342
342
  src=${n}
343
343
  class="logotype"
@@ -355,30 +355,30 @@
355
355
  class="widget-header__action-button"
356
356
  title=${i.getOrFallback("widget-header.ellipses","Options")}
357
357
  >
358
- <telia-icon svg=${Yn.svg}></telia-icon>
358
+ <telia-icon svg=${ar.svg}></telia-icon>
359
359
  </button>
360
360
  <button
361
361
  @click=${this._onMinimizeClick}
362
362
  class="widget-header__action-button"
363
363
  title=${i.getOrFallback("widget-header.minimize","Minimize")}
364
364
  >
365
- <telia-icon svg=${Gn.svg}></telia-icon>
365
+ <telia-icon svg=${or.svg}></telia-icon>
366
366
  </button>
367
367
  </div>
368
368
 
369
369
  ${this.optionsIsVisible?_` <div
370
370
  class="options-menu"
371
- ${wn({keyframeOptions:{},in:Ee,out:Ee,stabilizeOut:!0,skipInitial:!1})}
371
+ ${wn({keyframeOptions:{},in:Ce,out:Ce,stabilizeOut:!0,skipInitial:!1})}
372
372
  >
373
373
  ${this.options.options.map(o=>_`<button
374
374
  class="options-menu__item"
375
- @click=${()=>{this._onToggleOptionsMenuClick(),o.onClick()}}
375
+ @click=${()=>{o.closeOnClick&&this._onToggleOptionsMenuClick(),o.onClick(),this.requestUpdate()}}
376
376
  >
377
377
  ${o.label}
378
378
  ${o.icon?_`<telia-icon svg=${o.icon} size="sm"></telia-icon>`:p}
379
379
  </button>`)}
380
380
  </div>`:p}
381
- </div>`}}St.styles=[qn.styles||[],R`
381
+ </div>`}}Tt.styles=[Gn.styles||[],R`
382
382
  :host {
383
383
  --header-text-color: var(--text-on-primary-background);
384
384
  }
@@ -470,4 +470,4 @@
470
470
  background-color: var(--secondary-background);
471
471
  color: var(--text-on-secondary-background);
472
472
  }
473
- `];ws([q()],St.prototype,"optionsIsVisible",2);const Ss=Object.freeze(Object.defineProperty({__proto__:null,WidgetHeader:St,default:St},Symbol.toStringTag,{value:"Module"}));exports.chevronDown=Gn;exports.moreHorizontal=Yn;exports.widgetHeader=Ss;
473
+ `];Ss([Y()],Tt.prototype,"optionsIsVisible",2);exports.WidgetHeader=Tt;exports.default=Tt;