@telia-ace/ace-chat-flamingo 1.1.123-rc.18 → 1.1.123-rc.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -152,8 +152,8 @@ function ml(n, e, t) {
152
152
  }
153
153
  function a(g, m) {
154
154
  i[g] && (s[g] = function($) {
155
- return new Promise(function(ye, le) {
156
- r.push([g, $, ye, le]) > 1 || c(g, $);
155
+ return new Promise(function($e, le) {
156
+ r.push([g, $, $e, le]) > 1 || c(g, $);
157
157
  });
158
158
  }, m && (s[g] = m(s[g])));
159
159
  }
@@ -335,14 +335,14 @@ function Ro(n) {
335
335
  }
336
336
  function En() {
337
337
  }
338
- function xn(n) {
338
+ function wn(n) {
339
339
  n();
340
340
  }
341
341
  var es = (function(n) {
342
342
  Ie(e, n);
343
343
  function e(t) {
344
344
  var i = n.call(this) || this;
345
- return i.isStopped = !1, t ? (i.destination = t, Lo(t) && t.add(i)) : i.destination = wl, i;
345
+ return i.isStopped = !1, t ? (i.destination = t, Lo(t) && t.add(i)) : i.destination = xl, i;
346
346
  }
347
347
  return e.create = function(t, i, s) {
348
348
  return new Ri(t, i, s);
@@ -415,13 +415,13 @@ var es = (function(n) {
415
415
  function mn(n) {
416
416
  Ro(n);
417
417
  }
418
- function xl(n) {
418
+ function wl(n) {
419
419
  throw n;
420
420
  }
421
- var wl = {
421
+ var xl = {
422
422
  closed: !0,
423
423
  next: En,
424
- error: xl,
424
+ error: wl,
425
425
  complete: En
426
426
  }, ts = (function() {
427
427
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
@@ -445,7 +445,7 @@ var F = (function() {
445
445
  return t.source = this, t.operator = e, t;
446
446
  }, n.prototype.subscribe = function(e, t, i) {
447
447
  var s = this, r = Cl(e) ? e : new Ri(e, t, i);
448
- return xn(function() {
448
+ return wn(function() {
449
449
  var o = s, a = o.operator, c = o.source;
450
450
  r.add(a ? a.call(r, c) : c ? s._subscribe(r) : s._trySubscribe(r));
451
451
  }), r;
@@ -522,7 +522,7 @@ function re(n) {
522
522
  throw new TypeError("Unable to lift unknown Observable type");
523
523
  };
524
524
  }
525
- function Z(n, e, t, i, s) {
525
+ function Q(n, e, t, i, s) {
526
526
  return new _l(n, e, t, i, s);
527
527
  }
528
528
  var _l = (function(n) {
@@ -578,7 +578,7 @@ var _l = (function(n) {
578
578
  throw new Al();
579
579
  }, e.prototype.next = function(t) {
580
580
  var i = this;
581
- xn(function() {
581
+ wn(function() {
582
582
  var s, r;
583
583
  if (i._throwIfClosed(), !i.isStopped) {
584
584
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
@@ -600,7 +600,7 @@ var _l = (function(n) {
600
600
  });
601
601
  }, e.prototype.error = function(t) {
602
602
  var i = this;
603
- xn(function() {
603
+ wn(function() {
604
604
  if (i._throwIfClosed(), !i.isStopped) {
605
605
  i.hasError = i.isStopped = !0, i.thrownError = t;
606
606
  for (var s = i.observers; s.length; )
@@ -609,7 +609,7 @@ var _l = (function(n) {
609
609
  });
610
610
  }, e.prototype.complete = function() {
611
611
  var t = this;
612
- xn(function() {
612
+ wn(function() {
613
613
  if (t._throwIfClosed(), !t.isStopped) {
614
614
  t.isStopped = !0;
615
615
  for (var i = t.observers; i.length; )
@@ -978,7 +978,7 @@ function Ue(n, e, t, i, s) {
978
978
  }
979
979
  function Bo(n, e) {
980
980
  return e === void 0 && (e = 0), re(function(t, i) {
981
- t.subscribe(Z(i, function(s) {
981
+ t.subscribe(Q(i, function(s) {
982
982
  return Ue(i, n, function() {
983
983
  return i.next(s);
984
984
  }, e);
@@ -1079,7 +1079,7 @@ function Ii() {
1079
1079
  function _n(n, e) {
1080
1080
  return re(function(t, i) {
1081
1081
  var s = 0;
1082
- t.subscribe(Z(i, function(r) {
1082
+ t.subscribe(Q(i, function(r) {
1083
1083
  i.next(n.call(e, r, s++));
1084
1084
  }));
1085
1085
  });
@@ -1136,7 +1136,7 @@ function sc(n, e, t) {
1136
1136
  for (var s = n.length, r = new Array(s), o = s, a = s, c = function(u) {
1137
1137
  Ar(e, function() {
1138
1138
  var p = Ye(n[u], e), d = !1;
1139
- p.subscribe(Z(i, function(g) {
1139
+ p.subscribe(Q(i, function(g) {
1140
1140
  r[u] = g, d || (d = !0, a--), a || i.next(t(r.slice()));
1141
1141
  }, function() {
1142
1142
  --o || i.complete();
@@ -1157,13 +1157,13 @@ function rc(n, e, t, i, s, r, o, a) {
1157
1157
  return l < i ? m($) : c.push($);
1158
1158
  }, m = function($) {
1159
1159
  l++;
1160
- var ye = !1;
1161
- oe(t($, u++)).subscribe(Z(e, function(le) {
1160
+ var $e = !1;
1161
+ oe(t($, u++)).subscribe(Q(e, function(le) {
1162
1162
  e.next(le);
1163
1163
  }, function() {
1164
- ye = !0;
1164
+ $e = !0;
1165
1165
  }, void 0, function() {
1166
- if (ye)
1166
+ if ($e)
1167
1167
  try {
1168
1168
  l--;
1169
1169
  for (var le = function() {
@@ -1177,7 +1177,7 @@ function rc(n, e, t, i, s, r, o, a) {
1177
1177
  }
1178
1178
  }));
1179
1179
  };
1180
- return n.subscribe(Z(e, g, function() {
1180
+ return n.subscribe(Q(e, g, function() {
1181
1181
  p = !0, d();
1182
1182
  })), function() {
1183
1183
  };
@@ -1247,10 +1247,10 @@ function fc() {
1247
1247
  var t = is(n), i = Pl(n, 1 / 0), s = n;
1248
1248
  return s.length ? s.length === 1 ? oe(s[0]) : oc(i)(Ye(s, t)) : tt;
1249
1249
  }
1250
- function J(n, e) {
1250
+ function W(n, e) {
1251
1251
  return re(function(t, i) {
1252
1252
  var s = 0;
1253
- t.subscribe(Z(i, function(r) {
1253
+ t.subscribe(Q(i, function(r) {
1254
1254
  return n.call(e, r, s++) && i.next(r);
1255
1255
  }));
1256
1256
  });
@@ -1258,7 +1258,7 @@ function J(n, e) {
1258
1258
  function Pi(n) {
1259
1259
  return re(function(e, t) {
1260
1260
  var i = null, s = !1, r;
1261
- i = e.subscribe(Z(t, void 0, void 0, function(o) {
1261
+ i = e.subscribe(Q(t, void 0, void 0, function(o) {
1262
1262
  r = oe(n(o, Pi(n)(e))), i ? (i.unsubscribe(), i = null, r.subscribe(t)) : s = !0;
1263
1263
  })), s && (i.unsubscribe(), i = null, r.subscribe(t));
1264
1264
  });
@@ -1266,12 +1266,12 @@ function Pi(n) {
1266
1266
  function mi(n, e) {
1267
1267
  return E(e) ? qt(n, e, 1) : qt(n, 1);
1268
1268
  }
1269
- function Ee(n) {
1269
+ function me(n) {
1270
1270
  return n <= 0 ? function() {
1271
1271
  return tt;
1272
1272
  } : re(function(e, t) {
1273
1273
  var i = 0;
1274
- e.subscribe(Z(t, function(s) {
1274
+ e.subscribe(Q(t, function(s) {
1275
1275
  ++i <= n && (t.next(s), n <= i && t.complete());
1276
1276
  }));
1277
1277
  });
@@ -1287,7 +1287,7 @@ function vi(n) {
1287
1287
  t != null || c();
1288
1288
  }, c = function() {
1289
1289
  var l = !1;
1290
- o = i.subscribe(Z(s, void 0, function() {
1290
+ o = i.subscribe(Q(s, void 0, function() {
1291
1291
  ++r < e ? o ? a() : l = !0 : s.complete();
1292
1292
  })), l && a();
1293
1293
  };
@@ -1299,10 +1299,10 @@ function Oe(n, e) {
1299
1299
  var s = null, r = 0, o = !1, a = function() {
1300
1300
  return o && !s && i.complete();
1301
1301
  };
1302
- t.subscribe(Z(i, function(c) {
1302
+ t.subscribe(Q(i, function(c) {
1303
1303
  s == null || s.unsubscribe();
1304
1304
  var l = 0, u = r++;
1305
- oe(n(c, u)).subscribe(s = Z(i, function(p) {
1305
+ oe(n(c, u)).subscribe(s = Q(i, function(p) {
1306
1306
  return i.next(e ? e(c, p, u, l++) : p);
1307
1307
  }, function() {
1308
1308
  s = null, a();
@@ -1314,7 +1314,7 @@ function Oe(n, e) {
1314
1314
  }
1315
1315
  function z(n) {
1316
1316
  return re(function(e, t) {
1317
- oe(n).subscribe(Z(t, function() {
1317
+ oe(n).subscribe(Q(t, function() {
1318
1318
  return t.complete();
1319
1319
  }, En)), !t.closed && e.subscribe(t);
1320
1320
  });
@@ -1325,7 +1325,7 @@ function gc(n, e, t) {
1325
1325
  var o;
1326
1326
  (o = i.subscribe) === null || o === void 0 || o.call(i);
1327
1327
  var a = !0;
1328
- s.subscribe(Z(r, function(c) {
1328
+ s.subscribe(Q(r, function(c) {
1329
1329
  var l;
1330
1330
  (l = i.next) === null || l === void 0 || l.call(i, c), r.next(c);
1331
1331
  }, function() {
@@ -1348,12 +1348,12 @@ function Mi() {
1348
1348
  for (var r = n.length, o = new Array(r), a = n.map(function() {
1349
1349
  return !1;
1350
1350
  }), c = !1, l = function(p) {
1351
- oe(n[p]).subscribe(Z(s, function(d) {
1351
+ oe(n[p]).subscribe(Q(s, function(d) {
1352
1352
  o[p] = d, !c && !a[p] && (a[p] = !0, (c = a.every(Ct)) && (a = null));
1353
1353
  }, En));
1354
1354
  }, u = 0; u < r; u++)
1355
1355
  l(u);
1356
- i.subscribe(Z(s, function(p) {
1356
+ i.subscribe(Q(s, function(p) {
1357
1357
  if (c) {
1358
1358
  var d = Xe([p], ze(o));
1359
1359
  s.next(t ? t.apply(void 0, Xe([], ze(d))) : d);
@@ -1534,12 +1534,12 @@ class $c {
1534
1534
  return this.print$.asObservable();
1535
1535
  }
1536
1536
  }
1537
- class xc {
1537
+ class wc {
1538
1538
  constructor(e, t) {
1539
1539
  this.name = e, this.component = t, this.print$ = new P(), this.typingState$ = new he(!1), this.complete$ = new P(), this.system = this.createSystem(), this.rehydrate$ = new P(), this.saveToCurrentSession$ = new P(), this.showChatOverlay$ = new he(!1), this.onComplete = () => this.complete$.asObservable();
1540
1540
  }
1541
1541
  connect(e = {}) {
1542
- this.complete$.pipe(Ee(1)).subscribe(() => {
1542
+ this.complete$.pipe(me(1)).subscribe(() => {
1543
1543
  this.disconnected();
1544
1544
  });
1545
1545
  }
@@ -1616,7 +1616,7 @@ class xc {
1616
1616
  * Copyright 2019 Google LLC
1617
1617
  * SPDX-License-Identifier: BSD-3-Clause
1618
1618
  */
1619
- const wn = globalThis, os = wn.ShadowRoot && (wn.ShadyCSS === void 0 || wn.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, as = Symbol(), Lr = /* @__PURE__ */ new WeakMap();
1619
+ const xn = globalThis, os = xn.ShadowRoot && (xn.ShadyCSS === void 0 || xn.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, as = Symbol(), Lr = /* @__PURE__ */ new WeakMap();
1620
1620
  let Yo = class {
1621
1621
  constructor(e, t, i) {
1622
1622
  if (this._$cssResult$ = !0, i !== as) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -1635,7 +1635,7 @@ let Yo = class {
1635
1635
  return this.cssText;
1636
1636
  }
1637
1637
  };
1638
- const wc = (n) => new Yo(typeof n == "string" ? n : n + "", void 0, as), L = (n, ...e) => {
1638
+ const xc = (n) => new Yo(typeof n == "string" ? n : n + "", void 0, as), L = (n, ...e) => {
1639
1639
  const t = n.length === 1 ? n[0] : e.reduce(((i, s, r) => i + ((o) => {
1640
1640
  if (o._$cssResult$ === !0) return o.cssText;
1641
1641
  if (typeof o == "number") return o;
@@ -1645,13 +1645,13 @@ const wc = (n) => new Yo(typeof n == "string" ? n : n + "", void 0, as), L = (n,
1645
1645
  }, kc = (n, e) => {
1646
1646
  if (os) n.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
1647
1647
  else for (const t of e) {
1648
- const i = document.createElement("style"), s = wn.litNonce;
1648
+ const i = document.createElement("style"), s = xn.litNonce;
1649
1649
  s !== void 0 && i.setAttribute("nonce", s), i.textContent = t.cssText, n.appendChild(i);
1650
1650
  }
1651
1651
  }, Rr = os ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
1652
1652
  let t = "";
1653
1653
  for (const i of e.cssRules) t += i.cssText;
1654
- return wc(t);
1654
+ return xc(t);
1655
1655
  })(n) : n;
1656
1656
  /**
1657
1657
  * @license
@@ -1899,7 +1899,7 @@ ht.elementStyles = [], ht.shadowRootOptions = { mode: "open" }, ht[zt("elementPr
1899
1899
  */
1900
1900
  const Ht = globalThis, On = Ht.trustedTypes, Mr = On ? On.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Qo = "$lit$", Me = `lit$${Math.random().toFixed(9).slice(2)}$`, Xo = "?" + Me, Lc = `<${Xo}>`, Ke = document, Vt = () => Ke.createComment(""), Wt = (n) => n === null || typeof n != "object" && typeof n != "function", cs = Array.isArray, Rc = (n) => cs(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", yi = `[
1901
1901
  \f\r]`, Lt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Nr = /-->/g, Ur = />/g, Ve = RegExp(`>|${yi}(?:([^\\s"'>=/]+)(${yi}*=${yi}*(?:[^
1902
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Dr = /'/g, zr = /"/g, Ko = /^(?:script|style|textarea|title)$/i, Ic = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = Ic(1), Le = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), Hr = /* @__PURE__ */ new WeakMap(), Ge = Ke.createTreeWalker(Ke, 129);
1902
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Dr = /'/g, zr = /"/g, Ko = /^(?:script|style|textarea|title)$/i, Ic = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = Ic(1), Le = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), Hr = /* @__PURE__ */ new WeakMap(), Ge = Ke.createTreeWalker(Ke, 129);
1903
1903
  function Jo(n, e) {
1904
1904
  if (!cs(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
1905
1905
  return Mr !== void 0 ? Mr.createHTML(e) : e;
@@ -1994,7 +1994,7 @@ class nn {
1994
1994
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
1995
1995
  }
1996
1996
  constructor(e, t, i, s) {
1997
- this.type = 2, this._$AH = x, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
1997
+ this.type = 2, this._$AH = w, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = i, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
1998
1998
  }
1999
1999
  get parentNode() {
2000
2000
  let e = this._$AA.parentNode;
@@ -2008,7 +2008,7 @@ class nn {
2008
2008
  return this._$AB;
2009
2009
  }
2010
2010
  _$AI(e, t = this) {
2011
- e = $t(this, e, t), Wt(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== Le && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Rc(e) ? this.k(e) : this._(e);
2011
+ e = $t(this, e, t), Wt(e) ? e === w || e == null || e === "" ? (this._$AH !== w && this._$AR(), this._$AH = w) : e !== this._$AH && e !== Le && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Rc(e) ? this.k(e) : this._(e);
2012
2012
  }
2013
2013
  O(e) {
2014
2014
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -2017,7 +2017,7 @@ class nn {
2017
2017
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
2018
2018
  }
2019
2019
  _(e) {
2020
- this._$AH !== x && Wt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Ke.createTextNode(e)), this._$AH = e;
2020
+ this._$AH !== w && Wt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Ke.createTextNode(e)), this._$AH = e;
2021
2021
  }
2022
2022
  $(e) {
2023
2023
  var r;
@@ -2059,7 +2059,7 @@ class Zn {
2059
2059
  return this._$AM._$AU;
2060
2060
  }
2061
2061
  constructor(e, t, i, s, r) {
2062
- this.type = 1, this._$AH = x, this._$AN = void 0, this.element = e, this.name = t, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = x;
2062
+ this.type = 1, this._$AH = w, this._$AN = void 0, this.element = e, this.name = t, this._$AM = s, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = w;
2063
2063
  }
2064
2064
  _$AI(e, t = this, i, s) {
2065
2065
  const r = this.strings;
@@ -2068,12 +2068,12 @@ class Zn {
2068
2068
  else {
2069
2069
  const a = e;
2070
2070
  let c, l;
2071
- for (e = r[0], c = 0; c < r.length - 1; c++) l = $t(this, a[i + c], t, c), l === Le && (l = this._$AH[c]), o || (o = !Wt(l) || l !== this._$AH[c]), l === x ? e = x : e !== x && (e += (l ?? "") + r[c + 1]), this._$AH[c] = l;
2071
+ for (e = r[0], c = 0; c < r.length - 1; c++) l = $t(this, a[i + c], t, c), l === Le && (l = this._$AH[c]), o || (o = !Wt(l) || l !== this._$AH[c]), l === w ? e = w : e !== w && (e += (l ?? "") + r[c + 1]), this._$AH[c] = l;
2072
2072
  }
2073
2073
  o && !s && this.j(e);
2074
2074
  }
2075
2075
  j(e) {
2076
- e === x ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2076
+ e === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
2077
2077
  }
2078
2078
  }
2079
2079
  let Nc = class extends Zn {
@@ -2081,7 +2081,7 @@ let Nc = class extends Zn {
2081
2081
  super(...arguments), this.type = 3;
2082
2082
  }
2083
2083
  j(e) {
2084
- this.element[this.name] = e === x ? void 0 : e;
2084
+ this.element[this.name] = e === w ? void 0 : e;
2085
2085
  }
2086
2086
  };
2087
2087
  class Uc extends Zn {
@@ -2089,7 +2089,7 @@ class Uc extends Zn {
2089
2089
  super(...arguments), this.type = 4;
2090
2090
  }
2091
2091
  j(e) {
2092
- this.element.toggleAttribute(this.name, !!e && e !== x);
2092
+ this.element.toggleAttribute(this.name, !!e && e !== w);
2093
2093
  }
2094
2094
  }
2095
2095
  class Dc extends Zn {
@@ -2097,8 +2097,8 @@ class Dc extends Zn {
2097
2097
  super(e, t, i, s, r), this.type = 5;
2098
2098
  }
2099
2099
  _$AI(e, t = this) {
2100
- if ((e = $t(this, e, t, 0) ?? x) === Le) return;
2101
- const i = this._$AH, s = e === x && i !== x || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, r = e !== x && (i === x || s);
2100
+ if ((e = $t(this, e, t, 0) ?? w) === Le) return;
2101
+ const i = this._$AH, s = e === w && i !== w || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, r = e !== w && (i === w || s);
2102
2102
  s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
2103
2103
  }
2104
2104
  handleEvent(e) {
@@ -2161,8 +2161,8 @@ let A = class extends ht {
2161
2161
  };
2162
2162
  var _o;
2163
2163
  A._$litElement$ = !0, A.finalized = !0, (_o = Qe.litElementHydrateSupport) == null || _o.call(Qe, { LitElement: A });
2164
- const xi = Qe.litElementPolyfillSupport;
2165
- xi == null || xi({ LitElement: A });
2164
+ const wi = Qe.litElementPolyfillSupport;
2165
+ wi == null || wi({ LitElement: A });
2166
2166
  (Qe.litElementVersions ?? (Qe.litElementVersions = [])).push("4.2.1");
2167
2167
  const Fc = { 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>' }, ta = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M52 7H24C19.5838 7.00505 16.0051 10.5838 16 15V23H12C7.58382 23.0051 4.00505 26.5838 4 31V43C4.00505 47.4162 7.58382 50.9949 12 51H19.1699L24.8789 56.7075C25.737 57.5654 27.0273 57.8219 28.1482 57.3575C29.2692 56.8931 30 55.7993 30 54.5859V51H39.999C44.4152 50.995 47.994 47.4162 47.999 43V35H52C56.4162 34.9949 59.9949 31.4162 60 27V15C59.9949 10.5838 56.4162 7.00505 52 7ZM43.999 43C43.9967 45.2082 42.2072 46.9977 39.999 47H26V52.1724L20.8262 47H12C9.79184 46.9976 8.00235 45.2082 8 43V31C8.00235 28.7918 9.79184 27.0024 12 27H16C16.0051 31.4162 19.5838 34.9949 24 35H30V38.5859C29.999 39.7998 30.7298 40.8945 31.8512 41.359C32.9726 41.8236 34.2634 41.5664 35.1211 40.7075L40.8291 35H43.999V43ZM56 27C55.9977 29.2082 54.2082 30.9976 52 31H39.1729L34 36.1719V31H24C21.7918 30.9976 20.0024 29.2082 20 27V15C20.0024 12.7918 21.7918 11.0024 24 11H52C54.2082 11.0024 55.9977 12.7918 56 15V27Z"/></svg>' }, jc = { 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>' }, na = { 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>' }, Bc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M57.5438 13.4967L28.717 50.5596C27.9537 51.5407 26.8061 52.147 25.5654 52.2248C25.4755 52.2301 25.3856 52.2332 25.2967 52.2332C24.1476 52.233 23.0455 51.7763 22.233 50.9637L6.63458 35.3654C6.08729 34.8181 5.87354 34.0204 6.07387 33.2728C6.27419 32.5252 6.85815 31.9412 7.60577 31.7409C8.35339 31.5406 9.15109 31.7543 9.69838 32.3016L25.2967 47.8999L54.1225 10.837C54.5976 10.2258 55.3626 9.91453 56.1295 10.0204C56.8963 10.1263 57.5484 10.6332 57.8402 11.3502C58.1319 12.0673 58.0189 12.8855 57.5438 13.4967Z"/></svg>' }, ia = { 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>' }, qc = { 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>' }, us = { 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.365 48.3012C51.9123 48.8485 52.1261 49.6462 51.9258 50.3939C51.7254 51.1415 51.1415 51.7254 50.3939 51.9258C49.6462 52.1261 48.8485 51.9123 48.3012 51.365L32.4998 35.5636L16.6984 51.365C16.1511 51.9123 15.3534 52.1261 14.6058 51.9258C13.8581 51.7254 13.2742 51.1415 13.0739 50.3939C12.8735 49.6462 13.0873 48.8485 13.6346 48.3012L29.436 32.4998L13.6346 16.6984C13.0873 16.1511 12.8735 15.3534 13.0739 14.6058C13.2742 13.8581 13.8581 13.2742 14.6058 13.0739C15.3534 12.8735 16.1511 13.0873 16.6984 13.6346L32.4998 29.436L48.3012 13.6346C49.1473 12.7885 50.519 12.7885 51.365 13.6346C52.2111 14.4806 52.2111 15.8523 51.365 16.6984L35.5636 32.4998L51.365 48.3012Z"/></svg>' }, Vc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M58.2618 43.8838L38.8585 11.5469C37.4136 9.13651 34.8097 7.66134 31.9994 7.66113C29.1891 7.66093 26.585 9.13572 25.1397 11.5459L5.73642 43.8838C4.25367 46.3552 4.21482 49.4331 5.6347 51.9411C7.05459 54.4492 9.71372 55.9997 12.5958 56H51.4024C54.2845 55.9997 56.9436 54.4492 58.3635 51.9411C59.7834 49.4331 59.7446 46.3552 58.2618 43.8838ZM29.9991 36.9772V25.1569C29.9983 24.6198 30.1056 24.0879 30.3148 23.5932C30.486 23.1496 30.753 22.7494 31.0968 22.4209C31.339 22.1704 31.6666 22.0202 32.0145 22C32.5161 22 33.0173 22.3805 33.5182 23.1416C33.7901 23.4771 33.9573 23.8852 33.9991 24.3151V36.1354C33.9991 36.5759 33.6932 36.9969 33.0814 37.3982C32.4994 37.7897 31.814 37.9988 31.1126 37.999C30.3712 37.999 30 37.6584 29.9991 36.9772ZM34.2408 43.9236C34.173 43.4297 33.9757 42.9626 33.669 42.5696C33.1076 41.7469 32.566 41.3355 32.0444 41.3355C31.6396 41.354 31.2573 41.5266 30.9757 41.8179C30.593 42.1852 30.2954 42.6319 30.1039 43.1266C29.874 43.6743 29.7562 44.2625 29.7574 44.8565C29.7574 45.6189 30.1786 46 31.0208 46C31.8022 46.0001 32.5662 45.7697 33.2173 45.3377C33.8996 44.8957 34.2408 44.4243 34.2408 43.9236Z"/></svg>' }, zi = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M59.9139 23.8477V7.90923C59.902 5.75094 58.1522 4.00588 55.9939 4H40.0554C38.8659 4 37.9016 4.96431 37.9016 6.15385C37.9016 7.34338 38.8659 8.30769 40.0554 8.30769H52.4616L29.8462 30.9231C29.4417 31.3271 29.2145 31.8753 29.2145 32.4469C29.2145 33.0186 29.4417 33.5668 29.8462 33.9708C30.2394 34.3609 30.7677 34.5846 31.3216 34.5954C31.8941 34.5987 32.4443 34.3739 32.8508 33.9708L55.6062 11.2046V23.8477C55.6062 25.0372 56.5705 26.0015 57.76 26.0015C58.9495 26.0015 59.9139 25.0372 59.9139 23.8477Z"/><path d="M12.217 60H47.4001C51.9189 59.9942 55.5874 56.3449 55.617 51.8262V38.4615C55.617 37.272 54.6527 36.3077 53.4631 36.3077C52.2736 36.3077 51.3093 37.272 51.3093 38.4615V51.7831C51.3034 53.9396 49.5566 55.6864 47.4001 55.6923H12.217C10.0771 55.6866 8.33714 53.9659 8.30776 51.8262V16.5569C8.29914 15.5145 8.7072 14.5119 9.44126 13.7718C10.1753 13.0316 11.1746 12.6153 12.217 12.6154H25.5385C26.7281 12.6154 27.6924 11.6511 27.6924 10.4615C27.6924 9.272 26.7281 8.30769 25.5385 8.30769H12.217C10.0321 8.30767 7.9372 9.17782 6.39529 10.7258C4.85339 12.2738 3.99147 14.3721 4.00006 16.5569V51.8262C4.02963 56.3449 7.6981 59.9942 12.217 60Z"/></svg>' }, Fr = { 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>' }, Wc = { 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>' }, sa = { 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>' }, jr = { 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>' }, Gc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M27.2561 39.1924C27.3201 40.5364 28.0241 41.1764 29.3681 41.1764C32.1201 41.1764 34.8081 39.3844 34.8721 37.5924L35.8961 12.3764C35.8961 10.6484 35.0001 9.81641 33.1441 9.81641C29.6241 9.81641 25.9761 12.1844 25.9761 14.4244L27.2561 39.1924ZM30.9041 55.3847C28.4081 55.3847 26.0401 51.2247 26.0401 49.6247C26.0401 47.3847 29.6881 45.0167 33.2081 45.0167C35.0641 45.0167 36.0241 45.8487 36.0241 47.5767C36.0241 50.2007 34.8081 52.8887 33.2721 54.2967C32.5041 55.0007 31.7361 55.3847 30.9041 55.3847Z"/></svg>' }, dt = {
2168
2168
  allRenderFn: !1,
@@ -2249,8 +2249,8 @@ const Fc = { svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" f
2249
2249
  attachStyles: !0
2250
2250
  };
2251
2251
  let pt, ra, Yn, oa = !1, Ln = !1, hs = !1, te = !1, Br = null, Hi = !1;
2252
- const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} }, aa = Qn.HTMLElement || class {
2253
- }, Y = {
2252
+ const Qn = typeof window < "u" ? window : {}, ye = Qn.document || { head: {} }, aa = Qn.HTMLElement || class {
2253
+ }, X = {
2254
2254
  $flags$: 0,
2255
2255
  $resourcesUrl$: "",
2256
2256
  jmp: (n) => n(),
@@ -2261,7 +2261,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2261
2261
  }, Zc = /* @__PURE__ */ (() => {
2262
2262
  let n = !1;
2263
2263
  try {
2264
- be.addEventListener("e", null, Object.defineProperty({}, "passive", {
2264
+ ye.addEventListener("e", null, Object.defineProperty({}, "passive", {
2265
2265
  get() {
2266
2266
  n = !0;
2267
2267
  }
@@ -2278,7 +2278,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2278
2278
  })(), la = (n, e, t, i) => {
2279
2279
  t && t.map(([s, r, o]) => {
2280
2280
  const a = Kc(n, s), c = Xc(e, o), l = Jc(s);
2281
- Y.ael(a, r, c, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => Y.rel(a, r, c, l));
2281
+ X.ael(a, r, c, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => X.rel(a, r, c, l));
2282
2282
  });
2283
2283
  }, Xc = (n, e) => (t) => {
2284
2284
  try {
@@ -2286,7 +2286,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2286
2286
  } catch (i) {
2287
2287
  sn(i);
2288
2288
  }
2289
- }, Kc = (n, e) => e & 4 ? be : e & 8 ? Qn : e & 16 ? be.body : n, Jc = (n) => Zc ? {
2289
+ }, Kc = (n, e) => e & 4 ? ye : e & 8 ? Qn : e & 16 ? ye.body : n, Jc = (n) => Zc ? {
2290
2290
  passive: (n & 1) !== 0,
2291
2291
  capture: (n & 2) !== 0
2292
2292
  } : (n & 2) !== 0, qr = "http://www.w3.org/1999/xlink", Je = (n, e = "") => () => {
@@ -2295,11 +2295,11 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2295
2295
  Qc && t ? (i = i || new CSSStyleSheet(), i.replace(e)) : i = e, Pn.set(n, i);
2296
2296
  }, tu = (n, e, t, i) => {
2297
2297
  let s = ca(e, t), r = Pn.get(s);
2298
- if (n = n.nodeType === 11 ? n : be, r)
2298
+ if (n = n.nodeType === 11 ? n : ye, r)
2299
2299
  if (typeof r == "string") {
2300
2300
  n = n.head || n;
2301
2301
  let o = Vr.get(n), a;
2302
- o || Vr.set(n, o = /* @__PURE__ */ new Set()), o.has(s) || (a = be.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(s));
2302
+ o || Vr.set(n, o = /* @__PURE__ */ new Set()), o.has(s) || (a = ye.createElement("style"), a.innerHTML = r, n.insertBefore(a, n.querySelector("link")), o && o.add(s));
2303
2303
  } else n.adoptedStyleSheets.includes(r) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, r]);
2304
2304
  return s;
2305
2305
  }, nu = (n) => {
@@ -2363,7 +2363,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2363
2363
  if (e === "ref")
2364
2364
  i && i(n);
2365
2365
  else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
2366
- e[2] === "-" ? e = e.slice(3) : Kr(Qn, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && Y.rel(n, e, t, !1), i && Y.ael(n, e, i, !1);
2366
+ e[2] === "-" ? e = e.slice(3) : Kr(Qn, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t && X.rel(n, e, t, !1), i && X.ael(n, e, i, !1);
2367
2367
  else {
2368
2368
  const c = ds(i);
2369
2369
  if ((o || c && i !== null) && !s)
@@ -2395,24 +2395,24 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2395
2395
  // slot element does not have fallback content
2396
2396
  1
2397
2397
  ))), s.$text$ !== null)
2398
- o = s.$elm$ = be.createTextNode(s.$text$);
2398
+ o = s.$elm$ = ye.createTextNode(s.$text$);
2399
2399
  else if (s.$flags$ & 1)
2400
- o = s.$elm$ = be.createTextNode("");
2400
+ o = s.$elm$ = ye.createTextNode("");
2401
2401
  else {
2402
- if (te || (te = s.$tag$ === "svg"), o = s.$elm$ = be.createElementNS(te ? su : ru, s.$flags$ & 2 ? "slot-fb" : s.$tag$), te && s.$tag$ === "foreignObject" && (te = !1), ua(null, s, te), ou(pt) && o["s-si"] !== pt && o.classList.add(o["s-si"] = pt), s.$children$)
2402
+ if (te || (te = s.$tag$ === "svg"), o = s.$elm$ = ye.createElementNS(te ? su : ru, s.$flags$ & 2 ? "slot-fb" : s.$tag$), te && s.$tag$ === "foreignObject" && (te = !1), ua(null, s, te), ou(pt) && o["s-si"] !== pt && o.classList.add(o["s-si"] = pt), s.$children$)
2403
2403
  for (r = 0; r < s.$children$.length; ++r)
2404
2404
  a = In(n, s, r, o), a && o.appendChild(a);
2405
2405
  s.$tag$ === "svg" ? te = !1 : o.tagName === "foreignObject" && (te = !0);
2406
2406
  }
2407
2407
  return o["s-hn"] = Yn, s.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ra, o["s-sn"] = s.$name$ || "", c = n && n.$children$ && n.$children$[t], c && c.$tag$ === s.$tag$ && n.$elm$ && Gt(n.$elm$, !1)), o;
2408
2408
  }, Gt = (n, e) => {
2409
- Y.$flags$ |= 1;
2409
+ X.$flags$ |= 1;
2410
2410
  const t = n.childNodes;
2411
2411
  for (let i = t.length - 1; i >= 0; i--) {
2412
2412
  const s = t[i];
2413
2413
  s["s-hn"] !== Yn && s["s-ol"] && (pa(s).insertBefore(s, fs(s)), s["s-ol"].remove(), s["s-ol"] = void 0, hs = !0), e && Gt(s, e);
2414
2414
  }
2415
- Y.$flags$ &= -2;
2415
+ X.$flags$ &= -2;
2416
2416
  }, ha = (n, e, t, i, s, r) => {
2417
2417
  let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
2418
2418
  for (o.shadowRoot && o.tagName === Yn && (o = o.shadowRoot); s <= r; ++s)
@@ -2491,11 +2491,11 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2491
2491
  const t = n.$hostElement$, i = n.$cmpMeta$, s = n.$vnode$ || Rn(null, null), r = au(e) ? e : mt(null, null, e);
2492
2492
  Yn = t.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, n.$vnode$ = r, r.$elm$ = s.$elm$ = t.shadowRoot || t, pt = t["s-sc"], ra = t["s-cr"], oa = (i.$flags$ & 1) !== 0, Ln = !1, ft(s, r);
2493
2493
  {
2494
- if (Y.$flags$ |= 1, hs) {
2494
+ if (X.$flags$ |= 1, hs) {
2495
2495
  ga(r.$elm$);
2496
2496
  let o, a, c, l, u, p, d = 0;
2497
2497
  for (; d < ue.length; d++)
2498
- o = ue[d], a = o.$nodeToRelocate$, a["s-ol"] || (c = be.createTextNode(""), c["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = c, a));
2498
+ o = ue[d], a = o.$nodeToRelocate$, a["s-ol"] || (c = ye.createTextNode(""), c["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = c, a));
2499
2499
  for (d = 0; d < ue.length; d++)
2500
2500
  if (o = ue[d], a = o.$nodeToRelocate$, o.$slotRefNode$) {
2501
2501
  for (l = o.$slotRefNode$.parentNode, u = o.$slotRefNode$.nextSibling, c = a["s-ol"]; c = c.previousSibling; )
@@ -2507,7 +2507,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2507
2507
  } else
2508
2508
  a.nodeType === 1 && (a.hidden = !0);
2509
2509
  }
2510
- Ln && fa(r.$elm$), Y.$flags$ &= -2, ue.length = 0;
2510
+ Ln && fa(r.$elm$), X.$flags$ &= -2, ue.length = 0;
2511
2511
  }
2512
2512
  }, pu = (n) => n, fu = (n, e, t) => {
2513
2513
  const i = pu(n);
@@ -2520,7 +2520,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2520
2520
  })
2521
2521
  };
2522
2522
  }, gu = (n, e, t) => {
2523
- const i = Y.ce(e, t);
2523
+ const i = X.ce(e, t);
2524
2524
  return n.dispatchEvent(i), i;
2525
2525
  }, mu = (n, e) => {
2526
2526
  }, va = (n, e) => (n.$flags$ |= 16, mu(n, n.$ancestorComponent$), Pu(() => vu(n, e))), vu = (n, e) => {
@@ -2549,9 +2549,9 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2549
2549
  } catch (i) {
2550
2550
  sn(i);
2551
2551
  }
2552
- }, Xr = (n, e) => n && n.then ? n.then(e) : e(), xu = (n, e) => n != null && !ds(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, wu = (n, e) => Xn(n).$instanceValues$.get(e), ku = (n, e, t, i) => {
2552
+ }, Xr = (n, e) => n && n.then ? n.then(e) : e(), wu = (n, e) => n != null && !ds(n) ? e & 4 ? n === "false" ? !1 : n === "" || !!n : e & 2 ? parseFloat(n) : e & 1 ? String(n) : n : n, xu = (n, e) => Xn(n).$instanceValues$.get(e), ku = (n, e, t, i) => {
2553
2553
  const s = Xn(n), r = n, o = s.$instanceValues$.get(e), a = s.$flags$, c = r;
2554
- t = xu(t, i.$members$[e][0]);
2554
+ t = wu(t, i.$members$[e][0]);
2555
2555
  const l = Number.isNaN(o) && Number.isNaN(t);
2556
2556
  if (t !== o && !l) {
2557
2557
  s.$instanceValues$.set(e, t);
@@ -2580,7 +2580,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2580
2580
  i.map(([r, [o]]) => {
2581
2581
  (o & 31 || o & 32) && Object.defineProperty(s, r, {
2582
2582
  get() {
2583
- return wu(this, r);
2583
+ return xu(this, r);
2584
2584
  },
2585
2585
  set(a) {
2586
2586
  ku(this, r, a, e);
@@ -2592,7 +2592,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2592
2592
  {
2593
2593
  const r = /* @__PURE__ */ new Map();
2594
2594
  s.attributeChangedCallback = function(o, a, c) {
2595
- Y.jmp(() => {
2595
+ X.jmp(() => {
2596
2596
  const l = r.get(o);
2597
2597
  if (this.hasOwnProperty(l))
2598
2598
  c = this[l], delete this[l];
@@ -2623,7 +2623,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2623
2623
  e.$ancestorComponent$, va(e, !0);
2624
2624
  }, Eu = (n) => {
2625
2625
  }, _u = (n) => {
2626
- if ((Y.$flags$ & 1) === 0) {
2626
+ if ((X.$flags$ & 1) === 0) {
2627
2627
  const e = Xn(n), t = e.$cmpMeta$, i = Je("connectedCallback", t.$tagName$);
2628
2628
  e.$flags$ & 1 ? (la(n, e, t.$listeners$), Eu(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Au(n), t.$members$ && Object.entries(t.$members$).map(([s, [r]]) => {
2629
2629
  if (r & 31 && n.hasOwnProperty(s)) {
@@ -2633,10 +2633,10 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2633
2633
  }), Cu(n, e, t)), i();
2634
2634
  }
2635
2635
  }, Au = (n) => {
2636
- const e = n["s-cr"] = be.createComment("");
2636
+ const e = n["s-cr"] = ye.createComment("");
2637
2637
  e["s-cn"] = !0, n.insertBefore(e, n.firstChild);
2638
2638
  }, Tu = (n) => {
2639
- if ((Y.$flags$ & 1) === 0) {
2639
+ if ((X.$flags$ & 1) === 0) {
2640
2640
  const e = Xn(n);
2641
2641
  e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
2642
2642
  }
@@ -2673,7 +2673,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2673
2673
  };
2674
2674
  return la(n, t, e.$listeners$), ya.set(n, t);
2675
2675
  }, Kr = (n, e) => e in n, sn = (n, e) => (0, console.error)(n, e), Pn = /* @__PURE__ */ new Map(), Lu = [], Jr = [], $a = [], Ru = (n, e) => (t) => {
2676
- n.push(t), Hi || (Hi = !0, e && Y.$flags$ & 4 ? Iu(Fi) : Y.raf(Fi));
2676
+ n.push(t), Hi || (Hi = !0, e && X.$flags$ & 4 ? Iu(Fi) : X.raf(Fi));
2677
2677
  }, eo = (n) => {
2678
2678
  for (let e = 0; e < n.length; e++)
2679
2679
  try {
@@ -2683,7 +2683,7 @@ const Qn = typeof window < "u" ? window : {}, be = Qn.document || { head: {} },
2683
2683
  }
2684
2684
  n.length = 0;
2685
2685
  }, Fi = () => {
2686
- eo(Jr), eo($a), (Hi = Jr.length > 0) && Y.raf(Fi);
2686
+ eo(Jr), eo($a), (Hi = Jr.length > 0) && X.raf(Fi);
2687
2687
  }, Iu = (n) => Yc().then(n), Pu = /* @__PURE__ */ Ru($a, !0), Mu = (n = {}) => {
2688
2688
  const { content: e = "", title: t, attributes: i = [] } = n;
2689
2689
  let s = "", r = [
@@ -2717,7 +2717,7 @@ const zu = "telia-vst{display:none}", Hu = /* @__PURE__ */ ba(class extends aa {
2717
2717
  }, [0, "telia-vst", {
2718
2718
  dataTrackingId: [1, "data-tracking-id"]
2719
2719
  }]);
2720
- function xa() {
2720
+ function wa() {
2721
2721
  if (typeof customElements > "u")
2722
2722
  return;
2723
2723
  ["telia-vst"].forEach((e) => {
@@ -2728,7 +2728,7 @@ function xa() {
2728
2728
  }
2729
2729
  });
2730
2730
  }
2731
- xa();
2731
+ wa();
2732
2732
  function ji() {
2733
2733
  return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
2734
2734
  }
@@ -2789,7 +2789,7 @@ function Vu() {
2789
2789
  customElements.get(e) || customElements.define(e, qu);
2790
2790
  break;
2791
2791
  case "telia-vst":
2792
- customElements.get(e) || xa();
2792
+ customElements.get(e) || wa();
2793
2793
  break;
2794
2794
  }
2795
2795
  });
@@ -2880,7 +2880,7 @@ const Ft = (n, e) => {
2880
2880
  if ((e = n._$AM) === void 0) break;
2881
2881
  t = e._$AN, t.delete(n), n = e;
2882
2882
  } while ((t == null ? void 0 : t.size) === 0);
2883
- }, wa = (n) => {
2883
+ }, xa = (n) => {
2884
2884
  for (let e; e = n._$AM; n = e) {
2885
2885
  let t = e._$AN;
2886
2886
  if (t === void 0) e._$AN = t = /* @__PURE__ */ new Set();
@@ -2889,7 +2889,7 @@ const Ft = (n, e) => {
2889
2889
  }
2890
2890
  };
2891
2891
  function Yu(n) {
2892
- this._$AN !== void 0 ? (Mn(this), this._$AM = n, wa(this)) : this._$AM = n;
2892
+ this._$AN !== void 0 ? (Mn(this), this._$AM = n, xa(this)) : this._$AM = n;
2893
2893
  }
2894
2894
  function Qu(n, e = !1, t = 0) {
2895
2895
  const i = this._$AH, s = this._$AN;
@@ -2905,7 +2905,7 @@ let ka = class extends Kn {
2905
2905
  super(...arguments), this._$AN = void 0;
2906
2906
  }
2907
2907
  _$AT(e, t, i) {
2908
- super._$AT(e, t, i), wa(this), this.isConnected = e._$AU;
2908
+ super._$AT(e, t, i), xa(this), this.isConnected = e._$AU;
2909
2909
  }
2910
2910
  _$AO(e, t = !0) {
2911
2911
  var i, s;
@@ -2928,28 +2928,28 @@ let ka = class extends Kn {
2928
2928
  * Copyright 2020 Google LLC
2929
2929
  * SPDX-License-Identifier: BSD-3-Clause
2930
2930
  */
2931
- const me = () => new Ku();
2931
+ const ve = () => new Ku();
2932
2932
  class Ku {
2933
2933
  }
2934
- const wi = /* @__PURE__ */ new WeakMap(), ve = on(class extends ka {
2934
+ const xi = /* @__PURE__ */ new WeakMap(), be = on(class extends ka {
2935
2935
  render(n) {
2936
- return x;
2936
+ return w;
2937
2937
  }
2938
2938
  update(n, [e]) {
2939
2939
  var i;
2940
2940
  const t = e !== this.G;
2941
- return t && this.G !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.G = e, this.ht = (i = n.options) == null ? void 0 : i.host, this.rt(this.ct = n.element)), x;
2941
+ return t && this.G !== void 0 && this.rt(void 0), (t || this.lt !== this.ct) && (this.G = e, this.ht = (i = n.options) == null ? void 0 : i.host, this.rt(this.ct = n.element)), w;
2942
2942
  }
2943
2943
  rt(n) {
2944
2944
  if (this.isConnected || (n = void 0), typeof this.G == "function") {
2945
2945
  const e = this.ht ?? globalThis;
2946
- let t = wi.get(e);
2947
- t === void 0 && (t = /* @__PURE__ */ new WeakMap(), wi.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);
2946
+ let t = xi.get(e);
2947
+ t === void 0 && (t = /* @__PURE__ */ new WeakMap(), xi.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);
2948
2948
  } else this.G.value = n;
2949
2949
  }
2950
2950
  get lt() {
2951
2951
  var n, e;
2952
- return typeof this.G == "function" ? (n = wi.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.G) : (e = this.G) == null ? void 0 : e.value;
2952
+ return typeof this.G == "function" ? (n = xi.get(this.ht ?? globalThis)) == null ? void 0 : n.get(this.G) : (e = this.G) == null ? void 0 : e.value;
2953
2953
  }
2954
2954
  disconnected() {
2955
2955
  this.lt === this.ct && this.rt(void 0);
@@ -2963,7 +2963,7 @@ const wi = /* @__PURE__ */ new WeakMap(), ve = on(class extends ka {
2963
2963
  * Copyright 2018 Google LLC
2964
2964
  * SPDX-License-Identifier: BSD-3-Clause
2965
2965
  */
2966
- const xt = on(class extends Kn {
2966
+ const wt = on(class extends Kn {
2967
2967
  constructor(n) {
2968
2968
  var e;
2969
2969
  if (super(n), n.type !== rn.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.");
@@ -3001,7 +3001,7 @@ const Os = class Os extends A {
3001
3001
  return (t = this.shadowRoot) == null || t.appendChild(e), e;
3002
3002
  }
3003
3003
  render() {
3004
- return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), x;
3004
+ return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), w;
3005
3005
  }
3006
3006
  };
3007
3007
  Os.styles = [
@@ -3068,7 +3068,7 @@ class oh extends ka {
3068
3068
  (e = this.l) == null || e.call(this), this.l = void 0;
3069
3069
  }
3070
3070
  render(e) {
3071
- return x;
3071
+ return w;
3072
3072
  }
3073
3073
  getController() {
3074
3074
  return th.get(this.u);
@@ -3223,39 +3223,39 @@ class oh extends ka {
3223
3223
  this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
3224
3224
  }
3225
3225
  }
3226
- const Bi = on(oh), ke = (n, e, t) => {
3226
+ const Bi = on(oh), Se = (n, e, t) => {
3227
3227
  n && t.style.setProperty(e, n);
3228
3228
  }, Sa = (n, e) => {
3229
3229
  var t, i, s, r, o, a, c, l, u;
3230
- ke((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), ke(
3230
+ Se((t = n.colors) == null ? void 0 : t.primaryBackground, "--primary-background", e), Se(
3231
3231
  (i = n.colors) == null ? void 0 : i.textOnPrimaryBackground,
3232
3232
  "--text-on-primary-background",
3233
3233
  e
3234
- ), ke(
3234
+ ), Se(
3235
3235
  (s = n.colors) == null ? void 0 : s.secondaryBackground,
3236
3236
  "--secondary-background",
3237
3237
  e
3238
- ), ke(
3238
+ ), Se(
3239
3239
  (r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
3240
3240
  "--text-on-secondary-background",
3241
3241
  e
3242
- ), ke(
3242
+ ), Se(
3243
3243
  (o = n.colors) == null ? void 0 : o.interactiveDestructiveBackground,
3244
3244
  "--destructive-color",
3245
3245
  e
3246
- ), ke(
3246
+ ), Se(
3247
3247
  (a = n.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
3248
3248
  "--text-on-destructive-color",
3249
3249
  e
3250
- ), ke(
3250
+ ), Se(
3251
3251
  (c = n.colors) == null ? void 0 : c.interactivePrimaryBackground,
3252
3252
  "--interactive-primary-background",
3253
3253
  e
3254
- ), ke(
3254
+ ), Se(
3255
3255
  (l = n.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
3256
3256
  "--interactive-text-on-primary-background",
3257
3257
  e
3258
- ), ke((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
3258
+ ), Se((u = n.colors) == null ? void 0 : u.focusColor, "--focus-color", e);
3259
3259
  };
3260
3260
  var ah = Object.defineProperty, an = (n, e, t, i) => {
3261
3261
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
@@ -3264,7 +3264,7 @@ var ah = Object.defineProperty, an = (n, e, t, i) => {
3264
3264
  };
3265
3265
  const Ls = class Ls extends A {
3266
3266
  constructor() {
3267
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = me(), this.widgetActive$ = new he(!1), this.componentIsDestroyed$ = new P();
3267
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ve(), this.widgetActive$ = new he(!1), this.componentIsDestroyed$ = new P();
3268
3268
  }
3269
3269
  async connectedCallback() {
3270
3270
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
@@ -3308,7 +3308,7 @@ const Ls = class Ls extends A {
3308
3308
  return y` <img src=${t} class="trigger-icon" alt="" /> `;
3309
3309
  const i = (l = this.application) == null ? void 0 : l.triggerIcon;
3310
3310
  if (!i)
3311
- return x;
3311
+ return w;
3312
3312
  const s = async (u) => Wc, { type: r, content: o } = i;
3313
3313
  switch (r) {
3314
3314
  case "Telia": {
@@ -3317,7 +3317,7 @@ const Ls = class Ls extends A {
3317
3317
  class="trigger-icon"
3318
3318
  svg=${u.svg}
3319
3319
  size="lg"
3320
- ></telia-icon>` : x;
3320
+ ></telia-icon>` : w;
3321
3321
  }
3322
3322
  // case 'FontAwesome':
3323
3323
  // return html`<i class="trigger-fa-icon fa fa-${content}"></i>`;
@@ -3327,7 +3327,7 @@ const Ls = class Ls extends A {
3327
3327
  // style="background: url(${content}) no-repeat center center;background-size: contain;"
3328
3328
  // ></i>`;
3329
3329
  default:
3330
- return x;
3330
+ return w;
3331
3331
  }
3332
3332
  }
3333
3333
  hideTrigger() {
@@ -3339,11 +3339,11 @@ const Ls = class Ls extends A {
3339
3339
  render() {
3340
3340
  var e, t, i, s, r, o, a;
3341
3341
  return y`<div
3342
- class=${xt({
3342
+ class=${wt({
3343
3343
  "trigger-container": !0,
3344
3344
  hidden: !this.triggerVisible
3345
3345
  })}
3346
- ${ve(this.containerRef)}
3346
+ ${be(this.containerRef)}
3347
3347
  >
3348
3348
  ${!this.active && ((s = (i = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? y`
3349
3349
  <button
@@ -3360,12 +3360,12 @@ const Ls = class Ls extends A {
3360
3360
  >
3361
3361
  ${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}
3362
3362
  </button>
3363
- ` : x}
3363
+ ` : w}
3364
3364
 
3365
3365
  <button
3366
3366
  type="button"
3367
3367
  aria-label="${((a = (o = (r = this.application) == null ? void 0 : r.settings) == null ? void 0 : o.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
3368
- class=${xt({
3368
+ class=${wt({
3369
3369
  trigger: !0,
3370
3370
  active: this.active,
3371
3371
  rendered: this.loaded
@@ -3637,7 +3637,7 @@ function* ch(n, e) {
3637
3637
  for (const i of n) yield e(i, t++);
3638
3638
  }
3639
3639
  }
3640
- var gs = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(gs || {}), ee = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(ee || {});
3640
+ var gs = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(gs || {}), Z = /* @__PURE__ */ ((n) => (n.NonAuthenticated = "non-authenticated", n.Authenticating = "authenticating", n.Authenticated = "authenticated", n.ChatEnded = "chat-ended", n))(Z || {});
3641
3641
  /**
3642
3642
  * @license
3643
3643
  * Copyright 2021 Google LLC
@@ -3804,7 +3804,7 @@ var ph = Object.defineProperty, _a = (n, e, t, i) => {
3804
3804
  };
3805
3805
  const ae = "application", Is = class Is extends A {
3806
3806
  constructor() {
3807
- super(...arguments), this.nodes = [], this.wrapperRef = me(), this.fullscreen = !1, this.isReady = new he(!1);
3807
+ super(...arguments), this.nodes = [], this.wrapperRef = ve(), this.fullscreen = !1, this.isReady = new he(!1);
3808
3808
  }
3809
3809
  addChild(e) {
3810
3810
  e.parent = this, this.nodes.push(e);
@@ -3829,7 +3829,7 @@ const ae = "application", Is = class Is extends A {
3829
3829
  render() {
3830
3830
  var i, s;
3831
3831
  const e = this.application.settings.components.conversation;
3832
- return ((s = (i = e == null ? void 0 : e.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === gs.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"), y`<div class="widget-container" ${ve(this.wrapperRef)}>
3832
+ return ((s = (i = e == null ? void 0 : e.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === gs.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"), y`<div class="widget-container" ${be(this.wrapperRef)}>
3833
3833
  ${ch(this.nodes, (r) => r)}
3834
3834
  </div>`;
3835
3835
  }
@@ -4037,7 +4037,7 @@ const Ps = class Ps extends A {
4037
4037
  }
4038
4038
  render() {
4039
4039
  if (!this.widget || this.status !== "activated")
4040
- return x;
4040
+ return w;
4041
4041
  if (this.widget.renderStrategy === gs.Trigger) {
4042
4042
  const e = new Re();
4043
4043
  return e.application = this.widget, e;
@@ -4052,21 +4052,21 @@ Ps.styles = [
4052
4052
  }
4053
4053
  `
4054
4054
  ];
4055
- let wt = Ps;
4055
+ let xt = Ps;
4056
4056
  ms([
4057
4057
  k({ attribute: !0 })
4058
- ], wt.prototype, "name");
4058
+ ], xt.prototype, "name");
4059
4059
  ms([
4060
4060
  T()
4061
- ], wt.prototype, "widget");
4061
+ ], xt.prototype, "widget");
4062
4062
  ms([
4063
4063
  T()
4064
- ], wt.prototype, "status");
4064
+ ], xt.prototype, "status");
4065
4065
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Nn);
4066
4066
  customElements.get("ace-trigger") || customElements.define("ace-trigger", Re);
4067
4067
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", qi);
4068
4068
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Zt);
4069
- customElements.get("ace-widget") || customElements.define("ace-widget", wt);
4069
+ customElements.get("ace-widget") || customElements.define("ace-widget", xt);
4070
4070
  class gh {
4071
4071
  constructor(e) {
4072
4072
  this._message = null, this._host = e, e.addController(this);
@@ -4123,14 +4123,14 @@ class uo {
4123
4123
  };
4124
4124
  }
4125
4125
  write(e) {
4126
- this._addEntryRemoveHandler(e), this.entries$.pipe(Ee(1)).subscribe((t) => {
4126
+ this._addEntryRemoveHandler(e), this.entries$.pipe(me(1)).subscribe((t) => {
4127
4127
  this.entries$.next([...t, e]);
4128
4128
  });
4129
4129
  }
4130
4130
  _addEntryRemoveHandler(e) {
4131
4131
  e.remove$.pipe(
4132
4132
  Oe(() => this.entries$),
4133
- Ee(1)
4133
+ me(1)
4134
4134
  ).subscribe((t) => {
4135
4135
  this.removeEntryAction$.next(e), this.entries$.next(t.filter((i) => i !== e));
4136
4136
  });
@@ -4309,7 +4309,7 @@ const Ms = class Ms extends A {
4309
4309
  }
4310
4310
  _renderTimestamp(e, t) {
4311
4311
  if (!e && !t)
4312
- return x;
4312
+ return w;
4313
4313
  let i = "";
4314
4314
  e ? t ? i = `${e}: ${this._getTimestamp(t)}` : i = e : t && (i = this._getTimestamp(t));
4315
4315
  const s = this.application.texts.getOrFallback(
@@ -4359,14 +4359,14 @@ const Ms = class Ms extends A {
4359
4359
  `;
4360
4360
  case q.Agent:
4361
4361
  return y`<div
4362
- class=${xt({
4362
+ class=${wt({
4363
4363
  "conversation-agent-message": !0,
4364
4364
  "has-avatar": !!((e = this.entry.sender) != null && e.avatar)
4365
4365
  })}
4366
4366
  >
4367
4367
  ${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? y`<div class="avatar">
4368
4368
  <img src=${this.entry.sender.avatar} />
4369
- </div>` : x}
4369
+ </div>` : w}
4370
4370
 
4371
4371
  <div class="entry-content">
4372
4372
  ${this.entry.messages.map(
@@ -4388,7 +4388,7 @@ const Ms = class Ms extends A {
4388
4388
  </div>`;
4389
4389
  case q.User:
4390
4390
  return y`<div
4391
- class=${xt({
4391
+ class=${wt({
4392
4392
  "conversation-user-message": !0,
4393
4393
  "has-error": this.entry.status === "failed"
4394
4394
  })}
@@ -4413,7 +4413,7 @@ const Ms = class Ms extends A {
4413
4413
  </div>
4414
4414
  </div>`;
4415
4415
  default:
4416
- return x;
4416
+ return w;
4417
4417
  }
4418
4418
  }
4419
4419
  };
@@ -4597,7 +4597,7 @@ const Ns = class Ns extends A {
4597
4597
  stabilizeOut: !0,
4598
4598
  skipInitial: !1
4599
4599
  })}
4600
- ></ace-typing-state>` : x}
4600
+ ></ace-typing-state>` : w}
4601
4601
  </div>`;
4602
4602
  }
4603
4603
  };
@@ -4636,10 +4636,10 @@ const $h = (n, e, t) => {
4636
4636
  for (const i of e) if (i[0] === n) return (0, i[1])();
4637
4637
  return t == null ? void 0 : t();
4638
4638
  };
4639
- var xh = Object.defineProperty, wh = (n, e, t, i) => {
4639
+ var wh = Object.defineProperty, xh = (n, e, t, i) => {
4640
4640
  for (var s = void 0, r = n.length - 1, o; r >= 0; r--)
4641
4641
  (o = n[r]) && (s = o(e, t, s) || s);
4642
- return s && xh(e, t, s), s;
4642
+ return s && wh(e, t, s), s;
4643
4643
  };
4644
4644
  const Us = class Us extends A {
4645
4645
  render() {
@@ -4659,7 +4659,7 @@ const Us = class Us extends A {
4659
4659
  () => {
4660
4660
  const s = customElements.get(e);
4661
4661
  if (!s)
4662
- return x;
4662
+ return w;
4663
4663
  const r = new s(i || null);
4664
4664
  return y`${r}`;
4665
4665
  }
@@ -4687,7 +4687,7 @@ Us.styles = [
4687
4687
  `
4688
4688
  ];
4689
4689
  let Un = Us;
4690
- wh([
4690
+ xh([
4691
4691
  k({ attribute: !1 })
4692
4692
  ], Un.prototype, "group");
4693
4693
  const Ds = class Ds extends A {
@@ -4744,10 +4744,10 @@ let Vi = Ds;
4744
4744
  */
4745
4745
  class Wi extends Kn {
4746
4746
  constructor(e) {
4747
- if (super(e), this.it = x, e.type !== rn.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4747
+ if (super(e), this.it = w, e.type !== rn.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
4748
4748
  }
4749
4749
  render(e) {
4750
- if (e === x || e == null) return this._t = void 0, this.it = e;
4750
+ if (e === w || e == null) return this._t = void 0, this.it = e;
4751
4751
  if (e === Le) return e;
4752
4752
  if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
4753
4753
  if (e === this.it) return this._t;
@@ -4767,14 +4767,14 @@ const {
4767
4767
  getOwnPropertyDescriptor: Eh
4768
4768
  } = Object;
4769
4769
  let {
4770
- freeze: Q,
4770
+ freeze: K,
4771
4771
  seal: se,
4772
4772
  create: La
4773
4773
  } = Object, {
4774
4774
  apply: Gi,
4775
4775
  construct: Zi
4776
4776
  } = typeof Reflect < "u" && Reflect;
4777
- Q || (Q = function(e) {
4777
+ K || (K = function(e) {
4778
4778
  return e;
4779
4779
  });
4780
4780
  se || (se = function(e) {
@@ -4786,8 +4786,8 @@ Gi || (Gi = function(e, t, i) {
4786
4786
  Zi || (Zi = function(e, t) {
4787
4787
  return new e(...t);
4788
4788
  });
4789
- const bn = X(Array.prototype.forEach), _h = X(Array.prototype.lastIndexOf), po = X(Array.prototype.pop), Rt = X(Array.prototype.push), Ah = X(Array.prototype.splice), kn = X(String.prototype.toLowerCase), Ci = X(String.prototype.toString), fo = X(String.prototype.match), It = X(String.prototype.replace), Th = X(String.prototype.indexOf), Oh = X(String.prototype.trim), ce = X(Object.prototype.hasOwnProperty), W = X(RegExp.prototype.test), Pt = Lh(TypeError);
4790
- function X(n) {
4789
+ const bn = J(Array.prototype.forEach), _h = J(Array.prototype.lastIndexOf), po = J(Array.prototype.pop), Rt = J(Array.prototype.push), Ah = J(Array.prototype.splice), kn = J(String.prototype.toLowerCase), Ci = J(String.prototype.toString), fo = J(String.prototype.match), It = J(String.prototype.replace), Th = J(String.prototype.indexOf), Oh = J(String.prototype.trim), ce = J(Object.prototype.hasOwnProperty), G = J(RegExp.prototype.test), Pt = Lh(TypeError);
4790
+ function J(n) {
4791
4791
  return function(e) {
4792
4792
  e instanceof RegExp && (e.lastIndex = 0);
4793
4793
  for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
@@ -4802,7 +4802,7 @@ function Lh(n) {
4802
4802
  return Zi(n, t);
4803
4803
  };
4804
4804
  }
4805
- function w(n, e) {
4805
+ function x(n, e) {
4806
4806
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : kn;
4807
4807
  ho && ho(n, null);
4808
4808
  let i = e.length;
@@ -4821,10 +4821,10 @@ function Rh(n) {
4821
4821
  ce(n, e) || (n[e] = null);
4822
4822
  return n;
4823
4823
  }
4824
- function Ce(n) {
4824
+ function Ee(n) {
4825
4825
  const e = La(null);
4826
4826
  for (const [t, i] of Oa(n))
4827
- ce(n, t) && (Array.isArray(i) ? e[t] = Rh(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = Ce(i) : e[t] = i);
4827
+ ce(n, t) && (Array.isArray(i) ? e[t] = Rh(i) : i && typeof i == "object" && i.constructor === Object ? e[t] = Ee(i) : e[t] = i);
4828
4828
  return e;
4829
4829
  }
4830
4830
  function Mt(n, e) {
@@ -4832,9 +4832,9 @@ function Mt(n, e) {
4832
4832
  const i = Eh(n, e);
4833
4833
  if (i) {
4834
4834
  if (i.get)
4835
- return X(i.get);
4835
+ return J(i.get);
4836
4836
  if (typeof i.value == "function")
4837
- return X(i.value);
4837
+ return J(i.value);
4838
4838
  }
4839
4839
  n = Ch(n);
4840
4840
  }
@@ -4843,7 +4843,7 @@ function Mt(n, e) {
4843
4843
  }
4844
4844
  return t;
4845
4845
  }
4846
- const go = Q(["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"]), Ei = Q(["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"]), _i = Q(["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"]), Ih = Q(["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"]), Ai = Q(["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"]), Ph = Q(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mo = Q(["#text"]), vo = Q(["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"]), Ti = Q(["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"]), bo = Q(["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"]), yn = Q(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Mh = se(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Nh = se(/<%[\w\W]*|[\w\W]*%>/gm), Uh = se(/\$\{[\w\W]*/gm), Dh = se(/^data-[\-\w.\u00B7-\uFFFF]+$/), zh = se(/^aria-[\-\w]+$/), Ra = se(
4846
+ const go = K(["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"]), Ei = K(["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"]), _i = K(["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"]), Ih = K(["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"]), Ai = K(["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"]), Ph = K(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), mo = K(["#text"]), vo = K(["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"]), Ti = K(["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"]), bo = K(["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"]), yn = K(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Mh = se(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Nh = se(/<%[\w\W]*|[\w\W]*%>/gm), Uh = se(/\$\{[\w\W]*/gm), Dh = se(/^data-[\-\w.\u00B7-\uFFFF]+$/), zh = se(/^aria-[\-\w]+$/), Ra = se(
4847
4847
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4848
4848
  // eslint-disable-line no-useless-escape
4849
4849
  ), Hh = se(/^(?:\w+script|data):/i), Fh = se(
@@ -4922,7 +4922,7 @@ function Pa() {
4922
4922
  HTMLFormElement: p,
4923
4923
  DOMParser: d,
4924
4924
  trustedTypes: g
4925
- } = n, m = c.prototype, $ = Mt(m, "cloneNode"), ye = Mt(m, "remove"), le = Mt(m, "nextSibling"), Pe = Mt(m, "childNodes"), He = Mt(m, "parentNode");
4925
+ } = n, m = c.prototype, $ = Mt(m, "cloneNode"), $e = Mt(m, "remove"), le = Mt(m, "nextSibling"), Pe = Mt(m, "childNodes"), He = Mt(m, "parentNode");
4926
4926
  if (typeof o == "function") {
4927
4927
  const b = t.createElement("template");
4928
4928
  b.content && b.content.ownerDocument && (t = b.content.ownerDocument);
@@ -4951,9 +4951,9 @@ function Pa() {
4951
4951
  let {
4952
4952
  IS_ALLOWED_URI: Js
4953
4953
  } = yo, N = null;
4954
- const er = w({}, [...go, ...Ei, ..._i, ...Ai, ...mo]);
4954
+ const er = x({}, [...go, ...Ei, ..._i, ...Ai, ...mo]);
4955
4955
  let D = null;
4956
- const tr = w({}, [...vo, ...Ti, ...bo, ...yn]);
4956
+ const tr = x({}, [...vo, ...Ti, ...bo, ...yn]);
4957
4957
  let R = Object.seal(La(null, {
4958
4958
  tagNameCheck: {
4959
4959
  writable: !0,
@@ -4976,15 +4976,15 @@ function Pa() {
4976
4976
  })), _t = null, si = null, nr = !0, ri = !0, ir = !1, sr = !0, st = !1, cn = !0, qe = !1, oi = !1, ai = !1, rt = !1, un = !1, hn = !1, rr = !0, or = !1;
4977
4977
  const rl = "user-content-";
4978
4978
  let li = !0, At = !1, ot = {}, at = null;
4979
- const ar = w({}, ["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"]);
4979
+ const ar = x({}, ["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"]);
4980
4980
  let lr = null;
4981
- const cr = w({}, ["audio", "video", "img", "source", "image", "track"]);
4981
+ const cr = x({}, ["audio", "video", "img", "source", "image", "track"]);
4982
4982
  let ci = null;
4983
- const ur = w({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dn = "http://www.w3.org/1998/Math/MathML", pn = "http://www.w3.org/2000/svg", $e = "http://www.w3.org/1999/xhtml";
4984
- let lt = $e, ui = !1, hi = null;
4985
- const ol = w({}, [dn, pn, $e], Ci);
4986
- let fn = w({}, ["mi", "mo", "mn", "ms", "mtext"]), gn = w({}, ["annotation-xml"]);
4987
- const al = w({}, ["title", "style", "font", "a", "script"]);
4983
+ const ur = x({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), dn = "http://www.w3.org/1998/Math/MathML", pn = "http://www.w3.org/2000/svg", we = "http://www.w3.org/1999/xhtml";
4984
+ let lt = we, ui = !1, hi = null;
4985
+ const ol = x({}, [dn, pn, we], Ci);
4986
+ let fn = x({}, ["mi", "mo", "mn", "ms", "mtext"]), gn = x({}, ["annotation-xml"]);
4987
+ const al = x({}, ["title", "style", "font", "a", "script"]);
4988
4988
  let Tt = null;
4989
4989
  const ll = ["application/xhtml+xml", "text/html"], cl = "text/html";
4990
4990
  let U = null, ct = null;
@@ -4993,8 +4993,8 @@ function Pa() {
4993
4993
  }, di = function() {
4994
4994
  let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4995
4995
  if (!(ct && ct === h)) {
4996
- if ((!h || typeof h != "object") && (h = {}), h = Ce(h), Tt = // eslint-disable-next-line unicorn/prefer-includes
4997
- ll.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? cl : h.PARSER_MEDIA_TYPE, U = Tt === "application/xhtml+xml" ? Ci : kn, N = ce(h, "ALLOWED_TAGS") ? w({}, h.ALLOWED_TAGS, U) : er, D = ce(h, "ALLOWED_ATTR") ? w({}, h.ALLOWED_ATTR, U) : tr, hi = ce(h, "ALLOWED_NAMESPACES") ? w({}, h.ALLOWED_NAMESPACES, Ci) : ol, ci = ce(h, "ADD_URI_SAFE_ATTR") ? w(Ce(ur), h.ADD_URI_SAFE_ATTR, U) : ur, lr = ce(h, "ADD_DATA_URI_TAGS") ? w(Ce(cr), h.ADD_DATA_URI_TAGS, U) : cr, at = ce(h, "FORBID_CONTENTS") ? w({}, h.FORBID_CONTENTS, U) : ar, _t = ce(h, "FORBID_TAGS") ? w({}, h.FORBID_TAGS, U) : Ce({}), si = ce(h, "FORBID_ATTR") ? w({}, h.FORBID_ATTR, U) : Ce({}), ot = ce(h, "USE_PROFILES") ? h.USE_PROFILES : !1, nr = h.ALLOW_ARIA_ATTR !== !1, ri = h.ALLOW_DATA_ATTR !== !1, ir = h.ALLOW_UNKNOWN_PROTOCOLS || !1, sr = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, st = h.SAFE_FOR_TEMPLATES || !1, cn = h.SAFE_FOR_XML !== !1, qe = h.WHOLE_DOCUMENT || !1, rt = h.RETURN_DOM || !1, un = h.RETURN_DOM_FRAGMENT || !1, hn = h.RETURN_TRUSTED_TYPE || !1, ai = h.FORCE_BODY || !1, rr = h.SANITIZE_DOM !== !1, or = h.SANITIZE_NAMED_PROPS || !1, li = h.KEEP_CONTENT !== !1, At = h.IN_PLACE || !1, Js = h.ALLOWED_URI_REGEXP || Ra, lt = h.NAMESPACE || $e, fn = h.MATHML_TEXT_INTEGRATION_POINTS || fn, gn = h.HTML_INTEGRATION_POINTS || gn, R = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && hr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && hr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), st && (ri = !1), un && (rt = !0), ot && (N = w({}, mo), D = [], ot.html === !0 && (w(N, go), w(D, vo)), ot.svg === !0 && (w(N, Ei), w(D, Ti), w(D, yn)), ot.svgFilters === !0 && (w(N, _i), w(D, Ti), w(D, yn)), ot.mathMl === !0 && (w(N, Ai), w(D, bo), w(D, yn))), h.ADD_TAGS && (N === er && (N = Ce(N)), w(N, h.ADD_TAGS, U)), h.ADD_ATTR && (D === tr && (D = Ce(D)), w(D, h.ADD_ATTR, U)), h.ADD_URI_SAFE_ATTR && w(ci, h.ADD_URI_SAFE_ATTR, U), h.FORBID_CONTENTS && (at === ar && (at = Ce(at)), w(at, h.FORBID_CONTENTS, U)), li && (N["#text"] = !0), qe && w(N, ["html", "head", "body"]), N.table && (w(N, ["tbody"]), delete _t.tbody), h.TRUSTED_TYPES_POLICY) {
4996
+ if ((!h || typeof h != "object") && (h = {}), h = Ee(h), Tt = // eslint-disable-next-line unicorn/prefer-includes
4997
+ ll.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? cl : h.PARSER_MEDIA_TYPE, U = Tt === "application/xhtml+xml" ? Ci : kn, N = ce(h, "ALLOWED_TAGS") ? x({}, h.ALLOWED_TAGS, U) : er, D = ce(h, "ALLOWED_ATTR") ? x({}, h.ALLOWED_ATTR, U) : tr, hi = ce(h, "ALLOWED_NAMESPACES") ? x({}, h.ALLOWED_NAMESPACES, Ci) : ol, ci = ce(h, "ADD_URI_SAFE_ATTR") ? x(Ee(ur), h.ADD_URI_SAFE_ATTR, U) : ur, lr = ce(h, "ADD_DATA_URI_TAGS") ? x(Ee(cr), h.ADD_DATA_URI_TAGS, U) : cr, at = ce(h, "FORBID_CONTENTS") ? x({}, h.FORBID_CONTENTS, U) : ar, _t = ce(h, "FORBID_TAGS") ? x({}, h.FORBID_TAGS, U) : Ee({}), si = ce(h, "FORBID_ATTR") ? x({}, h.FORBID_ATTR, U) : Ee({}), ot = ce(h, "USE_PROFILES") ? h.USE_PROFILES : !1, nr = h.ALLOW_ARIA_ATTR !== !1, ri = h.ALLOW_DATA_ATTR !== !1, ir = h.ALLOW_UNKNOWN_PROTOCOLS || !1, sr = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, st = h.SAFE_FOR_TEMPLATES || !1, cn = h.SAFE_FOR_XML !== !1, qe = h.WHOLE_DOCUMENT || !1, rt = h.RETURN_DOM || !1, un = h.RETURN_DOM_FRAGMENT || !1, hn = h.RETURN_TRUSTED_TYPE || !1, ai = h.FORCE_BODY || !1, rr = h.SANITIZE_DOM !== !1, or = h.SANITIZE_NAMED_PROPS || !1, li = h.KEEP_CONTENT !== !1, At = h.IN_PLACE || !1, Js = h.ALLOWED_URI_REGEXP || Ra, lt = h.NAMESPACE || we, fn = h.MATHML_TEXT_INTEGRATION_POINTS || fn, gn = h.HTML_INTEGRATION_POINTS || gn, R = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && hr(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (R.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && hr(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (R.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), st && (ri = !1), un && (rt = !0), ot && (N = x({}, mo), D = [], ot.html === !0 && (x(N, go), x(D, vo)), ot.svg === !0 && (x(N, Ei), x(D, Ti), x(D, yn)), ot.svgFilters === !0 && (x(N, _i), x(D, Ti), x(D, yn)), ot.mathMl === !0 && (x(N, Ai), x(D, bo), x(D, yn))), h.ADD_TAGS && (N === er && (N = Ee(N)), x(N, h.ADD_TAGS, U)), h.ADD_ATTR && (D === tr && (D = Ee(D)), x(D, h.ADD_ATTR, U)), h.ADD_URI_SAFE_ATTR && x(ci, h.ADD_URI_SAFE_ATTR, U), h.FORBID_CONTENTS && (at === ar && (at = Ee(at)), x(at, h.FORBID_CONTENTS, U)), li && (N["#text"] = !0), qe && x(N, ["html", "head", "body"]), N.table && (x(N, ["tbody"]), delete _t.tbody), h.TRUSTED_TYPES_POLICY) {
4998
4998
  if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
4999
4999
  throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
5000
5000
  if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -5002,16 +5002,16 @@ function Pa() {
5002
5002
  M = h.TRUSTED_TYPES_POLICY, Fe = M.createHTML("");
5003
5003
  } else
5004
5004
  M === void 0 && (M = qh(g, s)), M !== null && typeof Fe == "string" && (Fe = M.createHTML(""));
5005
- Q && Q(h), ct = h;
5005
+ K && K(h), ct = h;
5006
5006
  }
5007
- }, dr = w({}, [...Ei, ..._i, ...Ih]), pr = w({}, [...Ai, ...Ph]), hl = function(h) {
5007
+ }, dr = x({}, [...Ei, ..._i, ...Ih]), pr = x({}, [...Ai, ...Ph]), hl = function(h) {
5008
5008
  let f = He(h);
5009
5009
  (!f || !f.tagName) && (f = {
5010
5010
  namespaceURI: lt,
5011
5011
  tagName: "template"
5012
5012
  });
5013
5013
  const v = kn(h.tagName), O = kn(f.tagName);
5014
- return hi[h.namespaceURI] ? h.namespaceURI === pn ? f.namespaceURI === $e ? v === "svg" : f.namespaceURI === dn ? v === "svg" && (O === "annotation-xml" || fn[O]) : !!dr[v] : h.namespaceURI === dn ? f.namespaceURI === $e ? v === "math" : f.namespaceURI === pn ? v === "math" && gn[O] : !!pr[v] : h.namespaceURI === $e ? f.namespaceURI === pn && !gn[O] || f.namespaceURI === dn && !fn[O] ? !1 : !pr[v] && (al[v] || !dr[v]) : !!(Tt === "application/xhtml+xml" && hi[h.namespaceURI]) : !1;
5014
+ return hi[h.namespaceURI] ? h.namespaceURI === pn ? f.namespaceURI === we ? v === "svg" : f.namespaceURI === dn ? v === "svg" && (O === "annotation-xml" || fn[O]) : !!dr[v] : h.namespaceURI === dn ? f.namespaceURI === we ? v === "math" : f.namespaceURI === pn ? v === "math" && gn[O] : !!pr[v] : h.namespaceURI === we ? f.namespaceURI === pn && !gn[O] || f.namespaceURI === dn && !fn[O] ? !1 : !pr[v] && (al[v] || !dr[v]) : !!(Tt === "application/xhtml+xml" && hi[h.namespaceURI]) : !1;
5015
5015
  }, fe = function(h) {
5016
5016
  Rt(e.removed, {
5017
5017
  element: h
@@ -5019,7 +5019,7 @@ function Pa() {
5019
5019
  try {
5020
5020
  He(h).removeChild(h);
5021
5021
  } catch {
5022
- ye(h);
5022
+ $e(h);
5023
5023
  }
5024
5024
  }, ut = function(h, f) {
5025
5025
  try {
@@ -5052,9 +5052,9 @@ function Pa() {
5052
5052
  const I = fo(h, /^[\r\n\t ]+/);
5053
5053
  v = I && I[0];
5054
5054
  }
5055
- Tt === "application/xhtml+xml" && lt === $e && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
5055
+ Tt === "application/xhtml+xml" && lt === we && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
5056
5056
  const O = M ? M.createHTML(h) : h;
5057
- if (lt === $e)
5057
+ if (lt === we)
5058
5058
  try {
5059
5059
  f = new d().parseFromString(O, Tt);
5060
5060
  } catch {
@@ -5067,7 +5067,7 @@ function Pa() {
5067
5067
  }
5068
5068
  }
5069
5069
  const j = f.body || f.documentElement;
5070
- return h && v && j.insertBefore(t.createTextNode(v), j.childNodes[0] || null), lt === $e ? Ja.call(f, qe ? "html" : "body")[0] : qe ? f.documentElement : j;
5070
+ return h && v && j.insertBefore(t.createTextNode(v), j.childNodes[0] || null), lt === we ? Ja.call(f, qe ? "html" : "body")[0] : qe ? f.documentElement : j;
5071
5071
  }, gr = function(h) {
5072
5072
  return Be.call(
5073
5073
  h.ownerDocument || h,
@@ -5094,24 +5094,24 @@ function Pa() {
5094
5094
  if (xe(V.uponSanitizeElement, h, {
5095
5095
  tagName: v,
5096
5096
  allowedTags: N
5097
- }), cn && h.hasChildNodes() && !mr(h.firstElementChild) && W(/<[/\w!]/g, h.innerHTML) && W(/<[/\w!]/g, h.textContent) || h.nodeType === Nt.progressingInstruction || cn && h.nodeType === Nt.comment && W(/<[/\w]/g, h.data))
5097
+ }), cn && h.hasChildNodes() && !mr(h.firstElementChild) && G(/<[/\w!]/g, h.innerHTML) && G(/<[/\w!]/g, h.textContent) || h.nodeType === Nt.progressingInstruction || cn && h.nodeType === Nt.comment && G(/<[/\w]/g, h.data))
5098
5098
  return fe(h), !0;
5099
5099
  if (!N[v] || _t[v]) {
5100
- if (!_t[v] && yr(v) && (R.tagNameCheck instanceof RegExp && W(R.tagNameCheck, v) || R.tagNameCheck instanceof Function && R.tagNameCheck(v)))
5100
+ if (!_t[v] && yr(v) && (R.tagNameCheck instanceof RegExp && G(R.tagNameCheck, v) || R.tagNameCheck instanceof Function && R.tagNameCheck(v)))
5101
5101
  return !1;
5102
5102
  if (li && !at[v]) {
5103
5103
  const O = He(h) || h.parentNode, j = Pe(h) || h.childNodes;
5104
5104
  if (j && O) {
5105
5105
  const I = j.length;
5106
- for (let K = I - 1; K >= 0; --K) {
5107
- const we = $(j[K], !0);
5108
- we.__removalCount = (h.__removalCount || 0) + 1, O.insertBefore(we, le(h));
5106
+ for (let ee = I - 1; ee >= 0; --ee) {
5107
+ const ke = $(j[ee], !0);
5108
+ ke.__removalCount = (h.__removalCount || 0) + 1, O.insertBefore(ke, le(h));
5109
5109
  }
5110
5110
  }
5111
5111
  }
5112
5112
  return fe(h), !0;
5113
5113
  }
5114
- return h instanceof c && !hl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && W(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Nt.text && (f = h.textContent, bn([ti, ni, ii], (O) => {
5114
+ return h instanceof c && !hl(h) || (v === "noscript" || v === "noembed" || v === "noframes") && G(/<\/no(script|embed|frames)/i, h.innerHTML) ? (fe(h), !0) : (st && h.nodeType === Nt.text && (f = h.textContent, bn([ti, ni, ii], (O) => {
5115
5115
  f = It(f, O, " ");
5116
5116
  }), h.textContent !== f && (Rt(e.removed, {
5117
5117
  element: h.cloneNode()
@@ -5119,21 +5119,21 @@ function Pa() {
5119
5119
  }, br = function(h, f, v) {
5120
5120
  if (rr && (f === "id" || f === "name") && (v in t || v in ul))
5121
5121
  return !1;
5122
- if (!(ri && !si[f] && W(tl, f))) {
5123
- if (!(nr && W(nl, f))) {
5122
+ if (!(ri && !si[f] && G(tl, f))) {
5123
+ if (!(nr && G(nl, f))) {
5124
5124
  if (!D[f] || si[f]) {
5125
5125
  if (
5126
5126
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
5127
5127
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5128
5128
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
5129
- !(yr(h) && (R.tagNameCheck instanceof RegExp && W(R.tagNameCheck, h) || R.tagNameCheck instanceof Function && R.tagNameCheck(h)) && (R.attributeNameCheck instanceof RegExp && W(R.attributeNameCheck, f) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5129
+ !(yr(h) && (R.tagNameCheck instanceof RegExp && G(R.tagNameCheck, h) || R.tagNameCheck instanceof Function && R.tagNameCheck(h)) && (R.attributeNameCheck instanceof RegExp && G(R.attributeNameCheck, f) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
5130
5130
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
5131
- f === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && W(R.tagNameCheck, v) || R.tagNameCheck instanceof Function && R.tagNameCheck(v)))
5131
+ f === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && G(R.tagNameCheck, v) || R.tagNameCheck instanceof Function && R.tagNameCheck(v)))
5132
5132
  ) return !1;
5133
5133
  } else if (!ci[f]) {
5134
- if (!W(Js, It(v, Ks, ""))) {
5134
+ if (!G(Js, It(v, Ks, ""))) {
5135
5135
  if (!((f === "src" || f === "xlink:href" || f === "href") && h !== "script" && Th(v, "data:") === 0 && lr[h])) {
5136
- if (!(ir && !W(il, It(v, Ks, "")))) {
5136
+ if (!(ir && !G(il, It(v, Ks, "")))) {
5137
5137
  if (v)
5138
5138
  return !1;
5139
5139
  }
@@ -5163,11 +5163,11 @@ function Pa() {
5163
5163
  for (; O--; ) {
5164
5164
  const j = f[O], {
5165
5165
  name: I,
5166
- namespaceURI: K,
5167
- value: we
5168
- } = j, Ot = U(I), fi = we;
5166
+ namespaceURI: ee,
5167
+ value: ke
5168
+ } = j, Ot = U(I), fi = ke;
5169
5169
  let B = I === "value" ? fi : Oh(fi);
5170
- if (v.attrName = Ot, v.attrValue = B, v.keepAttr = !0, v.forceKeepAttr = void 0, xe(V.uponSanitizeAttribute, h, v), B = v.attrValue, or && (Ot === "id" || Ot === "name") && (ut(I, h), B = rl + B), cn && W(/((--!?|])>)|<\/(style|title)/i, B)) {
5170
+ if (v.attrName = Ot, v.attrValue = B, v.keepAttr = !0, v.forceKeepAttr = void 0, xe(V.uponSanitizeAttribute, h, v), B = v.attrValue, or && (Ot === "id" || Ot === "name") && (ut(I, h), B = rl + B), cn && G(/((--!?|])>)|<\/(style|title)/i, B)) {
5171
5171
  ut(I, h);
5172
5172
  continue;
5173
5173
  }
@@ -5177,20 +5177,20 @@ function Pa() {
5177
5177
  ut(I, h);
5178
5178
  continue;
5179
5179
  }
5180
- if (!sr && W(/\/>/i, B)) {
5180
+ if (!sr && G(/\/>/i, B)) {
5181
5181
  ut(I, h);
5182
5182
  continue;
5183
5183
  }
5184
- st && bn([ti, ni, ii], (wr) => {
5185
- B = It(B, wr, " ");
5184
+ st && bn([ti, ni, ii], (xr) => {
5185
+ B = It(B, xr, " ");
5186
5186
  });
5187
- const xr = U(h.nodeName);
5188
- if (!br(xr, Ot, B)) {
5187
+ const wr = U(h.nodeName);
5188
+ if (!br(wr, Ot, B)) {
5189
5189
  ut(I, h);
5190
5190
  continue;
5191
5191
  }
5192
- if (M && typeof g == "object" && typeof g.getAttributeType == "function" && !K)
5193
- switch (g.getAttributeType(xr, Ot)) {
5192
+ if (M && typeof g == "object" && typeof g.getAttributeType == "function" && !ee)
5193
+ switch (g.getAttributeType(wr, Ot)) {
5194
5194
  case "TrustedHTML": {
5195
5195
  B = M.createHTML(B);
5196
5196
  break;
@@ -5202,7 +5202,7 @@ function Pa() {
5202
5202
  }
5203
5203
  if (B !== fi)
5204
5204
  try {
5205
- K ? h.setAttributeNS(K, I, B) : h.setAttribute(I, B), pi(h) ? fe(h) : po(e.removed);
5205
+ ee ? h.setAttributeNS(ee, I, B) : h.setAttribute(I, B), pi(h) ? fe(h) : po(e.removed);
5206
5206
  } catch {
5207
5207
  ut(I, h);
5208
5208
  }
@@ -5227,8 +5227,8 @@ function Pa() {
5227
5227
  return b;
5228
5228
  if (oi || di(h), e.removed = [], typeof b == "string" && (At = !1), At) {
5229
5229
  if (b.nodeName) {
5230
- const we = U(b.nodeName);
5231
- if (!N[we] || _t[we])
5230
+ const ke = U(b.nodeName);
5231
+ if (!N[ke] || _t[ke])
5232
5232
  throw Pt("root node is forbidden and cannot be sanitized in-place");
5233
5233
  }
5234
5234
  } else if (b instanceof a)
@@ -5254,11 +5254,11 @@ function Pa() {
5254
5254
  j = f;
5255
5255
  return (D.shadowroot || D.shadowrootmode) && (j = el.call(i, j, !0)), j;
5256
5256
  }
5257
- let K = qe ? f.outerHTML : f.innerHTML;
5258
- return qe && N["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && W(Ia, f.ownerDocument.doctype.name) && (K = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5259
- ` + K), st && bn([ti, ni, ii], (we) => {
5260
- K = It(K, we, " ");
5261
- }), M && hn ? M.createHTML(K) : K;
5257
+ let ee = qe ? f.outerHTML : f.innerHTML;
5258
+ return qe && N["!doctype"] && f.ownerDocument && f.ownerDocument.doctype && f.ownerDocument.doctype.name && G(Ia, f.ownerDocument.doctype.name) && (ee = "<!DOCTYPE " + f.ownerDocument.doctype.name + `>
5259
+ ` + ee), st && bn([ti, ni, ii], (ke) => {
5260
+ ee = It(ee, ke, " ");
5261
+ }), M && hn ? M.createHTML(ee) : ee;
5262
5262
  }, e.setConfig = function() {
5263
5263
  let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5264
5264
  di(b), oi = !0;
@@ -5359,13 +5359,13 @@ function C(n, e = "") {
5359
5359
  const i = {
5360
5360
  replace: (s, r) => {
5361
5361
  let o = typeof r == "string" ? r : r.source;
5362
- return o = o.replace(G.caret, "$1"), t = t.replace(s, o), i;
5362
+ return o = o.replace(Y.caret, "$1"), t = t.replace(s, o), i;
5363
5363
  },
5364
5364
  getRegex: () => new RegExp(t, e)
5365
5365
  };
5366
5366
  return i;
5367
5367
  }
5368
- var G = {
5368
+ var Y = {
5369
5369
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
5370
5370
  outputLinkReplace: /\\([\[\]])/g,
5371
5371
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -5422,10 +5422,10 @@ var G = {
5422
5422
  fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`),
5423
5423
  headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`),
5424
5424
  htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i")
5425
- }, Gh = /^(?:[ \t]*(?:\n|$))+/, Zh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Yh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ln = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, bs = /(?:[*+-]|\d{1,9}[.)])/, Ua = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Da = C(Ua).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(), Xh = C(Ua).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(), ys = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Kh = /^[^\n]+/, $s = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Jh = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $s).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ed = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bs).getRegex(), Jn = "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", xs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, td = C(
5425
+ }, Gh = /^(?:[ \t]*(?:\n|$))+/, Zh = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Yh = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ln = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qh = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, bs = /(?:[*+-]|\d{1,9}[.)])/, Ua = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Da = C(Ua).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(), Xh = C(Ua).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(), ys = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Kh = /^[^\n]+/, $s = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Jh = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $s).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ed = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, bs).getRegex(), Jn = "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", ws = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, td = C(
5426
5426
  "^ {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|$))",
5427
5427
  "i"
5428
- ).replace("comment", xs).replace("tag", Jn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), za = C(ys).replace("hr", ln).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", Jn).getRegex(), nd = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", za).getRegex(), ws = {
5428
+ ).replace("comment", ws).replace("tag", Jn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), za = C(ys).replace("hr", ln).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", Jn).getRegex(), nd = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", za).getRegex(), xs = {
5429
5429
  blockquote: nd,
5430
5430
  code: Zh,
5431
5431
  def: Jh,
@@ -5439,18 +5439,18 @@ var G = {
5439
5439
  paragraph: za,
5440
5440
  table: jt,
5441
5441
  text: Kh
5442
- }, xo = C(
5442
+ }, wo = C(
5443
5443
  "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"
5444
5444
  ).replace("hr", ln).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", Jn).getRegex(), id = {
5445
- ...ws,
5445
+ ...xs,
5446
5446
  lheading: Xh,
5447
- table: xo,
5448
- paragraph: C(ys).replace("hr", ln).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", xo).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", Jn).getRegex()
5447
+ table: wo,
5448
+ paragraph: C(ys).replace("hr", ln).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", wo).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", Jn).getRegex()
5449
5449
  }, sd = {
5450
- ...ws,
5450
+ ...xs,
5451
5451
  html: C(
5452
5452
  `^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`
5453
- ).replace("comment", xs).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(),
5453
+ ).replace("comment", ws).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(),
5454
5454
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
5455
5455
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
5456
5456
  fences: jt,
@@ -5461,9 +5461,9 @@ var G = {
5461
5461
  }, rd = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, od = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ha = /^( {2,}|\\)\n(?!\s*$)/, ad = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, ei = /[\p{P}\p{S}]/u, ks = /[\s\p{P}\p{S}]/u, Fa = /[^\s\p{P}\p{S}]/u, ld = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ks).getRegex(), ja = /(?!~)[\p{P}\p{S}]/u, cd = /(?!~)[\s\p{P}\p{S}]/u, ud = /(?:[^\s\p{P}\p{S}]|~)/u, hd = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, Ba = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, dd = C(Ba, "u").replace(/punct/g, ei).getRegex(), pd = C(Ba, "u").replace(/punct/g, ja).getRegex(), qa = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", fd = C(qa, "gu").replace(/notPunctSpace/g, Fa).replace(/punctSpace/g, ks).replace(/punct/g, ei).getRegex(), gd = C(qa, "gu").replace(/notPunctSpace/g, ud).replace(/punctSpace/g, cd).replace(/punct/g, ja).getRegex(), md = C(
5462
5462
  "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)",
5463
5463
  "gu"
5464
- ).replace(/notPunctSpace/g, Fa).replace(/punctSpace/g, ks).replace(/punct/g, ei).getRegex(), vd = C(/\\(punct)/, "gu").replace(/punct/g, ei).getRegex(), bd = C(/^<(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(), yd = C(xs).replace("(?:-->|$)", "-->").getRegex(), $d = C(
5464
+ ).replace(/notPunctSpace/g, Fa).replace(/punctSpace/g, ks).replace(/punct/g, ei).getRegex(), vd = C(/\\(punct)/, "gu").replace(/punct/g, ei).getRegex(), bd = C(/^<(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(), yd = C(ws).replace("(?:-->|$)", "-->").getRegex(), $d = C(
5465
5465
  "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"
5466
- ).replace("comment", yd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), zn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, xd = C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", zn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Va = C(/^!?\[(label)\]\[(ref)\]/).replace("label", zn).replace("ref", $s).getRegex(), Wa = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", $s).getRegex(), wd = C("reflink|nolink(?!\\()", "g").replace("reflink", Va).replace("nolink", Wa).getRegex(), Ss = {
5466
+ ).replace("comment", yd).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), zn = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, wd = C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", zn).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Va = C(/^!?\[(label)\]\[(ref)\]/).replace("label", zn).replace("ref", $s).getRegex(), Wa = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", $s).getRegex(), xd = C("reflink|nolink(?!\\()", "g").replace("reflink", Va).replace("nolink", Wa).getRegex(), Ss = {
5467
5467
  _backpedal: jt,
5468
5468
  // only used for GFM url
5469
5469
  anyPunctuation: vd,
@@ -5476,11 +5476,11 @@ var G = {
5476
5476
  emStrongRDelimAst: fd,
5477
5477
  emStrongRDelimUnd: md,
5478
5478
  escape: rd,
5479
- link: xd,
5479
+ link: wd,
5480
5480
  nolink: Wa,
5481
5481
  punctuation: ld,
5482
5482
  reflink: Va,
5483
- reflinkSearch: wd,
5483
+ reflinkSearch: xd,
5484
5484
  tag: $d,
5485
5485
  text: ad,
5486
5486
  url: jt
@@ -5501,7 +5501,7 @@ var G = {
5501
5501
  br: C(Ha).replace("{2,}", "*").getRegex(),
5502
5502
  text: C(Yi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5503
5503
  }, $n = {
5504
- normal: ws,
5504
+ normal: xs,
5505
5505
  gfm: id,
5506
5506
  pedantic: sd
5507
5507
  }, Ut = {
@@ -5515,18 +5515,18 @@ var G = {
5515
5515
  ">": "&gt;",
5516
5516
  '"': "&quot;",
5517
5517
  "'": "&#39;"
5518
- }, wo = (n) => Cd[n];
5518
+ }, xo = (n) => Cd[n];
5519
5519
  function ge(n, e) {
5520
5520
  if (e) {
5521
- if (G.escapeTest.test(n))
5522
- return n.replace(G.escapeReplace, wo);
5523
- } else if (G.escapeTestNoEncode.test(n))
5524
- return n.replace(G.escapeReplaceNoEncode, wo);
5521
+ if (Y.escapeTest.test(n))
5522
+ return n.replace(Y.escapeReplace, xo);
5523
+ } else if (Y.escapeTestNoEncode.test(n))
5524
+ return n.replace(Y.escapeReplaceNoEncode, xo);
5525
5525
  return n;
5526
5526
  }
5527
5527
  function ko(n) {
5528
5528
  try {
5529
- n = encodeURI(n).replace(G.percentDecode, "%");
5529
+ n = encodeURI(n).replace(Y.percentDecode, "%");
5530
5530
  } catch {
5531
5531
  return null;
5532
5532
  }
@@ -5534,11 +5534,11 @@ function ko(n) {
5534
5534
  }
5535
5535
  function So(n, e) {
5536
5536
  var r;
5537
- const t = n.replace(G.findPipe, (o, a, c) => {
5537
+ const t = n.replace(Y.findPipe, (o, a, c) => {
5538
5538
  let l = !1, u = a;
5539
5539
  for (; --u >= 0 && c[u] === "\\"; ) l = !l;
5540
5540
  return l ? "|" : " |";
5541
- }), i = t.split(G.splitPipe);
5541
+ }), i = t.split(Y.splitPipe);
5542
5542
  let s = 0;
5543
5543
  if (i[0].trim() || i.shift(), i.length > 0 && !((r = i.at(-1)) != null && r.trim()) && i.pop(), e)
5544
5544
  if (i.length > e)
@@ -5546,7 +5546,7 @@ function So(n, e) {
5546
5546
  else
5547
5547
  for (; i.length < e; ) i.push("");
5548
5548
  for (; s < i.length; s++)
5549
- i[s] = i[s].trim().replace(G.slashPipe, "|");
5549
+ i[s] = i[s].trim().replace(Y.slashPipe, "|");
5550
5550
  return i;
5551
5551
  }
5552
5552
  function Dt(n, e, t) {
@@ -5767,12 +5767,12 @@ ${u}` : u;
5767
5767
  }
5768
5768
  }
5769
5769
  s.loose || (o ? s.loose = !0 : this.rules.other.doubleBlankLine.test(l) && (o = !0));
5770
- let $ = null, ye;
5771
- this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && (ye = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5770
+ let $ = null, $e;
5771
+ this.options.gfm && ($ = this.rules.other.listIsTask.exec(u), $ && ($e = $[0] !== "[ ] ", u = u.replace(this.rules.other.listReplaceTask, ""))), s.items.push({
5772
5772
  type: "list_item",
5773
5773
  raw: l,
5774
5774
  task: !!$,
5775
- checked: ye,
5775
+ checked: $e,
5776
5776
  loose: !1,
5777
5777
  text: u,
5778
5778
  tokens: []
@@ -6094,7 +6094,7 @@ ${u}` : u;
6094
6094
  top: !0
6095
6095
  };
6096
6096
  const t = {
6097
- other: G,
6097
+ other: Y,
6098
6098
  block: $n.normal,
6099
6099
  inline: Ut.normal
6100
6100
  };
@@ -6125,7 +6125,7 @@ ${u}` : u;
6125
6125
  * Preprocessing
6126
6126
  */
6127
6127
  lex(e) {
6128
- e = e.replace(G.carriageReturn, `
6128
+ e = e.replace(Y.carriageReturn, `
6129
6129
  `), this.blockTokens(e, this.tokens);
6130
6130
  for (let t = 0; t < this.inlineQueue.length; t++) {
6131
6131
  const i = this.inlineQueue[t];
@@ -6135,7 +6135,7 @@ ${u}` : u;
6135
6135
  }
6136
6136
  blockTokens(e, t = [], i = !1) {
6137
6137
  var s, r, o;
6138
- for (this.options.pedantic && (e = e.replace(G.tabCharGlobal, " ").replace(G.spaceLine, "")); e; ) {
6138
+ for (this.options.pedantic && (e = e.replace(Y.tabCharGlobal, " ").replace(Y.spaceLine, "")); e; ) {
6139
6139
  let a;
6140
6140
  if ((r = (s = this.options.extensions) == null ? void 0 : s.block) != null && r.some((l) => (a = l.call({ lexer: this }, e, t)) ? (e = e.substring(a.raw.length), t.push(a), !0) : !1))
6141
6141
  continue;
@@ -6337,7 +6337,7 @@ ${u}` : u;
6337
6337
  }
6338
6338
  code({ text: n, lang: e, escaped: t }) {
6339
6339
  var r;
6340
- const i = (r = (e || "").match(G.notSpaceStart)) == null ? void 0 : r[0], s = n.replace(G.endingNewline, "") + `
6340
+ const i = (r = (e || "").match(Y.notSpaceStart)) == null ? void 0 : r[0], s = n.replace(Y.endingNewline, "") + `
6341
6341
  `;
6342
6342
  return i ? '<pre><code class="language-' + ge(i) + '">' + (t ? s : ge(s, !0)) + `</code></pre>
6343
6343
  ` : "<pre><code>" + (t ? s : ge(s, !0)) + `</code></pre>
@@ -6907,7 +6907,7 @@ Za.link = function({ href: n, title: e, text: t }) {
6907
6907
  S.use({ renderer: Za });
6908
6908
  const Hs = class Hs extends A {
6909
6909
  constructor() {
6910
- super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = me(), this.contentRef = me(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
6910
+ super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = ve(), this.contentRef = ve(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm);
6911
6911
  }
6912
6912
  // Stop autoscroll on user interaction
6913
6913
  handleAutoscroll() {
@@ -6970,10 +6970,10 @@ const Hs = class Hs extends A {
6970
6970
  }
6971
6971
  render() {
6972
6972
  return y`
6973
- <div class="message-type-markdown" ${ve(this.contentRef)}>
6973
+ <div class="message-type-markdown" ${be(this.contentRef)}>
6974
6974
  <div></div>
6975
6975
  </div>
6976
- <div class="scroll" ${ve(this.scrollRef)}></div>
6976
+ <div class="scroll" ${be(this.scrollRef)}></div>
6977
6977
  ${this.showLightbox ? y`<ace-lightbox
6978
6978
  imageUrl="${this.imageUrl}"
6979
6979
  altText="${this.altText}"
@@ -7136,7 +7136,7 @@ customElements.get("message-type-markdown") || customElements.define("message-ty
7136
7136
  customElements.get("ace-lightbox") || customElements.define("ace-lightbox", Fn);
7137
7137
  const Eo = Ca(A), js = class js extends Eo {
7138
7138
  constructor() {
7139
- super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.conversationContentRef = me(), this.conversationFeedRef = me(), this.formRef = me(), this.inputRef = me(), this.scrollRef = me(), this.counterRef = me(), this.chatCurrentScrollPosition = 0, this.toast = new gh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new he("waiting"), this.stateMachine = new vh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7139
+ super(...arguments), this.platform = null, this.entries = [], this.typing = !1, this.message = "", this.disabledInput = !1, this.disabledSkipToLatest = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.showAuthBanner = !1, this.authenticated = !1, this.isMuted = !1, this.conversationContentRef = ve(), this.conversationFeedRef = ve(), this.formRef = ve(), this.inputRef = ve(), this.scrollRef = ve(), this.counterRef = ve(), this.chatCurrentScrollPosition = 0, this.toast = new gh(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.conversationState$ = new he("waiting"), this.stateMachine = new vh(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
7140
7140
  Oe((e) => e ? e == null ? void 0 : e.provider$ : Ii(null))
7141
7141
  ), this.userTyping$ = new P();
7142
7142
  }
@@ -7300,7 +7300,7 @@ const Eo = Ca(A), js = class js extends Eo {
7300
7300
  ).pop().focus();
7301
7301
  }
7302
7302
  setAuthenticationBannerStatus(e) {
7303
- this.showAuthBanner = e !== null, this.authenticated = e === ee.Authenticated;
7303
+ this.showAuthBanner = e !== null, this.authenticated = e === Z.Authenticated;
7304
7304
  }
7305
7305
  handover(e, t) {
7306
7306
  this.enableInput(), this.setToastMessage(null);
@@ -7327,12 +7327,12 @@ const Eo = Ca(A), js = class js extends Eo {
7327
7327
  class="auth-banner__icon"
7328
7328
  size="sm"
7329
7329
  svg=${na.svg}
7330
- ></telia-icon>` : x}
7330
+ ></telia-icon>` : w}
7331
7331
  <span>${this.getAuthBannerMessage()}</span>
7332
- </div>` : x}
7332
+ </div>` : w}
7333
7333
  <div
7334
7334
  @action=${this.actionHandler}
7335
- class=${xt({
7335
+ class=${wt({
7336
7336
  conversation: !0,
7337
7337
  disabled: this.disabledInput,
7338
7338
  "conversation--has-toast": this.toast.hasMessage(),
@@ -7347,29 +7347,29 @@ const Eo = Ca(A), js = class js extends Eo {
7347
7347
  >
7348
7348
  <telia-icon svg=${ia.svg}></telia-icon>
7349
7349
  </button>
7350
- </div>` : x}
7350
+ </div>` : w}
7351
7351
  <div
7352
- class=${xt({
7352
+ class=${wt({
7353
7353
  "conversation-content": !0,
7354
7354
  "conversation-overlay-mode": this.chatOverlayActive
7355
7355
  })}
7356
7356
  part="scroll-container"
7357
7357
  aria-live="polite"
7358
- ${ve(this.conversationContentRef)}
7358
+ ${be(this.conversationContentRef)}
7359
7359
  >
7360
- ${this.toast.hasMessage() ? y`<div class="conversation__toast">${this.toast.message}</div>` : x}
7360
+ ${this.toast.hasMessage() ? y`<div class="conversation__toast">${this.toast.message}</div>` : w}
7361
7361
  <ace-conversation-feed
7362
7362
  .entries=${this.entries}
7363
7363
  .loading=${this.typing}
7364
- ${ve(this.conversationFeedRef)}
7364
+ ${be(this.conversationFeedRef)}
7365
7365
  @updated=${this.onSessionUpdated}
7366
7366
  ></ace-conversation-feed>
7367
- <div class="scroll" ${ve(this.scrollRef)}></div>
7367
+ <div class="scroll" ${be(this.scrollRef)}></div>
7368
7368
  </div>
7369
7369
  <form
7370
7370
  class="conversation-bottom"
7371
7371
  @submit=${this.onSendMessage}
7372
- ${ve(this.formRef)}
7372
+ ${be(this.formRef)}
7373
7373
  ?inert=${this.disabledInput}
7374
7374
  data-testid="conversation-bottom"
7375
7375
  >
@@ -7387,7 +7387,7 @@ const Eo = Ca(A), js = class js extends Eo {
7387
7387
  .value=${this.message}
7388
7388
  @input=${this.inputHandler}
7389
7389
  @keydown=${this.keyDownHandler}
7390
- ${ve(this.inputRef)}
7390
+ ${be(this.inputRef)}
7391
7391
  aria-valuenow=${this.textAreaLength}
7392
7392
  aria-valuemax=${this.messageMaxLength}
7393
7393
  aria-valuemin="0"
@@ -7403,7 +7403,7 @@ const Eo = Ca(A), js = class js extends Eo {
7403
7403
  >
7404
7404
  <telia-icon svg=${sa.svg}></telia-icon>
7405
7405
  </button>
7406
- <span class="counter" ${ve(this.counterRef)}>
7406
+ <span class="counter" ${be(this.counterRef)}>
7407
7407
  ${this.textAreaLength} / ${this.messageMaxLength}</span
7408
7408
  >
7409
7409
  </div>
@@ -7411,7 +7411,7 @@ const Eo = Ca(A), js = class js extends Eo {
7411
7411
  ${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
7412
7412
  </div>
7413
7413
  </form>
7414
- ${this.disabledSkipToLatest ? x : y`<button
7414
+ ${this.disabledSkipToLatest ? w : y`<button
7415
7415
  class="skip-to-latest-message-button"
7416
7416
  @click=${this.skipToLatestMessage}
7417
7417
  >
@@ -7916,7 +7916,7 @@ class Bt {
7916
7916
  }
7917
7917
  }
7918
7918
  }
7919
- const Se = (n) => n.objectType === "info", Id = (n) => n.objectType === "chatEntry", Pd = (n) => n.objectType === "pen", Md = (n) => n.objectType === "chatButtonClicked", Nd = (n) => n.objectType === "endVideoButtonClicked", Ud = (n) => n.type === "queue-status", Dd = (n) => n.type === "established", zd = (n) => n.type === "pen-status", Hd = (n) => n.type === "prepareVideo", Fd = (n) => n.type === "videoPrepared", jd = (n) => n.type === "chatButtonClicked", Bd = (n) => n.type === "endVideoButtonClicked", qd = (n) => n.type === "chat-ended";
7919
+ const Ce = (n) => n.objectType === "info", Id = (n) => n.objectType === "chatEntry", Pd = (n) => n.objectType === "pen", Md = (n) => n.objectType === "chatButtonClicked", Nd = (n) => n.objectType === "endVideoButtonClicked", Ud = (n) => n.type === "queue-status", Dd = (n) => n.type === "established", zd = (n) => n.type === "pen-status", Hd = (n) => n.type === "prepareVideo", Fd = (n) => n.type === "videoPrepared", jd = (n) => n.type === "chatButtonClicked", Bd = (n) => n.type === "endVideoButtonClicked", qd = (n) => n.type === "chat-ended";
7920
7920
  var Ze = /* @__PURE__ */ ((n) => (n.Initial = "initial", n.Error = "error", n.Retry = "retry", n))(Ze || {});
7921
7921
  class jn extends Error {
7922
7922
  constructor(e) {
@@ -8153,7 +8153,7 @@ class Gd {
8153
8153
  clockstamp: Date.now().toString(),
8154
8154
  message: e
8155
8155
  }), i = ((t == null ? void 0 : t.dataObjects) || []).find(
8156
- (s) => Se(s) && s.infoType === "error"
8156
+ (s) => Ce(s) && s.infoType === "error"
8157
8157
  );
8158
8158
  if (i)
8159
8159
  throw new jn(i.text || "Unable to send message");
@@ -8187,7 +8187,7 @@ class Gd {
8187
8187
  emailAddress: e
8188
8188
  });
8189
8189
  if (((t == null ? void 0 : t.dataObjects) || []).find(
8190
- (s) => Se(s) && s.infoType === "error"
8190
+ (s) => Ce(s) && s.infoType === "error"
8191
8191
  ))
8192
8192
  throw new jn("Unable to send email with conversation");
8193
8193
  }
@@ -8201,10 +8201,10 @@ class Gd {
8201
8201
  }), Pd(t) && this.actionsSubject$.next({
8202
8202
  penStatus: t.penStatus,
8203
8203
  type: "pen-status"
8204
- }), Se(t) && t.infoType === "queue" && this.actionsSubject$.next({
8204
+ }), Ce(t) && t.infoType === "queue" && this.actionsSubject$.next({
8205
8205
  text: t.text,
8206
8206
  type: "queue-status"
8207
- }), Se(t) && t.infoType === "established" && this.actionsSubject$.next({
8207
+ }), Ce(t) && t.infoType === "established" && this.actionsSubject$.next({
8208
8208
  text: t.text,
8209
8209
  agentAlias: t.agentAlias,
8210
8210
  type: "established",
@@ -8213,9 +8213,9 @@ class Gd {
8213
8213
  agentUsername: t.agentUsername,
8214
8214
  entrance: t.entrance,
8215
8215
  errand: t.errand
8216
- }), Se(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8216
+ }), Ce(t) && t.infoType === "prepareVideo" && this.actionsSubject$.next({
8217
8217
  type: "prepareVideo"
8218
- }), Se(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8218
+ }), Ce(t) && t.infoType === "videoPrepared" && this.actionsSubject$.next({
8219
8219
  text: t.text,
8220
8220
  agent: t.agent,
8221
8221
  type: "videoPrepared",
@@ -8226,7 +8226,7 @@ class Gd {
8226
8226
  }), Nd(t) && this.actionsSubject$.next({
8227
8227
  guestId: t.guestId,
8228
8228
  type: "endVideoButtonClicked"
8229
- }), Se(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8229
+ }), Ce(t) && ["afterChat", "finished"].includes(t.infoType) && this.actionsSubject$.next({
8230
8230
  text: t.text,
8231
8231
  type: "chat-ended",
8232
8232
  showForm: t.infoType === "afterChat",
@@ -8243,7 +8243,7 @@ class Gd {
8243
8243
  return "noSession";
8244
8244
  const t = e.dataObjects;
8245
8245
  for (const i of t)
8246
- if (Se(i))
8246
+ if (Ce(i))
8247
8247
  switch (i.infoType) {
8248
8248
  case "finished":
8249
8249
  case "afterChat":
@@ -8259,7 +8259,7 @@ class Gd {
8259
8259
  instance: this.config.instance
8260
8260
  });
8261
8261
  return !e || (e.dataObjects || []).find(
8262
- (t) => Se(t) && t.infoType === "noSession"
8262
+ (t) => Ce(t) && t.infoType === "noSession"
8263
8263
  ) ? null : (this.processMessages(e), e);
8264
8264
  }
8265
8265
  // TODO: Add missing Chat Engine requests below:
@@ -8388,7 +8388,7 @@ let it = (bt = class extends A {
8388
8388
  }
8389
8389
  render() {
8390
8390
  if (this.submitted)
8391
- return x;
8391
+ return w;
8392
8392
  const e = this.application.texts;
8393
8393
  return y`<div class="container">
8394
8394
  <form class="form" @submit=${this._onStartChat}>
@@ -8580,7 +8580,7 @@ const Bs = class Bs extends A {
8580
8580
  const t = (o = this.application.branding().graphics) == null ? void 0 : o.logotype, i = this.application.texts;
8581
8581
  this.application.root.style.getPropertyValue("visibility") === "" && (this.application.root.style.visibility = "hidden");
8582
8582
  const r = new URLSearchParams(document.location.search).get("invitationUid");
8583
- return this.submitted ? x : r ? y`<div class="container">
8583
+ return this.submitted ? w : r ? y`<div class="container">
8584
8584
  <img class="logotype" src="${t}" />
8585
8585
  <p>
8586
8586
  ${i.getOrFallback(
@@ -9232,7 +9232,7 @@ const Zs = class Zs extends A {
9232
9232
  }
9233
9233
  renderRequiredIndicator(e) {
9234
9234
  if (!e)
9235
- return x;
9235
+ return w;
9236
9236
  const t = this.application.texts;
9237
9237
  return y`
9238
9238
  <span aria-hidden="true">*</span>
@@ -9536,7 +9536,7 @@ const Qs = class Qs extends A {
9536
9536
  const { tunnistusURL: t = "", state: i = Ze.Initial } = e ?? {};
9537
9537
  this.tunnistusURL = t, this.state = i;
9538
9538
  }
9539
- _onStartAuth() {
9539
+ onStartAuth() {
9540
9540
  const e = new CustomEvent("action", {
9541
9541
  composed: !0,
9542
9542
  detail: {
@@ -9570,7 +9570,7 @@ const Qs = class Qs extends A {
9570
9570
  class="primary"
9571
9571
  target="_blank"
9572
9572
  href="${this.tunnistusURL}"
9573
- @click=${this._onStartAuth}
9573
+ @click=${this.onStartAuth}
9574
9574
  data-testId="auth-error-link"
9575
9575
  >
9576
9576
  ${e.getOrFallback(
@@ -9604,7 +9604,7 @@ const Qs = class Qs extends A {
9604
9604
  class="primary"
9605
9605
  target="_blank"
9606
9606
  href="${this.tunnistusURL}"
9607
- @click=${this._onStartAuth}
9607
+ @click=${this.onStartAuth}
9608
9608
  data-testId="auth-initial-link"
9609
9609
  >
9610
9610
  ${e.getOrFallback(
@@ -9803,7 +9803,7 @@ hp([
9803
9803
  k({ attribute: !1 })
9804
9804
  ], en.prototype, "application");
9805
9805
  window.customElements.get("ace-video-iframe") || window.customElements.define("ace-video-iframe", en);
9806
- class Ts extends xc {
9806
+ class Ts extends wc {
9807
9807
  constructor(e, t) {
9808
9808
  var i, s, r, o, a, c;
9809
9809
  super(e, t), this.pendingMessages = [], this.texts = this.component.application.texts, this.headerComponent = this.component.application.getComponent("widget-header"), this.isThirdPartyParticipant = this.component.properties.chat.isThirdPartyWidget, this.agent = this.createAgent(
@@ -9869,10 +9869,10 @@ class Ts extends xc {
9869
9869
  this.printSystem(r.text);
9870
9870
  break;
9871
9871
  }
9872
- }), this.engine.actions().pipe(z(this.disconnected$), J(Ud)).subscribe(this.onQueueStatusReceived), this.engine.actions().pipe(z(this.disconnected$), J(Dd)).subscribe(this.onEstablished), this.engine.actions().pipe(z(this.disconnected$), J(Hd)).subscribe(this.onPrepareVideo), this.engine.actions().pipe(z(this.disconnected$), J(Fd)).subscribe(this.onVideoPrepared), this.engine.actions().pipe(z(this.disconnected$), J(jd)).subscribe(this.onChatButtonClicked), this.engine.actions().pipe(
9872
+ }), this.engine.actions().pipe(z(this.disconnected$), W(Ud)).subscribe(this.onQueueStatusReceived), this.engine.actions().pipe(z(this.disconnected$), W(Dd)).subscribe(this.onEstablished), this.engine.actions().pipe(z(this.disconnected$), W(Hd)).subscribe(this.onPrepareVideo), this.engine.actions().pipe(z(this.disconnected$), W(Fd)).subscribe(this.onVideoPrepared), this.engine.actions().pipe(z(this.disconnected$), W(jd)).subscribe(this.onChatButtonClicked), this.engine.actions().pipe(
9873
9873
  z(this.disconnected$),
9874
- J(Bd)
9875
- ).subscribe(this.onEndVideoButtonClicked), this.engine.actions().pipe(z(this.disconnected$), J(zd)).subscribe(this.onPenStatusChange), this.engine.actions().pipe(z(this.disconnected$), J(qd)).subscribe(this.onChatEnded), this.setHeaderOption();
9874
+ W(Bd)
9875
+ ).subscribe(this.onEndVideoButtonClicked), this.engine.actions().pipe(z(this.disconnected$), W(zd)).subscribe(this.onPenStatusChange), this.engine.actions().pipe(z(this.disconnected$), W(qd)).subscribe(this.onChatEnded), this.setHeaderOption();
9876
9876
  const s = this.component.application.trigger;
9877
9877
  s && s.widgetActive$.pipe(z(s.componentIsDestroyed$)).subscribe((r) => {
9878
9878
  r && (this.conversationOption = null, this.setHeaderOption());
@@ -9912,7 +9912,7 @@ class Ts extends xc {
9912
9912
  save(e) {
9913
9913
  this.component.stateMachine.session().pipe(
9914
9914
  Oe((t) => (t == null ? void 0 : t.data$) || tt),
9915
- Ee(1)
9915
+ me(1)
9916
9916
  ).subscribe((t) => {
9917
9917
  this.saveToCurrentSession$.next({ ...t, ...e });
9918
9918
  });
@@ -9922,8 +9922,8 @@ class Ts extends xc {
9922
9922
  const t = this.component.application.storage.get(
9923
9923
  "auth"
9924
9924
  );
9925
- t != null && t.authenticated ? this.component.setAuthenticationBannerStatus(ee.Authenticated) : this.component.setAuthenticationBannerStatus(
9926
- ee.NonAuthenticated
9925
+ t != null && t.authenticated ? this.component.setAuthenticationBannerStatus(Z.Authenticated) : this.component.setAuthenticationBannerStatus(
9926
+ Z.NonAuthenticated
9927
9927
  );
9928
9928
  }
9929
9929
  }
@@ -9937,12 +9937,12 @@ class Ts extends xc {
9937
9937
  // INTERNAL UTILITY METHODS
9938
9938
  // ========================
9939
9939
  async initializeChat(e) {
9940
- this.shouldUseAuth && this.idHubEidType ? (this.component.setAuthenticationBannerStatus(ee.NonAuthenticated), this.setupIDHubAuth(), this.idHubClient && await this.startAuthenticationFlow()) : this.handleWelcomeForm(e);
9940
+ this.shouldUseAuth && this.idHubEidType ? (this.component.setAuthenticationBannerStatus(Z.NonAuthenticated), this.setupIDHubAuth(), this.idHubClient && await this.startAuthenticationFlow()) : this.handleWelcomeForm(e);
9941
9941
  }
9942
9942
  setupAuthenticationListeners() {
9943
9943
  var e;
9944
9944
  this.shouldUseAuth && this.headerComponent && this.headerComponent.actions$ && ((e = this.headerComponent) == null || e.actions$.pipe(
9945
- J((t) => t.key === "start-auth"),
9945
+ W((t) => t.key === "start-auth"),
9946
9946
  z(this.disconnected$)
9947
9947
  ).subscribe((t) => {
9948
9948
  t.key === "start-auth" && this.handleAuthentication();
@@ -9955,8 +9955,40 @@ class Ts extends xc {
9955
9955
  idHubUrl: this.idHubUrl
9956
9956
  });
9957
9957
  }
9958
- async startAuthenticationFlow() {
9959
- this.component.disableInput(), this.resetAuthState(ee.NonAuthenticated);
9958
+ async startAuthenticationFlow(e = !1) {
9959
+ if (this.component.disableInput(), e || (this.resetAuthState(Z.NonAuthenticated), this.authResult = await this.getAuthResult()), !!this.authResult)
9960
+ switch (this.idHubEidType) {
9961
+ // ========================
9962
+ // Tunnistus authentication
9963
+ // ========================
9964
+ case Te.Tunnistus:
9965
+ if (!this.authResult.tunnistusURL) {
9966
+ this.printSystem(
9967
+ this.texts.getOrFallback(
9968
+ "auth.setup.tunnistus.url-error-message",
9969
+ "Unable to retrieve the Tunnistus authentication URL."
9970
+ )
9971
+ ), this.headerComponent.showAuthOptions = !1;
9972
+ return;
9973
+ }
9974
+ this.headerComponent.authUrl = this.authResult.tunnistusURL, this.headerComponent.authState = Z.NonAuthenticated, e ? this.handleAuthentication() : (this.authenticationCardEntry = this.showTunnistusAuthCard(
9975
+ Ze.Initial,
9976
+ this.authResult.tunnistusURL
9977
+ ), this.authenticationCardEntry.actions$.pipe(
9978
+ W((t) => t.key === "start-auth"),
9979
+ me(1)
9980
+ ).subscribe(() => {
9981
+ this.handleAuthentication();
9982
+ }));
9983
+ break;
9984
+ // =====================
9985
+ // BankId authentication
9986
+ // =====================
9987
+ case Te.BankId:
9988
+ break;
9989
+ }
9990
+ }
9991
+ async getAuthResult() {
9960
9992
  const e = await this.idHubClient.auth();
9961
9993
  if (e.status === H.Error) {
9962
9994
  this.printSystem(
@@ -9967,36 +9999,7 @@ class Ts extends xc {
9967
9999
  ), this.headerComponent.showAuthOptions = !1;
9968
10000
  return;
9969
10001
  }
9970
- switch (this.idHubEidType) {
9971
- // ========================
9972
- // Tunnistus authentication
9973
- // ========================
9974
- case Te.Tunnistus:
9975
- if (!e.tunnistusURL) {
9976
- this.printSystem(
9977
- this.texts.getOrFallback(
9978
- "auth.setup.tunnistus.url-error-message",
9979
- "Unable to retrieve the Tunnistus authentication URL."
9980
- )
9981
- ), this.headerComponent.showAuthOptions = !1;
9982
- return;
9983
- }
9984
- this.authURL = e.tunnistusURL, this.headerComponent.authUrl = e.tunnistusURL, this.headerComponent.authState = ee.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
9985
- Ze.Initial,
9986
- e.tunnistusURL
9987
- ), this.authenticationCardEntry.actions$.pipe(
9988
- J((t) => t.key === "start-auth"),
9989
- Ee(1)
9990
- ).subscribe(() => {
9991
- this.handleAuthentication();
9992
- });
9993
- break;
9994
- // =====================
9995
- // BankId authentication
9996
- // =====================
9997
- case Te.BankId:
9998
- break;
9999
- }
10002
+ return e;
10000
10003
  }
10001
10004
  async handleWelcomeForm(e, t) {
10002
10005
  let i = !0;
@@ -10043,7 +10046,7 @@ class Ts extends xc {
10043
10046
  }
10044
10047
  async endConversation() {
10045
10048
  var e;
10046
- this.shouldUseAuth && this.resetAuthState(ee.ChatEnded), await ((e = this.engine) == null ? void 0 : e.chatQuit());
10049
+ this.shouldUseAuth && this.resetAuthState(Z.ChatEnded), await ((e = this.engine) == null ? void 0 : e.chatQuit());
10047
10050
  }
10048
10051
  async sendConversationEmail(e) {
10049
10052
  var t;
@@ -10088,7 +10091,7 @@ class Ts extends xc {
10088
10091
  return i;
10089
10092
  }
10090
10093
  resetAuthState(e) {
10091
- this.headerComponent.authState = e, this.headerComponent.userName = "", this.headerComponent.authUrl = "", this.authURL = "", this.component.application.storage.removeItem("auth");
10094
+ this.headerComponent.authState = e, this.headerComponent.userName = "", this.headerComponent.authUrl = "", e === Z.ChatEnded && (this.authResult = void 0), this.component.application.storage.removeItem("auth");
10092
10095
  }
10093
10096
  unescapeHtml(e) {
10094
10097
  const t = document.createElement("textarea");
@@ -10099,27 +10102,33 @@ class Ts extends xc {
10099
10102
  this.headerComponent.userName = this.texts.getOrFallback(
10100
10103
  "widget-header.authenticating",
10101
10104
  "Authenticating..."
10102
- ), this.headerComponent.authState = ee.Authenticating;
10105
+ ), this.headerComponent.authState = Z.Authenticating;
10103
10106
  const e = await this.idHubClient.collect();
10104
10107
  switch (this.authenticationCardEntry && this.authenticationCardEntry.remove(), this.idHubEidType) {
10105
10108
  case Te.Tunnistus:
10106
10109
  if (e.status === H.Error) {
10110
+ if (this.authResult = await this.getAuthResult(), !this.authResult) return;
10107
10111
  this.headerComponent.userName = this.texts.getOrFallback(
10108
10112
  "widget-header.not-authenticated",
10109
10113
  "Not authenticated"
10110
- ), this.headerComponent.authState = ee.NonAuthenticated, this.authenticationCardEntry = this.showTunnistusAuthCard(
10114
+ ), this.headerComponent.authState = Z.NonAuthenticated, this.headerComponent.authUrl = this.authResult.tunnistusURL, this.authenticationCardEntry = this.showTunnistusAuthCard(
10111
10115
  Ze.Error,
10112
- this.authURL
10113
- );
10116
+ this.authResult.tunnistusURL
10117
+ ), this.authenticationCardEntry.actions$.pipe(
10118
+ W((o) => o.key === "start-auth"),
10119
+ me(1)
10120
+ ).subscribe(async () => {
10121
+ this.startAuthenticationFlow(!0);
10122
+ });
10114
10123
  return;
10115
10124
  } else if (e.status === H.Authenticated) {
10116
10125
  const o = Wd(
10117
10126
  ((t = e == null ? void 0 : e.idhubEIDToken) == null ? void 0 : t.split(".")[1]) ?? ""
10118
10127
  ), a = JSON.parse(o), c = ((s = (i = a == null ? void 0 : a.completionData) == null ? void 0 : i.user) == null ? void 0 : s.name) ?? "";
10119
- this.headerComponent.userName = c, this.headerComponent.authState = ee.Authenticated, this.component.application.storage.set("auth", {
10128
+ this.headerComponent.userName = c, this.headerComponent.authState = Z.Authenticated, this.component.application.storage.set("auth", {
10120
10129
  name: c,
10121
10130
  authenticated: !0
10122
- }), this.component.setAuthenticationBannerStatus(ee.Authenticated), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
10131
+ }), this.component.setAuthenticationBannerStatus(Z.Authenticated), (r = this.authenticationCardEntry) == null || r.remove(), this.handleWelcomeForm(
10123
10132
  this.engine.config,
10124
10133
  e.idhubEIDToken
10125
10134
  );
@@ -10220,8 +10229,8 @@ class Ts extends xc {
10220
10229
  }
10221
10230
  ]
10222
10231
  ), this.printEntry(t), t.actions$.pipe(
10223
- J((i) => i.key === "submitted"),
10224
- Ee(1)
10232
+ W((i) => i.key === "submitted"),
10233
+ me(1)
10225
10234
  ).subscribe((i) => {
10226
10235
  t.remove(), this.user.name = i.data.name, this.component.application.storage.set("userInfo", {
10227
10236
  name: this.user.name
@@ -10264,8 +10273,8 @@ class Ts extends xc {
10264
10273
  }
10265
10274
  ]
10266
10275
  ), this.printEntry(this.quitConfirmDialogEntry), this.quitConfirmDialogEntry.actions$.pipe(
10267
- J((t) => t.key === "quit-chat"),
10268
- Ee(1)
10276
+ W((t) => t.key === "quit-chat"),
10277
+ me(1)
10269
10278
  ).subscribe((t) => {
10270
10279
  var i, s, r, o;
10271
10280
  ((i = t.data) == null ? void 0 : i.result) === "quit" ? (this.endConversation(), (s = this.quitConfirmDialogEntry) == null || s.remove()) : ((r = t.data) == null ? void 0 : r.result) === "cancel" && ((o = this.quitConfirmDialogEntry) == null || o.remove());
@@ -10284,8 +10293,8 @@ class Ts extends xc {
10284
10293
  ]
10285
10294
  );
10286
10295
  this.printEntry(e), e.actions$.pipe(
10287
- J((t) => t.key === "submitted"),
10288
- Ee(1)
10296
+ W((t) => t.key === "submitted"),
10297
+ me(1)
10289
10298
  ).subscribe((t) => {
10290
10299
  e.remove(), t.data.email && this.sendConversationEmail(t.data.email);
10291
10300
  });
@@ -10302,8 +10311,8 @@ class Ts extends xc {
10302
10311
  }
10303
10312
  ]
10304
10313
  ), this.printEntry(this.videoConfirmDialogEntry), this.videoConfirmDialogEntry.actions$.pipe(
10305
- J((e) => e.key === "video-confirm"),
10306
- Ee(1)
10314
+ W((e) => e.key === "video-confirm"),
10315
+ me(1)
10307
10316
  ).subscribe((e) => {
10308
10317
  var t;
10309
10318
  this.videoConfirmDialogEntry && this.videoConfirmDialogEntry.remove(), e.data.result === "declined" && (this.guestId = null), (t = this.engine) == null || t.videoPrepared(e.data.result), this.printSystem(e.data.text);
@@ -10320,7 +10329,7 @@ class Ts extends xc {
10320
10329
  }
10321
10330
  // Function to end active authenticated chat session.
10322
10331
  async endAuthenticatedSession() {
10323
- this.component.setAuthenticationBannerStatus(ee.NonAuthenticated), await this.engine.getChatStatus() === "noSession" ? (this.resetAuthState(ee.NonAuthenticated), this.setSessionId(null), this.component.clearMessages(), this.shouldUseAuth && this.startAuthenticationFlow()) : this.endConversation();
10332
+ this.component.setAuthenticationBannerStatus(Z.NonAuthenticated), await this.engine.getChatStatus() === "noSession" ? (this.resetAuthState(Z.NonAuthenticated), this.setSessionId(null), this.component.clearMessages(), this.shouldUseAuth && this.startAuthenticationFlow()) : this.endConversation();
10324
10333
  }
10325
10334
  // ===========
10326
10335
  // UI REMOVERS