@telia-ace/widget-components-copyright-flamingo 1.1.82-rc.4 → 1.1.82-rc.5

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.
@@ -187,7 +187,7 @@ function Ee(s) {
187
187
  throw s;
188
188
  });
189
189
  }
190
- function Ut() {
190
+ function Lt() {
191
191
  }
192
192
  function Z(s) {
193
193
  s();
@@ -290,9 +290,9 @@ function ke(s) {
290
290
  }
291
291
  var Oe = {
292
292
  closed: !0,
293
- next: Ut,
293
+ next: Lt,
294
294
  error: ke,
295
- complete: Ut
295
+ complete: Lt
296
296
  }, Te = function() {
297
297
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
298
298
  }();
@@ -306,7 +306,7 @@ function He(s) {
306
306
  }, e);
307
307
  };
308
308
  }
309
- var Lt = function() {
309
+ var Ut = function() {
310
310
  function s(t) {
311
311
  t && (this._subscribe = t);
312
312
  }
@@ -314,7 +314,7 @@ var Lt = function() {
314
314
  var e = new s();
315
315
  return e.source = this, e.operator = t, e;
316
316
  }, s.prototype.subscribe = function(t, e, i) {
317
- var r = this, n = Le(t) ? t : new vt(t, e, i);
317
+ var r = this, n = Ue(t) ? t : new vt(t, e, i);
318
318
  return Z(function() {
319
319
  var o = r, a = o.operator, c = o.source;
320
320
  n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
@@ -370,11 +370,11 @@ function Rt(s) {
370
370
  var t;
371
371
  return (t = s ?? he.Promise) !== null && t !== void 0 ? t : Promise;
372
372
  }
373
- function Ue(s) {
373
+ function Le(s) {
374
374
  return s && b(s.next) && b(s.error) && b(s.complete);
375
375
  }
376
- function Le(s) {
377
- return s && s instanceof le || Ue(s) && ce(s);
376
+ function Ue(s) {
377
+ return s && s instanceof le || Le(s) && ce(s);
378
378
  }
379
379
  var Re = oe(function(s) {
380
380
  return function() {
@@ -454,12 +454,12 @@ var Re = oe(function(s) {
454
454
  var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
455
455
  r ? e.error(n) : o && e.complete();
456
456
  }, t.prototype.asObservable = function() {
457
- var e = new Lt();
457
+ var e = new Ut();
458
458
  return e.source = this, e;
459
459
  }, t.create = function(e, i) {
460
460
  return new jt(e, i);
461
461
  }, t;
462
- }(Lt), jt = function(s) {
462
+ }(Ut), jt = function(s) {
463
463
  z(t, s);
464
464
  function t(e, i) {
465
465
  var r = s.call(this) || this;
@@ -784,7 +784,7 @@ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProper
784
784
  * SPDX-License-Identifier: BSD-3-Clause
785
785
  */
786
786
  const j = globalThis, K = j.trustedTypes, zt = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, pe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ue = "?" + _, We = `<${ue}>`, S = document, I = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", At = Array.isArray, qe = (s) => At(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", nt = `[
787
- \f\r]`, L = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Ft = />/g, A = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
787
+ \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Ft = />/g, A = RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
788
788
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Zt = /"/g, fe = /^(?:script|style|textarea|title)$/i, ge = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = ge(1), Ke = ge(2), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
789
789
  function ve(s, t) {
790
790
  if (!At(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
@@ -792,13 +792,13 @@ function ve(s, t) {
792
792
  }
793
793
  const Ge = (s, t) => {
794
794
  const e = s.length - 1, i = [];
795
- let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = L;
795
+ let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U;
796
796
  for (let a = 0; a < e; a++) {
797
797
  const c = s[a];
798
798
  let h, l, d = -1, u = 0;
799
- for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o === L ? l[1] === "!--" ? o = Dt : l[1] !== void 0 ? o = Ft : l[2] !== void 0 ? (fe.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = r ?? L, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Zt : Yt) : o === Zt || o === Yt ? o = A : o === Dt || o === Ft ? o = L : (o = A, r = void 0);
799
+ for (; u < c.length && (o.lastIndex = u, l = o.exec(c), l !== null); ) u = o.lastIndex, o === U ? l[1] === "!--" ? o = Dt : l[1] !== void 0 ? o = Ft : l[2] !== void 0 ? (fe.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = r ?? U, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Zt : Yt) : o === Zt || o === Yt ? o = A : o === Dt || o === Ft ? o = U : (o = A, r = void 0);
800
800
  const f = o === A && s[a + 1].startsWith("/>") ? " " : "";
801
- n += o === L ? c + We : d >= 0 ? (i.push(h), c.slice(0, d) + pe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
801
+ n += o === U ? c + We : d >= 0 ? (i.push(h), c.slice(0, d) + pe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
802
802
  }
803
803
  return [ve(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
804
804
  };
@@ -1086,7 +1086,7 @@ function g(s) {
1086
1086
  * Copyright 2017 Google LLC
1087
1087
  * SPDX-License-Identifier: BSD-3-Clause
1088
1088
  */
1089
- function U(s) {
1089
+ function L(s) {
1090
1090
  return g({ ...s, state: !0, attribute: !1 });
1091
1091
  }
1092
1092
  var ni = Object.defineProperty, oi = (s, t, e, i) => {
@@ -1786,16 +1786,16 @@ F([
1786
1786
  g({ attribute: !1 })
1787
1787
  ], $.prototype, "application");
1788
1788
  F([
1789
- U()
1789
+ L()
1790
1790
  ], $.prototype, "active");
1791
1791
  F([
1792
- U()
1792
+ L()
1793
1793
  ], $.prototype, "triggerVisible");
1794
1794
  F([
1795
- U()
1795
+ L()
1796
1796
  ], $.prototype, "loaded");
1797
1797
  F([
1798
- U()
1798
+ L()
1799
1799
  ], $.prototype, "icon");
1800
1800
  var $i = Object.defineProperty, C = (s, t, e, i) => {
1801
1801
  for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
@@ -2036,7 +2036,7 @@ const Pi = "application", Ot = class Ot extends m {
2036
2036
  render() {
2037
2037
  var i, r;
2038
2038
  const t = this.application.settings.components.conversation;
2039
- return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === V.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), x`<div class="widget-container" ${Ae(this.wrapperRef)}>
2039
+ return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === V.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.mobile && this.renderRoot.host.classList.add("mobile"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), x`<div class="widget-container" ${Ae(this.wrapperRef)}>
2040
2040
  ${_i(this.nodes, (n) => n)}
2041
2041
  </div>`;
2042
2042
  }
@@ -2086,6 +2086,18 @@ Ot.styles = k`
2086
2086
  position: fixed;
2087
2087
  }
2088
2088
 
2089
+ :host(.mobile.floating) {
2090
+ inset: 0 !important;
2091
+ height: 100% !important;
2092
+ width: auto !important;
2093
+ max-height: none !important;
2094
+ }
2095
+
2096
+ :host(.mobile.floating) .widget-container {
2097
+ box-shadow: none !important;
2098
+ border-radius: 0 !important;
2099
+ }
2100
+
2089
2101
  @media screen and (max-width: 800px) {
2090
2102
  :host(.floating) {
2091
2103
  inset: 0;
@@ -2270,10 +2282,10 @@ Et([
2270
2282
  g({ attribute: !0 })
2271
2283
  ], H.prototype, "name");
2272
2284
  Et([
2273
- U()
2285
+ L()
2274
2286
  ], H.prototype, "widget");
2275
2287
  Et([
2276
- U()
2288
+ L()
2277
2289
  ], H.prototype, "status");
2278
2290
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", G);
2279
2291
  customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var pt=function(s,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},pt(s,t)};function z(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ut(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return n}function gt(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function oe(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var st=oe(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
2
2
  `+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=e}});function vt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var et=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){n=v instanceof st?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=ut(d),f=u.next();!f.done;f=u.next()){var k=f.value;try{Ut(k)}catch(v){n=n??[],v instanceof st?n=gt(gt([],ft(n)),ft(v.errors)):n.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}}if(n)throw new st(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ut(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&vt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&vt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),ae=et.EMPTY;function ce(s){return s instanceof et||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Ut(s){b(s)?s():s.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},xe={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,gt([s,t],ft(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Ee(s){xe.setTimeout(function(){throw s})}function Lt(){}function Z(s){s()}var le=function(s){z(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,ce(e)&&e.add(i)):i.destination=ke,i}return t.create=function(e,i,r){return new mt(e,i,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,s.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}(et),Se=Function.prototype.bind;function rt(s,t){return Se.call(s,t)}var Pe=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Y(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Y(i)}else Y(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Y(e)}},s}(),mt=function(s){z(t,s);function t(e,i,r){var n=s.call(this)||this,o;if(b(e)||!e)o={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;n&&he.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.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 n.destination=new Pe(o),n}return t}(le);function Y(s){Ee(s)}function Oe(s){throw s}var ke={closed:!0,next:Lt,error:Oe,complete:Lt},Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Me(s){return s}function He(s){return s.length===0?Me:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var Rt=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,n=Le(t)?t:new mt(t,e,i);return Z(function(){var o=r,a=o.operator,c=o.source;n.add(a?a.call(n,c):c?r._subscribe(n):r._trySubscribe(n))}),n},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=jt(e),new e(function(r,n){var o=new mt({next:function(a){try{t(a)}catch(c){n(c),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Te]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return He(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=jt(t),new t(function(i,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},s.create=function(t){return new s(t)},s}();function jt(s){var t;return(t=s??he.Promise)!==null&&t!==void 0?t:Promise}function Ue(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function Le(s){return s&&s instanceof le||Ue(s)&&ce(s)}var Re=oe(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$t=function(s){z(t,s);function t(){var e=s.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 i=new Nt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Re},t.prototype.next=function(e){var i=this;Z(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ut(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;Z(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;Z(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var 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(),s.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 i=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?ae:(this.currentObservers=null,a.push(e),new et(function(){i.currentObservers=null,vt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new Rt;return e.source=this,e},t.create=function(e,i){return new Nt(e,i)},t}(Rt),Nt=function(s){z(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:ae},t}($t),je=function(s){z(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,n=e._value;if(i)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}($t);/**
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function vt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var et=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){n=v instanceof st?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=ut(d),f=u.next();!f.done;f=u.next()){var k=f.value;try{Lt(k)}catch(v){n=n??[],v instanceof st?n=gt(gt([],ft(n)),ft(v.errors)):n.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}}if(n)throw new st(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Lt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&vt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&vt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),ae=et.EMPTY;function ce(s){return s instanceof et||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Lt(s){b(s)?s():s.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},xe={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,gt([s,t],ft(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Ee(s){xe.setTimeout(function(){throw s})}function Ut(){}function Z(s){s()}var le=function(s){z(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,ce(e)&&e.add(i)):i.destination=ke,i}return t.create=function(e,i,r){return new mt(e,i,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,s.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}(et),Se=Function.prototype.bind;function rt(s,t){return Se.call(s,t)}var Pe=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Y(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Y(i)}else Y(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Y(e)}},s}(),mt=function(s){z(t,s);function t(e,i,r){var n=s.call(this)||this,o;if(b(e)||!e)o={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;n&&he.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.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 n.destination=new Pe(o),n}return t}(le);function Y(s){Ee(s)}function Oe(s){throw s}var ke={closed:!0,next:Ut,error:Oe,complete:Ut},Te=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Me(s){return s}function He(s){return s.length===0?Me:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var Rt=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,n=Ue(t)?t:new mt(t,e,i);return Z(function(){var o=r,a=o.operator,c=o.source;n.add(a?a.call(n,c):c?r._subscribe(n):r._trySubscribe(n))}),n},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=jt(e),new e(function(r,n){var o=new mt({next:function(a){try{t(a)}catch(c){n(c),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Te]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return He(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=jt(t),new t(function(i,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},s.create=function(t){return new s(t)},s}();function jt(s){var t;return(t=s??he.Promise)!==null&&t!==void 0?t:Promise}function Le(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function Ue(s){return s&&s instanceof le||Le(s)&&ce(s)}var Re=oe(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$t=function(s){z(t,s);function t(){var e=s.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 i=new Nt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Re},t.prototype.next=function(e){var i=this;Z(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ut(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;Z(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;Z(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var 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(),s.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 i=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?ae:(this.currentObservers=null,a.push(e),new et(function(){i.currentObservers=null,vt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new Rt;return e.source=this,e},t.create=function(e,i){return new Nt(e,i)},t}(Rt),Nt=function(s){z(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:ae},t}($t),je=function(s){z(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,n=e._value;if(i)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}($t);/**
4
4
  * @license
5
5
  * Copyright 2019 Google LLC
6
6
  * SPDX-License-Identifier: BSD-3-Clause
@@ -13,8 +13,8 @@
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
15
  */const j=globalThis,K=j.trustedTypes,Dt=K?K.createPolicy("lit-html",{createHTML:s=>s}):void 0,pe="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,ue="?"+_,We=`<${ue}>`,S=document,I=()=>S.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,qe=s=>Ct(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[
16
- \f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,Yt=/>/g,A=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Zt=/'/g,Wt=/"/g,fe=/^(?:script|style|textarea|title)$/i,ge=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),x=ge(1),Ke=ge(2),P=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),qt=new WeakMap,E=S.createTreeWalker(S,129);function ve(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dt!==void 0?Dt.createHTML(t):t}const Ge=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":t===3?"<math>":"",o=L;for(let a=0;a<e;a++){const c=s[a];let h,l,d=-1,u=0;for(;u<c.length&&(o.lastIndex=u,l=o.exec(c),l!==null);)u=o.lastIndex,o===L?l[1]==="!--"?o=Ft:l[1]!==void 0?o=Yt:l[2]!==void 0?(fe.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=A):l[3]!==void 0&&(o=A):o===A?l[0]===">"?(o=r??L,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?A:l[3]==='"'?Wt:Zt):o===Wt||o===Zt?o=A:o===Ft||o===Yt?o=L:(o=A,r=void 0);const f=o===A&&s[a+1].startsWith("/>")?" ":"";n+=o===L?c+We:d>=0?(i.push(h),c.slice(0,d)+pe+c.slice(d)+_+f):c+_+(d===-2?a:f)}return[ve(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let yt=class me{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[h,l]=Ge(t,e);if(this.el=me.createElement(h,i),E.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=E.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(pe)){const u=l[o++],f=r.getAttribute(d).split(_),k=/([.?@])?(.*)/.exec(u);c.push({type:1,index:n,name:k[2],strings:f,ctor:k[1]==="."?Je:k[1]==="?"?Qe:k[1]==="@"?ti:it}),r.removeAttribute(d)}else d.startsWith(_)&&(c.push({type:6,index:n}),r.removeAttribute(d));if(fe.test(r.tagName)){const d=r.textContent.split(_),u=d.length-1;if(u>0){r.textContent=K?K.emptyScript:"";for(let f=0;f<u;f++)r.append(d[f],I()),E.nextNode(),c.push({type:2,index:++n});r.append(d[u],I())}}}else if(r.nodeType===8)if(r.data===ue)c.push({type:2,index:n});else{let d=-1;for(;(d=r.data.indexOf(_,d+1))!==-1;)c.push({type:7,index:n}),d+=_.length-1}n++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}};function M(s,t,e=s,i){var o,a;if(t===P)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=M(s,r._$AS(s,t.values),r,i)),t}class Xe{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:i}=this._$AD,r=((t==null?void 0:t.creationScope)??S).importNode(e,!0);E.currentNode=r;let n=E.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new D(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new ei(n,this,t)),this._$AV.push(h),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=E.nextNode(),o++)}return E.currentNode=S,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,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=M(this,t,e),B(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):qe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yt.createElement(ve(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Xe(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new yt(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new D(this.O(I()),this.O(I()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.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 it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=M(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=M(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!B(h)||h!==this._$AH[c]),h===p?t=p:t!==p&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Je extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Qe extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ti extends it{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??p)===P)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ei{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const at=j.litHtmlPolyfillSupport;at==null||at(yt,D),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.2.1");const ii=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new D(t.insertBefore(I(),n),n,void 0,e??{})}return r._$AI(s),r};/**
16
+ \f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,Yt=/>/g,A=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Zt=/'/g,Wt=/"/g,fe=/^(?:script|style|textarea|title)$/i,ge=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),x=ge(1),Ke=ge(2),P=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),qt=new WeakMap,E=S.createTreeWalker(S,129);function ve(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dt!==void 0?Dt.createHTML(t):t}const Ge=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":t===3?"<math>":"",o=U;for(let a=0;a<e;a++){const c=s[a];let h,l,d=-1,u=0;for(;u<c.length&&(o.lastIndex=u,l=o.exec(c),l!==null);)u=o.lastIndex,o===U?l[1]==="!--"?o=Ft:l[1]!==void 0?o=Yt:l[2]!==void 0?(fe.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=A):l[3]!==void 0&&(o=A):o===A?l[0]===">"?(o=r??U,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?A:l[3]==='"'?Wt:Zt):o===Wt||o===Zt?o=A:o===Ft||o===Yt?o=U:(o=A,r=void 0);const f=o===A&&s[a+1].startsWith("/>")?" ":"";n+=o===U?c+We:d>=0?(i.push(h),c.slice(0,d)+pe+c.slice(d)+_+f):c+_+(d===-2?a:f)}return[ve(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let yt=class me{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[h,l]=Ge(t,e);if(this.el=me.createElement(h,i),E.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=E.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(pe)){const u=l[o++],f=r.getAttribute(d).split(_),k=/([.?@])?(.*)/.exec(u);c.push({type:1,index:n,name:k[2],strings:f,ctor:k[1]==="."?Je:k[1]==="?"?Qe:k[1]==="@"?ti:it}),r.removeAttribute(d)}else d.startsWith(_)&&(c.push({type:6,index:n}),r.removeAttribute(d));if(fe.test(r.tagName)){const d=r.textContent.split(_),u=d.length-1;if(u>0){r.textContent=K?K.emptyScript:"";for(let f=0;f<u;f++)r.append(d[f],I()),E.nextNode(),c.push({type:2,index:++n});r.append(d[u],I())}}}else if(r.nodeType===8)if(r.data===ue)c.push({type:2,index:n});else{let d=-1;for(;(d=r.data.indexOf(_,d+1))!==-1;)c.push({type:7,index:n}),d+=_.length-1}n++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}};function M(s,t,e=s,i){var o,a;if(t===P)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=M(s,r._$AS(s,t.values),r,i)),t}class Xe{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:i}=this._$AD,r=((t==null?void 0:t.creationScope)??S).importNode(e,!0);E.currentNode=r;let n=E.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new D(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new ei(n,this,t)),this._$AV.push(h),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=E.nextNode(),o++)}return E.currentNode=S,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,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=M(this,t,e),B(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):qe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yt.createElement(ve(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Xe(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new yt(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new D(this.O(I()),this.O(I()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.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 it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=M(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=M(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!B(h)||h!==this._$AH[c]),h===p?t=p:t!==p&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Je extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class Qe extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ti extends it{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??p)===P)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ei{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const at=j.litHtmlPolyfillSupport;at==null||at(yt,D),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.2.1");const ii=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new D(t.insertBefore(I(),n),n,void 0,e??{})}return r._$AI(s),r};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -26,7 +26,7 @@
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function U(s){return g({...s,state:!0,attribute:!1})}var ni=Object.defineProperty,oi=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&ni(t,e,r),r};const Pt=class Pt extends m{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}};Pt.styles=[O`
29
+ */function L(s){return g({...s,state:!0,attribute:!1})}var ni=Object.defineProperty,oi=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&ni(t,e,r),r};const Pt=class Pt extends m{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}};Pt.styles=[O`
30
30
  :host {
31
31
  position: fixed;
32
32
  display: flex;
@@ -244,7 +244,7 @@
244
244
  .trigger-label:hover {
245
245
  opacity: 0.8;
246
246
  }
247
- `];let $=Ot;F([g({attribute:!1})],$.prototype,"application");F([U()],$.prototype,"active");F([U()],$.prototype,"triggerVisible");F([U()],$.prototype,"loaded");F([U()],$.prototype,"icon");var $i=Object.defineProperty,C=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&$i(t,e,r),r};const Ce=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}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)}};e.styles=[O`
247
+ `];let $=Ot;F([g({attribute:!1})],$.prototype,"application");F([L()],$.prototype,"active");F([L()],$.prototype,"triggerVisible");F([L()],$.prototype,"loaded");F([L()],$.prototype,"icon");var $i=Object.defineProperty,C=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&$i(t,e,r),r};const Ce=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}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)}};e.styles=[O`
248
248
  :host {
249
249
  font-family: var(--font-family);
250
250
  grid-column: span var(--width);
@@ -284,7 +284,7 @@
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
- */function xi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var Ei=Object.defineProperty,Si=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Ei(t,e,r),r};const Pi="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=we()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&_e(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===V.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),x`<div class="widget-container" ${Ae(this.wrapperRef)}>
287
+ */function xi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var Ei=Object.defineProperty,Si=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Ei(t,e,r),r};const Pi="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=we()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&_e(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===V.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.mobile&&this.renderRoot.host.classList.add("mobile"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),x`<div class="widget-container" ${Ae(this.wrapperRef)}>
288
288
  ${_i(this.nodes,n=>n)}
289
289
  </div>`}};Tt.styles=O`
290
290
  :host {
@@ -331,6 +331,18 @@
331
331
  position: fixed;
332
332
  }
333
333
 
334
+ :host(.mobile.floating) {
335
+ inset: 0 !important;
336
+ height: 100% !important;
337
+ width: auto !important;
338
+ max-height: none !important;
339
+ }
340
+
341
+ :host(.mobile.floating) .widget-container {
342
+ box-shadow: none !important;
343
+ border-radius: 0 !important;
344
+ }
345
+
334
346
  @media screen and (max-width: 800px) {
335
347
  :host(.floating) {
336
348
  inset: 0;
@@ -425,7 +437,7 @@
425
437
  :host {
426
438
  display: block;
427
439
  }
428
- `];let H=Mt;St([g({attribute:!0})],H.prototype,"name");St([U()],H.prototype,"widget");St([U()],H.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",G);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",J);customElements.get("ace-widget")||customElements.define("ace-widget",H);const ki=Ke`
440
+ `];let H=Mt;St([g({attribute:!0})],H.prototype,"name");St([L()],H.prototype,"widget");St([L()],H.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",G);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",J);customElements.get("ace-widget")||customElements.define("ace-widget",H);const ki=Ke`
429
441
  <g clip-path="url(#clip0_119_1665)">
430
442
  <path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
431
443
  <path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-C6lijIr-.js")))};module.exports=o;
1
+ "use strict";const o=async e=>{e.registerComponent("copyright",Promise.resolve().then(()=>require("./copyright-C0AiO3hB.js")))};module.exports=o;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const t = async (o) => {
2
- o.registerComponent("copyright", import("./copyright-DA60KPU6.mjs"));
2
+ o.registerComponent("copyright", import("./copyright-BFWW29bM.mjs"));
3
3
  };
4
4
  export {
5
5
  t as default
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-copyright-flamingo",
3
- "version": "1.1.82-rc.4",
3
+ "version": "1.1.82-rc.5",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.82-rc.4"
6
+ "@telia-ace/widget-core-flamingo": "1.1.82-rc.5"
7
7
  },
8
8
  "main": "./index.js",
9
9
  "module": "./index.mjs",