@telia-ace/widget-conversation-flamingo 1.1.120-rc.9 → 1.1.121-rc.0

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.
Files changed (3) hide show
  1. package/index.js +74 -72
  2. package/index.mjs +998 -1033
  3. package/package.json +2 -2
package/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- var pa = Object.defineProperty;
2
- var da = (n, e, t) => e in n ? pa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var S = (n, e, t) => da(n, typeof e != "symbol" ? e + "" : e, t);
4
- const Rh = async (n) => {
5
- n.registerComponent("conversation", Promise.resolve().then(() => Ch));
1
+ var ua = Object.defineProperty;
2
+ var ha = (n, e, t) => e in n ? ua(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var S = (n, e, t) => ha(n, typeof e != "symbol" ? e + "" : e, t);
4
+ const Ch = async (n) => {
5
+ n.registerComponent("conversation", Promise.resolve().then(() => Eh));
6
6
  };
7
- class Pi {
7
+ class Oi {
8
8
  constructor() {
9
9
  this.registeredProviders = /* @__PURE__ */ new Map();
10
10
  }
11
11
  static async getInstance(e) {
12
12
  let t = await e.get("conversation");
13
- return t || (t = new Pi(), await e.register("conversation", t), t);
13
+ return t || (t = new Oi(), await e.register("conversation", t), t);
14
14
  }
15
15
  registerProvider(e, t) {
16
16
  this.registeredProviders.set(e, t);
@@ -28,23 +28,23 @@ class Pi {
28
28
  // return this.registeredProviders.get(providerKey);
29
29
  // }
30
30
  }
31
- var ss = function(n, e) {
32
- return ss = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
31
+ var ts = function(n, e) {
32
+ return ts = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, s) {
33
33
  t.__proto__ = s;
34
34
  } || function(t, s) {
35
35
  for (var r in s) Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
36
- }, ss(n, e);
36
+ }, ts(n, e);
37
37
  };
38
38
  function ot(n, e) {
39
39
  if (typeof e != "function" && e !== null)
40
40
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
41
- ss(n, e);
41
+ ts(n, e);
42
42
  function t() {
43
43
  this.constructor = n;
44
44
  }
45
45
  n.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
46
46
  }
47
- function fa(n, e, t, s) {
47
+ function pa(n, e, t, s) {
48
48
  function r(i) {
49
49
  return i instanceof t ? i : new t(function(o) {
50
50
  o(i);
@@ -71,7 +71,7 @@ function fa(n, e, t, s) {
71
71
  c((s = s.apply(n, e || [])).next());
72
72
  });
73
73
  }
74
- function Mi(n, e) {
74
+ function Pi(n, e) {
75
75
  var t = { label: 0, sent: function() {
76
76
  if (i[0] & 1) throw i[1];
77
77
  return i[1];
@@ -166,7 +166,7 @@ function nt(n, e, t) {
166
166
  function Ve(n) {
167
167
  return this instanceof Ve ? (this.v = n, this) : new Ve(n);
168
168
  }
169
- function ga(n, e, t) {
169
+ function da(n, e, t) {
170
170
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
171
171
  var s = t.apply(n, e || []), r, i = [];
172
172
  return r = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", o), r[Symbol.asyncIterator] = function() {
@@ -204,7 +204,7 @@ function ga(n, e, t) {
204
204
  g(m), i.shift(), i.length && l(i[0][0], i[0][1]);
205
205
  }
206
206
  }
207
- function ma(n) {
207
+ function fa(n) {
208
208
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
209
209
  var e = n[Symbol.asyncIterator], t;
210
210
  return e ? e.call(n) : (n = typeof tt == "function" ? tt(n) : n[Symbol.iterator](), t = {}, s("next"), s("throw"), s("return"), t[Symbol.asyncIterator] = function() {
@@ -226,13 +226,13 @@ function ma(n) {
226
226
  function A(n) {
227
227
  return typeof n == "function";
228
228
  }
229
- function Ni(n) {
229
+ function Ii(n) {
230
230
  var e = function(s) {
231
231
  Error.call(s), s.stack = new Error().stack;
232
232
  }, t = n(e);
233
233
  return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
234
234
  }
235
- var jn = Ni(function(n) {
235
+ var Bn = Ii(function(n) {
236
236
  return function(t) {
237
237
  n(this), this.message = t ? t.length + ` errors occurred during unsubscription:
238
238
  ` + t.map(function(s, r) {
@@ -241,13 +241,13 @@ var jn = Ni(function(n) {
241
241
  `) : "", this.name = "UnsubscriptionError", this.errors = t;
242
242
  };
243
243
  });
244
- function rs(n, e) {
244
+ function ns(n, e) {
245
245
  if (n) {
246
246
  var t = n.indexOf(e);
247
247
  0 <= t && n.splice(t, 1);
248
248
  }
249
249
  }
250
- var bn = function() {
250
+ var mn = function() {
251
251
  function n(e) {
252
252
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
253
253
  }
@@ -279,7 +279,7 @@ var bn = function() {
279
279
  try {
280
280
  u();
281
281
  } catch (y) {
282
- i = y instanceof jn ? y.errors : [y];
282
+ i = y instanceof Bn ? y.errors : [y];
283
283
  }
284
284
  var d = this._finalizers;
285
285
  if (d) {
@@ -288,9 +288,9 @@ var bn = function() {
288
288
  for (var p = tt(d), g = p.next(); !g.done; g = p.next()) {
289
289
  var m = g.value;
290
290
  try {
291
- Ir(m);
291
+ Or(m);
292
292
  } catch (y) {
293
- i = i ?? [], y instanceof jn ? i = nt(nt([], Me(i)), Me(y.errors)) : i.push(y);
293
+ i = i ?? [], y instanceof Bn ? i = nt(nt([], Me(i)), Me(y.errors)) : i.push(y);
294
294
  }
295
295
  }
296
296
  } catch (y) {
@@ -304,13 +304,13 @@ var bn = function() {
304
304
  }
305
305
  }
306
306
  if (i)
307
- throw new jn(i);
307
+ throw new Bn(i);
308
308
  }
309
309
  }, n.prototype.add = function(e) {
310
310
  var t;
311
311
  if (e && e !== this)
312
312
  if (this.closed)
313
- Ir(e);
313
+ Or(e);
314
314
  else {
315
315
  if (e instanceof n) {
316
316
  if (e.closed || e._hasParent(this))
@@ -327,24 +327,24 @@ var bn = function() {
327
327
  this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
328
328
  }, n.prototype._removeParent = function(e) {
329
329
  var t = this._parentage;
330
- t === e ? this._parentage = null : Array.isArray(t) && rs(t, e);
330
+ t === e ? this._parentage = null : Array.isArray(t) && ns(t, e);
331
331
  }, n.prototype.remove = function(e) {
332
332
  var t = this._finalizers;
333
- t && rs(t, e), e instanceof n && e._removeParent(this);
333
+ t && ns(t, e), e instanceof n && e._removeParent(this);
334
334
  }, n.EMPTY = function() {
335
335
  var e = new n();
336
336
  return e.closed = !0, e;
337
337
  }(), n;
338
- }(), Di = bn.EMPTY;
339
- function Ui(n) {
340
- return n instanceof bn || n && "closed" in n && A(n.remove) && A(n.add) && A(n.unsubscribe);
338
+ }(), Mi = mn.EMPTY;
339
+ function Ni(n) {
340
+ return n instanceof mn || n && "closed" in n && A(n.remove) && A(n.add) && A(n.unsubscribe);
341
341
  }
342
- function Ir(n) {
342
+ function Or(n) {
343
343
  A(n) ? n() : n.unsubscribe();
344
344
  }
345
- var va = {
345
+ var ga = {
346
346
  Promise: void 0
347
- }, ba = {
347
+ }, ma = {
348
348
  setTimeout: function(n, e) {
349
349
  for (var t = [], s = 2; s < arguments.length; s++)
350
350
  t[s - 2] = arguments[s];
@@ -355,24 +355,24 @@ var va = {
355
355
  },
356
356
  delegate: void 0
357
357
  };
358
- function zi(n) {
359
- ba.setTimeout(function() {
358
+ function Di(n) {
359
+ ma.setTimeout(function() {
360
360
  throw n;
361
361
  });
362
362
  }
363
- function Jt() {
363
+ function Qt() {
364
364
  }
365
- function Xt(n) {
365
+ function Yt(n) {
366
366
  n();
367
367
  }
368
- var _s = function(n) {
368
+ var ws = function(n) {
369
369
  ot(e, n);
370
370
  function e(t) {
371
371
  var s = n.call(this) || this;
372
- return s.isStopped = !1, t ? (s.destination = t, Ui(t) && t.add(s)) : s.destination = xa, s;
372
+ return s.isStopped = !1, t ? (s.destination = t, Ni(t) && t.add(s)) : s.destination = ya, s;
373
373
  }
374
374
  return e.create = function(t, s, r) {
375
- return new is(t, s, r);
375
+ return new ss(t, s, r);
376
376
  }, e.prototype.next = function(t) {
377
377
  this.isStopped || this._next(t);
378
378
  }, e.prototype.error = function(t) {
@@ -396,7 +396,7 @@ var _s = function(n) {
396
396
  this.unsubscribe();
397
397
  }
398
398
  }, e;
399
- }(bn), ya = function() {
399
+ }(mn), va = function() {
400
400
  function n(e) {
401
401
  this.partialObserver = e;
402
402
  }
@@ -406,7 +406,7 @@ var _s = function(n) {
406
406
  try {
407
407
  t.next(e);
408
408
  } catch (s) {
409
- Gt(s);
409
+ jt(s);
410
410
  }
411
411
  }, n.prototype.error = function(e) {
412
412
  var t = this.partialObserver;
@@ -414,20 +414,20 @@ var _s = function(n) {
414
414
  try {
415
415
  t.error(e);
416
416
  } catch (s) {
417
- Gt(s);
417
+ jt(s);
418
418
  }
419
419
  else
420
- Gt(e);
420
+ jt(e);
421
421
  }, n.prototype.complete = function() {
422
422
  var e = this.partialObserver;
423
423
  if (e.complete)
424
424
  try {
425
425
  e.complete();
426
426
  } catch (t) {
427
- Gt(t);
427
+ jt(t);
428
428
  }
429
429
  }, n;
430
- }(), is = function(n) {
430
+ }(), ss = function(n) {
431
431
  ot(e, n);
432
432
  function e(t, s, r) {
433
433
  var i = n.call(this) || this, o;
@@ -435,29 +435,29 @@ var _s = function(n) {
435
435
  next: t ?? void 0,
436
436
  error: s ?? void 0,
437
437
  complete: r ?? void 0
438
- } : o = t, i.destination = new ya(o), i;
438
+ } : o = t, i.destination = new va(o), i;
439
439
  }
440
440
  return e;
441
- }(_s);
442
- function Gt(n) {
443
- zi(n);
441
+ }(ws);
442
+ function jt(n) {
443
+ Di(n);
444
444
  }
445
- function $a(n) {
445
+ function ba(n) {
446
446
  throw n;
447
447
  }
448
- var xa = {
448
+ var ya = {
449
449
  closed: !0,
450
- next: Jt,
451
- error: $a,
452
- complete: Jt
453
- }, Ss = function() {
450
+ next: Qt,
451
+ error: ba,
452
+ complete: Qt
453
+ }, ks = function() {
454
454
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
455
455
  }();
456
- function Rt(n) {
456
+ function Lt(n) {
457
457
  return n;
458
458
  }
459
- function wa(n) {
460
- return n.length === 0 ? Rt : n.length === 1 ? n[0] : function(t) {
459
+ function $a(n) {
460
+ return n.length === 0 ? Lt : n.length === 1 ? n[0] : function(t) {
461
461
  return n.reduce(function(s, r) {
462
462
  return r(s);
463
463
  }, t);
@@ -471,8 +471,8 @@ var Z = function() {
471
471
  var t = new n();
472
472
  return t.source = this, t.operator = e, t;
473
473
  }, n.prototype.subscribe = function(e, t, s) {
474
- var r = this, i = _a(e) ? e : new is(e, t, s);
475
- return Xt(function() {
474
+ var r = this, i = wa(e) ? e : new ss(e, t, s);
475
+ return Yt(function() {
476
476
  var o = r, a = o.operator, l = o.source;
477
477
  i.add(a ? a.call(i, l) : l ? r._subscribe(i) : r._trySubscribe(i));
478
478
  }), i;
@@ -485,7 +485,7 @@ var Z = function() {
485
485
  }, n.prototype.forEach = function(e, t) {
486
486
  var s = this;
487
487
  return t = Pr(t), new t(function(r, i) {
488
- var o = new is({
488
+ var o = new ss({
489
489
  next: function(a) {
490
490
  try {
491
491
  e(a);
@@ -501,12 +501,12 @@ var Z = function() {
501
501
  }, n.prototype._subscribe = function(e) {
502
502
  var t;
503
503
  return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
504
- }, n.prototype[Ss] = function() {
504
+ }, n.prototype[ks] = function() {
505
505
  return this;
506
506
  }, n.prototype.pipe = function() {
507
507
  for (var e = [], t = 0; t < arguments.length; t++)
508
508
  e[t] = arguments[t];
509
- return wa(e)(this);
509
+ return $a(e)(this);
510
510
  }, n.prototype.toPromise = function(e) {
511
511
  var t = this;
512
512
  return e = Pr(e), new e(function(s, r) {
@@ -525,20 +525,20 @@ var Z = function() {
525
525
  }();
526
526
  function Pr(n) {
527
527
  var e;
528
- return (e = n ?? va.Promise) !== null && e !== void 0 ? e : Promise;
528
+ return (e = n ?? ga.Promise) !== null && e !== void 0 ? e : Promise;
529
529
  }
530
- function ka(n) {
530
+ function xa(n) {
531
531
  return n && A(n.next) && A(n.error) && A(n.complete);
532
532
  }
533
- function _a(n) {
534
- return n && n instanceof _s || ka(n) && Ui(n);
533
+ function wa(n) {
534
+ return n && n instanceof ws || xa(n) && Ni(n);
535
535
  }
536
- function Sa(n) {
536
+ function ka(n) {
537
537
  return A(n == null ? void 0 : n.lift);
538
538
  }
539
539
  function Se(n) {
540
540
  return function(e) {
541
- if (Sa(e))
541
+ if (ka(e))
542
542
  return e.lift(function(t) {
543
543
  try {
544
544
  return n(t, this);
@@ -550,9 +550,9 @@ function Se(n) {
550
550
  };
551
551
  }
552
552
  function ne(n, e, t, s, r) {
553
- return new Aa(n, e, t, s, r);
553
+ return new _a(n, e, t, s, r);
554
554
  }
555
- var Aa = function(n) {
555
+ var _a = function(n) {
556
556
  ot(e, n);
557
557
  function e(t, s, r, i, o, a) {
558
558
  var l = n.call(this, t) || this;
@@ -587,7 +587,7 @@ var Aa = function(n) {
587
587
  n.prototype.unsubscribe.call(this), !s && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
588
588
  }
589
589
  }, e;
590
- }(_s), Ea = Ni(function(n) {
590
+ }(ws), Sa = Ii(function(n) {
591
591
  return function() {
592
592
  n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
593
593
  };
@@ -598,14 +598,14 @@ var Aa = function(n) {
598
598
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
599
599
  }
600
600
  return e.prototype.lift = function(t) {
601
- var s = new Mr(this, this);
601
+ var s = new Ir(this, this);
602
602
  return s.operator = t, s;
603
603
  }, e.prototype._throwIfClosed = function() {
604
604
  if (this.closed)
605
- throw new Ea();
605
+ throw new Sa();
606
606
  }, e.prototype.next = function(t) {
607
607
  var s = this;
608
- Xt(function() {
608
+ Yt(function() {
609
609
  var r, i;
610
610
  if (s._throwIfClosed(), !s.isStopped) {
611
611
  s.currentObservers || (s.currentObservers = Array.from(s.observers));
@@ -627,7 +627,7 @@ var Aa = function(n) {
627
627
  });
628
628
  }, e.prototype.error = function(t) {
629
629
  var s = this;
630
- Xt(function() {
630
+ Yt(function() {
631
631
  if (s._throwIfClosed(), !s.isStopped) {
632
632
  s.hasError = s.isStopped = !0, s.thrownError = t;
633
633
  for (var r = s.observers; r.length; )
@@ -636,7 +636,7 @@ var Aa = function(n) {
636
636
  });
637
637
  }, e.prototype.complete = function() {
638
638
  var t = this;
639
- Xt(function() {
639
+ Yt(function() {
640
640
  if (t._throwIfClosed(), !t.isStopped) {
641
641
  t.isStopped = !0;
642
642
  for (var s = t.observers; s.length; )
@@ -658,8 +658,8 @@ var Aa = function(n) {
658
658
  return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
659
659
  }, e.prototype._innerSubscribe = function(t) {
660
660
  var s = this, r = this, i = r.hasError, o = r.isStopped, a = r.observers;
661
- return i || o ? Di : (this.currentObservers = null, a.push(t), new bn(function() {
662
- s.currentObservers = null, rs(a, t);
661
+ return i || o ? Mi : (this.currentObservers = null, a.push(t), new mn(function() {
662
+ s.currentObservers = null, ns(a, t);
663
663
  }));
664
664
  }, e.prototype._checkFinalizedStatuses = function(t) {
665
665
  var s = this, r = s.hasError, i = s.thrownError, o = s.isStopped;
@@ -668,9 +668,9 @@ var Aa = function(n) {
668
668
  var t = new Z();
669
669
  return t.source = this, t;
670
670
  }, e.create = function(t, s) {
671
- return new Mr(t, s);
671
+ return new Ir(t, s);
672
672
  }, e;
673
- }(Z), Mr = function(n) {
673
+ }(Z), Ir = function(n) {
674
674
  ot(e, n);
675
675
  function e(t, s) {
676
676
  var r = n.call(this) || this;
@@ -687,7 +687,7 @@ var Aa = function(n) {
687
687
  (s = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || s === void 0 || s.call(t);
688
688
  }, e.prototype._subscribe = function(t) {
689
689
  var s, r;
690
- return (r = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && r !== void 0 ? r : Di;
690
+ return (r = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(t)) !== null && r !== void 0 ? r : Mi;
691
691
  }, e;
692
692
  }(U), te = function(n) {
693
693
  ot(e, n);
@@ -712,50 +712,50 @@ var Aa = function(n) {
712
712
  }, e.prototype.next = function(t) {
713
713
  n.prototype.next.call(this, this._value = t);
714
714
  }, e;
715
- }(U), Ot = new Z(function(n) {
715
+ }(U), Rt = new Z(function(n) {
716
716
  return n.complete();
717
717
  });
718
- function Ta(n) {
718
+ function Aa(n) {
719
719
  return n && A(n.schedule);
720
720
  }
721
- function As(n) {
721
+ function _s(n) {
722
722
  return n[n.length - 1];
723
723
  }
724
- function Hi(n) {
725
- return A(As(n)) ? n.pop() : void 0;
724
+ function Ui(n) {
725
+ return A(_s(n)) ? n.pop() : void 0;
726
726
  }
727
- function Es(n) {
728
- return Ta(As(n)) ? n.pop() : void 0;
727
+ function Ss(n) {
728
+ return Aa(_s(n)) ? n.pop() : void 0;
729
729
  }
730
- function Ca(n, e) {
731
- return typeof As(n) == "number" ? n.pop() : e;
730
+ function Ea(n, e) {
731
+ return typeof _s(n) == "number" ? n.pop() : e;
732
732
  }
733
- var Ts = function(n) {
733
+ var As = function(n) {
734
734
  return n && typeof n.length == "number" && typeof n != "function";
735
735
  };
736
- function Bi(n) {
736
+ function zi(n) {
737
737
  return A(n == null ? void 0 : n.then);
738
738
  }
739
- function Fi(n) {
740
- return A(n[Ss]);
739
+ function Hi(n) {
740
+ return A(n[ks]);
741
741
  }
742
- function ji(n) {
742
+ function Bi(n) {
743
743
  return Symbol.asyncIterator && A(n == null ? void 0 : n[Symbol.asyncIterator]);
744
744
  }
745
- function Gi(n) {
745
+ function Fi(n) {
746
746
  return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
747
747
  }
748
- function La() {
748
+ function Ta() {
749
749
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
750
750
  }
751
- var Wi = La();
752
- function qi(n) {
753
- return A(n == null ? void 0 : n[Wi]);
751
+ var ji = Ta();
752
+ function Gi(n) {
753
+ return A(n == null ? void 0 : n[ji]);
754
754
  }
755
- function Zi(n) {
756
- return ga(this, arguments, function() {
755
+ function Wi(n) {
756
+ return da(this, arguments, function() {
757
757
  var t, s, r, i;
758
- return Mi(this, function(o) {
758
+ return Pi(this, function(o) {
759
759
  switch (o.label) {
760
760
  case 0:
761
761
  t = n.getReader(), o.label = 1;
@@ -783,53 +783,53 @@ function Zi(n) {
783
783
  });
784
784
  });
785
785
  }
786
- function Yi(n) {
786
+ function qi(n) {
787
787
  return A(n == null ? void 0 : n.getReader);
788
788
  }
789
789
  function le(n) {
790
790
  if (n instanceof Z)
791
791
  return n;
792
792
  if (n != null) {
793
- if (Fi(n))
793
+ if (Hi(n))
794
+ return Ca(n);
795
+ if (As(n))
796
+ return La(n);
797
+ if (zi(n))
794
798
  return Ra(n);
795
- if (Ts(n))
796
- return Oa(n);
797
799
  if (Bi(n))
798
- return Ia(n);
799
- if (ji(n))
800
- return Xi(n);
800
+ return Zi(n);
801
+ if (Gi(n))
802
+ return Oa(n);
801
803
  if (qi(n))
802
804
  return Pa(n);
803
- if (Yi(n))
804
- return Ma(n);
805
805
  }
806
- throw Gi(n);
806
+ throw Fi(n);
807
807
  }
808
- function Ra(n) {
808
+ function Ca(n) {
809
809
  return new Z(function(e) {
810
- var t = n[Ss]();
810
+ var t = n[ks]();
811
811
  if (A(t.subscribe))
812
812
  return t.subscribe(e);
813
813
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
814
814
  });
815
815
  }
816
- function Oa(n) {
816
+ function La(n) {
817
817
  return new Z(function(e) {
818
818
  for (var t = 0; t < n.length && !e.closed; t++)
819
819
  e.next(n[t]);
820
820
  e.complete();
821
821
  });
822
822
  }
823
- function Ia(n) {
823
+ function Ra(n) {
824
824
  return new Z(function(e) {
825
825
  n.then(function(t) {
826
826
  e.closed || (e.next(t), e.complete());
827
827
  }, function(t) {
828
828
  return e.error(t);
829
- }).then(null, zi);
829
+ }).then(null, Di);
830
830
  });
831
831
  }
832
- function Pa(n) {
832
+ function Oa(n) {
833
833
  return new Z(function(e) {
834
834
  var t, s;
835
835
  try {
@@ -850,24 +850,24 @@ function Pa(n) {
850
850
  e.complete();
851
851
  });
852
852
  }
853
- function Xi(n) {
853
+ function Zi(n) {
854
854
  return new Z(function(e) {
855
- Na(n, e).catch(function(t) {
855
+ Ia(n, e).catch(function(t) {
856
856
  return e.error(t);
857
857
  });
858
858
  });
859
859
  }
860
- function Ma(n) {
861
- return Xi(Zi(n));
860
+ function Pa(n) {
861
+ return Zi(Wi(n));
862
862
  }
863
- function Na(n, e) {
863
+ function Ia(n, e) {
864
864
  var t, s, r, i;
865
- return fa(this, void 0, void 0, function() {
865
+ return pa(this, void 0, void 0, function() {
866
866
  var o, a;
867
- return Mi(this, function(l) {
867
+ return Pi(this, function(l) {
868
868
  switch (l.label) {
869
869
  case 0:
870
- l.trys.push([0, 5, 6, 11]), t = ma(n), l.label = 1;
870
+ l.trys.push([0, 5, 6, 11]), t = fa(n), l.label = 1;
871
871
  case 1:
872
872
  return [4, t.next()];
873
873
  case 2:
@@ -906,7 +906,7 @@ function xe(n, e, t, s, r) {
906
906
  if (n.add(i), !r)
907
907
  return i;
908
908
  }
909
- function Ki(n, e) {
909
+ function Yi(n, e) {
910
910
  return e === void 0 && (e = 0), Se(function(t, s) {
911
911
  t.subscribe(ne(s, function(r) {
912
912
  return xe(s, n, function() {
@@ -923,20 +923,20 @@ function Ki(n, e) {
923
923
  }));
924
924
  });
925
925
  }
926
- function Vi(n, e) {
926
+ function Xi(n, e) {
927
927
  return e === void 0 && (e = 0), Se(function(t, s) {
928
928
  s.add(n.schedule(function() {
929
929
  return t.subscribe(s);
930
930
  }, e));
931
931
  });
932
932
  }
933
- function Da(n, e) {
934
- return le(n).pipe(Vi(e), Ki(e));
933
+ function Ma(n, e) {
934
+ return le(n).pipe(Xi(e), Yi(e));
935
935
  }
936
- function Ua(n, e) {
937
- return le(n).pipe(Vi(e), Ki(e));
936
+ function Na(n, e) {
937
+ return le(n).pipe(Xi(e), Yi(e));
938
938
  }
939
- function za(n, e) {
939
+ function Da(n, e) {
940
940
  return new Z(function(t) {
941
941
  var s = 0;
942
942
  return e.schedule(function() {
@@ -944,11 +944,11 @@ function za(n, e) {
944
944
  });
945
945
  });
946
946
  }
947
- function Ha(n, e) {
947
+ function Ua(n, e) {
948
948
  return new Z(function(t) {
949
949
  var s;
950
950
  return xe(t, e, function() {
951
- s = n[Wi](), xe(t, e, function() {
951
+ s = n[ji](), xe(t, e, function() {
952
952
  var r, i, o;
953
953
  try {
954
954
  r = s.next(), i = r.value, o = r.done;
@@ -963,7 +963,7 @@ function Ha(n, e) {
963
963
  };
964
964
  });
965
965
  }
966
- function Qi(n, e) {
966
+ function Ki(n, e) {
967
967
  if (!n)
968
968
  throw new Error("Iterable cannot be null");
969
969
  return new Z(function(t) {
@@ -977,36 +977,36 @@ function Qi(n, e) {
977
977
  });
978
978
  });
979
979
  }
980
- function Ba(n, e) {
981
- return Qi(Zi(n), e);
980
+ function za(n, e) {
981
+ return Ki(Wi(n), e);
982
982
  }
983
- function Fa(n, e) {
983
+ function Ha(n, e) {
984
984
  if (n != null) {
985
- if (Fi(n))
985
+ if (Hi(n))
986
+ return Ma(n, e);
987
+ if (As(n))
986
988
  return Da(n, e);
987
- if (Ts(n))
988
- return za(n, e);
989
+ if (zi(n))
990
+ return Na(n, e);
989
991
  if (Bi(n))
992
+ return Ki(n, e);
993
+ if (Gi(n))
990
994
  return Ua(n, e);
991
- if (ji(n))
992
- return Qi(n, e);
993
995
  if (qi(n))
994
- return Ha(n, e);
995
- if (Yi(n))
996
- return Ba(n, e);
996
+ return za(n, e);
997
997
  }
998
- throw Gi(n);
998
+ throw Fi(n);
999
999
  }
1000
- function yn(n, e) {
1001
- return e ? Fa(n, e) : le(n);
1000
+ function vn(n, e) {
1001
+ return e ? Ha(n, e) : le(n);
1002
1002
  }
1003
- function os() {
1003
+ function rs() {
1004
1004
  for (var n = [], e = 0; e < arguments.length; e++)
1005
1005
  n[e] = arguments[e];
1006
- var t = Es(n);
1007
- return yn(n, t);
1006
+ var t = Ss(n);
1007
+ return vn(n, t);
1008
1008
  }
1009
- function en(n, e) {
1009
+ function Jt(n, e) {
1010
1010
  return Se(function(t, s) {
1011
1011
  var r = 0;
1012
1012
  t.subscribe(ne(s, function(i) {
@@ -1014,23 +1014,23 @@ function en(n, e) {
1014
1014
  }));
1015
1015
  });
1016
1016
  }
1017
- var ja = Array.isArray;
1018
- function Ga(n, e) {
1019
- return ja(e) ? n.apply(void 0, nt([], Me(e))) : n(e);
1017
+ var Ba = Array.isArray;
1018
+ function Fa(n, e) {
1019
+ return Ba(e) ? n.apply(void 0, nt([], Me(e))) : n(e);
1020
1020
  }
1021
- function Ji(n) {
1022
- return en(function(e) {
1023
- return Ga(n, e);
1021
+ function Vi(n) {
1022
+ return Jt(function(e) {
1023
+ return Fa(n, e);
1024
1024
  });
1025
1025
  }
1026
- var Wa = Array.isArray, qa = Object.getPrototypeOf, Za = Object.prototype, Ya = Object.keys;
1027
- function Xa(n) {
1026
+ var ja = Array.isArray, Ga = Object.getPrototypeOf, Wa = Object.prototype, qa = Object.keys;
1027
+ function Za(n) {
1028
1028
  if (n.length === 1) {
1029
1029
  var e = n[0];
1030
- if (Wa(e))
1030
+ if (ja(e))
1031
1031
  return { args: e, keys: null };
1032
- if (Ka(e)) {
1033
- var t = Ya(e);
1032
+ if (Ya(e)) {
1033
+ var t = qa(e);
1034
1034
  return {
1035
1035
  args: t.map(function(s) {
1036
1036
  return e[s];
@@ -1041,31 +1041,31 @@ function Xa(n) {
1041
1041
  }
1042
1042
  return { args: n, keys: null };
1043
1043
  }
1044
- function Ka(n) {
1045
- return n && typeof n == "object" && qa(n) === Za;
1044
+ function Ya(n) {
1045
+ return n && typeof n == "object" && Ga(n) === Wa;
1046
1046
  }
1047
- function Va(n, e) {
1047
+ function Xa(n, e) {
1048
1048
  return n.reduce(function(t, s, r) {
1049
1049
  return t[s] = e[r], t;
1050
1050
  }, {});
1051
1051
  }
1052
- function Qa() {
1052
+ function Ka() {
1053
1053
  for (var n = [], e = 0; e < arguments.length; e++)
1054
1054
  n[e] = arguments[e];
1055
- var t = Es(n), s = Hi(n), r = Xa(n), i = r.args, o = r.keys;
1055
+ var t = Ss(n), s = Ui(n), r = Za(n), i = r.args, o = r.keys;
1056
1056
  if (i.length === 0)
1057
- return yn([], t);
1058
- var a = new Z(Ja(i, t, o ? function(l) {
1059
- return Va(o, l);
1060
- } : Rt));
1061
- return s ? a.pipe(Ji(s)) : a;
1062
- }
1063
- function Ja(n, e, t) {
1064
- return t === void 0 && (t = Rt), function(s) {
1065
- Nr(e, function() {
1057
+ return vn([], t);
1058
+ var a = new Z(Va(i, t, o ? function(l) {
1059
+ return Xa(o, l);
1060
+ } : Lt));
1061
+ return s ? a.pipe(Vi(s)) : a;
1062
+ }
1063
+ function Va(n, e, t) {
1064
+ return t === void 0 && (t = Lt), function(s) {
1065
+ Mr(e, function() {
1066
1066
  for (var r = n.length, i = new Array(r), o = r, a = r, l = function(u) {
1067
- Nr(e, function() {
1068
- var d = yn(n[u], e), p = !1;
1067
+ Mr(e, function() {
1068
+ var d = vn(n[u], e), p = !1;
1069
1069
  d.subscribe(ne(s, function(g) {
1070
1070
  i[u] = g, p || (p = !0, a--), a || s.next(t(i.slice()));
1071
1071
  }, function() {
@@ -1077,10 +1077,10 @@ function Ja(n, e, t) {
1077
1077
  }, s);
1078
1078
  };
1079
1079
  }
1080
- function Nr(n, e, t) {
1080
+ function Mr(n, e, t) {
1081
1081
  n ? xe(t, n, e) : e();
1082
1082
  }
1083
- function el(n, e, t, s, r, i, o, a) {
1083
+ function Qa(n, e, t, s, r, i, o, a) {
1084
1084
  var l = [], c = 0, u = 0, d = !1, p = function() {
1085
1085
  d && !l.length && !c && e.complete();
1086
1086
  }, g = function(y) {
@@ -1112,30 +1112,30 @@ function el(n, e, t, s, r, i, o, a) {
1112
1112
  })), function() {
1113
1113
  };
1114
1114
  }
1115
- function Cs(n, e, t) {
1116
- return t === void 0 && (t = 1 / 0), A(e) ? Cs(function(s, r) {
1117
- return en(function(i, o) {
1115
+ function Es(n, e, t) {
1116
+ return t === void 0 && (t = 1 / 0), A(e) ? Es(function(s, r) {
1117
+ return Jt(function(i, o) {
1118
1118
  return e(s, i, r, o);
1119
1119
  })(le(n(s, r)));
1120
1120
  }, t) : (typeof e == "number" && (t = e), Se(function(s, r) {
1121
- return el(s, r, n, t);
1121
+ return Qa(s, r, n, t);
1122
1122
  }));
1123
1123
  }
1124
- function tl(n) {
1125
- return n === void 0 && (n = 1 / 0), Cs(Rt, n);
1124
+ function Ja(n) {
1125
+ return n === void 0 && (n = 1 / 0), Es(Lt, n);
1126
1126
  }
1127
- var nl = ["addListener", "removeListener"], sl = ["addEventListener", "removeEventListener"], rl = ["on", "off"];
1128
- function tn(n, e, t, s) {
1127
+ var el = ["addListener", "removeListener"], tl = ["addEventListener", "removeEventListener"], nl = ["on", "off"];
1128
+ function en(n, e, t, s) {
1129
1129
  if (A(t) && (s = t, t = void 0), s)
1130
- return tn(n, e, t).pipe(Ji(s));
1131
- var r = Me(al(n) ? sl.map(function(a) {
1130
+ return en(n, e, t).pipe(Vi(s));
1131
+ var r = Me(il(n) ? tl.map(function(a) {
1132
1132
  return function(l) {
1133
1133
  return n[a](e, l, t);
1134
1134
  };
1135
- }) : il(n) ? nl.map(Dr(n, e)) : ol(n) ? rl.map(Dr(n, e)) : [], 2), i = r[0], o = r[1];
1136
- if (!i && Ts(n))
1137
- return Cs(function(a) {
1138
- return tn(a, e, t);
1135
+ }) : sl(n) ? el.map(Nr(n, e)) : rl(n) ? nl.map(Nr(n, e)) : [], 2), i = r[0], o = r[1];
1136
+ if (!i && As(n))
1137
+ return Es(function(a) {
1138
+ return en(a, e, t);
1139
1139
  })(le(n));
1140
1140
  if (!i)
1141
1141
  throw new TypeError("Invalid event target");
@@ -1150,31 +1150,31 @@ function tn(n, e, t, s) {
1150
1150
  };
1151
1151
  });
1152
1152
  }
1153
- function Dr(n, e) {
1153
+ function Nr(n, e) {
1154
1154
  return function(t) {
1155
1155
  return function(s) {
1156
1156
  return n[t](e, s);
1157
1157
  };
1158
1158
  };
1159
1159
  }
1160
- function il(n) {
1160
+ function sl(n) {
1161
1161
  return A(n.addListener) && A(n.removeListener);
1162
1162
  }
1163
- function ol(n) {
1163
+ function rl(n) {
1164
1164
  return A(n.on) && A(n.off);
1165
1165
  }
1166
- function al(n) {
1166
+ function il(n) {
1167
1167
  return A(n.addEventListener) && A(n.removeEventListener);
1168
1168
  }
1169
- function ll() {
1169
+ function ol() {
1170
1170
  for (var n = [], e = 0; e < arguments.length; e++)
1171
1171
  n[e] = arguments[e];
1172
- var t = Es(n), s = Ca(n, 1 / 0), r = n;
1173
- return r.length ? r.length === 1 ? le(r[0]) : tl(s)(yn(r, t)) : Ot;
1172
+ var t = Ss(n), s = Ea(n, 1 / 0), r = n;
1173
+ return r.length ? r.length === 1 ? le(r[0]) : Ja(s)(vn(r, t)) : Rt;
1174
1174
  }
1175
- function as(n) {
1175
+ function is(n) {
1176
1176
  return n <= 0 ? function() {
1177
- return Ot;
1177
+ return Rt;
1178
1178
  } : Se(function(e, t) {
1179
1179
  var s = 0;
1180
1180
  e.subscribe(ne(t, function(r) {
@@ -1200,24 +1200,24 @@ function Qe(n, e) {
1200
1200
  }));
1201
1201
  });
1202
1202
  }
1203
- function ls(n) {
1203
+ function os(n) {
1204
1204
  return Se(function(e, t) {
1205
1205
  le(n).subscribe(ne(t, function() {
1206
1206
  return t.complete();
1207
- }, Jt)), !t.closed && e.subscribe(t);
1207
+ }, Qt)), !t.closed && e.subscribe(t);
1208
1208
  });
1209
1209
  }
1210
- function cs() {
1210
+ function as() {
1211
1211
  for (var n = [], e = 0; e < arguments.length; e++)
1212
1212
  n[e] = arguments[e];
1213
- var t = Hi(n);
1213
+ var t = Ui(n);
1214
1214
  return Se(function(s, r) {
1215
1215
  for (var i = n.length, o = new Array(i), a = n.map(function() {
1216
1216
  return !1;
1217
1217
  }), l = !1, c = function(d) {
1218
1218
  le(n[d]).subscribe(ne(r, function(p) {
1219
- o[d] = p, !l && !a[d] && (a[d] = !0, (l = a.every(Rt)) && (a = null));
1220
- }, Jt));
1219
+ o[d] = p, !l && !a[d] && (a[d] = !0, (l = a.every(Lt)) && (a = null));
1220
+ }, Qt));
1221
1221
  }, u = 0; u < i; u++)
1222
1222
  c(u);
1223
1223
  s.subscribe(ne(r, function(d) {
@@ -1229,11 +1229,11 @@ function cs() {
1229
1229
  });
1230
1230
  }
1231
1231
  var we = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(we || {});
1232
- const cl = () => "10000000-1000-4000-8000-100000000000".replace(
1232
+ const al = () => "10000000-1000-4000-8000-100000000000".replace(
1233
1233
  /[018]/g,
1234
1234
  (n) => (+n ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +n / 4).toString(16)
1235
- ), eo = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : cl();
1236
- function Oh(n) {
1235
+ ), Qi = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : al();
1236
+ function Lh(n) {
1237
1237
  let e = n;
1238
1238
  const t = /https?:\/\/[^\s<]+/gi, s = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, r = n.match(t) || [], i = [];
1239
1239
  let o;
@@ -1253,12 +1253,12 @@ function Oh(n) {
1253
1253
  );
1254
1254
  }), e;
1255
1255
  }
1256
- function ul(n) {
1256
+ function ll(n) {
1257
1257
  if (n.includes("aceChatGuideTitle"))
1258
- return hl(n);
1258
+ return cl(n);
1259
1259
  const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
1260
1260
  return n.replace(e, (t) => {
1261
- const s = to(t);
1261
+ const s = Ji(t);
1262
1262
  if (!s)
1263
1263
  return t;
1264
1264
  const r = 50;
@@ -1273,12 +1273,12 @@ function ul(n) {
1273
1273
  d - u.length - 4
1274
1274
  ) + ".../" + u : p = c.substring(0, d - 3) + "...";
1275
1275
  const g = `${a}${p}`;
1276
- return us(t, g);
1276
+ return ls(t, g);
1277
1277
  }
1278
- return us(t, s);
1278
+ return ls(t, s);
1279
1279
  });
1280
1280
  }
1281
- function to(n) {
1281
+ function Ji(n) {
1282
1282
  const e = n.match(/href=["']([^'"]*)["']/);
1283
1283
  if (e && e.length > 1) {
1284
1284
  let t = e[1];
@@ -1286,22 +1286,22 @@ function to(n) {
1286
1286
  }
1287
1287
  return null;
1288
1288
  }
1289
- function us(n, e) {
1289
+ function ls(n, e) {
1290
1290
  return n.replace(/>[^<]*<\/a>/, `>${e}</a>`);
1291
1291
  }
1292
- function hl(n) {
1292
+ function cl(n) {
1293
1293
  const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
1294
1294
  return n.replace(e, (t) => {
1295
- const s = to(t);
1295
+ const s = Ji(t);
1296
1296
  if (!s)
1297
1297
  return t;
1298
1298
  const r = s.split("?").pop(), o = new URLSearchParams(r).get("aceChatGuideTitle");
1299
- return o ? us(t, o) : t;
1299
+ return o ? ls(t, o) : t;
1300
1300
  });
1301
1301
  }
1302
- class $n {
1302
+ class bn {
1303
1303
  constructor(e, t, s) {
1304
- this.type = e, this.sender = t, this.messages = s, this.status = "delivered", this.didUpdate = new U(), this.actions$ = new U(), this.remove$ = new U(), this.timestamp = Date.now(), this.id = eo();
1304
+ this.type = e, this.sender = t, this.messages = s, this.status = "delivered", this.didUpdate = new U(), this.actions$ = new U(), this.remove$ = new U(), this.timestamp = Date.now(), this.id = Qi();
1305
1305
  }
1306
1306
  update(e) {
1307
1307
  this.messages = [
@@ -1317,12 +1317,12 @@ class $n {
1317
1317
  this.remove$.next();
1318
1318
  }
1319
1319
  }
1320
- class pl {
1320
+ class ul {
1321
1321
  constructor(e) {
1322
1322
  this.name = e, this.print$ = new U();
1323
1323
  }
1324
1324
  print(e, t = "html", s = this.name) {
1325
- const r = new $n(
1325
+ const r = new bn(
1326
1326
  we.Agent,
1327
1327
  { name: s },
1328
1328
  [
@@ -1337,12 +1337,12 @@ class pl {
1337
1337
  return this.print$.asObservable();
1338
1338
  }
1339
1339
  }
1340
- class dl {
1340
+ class hl {
1341
1341
  constructor(e) {
1342
1342
  this.name = e, this.print$ = new U();
1343
1343
  }
1344
1344
  print(e) {
1345
- const t = new $n(
1345
+ const t = new bn(
1346
1346
  we.User,
1347
1347
  { name: this.name },
1348
1348
  [
@@ -1357,12 +1357,12 @@ class dl {
1357
1357
  return this.print$.asObservable();
1358
1358
  }
1359
1359
  }
1360
- class fl {
1360
+ class pl {
1361
1361
  constructor() {
1362
1362
  this.print$ = new U(), this.name = "system";
1363
1363
  }
1364
1364
  print(e) {
1365
- const t = new $n(
1365
+ const t = new bn(
1366
1366
  we.System,
1367
1367
  { name: this.name },
1368
1368
  [
@@ -1377,12 +1377,12 @@ class fl {
1377
1377
  return this.print$.asObservable();
1378
1378
  }
1379
1379
  }
1380
- class Ih {
1380
+ class Rh {
1381
1381
  constructor(e, t) {
1382
1382
  this.name = e, this.component = t, this.print$ = new U(), this.typingState$ = new te(!1), this.complete$ = new U(), this.system = this.createSystem(), this.rehydrate$ = new U(), this.saveToCurrentSession$ = new U(), this.showChatOverlay$ = new te(!1), this.onComplete = () => this.complete$.asObservable();
1383
1383
  }
1384
1384
  connect(e = {}) {
1385
- this.complete$.pipe(as(1)).subscribe(() => {
1385
+ this.complete$.pipe(is(1)).subscribe(() => {
1386
1386
  this.disconnected();
1387
1387
  });
1388
1388
  }
@@ -1394,7 +1394,7 @@ class Ih {
1394
1394
  this.print(we.User, e.text);
1395
1395
  }
1396
1396
  print(e, t) {
1397
- const s = new $n(
1397
+ const s = new bn(
1398
1398
  e,
1399
1399
  {
1400
1400
  name: ""
@@ -1411,19 +1411,19 @@ class Ih {
1411
1411
  return this.print$.next(e), e;
1412
1412
  }
1413
1413
  createAgent(e) {
1414
- const t = new pl(e);
1414
+ const t = new ul(e);
1415
1415
  return t.subscribe().subscribe((s) => {
1416
1416
  this.playNotification(), this.printEntry(s);
1417
1417
  }), t;
1418
1418
  }
1419
1419
  createUser(e) {
1420
- const t = new dl(e);
1420
+ const t = new hl(e);
1421
1421
  return t.subscribe().subscribe((s) => {
1422
1422
  this.printEntry(s);
1423
1423
  }), t;
1424
1424
  }
1425
1425
  createSystem() {
1426
- const e = new fl();
1426
+ const e = new pl();
1427
1427
  return e.subscribe().subscribe((t) => {
1428
1428
  this.printEntry(t);
1429
1429
  }), e;
@@ -1459,18 +1459,18 @@ class Ih {
1459
1459
  * Copyright 2019 Google LLC
1460
1460
  * SPDX-License-Identifier: BSD-3-Clause
1461
1461
  */
1462
- const Kt = globalThis, Ls = Kt.ShadowRoot && (Kt.ShadyCSS === void 0 || Kt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Rs = Symbol(), Ur = /* @__PURE__ */ new WeakMap();
1463
- let no = class {
1462
+ const Xt = globalThis, Ts = Xt.ShadowRoot && (Xt.ShadyCSS === void 0 || Xt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Cs = Symbol(), Dr = /* @__PURE__ */ new WeakMap();
1463
+ let eo = class {
1464
1464
  constructor(e, t, s) {
1465
- if (this._$cssResult$ = !0, s !== Rs) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1465
+ if (this._$cssResult$ = !0, s !== Cs) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
1466
1466
  this.cssText = e, this.t = t;
1467
1467
  }
1468
1468
  get styleSheet() {
1469
1469
  let e = this.o;
1470
1470
  const t = this.t;
1471
- if (Ls && e === void 0) {
1471
+ if (Ts && e === void 0) {
1472
1472
  const s = t !== void 0 && t.length === 1;
1473
- s && (e = Ur.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && Ur.set(t, e));
1473
+ s && (e = Dr.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && Dr.set(t, e));
1474
1474
  }
1475
1475
  return e;
1476
1476
  }
@@ -1478,33 +1478,33 @@ let no = class {
1478
1478
  return this.cssText;
1479
1479
  }
1480
1480
  };
1481
- const gl = (n) => new no(typeof n == "string" ? n : n + "", void 0, Rs), Y = (n, ...e) => {
1481
+ const dl = (n) => new eo(typeof n == "string" ? n : n + "", void 0, Cs), Y = (n, ...e) => {
1482
1482
  const t = n.length === 1 ? n[0] : e.reduce((s, r, i) => s + ((o) => {
1483
1483
  if (o._$cssResult$ === !0) return o.cssText;
1484
1484
  if (typeof o == "number") return o;
1485
1485
  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.");
1486
1486
  })(r) + n[i + 1], n[0]);
1487
- return new no(t, n, Rs);
1488
- }, ml = (n, e) => {
1489
- if (Ls) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
1487
+ return new eo(t, n, Cs);
1488
+ }, fl = (n, e) => {
1489
+ if (Ts) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
1490
1490
  else for (const t of e) {
1491
- const s = document.createElement("style"), r = Kt.litNonce;
1491
+ const s = document.createElement("style"), r = Xt.litNonce;
1492
1492
  r !== void 0 && s.setAttribute("nonce", r), s.textContent = t.cssText, n.appendChild(s);
1493
1493
  }
1494
- }, zr = Ls ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
1494
+ }, Ur = Ts ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
1495
1495
  let t = "";
1496
1496
  for (const s of e.cssRules) t += s.cssText;
1497
- return gl(t);
1497
+ return dl(t);
1498
1498
  })(n) : n;
1499
1499
  /**
1500
1500
  * @license
1501
1501
  * Copyright 2017 Google LLC
1502
1502
  * SPDX-License-Identifier: BSD-3-Clause
1503
1503
  */
1504
- const { is: vl, defineProperty: bl, getOwnPropertyDescriptor: yl, getOwnPropertyNames: $l, getOwnPropertySymbols: xl, getPrototypeOf: wl } = Object, ke = globalThis, Hr = ke.trustedTypes, kl = Hr ? Hr.emptyScript : "", Gn = ke.reactiveElementPolyfillSupport, yt = (n, e) => n, nn = { toAttribute(n, e) {
1504
+ const { is: gl, defineProperty: ml, getOwnPropertyDescriptor: vl, getOwnPropertyNames: bl, getOwnPropertySymbols: yl, getPrototypeOf: $l } = Object, ke = globalThis, zr = ke.trustedTypes, xl = zr ? zr.emptyScript : "", Fn = ke.reactiveElementPolyfillSupport, yt = (n, e) => n, tn = { toAttribute(n, e) {
1505
1505
  switch (e) {
1506
1506
  case Boolean:
1507
- n = n ? kl : null;
1507
+ n = n ? xl : null;
1508
1508
  break;
1509
1509
  case Object:
1510
1510
  case Array:
@@ -1529,7 +1529,7 @@ const { is: vl, defineProperty: bl, getOwnPropertyDescriptor: yl, getOwnProperty
1529
1529
  }
1530
1530
  }
1531
1531
  return t;
1532
- } }, Os = (n, e) => !vl(n, e), Br = { attribute: !0, type: String, converter: nn, reflect: !1, useDefault: !1, hasChanged: Os };
1532
+ } }, Ls = (n, e) => !gl(n, e), Hr = { attribute: !0, type: String, converter: tn, reflect: !1, useDefault: !1, hasChanged: Ls };
1533
1533
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ke.litPropertyMetadata ?? (ke.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1534
1534
  let Ze = class extends HTMLElement {
1535
1535
  static addInitializer(e) {
@@ -1538,14 +1538,14 @@ let Ze = class extends HTMLElement {
1538
1538
  static get observedAttributes() {
1539
1539
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
1540
1540
  }
1541
- static createProperty(e, t = Br) {
1541
+ static createProperty(e, t = Hr) {
1542
1542
  if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
1543
1543
  const s = Symbol(), r = this.getPropertyDescriptor(e, s, t);
1544
- r !== void 0 && bl(this.prototype, e, r);
1544
+ r !== void 0 && ml(this.prototype, e, r);
1545
1545
  }
1546
1546
  }
1547
1547
  static getPropertyDescriptor(e, t, s) {
1548
- const { get: r, set: i } = yl(this.prototype, e) ?? { get() {
1548
+ const { get: r, set: i } = vl(this.prototype, e) ?? { get() {
1549
1549
  return this[t];
1550
1550
  }, set(o) {
1551
1551
  this[t] = o;
@@ -1556,17 +1556,17 @@ let Ze = class extends HTMLElement {
1556
1556
  }, configurable: !0, enumerable: !0 };
1557
1557
  }
1558
1558
  static getPropertyOptions(e) {
1559
- return this.elementProperties.get(e) ?? Br;
1559
+ return this.elementProperties.get(e) ?? Hr;
1560
1560
  }
1561
1561
  static _$Ei() {
1562
1562
  if (this.hasOwnProperty(yt("elementProperties"))) return;
1563
- const e = wl(this);
1563
+ const e = $l(this);
1564
1564
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
1565
1565
  }
1566
1566
  static finalize() {
1567
1567
  if (this.hasOwnProperty(yt("finalized"))) return;
1568
1568
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(yt("properties"))) {
1569
- const t = this.properties, s = [...$l(t), ...xl(t)];
1569
+ const t = this.properties, s = [...bl(t), ...yl(t)];
1570
1570
  for (const r of s) this.createProperty(r, t[r]);
1571
1571
  }
1572
1572
  const e = this[Symbol.metadata];
@@ -1585,8 +1585,8 @@ let Ze = class extends HTMLElement {
1585
1585
  const t = [];
1586
1586
  if (Array.isArray(e)) {
1587
1587
  const s = new Set(e.flat(1 / 0).reverse());
1588
- for (const r of s) t.unshift(zr(r));
1589
- } else e !== void 0 && t.push(zr(e));
1588
+ for (const r of s) t.unshift(Ur(r));
1589
+ } else e !== void 0 && t.push(Ur(e));
1590
1590
  return t;
1591
1591
  }
1592
1592
  static _$Eu(e, t) {
@@ -1615,7 +1615,7 @@ let Ze = class extends HTMLElement {
1615
1615
  }
1616
1616
  createRenderRoot() {
1617
1617
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
1618
- return ml(e, this.constructor.elementStyles), e;
1618
+ return fl(e, this.constructor.elementStyles), e;
1619
1619
  }
1620
1620
  connectedCallback() {
1621
1621
  var e;
@@ -1640,7 +1640,7 @@ let Ze = class extends HTMLElement {
1640
1640
  var i;
1641
1641
  const s = this.constructor.elementProperties.get(e), r = this.constructor._$Eu(e, s);
1642
1642
  if (r !== void 0 && s.reflect === !0) {
1643
- const o = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter : nn).toAttribute(t, s.type);
1643
+ const o = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter : tn).toAttribute(t, s.type);
1644
1644
  this._$Em = e, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
1645
1645
  }
1646
1646
  }
@@ -1648,15 +1648,17 @@ let Ze = class extends HTMLElement {
1648
1648
  var i, o;
1649
1649
  const s = this.constructor, r = s._$Eh.get(e);
1650
1650
  if (r !== void 0 && this._$Em !== r) {
1651
- const a = s.getPropertyOptions(r), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : nn;
1652
- this._$Em = r, this[r] = l.fromAttribute(t, a.type) ?? ((o = this._$Ej) == null ? void 0 : o.get(r)) ?? null, this._$Em = null;
1651
+ const a = s.getPropertyOptions(r), l = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((i = a.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? a.converter : tn;
1652
+ this._$Em = r;
1653
+ const c = l.fromAttribute(t, a.type);
1654
+ this[r] = c ?? ((o = this._$Ej) == null ? void 0 : o.get(r)) ?? c, this._$Em = null;
1653
1655
  }
1654
1656
  }
1655
1657
  requestUpdate(e, t, s) {
1656
1658
  var r;
1657
1659
  if (e !== void 0) {
1658
1660
  const i = this.constructor, o = this[e];
1659
- if (s ?? (s = i.getPropertyOptions(e)), !((s.hasChanged ?? Os)(o, t) || s.useDefault && s.reflect && o === ((r = this._$Ej) == null ? void 0 : r.get(e)) && !this.hasAttribute(i._$Eu(e, s)))) return;
1661
+ if (s ?? (s = i.getPropertyOptions(e)), !((s.hasChanged ?? Ls)(o, t) || s.useDefault && s.reflect && o === ((r = this._$Ej) == null ? void 0 : r.get(e)) && !this.hasAttribute(i._$Eu(e, s)))) return;
1660
1662
  this.C(e, t, s);
1661
1663
  }
1662
1664
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -1732,56 +1734,56 @@ let Ze = class extends HTMLElement {
1732
1734
  firstUpdated(e) {
1733
1735
  }
1734
1736
  };
1735
- Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[yt("elementProperties")] = /* @__PURE__ */ new Map(), Ze[yt("finalized")] = /* @__PURE__ */ new Map(), Gn == null || Gn({ ReactiveElement: Ze }), (ke.reactiveElementVersions ?? (ke.reactiveElementVersions = [])).push("2.1.0");
1737
+ Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[yt("elementProperties")] = /* @__PURE__ */ new Map(), Ze[yt("finalized")] = /* @__PURE__ */ new Map(), Fn == null || Fn({ ReactiveElement: Ze }), (ke.reactiveElementVersions ?? (ke.reactiveElementVersions = [])).push("2.1.1");
1736
1738
  /**
1737
1739
  * @license
1738
1740
  * Copyright 2017 Google LLC
1739
1741
  * SPDX-License-Identifier: BSD-3-Clause
1740
1742
  */
1741
- const $t = globalThis, sn = $t.trustedTypes, Fr = sn ? sn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, so = "$lit$", $e = `lit$${Math.random().toFixed(9).slice(2)}$`, ro = "?" + $e, _l = `<${ro}>`, Ne = document, kt = () => Ne.createComment(""), _t = (n) => n === null || typeof n != "object" && typeof n != "function", Is = Array.isArray, Sl = (n) => Is(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Wn = `[
1742
- \f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, jr = /-->/g, Gr = />/g, Re = RegExp(`>|${Wn}(?:([^\\s"'>=/]+)(${Wn}*=${Wn}*(?:[^
1743
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Wr = /'/g, qr = /"/g, io = /^(?:script|style|textarea|title)$/i, Al = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), w = Al(1), _e = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), Zr = /* @__PURE__ */ new WeakMap(), Ie = Ne.createTreeWalker(Ne, 129);
1744
- function oo(n, e) {
1745
- if (!Is(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
1746
- return Fr !== void 0 ? Fr.createHTML(e) : e;
1747
- }
1748
- const El = (n, e) => {
1743
+ const $t = globalThis, nn = $t.trustedTypes, Br = nn ? nn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, to = "$lit$", $e = `lit$${Math.random().toFixed(9).slice(2)}$`, no = "?" + $e, wl = `<${no}>`, Ne = document, kt = () => Ne.createComment(""), _t = (n) => n === null || typeof n != "object" && typeof n != "function", Rs = Array.isArray, kl = (n) => Rs(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", jn = `[
1744
+ \f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Fr = /-->/g, jr = />/g, Re = RegExp(`>|${jn}(?:([^\\s"'>=/]+)(${jn}*=${jn}*(?:[^
1745
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Gr = /'/g, Wr = /"/g, so = /^(?:script|style|textarea|title)$/i, _l = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), w = _l(1), _e = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), qr = /* @__PURE__ */ new WeakMap(), Pe = Ne.createTreeWalker(Ne, 129);
1746
+ function ro(n, e) {
1747
+ if (!Rs(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
1748
+ return Br !== void 0 ? Br.createHTML(e) : e;
1749
+ }
1750
+ const Sl = (n, e) => {
1749
1751
  const t = n.length - 1, s = [];
1750
1752
  let r, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = ht;
1751
1753
  for (let a = 0; a < t; a++) {
1752
1754
  const l = n[a];
1753
1755
  let c, u, d = -1, p = 0;
1754
- for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o === ht ? u[1] === "!--" ? o = jr : u[1] !== void 0 ? o = Gr : u[2] !== void 0 ? (io.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = Re) : u[3] !== void 0 && (o = Re) : o === Re ? u[0] === ">" ? (o = r ?? ht, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Re : u[3] === '"' ? qr : Wr) : o === qr || o === Wr ? o = Re : o === jr || o === Gr ? o = ht : (o = Re, r = void 0);
1756
+ for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o === ht ? u[1] === "!--" ? o = Fr : u[1] !== void 0 ? o = jr : u[2] !== void 0 ? (so.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = Re) : u[3] !== void 0 && (o = Re) : o === Re ? u[0] === ">" ? (o = r ?? ht, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Re : u[3] === '"' ? Wr : Gr) : o === Wr || o === Gr ? o = Re : o === Fr || o === jr ? o = ht : (o = Re, r = void 0);
1755
1757
  const g = o === Re && n[a + 1].startsWith("/>") ? " " : "";
1756
- i += o === ht ? l + _l : d >= 0 ? (s.push(c), l.slice(0, d) + so + l.slice(d) + $e + g) : l + $e + (d === -2 ? a : g);
1758
+ i += o === ht ? l + wl : d >= 0 ? (s.push(c), l.slice(0, d) + to + l.slice(d) + $e + g) : l + $e + (d === -2 ? a : g);
1757
1759
  }
1758
- return [oo(n, i + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
1760
+ return [ro(n, i + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
1759
1761
  };
1760
- let hs = class ao {
1762
+ let cs = class io {
1761
1763
  constructor({ strings: e, _$litType$: t }, s) {
1762
1764
  let r;
1763
1765
  this.parts = [];
1764
1766
  let i = 0, o = 0;
1765
- const a = e.length - 1, l = this.parts, [c, u] = El(e, t);
1766
- if (this.el = ao.createElement(c, s), Ie.currentNode = this.el.content, t === 2 || t === 3) {
1767
+ const a = e.length - 1, l = this.parts, [c, u] = Sl(e, t);
1768
+ if (this.el = io.createElement(c, s), Pe.currentNode = this.el.content, t === 2 || t === 3) {
1767
1769
  const d = this.el.content.firstChild;
1768
1770
  d.replaceWith(...d.childNodes);
1769
1771
  }
1770
- for (; (r = Ie.nextNode()) !== null && l.length < a; ) {
1772
+ for (; (r = Pe.nextNode()) !== null && l.length < a; ) {
1771
1773
  if (r.nodeType === 1) {
1772
- if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(so)) {
1774
+ if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(to)) {
1773
1775
  const p = u[o++], g = r.getAttribute(d).split($e), m = /([.?@])?(.*)/.exec(p);
1774
- l.push({ type: 1, index: i, name: m[2], strings: g, ctor: m[1] === "." ? Cl : m[1] === "?" ? Ll : m[1] === "@" ? Rl : xn }), r.removeAttribute(d);
1776
+ l.push({ type: 1, index: i, name: m[2], strings: g, ctor: m[1] === "." ? El : m[1] === "?" ? Tl : m[1] === "@" ? Cl : yn }), r.removeAttribute(d);
1775
1777
  } else d.startsWith($e) && (l.push({ type: 6, index: i }), r.removeAttribute(d));
1776
- if (io.test(r.tagName)) {
1778
+ if (so.test(r.tagName)) {
1777
1779
  const d = r.textContent.split($e), p = d.length - 1;
1778
1780
  if (p > 0) {
1779
- r.textContent = sn ? sn.emptyScript : "";
1780
- for (let g = 0; g < p; g++) r.append(d[g], kt()), Ie.nextNode(), l.push({ type: 2, index: ++i });
1781
+ r.textContent = nn ? nn.emptyScript : "";
1782
+ for (let g = 0; g < p; g++) r.append(d[g], kt()), Pe.nextNode(), l.push({ type: 2, index: ++i });
1781
1783
  r.append(d[p], kt());
1782
1784
  }
1783
1785
  }
1784
- } else if (r.nodeType === 8) if (r.data === ro) l.push({ type: 2, index: i });
1786
+ } else if (r.nodeType === 8) if (r.data === no) l.push({ type: 2, index: i });
1785
1787
  else {
1786
1788
  let d = -1;
1787
1789
  for (; (d = r.data.indexOf($e, d + 1)) !== -1; ) l.push({ type: 7, index: i }), d += $e.length - 1;
@@ -1801,7 +1803,7 @@ function st(n, e, t = n, s) {
1801
1803
  const i = _t(e) ? void 0 : e._$litDirective$;
1802
1804
  return (r == null ? void 0 : r.constructor) !== i && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), i === void 0 ? r = void 0 : (r = new i(n), r._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = r : t._$Cl = r), r !== void 0 && (e = st(n, r._$AS(n, e.values), r, s)), e;
1803
1805
  }
1804
- class Tl {
1806
+ class Al {
1805
1807
  constructor(e, t) {
1806
1808
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
1807
1809
  }
@@ -1813,23 +1815,23 @@ class Tl {
1813
1815
  }
1814
1816
  u(e) {
1815
1817
  const { el: { content: t }, parts: s } = this._$AD, r = ((e == null ? void 0 : e.creationScope) ?? Ne).importNode(t, !0);
1816
- Ie.currentNode = r;
1817
- let i = Ie.nextNode(), o = 0, a = 0, l = s[0];
1818
+ Pe.currentNode = r;
1819
+ let i = Pe.nextNode(), o = 0, a = 0, l = s[0];
1818
1820
  for (; l !== void 0; ) {
1819
1821
  if (o === l.index) {
1820
1822
  let c;
1821
- l.type === 2 ? c = new It(i, i.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, e) : l.type === 6 && (c = new Ol(i, this, e)), this._$AV.push(c), l = s[++a];
1823
+ l.type === 2 ? c = new Ot(i, i.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, e) : l.type === 6 && (c = new Ll(i, this, e)), this._$AV.push(c), l = s[++a];
1822
1824
  }
1823
- o !== (l == null ? void 0 : l.index) && (i = Ie.nextNode(), o++);
1825
+ o !== (l == null ? void 0 : l.index) && (i = Pe.nextNode(), o++);
1824
1826
  }
1825
- return Ie.currentNode = Ne, r;
1827
+ return Pe.currentNode = Ne, r;
1826
1828
  }
1827
1829
  p(e) {
1828
1830
  let t = 0;
1829
1831
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, t), t += s.strings.length - 2) : s._$AI(e[t])), t++;
1830
1832
  }
1831
1833
  }
1832
- class It {
1834
+ class Ot {
1833
1835
  get _$AU() {
1834
1836
  var e;
1835
1837
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
@@ -1849,7 +1851,7 @@ class It {
1849
1851
  return this._$AB;
1850
1852
  }
1851
1853
  _$AI(e, t = this) {
1852
- e = st(this, e, t), _t(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== _e && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Sl(e) ? this.k(e) : this._(e);
1854
+ e = st(this, e, t), _t(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== _e && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : kl(e) ? this.k(e) : this._(e);
1853
1855
  }
1854
1856
  O(e) {
1855
1857
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -1862,27 +1864,27 @@ class It {
1862
1864
  }
1863
1865
  $(e) {
1864
1866
  var i;
1865
- const { values: t, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = hs.createElement(oo(s.h, s.h[0]), this.options)), s);
1867
+ const { values: t, _$litType$: s } = e, r = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = cs.createElement(ro(s.h, s.h[0]), this.options)), s);
1866
1868
  if (((i = this._$AH) == null ? void 0 : i._$AD) === r) this._$AH.p(t);
1867
1869
  else {
1868
- const o = new Tl(r, this), a = o.u(this.options);
1870
+ const o = new Al(r, this), a = o.u(this.options);
1869
1871
  o.p(t), this.T(a), this._$AH = o;
1870
1872
  }
1871
1873
  }
1872
1874
  _$AC(e) {
1873
- let t = Zr.get(e.strings);
1874
- return t === void 0 && Zr.set(e.strings, t = new hs(e)), t;
1875
+ let t = qr.get(e.strings);
1876
+ return t === void 0 && qr.set(e.strings, t = new cs(e)), t;
1875
1877
  }
1876
1878
  k(e) {
1877
- Is(this._$AH) || (this._$AH = [], this._$AR());
1879
+ Rs(this._$AH) || (this._$AH = [], this._$AR());
1878
1880
  const t = this._$AH;
1879
1881
  let s, r = 0;
1880
- for (const i of e) r === t.length ? t.push(s = new It(this.O(kt()), this.O(kt()), this, this.options)) : s = t[r], s._$AI(i), r++;
1882
+ for (const i of e) r === t.length ? t.push(s = new Ot(this.O(kt()), this.O(kt()), this, this.options)) : s = t[r], s._$AI(i), r++;
1881
1883
  r < t.length && (this._$AR(s && s._$AB.nextSibling, r), t.length = r);
1882
1884
  }
1883
1885
  _$AR(e = this._$AA.nextSibling, t) {
1884
1886
  var s;
1885
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, t); e && e !== this._$AB; ) {
1887
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, t); e !== this._$AB; ) {
1886
1888
  const r = e.nextSibling;
1887
1889
  e.remove(), e = r;
1888
1890
  }
@@ -1892,7 +1894,7 @@ class It {
1892
1894
  this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
1893
1895
  }
1894
1896
  }
1895
- class xn {
1897
+ class yn {
1896
1898
  get tagName() {
1897
1899
  return this.element.tagName;
1898
1900
  }
@@ -1917,7 +1919,7 @@ class xn {
1917
1919
  e === x ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
1918
1920
  }
1919
1921
  }
1920
- let Cl = class extends xn {
1922
+ let El = class extends yn {
1921
1923
  constructor() {
1922
1924
  super(...arguments), this.type = 3;
1923
1925
  }
@@ -1925,7 +1927,7 @@ let Cl = class extends xn {
1925
1927
  this.element[this.name] = e === x ? void 0 : e;
1926
1928
  }
1927
1929
  };
1928
- class Ll extends xn {
1930
+ class Tl extends yn {
1929
1931
  constructor() {
1930
1932
  super(...arguments), this.type = 4;
1931
1933
  }
@@ -1933,7 +1935,7 @@ class Ll extends xn {
1933
1935
  this.element.toggleAttribute(this.name, !!e && e !== x);
1934
1936
  }
1935
1937
  }
1936
- class Rl extends xn {
1938
+ class Cl extends yn {
1937
1939
  constructor(e, t, s, r, i) {
1938
1940
  super(e, t, s, r, i), this.type = 5;
1939
1941
  }
@@ -1947,7 +1949,7 @@ class Rl extends xn {
1947
1949
  typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
1948
1950
  }
1949
1951
  }
1950
- class Ol {
1952
+ class Ll {
1951
1953
  constructor(e, t, s) {
1952
1954
  this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = s;
1953
1955
  }
@@ -1958,14 +1960,14 @@ class Ol {
1958
1960
  st(this, e);
1959
1961
  }
1960
1962
  }
1961
- const qn = $t.litHtmlPolyfillSupport;
1962
- qn == null || qn(hs, It), ($t.litHtmlVersions ?? ($t.litHtmlVersions = [])).push("3.3.0");
1963
- const Il = (n, e, t) => {
1963
+ const Gn = $t.litHtmlPolyfillSupport;
1964
+ Gn == null || Gn(cs, Ot), ($t.litHtmlVersions ?? ($t.litHtmlVersions = [])).push("3.3.1");
1965
+ const Rl = (n, e, t) => {
1964
1966
  const s = (t == null ? void 0 : t.renderBefore) ?? e;
1965
1967
  let r = s._$litPart$;
1966
1968
  if (r === void 0) {
1967
1969
  const i = (t == null ? void 0 : t.renderBefore) ?? null;
1968
- s._$litPart$ = r = new It(e.insertBefore(kt(), i), i, void 0, t ?? {});
1970
+ s._$litPart$ = r = new Ot(e.insertBefore(kt(), i), i, void 0, t ?? {});
1969
1971
  }
1970
1972
  return r._$AI(n), r;
1971
1973
  };
@@ -1974,7 +1976,7 @@ const Il = (n, e, t) => {
1974
1976
  * Copyright 2017 Google LLC
1975
1977
  * SPDX-License-Identifier: BSD-3-Clause
1976
1978
  */
1977
- const Pe = globalThis;
1979
+ const Ie = globalThis;
1978
1980
  let M = class extends Ze {
1979
1981
  constructor() {
1980
1982
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -1986,7 +1988,7 @@ let M = class extends Ze {
1986
1988
  }
1987
1989
  update(e) {
1988
1990
  const t = this.render();
1989
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Il(t, this.renderRoot, this.renderOptions);
1991
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Rl(t, this.renderRoot, this.renderOptions);
1990
1992
  }
1991
1993
  connectedCallback() {
1992
1994
  var e;
@@ -2000,12 +2002,12 @@ let M = class extends Ze {
2000
2002
  return _e;
2001
2003
  }
2002
2004
  };
2003
- var Ii;
2004
- M._$litElement$ = !0, M.finalized = !0, (Ii = Pe.litElementHydrateSupport) == null || Ii.call(Pe, { LitElement: M });
2005
- const Zn = Pe.litElementPolyfillSupport;
2006
- Zn == null || Zn({ LitElement: M });
2007
- (Pe.litElementVersions ?? (Pe.litElementVersions = [])).push("4.2.0");
2008
- const Pl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Ml = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Nl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Dl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Ul = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, Yr = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, zl = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, Hl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Xr = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, Ye = {
2005
+ var Ri;
2006
+ M._$litElement$ = !0, M.finalized = !0, (Ri = Ie.litElementHydrateSupport) == null || Ri.call(Ie, { LitElement: M });
2007
+ const Wn = Ie.litElementPolyfillSupport;
2008
+ Wn == null || Wn({ LitElement: M });
2009
+ (Ie.litElementVersions ?? (Ie.litElementVersions = [])).push("4.2.1");
2010
+ const Ol = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Pl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Il = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Ml = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Nl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, Zr = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Dl = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, Ul = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Yr = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, Ye = {
2009
2011
  allRenderFn: !1,
2010
2012
  cmpDidLoad: !0,
2011
2013
  cmpDidUnload: !1,
@@ -2089,8 +2091,8 @@ const Pl = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
2089
2091
  transformTagName: !1,
2090
2092
  attachStyles: !0
2091
2093
  };
2092
- let Xe, lo, wn, co = !1, rn = !1, Ps = !1, X = !1, Kr = null, ps = !1;
2093
- const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} }, uo = kn.HTMLElement || class {
2094
+ let Xe, oo, $n, ao = !1, sn = !1, Os = !1, X = !1, Xr = null, us = !1;
2095
+ const xn = typeof window < "u" ? window : {}, ae = xn.document || { head: {} }, lo = xn.HTMLElement || class {
2094
2096
  }, j = {
2095
2097
  $flags$: 0,
2096
2098
  $resourcesUrl$: "",
@@ -2099,7 +2101,7 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2099
2101
  ael: (n, e, t, s) => n.addEventListener(e, t, s),
2100
2102
  rel: (n, e, t, s) => n.removeEventListener(e, t, s),
2101
2103
  ce: (n, e) => new CustomEvent(n, e)
2102
- }, Bl = /* @__PURE__ */ (() => {
2104
+ }, zl = /* @__PURE__ */ (() => {
2103
2105
  let n = !1;
2104
2106
  try {
2105
2107
  ae.addEventListener("e", null, Object.defineProperty({}, "passive", {
@@ -2110,47 +2112,47 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2110
2112
  } catch {
2111
2113
  }
2112
2114
  return n;
2113
- })(), Fl = (n) => Promise.resolve(n), jl = /* @__PURE__ */ (() => {
2115
+ })(), Hl = (n) => Promise.resolve(n), Bl = /* @__PURE__ */ (() => {
2114
2116
  try {
2115
2117
  return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
2116
2118
  } catch {
2117
2119
  }
2118
2120
  return !1;
2119
- })(), ho = (n, e, t, s) => {
2121
+ })(), co = (n, e, t, s) => {
2120
2122
  t && t.map(([r, i, o]) => {
2121
- const a = Wl(n, r), l = Gl(e, o), c = ql(r);
2123
+ const a = jl(n, r), l = Fl(e, o), c = Gl(r);
2122
2124
  j.ael(a, i, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => j.rel(a, i, l, c));
2123
2125
  });
2124
- }, Gl = (n, e) => (t) => {
2126
+ }, Fl = (n, e) => (t) => {
2125
2127
  try {
2126
2128
  Ye.lazyLoad || n.$hostElement$[e](t);
2127
2129
  } catch (s) {
2128
2130
  Pt(s);
2129
2131
  }
2130
- }, Wl = (n, e) => e & 4 ? ae : e & 8 ? kn : e & 16 ? ae.body : n, ql = (n) => Bl ? {
2132
+ }, jl = (n, e) => e & 4 ? ae : e & 8 ? xn : e & 16 ? ae.body : n, Gl = (n) => zl ? {
2131
2133
  passive: (n & 1) !== 0,
2132
2134
  capture: (n & 2) !== 0
2133
- } : (n & 2) !== 0, Vr = "http://www.w3.org/1999/xlink", De = (n, e = "") => () => {
2134
- }, Qr = /* @__PURE__ */ new WeakMap(), Zl = (n, e, t) => {
2135
- let s = ln.get(n);
2136
- jl && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, ln.set(n, s);
2137
- }, Yl = (n, e, t, s) => {
2138
- let r = po(e, t), i = ln.get(r);
2135
+ } : (n & 2) !== 0, Kr = "http://www.w3.org/1999/xlink", De = (n, e = "") => () => {
2136
+ }, Vr = /* @__PURE__ */ new WeakMap(), Wl = (n, e, t) => {
2137
+ let s = an.get(n);
2138
+ Bl && t ? (s = s || new CSSStyleSheet(), s.replace(e)) : s = e, an.set(n, s);
2139
+ }, ql = (n, e, t, s) => {
2140
+ let r = uo(e, t), i = an.get(r);
2139
2141
  if (n = n.nodeType === 11 ? n : ae, i)
2140
2142
  if (typeof i == "string") {
2141
2143
  n = n.head || n;
2142
- let o = Qr.get(n), a;
2143
- o || Qr.set(n, o = /* @__PURE__ */ new Set()), o.has(r) || (a = ae.createElement("style"), a.innerHTML = i, n.insertBefore(a, n.querySelector("link")), o && o.add(r));
2144
+ let o = Vr.get(n), a;
2145
+ o || Vr.set(n, o = /* @__PURE__ */ new Set()), o.has(r) || (a = ae.createElement("style"), a.innerHTML = i, n.insertBefore(a, n.querySelector("link")), o && o.add(r));
2144
2146
  } else n.adoptedStyleSheets.includes(i) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, i]);
2145
2147
  return r;
2146
- }, Xl = (n) => {
2147
- const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, r = De("attachStyles", e.$tagName$), i = Yl(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
2148
+ }, Zl = (n) => {
2149
+ const e = n.$cmpMeta$, t = n.$hostElement$, s = e.$flags$, r = De("attachStyles", e.$tagName$), i = ql(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, n.$modeName$);
2148
2150
  s & 10 && (t["s-sc"] = i, t.classList.add(i + "-h"), s & 2 && t.classList.add(i + "-s")), r();
2149
- }, po = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), Kl = (n) => _c.map((e) => e(n)).find((e) => !!e), Jr = {}, Vl = "http://www.w3.org/2000/svg", Ql = "http://www.w3.org/1999/xhtml", Jl = (n) => n != null, Ms = (n) => (n = typeof n, n === "object" || n === "function"), Je = (n, e, ...t) => {
2151
+ }, uo = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), Yl = (n) => wc.map((e) => e(n)).find((e) => !!e), Qr = {}, Xl = "http://www.w3.org/2000/svg", Kl = "http://www.w3.org/1999/xhtml", Vl = (n) => n != null, Ps = (n) => (n = typeof n, n === "object" || n === "function"), Je = (n, e, ...t) => {
2150
2152
  let s = null, r = null, i = null, o = !1, a = !1, l = [];
2151
2153
  const c = (d) => {
2152
2154
  for (let p = 0; p < d.length; p++)
2153
- s = d[p], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !Ms(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? on(null, s) : s), a = o);
2155
+ s = d[p], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !Ps(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? rn(null, s) : s), a = o);
2154
2156
  };
2155
2157
  if (c(t), e) {
2156
2158
  e.key && (r = e.key), e.name && (i = e.name);
@@ -2160,10 +2162,10 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2160
2162
  }
2161
2163
  }
2162
2164
  if (typeof n == "function")
2163
- return n(e === null ? {} : e, l, tc);
2164
- const u = on(n, null);
2165
+ return n(e === null ? {} : e, l, Jl);
2166
+ const u = rn(n, null);
2165
2167
  return u.$attrs$ = e, l.length > 0 && (u.$children$ = l), u.$key$ = r, u.$name$ = i, u;
2166
- }, on = (n, e) => {
2168
+ }, rn = (n, e) => {
2167
2169
  const t = {
2168
2170
  $flags$: 0,
2169
2171
  $tag$: n,
@@ -2172,28 +2174,28 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2172
2174
  $children$: null
2173
2175
  };
2174
2176
  return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
2175
- }, Ns = {}, ec = (n) => n && n.$tag$ === Ns, tc = {
2176
- forEach: (n, e) => n.map(ei).forEach(e),
2177
- map: (n, e) => n.map(ei).map(e).map(nc)
2178
- }, ei = (n) => ({
2177
+ }, Is = {}, Ql = (n) => n && n.$tag$ === Is, Jl = {
2178
+ forEach: (n, e) => n.map(Jr).forEach(e),
2179
+ map: (n, e) => n.map(Jr).map(e).map(ec)
2180
+ }, Jr = (n) => ({
2179
2181
  vattrs: n.$attrs$,
2180
2182
  vchildren: n.$children$,
2181
2183
  vkey: n.$key$,
2182
2184
  vname: n.$name$,
2183
2185
  vtag: n.$tag$,
2184
2186
  vtext: n.$text$
2185
- }), nc = (n) => {
2187
+ }), ec = (n) => {
2186
2188
  if (typeof n.vtag == "function") {
2187
2189
  const t = Object.assign({}, n.vattrs);
2188
2190
  return n.vkey && (t.key = n.vkey), n.vname && (t.name = n.vname), Je(n.vtag, t, ...n.vchildren || []);
2189
2191
  }
2190
- const e = on(n.vtag, n.vtext);
2192
+ const e = rn(n.vtag, n.vtext);
2191
2193
  return e.$attrs$ = n.vattrs, e.$children$ = n.vchildren, e.$key$ = n.vkey, e.$name$ = n.vname, e;
2192
- }, ti = (n, e, t, s, r, i) => {
2194
+ }, ei = (n, e, t, s, r, i) => {
2193
2195
  if (t !== s) {
2194
- let o = ii(n, e), a = e.toLowerCase();
2196
+ let o = ri(n, e), a = e.toLowerCase();
2195
2197
  if (e === "class") {
2196
- const l = n.classList, c = ni(t), u = ni(s);
2198
+ const l = n.classList, c = ti(t), u = ti(s);
2197
2199
  l.remove(...c.filter((d) => d && !u.includes(d))), l.add(...u.filter((d) => d && !c.includes(d)));
2198
2200
  } else if (e === "style") {
2199
2201
  for (const l in t)
@@ -2204,9 +2206,9 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2204
2206
  if (e === "ref")
2205
2207
  s && s(n);
2206
2208
  else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
2207
- e[2] === "-" ? e = e.slice(3) : ii(kn, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && j.rel(n, e, t, !1), s && j.ael(n, e, s, !1);
2209
+ e[2] === "-" ? e = e.slice(3) : ri(xn, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && j.rel(n, e, t, !1), s && j.ael(n, e, s, !1);
2208
2210
  else {
2209
- const l = Ms(s);
2211
+ const l = Ps(s);
2210
2212
  if ((o || l && s !== null) && !r)
2211
2213
  try {
2212
2214
  if (n.tagName.includes("-"))
@@ -2218,18 +2220,18 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2218
2220
  } catch {
2219
2221
  }
2220
2222
  let c = !1;
2221
- a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(Vr, e) : n.removeAttribute(e)) : (!o || i & 4 || r) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(Vr, e, s) : n.setAttribute(e, s));
2223
+ a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(e) === "") && (c ? n.removeAttributeNS(Kr, e) : n.removeAttribute(e)) : (!o || i & 4 || r) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(Kr, e, s) : n.setAttribute(e, s));
2222
2224
  }
2223
2225
  }
2224
- }, sc = /\s/, ni = (n) => n ? n.split(sc) : [], fo = (n, e, t, s) => {
2225
- const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = n && n.$attrs$ || Jr, o = e.$attrs$ || Jr;
2226
+ }, tc = /\s/, ti = (n) => n ? n.split(tc) : [], ho = (n, e, t, s) => {
2227
+ const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = n && n.$attrs$ || Qr, o = e.$attrs$ || Qr;
2226
2228
  for (s in i)
2227
- s in o || ti(r, s, i[s], void 0, t, e.$flags$);
2229
+ s in o || ei(r, s, i[s], void 0, t, e.$flags$);
2228
2230
  for (s in o)
2229
- ti(r, s, i[s], o[s], t, e.$flags$);
2230
- }, an = (n, e, t, s) => {
2231
+ ei(r, s, i[s], o[s], t, e.$flags$);
2232
+ }, on = (n, e, t, s) => {
2231
2233
  let r = e.$children$[t], i = 0, o, a, l;
2232
- if (co || (Ps = !0, r.$tag$ === "slot" && (Xe && s.classList.add(Xe + "-s"), r.$flags$ |= r.$children$ ? (
2234
+ if (ao || (Os = !0, r.$tag$ === "slot" && (Xe && s.classList.add(Xe + "-s"), r.$flags$ |= r.$children$ ? (
2233
2235
  // slot element has fallback content
2234
2236
  2
2235
2237
  ) : (
@@ -2240,28 +2242,28 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2240
2242
  else if (r.$flags$ & 1)
2241
2243
  o = r.$elm$ = ae.createTextNode("");
2242
2244
  else {
2243
- if (X || (X = r.$tag$ === "svg"), o = r.$elm$ = ae.createElementNS(X ? Vl : Ql, r.$flags$ & 2 ? "slot-fb" : r.$tag$), X && r.$tag$ === "foreignObject" && (X = !1), fo(null, r, X), Jl(Xe) && o["s-si"] !== Xe && o.classList.add(o["s-si"] = Xe), r.$children$)
2245
+ if (X || (X = r.$tag$ === "svg"), o = r.$elm$ = ae.createElementNS(X ? Xl : Kl, r.$flags$ & 2 ? "slot-fb" : r.$tag$), X && r.$tag$ === "foreignObject" && (X = !1), ho(null, r, X), Vl(Xe) && o["s-si"] !== Xe && o.classList.add(o["s-si"] = Xe), r.$children$)
2244
2246
  for (i = 0; i < r.$children$.length; ++i)
2245
- a = an(n, r, i, o), a && o.appendChild(a);
2247
+ a = on(n, r, i, o), a && o.appendChild(a);
2246
2248
  r.$tag$ === "svg" ? X = !1 : o.tagName === "foreignObject" && (X = !0);
2247
2249
  }
2248
- return o["s-hn"] = wn, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = lo, o["s-sn"] = r.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === r.$tag$ && n.$elm$ && St(n.$elm$, !1)), o;
2250
+ return o["s-hn"] = $n, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = oo, o["s-sn"] = r.$name$ || "", l = n && n.$children$ && n.$children$[t], l && l.$tag$ === r.$tag$ && n.$elm$ && St(n.$elm$, !1)), o;
2249
2251
  }, St = (n, e) => {
2250
2252
  j.$flags$ |= 1;
2251
2253
  const t = n.childNodes;
2252
2254
  for (let s = t.length - 1; s >= 0; s--) {
2253
2255
  const r = t[s];
2254
- r["s-hn"] !== wn && r["s-ol"] && (vo(r).insertBefore(r, Ds(r)), r["s-ol"].remove(), r["s-ol"] = void 0, Ps = !0), e && St(r, e);
2256
+ r["s-hn"] !== $n && r["s-ol"] && (go(r).insertBefore(r, Ms(r)), r["s-ol"].remove(), r["s-ol"] = void 0, Os = !0), e && St(r, e);
2255
2257
  }
2256
2258
  j.$flags$ &= -2;
2257
- }, go = (n, e, t, s, r, i) => {
2259
+ }, po = (n, e, t, s, r, i) => {
2258
2260
  let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
2259
- for (o.shadowRoot && o.tagName === wn && (o = o.shadowRoot); r <= i; ++r)
2260
- s[r] && (a = an(null, t, r, n), a && (s[r].$elm$ = a, o.insertBefore(a, Ds(e))));
2261
- }, mo = (n, e, t, s, r) => {
2261
+ for (o.shadowRoot && o.tagName === $n && (o = o.shadowRoot); r <= i; ++r)
2262
+ s[r] && (a = on(null, t, r, n), a && (s[r].$elm$ = a, o.insertBefore(a, Ms(e))));
2263
+ }, fo = (n, e, t, s, r) => {
2262
2264
  for (; e <= t; ++e)
2263
- (s = n[e]) && (r = s.$elm$, $o(s), rn = !0, r["s-ol"] ? r["s-ol"].remove() : St(r, !0), r.remove());
2264
- }, rc = (n, e, t, s) => {
2265
+ (s = n[e]) && (r = s.$elm$, bo(s), sn = !0, r["s-ol"] ? r["s-ol"].remove() : St(r, !0), r.remove());
2266
+ }, nc = (n, e, t, s) => {
2265
2267
  let r = 0, i = 0, o = 0, a = 0, l = e.length - 1, c = e[0], u = e[l], d = s.length - 1, p = s[0], g = s[d], m, y;
2266
2268
  for (; r <= l && i <= d; )
2267
2269
  if (c == null)
@@ -2272,13 +2274,13 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2272
2274
  p = s[++i];
2273
2275
  else if (g == null)
2274
2276
  g = s[--d];
2275
- else if (Wt(c, p))
2277
+ else if (Gt(c, p))
2276
2278
  Ke(c, p), c = e[++r], p = s[++i];
2277
- else if (Wt(u, g))
2279
+ else if (Gt(u, g))
2278
2280
  Ke(u, g), u = e[--l], g = s[--d];
2279
- else if (Wt(c, g))
2281
+ else if (Gt(c, g))
2280
2282
  (c.$tag$ === "slot" || g.$tag$ === "slot") && St(c.$elm$.parentNode, !1), Ke(c, g), n.insertBefore(c.$elm$, u.$elm$.nextSibling), c = e[++r], g = s[--d];
2281
- else if (Wt(u, p))
2283
+ else if (Gt(u, p))
2282
2284
  (c.$tag$ === "slot" || g.$tag$ === "slot") && St(u.$elm$.parentNode, !1), Ke(u, p), n.insertBefore(u.$elm$, c.$elm$), u = e[--l], p = s[++i];
2283
2285
  else {
2284
2286
  for (o = -1, a = r; a <= l; ++a)
@@ -2286,14 +2288,14 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2286
2288
  o = a;
2287
2289
  break;
2288
2290
  }
2289
- o >= 0 ? (y = e[o], y.$tag$ !== p.$tag$ ? m = an(e && e[i], t, o, n) : (Ke(y, p), e[o] = void 0, m = y.$elm$), p = s[++i]) : (m = an(e && e[i], t, i, n), p = s[++i]), m && vo(c.$elm$).insertBefore(m, Ds(c.$elm$));
2291
+ o >= 0 ? (y = e[o], y.$tag$ !== p.$tag$ ? m = on(e && e[i], t, o, n) : (Ke(y, p), e[o] = void 0, m = y.$elm$), p = s[++i]) : (m = on(e && e[i], t, i, n), p = s[++i]), m && go(c.$elm$).insertBefore(m, Ms(c.$elm$));
2290
2292
  }
2291
- r > l ? go(n, s[d + 1] == null ? null : s[d + 1].$elm$, t, s, i, d) : i > d && mo(e, r, l);
2292
- }, Wt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Ds = (n) => n && n["s-ol"] || n, vo = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, Ke = (n, e) => {
2293
+ r > l ? po(n, s[d + 1] == null ? null : s[d + 1].$elm$, t, s, i, d) : i > d && fo(e, r, l);
2294
+ }, Gt = (n, e) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : n.$key$ === e.$key$ : !1, Ms = (n) => n && n["s-ol"] || n, go = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, Ke = (n, e) => {
2293
2295
  const t = e.$elm$ = n.$elm$, s = n.$children$, r = e.$children$, i = e.$tag$, o = e.$text$;
2294
2296
  let a;
2295
- o === null ? (X = i === "svg" ? !0 : i === "foreignObject" ? !1 : X, i === "slot" || fo(n, e, X), s !== null && r !== null ? rc(t, s, e, r) : r !== null ? (n.$text$ !== null && (t.textContent = ""), go(t, null, e, r, 0, r.length - 1)) : s !== null && mo(s, 0, s.length - 1), X && i === "svg" && (X = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
2296
- }, bo = (n) => {
2297
+ o === null ? (X = i === "svg" ? !0 : i === "foreignObject" ? !1 : X, i === "slot" || ho(n, e, X), s !== null && r !== null ? nc(t, s, e, r) : r !== null ? (n.$text$ !== null && (t.textContent = ""), po(t, null, e, r, 0, r.length - 1)) : s !== null && fo(s, 0, s.length - 1), X && i === "svg" && (X = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (t.data = o);
2298
+ }, mo = (n) => {
2297
2299
  let e = n.childNodes, t, s, r, i, o, a;
2298
2300
  for (s = 0, r = e.length; s < r; s++)
2299
2301
  if (t = e[s], t.nodeType === 1) {
@@ -2309,31 +2311,31 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2309
2311
  break;
2310
2312
  }
2311
2313
  }
2312
- bo(t);
2314
+ mo(t);
2313
2315
  }
2314
- }, ee = [], yo = (n) => {
2316
+ }, ee = [], vo = (n) => {
2315
2317
  let e, t, s, r, i, o, a = 0, l = n.childNodes, c = l.length;
2316
2318
  for (; a < c; a++) {
2317
2319
  if (e = l[a], e["s-sr"] && (t = e["s-cr"]) && t.parentNode)
2318
2320
  for (s = t.parentNode.childNodes, r = e["s-sn"], o = s.length - 1; o >= 0; o--)
2319
- t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (si(t, r) ? (i = ee.find((u) => u.$nodeToRelocate$ === t), rn = !0, t["s-sn"] = t["s-sn"] || r, i ? i.$slotRefNode$ = e : ee.push({
2321
+ t = s[o], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== e["s-hn"] && (ni(t, r) ? (i = ee.find((u) => u.$nodeToRelocate$ === t), sn = !0, t["s-sn"] = t["s-sn"] || r, i ? i.$slotRefNode$ = e : ee.push({
2320
2322
  $slotRefNode$: e,
2321
2323
  $nodeToRelocate$: t
2322
2324
  }), t["s-sr"] && ee.map((u) => {
2323
- si(u.$nodeToRelocate$, t["s-sn"]) && (i = ee.find((d) => d.$nodeToRelocate$ === t), i && !u.$slotRefNode$ && (u.$slotRefNode$ = i.$slotRefNode$));
2325
+ ni(u.$nodeToRelocate$, t["s-sn"]) && (i = ee.find((d) => d.$nodeToRelocate$ === t), i && !u.$slotRefNode$ && (u.$slotRefNode$ = i.$slotRefNode$));
2324
2326
  })) : ee.some((u) => u.$nodeToRelocate$ === t) || ee.push({
2325
2327
  $nodeToRelocate$: t
2326
2328
  }));
2327
- e.nodeType === 1 && yo(e);
2329
+ e.nodeType === 1 && vo(e);
2328
2330
  }
2329
- }, si = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", $o = (n) => {
2330
- n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map($o);
2331
- }, ic = (n, e) => {
2332
- const t = n.$hostElement$, s = n.$cmpMeta$, r = n.$vnode$ || on(null, null), i = ec(e) ? e : Je(null, null, e);
2333
- wn = t.tagName, s.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = t[o])), i.$tag$ = null, i.$flags$ |= 4, n.$vnode$ = i, i.$elm$ = r.$elm$ = t.shadowRoot || t, Xe = t["s-sc"], lo = t["s-cr"], co = (s.$flags$ & 1) !== 0, rn = !1, Ke(r, i);
2331
+ }, ni = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", bo = (n) => {
2332
+ n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(bo);
2333
+ }, sc = (n, e) => {
2334
+ const t = n.$hostElement$, s = n.$cmpMeta$, r = n.$vnode$ || rn(null, null), i = Ql(e) ? e : Je(null, null, e);
2335
+ $n = t.tagName, s.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = t[o])), i.$tag$ = null, i.$flags$ |= 4, n.$vnode$ = i, i.$elm$ = r.$elm$ = t.shadowRoot || t, Xe = t["s-sc"], oo = t["s-cr"], ao = (s.$flags$ & 1) !== 0, sn = !1, Ke(r, i);
2334
2336
  {
2335
- if (j.$flags$ |= 1, Ps) {
2336
- yo(i.$elm$);
2337
+ if (j.$flags$ |= 1, Os) {
2338
+ vo(i.$elm$);
2337
2339
  let o, a, l, c, u, d, p = 0;
2338
2340
  for (; p < ee.length; p++)
2339
2341
  o = ee[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = ae.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
@@ -2348,39 +2350,39 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2348
2350
  } else
2349
2351
  a.nodeType === 1 && (a.hidden = !0);
2350
2352
  }
2351
- rn && bo(i.$elm$), j.$flags$ &= -2, ee.length = 0;
2353
+ sn && mo(i.$elm$), j.$flags$ &= -2, ee.length = 0;
2352
2354
  }
2353
- }, oc = (n) => n, ac = (n, e, t) => {
2354
- const s = oc(n);
2355
+ }, rc = (n) => n, ic = (n, e, t) => {
2356
+ const s = rc(n);
2355
2357
  return {
2356
- emit: (r) => lc(s, e, {
2358
+ emit: (r) => oc(s, e, {
2357
2359
  bubbles: !0,
2358
2360
  composed: !0,
2359
2361
  cancelable: !0,
2360
2362
  detail: r
2361
2363
  })
2362
2364
  };
2363
- }, lc = (n, e, t) => {
2365
+ }, oc = (n, e, t) => {
2364
2366
  const s = j.ce(e, t);
2365
2367
  return n.dispatchEvent(s), s;
2366
- }, cc = (n, e) => {
2367
- }, xo = (n, e) => (n.$flags$ |= 16, cc(n, n.$ancestorComponent$), Ec(() => uc(n, e))), uc = (n, e) => {
2368
+ }, ac = (n, e) => {
2369
+ }, yo = (n, e) => (n.$flags$ |= 16, ac(n, n.$ancestorComponent$), Sc(() => lc(n, e))), lc = (n, e) => {
2368
2370
  const t = n.$hostElement$, s = De("scheduleUpdate", n.$cmpMeta$.$tagName$), r = t;
2369
2371
  let i;
2370
- return e ? i = et(r, "componentWillLoad") : i = et(r, "componentWillUpdate"), i = ri(i, () => et(r, "componentWillRender")), s(), ri(i, () => hc(n, r, e));
2371
- }, hc = async (n, e, t) => {
2372
+ return e ? i = et(r, "componentWillLoad") : i = et(r, "componentWillUpdate"), i = si(i, () => et(r, "componentWillRender")), s(), si(i, () => cc(n, r, e));
2373
+ }, cc = async (n, e, t) => {
2372
2374
  const s = n.$hostElement$, r = De("update", n.$cmpMeta$.$tagName$);
2373
- s["s-rc"], t && Xl(n);
2375
+ s["s-rc"], t && Zl(n);
2374
2376
  const i = De("render", n.$cmpMeta$.$tagName$);
2375
- pc(n, e, s), i(), r(), dc(n);
2376
- }, pc = (n, e, t) => {
2377
+ uc(n, e, s), i(), r(), hc(n);
2378
+ }, uc = (n, e, t) => {
2377
2379
  try {
2378
- Kr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Ye.hasRenderFn || Ye.reflect) && (Ye.vdomRender || Ye.reflect) && (Ye.hydrateServerSide || ic(n, e));
2380
+ Xr = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Ye.hasRenderFn || Ye.reflect) && (Ye.vdomRender || Ye.reflect) && (Ye.hydrateServerSide || sc(n, e));
2379
2381
  } catch (a) {
2380
2382
  Pt(a, n.$hostElement$);
2381
2383
  }
2382
- return Kr = null, null;
2383
- }, dc = (n) => {
2384
+ return Xr = null, null;
2385
+ }, hc = (n) => {
2384
2386
  const e = n.$cmpMeta$.$tagName$, t = n.$hostElement$, s = De("postUpdate", e), r = t;
2385
2387
  n.$ancestorComponent$, et(r, "componentDidRender"), n.$flags$ & 64 ? (et(r, "componentDidUpdate"), s()) : (n.$flags$ |= 64, et(r, "componentDidLoad"), s());
2386
2388
  }, et = (n, e, t) => {
@@ -2390,9 +2392,9 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2390
2392
  } catch (s) {
2391
2393
  Pt(s);
2392
2394
  }
2393
- }, ri = (n, e) => n && n.then ? n.then(e) : e(), fc = (n, e) => n != null && !Ms(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, gc = (n, e) => _n(n).$instanceValues$.get(e), mc = (n, e, t, s) => {
2394
- const r = _n(n), i = n, o = r.$instanceValues$.get(e), a = r.$flags$, l = i;
2395
- t = fc(t, s.$members$[e][0]);
2395
+ }, si = (n, e) => n && n.then ? n.then(e) : e(), pc = (n, e) => n != null && !Ps(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, dc = (n, e) => wn(n).$instanceValues$.get(e), fc = (n, e, t, s) => {
2396
+ const r = wn(n), i = n, o = r.$instanceValues$.get(e), a = r.$flags$, l = i;
2397
+ t = pc(t, s.$members$[e][0]);
2396
2398
  const c = Number.isNaN(o) && Number.isNaN(t);
2397
2399
  if (t !== o && !c) {
2398
2400
  r.$instanceValues$.set(e, t);
@@ -2410,21 +2412,21 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2410
2412
  if ((a & 18) === 2) {
2411
2413
  if (l.componentShouldUpdate && l.componentShouldUpdate(t, o, e) === !1)
2412
2414
  return;
2413
- xo(r, !1);
2415
+ yo(r, !1);
2414
2416
  }
2415
2417
  }
2416
2418
  }
2417
- }, vc = (n, e, t) => {
2419
+ }, gc = (n, e, t) => {
2418
2420
  if (e.$members$) {
2419
2421
  n.watchers && (e.$watchers$ = n.watchers);
2420
2422
  const s = Object.entries(e.$members$), r = n.prototype;
2421
2423
  s.map(([i, [o]]) => {
2422
2424
  (o & 31 || o & 32) && Object.defineProperty(r, i, {
2423
2425
  get() {
2424
- return gc(this, i);
2426
+ return dc(this, i);
2425
2427
  },
2426
2428
  set(a) {
2427
- mc(this, i, a, e);
2429
+ fc(this, i, a, e);
2428
2430
  },
2429
2431
  configurable: !0,
2430
2432
  enumerable: !0
@@ -2451,37 +2453,37 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2451
2453
  }
2452
2454
  }
2453
2455
  return n;
2454
- }, bc = async (n, e, t, s, r) => {
2456
+ }, mc = async (n, e, t, s, r) => {
2455
2457
  if ((e.$flags$ & 32) === 0 && (r = n.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), r.style)) {
2456
2458
  let o = r.style;
2457
- typeof o != "string" && (o = o[e.$modeName$ = Kl(n)]);
2458
- const a = po(t, e.$modeName$);
2459
- if (!ln.has(a)) {
2459
+ typeof o != "string" && (o = o[e.$modeName$ = Yl(n)]);
2460
+ const a = uo(t, e.$modeName$);
2461
+ if (!an.has(a)) {
2460
2462
  const l = De("registerStyles", t.$tagName$);
2461
- Zl(a, o, !!(t.$flags$ & 1)), l();
2463
+ Wl(a, o, !!(t.$flags$ & 1)), l();
2462
2464
  }
2463
2465
  }
2464
- e.$ancestorComponent$, xo(e, !0);
2465
- }, yc = (n) => {
2466
- }, $c = (n) => {
2466
+ e.$ancestorComponent$, yo(e, !0);
2467
+ }, vc = (n) => {
2468
+ }, bc = (n) => {
2467
2469
  if ((j.$flags$ & 1) === 0) {
2468
- const e = _n(n), t = e.$cmpMeta$, s = De("connectedCallback", t.$tagName$);
2469
- e.$flags$ & 1 ? (ho(n, e, t.$listeners$), yc(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && xc(n), t.$members$ && Object.entries(t.$members$).map(([r, [i]]) => {
2470
+ const e = wn(n), t = e.$cmpMeta$, s = De("connectedCallback", t.$tagName$);
2471
+ e.$flags$ & 1 ? (co(n, e, t.$listeners$), vc(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && yc(n), t.$members$ && Object.entries(t.$members$).map(([r, [i]]) => {
2470
2472
  if (i & 31 && n.hasOwnProperty(r)) {
2471
2473
  const o = n[r];
2472
2474
  delete n[r], n[r] = o;
2473
2475
  }
2474
- }), bc(n, e, t)), s();
2476
+ }), mc(n, e, t)), s();
2475
2477
  }
2476
- }, xc = (n) => {
2478
+ }, yc = (n) => {
2477
2479
  const e = n["s-cr"] = ae.createComment("");
2478
2480
  e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
2479
- }, wc = (n) => {
2481
+ }, $c = (n) => {
2480
2482
  if ((j.$flags$ & 1) === 0) {
2481
- const e = _n(n);
2483
+ const e = wn(n);
2482
2484
  e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
2483
2485
  }
2484
- }, wo = (n, e) => {
2486
+ }, $o = (n, e) => {
2485
2487
  const t = {
2486
2488
  $flags$: e[0],
2487
2489
  $tagName$: e[1]
@@ -2490,13 +2492,13 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2490
2492
  const s = n.prototype.connectedCallback, r = n.prototype.disconnectedCallback;
2491
2493
  return Object.assign(n.prototype, {
2492
2494
  __registerHost() {
2493
- kc(this, t);
2495
+ xc(this, t);
2494
2496
  },
2495
2497
  connectedCallback() {
2496
- $c(this), s && s.call(this);
2498
+ bc(this), s && s.call(this);
2497
2499
  },
2498
2500
  disconnectedCallback() {
2499
- wc(this), r && r.call(this);
2501
+ $c(this), r && r.call(this);
2500
2502
  },
2501
2503
  __attachShadow() {
2502
2504
  this.attachShadow({
@@ -2504,18 +2506,18 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2504
2506
  delegatesFocus: !!(t.$flags$ & 16)
2505
2507
  });
2506
2508
  }
2507
- }), n.is = t.$tagName$, vc(n, t);
2508
- }, ko = /* @__PURE__ */ new WeakMap(), _n = (n) => ko.get(n), kc = (n, e) => {
2509
+ }), n.is = t.$tagName$, gc(n, t);
2510
+ }, xo = /* @__PURE__ */ new WeakMap(), wn = (n) => xo.get(n), xc = (n, e) => {
2509
2511
  const t = {
2510
2512
  $flags$: 0,
2511
2513
  $hostElement$: n,
2512
2514
  $cmpMeta$: e,
2513
2515
  $instanceValues$: /* @__PURE__ */ new Map()
2514
2516
  };
2515
- return ho(n, t, e.$listeners$), ko.set(n, t);
2516
- }, ii = (n, e) => e in n, Pt = (n, e) => (0, console.error)(n, e), ln = /* @__PURE__ */ new Map(), _c = [], oi = [], _o = [], Sc = (n, e) => (t) => {
2517
- n.push(t), ps || (ps = !0, e && j.$flags$ & 4 ? Ac(ds) : j.raf(ds));
2518
- }, ai = (n) => {
2517
+ return co(n, t, e.$listeners$), xo.set(n, t);
2518
+ }, ri = (n, e) => e in n, Pt = (n, e) => (0, console.error)(n, e), an = /* @__PURE__ */ new Map(), wc = [], ii = [], wo = [], kc = (n, e) => (t) => {
2519
+ n.push(t), us || (us = !0, e && j.$flags$ & 4 ? _c(hs) : j.raf(hs));
2520
+ }, oi = (n) => {
2519
2521
  for (let e = 0; e < n.length; e++)
2520
2522
  try {
2521
2523
  n[e](performance.now());
@@ -2523,9 +2525,9 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2523
2525
  Pt(t);
2524
2526
  }
2525
2527
  n.length = 0;
2526
- }, ds = () => {
2527
- ai(oi), ai(_o), (ps = oi.length > 0) && j.raf(ds);
2528
- }, Ac = (n) => Fl().then(n), Ec = /* @__PURE__ */ Sc(_o, !0), Tc = (n = {}) => {
2528
+ }, hs = () => {
2529
+ oi(ii), oi(wo), (us = ii.length > 0) && j.raf(hs);
2530
+ }, _c = (n) => Hl().then(n), Sc = /* @__PURE__ */ kc(wo, !0), Ac = (n = {}) => {
2529
2531
  const { content: e = "", title: t, attributes: s = [] } = n;
2530
2532
  let r = "", i = [
2531
2533
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
@@ -2533,54 +2535,54 @@ const kn = typeof window < "u" ? window : {}, ae = kn.document || { head: {} },
2533
2535
  ...s
2534
2536
  ];
2535
2537
  return t && (r = `<title>${t}</title>`), `<svg ${i.map((a) => `${a.name}="${a.value}"`).join(" ")}>${r}${e}</svg>`;
2536
- }, Cc = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
2537
- function Lc(n) {
2538
+ }, Ec = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
2539
+ function Tc(n) {
2538
2540
  return `${n.getFullYear()}.${n.getMonth() + 1}`;
2539
2541
  }
2540
- class Rc {
2542
+ class Cc {
2541
2543
  constructor(e) {
2542
- this.voca_component = e, this.voca_added = Lc(/* @__PURE__ */ new Date());
2544
+ this.voca_component = e, this.voca_added = Tc(/* @__PURE__ */ new Date());
2543
2545
  }
2544
2546
  }
2545
- const Oc = "telia-vst{display:none}", Ic = /* @__PURE__ */ wo(class extends uo {
2547
+ const Lc = "telia-vst{display:none}", Rc = /* @__PURE__ */ $o(class extends lo {
2546
2548
  constructor() {
2547
- super(), this.__registerHost(), this.vocaInternalUStats = ac(this, "vocaInternalUStats");
2549
+ super(), this.__registerHost(), this.vocaInternalUStats = ic(this, "vocaInternalUStats");
2548
2550
  }
2549
2551
  connectedCallback() {
2550
- this.vocaInternalUStats.emit(new Rc(this.dataTrackingId));
2552
+ this.vocaInternalUStats.emit(new Cc(this.dataTrackingId));
2551
2553
  }
2552
2554
  render() {
2553
- return Je(Ns, null);
2555
+ return Je(Is, null);
2554
2556
  }
2555
2557
  static get style() {
2556
- return Oc;
2558
+ return Lc;
2557
2559
  }
2558
2560
  }, [0, "telia-vst", {
2559
2561
  dataTrackingId: [1, "data-tracking-id"]
2560
2562
  }]);
2561
- function So() {
2563
+ function ko() {
2562
2564
  if (typeof customElements > "u")
2563
2565
  return;
2564
2566
  ["telia-vst"].forEach((e) => {
2565
2567
  switch (e) {
2566
2568
  case "telia-vst":
2567
- customElements.get(e) || customElements.define(e, Ic);
2569
+ customElements.get(e) || customElements.define(e, Rc);
2568
2570
  break;
2569
2571
  }
2570
2572
  });
2571
2573
  }
2572
- So();
2573
- function fs() {
2574
+ ko();
2575
+ function ps() {
2574
2576
  return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
2575
2577
  }
2576
- function Pc() {
2577
- if (typeof fs().vocadsIcons !== void 0)
2578
- return fs().vocadsIcons;
2578
+ function Oc() {
2579
+ if (typeof ps().vocadsIcons !== void 0)
2580
+ return ps().vocadsIcons;
2579
2581
  }
2580
- function Mc() {
2581
- return fs().vocadsIconsRegistered;
2582
+ function Pc() {
2583
+ return ps().vocadsIconsRegistered;
2582
2584
  }
2583
- const Nc = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Dc = /* @__PURE__ */ wo(class extends uo {
2585
+ const Ic = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Mc = /* @__PURE__ */ $o(class extends lo {
2584
2586
  constructor() {
2585
2587
  super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
2586
2588
  }
@@ -2592,8 +2594,8 @@ const Nc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
2592
2594
  getSvgString() {
2593
2595
  if (this.svg)
2594
2596
  return this.svg;
2595
- if (Mc() && this.name) {
2596
- const n = Pc();
2597
+ if (Pc() && this.name) {
2598
+ const n = Oc();
2597
2599
  return n[this.name] ? n[this.name].svg : "";
2598
2600
  }
2599
2601
  return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
@@ -2604,15 +2606,15 @@ const Nc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
2604
2606
  ...e,
2605
2607
  { name: "aria-hidden", value: "true" }
2606
2608
  ];
2607
- const t = Tc({
2608
- content: Cc(n),
2609
+ const t = Ac({
2610
+ content: Ec(n),
2609
2611
  attributes: e,
2610
2612
  title: this.allyTitle
2611
2613
  });
2612
- return Je(Ns, { class: `telia-icon telia-icon--${this.size}` }, Je("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), Je("telia-vst", { dataTrackingId: this.dataTrackingId }));
2614
+ return Je(Is, { class: `telia-icon telia-icon--${this.size}` }, Je("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), Je("telia-vst", { dataTrackingId: this.dataTrackingId }));
2613
2615
  }
2614
2616
  static get style() {
2615
- return Nc;
2617
+ return Ic;
2616
2618
  }
2617
2619
  }, [0, "telia-icon", {
2618
2620
  name: [1],
@@ -2621,27 +2623,27 @@ const Nc = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
2621
2623
  allyTitle: [1, "ally-title"],
2622
2624
  dataTestid: [1, "data-testid"]
2623
2625
  }]);
2624
- function Uc() {
2626
+ function Nc() {
2625
2627
  if (typeof customElements > "u")
2626
2628
  return;
2627
2629
  ["telia-icon", "telia-vst"].forEach((e) => {
2628
2630
  switch (e) {
2629
2631
  case "telia-icon":
2630
- customElements.get(e) || customElements.define(e, Dc);
2632
+ customElements.get(e) || customElements.define(e, Mc);
2631
2633
  break;
2632
2634
  case "telia-vst":
2633
- customElements.get(e) || So();
2635
+ customElements.get(e) || ko();
2634
2636
  break;
2635
2637
  }
2636
2638
  });
2637
2639
  }
2638
- Uc();
2640
+ Nc();
2639
2641
  /**
2640
2642
  * @license
2641
2643
  * Copyright 2017 Google LLC
2642
2644
  * SPDX-License-Identifier: BSD-3-Clause
2643
2645
  */
2644
- const zc = { attribute: !0, type: String, converter: nn, reflect: !1, hasChanged: Os }, Hc = (n = zc, e, t) => {
2646
+ const Dc = { attribute: !0, type: String, converter: tn, reflect: !1, hasChanged: Ls }, Uc = (n = Dc, e, t) => {
2645
2647
  const { kind: s, metadata: r } = t;
2646
2648
  let i = globalThis.litPropertyMetadata.get(r);
2647
2649
  if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), s === "setter" && ((n = Object.create(n)).wrapped = !0), i.set(t.name, n), s === "accessor") {
@@ -2663,7 +2665,7 @@ const zc = { attribute: !0, type: String, converter: nn, reflect: !1, hasChanged
2663
2665
  throw Error("Unsupported decorator location: " + s);
2664
2666
  };
2665
2667
  function C(n) {
2666
- return (e, t) => typeof t == "object" ? Hc(n, e, t) : ((s, r, i) => {
2668
+ return (e, t) => typeof t == "object" ? Uc(n, e, t) : ((s, r, i) => {
2667
2669
  const o = r.hasOwnProperty(i);
2668
2670
  return r.constructor.createProperty(i, s), o ? Object.getOwnPropertyDescriptor(r, i) : void 0;
2669
2671
  })(n, e, t);
@@ -2681,14 +2683,14 @@ function z(n) {
2681
2683
  * Copyright 2020 Google LLC
2682
2684
  * SPDX-License-Identifier: BSD-3-Clause
2683
2685
  */
2684
- const Bc = (n) => n.strings === void 0;
2686
+ const zc = (n) => n.strings === void 0;
2685
2687
  /**
2686
2688
  * @license
2687
2689
  * Copyright 2017 Google LLC
2688
2690
  * SPDX-License-Identifier: BSD-3-Clause
2689
2691
  */
2690
- const Sn = { ATTRIBUTE: 1, CHILD: 2 }, An = (n) => (...e) => ({ _$litDirective$: n, values: e });
2691
- let Us = class {
2692
+ const kn = { ATTRIBUTE: 1, CHILD: 2 }, _n = (n) => (...e) => ({ _$litDirective$: n, values: e });
2693
+ let Ns = class {
2692
2694
  constructor(e) {
2693
2695
  }
2694
2696
  get _$AU() {
@@ -2715,45 +2717,45 @@ const xt = (n, e) => {
2715
2717
  if (t === void 0) return !1;
2716
2718
  for (const r of t) (s = r._$AO) == null || s.call(r, e, !1), xt(r, e);
2717
2719
  return !0;
2718
- }, cn = (n) => {
2720
+ }, ln = (n) => {
2719
2721
  let e, t;
2720
2722
  do {
2721
2723
  if ((e = n._$AM) === void 0) break;
2722
2724
  t = e._$AN, t.delete(n), n = e;
2723
2725
  } while ((t == null ? void 0 : t.size) === 0);
2724
- }, Ao = (n) => {
2726
+ }, _o = (n) => {
2725
2727
  for (let e; e = n._$AM; n = e) {
2726
2728
  let t = e._$AN;
2727
2729
  if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
2728
2730
  else if (t.has(n)) break;
2729
- t.add(n), Gc(e);
2731
+ t.add(n), Fc(e);
2730
2732
  }
2731
2733
  };
2732
- function Fc(n) {
2733
- this._$AN !== void 0 ? (cn(this), this._$AM = n, Ao(this)) : this._$AM = n;
2734
+ function Hc(n) {
2735
+ this._$AN !== void 0 ? (ln(this), this._$AM = n, _o(this)) : this._$AM = n;
2734
2736
  }
2735
- function jc(n, e = !1, t = 0) {
2737
+ function Bc(n, e = !1, t = 0) {
2736
2738
  const s = this._$AH, r = this._$AN;
2737
- if (r !== void 0 && r.size !== 0) if (e) if (Array.isArray(s)) for (let i = t; i < s.length; i++) xt(s[i], !1), cn(s[i]);
2738
- else s != null && (xt(s, !1), cn(s));
2739
+ if (r !== void 0 && r.size !== 0) if (e) if (Array.isArray(s)) for (let i = t; i < s.length; i++) xt(s[i], !1), ln(s[i]);
2740
+ else s != null && (xt(s, !1), ln(s));
2739
2741
  else xt(this, n);
2740
2742
  }
2741
- const Gc = (n) => {
2742
- n.type == Sn.CHILD && (n._$AP ?? (n._$AP = jc), n._$AQ ?? (n._$AQ = Fc));
2743
+ const Fc = (n) => {
2744
+ n.type == kn.CHILD && (n._$AP ?? (n._$AP = Bc), n._$AQ ?? (n._$AQ = Hc));
2743
2745
  };
2744
- let Eo = class extends Us {
2746
+ let So = class extends Ns {
2745
2747
  constructor() {
2746
2748
  super(...arguments), this._$AN = void 0;
2747
2749
  }
2748
2750
  _$AT(e, t, s) {
2749
- super._$AT(e, t, s), Ao(this), this.isConnected = e._$AU;
2751
+ super._$AT(e, t, s), _o(this), this.isConnected = e._$AU;
2750
2752
  }
2751
2753
  _$AO(e, t = !0) {
2752
2754
  var s, r;
2753
- e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), t && (xt(this, e), cn(this));
2755
+ e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), t && (xt(this, e), ln(this));
2754
2756
  }
2755
2757
  setValue(e) {
2756
- if (Bc(this._$Ct)) this._$Ct._$AI(e, this);
2758
+ if (zc(this._$Ct)) this._$Ct._$AI(e, this);
2757
2759
  else {
2758
2760
  const t = [...this._$Ct._$AH];
2759
2761
  t[this._$Ci] = e, this._$Ct._$AI(t, this, 0);
@@ -2769,10 +2771,10 @@ let Eo = class extends Us {
2769
2771
  * Copyright 2020 Google LLC
2770
2772
  * SPDX-License-Identifier: BSD-3-Clause
2771
2773
  */
2772
- const ie = () => new Wc();
2773
- class Wc {
2774
+ const ie = () => new jc();
2775
+ class jc {
2774
2776
  }
2775
- const Yn = /* @__PURE__ */ new WeakMap(), oe = An(class extends Eo {
2777
+ const qn = /* @__PURE__ */ new WeakMap(), oe = _n(class extends So {
2776
2778
  render(n) {
2777
2779
  return x;
2778
2780
  }
@@ -2784,13 +2786,13 @@ const Yn = /* @__PURE__ */ new WeakMap(), oe = An(class extends Eo {
2784
2786
  rt(n) {
2785
2787
  if (this.isConnected || (n = void 0), typeof this.G == "function") {
2786
2788
  const e = this.ht ?? globalThis;
2787
- let t = Yn.get(e);
2788
- t === void 0 && (t = /* @__PURE__ */ new WeakMap(), Yn.set(e, t)), t.get(this.G) !== void 0 && this.G.call(this.ht, void 0), t.set(this.G, n), n !== void 0 && this.G.call(this.ht, n);
2789
+ let t = qn.get(e);
2790
+ t === void 0 && (t = /* @__PURE__ */ new WeakMap(), qn.set(e, t)), t.get(this.G) !== void 0 && this.G.call(this.ht, void 0), t.set(this.G, n), n !== void 0 && this.G.call(this.ht, n);
2789
2791
  } else this.G.value = n;
2790
2792
  }
2791
2793
  get lt() {
2792
2794
  var n, e;
2793
- return typeof this.G == "function" ? (n = Yn.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.G) : (e = this.G) == null ? void 0 : e.value;
2795
+ return typeof this.G == "function" ? (n = qn.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.G) : (e = this.G) == null ? void 0 : e.value;
2794
2796
  }
2795
2797
  disconnected() {
2796
2798
  this.lt === this.ct && this.rt(void 0);
@@ -2804,10 +2806,10 @@ const Yn = /* @__PURE__ */ new WeakMap(), oe = An(class extends Eo {
2804
2806
  * Copyright 2018 Google LLC
2805
2807
  * SPDX-License-Identifier: BSD-3-Clause
2806
2808
  */
2807
- const rt = An(class extends Us {
2809
+ const rt = _n(class extends Ns {
2808
2810
  constructor(n) {
2809
2811
  var e;
2810
- if (super(n), n.type !== Sn.ATTRIBUTE || n.name !== "class" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
2812
+ if (super(n), n.type !== kn.ATTRIBUTE || n.name !== "class" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
2811
2813
  }
2812
2814
  render(n) {
2813
2815
  return " " + Object.keys(n).filter((e) => n[e]).join(" ") + " ";
@@ -2828,12 +2830,12 @@ const rt = An(class extends Us {
2828
2830
  return _e;
2829
2831
  }
2830
2832
  });
2831
- var qc = Object.defineProperty, Zc = (n, e, t, s) => {
2833
+ var Gc = Object.defineProperty, Wc = (n, e, t, s) => {
2832
2834
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
2833
2835
  (o = n[i]) && (r = o(e, t, r) || r);
2834
- return r && qc(e, t, r), r;
2836
+ return r && Gc(e, t, r), r;
2835
2837
  };
2836
- const Xs = class Xs extends M {
2838
+ const Ys = class Ys extends M {
2837
2839
  constructor() {
2838
2840
  super(...arguments), this.anchor = "BottomRight";
2839
2841
  }
@@ -2845,7 +2847,7 @@ const Xs = class Xs extends M {
2845
2847
  return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), x;
2846
2848
  }
2847
2849
  };
2848
- Xs.styles = [
2850
+ Ys.styles = [
2849
2851
  Y`
2850
2852
  :host {
2851
2853
  position: fixed;
@@ -2864,38 +2866,38 @@ Xs.styles = [
2864
2866
  }
2865
2867
  `
2866
2868
  ];
2867
- let un = Xs;
2868
- Zc([
2869
+ let cn = Ys;
2870
+ Wc([
2869
2871
  C({ attribute: !0 })
2870
- ], un.prototype, "anchor");
2871
- const Yc = /* @__PURE__ */ new WeakMap();
2872
- let li = 0;
2873
- const Xn = /* @__PURE__ */ new Map(), ci = /* @__PURE__ */ new WeakSet(), ui = () => new Promise((n) => requestAnimationFrame(n)), Xc = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Kc = [{ opacity: 0 }], hi = [{ opacity: 0 }, { opacity: 1 }], pi = (n, e) => {
2872
+ ], cn.prototype, "anchor");
2873
+ const qc = /* @__PURE__ */ new WeakMap();
2874
+ let ai = 0;
2875
+ const Zn = /* @__PURE__ */ new Map(), li = /* @__PURE__ */ new WeakSet(), ci = () => new Promise((n) => requestAnimationFrame(n)), Zc = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Yc = [{ opacity: 0 }], ui = [{ opacity: 0 }, { opacity: 1 }], hi = (n, e) => {
2874
2876
  const t = n - e;
2875
2877
  return t === 0 ? void 0 : t;
2876
- }, di = (n, e) => {
2878
+ }, pi = (n, e) => {
2877
2879
  const t = n / e;
2878
2880
  return t === 1 ? void 0 : t;
2879
- }, Kn = { left: (n, e) => {
2880
- const t = pi(n, e);
2881
+ }, Yn = { left: (n, e) => {
2882
+ const t = hi(n, e);
2881
2883
  return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateX(${t}px)` };
2882
2884
  }, top: (n, e) => {
2883
- const t = pi(n, e);
2885
+ const t = hi(n, e);
2884
2886
  return { value: t, transform: t == null || isNaN(t) ? void 0 : `translateY(${t}px)` };
2885
2887
  }, width: (n, e) => {
2886
2888
  let t;
2887
2889
  e === 0 && (e = 1, t = { width: "1px" });
2888
- const s = di(n, e);
2890
+ const s = pi(n, e);
2889
2891
  return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
2890
2892
  }, height: (n, e) => {
2891
2893
  let t;
2892
2894
  e === 0 && (e = 1, t = { height: "1px" });
2893
- const s = di(n, e);
2895
+ const s = pi(n, e);
2894
2896
  return { value: s, overrideFrom: t, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
2895
- } }, Vc = { duration: 333, easing: "ease-in-out" }, Qc = ["left", "top", "width", "height", "opacity", "color", "background"], fi = /* @__PURE__ */ new WeakMap();
2896
- class Jc extends Eo {
2897
+ } }, Xc = { duration: 333, easing: "ease-in-out" }, Kc = ["left", "top", "width", "height", "opacity", "color", "background"], di = /* @__PURE__ */ new WeakMap();
2898
+ class Vc extends So {
2897
2899
  constructor(e) {
2898
- if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === Sn.CHILD) throw Error("The `animate` directive must be used in attribute position.");
2900
+ if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === kn.CHILD) throw Error("The `animate` directive must be used in attribute position.");
2899
2901
  this.createFinished();
2900
2902
  }
2901
2903
  createFinished() {
@@ -2912,7 +2914,7 @@ class Jc extends Eo {
2912
2914
  return x;
2913
2915
  }
2914
2916
  getController() {
2915
- return Yc.get(this.u);
2917
+ return qc.get(this.u);
2916
2918
  }
2917
2919
  isDisabled() {
2918
2920
  var e;
@@ -2921,17 +2923,17 @@ class Jc extends Eo {
2921
2923
  update(e, [t]) {
2922
2924
  var r;
2923
2925
  const s = this.u === void 0;
2924
- return s && (this.u = (r = e.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((i) => this.t = !0), this.element = e.element, fi.set(this.element, this)), this.optionsOrCallback = t, (s || typeof t != "function") && this.p(t), this.render(t);
2926
+ return s && (this.u = (r = e.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((i) => this.t = !0), this.element = e.element, di.set(this.element, this)), this.optionsOrCallback = t, (s || typeof t != "function") && this.p(t), this.render(t);
2925
2927
  }
2926
2928
  p(e) {
2927
2929
  e = e ?? {};
2928
2930
  const t = this.getController();
2929
- t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = Qc), this.options = e;
2931
+ t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = Kc), this.options = e;
2930
2932
  }
2931
2933
  m() {
2932
2934
  const e = {}, t = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
2933
2935
  return this.options.properties.forEach((r) => {
2934
- const i = t[r] ?? (Kn[r] ? void 0 : s[r]), o = Number(i);
2936
+ const i = t[r] ?? (Yn[r] ? void 0 : s[r]), o = Number(i);
2935
2937
  e[r] = isNaN(o) ? i + "" : o;
2936
2938
  }), e;
2937
2939
  }
@@ -2950,17 +2952,17 @@ class Jc extends Eo {
2950
2952
  async hostUpdated() {
2951
2953
  if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
2952
2954
  let e;
2953
- this.prepare(), await ui;
2955
+ this.prepare(), await ci;
2954
2956
  const t = this.O(), s = this.j(this.options.keyframeOptions, t), r = this.m();
2955
2957
  if (this.A !== void 0) {
2956
2958
  const { from: i, to: o } = this.N(this.A, r, t);
2957
2959
  this.log("measured", [this.A, r, i, o]), e = this.calculateKeyframes(i, o);
2958
2960
  } else {
2959
- const i = Xn.get(this.options.inId);
2961
+ const i = Zn.get(this.options.inId);
2960
2962
  if (i) {
2961
- Xn.delete(this.options.inId);
2963
+ Zn.delete(this.options.inId);
2962
2964
  const { from: o, to: a } = this.N(i, r, t);
2963
- e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, li++, e.forEach((l) => l.zIndex = li);
2965
+ e = this.calculateKeyframes(o, a), e = this.options.in ? [{ ...this.options.in[0], ...e[0] }, ...this.options.in.slice(1), e[1]] : e, ai++, e.forEach((l) => l.zIndex = ai);
2964
2966
  } else this.options.in && (e = [...this.options.in, {}]);
2965
2967
  }
2966
2968
  this.animate(e, s);
@@ -2976,8 +2978,8 @@ class Jc extends Eo {
2976
2978
  }
2977
2979
  async disconnected() {
2978
2980
  var t;
2979
- if (!this.h || (this.options.id !== void 0 && Xn.set(this.options.id, this.A), this.options.out === void 0)) return;
2980
- if (this.prepare(), await ui(), (t = this.i) == null ? void 0 : t.isConnected) {
2981
+ if (!this.h || (this.options.id !== void 0 && Zn.set(this.options.id, this.A), this.options.out === void 0)) return;
2982
+ if (this.prepare(), await ci(), (t = this.i) == null ? void 0 : t.isConnected) {
2981
2983
  const s = this.o && this.o.parentNode === this.i ? this.o : null;
2982
2984
  if (this.i.insertBefore(this.element, s), this.options.stabilizeOut) {
2983
2985
  const r = this.m();
@@ -3003,19 +3005,19 @@ class Jc extends Eo {
3003
3005
  O() {
3004
3006
  const e = [];
3005
3007
  for (let t = this.element.parentNode; t; t = t == null ? void 0 : t.parentNode) {
3006
- const s = fi.get(t);
3008
+ const s = di.get(t);
3007
3009
  s && !s.isDisabled() && s && e.push(s);
3008
3010
  }
3009
3011
  return e;
3010
3012
  }
3011
3013
  get isHostRendered() {
3012
- const e = ci.has(this.u);
3014
+ const e = li.has(this.u);
3013
3015
  return e || this.u.updateComplete.then(() => {
3014
- ci.add(this.u);
3016
+ li.add(this.u);
3015
3017
  }), e;
3016
3018
  }
3017
3019
  j(e, t = this.O()) {
3018
- const s = { ...Vc };
3020
+ const s = { ...Xc };
3019
3021
  return t.forEach((r) => Object.assign(s, r.options.keyframeOptions)), Object.assign(s, e), s;
3020
3022
  }
3021
3023
  N(e, t, s) {
@@ -3032,8 +3034,8 @@ class Jc extends Eo {
3032
3034
  const a = {};
3033
3035
  for (const l in t) {
3034
3036
  const c = e[l], u = t[l];
3035
- if (l in Kn) {
3036
- const d = Kn[l];
3037
+ if (l in Yn) {
3038
+ const d = Yn[l];
3037
3039
  if (c === void 0 || u === void 0) continue;
3038
3040
  const p = d(c, u);
3039
3041
  p.transform !== void 0 && (a[l] = p.value, o = !0, r.transform = `${r.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(r, p.overrideFrom));
@@ -3064,9 +3066,9 @@ class Jc extends Eo {
3064
3066
  this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
3065
3067
  }
3066
3068
  }
3067
- const gs = An(Jc), de = (n, e, t) => {
3069
+ const ds = _n(Vc), de = (n, e, t) => {
3068
3070
  n && t.style.setProperty(e, n);
3069
- }, To = (n, e) => {
3071
+ }, Ao = (n, e) => {
3070
3072
  var t, s, r, i, o, a, l, c, u;
3071
3073
  de((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), de(
3072
3074
  (s = n.colors) == null ? void 0 : s.textOnPrimaryBackground,
@@ -3098,12 +3100,12 @@ const gs = An(Jc), de = (n, e, t) => {
3098
3100
  e
3099
3101
  ), de((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
3100
3102
  };
3101
- var eu = Object.defineProperty, Mt = (n, e, t, s) => {
3103
+ var Qc = Object.defineProperty, It = (n, e, t, s) => {
3102
3104
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
3103
3105
  (o = n[i]) && (r = o(e, t, r) || r);
3104
- return r && eu(e, t, r), r;
3106
+ return r && Qc(e, t, r), r;
3105
3107
  };
3106
- const Ks = class Ks extends M {
3108
+ const Xs = class Xs extends M {
3107
3109
  constructor() {
3108
3110
  super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ie(), this.widgetActive$ = new te(!1), this.componentIsDestroyed$ = new U();
3109
3111
  }
@@ -3140,7 +3142,7 @@ const Ks = class Ks extends M {
3140
3142
  }
3141
3143
  _applyBranding() {
3142
3144
  var e;
3143
- (e = this.application) != null && e.settings && To(this.application.settings.branding, this);
3145
+ (e = this.application) != null && e.settings && Ao(this.application.settings.branding, this);
3144
3146
  }
3145
3147
  async _renderSymbol() {
3146
3148
  var a, l, c;
@@ -3150,7 +3152,7 @@ const Ks = class Ks extends M {
3150
3152
  const s = (c = this.application) == null ? void 0 : c.triggerIcon;
3151
3153
  if (!s)
3152
3154
  return x;
3153
- const r = async (u) => zl, { type: i, content: o } = s;
3155
+ const r = async (u) => Dl, { type: i, content: o } = s;
3154
3156
  switch (i) {
3155
3157
  case "Telia": {
3156
3158
  const u = await r();
@@ -3178,7 +3180,7 @@ const Ks = class Ks extends M {
3178
3180
  this.triggerVisible = !0;
3179
3181
  }
3180
3182
  render() {
3181
- var e, t, s, r;
3183
+ var e, t, s, r, i, o, a;
3182
3184
  return w`<div
3183
3185
  class=${rt({
3184
3186
  "trigger-container": !0,
@@ -3188,22 +3190,24 @@ const Ks = class Ks extends M {
3188
3190
  >
3189
3191
  ${!this.active && ((r = (s = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : s.other) != null && r.showButtonLabel) ? w`
3190
3192
  <button
3191
- label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
3193
+ type="button"
3194
+ aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
3192
3195
  class="trigger-label"
3193
3196
  @click=${this.toggleActive}
3194
- ${gs({
3197
+ ${ds({
3195
3198
  keyframeOptions: {},
3196
- in: Xc,
3199
+ in: Zc,
3197
3200
  stabilizeOut: !0,
3198
3201
  skipInitial: !1
3199
3202
  })}
3200
3203
  >
3201
- ${this.application.settings.branding.other.buttonLabelText}
3204
+ ${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}
3202
3205
  </button>
3203
3206
  ` : x}
3204
3207
 
3205
3208
  <button
3206
- label="Widget trigger"
3209
+ type="button"
3210
+ aria-label="${((a = (o = (i = this.application) == null ? void 0 : i.settings) == null ? void 0 : o.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
3207
3211
  class=${rt({
3208
3212
  trigger: !0,
3209
3213
  active: this.active,
@@ -3243,7 +3247,7 @@ const Ks = class Ks extends M {
3243
3247
  </div>`;
3244
3248
  }
3245
3249
  };
3246
- Ks.styles = [
3250
+ Xs.styles = [
3247
3251
  Y`
3248
3252
  :host {
3249
3253
  --voca-rem-multiplier: 0.625;
@@ -3375,28 +3379,28 @@ Ks.styles = [
3375
3379
  }
3376
3380
  `
3377
3381
  ];
3378
- let ve = Ks;
3379
- Mt([
3382
+ let ve = Xs;
3383
+ It([
3380
3384
  C({ attribute: !1 })
3381
3385
  ], ve.prototype, "application");
3382
- Mt([
3386
+ It([
3383
3387
  z()
3384
3388
  ], ve.prototype, "active");
3385
- Mt([
3389
+ It([
3386
3390
  z()
3387
3391
  ], ve.prototype, "triggerVisible");
3388
- Mt([
3392
+ It([
3389
3393
  z()
3390
3394
  ], ve.prototype, "loaded");
3391
- Mt([
3395
+ It([
3392
3396
  z()
3393
3397
  ], ve.prototype, "icon");
3394
- var tu = Object.defineProperty, Oe = (n, e, t, s) => {
3398
+ var Jc = Object.defineProperty, Oe = (n, e, t, s) => {
3395
3399
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
3396
3400
  (o = n[i]) && (r = o(e, t, r) || r);
3397
- return r && tu(e, t, r), r;
3401
+ return r && Jc(e, t, r), r;
3398
3402
  };
3399
- const Co = (n) => {
3403
+ const Eo = (n) => {
3400
3404
  const t = class t extends n {
3401
3405
  constructor() {
3402
3406
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -3452,37 +3456,37 @@ const Co = (n) => {
3452
3456
  ], e.prototype, "application"), Oe([
3453
3457
  C({ attribute: !1 })
3454
3458
  ], e.prototype, "parent"), e;
3455
- }, Vs = class Vs extends Co(M) {
3459
+ }, Ks = class Ks extends Eo(M) {
3456
3460
  render() {
3457
3461
  return w`Non resolved component`;
3458
3462
  }
3459
3463
  };
3460
- Vs.styles = [
3464
+ Ks.styles = [
3461
3465
  Y`
3462
3466
  :host {
3463
3467
  display: block;
3464
3468
  }
3465
3469
  `
3466
3470
  ];
3467
- let ms = Vs;
3471
+ let fs = Ks;
3468
3472
  /**
3469
3473
  * @license
3470
3474
  * Copyright 2021 Google LLC
3471
3475
  * SPDX-License-Identifier: BSD-3-Clause
3472
3476
  */
3473
- function* nu(n, e) {
3477
+ function* eu(n, e) {
3474
3478
  if (n !== void 0) {
3475
3479
  let t = 0;
3476
3480
  for (const s of n) yield e(s, t++);
3477
3481
  }
3478
3482
  }
3479
- var At = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(At || {});
3483
+ var Ds = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(Ds || {});
3480
3484
  /**
3481
3485
  * @license
3482
3486
  * Copyright 2021 Google LLC
3483
3487
  * SPDX-License-Identifier: BSD-3-Clause
3484
3488
  */
3485
- let su = class extends Event {
3489
+ let tu = class extends Event {
3486
3490
  constructor(e, t, s, r) {
3487
3491
  super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t, this.callback = s, this.subscribe = r ?? !1;
3488
3492
  }
@@ -3497,7 +3501,7 @@ let su = class extends Event {
3497
3501
  * Copyright 2021 Google LLC
3498
3502
  * SPDX-License-Identifier: BSD-3-Clause
3499
3503
  */
3500
- class ru {
3504
+ class nu {
3501
3505
  get value() {
3502
3506
  return this.o;
3503
3507
  }
@@ -3530,12 +3534,12 @@ class ru {
3530
3534
  * Copyright 2021 Google LLC
3531
3535
  * SPDX-License-Identifier: BSD-3-Clause
3532
3536
  */
3533
- let iu = class extends Event {
3537
+ let su = class extends Event {
3534
3538
  constructor(e, t) {
3535
3539
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = e, this.contextTarget = t;
3536
3540
  }
3537
3541
  };
3538
- class gi extends ru {
3542
+ class fi extends nu {
3539
3543
  constructor(e, t, s) {
3540
3544
  var r, i;
3541
3545
  super(t.context !== void 0 ? t.initialValue : s), this.onContextRequest = (o) => {
@@ -3545,7 +3549,7 @@ class gi extends ru {
3545
3549
  }, this.onProviderRequest = (o) => {
3546
3550
  if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
3547
3551
  const a = /* @__PURE__ */ new Set();
3548
- for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new su(this.context, c, l, !0)));
3552
+ for (const [l, { consumerHost: c }] of this.subscriptions) a.has(l) || (a.add(l), c.dispatchEvent(new tu(this.context, c, l, !0)));
3549
3553
  o.stopPropagation();
3550
3554
  }, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (i = (r = this.host).addController) == null || i.call(r, this);
3551
3555
  }
@@ -3553,7 +3557,7 @@ class gi extends ru {
3553
3557
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
3554
3558
  }
3555
3559
  hostConnected() {
3556
- this.host.dispatchEvent(new iu(this.context, this.host));
3560
+ this.host.dispatchEvent(new su(this.context, this.host));
3557
3561
  }
3558
3562
  }
3559
3563
  /**
@@ -3561,7 +3565,7 @@ class gi extends ru {
3561
3565
  * Copyright 2017 Google LLC
3562
3566
  * SPDX-License-Identifier: BSD-3-Clause
3563
3567
  */
3564
- function ou({ context: n }) {
3568
+ function ru({ context: n }) {
3565
3569
  return (e, t) => {
3566
3570
  const s = /* @__PURE__ */ new WeakMap();
3567
3571
  if (typeof t == "object") return { get() {
@@ -3569,11 +3573,11 @@ function ou({ context: n }) {
3569
3573
  }, set(r) {
3570
3574
  return s.get(this).setValue(r), e.set.call(this, r);
3571
3575
  }, init(r) {
3572
- return s.set(this, new gi(this, { context: n, initialValue: r })), r;
3576
+ return s.set(this, new fi(this, { context: n, initialValue: r })), r;
3573
3577
  } };
3574
3578
  {
3575
3579
  e.constructor.addInitializer((o) => {
3576
- s.set(o, new gi(o, { context: n }));
3580
+ s.set(o, new fi(o, { context: n }));
3577
3581
  });
3578
3582
  const r = Object.getOwnPropertyDescriptor(e, t);
3579
3583
  let i;
@@ -3594,12 +3598,12 @@ function ou({ context: n }) {
3594
3598
  }
3595
3599
  };
3596
3600
  }
3597
- var au = Object.defineProperty, Lo = (n, e, t, s) => {
3601
+ var iu = Object.defineProperty, To = (n, e, t, s) => {
3598
3602
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
3599
3603
  (o = n[i]) && (r = o(e, t, r) || r);
3600
- return r && au(e, t, r), r;
3604
+ return r && iu(e, t, r), r;
3601
3605
  };
3602
- const lu = "application", Qs = class Qs extends M {
3606
+ const ou = "application", Vs = class Vs extends M {
3603
3607
  constructor() {
3604
3608
  super(...arguments), this.nodes = [], this.wrapperRef = ie(), this.fullscreen = !1, this.isReady = new te(!1);
3605
3609
  }
@@ -3610,7 +3614,7 @@ const lu = "application", Qs = class Qs extends M {
3610
3614
  if (!this.wrapperRef.value)
3611
3615
  return;
3612
3616
  const e = this.application.settings;
3613
- e != null && e.branding && To(e.branding, this.wrapperRef.value);
3617
+ e != null && e.branding && Ao(e.branding, this.wrapperRef.value);
3614
3618
  }
3615
3619
  applyStyles() {
3616
3620
  if (!this.wrapperRef.value)
@@ -3626,12 +3630,12 @@ const lu = "application", Qs = class Qs extends M {
3626
3630
  render() {
3627
3631
  var s, r;
3628
3632
  const e = this.application.settings.components.conversation;
3629
- return ((r = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === At.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.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), w`<div class="widget-container" ${oe(this.wrapperRef)}>
3630
- ${nu(this.nodes, (i) => i)}
3633
+ return ((r = (s = e == null ? void 0 : e.properties) == null ? void 0 : s.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === Ds.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.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), w`<div class="widget-container" ${oe(this.wrapperRef)}>
3634
+ ${eu(this.nodes, (i) => i)}
3631
3635
  </div>`;
3632
3636
  }
3633
3637
  };
3634
- Qs.styles = Y`
3638
+ Vs.styles = Y`
3635
3639
  :host {
3636
3640
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
3637
3641
  --spacing-xs: 0.2rem;
@@ -3797,59 +3801,20 @@ Qs.styles = Y`
3797
3801
  animation: none;
3798
3802
  }
3799
3803
  `;
3800
- let Et = Qs;
3801
- Lo([
3804
+ let At = Vs;
3805
+ To([
3802
3806
  C({ attribute: !0 })
3803
- ], Et.prototype, "fullscreen");
3804
- Lo([
3807
+ ], At.prototype, "fullscreen");
3808
+ To([
3805
3809
  C({ attribute: !1 }),
3806
- ou({ context: lu })
3807
- ], Et.prototype, "application");
3808
- const vn = class vn {
3809
- // TODO:
3810
- // private static endpoint = 'http://localhost:5299/api'; // TODO:
3811
- constructor(e = vn.endpoint) {
3812
- this._endpoint = e;
3813
- }
3814
- async getSite(e) {
3815
- const s = await (await fetch(e)).json();
3816
- return s ? {
3817
- id: s.id,
3818
- triggers: s.triggers || [],
3819
- apps: (s.widgets || []).map((r) => {
3820
- let i = At.Trigger;
3821
- r.renderStrategy.toLowerCase() === "inline" && (i = At.Inline);
3822
- const o = r.widgetId ? r.widgetId : r.id, a = typeof r.autoActivate == "boolean" ? r.autoActivate : !1, l = typeof r.anchor == "string" ? r.anchor : "BottomRight", c = typeof r.triggerIcon == "string" ? r.triggerIcon : "question";
3823
- return {
3824
- id: o,
3825
- widgetId: o,
3826
- renderStrategy: i,
3827
- autoActivate: a,
3828
- anchor: l,
3829
- triggerIcon: {
3830
- type: "Telia",
3831
- content: c
3832
- }
3833
- };
3834
- })
3835
- } : null;
3836
- }
3837
- async getWidget(e) {
3838
- const s = await (await fetch(`${this._endpoint}/widget/${e}`)).json();
3839
- return s ? {
3840
- name: s.name,
3841
- config: JSON.parse(s.configuration)
3842
- } : null;
3843
- }
3844
- };
3845
- vn.endpoint = "https://widgets.ace.teliacompany.net/api";
3846
- let mi = vn;
3847
- var cu = Object.defineProperty, zs = (n, e, t, s) => {
3810
+ ru({ context: ou })
3811
+ ], At.prototype, "application");
3812
+ var au = Object.defineProperty, Us = (n, e, t, s) => {
3848
3813
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
3849
3814
  (o = n[i]) && (r = o(e, t, r) || r);
3850
- return r && cu(e, t, r), r;
3815
+ return r && au(e, t, r), r;
3851
3816
  };
3852
- const Js = class Js extends M {
3817
+ const Qs = class Qs extends M {
3853
3818
  constructor() {
3854
3819
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
3855
3820
  }
@@ -3874,36 +3839,36 @@ const Js = class Js extends M {
3874
3839
  render() {
3875
3840
  if (!this.widget || this.status !== "activated")
3876
3841
  return x;
3877
- if (this.widget.renderStrategy === At.Trigger) {
3842
+ if (this.widget.renderStrategy === Ds.Trigger) {
3878
3843
  const e = new ve();
3879
3844
  return e.application = this.widget, e;
3880
3845
  }
3881
3846
  return this.widget.render();
3882
3847
  }
3883
3848
  };
3884
- Js.styles = [
3849
+ Qs.styles = [
3885
3850
  Y`
3886
3851
  :host {
3887
3852
  display: block;
3888
3853
  }
3889
3854
  `
3890
3855
  ];
3891
- let it = Js;
3892
- zs([
3856
+ let it = Qs;
3857
+ Us([
3893
3858
  C({ attribute: !0 })
3894
3859
  ], it.prototype, "name");
3895
- zs([
3860
+ Us([
3896
3861
  z()
3897
3862
  ], it.prototype, "widget");
3898
- zs([
3863
+ Us([
3899
3864
  z()
3900
3865
  ], it.prototype, "status");
3901
- customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", un);
3866
+ customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", cn);
3902
3867
  customElements.get("ace-trigger") || customElements.define("ace-trigger", ve);
3903
- customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ms);
3904
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Et);
3868
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", fs);
3869
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", At);
3905
3870
  customElements.get("ace-widget") || customElements.define("ace-widget", it);
3906
- class uu {
3871
+ class lu {
3907
3872
  constructor(e) {
3908
3873
  this._message = null, this._host = e, e.addController(this);
3909
3874
  }
@@ -3919,19 +3884,19 @@ class uu {
3919
3884
  return !!this.message;
3920
3885
  }
3921
3886
  }
3922
- class vi {
3887
+ class gi {
3923
3888
  constructor(e, t, s, r, i) {
3924
3889
  this.id = e, this.providerKey = t, this.providerOptions = s, this.component = i, this.provider$ = new te(null), this.entries$ = new te([]), this.removeEntryAction$ = new U(), this.kill$ = new U(), this.isTyping$ = new te(!1), this.data$ = new te({}), this.complete$ = this.provider$.pipe(
3925
- Qe((l) => l ? l.onComplete() : Ot)
3890
+ Qe((l) => l ? l.onComplete() : Rt)
3926
3891
  );
3927
3892
  const o = this._getProviderFactory(t);
3928
3893
  if (!o)
3929
3894
  throw new Error(`No provider with key "${t}" was found.`);
3930
3895
  this.data$.next(r);
3931
3896
  const a = o(this.component);
3932
- this.provider$.next(a), a.actions().pipe(ls(this.kill$)).subscribe((l) => {
3897
+ this.provider$.next(a), a.actions().pipe(os(this.kill$)).subscribe((l) => {
3933
3898
  this.write(l);
3934
- }), a.isTyping().pipe(ls(this.kill$)).subscribe((l) => {
3899
+ }), a.isTyping().pipe(os(this.kill$)).subscribe((l) => {
3935
3900
  this.isTyping$.next(l);
3936
3901
  });
3937
3902
  }
@@ -3959,14 +3924,14 @@ class vi {
3959
3924
  };
3960
3925
  }
3961
3926
  write(e) {
3962
- this._addEntryRemoveHandler(e), this.entries$.pipe(as(1)).subscribe((t) => {
3927
+ this._addEntryRemoveHandler(e), this.entries$.pipe(is(1)).subscribe((t) => {
3963
3928
  this.entries$.next([...t, e]);
3964
3929
  });
3965
3930
  }
3966
3931
  _addEntryRemoveHandler(e) {
3967
3932
  e.remove$.pipe(
3968
3933
  Qe(() => this.entries$),
3969
- as(1)
3934
+ is(1)
3970
3935
  ).subscribe((t) => {
3971
3936
  this.removeEntryAction$.next(e), this.entries$.next(t.filter((s) => s !== e));
3972
3937
  });
@@ -3975,9 +3940,9 @@ class vi {
3975
3940
  return this.component.platform.registeredProviders.get(e);
3976
3941
  }
3977
3942
  }
3978
- class hu {
3943
+ class cu {
3979
3944
  constructor(e) {
3980
- this.component = e, this.currentSession$ = new te(null), this.sessions = [], this.storage = null, tn(e, "handover").subscribe((t) => {
3945
+ this.component = e, this.currentSession$ = new te(null), this.sessions = [], this.storage = null, en(e, "handover").subscribe((t) => {
3981
3946
  const s = this._createNewSession(
3982
3947
  t.detail.providerKey,
3983
3948
  t.detail.providerOptions
@@ -4020,7 +3985,7 @@ class hu {
4020
3985
  );
4021
3986
  return e ? {
4022
3987
  sessions: e.sessions.map(
4023
- (t) => new vi(
3988
+ (t) => new gi(
4024
3989
  t.id,
4025
3990
  t.providerKey,
4026
3991
  t.providerOptions,
@@ -4057,8 +4022,8 @@ class hu {
4057
4022
  this.storage.set("conversation", t);
4058
4023
  }
4059
4024
  _createNewSession(e, t = {}) {
4060
- const s = this._getStoredSessions(), r = new vi(
4061
- eo(),
4025
+ const s = this._getStoredSessions(), r = new gi(
4026
+ Qi(),
4062
4027
  e,
4063
4028
  t,
4064
4029
  {},
@@ -4073,12 +4038,12 @@ class hu {
4073
4038
  return this.component.properties.providers[0];
4074
4039
  }
4075
4040
  }
4076
- class pu {
4041
+ class uu {
4077
4042
  constructor(e, t) {
4078
- this.state$ = e, this.component = t, this.entries$ = new te([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new hu(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
4043
+ this.state$ = e, this.component = t, this.entries$ = new te([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new cu(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
4079
4044
  Qe((s) => s ? s.provider$.pipe(
4080
- Qe((r) => r ? r.isTyping() : os(!1))
4081
- ) : os(!1))
4045
+ Qe((r) => r ? r.isTyping() : rs(!1))
4046
+ ) : rs(!1))
4082
4047
  ), e.subscribe((s) => {
4083
4048
  switch (s) {
4084
4049
  case "init":
@@ -4104,16 +4069,16 @@ class pu {
4104
4069
  this.session$.pipe(
4105
4070
  Qe((e) => {
4106
4071
  if (!e)
4107
- return Ot;
4108
- const t = e.removeEntryAction$.pipe(cs(this.entries$)).pipe(
4109
- en(([r, i]) => i.filter((o) => o.id !== r.id))
4072
+ return Rt;
4073
+ const t = e.removeEntryAction$.pipe(as(this.entries$)).pipe(
4074
+ Jt(([r, i]) => i.filter((o) => o.id !== r.id))
4110
4075
  ), s = e.entries().pipe(
4111
- en((r) => {
4076
+ Jt((r) => {
4112
4077
  const i = this.entries$.value, o = r.filter((a) => i.findIndex((l) => l.id === a.id) === -1);
4113
4078
  return [...i, ...o];
4114
4079
  })
4115
4080
  );
4116
- return ll(t, s);
4081
+ return ol(t, s);
4117
4082
  })
4118
4083
  ).subscribe((e) => {
4119
4084
  this.entries$.next(e);
@@ -4124,12 +4089,12 @@ class pu {
4124
4089
  (e = this.sessionService) == null || e.startSession();
4125
4090
  }
4126
4091
  }
4127
- var du = Object.defineProperty, fu = (n, e, t, s) => {
4092
+ var hu = Object.defineProperty, pu = (n, e, t, s) => {
4128
4093
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
4129
4094
  (o = n[i]) && (r = o(e, t, r) || r);
4130
- return r && du(e, t, r), r;
4095
+ return r && hu(e, t, r), r;
4131
4096
  };
4132
- const er = class er extends M {
4097
+ const Js = class Js extends M {
4133
4098
  connectedCallback() {
4134
4099
  var e;
4135
4100
  super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
@@ -4151,13 +4116,13 @@ const er = class er extends M {
4151
4116
  }
4152
4117
  _renderDeliveryStatus(e) {
4153
4118
  return e === "delivered" ? w`<telia-icon
4154
- svg=${Ml.svg}
4119
+ svg=${Pl.svg}
4155
4120
  size="sm"
4156
4121
  ></telia-icon>` : e === "failed" ? w`<telia-icon
4157
- svg=${Pl.svg}
4122
+ svg=${Ol.svg}
4158
4123
  size="sm"
4159
4124
  title="Message could not be delivered"
4160
- ></telia-icon>` : w`<telia-icon svg=${Nl.svg} size="sm"></telia-icon>`;
4125
+ ></telia-icon>` : w`<telia-icon svg=${Il.svg} size="sm"></telia-icon>`;
4161
4126
  }
4162
4127
  _dispatchEntryAction(e) {
4163
4128
  this.entry.actions$.next(e.detail);
@@ -4243,7 +4208,7 @@ const er = class er extends M {
4243
4208
  }
4244
4209
  }
4245
4210
  };
4246
- er.styles = [
4211
+ Js.styles = [
4247
4212
  Y`
4248
4213
  :host {
4249
4214
  box-sizing: border-box;
@@ -4366,16 +4331,16 @@ er.styles = [
4366
4331
  }
4367
4332
  `
4368
4333
  ];
4369
- let hn = er;
4370
- fu([
4334
+ let un = Js;
4335
+ pu([
4371
4336
  C({ attribute: !1 })
4372
- ], hn.prototype, "entry");
4373
- var gu = Object.defineProperty, Ro = (n, e, t, s) => {
4337
+ ], un.prototype, "entry");
4338
+ var du = Object.defineProperty, Co = (n, e, t, s) => {
4374
4339
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
4375
4340
  (o = n[i]) && (r = o(e, t, r) || r);
4376
- return r && gu(e, t, r), r;
4341
+ return r && du(e, t, r), r;
4377
4342
  };
4378
- const tr = class tr extends M {
4343
+ const er = class er extends M {
4379
4344
  constructor() {
4380
4345
  super(...arguments), this.entries = [], this.loading = !0;
4381
4346
  }
@@ -4389,9 +4354,9 @@ const tr = class tr extends M {
4389
4354
  (e) => w`<div class="conversation-entry" tabindex="-1">
4390
4355
  <conversation-entry
4391
4356
  .entry=${e}
4392
- ${gs({
4357
+ ${ds({
4393
4358
  keyframeOptions: {},
4394
- in: hi,
4359
+ in: ui,
4395
4360
  stabilizeOut: !0,
4396
4361
  skipInitial: !1
4397
4362
  })}
@@ -4400,10 +4365,10 @@ const tr = class tr extends M {
4400
4365
  </div>`
4401
4366
  )}
4402
4367
  ${this.loading ? w`<ace-typing-state
4403
- ${gs({
4368
+ ${ds({
4404
4369
  keyframeOptions: {},
4405
- in: hi,
4406
- out: Kc,
4370
+ in: ui,
4371
+ out: Yc,
4407
4372
  stabilizeOut: !0,
4408
4373
  skipInitial: !1
4409
4374
  })}
@@ -4411,7 +4376,7 @@ const tr = class tr extends M {
4411
4376
  </div>`;
4412
4377
  }
4413
4378
  };
4414
- tr.styles = [
4379
+ er.styles = [
4415
4380
  Y`
4416
4381
  :host {
4417
4382
  display: block;
@@ -4430,34 +4395,34 @@ tr.styles = [
4430
4395
  }
4431
4396
  `
4432
4397
  ];
4433
- let Tt = tr;
4434
- Ro([
4398
+ let Et = er;
4399
+ Co([
4435
4400
  C({ attribute: !1 })
4436
- ], Tt.prototype, "entries");
4437
- Ro([
4401
+ ], Et.prototype, "entries");
4402
+ Co([
4438
4403
  C({ type: Boolean })
4439
- ], Tt.prototype, "loading");
4404
+ ], Et.prototype, "loading");
4440
4405
  /**
4441
4406
  * @license
4442
4407
  * Copyright 2021 Google LLC
4443
4408
  * SPDX-License-Identifier: BSD-3-Clause
4444
4409
  */
4445
- const mu = (n, e, t) => {
4410
+ const fu = (n, e, t) => {
4446
4411
  for (const s of e) if (s[0] === n) return (0, s[1])();
4447
4412
  return t == null ? void 0 : t();
4448
4413
  };
4449
- var vu = Object.defineProperty, bu = (n, e, t, s) => {
4414
+ var gu = Object.defineProperty, mu = (n, e, t, s) => {
4450
4415
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
4451
4416
  (o = n[i]) && (r = o(e, t, r) || r);
4452
- return r && vu(e, t, r), r;
4417
+ return r && gu(e, t, r), r;
4453
4418
  };
4454
- const nr = class nr extends M {
4419
+ const tr = class tr extends M {
4455
4420
  render() {
4456
4421
  return w`
4457
4422
  <div class="message-group">
4458
4423
  ${this.group.items.map(
4459
4424
  ([e, t, s]) => w`
4460
- ${mu(
4425
+ ${fu(
4461
4426
  e,
4462
4427
  [
4463
4428
  ["html", () => w`<message-type-html .message=${t} />`],
@@ -4480,7 +4445,7 @@ const nr = class nr extends M {
4480
4445
  `;
4481
4446
  }
4482
4447
  };
4483
- nr.styles = [
4448
+ tr.styles = [
4484
4449
  Y`
4485
4450
  :host {
4486
4451
  box-sizing: border-box;
@@ -4496,11 +4461,11 @@ nr.styles = [
4496
4461
  }
4497
4462
  `
4498
4463
  ];
4499
- let pn = nr;
4500
- bu([
4464
+ let hn = tr;
4465
+ mu([
4501
4466
  C({ attribute: !1 })
4502
- ], pn.prototype, "group");
4503
- const sr = class sr extends M {
4467
+ ], hn.prototype, "group");
4468
+ const nr = class nr extends M {
4504
4469
  render() {
4505
4470
  return w`<div class="container">
4506
4471
  <div class="dot"></div>
@@ -4509,7 +4474,7 @@ const sr = class sr extends M {
4509
4474
  </div>`;
4510
4475
  }
4511
4476
  };
4512
- sr.styles = [
4477
+ nr.styles = [
4513
4478
  Y`
4514
4479
  :host {
4515
4480
  display: block;
@@ -4546,15 +4511,15 @@ sr.styles = [
4546
4511
  }
4547
4512
  `
4548
4513
  ];
4549
- let vs = sr;
4514
+ let gs = nr;
4550
4515
  /**
4551
4516
  * @license
4552
4517
  * Copyright 2017 Google LLC
4553
4518
  * SPDX-License-Identifier: BSD-3-Clause
4554
4519
  */
4555
- class bs extends Us {
4520
+ class ms extends Ns {
4556
4521
  constructor(e) {
4557
- if (super(e), this.it = x, e.type !== Sn.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4522
+ if (super(e), this.it = x, e.type !== kn.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4558
4523
  }
4559
4524
  render(e) {
4560
4525
  if (e === x || e == null) return this._t = void 0, this.it = e;
@@ -4566,23 +4531,23 @@ class bs extends Us {
4566
4531
  return t.raw = t, this._t = { _$litType$: this.constructor.resultType, strings: t, values: [] };
4567
4532
  }
4568
4533
  }
4569
- bs.directiveName = "unsafeHTML", bs.resultType = 1;
4570
- const yu = An(bs);
4534
+ ms.directiveName = "unsafeHTML", ms.resultType = 1;
4535
+ const vu = _n(ms);
4571
4536
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
4572
4537
  const {
4573
- entries: Oo,
4574
- setPrototypeOf: bi,
4575
- isFrozen: $u,
4576
- getPrototypeOf: xu,
4577
- getOwnPropertyDescriptor: wu
4538
+ entries: Lo,
4539
+ setPrototypeOf: mi,
4540
+ isFrozen: bu,
4541
+ getPrototypeOf: yu,
4542
+ getOwnPropertyDescriptor: $u
4578
4543
  } = Object;
4579
4544
  let {
4580
4545
  freeze: G,
4581
4546
  seal: V,
4582
- create: Io
4547
+ create: Ro
4583
4548
  } = Object, {
4584
- apply: ys,
4585
- construct: $s
4549
+ apply: vs,
4550
+ construct: bs
4586
4551
  } = typeof Reflect < "u" && Reflect;
4587
4552
  G || (G = function(e) {
4588
4553
  return e;
@@ -4590,88 +4555,88 @@ G || (G = function(e) {
4590
4555
  V || (V = function(e) {
4591
4556
  return e;
4592
4557
  });
4593
- ys || (ys = function(e, t, s) {
4558
+ vs || (vs = function(e, t, s) {
4594
4559
  return e.apply(t, s);
4595
4560
  });
4596
- $s || ($s = function(e, t) {
4561
+ bs || (bs = function(e, t) {
4597
4562
  return new e(...t);
4598
4563
  });
4599
- const qt = W(Array.prototype.forEach), ku = W(Array.prototype.lastIndexOf), yi = W(Array.prototype.pop), pt = W(Array.prototype.push), _u = W(Array.prototype.splice), Vt = W(String.prototype.toLowerCase), Vn = W(String.prototype.toString), $i = W(String.prototype.match), dt = W(String.prototype.replace), Su = W(String.prototype.indexOf), Au = W(String.prototype.trim), J = W(Object.prototype.hasOwnProperty), B = W(RegExp.prototype.test), ft = Eu(TypeError);
4564
+ const Wt = W(Array.prototype.forEach), xu = W(Array.prototype.lastIndexOf), vi = W(Array.prototype.pop), pt = W(Array.prototype.push), wu = W(Array.prototype.splice), Kt = W(String.prototype.toLowerCase), Xn = W(String.prototype.toString), bi = W(String.prototype.match), dt = W(String.prototype.replace), ku = W(String.prototype.indexOf), _u = W(String.prototype.trim), J = W(Object.prototype.hasOwnProperty), B = W(RegExp.prototype.test), ft = Su(TypeError);
4600
4565
  function W(n) {
4601
4566
  return function(e) {
4602
4567
  e instanceof RegExp && (e.lastIndex = 0);
4603
4568
  for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
4604
4569
  s[r - 1] = arguments[r];
4605
- return ys(n, e, s);
4570
+ return vs(n, e, s);
4606
4571
  };
4607
4572
  }
4608
- function Eu(n) {
4573
+ function Su(n) {
4609
4574
  return function() {
4610
4575
  for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++)
4611
4576
  t[s] = arguments[s];
4612
- return $s(n, t);
4577
+ return bs(n, t);
4613
4578
  };
4614
4579
  }
4615
4580
  function $(n, e) {
4616
- let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Vt;
4617
- bi && bi(n, null);
4581
+ let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Kt;
4582
+ mi && mi(n, null);
4618
4583
  let s = e.length;
4619
4584
  for (; s--; ) {
4620
4585
  let r = e[s];
4621
4586
  if (typeof r == "string") {
4622
4587
  const i = t(r);
4623
- i !== r && ($u(e) || (e[s] = i), r = i);
4588
+ i !== r && (bu(e) || (e[s] = i), r = i);
4624
4589
  }
4625
4590
  n[r] = !0;
4626
4591
  }
4627
4592
  return n;
4628
4593
  }
4629
- function Tu(n) {
4594
+ function Au(n) {
4630
4595
  for (let e = 0; e < n.length; e++)
4631
4596
  J(n, e) || (n[e] = null);
4632
4597
  return n;
4633
4598
  }
4634
4599
  function fe(n) {
4635
- const e = Io(null);
4636
- for (const [t, s] of Oo(n))
4637
- J(n, t) && (Array.isArray(s) ? e[t] = Tu(s) : s && typeof s == "object" && s.constructor === Object ? e[t] = fe(s) : e[t] = s);
4600
+ const e = Ro(null);
4601
+ for (const [t, s] of Lo(n))
4602
+ J(n, t) && (Array.isArray(s) ? e[t] = Au(s) : s && typeof s == "object" && s.constructor === Object ? e[t] = fe(s) : e[t] = s);
4638
4603
  return e;
4639
4604
  }
4640
4605
  function gt(n, e) {
4641
4606
  for (; n !== null; ) {
4642
- const s = wu(n, e);
4607
+ const s = $u(n, e);
4643
4608
  if (s) {
4644
4609
  if (s.get)
4645
4610
  return W(s.get);
4646
4611
  if (typeof s.value == "function")
4647
4612
  return W(s.value);
4648
4613
  }
4649
- n = xu(n);
4614
+ n = yu(n);
4650
4615
  }
4651
4616
  function t() {
4652
4617
  return null;
4653
4618
  }
4654
4619
  return t;
4655
4620
  }
4656
- const xi = G(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Qn = G(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Jn = G(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Cu = G(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), es = G(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Lu = G(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), wi = G(["#text"]), ki = G(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ts = G(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), _i = G(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Zt = G(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ru = V(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ou = V(/<%[\w\W]*|[\w\W]*%>/gm), Iu = V(/\$\{[\w\W]*/gm), Pu = V(/^data-[\-\w.\u00B7-\uFFFF]+$/), Mu = V(/^aria-[\-\w]+$/), Po = V(
4621
+ const yi = G(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Kn = G(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Vn = G(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Eu = G(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Qn = G(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Tu = G(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), $i = G(["#text"]), xi = G(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Jn = G(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), wi = G(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), qt = G(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Cu = V(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Lu = V(/<%[\w\W]*|[\w\W]*%>/gm), Ru = V(/\$\{[\w\W]*/gm), Ou = V(/^data-[\-\w.\u00B7-\uFFFF]+$/), Pu = V(/^aria-[\-\w]+$/), Oo = V(
4657
4622
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4658
4623
  // eslint-disable-line no-useless-escape
4659
- ), Nu = V(/^(?:\w+script|data):/i), Du = V(
4624
+ ), Iu = V(/^(?:\w+script|data):/i), Mu = V(
4660
4625
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
4661
4626
  // eslint-disable-line no-control-regex
4662
- ), Mo = V(/^html$/i), Uu = V(/^[a-z][.\w]*(-[.\w]+)+$/i);
4663
- var Si = /* @__PURE__ */ Object.freeze({
4627
+ ), Po = V(/^html$/i), Nu = V(/^[a-z][.\w]*(-[.\w]+)+$/i);
4628
+ var ki = /* @__PURE__ */ Object.freeze({
4664
4629
  __proto__: null,
4665
- ARIA_ATTR: Mu,
4666
- ATTR_WHITESPACE: Du,
4667
- CUSTOM_ELEMENT: Uu,
4668
- DATA_ATTR: Pu,
4669
- DOCTYPE_NAME: Mo,
4670
- ERB_EXPR: Ou,
4671
- IS_ALLOWED_URI: Po,
4672
- IS_SCRIPT_OR_DATA: Nu,
4673
- MUSTACHE_EXPR: Ru,
4674
- TMPLIT_EXPR: Iu
4630
+ ARIA_ATTR: Pu,
4631
+ ATTR_WHITESPACE: Mu,
4632
+ CUSTOM_ELEMENT: Nu,
4633
+ DATA_ATTR: Ou,
4634
+ DOCTYPE_NAME: Po,
4635
+ ERB_EXPR: Lu,
4636
+ IS_ALLOWED_URI: Oo,
4637
+ IS_SCRIPT_OR_DATA: Iu,
4638
+ MUSTACHE_EXPR: Cu,
4639
+ TMPLIT_EXPR: Ru
4675
4640
  });
4676
4641
  const mt = {
4677
4642
  element: 1,
@@ -4680,9 +4645,9 @@ const mt = {
4680
4645
  progressingInstruction: 7,
4681
4646
  comment: 8,
4682
4647
  document: 9
4683
- }, zu = function() {
4648
+ }, Du = function() {
4684
4649
  return typeof window > "u" ? null : window;
4685
- }, Hu = function(e, t) {
4650
+ }, Uu = function(e, t) {
4686
4651
  if (typeof e != "object" || typeof e.createPolicy != "function")
4687
4652
  return null;
4688
4653
  let s = null;
@@ -4701,7 +4666,7 @@ const mt = {
4701
4666
  } catch {
4702
4667
  return console.warn("TrustedTypes policy " + i + " could not be created."), null;
4703
4668
  }
4704
- }, Ai = function() {
4669
+ }, _i = function() {
4705
4670
  return {
4706
4671
  afterSanitizeAttributes: [],
4707
4672
  afterSanitizeElements: [],
@@ -4714,9 +4679,9 @@ const mt = {
4714
4679
  uponSanitizeShadowNode: []
4715
4680
  };
4716
4681
  };
4717
- function No() {
4718
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zu();
4719
- const e = (b) => No(b);
4682
+ function Io() {
4683
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Du();
4684
+ const e = (b) => Io(b);
4720
4685
  if (e.version = "3.2.6", e.removed = [], !n || !n.document || n.document.nodeType !== mt.document || !n.Element)
4721
4686
  return e.isSupported = !1, e;
4722
4687
  let {
@@ -4741,30 +4706,30 @@ function No() {
4741
4706
  const {
4742
4707
  implementation: Te,
4743
4708
  createNodeIterator: Ce,
4744
- createDocumentFragment: Vo,
4745
- getElementsByTagName: Qo
4709
+ createDocumentFragment: Xo,
4710
+ getElementsByTagName: Ko
4746
4711
  } = t, {
4747
- importNode: Jo
4712
+ importNode: Vo
4748
4713
  } = s;
4749
- let H = Ai();
4750
- e.isSupported = typeof Oo == "function" && typeof Ae == "function" && Te && Te.createHTMLDocument !== void 0;
4714
+ let H = _i();
4715
+ e.isSupported = typeof Lo == "function" && typeof Ae == "function" && Te && Te.createHTMLDocument !== void 0;
4751
4716
  const {
4752
- MUSTACHE_EXPR: Cn,
4753
- ERB_EXPR: Ln,
4754
- TMPLIT_EXPR: Rn,
4755
- DATA_ATTR: ea,
4756
- ARIA_ATTR: ta,
4757
- IS_SCRIPT_OR_DATA: na,
4758
- ATTR_WHITESPACE: lr,
4759
- CUSTOM_ELEMENT: sa
4760
- } = Si;
4717
+ MUSTACHE_EXPR: En,
4718
+ ERB_EXPR: Tn,
4719
+ TMPLIT_EXPR: Cn,
4720
+ DATA_ATTR: Qo,
4721
+ ARIA_ATTR: Jo,
4722
+ IS_SCRIPT_OR_DATA: ea,
4723
+ ATTR_WHITESPACE: ar,
4724
+ CUSTOM_ELEMENT: ta
4725
+ } = ki;
4761
4726
  let {
4762
- IS_ALLOWED_URI: cr
4763
- } = Si, O = null;
4764
- const ur = $({}, [...xi, ...Qn, ...Jn, ...es, ...wi]);
4765
- let P = null;
4766
- const hr = $({}, [...ki, ...ts, ..._i, ...Zt]);
4767
- let T = Object.seal(Io(null, {
4727
+ IS_ALLOWED_URI: lr
4728
+ } = ki, O = null;
4729
+ const cr = $({}, [...yi, ...Kn, ...Vn, ...Qn, ...$i]);
4730
+ let I = null;
4731
+ const ur = $({}, [...xi, ...Jn, ...wi, ...qt]);
4732
+ let T = Object.seal(Ro(null, {
4768
4733
  tagNameCheck: {
4769
4734
  writable: !0,
4770
4735
  configurable: !1,
@@ -4783,45 +4748,45 @@ function No() {
4783
4748
  enumerable: !0,
4784
4749
  value: !1
4785
4750
  }
4786
- })), at = null, On = null, pr = !0, In = !0, dr = !1, fr = !0, He = !1, Dt = !0, Le = !1, Pn = !1, Mn = !1, Be = !1, Ut = !1, zt = !1, gr = !0, mr = !1;
4787
- const ra = "user-content-";
4788
- let Nn = !0, lt = !1, Fe = {}, je = null;
4789
- const vr = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
4790
- let br = null;
4791
- const yr = $({}, ["audio", "video", "img", "source", "image", "track"]);
4792
- let Dn = null;
4793
- const $r = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Ht = "http://www.w3.org/1998/Math/MathML", Bt = "http://www.w3.org/2000/svg", ue = "http://www.w3.org/1999/xhtml";
4794
- let Ge = ue, Un = !1, zn = null;
4795
- const ia = $({}, [Ht, Bt, ue], Vn);
4796
- let Ft = $({}, ["mi", "mo", "mn", "ms", "mtext"]), jt = $({}, ["annotation-xml"]);
4797
- const oa = $({}, ["title", "style", "font", "a", "script"]);
4751
+ })), at = null, Ln = null, hr = !0, Rn = !0, pr = !1, dr = !0, He = !1, Nt = !0, Le = !1, On = !1, Pn = !1, Be = !1, Dt = !1, Ut = !1, fr = !0, gr = !1;
4752
+ const na = "user-content-";
4753
+ let In = !0, lt = !1, Fe = {}, je = null;
4754
+ const mr = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
4755
+ let vr = null;
4756
+ const br = $({}, ["audio", "video", "img", "source", "image", "track"]);
4757
+ let Mn = null;
4758
+ const yr = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), zt = "http://www.w3.org/1998/Math/MathML", Ht = "http://www.w3.org/2000/svg", ue = "http://www.w3.org/1999/xhtml";
4759
+ let Ge = ue, Nn = !1, Dn = null;
4760
+ const sa = $({}, [zt, Ht, ue], Xn);
4761
+ let Bt = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Ft = $({}, ["annotation-xml"]);
4762
+ const ra = $({}, ["title", "style", "font", "a", "script"]);
4798
4763
  let ct = null;
4799
- const aa = ["application/xhtml+xml", "text/html"], la = "text/html";
4800
- let I = null, We = null;
4801
- const ca = t.createElement("form"), xr = function(h) {
4764
+ const ia = ["application/xhtml+xml", "text/html"], oa = "text/html";
4765
+ let P = null, We = null;
4766
+ const aa = t.createElement("form"), $r = function(h) {
4802
4767
  return h instanceof RegExp || h instanceof Function;
4803
- }, Hn = function() {
4768
+ }, Un = function() {
4804
4769
  let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4805
4770
  if (!(We && We === h)) {
4806
4771
  if ((!h || typeof h != "object") && (h = {}), h = fe(h), ct = // eslint-disable-next-line unicorn/prefer-includes
4807
- aa.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? la : h.PARSER_MEDIA_TYPE, I = ct === "application/xhtml+xml" ? Vn : Vt, O = J(h, "ALLOWED_TAGS") ? $({}, h.ALLOWED_TAGS, I) : ur, P = J(h, "ALLOWED_ATTR") ? $({}, h.ALLOWED_ATTR, I) : hr, zn = J(h, "ALLOWED_NAMESPACES") ? $({}, h.ALLOWED_NAMESPACES, Vn) : ia, Dn = J(h, "ADD_URI_SAFE_ATTR") ? $(fe($r), h.ADD_URI_SAFE_ATTR, I) : $r, br = J(h, "ADD_DATA_URI_TAGS") ? $(fe(yr), h.ADD_DATA_URI_TAGS, I) : yr, je = J(h, "FORBID_CONTENTS") ? $({}, h.FORBID_CONTENTS, I) : vr, at = J(h, "FORBID_TAGS") ? $({}, h.FORBID_TAGS, I) : fe({}), On = J(h, "FORBID_ATTR") ? $({}, h.FORBID_ATTR, I) : fe({}), Fe = J(h, "USE_PROFILES") ? h.USE_PROFILES : !1, pr = h.ALLOW_ARIA_ATTR !== !1, In = h.ALLOW_DATA_ATTR !== !1, dr = h.ALLOW_UNKNOWN_PROTOCOLS || !1, fr = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = h.SAFE_FOR_TEMPLATES || !1, Dt = h.SAFE_FOR_XML !== !1, Le = h.WHOLE_DOCUMENT || !1, Be = h.RETURN_DOM || !1, Ut = h.RETURN_DOM_FRAGMENT || !1, zt = h.RETURN_TRUSTED_TYPE || !1, Mn = h.FORCE_BODY || !1, gr = h.SANITIZE_DOM !== !1, mr = h.SANITIZE_NAMED_PROPS || !1, Nn = h.KEEP_CONTENT !== !1, lt = h.IN_PLACE || !1, cr = h.ALLOWED_URI_REGEXP || Po, Ge = h.NAMESPACE || ue, Ft = h.MATHML_TEXT_INTEGRATION_POINTS || Ft, jt = h.HTML_INTEGRATION_POINTS || jt, T = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && xr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && xr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (In = !1), Ut && (Be = !0), Fe && (O = $({}, wi), P = [], Fe.html === !0 && ($(O, xi), $(P, ki)), Fe.svg === !0 && ($(O, Qn), $(P, ts), $(P, Zt)), Fe.svgFilters === !0 && ($(O, Jn), $(P, ts), $(P, Zt)), Fe.mathMl === !0 && ($(O, es), $(P, _i), $(P, Zt))), h.ADD_TAGS && (O === ur && (O = fe(O)), $(O, h.ADD_TAGS, I)), h.ADD_ATTR && (P === hr && (P = fe(P)), $(P, h.ADD_ATTR, I)), h.ADD_URI_SAFE_ATTR && $(Dn, h.ADD_URI_SAFE_ATTR, I), h.FORBID_CONTENTS && (je === vr && (je = fe(je)), $(je, h.FORBID_CONTENTS, I)), Nn && (O["#text"] = !0), Le && $(O, ["html", "head", "body"]), O.table && ($(O, ["tbody"]), delete at.tbody), h.TRUSTED_TYPES_POLICY) {
4772
+ ia.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? oa : h.PARSER_MEDIA_TYPE, P = ct === "application/xhtml+xml" ? Xn : Kt, O = J(h, "ALLOWED_TAGS") ? $({}, h.ALLOWED_TAGS, P) : cr, I = J(h, "ALLOWED_ATTR") ? $({}, h.ALLOWED_ATTR, P) : ur, Dn = J(h, "ALLOWED_NAMESPACES") ? $({}, h.ALLOWED_NAMESPACES, Xn) : sa, Mn = J(h, "ADD_URI_SAFE_ATTR") ? $(fe(yr), h.ADD_URI_SAFE_ATTR, P) : yr, vr = J(h, "ADD_DATA_URI_TAGS") ? $(fe(br), h.ADD_DATA_URI_TAGS, P) : br, je = J(h, "FORBID_CONTENTS") ? $({}, h.FORBID_CONTENTS, P) : mr, at = J(h, "FORBID_TAGS") ? $({}, h.FORBID_TAGS, P) : fe({}), Ln = J(h, "FORBID_ATTR") ? $({}, h.FORBID_ATTR, P) : fe({}), Fe = J(h, "USE_PROFILES") ? h.USE_PROFILES : !1, hr = h.ALLOW_ARIA_ATTR !== !1, Rn = h.ALLOW_DATA_ATTR !== !1, pr = h.ALLOW_UNKNOWN_PROTOCOLS || !1, dr = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = h.SAFE_FOR_TEMPLATES || !1, Nt = h.SAFE_FOR_XML !== !1, Le = h.WHOLE_DOCUMENT || !1, Be = h.RETURN_DOM || !1, Dt = h.RETURN_DOM_FRAGMENT || !1, Ut = h.RETURN_TRUSTED_TYPE || !1, Pn = h.FORCE_BODY || !1, fr = h.SANITIZE_DOM !== !1, gr = h.SANITIZE_NAMED_PROPS || !1, In = h.KEEP_CONTENT !== !1, lt = h.IN_PLACE || !1, lr = h.ALLOWED_URI_REGEXP || Oo, Ge = h.NAMESPACE || ue, Bt = h.MATHML_TEXT_INTEGRATION_POINTS || Bt, Ft = h.HTML_INTEGRATION_POINTS || Ft, T = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && $r(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (T.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && $r(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (T.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (T.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (Rn = !1), Dt && (Be = !0), Fe && (O = $({}, $i), I = [], Fe.html === !0 && ($(O, yi), $(I, xi)), Fe.svg === !0 && ($(O, Kn), $(I, Jn), $(I, qt)), Fe.svgFilters === !0 && ($(O, Vn), $(I, Jn), $(I, qt)), Fe.mathMl === !0 && ($(O, Qn), $(I, wi), $(I, qt))), h.ADD_TAGS && (O === cr && (O = fe(O)), $(O, h.ADD_TAGS, P)), h.ADD_ATTR && (I === ur && (I = fe(I)), $(I, h.ADD_ATTR, P)), h.ADD_URI_SAFE_ATTR && $(Mn, h.ADD_URI_SAFE_ATTR, P), h.FORBID_CONTENTS && (je === mr && (je = fe(je)), $(je, h.FORBID_CONTENTS, P)), In && (O["#text"] = !0), Le && $(O, ["html", "head", "body"]), O.table && ($(O, ["tbody"]), delete at.tbody), h.TRUSTED_TYPES_POLICY) {
4808
4773
  if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
4809
4774
  throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4810
4775
  if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
4811
4776
  throw ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
4812
4777
  R = h.TRUSTED_TYPES_POLICY, Ee = R.createHTML("");
4813
4778
  } else
4814
- R === void 0 && (R = Hu(g, r)), R !== null && typeof Ee == "string" && (Ee = R.createHTML(""));
4779
+ R === void 0 && (R = Uu(g, r)), R !== null && typeof Ee == "string" && (Ee = R.createHTML(""));
4815
4780
  G && G(h), We = h;
4816
4781
  }
4817
- }, wr = $({}, [...Qn, ...Jn, ...Cu]), kr = $({}, [...es, ...Lu]), ua = function(h) {
4782
+ }, xr = $({}, [...Kn, ...Vn, ...Eu]), wr = $({}, [...Qn, ...Tu]), la = function(h) {
4818
4783
  let f = Ae(h);
4819
4784
  (!f || !f.tagName) && (f = {
4820
4785
  namespaceURI: Ge,
4821
4786
  tagName: "template"
4822
4787
  });
4823
- const v = Vt(h.tagName), E = Vt(f.tagName);
4824
- return zn[h.namespaceURI] ? h.namespaceURI === Bt ? f.namespaceURI === ue ? v === "svg" : f.namespaceURI === Ht ? v === "svg" && (E === "annotation-xml" || Ft[E]) : !!wr[v] : h.namespaceURI === Ht ? f.namespaceURI === ue ? v === "math" : f.namespaceURI === Bt ? v === "math" && jt[E] : !!kr[v] : h.namespaceURI === ue ? f.namespaceURI === Bt && !jt[E] || f.namespaceURI === Ht && !Ft[E] ? !1 : !kr[v] && (oa[v] || !wr[v]) : !!(ct === "application/xhtml+xml" && zn[h.namespaceURI]) : !1;
4788
+ const v = Kt(h.tagName), E = Kt(f.tagName);
4789
+ return Dn[h.namespaceURI] ? h.namespaceURI === Ht ? f.namespaceURI === ue ? v === "svg" : f.namespaceURI === zt ? v === "svg" && (E === "annotation-xml" || Bt[E]) : !!xr[v] : h.namespaceURI === zt ? f.namespaceURI === ue ? v === "math" : f.namespaceURI === Ht ? v === "math" && Ft[E] : !!wr[v] : h.namespaceURI === ue ? f.namespaceURI === Ht && !Ft[E] || f.namespaceURI === zt && !Bt[E] ? !1 : !wr[v] && (ra[v] || !xr[v]) : !!(ct === "application/xhtml+xml" && Dn[h.namespaceURI]) : !1;
4825
4790
  }, se = function(h) {
4826
4791
  pt(e.removed, {
4827
4792
  element: h
@@ -4844,7 +4809,7 @@ function No() {
4844
4809
  });
4845
4810
  }
4846
4811
  if (f.removeAttribute(h), h === "is")
4847
- if (Be || Ut)
4812
+ if (Be || Dt)
4848
4813
  try {
4849
4814
  se(f);
4850
4815
  } catch {
@@ -4854,12 +4819,12 @@ function No() {
4854
4819
  f.setAttribute(h, "");
4855
4820
  } catch {
4856
4821
  }
4857
- }, _r = function(h) {
4822
+ }, kr = function(h) {
4858
4823
  let f = null, v = null;
4859
- if (Mn)
4824
+ if (Pn)
4860
4825
  h = "<remove></remove>" + h;
4861
4826
  else {
4862
- const L = $i(h, /^[\r\n\t ]+/);
4827
+ const L = bi(h, /^[\r\n\t ]+/);
4863
4828
  v = L && L[0];
4864
4829
  }
4865
4830
  ct === "application/xhtml+xml" && Ge === ue && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
@@ -4872,13 +4837,13 @@ function No() {
4872
4837
  if (!f || !f.documentElement) {
4873
4838
  f = Te.createDocument(Ge, "template", null);
4874
4839
  try {
4875
- f.documentElement.innerHTML = Un ? Ee : E;
4840
+ f.documentElement.innerHTML = Nn ? Ee : E;
4876
4841
  } catch {
4877
4842
  }
4878
4843
  }
4879
4844
  const N = f.body || f.documentElement;
4880
- return h && v && N.insertBefore(t.createTextNode(v), N.childNodes[0] || null), Ge === ue ? Qo.call(f, Le ? "html" : "body")[0] : Le ? f.documentElement : N;
4881
- }, Sr = function(h) {
4845
+ return h && v && N.insertBefore(t.createTextNode(v), N.childNodes[0] || null), Ge === ue ? Ko.call(f, Le ? "html" : "body")[0] : Le ? f.documentElement : N;
4846
+ }, _r = function(h) {
4882
4847
  return Ce.call(
4883
4848
  h.ownerDocument || h,
4884
4849
  h,
@@ -4886,30 +4851,30 @@ function No() {
4886
4851
  c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
4887
4852
  null
4888
4853
  );
4889
- }, Bn = function(h) {
4854
+ }, zn = function(h) {
4890
4855
  return h instanceof d && (typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || !(h.attributes instanceof u) || typeof h.removeAttribute != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function");
4891
- }, Ar = function(h) {
4856
+ }, Sr = function(h) {
4892
4857
  return typeof a == "function" && h instanceof a;
4893
4858
  };
4894
4859
  function he(b, h, f) {
4895
- qt(b, (v) => {
4860
+ Wt(b, (v) => {
4896
4861
  v.call(e, h, f, We);
4897
4862
  });
4898
4863
  }
4899
- const Er = function(h) {
4864
+ const Ar = function(h) {
4900
4865
  let f = null;
4901
- if (he(H.beforeSanitizeElements, h, null), Bn(h))
4866
+ if (he(H.beforeSanitizeElements, h, null), zn(h))
4902
4867
  return se(h), !0;
4903
- const v = I(h.nodeName);
4868
+ const v = P(h.nodeName);
4904
4869
  if (he(H.uponSanitizeElement, h, {
4905
4870
  tagName: v,
4906
4871
  allowedTags: O
4907
- }), Dt && h.hasChildNodes() && !Ar(h.firstElementChild) && B(/<[/\w!]/g, h.innerHTML) && B(/<[/\w!]/g, h.textContent) || h.nodeType === mt.progressingInstruction || Dt && h.nodeType === mt.comment && B(/<[/\w]/g, h.data))
4872
+ }), Nt && h.hasChildNodes() && !Sr(h.firstElementChild) && B(/<[/\w!]/g, h.innerHTML) && B(/<[/\w!]/g, h.textContent) || h.nodeType === mt.progressingInstruction || Nt && h.nodeType === mt.comment && B(/<[/\w]/g, h.data))
4908
4873
  return se(h), !0;
4909
4874
  if (!O[v] || at[v]) {
4910
- if (!at[v] && Cr(v) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
4875
+ if (!at[v] && Tr(v) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
4911
4876
  return !1;
4912
- if (Nn && !je[v]) {
4877
+ if (In && !je[v]) {
4913
4878
  const E = Ae(h) || h.parentNode, N = ye(h) || h.childNodes;
4914
4879
  if (N && E) {
4915
4880
  const L = N.length;
@@ -4921,29 +4886,29 @@ function No() {
4921
4886
  }
4922
4887
  return se(h), !0;
4923
4888
  }
4924
- return h instanceof l && !ua(h) || (v === "noscript" || v === "noembed" || v === "noframes") && B(/<\/no(script|embed|frames)/i, h.innerHTML) ? (se(h), !0) : (He && h.nodeType === mt.text && (f = h.textContent, qt([Cn, Ln, Rn], (E) => {
4889
+ return h instanceof l && !la(h) || (v === "noscript" || v === "noembed" || v === "noframes") && B(/<\/no(script|embed|frames)/i, h.innerHTML) ? (se(h), !0) : (He && h.nodeType === mt.text && (f = h.textContent, Wt([En, Tn, Cn], (E) => {
4925
4890
  f = dt(f, E, " ");
4926
4891
  }), h.textContent !== f && (pt(e.removed, {
4927
4892
  element: h.cloneNode()
4928
4893
  }), h.textContent = f)), he(H.afterSanitizeElements, h, null), !1);
4929
- }, Tr = function(h, f, v) {
4930
- if (gr && (f === "id" || f === "name") && (v in t || v in ca))
4894
+ }, Er = function(h, f, v) {
4895
+ if (fr && (f === "id" || f === "name") && (v in t || v in aa))
4931
4896
  return !1;
4932
- if (!(In && !On[f] && B(ea, f))) {
4933
- if (!(pr && B(ta, f))) {
4934
- if (!P[f] || On[f]) {
4897
+ if (!(Rn && !Ln[f] && B(Qo, f))) {
4898
+ if (!(hr && B(Jo, f))) {
4899
+ if (!I[f] || Ln[f]) {
4935
4900
  if (
4936
4901
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
4937
4902
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4938
4903
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
4939
- !(Cr(h) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, h) || T.tagNameCheck instanceof Function && T.tagNameCheck(h)) && (T.attributeNameCheck instanceof RegExp && B(T.attributeNameCheck, f) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4904
+ !(Tr(h) && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, h) || T.tagNameCheck instanceof Function && T.tagNameCheck(h)) && (T.attributeNameCheck instanceof RegExp && B(T.attributeNameCheck, f) || T.attributeNameCheck instanceof Function && T.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4940
4905
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4941
4906
  f === "is" && T.allowCustomizedBuiltInElements && (T.tagNameCheck instanceof RegExp && B(T.tagNameCheck, v) || T.tagNameCheck instanceof Function && T.tagNameCheck(v)))
4942
4907
  ) return !1;
4943
- } else if (!Dn[f]) {
4944
- if (!B(cr, dt(v, lr, ""))) {
4945
- if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Su(v, "data:") === 0 && br[h])) {
4946
- if (!(dr && !B(na, dt(v, lr, "")))) {
4908
+ } else if (!Mn[f]) {
4909
+ if (!B(lr, dt(v, ar, ""))) {
4910
+ if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && ku(v, "data:") === 0 && vr[h])) {
4911
+ if (!(pr && !B(ea, dt(v, ar, "")))) {
4947
4912
  if (v)
4948
4913
  return !1;
4949
4914
  }
@@ -4953,20 +4918,20 @@ function No() {
4953
4918
  }
4954
4919
  }
4955
4920
  return !0;
4921
+ }, Tr = function(h) {
4922
+ return h !== "annotation-xml" && bi(h, ta);
4956
4923
  }, Cr = function(h) {
4957
- return h !== "annotation-xml" && $i(h, sa);
4958
- }, Lr = function(h) {
4959
4924
  he(H.beforeSanitizeAttributes, h, null);
4960
4925
  const {
4961
4926
  attributes: f
4962
4927
  } = h;
4963
- if (!f || Bn(h))
4928
+ if (!f || zn(h))
4964
4929
  return;
4965
4930
  const v = {
4966
4931
  attrName: "",
4967
4932
  attrValue: "",
4968
4933
  keepAttr: !0,
4969
- allowedAttributes: P,
4934
+ allowedAttributes: I,
4970
4935
  forceKeepAttr: void 0
4971
4936
  };
4972
4937
  let E = f.length;
@@ -4975,9 +4940,9 @@ function No() {
4975
4940
  name: L,
4976
4941
  namespaceURI: q,
4977
4942
  value: pe
4978
- } = N, ut = I(L), Fn = pe;
4979
- let D = L === "value" ? Fn : Au(Fn);
4980
- if (v.attrName = ut, v.attrValue = D, v.keepAttr = !0, v.forceKeepAttr = void 0, he(H.uponSanitizeAttribute, h, v), D = v.attrValue, mr && (ut === "id" || ut === "name") && (qe(L, h), D = ra + D), Dt && B(/((--!?|])>)|<\/(style|title)/i, D)) {
4943
+ } = N, ut = P(L), Hn = pe;
4944
+ let D = L === "value" ? Hn : _u(Hn);
4945
+ if (v.attrName = ut, v.attrValue = D, v.keepAttr = !0, v.forceKeepAttr = void 0, he(H.uponSanitizeAttribute, h, v), D = v.attrValue, gr && (ut === "id" || ut === "name") && (qe(L, h), D = na + D), Nt && B(/((--!?|])>)|<\/(style|title)/i, D)) {
4981
4946
  qe(L, h);
4982
4947
  continue;
4983
4948
  }
@@ -4987,20 +4952,20 @@ function No() {
4987
4952
  qe(L, h);
4988
4953
  continue;
4989
4954
  }
4990
- if (!fr && B(/\/>/i, D)) {
4955
+ if (!dr && B(/\/>/i, D)) {
4991
4956
  qe(L, h);
4992
4957
  continue;
4993
4958
  }
4994
- He && qt([Cn, Ln, Rn], (Or) => {
4995
- D = dt(D, Or, " ");
4959
+ He && Wt([En, Tn, Cn], (Rr) => {
4960
+ D = dt(D, Rr, " ");
4996
4961
  });
4997
- const Rr = I(h.nodeName);
4998
- if (!Tr(Rr, ut, D)) {
4962
+ const Lr = P(h.nodeName);
4963
+ if (!Er(Lr, ut, D)) {
4999
4964
  qe(L, h);
5000
4965
  continue;
5001
4966
  }
5002
4967
  if (R && typeof g == "object" && typeof g.getAttributeType == "function" && !q)
5003
- switch (g.getAttributeType(Rr, ut)) {
4968
+ switch (g.getAttributeType(Lr, ut)) {
5004
4969
  case "TrustedHTML": {
5005
4970
  D = R.createHTML(D);
5006
4971
  break;
@@ -5010,24 +4975,24 @@ function No() {
5010
4975
  break;
5011
4976
  }
5012
4977
  }
5013
- if (D !== Fn)
4978
+ if (D !== Hn)
5014
4979
  try {
5015
- q ? h.setAttributeNS(q, L, D) : h.setAttribute(L, D), Bn(h) ? se(h) : yi(e.removed);
4980
+ q ? h.setAttributeNS(q, L, D) : h.setAttribute(L, D), zn(h) ? se(h) : vi(e.removed);
5016
4981
  } catch {
5017
4982
  qe(L, h);
5018
4983
  }
5019
4984
  }
5020
4985
  he(H.afterSanitizeAttributes, h, null);
5021
- }, ha = function b(h) {
4986
+ }, ca = function b(h) {
5022
4987
  let f = null;
5023
- const v = Sr(h);
4988
+ const v = _r(h);
5024
4989
  for (he(H.beforeSanitizeShadowDOM, h, null); f = v.nextNode(); )
5025
- he(H.uponSanitizeShadowNode, f, null), Er(f), Lr(f), f.content instanceof i && b(f.content);
4990
+ he(H.uponSanitizeShadowNode, f, null), Ar(f), Cr(f), f.content instanceof i && b(f.content);
5026
4991
  he(H.afterSanitizeShadowDOM, h, null);
5027
4992
  };
5028
4993
  return e.sanitize = function(b) {
5029
4994
  let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = null, v = null, E = null, N = null;
5030
- if (Un = !b, Un && (b = "<!-->"), typeof b != "string" && !Ar(b))
4995
+ if (Nn = !b, Nn && (b = "<!-->"), typeof b != "string" && !Sr(b))
5031
4996
  if (typeof b.toString == "function") {
5032
4997
  if (b = b.toString(), typeof b != "string")
5033
4998
  throw ft("dirty is not a string, aborting");
@@ -5035,76 +5000,76 @@ function No() {
5035
5000
  throw ft("toString is not a function");
5036
5001
  if (!e.isSupported)
5037
5002
  return b;
5038
- if (Pn || Hn(h), e.removed = [], typeof b == "string" && (lt = !1), lt) {
5003
+ if (On || Un(h), e.removed = [], typeof b == "string" && (lt = !1), lt) {
5039
5004
  if (b.nodeName) {
5040
- const pe = I(b.nodeName);
5005
+ const pe = P(b.nodeName);
5041
5006
  if (!O[pe] || at[pe])
5042
5007
  throw ft("root node is forbidden and cannot be sanitized in-place");
5043
5008
  }
5044
5009
  } else if (b instanceof a)
5045
- f = _r("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === mt.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
5010
+ f = kr("<!---->"), v = f.ownerDocument.importNode(b, !0), v.nodeType === mt.element && v.nodeName === "BODY" || v.nodeName === "HTML" ? f = v : f.appendChild(v);
5046
5011
  else {
5047
5012
  if (!Be && !He && !Le && // eslint-disable-next-line unicorn/prefer-includes
5048
5013
  b.indexOf("<") === -1)
5049
- return R && zt ? R.createHTML(b) : b;
5050
- if (f = _r(b), !f)
5051
- return Be ? null : zt ? Ee : "";
5014
+ return R && Ut ? R.createHTML(b) : b;
5015
+ if (f = kr(b), !f)
5016
+ return Be ? null : Ut ? Ee : "";
5052
5017
  }
5053
- f && Mn && se(f.firstChild);
5054
- const L = Sr(lt ? b : f);
5018
+ f && Pn && se(f.firstChild);
5019
+ const L = _r(lt ? b : f);
5055
5020
  for (; E = L.nextNode(); )
5056
- Er(E), Lr(E), E.content instanceof i && ha(E.content);
5021
+ Ar(E), Cr(E), E.content instanceof i && ca(E.content);
5057
5022
  if (lt)
5058
5023
  return b;
5059
5024
  if (Be) {
5060
- if (Ut)
5061
- for (N = Vo.call(f.ownerDocument); f.firstChild; )
5025
+ if (Dt)
5026
+ for (N = Xo.call(f.ownerDocument); f.firstChild; )
5062
5027
  N.appendChild(f.firstChild);
5063
5028
  else
5064
5029
  N = f;
5065
- return (P.shadowroot || P.shadowrootmode) && (N = Jo.call(s, N, !0)), N;
5030
+ return (I.shadowroot || I.shadowrootmode) && (N = Vo.call(s, N, !0)), N;
5066
5031
  }
5067
5032
  let q = Le ? f.outerHTML : f.innerHTML;
5068
- return Le && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && B(Mo, f.ownerDocument.doctype.name) && (q = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5069
- ` + q), He && qt([Cn, Ln, Rn], (pe) => {
5033
+ return Le && O["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && B(Po, f.ownerDocument.doctype.name) && (q = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5034
+ ` + q), He && Wt([En, Tn, Cn], (pe) => {
5070
5035
  q = dt(q, pe, " ");
5071
- }), R && zt ? R.createHTML(q) : q;
5036
+ }), R && Ut ? R.createHTML(q) : q;
5072
5037
  }, e.setConfig = function() {
5073
5038
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5074
- Hn(b), Pn = !0;
5039
+ Un(b), On = !0;
5075
5040
  }, e.clearConfig = function() {
5076
- We = null, Pn = !1;
5041
+ We = null, On = !1;
5077
5042
  }, e.isValidAttribute = function(b, h, f) {
5078
- We || Hn({});
5079
- const v = I(b), E = I(h);
5080
- return Tr(v, E, f);
5043
+ We || Un({});
5044
+ const v = P(b), E = P(h);
5045
+ return Er(v, E, f);
5081
5046
  }, e.addHook = function(b, h) {
5082
5047
  typeof h == "function" && pt(H[b], h);
5083
5048
  }, e.removeHook = function(b, h) {
5084
5049
  if (h !== void 0) {
5085
- const f = ku(H[b], h);
5086
- return f === -1 ? void 0 : _u(H[b], f, 1)[0];
5050
+ const f = xu(H[b], h);
5051
+ return f === -1 ? void 0 : wu(H[b], f, 1)[0];
5087
5052
  }
5088
- return yi(H[b]);
5053
+ return vi(H[b]);
5089
5054
  }, e.removeHooks = function(b) {
5090
5055
  H[b] = [];
5091
5056
  }, e.removeAllHooks = function() {
5092
- H = Ai();
5057
+ H = _i();
5093
5058
  }, e;
5094
5059
  }
5095
- var Do = No(), Bu = Object.defineProperty, Fu = (n, e, t, s) => {
5060
+ var Mo = Io(), zu = Object.defineProperty, Hu = (n, e, t, s) => {
5096
5061
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
5097
5062
  (o = n[i]) && (r = o(e, t, r) || r);
5098
- return r && Bu(e, t, r), r;
5063
+ return r && zu(e, t, r), r;
5099
5064
  };
5100
- const rr = class rr extends M {
5065
+ const sr = class sr extends M {
5101
5066
  render() {
5102
5067
  return w`<div class="message-type-html">
5103
- ${yu(Do.sanitize(this.message.content))}
5068
+ ${vu(Mo.sanitize(this.message.content))}
5104
5069
  </div>`;
5105
5070
  }
5106
5071
  };
5107
- rr.styles = [
5072
+ sr.styles = [
5108
5073
  Y`
5109
5074
  :host {
5110
5075
  box-sizing: border-box;
@@ -5141,11 +5106,11 @@ rr.styles = [
5141
5106
  }
5142
5107
  `
5143
5108
  ];
5144
- let dn = rr;
5145
- Fu([
5109
+ let pn = sr;
5110
+ Hu([
5146
5111
  C({ attribute: !1 })
5147
- ], dn.prototype, "message");
5148
- function Hs() {
5112
+ ], pn.prototype, "message");
5113
+ function zs() {
5149
5114
  return {
5150
5115
  async: !1,
5151
5116
  breaks: !1,
@@ -5159,8 +5124,8 @@ function Hs() {
5159
5124
  walkTokens: null
5160
5125
  };
5161
5126
  }
5162
- var ze = Hs();
5163
- function Uo(n) {
5127
+ var ze = zs();
5128
+ function No(n) {
5164
5129
  ze = n;
5165
5130
  }
5166
5131
  var wt = { exec: () => null };
@@ -5232,109 +5197,109 @@ var F = {
5232
5197
  fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
5233
5198
  headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
5234
5199
  htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
5235
- }, ju = /^(?:[ \t]*(?:\n|$))+/, Gu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Wu = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Nt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, qu = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Bs = /(?:[*+-]|\d{1,9}[.)])/, zo = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ho = _(zo).replace(/bull/g, Bs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Zu = _(zo).replace(/bull/g, Bs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Fs = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Yu = /^[^\n]+/, js = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Xu = _(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", js).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ku = _(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Bs).getRegex(), En = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Gs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Vu = _(
5200
+ }, Bu = /^(?:[ \t]*(?:\n|$))+/, Fu = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ju = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Mt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Gu = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Hs = /(?:[*+-]|\d{1,9}[.)])/, Do = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Uo = _(Do).replace(/bull/g, Hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Wu = _(Do).replace(/bull/g, Hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Bs = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, qu = /^[^\n]+/, Fs = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Zu = _(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Fs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Yu = _(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Hs).getRegex(), Sn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", js = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Xu = _(
5236
5201
  "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))",
5237
5202
  "i"
5238
- ).replace("comment", Gs).replace("tag", En).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Bo = _(Fs).replace("hr", Nt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", En).getRegex(), Qu = _(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Bo).getRegex(), Ws = {
5239
- blockquote: Qu,
5240
- code: Gu,
5241
- def: Xu,
5242
- fences: Wu,
5243
- heading: qu,
5244
- hr: Nt,
5245
- html: Vu,
5246
- lheading: Ho,
5247
- list: Ku,
5248
- newline: ju,
5249
- paragraph: Bo,
5203
+ ).replace("comment", js).replace("tag", Sn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), zo = _(Bs).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Sn).getRegex(), Ku = _(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", zo).getRegex(), Gs = {
5204
+ blockquote: Ku,
5205
+ code: Fu,
5206
+ def: Zu,
5207
+ fences: ju,
5208
+ heading: Gu,
5209
+ hr: Mt,
5210
+ html: Xu,
5211
+ lheading: Uo,
5212
+ list: Yu,
5213
+ newline: Bu,
5214
+ paragraph: zo,
5250
5215
  table: wt,
5251
- text: Yu
5252
- }, Ei = _(
5216
+ text: qu
5217
+ }, Si = _(
5253
5218
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
5254
- ).replace("hr", Nt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", En).getRegex(), Ju = {
5255
- ...Ws,
5256
- lheading: Zu,
5257
- table: Ei,
5258
- paragraph: _(Fs).replace("hr", Nt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ei).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", En).getRegex()
5259
- }, eh = {
5260
- ...Ws,
5219
+ ).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Sn).getRegex(), Vu = {
5220
+ ...Gs,
5221
+ lheading: Wu,
5222
+ table: Si,
5223
+ paragraph: _(Bs).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Si).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Sn).getRegex()
5224
+ }, Qu = {
5225
+ ...Gs,
5261
5226
  html: _(
5262
5227
  `^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
5263
- ).replace("comment", Gs).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
5228
+ ).replace("comment", js).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
5264
5229
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
5265
5230
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
5266
5231
  fences: wt,
5267
5232
  // fences not supported
5268
5233
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5269
- paragraph: _(Fs).replace("hr", Nt).replace("heading", ` *#{1,6} *[^
5270
- ]`).replace("lheading", Ho).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5271
- }, th = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, nh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Fo = /^( {2,}|\\)\n(?!\s*$)/, sh = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Tn = /[\p{P}\p{S}]/u, qs = /[\s\p{P}\p{S}]/u, jo = /[^\s\p{P}\p{S}]/u, rh = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, qs).getRegex(), Go = /(?!~)[\p{P}\p{S}]/u, ih = /(?!~)[\s\p{P}\p{S}]/u, oh = /(?:[^\s\p{P}\p{S}]|~)/u, ah = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Wo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, lh = _(Wo, "u").replace(/punct/g, Tn).getRegex(), ch = _(Wo, "u").replace(/punct/g, Go).getRegex(), qo = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", uh = _(qo, "gu").replace(/notPunctSpace/g, jo).replace(/punctSpace/g, qs).replace(/punct/g, Tn).getRegex(), hh = _(qo, "gu").replace(/notPunctSpace/g, oh).replace(/punctSpace/g, ih).replace(/punct/g, Go).getRegex(), ph = _(
5234
+ paragraph: _(Bs).replace("hr", Mt).replace("heading", ` *#{1,6} *[^
5235
+ ]`).replace("lheading", Uo).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5236
+ }, Ju = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, eh = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ho = /^( {2,}|\\)\n(?!\s*$)/, th = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, An = /[\p{P}\p{S}]/u, Ws = /[\s\p{P}\p{S}]/u, Bo = /[^\s\p{P}\p{S}]/u, nh = _(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Ws).getRegex(), Fo = /(?!~)[\p{P}\p{S}]/u, sh = /(?!~)[\s\p{P}\p{S}]/u, rh = /(?:[^\s\p{P}\p{S}]|~)/u, ih = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, jo = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, oh = _(jo, "u").replace(/punct/g, An).getRegex(), ah = _(jo, "u").replace(/punct/g, Fo).getRegex(), Go = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", lh = _(Go, "gu").replace(/notPunctSpace/g, Bo).replace(/punctSpace/g, Ws).replace(/punct/g, An).getRegex(), ch = _(Go, "gu").replace(/notPunctSpace/g, rh).replace(/punctSpace/g, sh).replace(/punct/g, Fo).getRegex(), uh = _(
5272
5237
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
5273
5238
  "gu"
5274
- ).replace(/notPunctSpace/g, jo).replace(/punctSpace/g, qs).replace(/punct/g, Tn).getRegex(), dh = _(/\\(punct)/, "gu").replace(/punct/g, Tn).getRegex(), fh = _(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), gh = _(Gs).replace("(?:-->|$)", "-->").getRegex(), mh = _(
5239
+ ).replace(/notPunctSpace/g, Bo).replace(/punctSpace/g, Ws).replace(/punct/g, An).getRegex(), hh = _(/\\(punct)/, "gu").replace(/punct/g, An).getRegex(), ph = _(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), dh = _(js).replace("(?:-->|$)", "-->").getRegex(), fh = _(
5275
5240
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5276
- ).replace("comment", gh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), fn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, vh = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", fn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Zo = _(/^!?\[(label)\]\[(ref)\]/).replace("label", fn).replace("ref", js).getRegex(), Yo = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", js).getRegex(), bh = _("reflink|nolink(?!\\()", "g").replace("reflink", Zo).replace("nolink", Yo).getRegex(), Zs = {
5241
+ ).replace("comment", dh).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), dn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, gh = _(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", dn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Wo = _(/^!?\[(label)\]\[(ref)\]/).replace("label", dn).replace("ref", Fs).getRegex(), qo = _(/^!?\[(ref)\](?:\[\])?/).replace("ref", Fs).getRegex(), mh = _("reflink|nolink(?!\\()", "g").replace("reflink", Wo).replace("nolink", qo).getRegex(), qs = {
5277
5242
  _backpedal: wt,
5278
5243
  // only used for GFM url
5279
- anyPunctuation: dh,
5280
- autolink: fh,
5281
- blockSkip: ah,
5282
- br: Fo,
5283
- code: nh,
5244
+ anyPunctuation: hh,
5245
+ autolink: ph,
5246
+ blockSkip: ih,
5247
+ br: Ho,
5248
+ code: eh,
5284
5249
  del: wt,
5285
- emStrongLDelim: lh,
5286
- emStrongRDelimAst: uh,
5287
- emStrongRDelimUnd: ph,
5288
- escape: th,
5289
- link: vh,
5290
- nolink: Yo,
5291
- punctuation: rh,
5292
- reflink: Zo,
5293
- reflinkSearch: bh,
5294
- tag: mh,
5295
- text: sh,
5250
+ emStrongLDelim: oh,
5251
+ emStrongRDelimAst: lh,
5252
+ emStrongRDelimUnd: uh,
5253
+ escape: Ju,
5254
+ link: gh,
5255
+ nolink: qo,
5256
+ punctuation: nh,
5257
+ reflink: Wo,
5258
+ reflinkSearch: mh,
5259
+ tag: fh,
5260
+ text: th,
5296
5261
  url: wt
5297
- }, yh = {
5298
- ...Zs,
5299
- link: _(/^!?\[(label)\]\((.*?)\)/).replace("label", fn).getRegex(),
5300
- reflink: _(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", fn).getRegex()
5301
- }, xs = {
5302
- ...Zs,
5303
- emStrongRDelimAst: hh,
5304
- emStrongLDelim: ch,
5262
+ }, vh = {
5263
+ ...qs,
5264
+ link: _(/^!?\[(label)\]\((.*?)\)/).replace("label", dn).getRegex(),
5265
+ reflink: _(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", dn).getRegex()
5266
+ }, ys = {
5267
+ ...qs,
5268
+ emStrongRDelimAst: ch,
5269
+ emStrongLDelim: ah,
5305
5270
  url: _(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
5306
5271
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
5307
5272
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
5308
5273
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
5309
- }, $h = {
5310
- ...xs,
5311
- br: _(Fo).replace("{2,}", "*").getRegex(),
5312
- text: _(xs.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5313
- }, Yt = {
5314
- normal: Ws,
5315
- gfm: Ju,
5316
- pedantic: eh
5274
+ }, bh = {
5275
+ ...ys,
5276
+ br: _(Ho).replace("{2,}", "*").getRegex(),
5277
+ text: _(ys.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5278
+ }, Zt = {
5279
+ normal: Gs,
5280
+ gfm: Vu,
5281
+ pedantic: Qu
5317
5282
  }, vt = {
5318
- normal: Zs,
5319
- gfm: xs,
5320
- breaks: $h,
5321
- pedantic: yh
5322
- }, xh = {
5283
+ normal: qs,
5284
+ gfm: ys,
5285
+ breaks: bh,
5286
+ pedantic: vh
5287
+ }, yh = {
5323
5288
  "&": "&amp;",
5324
5289
  "<": "&lt;",
5325
5290
  ">": "&gt;",
5326
5291
  '"': "&quot;",
5327
5292
  "'": "&#39;"
5328
- }, Ti = (n) => xh[n];
5293
+ }, Ai = (n) => yh[n];
5329
5294
  function re(n, e) {
5330
5295
  if (e) {
5331
5296
  if (F.escapeTest.test(n))
5332
- return n.replace(F.escapeReplace, Ti);
5297
+ return n.replace(F.escapeReplace, Ai);
5333
5298
  } else if (F.escapeTestNoEncode.test(n))
5334
- return n.replace(F.escapeReplaceNoEncode, Ti);
5299
+ return n.replace(F.escapeReplaceNoEncode, Ai);
5335
5300
  return n;
5336
5301
  }
5337
- function Ci(n) {
5302
+ function Ei(n) {
5338
5303
  try {
5339
5304
  n = encodeURI(n).replace(F.percentDecode, "%");
5340
5305
  } catch {
@@ -5342,7 +5307,7 @@ function Ci(n) {
5342
5307
  }
5343
5308
  return n;
5344
5309
  }
5345
- function Li(n, e) {
5310
+ function Ti(n, e) {
5346
5311
  var i;
5347
5312
  const t = n.replace(F.findPipe, (o, a, l) => {
5348
5313
  let c = !1, u = a;
@@ -5368,7 +5333,7 @@ function bt(n, e, t) {
5368
5333
  r++;
5369
5334
  return n.slice(0, s - r);
5370
5335
  }
5371
- function wh(n, e) {
5336
+ function $h(n, e) {
5372
5337
  if (n.indexOf(e[1]) === -1)
5373
5338
  return -1;
5374
5339
  let t = 0;
@@ -5381,7 +5346,7 @@ function wh(n, e) {
5381
5346
  return s;
5382
5347
  return t > 0 ? -2 : -1;
5383
5348
  }
5384
- function Ri(n, e, t, s, r) {
5349
+ function Ci(n, e, t, s, r) {
5385
5350
  const i = e.href, o = e.title || null, a = n[1].replace(r.other.outputLinkReplace, "$1");
5386
5351
  s.state.inLink = !0;
5387
5352
  const l = {
@@ -5394,7 +5359,7 @@ function Ri(n, e, t, s, r) {
5394
5359
  };
5395
5360
  return s.state.inLink = !1, l;
5396
5361
  }
5397
- function kh(n, e, t) {
5362
+ function xh(n, e, t) {
5398
5363
  const s = n.match(t.other.indentCodeCompensation);
5399
5364
  if (s === null)
5400
5365
  return e;
@@ -5409,7 +5374,7 @@ function kh(n, e, t) {
5409
5374
  }).join(`
5410
5375
  `);
5411
5376
  }
5412
- var gn = class {
5377
+ var fn = class {
5413
5378
  // set by the lexer
5414
5379
  constructor(n) {
5415
5380
  S(this, "options");
@@ -5442,7 +5407,7 @@ var gn = class {
5442
5407
  fences(n) {
5443
5408
  const e = this.rules.block.fences.exec(n);
5444
5409
  if (e) {
5445
- const t = e[0], s = kh(t, e[3] || "", this.rules);
5410
+ const t = e[0], s = xh(t, e[3] || "", this.rules);
5446
5411
  return {
5447
5412
  type: "code",
5448
5413
  raw: t,
@@ -5634,7 +5599,7 @@ ${u}` : u;
5634
5599
  const e = this.rules.block.table.exec(n);
5635
5600
  if (!e || !this.rules.other.tableDelimiter.test(e[2]))
5636
5601
  return;
5637
- const t = Li(e[1]), s = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), r = (o = e[3]) != null && o.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
5602
+ const t = Ti(e[1]), s = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), r = (o = e[3]) != null && o.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
5638
5603
  `) : [], i = {
5639
5604
  type: "table",
5640
5605
  raw: e[0],
@@ -5653,7 +5618,7 @@ ${u}` : u;
5653
5618
  align: i.align[a]
5654
5619
  });
5655
5620
  for (const a of r)
5656
- i.rows.push(Li(a, i.header.length).map((l, c) => ({
5621
+ i.rows.push(Ti(a, i.header.length).map((l, c) => ({
5657
5622
  text: l,
5658
5623
  tokens: this.lexer.inline(l),
5659
5624
  header: !1,
@@ -5728,7 +5693,7 @@ ${u}` : u;
5728
5693
  if ((t.length - i.length) % 2 === 0)
5729
5694
  return;
5730
5695
  } else {
5731
- const i = wh(e[2], "()");
5696
+ const i = $h(e[2], "()");
5732
5697
  if (i === -2)
5733
5698
  return;
5734
5699
  if (i > -1) {
@@ -5742,7 +5707,7 @@ ${u}` : u;
5742
5707
  i && (s = i[1], r = i[3]);
5743
5708
  } else
5744
5709
  r = e[3] ? e[3].slice(1, -1) : "";
5745
- return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? s = s.slice(1) : s = s.slice(1, -1)), Ri(e, {
5710
+ return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(t) ? s = s.slice(1) : s = s.slice(1, -1)), Ci(e, {
5746
5711
  href: s && s.replace(this.rules.inline.anyPunctuation, "$1"),
5747
5712
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
5748
5713
  }, e[0], this.lexer, this.rules);
@@ -5760,7 +5725,7 @@ ${u}` : u;
5760
5725
  text: i
5761
5726
  };
5762
5727
  }
5763
- return Ri(t, r, t[0], this.lexer, this.rules);
5728
+ return Ci(t, r, t[0], this.lexer, this.rules);
5764
5729
  }
5765
5730
  }
5766
5731
  emStrong(n, e, t = "") {
@@ -5891,31 +5856,31 @@ ${u}` : u;
5891
5856
  };
5892
5857
  }
5893
5858
  }
5894
- }, ge = class ws {
5859
+ }, ge = class $s {
5895
5860
  constructor(e) {
5896
5861
  S(this, "tokens");
5897
5862
  S(this, "options");
5898
5863
  S(this, "state");
5899
5864
  S(this, "tokenizer");
5900
5865
  S(this, "inlineQueue");
5901
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ze, this.options.tokenizer = this.options.tokenizer || new gn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
5866
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ze, this.options.tokenizer = this.options.tokenizer || new fn(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
5902
5867
  inLink: !1,
5903
5868
  inRawBlock: !1,
5904
5869
  top: !0
5905
5870
  };
5906
5871
  const t = {
5907
5872
  other: F,
5908
- block: Yt.normal,
5873
+ block: Zt.normal,
5909
5874
  inline: vt.normal
5910
5875
  };
5911
- this.options.pedantic ? (t.block = Yt.pedantic, t.inline = vt.pedantic) : this.options.gfm && (t.block = Yt.gfm, this.options.breaks ? t.inline = vt.breaks : t.inline = vt.gfm), this.tokenizer.rules = t;
5876
+ this.options.pedantic ? (t.block = Zt.pedantic, t.inline = vt.pedantic) : this.options.gfm && (t.block = Zt.gfm, this.options.breaks ? t.inline = vt.breaks : t.inline = vt.gfm), this.tokenizer.rules = t;
5912
5877
  }
5913
5878
  /**
5914
5879
  * Expose Rules
5915
5880
  */
5916
5881
  static get rules() {
5917
5882
  return {
5918
- block: Yt,
5883
+ block: Zt,
5919
5884
  inline: vt
5920
5885
  };
5921
5886
  }
@@ -5923,13 +5888,13 @@ ${u}` : u;
5923
5888
  * Static Lex Method
5924
5889
  */
5925
5890
  static lex(e, t) {
5926
- return new ws(t).lex(e);
5891
+ return new $s(t).lex(e);
5927
5892
  }
5928
5893
  /**
5929
5894
  * Static Lex Inline Method
5930
5895
  */
5931
5896
  static lexInline(e, t) {
5932
- return new ws(t).inlineTokens(e);
5897
+ return new $s(t).inlineTokens(e);
5933
5898
  }
5934
5899
  /**
5935
5900
  * Preprocessing
@@ -6135,7 +6100,7 @@ ${u}` : u;
6135
6100
  }
6136
6101
  return t;
6137
6102
  }
6138
- }, Ct = class {
6103
+ }, Tt = class {
6139
6104
  // set by the parser
6140
6105
  constructor(n) {
6141
6106
  S(this, "options");
@@ -6251,7 +6216,7 @@ ${n}</tr>
6251
6216
  return `<del>${this.parser.parseInline(n)}</del>`;
6252
6217
  }
6253
6218
  link({ href: n, title: e, tokens: t }) {
6254
- const s = this.parser.parseInline(t), r = Ci(n);
6219
+ const s = this.parser.parseInline(t), r = Ei(n);
6255
6220
  if (r === null)
6256
6221
  return s;
6257
6222
  n = r;
@@ -6260,7 +6225,7 @@ ${n}</tr>
6260
6225
  }
6261
6226
  image({ href: n, title: e, text: t, tokens: s }) {
6262
6227
  s && (t = this.parser.parseInline(s, this.parser.textRenderer));
6263
- const r = Ci(n);
6228
+ const r = Ei(n);
6264
6229
  if (r === null)
6265
6230
  return re(t);
6266
6231
  n = r;
@@ -6270,7 +6235,7 @@ ${n}</tr>
6270
6235
  text(n) {
6271
6236
  return "tokens" in n && n.tokens ? this.parser.parseInline(n.tokens) : "escaped" in n && n.escaped ? n.text : re(n.text);
6272
6237
  }
6273
- }, Ys = class {
6238
+ }, Zs = class {
6274
6239
  // no need for block level renderers
6275
6240
  strong({ text: n }) {
6276
6241
  return n;
@@ -6299,24 +6264,24 @@ ${n}</tr>
6299
6264
  br() {
6300
6265
  return "";
6301
6266
  }
6302
- }, me = class ks {
6267
+ }, me = class xs {
6303
6268
  constructor(e) {
6304
6269
  S(this, "options");
6305
6270
  S(this, "renderer");
6306
6271
  S(this, "textRenderer");
6307
- this.options = e || ze, this.options.renderer = this.options.renderer || new Ct(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Ys();
6272
+ this.options = e || ze, this.options.renderer = this.options.renderer || new Tt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Zs();
6308
6273
  }
6309
6274
  /**
6310
6275
  * Static Parse Method
6311
6276
  */
6312
6277
  static parse(e, t) {
6313
- return new ks(t).parse(e);
6278
+ return new xs(t).parse(e);
6314
6279
  }
6315
6280
  /**
6316
6281
  * Static Parse Inline Method
6317
6282
  */
6318
6283
  static parseInline(e, t) {
6319
- return new ks(t).parseInline(e);
6284
+ return new xs(t).parseInline(e);
6320
6285
  }
6321
6286
  /**
6322
6287
  * Parse Loop
@@ -6461,7 +6426,7 @@ ${n}</tr>
6461
6426
  }
6462
6427
  return s;
6463
6428
  }
6464
- }, ns, Qt = (ns = class {
6429
+ }, es, Vt = (es = class {
6465
6430
  constructor(n) {
6466
6431
  S(this, "options");
6467
6432
  S(this, "block");
@@ -6497,22 +6462,22 @@ ${n}</tr>
6497
6462
  provideParser() {
6498
6463
  return this.block ? me.parse : me.parseInline;
6499
6464
  }
6500
- }, S(ns, "passThroughHooks", /* @__PURE__ */ new Set([
6465
+ }, S(es, "passThroughHooks", /* @__PURE__ */ new Set([
6501
6466
  "preprocess",
6502
6467
  "postprocess",
6503
6468
  "processAllTokens"
6504
- ])), ns), _h = class {
6469
+ ])), es), wh = class {
6505
6470
  constructor(...n) {
6506
- S(this, "defaults", Hs());
6471
+ S(this, "defaults", zs());
6507
6472
  S(this, "options", this.setOptions);
6508
6473
  S(this, "parse", this.parseMarkdown(!0));
6509
6474
  S(this, "parseInline", this.parseMarkdown(!1));
6510
6475
  S(this, "Parser", me);
6511
- S(this, "Renderer", Ct);
6512
- S(this, "TextRenderer", Ys);
6476
+ S(this, "Renderer", Tt);
6477
+ S(this, "TextRenderer", Zs);
6513
6478
  S(this, "Lexer", ge);
6514
- S(this, "Tokenizer", gn);
6515
- S(this, "Hooks", Qt);
6479
+ S(this, "Tokenizer", fn);
6480
+ S(this, "Hooks", Vt);
6516
6481
  this.use(...n);
6517
6482
  }
6518
6483
  /**
@@ -6569,7 +6534,7 @@ ${n}</tr>
6569
6534
  }
6570
6535
  "childTokens" in r && r.childTokens && (e.childTokens[r.name] = r.childTokens);
6571
6536
  }), s.extensions = e), t.renderer) {
6572
- const r = this.defaults.renderer || new Ct(this.defaults);
6537
+ const r = this.defaults.renderer || new Tt(this.defaults);
6573
6538
  for (const i in t.renderer) {
6574
6539
  if (!(i in r))
6575
6540
  throw new Error(`renderer '${i}' does not exist`);
@@ -6584,7 +6549,7 @@ ${n}</tr>
6584
6549
  s.renderer = r;
6585
6550
  }
6586
6551
  if (t.tokenizer) {
6587
- const r = this.defaults.tokenizer || new gn(this.defaults);
6552
+ const r = this.defaults.tokenizer || new fn(this.defaults);
6588
6553
  for (const i in t.tokenizer) {
6589
6554
  if (!(i in r))
6590
6555
  throw new Error(`tokenizer '${i}' does not exist`);
@@ -6599,14 +6564,14 @@ ${n}</tr>
6599
6564
  s.tokenizer = r;
6600
6565
  }
6601
6566
  if (t.hooks) {
6602
- const r = this.defaults.hooks || new Qt();
6567
+ const r = this.defaults.hooks || new Vt();
6603
6568
  for (const i in t.hooks) {
6604
6569
  if (!(i in r))
6605
6570
  throw new Error(`hook '${i}' does not exist`);
6606
6571
  if (["options", "block"].includes(i))
6607
6572
  continue;
6608
6573
  const o = i, a = t.hooks[o], l = r[o];
6609
- Qt.passThroughHooks.has(i) ? r[o] = (c) => {
6574
+ Vt.passThroughHooks.has(i) ? r[o] = (c) => {
6610
6575
  if (this.defaults.async)
6611
6576
  return Promise.resolve(a.call(r, c)).then((d) => l.call(r, d));
6612
6577
  const u = a.call(r, c);
@@ -6673,17 +6638,17 @@ Please report this to https://github.com/markedjs/marked.`, n) {
6673
6638
  throw t;
6674
6639
  };
6675
6640
  }
6676
- }, Ue = new _h();
6641
+ }, Ue = new wh();
6677
6642
  function k(n, e) {
6678
6643
  return Ue.parse(n, e);
6679
6644
  }
6680
6645
  k.options = k.setOptions = function(n) {
6681
- return Ue.setOptions(n), k.defaults = Ue.defaults, Uo(k.defaults), k;
6646
+ return Ue.setOptions(n), k.defaults = Ue.defaults, No(k.defaults), k;
6682
6647
  };
6683
- k.getDefaults = Hs;
6648
+ k.getDefaults = zs;
6684
6649
  k.defaults = ze;
6685
6650
  k.use = function(...n) {
6686
- return Ue.use(...n), k.defaults = Ue.defaults, Uo(k.defaults), k;
6651
+ return Ue.use(...n), k.defaults = Ue.defaults, No(k.defaults), k;
6687
6652
  };
6688
6653
  k.walkTokens = function(n, e) {
6689
6654
  return Ue.walkTokens(n, e);
@@ -6691,12 +6656,12 @@ k.walkTokens = function(n, e) {
6691
6656
  k.parseInline = Ue.parseInline;
6692
6657
  k.Parser = me;
6693
6658
  k.parser = me.parse;
6694
- k.Renderer = Ct;
6695
- k.TextRenderer = Ys;
6659
+ k.Renderer = Tt;
6660
+ k.TextRenderer = Zs;
6696
6661
  k.Lexer = ge;
6697
6662
  k.lexer = ge.lex;
6698
- k.Tokenizer = gn;
6699
- k.Hooks = Qt;
6663
+ k.Tokenizer = fn;
6664
+ k.Hooks = Vt;
6700
6665
  k.parse = k;
6701
6666
  k.options;
6702
6667
  k.setOptions;
@@ -6705,17 +6670,17 @@ k.walkTokens;
6705
6670
  k.parseInline;
6706
6671
  me.parse;
6707
6672
  ge.lex;
6708
- var Sh = Object.defineProperty, Xo = (n, e, t, s) => {
6673
+ var kh = Object.defineProperty, Zo = (n, e, t, s) => {
6709
6674
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
6710
6675
  (o = n[i]) && (r = o(e, t, r) || r);
6711
- return r && Sh(e, t, r), r;
6676
+ return r && kh(e, t, r), r;
6712
6677
  };
6713
- const Ko = new Ct();
6714
- Ko.link = function({ href: n, title: e, text: t }) {
6678
+ const Yo = new Tt();
6679
+ Yo.link = function({ href: n, title: e, text: t }) {
6715
6680
  return e ?? (e = t), `<a target="_blank" href="${n}" title="${e}">${t}</a>`;
6716
6681
  };
6717
- k.use({ renderer: Ko });
6718
- const ir = class ir extends M {
6682
+ k.use({ renderer: Yo });
6683
+ const rr = class rr extends M {
6719
6684
  constructor() {
6720
6685
  super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = ie(), this.contentRef = ie(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
6721
6686
  }
@@ -6762,7 +6727,7 @@ const ir = class ir extends M {
6762
6727
  const e = this.getLastChunk();
6763
6728
  if (!e) return;
6764
6729
  this.buffer += e;
6765
- const t = Do.sanitize(
6730
+ const t = Mo.sanitize(
6766
6731
  k.parse(this.buffer)
6767
6732
  );
6768
6733
  if (this.includesImage(this.buffer))
@@ -6771,7 +6736,7 @@ const ir = class ir extends M {
6771
6736
  const s = (i = this.contentRef.value) == null ? void 0 : i.querySelector(
6772
6737
  "div:last-of-type"
6773
6738
  );
6774
- s.innerHTML = ul(t), this.applyCodeStyles(s), this.autoScroll && this.scrollRef.value.scrollIntoView();
6739
+ s.innerHTML = ll(t), this.applyCodeStyles(s), this.autoScroll && this.scrollRef.value.scrollIntoView();
6775
6740
  }
6776
6741
  // Apply white-space: pre-wrap to <code> elements
6777
6742
  applyCodeStyles(e) {
@@ -6793,7 +6758,7 @@ const ir = class ir extends M {
6793
6758
  `;
6794
6759
  }
6795
6760
  };
6796
- ir.styles = [
6761
+ rr.styles = [
6797
6762
  Y`
6798
6763
  :host {
6799
6764
  box-sizing: border-box;
@@ -6834,19 +6799,19 @@ ir.styles = [
6834
6799
  }
6835
6800
  `
6836
6801
  ];
6837
- let Lt = ir;
6838
- Xo([
6802
+ let Ct = rr;
6803
+ Zo([
6839
6804
  C({ attribute: !1 })
6840
- ], Lt.prototype, "message");
6841
- Xo([
6805
+ ], Ct.prototype, "message");
6806
+ Zo([
6842
6807
  z()
6843
- ], Lt.prototype, "showLightbox");
6844
- var Ah = Object.defineProperty, Eh = (n, e, t, s) => {
6808
+ ], Ct.prototype, "showLightbox");
6809
+ var _h = Object.defineProperty, Sh = (n, e, t, s) => {
6845
6810
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
6846
6811
  (o = n[i]) && (r = o(e, t, r) || r);
6847
- return r && Ah(e, t, r), r;
6812
+ return r && _h(e, t, r), r;
6848
6813
  };
6849
- const or = class or extends M {
6814
+ const ir = class ir extends M {
6850
6815
  constructor() {
6851
6816
  super(...arguments), this.escapeListener = (e) => {
6852
6817
  e.key === "Escape" && this.closeLightbox();
@@ -6883,13 +6848,13 @@ const or = class or extends M {
6883
6848
  @keydown=${this.handleKeyDown}
6884
6849
  >
6885
6850
  <button class="close" @click=${this.closeLightbox}>
6886
- <telia-icon svg=${Ul.svg} size="lg"></telia-icon>
6851
+ <telia-icon svg=${Nl.svg} size="lg"></telia-icon>
6887
6852
  </button>
6888
6853
  <img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
6889
6854
  </div> `;
6890
6855
  }
6891
6856
  };
6892
- or.styles = [
6857
+ ir.styles = [
6893
6858
  Y`
6894
6859
  :focus {
6895
6860
  outline-color: var(--focus-color);
@@ -6930,26 +6895,26 @@ or.styles = [
6930
6895
  }
6931
6896
  `
6932
6897
  ];
6933
- let mn = or;
6934
- Eh([
6898
+ let gn = ir;
6899
+ Sh([
6935
6900
  C({ attribute: !0 })
6936
- ], mn.prototype, "imageUrl");
6937
- var Th = Object.defineProperty, be = (n, e, t, s) => {
6901
+ ], gn.prototype, "imageUrl");
6902
+ var Ah = Object.defineProperty, be = (n, e, t, s) => {
6938
6903
  for (var r = void 0, i = n.length - 1, o; i >= 0; i--)
6939
6904
  (o = n[i]) && (r = o(e, t, r) || r);
6940
- return r && Th(e, t, r), r;
6905
+ return r && Ah(e, t, r), r;
6941
6906
  };
6942
- customElements.get("conversation-entry") || customElements.define("conversation-entry", hn);
6943
- customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Tt);
6944
- customElements.get("conversation-group") || customElements.define("conversation-group", pn);
6945
- customElements.get("ace-typing-state") || customElements.define("ace-typing-state", vs);
6946
- customElements.get("message-type-html") || customElements.define("message-type-html", dn);
6947
- customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Lt);
6948
- customElements.get("ace-lightbox") || customElements.define("ace-lightbox", mn);
6949
- const Oi = Co(M), ar = class ar extends Oi {
6907
+ customElements.get("conversation-entry") || customElements.define("conversation-entry", un);
6908
+ customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Et);
6909
+ customElements.get("conversation-group") || customElements.define("conversation-group", hn);
6910
+ customElements.get("ace-typing-state") || customElements.define("ace-typing-state", gs);
6911
+ customElements.get("message-type-html") || customElements.define("message-type-html", pn);
6912
+ customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Ct);
6913
+ customElements.get("ace-lightbox") || customElements.define("ace-lightbox", gn);
6914
+ const Li = Eo(M), or = class or extends Li {
6950
6915
  constructor() {
6951
- super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = ie(), this.conversationFeedRef = ie(), this.formRef = ie(), this.inputRef = ie(), this.scrollRef = ie(), this.counterRef = ie(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new uu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new te("waiting"), this.stateMachine = new pu(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
6952
- Qe((e) => e ? e == null ? void 0 : e.provider$ : os(null))
6916
+ super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.isMuted = !1, this.conversationContentRef = ie(), this.conversationFeedRef = ie(), this.formRef = ie(), this.inputRef = ie(), this.scrollRef = ie(), this.counterRef = ie(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new lu(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new te("waiting"), this.stateMachine = new uu(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
6917
+ Qe((e) => e ? e == null ? void 0 : e.provider$ : rs(null))
6953
6918
  ), this.userTyping$ = new U();
6954
6919
  }
6955
6920
  async connectedCallback() {
@@ -6959,20 +6924,20 @@ const Oi = Co(M), ar = class ar extends Oi {
6959
6924
  );
6960
6925
  this.platform = e || null;
6961
6926
  const t = this.application.trigger;
6962
- t && t.widgetActive$.pipe(ls(t.componentIsDestroyed$)).subscribe((s) => {
6927
+ t && t.widgetActive$.pipe(os(t.componentIsDestroyed$)).subscribe((s) => {
6963
6928
  const r = this.conversationContentRef.value;
6964
6929
  r && (s ? r.scrollTop = this.chatCurrentScrollPosition : this.chatCurrentScrollPosition = r.scrollTop);
6965
- }), this.stateSubscription = Qa([
6930
+ }), this.stateSubscription = Ka([
6966
6931
  this.stateMachine.entries(),
6967
6932
  this.stateMachine.isTyping()
6968
6933
  ]).subscribe(([s, r]) => {
6969
6934
  this.entries = s, this.typing = r;
6970
- }), this.userSubmitSubscription = tn(
6935
+ }), this.userSubmitSubscription = en(
6971
6936
  this,
6972
6937
  "user-submit"
6973
- ).pipe(cs(this.provider$)).subscribe(([s, r]) => {
6938
+ ).pipe(as(this.provider$)).subscribe(([s, r]) => {
6974
6939
  r && r.onUserSubmit(s.detail);
6975
- }), this._addHeaderOptions(), this.provider$.pipe(cs(this.provider$)).subscribe(([s, r]) => {
6940
+ }), this._addHeaderOptions(), this.provider$.pipe(as(this.provider$)).subscribe(([s, r]) => {
6976
6941
  r && r.showChatOverlay$.pipe().subscribe((i) => {
6977
6942
  this.chatOverlayActive = i;
6978
6943
  });
@@ -7063,11 +7028,11 @@ const Oi = Co(M), ar = class ar extends Oi {
7063
7028
  return;
7064
7029
  const t = this.application.texts, s = t.getOrFallback("conversation.mute", "Mute"), r = t.getOrFallback("conversation.unmute", "Unmute"), i = e.addOption({
7065
7030
  label: this.isMuted ? r : s,
7066
- icon: this.isMuted ? Yr.svg : Xr.svg,
7031
+ icon: this.isMuted ? Zr.svg : Yr.svg,
7067
7032
  closeOnClick: !1,
7068
7033
  datatestid: "options-mute-button",
7069
7034
  onClick: () => {
7070
- this.isMuted ? (this.isMuted = !1, this.application.unmute(), i.updateLabel(s), i.updateIcon(Xr.svg)) : (this.isMuted = !0, this.application.mute(), i.updateLabel(r), i.updateIcon(Yr.svg));
7035
+ this.isMuted ? (this.isMuted = !1, this.application.unmute(), i.updateLabel(s), i.updateIcon(Yr.svg)) : (this.isMuted = !0, this.application.mute(), i.updateLabel(r), i.updateIcon(Zr.svg));
7071
7036
  }
7072
7037
  });
7073
7038
  }
@@ -7097,7 +7062,7 @@ const Oi = Co(M), ar = class ar extends Oi {
7097
7062
  providerOptions: t
7098
7063
  }
7099
7064
  });
7100
- return this.dispatchEvent(s), s.detail.complete || Ot;
7065
+ return this.dispatchEvent(s), s.detail.complete || Rt;
7101
7066
  }
7102
7067
  firstUpdated() {
7103
7068
  this.isMuted = this.application.storage.get("muteAudioNotifications") ?? !1;
@@ -7122,7 +7087,7 @@ const Oi = Co(M), ar = class ar extends Oi {
7122
7087
  class="overlay-button"
7123
7088
  @click=${() => this.chatOverlayActive = !1}
7124
7089
  >
7125
- <telia-icon svg=${Dl.svg}></telia-icon>
7090
+ <telia-icon svg=${Ml.svg}></telia-icon>
7126
7091
  </button>
7127
7092
  </div>` : x}
7128
7093
  <div
@@ -7178,7 +7143,7 @@ const Oi = Co(M), ar = class ar extends Oi {
7178
7143
  title=${e.getOrFallback("conversation.send-alt", "Send")}
7179
7144
  ?disabled=${this.disabledSubmit}
7180
7145
  >
7181
- <telia-icon svg=${Hl.svg}></telia-icon>
7146
+ <telia-icon svg=${Ul.svg}></telia-icon>
7182
7147
  </button>
7183
7148
  <span class="counter" ${oe(this.counterRef)}>
7184
7149
  ${this.textAreaLength} / ${this.messageMaxLength}</span
@@ -7197,8 +7162,8 @@ const Oi = Co(M), ar = class ar extends Oi {
7197
7162
  </div>`;
7198
7163
  }
7199
7164
  };
7200
- ar.styles = [
7201
- Oi.styles || [],
7165
+ or.styles = [
7166
+ Li.styles || [],
7202
7167
  Y`
7203
7168
  :host {
7204
7169
  font-family: var(--font-family);
@@ -7483,7 +7448,7 @@ ar.styles = [
7483
7448
  }
7484
7449
  `
7485
7450
  ];
7486
- let K = ar;
7451
+ let K = or;
7487
7452
  be([
7488
7453
  z()
7489
7454
  ], K.prototype, "message");
@@ -7511,20 +7476,20 @@ be([
7511
7476
  be([
7512
7477
  z()
7513
7478
  ], K.prototype, "typing");
7514
- const Ch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7479
+ const Eh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7515
7480
  __proto__: null,
7516
7481
  Conversation: K,
7517
7482
  default: K
7518
7483
  }, Symbol.toStringTag, { value: "Module" }));
7519
7484
  export {
7520
- pl as Agent,
7485
+ ul as Agent,
7521
7486
  K as Conversation,
7522
- Rh as ConversationComponent,
7523
- $n as ConversationEntry,
7487
+ Ch as ConversationComponent,
7488
+ bn as ConversationEntry,
7524
7489
  we as ConversationMessageType,
7525
- Pi as ConversationPlatform,
7526
- Ih as ConversationProvider,
7527
- dl as User,
7528
- Oh as findPlainTextLinks,
7529
- ul as truncateLongLinks
7490
+ Oi as ConversationPlatform,
7491
+ Rh as ConversationProvider,
7492
+ hl as User,
7493
+ Lh as findPlainTextLinks,
7494
+ ll as truncateLongLinks
7530
7495
  };