@telia-ace/widget-components-widget-header-flamingo 1.1.56-rc.0 → 1.1.56-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-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-6ba53868.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.56-rc.
|
|
3
|
+
"version": "1.1.56-rc.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.56-rc.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.56-rc.2",
|
|
7
7
|
"@teliads/components": "^22.1.1",
|
|
8
8
|
"@teliads/icons": "^8.4.0",
|
|
9
9
|
"@lit-labs/motion": "^1.0.6",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var zt=function(i,t){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])},zt(i,t)};function nt(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var zt=function(i,t){return zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])},zt(i,t)};function nt(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Yi(i,t,e,n){function r(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(h){o(h)}}function l(u){try{c(n.throw(u))}catch(h){o(h)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((n=n.apply(i,t||[])).next())})}function Ye(i,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,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(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(n=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 e.label++,{value:c[1],done:!1};case 5:e.label++,r=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){e.label=c[1];break}if(c[0]===6&&e.label<s[1]){e.label=s[1],s=c;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(c);break}s[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],r=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function W(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var n=e.call(i),r,s=[],o;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return s}function pt(i,t,e){if(e||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return i.concat(s||Array.prototype.slice.call(t))}function B(i){return this instanceof B?(this.v=i,this):new B(i)}function qi(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(i,t||[]),r,s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(d){n[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(n[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 Gi(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof W=="function"?W(i):i[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=i[s]&&function(o){return new Promise(function(a,l){o=i[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(i){return typeof i=="function"}function qe(i){var t=function(n){Error.call(n),n.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var It=qe(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(n,r){return r+1+") "+n.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Ft(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var At=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,n,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&&(e=a.return)&&e.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 It?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{he($)}catch(g){s=s??[],g instanceof It?s=pt(pt([],ft(s)),ft(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}if(s)throw new It(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)he(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Ft(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Ft(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ye=At.EMPTY;function Ze(i){return i instanceof At||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function he(i){v(i)?i():i.unsubscribe()}var Ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Wt={setTimeout:function(i,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var r=Wt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,pt([i,t],ft(e))):setTimeout.apply(void 0,pt([i,t],ft(e)))},clearTimeout:function(i){var t=Wt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function Qe(i){Wt.setTimeout(function(){throw i})}function de(){}function ht(i){i()}var Kt=function(i){nt(t,i);function t(e){var n=i.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Ze(e)&&e.add(n)):n.destination=Xi,n}return t.create=function(e,n,r){return new Gt(e,n,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(At),Zi=Function.prototype.bind;function Rt(i,t){return Zi.call(i,t)}var Ki=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){lt(n)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){lt(n)}else lt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){lt(e)}},i}(),Gt=function(i){nt(t,i);function t(e,n,r){var s=i.call(this)||this,o;if(v(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{var a;s&&Ke.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&Rt(e.next,a),error:e.error&&Rt(e.error,a),complete:e.complete&&Rt(e.complete,a)}):o=e}return s.destination=new Ki(o),s}return t}(Kt);function lt(i){Qe(i)}function Qi(i){throw i}var Xi={closed:!0,next:de,error:Qi,complete:de},Qt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xe(i){return i}function Ji(i){return i.length===0?Xe:i.length===1?i[0]:function(e){return i.reduce(function(n,r){return r(n)},e)}}var w=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,n){var r=this,s=tn(t)?t:new Gt(t,e,n);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},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var n=this;return e=fe(e),new e(function(r,s){var o=new Gt({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});n.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Qt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ji(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=fe(t),new t(function(n,r){var s;e.subscribe(function(o){return s=o},function(o){return r(o)},function(){return n(s)})})},i.create=function(t){return new i(t)},i}();function fe(i){var t;return(t=i??Ke.Promise)!==null&&t!==void 0?t:Promise}function Vi(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function tn(i){return i&&i instanceof Kt||Vi(i)&&Ze(i)}function en(i){return v(i==null?void 0:i.lift)}function Ct(i){return function(t){if(en(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function gt(i,t,e,n,r){return new nn(i,t,e,n,r)}var nn=function(i){nt(t,i);function t(e,n,r,s,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=n?function(c){try{n(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=s?function(c){try{s(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=r?function(){try{r()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;i.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(Kt),rn=qe(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Je=function(i){nt(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var n=new pe(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new rn},t.prototype.next=function(e){var n=this;ht(function(){var r,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=W(n.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}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(e){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var r=n.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;ht(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var n=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Ye:(this.currentObservers=null,a.push(e),new At(function(){n.currentObservers=null,Ft(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,r=n.hasError,s=n.thrownError,o=n.isStopped;r?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t.create=function(e,n){return new pe(e,n)},t}(w),pe=function(i){nt(t,i);function t(e,n){var r=i.call(this)||this;return r.destination=e,r.source=n,r}return t.prototype.next=function(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)},t.prototype.error=function(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Ye},t}(Je),sn=new w(function(i){return i.complete()});function on(i){return i&&v(i.schedule)}function Ve(i){return i[i.length-1]}function an(i){return on(Ve(i))?i.pop():void 0}function ln(i,t){return typeof Ve(i)=="number"?i.pop():t}var ti=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function ei(i){return v(i==null?void 0:i.then)}function ii(i){return v(i[Qt])}function ni(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function ri(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function cn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var si=cn();function oi(i){return v(i==null?void 0:i[si])}function ai(i){return qi(this,arguments,function(){var e,n,r,s;return Ge(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,B(e.read())];case 3:return n=o.sent(),r=n.value,s=n.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 e.releaseLock(),[7];case 10:return[2]}})})}function li(i){return v(i==null?void 0:i.getReader)}function q(i){if(i instanceof w)return i;if(i!=null){if(ii(i))return un(i);if(ti(i))return hn(i);if(ei(i))return dn(i);if(ni(i))return ci(i);if(oi(i))return fn(i);if(li(i))return pn(i)}throw ri(i)}function un(i){return new w(function(t){var e=i[Qt]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hn(i){return new w(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function dn(i){return new w(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Qe)})}function fn(i){return new w(function(t){var e,n;try{for(var r=W(i),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.complete()})}function ci(i){return new w(function(t){gn(i,t).catch(function(e){return t.error(e)})})}function pn(i){return ci(ai(i))}function gn(i,t){var e,n,r,s;return Gi(this,void 0,void 0,function(){var o,a;return Ge(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Yi(i),l.label=1;case 1:return[4,e.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(o=n.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]),n&&!n.done&&(s=e.return)?[4,s.call(e)]:[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(i,t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=!1);var s=t.schedule(function(){e(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(s),!r)return s}function ui(i,t){return t===void 0&&(t=0),Ct(function(e,n){e.subscribe(gt(n,function(r){return E(n,i,function(){return n.next(r)},t)},function(){return E(n,i,function(){return n.complete()},t)},function(r){return E(n,i,function(){return n.error(r)},t)}))})}function hi(i,t){return t===void 0&&(t=0),Ct(function(e,n){n.add(i.schedule(function(){return e.subscribe(n)},t))})}function $n(i,t){return q(i).pipe(hi(t),ui(t))}function vn(i,t){return q(i).pipe(hi(t),ui(t))}function mn(i,t){return new w(function(e){var n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}function yn(i,t){return new w(function(e){var n;return E(e,t,function(){n=i[si](),E(e,t,function(){var r,s,o;try{r=n.next(),s=r.value,o=r.done}catch(a){e.error(a);return}o?e.complete():e.next(s)},0,!0)}),function(){return v(n==null?void 0:n.return)&&n.return()}})}function di(i,t){if(!i)throw new Error("Iterable cannot be null");return new w(function(e){E(e,t,function(){var n=i[Symbol.asyncIterator]();E(e,t,function(){n.next().then(function(r){r.done?e.complete():e.next(r.value)})},0,!0)})})}function bn(i,t){return di(ai(i),t)}function _n(i,t){if(i!=null){if(ii(i))return $n(i,t);if(ti(i))return mn(i,t);if(ei(i))return vn(i,t);if(ni(i))return di(i,t);if(oi(i))return yn(i,t);if(li(i))return bn(i,t)}throw ri(i)}function wn(i,t){return t?_n(i,t):q(i)}function Sn(i,t){return Ct(function(e,n){var r=0;e.subscribe(gt(n,function(s){n.next(i.call(t,s,r++))}))})}function xn(i,t,e,n,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<n?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var ue=!1;q(e(g,u++)).subscribe(gt(t,function(Z){r==null||r(Z),s?f(Z):t.next(Z)},function(){ue=!0},void 0,function(){if(ue)try{c--;for(var Z=function(){var at=l.shift();o?E(t,o,function(){return $(at)}):$(at)};l.length&&c<n;)Z();d()}catch(at){t.error(at)}}))};return i.subscribe(gt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function fi(i,t,e){return e===void 0&&(e=1/0),v(t)?fi(function(n,r){return Sn(function(s,o){return t(n,s,r,o)})(q(i(n,r)))},e):(typeof t=="number"&&(e=t),Ct(function(n,r){return xn(n,r,i,e)}))}function An(i){return i===void 0&&(i=1/0),fi(Xe,i)}function Cn(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=an(i),n=ln(i,1/0),r=i;return r.length?r.length===1?q(r[0]):An(n)(wn(r,e)):sn}/**
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Ft(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var At=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,n,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&&(e=a.return)&&e.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 It?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{he($)}catch(g){s=s??[],g instanceof It?s=pt(pt([],ft(s)),ft(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}if(s)throw new It(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)he(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Ft(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Ft(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ge=At.EMPTY;function Ze(i){return i instanceof At||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function he(i){v(i)?i():i.unsubscribe()}var Ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Wt={setTimeout:function(i,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var r=Wt.delegate;return r!=null&&r.setTimeout?r.setTimeout.apply(r,pt([i,t],ft(e))):setTimeout.apply(void 0,pt([i,t],ft(e)))},clearTimeout:function(i){var t=Wt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function Qe(i){Wt.setTimeout(function(){throw i})}function de(){}function ht(i){i()}var Kt=function(i){nt(t,i);function t(e){var n=i.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Ze(e)&&e.add(n)):n.destination=Xi,n}return t.create=function(e,n,r){return new Yt(e,n,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(At),Zi=Function.prototype.bind;function Rt(i,t){return Zi.call(i,t)}var Ki=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){lt(n)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){lt(n)}else lt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){lt(e)}},i}(),Yt=function(i){nt(t,i);function t(e,n,r){var s=i.call(this)||this,o;if(v(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{var a;s&&Ke.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return s.unsubscribe()},o={next:e.next&&Rt(e.next,a),error:e.error&&Rt(e.error,a),complete:e.complete&&Rt(e.complete,a)}):o=e}return s.destination=new Ki(o),s}return t}(Kt);function lt(i){Qe(i)}function Qi(i){throw i}var Xi={closed:!0,next:de,error:Qi,complete:de},Qt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xe(i){return i}function Ji(i){return i.length===0?Xe:i.length===1?i[0]:function(e){return i.reduce(function(n,r){return r(n)},e)}}var w=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,n){var r=this,s=tn(t)?t:new Yt(t,e,n);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},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var n=this;return e=fe(e),new e(function(r,s){var o=new Yt({next:function(a){try{t(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});n.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Qt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ji(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=fe(t),new t(function(n,r){var s;e.subscribe(function(o){return s=o},function(o){return r(o)},function(){return n(s)})})},i.create=function(t){return new i(t)},i}();function fe(i){var t;return(t=i??Ke.Promise)!==null&&t!==void 0?t:Promise}function Vi(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function tn(i){return i&&i instanceof Kt||Vi(i)&&Ze(i)}function en(i){return v(i==null?void 0:i.lift)}function Ct(i){return function(t){if(en(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function gt(i,t,e,n,r){return new nn(i,t,e,n,r)}var nn=function(i){nt(t,i);function t(e,n,r,s,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=n?function(c){try{n(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=s?function(c){try{s(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=r?function(){try{r()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;i.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(Kt),rn=qe(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Je=function(i){nt(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var n=new pe(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new rn},t.prototype.next=function(e){var n=this;ht(function(){var r,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=W(n.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}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(e){var n=this;ht(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var r=n.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;ht(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var n=this,r=this,s=r.hasError,o=r.isStopped,a=r.observers;return s||o?Ge:(this.currentObservers=null,a.push(e),new At(function(){n.currentObservers=null,Ft(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,r=n.hasError,s=n.thrownError,o=n.isStopped;r?e.error(s):o&&e.complete()},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t.create=function(e,n){return new pe(e,n)},t}(w),pe=function(i){nt(t,i);function t(e,n){var r=i.call(this)||this;return r.destination=e,r.source=n,r}return t.prototype.next=function(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)},t.prototype.error=function(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Ge},t}(Je),sn=new w(function(i){return i.complete()});function on(i){return i&&v(i.schedule)}function Ve(i){return i[i.length-1]}function an(i){return on(Ve(i))?i.pop():void 0}function ln(i,t){return typeof Ve(i)=="number"?i.pop():t}var ti=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function ei(i){return v(i==null?void 0:i.then)}function ii(i){return v(i[Qt])}function ni(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function ri(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function cn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var si=cn();function oi(i){return v(i==null?void 0:i[si])}function ai(i){return qi(this,arguments,function(){var e,n,r,s;return Ye(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,B(e.read())];case 3:return n=o.sent(),r=n.value,s=n.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 e.releaseLock(),[7];case 10:return[2]}})})}function li(i){return v(i==null?void 0:i.getReader)}function q(i){if(i instanceof w)return i;if(i!=null){if(ii(i))return un(i);if(ti(i))return hn(i);if(ei(i))return dn(i);if(ni(i))return ci(i);if(oi(i))return fn(i);if(li(i))return pn(i)}throw ri(i)}function un(i){return new w(function(t){var e=i[Qt]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hn(i){return new w(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function dn(i){return new w(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Qe)})}function fn(i){return new w(function(t){var e,n;try{for(var r=W(i),s=r.next();!s.done;s=r.next()){var o=s.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.complete()})}function ci(i){return new w(function(t){gn(i,t).catch(function(e){return t.error(e)})})}function pn(i){return ci(ai(i))}function gn(i,t){var e,n,r,s;return Yi(this,void 0,void 0,function(){var o,a;return Ye(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Gi(i),l.label=1;case 1:return[4,e.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(o=n.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]),n&&!n.done&&(s=e.return)?[4,s.call(e)]:[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(i,t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=!1);var s=t.schedule(function(){e(),r?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(s),!r)return s}function ui(i,t){return t===void 0&&(t=0),Ct(function(e,n){e.subscribe(gt(n,function(r){return E(n,i,function(){return n.next(r)},t)},function(){return E(n,i,function(){return n.complete()},t)},function(r){return E(n,i,function(){return n.error(r)},t)}))})}function hi(i,t){return t===void 0&&(t=0),Ct(function(e,n){n.add(i.schedule(function(){return e.subscribe(n)},t))})}function $n(i,t){return q(i).pipe(hi(t),ui(t))}function vn(i,t){return q(i).pipe(hi(t),ui(t))}function mn(i,t){return new w(function(e){var n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}function yn(i,t){return new w(function(e){var n;return E(e,t,function(){n=i[si](),E(e,t,function(){var r,s,o;try{r=n.next(),s=r.value,o=r.done}catch(a){e.error(a);return}o?e.complete():e.next(s)},0,!0)}),function(){return v(n==null?void 0:n.return)&&n.return()}})}function di(i,t){if(!i)throw new Error("Iterable cannot be null");return new w(function(e){E(e,t,function(){var n=i[Symbol.asyncIterator]();E(e,t,function(){n.next().then(function(r){r.done?e.complete():e.next(r.value)})},0,!0)})})}function bn(i,t){return di(ai(i),t)}function _n(i,t){if(i!=null){if(ii(i))return $n(i,t);if(ti(i))return mn(i,t);if(ei(i))return vn(i,t);if(ni(i))return di(i,t);if(oi(i))return yn(i,t);if(li(i))return bn(i,t)}throw ri(i)}function wn(i,t){return t?_n(i,t):q(i)}function Sn(i,t){return Ct(function(e,n){var r=0;e.subscribe(gt(n,function(s){n.next(i.call(t,s,r++))}))})}function xn(i,t,e,n,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<n?$(g):l.push(g)},$=function(g){s&&t.next(g),c++;var ue=!1;q(e(g,u++)).subscribe(gt(t,function(Z){r==null||r(Z),s?f(Z):t.next(Z)},function(){ue=!0},void 0,function(){if(ue)try{c--;for(var Z=function(){var at=l.shift();o?E(t,o,function(){return $(at)}):$(at)};l.length&&c<n;)Z();d()}catch(at){t.error(at)}}))};return i.subscribe(gt(t,f,function(){h=!0,d()})),function(){a==null||a()}}function fi(i,t,e){return e===void 0&&(e=1/0),v(t)?fi(function(n,r){return Sn(function(s,o){return t(n,s,r,o)})(q(i(n,r)))},e):(typeof t=="number"&&(e=t),Ct(function(n,r){return xn(n,r,i,e)}))}function An(i){return i===void 0&&(i=1/0),fi(Xe,i)}function Cn(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=an(i),n=ln(i,1/0),r=i;return r.length?r.length===1?q(r[0]):An(n)(wn(r,e)):sn}/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -8,25 +8,25 @@
|
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:On,defineProperty:Tn,getOwnPropertyDescriptor:Pn,getOwnPropertyNames:Ln,getOwnPropertySymbols:In,getPrototypeOf:Rn}=Object,k=globalThis,ve=k.trustedTypes,Un=ve?ve.emptyScript:"",Ut=k.reactiveElementPolyfillSupport,Q=(i,t)=>i,$t={toAttribute(i,t){switch(t){case Boolean:i=i?Un:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},Vt=(i,t)=>!On(i,t),me={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Vt};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,e=me){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&Tn(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:s}=Pn(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);s.call(this,o),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??me}static _$Ei(){if(this.hasOwnProperty(Q("elementProperties")))return;const t=Rn(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 e=this.properties,n=[...Ln(e),...In(e)];for(const r of n)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,r]of e)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const r=this._$Eu(e,n);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const r of n)e.unshift($e(r))}else t!==void 0&&e.push($e(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n: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._$
|
|
11
|
+
*/const{is:On,defineProperty:Tn,getOwnPropertyDescriptor:Pn,getOwnPropertyNames:Ln,getOwnPropertySymbols:In,getPrototypeOf:Rn}=Object,k=globalThis,ve=k.trustedTypes,Un=ve?ve.emptyScript:"",Ut=k.reactiveElementPolyfillSupport,Q=(i,t)=>i,$t={toAttribute(i,t){switch(t){case Boolean:i=i?Un:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},Vt=(i,t)=>!On(i,t),me={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Vt};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,e=me){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(t,n,e);r!==void 0&&Tn(this.prototype,t,r)}}static getPropertyDescriptor(t,e,n){const{get:r,set:s}=Pn(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);s.call(this,o),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??me}static _$Ei(){if(this.hasOwnProperty(Q("elementProperties")))return;const t=Rn(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 e=this.properties,n=[...Ln(e),...In(e)];for(const r of n)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,r]of e)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const r=this._$Eu(e,n);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const r of n)e.unshift($e(r))}else t!==void 0&&e.push($e(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n: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._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kn(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){var s;const n=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,n);if(r!==void 0&&n.reflect===!0){const o=(((s=n.converter)==null?void 0:s.toAttribute)!==void 0?n.converter:$t).toAttribute(e,n.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var s;const n=this.constructor,r=n._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=n.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(e,o.type),this._$Em=null}}requestUpdate(t,e,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??Vt)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),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.P(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(n=this._$EO)==null||n.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var r;return(r=n.hostUpdated)==null?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};j.elementStyles=[],j.shadowRootOptions={mode:"open"},j[Q("elementProperties")]=new Map,j[Q("finalized")]=new Map,Ut==null||Ut({ReactiveElement:j}),(k.reactiveElementVersions??(k.reactiveElementVersions=[])).push("2.0.4");/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2017 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15
15
|
*/const X=globalThis,vt=X.trustedTypes,ye=vt?vt.createPolicy("lit-html",{createHTML:i=>i}):void 0,gi="$lit$",C=`lit$${(Math.random()+"").slice(9)}$`,$i="?"+C,Mn=`<${$i}>`,L=document,V=()=>L.createComment(""),tt=i=>i===null||typeof i!="object"&&typeof i!="function",vi=Array.isArray,jn=i=>vi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Mt=`[
|
|
16
16
|
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,be=/-->/g,_e=/>/g,O=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
17
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),we=/'/g,Se=/"/g,mi=/^(?:script|style|textarea|title)$/i,Hn=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),_=Hn(1),I=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),xe=new WeakMap,P=L.createTreeWalker(L,129);function yi(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ye!==void 0?ye.createHTML(t):t}const Nn=(i,t)=>{const e=i.length-1,n=[];let r,s=t===2?"<svg>":"",o=K;for(let a=0;a<e;a++){const l=i[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=be:u[1]!==void 0?o=_e:u[2]!==void 0?(mi.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]==='"'?Se:we):o===Se||o===we?o=O:o===be||o===_e?o=K:(o=O,r=void 0);const f=o===O&&i[a+1].startsWith("/>")?" ":"";s+=o===K?l+Mn:h>=0?(n.push(c),l.slice(0,h)+gi+l.slice(h)+C+f):l+C+(h===-2?a:f)}return[yi(i,s+(i[e]||"<?>")+(t===2?"</svg>":"")),n]};class et{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,u]=Nn(t,e);if(this.el=et.createElement(c,n),P.currentNode=this.el.content,e===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(gi)){const d=u[o++],f=r.getAttribute(h).split(C),$=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:$[2],strings:f,ctor:$[1]==="."?Bn:$[1]==="?"?zn:$[1]==="@"?Fn:Et}),r.removeAttribute(h)}else h.startsWith(C)&&(l.push({type:6,index:s}),r.removeAttribute(h));if(mi.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===$i)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,e){const n=L.createElement("template");return n.innerHTML=t,n}}function
|
|
17
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),we=/'/g,Se=/"/g,mi=/^(?:script|style|textarea|title)$/i,Hn=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),_=Hn(1),I=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),xe=new WeakMap,P=L.createTreeWalker(L,129);function yi(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ye!==void 0?ye.createHTML(t):t}const Nn=(i,t)=>{const e=i.length-1,n=[];let r,s=t===2?"<svg>":"",o=K;for(let a=0;a<e;a++){const l=i[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=be:u[1]!==void 0?o=_e:u[2]!==void 0?(mi.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]==='"'?Se:we):o===Se||o===we?o=O:o===be||o===_e?o=K:(o=O,r=void 0);const f=o===O&&i[a+1].startsWith("/>")?" ":"";s+=o===K?l+Mn:h>=0?(n.push(c),l.slice(0,h)+gi+l.slice(h)+C+f):l+C+(h===-2?a:f)}return[yi(i,s+(i[e]||"<?>")+(t===2?"</svg>":"")),n]};class et{constructor({strings:t,_$litType$:e},n){let r;this.parts=[];let s=0,o=0;const a=t.length-1,l=this.parts,[c,u]=Nn(t,e);if(this.el=et.createElement(c,n),P.currentNode=this.el.content,e===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(gi)){const d=u[o++],f=r.getAttribute(h).split(C),$=/([.?@])?(.*)/.exec(d);l.push({type:1,index:s,name:$[2],strings:f,ctor:$[1]==="."?Bn:$[1]==="?"?zn:$[1]==="@"?Fn:Et}),r.removeAttribute(h)}else h.startsWith(C)&&(l.push({type:6,index:s}),r.removeAttribute(h));if(mi.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===$i)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,e){const n=L.createElement("template");return n.innerHTML=t,n}}function Y(i,t,e=i,n){var o,a;if(t===I)return t;let r=n!==void 0?(o=e._$Co)==null?void 0:o[n]:e._$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(i),r._$AT(i,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=r:e._$Cl=r),r!==void 0&&(t=Y(i,r._$AS(i,t.values),r,n)),t}class Dn{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,r=((t==null?void 0:t.creationScope)??L).importNode(e,!0);P.currentNode=r;let s=P.nextNode(),o=0,a=0,l=n[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 Wn(s,this,t)),this._$AV.push(c),l=n[++a]}o!==(l==null?void 0:l.index)&&(s=P.nextNode(),o++)}return P.currentNode=L,r}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class rt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),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.$(t):t.nodeType!==void 0?this.T(t):jn(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==p&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=et.createElement(yi(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(e);else{const o=new Dn(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=xe.get(t.strings);return e===void 0&&xe.set(t.strings,e=new et(t)),e}k(t){vi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,r=0;for(const s of t)r===e.length?e.push(n=new rt(this.S(V()),this.S(V()),this,this.options)):n=e[r],n._$AI(s),r++;r<e.length&&(this._$AR(n&&n._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,r,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=p}_$AI(t,e=this,n,r){const s=this.strings;let o=!1;if(s===void 0)t=Y(this,t,e,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=Y(this,a[n+l],e,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.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Bn extends Et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}let zn=class extends Et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}};class Fn extends Et{constructor(t,e,n,r,s){super(t,e,n,r,s),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??p)===I)return;const n=this._$AH,r=t===p&&n!==p||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==p&&(n===p||r);r&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Wn{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const jt=X.litHtmlPolyfillSupport;jt==null||jt(et,rt),(X.litHtmlVersions??(X.litHtmlVersions=[])).push("3.1.2");const Yn=(i,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let r=n._$litPart$;if(r===void 0){const s=(e==null?void 0:e.renderBefore)??null;n._$litPart$=r=new rt(t.insertBefore(V(),s),s,void 0,e??{})}return r._$AI(i),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 e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=
|
|
21
|
+
*/let x=class extends j{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Yn(e,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 We;x._$litElement$=!0,x.finalized=!0,(We=globalThis.litElementHydrateSupport)==null||We.call(globalThis,{LitElement:x});const Ht=globalThis.litElementPolyfillSupport;Ht==null||Ht({LitElement:x});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const qn={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Vt},
|
|
25
|
+
*/const qn={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:Vt},Gn=(i=qn,t,e)=>{const{kind:n,metadata:r}=e;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(e.name,i),n==="accessor"){const{name:o}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,i)},init(a){return a!==void 0&&this.P(o,void 0,i),a}}}if(n==="setter"){const{name:o}=e;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,i)}}throw Error("Unsupported decorator location: "+n)};function b(i){return(t,e)=>typeof e=="object"?Gn(i,t,e):((n,r,s)=>{const o=r.hasOwnProperty(s);return r.constructor.createProperty(s,o?{...n,wrapped:!0}:n),o?Object.getOwnPropertyDescriptor(r,s):void 0})(i,t,e)}/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function
|
|
29
|
+
*/function G(i){return b({...i,state:!0,attribute:!1})}var Zn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,Qn=(i,t,e,n)=>{for(var r=n>1?void 0:n?Kn(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(r=(n?o(t,e,r):o(r))||r);return n&&r&&Zn(t,e,r),r};class te extends x{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.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}}te.styles=[U`
|
|
30
30
|
:host {
|
|
31
31
|
position: fixed;
|
|
32
32
|
display: flex;
|
|
@@ -54,21 +54,22 @@
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const J=(i,t)=>{var n;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(n=r._$AO)==null||n.call(r,t,!1),J(r,t);return!0},mt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},_i=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),tr(t)}};function Jn(i){this._$AN!==void 0?(mt(this),this._$AM=i,_i(this)):this._$AM=i}function Vn(i,t=!1,e=0){const n=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(n))for(let s=e;s<n.length;s++)J(n[s],!1),mt(n[s]);else n!=null&&(J(n,!1),mt(n));else J(this,i)}const tr=i=>{i.type==ee.CHILD&&(i._$AP??(i._$AP=Vn),i._$AQ??(i._$AQ=Jn))};class wi extends bi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),_i(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,r;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(r=this.disconnected)==null||r.call(this)),e&&(J(this,t),mt(this))}setValue(t){if(Xn(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const er=new WeakMap;let Ae=0;const Nt=new Map,Ce=new WeakSet,Ee=()=>new Promise(i=>requestAnimationFrame(i)),ke=[{transform:"translateY(-100%) scale(0)",opacity:0}],ir=[{transform:"translateX(100%) scale(0)",opacity:0}],Oe=(i,t)=>{const e=i-t;return e===0?void 0:e},Te=(i,t)=>{const e=i/t;return e===1?void 0:e},Dt={left:(i,t)=>{const e=Oe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Oe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const n=Te(i,t);return{value:n,overrideFrom:e,transform:n==null||isNaN(n)?void 0:`scaleX(${n})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const n=Te(i,t);return{value:n,overrideFrom:e,transform:n==null||isNaN(n)?void 0:`scaleY(${n})`}}},nr={duration:333,easing:"ease-in-out"},rr=["left","top","width","height","opacity","color","background"],Pe=new WeakMap;class sr extends wi{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===ee.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(e=>{this.h=e})}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,[e]){var r;const n=this.l===void 0;return n&&(this.l=(r=t.options)==null?void 0:r.host,this.l.addController(this),this.element=t.element,Pe.set(this.element,this)),this.optionsOrCallback=e,(n||typeof e!="function")&&this.u(e),this.render(e)}u(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=rr),this.options=t}p(){const t={},e=this.element.getBoundingClientRect(),n=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const s=e[r]??(Dt[r]?void 0:n[r]),o=Number(s);t[r]=isNaN(o)?s+"":o}),t}m(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((n,r)=>{if(Array.isArray(n)){if(Array.isArray(r)&&r.length===n.length&&n.every((s,o)=>s===r[o]))return!1}else if(r===n)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&e&&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 Ee;const e=this._(),n=this.A(this.options.keyframeOptions,e),r=this.p();if(this.g!==void 0){const{from:s,to:o}=this.O(this.g,r,e);this.log("measured",[this.g,r,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Nt.get(this.options.inId);if(s){Nt.delete(this.options.inId);const{from:o,to:a}=this.O(s,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ae++,t.forEach(l=>l.zIndex=Ae)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,n)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,e;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.o||(this.options.id!==void 0&&Nt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await Ee(),(e=this.t)==null?void 0:e.isConnected){const n=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,n),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,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,n;t&&((n=(e=this.options).onComplete)==null||n.call(e,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const n=Pe.get(e);n&&!n.isDisabled()&&n&&t.push(n)}return t}get isHostRendered(){const t=Ce.has(this.l);return t||this.l.updateComplete.then(()=>{Ce.add(this.l)}),t}A(t,e=this._()){const n={...nr};return e.forEach(r=>Object.assign(n,r.options.keyframeOptions)),Object.assign(n,t),n}O(t,e,n){t={...t},e={...e};const r=n.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&&e.left!==void 0&&(t.left=s*t.left,e.left=s*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,n=!1){const r={},s={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in Dt){const h=Dt[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=n?"center center":"top left",this.animatingProperties=a,o?[r,s]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let n=!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,e]),n=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(n),n}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const Si=ie(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>'};/**
|
|
57
|
+
*/const J=(i,t)=>{var n;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(n=r._$AO)==null||n.call(r,t,!1),J(r,t);return!0},mt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},_i=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),tr(t)}};function Jn(i){this._$AN!==void 0?(mt(this),this._$AM=i,_i(this)):this._$AM=i}function Vn(i,t=!1,e=0){const n=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(n))for(let s=e;s<n.length;s++)J(n[s],!1),mt(n[s]);else n!=null&&(J(n,!1),mt(n));else J(this,i)}const tr=i=>{i.type==ee.CHILD&&(i._$AP??(i._$AP=Vn),i._$AQ??(i._$AQ=Jn))};class wi extends bi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),_i(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,r;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(r=this.disconnected)==null||r.call(this)),e&&(J(this,t),mt(this))}setValue(t){if(Xn(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const er=new WeakMap;let Ae=0;const Nt=new Map,Ce=new WeakSet,Ee=()=>new Promise(i=>requestAnimationFrame(i)),ke=[{transform:"translateY(-100%) scale(0)",opacity:0}],ir=[{transform:"translateX(100%) scale(0)",opacity:0}],Oe=(i,t)=>{const e=i-t;return e===0?void 0:e},Te=(i,t)=>{const e=i/t;return e===1?void 0:e},Dt={left:(i,t)=>{const e=Oe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Oe(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const n=Te(i,t);return{value:n,overrideFrom:e,transform:n==null||isNaN(n)?void 0:`scaleX(${n})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const n=Te(i,t);return{value:n,overrideFrom:e,transform:n==null||isNaN(n)?void 0:`scaleY(${n})`}}},nr={duration:333,easing:"ease-in-out"},rr=["left","top","width","height","opacity","color","background"],Pe=new WeakMap;class sr extends wi{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===ee.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(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return er.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const n=this.u===void 0;return n&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(s=>this.t=!0),this.element=t.element,Pe.set(this.element,this)),this.optionsOrCallback=e,(n||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=rr),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),n=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const s=e[r]??(Dt[r]?void 0:n[r]),o=Number(s);t[r]=isNaN(o)?s+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((n,r)=>{if(Array.isArray(n)){if(Array.isArray(r)&&r.length===n.length&&n.every((s,o)=>s===r[o]))return!1}else if(r===n)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Ee;const e=this.O(),n=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:s,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,s,o]),t=this.calculateKeyframes(s,o)}else{const s=Nt.get(this.options.inId);if(s){Nt.delete(this.options.inId);const{from:o,to:a}=this.N(s,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ae++,t.forEach(l=>l.zIndex=Ae)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,n)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&Nt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Ee(),(e=this.i)==null?void 0:e.isConnected){const n=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,n),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const s=this.A.left-r.left,o=this.A.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.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,n;t&&((n=(e=this.options).onComplete)==null||n.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const n=Pe.get(e);n&&!n.isDisabled()&&n&&t.push(n)}return t}get isHostRendered(){const t=Ce.has(this.u);return t||this.u.updateComplete.then(()=>{Ce.add(this.u)}),t}j(t,e=this.O()){const n={...nr};return e.forEach(r=>Object.assign(n,r.options.keyframeOptions)),Object.assign(n,t),n}N(t,e,n){t={...t},e={...e};const r=n.map(a=>a.animatingProperties).filter(a=>a!==void 0);let s=1,o=1;return r.length>0&&(r.forEach(a=>{a.width&&(s/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=s*t.left,e.left=s*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,n=!1){const r={},s={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in Dt){const h=Dt[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=n?"center center":"top left",this.animatingProperties=a,o?[r,s]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let n=!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,e]),n=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(n),n}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const Si=ie(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 cr=ie(class extends bi{constructor(i){var t;if(super(i),i.type!==ee.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var n,r;if(this.
|
|
61
|
+
*/const cr=ie(class extends bi{constructor(i){var t;if(super(i),i.type!==ee.ATTRIBUTE||i.name!=="class"||((t=i.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var n,r;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in t)t[s]&&!((n=this.nt)!=null&&n.has(s))&&this.st.add(s);return this.render(t)}const e=i.element.classList;for(const s of this.st)s in t||(e.remove(s),this.st.delete(s));for(const s in t){const o=!!t[s];o===this.st.has(s)||(r=this.nt)!=null&&r.has(s)||(o?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return I}}),ct=(i,t,e)=>{i&&e.style.setProperty(t,i)},xi=(i,t)=>{var e,n,r,s;ct((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),ct((n=i.colors)==null?void 0:n.textOnPrimaryBackground,"--text-on-primary-background",t),ct((r=i.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),ct((s=i.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 yt=()=>new ur;let ur=class{};const Bt=new WeakMap,bt=ie(class extends wi{render(i){return p}update(i,[t]){var n;const e=t!==this.
|
|
65
|
+
*/const yt=()=>new ur;let ur=class{};const Bt=new WeakMap,bt=ie(class extends wi{render(i){return p}update(i,[t]){var n;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(n=i.options)==null?void 0:n.host,this.rt(this.ct=i.element)),p}rt(i){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=Bt.get(t);e===void 0&&(e=new WeakMap,Bt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t;return typeof this.Y=="function"?(i=Bt.get(this.ht??globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var hr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,kt=(i,t,e,n)=>{for(var r=n>1?void 0:n?dr(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(r=(n?o(t,e,r):o(r))||r);return n&&r&&hr(t,e,r),r};class M extends x{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.containerRef=yt()}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&&xi(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return _` <img src=${e} class="trigger-icon" alt="" /> `;const n=(c=this.application)==null?void 0:c.triggerIcon;if(!n)return p;const r=async u=>lr,{type:s,content:o}=n;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"
|
|
69
69
|
></telia-icon>`:p}default:return p}}render(){var t,e,n,r;return _`<div class="trigger-container" ${bt(this.containerRef)}>
|
|
70
70
|
${!this.active&&((r=(n=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:n.other)!=null&&r.showButtonLabel)?_`
|
|
71
71
|
<button
|
|
72
|
+
label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
|
|
72
73
|
class="trigger-label"
|
|
73
74
|
@click=${this.toggleActive}
|
|
74
75
|
${Si({keyframeOptions:{},in:ir,stabilizeOut:!0,skipInitial:!1})}
|
|
@@ -78,6 +79,7 @@
|
|
|
78
79
|
`:p}
|
|
79
80
|
|
|
80
81
|
<button
|
|
82
|
+
label="Widget trigger"
|
|
81
83
|
class=${cr({trigger:!0,active:this.active,rendered:this.loaded})}
|
|
82
84
|
@click=${this.toggleActive}
|
|
83
85
|
>
|
|
@@ -214,7 +216,7 @@
|
|
|
214
216
|
.trigger-label:hover {
|
|
215
217
|
opacity: 0.8;
|
|
216
218
|
}
|
|
217
|
-
`];kt([b({attribute:!1})],M.prototype,"application",2);kt([
|
|
219
|
+
`];kt([b({attribute:!1})],M.prototype,"application",2);kt([G()],M.prototype,"active",2);kt([G()],M.prototype,"loaded",2);kt([G()],M.prototype,"icon",2);var fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,T=(i,t,e,n)=>{for(var r=n>1?void 0:n?pr(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(r=(n?o(t,e,r):o(r))||r);return n&&r&&fr(t,e,r),r};const Ai=i=>{class t extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(n){this.properties=n}writeLayout(n){this.layout=n}writeContext(n){this.context=n}addChild(n){n.parent=this,this.nodes.push(n)}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=[U`
|
|
218
220
|
:host {
|
|
219
221
|
font-family: var(--font-family);
|
|
220
222
|
grid-column: span var(--width);
|
|
@@ -337,7 +339,7 @@
|
|
|
337
339
|
:host {
|
|
338
340
|
display: block;
|
|
339
341
|
}
|
|
340
|
-
`];se([b({attribute:!0})],st.prototype,"name",2);se([Y()],st.prototype,"widget",2);se([Y()],st.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",te);customElements.get("ace-trigger")||customElements.define("ace-trigger",M);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Ci);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",re);customElements.get("ace-widget")||customElements.define("ace-widget",st);const _r=()=>crypto.randomUUID();class wr{constructor(t,e,n,r,s,o){this.label=t,this.icon=e,this.onClick=n,this.closeOnClick=r,this.key=s,this.update=new Je,this.id=_r(),this._controller=o}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Sr{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 e=new wr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Cn(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,Ei,Ot,ki=!1,_t=!1,oe=!1,y=!1,Le=null,qt=!1;const Tt=typeof window<"u"?window:{},A=Tt.document||{head:{}},Oi=Tt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,n)=>i.addEventListener(t,e,n),rel:(i,t,e,n)=>i.removeEventListener(t,e,n),ce:(i,t)=>new CustomEvent(i,t)},xr=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Ar=i=>Promise.resolve(i),Cr=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Ti=(i,t,e,n)=>{e&&e.map(([r,s,o])=>{const a=kr(i,r),l=Er(t,o),c=Or(r);m.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,s,l,c))})},Er=(i,t)=>e=>{try{H.lazyLoad||i.$hostElement$[t](e)}catch(n){ot(n)}},kr=(i,t)=>t&4?A:t&8?Tt:t&16?A.body:i,Or=i=>xr?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Ie="http://www.w3.org/1999/xlink",R=(i,t="")=>()=>{},Re=new WeakMap,Tr=(i,t,e)=>{let n=xt.get(i);Cr&&e?(n=n||new CSSStyleSheet,n.replace(t)):n=t,xt.set(i,n)},Pr=(i,t,e,n)=>{let r=Pi(t,e),s=xt.get(r);if(i=i.nodeType===11?i:A,s)if(typeof s=="string"){i=i.head||i;let o=Re.get(i),a;o||Re.set(i,o=new Set),o.has(r)||(a=A.createElement("style"),a.innerHTML=s,i.insertBefore(a,i.querySelector("link")),o&&o.add(r))}else i.adoptedStyleSheets.includes(s)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,s]);return r},Lr=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,n=t.$flags$,r=R("attachStyles",t.$tagName$),s=Pr(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);n&10&&(e["s-sc"]=s,e.classList.add(s+"-h"),n&2&&e.classList.add(s+"-s")),r()},Pi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Ir=i=>as.map(t=>t(i)).find(t=>!!t),Ue={},Rr="http://www.w3.org/2000/svg",Ur="http://www.w3.org/1999/xhtml",Mr=i=>i!=null,ae=i=>(i=typeof i,i==="object"||i==="function"),z=(i,t,...e)=>{let n=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)n=h[d],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((o=typeof i!="function"&&!ae(n))&&(n=String(n)),o&&a?l[l.length-1].$text$+=n:l.push(o?wt(null,n):n),a=o)};if(c(e),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 i=="function")return i(t===null?{}:t,l,Hr);const u=wt(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},wt=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},le={},jr=i=>i&&i.$tag$===le,Hr={forEach:(i,t)=>i.map(Me).forEach(t),map:(i,t)=>i.map(Me).map(t).map(Nr)},Me=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Nr=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),z(i.vtag,e,...i.vchildren||[])}const t=wt(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},je=(i,t,e,n,r,s)=>{if(e!==n){let o=Be(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=He(e),u=He(n);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 e)(!n||n[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in n)(!e||n[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,n[l]):i.style[l]=n[l])}else if(t!=="key")if(t==="ref")n&&n(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Be(Tt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),n&&m.ael(i,t,n,!1);else{const l=ae(n);if((o||l&&n!==null)&&!r)try{if(i.tagName.includes("-"))i[t]=n;else{let u=n??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),n==null||n===!1?(n!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Ie,t):i.removeAttribute(t)):(!o||s&4||r)&&!l&&(n=n===!0?"":n,c?i.setAttributeNS(Ie,t,n):i.setAttribute(t,n))}}},Dr=/\s/,He=i=>i?i.split(Dr):[],Li=(i,t,e,n)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=i&&i.$attrs$||Ue,o=t.$attrs$||Ue;for(n in s)n in o||je(r,n,s[n],void 0,e,t.$flags$);for(n in o)je(r,n,s[n],o[n],e,t.$flags$)},St=(i,t,e,n)=>{let r=t.$children$[e],s=0,o,a,l;if(ki||(oe=!0,r.$tag$==="slot"&&(N&&n.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?Rr:Ur,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),Li(null,r,y),Mr(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),r.$children$)for(s=0;s<r.$children$.length;++s)a=St(i,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=Ot,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Ei,o["s-sn"]=r.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===r.$tag$&&i.$elm$&&it(i.$elm$,!1)),o},it=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let n=e.length-1;n>=0;n--){const r=e[n];r["s-hn"]!==Ot&&r["s-ol"]&&(Ui(r).insertBefore(r,ce(r)),r["s-ol"].remove(),r["s-ol"]=void 0,oe=!0),t&&it(r,t)}m.$flags$&=-2},Ii=(i,t,e,n,r,s)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Ot&&(o=o.shadowRoot);r<=s;++r)n[r]&&(a=St(null,e,r,i),a&&(n[r].$elm$=a,o.insertBefore(a,ce(t))))},Ri=(i,t,e,n,r)=>{for(;t<=e;++t)(n=i[t])&&(r=n.$elm$,Hi(n),_t=!0,r["s-ol"]?r["s-ol"].remove():it(r,!0),r.remove())},Br=(i,t,e,n)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=n.length-1,d=n[0],f=n[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=n[++s];else if(f==null)f=n[--h];else if(ut(c,d))D(c,d),c=t[++r],d=n[++s];else if(ut(u,f))D(u,f),u=t[--l],f=n[--h];else if(ut(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&it(c.$elm$.parentNode,!1),D(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=n[--h];else if(ut(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&it(u.$elm$.parentNode,!1),D(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=n[++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$?$=St(t&&t[s],e,o,i):(D(g,d),t[o]=void 0,$=g.$elm$),d=n[++s]):($=St(t&&t[s],e,s,i),d=n[++s]),$&&Ui(c.$elm$).insertBefore($,ce(c.$elm$))}r>l?Ii(i,n[h+1]==null?null:n[h+1].$elm$,e,n,s,h):s>h&&Ri(t,r,l)},ut=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,ce=i=>i&&i["s-ol"]||i,Ui=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,D=(i,t)=>{const e=t.$elm$=i.$elm$,n=i.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(y=s==="svg"?!0:s==="foreignObject"?!1:y,s==="slot"||Li(i,t,y),n!==null&&r!==null?Br(e,n,t,r):r!==null?(i.$text$!==null&&(e.textContent=""),Ii(e,null,t,r,0,r.length-1)):n!==null&&Ri(n,0,n.length-1),y&&s==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Mi=i=>{let t=i.childNodes,e,n,r,s,o,a;for(n=0,r=t.length;n<r;n++)if(e=t[n],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){e.hidden=!0;break}}Mi(e)}},S=[],ji=i=>{let t,e,n,r,s,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(n=e.parentNode.childNodes,r=t["s-sn"],o=n.length-1;o>=0;o--)e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Ne(e,r)?(s=S.find(u=>u.$nodeToRelocate$===e),_t=!0,e["s-sn"]=e["s-sn"]||r,s?s.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&S.map(u=>{Ne(u.$nodeToRelocate$,e["s-sn"])&&(s=S.find(h=>h.$nodeToRelocate$===e),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):S.some(u=>u.$nodeToRelocate$===e)||S.push({$nodeToRelocate$:e}));t.nodeType===1&&ji(t)}},Ne=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Hi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Hi)},zr=(i,t)=>{const e=i.$hostElement$,n=i.$cmpMeta$,r=i.$vnode$||wt(null,null),s=jr(t)?t:z(null,null,t);Ot=e.tagName,n.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},n.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=e[o])),s.$tag$=null,s.$flags$|=4,i.$vnode$=s,s.$elm$=r.$elm$=e.shadowRoot||e,N=e["s-sc"],Ei=e["s-cr"],ki=(n.$flags$&1)!==0,_t=!1,D(r,s);{if(m.$flags$|=1,oe){ji(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)}_t&&Mi(s.$elm$),m.$flags$&=-2,S.length=0}},Fr=i=>i,Wr=(i,t,e)=>{const n=Fr(i);return{emit:r=>Gr(n,t,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:r})}},Gr=(i,t,e)=>{const n=m.ce(t,e);return i.dispatchEvent(n),n},qr=(i,t)=>{},Ni=(i,t)=>(i.$flags$|=16,qr(i,i.$ancestorComponent$),us(()=>Yr(i,t))),Yr=(i,t)=>{const e=i.$hostElement$,n=R("scheduleUpdate",i.$cmpMeta$.$tagName$),r=e;let s;return t?s=F(r,"componentWillLoad"):s=F(r,"componentWillUpdate"),s=De(s,()=>F(r,"componentWillRender")),n(),De(s,()=>Zr(i,r,t))},Zr=async(i,t,e)=>{const n=i.$hostElement$,r=R("update",i.$cmpMeta$.$tagName$);n["s-rc"],e&&Lr(i);const s=R("render",i.$cmpMeta$.$tagName$);Kr(i,t,n),s(),r(),Qr(i)},Kr=(i,t,e)=>{try{Le=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||zr(i,t))}catch(a){ot(a,i.$hostElement$)}return Le=null,null},Qr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,n=R("postUpdate",t),r=e;i.$ancestorComponent$,F(r,"componentDidRender"),i.$flags$&64?(F(r,"componentDidUpdate"),n()):(i.$flags$|=64,F(r,"componentDidLoad"),n())},F=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(n){ot(n)}},De=(i,t)=>i&&i.then?i.then(t):t(),Xr=(i,t)=>i!=null&&!ae(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,Jr=(i,t)=>Pt(i).$instanceValues$.get(t),Vr=(i,t,e,n)=>{const r=Pt(i),s=i,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;e=Xr(e,n.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){r.$instanceValues$.set(t,e);{if(n.$watchers$&&a&128){const h=n.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){ot(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ni(r,!1)}}}},ts=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const n=Object.entries(t.$members$),r=i.prototype;n.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return Jr(this,s)},set(a){Vr(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})},i.observedAttributes=n.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 i},es=async(i,t,e,n,r)=>{if(!(t.$flags$&32)&&(r=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Ir(i)]);const a=Pi(e,t.$modeName$);if(!xt.has(a)){const l=R("registerStyles",e.$tagName$);Tr(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Ni(t,!0))()},is=i=>{},ns=i=>{if(!(m.$flags$&1)){const t=Pt(i),e=t.$cmpMeta$,n=R("connectedCallback",e.$tagName$);t.$flags$&1?(Ti(i,t,e.$listeners$),is(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&rs(i),e.$members$&&Object.entries(e.$members$).map(([r,[s]])=>{if(s&31&&i.hasOwnProperty(r)){const o=i[r];delete i[r],i[r]=o}}),es(i,t,e)),n()}},rs=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},ss=i=>{if(!(m.$flags$&1)){const t=Pt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Di=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const n=i.prototype.connectedCallback,r=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){os(this,e)},connectedCallback(){ns(this),n&&n.call(this)},disconnectedCallback(){ss(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,ts(i,e)},Bi=new WeakMap,Pt=i=>Bi.get(i),os=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Ti(i,e,t.$listeners$),Bi.set(i,e)},Be=(i,t)=>t in i,ot=(i,t)=>(0,console.error)(i,t),xt=new Map,as=[],ze=[],zi=[],ls=(i,t)=>e=>{i.push(e),qt||(qt=!0,t&&m.$flags$&4?cs(Yt):m.raf(Yt))},Fe=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ot(e)}i.length=0},Yt=()=>{Fe(ze),Fe(zi),(qt=ze.length>0)&&m.raf(Yt)},cs=i=>Ar().then(i),us=ls(zi,!0),hs=(i={})=>{const{content:t="",title:e,attributes:n=[]}=i;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...n];return e&&(r=`<title>${e}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},ds=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function fs(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class ps{constructor(t){this.voca_component=t,this.voca_added=fs(new Date)}}const gs="telia-vst{display:none}",$s=Di(class extends Oi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Wr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new ps(this.dataTrackingId))}render(){return z(le,null)}static get style(){return gs}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Fi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,$s);break}})}Fi();function Zt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function vs(){if(typeof Zt().vocadsIcons!==void 0)return Zt().vocadsIcons}function ms(){return Zt().vocadsIconsRegistered}const ys=".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))}",bs=Di(class extends Oi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(ms()&&this.name){const i=vs();return i[this.name]?i[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 i=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 e=hs({content:ds(i),attributes:t,title:this.allyTitle});return z(le,{class:`telia-icon telia-icon--${this.size}`},z("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),z("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return ys}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function _s(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,bs);break;case"telia-vst":customElements.get(t)||Fi();break}})}_s();var ws=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,xs=(i,t,e,n)=>{for(var r=n>1?void 0:n?Ss(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(r=(n?o(t,e,r):o(r))||r);return n&&r&&ws(t,e,r),r};const Wi=Ai(x);class Lt extends Wi{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Sr(this),this.optionsRef=yt(),this.optionsTriggerRef=yt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var s;const t=this.application.branding(),e=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,n=this.application.texts,r=n.get("widget-header.header","ACE Widget");return _` <div class="widget-header">
|
|
342
|
+
`];se([b({attribute:!0})],st.prototype,"name",2);se([G()],st.prototype,"widget",2);se([G()],st.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",te);customElements.get("ace-trigger")||customElements.define("ace-trigger",M);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Ci);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",re);customElements.get("ace-widget")||customElements.define("ace-widget",st);const _r=()=>crypto.randomUUID();class wr{constructor(t,e,n,r,s,o){this.label=t,this.icon=e,this.onClick=n,this.closeOnClick=r,this.key=s,this.update=new Je,this.id=_r(),this._controller=o}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Sr{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 e=new wr(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Cn(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,Ei,Ot,ki=!1,_t=!1,oe=!1,y=!1,Le=null,qt=!1;const Tt=typeof window<"u"?window:{},A=Tt.document||{head:{}},Oi=Tt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,n)=>i.addEventListener(t,e,n),rel:(i,t,e,n)=>i.removeEventListener(t,e,n),ce:(i,t)=>new CustomEvent(i,t)},xr=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Ar=i=>Promise.resolve(i),Cr=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Ti=(i,t,e,n)=>{e&&e.map(([r,s,o])=>{const a=kr(i,r),l=Er(t,o),c=Or(r);m.ael(a,s,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,s,l,c))})},Er=(i,t)=>e=>{try{H.lazyLoad||i.$hostElement$[t](e)}catch(n){ot(n)}},kr=(i,t)=>t&4?A:t&8?Tt:t&16?A.body:i,Or=i=>xr?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Ie="http://www.w3.org/1999/xlink",R=(i,t="")=>()=>{},Re=new WeakMap,Tr=(i,t,e)=>{let n=xt.get(i);Cr&&e?(n=n||new CSSStyleSheet,n.replace(t)):n=t,xt.set(i,n)},Pr=(i,t,e,n)=>{let r=Pi(t,e),s=xt.get(r);if(i=i.nodeType===11?i:A,s)if(typeof s=="string"){i=i.head||i;let o=Re.get(i),a;o||Re.set(i,o=new Set),o.has(r)||(a=A.createElement("style"),a.innerHTML=s,i.insertBefore(a,i.querySelector("link")),o&&o.add(r))}else i.adoptedStyleSheets.includes(s)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,s]);return r},Lr=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,n=t.$flags$,r=R("attachStyles",t.$tagName$),s=Pr(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);n&10&&(e["s-sc"]=s,e.classList.add(s+"-h"),n&2&&e.classList.add(s+"-s")),r()},Pi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Ir=i=>as.map(t=>t(i)).find(t=>!!t),Ue={},Rr="http://www.w3.org/2000/svg",Ur="http://www.w3.org/1999/xhtml",Mr=i=>i!=null,ae=i=>(i=typeof i,i==="object"||i==="function"),z=(i,t,...e)=>{let n=null,r=null,s=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)n=h[d],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((o=typeof i!="function"&&!ae(n))&&(n=String(n)),o&&a?l[l.length-1].$text$+=n:l.push(o?wt(null,n):n),a=o)};if(c(e),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 i=="function")return i(t===null?{}:t,l,Hr);const u=wt(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=s,u},wt=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},le={},jr=i=>i&&i.$tag$===le,Hr={forEach:(i,t)=>i.map(Me).forEach(t),map:(i,t)=>i.map(Me).map(t).map(Nr)},Me=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Nr=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),z(i.vtag,e,...i.vchildren||[])}const t=wt(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},je=(i,t,e,n,r,s)=>{if(e!==n){let o=Be(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=He(e),u=He(n);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 e)(!n||n[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in n)(!e||n[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,n[l]):i.style[l]=n[l])}else if(t!=="key")if(t==="ref")n&&n(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Be(Tt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),n&&m.ael(i,t,n,!1);else{const l=ae(n);if((o||l&&n!==null)&&!r)try{if(i.tagName.includes("-"))i[t]=n;else{let u=n??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),n==null||n===!1?(n!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Ie,t):i.removeAttribute(t)):(!o||s&4||r)&&!l&&(n=n===!0?"":n,c?i.setAttributeNS(Ie,t,n):i.setAttribute(t,n))}}},Dr=/\s/,He=i=>i?i.split(Dr):[],Li=(i,t,e,n)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=i&&i.$attrs$||Ue,o=t.$attrs$||Ue;for(n in s)n in o||je(r,n,s[n],void 0,e,t.$flags$);for(n in o)je(r,n,s[n],o[n],e,t.$flags$)},St=(i,t,e,n)=>{let r=t.$children$[e],s=0,o,a,l;if(ki||(oe=!0,r.$tag$==="slot"&&(N&&n.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?Rr:Ur,r.$flags$&2?"slot-fb":r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),Li(null,r,y),Mr(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),r.$children$)for(s=0;s<r.$children$.length;++s)a=St(i,r,s,o),a&&o.appendChild(a);r.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=Ot,r.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Ei,o["s-sn"]=r.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===r.$tag$&&i.$elm$&&it(i.$elm$,!1)),o},it=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let n=e.length-1;n>=0;n--){const r=e[n];r["s-hn"]!==Ot&&r["s-ol"]&&(Ui(r).insertBefore(r,ce(r)),r["s-ol"].remove(),r["s-ol"]=void 0,oe=!0),t&&it(r,t)}m.$flags$&=-2},Ii=(i,t,e,n,r,s)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Ot&&(o=o.shadowRoot);r<=s;++r)n[r]&&(a=St(null,e,r,i),a&&(n[r].$elm$=a,o.insertBefore(a,ce(t))))},Ri=(i,t,e,n,r)=>{for(;t<=e;++t)(n=i[t])&&(r=n.$elm$,Hi(n),_t=!0,r["s-ol"]?r["s-ol"].remove():it(r,!0),r.remove())},Br=(i,t,e,n)=>{let r=0,s=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=n.length-1,d=n[0],f=n[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=n[++s];else if(f==null)f=n[--h];else if(ut(c,d))D(c,d),c=t[++r],d=n[++s];else if(ut(u,f))D(u,f),u=t[--l],f=n[--h];else if(ut(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&it(c.$elm$.parentNode,!1),D(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++r],f=n[--h];else if(ut(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&it(u.$elm$.parentNode,!1),D(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=n[++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$?$=St(t&&t[s],e,o,i):(D(g,d),t[o]=void 0,$=g.$elm$),d=n[++s]):($=St(t&&t[s],e,s,i),d=n[++s]),$&&Ui(c.$elm$).insertBefore($,ce(c.$elm$))}r>l?Ii(i,n[h+1]==null?null:n[h+1].$elm$,e,n,s,h):s>h&&Ri(t,r,l)},ut=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,ce=i=>i&&i["s-ol"]||i,Ui=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,D=(i,t)=>{const e=t.$elm$=i.$elm$,n=i.$children$,r=t.$children$,s=t.$tag$,o=t.$text$;let a;o===null?(y=s==="svg"?!0:s==="foreignObject"?!1:y,s==="slot"||Li(i,t,y),n!==null&&r!==null?Br(e,n,t,r):r!==null?(i.$text$!==null&&(e.textContent=""),Ii(e,null,t,r,0,r.length-1)):n!==null&&Ri(n,0,n.length-1),y&&s==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Mi=i=>{let t=i.childNodes,e,n,r,s,o,a;for(n=0,r=t.length;n<r;n++)if(e=t[n],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,s=0;s<r;s++)if(a=t[s].nodeType,t[s]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[s].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[s].textContent.trim()!==""){e.hidden=!0;break}}Mi(e)}},S=[],ji=i=>{let t,e,n,r,s,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(n=e.parentNode.childNodes,r=t["s-sn"],o=n.length-1;o>=0;o--)e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Ne(e,r)?(s=S.find(u=>u.$nodeToRelocate$===e),_t=!0,e["s-sn"]=e["s-sn"]||r,s?s.$slotRefNode$=t:S.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&S.map(u=>{Ne(u.$nodeToRelocate$,e["s-sn"])&&(s=S.find(h=>h.$nodeToRelocate$===e),s&&!u.$slotRefNode$&&(u.$slotRefNode$=s.$slotRefNode$))})):S.some(u=>u.$nodeToRelocate$===e)||S.push({$nodeToRelocate$:e}));t.nodeType===1&&ji(t)}},Ne=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Hi=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Hi)},zr=(i,t)=>{const e=i.$hostElement$,n=i.$cmpMeta$,r=i.$vnode$||wt(null,null),s=jr(t)?t:z(null,null,t);Ot=e.tagName,n.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},n.$attrsToReflect$.map(([o,a])=>s.$attrs$[a]=e[o])),s.$tag$=null,s.$flags$|=4,i.$vnode$=s,s.$elm$=r.$elm$=e.shadowRoot||e,N=e["s-sc"],Ei=e["s-cr"],ki=(n.$flags$&1)!==0,_t=!1,D(r,s);{if(m.$flags$|=1,oe){ji(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)}_t&&Mi(s.$elm$),m.$flags$&=-2,S.length=0}},Fr=i=>i,Wr=(i,t,e)=>{const n=Fr(i);return{emit:r=>Yr(n,t,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:r})}},Yr=(i,t,e)=>{const n=m.ce(t,e);return i.dispatchEvent(n),n},qr=(i,t)=>{},Ni=(i,t)=>(i.$flags$|=16,qr(i,i.$ancestorComponent$),us(()=>Gr(i,t))),Gr=(i,t)=>{const e=i.$hostElement$,n=R("scheduleUpdate",i.$cmpMeta$.$tagName$),r=e;let s;return t?s=F(r,"componentWillLoad"):s=F(r,"componentWillUpdate"),s=De(s,()=>F(r,"componentWillRender")),n(),De(s,()=>Zr(i,r,t))},Zr=async(i,t,e)=>{const n=i.$hostElement$,r=R("update",i.$cmpMeta$.$tagName$);n["s-rc"],e&&Lr(i);const s=R("render",i.$cmpMeta$.$tagName$);Kr(i,t,n),s(),r(),Qr(i)},Kr=(i,t,e)=>{try{Le=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||zr(i,t))}catch(a){ot(a,i.$hostElement$)}return Le=null,null},Qr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,n=R("postUpdate",t),r=e;i.$ancestorComponent$,F(r,"componentDidRender"),i.$flags$&64?(F(r,"componentDidUpdate"),n()):(i.$flags$|=64,F(r,"componentDidLoad"),n())},F=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(n){ot(n)}},De=(i,t)=>i&&i.then?i.then(t):t(),Xr=(i,t)=>i!=null&&!ae(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,Jr=(i,t)=>Pt(i).$instanceValues$.get(t),Vr=(i,t,e,n)=>{const r=Pt(i),s=i,o=r.$instanceValues$.get(t),a=r.$flags$,l=s;e=Xr(e,n.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){r.$instanceValues$.set(t,e);{if(n.$watchers$&&a&128){const h=n.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){ot(f,s)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Ni(r,!1)}}}},ts=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const n=Object.entries(t.$members$),r=i.prototype;n.map(([s,[o]])=>{(o&31||o&32)&&Object.defineProperty(r,s,{get(){return Jr(this,s)},set(a){Vr(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})},i.observedAttributes=n.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 i},es=async(i,t,e,n,r)=>{if(!(t.$flags$&32)&&(r=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),r.style)){let o=r.style;typeof o!="string"&&(o=o[t.$modeName$=Ir(i)]);const a=Pi(e,t.$modeName$);if(!xt.has(a)){const l=R("registerStyles",e.$tagName$);Tr(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Ni(t,!0))()},is=i=>{},ns=i=>{if(!(m.$flags$&1)){const t=Pt(i),e=t.$cmpMeta$,n=R("connectedCallback",e.$tagName$);t.$flags$&1?(Ti(i,t,e.$listeners$),is(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&rs(i),e.$members$&&Object.entries(e.$members$).map(([r,[s]])=>{if(s&31&&i.hasOwnProperty(r)){const o=i[r];delete i[r],i[r]=o}}),es(i,t,e)),n()}},rs=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},ss=i=>{if(!(m.$flags$&1)){const t=Pt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Di=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const n=i.prototype.connectedCallback,r=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){os(this,e)},connectedCallback(){ns(this),n&&n.call(this)},disconnectedCallback(){ss(this),r&&r.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,ts(i,e)},Bi=new WeakMap,Pt=i=>Bi.get(i),os=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Ti(i,e,t.$listeners$),Bi.set(i,e)},Be=(i,t)=>t in i,ot=(i,t)=>(0,console.error)(i,t),xt=new Map,as=[],ze=[],zi=[],ls=(i,t)=>e=>{i.push(e),qt||(qt=!0,t&&m.$flags$&4?cs(Gt):m.raf(Gt))},Fe=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ot(e)}i.length=0},Gt=()=>{Fe(ze),Fe(zi),(qt=ze.length>0)&&m.raf(Gt)},cs=i=>Ar().then(i),us=ls(zi,!0),hs=(i={})=>{const{content:t="",title:e,attributes:n=[]}=i;let r="",s=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...n];return e&&(r=`<title>${e}</title>`),`<svg ${s.map(a=>`${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`},ds=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function fs(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class ps{constructor(t){this.voca_component=t,this.voca_added=fs(new Date)}}const gs="telia-vst{display:none}",$s=Di(class extends Oi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Wr(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new ps(this.dataTrackingId))}render(){return z(le,null)}static get style(){return gs}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Fi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,$s);break}})}Fi();function Zt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function vs(){if(typeof Zt().vocadsIcons!==void 0)return Zt().vocadsIcons}function ms(){return Zt().vocadsIconsRegistered}const ys=".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))}",bs=Di(class extends Oi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(ms()&&this.name){const i=vs();return i[this.name]?i[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 i=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 e=hs({content:ds(i),attributes:t,title:this.allyTitle});return z(le,{class:`telia-icon telia-icon--${this.size}`},z("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),z("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return ys}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function _s(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,bs);break;case"telia-vst":customElements.get(t)||Fi();break}})}_s();var ws=Object.defineProperty,Ss=Object.getOwnPropertyDescriptor,xs=(i,t,e,n)=>{for(var r=n>1?void 0:n?Ss(t,e):t,s=i.length-1,o;s>=0;s--)(o=i[s])&&(r=(n?o(t,e,r):o(r))||r);return n&&r&&ws(t,e,r),r};const Wi=Ai(x);class Lt extends Wi{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Sr(this),this.optionsRef=yt(),this.optionsTriggerRef=yt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger&&this.application.trigger.toggleActive()}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var s;const t=this.application.branding(),e=(s=t==null?void 0:t.graphics)==null?void 0:s.logotype,n=this.application.texts,r=n.get("widget-header.header","ACE Widget");return _` <div class="widget-header">
|
|
341
343
|
${e?_` <img
|
|
342
344
|
src=${e}
|
|
343
345
|
class="logotype"
|
|
@@ -475,4 +477,4 @@
|
|
|
475
477
|
background-color: var(--secondary-background);
|
|
476
478
|
color: var(--text-on-secondary-background);
|
|
477
479
|
}
|
|
478
|
-
`];xs([
|
|
480
|
+
`];xs([G()],Lt.prototype,"optionsIsVisible",2);exports.WidgetHeader=Lt;exports.default=Lt;
|