@telia-ace/widget-core-flamingo 1.1.26 → 1.1.27-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/index.mjs CHANGED
@@ -6,7 +6,7 @@ var ht = function(i, t) {
6
6
  Object.prototype.hasOwnProperty.call(r, s) && (e[s] = r[s]);
7
7
  }, ht(i, t);
8
8
  };
9
- function L(i, t) {
9
+ function D(i, t) {
10
10
  if (typeof t != "function" && t !== null)
11
11
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
12
  ht(i, t);
@@ -27,7 +27,7 @@ function pt(i) {
27
27
  };
28
28
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
29
29
  }
30
- function F(i, t) {
30
+ function J(i, t) {
31
31
  var e = typeof Symbol == "function" && i[Symbol.iterator];
32
32
  if (!e)
33
33
  return i;
@@ -47,7 +47,7 @@ function F(i, t) {
47
47
  }
48
48
  return n;
49
49
  }
50
- function J(i, t, e) {
50
+ function K(i, t, e) {
51
51
  if (e || arguments.length === 2)
52
52
  for (var r = 0, s = t.length, n; r < s; r++)
53
53
  (n || !(r in t)) && (n || (n = Array.prototype.slice.call(t, 0, r)), n[r] = t[r]);
@@ -77,7 +77,7 @@ function ut(i, t) {
77
77
  0 <= e && i.splice(e, 1);
78
78
  }
79
79
  }
80
- var X = function() {
80
+ var tt = function() {
81
81
  function i(t) {
82
82
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
83
83
  }
@@ -121,7 +121,7 @@ var X = function() {
121
121
  try {
122
122
  $t(g);
123
123
  } catch (v) {
124
- n = n ?? [], v instanceof it ? n = J(J([], F(n)), F(v.errors)) : n.push(v);
124
+ n = n ?? [], v instanceof it ? n = K(K([], J(n)), J(v.errors)) : n.push(v);
125
125
  }
126
126
  }
127
127
  } catch (v) {
@@ -167,9 +167,9 @@ var X = function() {
167
167
  var t = new i();
168
168
  return t.closed = !0, t;
169
169
  }(), i;
170
- }(), Lt = X.EMPTY;
170
+ }(), Lt = tt.EMPTY;
171
171
  function Dt(i) {
172
- return i instanceof X || i && "closed" in i && m(i.remove) && m(i.add) && m(i.unsubscribe);
172
+ return i instanceof tt || i && "closed" in i && m(i.remove) && m(i.add) && m(i.unsubscribe);
173
173
  }
174
174
  function $t(i) {
175
175
  m(i) ? i() : i.unsubscribe();
@@ -185,7 +185,7 @@ var Bt = {
185
185
  for (var e = [], r = 2; r < arguments.length; r++)
186
186
  e[r - 2] = arguments[r];
187
187
  var s = dt.delegate;
188
- return s != null && s.setTimeout ? s.setTimeout.apply(s, J([i, t], F(e))) : setTimeout.apply(void 0, J([i, t], F(e)));
188
+ return s != null && s.setTimeout ? s.setTimeout.apply(s, K([i, t], J(e))) : setTimeout.apply(void 0, K([i, t], J(e)));
189
189
  },
190
190
  clearTimeout: function(i) {
191
191
  var t = dt.delegate;
@@ -193,7 +193,7 @@ var Bt = {
193
193
  },
194
194
  delegate: void 0
195
195
  };
196
- function ne(i) {
196
+ function ae(i) {
197
197
  dt.setTimeout(function() {
198
198
  throw i;
199
199
  });
@@ -204,10 +204,10 @@ function Y(i) {
204
204
  i();
205
205
  }
206
206
  var zt = function(i) {
207
- L(t, i);
207
+ D(t, i);
208
208
  function t(e) {
209
209
  var r = i.call(this) || this;
210
- return r.isStopped = !1, e ? (r.destination = e, Dt(e) && e.add(r)) : r.destination = le, r;
210
+ return r.isStopped = !1, e ? (r.destination = e, Dt(e) && e.add(r)) : r.destination = pe, r;
211
211
  }
212
212
  return t.create = function(e, r, s) {
213
213
  return new ft(e, r, s);
@@ -234,11 +234,11 @@ var zt = function(i) {
234
234
  this.unsubscribe();
235
235
  }
236
236
  }, t;
237
- }(X), oe = Function.prototype.bind;
237
+ }(tt), ce = Function.prototype.bind;
238
238
  function st(i, t) {
239
- return oe.call(i, t);
239
+ return ce.call(i, t);
240
240
  }
241
- var ae = function() {
241
+ var le = function() {
242
242
  function i(t) {
243
243
  this.partialObserver = t;
244
244
  }
@@ -248,7 +248,7 @@ var ae = function() {
248
248
  try {
249
249
  e.next(t);
250
250
  } catch (r) {
251
- G(r);
251
+ V(r);
252
252
  }
253
253
  }, i.prototype.error = function(t) {
254
254
  var e = this.partialObserver;
@@ -256,21 +256,21 @@ var ae = function() {
256
256
  try {
257
257
  e.error(t);
258
258
  } catch (r) {
259
- G(r);
259
+ V(r);
260
260
  }
261
261
  else
262
- G(t);
262
+ V(t);
263
263
  }, i.prototype.complete = function() {
264
264
  var t = this.partialObserver;
265
265
  if (t.complete)
266
266
  try {
267
267
  t.complete();
268
268
  } catch (e) {
269
- G(e);
269
+ V(e);
270
270
  }
271
271
  }, i;
272
272
  }(), ft = function(i) {
273
- L(t, i);
273
+ D(t, i);
274
274
  function t(e, r, s) {
275
275
  var n = i.call(this) || this, o;
276
276
  if (m(e) || !e)
@@ -289,29 +289,29 @@ var ae = function() {
289
289
  complete: e.complete && st(e.complete, a)
290
290
  }) : o = e;
291
291
  }
292
- return n.destination = new ae(o), n;
292
+ return n.destination = new le(o), n;
293
293
  }
294
294
  return t;
295
295
  }(zt);
296
- function G(i) {
297
- ne(i);
296
+ function V(i) {
297
+ ae(i);
298
298
  }
299
- function ce(i) {
299
+ function he(i) {
300
300
  throw i;
301
301
  }
302
- var le = {
302
+ var pe = {
303
303
  closed: !0,
304
304
  next: wt,
305
- error: ce,
305
+ error: he,
306
306
  complete: wt
307
- }, he = function() {
307
+ }, ue = function() {
308
308
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
309
309
  }();
310
- function pe(i) {
310
+ function de(i) {
311
311
  return i;
312
312
  }
313
- function ue(i) {
314
- return i.length === 0 ? pe : i.length === 1 ? i[0] : function(e) {
313
+ function fe(i) {
314
+ return i.length === 0 ? de : i.length === 1 ? i[0] : function(e) {
315
315
  return i.reduce(function(r, s) {
316
316
  return s(r);
317
317
  }, e);
@@ -325,7 +325,7 @@ var At = function() {
325
325
  var e = new i();
326
326
  return e.source = this, e.operator = t, e;
327
327
  }, i.prototype.subscribe = function(t, e, r) {
328
- var s = this, n = fe(t) ? t : new ft(t, e, r);
328
+ var s = this, n = ve(t) ? t : new ft(t, e, r);
329
329
  return Y(function() {
330
330
  var o = s, a = o.operator, c = o.source;
331
331
  n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
@@ -355,12 +355,12 @@ var At = function() {
355
355
  }, i.prototype._subscribe = function(t) {
356
356
  var e;
357
357
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
358
- }, i.prototype[he] = function() {
358
+ }, i.prototype[ue] = function() {
359
359
  return this;
360
360
  }, i.prototype.pipe = function() {
361
361
  for (var t = [], e = 0; e < arguments.length; e++)
362
362
  t[e] = arguments[e];
363
- return ue(t)(this);
363
+ return fe(t)(this);
364
364
  }, i.prototype.toPromise = function(t) {
365
365
  var e = this;
366
366
  return t = St(t), new t(function(r, s) {
@@ -381,18 +381,18 @@ function St(i) {
381
381
  var t;
382
382
  return (t = i ?? Bt.Promise) !== null && t !== void 0 ? t : Promise;
383
383
  }
384
- function de(i) {
384
+ function ge(i) {
385
385
  return i && m(i.next) && m(i.error) && m(i.complete);
386
386
  }
387
- function fe(i) {
388
- return i && i instanceof zt || de(i) && Dt(i);
387
+ function ve(i) {
388
+ return i && i instanceof zt || ge(i) && Dt(i);
389
389
  }
390
- var ge = Nt(function(i) {
390
+ var ye = Nt(function(i) {
391
391
  return function() {
392
392
  i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
393
  };
394
394
  }), Wt = function(i) {
395
- L(t, i);
395
+ D(t, i);
396
396
  function t() {
397
397
  var e = i.call(this) || this;
398
398
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
@@ -402,7 +402,7 @@ var ge = Nt(function(i) {
402
402
  return r.operator = e, r;
403
403
  }, t.prototype._throwIfClosed = function() {
404
404
  if (this.closed)
405
- throw new ge();
405
+ throw new ye();
406
406
  }, t.prototype.next = function(e) {
407
407
  var r = this;
408
408
  Y(function() {
@@ -459,7 +459,7 @@ var ge = Nt(function(i) {
459
459
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
460
460
  }, t.prototype._innerSubscribe = function(e) {
461
461
  var r = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
462
- return n || o ? Lt : (this.currentObservers = null, a.push(e), new X(function() {
462
+ return n || o ? Lt : (this.currentObservers = null, a.push(e), new tt(function() {
463
463
  r.currentObservers = null, ut(a, e);
464
464
  }));
465
465
  }, t.prototype._checkFinalizedStatuses = function(e) {
@@ -472,7 +472,7 @@ var ge = Nt(function(i) {
472
472
  return new Et(e, r);
473
473
  }, t;
474
474
  }(At), Et = function(i) {
475
- L(t, i);
475
+ D(t, i);
476
476
  function t(e, r) {
477
477
  var s = i.call(this) || this;
478
478
  return s.destination = e, s.source = r, s;
@@ -490,8 +490,8 @@ var ge = Nt(function(i) {
490
490
  var r, s;
491
491
  return (s = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(e)) !== null && s !== void 0 ? s : Lt;
492
492
  }, t;
493
- }(Wt), ve = function(i) {
494
- L(t, i);
493
+ }(Wt), me = function(i) {
494
+ D(t, i);
495
495
  function t(e) {
496
496
  var r = i.call(this) || this;
497
497
  return r._value = e, r;
@@ -516,7 +516,7 @@ var ge = Nt(function(i) {
516
516
  }(Wt), Gt = /* @__PURE__ */ ((i) => (i.Loading = "loading", i.Ready = "ready", i))(Gt || {});
517
517
  class xt {
518
518
  constructor(t, e) {
519
- this.state = new ve(
519
+ this.state = new me(
520
520
  "loading"
521
521
  /* Loading */
522
522
  ), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
@@ -539,7 +539,7 @@ class xt {
539
539
  * Copyright 2019 Google LLC
540
540
  * SPDX-License-Identifier: BSD-3-Clause
541
541
  */
542
- const q = globalThis, vt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), Ct = /* @__PURE__ */ new WeakMap();
542
+ const F = globalThis, vt = F.ShadowRoot && (F.ShadyCSS === void 0 || F.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), Ct = /* @__PURE__ */ new WeakMap();
543
543
  let Vt = class {
544
544
  constructor(t, e, r) {
545
545
  if (this._$cssResult$ = !0, r !== yt)
@@ -559,7 +559,7 @@ let Vt = class {
559
559
  return this.cssText;
560
560
  }
561
561
  };
562
- const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), D = (i, ...t) => {
562
+ const be = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), B = (i, ...t) => {
563
563
  const e = i.length === 1 ? i[0] : t.reduce((r, s, n) => r + ((o) => {
564
564
  if (o._$cssResult$ === !0)
565
565
  return o.cssText;
@@ -568,29 +568,29 @@ const ye = (i) => new Vt(typeof i == "string" ? i : i + "", void 0, yt), D = (i,
568
568
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
569
569
  })(s) + i[n + 1], i[0]);
570
570
  return new Vt(e, i, yt);
571
- }, me = (i, t) => {
571
+ }, _e = (i, t) => {
572
572
  if (vt)
573
573
  i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
574
574
  else
575
575
  for (const e of t) {
576
- const r = document.createElement("style"), s = q.litNonce;
576
+ const r = document.createElement("style"), s = F.litNonce;
577
577
  s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, i.appendChild(r);
578
578
  }
579
579
  }, Pt = vt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
580
580
  let e = "";
581
581
  for (const r of t.cssRules)
582
582
  e += r.cssText;
583
- return ye(e);
583
+ return be(e);
584
584
  })(i) : i;
585
585
  /**
586
586
  * @license
587
587
  * Copyright 2017 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "", nt = _.reactiveElementPolyfillSupport, R = (i, t) => i, K = { toAttribute(i, t) {
590
+ const { is: $e, defineProperty: we, getOwnPropertyDescriptor: Ae, getOwnPropertyNames: Se, getOwnPropertySymbols: Ee, getPrototypeOf: xe } = Object, $ = globalThis, Tt = $.trustedTypes, Ce = Tt ? Tt.emptyScript : "", nt = $.reactiveElementPolyfillSupport, I = (i, t) => i, Z = { toAttribute(i, t) {
591
591
  switch (t) {
592
592
  case Boolean:
593
- i = i ? Ee : null;
593
+ i = i ? Ce : null;
594
594
  break;
595
595
  case Object:
596
596
  case Array:
@@ -615,8 +615,8 @@ const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnProperty
615
615
  }
616
616
  }
617
617
  return e;
618
- } }, mt = (i, t) => !be(i, t), Ot = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: mt };
619
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
618
+ } }, mt = (i, t) => !$e(i, t), Ot = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt };
619
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), $.litPropertyMetadata ?? ($.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
620
620
  class T extends HTMLElement {
621
621
  static addInitializer(t) {
622
622
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -627,11 +627,11 @@ class T extends HTMLElement {
627
627
  static createProperty(t, e = Ot) {
628
628
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
629
629
  const r = Symbol(), s = this.getPropertyDescriptor(t, r, e);
630
- s !== void 0 && _e(this.prototype, t, s);
630
+ s !== void 0 && we(this.prototype, t, s);
631
631
  }
632
632
  }
633
633
  static getPropertyDescriptor(t, e, r) {
634
- const { get: s, set: n } = $e(this.prototype, t) ?? { get() {
634
+ const { get: s, set: n } = Ae(this.prototype, t) ?? { get() {
635
635
  return this[e];
636
636
  }, set(o) {
637
637
  this[e] = o;
@@ -647,16 +647,16 @@ class T extends HTMLElement {
647
647
  return this.elementProperties.get(t) ?? Ot;
648
648
  }
649
649
  static _$Ei() {
650
- if (this.hasOwnProperty(R("elementProperties")))
650
+ if (this.hasOwnProperty(I("elementProperties")))
651
651
  return;
652
- const t = Se(this);
652
+ const t = xe(this);
653
653
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
654
654
  }
655
655
  static finalize() {
656
- if (this.hasOwnProperty(R("finalized")))
656
+ if (this.hasOwnProperty(I("finalized")))
657
657
  return;
658
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(R("properties"))) {
659
- const e = this.properties, r = [...we(e), ...Ae(e)];
658
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
659
+ const e = this.properties, r = [...Se(e), ...Ee(e)];
660
660
  for (const s of r)
661
661
  this.createProperty(s, e[s]);
662
662
  }
@@ -711,7 +711,7 @@ class T extends HTMLElement {
711
711
  }
712
712
  createRenderRoot() {
713
713
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
714
- return me(t, this.constructor.elementStyles), t;
714
+ return _e(t, this.constructor.elementStyles), t;
715
715
  }
716
716
  connectedCallback() {
717
717
  var t;
@@ -736,7 +736,7 @@ class T extends HTMLElement {
736
736
  var n;
737
737
  const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
738
738
  if (s !== void 0 && r.reflect === !0) {
739
- const o = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : K).toAttribute(e, r.type);
739
+ const o = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : Z).toAttribute(e, r.type);
740
740
  this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
741
741
  }
742
742
  }
@@ -744,7 +744,7 @@ class T extends HTMLElement {
744
744
  var n;
745
745
  const r = this.constructor, s = r._$Eh.get(t);
746
746
  if (s !== void 0 && this._$Em !== s) {
747
- const o = r.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : K;
747
+ const o = r.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
748
748
  this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
749
749
  }
750
750
  }
@@ -828,40 +828,40 @@ class T extends HTMLElement {
828
828
  firstUpdated(t) {
829
829
  }
830
830
  }
831
- T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[R("elementProperties")] = /* @__PURE__ */ new Map(), T[R("finalized")] = /* @__PURE__ */ new Map(), nt == null || nt({ ReactiveElement: T }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
831
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[I("elementProperties")] = /* @__PURE__ */ new Map(), T[I("finalized")] = /* @__PURE__ */ new Map(), nt == null || nt({ ReactiveElement: T }), ($.reactiveElementVersions ?? ($.reactiveElementVersions = [])).push("2.0.1");
832
832
  /**
833
833
  * @license
834
834
  * Copyright 2017 Google LLC
835
835
  * SPDX-License-Identifier: BSD-3-Clause
836
836
  */
837
- const I = globalThis, Z = I.trustedTypes, Ut = Z ? Z.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Yt = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, qt = "?" + b, xe = `<${qt}>`, C = document, j = () => C.createComment(""), H = (i) => i === null || typeof i != "object" && typeof i != "function", Ft = Array.isArray, Ce = (i) => Ft(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ot = `[
838
- \f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rt = /-->/g, It = />/g, S = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
839
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), M = Pe(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), x = C.createTreeWalker(C, 129);
837
+ const M = globalThis, Q = M.trustedTypes, Ut = Q ? Q.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, qt = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, Yt = "?" + _, Pe = `<${Yt}>`, C = document, H = () => C.createComment(""), N = (i) => i === null || typeof i != "object" && typeof i != "function", Ft = Array.isArray, Te = (i) => Ft(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ot = `[
838
+ \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rt = /-->/g, It = />/g, S = RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
839
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Oe = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), k = Oe(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), x = C.createTreeWalker(C, 129);
840
840
  function Kt(i, t) {
841
841
  if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
842
842
  throw Error("invalid template strings array");
843
843
  return Ut !== void 0 ? Ut.createHTML(t) : t;
844
844
  }
845
- const Te = (i, t) => {
845
+ const Ue = (i, t) => {
846
846
  const e = i.length - 1, r = [];
847
- let s, n = t === 2 ? "<svg>" : "", o = U;
847
+ let s, n = t === 2 ? "<svg>" : "", o = R;
848
848
  for (let a = 0; a < e; a++) {
849
849
  const c = i[a];
850
850
  let h, p, l = -1, f = 0;
851
851
  for (; f < c.length && (o.lastIndex = f, p = o.exec(c), p !== null); )
852
- f = o.lastIndex, o === U ? p[1] === "!--" ? o = Rt : p[1] !== void 0 ? o = It : p[2] !== void 0 ? (Jt.test(p[2]) && (s = RegExp("</" + p[2], "g")), o = S) : p[3] !== void 0 && (o = S) : o === S ? p[0] === ">" ? (o = s ?? U, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? S : p[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = U : (o = S, s = void 0);
852
+ f = o.lastIndex, o === R ? p[1] === "!--" ? o = Rt : p[1] !== void 0 ? o = It : p[2] !== void 0 ? (Jt.test(p[2]) && (s = RegExp("</" + p[2], "g")), o = S) : p[3] !== void 0 && (o = S) : o === S ? p[0] === ">" ? (o = s ?? R, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, h = p[1], o = p[3] === void 0 ? S : p[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = R : (o = S, s = void 0);
853
853
  const u = o === S && i[a + 1].startsWith("/>") ? " " : "";
854
- n += o === U ? c + xe : l >= 0 ? (r.push(h), c.slice(0, l) + Yt + c.slice(l) + b + u) : c + b + (l === -2 ? a : u);
854
+ n += o === R ? c + Pe : l >= 0 ? (r.push(h), c.slice(0, l) + qt + c.slice(l) + _ + u) : c + _ + (l === -2 ? a : u);
855
855
  }
856
856
  return [Kt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
857
857
  };
858
- class N {
858
+ class L {
859
859
  constructor({ strings: t, _$litType$: e }, r) {
860
860
  let s;
861
861
  this.parts = [];
862
862
  let n = 0, o = 0;
863
- const a = t.length - 1, c = this.parts, [h, p] = Te(t, e);
864
- if (this.el = N.createElement(h, r), x.currentNode = this.el.content, e === 2) {
863
+ const a = t.length - 1, c = this.parts, [h, p] = Ue(t, e);
864
+ if (this.el = L.createElement(h, r), x.currentNode = this.el.content, e === 2) {
865
865
  const l = this.el.content.firstChild;
866
866
  l.replaceWith(...l.childNodes);
867
867
  }
@@ -869,27 +869,27 @@ class N {
869
869
  if (s.nodeType === 1) {
870
870
  if (s.hasAttributes())
871
871
  for (const l of s.getAttributeNames())
872
- if (l.endsWith(Yt)) {
873
- const f = p[o++], u = s.getAttribute(l).split(b), g = /([.?@])?(.*)/.exec(f);
874
- c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Ue : g[1] === "?" ? Re : g[1] === "@" ? Ie : tt }), s.removeAttribute(l);
872
+ if (l.endsWith(qt)) {
873
+ const f = p[o++], u = s.getAttribute(l).split(_), g = /([.?@])?(.*)/.exec(f);
874
+ c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? Ie : g[1] === "?" ? Me : g[1] === "@" ? ke : et }), s.removeAttribute(l);
875
875
  } else
876
- l.startsWith(b) && (c.push({ type: 6, index: n }), s.removeAttribute(l));
876
+ l.startsWith(_) && (c.push({ type: 6, index: n }), s.removeAttribute(l));
877
877
  if (Jt.test(s.tagName)) {
878
- const l = s.textContent.split(b), f = l.length - 1;
878
+ const l = s.textContent.split(_), f = l.length - 1;
879
879
  if (f > 0) {
880
- s.textContent = Z ? Z.emptyScript : "";
880
+ s.textContent = Q ? Q.emptyScript : "";
881
881
  for (let u = 0; u < f; u++)
882
- s.append(l[u], j()), x.nextNode(), c.push({ type: 2, index: ++n });
883
- s.append(l[f], j());
882
+ s.append(l[u], H()), x.nextNode(), c.push({ type: 2, index: ++n });
883
+ s.append(l[f], H());
884
884
  }
885
885
  }
886
886
  } else if (s.nodeType === 8)
887
- if (s.data === qt)
887
+ if (s.data === Yt)
888
888
  c.push({ type: 2, index: n });
889
889
  else {
890
890
  let l = -1;
891
- for (; (l = s.data.indexOf(b, l + 1)) !== -1; )
892
- c.push({ type: 7, index: n }), l += b.length - 1;
891
+ for (; (l = s.data.indexOf(_, l + 1)) !== -1; )
892
+ c.push({ type: 7, index: n }), l += _.length - 1;
893
893
  }
894
894
  n++;
895
895
  }
@@ -904,10 +904,10 @@ function O(i, t, e = i, r) {
904
904
  if (t === P)
905
905
  return t;
906
906
  let s = r !== void 0 ? (o = e._$Co) == null ? void 0 : o[r] : e._$Cl;
907
- const n = H(t) ? void 0 : t._$litDirective$;
907
+ const n = N(t) ? void 0 : t._$litDirective$;
908
908
  return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(i), s._$AT(i, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = s : e._$Cl = s), s !== void 0 && (t = O(i, s._$AS(i, t.values), s, r)), t;
909
909
  }
910
- class Oe {
910
+ class Re {
911
911
  constructor(t, e) {
912
912
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
913
913
  }
@@ -924,7 +924,7 @@ class Oe {
924
924
  for (; c !== void 0; ) {
925
925
  if (o === c.index) {
926
926
  let h;
927
- c.type === 2 ? h = new B(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new Me(n, this, t)), this._$AV.push(h), c = r[++a];
927
+ c.type === 2 ? h = new z(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new je(n, this, t)), this._$AV.push(h), c = r[++a];
928
928
  }
929
929
  o !== (c == null ? void 0 : c.index) && (n = x.nextNode(), o++);
930
930
  }
@@ -936,7 +936,7 @@ class Oe {
936
936
  r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
937
937
  }
938
938
  }
939
- class B {
939
+ class z {
940
940
  get _$AU() {
941
941
  var t;
942
942
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -956,7 +956,7 @@ class B {
956
956
  return this._$AB;
957
957
  }
958
958
  _$AI(t, e = this) {
959
- t = O(this, t, e), H(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ce(t) ? this.T(t) : this._(t);
959
+ t = O(this, t, e), N(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Te(t) ? this.T(t) : this._(t);
960
960
  }
961
961
  k(t) {
962
962
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -965,28 +965,28 @@ class B {
965
965
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
966
966
  }
967
967
  _(t) {
968
- this._$AH !== d && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(C.createTextNode(t)), this._$AH = t;
968
+ this._$AH !== d && N(this._$AH) ? this._$AA.nextSibling.data = t : this.$(C.createTextNode(t)), this._$AH = t;
969
969
  }
970
970
  g(t) {
971
971
  var n;
972
- const { values: e, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = N.createElement(Kt(r.h, r.h[0]), this.options)), r);
972
+ const { values: e, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = L.createElement(Kt(r.h, r.h[0]), this.options)), r);
973
973
  if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
974
974
  this._$AH.p(e);
975
975
  else {
976
- const o = new Oe(s, this), a = o.u(this.options);
976
+ const o = new Re(s, this), a = o.u(this.options);
977
977
  o.p(e), this.$(a), this._$AH = o;
978
978
  }
979
979
  }
980
980
  _$AC(t) {
981
981
  let e = jt.get(t.strings);
982
- return e === void 0 && jt.set(t.strings, e = new N(t)), e;
982
+ return e === void 0 && jt.set(t.strings, e = new L(t)), e;
983
983
  }
984
984
  T(t) {
985
985
  Ft(this._$AH) || (this._$AH = [], this._$AR());
986
986
  const e = this._$AH;
987
987
  let r, s = 0;
988
988
  for (const n of t)
989
- s === e.length ? e.push(r = new B(this.k(j()), this.k(j()), this, this.options)) : r = e[s], r._$AI(n), s++;
989
+ s === e.length ? e.push(r = new z(this.k(H()), this.k(H()), this, this.options)) : r = e[s], r._$AI(n), s++;
990
990
  s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
991
991
  }
992
992
  _$AR(t = this._$AA.nextSibling, e) {
@@ -1001,7 +1001,7 @@ class B {
1001
1001
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
1002
1002
  }
1003
1003
  }
1004
- class tt {
1004
+ class et {
1005
1005
  get tagName() {
1006
1006
  return this.element.tagName;
1007
1007
  }
@@ -1015,12 +1015,12 @@ class tt {
1015
1015
  const n = this.strings;
1016
1016
  let o = !1;
1017
1017
  if (n === void 0)
1018
- t = O(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
1018
+ t = O(this, t, e, 0), o = !N(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
1019
1019
  else {
1020
1020
  const a = t;
1021
1021
  let c, h;
1022
1022
  for (t = n[0], c = 0; c < n.length - 1; c++)
1023
- h = O(this, a[r + c], e, c), h === P && (h = this._$AH[c]), o || (o = !H(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
1023
+ h = O(this, a[r + c], e, c), h === P && (h = this._$AH[c]), o || (o = !N(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
1024
1024
  }
1025
1025
  o && !s && this.O(t);
1026
1026
  }
@@ -1028,7 +1028,7 @@ class tt {
1028
1028
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1029
1029
  }
1030
1030
  }
1031
- class Ue extends tt {
1031
+ class Ie extends et {
1032
1032
  constructor() {
1033
1033
  super(...arguments), this.type = 3;
1034
1034
  }
@@ -1036,7 +1036,7 @@ class Ue extends tt {
1036
1036
  this.element[this.name] = t === d ? void 0 : t;
1037
1037
  }
1038
1038
  }
1039
- class Re extends tt {
1039
+ class Me extends et {
1040
1040
  constructor() {
1041
1041
  super(...arguments), this.type = 4;
1042
1042
  }
@@ -1044,7 +1044,7 @@ class Re extends tt {
1044
1044
  this.element.toggleAttribute(this.name, !!t && t !== d);
1045
1045
  }
1046
1046
  }
1047
- class Ie extends tt {
1047
+ class ke extends et {
1048
1048
  constructor(t, e, r, s, n) {
1049
1049
  super(t, e, r, s, n), this.type = 5;
1050
1050
  }
@@ -1059,7 +1059,7 @@ class Ie extends tt {
1059
1059
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
1060
1060
  }
1061
1061
  }
1062
- class Me {
1062
+ class je {
1063
1063
  constructor(t, e, r) {
1064
1064
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
1065
1065
  }
@@ -1070,14 +1070,14 @@ class Me {
1070
1070
  O(this, t);
1071
1071
  }
1072
1072
  }
1073
- const at = I.litHtmlPolyfillSupport;
1074
- at == null || at(N, B), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.0.2");
1075
- const ke = (i, t, e) => {
1073
+ const at = M.litHtmlPolyfillSupport;
1074
+ at == null || at(L, z), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.0.2");
1075
+ const He = (i, t, e) => {
1076
1076
  const r = (e == null ? void 0 : e.renderBefore) ?? t;
1077
1077
  let s = r._$litPart$;
1078
1078
  if (s === void 0) {
1079
1079
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
1080
- r._$litPart$ = s = new B(t.insertBefore(j(), n), n, void 0, e ?? {});
1080
+ r._$litPart$ = s = new z(t.insertBefore(H(), n), n, void 0, e ?? {});
1081
1081
  }
1082
1082
  return s._$AI(i), s;
1083
1083
  };
@@ -1086,7 +1086,7 @@ const ke = (i, t, e) => {
1086
1086
  * Copyright 2017 Google LLC
1087
1087
  * SPDX-License-Identifier: BSD-3-Clause
1088
1088
  */
1089
- let $ = class extends T {
1089
+ let w = class extends T {
1090
1090
  constructor() {
1091
1091
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1092
1092
  }
@@ -1097,7 +1097,7 @@ let $ = class extends T {
1097
1097
  }
1098
1098
  update(t) {
1099
1099
  const e = this.render();
1100
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ke(e, this.renderRoot, this.renderOptions);
1100
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = He(e, this.renderRoot, this.renderOptions);
1101
1101
  }
1102
1102
  connectedCallback() {
1103
1103
  var t;
@@ -1112,16 +1112,16 @@ let $ = class extends T {
1112
1112
  }
1113
1113
  };
1114
1114
  var Ht;
1115
- $._$litElement$ = !0, $.finalized = !0, (Ht = globalThis.litElementHydrateSupport) == null || Ht.call(globalThis, { LitElement: $ });
1115
+ w._$litElement$ = !0, w.finalized = !0, (Ht = globalThis.litElementHydrateSupport) == null || Ht.call(globalThis, { LitElement: w });
1116
1116
  const ct = globalThis.litElementPolyfillSupport;
1117
- ct == null || ct({ LitElement: $ });
1117
+ ct == null || ct({ LitElement: w });
1118
1118
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
1119
1119
  /**
1120
1120
  * @license
1121
1121
  * Copyright 2017 Google LLC
1122
1122
  * SPDX-License-Identifier: BSD-3-Clause
1123
1123
  */
1124
- const je = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: mt }, He = (i = je, t, e) => {
1124
+ const Ne = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt }, Le = (i = Ne, t, e) => {
1125
1125
  const { kind: r, metadata: s } = e;
1126
1126
  let n = globalThis.litPropertyMetadata.get(s);
1127
1127
  if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, i), r === "accessor") {
@@ -1143,7 +1143,7 @@ const je = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged:
1143
1143
  throw Error("Unsupported decorator location: " + r);
1144
1144
  };
1145
1145
  function y(i) {
1146
- return (t, e) => typeof e == "object" ? He(i, t, e) : ((r, s, n) => {
1146
+ return (t, e) => typeof e == "object" ? Le(i, t, e) : ((r, s, n) => {
1147
1147
  const o = s.hasOwnProperty(n);
1148
1148
  return s.constructor.createProperty(n, o ? { ...r, wrapped: !0 } : r), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1149
1149
  })(i, t, e);
@@ -1153,7 +1153,7 @@ function y(i) {
1153
1153
  * Copyright 2017 Google LLC
1154
1154
  * SPDX-License-Identifier: BSD-3-Clause
1155
1155
  */
1156
- function z(i) {
1156
+ function U(i) {
1157
1157
  return y({ ...i, state: !0, attribute: !1 });
1158
1158
  }
1159
1159
  /**
@@ -1183,7 +1183,7 @@ class Xt {
1183
1183
  * Copyright 2018 Google LLC
1184
1184
  * SPDX-License-Identifier: BSD-3-Clause
1185
1185
  */
1186
- const Ne = Qt(class extends Xt {
1186
+ const De = Qt(class extends Xt {
1187
1187
  constructor(i) {
1188
1188
  var t;
1189
1189
  if (super(i), i.type !== Zt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
@@ -1209,35 +1209,149 @@ const Ne = Qt(class extends Xt {
1209
1209
  }
1210
1210
  return P;
1211
1211
  }
1212
- }), V = (i, t, e) => {
1212
+ }), q = (i, t, e) => {
1213
1213
  i && e.style.setProperty(t, i);
1214
1214
  }, te = (i, t) => {
1215
1215
  var e, r, s, n;
1216
- V((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), V(
1216
+ q((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), q(
1217
1217
  (r = i.colors) == null ? void 0 : r.textOnPrimaryBackground,
1218
1218
  "--text-on-primary-background",
1219
1219
  t
1220
- ), V(
1220
+ ), q(
1221
1221
  (s = i.colors) == null ? void 0 : s.secondaryBackground,
1222
1222
  "--secondary-background",
1223
1223
  t
1224
- ), V(
1224
+ ), q(
1225
1225
  (n = i.colors) == null ? void 0 : n.textOnSecondaryBackground,
1226
1226
  "--text-on-secondary-background",
1227
1227
  t
1228
1228
  );
1229
1229
  };
1230
- var Le = Object.defineProperty, De = Object.getOwnPropertyDescriptor, et = (i, t, e, r) => {
1231
- for (var s = r > 1 ? void 0 : r ? De(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1230
+ /**
1231
+ * @license
1232
+ * Copyright 2020 Google LLC
1233
+ * SPDX-License-Identifier: BSD-3-Clause
1234
+ */
1235
+ const Be = (i) => i.strings === void 0;
1236
+ /**
1237
+ * @license
1238
+ * Copyright 2017 Google LLC
1239
+ * SPDX-License-Identifier: BSD-3-Clause
1240
+ */
1241
+ const j = (i, t) => {
1242
+ var r;
1243
+ const e = i._$AN;
1244
+ if (e === void 0)
1245
+ return !1;
1246
+ for (const s of e)
1247
+ (r = s._$AO) == null || r.call(s, t, !1), j(s, t);
1248
+ return !0;
1249
+ }, X = (i) => {
1250
+ let t, e;
1251
+ do {
1252
+ if ((t = i._$AM) === void 0)
1253
+ break;
1254
+ e = t._$AN, e.delete(i), i = t;
1255
+ } while ((e == null ? void 0 : e.size) === 0);
1256
+ }, ee = (i) => {
1257
+ for (let t; t = i._$AM; i = t) {
1258
+ let e = t._$AN;
1259
+ if (e === void 0)
1260
+ t._$AN = e = /* @__PURE__ */ new Set();
1261
+ else if (e.has(i))
1262
+ break;
1263
+ e.add(i), Ge(t);
1264
+ }
1265
+ };
1266
+ function ze(i) {
1267
+ this._$AN !== void 0 ? (X(this), this._$AM = i, ee(this)) : this._$AM = i;
1268
+ }
1269
+ function We(i, t = !1, e = 0) {
1270
+ const r = this._$AH, s = this._$AN;
1271
+ if (s !== void 0 && s.size !== 0)
1272
+ if (t)
1273
+ if (Array.isArray(r))
1274
+ for (let n = e; n < r.length; n++)
1275
+ j(r[n], !1), X(r[n]);
1276
+ else
1277
+ r != null && (j(r, !1), X(r));
1278
+ else
1279
+ j(this, i);
1280
+ }
1281
+ const Ge = (i) => {
1282
+ i.type == Zt.CHILD && (i._$AP ?? (i._$AP = We), i._$AQ ?? (i._$AQ = ze));
1283
+ };
1284
+ class Ve extends Xt {
1285
+ constructor() {
1286
+ super(...arguments), this._$AN = void 0;
1287
+ }
1288
+ _$AT(t, e, r) {
1289
+ super._$AT(t, e, r), ee(this), this.isConnected = t._$AU;
1290
+ }
1291
+ _$AO(t, e = !0) {
1292
+ var r, s;
1293
+ t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (s = this.disconnected) == null || s.call(this)), e && (j(this, t), X(this));
1294
+ }
1295
+ setValue(t) {
1296
+ if (Be(this._$Ct))
1297
+ this._$Ct._$AI(t, this);
1298
+ else {
1299
+ const e = [...this._$Ct._$AH];
1300
+ e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
1301
+ }
1302
+ }
1303
+ disconnected() {
1304
+ }
1305
+ reconnected() {
1306
+ }
1307
+ }
1308
+ /**
1309
+ * @license
1310
+ * Copyright 2020 Google LLC
1311
+ * SPDX-License-Identifier: BSD-3-Clause
1312
+ */
1313
+ const re = () => new qe();
1314
+ class qe {
1315
+ }
1316
+ const lt = /* @__PURE__ */ new WeakMap(), ie = Qt(class extends Ve {
1317
+ render(i) {
1318
+ return d;
1319
+ }
1320
+ update(i, [t]) {
1321
+ var r;
1322
+ const e = t !== this.G;
1323
+ return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (r = i.options) == null ? void 0 : r.host, this.ot(this.lt = i.element)), d;
1324
+ }
1325
+ ot(i) {
1326
+ if (typeof this.G == "function") {
1327
+ const t = this.ct ?? globalThis;
1328
+ let e = lt.get(t);
1329
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, i), i !== void 0 && this.G.call(this.ct, i);
1330
+ } else
1331
+ this.G.value = i;
1332
+ }
1333
+ get rt() {
1334
+ var i, t;
1335
+ return typeof this.G == "function" ? (i = lt.get(this.ct ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1336
+ }
1337
+ disconnected() {
1338
+ this.rt === this.lt && this.ot(void 0);
1339
+ }
1340
+ reconnected() {
1341
+ this.ot(this.lt);
1342
+ }
1343
+ });
1344
+ var Ye = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, W = (i, t, e, r) => {
1345
+ for (var s = r > 1 ? void 0 : r ? Fe(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1232
1346
  (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1233
- return r && s && Le(t, e, s), s;
1347
+ return r && s && Ye(t, e, s), s;
1234
1348
  };
1235
- class A extends $ {
1349
+ class b extends w {
1236
1350
  constructor() {
1237
- super(...arguments), this.active = !1, this.loaded = !1;
1351
+ super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = re();
1238
1352
  }
1239
1353
  async connectedCallback() {
1240
- super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
1354
+ super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding(), this.offset > 0 && this.buttonRef.value && (this.buttonRef.value.style.right = `calc(${this.offset}px + 20px)`);
1241
1355
  }
1242
1356
  _toggleActive() {
1243
1357
  var t;
@@ -1257,7 +1371,7 @@ class A extends $ {
1257
1371
  var a, c, h;
1258
1372
  const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
1259
1373
  if (e)
1260
- return M` <img src=${e} class="trigger-icon" alt="" /> `;
1374
+ return k` <img src=${e} class="trigger-icon" alt="" /> `;
1261
1375
  const r = (h = this.application) == null ? void 0 : h.triggerIcon;
1262
1376
  if (!r)
1263
1377
  return d;
@@ -1267,7 +1381,7 @@ class A extends $ {
1267
1381
  switch (n) {
1268
1382
  case "Telia": {
1269
1383
  const p = await s(o);
1270
- return p ? M`<telia-icon
1384
+ return p ? k`<telia-icon
1271
1385
  class="trigger-icon"
1272
1386
  svg=${p.svg}
1273
1387
  size="lg"
@@ -1277,14 +1391,18 @@ class A extends $ {
1277
1391
  return d;
1278
1392
  }
1279
1393
  }
1394
+ setOffset(t) {
1395
+ this.offset = t;
1396
+ }
1280
1397
  render() {
1281
- return M`<button
1282
- class=${Ne({
1398
+ return k`<button
1399
+ class=${De({
1283
1400
  trigger: !0,
1284
1401
  active: this.active,
1285
1402
  rendered: this.loaded
1286
1403
  })}
1287
1404
  @click=${this._toggleActive}
1405
+ ${ie(this.buttonRef)}
1288
1406
  >
1289
1407
  ${this.icon}
1290
1408
  <span class="trigger-close">
@@ -1317,8 +1435,8 @@ class A extends $ {
1317
1435
  </button>`;
1318
1436
  }
1319
1437
  }
1320
- A.styles = [
1321
- D`
1438
+ b.styles = [
1439
+ B`
1322
1440
  :host {
1323
1441
  --voca-rem-multiplier: 0.625;
1324
1442
  display: block;
@@ -1392,24 +1510,27 @@ A.styles = [
1392
1510
  }
1393
1511
  `
1394
1512
  ];
1395
- et([
1513
+ W([
1396
1514
  y({ attribute: !1 })
1397
- ], A.prototype, "application", 2);
1398
- et([
1399
- z()
1400
- ], A.prototype, "active", 2);
1401
- et([
1402
- z()
1403
- ], A.prototype, "loaded", 2);
1404
- et([
1405
- z()
1406
- ], A.prototype, "icon", 2);
1407
- var Be = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, E = (i, t, e, r) => {
1408
- for (var s = r > 1 ? void 0 : r ? ze(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1515
+ ], b.prototype, "application", 2);
1516
+ W([
1517
+ U()
1518
+ ], b.prototype, "active", 2);
1519
+ W([
1520
+ U()
1521
+ ], b.prototype, "loaded", 2);
1522
+ W([
1523
+ U()
1524
+ ], b.prototype, "icon", 2);
1525
+ W([
1526
+ U()
1527
+ ], b.prototype, "offset", 2);
1528
+ var Je = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, E = (i, t, e, r) => {
1529
+ for (var s = r > 1 ? void 0 : r ? Ke(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1409
1530
  (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1410
- return r && s && Be(t, e, s), s;
1531
+ return r && s && Je(t, e, s), s;
1411
1532
  };
1412
- const We = (i) => {
1533
+ const Ze = (i) => {
1413
1534
  class t extends i {
1414
1535
  constructor() {
1415
1536
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -1435,7 +1556,7 @@ const We = (i) => {
1435
1556
  }
1436
1557
  return t.styles = [
1437
1558
  // (superClass as unknown as typeof LitElement).styles ?? [],
1438
- D`
1559
+ B`
1439
1560
  :host {
1440
1561
  font-family: var(--font-family);
1441
1562
  grid-column: span var(--width);
@@ -1464,132 +1585,18 @@ const We = (i) => {
1464
1585
  y({ attribute: !1 })
1465
1586
  ], t.prototype, "parent", 2), t;
1466
1587
  };
1467
- class bt extends We($) {
1588
+ class bt extends Ze(w) {
1468
1589
  render() {
1469
- return M`Non resolved component`;
1590
+ return k`Non resolved component`;
1470
1591
  }
1471
1592
  }
1472
1593
  bt.styles = [
1473
- D`
1594
+ B`
1474
1595
  :host {
1475
1596
  display: block;
1476
1597
  }
1477
1598
  `
1478
1599
  ];
1479
- /**
1480
- * @license
1481
- * Copyright 2020 Google LLC
1482
- * SPDX-License-Identifier: BSD-3-Clause
1483
- */
1484
- const Ge = (i) => i.strings === void 0;
1485
- /**
1486
- * @license
1487
- * Copyright 2017 Google LLC
1488
- * SPDX-License-Identifier: BSD-3-Clause
1489
- */
1490
- const k = (i, t) => {
1491
- var r;
1492
- const e = i._$AN;
1493
- if (e === void 0)
1494
- return !1;
1495
- for (const s of e)
1496
- (r = s._$AO) == null || r.call(s, t, !1), k(s, t);
1497
- return !0;
1498
- }, Q = (i) => {
1499
- let t, e;
1500
- do {
1501
- if ((t = i._$AM) === void 0)
1502
- break;
1503
- e = t._$AN, e.delete(i), i = t;
1504
- } while ((e == null ? void 0 : e.size) === 0);
1505
- }, ee = (i) => {
1506
- for (let t; t = i._$AM; i = t) {
1507
- let e = t._$AN;
1508
- if (e === void 0)
1509
- t._$AN = e = /* @__PURE__ */ new Set();
1510
- else if (e.has(i))
1511
- break;
1512
- e.add(i), qe(t);
1513
- }
1514
- };
1515
- function Ve(i) {
1516
- this._$AN !== void 0 ? (Q(this), this._$AM = i, ee(this)) : this._$AM = i;
1517
- }
1518
- function Ye(i, t = !1, e = 0) {
1519
- const r = this._$AH, s = this._$AN;
1520
- if (s !== void 0 && s.size !== 0)
1521
- if (t)
1522
- if (Array.isArray(r))
1523
- for (let n = e; n < r.length; n++)
1524
- k(r[n], !1), Q(r[n]);
1525
- else
1526
- r != null && (k(r, !1), Q(r));
1527
- else
1528
- k(this, i);
1529
- }
1530
- const qe = (i) => {
1531
- i.type == Zt.CHILD && (i._$AP ?? (i._$AP = Ye), i._$AQ ?? (i._$AQ = Ve));
1532
- };
1533
- class Fe extends Xt {
1534
- constructor() {
1535
- super(...arguments), this._$AN = void 0;
1536
- }
1537
- _$AT(t, e, r) {
1538
- super._$AT(t, e, r), ee(this), this.isConnected = t._$AU;
1539
- }
1540
- _$AO(t, e = !0) {
1541
- var r, s;
1542
- t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (s = this.disconnected) == null || s.call(this)), e && (k(this, t), Q(this));
1543
- }
1544
- setValue(t) {
1545
- if (Ge(this._$Ct))
1546
- this._$Ct._$AI(t, this);
1547
- else {
1548
- const e = [...this._$Ct._$AH];
1549
- e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
1550
- }
1551
- }
1552
- disconnected() {
1553
- }
1554
- reconnected() {
1555
- }
1556
- }
1557
- /**
1558
- * @license
1559
- * Copyright 2020 Google LLC
1560
- * SPDX-License-Identifier: BSD-3-Clause
1561
- */
1562
- const Je = () => new Ke();
1563
- class Ke {
1564
- }
1565
- const lt = /* @__PURE__ */ new WeakMap(), Ze = Qt(class extends Fe {
1566
- render(i) {
1567
- return d;
1568
- }
1569
- update(i, [t]) {
1570
- var r;
1571
- const e = t !== this.G;
1572
- return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (r = i.options) == null ? void 0 : r.host, this.ot(this.lt = i.element)), d;
1573
- }
1574
- ot(i) {
1575
- if (typeof this.G == "function") {
1576
- const t = this.ct ?? globalThis;
1577
- let e = lt.get(t);
1578
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, i), i !== void 0 && this.G.call(this.ct, i);
1579
- } else
1580
- this.G.value = i;
1581
- }
1582
- get rt() {
1583
- var i, t;
1584
- return typeof this.G == "function" ? (i = lt.get(this.ct ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1585
- }
1586
- disconnected() {
1587
- this.rt === this.lt && this.ot(void 0);
1588
- }
1589
- reconnected() {
1590
- this.ot(this.lt);
1591
- }
1592
- });
1593
1600
  /**
1594
1601
  * @license
1595
1602
  * Copyright 2021 Google LLC
@@ -1602,14 +1609,14 @@ function* Qe(i, t) {
1602
1609
  yield t(r, e++);
1603
1610
  }
1604
1611
  }
1605
- var w = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(w || {}), Xe = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, er = (i, t, e, r) => {
1612
+ var A = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(A || {}), Xe = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, er = (i, t, e, r) => {
1606
1613
  for (var s = r > 1 ? void 0 : r ? tr(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1607
1614
  (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1608
1615
  return r && s && Xe(t, e, s), s;
1609
1616
  };
1610
- class rt extends $ {
1617
+ class rt extends w {
1611
1618
  constructor() {
1612
- super(...arguments), this.nodes = [], this.wrapperRef = Je();
1619
+ super(...arguments), this.nodes = [], this.wrapperRef = re();
1613
1620
  }
1614
1621
  addChild(t) {
1615
1622
  t.parent = this, this.nodes.push(t);
@@ -1632,12 +1639,12 @@ class rt extends $ {
1632
1639
  this.applyBranding(), this.applyStyles();
1633
1640
  }
1634
1641
  render() {
1635
- return this.application.renderStrategy === w.Trigger && this.renderRoot.host.classList.add("floating"), M`<div class="widget-container" ${Ze(this.wrapperRef)}>
1642
+ return this.application.renderStrategy === A.Trigger && this.renderRoot.host.classList.add("floating"), k`<div class="widget-container" ${ie(this.wrapperRef)}>
1636
1643
  ${Qe(this.nodes, (t) => t)}
1637
1644
  </div>`;
1638
1645
  }
1639
1646
  }
1640
- rt.styles = D`
1647
+ rt.styles = B`
1641
1648
  :host {
1642
1649
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1643
1650
  --spacing-xs: 0.2rem;
@@ -1788,7 +1795,7 @@ class rr {
1788
1795
  return this.root;
1789
1796
  }
1790
1797
  }
1791
- const re = class {
1798
+ const se = class {
1792
1799
  constructor() {
1793
1800
  this.components = /* @__PURE__ */ new Map();
1794
1801
  }
@@ -1808,12 +1815,12 @@ const re = class {
1808
1815
  await Promise.all(i);
1809
1816
  }
1810
1817
  defineAsWebComponent(i, t) {
1811
- const e = re.ResolveWebComponentName(i);
1818
+ const e = se.ResolveWebComponentName(i);
1812
1819
  customElements.get(e) || customElements.define(e, t);
1813
1820
  }
1814
1821
  };
1815
- let ie = re;
1816
- ie.ResolveWebComponentName = (i) => `ace-${i}`;
1822
+ let ne = se;
1823
+ ne.ResolveWebComponentName = (i) => `ace-${i}`;
1817
1824
  class ir {
1818
1825
  constructor() {
1819
1826
  this.texts = /* @__PURE__ */ new Map();
@@ -1828,7 +1835,7 @@ class ir {
1828
1835
  }
1829
1836
  class sr {
1830
1837
  constructor(t, e, r, s) {
1831
- this.name = t, this.container = e, this.settings = r, this.options = s, this.platform = new rr(), this.texts = new ir(), this.renderStrategy = w.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new ie(), this.renderStrategy = this.options.renderStrategy || w.Inline, this.triggerIcon = this.options.triggerIcon, typeof s.autoActivate == "boolean" && (this.autoActivate = s.autoActivate), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
1838
+ this.name = t, this.container = e, this.settings = r, this.options = s, this.platform = new rr(), this.texts = new ir(), this.renderStrategy = A.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new ne(), this.renderStrategy = this.options.renderStrategy || A.Inline, this.triggerIcon = this.options.triggerIcon, typeof s.autoActivate == "boolean" && (this.autoActivate = s.autoActivate), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
1832
1839
  }
1833
1840
  async activate() {
1834
1841
  if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(Gt.Ready), this.autoActivate) {
@@ -1862,14 +1869,14 @@ class sr {
1862
1869
  return this.componentResolver.getComponent(t);
1863
1870
  }
1864
1871
  render() {
1865
- if (this.renderStrategy === w.Trigger) {
1866
- const t = new A();
1867
- return t.application = this, t;
1872
+ if (this.renderStrategy === A.Trigger) {
1873
+ const t = [...Array.from(document.querySelectorAll("ace-trigger"))].length, e = new b();
1874
+ return e.application = this, e.setOffset(t * 80), e;
1868
1875
  }
1869
1876
  return this.root;
1870
1877
  }
1871
1878
  }
1872
- const se = class {
1879
+ const oe = class {
1873
1880
  // TODO:
1874
1881
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
1875
1882
  async getSite(i) {
@@ -1877,8 +1884,8 @@ const se = class {
1877
1884
  return e ? {
1878
1885
  id: e.id,
1879
1886
  apps: e.widgets.map((r) => {
1880
- let s = w.Inline;
1881
- return r.renderStrategy === "Trigger" && (s = w.Trigger), {
1887
+ let s = A.Inline;
1888
+ return r.renderStrategy === "Trigger" && (s = A.Trigger), {
1882
1889
  id: r.id,
1883
1890
  widgetId: r.widgetId,
1884
1891
  renderStrategy: s,
@@ -1892,14 +1899,14 @@ const se = class {
1892
1899
  } : null;
1893
1900
  }
1894
1901
  async getWidget(i) {
1895
- const e = await (await fetch(`${se.endpoint}/widget/${i}`)).json();
1902
+ const e = await (await fetch(`${oe.endpoint}/widget/${i}`)).json();
1896
1903
  return e ? {
1897
1904
  name: e.name,
1898
1905
  config: JSON.parse(e.configuration)
1899
1906
  } : null;
1900
1907
  }
1901
1908
  };
1902
- let gt = se;
1909
+ let gt = oe;
1903
1910
  gt.endpoint = "https://widgets.ace.teliacompany.net/api";
1904
1911
  class nr {
1905
1912
  constructor() {
@@ -1983,7 +1990,7 @@ var ar = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, _t = (i, t
1983
1990
  (o = i[n]) && (s = (r ? o(t, e, s) : o(s)) || s);
1984
1991
  return r && s && ar(t, e, s), s;
1985
1992
  };
1986
- class W extends $ {
1993
+ class G extends w {
1987
1994
  constructor() {
1988
1995
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
1989
1996
  }
@@ -2008,15 +2015,15 @@ class W extends $ {
2008
2015
  render() {
2009
2016
  if (!this.widget || this.status !== "activated")
2010
2017
  return d;
2011
- if (this.widget.renderStrategy === w.Trigger) {
2012
- const t = new A();
2018
+ if (this.widget.renderStrategy === A.Trigger) {
2019
+ const t = new b();
2013
2020
  return t.application = this.widget, t;
2014
2021
  }
2015
2022
  return this.widget.render();
2016
2023
  }
2017
2024
  }
2018
- W.styles = [
2019
- D`
2025
+ G.styles = [
2026
+ B`
2020
2027
  :host {
2021
2028
  display: block;
2022
2029
  }
@@ -2024,28 +2031,28 @@ W.styles = [
2024
2031
  ];
2025
2032
  _t([
2026
2033
  y({ attribute: !0 })
2027
- ], W.prototype, "name", 2);
2034
+ ], G.prototype, "name", 2);
2028
2035
  _t([
2029
- z()
2030
- ], W.prototype, "widget", 2);
2036
+ U()
2037
+ ], G.prototype, "widget", 2);
2031
2038
  _t([
2032
- z()
2033
- ], W.prototype, "status", 2);
2034
- customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
2039
+ U()
2040
+ ], G.prototype, "status", 2);
2041
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
2035
2042
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", bt);
2036
2043
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
2037
- customElements.get("ace-widget") || customElements.define("ace-widget", W);
2044
+ customElements.get("ace-widget") || customElements.define("ace-widget", G);
2038
2045
  const pr = async (i, t) => {
2039
2046
  await new or(i).bootstrap(t);
2040
2047
  };
2041
2048
  export {
2042
- W as AceWidget,
2049
+ G as AceWidget,
2043
2050
  sr as Application,
2044
2051
  xt as Container,
2045
2052
  nr as Environment,
2046
2053
  gt as HttpClient,
2047
2054
  or as Site,
2048
- A as Trigger,
2049
- We as WidgetComponent,
2055
+ b as Trigger,
2056
+ Ze as WidgetComponent,
2050
2057
  pr as bootstrap
2051
2058
  };