lr-chatbot 0.13.12 → 0.13.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -12,7 +12,7 @@ function hf(t) {
12
12
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
13
13
  }
14
14
  function mf(t) {
15
- if (Array.isArray(t)) return wo(t);
15
+ if (Array.isArray(t)) return bo(t);
16
16
  }
17
17
  function gf(t, n) {
18
18
  var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
@@ -48,20 +48,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48
48
  }
49
49
  function Wu(t, n) {
50
50
  if (t) {
51
- if (typeof t == "string") return wo(t, n);
51
+ if (typeof t == "string") return bo(t, n);
52
52
  var e = Object.prototype.toString.call(t).slice(8, -1);
53
53
  if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
54
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return wo(t, n);
54
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return bo(t, n);
55
55
  }
56
56
  }
57
- function wo(t, n) {
57
+ function bo(t, n) {
58
58
  (n == null || n > t.length) && (n = t.length);
59
59
  for (var e = 0, r = new Array(n); e < n; e++) r[e] = t[e];
60
60
  return r;
61
61
  }
62
- function So(t) {
62
+ function wo(t) {
63
63
  var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
64
- return So = function(r) {
64
+ return wo = function(r) {
65
65
  if (r === null || !yf(r)) return r;
66
66
  if (typeof r != "function")
67
67
  throw new TypeError("Super expression must either be null or a function");
@@ -73,10 +73,10 @@ function So(t) {
73
73
  return vf(r, arguments, hr(this).constructor);
74
74
  }
75
75
  return i.prototype = Object.create(r.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), mr(i, r);
76
- }, So(t);
76
+ }, wo(t);
77
77
  }
78
78
  function vf(t, n, e) {
79
- if (es()) return Reflect.construct.apply(null, arguments);
79
+ if (Qo()) return Reflect.construct.apply(null, arguments);
80
80
  var r = [null];
81
81
  r.push.apply(r, n);
82
82
  var i = new (t.bind.apply(t, r))();
@@ -90,7 +90,7 @@ function yf(t) {
90
90
  }
91
91
  }
92
92
  function K(t, n, e) {
93
- return n = hr(n), bf(t, es() ? Reflect.construct(n, e || [], hr(t).constructor) : n.apply(t, e));
93
+ return n = hr(n), bf(t, Qo() ? Reflect.construct(n, e || [], hr(t).constructor) : n.apply(t, e));
94
94
  }
95
95
  function bf(t, n) {
96
96
  if (n && (V(n) === "object" || typeof n == "function"))
@@ -104,13 +104,13 @@ function fr(t) {
104
104
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
105
105
  return t;
106
106
  }
107
- function es() {
107
+ function Qo() {
108
108
  try {
109
109
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
110
110
  }));
111
111
  } catch {
112
112
  }
113
- return (es = function() {
113
+ return (Qo = function() {
114
114
  return !!t;
115
115
  })();
116
116
  }
@@ -367,7 +367,7 @@ function m() {
367
367
  return this.delegate = { iterator: ve(x), resultName: M, nextLoc: D }, this.method === "next" && (this.arg = t), v;
368
368
  } }, n;
369
369
  }
370
- function Zs(t, n, e, r, i, a, o) {
370
+ function Js(t, n, e, r, i, a, o) {
371
371
  try {
372
372
  var s = t[a](o), l = s.value;
373
373
  } catch (c) {
@@ -382,16 +382,16 @@ function _(t) {
382
382
  return new Promise(function(r, i) {
383
383
  var a = t.apply(n, e);
384
384
  function o(l) {
385
- Zs(a, r, i, o, s, "next", l);
385
+ Js(a, r, i, o, s, "next", l);
386
386
  }
387
387
  function s(l) {
388
- Zs(a, r, i, o, s, "throw", l);
388
+ Js(a, r, i, o, s, "throw", l);
389
389
  }
390
390
  o(void 0);
391
391
  });
392
392
  };
393
393
  }
394
- function Ys(t, n) {
394
+ function Zs(t, n) {
395
395
  var e = Object.keys(t);
396
396
  if (Object.getOwnPropertySymbols) {
397
397
  var r = Object.getOwnPropertySymbols(t);
@@ -404,15 +404,15 @@ function Ys(t, n) {
404
404
  function oe(t) {
405
405
  for (var n = 1; n < arguments.length; n++) {
406
406
  var e = arguments[n] != null ? arguments[n] : {};
407
- n % 2 ? Ys(Object(e), !0).forEach(function(r) {
408
- ts(t, r, e[r]);
409
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Ys(Object(e)).forEach(function(r) {
407
+ n % 2 ? Zs(Object(e), !0).forEach(function(r) {
408
+ es(t, r, e[r]);
409
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Zs(Object(e)).forEach(function(r) {
410
410
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
411
411
  });
412
412
  }
413
413
  return t;
414
414
  }
415
- function ts(t, n, e) {
415
+ function es(t, n, e) {
416
416
  return n = qu(n), n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
417
417
  }
418
418
  function V(t) {
@@ -427,14 +427,14 @@ function S(t, n) {
427
427
  if (!(t instanceof n))
428
428
  throw new TypeError("Cannot call a class as a function");
429
429
  }
430
- function Xs(t, n) {
430
+ function Ys(t, n) {
431
431
  for (var e = 0; e < n.length; e++) {
432
432
  var r = n[e];
433
433
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, qu(r.key), r);
434
434
  }
435
435
  }
436
436
  function k(t, n, e) {
437
- return n && Xs(t.prototype, n), e && Xs(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
437
+ return n && Ys(t.prototype, n), e && Ys(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
438
438
  }
439
439
  function qu(t) {
440
440
  var n = wf(t, "string");
@@ -548,7 +548,7 @@ var Sf = /* @__PURE__ */ function() {
548
548
  }
549
549
  }
550
550
  }]);
551
- }(), ko = /* @__PURE__ */ function() {
551
+ }(), So = /* @__PURE__ */ function() {
552
552
  function t() {
553
553
  S(this, t);
554
554
  }
@@ -567,8 +567,8 @@ var Sf = /* @__PURE__ */ function() {
567
567
  }
568
568
  }]);
569
569
  }();
570
- ko.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", ko.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
571
- var Vu = ko, Gu = /* @__PURE__ */ function() {
570
+ So.FONT_URL = "https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap", So.DEFAULT_FONT_FAMILY = "'Inter', sans-serif, Avenir, Helvetica, Arial";
571
+ var Vu = So, Gu = /* @__PURE__ */ function() {
572
572
  function t() {
573
573
  S(this, t);
574
574
  }
@@ -668,7 +668,7 @@ var _f = Ku, Ef = /* @__PURE__ */ function() {
668
668
  a && ((i = document.execCommand) == null || i.call(document, "insertText", !1, a));
669
669
  }
670
670
  }]);
671
- }(), _o = /* @__PURE__ */ function() {
671
+ }(), ko = /* @__PURE__ */ function() {
672
672
  function t(n, e, r) {
673
673
  var i = this;
674
674
  S(this, t);
@@ -765,8 +765,8 @@ var _f = Ku, Ef = /* @__PURE__ */ function() {
765
765
  }
766
766
  }]);
767
767
  }();
768
- _o.TEXT_INPUT_ID = "text-input", _o.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
769
- var gr = _o, Ju = /* @__PURE__ */ function() {
768
+ ko.TEXT_INPUT_ID = "text-input", ko.PLACEHOLDER_TEXT_CLASS = "text-input-placeholder";
769
+ var gr = ko, Ju = /* @__PURE__ */ function() {
770
770
  function t() {
771
771
  S(this, t);
772
772
  }
@@ -786,42 +786,42 @@ var gr = _o, Ju = /* @__PURE__ */ function() {
786
786
  }
787
787
  }]);
788
788
  }();
789
- function Qs(t) {
789
+ function Xs(t) {
790
790
  return t.charAt(0).toUpperCase() + t.slice(1);
791
791
  }
792
792
  function Cf(t) {
793
793
  return t && JSON.stringify(t);
794
794
  }
795
- function ns(t, n, e, r) {
795
+ function ts(t, n, e, r) {
796
796
  var i = `
797
- `.concat(Qs(n), " message: ").concat(JSON.stringify(t), `
798
- `), a = e ? "".concat(Qs(n), " message after interceptor: ").concat(Cf(r), `
797
+ `.concat(Xs(n), " message: ").concat(JSON.stringify(t), `
798
+ `), a = e ? "".concat(Xs(n), " message after interceptor: ").concat(Cf(r), `
799
799
  `) : "";
800
800
  return i + a;
801
801
  }
802
802
  function xf(t, n, e, r) {
803
- return "".concat(ns(t, n, e, r), "Make sure the ").concat(n, ` message is using the Response format: https://deepchat.dev/docs/connect/#Response
803
+ return "".concat(ts(t, n, e, r), "Make sure the ").concat(n, ` message is using the Response format: https://deepchat.dev/docs/connect/#Response
804
804
  You can also augment it using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`);
805
805
  }
806
806
  function Af(t, n, e) {
807
807
  var r = "response";
808
- return "".concat(ns(t, r, n, e), "Make sure the ").concat(r, ' message is using the {text: string} format, e.g: {text: "Model Response"}');
808
+ return "".concat(ts(t, r, n, e), "Make sure the ").concat(r, ' message is using the {text: string} format, e.g: {text: "Model Response"}');
809
809
  }
810
810
  function Tf(t, n) {
811
811
  var e = "request";
812
- return "".concat(ns(t, e, n), "Make sure the ").concat(e, ' message is using the {body: {text: string}} format, e.g: {body: {text: "Model Response"}}');
812
+ return "".concat(ts(t, e, n), "Make sure the ").concat(e, ' message is using the {body: {text: string}} format, e.g: {body: {text: "Model Response"}}');
813
813
  }
814
- var el = `Make sure the events are using {text: string} or {html: string} format.
814
+ var Qs = `Make sure the events are using {text: string} or {html: string} format.
815
815
  You can also augment them using the responseInterceptor property: https://deepchat.dev/docs/interceptors#responseInterceptor`, ge = {
816
816
  INVALID_KEY: "Invalid API Key",
817
817
  CONNECTION_FAILED: "Failed to connect",
818
818
  INVALID_RESPONSE: xf,
819
819
  INVALID_MODEL_REQUEST: Tf,
820
820
  INVALID_MODEL_RESPONSE: Af,
821
- INVALID_STREAM_EVENT: el,
821
+ INVALID_STREAM_EVENT: Qs,
822
822
  INVALID_STREAM_EVENT_MIX: "Cannot mix {text: string} and {html: string} responses.",
823
823
  NO_VALID_STREAM_EVENTS_SENT: `No valid stream events were sent.
824
- `.concat(el)
824
+ `.concat(Qs)
825
825
  }, Zu = /* @__PURE__ */ function() {
826
826
  function t() {
827
827
  S(this, t);
@@ -890,7 +890,7 @@ var Ne = Zu, Yu = /* @__PURE__ */ function() {
890
890
  }]);
891
891
  }();
892
892
  Yu.LOAD_VOICES_MS = 200;
893
- var ni = Yu, ze = /* @__PURE__ */ function() {
893
+ var ni = Yu, We = /* @__PURE__ */ function() {
894
894
  function t() {
895
895
  S(this, t);
896
896
  }
@@ -1013,7 +1013,7 @@ var ni = Yu, ze = /* @__PURE__ */ function() {
1013
1013
  }]);
1014
1014
  }();
1015
1015
  Xu.CONTAINER_CLASS = "avatar-container";
1016
- var tl = Xu, Qu = /* @__PURE__ */ function() {
1016
+ var el = Xu, Qu = /* @__PURE__ */ function() {
1017
1017
  function t() {
1018
1018
  S(this, t);
1019
1019
  }
@@ -1056,7 +1056,7 @@ var tl = Xu, Qu = /* @__PURE__ */ function() {
1056
1056
  }]);
1057
1057
  }();
1058
1058
  Qu.NAME_CLASS = "name";
1059
- var nl = Qu, ri = /* @__PURE__ */ function() {
1059
+ var tl = Qu, ri = /* @__PURE__ */ function() {
1060
1060
  function t() {
1061
1061
  S(this, t);
1062
1062
  }
@@ -1132,13 +1132,13 @@ var nl = Qu, ri = /* @__PURE__ */ function() {
1132
1132
  }, {
1133
1133
  key: "addRoleElements",
1134
1134
  value: function(e, r, i, a) {
1135
- i && tl.add(e, r, i), a && nl.add(e, r, a);
1135
+ i && el.add(e, r, i), a && tl.add(e, r, a);
1136
1136
  }
1137
1137
  }, {
1138
1138
  key: "hideRoleElements",
1139
1139
  value: function(e, r, i) {
1140
1140
  var a = e[e.length - 1].innerContainer;
1141
- r && tl.hide(a), i && nl.hide(a);
1141
+ r && el.hide(a), i && tl.hide(a);
1142
1142
  }
1143
1143
  }]);
1144
1144
  }();
@@ -1173,7 +1173,7 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1173
1173
  e.addEventListener("mouseenter", t.mouseEnter.bind(this, e, r)), e.addEventListener("mouseleave", t.mouseLeave.bind(this, e, r)), e.addEventListener("mousedown", t.mouseDown.bind(this, e, r)), e.addEventListener("mouseup", t.mouseUp.bind(this, e, r));
1174
1174
  }
1175
1175
  }]);
1176
- }(), If = "deep-chat-temporary-message", Lf = "deep-chat-suggestion-button", Eo = {
1176
+ }(), If = "deep-chat-temporary-message", Lf = "deep-chat-suggestion-button", _o = {
1177
1177
  "deep-chat-button": {
1178
1178
  styles: {
1179
1179
  default: {
@@ -1193,7 +1193,7 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1193
1193
  }
1194
1194
  }
1195
1195
  }
1196
- }, rl = Object.keys(Eo), _i = /* @__PURE__ */ function() {
1196
+ }, nl = Object.keys(_o), _i = /* @__PURE__ */ function() {
1197
1197
  function t() {
1198
1198
  S(this, t);
1199
1199
  }
@@ -1218,14 +1218,14 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1218
1218
  }, {
1219
1219
  key: "doesElementContainDeepChatClass",
1220
1220
  value: function(e) {
1221
- return rl.find(function(r) {
1221
+ return nl.find(function(r) {
1222
1222
  return e.classList.contains(r);
1223
1223
  });
1224
1224
  }
1225
1225
  }, {
1226
1226
  key: "applyEvents",
1227
1227
  value: function(e, r) {
1228
- var i = Eo[r].events;
1228
+ var i = _o[r].events;
1229
1229
  Object.keys(i || []).forEach(function(a) {
1230
1230
  e.addEventListener(a, i == null ? void 0 : i[a]);
1231
1231
  });
@@ -1236,7 +1236,7 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1236
1236
  var a = Array.from(r.classList).reduce(function(c, u) {
1237
1237
  var d, p = (d = e[u]) == null ? void 0 : d.styles;
1238
1238
  return p && e[u].styles && c.push(p), c;
1239
- }, []), o = Eo[i].styles;
1239
+ }, []), o = _o[i].styles;
1240
1240
  if (o) {
1241
1241
  var s = JSON.parse(JSON.stringify(o));
1242
1242
  s.default && Ce.overwriteDefaultWithAlreadyApplied(s, r), a.unshift(s);
@@ -1247,7 +1247,7 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1247
1247
  }, {
1248
1248
  key: "applyDeepChatUtilities",
1249
1249
  value: function(e, r, i) {
1250
- rl.forEach(function(o) {
1250
+ nl.forEach(function(o) {
1251
1251
  var s = i.getElementsByClassName(o);
1252
1252
  Array.from(s || []).forEach(function(l) {
1253
1253
  var c = t.getProcessedStyles(r, l, o);
@@ -1315,7 +1315,7 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1315
1315
  }), i;
1316
1316
  }
1317
1317
  }]);
1318
- }(), Co = /* @__PURE__ */ function() {
1318
+ }(), Eo = /* @__PURE__ */ function() {
1319
1319
  function t() {
1320
1320
  S(this, t);
1321
1321
  }
@@ -1334,7 +1334,7 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1334
1334
  key: "overwrite",
1335
1335
  value: function(e, r, i, a) {
1336
1336
  var o = e.messages, s = Y.overwriteMessage(o, a, r, i, "html", "html-message");
1337
- return s && (s.bubbleElement.innerHTML = r, Cn.apply(e, s.outerContainer), ze.flagHTMLUpdateClass(s.bubbleElement)), s;
1337
+ return s && (s.bubbleElement.innerHTML = r, Cn.apply(e, s.outerContainer), We.flagHTMLUpdateClass(s.bubbleElement)), s;
1338
1338
  }
1339
1339
  // prettier-ignore
1340
1340
  }, {
@@ -1347,7 +1347,7 @@ var Y = ri, ed = /* @__PURE__ */ function() {
1347
1347
  o.status = !1;
1348
1348
  }
1349
1349
  var c = t.createElements(e, r, i);
1350
- return Y.fillEmptyMessageElement(c.bubbleElement, r), Cn.apply(e, c.outerContainer), ze.flagHTMLUpdateClass(c.bubbleElement), e.applyCustomStyles(c, i, !1, (s = e.messageStyles) == null ? void 0 : s.html), t.addElement(e, c.outerContainer), c;
1350
+ return Y.fillEmptyMessageElement(c.bubbleElement, r), Cn.apply(e, c.outerContainer), We.flagHTMLUpdateClass(c.bubbleElement), e.applyCustomStyles(c, i, !1, (s = e.messageStyles) == null ? void 0 : s.html), t.addElement(e, c.outerContainer), c;
1351
1351
  }
1352
1352
  }]);
1353
1353
  }(), Wr;
@@ -1376,7 +1376,7 @@ function vr(t) {
1376
1376
  function rd(t) {
1377
1377
  return !(t >= 55296 && t <= 57343 || t >= 64976 && t <= 65007 || (t & 65535) === 65535 || (t & 65535) === 65534 || t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t >= 127 && t <= 159 || t > 1114111);
1378
1378
  }
1379
- function xo(t) {
1379
+ function Co(t) {
1380
1380
  if (t > 65535) {
1381
1381
  t -= 65536;
1382
1382
  var n = 55296 + (t >> 10), e = 56320 + (t & 1023);
@@ -1387,7 +1387,7 @@ function xo(t) {
1387
1387
  var Nf = /&([a-z#][a-z0-9]{1,31});/gi, $f = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;
1388
1388
  function Df(t, n) {
1389
1389
  var e = 0, r = td(n);
1390
- return n !== r ? r : n.charCodeAt(0) === 35 && $f.test(n) && (e = n[1].toLowerCase() === "x" ? parseInt(n.slice(2), 16) : parseInt(n.slice(1), 10), rd(e)) ? xo(e) : t;
1390
+ return n !== r ? r : n.charCodeAt(0) === 35 && $f.test(n) && (e = n[1].toLowerCase() === "x" ? parseInt(n.slice(2), 16) : parseInt(n.slice(1), 10), rd(e)) ? Co(e) : t;
1391
1391
  }
1392
1392
  function Gt(t) {
1393
1393
  return t.indexOf("&") < 0 ? t : t.replace(Nf, Df);
@@ -1639,14 +1639,14 @@ var Xt = $.getBreak = function(t, n) {
1639
1639
  return n = id(t, n), n < t.length && t[n].type === "list_item_close" ? "" : `
1640
1640
  `;
1641
1641
  };
1642
- function rs() {
1642
+ function ns() {
1643
1643
  this.rules = nd({}, $), this.getBreak = $.getBreak;
1644
1644
  }
1645
- rs.prototype.renderInline = function(t, n, e) {
1645
+ ns.prototype.renderInline = function(t, n, e) {
1646
1646
  for (var r = this.rules, i = t.length, a = 0, o = ""; i--; ) o += r[t[a].type](t, a++, n, e, this);
1647
1647
  return o;
1648
1648
  };
1649
- rs.prototype.render = function(t, n, e) {
1649
+ ns.prototype.render = function(t, n, e) {
1650
1650
  for (var r = this.rules, i = t.length, a = -1, o = ""; ++a < i; ) t[a].type === "inline" ? o += this.renderInline(t[a].children, n, e) : o += r[t[a].type](t, a, n, e, this);
1651
1651
  return o;
1652
1652
  };
@@ -1780,7 +1780,7 @@ function qf(t) {
1780
1780
  }
1781
1781
  }
1782
1782
  }
1783
- function Ao(t) {
1783
+ function xo(t) {
1784
1784
  var n = Gt(t);
1785
1785
  try {
1786
1786
  n = decodeURI(n);
@@ -1793,7 +1793,7 @@ function ad(t, n) {
1793
1793
  if (t.src.charCodeAt(n) === 60) {
1794
1794
  for (n++; n < o; ) {
1795
1795
  if (e = t.src.charCodeAt(n), e === 10) return !1;
1796
- if (e === 62) return i = Ao(vr(t.src.slice(a + 1, n))), t.parser.validateLink(i) ? (t.pos = n + 1, t.linkContent = i, !0) : !1;
1796
+ if (e === 62) return i = xo(vr(t.src.slice(a + 1, n))), t.parser.validateLink(i) ? (t.pos = n + 1, t.linkContent = i, !0) : !1;
1797
1797
  if (e === 92 && n + 1 < o) {
1798
1798
  n += 2;
1799
1799
  continue;
@@ -1896,7 +1896,7 @@ function Jf(t) {
1896
1896
  });
1897
1897
  }
1898
1898
  }
1899
- var il = `
1899
+ var rl = `
1900
1900
  ()[]'".,!?-`;
1901
1901
  function xa(t) {
1902
1902
  return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g, "\\$1");
@@ -1904,11 +1904,11 @@ function xa(t) {
1904
1904
  function Zf(t) {
1905
1905
  var n, e, r, i, a, o, s, l, c, u, d, p, f = t.tokens;
1906
1906
  if (t.env.abbreviations) {
1907
- for (t.env.abbrRegExp || (p = "(^|[" + il.split("").map(xa).join("") + "])(" + Object.keys(t.env.abbreviations).map(function(h) {
1907
+ for (t.env.abbrRegExp || (p = "(^|[" + rl.split("").map(xa).join("") + "])(" + Object.keys(t.env.abbreviations).map(function(h) {
1908
1908
  return h.substr(1);
1909
1909
  }).sort(function(h, g) {
1910
1910
  return g.length - h.length;
1911
- }).map(xa).join("|") + ")($|[" + il.split("").map(xa).join("") + "])", t.env.abbrRegExp = new RegExp(p, "g")), u = t.env.abbrRegExp, e = 0, r = f.length; e < r; e++) if (f[e].type === "inline") {
1911
+ }).map(xa).join("|") + ")($|[" + rl.split("").map(xa).join("") + "])", t.env.abbrRegExp = new RegExp(p, "g")), u = t.env.abbrRegExp, e = 0, r = f.length; e < r; e++) if (f[e].type === "inline") {
1912
1912
  for (i = f[e].children, n = i.length - 1; n >= 0; n--) if (a = i[n], a.type === "text") {
1913
1913
  for (l = 0, o = a.content, u.lastIndex = 0, c = a.level, s = []; d = u.exec(o); ) u.lastIndex > l && s.push({
1914
1914
  type: "text",
@@ -1952,8 +1952,8 @@ function th(t) {
1952
1952
  for (a = t.tokens.length - 1; a >= 0; a--) if (t.tokens[a].type === "inline") for (i = t.tokens[a].children, n = i.length - 1; n >= 0; n--) e = i[n], e.type === "text" && (r = e.content, r = eh(r), Yf.test(r) && (r = r.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---([^-]|$)/mg, "$1—$2").replace(/(^|\s)--(\s|$)/mg, "$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg, "$1–$2")), e.content = r);
1953
1953
  }
1954
1954
  }
1955
- var nh = /['"]/, al = /['"]/g, rh = /[-\s()\[\]]/, ol = "’";
1956
- function sl(t, n) {
1955
+ var nh = /['"]/, il = /['"]/g, rh = /[-\s()\[\]]/, al = "’";
1956
+ function ol(t, n) {
1957
1957
  return n < 0 || n >= t.length ? !1 : !rh.test(t[n]);
1958
1958
  }
1959
1959
  function ln(t, n, e) {
@@ -1966,9 +1966,9 @@ function ih(t) {
1966
1966
  for (v = t.tokens[g].children, y.length = 0, n = 0; n < v.length; n++) if (e = v[n], !(e.type !== "text" || nh.test(e.text))) {
1967
1967
  for (s = v[n].level, f = y.length - 1; f >= 0 && !(y[f].level <= s); f--) ;
1968
1968
  y.length = f + 1, r = e.content, a = 0, o = r.length;
1969
- e: for (; a < o && (al.lastIndex = a, i = al.exec(r), !!i); ) {
1970
- if (l = !sl(r, i.index - 1), a = i.index + 1, h = i[0] === "'", c = !sl(r, a), !c && !l) {
1971
- h && (e.content = ln(e.content, i.index, ol));
1969
+ e: for (; a < o && (il.lastIndex = a, i = il.exec(r), !!i); ) {
1970
+ if (l = !ol(r, i.index - 1), a = i.index + 1, h = i[0] === "'", c = !ol(r, a), !c && !l) {
1971
+ h && (e.content = ln(e.content, i.index, al));
1972
1972
  continue;
1973
1973
  }
1974
1974
  if (d = !c, p = !l, p) {
@@ -1982,7 +1982,7 @@ function ih(t) {
1982
1982
  pos: i.index,
1983
1983
  single: h,
1984
1984
  level: s
1985
- }) : p && h && (e.content = ln(e.content, i.index, ol));
1985
+ }) : p && h && (e.content = ln(e.content, i.index, al));
1986
1986
  }
1987
1987
  }
1988
1988
  }
@@ -2113,11 +2113,11 @@ function lh(t, n, e, r) {
2113
2113
  level: t.level
2114
2114
  })), !0);
2115
2115
  }
2116
- function ll(t, n) {
2116
+ function sl(t, n) {
2117
2117
  var e, r, i;
2118
2118
  return r = t.bMarks[n] + t.tShift[n], i = t.eMarks[n], r >= i || (e = t.src.charCodeAt(r++), e !== 42 && e !== 45 && e !== 43) || r < i && t.src.charCodeAt(r) !== 32 ? -1 : r;
2119
2119
  }
2120
- function cl(t, n) {
2120
+ function ll(t, n) {
2121
2121
  var e, r = t.bMarks[n] + t.tShift[n], i = t.eMarks[n];
2122
2122
  if (r + 1 >= i || (e = t.src.charCodeAt(r++), e < 48 || e > 57)) return -1;
2123
2123
  for (; ; ) {
@@ -2135,8 +2135,8 @@ function ch(t, n) {
2135
2135
  }
2136
2136
  function uh(t, n, e, r) {
2137
2137
  var i, a, o, s, l, c, u, d, p, f, h, g, v, y, b, w, N, T, B = !0, Z, z, se, ne;
2138
- if ((d = cl(t, n)) >= 0) v = !0;
2139
- else if ((d = ll(t, n)) >= 0) v = !1;
2138
+ if ((d = ll(t, n)) >= 0) v = !0;
2139
+ else if ((d = sl(t, n)) >= 0) v = !1;
2140
2140
  else return !1;
2141
2141
  if (t.level >= t.options.maxNesting) return !1;
2142
2142
  if (g = t.src.charCodeAt(d - 1), r) return !0;
@@ -2163,8 +2163,8 @@ function uh(t, n, e, r) {
2163
2163
  }
2164
2164
  if (ne) break;
2165
2165
  if (v) {
2166
- if (d = cl(t, i), d < 0) break;
2167
- } else if (d = ll(t, i), d < 0) break;
2166
+ if (d = ll(t, i), d < 0) break;
2167
+ } else if (d = sl(t, i), d < 0) break;
2168
2168
  if (g !== t.src.charCodeAt(d - 1)) break;
2169
2169
  }
2170
2170
  return t.tokens.push({
@@ -2420,13 +2420,13 @@ function Sh(t, n) {
2420
2420
  })), !0;
2421
2421
  }
2422
2422
  var Vr = [["code", ah], ["fences", oh, ["paragraph", "blockquote", "list"]], ["blockquote", sh, ["paragraph", "blockquote", "list"]], ["hr", lh, ["paragraph", "blockquote", "list"]], ["list", uh, ["paragraph", "blockquote"]], ["footnote", dh, ["paragraph"]], ["heading", ph, ["paragraph", "blockquote"]], ["lheading", fh], ["htmlblock", vh, ["paragraph", "blockquote"]], ["table", yh, ["paragraph"]], ["deflist", wh, ["paragraph"]], ["paragraph", Sh]];
2423
- function is() {
2423
+ function rs() {
2424
2424
  this.ruler = new De();
2425
2425
  for (var t = 0; t < Vr.length; t++) this.ruler.push(Vr[t][0], Vr[t][1], {
2426
2426
  alt: (Vr[t][2] || []).slice()
2427
2427
  });
2428
2428
  }
2429
- is.prototype.tokenize = function(t, n, e) {
2429
+ rs.prototype.tokenize = function(t, n, e) {
2430
2430
  for (var r = this.ruler.getRules(""), i = r.length, a = n, o = !1, s, l; a < e && (t.line = a = t.skipEmptyLines(a), !(a >= e || t.tShift[a] < t.blkIndent)); ) {
2431
2431
  for (l = 0; l < i && (s = r[l](t, a, e, !1), !s); l++) ;
2432
2432
  if (t.tight = !o, t.isEmpty(t.line - 1) && (o = !0), a = t.line, a < e && t.isEmpty(a)) {
@@ -2436,7 +2436,7 @@ is.prototype.tokenize = function(t, n, e) {
2436
2436
  }
2437
2437
  };
2438
2438
  var kh = /[\n\t]/g, _h = /\r[\n\u0085]|[\u2424\u2028\u0085]/g, Eh = /\u00a0/g;
2439
- is.prototype.parse = function(t, n, e, r) {
2439
+ rs.prototype.parse = function(t, n, e, r) {
2440
2440
  var i, a = 0, o = 0;
2441
2441
  if (!t) return [];
2442
2442
  t = t.replace(Eh, " "), t = t.replace(_h, `
@@ -2501,16 +2501,16 @@ function Ah(t, n) {
2501
2501
  for (i++; i < r && t.src.charCodeAt(i) === 32; ) i++;
2502
2502
  return t.pos = i, !0;
2503
2503
  }
2504
- var as = [];
2505
- for (var ul = 0; ul < 256; ul++) as.push(0);
2504
+ var is = [];
2505
+ for (var cl = 0; cl < 256; cl++) is.push(0);
2506
2506
  "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t) {
2507
- as[t.charCodeAt(0)] = 1;
2507
+ is[t.charCodeAt(0)] = 1;
2508
2508
  });
2509
2509
  function Th(t, n) {
2510
2510
  var e, r = t.pos, i = t.posMax;
2511
2511
  if (t.src.charCodeAt(r) !== 92) return !1;
2512
2512
  if (r++, r < i) {
2513
- if (e = t.src.charCodeAt(r), e < 256 && as[e] !== 0) return n || (t.pending += t.src[r]), t.pos += 2, !0;
2513
+ if (e = t.src.charCodeAt(r), e < 256 && is[e] !== 0) return n || (t.pending += t.src[r]), t.pos += 2, !0;
2514
2514
  if (e === 10) {
2515
2515
  for (n || t.push({
2516
2516
  type: "hardbreak",
@@ -2596,13 +2596,13 @@ function Lh(t, n) {
2596
2596
  level: --t.level
2597
2597
  })), t.pos = t.posMax + 2, t.posMax = a, !0) : (t.pos = o, !1);
2598
2598
  }
2599
- function dl(t) {
2599
+ function ul(t) {
2600
2600
  return t >= 48 && t <= 57 || t >= 65 && t <= 90 || t >= 97 && t <= 122;
2601
2601
  }
2602
- function pl(t, n) {
2602
+ function dl(t, n) {
2603
2603
  var e = n, r, i, a, o = !0, s = !0, l = t.posMax, c = t.src.charCodeAt(n);
2604
2604
  for (r = n > 0 ? t.src.charCodeAt(n - 1) : -1; e < l && t.src.charCodeAt(e) === c; ) e++;
2605
- return e >= l && (o = !1), a = e - n, a >= 4 ? o = s = !1 : (i = e < l ? t.src.charCodeAt(e) : -1, (i === 32 || i === 10) && (o = !1), (r === 32 || r === 10) && (s = !1), c === 95 && (dl(r) && (o = !1), dl(i) && (s = !1))), {
2605
+ return e >= l && (o = !1), a = e - n, a >= 4 ? o = s = !1 : (i = e < l ? t.src.charCodeAt(e) : -1, (i === 32 || i === 10) && (o = !1), (r === 32 || r === 10) && (s = !1), c === 95 && (ul(r) && (o = !1), ul(i) && (s = !1))), {
2606
2606
  can_open: o,
2607
2607
  can_close: s,
2608
2608
  delims: a
@@ -2611,11 +2611,11 @@ function pl(t, n) {
2611
2611
  function Ph(t, n) {
2612
2612
  var e, r, i, a, o, s, l, c = t.posMax, u = t.pos, d = t.src.charCodeAt(u);
2613
2613
  if (d !== 95 && d !== 42 || n) return !1;
2614
- if (l = pl(t, u), e = l.delims, !l.can_open) return t.pos += e, n || (t.pending += t.src.slice(u, t.pos)), !0;
2614
+ if (l = dl(t, u), e = l.delims, !l.can_open) return t.pos += e, n || (t.pending += t.src.slice(u, t.pos)), !0;
2615
2615
  if (t.level >= t.options.maxNesting) return !1;
2616
2616
  for (t.pos = u + e, s = [e]; t.pos < c; ) {
2617
2617
  if (t.src.charCodeAt(t.pos) === d) {
2618
- if (l = pl(t, t.pos), r = l.delims, l.can_close) {
2618
+ if (l = dl(t, t.pos), r = l.delims, l.can_close) {
2619
2619
  for (a = s.pop(), o = r; a !== o; ) {
2620
2620
  if (o < a) {
2621
2621
  s.push(a - o);
@@ -2747,7 +2747,7 @@ function jh(t, n) {
2747
2747
  var Hh = ["coap", "doi", "javascript", "aaa", "aaas", "about", "acap", "cap", "cid", "crid", "data", "dav", "dict", "dns", "file", "ftp", "geo", "go", "gopher", "h323", "http", "https", "iax", "icap", "im", "imap", "info", "ipp", "iris", "iris.beep", "iris.xpc", "iris.xpcs", "iris.lwz", "ldap", "mailto", "mid", "msrp", "msrps", "mtqp", "mupdate", "news", "nfs", "ni", "nih", "nntp", "opaquelocktoken", "pop", "pres", "rtsp", "service", "session", "shttp", "sieve", "sip", "sips", "sms", "snmp", "soap.beep", "soap.beeps", "tag", "tel", "telnet", "tftp", "thismessage", "tn3270", "tip", "tv", "urn", "vemmi", "ws", "wss", "xcon", "xcon-userid", "xmlrpc.beep", "xmlrpc.beeps", "xmpp", "z39.50r", "z39.50s", "adiumxtra", "afp", "afs", "aim", "apt", "attachment", "aw", "beshare", "bitcoin", "bolo", "callto", "chrome", "chrome-extension", "com-eventbrite-attendee", "content", "cvs", "dlna-playsingle", "dlna-playcontainer", "dtn", "dvb", "ed2k", "facetime", "feed", "finger", "fish", "gg", "git", "gizmoproject", "gtalk", "hcp", "icon", "ipn", "irc", "irc6", "ircs", "itms", "jar", "jms", "keyparc", "lastfm", "ldaps", "magnet", "maps", "market", "message", "mms", "ms-help", "msnim", "mumble", "mvn", "notes", "oid", "palm", "paparazzi", "platform", "proxy", "psyc", "query", "res", "resource", "rmi", "rsync", "rtmp", "secondlife", "sftp", "sgn", "skype", "smb", "soldat", "spotify", "ssh", "steam", "svn", "teamspeak", "things", "udp", "unreal", "ut2004", "ventrilo", "view-source", "webcal", "wtai", "wyciwyg", "xfire", "xri", "ymsgr"], Uh = /^<([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])?)*)>/, zh = /^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;
2748
2748
  function Wh(t, n) {
2749
2749
  var e, r, i, a, o, s = t.pos;
2750
- return t.src.charCodeAt(s) !== 60 || (e = t.src.slice(s), e.indexOf(">") < 0) ? !1 : (r = e.match(zh), r ? Hh.indexOf(r[1].toLowerCase()) < 0 || (a = r[0].slice(1, -1), o = Ao(a), !t.parser.validateLink(a)) ? !1 : (n || (t.push({
2750
+ return t.src.charCodeAt(s) !== 60 || (e = t.src.slice(s), e.indexOf(">") < 0) ? !1 : (r = e.match(zh), r ? Hh.indexOf(r[1].toLowerCase()) < 0 || (a = r[0].slice(1, -1), o = xo(a), !t.parser.validateLink(a)) ? !1 : (n || (t.push({
2751
2751
  type: "link_open",
2752
2752
  href: o,
2753
2753
  level: t.level
@@ -2758,7 +2758,7 @@ function Wh(t, n) {
2758
2758
  }), t.push({
2759
2759
  type: "link_close",
2760
2760
  level: t.level
2761
- })), t.pos += r[0].length, !0) : (i = e.match(Uh), i ? (a = i[0].slice(1, -1), o = Ao("mailto:" + a), t.parser.validateLink(o) ? (n || (t.push({
2761
+ })), t.pos += r[0].length, !0) : (i = e.match(Uh), i ? (a = i[0].slice(1, -1), o = xo("mailto:" + a), t.parser.validateLink(o) ? (n || (t.push({
2762
2762
  type: "link_open",
2763
2763
  href: o,
2764
2764
  level: t.level
@@ -2795,7 +2795,7 @@ function l0(t, n) {
2795
2795
  if (t.src.charCodeAt(a) !== 38) return !1;
2796
2796
  if (a + 1 < o) {
2797
2797
  if (e = t.src.charCodeAt(a + 1), e === 35) {
2798
- if (i = t.src.slice(a).match(o0), i) return n || (r = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += rd(r) ? xo(r) : xo(65533)), t.pos += i[0].length, !0;
2798
+ if (i = t.src.slice(a).match(o0), i) return n || (r = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), t.pending += rd(r) ? Co(r) : Co(65533)), t.pos += i[0].length, !0;
2799
2799
  } else if (i = t.src.slice(a).match(s0), i) {
2800
2800
  var s = td(i[1]);
2801
2801
  if (i[1] !== s) return n || (t.pending += s), t.pos += i[0].length, !0;
@@ -2960,7 +2960,7 @@ function ft(t, n) {
2960
2960
  import Remarkable from 'remarkable';
2961
2961
  import linkify from 'remarkable/linkify';
2962
2962
  new Remarkable().use(linkify)
2963
- `), this.inline = new qi(), this.block = new is(), this.core = new ld(), this.renderer = new rs(), this.ruler = new De(), this.options = {}, this.configure(f0[t]), this.set(n || {});
2963
+ `), this.inline = new qi(), this.block = new rs(), this.core = new ld(), this.renderer = new ns(), this.ruler = new De(), this.options = {}, this.configure(f0[t]), this.set(n || {});
2964
2964
  }
2965
2965
  ft.prototype.set = function(t) {
2966
2966
  nd(this.options, t);
@@ -2989,7 +2989,7 @@ ft.prototype.parseInline = function(t, n) {
2989
2989
  ft.prototype.renderInline = function(t, n) {
2990
2990
  return n = n || {}, this.renderer.render(this.parseInline(t, n), this.options, n);
2991
2991
  };
2992
- var To = /* @__PURE__ */ function() {
2992
+ var Ao = /* @__PURE__ */ function() {
2993
2993
  function t() {
2994
2994
  S(this, t);
2995
2995
  }
@@ -3139,7 +3139,7 @@ var Pe = dd, Ei = /* @__PURE__ */ function() {
3139
3139
  }));
3140
3140
  Pe.reAddFileRefToObject(r, o), (a = e.onMessage) == null || a.call(e, o), e.dispatchEvent(new CustomEvent("message", {
3141
3141
  detail: o
3142
- })), ze.fireOnNewMessage(e, o);
3142
+ })), We.fireOnNewMessage(e, o);
3143
3143
  }
3144
3144
  }, {
3145
3145
  key: "onClearMessages",
@@ -3214,7 +3214,7 @@ var Pe = dd, Ei = /* @__PURE__ */ function() {
3214
3214
  }(), pd = /* @__PURE__ */ function() {
3215
3215
  function t(n) {
3216
3216
  var e = this;
3217
- S(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = n.messageStyles, this._remarkable = To.createNew(), this._avatars = n.avatars, this._names = n.names, this._onMessage = Ei.onMessage.bind(this, n), n.htmlClassUtilities && (this.htmlClassUtilities = n.htmlClassUtilities), setTimeout(function() {
3217
+ S(this, t), this.messageElementRefs = [], this.messages = [], this.htmlClassUtilities = {}, this.textElementsToText = [], this.elementRef = t.createContainerElement(), this.messageStyles = n.messageStyles, this._remarkable = Ao.createNew(), this._avatars = n.avatars, this._names = n.names, this._onMessage = Ei.onMessage.bind(this, n), n.htmlClassUtilities && (this.htmlClassUtilities = n.htmlClassUtilities), setTimeout(function() {
3218
3218
  e.submitUserMessage = n.submitUserMessage;
3219
3219
  });
3220
3220
  }
@@ -3306,7 +3306,7 @@ var Pe = dd, Ei = /* @__PURE__ */ function() {
3306
3306
  key: "refreshTextMessages",
3307
3307
  value: function() {
3308
3308
  var e = this;
3309
- this._remarkable = To.createNew(), this.textElementsToText.forEach(function(r) {
3309
+ this._remarkable = Ao.createNew(), this.textElementsToText.forEach(function(r) {
3310
3310
  e.renderText(r[0].bubbleElement, r[1]);
3311
3311
  });
3312
3312
  }
@@ -3342,7 +3342,7 @@ var Pe = dd, Ei = /* @__PURE__ */ function() {
3342
3342
  return r && (l.text = r), i && (l.files = i), a && (l.html = a), !r && !i && !a && (l.text = ""), o && (l._sessionId = o), l;
3343
3343
  }
3344
3344
  }]);
3345
- }(), Oo = /* @__PURE__ */ function() {
3345
+ }(), To = /* @__PURE__ */ function() {
3346
3346
  function t(n) {
3347
3347
  S(this, t), this._fileAdded = !1, this._streamedContent = "", this._streamType = "", this._hasStreamEnded = !1, this._messages = n;
3348
3348
  }
@@ -3365,7 +3365,7 @@ var Pe = dd, Ei = /* @__PURE__ */ function() {
3365
3365
  key: "setInitialState",
3366
3366
  value: function(e, r, i) {
3367
3367
  var a;
3368
- this._streamType = e, (a = i) !== null && a !== void 0 || (i = Y.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(r, i) : Co.add(this._messages, r, i, this._messages.messageElementRefs), this._elements.bubbleElement.classList.add(t.MESSAGE_CLASS), this._streamedContent = r, this._activeMessageRole = i, this._message = ts({
3368
+ this._streamType = e, (a = i) !== null && a !== void 0 || (i = Y.AI_ROLE), this._elements = e === "text" ? this._messages.addNewTextMessage(r, i) : Eo.add(this._messages, r, i, this._messages.messageElementRefs), this._elements.bubbleElement.classList.add(t.MESSAGE_CLASS), this._streamedContent = r, this._activeMessageRole = i, this._message = es({
3369
3369
  role: this._activeMessageRole
3370
3370
  }, e, this._streamedContent), this._messages.messages.push(this._message);
3371
3371
  }
@@ -3435,8 +3435,8 @@ var Pe = dd, Ei = /* @__PURE__ */ function() {
3435
3435
  }()
3436
3436
  }]);
3437
3437
  }();
3438
- Oo.MESSAGE_CLASS = "streamed-message", Oo.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
3439
- var St = Oo, fd = /* @__PURE__ */ function() {
3438
+ To.MESSAGE_CLASS = "streamed-message", To.HTML_CONTENT_PLACEHOLDER = "htmlplaceholder";
3439
+ var St = To, fd = /* @__PURE__ */ function() {
3440
3440
  function t() {
3441
3441
  S(this, t);
3442
3442
  }
@@ -3554,10 +3554,10 @@ var St = Oo, fd = /* @__PURE__ */ function() {
3554
3554
  fd.CONTENT_TYPE = "Content-Type";
3555
3555
  var X = fd;
3556
3556
  function h0(t, n) {
3557
- return Ro.apply(this, arguments);
3557
+ return Oo.apply(this, arguments);
3558
3558
  }
3559
- function Ro() {
3560
- return Ro = _(/* @__PURE__ */ m().mark(function t(n, e) {
3559
+ function Oo() {
3560
+ return Oo = _(/* @__PURE__ */ m().mark(function t(n, e) {
3561
3561
  var r, i;
3562
3562
  return m().wrap(function(o) {
3563
3563
  for (; ; ) switch (o.prev = o.next) {
@@ -3579,7 +3579,7 @@ function Ro() {
3579
3579
  return o.stop();
3580
3580
  }
3581
3581
  }, t);
3582
- })), Ro.apply(this, arguments);
3582
+ })), Oo.apply(this, arguments);
3583
3583
  }
3584
3584
  function m0(t) {
3585
3585
  var n, e, r, i = !1;
@@ -3604,9 +3604,9 @@ function m0(t) {
3604
3604
  };
3605
3605
  }
3606
3606
  function g0(t, n, e) {
3607
- var r = fl(), i = new TextDecoder();
3607
+ var r = pl(), i = new TextDecoder();
3608
3608
  return function(a, o) {
3609
- if (a.length === 0) e == null || e(r), r = fl();
3609
+ if (a.length === 0) e == null || e(r), r = pl();
3610
3610
  else if (o > 0) {
3611
3611
  var s = i.decode(a.subarray(0, o)), l = o + (a[o + 1] === 32 ? 2 : 1), c = i.decode(a.subarray(l));
3612
3612
  switch (s) {
@@ -3632,7 +3632,7 @@ function v0(t, n) {
3632
3632
  var e = new Uint8Array(t.length + n.length);
3633
3633
  return e.set(t), e.set(n, t.length), e;
3634
3634
  }
3635
- function fl() {
3635
+ function pl() {
3636
3636
  return {
3637
3637
  data: "",
3638
3638
  event: "",
@@ -3645,12 +3645,12 @@ var y0 = function(n, e) {
3645
3645
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (r[i] = n[i]);
3646
3646
  if (n != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, i = Object.getOwnPropertySymbols(n); a < i.length; a++) e.indexOf(i[a]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[a]) && (r[i[a]] = n[i[a]]);
3647
3647
  return r;
3648
- }, Io = "text/event-stream", b0 = 1e3, hl = "last-event-id";
3648
+ }, Ro = "text/event-stream", b0 = 1e3, fl = "last-event-id";
3649
3649
  function w0(t, n) {
3650
3650
  var e = n.signal, r = n.headers, i = n.onopen, a = n.onmessage, o = n.onclose, s = n.onerror, l = n.openWhenHidden, c = n.fetch, u = y0(n, ["signal", "headers", "onopen", "onmessage", "onclose", "onerror", "openWhenHidden", "fetch"]);
3651
3651
  return new Promise(function(d, p) {
3652
3652
  var f = Object.assign({}, r);
3653
- f.accept || (f.accept = Io);
3653
+ f.accept || (f.accept = Ro);
3654
3654
  var h;
3655
3655
  function g() {
3656
3656
  h.abort(), document.hidden || T();
@@ -3681,7 +3681,7 @@ function w0(t, n) {
3681
3681
  return se = W.sent, W.next = 7, N(se);
3682
3682
  case 7:
3683
3683
  return W.next = 9, h0(se.body, m0(g0(function(le) {
3684
- le ? f[hl] = le : delete f[hl];
3684
+ le ? f[fl] = le : delete f[fl];
3685
3685
  }, function(le) {
3686
3686
  v = le;
3687
3687
  }, a)));
@@ -3706,7 +3706,7 @@ function w0(t, n) {
3706
3706
  }
3707
3707
  function S0(t) {
3708
3708
  var n = t.headers.get("content-type");
3709
- if (!(n != null && n.startsWith(Io))) throw new Error("Expected content-type to be ".concat(Io, ", Actual: ").concat(n));
3709
+ if (!(n != null && n.startsWith(Ro))) throw new Error("Expected content-type to be ".concat(Ro, ", Actual: ").concat(n));
3710
3710
  }
3711
3711
  var ke = /* @__PURE__ */ function() {
3712
3712
  function t() {
@@ -3737,7 +3737,7 @@ var ke = /* @__PURE__ */ function() {
3737
3737
  W.next = 17;
3738
3738
  break;
3739
3739
  }
3740
- return W.abrupt("return", os.stream(i, y, o));
3740
+ return W.abrupt("return", as.stream(i, y, o));
3741
3741
  case 17:
3742
3742
  if (((d = i.connectSettings) == null ? void 0 : d.url) !== kt.URL) {
3743
3743
  W.next = 19;
@@ -3863,7 +3863,7 @@ var ke = /* @__PURE__ */ function() {
3863
3863
  value: function(e, r, i, a) {
3864
3864
  var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, s = e[o];
3865
3865
  if (s) {
3866
- r.upsertStreamedMessage(ts({}, a, s));
3866
+ r.upsertStreamedMessage(es({}, a, s));
3867
3867
  var l = setTimeout(function() {
3868
3868
  t.populateMessages(e, r, i, a, o + 1);
3869
3869
  }, i.simulationInterim || 6);
@@ -3990,7 +3990,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
3990
3990
  if (t.isElementPresentInDOM(e.deepChat)) {
3991
3991
  var i = e.connectSettings.websocket;
3992
3992
  if (i) {
3993
- if (e.connectSettings.handler) return os.websocket(e, r);
3993
+ if (e.connectSettings.handler) return as.websocket(e, r);
3994
3994
  try {
3995
3995
  var a = typeof i != "boolean" ? i : void 0, o = new WebSocket(e.connectSettings.url || "", a);
3996
3996
  e.websocket = o, e.websocket.onopen = function() {
@@ -4132,7 +4132,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4132
4132
  }
4133
4133
  }
4134
4134
  }]);
4135
- }(), os = /* @__PURE__ */ function() {
4135
+ }(), as = /* @__PURE__ */ function() {
4136
4136
  function t() {
4137
4137
  S(this, t);
4138
4138
  }
@@ -4350,7 +4350,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4350
4350
  T.next = 13;
4351
4351
  break;
4352
4352
  }
4353
- return T.abrupt("return", os.request(i, f, o));
4353
+ return T.abrupt("return", as.request(i, f, o));
4354
4354
  case 13:
4355
4355
  if (((u = i.connectSettings) == null ? void 0 : u.url) !== kt.URL) {
4356
4356
  T.next = 15;
@@ -4519,7 +4519,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4519
4519
  });
4520
4520
  }
4521
4521
  }]);
4522
- }(), ss = /* @__PURE__ */ function() {
4522
+ }(), os = /* @__PURE__ */ function() {
4523
4523
  function t() {
4524
4524
  S(this, t);
4525
4525
  }
@@ -4566,7 +4566,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4566
4566
  files: r
4567
4567
  };
4568
4568
  if (V(a) == "object") {
4569
- ze.processFileConfigConnect(a);
4569
+ We.processFileConfigConnect(a);
4570
4570
  var l = a.files, c = a.connect, u = a.button;
4571
4571
  l && (l.infoModal && (s.files.infoModal = l.infoModal, (o = l.infoModal) != null && o.textMarkDown && (s.infoModalTextMarkUp = i.render(l.infoModal.textMarkDown))), l.acceptedFormats && (s.files.acceptedFormats = l.acceptedFormats), l.maxNumberOfFiles && (s.files.maxNumberOfFiles = l.maxNumberOfFiles)), s.button = u, c && (c.headers || c.method || c.url || c.credentials || e.headers || e.method || e.url || e.credentials) && (s.connect = {
4572
4572
  url: (c == null ? void 0 : c.url) || e.url,
@@ -4652,7 +4652,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4652
4652
  key: "set",
4653
4653
  value: function(e, r, i) {
4654
4654
  t.populateDefaultFileIO(i == null ? void 0 : i.audio, ".4a,.mp3,.webm,.mp4,.mpga,.wav,.mpeg,.m4a"), t.populateDefaultFileIO(i == null ? void 0 : i.images, ".png,.jpg");
4655
- var a = To.createNew();
4655
+ var a = Ao.createNew();
4656
4656
  t.processImagesConfig(r, a, e.images, i == null ? void 0 : i.images), t.processCamera(r, a, e.camera, e.images), t.processGifConfig(r, a, e.gifs, i == null ? void 0 : i.gifs), t.processAudioConfig(r, a, e.audio, i == null ? void 0 : i.audio), t.processMicrophone(r, a, e.microphone, e.audio), t.processMixedFiles(r, a, e.mixedFiles);
4657
4657
  }
4658
4658
  }]);
@@ -4661,7 +4661,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4661
4661
  var i;
4662
4662
  S(this, t);
4663
4663
  var a, o, s, l, c;
4664
- this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = t.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = n, this.demo = r, Object.assign(this.rawBody, (a = n.connect) == null ? void 0 : a.additionalBodyProps), this.totalMessagesMaxCharLength = (o = n == null ? void 0 : n.requestBodyLimits) == null ? void 0 : o.totalMessagesMaxCharLength, this.maxMessages = (s = n == null ? void 0 : n.requestBodyLimits) == null ? void 0 : s.maxMessages, k0.set(n, this, e), n.connect && (this.connectSettings = n.connect), this.demo && ((i = (l = this.connectSettings).url) !== null && i !== void 0 || (l.url = kt.URL)), this.connectSettings.websocket && br.setup(this), this.stream = ((c = this.deepChat.connect) == null ? void 0 : c.stream) || ze.checkForStream(this.deepChat);
4664
+ this.rawBody = {}, this.validateKeyProperty = !1, this.canSendMessage = t.canSendMessage, this.connectSettings = {}, this.fileTypes = {}, this.completionsHandlers = {}, this.streamHandlers = {}, this.deepChat = n, this.demo = r, Object.assign(this.rawBody, (a = n.connect) == null ? void 0 : a.additionalBodyProps), this.totalMessagesMaxCharLength = (o = n == null ? void 0 : n.requestBodyLimits) == null ? void 0 : o.totalMessagesMaxCharLength, this.maxMessages = (s = n == null ? void 0 : n.requestBodyLimits) == null ? void 0 : s.maxMessages, k0.set(n, this, e), n.connect && (this.connectSettings = n.connect), this.demo && ((i = (l = this.connectSettings).url) !== null && i !== void 0 || (l.url = kt.URL)), this.connectSettings.websocket && br.setup(this), this.stream = ((c = this.deepChat.connect) == null ? void 0 : c.stream) || We.checkForStream(this.deepChat);
4665
4665
  }
4666
4666
  return k(t, [{
4667
4667
  key: "verifyKey",
@@ -4778,7 +4778,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4778
4778
  }
4779
4779
  throw new Error("Request settings have not been set up");
4780
4780
  case 2:
4781
- o = ss.processMessages(a.messages, this.maxMessages, this.totalMessagesMaxCharLength), this.connectSettings.websocket ? (s = oe({
4781
+ o = os.processMessages(a.messages, this.maxMessages, this.totalMessagesMaxCharLength), this.connectSettings.websocket ? (s = oe({
4782
4782
  messages: o
4783
4783
  }, this.rawBody), br.sendWebsocket(this, s, a, !1)) : this.callServiceAPI(a, o, i.files);
4784
4784
  case 4:
@@ -4809,7 +4809,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4809
4809
  o.next = 4;
4810
4810
  break;
4811
4811
  }
4812
- return o.abrupt("return", ze.handleResponseProperty(i));
4812
+ return o.abrupt("return", We.handleResponseProperty(i));
4813
4813
  case 4:
4814
4814
  if (!X.validateResponseFormat(i)) {
4815
4815
  o.next = 6;
@@ -4912,7 +4912,7 @@ var kt = hd, br = /* @__PURE__ */ function() {
4912
4912
  e._propUpdated_ = !0, e._waitingToRender_ || (e._waitingToRender_ = !0, t.waitForPropertiesToBeUpdatedBeforeRender(e));
4913
4913
  }
4914
4914
  }]);
4915
- }(), Lo = /* @__PURE__ */ function(t) {
4915
+ }(), Io = /* @__PURE__ */ function(t) {
4916
4916
  function n() {
4917
4917
  var e;
4918
4918
  return S(this, n), e = K(this, n), e._waitingToRender_ = !1, e._propUpdated_ = !1, Object.keys(n._attributeToProperty_).forEach(function(r) {
@@ -4954,9 +4954,9 @@ var kt = hd, br = /* @__PURE__ */ function() {
4954
4954
  return Object.keys(n._attributes_) || [];
4955
4955
  }
4956
4956
  }]);
4957
- }(/* @__PURE__ */ So(HTMLElement));
4958
- Lo._attributes_ = {}, Lo._attributeToProperty_ = {};
4959
- var E0 = Lo, C0 = `<?xml version="1.0" standalone="no"?>
4957
+ }(/* @__PURE__ */ wo(HTMLElement));
4958
+ Io._attributes_ = {}, Io._attributeToProperty_ = {};
4959
+ var E0 = Io, C0 = `<?xml version="1.0" standalone="no"?>
4960
4960
  <svg version="1.1"
4961
4961
  xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
4962
4962
  xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0.9em" height="0.9em"
@@ -5160,7 +5160,7 @@ var A0 = md, T0 = /* @__PURE__ */ function() {
5160
5160
  key: "enableButtons",
5161
5161
  value: function(e, r) {
5162
5162
  var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
5163
- window.webLLM ? (e && (e.disabled = !1), r && (r.disabled = !1)) : i < ls.MODULE_SEARCH_LIMIT_S * 4 && setTimeout(function() {
5163
+ window.webLLM ? (e && (e.disabled = !1), r && (r.disabled = !1)) : i < ss.MODULE_SEARCH_LIMIT_S * 4 && setTimeout(function() {
5164
5164
  return t.enableButtons(e, r, i + 1);
5165
5165
  }, 250);
5166
5166
  }
@@ -5216,7 +5216,7 @@ var A0 = md, T0 = /* @__PURE__ */ function() {
5216
5216
  }]);
5217
5217
  }();
5218
5218
  tr.DOWNLOAD_BUTTON_CLASS = "deep-chat-download-button", tr.UPLOAD_BUTTON_CLASS = "deep-chat-upload-button", tr.FILE_INPUT_CLASS = "deep-chat-file-input", tr.EXPORT_BUTTON_CLASS = "deep-chat-export-button";
5219
- var ml = tr, gl = {
5219
+ var hl = tr, ml = {
5220
5220
  model_list: [
5221
5221
  // Llama-2
5222
5222
  {
@@ -5398,7 +5398,7 @@ var ml = tr, gl = {
5398
5398
  key: "getIntroMessage",
5399
5399
  value: function(r) {
5400
5400
  if (!(!this.shouldAddIntroMessage(r) || !this._chatEl)) {
5401
- var i = ml.setUpInitial(this.init.bind(this), this._webModel.introMessage, this._chatEl, !!this._webModel.worker);
5401
+ var i = hl.setUpInitial(this.init.bind(this), this._webModel.introMessage, this._chatEl, !!this._webModel.worker);
5402
5402
  return this.scrollToTop(1), {
5403
5403
  role: Y.AI_ROLE,
5404
5404
  html: i,
@@ -5476,7 +5476,7 @@ var ml = tr, gl = {
5476
5476
  }
5477
5477
  if (!(this._isModelLoaded || this._isModelLoading)) {
5478
5478
  var i = this._webModel.worker;
5479
- return gl.use_web_worker && i ? new window.webLLM.ChatWorkerClient(i) : new window.webLLM.ChatModule();
5479
+ return ml.use_web_worker && i ? new window.webLLM.ChatWorkerClient(i) : new window.webLLM.ChatModule();
5480
5480
  }
5481
5481
  }
5482
5482
  }, {
@@ -5484,7 +5484,7 @@ var ml = tr, gl = {
5484
5484
  value: function() {
5485
5485
  var r, i = n.DEFAULT_MODEL;
5486
5486
  this._webModel.model && (i = this._webModel.model);
5487
- var a = JSON.parse(JSON.stringify(gl));
5487
+ var a = JSON.parse(JSON.stringify(ml));
5488
5488
  if (this._webModel.urls) {
5489
5489
  var o = a.model_list.find(function(s) {
5490
5490
  return s.local_id = i;
@@ -5524,7 +5524,7 @@ var ml = tr, gl = {
5524
5524
  case 13:
5525
5525
  return z.prev = 13, z.t0 = z.catch(4), z.abrupt("return", this.unloadChat(z.t0));
5526
5526
  case 16:
5527
- (u = (c = this.deepChat)._validationHandler) == null || u.call(c), (d = this._webModel.introMessage) != null && d.removeAfterLoad ? this._webModel.introMessage.displayed === !1 ? (f = this._messages) == null || f.removeLastMessage() : (h = this._removeIntro) == null || h.call(this) : (B = ml.setUpAfterLoad(y, this._webModel.introMessage, this._chatEl, !!this._webModel.worker), (p = this._messages) == null || p.addNewMessage({
5527
+ (u = (c = this.deepChat)._validationHandler) == null || u.call(c), (d = this._webModel.introMessage) != null && d.removeAfterLoad ? this._webModel.introMessage.displayed === !1 ? (f = this._messages) == null || f.removeLastMessage() : (h = this._removeIntro) == null || h.call(this) : (B = hl.setUpAfterLoad(y, this._webModel.introMessage, this._chatEl, !!this._webModel.worker), (p = this._messages) == null || p.addNewMessage({
5528
5528
  html: B,
5529
5529
  overwrite: !0,
5530
5530
  sendUpdate: !1
@@ -5820,7 +5820,7 @@ var ml = tr, gl = {
5820
5820
  }]);
5821
5821
  }(Ci);
5822
5822
  bn.GENERIC_ERROR = "Error, please check the [troubleshooting](https://deepchat.dev/docs/webModel#troubleshooting) section of documentation for help.", bn.MULTIPLE_MODELS_ERROR = "Cannot run multiple web models", bn.WEB_LLM_NOT_FOUND_ERROR = "WebLLM module not found", bn.DEFAULT_MODEL = "Llama-2-7b-chat-hf-q4f32_1", bn.MODULE_SEARCH_LIMIT_S = 5;
5823
- var ls = bn, vl = /* @__PURE__ */ function() {
5823
+ var ss = bn, gl = /* @__PURE__ */ function() {
5824
5824
  function t() {
5825
5825
  S(this, t);
5826
5826
  }
@@ -5853,7 +5853,7 @@ var ls = bn, vl = /* @__PURE__ */ function() {
5853
5853
  }(), gd = /* @__PURE__ */ function(t) {
5854
5854
  function n(e, r, i, a, o, s) {
5855
5855
  var l;
5856
- return S(this, n), l = K(this, n, [e, vl.buildKeyVerificationDetails(), vl.buildHeaders, o, s]), l.insertKeyPlaceholderText = "Hugging Face Token", l.keyHelpUrl = "https://huggingface.co/settings/tokens", l.introPanelMarkUp = `
5856
+ return S(this, n), l = K(this, n, [e, gl.buildKeyVerificationDetails(), gl.buildHeaders, o, s]), l.insertKeyPlaceholderText = "Hugging Face Token", l.keyHelpUrl = "https://huggingface.co/settings/tokens", l.introPanelMarkUp = `
5857
5857
  <div style="width: 100%; text-align: center; margin-left: -10px"><b>Hugging Face</b></div>
5858
5858
  <p>First message may take an extented amount of time to complete as the model needs to be initialized.</p>`, l.permittedErrorPrefixes = ["Authorization header"], l.url = "".concat(n.URL_PREFIX).concat(i), l.textInputPlaceholderText = r, V(a) == "object" && (a.model && (l.url = "".concat(n.URL_PREFIX).concat(a.model)), a.options && (l.rawBody.options = a.options), a.parameters && (l.rawBody.parameters = a.parameters)), l;
5859
5859
  }
@@ -5894,7 +5894,7 @@ var ls = bn, vl = /* @__PURE__ */ function() {
5894
5894
  }]);
5895
5895
  }(Ie);
5896
5896
  gd.URL_PREFIX = "https://api-inference.huggingface.co/models/";
5897
- var tn = gd, cs = /* @__PURE__ */ function(t) {
5897
+ var tn = gd, ls = /* @__PURE__ */ function(t) {
5898
5898
  function n(e, r, i, a, o, s) {
5899
5899
  var l;
5900
5900
  return S(this, n), l = K(this, n, [e, r, i, a, o, s]), l.isTextInputDisabled = !0, l.canSendMessage = n.canSendFile, l;
@@ -5987,7 +5987,7 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
5987
5987
  return r;
5988
5988
  }()
5989
5989
  }]);
5990
- }(cs), R0 = /* @__PURE__ */ function(t) {
5990
+ }(ls), R0 = /* @__PURE__ */ function(t) {
5991
5991
  function n(e) {
5992
5992
  S(this, n);
5993
5993
  var r, i, a, o = (i = (r = e.directConnection) == null ? void 0 : r.huggingFace) == null ? void 0 : i.imageClassification, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
@@ -6032,7 +6032,7 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
6032
6032
  return r;
6033
6033
  }()
6034
6034
  }]);
6035
- }(cs), Tr = "data:image/png;base64,", Ct = /* @__PURE__ */ function() {
6035
+ }(ls), Tr = "data:image/png;base64,", Ct = /* @__PURE__ */ function() {
6036
6036
  function t() {
6037
6037
  S(this, t);
6038
6038
  }
@@ -6318,7 +6318,7 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
6318
6318
  return r;
6319
6319
  }()
6320
6320
  }]);
6321
- }(cs), M0 = /* @__PURE__ */ function(t) {
6321
+ }(ls), M0 = /* @__PURE__ */ function(t) {
6322
6322
  function n(e) {
6323
6323
  S(this, n);
6324
6324
  var r, i, a, o = (i = (r = e.directConnection) == null ? void 0 : r.huggingFace) == null ? void 0 : i.textGeneration, s = (a = e.directConnection) == null ? void 0 : a.huggingFace;
@@ -6774,7 +6774,7 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
6774
6774
  return r;
6775
6775
  }()
6776
6776
  }]);
6777
- }(tn), yl = /* @__PURE__ */ function() {
6777
+ }(tn), vl = /* @__PURE__ */ function() {
6778
6778
  function t() {
6779
6779
  S(this, t);
6780
6780
  }
@@ -6807,10 +6807,10 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
6807
6807
  };
6808
6808
  }
6809
6809
  }]);
6810
- }(), us = /* @__PURE__ */ function(t) {
6810
+ }(), cs = /* @__PURE__ */ function(t) {
6811
6811
  function n(e, r, i, a, o) {
6812
6812
  var s;
6813
- return S(this, n), s = K(this, n, [e, yl.buildKeyVerificationDetails(), yl.buildHeaders, o]), s.insertKeyPlaceholderText = "Cohere API Key", s.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", s.permittedErrorPrefixes = ["invalid"], s.url = r, s.textInputPlaceholderText = i, a && V(a) == "object" && Object.assign(s.rawBody, a), s;
6813
+ return S(this, n), s = K(this, n, [e, vl.buildKeyVerificationDetails(), vl.buildHeaders, o]), s.insertKeyPlaceholderText = "Cohere API Key", s.keyHelpUrl = "https://dashboard.cohere.ai/api-keys", s.permittedErrorPrefixes = ["invalid"], s.url = r, s.textInputPlaceholderText = i, a && V(a) == "object" && Object.assign(s.rawBody, a), s;
6814
6814
  }
6815
6815
  return J(n, t), k(n);
6816
6816
  }(Ie), U0 = /* @__PURE__ */ function(t) {
@@ -6882,7 +6882,7 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
6882
6882
  return r;
6883
6883
  }()
6884
6884
  }]);
6885
- }(us), z0 = /* @__PURE__ */ function(t) {
6885
+ }(cs), z0 = /* @__PURE__ */ function(t) {
6886
6886
  function n(e) {
6887
6887
  S(this, n);
6888
6888
  var r, i, a, o = (i = (r = e.directConnection) == null ? void 0 : r.cohere) == null ? void 0 : i.summarization, s = (a = e.directConnection) == null ? void 0 : a.cohere;
@@ -6950,7 +6950,7 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
6950
6950
  return r;
6951
6951
  }()
6952
6952
  }]);
6953
- }(us), Oe = /* @__PURE__ */ function() {
6953
+ }(cs), Oe = /* @__PURE__ */ function() {
6954
6954
  function t() {
6955
6955
  S(this, t);
6956
6956
  }
@@ -7010,7 +7010,7 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
7010
7010
  return e;
7011
7011
  }()
7012
7012
  }]);
7013
- }(), Po = /* @__PURE__ */ function(t) {
7013
+ }(), Lo = /* @__PURE__ */ function(t) {
7014
7014
  function n(e) {
7015
7015
  var r, i, a;
7016
7016
  S(this, n);
@@ -7099,8 +7099,8 @@ var tn = gd, cs = /* @__PURE__ */ function(t) {
7099
7099
  }()
7100
7100
  }]);
7101
7101
  }(Ie);
7102
- Po.DEFAULT_MODEL = "tts-1", Po.DEFAULT_VOIDE = "alloy";
7103
- var W0 = Po, ai = /* @__PURE__ */ function(t) {
7102
+ Lo.DEFAULT_MODEL = "tts-1", Lo.DEFAULT_VOIDE = "alloy";
7103
+ var W0 = Lo, ai = /* @__PURE__ */ function(t) {
7104
7104
  function n(e) {
7105
7105
  var r, i;
7106
7106
  S(this, n);
@@ -7876,7 +7876,7 @@ var Z0 = bd, Y0 = /* @__PURE__ */ function(t) {
7876
7876
  return r;
7877
7877
  }()
7878
7878
  }]);
7879
- }(Ie), Mo = /* @__PURE__ */ function() {
7879
+ }(Ie), Po = /* @__PURE__ */ function() {
7880
7880
  function t() {
7881
7881
  S(this, t);
7882
7882
  }
@@ -8169,8 +8169,8 @@ var Z0 = bd, Y0 = /* @__PURE__ */ function(t) {
8169
8169
  }()
8170
8170
  }]);
8171
8171
  }();
8172
- Mo.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", Mo.FUNCTION_TOOL_RESP_ERROR = "Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.";
8173
- var Ft = Mo, oi = /* @__PURE__ */ function(t) {
8172
+ Po.FILES_WITH_TEXT_ERROR = "content with type `text` must have `text` values", Po.FUNCTION_TOOL_RESP_ERROR = "Response must contain an array of strings for each individual function/tool_call, see https://deepchat.dev/docs/directConnection/OpenAI/#assistant-functions.";
8173
+ var Ft = Po, oi = /* @__PURE__ */ function(t) {
8174
8174
  function n(e) {
8175
8175
  var r, i, a;
8176
8176
  S(this, n);
@@ -8219,7 +8219,7 @@ var Ft = Mo, oi = /* @__PURE__ */ function(t) {
8219
8219
  }, {
8220
8220
  key: "processMessage",
8221
8221
  value: function(r, i) {
8222
- var a = this.totalMessagesMaxCharLength || -1, o = ss.getCharacterLimitMessages(r, a)[0];
8222
+ var a = this.totalMessagesMaxCharLength || -1, o = os.getCharacterLimitMessages(r, a)[0];
8223
8223
  if (i && i.length > 0) {
8224
8224
  var s = this.filesToolType;
8225
8225
  if (typeof this.filesToolType == "function") {
@@ -8916,7 +8916,7 @@ var Q0 = si, em = /* @__PURE__ */ function(t) {
8916
8916
  value: (
8917
8917
  // prettier-ignore
8918
8918
  function(r, i) {
8919
- var a, o = JSON.parse(JSON.stringify(r)), s = ss.getCharacterLimitMessages(i, this.totalMessagesMaxCharLength ? this.totalMessagesMaxCharLength - this._systemMessage.content.length : -1).map(function(l) {
8919
+ var a, o = JSON.parse(JSON.stringify(r)), s = os.getCharacterLimitMessages(i, this.totalMessagesMaxCharLength ? this.totalMessagesMaxCharLength - this._systemMessage.content.length : -1).map(function(l) {
8920
8920
  return {
8921
8921
  content: n.getContent(l),
8922
8922
  role: l.role === Y.USER_ROLE ? "user" : "assistant"
@@ -9212,7 +9212,7 @@ var Q0 = si, em = /* @__PURE__ */ function(t) {
9212
9212
  return r;
9213
9213
  }()
9214
9214
  }]);
9215
- }(us), bl = /* @__PURE__ */ function() {
9215
+ }(cs), yl = /* @__PURE__ */ function() {
9216
9216
  function t() {
9217
9217
  S(this, t);
9218
9218
  }
@@ -9247,7 +9247,7 @@ var Q0 = si, em = /* @__PURE__ */ function(t) {
9247
9247
  var r, i, a;
9248
9248
  S(this, n);
9249
9249
  var o, s = JSON.parse(JSON.stringify(e.directConnection)).mistral;
9250
- return a = K(this, n, [e, bl.buildKeyVerificationDetails(), bl.buildHeaders, s]), a.insertKeyPlaceholderText = "Mistral API Key", a.keyHelpUrl = "https://console.mistral.ai/api-keys/", a.url = "https://api.mistral.ai/v1/chat/completions", a.permittedErrorPrefixes = ["invalid"], s && (a.cleanConfig(s), Object.assign(a.rawBody, s)), (r = a.maxMessages) !== null && r !== void 0 || (a.maxMessages = -1), (i = (o = a.rawBody).model) !== null && i !== void 0 || (o.model = "open-mistral-7b"), a;
9250
+ return a = K(this, n, [e, yl.buildKeyVerificationDetails(), yl.buildHeaders, s]), a.insertKeyPlaceholderText = "Mistral API Key", a.keyHelpUrl = "https://console.mistral.ai/api-keys/", a.url = "https://api.mistral.ai/v1/chat/completions", a.permittedErrorPrefixes = ["invalid"], s && (a.cleanConfig(s), Object.assign(a.rawBody, s)), (r = a.maxMessages) !== null && r !== void 0 || (a.maxMessages = -1), (i = (o = a.rawBody).model) !== null && i !== void 0 || (o.model = "open-mistral-7b"), a;
9251
9251
  }
9252
9252
  return J(n, t), k(n, [{
9253
9253
  key: "cleanConfig",
@@ -9332,7 +9332,7 @@ var Q0 = si, em = /* @__PURE__ */ function(t) {
9332
9332
  // this should only be called when no _activeService is set or is demo as otherwise we don't want to reconnect
9333
9333
  function(e) {
9334
9334
  var r = e.directConnection, i = e.connect, a = e.demo, o = e.webModel;
9335
- if (o) return new ls(e);
9335
+ if (o) return new ss(e);
9336
9336
  if (r) {
9337
9337
  if (r.openAI) return r.openAI.images ? new Q0(e) : r.openAI.speechToText ? new q0(e) : r.openAI.textToSpeech ? new W0(e) : r.openAI.assistant ? new X0(e) : new em(e);
9338
9338
  if (r.assemblyAI) return new K0(e);
@@ -9606,7 +9606,7 @@ var am = /* @__PURE__ */ function() {
9606
9606
  var s = this._introMessage;
9607
9607
  if (i != null && i.isWebModel() && ((a = s) !== null && a !== void 0 || (s = i.getIntroMessage(s))), s) {
9608
9608
  var l;
9609
- s != null && s.text ? l = this.createAndAppendNewMessageElement(s.text, Y.AI_ROLE) : s != null && s.html && (l = Co.add(this, s.html, Y.AI_ROLE, this.messageElementRefs)), l && (this.applyCustomStyles(l, Y.AI_ROLE, !1, (o = this.messageStyles) == null ? void 0 : o.intro), l.outerContainer.classList.add("deep-chat-intro"));
9609
+ s != null && s.text ? l = this.createAndAppendNewMessageElement(s.text, Y.AI_ROLE) : s != null && s.html && (l = Eo.add(this, s.html, Y.AI_ROLE, this.messageElementRefs)), l && (this.applyCustomStyles(l, Y.AI_ROLE, !1, (o = this.messageStyles) == null ? void 0 : o.intro), l.outerContainer.classList.add("deep-chat-intro"));
9610
9610
  }
9611
9611
  }
9612
9612
  }, {
@@ -9618,9 +9618,9 @@ var am = /* @__PURE__ */ function() {
9618
9618
  }, {
9619
9619
  key: "populateHistory",
9620
9620
  value: function(r) {
9621
- var i = this, a = r.history || ze.processHistory(r);
9621
+ var i = this, a = r.history || We.processHistory(r);
9622
9622
  a && (a.forEach(function(o) {
9623
- ze.processHistoryFile(o), i.addNewMessage(o, !0);
9623
+ We.processHistoryFile(o), i.addNewMessage(o, !0);
9624
9624
  }), setTimeout(function() {
9625
9625
  return Ne.scrollToBottom(i.elementRef);
9626
9626
  }, 0));
@@ -9665,7 +9665,7 @@ var am = /* @__PURE__ */ function() {
9665
9665
  status: r.overwrite
9666
9666
  };
9667
9667
  if (!r.ignoreText && a.text !== void 0 && r.text !== null && (this.addNewTextMessage(a.text, a.role, o), !i && this.textToSpeech && a.role !== Y.USER_ROLE && ni.speak(a.text, this.textToSpeech)), a.files && Array.isArray(a.files) && cm.addMessages(this, a.files, a.role), a.html !== void 0 && a.html !== null) {
9668
- var s = Co.add(this, a.html, a.role, this.messageElementRefs, o);
9668
+ var s = Eo.add(this, a.html, a.role, this.messageElementRefs, o);
9669
9669
  _i.isElementTemporary(s) && delete a.html;
9670
9670
  }
9671
9671
  this.isValidMessageContent(a) && this.updateStateOnMessage(a, r.overwrite, r.sendUpdate, i);
@@ -9874,7 +9874,7 @@ var dm = nr, xi = /* @__PURE__ */ function() {
9874
9874
  e[a].appendChild(r), a === 3 && r.classList.add("outside-right");
9875
9875
  }
9876
9876
  }]);
9877
- }(), wl = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"], zt = /* @__PURE__ */ function() {
9877
+ }(), bl = ["camera", "gifs", "images", "audio", "mixedFiles", "submit", "microphone"], zt = /* @__PURE__ */ function() {
9878
9878
  function t() {
9879
9879
  S(this, t);
9880
9880
  }
@@ -10000,7 +10000,7 @@ var dm = nr, xi = /* @__PURE__ */ function() {
10000
10000
  }
10001
10001
  }
10002
10002
  }]);
10003
- }(), Sl = /* @__PURE__ */ function() {
10003
+ }(), wl = /* @__PURE__ */ function() {
10004
10004
  function t() {
10005
10005
  S(this, t);
10006
10006
  }
@@ -10113,7 +10113,7 @@ var dm = nr, xi = /* @__PURE__ */ function() {
10113
10113
  key: "windowKeyDown",
10114
10114
  value: function(e, r) {
10115
10115
  var i, a, o;
10116
- !e.isConnected && this.keyDownEvent ? window.removeEventListener("keydown", this.keyDownEvent) : this._isOpen && (r.key === Ee.ESCAPE ? (this.close(), (i = this.highlightedItem) == null || i.dispatchEvent(new MouseEvent("mouseleave"))) : r.key === Ee.ENTER ? ((a = this.highlightedItem) == null || a.click(), (o = this.highlightedItem) == null || o.dispatchEvent(new MouseEvent("mouseleave"))) : r.key === Ee.ARROW_DOWN ? Sl.focusSiblingItem(this.highlightedItem || this.elementRef.children[this.elementRef.children.length - 1], this.elementRef, !0) : r.key === Ee.ARROW_UP && Sl.focusSiblingItem(this.highlightedItem || this.elementRef.children[0], this.elementRef, !1));
10116
+ !e.isConnected && this.keyDownEvent ? window.removeEventListener("keydown", this.keyDownEvent) : this._isOpen && (r.key === Ee.ESCAPE ? (this.close(), (i = this.highlightedItem) == null || i.dispatchEvent(new MouseEvent("mouseleave"))) : r.key === Ee.ENTER ? ((a = this.highlightedItem) == null || a.click(), (o = this.highlightedItem) == null || o.dispatchEvent(new MouseEvent("mouseleave"))) : r.key === Ee.ARROW_DOWN ? wl.focusSiblingItem(this.highlightedItem || this.elementRef.children[this.elementRef.children.length - 1], this.elementRef, !0) : r.key === Ee.ARROW_UP && wl.focusSiblingItem(this.highlightedItem || this.elementRef.children[0], this.elementRef, !1));
10117
10117
  }
10118
10118
  }], [{
10119
10119
  key: "createElement",
@@ -10122,7 +10122,7 @@ var dm = nr, xi = /* @__PURE__ */ function() {
10122
10122
  return r.id = "dropup-menu", Object.assign(r.style, e), r;
10123
10123
  }
10124
10124
  }]);
10125
- }(), kl = /* @__PURE__ */ function(t) {
10125
+ }(), Sl = /* @__PURE__ */ function(t) {
10126
10126
  function n(e, r) {
10127
10127
  var i;
10128
10128
  S(this, n);
@@ -10196,14 +10196,14 @@ var dm = nr, xi = /* @__PURE__ */ function() {
10196
10196
  value: (
10197
10197
  // prettier-ignore
10198
10198
  function(e, r, i, a) {
10199
- var o = new kl(i, a);
10200
- wl.forEach(function(l) {
10199
+ var o = new Sl(i, a);
10200
+ bl.forEach(function(l) {
10201
10201
  var c = r["dropup-menu"].findIndex(function(d) {
10202
10202
  return d.buttonType === l;
10203
10203
  }), u = r["dropup-menu"][c];
10204
10204
  u && (o.addItem(u.button), r["dropup-menu"].splice(c, 1));
10205
10205
  });
10206
- var s = kl.getPosition(r, a);
10206
+ var s = Sl.getPosition(r, a);
10207
10207
  xi.addButton(e, o.buttonContainer, s), r[s].push({});
10208
10208
  }
10209
10209
  )
@@ -10246,7 +10246,7 @@ var dm = nr, xi = /* @__PURE__ */ function() {
10246
10246
  s && t.setPosition(e, a, r[s]);
10247
10247
  }), r["inside-right"].length === 0 && e.submit && t.setPosition(e, "submit", r["inside-right"]), r["outside-right"].length === 0 && (e.submit ? t.setPosition(e, "submit", r["outside-right"]) : e.microphone ? t.setPosition(e, "microphone", r["outside-right"]) : e.camera && t.setPosition(e, "camera", r["outside-right"])), e.submit && t.setPosition(e, "submit", r["outside-left"].length === 0 ? r["outside-left"] : r["inside-right"]), e.microphone && t.setPosition(e, "microphone", r["outside-left"].length === 0 ? r["outside-left"] : r["inside-right"]);
10248
10248
  var i = Object.keys(e);
10249
- return i.length > 1 || r["dropup-menu"].length > 0 ? wl.forEach(function(a) {
10249
+ return i.length > 1 || r["dropup-menu"].length > 0 ? bl.forEach(function(a) {
10250
10250
  e[a] && r["dropup-menu"].push(oe(oe({}, e[a]), {}, {
10251
10251
  buttonType: a
10252
10252
  }));
@@ -10453,7 +10453,7 @@ Object.defineProperty(Ki, "__esModule", {
10453
10453
  value: !0
10454
10454
  });
10455
10455
  Ki.WebSpeechTranscript = void 0;
10456
- var _l = Rr, Em = /* @__PURE__ */ function() {
10456
+ var kl = Rr, Em = /* @__PURE__ */ function() {
10457
10457
  function t() {
10458
10458
  S(this, t);
10459
10459
  }
@@ -10462,7 +10462,7 @@ var _l = Rr, Em = /* @__PURE__ */ function() {
10462
10462
  value: function(e, r, i) {
10463
10463
  for (var a = "", o = e.resultIndex; o < e.results.length; ++o) {
10464
10464
  var s = e.results[o][0].transcript;
10465
- i && (s = _l.Translate.translate(s, i)), e.results[o].isFinal ? r += s : a += s;
10465
+ i && (s = kl.Translate.translate(s, i)), e.results[o].isFinal ? r += s : a += s;
10466
10466
  }
10467
10467
  return {
10468
10468
  interimTranscript: a,
@@ -10475,7 +10475,7 @@ var _l = Rr, Em = /* @__PURE__ */ function() {
10475
10475
  value: function(e, r, i) {
10476
10476
  for (var a = "", o = "", s = e.resultIndex; s < e.results.length; ++s) {
10477
10477
  var l = e.results[s][0].transcript;
10478
- i && (l = _l.Translate.translate(l, i)), a += l;
10478
+ i && (l = kl.Translate.translate(l, i)), a += l;
10479
10479
  }
10480
10480
  return {
10481
10481
  interimTranscript: o,
@@ -10748,14 +10748,14 @@ Object.defineProperty(Lr, "__esModule", {
10748
10748
  value: !0
10749
10749
  });
10750
10750
  Lr.CommandUtils = void 0;
10751
- var El = Pr, Om = rn, Rm = Mn, Cl = an, xl = nn, Im = /* @__PURE__ */ function() {
10751
+ var _l = Pr, Om = rn, Rm = Mn, El = an, Cl = nn, Im = /* @__PURE__ */ function() {
10752
10752
  function t() {
10753
10753
  S(this, t);
10754
10754
  }
10755
10755
  return k(t, null, [{
10756
10756
  key: "processCommand",
10757
10757
  value: function(e, r) {
10758
- return (!r || !r.caseSensitive) && (e = e.toLowerCase()), (r == null ? void 0 : r.substrings) === !1 ? xl.Text.breakupIntoWordsArr(e) : e;
10758
+ return (!r || !r.caseSensitive) && (e = e.toLowerCase()), (r == null ? void 0 : r.substrings) === !1 ? Cl.Text.breakupIntoWordsArr(e) : e;
10759
10759
  }
10760
10760
  }, {
10761
10761
  key: "process",
@@ -10781,8 +10781,8 @@ var El = Pr, Om = rn, Rm = Mn, Cl = an, xl = nn, Im = /* @__PURE__ */ function()
10781
10781
  }, {
10782
10782
  key: "setText",
10783
10783
  value: function(e, r, i, a) {
10784
- t.toggleCommandModeOff(e), Om.Elements.isPrimitiveElement(a) ? (a.value = i, e.isTargetInShadow || Cl.Cursor.setOffsetForPrimitive(a, i.length, !0), Rm.Browser.IS_SAFARI() && e.autoScroll && El.AutoScroll.scrollSafariPrimitiveToEnd(a)) : (a.textContent = i, e.isTargetInShadow || Cl.Cursor.focusEndOfGeneric(a), setTimeout(function() {
10785
- return El.AutoScroll.scrollGeneric(e, a);
10784
+ t.toggleCommandModeOff(e), Om.Elements.isPrimitiveElement(a) ? (a.value = i, e.isTargetInShadow || El.Cursor.setOffsetForPrimitive(a, i.length, !0), Rm.Browser.IS_SAFARI() && e.autoScroll && _l.AutoScroll.scrollSafariPrimitiveToEnd(a)) : (a.textContent = i, e.isTargetInShadow || El.Cursor.focusEndOfGeneric(a), setTimeout(function() {
10785
+ return _l.AutoScroll.scrollGeneric(e, a);
10786
10786
  })), e.resetRecording(r);
10787
10787
  }
10788
10788
  }, {
@@ -10805,7 +10805,7 @@ var El = Pr, Om = rn, Rm = Mn, Cl = an, xl = nn, Im = /* @__PURE__ */ function()
10805
10805
  value: function(e, r, i, a, o) {
10806
10806
  var s, l, c, u = e.commands;
10807
10807
  if (!(!u || !a || !i)) {
10808
- var d = ((s = u.settings) === null || s === void 0 ? void 0 : s.caseSensitive) === !0 ? r : r.toLowerCase(), p = xl.Text.breakupIntoWordsArr(d), f = ((l = u.settings) === null || l === void 0 ? void 0 : l.substrings) === !1 ? t.checkIfMatchesWord : t.checkIfMatchesSubstring;
10808
+ var d = ((s = u.settings) === null || s === void 0 ? void 0 : s.caseSensitive) === !0 ? r : r.toLowerCase(), p = Cl.Text.breakupIntoWordsArr(d), f = ((l = u.settings) === null || l === void 0 ? void 0 : l.substrings) === !1 ? t.checkIfMatchesWord : t.checkIfMatchesSubstring;
10809
10809
  if (u.commandMode && f(u.commandMode, d, p)) return e.setInterimColorToFinal(), setTimeout(function() {
10810
10810
  return t.toggleCommandModeOn(e);
10811
10811
  }), {
@@ -10894,7 +10894,7 @@ Object.defineProperty(Qi, "__esModule", {
10894
10894
  value: !0
10895
10895
  });
10896
10896
  Qi.Padding = void 0;
10897
- var Mm = rn, Al = an, cn = nn, Fm = /* @__PURE__ */ function() {
10897
+ var Mm = rn, xl = an, cn = nn, Fm = /* @__PURE__ */ function() {
10898
10898
  function t() {
10899
10899
  S(this, t);
10900
10900
  }
@@ -10916,7 +10916,7 @@ var Mm = rn, Al = an, cn = nn, Fm = /* @__PURE__ */ function() {
10916
10916
  if (document.activeElement === r) {
10917
10917
  var s = window.getSelection();
10918
10918
  if (s != null && s.focusNode) {
10919
- var l = Al.Cursor.getGenericElementCursorOffset(r, s, !0), c = (i = r.textContent) === null || i === void 0 ? void 0 : i[l - 1], u = Al.Cursor.getGenericElementCursorOffset(r, s, !1), d = (a = r.textContent) === null || a === void 0 ? void 0 : a[u];
10919
+ var l = xl.Cursor.getGenericElementCursorOffset(r, s, !0), c = (i = r.textContent) === null || i === void 0 ? void 0 : i[l - 1], u = xl.Cursor.getGenericElementCursorOffset(r, s, !1), d = (a = r.textContent) === null || a === void 0 ? void 0 : a[u];
10920
10920
  cn.Text.isCharDefined(c) && (e.startPadding = " "), cn.Text.isCharDefined(d) && (e.endPadding = " "), e.isCursorAtEnd = ((o = r.textContent) === null || o === void 0 ? void 0 : o.length) === u;
10921
10921
  return;
10922
10922
  }
@@ -10950,7 +10950,7 @@ Object.defineProperty(Ir, "__esModule", {
10950
10950
  value: !0
10951
10951
  });
10952
10952
  Ir.Speech = void 0;
10953
- var Tl = Zi, Nm = Yi, Ol = Lr, Gr = Pr, Ia = Xi, Ye = rn, La = Qi, Rl = Mn, Il = an, Pa = nn, $m = /* @__PURE__ */ function() {
10953
+ var Al = Zi, Nm = Yi, Tl = Lr, Gr = Pr, Ia = Xi, Ye = rn, La = Qi, Ol = Mn, Rl = an, Pa = nn, $m = /* @__PURE__ */ function() {
10954
10954
  function t() {
10955
10955
  S(this, t), this.finalTranscript = "", this.interimSpan = Ye.Elements.createInterimSpan(), this.finalSpan = Ye.Elements.createGenericSpan(), this.scrollingSpan = Ye.Elements.createGenericSpan(), this.isCursorAtEnd = !1, this.spansPopulated = !1, this.startPadding = "", this.endPadding = "", this.numberOfSpacesBeforeNewText = 0, this.numberOfSpacesAfterNewText = 0, this.isHighlighted = !1, this.primitiveTextRecorded = !1, this.recognizing = !1, this._displayInterimResults = !0, this.insertInCursorLocation = !0, this.autoScroll = !0, this.isRestarting = !1, this.isPaused = !1, this.isWaitingForCommand = !1, this.isTargetInShadow = !1, this.cannotBeStopped = !1, this.resetState();
10956
10956
  }
@@ -10958,14 +10958,14 @@ var Tl = Zi, Nm = Yi, Ol = Lr, Gr = Pr, Ia = Xi, Ye = rn, La = Qi, Rl = Mn, Il =
10958
10958
  key: "prepareBeforeStart",
10959
10959
  value: function(e) {
10960
10960
  var r, i;
10961
- if (e != null && e.element) if (Tl.EventListeners.add(this, e), Array.isArray(e.element)) {
10961
+ if (e != null && e.element) if (Al.EventListeners.add(this, e), Array.isArray(e.element)) {
10962
10962
  var a = e.element.find(function(o) {
10963
10963
  return o === document.activeElement;
10964
10964
  }) || e.element[0];
10965
10965
  if (!a) return;
10966
10966
  this.prepare(a);
10967
10967
  } else this.prepare(e.element);
10968
- (e == null ? void 0 : e.displayInterimResults) !== void 0 && (this._displayInterimResults = e.displayInterimResults), e != null && e.textColor && (this._finalTextColor = (r = e == null ? void 0 : e.textColor) === null || r === void 0 ? void 0 : r.final, Ye.Elements.applyCustomColors(this, e.textColor)), (e == null ? void 0 : e.insertInCursorLocation) !== void 0 && (this.insertInCursorLocation = e.insertInCursorLocation), (e == null ? void 0 : e.autoScroll) !== void 0 && (this.autoScroll = e.autoScroll), this._onResult = e == null ? void 0 : e.onResult, this._onPreResult = e == null ? void 0 : e.onPreResult, this._onStart = e == null ? void 0 : e.onStart, this._onStop = e == null ? void 0 : e.onStop, this._onError = e == null ? void 0 : e.onError, this.onCommandModeTrigger = e == null ? void 0 : e.onCommandModeTrigger, this.onPauseTrigger = e == null ? void 0 : e.onPauseTrigger, this._options = e, !((i = this._options) === null || i === void 0) && i.commands && (this.commands = Ol.CommandUtils.process(this._options.commands));
10968
+ (e == null ? void 0 : e.displayInterimResults) !== void 0 && (this._displayInterimResults = e.displayInterimResults), e != null && e.textColor && (this._finalTextColor = (r = e == null ? void 0 : e.textColor) === null || r === void 0 ? void 0 : r.final, Ye.Elements.applyCustomColors(this, e.textColor)), (e == null ? void 0 : e.insertInCursorLocation) !== void 0 && (this.insertInCursorLocation = e.insertInCursorLocation), (e == null ? void 0 : e.autoScroll) !== void 0 && (this.autoScroll = e.autoScroll), this._onResult = e == null ? void 0 : e.onResult, this._onPreResult = e == null ? void 0 : e.onPreResult, this._onStart = e == null ? void 0 : e.onStart, this._onStop = e == null ? void 0 : e.onStop, this._onError = e == null ? void 0 : e.onError, this.onCommandModeTrigger = e == null ? void 0 : e.onCommandModeTrigger, this.onPauseTrigger = e == null ? void 0 : e.onPauseTrigger, this._options = e, !((i = this._options) === null || i === void 0) && i.commands && (this.commands = Tl.CommandUtils.process(this._options.commands));
10969
10969
  }
10970
10970
  }, {
10971
10971
  key: "prepare",
@@ -10987,7 +10987,7 @@ var Tl = Zi, Nm = Yi, Ol = Lr, Gr = Pr, Ia = Xi, Ye = rn, La = Qi, Rl = Mn, Il =
10987
10987
  var a, o = Pa.Text.capitalize(r);
10988
10988
  if (!(this.finalTranscript === o && e === "")) {
10989
10989
  Nm.PreResultUtils.process(this, i, e === "", this._onPreResult, this._options) && (e = "", i = "");
10990
- var s = this.commands && Ol.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
10990
+ var s = this.commands && Tl.CommandUtils.execCommand(this, i, this._options, this._primitiveElement || this._genericElement, this._originalText);
10991
10991
  if (s) {
10992
10992
  if (s.doNotProcessTranscription) return;
10993
10993
  e = "", i = "";
@@ -11008,9 +11008,9 @@ var Tl = Zi, Nm = Yi, Ol = Lr, Gr = Pr, Ia = Xi, Ye = rn, La = Qi, Rl = Mn, Il =
11008
11008
  var a = this.startPadding + this.finalTranscript + r;
11009
11009
  if (e.value = a + this.endPadding, !this.isTargetInShadow) {
11010
11010
  var o = a.length + this.numberOfSpacesAfterNewText;
11011
- Il.Cursor.setOffsetForPrimitive(e, o, this.autoScroll);
11011
+ Rl.Cursor.setOffsetForPrimitive(e, o, this.autoScroll);
11012
11012
  }
11013
- this.autoScroll && Rl.Browser.IS_SAFARI() && this.isCursorAtEnd && Gr.AutoScroll.scrollSafariPrimitiveToEnd(e);
11013
+ this.autoScroll && Ol.Browser.IS_SAFARI() && this.isCursorAtEnd && Gr.AutoScroll.scrollSafariPrimitiveToEnd(e);
11014
11014
  }
11015
11015
  }, {
11016
11016
  key: "updateGenericElement",
@@ -11021,12 +11021,12 @@ var Tl = Zi, Nm = Yi, Ol = Lr, Gr = Pr, Ia = Xi, Ye = rn, La = Qi, Rl = Mn, Il =
11021
11021
  var o = Gr.AutoScroll.isRequired(this.autoScroll, e);
11022
11022
  Gr.AutoScroll.changeStateIfNeeded(this, o);
11023
11023
  var s = Pa.Text.lineBreak(r) + (i ? "" : this.endPadding);
11024
- this.interimSpan.innerHTML = s, Rl.Browser.IS_SAFARI() && this.insertInCursorLocation && Il.Cursor.setOffsetForSafariGeneric(e, a.length + s.length), o && Gr.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
11024
+ this.interimSpan.innerHTML = s, Ol.Browser.IS_SAFARI() && this.insertInCursorLocation && Rl.Cursor.setOffsetForSafariGeneric(e, a.length + s.length), o && Gr.AutoScroll.scrollGeneric(this, e), i && (this.scrollingSpan.innerHTML = "");
11025
11025
  }
11026
11026
  }, {
11027
11027
  key: "finalise",
11028
11028
  value: function(e) {
11029
- this._genericElement && (e ? (this.finalSpan = Ye.Elements.createGenericSpan(), this.setInterimColorToFinal(), this.interimSpan = Ye.Elements.createInterimSpan(), this.scrollingSpan = Ye.Elements.createGenericSpan()) : this._genericElement.textContent = this._genericElement.textContent, this.spansPopulated = !1), Tl.EventListeners.remove(this);
11029
+ this._genericElement && (e ? (this.finalSpan = Ye.Elements.createGenericSpan(), this.setInterimColorToFinal(), this.interimSpan = Ye.Elements.createInterimSpan(), this.scrollingSpan = Ye.Elements.createGenericSpan()) : this._genericElement.textContent = this._genericElement.textContent, this.spansPopulated = !1), Al.EventListeners.remove(this);
11030
11030
  }
11031
11031
  }, {
11032
11032
  key: "setInterimColorToFinal",
@@ -11063,7 +11063,7 @@ Object.defineProperty(Gi, "__esModule", {
11063
11063
  value: !0
11064
11064
  });
11065
11065
  Gi.WebSpeech = void 0;
11066
- var Ll = Ki, Pl = Mn, Dm = Ir, Bm = /* @__PURE__ */ function(t) {
11066
+ var Il = Ki, Ll = Mn, Dm = Ir, Bm = /* @__PURE__ */ function(t) {
11067
11067
  function n() {
11068
11068
  return S(this, n), K(this, n);
11069
11069
  }
@@ -11071,7 +11071,7 @@ var Ll = Ki, Pl = Mn, Dm = Ir, Bm = /* @__PURE__ */ function(t) {
11071
11071
  key: "start",
11072
11072
  value: function(r) {
11073
11073
  var i;
11074
- this._extractText === void 0 && (this._extractText = Pl.Browser.IS_SAFARI() ? Ll.WebSpeechTranscript.extractSafari : Ll.WebSpeechTranscript.extract), this.validate() && (this.prepareBeforeStart(r), this.instantiateService(r), (i = this._service) === null || i === void 0 || i.start(), this._translations = r == null ? void 0 : r.translations);
11074
+ this._extractText === void 0 && (this._extractText = Ll.Browser.IS_SAFARI() ? Il.WebSpeechTranscript.extractSafari : Il.WebSpeechTranscript.extract), this.validate() && (this.prepareBeforeStart(r), this.instantiateService(r), (i = this._service) === null || i === void 0 || i.start(), this._translations = r == null ? void 0 : r.translations);
11075
11075
  }
11076
11076
  }, {
11077
11077
  key: "validate",
@@ -11091,7 +11091,7 @@ var Ll = Ki, Pl = Mn, Dm = Ir, Bm = /* @__PURE__ */ function(t) {
11091
11091
  this._service && (this._service.onstart = function() {
11092
11092
  r.setStateOnStart();
11093
11093
  }, this._service.onerror = function(i) {
11094
- Pl.Browser.IS_SAFARI() && i.message === "Another request is started" || i.error === "aborted" && r.isRestarting || i.error !== "no-speech" && r.error(i.message || i.error);
11094
+ Ll.Browser.IS_SAFARI() && i.message === "Another request is started" || i.error === "aborted" && r.isRestarting || i.error !== "no-speech" && r.error(i.message || i.error);
11095
11095
  }, this._service.onaudioend = function() {
11096
11096
  r.setStateOnStop();
11097
11097
  }, this._service.onend = function() {
@@ -11300,7 +11300,7 @@ Object.defineProperty(ta, "__esModule", {
11300
11300
  value: !0
11301
11301
  });
11302
11302
  ta.Azure = void 0;
11303
- var Ml = na, Fl = ra, Fa = aa, Nl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t) {
11303
+ var Pl = na, Ml = ra, Fa = aa, Fl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t) {
11304
11304
  function n() {
11305
11305
  var e;
11306
11306
  return S(this, n), e = K(this, n, arguments), e._newTextPadding = "", e;
@@ -11308,7 +11308,7 @@ var Ml = na, Fl = ra, Fa = aa, Nl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t
11308
11308
  return J(n, t), k(n, [{
11309
11309
  key: "start",
11310
11310
  value: function(r, i) {
11311
- this._newTextPadding = "", this.stopTimeout === void 0 && Fa.StopTimeout.reset(this, r == null ? void 0 : r.stopAfterSilenceMs), this.prepareBeforeStart(r), this.startAsync(r), i || Ml.PreventConnectionStop.applyPrevention(this);
11311
+ this._newTextPadding = "", this.stopTimeout === void 0 && Fa.StopTimeout.reset(this, r == null ? void 0 : r.stopAfterSilenceMs), this.prepareBeforeStart(r), this.startAsync(r), i || Pl.PreventConnectionStop.applyPrevention(this);
11312
11312
  }
11313
11313
  }, {
11314
11314
  key: "startAsync",
@@ -11340,7 +11340,7 @@ var Ml = na, Fl = ra, Fa = aa, Nl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t
11340
11340
  }, {
11341
11341
  key: "validate",
11342
11342
  value: function(r) {
11343
- return n.getAPI() ? Fl.AzureSpeechConfig.validateOptions(this.error.bind(this), r) : (this.moduleNotFound(), !1);
11343
+ return n.getAPI() ? Ml.AzureSpeechConfig.validateOptions(this.error.bind(this), r) : (this.moduleNotFound(), !1);
11344
11344
  }
11345
11345
  }, {
11346
11346
  key: "instantiateService",
@@ -11350,7 +11350,7 @@ var Ml = na, Fl = ra, Fa = aa, Nl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t
11350
11350
  return m().wrap(function(d) {
11351
11351
  for (; ; ) switch (d.prev = d.next) {
11352
11352
  case 0:
11353
- return o = n.getAPI(), s = o.AudioConfig.fromDefaultMicrophoneInput(), d.next = 4, Fl.AzureSpeechConfig.get(o.SpeechConfig, a);
11353
+ return o = n.getAPI(), s = o.AudioConfig.fromDefaultMicrophoneInput(), d.next = 4, Ml.AzureSpeechConfig.get(o.SpeechConfig, a);
11354
11354
  case 4:
11355
11355
  l = d.sent, l ? (c = new o.SpeechRecognizer(l, s), this.setEvents(c), this._service = c, a.retrieveToken && this.retrieveTokenInterval(a.retrieveToken)) : this.error("Unable to contact Azure server");
11356
11356
  case 6:
@@ -11374,7 +11374,7 @@ var Ml = na, Fl = ra, Fa = aa, Nl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t
11374
11374
  key: "onRecognizing",
11375
11375
  value: function(r, i) {
11376
11376
  if (!this._stopping) {
11377
- var a = Nl.AzureTranscript.extract(this._newTextPadding + i.result.text, this.finalTranscript, !1, this._translations), o = a.interimTranscript, s = a.finalTranscript, l = a.newText;
11377
+ var a = Fl.AzureTranscript.extract(this._newTextPadding + i.result.text, this.finalTranscript, !1, this._translations), o = a.interimTranscript, s = a.finalTranscript, l = a.newText;
11378
11378
  Fa.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(o, s, l);
11379
11379
  }
11380
11380
  }
@@ -11393,7 +11393,7 @@ var Ml = na, Fl = ra, Fa = aa, Nl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t
11393
11393
  break;
11394
11394
  case window.SpeechSDK.ResultReason.RecognizedSpeech:
11395
11395
  if (a.text && !this._stopping) {
11396
- var o = Nl.AzureTranscript.extract(this._newTextPadding + a.text, this.finalTranscript, !0, this._translations), s = o.interimTranscript, l = o.finalTranscript, c = o.newText;
11396
+ var o = Fl.AzureTranscript.extract(this._newTextPadding + a.text, this.finalTranscript, !0, this._translations), s = o.interimTranscript, l = o.finalTranscript, c = o.newText;
11397
11397
  Fa.StopTimeout.reset(this, this.stopTimeoutMS), this.updateElements(s, l, c), l !== "" && (this._newTextPadding = " ");
11398
11398
  }
11399
11399
  break;
@@ -11407,7 +11407,7 @@ var Ml = na, Fl = ra, Fa = aa, Nl = oa, Wm = Ir, qm = /* @__PURE__ */ function(t
11407
11407
  }, {
11408
11408
  key: "onSessionStarted",
11409
11409
  value: function() {
11410
- Ml.PreventConnectionStop.clearPrevention(this), this.setStateOnStart();
11410
+ Pl.PreventConnectionStop.clearPrevention(this), this.setStateOnStart();
11411
11411
  }
11412
11412
  }, {
11413
11413
  key: "onSessionStopped",
@@ -11453,7 +11453,7 @@ ta.Azure = qm;
11453
11453
  Object.defineProperty(kd, "__esModule", {
11454
11454
  value: !0
11455
11455
  });
11456
- var $l = Gi, Vm = Lr, Ve = ea, Gm = ta, Km = /* @__PURE__ */ function() {
11456
+ var Nl = Gi, Vm = Lr, Ge = ea, Gm = ta, Km = /* @__PURE__ */ function() {
11457
11457
  function t() {
11458
11458
  S(this, t);
11459
11459
  }
@@ -11461,34 +11461,34 @@ var $l = Gi, Vm = Lr, Ve = ea, Gm = ta, Km = /* @__PURE__ */ function() {
11461
11461
  key: "toggle",
11462
11462
  value: function(e, r) {
11463
11463
  var i, a, o = e.toLocaleLowerCase().trim();
11464
- !((i = Ve.GlobalState.service) === null || i === void 0) && i.recognizing ? this.stop() : o === "webspeech" ? t.startWebSpeech(r) : o === "azure" ? t.startAzure(r) : (console.error("service not found - must be either 'webspeech' or 'azure'"), (a = r == null ? void 0 : r.onError) === null || a === void 0 || a.call(r, "service not found - must be either 'webspeech' or 'azure'"));
11464
+ !((i = Ge.GlobalState.service) === null || i === void 0) && i.recognizing ? this.stop() : o === "webspeech" ? t.startWebSpeech(r) : o === "azure" ? t.startAzure(r) : (console.error("service not found - must be either 'webspeech' or 'azure'"), (a = r == null ? void 0 : r.onError) === null || a === void 0 || a.call(r, "service not found - must be either 'webspeech' or 'azure'"));
11465
11465
  }
11466
11466
  }, {
11467
11467
  key: "startWebSpeech",
11468
11468
  value: function(e) {
11469
- t.stop() || (Ve.GlobalState.service = new $l.WebSpeech(), Ve.GlobalState.service.start(e));
11469
+ t.stop() || (Ge.GlobalState.service = new Nl.WebSpeech(), Ge.GlobalState.service.start(e));
11470
11470
  }
11471
11471
  }, {
11472
11472
  key: "isWebSpeechSupported",
11473
11473
  value: function() {
11474
- return !!$l.WebSpeech.getAPI();
11474
+ return !!Nl.WebSpeech.getAPI();
11475
11475
  }
11476
11476
  }, {
11477
11477
  key: "startAzure",
11478
11478
  value: function(e) {
11479
11479
  var r;
11480
- t.stop() || !((r = Ve.GlobalState.service) === null || r === void 0) && r.cannotBeStopped || (Ve.GlobalState.service = new Gm.Azure(), Ve.GlobalState.service.start(e));
11480
+ t.stop() || !((r = Ge.GlobalState.service) === null || r === void 0) && r.cannotBeStopped || (Ge.GlobalState.service = new Gm.Azure(), Ge.GlobalState.service.start(e));
11481
11481
  }
11482
11482
  }, {
11483
11483
  key: "stop",
11484
11484
  value: function() {
11485
11485
  var e;
11486
- return Ve.GlobalState.doubleClickDetector() ? !0 : (!((e = Ve.GlobalState.service) === null || e === void 0) && e.recognizing && Ve.GlobalState.service.stop(), !1);
11486
+ return Ge.GlobalState.doubleClickDetector() ? !0 : (!((e = Ge.GlobalState.service) === null || e === void 0) && e.recognizing && Ge.GlobalState.service.stop(), !1);
11487
11487
  }
11488
11488
  }, {
11489
11489
  key: "endCommandMode",
11490
11490
  value: function() {
11491
- Ve.GlobalState.service && Vm.CommandUtils.toggleCommandModeOff(Ve.GlobalState.service);
11491
+ Ge.GlobalState.service && Vm.CommandUtils.toggleCommandModeOff(Ge.GlobalState.service);
11492
11492
  }
11493
11493
  }]);
11494
11494
  }(), li = kd.default = Km, Jm = /* @__PURE__ */ function() {
@@ -11501,7 +11501,7 @@ var $l = Gi, Vm = Lr, Ve = ea, Gm = ta, Km = /* @__PURE__ */ function() {
11501
11501
  var i = this;
11502
11502
  this._silenceTimeout = setTimeout(function() {
11503
11503
  var a;
11504
- (a = e.submit) == null || a.call(e), li.stop(), i.stop || setTimeout(r, ds.MICROPHONE_RESET_TIMEOUT_MS);
11504
+ (a = e.submit) == null || a.call(e), li.stop(), i.stop || setTimeout(r, us.MICROPHONE_RESET_TIMEOUT_MS);
11505
11505
  }, this.silenceMS);
11506
11506
  }
11507
11507
  }, {
@@ -11622,7 +11622,7 @@ var $l = Gi, Vm = Lr, Ve = ea, Gm = ta, Km = /* @__PURE__ */ function() {
11622
11622
  }]);
11623
11623
  }(Sd);
11624
11624
  xd.MICROPHONE_RESET_TIMEOUT_MS = 300;
11625
- var ds = xd, ps = /* @__PURE__ */ function() {
11625
+ var us = xd, ds = /* @__PURE__ */ function() {
11626
11626
  function t(n, e, r, i) {
11627
11627
  var a = this;
11628
11628
  S(this, t), this._attachments = [], this._fileCountLimit = 99, this._acceptedFormat = "", e.maxNumberOfFiles && (this._fileCountLimit = e.maxNumberOfFiles), this._toggleContainerDisplay = r, this._fileAttachmentsContainerRef = i, e.acceptedFormats && (this._acceptedFormat = e.acceptedFormats), setTimeout(function() {
@@ -11642,7 +11642,7 @@ var ds = xd, ps = /* @__PURE__ */ function() {
11642
11642
  var o = t.createImageAttachment(r);
11643
11643
  this.addFileAttachment(e, "image", o, i);
11644
11644
  } else if (a === "audio") {
11645
- var s = Fo.createAudioAttachment(r);
11645
+ var s = Mo.createAudioAttachment(r);
11646
11646
  this.addFileAttachment(e, "audio", s, i);
11647
11647
  } else {
11648
11648
  var l = t.createAnyFileAttachment(e.name);
@@ -11680,7 +11680,7 @@ var ds = xd, ps = /* @__PURE__ */ function() {
11680
11680
  var r, i = this._attachments.findIndex(function(o) {
11681
11681
  return o === e;
11682
11682
  }), a = this._attachments[i].attachmentContainerElement;
11683
- this._attachments.splice(i, 1), Fo.stopAttachmentPlayback(a), a.remove(), this._toggleContainerDisplay(!1), (r = this._validationHandler) == null || r.call(this);
11683
+ this._attachments.splice(i, 1), Mo.stopAttachmentPlayback(a), a.remove(), this._toggleContainerDisplay(!1), (r = this._validationHandler) == null || r.call(this);
11684
11684
  }
11685
11685
  }, {
11686
11686
  key: "getFiles",
@@ -11749,7 +11749,7 @@ var ds = xd, ps = /* @__PURE__ */ function() {
11749
11749
  <svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
11750
11750
  <title>play</title>
11751
11751
  <path d="M5.92 24.096q0 1.088 0.928 1.728 0.512 0.288 1.088 0.288 0.448 0 0.896-0.224l16.16-8.064q0.48-0.256 0.8-0.736t0.288-1.088-0.288-1.056-0.8-0.736l-16.16-8.064q-0.448-0.224-0.896-0.224-0.544 0-1.088 0.288-0.928 0.608-0.928 1.728v16.16z"></path>
11752
- </svg>`, Dl = `<?xml version="1.0" encoding="utf-8"?>
11752
+ </svg>`, $l = `<?xml version="1.0" encoding="utf-8"?>
11753
11753
  <svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg">
11754
11754
  <title>stop</title>
11755
11755
  <path d="M5.92 24.096q0 0.832 0.576 1.408t1.44 0.608h16.128q0.832 0 1.44-0.608t0.576-1.408v-16.16q0-0.832-0.576-1.44t-1.44-0.576h-16.128q-0.832 0-1.44 0.576t-0.576 1.44v16.16z"></path>
@@ -11775,7 +11775,7 @@ var ds = xd, ps = /* @__PURE__ */ function() {
11775
11775
  a.classList.add("audio-placeholder-text-3-digits");
11776
11776
  var o = document.createElement("div");
11777
11777
  o.classList.add("file-attachment-text-container", "audio-placeholder-text-3-digits-container"), o.appendChild(a);
11778
- var s = $e.createSVGElement(Dl);
11778
+ var s = $e.createSVGElement($l);
11779
11779
  return s.classList.add("attachment-icon", "stop-icon", "not-removable-attachment-icon"), a.textContent = "0:00", this._activePlaceholderTimer = this.createTimer(a, r), i.appendChild(o), this.addPlaceholderAudioAttachmentEvents(i, s, o), i;
11780
11780
  }
11781
11781
  }, {
@@ -11831,7 +11831,7 @@ var ds = xd, ps = /* @__PURE__ */ function() {
11831
11831
  o.src = i;
11832
11832
  var s = $e.createSVGElement(Zm);
11833
11833
  s.classList.add("attachment-icon", "play-icon");
11834
- var l = $e.createSVGElement(Dl);
11834
+ var l = $e.createSVGElement($l);
11835
11835
  l.classList.add("attachment-icon", "stop-icon"), a.replaceChildren(s), o.onplay = function() {
11836
11836
  a.replaceChildren(l);
11837
11837
  }, o.onpause = function() {
@@ -11855,9 +11855,9 @@ var ds = xd, ps = /* @__PURE__ */ function() {
11855
11855
  (o = (a = (i = r.children[0]) == null ? void 0 : i.children) == null ? void 0 : a[0]) != null && o.classList.contains("stop-icon") && r.children[0].click();
11856
11856
  }
11857
11857
  }]);
11858
- }(ps);
11858
+ }(ds);
11859
11859
  Ad.TIMER_LIMIT_S = 5999;
11860
- var Fo = Ad, Ym = /* @__PURE__ */ function() {
11860
+ var Mo = Ad, Ym = /* @__PURE__ */ function() {
11861
11861
  function t() {
11862
11862
  S(this, t);
11863
11863
  }
@@ -11866,11 +11866,11 @@ var Fo = Ad, Ym = /* @__PURE__ */ function() {
11866
11866
  value: (
11867
11867
  // prettier-ignore
11868
11868
  function(e, r, i, a, o) {
11869
- return o === "audio" ? new Fo(e, r, i, a) : new ps(e, r, i, a);
11869
+ return o === "audio" ? new Mo(e, r, i, a) : new ds(e, r, i, a);
11870
11870
  }
11871
11871
  )
11872
11872
  }]);
11873
- }(), fs = /* @__PURE__ */ function() {
11873
+ }(), ps = /* @__PURE__ */ function() {
11874
11874
  function t(n, e, r) {
11875
11875
  S(this, t), this._fileAttachmentsTypes = [], this.elementRef = this.createAttachmentContainer();
11876
11876
  var i = V(r) == "object" && !!r.displayFileAttachmentContainer;
@@ -12096,7 +12096,7 @@ var ir = Td, Xm = /* @__PURE__ */ function(t) {
12096
12096
  }, {
12097
12097
  key: "import",
12098
12098
  value: function(r) {
12099
- fs.addFilesToType(Array.from(r.files || []), [this._fileAttachmentsType]), r.value = "";
12099
+ ps.addFilesToType(Array.from(r.files || []), [this._fileAttachmentsType]), r.value = "";
12100
12100
  }
12101
12101
  }, {
12102
12102
  key: "addClickEvent",
@@ -12128,7 +12128,7 @@ var ir = Td, Xm = /* @__PURE__ */ function(t) {
12128
12128
  return a.id = r, a;
12129
12129
  }
12130
12130
  }]);
12131
- }(Or), Bl = /* @__PURE__ */ function() {
12131
+ }(Or), Dl = /* @__PURE__ */ function() {
12132
12132
  function t() {
12133
12133
  S(this, t);
12134
12134
  }
@@ -12249,7 +12249,7 @@ var ir = Td, Xm = /* @__PURE__ */ function(t) {
12249
12249
  }, {
12250
12250
  key: "attach",
12251
12251
  value: function(e, r, i, a, o) {
12252
- var s = e.validateInput || ze.processValidateInput(e);
12252
+ var s = e.validateInput || We.processValidateInput(e);
12253
12253
  e._validationHandler = /* @__PURE__ */ function() {
12254
12254
  var l = _(/* @__PURE__ */ m().mark(function c(u) {
12255
12255
  var d;
@@ -12378,7 +12378,7 @@ var ir = Td, Xm = /* @__PURE__ */ function(t) {
12378
12378
  }
12379
12379
  }
12380
12380
  }]);
12381
- }(), jl = /* @__PURE__ */ function() {
12381
+ }(), Bl = /* @__PURE__ */ function() {
12382
12382
  function t() {
12383
12383
  S(this, t);
12384
12384
  }
@@ -12412,7 +12412,7 @@ var ir = Td, Xm = /* @__PURE__ */ function(t) {
12412
12412
  function n(e, r, i, a, o, s) {
12413
12413
  var l;
12414
12414
  S(this, n);
12415
- var c = jl.process(e.submitButtonStyles);
12415
+ var c = Bl.process(e.submitButtonStyles);
12416
12416
  return l = K(this, n, [n.createButtonContainerElement(), c == null ? void 0 : c.position, c]), l._isSVGLoadingIconOverriden = !1, l.status = {
12417
12417
  requestInProgress: !1,
12418
12418
  loadingActive: !1
@@ -12526,12 +12526,12 @@ var ir = Td, Xm = /* @__PURE__ */ function(t) {
12526
12526
  return m().wrap(function(c) {
12527
12527
  for (; ; ) switch (c.prev = c.next) {
12528
12528
  case 0:
12529
- typeof a == "string" && (a = ze.processSubmitUserMessage(a)), s = {
12529
+ typeof a == "string" && (a = We.processSubmitUserMessage(a)), s = {
12530
12530
  text: a.text
12531
12531
  }, a.files && (s.files = Array.from(a.files).map(function(u) {
12532
12532
  return {
12533
12533
  file: u,
12534
- type: ps.getTypeFromBlob(u)
12534
+ type: ds.getTypeFromBlob(u)
12535
12535
  };
12536
12536
  })), setTimeout(function() {
12537
12537
  return o.attemptSubmit(s, !0);
@@ -12637,9 +12637,9 @@ var ir = Td, Xm = /* @__PURE__ */ function(t) {
12637
12637
  key: "changeToSubmitIcon",
12638
12638
  value: function() {
12639
12639
  var r = this;
12640
- this.elementRef.classList.contains(n.SUBMIT_CLASS) || (this.elementRef.classList.remove(n.LOADING_CLASS, n.DISABLED_CLASS), this.elementRef.classList.add(n.SUBMIT_CLASS), this.elementRef.replaceChildren(this._innerElements.submit), jl.resetSubmit(this, this.status.loadingActive), this.elementRef.onclick = function() {
12640
+ this.elementRef.classList.contains(n.SUBMIT_CLASS) || (this.elementRef.classList.remove(n.LOADING_CLASS, n.DISABLED_CLASS), this.elementRef.classList.add(n.SUBMIT_CLASS), this.elementRef.replaceChildren(this._innerElements.submit), Bl.resetSubmit(this, this.status.loadingActive), this.elementRef.onclick = function() {
12641
12641
  var i;
12642
- r.submitFromInput(), (i = r._microphoneButton) != null && i.isActive && ds.toggleSpeechAfterSubmit(r._microphoneButton.elementRef, !!r._stopSTTAfterSubmit);
12642
+ r.submitFromInput(), (i = r._microphoneButton) != null && i.isActive && us.toggleSpeechAfterSubmit(r._microphoneButton.elementRef, !!r._stopSTTAfterSubmit);
12643
12643
  });
12644
12644
  }
12645
12645
  // called every time when user triggers an input via ValidationHandler - hence use class to check if not already present
@@ -12727,7 +12727,7 @@ var ng = ci, rg = `<?xml version="1.0" encoding="utf-8"?>
12727
12727
  s.capture();
12728
12728
  }, i.addEventListener("click", this.stop.bind(this)), a.onclick = function() {
12729
12729
  var l = s.getFile();
12730
- l && fs.addFilesToType([l], [o]), s.stop(), s.close();
12730
+ l && ps.addFilesToType([l], [o]), s.stop(), s.close();
12731
12731
  };
12732
12732
  }
12733
12733
  }, {
@@ -12846,7 +12846,7 @@ var ng = ci, rg = `<?xml version="1.0" encoding="utf-8"?>
12846
12846
  S(this, t), this.elementRef = t.createPanelElement(n.inputAreaStyle);
12847
12847
  var a = {}, o = this.createFileUploadComponents(n, r, i, a), s = new gr(n, r, o);
12848
12848
  n.speechToText && !a.microphone && (a.microphone = {
12849
- button: new ds(n, s, e.addNewErrorMessage.bind(e))
12849
+ button: new us(n, s, e.addNewErrorMessage.bind(e))
12850
12850
  });
12851
12851
  var l = new ng(n, s.inputElementRef, e, r, o, a);
12852
12852
  s.submit = l.submitFromInput.bind(l), Qm.attach(n, r, s, o, l), n.submitUserMessage = l.programmaticSubmit.bind(l), a.submit = {
@@ -12858,7 +12858,7 @@ var ng = ci, rg = `<?xml version="1.0" encoding="utf-8"?>
12858
12858
  value: (
12859
12859
  // prettier-ignore
12860
12860
  function(e, r, i, a) {
12861
- var o, s, l, c, u = new fs(this.elementRef, e.attachmentContainerStyle, r.demo);
12861
+ var o, s, l, c, u = new ps(this.elementRef, e.attachmentContainerStyle, r.demo);
12862
12862
  if (t.createUploadButtons(e, r.fileTypes || {}, u, i, a), (o = r.camera) != null && o.files) {
12863
12863
  var d = ((s = a.images) == null ? void 0 : s.fileType) || u.addType(e, r.camera.files, "images");
12864
12864
  a.camera = {
@@ -12871,7 +12871,7 @@ var ng = ci, rg = `<?xml version="1.0" encoding="utf-8"?>
12871
12871
  button: new eg(p, r.recordAudio)
12872
12872
  };
12873
12873
  }
12874
- return Bl.isEnabled(u, e.dragAndDrop) && Bl.create(i, u, e.dragAndDrop), u;
12874
+ return Dl.isEnabled(u, e.dragAndDrop) && Dl.create(i, u, e.dragAndDrop), u;
12875
12875
  }
12876
12876
  )
12877
12877
  // prettier-ignore
@@ -12966,12 +12966,12 @@ var ng = ci, rg = `<?xml version="1.0" encoding="utf-8"?>
12966
12966
  key: "onRender",
12967
12967
  value: function() {
12968
12968
  var r;
12969
- Vu.attemptAppendStyleSheetToHead(this.style), ze.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = rm.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Ca.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Ca.applyDefaultStyleToComponent(this.style, this.chatStyle), ze.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? kf.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof Ie) || this._activeService.key ? ((r = this._childElement) !== null && r !== void 0 || (this._childElement = this.children[0]), dg.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof Ie && T0.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, Ei.onRender(this);
12969
+ Vu.attemptAppendStyleSheetToHead(this.style), We.processConnect(this), (!this._activeService || this._activeService.demo) && (this._activeService = rm.create(this)), this.auxiliaryStyle && !this._auxiliaryStyleApplied && (Ca.apply(this.auxiliaryStyle, this.shadowRoot), this._auxiliaryStyleApplied = !0), Ca.applyDefaultStyleToComponent(this.style, this.chatStyle), We.checkForContainerStyles(this, this._elementRef), this._activeService.key && this._activeService.validateKeyProperty ? kf.render(this._elementRef, this.changeToChatView.bind(this), this._activeService) : !(this._activeService instanceof Ie) || this._activeService.key ? ((r = this._childElement) !== null && r !== void 0 || (this._childElement = this.children[0]), dg.render(this, this._elementRef, this._activeService, this._childElement)) : this._activeService instanceof Ie && T0.render(this._elementRef, this.changeToChatView.bind(this), this._activeService), this._hasBeenRendered = !0, Ei.onRender(this);
12970
12970
  }
12971
12971
  }, {
12972
12972
  key: "disconnectedCallback",
12973
12973
  value: function() {
12974
- ls.chat = void 0;
12974
+ ss.chat = void 0;
12975
12975
  }
12976
12976
  }]);
12977
12977
  }(E0);
@@ -13019,18 +13019,18 @@ customElements.define("deep-chat", Q);
13019
13019
  * Copyright 2019 Google LLC
13020
13020
  * SPDX-License-Identifier: BSD-3-Clause
13021
13021
  */
13022
- const ui = globalThis, hs = ui.ShadowRoot && (ui.ShadyCSS === void 0 || ui.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ms = Symbol(), Hl = /* @__PURE__ */ new WeakMap();
13022
+ const ui = globalThis, fs = ui.ShadowRoot && (ui.ShadyCSS === void 0 || ui.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, hs = Symbol(), jl = /* @__PURE__ */ new WeakMap();
13023
13023
  let Rd = class {
13024
13024
  constructor(n, e, r) {
13025
- if (this._$cssResult$ = !0, r !== ms) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
13025
+ if (this._$cssResult$ = !0, r !== hs) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
13026
13026
  this.cssText = n, this.t = e;
13027
13027
  }
13028
13028
  get styleSheet() {
13029
13029
  let n = this.o;
13030
13030
  const e = this.t;
13031
- if (hs && n === void 0) {
13031
+ if (fs && n === void 0) {
13032
13032
  const r = e !== void 0 && e.length === 1;
13033
- r && (n = Hl.get(e)), n === void 0 && ((this.o = n = new CSSStyleSheet()).replaceSync(this.cssText), r && Hl.set(e, n));
13033
+ r && (n = jl.get(e)), n === void 0 && ((this.o = n = new CSSStyleSheet()).replaceSync(this.cssText), r && jl.set(e, n));
13034
13034
  }
13035
13035
  return n;
13036
13036
  }
@@ -13038,20 +13038,20 @@ let Rd = class {
13038
13038
  return this.cssText;
13039
13039
  }
13040
13040
  };
13041
- const A = (t) => new Rd(typeof t == "string" ? t : t + "", void 0, ms), Ot = (t, ...n) => {
13041
+ const A = (t) => new Rd(typeof t == "string" ? t : t + "", void 0, hs), Ot = (t, ...n) => {
13042
13042
  const e = t.length === 1 ? t[0] : n.reduce((r, i, a) => r + ((o) => {
13043
13043
  if (o._$cssResult$ === !0) return o.cssText;
13044
13044
  if (typeof o == "number") return o;
13045
13045
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
13046
13046
  })(i) + t[a + 1], t[0]);
13047
- return new Rd(e, t, ms);
13047
+ return new Rd(e, t, hs);
13048
13048
  }, hg = (t, n) => {
13049
- if (hs) t.adoptedStyleSheets = n.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
13049
+ if (fs) t.adoptedStyleSheets = n.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
13050
13050
  else for (const e of n) {
13051
13051
  const r = document.createElement("style"), i = ui.litNonce;
13052
13052
  i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, t.appendChild(r);
13053
13053
  }
13054
- }, Ul = hs ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((n) => {
13054
+ }, Hl = fs ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((n) => {
13055
13055
  let e = "";
13056
13056
  for (const r of n.cssRules) e += r.cssText;
13057
13057
  return A(e);
@@ -13061,7 +13061,7 @@ const A = (t) => new Rd(typeof t == "string" ? t : t + "", void 0, ms), Ot = (t,
13061
13061
  * Copyright 2017 Google LLC
13062
13062
  * SPDX-License-Identifier: BSD-3-Clause
13063
13063
  */
13064
- const { is: mg, defineProperty: gg, getOwnPropertyDescriptor: vg, getOwnPropertyNames: yg, getOwnPropertySymbols: bg, getPrototypeOf: wg } = Object, _t = globalThis, zl = _t.trustedTypes, Sg = zl ? zl.emptyScript : "", Na = _t.reactiveElementPolyfillSupport, ar = (t, n) => t, Ai = { toAttribute(t, n) {
13064
+ const { is: mg, defineProperty: gg, getOwnPropertyDescriptor: vg, getOwnPropertyNames: yg, getOwnPropertySymbols: bg, getPrototypeOf: wg } = Object, _t = globalThis, Ul = _t.trustedTypes, Sg = Ul ? Ul.emptyScript : "", Na = _t.reactiveElementPolyfillSupport, ar = (t, n) => t, Ai = { toAttribute(t, n) {
13065
13065
  switch (n) {
13066
13066
  case Boolean:
13067
13067
  t = t ? Sg : null;
@@ -13089,7 +13089,7 @@ const { is: mg, defineProperty: gg, getOwnPropertyDescriptor: vg, getOwnProperty
13089
13089
  }
13090
13090
  }
13091
13091
  return e;
13092
- } }, sa = (t, n) => !mg(t, n), Wl = { attribute: !0, type: String, converter: Ai, reflect: !1, hasChanged: sa };
13092
+ } }, sa = (t, n) => !mg(t, n), zl = { attribute: !0, type: String, converter: Ai, reflect: !1, hasChanged: sa };
13093
13093
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _t.litPropertyMetadata ?? (_t.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
13094
13094
  let wn = class extends HTMLElement {
13095
13095
  static addInitializer(n) {
@@ -13098,7 +13098,7 @@ let wn = class extends HTMLElement {
13098
13098
  static get observedAttributes() {
13099
13099
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
13100
13100
  }
13101
- static createProperty(n, e = Wl) {
13101
+ static createProperty(n, e = zl) {
13102
13102
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(n, e), !e.noAccessor) {
13103
13103
  const r = Symbol(), i = this.getPropertyDescriptor(n, r, e);
13104
13104
  i !== void 0 && gg(this.prototype, n, i);
@@ -13118,7 +13118,7 @@ let wn = class extends HTMLElement {
13118
13118
  }, configurable: !0, enumerable: !0 };
13119
13119
  }
13120
13120
  static getPropertyOptions(n) {
13121
- return this.elementProperties.get(n) ?? Wl;
13121
+ return this.elementProperties.get(n) ?? zl;
13122
13122
  }
13123
13123
  static _$Ei() {
13124
13124
  if (this.hasOwnProperty(ar("elementProperties"))) return;
@@ -13147,8 +13147,8 @@ let wn = class extends HTMLElement {
13147
13147
  const e = [];
13148
13148
  if (Array.isArray(n)) {
13149
13149
  const r = new Set(n.flat(1 / 0).reverse());
13150
- for (const i of r) e.unshift(Ul(i));
13151
- } else n !== void 0 && e.push(Ul(n));
13150
+ for (const i of r) e.unshift(Hl(i));
13151
+ } else n !== void 0 && e.push(Hl(n));
13152
13152
  return e;
13153
13153
  }
13154
13154
  static _$Eu(n, e) {
@@ -13295,12 +13295,12 @@ wn.elementStyles = [], wn.shadowRootOptions = { mode: "open" }, wn[ar("elementPr
13295
13295
  * Copyright 2017 Google LLC
13296
13296
  * SPDX-License-Identifier: BSD-3-Clause
13297
13297
  */
13298
- const or = globalThis, Ti = or.trustedTypes, ql = Ti ? Ti.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Id = "$lit$", bt = `lit$${Math.random().toFixed(9).slice(2)}$`, Ld = "?" + bt, kg = `<${Ld}>`, Jt = document, wr = () => Jt.createComment(""), Sr = (t) => t === null || typeof t != "object" && typeof t != "function", Pd = Array.isArray, _g = (t) => Pd(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", $a = `[
13299
- \f\r]`, Un = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vl = /-->/g, Gl = />/g, Dt = RegExp(`>|${$a}(?:([^\\s"'>=/]+)(${$a}*=${$a}*(?:[^
13300
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Kl = /'/g, Jl = /"/g, Md = /^(?:script|style|textarea|title)$/i, Eg = (t) => (n, ...e) => ({ _$litType$: t, strings: n, values: e }), Ke = Eg(1), Zt = Symbol.for("lit-noChange"), fe = Symbol.for("lit-nothing"), Zl = /* @__PURE__ */ new WeakMap(), Ut = Jt.createTreeWalker(Jt, 129);
13298
+ const or = globalThis, Ti = or.trustedTypes, Wl = Ti ? Ti.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Id = "$lit$", bt = `lit$${Math.random().toFixed(9).slice(2)}$`, Ld = "?" + bt, kg = `<${Ld}>`, Jt = document, wr = () => Jt.createComment(""), Sr = (t) => t === null || typeof t != "object" && typeof t != "function", Pd = Array.isArray, _g = (t) => Pd(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", $a = `[
13299
+ \f\r]`, Un = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ql = /-->/g, Vl = />/g, Dt = RegExp(`>|${$a}(?:([^\\s"'>=/]+)(${$a}*=${$a}*(?:[^
13300
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Gl = /'/g, Kl = /"/g, Md = /^(?:script|style|textarea|title)$/i, Eg = (t) => (n, ...e) => ({ _$litType$: t, strings: n, values: e }), je = Eg(1), Zt = Symbol.for("lit-noChange"), fe = Symbol.for("lit-nothing"), Jl = /* @__PURE__ */ new WeakMap(), Ut = Jt.createTreeWalker(Jt, 129);
13301
13301
  function Fd(t, n) {
13302
13302
  if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
13303
- return ql !== void 0 ? ql.createHTML(n) : n;
13303
+ return Wl !== void 0 ? Wl.createHTML(n) : n;
13304
13304
  }
13305
13305
  const Cg = (t, n) => {
13306
13306
  const e = t.length - 1, r = [];
@@ -13308,7 +13308,7 @@ const Cg = (t, n) => {
13308
13308
  for (let s = 0; s < e; s++) {
13309
13309
  const l = t[s];
13310
13310
  let c, u, d = -1, p = 0;
13311
- for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o === Un ? u[1] === "!--" ? o = Vl : u[1] !== void 0 ? o = Gl : u[2] !== void 0 ? (Md.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = Dt) : u[3] !== void 0 && (o = Dt) : o === Dt ? u[0] === ">" ? (o = i ?? Un, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Dt : u[3] === '"' ? Jl : Kl) : o === Jl || o === Kl ? o = Dt : o === Vl || o === Gl ? o = Un : (o = Dt, i = void 0);
13311
+ for (; p < l.length && (o.lastIndex = p, u = o.exec(l), u !== null); ) p = o.lastIndex, o === Un ? u[1] === "!--" ? o = ql : u[1] !== void 0 ? o = Vl : u[2] !== void 0 ? (Md.test(u[2]) && (i = RegExp("</" + u[2], "g")), o = Dt) : u[3] !== void 0 && (o = Dt) : o === Dt ? u[0] === ">" ? (o = i ?? Un, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? Dt : u[3] === '"' ? Kl : Gl) : o === Kl || o === Gl ? o = Dt : o === ql || o === Vl ? o = Un : (o = Dt, i = void 0);
13312
13312
  const f = o === Dt && t[s + 1].startsWith("/>") ? " " : "";
13313
13313
  a += o === Un ? l + kg : d >= 0 ? (r.push(c), l.slice(0, d) + Id + l.slice(d) + bt + f) : l + bt + (d === -2 ? s : f);
13314
13314
  }
@@ -13427,8 +13427,8 @@ class Mr {
13427
13427
  }
13428
13428
  }
13429
13429
  _$AC(n) {
13430
- let e = Zl.get(n.strings);
13431
- return e === void 0 && Zl.set(n.strings, e = new kr(n)), e;
13430
+ let e = Jl.get(n.strings);
13431
+ return e === void 0 && Jl.set(n.strings, e = new kr(n)), e;
13432
13432
  }
13433
13433
  k(n) {
13434
13434
  Pd(this._$AH) || (this._$AH = [], this._$AR());
@@ -13626,9 +13626,9 @@ var Bg = Object.prototype, jg = Bg.toString;
13626
13626
  function Hg(t) {
13627
13627
  return jg.call(t);
13628
13628
  }
13629
- var Ug = "[object Null]", zg = "[object Undefined]", Yl = xt ? xt.toStringTag : void 0;
13629
+ var Ug = "[object Null]", zg = "[object Undefined]", Zl = xt ? xt.toStringTag : void 0;
13630
13630
  function Fn(t) {
13631
- return t == null ? t === void 0 ? zg : Ug : Yl && Yl in Object(t) ? Dg(t) : Hg(t);
13631
+ return t == null ? t === void 0 ? zg : Ug : Zl && Zl in Object(t) ? Dg(t) : Hg(t);
13632
13632
  }
13633
13633
  function It(t) {
13634
13634
  return t != null && typeof t == "object";
@@ -13642,14 +13642,14 @@ function qg(t, n) {
13642
13642
  i[e] = n(t[e], e, t);
13643
13643
  return i;
13644
13644
  }
13645
- var ot = Array.isArray, Vg = 1 / 0, Xl = xt ? xt.prototype : void 0, Ql = Xl ? Xl.toString : void 0;
13645
+ var ot = Array.isArray, Vg = 1 / 0, Yl = xt ? xt.prototype : void 0, Xl = Yl ? Yl.toString : void 0;
13646
13646
  function Dd(t) {
13647
13647
  if (typeof t == "string")
13648
13648
  return t;
13649
13649
  if (ot(t))
13650
13650
  return qg(t, Dd) + "";
13651
13651
  if (ca(t))
13652
- return Ql ? Ql.call(t) : "";
13652
+ return Xl ? Xl.call(t) : "";
13653
13653
  var n = t + "";
13654
13654
  return n == "0" && 1 / t == -Vg ? "-0" : n;
13655
13655
  }
@@ -13663,56 +13663,56 @@ var Jg = /^\s+/;
13663
13663
  function Zg(t) {
13664
13664
  return t && t.slice(0, Kg(t) + 1).replace(Jg, "");
13665
13665
  }
13666
- function We(t) {
13666
+ function qe(t) {
13667
13667
  var n = typeof t;
13668
13668
  return t != null && (n == "object" || n == "function");
13669
13669
  }
13670
- var ec = NaN, Yg = /^[-+]0x[0-9a-f]+$/i, Xg = /^0b[01]+$/i, Qg = /^0o[0-7]+$/i, ev = parseInt;
13670
+ var Ql = NaN, Yg = /^[-+]0x[0-9a-f]+$/i, Xg = /^0b[01]+$/i, Qg = /^0o[0-7]+$/i, ev = parseInt;
13671
13671
  function tv(t) {
13672
13672
  if (typeof t == "number")
13673
13673
  return t;
13674
13674
  if (ca(t))
13675
- return ec;
13676
- if (We(t)) {
13675
+ return Ql;
13676
+ if (qe(t)) {
13677
13677
  var n = typeof t.valueOf == "function" ? t.valueOf() : t;
13678
- t = We(n) ? n + "" : n;
13678
+ t = qe(n) ? n + "" : n;
13679
13679
  }
13680
13680
  if (typeof t != "string")
13681
13681
  return t === 0 ? t : +t;
13682
13682
  t = Zg(t);
13683
13683
  var e = Xg.test(t);
13684
- return e || Qg.test(t) ? ev(t.slice(2), e ? 2 : 8) : Yg.test(t) ? ec : +t;
13684
+ return e || Qg.test(t) ? ev(t.slice(2), e ? 2 : 8) : Yg.test(t) ? Ql : +t;
13685
13685
  }
13686
- var tc = 1 / 0, nv = 17976931348623157e292;
13686
+ var ec = 1 / 0, nv = 17976931348623157e292;
13687
13687
  function rv(t) {
13688
13688
  if (!t)
13689
13689
  return t === 0 ? t : 0;
13690
- if (t = tv(t), t === tc || t === -tc) {
13690
+ if (t = tv(t), t === ec || t === -ec) {
13691
13691
  var n = t < 0 ? -1 : 1;
13692
13692
  return n * nv;
13693
13693
  }
13694
13694
  return t === t ? t : 0;
13695
13695
  }
13696
- function nc(t) {
13696
+ function tc(t) {
13697
13697
  var n = rv(t), e = n % 1;
13698
13698
  return n === n ? e ? n - e : n : 0;
13699
13699
  }
13700
- function gs(t) {
13700
+ function ms(t) {
13701
13701
  return t;
13702
13702
  }
13703
13703
  var iv = "[object AsyncFunction]", av = "[object Function]", ov = "[object GeneratorFunction]", sv = "[object Proxy]";
13704
- function vs(t) {
13705
- if (!We(t))
13704
+ function gs(t) {
13705
+ if (!qe(t))
13706
13706
  return !1;
13707
13707
  var n = Fn(t);
13708
13708
  return n == av || n == ov || n == iv || n == sv;
13709
13709
  }
13710
- var ja = Je["__core-js_shared__"], rc = function() {
13710
+ var ja = Je["__core-js_shared__"], nc = function() {
13711
13711
  var t = /[^.]+$/.exec(ja && ja.keys && ja.keys.IE_PROTO || "");
13712
13712
  return t ? "Symbol(src)_1." + t : "";
13713
13713
  }();
13714
13714
  function lv(t) {
13715
- return !!rc && rc in t;
13715
+ return !!nc && nc in t;
13716
13716
  }
13717
13717
  var cv = Function.prototype, uv = cv.toString;
13718
13718
  function dv(t) {
@@ -13732,9 +13732,9 @@ var pv = /[\\^$.*+?()[\]{}|]/g, fv = /^\[object .+?Constructor\]$/, hv = Functio
13732
13732
  "^" + gv.call(vv).replace(pv, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13733
13733
  );
13734
13734
  function bv(t) {
13735
- if (!We(t) || lv(t))
13735
+ if (!qe(t) || lv(t))
13736
13736
  return !1;
13737
- var n = vs(t) ? yv : fv;
13737
+ var n = gs(t) ? yv : fv;
13738
13738
  return n.test(dv(t));
13739
13739
  }
13740
13740
  function wv(t, n) {
@@ -13744,16 +13744,16 @@ function ua(t, n) {
13744
13744
  var e = wv(t, n);
13745
13745
  return bv(e) ? e : void 0;
13746
13746
  }
13747
- var ic = ua(Je, "WeakMap"), Oi = ic && new ic(), Bd = Oi ? function(t, n) {
13747
+ var rc = ua(Je, "WeakMap"), Oi = rc && new rc(), Bd = Oi ? function(t, n) {
13748
13748
  return Oi.set(t, n), t;
13749
- } : gs, ac = Object.create, da = /* @__PURE__ */ function() {
13749
+ } : ms, ic = Object.create, da = /* @__PURE__ */ function() {
13750
13750
  function t() {
13751
13751
  }
13752
13752
  return function(n) {
13753
- if (!We(n))
13753
+ if (!qe(n))
13754
13754
  return {};
13755
- if (ac)
13756
- return ac(n);
13755
+ if (ic)
13756
+ return ic(n);
13757
13757
  t.prototype = n;
13758
13758
  var e = new t();
13759
13759
  return t.prototype = void 0, e;
@@ -13781,7 +13781,7 @@ function _r(t) {
13781
13781
  return new t(n[0], n[1], n[2], n[3], n[4], n[5], n[6]);
13782
13782
  }
13783
13783
  var e = da(t.prototype), r = t.apply(e, n);
13784
- return We(r) ? r : e;
13784
+ return qe(r) ? r : e;
13785
13785
  };
13786
13786
  }
13787
13787
  var Sv = 1;
@@ -13793,7 +13793,7 @@ function kv(t, n, e) {
13793
13793
  }
13794
13794
  return a;
13795
13795
  }
13796
- function ys(t, n, e) {
13796
+ function vs(t, n, e) {
13797
13797
  switch (e.length) {
13798
13798
  case 0:
13799
13799
  return t.call(n);
@@ -13831,21 +13831,21 @@ function Cv(t, n) {
13831
13831
  t[e] === n && ++r;
13832
13832
  return r;
13833
13833
  }
13834
- function bs() {
13834
+ function ys() {
13835
13835
  }
13836
13836
  var xv = 4294967295;
13837
13837
  function An(t) {
13838
13838
  this.__wrapped__ = t, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = xv, this.__views__ = [];
13839
13839
  }
13840
- An.prototype = da(bs.prototype);
13840
+ An.prototype = da(ys.prototype);
13841
13841
  An.prototype.constructor = An;
13842
13842
  function Av() {
13843
13843
  }
13844
13844
  var Ud = Oi ? function(t) {
13845
13845
  return Oi.get(t);
13846
- } : Av, oc = {}, Tv = Object.prototype, Ov = Tv.hasOwnProperty;
13846
+ } : Av, ac = {}, Tv = Object.prototype, Ov = Tv.hasOwnProperty;
13847
13847
  function Rv(t) {
13848
- for (var n = t.name + "", e = oc[n], r = Ov.call(oc, n) ? e.length : 0; r--; ) {
13848
+ for (var n = t.name + "", e = ac[n], r = Ov.call(ac, n) ? e.length : 0; r--; ) {
13849
13849
  var i = e[r], a = i.func;
13850
13850
  if (a == null || a == t)
13851
13851
  return i.name;
@@ -13855,9 +13855,9 @@ function Rv(t) {
13855
13855
  function Tn(t, n) {
13856
13856
  this.__wrapped__ = t, this.__actions__ = [], this.__chain__ = !!n, this.__index__ = 0, this.__values__ = void 0;
13857
13857
  }
13858
- Tn.prototype = da(bs.prototype);
13858
+ Tn.prototype = da(ys.prototype);
13859
13859
  Tn.prototype.constructor = Tn;
13860
- function ws(t, n) {
13860
+ function bs(t, n) {
13861
13861
  var e = -1, r = t.length;
13862
13862
  for (n || (n = Array(r)); ++e < r; )
13863
13863
  n[e] = t[e];
@@ -13867,7 +13867,7 @@ function Iv(t) {
13867
13867
  if (t instanceof An)
13868
13868
  return t.clone();
13869
13869
  var n = new Tn(t.__wrapped__, t.__chain__);
13870
- return n.__actions__ = ws(t.__actions__), n.__index__ = t.__index__, n.__values__ = t.__values__, n;
13870
+ return n.__actions__ = bs(t.__actions__), n.__index__ = t.__index__, n.__values__ = t.__values__, n;
13871
13871
  }
13872
13872
  var Lv = Object.prototype, Pv = Lv.hasOwnProperty;
13873
13873
  function Ri(t) {
@@ -13879,7 +13879,7 @@ function Ri(t) {
13879
13879
  }
13880
13880
  return new Tn(t);
13881
13881
  }
13882
- Ri.prototype = bs.prototype;
13882
+ Ri.prototype = ys.prototype;
13883
13883
  Ri.prototype.constructor = Ri;
13884
13884
  function Mv(t) {
13885
13885
  var n = Rv(t), e = Ri[n];
@@ -13936,7 +13936,7 @@ var Ii = function() {
13936
13936
  value: zv(n),
13937
13937
  writable: !0
13938
13938
  });
13939
- } : gs, Ss = zd(Wv);
13939
+ } : ms, ws = zd(Wv);
13940
13940
  function qv(t, n) {
13941
13941
  for (var e = -1, r = t == null ? 0 : t.length; ++e < r && n(t[e], e, t) !== !1; )
13942
13942
  ;
@@ -13983,12 +13983,12 @@ function s1(t, n) {
13983
13983
  }
13984
13984
  function qd(t, n, e) {
13985
13985
  var r = n + "";
13986
- return Ss(t, Uv(r, s1(jv(r), e)));
13986
+ return ws(t, Uv(r, s1(jv(r), e)));
13987
13987
  }
13988
- var l1 = 1, c1 = 2, u1 = 4, d1 = 8, sc = 32, lc = 64;
13988
+ var l1 = 1, c1 = 2, u1 = 4, d1 = 8, oc = 32, sc = 64;
13989
13989
  function Vd(t, n, e, r, i, a, o, s, l, c) {
13990
13990
  var u = n & d1, d = u ? o : void 0, p = u ? void 0 : o, f = u ? a : void 0, h = u ? void 0 : a;
13991
- n |= u ? sc : lc, n &= ~(u ? lc : sc), n & u1 || (n &= ~(l1 | c1));
13991
+ n |= u ? oc : sc, n &= ~(u ? sc : oc), n & u1 || (n &= ~(l1 | c1));
13992
13992
  var g = [
13993
13993
  t,
13994
13994
  n,
@@ -14014,22 +14014,22 @@ function Fr(t, n) {
14014
14014
  }
14015
14015
  var h1 = Math.min;
14016
14016
  function m1(t, n) {
14017
- for (var e = t.length, r = h1(n.length, e), i = ws(t); r--; ) {
14017
+ for (var e = t.length, r = h1(n.length, e), i = bs(t); r--; ) {
14018
14018
  var a = n[r];
14019
14019
  t[r] = Fr(a, e) ? i[a] : void 0;
14020
14020
  }
14021
14021
  return t;
14022
14022
  }
14023
- var cc = "__lodash_placeholder__";
14023
+ var lc = "__lodash_placeholder__";
14024
14024
  function Li(t, n) {
14025
14025
  for (var e = -1, r = t.length, i = 0, a = []; ++e < r; ) {
14026
14026
  var o = t[e];
14027
- (o === n || o === cc) && (t[e] = cc, a[i++] = e);
14027
+ (o === n || o === lc) && (t[e] = lc, a[i++] = e);
14028
14028
  }
14029
14029
  return a;
14030
14030
  }
14031
14031
  var g1 = 1, v1 = 2, y1 = 8, b1 = 16, w1 = 128, S1 = 512;
14032
- function ks(t, n, e, r, i, a, o, s, l, c) {
14032
+ function Ss(t, n, e, r, i, a, o, s, l, c) {
14033
14033
  var u = n & w1, d = n & g1, p = n & v1, f = n & (y1 | b1), h = n & S1, g = p ? void 0 : _r(t);
14034
14034
  function v() {
14035
14035
  for (var y = arguments.length, b = Array(y), w = y; w--; )
@@ -14041,7 +14041,7 @@ function ks(t, n, e, r, i, a, o, s, l, c) {
14041
14041
  return Vd(
14042
14042
  t,
14043
14043
  n,
14044
- ks,
14044
+ Ss,
14045
14045
  v.placeholder,
14046
14046
  e,
14047
14047
  b,
@@ -14066,7 +14066,7 @@ function k1(t, n, e) {
14066
14066
  return Vd(
14067
14067
  t,
14068
14068
  n,
14069
- ks,
14069
+ Ss,
14070
14070
  i.placeholder,
14071
14071
  void 0,
14072
14072
  o,
@@ -14076,7 +14076,7 @@ function k1(t, n, e) {
14076
14076
  e - a
14077
14077
  );
14078
14078
  var u = this && this !== Je && this instanceof i ? r : t;
14079
- return ys(u, this, o);
14079
+ return vs(u, this, o);
14080
14080
  }
14081
14081
  return i;
14082
14082
  }
@@ -14088,30 +14088,30 @@ function E1(t, n, e, r) {
14088
14088
  d[c] = r[c];
14089
14089
  for (; l--; )
14090
14090
  d[c++] = arguments[++s];
14091
- return ys(p, i ? e : this, d);
14091
+ return vs(p, i ? e : this, d);
14092
14092
  }
14093
14093
  return o;
14094
14094
  }
14095
- var uc = "__lodash_placeholder__", Ha = 1, C1 = 2, x1 = 4, dc = 8, Wn = 128, pc = 256, A1 = Math.min;
14095
+ var cc = "__lodash_placeholder__", Ha = 1, C1 = 2, x1 = 4, uc = 8, Wn = 128, dc = 256, A1 = Math.min;
14096
14096
  function T1(t, n) {
14097
- var e = t[1], r = n[1], i = e | r, a = i < (Ha | C1 | Wn), o = r == Wn && e == dc || r == Wn && e == pc && t[7].length <= n[8] || r == (Wn | pc) && n[7].length <= n[8] && e == dc;
14097
+ var e = t[1], r = n[1], i = e | r, a = i < (Ha | C1 | Wn), o = r == Wn && e == uc || r == Wn && e == dc && t[7].length <= n[8] || r == (Wn | dc) && n[7].length <= n[8] && e == uc;
14098
14098
  if (!(a || o))
14099
14099
  return t;
14100
14100
  r & Ha && (t[2] = n[2], i |= e & Ha ? 0 : x1);
14101
14101
  var s = n[3];
14102
14102
  if (s) {
14103
14103
  var l = t[3];
14104
- t[3] = l ? jd(l, s, n[4]) : s, t[4] = l ? Li(t[3], uc) : n[4];
14104
+ t[3] = l ? jd(l, s, n[4]) : s, t[4] = l ? Li(t[3], cc) : n[4];
14105
14105
  }
14106
- return s = n[5], s && (l = t[5], t[5] = l ? Hd(l, s, n[6]) : s, t[6] = l ? Li(t[5], uc) : n[6]), s = n[7], s && (t[7] = s), r & Wn && (t[8] = t[8] == null ? n[8] : A1(t[8], n[8])), t[9] == null && (t[9] = n[9]), t[0] = n[0], t[1] = i, t;
14106
+ return s = n[5], s && (l = t[5], t[5] = l ? Hd(l, s, n[6]) : s, t[6] = l ? Li(t[5], cc) : n[6]), s = n[7], s && (t[7] = s), r & Wn && (t[8] = t[8] == null ? n[8] : A1(t[8], n[8])), t[9] == null && (t[9] = n[9]), t[0] = n[0], t[1] = i, t;
14107
14107
  }
14108
- var O1 = "Expected a function", fc = 1, R1 = 2, Ua = 8, za = 16, Wa = 32, hc = 64, mc = Math.max;
14108
+ var O1 = "Expected a function", pc = 1, R1 = 2, Ua = 8, za = 16, Wa = 32, fc = 64, hc = Math.max;
14109
14109
  function I1(t, n, e, r, i, a, o, s) {
14110
14110
  var l = n & R1;
14111
14111
  if (!l && typeof t != "function")
14112
14112
  throw new TypeError(O1);
14113
14113
  var c = r ? r.length : 0;
14114
- if (c || (n &= ~(Wa | hc), r = i = void 0), o = o === void 0 ? o : mc(nc(o), 0), s = s === void 0 ? s : nc(s), c -= i ? i.length : 0, n & hc) {
14114
+ if (c || (n &= ~(Wa | fc), r = i = void 0), o = o === void 0 ? o : hc(tc(o), 0), s = s === void 0 ? s : tc(s), c -= i ? i.length : 0, n & fc) {
14115
14115
  var u = r, d = i;
14116
14116
  r = i = void 0;
14117
14117
  }
@@ -14127,13 +14127,13 @@ function I1(t, n, e, r, i, a, o, s) {
14127
14127
  o,
14128
14128
  s
14129
14129
  ];
14130
- if (p && T1(f, p), t = f[0], n = f[1], e = f[2], r = f[3], i = f[4], s = f[9] = f[9] === void 0 ? l ? 0 : t.length : mc(f[9] - c, 0), !s && n & (Ua | za) && (n &= ~(Ua | za)), !n || n == fc)
14130
+ if (p && T1(f, p), t = f[0], n = f[1], e = f[2], r = f[3], i = f[4], s = f[9] = f[9] === void 0 ? l ? 0 : t.length : hc(f[9] - c, 0), !s && n & (Ua | za) && (n &= ~(Ua | za)), !n || n == pc)
14131
14131
  var h = kv(t, n, e);
14132
- else n == Ua || n == za ? h = k1(t, n, s) : (n == Wa || n == (fc | Wa)) && !i.length ? h = E1(t, n, e, r) : h = ks.apply(void 0, f);
14132
+ else n == Ua || n == za ? h = k1(t, n, s) : (n == Wa || n == (pc | Wa)) && !i.length ? h = E1(t, n, e, r) : h = Ss.apply(void 0, f);
14133
14133
  var g = p ? Bd : Wd;
14134
14134
  return qd(g(h, f), t, n);
14135
14135
  }
14136
- function _s(t, n, e) {
14136
+ function ks(t, n, e) {
14137
14137
  n == "__proto__" && Ii ? Ii(t, n, {
14138
14138
  configurable: !0,
14139
14139
  enumerable: !0,
@@ -14147,43 +14147,43 @@ function pa(t, n) {
14147
14147
  var L1 = Object.prototype, P1 = L1.hasOwnProperty;
14148
14148
  function Kd(t, n, e) {
14149
14149
  var r = t[n];
14150
- (!(P1.call(t, n) && pa(r, e)) || e === void 0 && !(n in t)) && _s(t, n, e);
14150
+ (!(P1.call(t, n) && pa(r, e)) || e === void 0 && !(n in t)) && ks(t, n, e);
14151
14151
  }
14152
14152
  function M1(t, n, e, r) {
14153
14153
  var i = !e;
14154
14154
  e || (e = {});
14155
14155
  for (var a = -1, o = n.length; ++a < o; ) {
14156
14156
  var s = n[a], l = void 0;
14157
- l === void 0 && (l = t[s]), i ? _s(e, s, l) : Kd(e, s, l);
14157
+ l === void 0 && (l = t[s]), i ? ks(e, s, l) : Kd(e, s, l);
14158
14158
  }
14159
14159
  return e;
14160
14160
  }
14161
- var gc = Math.max;
14161
+ var mc = Math.max;
14162
14162
  function Jd(t, n, e) {
14163
- return n = gc(n === void 0 ? t.length - 1 : n, 0), function() {
14164
- for (var r = arguments, i = -1, a = gc(r.length - n, 0), o = Array(a); ++i < a; )
14163
+ return n = mc(n === void 0 ? t.length - 1 : n, 0), function() {
14164
+ for (var r = arguments, i = -1, a = mc(r.length - n, 0), o = Array(a); ++i < a; )
14165
14165
  o[i] = r[n + i];
14166
14166
  i = -1;
14167
14167
  for (var s = Array(n + 1); ++i < n; )
14168
14168
  s[i] = r[i];
14169
- return s[n] = e(o), ys(t, this, s);
14169
+ return s[n] = e(o), vs(t, this, s);
14170
14170
  };
14171
14171
  }
14172
14172
  function F1(t, n) {
14173
- return Ss(Jd(t, n, gs), t + "");
14173
+ return ws(Jd(t, n, ms), t + "");
14174
14174
  }
14175
14175
  var N1 = 9007199254740991;
14176
- function Es(t) {
14176
+ function _s(t) {
14177
14177
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= N1;
14178
14178
  }
14179
- function Cs(t) {
14180
- return t != null && Es(t.length) && !vs(t);
14179
+ function Es(t) {
14180
+ return t != null && _s(t.length) && !gs(t);
14181
14181
  }
14182
14182
  function $1(t, n, e) {
14183
- if (!We(e))
14183
+ if (!qe(e))
14184
14184
  return !1;
14185
14185
  var r = typeof n;
14186
- return (r == "number" ? Cs(e) && Fr(n, e.length) : r == "string" && n in e) ? pa(e[n], t) : !1;
14186
+ return (r == "number" ? Es(e) && Fr(n, e.length) : r == "string" && n in e) ? pa(e[n], t) : !1;
14187
14187
  }
14188
14188
  function D1(t) {
14189
14189
  return F1(function(n, e) {
@@ -14206,12 +14206,12 @@ function j1(t, n) {
14206
14206
  return r;
14207
14207
  }
14208
14208
  var H1 = "[object Arguments]";
14209
- function vc(t) {
14209
+ function gc(t) {
14210
14210
  return It(t) && Fn(t) == H1;
14211
14211
  }
14212
- var Yd = Object.prototype, U1 = Yd.hasOwnProperty, z1 = Yd.propertyIsEnumerable, Er = vc(/* @__PURE__ */ function() {
14212
+ var Yd = Object.prototype, U1 = Yd.hasOwnProperty, z1 = Yd.propertyIsEnumerable, Er = gc(/* @__PURE__ */ function() {
14213
14213
  return arguments;
14214
- }()) ? vc : function(t) {
14214
+ }()) ? gc : function(t) {
14215
14215
  return It(t) && U1.call(t, "callee") && !z1.call(t, "callee");
14216
14216
  }, W1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14217
14217
  function q1(t) {
@@ -14239,24 +14239,24 @@ function V1(t) {
14239
14239
  function G1() {
14240
14240
  return !1;
14241
14241
  }
14242
- var Xd = typeof exports == "object" && exports && !exports.nodeType && exports, yc = Xd && typeof module == "object" && module && !module.nodeType && module, K1 = yc && yc.exports === Xd, bc = K1 ? Je.Buffer : void 0, J1 = bc ? bc.isBuffer : void 0, Qd = J1 || G1, Z1 = "[object Arguments]", Y1 = "[object Array]", X1 = "[object Boolean]", Q1 = "[object Date]", ey = "[object Error]", ty = "[object Function]", ny = "[object Map]", ry = "[object Number]", iy = "[object Object]", ay = "[object RegExp]", oy = "[object Set]", sy = "[object String]", ly = "[object WeakMap]", cy = "[object ArrayBuffer]", uy = "[object DataView]", dy = "[object Float32Array]", py = "[object Float64Array]", fy = "[object Int8Array]", hy = "[object Int16Array]", my = "[object Int32Array]", gy = "[object Uint8Array]", vy = "[object Uint8ClampedArray]", yy = "[object Uint16Array]", by = "[object Uint32Array]", pe = {};
14242
+ var Xd = typeof exports == "object" && exports && !exports.nodeType && exports, vc = Xd && typeof module == "object" && module && !module.nodeType && module, K1 = vc && vc.exports === Xd, yc = K1 ? Je.Buffer : void 0, J1 = yc ? yc.isBuffer : void 0, Qd = J1 || G1, Z1 = "[object Arguments]", Y1 = "[object Array]", X1 = "[object Boolean]", Q1 = "[object Date]", ey = "[object Error]", ty = "[object Function]", ny = "[object Map]", ry = "[object Number]", iy = "[object Object]", ay = "[object RegExp]", oy = "[object Set]", sy = "[object String]", ly = "[object WeakMap]", cy = "[object ArrayBuffer]", uy = "[object DataView]", dy = "[object Float32Array]", py = "[object Float64Array]", fy = "[object Int8Array]", hy = "[object Int16Array]", my = "[object Int32Array]", gy = "[object Uint8Array]", vy = "[object Uint8ClampedArray]", yy = "[object Uint16Array]", by = "[object Uint32Array]", pe = {};
14243
14243
  pe[dy] = pe[py] = pe[fy] = pe[hy] = pe[my] = pe[gy] = pe[vy] = pe[yy] = pe[by] = !0;
14244
14244
  pe[Z1] = pe[Y1] = pe[cy] = pe[X1] = pe[uy] = pe[Q1] = pe[ey] = pe[ty] = pe[ny] = pe[ry] = pe[iy] = pe[ay] = pe[oy] = pe[sy] = pe[ly] = !1;
14245
14245
  function wy(t) {
14246
- return It(t) && Es(t.length) && !!pe[Fn(t)];
14246
+ return It(t) && _s(t.length) && !!pe[Fn(t)];
14247
14247
  }
14248
14248
  function Sy(t) {
14249
14249
  return function(n) {
14250
14250
  return t(n);
14251
14251
  };
14252
14252
  }
14253
- var ep = typeof exports == "object" && exports && !exports.nodeType && exports, lr = ep && typeof module == "object" && module && !module.nodeType && module, ky = lr && lr.exports === ep, qa = ky && Nd.process, wc = function() {
14253
+ var ep = typeof exports == "object" && exports && !exports.nodeType && exports, lr = ep && typeof module == "object" && module && !module.nodeType && module, ky = lr && lr.exports === ep, qa = ky && Nd.process, bc = function() {
14254
14254
  try {
14255
14255
  var t = lr && lr.require && lr.require("util").types;
14256
14256
  return t || qa && qa.binding && qa.binding("util");
14257
14257
  } catch {
14258
14258
  }
14259
- }(), Sc = wc && wc.isTypedArray, tp = Sc ? Sy(Sc) : wy;
14259
+ }(), wc = bc && bc.isTypedArray, tp = wc ? Sy(wc) : wy;
14260
14260
  function _y(t, n) {
14261
14261
  var e = ot(t), r = !e && Er(t), i = !e && !r && Qd(t), a = !e && !r && !i && tp(t), o = e || r || i || a, s = o ? j1(t.length, String) : [], l = s.length;
14262
14262
  for (var c in t)
@@ -14281,7 +14281,7 @@ function Cy(t) {
14281
14281
  }
14282
14282
  var xy = Object.prototype, Ay = xy.hasOwnProperty;
14283
14283
  function Ty(t) {
14284
- if (!We(t))
14284
+ if (!qe(t))
14285
14285
  return Cy(t);
14286
14286
  var n = Zd(t), e = [];
14287
14287
  for (var r in t)
@@ -14289,7 +14289,7 @@ function Ty(t) {
14289
14289
  return e;
14290
14290
  }
14291
14291
  function np(t) {
14292
- return Cs(t) ? _y(t) : Ty(t);
14292
+ return Es(t) ? _y(t) : Ty(t);
14293
14293
  }
14294
14294
  var Oy = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ry = /^\w*$/;
14295
14295
  function Iy(t, n) {
@@ -14420,7 +14420,7 @@ Lt.prototype.get = Qy;
14420
14420
  Lt.prototype.has = e2;
14421
14421
  Lt.prototype.set = t2;
14422
14422
  var n2 = "Expected a function";
14423
- function xs(t, n) {
14423
+ function Cs(t, n) {
14424
14424
  if (typeof t != "function" || n != null && typeof n != "function")
14425
14425
  throw new TypeError(n2);
14426
14426
  var e = function() {
@@ -14430,12 +14430,12 @@ function xs(t, n) {
14430
14430
  var o = t.apply(this, r);
14431
14431
  return e.cache = a.set(i, o) || a, o;
14432
14432
  };
14433
- return e.cache = new (xs.Cache || Lt)(), e;
14433
+ return e.cache = new (Cs.Cache || Lt)(), e;
14434
14434
  }
14435
- xs.Cache = Lt;
14435
+ Cs.Cache = Lt;
14436
14436
  var r2 = 500;
14437
14437
  function i2(t) {
14438
- var n = xs(t, function(r) {
14438
+ var n = Cs(t, function(r) {
14439
14439
  return e.size === r2 && e.clear(), r;
14440
14440
  }), e = n.cache;
14441
14441
  return n;
@@ -14453,7 +14453,7 @@ function ma(t, n) {
14453
14453
  return ot(t) ? t : Iy(t, n) ? [t] : s2(l2(t));
14454
14454
  }
14455
14455
  var c2 = 1 / 0;
14456
- function As(t) {
14456
+ function xs(t) {
14457
14457
  if (typeof t == "string" || ca(t))
14458
14458
  return t;
14459
14459
  var n = t + "";
@@ -14462,7 +14462,7 @@ function As(t) {
14462
14462
  function u2(t, n) {
14463
14463
  n = ma(n, t);
14464
14464
  for (var e = 0, r = n.length; t != null && e < r; )
14465
- t = t[As(n[e++])];
14465
+ t = t[xs(n[e++])];
14466
14466
  return e && e == r ? t : void 0;
14467
14467
  }
14468
14468
  function d2(t, n) {
@@ -14470,9 +14470,9 @@ function d2(t, n) {
14470
14470
  t[i + e] = n[e];
14471
14471
  return t;
14472
14472
  }
14473
- var kc = xt ? xt.isConcatSpreadable : void 0;
14473
+ var Sc = xt ? xt.isConcatSpreadable : void 0;
14474
14474
  function p2(t) {
14475
- return ot(t) || Er(t) || !!(kc && t && t[kc]);
14475
+ return ot(t) || Er(t) || !!(Sc && t && t[Sc]);
14476
14476
  }
14477
14477
  function f2(t, n, e, r, i) {
14478
14478
  var a = -1, o = t.length;
@@ -14487,7 +14487,7 @@ function h2(t) {
14487
14487
  return n ? f2(t) : [];
14488
14488
  }
14489
14489
  function m2(t) {
14490
- return Ss(Jd(t, void 0, h2), t + "");
14490
+ return ws(Jd(t, void 0, h2), t + "");
14491
14491
  }
14492
14492
  var ip = Ey(Object.getPrototypeOf, Object), g2 = "[object Object]", v2 = Function.prototype, y2 = Object.prototype, ap = v2.toString, b2 = y2.hasOwnProperty, w2 = ap.call(Object);
14493
14493
  function S2(t) {
@@ -14532,15 +14532,15 @@ Nn.prototype.delete = _2;
14532
14532
  Nn.prototype.get = E2;
14533
14533
  Nn.prototype.has = C2;
14534
14534
  Nn.prototype.set = A2;
14535
- var op = typeof exports == "object" && exports && !exports.nodeType && exports, _c = op && typeof module == "object" && module && !module.nodeType && module, T2 = _c && _c.exports === op, Ec = T2 ? Je.Buffer : void 0;
14536
- Ec && Ec.allocUnsafe;
14535
+ var op = typeof exports == "object" && exports && !exports.nodeType && exports, kc = op && typeof module == "object" && module && !module.nodeType && module, T2 = kc && kc.exports === op, _c = T2 ? Je.Buffer : void 0;
14536
+ _c && _c.allocUnsafe;
14537
14537
  function O2(t, n) {
14538
14538
  return t.slice();
14539
14539
  }
14540
- var Cc = Je.Uint8Array;
14540
+ var Ec = Je.Uint8Array;
14541
14541
  function R2(t) {
14542
14542
  var n = new t.constructor(t.byteLength);
14543
- return new Cc(n).set(new Cc(t)), n;
14543
+ return new Ec(n).set(new Ec(t)), n;
14544
14544
  }
14545
14545
  function I2(t, n) {
14546
14546
  var e = R2(t.buffer);
@@ -14555,12 +14555,12 @@ function P2(t, n) {
14555
14555
  function M2(t, n, e) {
14556
14556
  n = ma(n, t);
14557
14557
  for (var r = -1, i = n.length, a = !1; ++r < i; ) {
14558
- var o = As(n[r]);
14558
+ var o = xs(n[r]);
14559
14559
  if (!(a = t != null && e(t, o)))
14560
14560
  break;
14561
14561
  t = t[o];
14562
14562
  }
14563
- return a || ++r != i ? a : (i = t == null ? 0 : t.length, !!i && Es(i) && Fr(o, i) && (ot(t) || Er(t)));
14563
+ return a || ++r != i ? a : (i = t == null ? 0 : t.length, !!i && _s(i) && Fr(o, i) && (ot(t) || Er(t)));
14564
14564
  }
14565
14565
  function F2(t, n) {
14566
14566
  return t != null && M2(t, n, P2);
@@ -14582,13 +14582,13 @@ function Nr(t, n, e) {
14582
14582
  return r.placeholder = Nr.placeholder, r;
14583
14583
  }
14584
14584
  Nr.placeholder = {};
14585
- function No(t, n, e) {
14586
- (e !== void 0 && !pa(t[n], e) || e === void 0 && !(n in t)) && _s(t, n, e);
14585
+ function Fo(t, n, e) {
14586
+ (e !== void 0 && !pa(t[n], e) || e === void 0 && !(n in t)) && ks(t, n, e);
14587
14587
  }
14588
14588
  function B2(t) {
14589
- return It(t) && Cs(t);
14589
+ return It(t) && Es(t);
14590
14590
  }
14591
- function $o(t, n) {
14591
+ function No(t, n) {
14592
14592
  if (!(n === "constructor" && typeof t[n] == "function") && n != "__proto__")
14593
14593
  return t[n];
14594
14594
  }
@@ -14596,25 +14596,25 @@ function j2(t) {
14596
14596
  return M1(t, np(t));
14597
14597
  }
14598
14598
  function H2(t, n, e, r, i, a, o) {
14599
- var s = $o(t, e), l = $o(n, e), c = o.get(l);
14599
+ var s = No(t, e), l = No(n, e), c = o.get(l);
14600
14600
  if (c) {
14601
- No(t, e, c);
14601
+ Fo(t, e, c);
14602
14602
  return;
14603
14603
  }
14604
14604
  var u = a ? a(s, l, e + "", t, n, o) : void 0, d = u === void 0;
14605
14605
  if (d) {
14606
14606
  var p = ot(l), f = !p && Qd(l), h = !p && !f && tp(l);
14607
- u = l, p || f || h ? ot(s) ? u = s : B2(s) ? u = ws(s) : f ? (d = !1, u = O2(l)) : h ? (d = !1, u = I2(l)) : u = [] : S2(l) || Er(l) ? (u = s, Er(s) ? u = j2(s) : (!We(s) || vs(s)) && (u = L2(l))) : d = !1;
14607
+ u = l, p || f || h ? ot(s) ? u = s : B2(s) ? u = bs(s) : f ? (d = !1, u = O2(l)) : h ? (d = !1, u = I2(l)) : u = [] : S2(l) || Er(l) ? (u = s, Er(s) ? u = j2(s) : (!qe(s) || gs(s)) && (u = L2(l))) : d = !1;
14608
14608
  }
14609
- d && (o.set(l, u), i(u, l, r, a, o), o.delete(l)), No(t, e, u);
14609
+ d && (o.set(l, u), i(u, l, r, a, o), o.delete(l)), Fo(t, e, u);
14610
14610
  }
14611
14611
  function sp(t, n, e, r, i) {
14612
14612
  t !== n && $2(n, function(a, o) {
14613
- if (i || (i = new Nn()), We(a))
14613
+ if (i || (i = new Nn()), qe(a))
14614
14614
  H2(t, n, o, e, sp, r, i);
14615
14615
  else {
14616
- var s = r ? r($o(t, o), a, o + "", t, n, i) : void 0;
14617
- s === void 0 && (s = a), No(t, o, s);
14616
+ var s = r ? r(No(t, o), a, o + "", t, n, i) : void 0;
14617
+ s === void 0 && (s = a), Fo(t, o, s);
14618
14618
  }
14619
14619
  }, np);
14620
14620
  }
@@ -14626,16 +14626,16 @@ var W2 = D1(function(t, n, e) {
14626
14626
  sp(t, n, e);
14627
14627
  });
14628
14628
  function lp(t, n, e, r) {
14629
- if (!We(t))
14629
+ if (!qe(t))
14630
14630
  return t;
14631
14631
  n = ma(n, t);
14632
14632
  for (var i = -1, a = n.length, o = a - 1, s = t; s != null && ++i < a; ) {
14633
- var l = As(n[i]), c = e;
14633
+ var l = xs(n[i]), c = e;
14634
14634
  if (l === "__proto__" || l === "constructor" || l === "prototype")
14635
14635
  return t;
14636
14636
  if (i != o) {
14637
14637
  var u = s[l];
14638
- c = void 0, c === void 0 && (c = We(u) ? u : Fr(n[i + 1]) ? [] : {});
14638
+ c = void 0, c === void 0 && (c = qe(u) ? u : Fr(n[i + 1]) ? [] : {});
14639
14639
  }
14640
14640
  Kd(s, l, c), s = s[l];
14641
14641
  }
@@ -14660,10 +14660,10 @@ function K2(t, n, e) {
14660
14660
  return t == null ? t : lp(t, n, e);
14661
14661
  }
14662
14662
  const J2 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;
14663
- function xc(t) {
14663
+ function Cc(t) {
14664
14664
  return typeof t != "string" ? t : t.match(J2) ? parseFloat(t) : t;
14665
14665
  }
14666
- function Ac(t, n) {
14666
+ function xc(t, n) {
14667
14667
  return t.substr(-n.length) === n;
14668
14668
  }
14669
14669
  class rt extends Error {
@@ -14676,14 +14676,14 @@ class rt extends Error {
14676
14676
  const Z2 = (t) => (n, e = "16px") => {
14677
14677
  let r = n, i = e;
14678
14678
  if (typeof n == "string") {
14679
- if (!Ac(n, "px"))
14679
+ if (!xc(n, "px"))
14680
14680
  throw new rt(69, t, n);
14681
- r = xc(n);
14681
+ r = Cc(n);
14682
14682
  }
14683
14683
  if (typeof e == "string") {
14684
- if (!Ac(e, "px"))
14684
+ if (!xc(e, "px"))
14685
14685
  throw new rt(70, t, e);
14686
- i = xc(e);
14686
+ i = Cc(e);
14687
14687
  }
14688
14688
  if (typeof r == "string")
14689
14689
  throw new rt(71, n, t);
@@ -14697,7 +14697,7 @@ function Va(t) {
14697
14697
  function Y2(t, n, e) {
14698
14698
  return `${Va(t)},${Va(n)},${Va(e)}`;
14699
14699
  }
14700
- function Tc(t, n, e, r = Y2) {
14700
+ function Ac(t, n, e, r = Y2) {
14701
14701
  if (n === 0)
14702
14702
  return r(e, e, e);
14703
14703
  const i = (t % 360 + 360) % 360 / 60, a = (1 - Math.abs(2 * e - 1)) * n, o = a * (1 - Math.abs(i % 2 - 1));
@@ -14706,7 +14706,7 @@ function Tc(t, n, e, r = Y2) {
14706
14706
  const u = e - a / 2, d = s + u, p = l + u, f = c + u;
14707
14707
  return r(d, p, f);
14708
14708
  }
14709
- const Oc = {
14709
+ const Tc = {
14710
14710
  aliceblue: "f0f8ff",
14711
14711
  antiquewhite: "faebd7",
14712
14712
  aqua: "00ffff",
@@ -14859,9 +14859,9 @@ const Oc = {
14859
14859
  function X2(t) {
14860
14860
  if (typeof t != "string") return t;
14861
14861
  const n = t.toLowerCase();
14862
- return Oc[n] ? `#${Oc[n]}` : t;
14862
+ return Tc[n] ? `#${Tc[n]}` : t;
14863
14863
  }
14864
- const Rc = (t) => t.length === 7 && t[1] === t[2] && t[3] === t[4] && t[5] === t[6] ? `#${t[1]}${t[3]}${t[5]}` : t;
14864
+ const Oc = (t) => t.length === 7 && t[1] === t[2] && t[3] === t[4] && t[5] === t[6] ? `#${t[1]}${t[3]}${t[5]}` : t;
14865
14865
  function un(t) {
14866
14866
  const n = t.toString(16);
14867
14867
  return n.length === 1 ? `0${n}` : n;
@@ -14906,17 +14906,17 @@ function me(t, n, e, r) {
14906
14906
  return `rgba(${i.red},${i.green},${i.blue},${n})`;
14907
14907
  } else {
14908
14908
  if (typeof t == "number" && typeof n == "number" && typeof e == "number" && typeof r == "number")
14909
- return r >= 1 ? Ic(t, n, e) : `rgba(${t},${n},${e},${r})`;
14909
+ return r >= 1 ? Rc(t, n, e) : `rgba(${t},${n},${e},${r})`;
14910
14910
  if (typeof t == "object" && n === void 0 && e === void 0 && r === void 0)
14911
- return t.alpha >= 1 ? Ic(t.red, t.green, t.blue) : `rgba(${t.red},${t.green},${t.blue},${t.alpha})`;
14911
+ return t.alpha >= 1 ? Rc(t.red, t.green, t.blue) : `rgba(${t.red},${t.green},${t.blue},${t.alpha})`;
14912
14912
  }
14913
14913
  throw new rt(7);
14914
14914
  }
14915
- function Ic(t, n, e) {
14915
+ function Rc(t, n, e) {
14916
14916
  if (typeof t == "number" && typeof n == "number" && typeof e == "number")
14917
- return Rc(`#${un(t)}${un(n)}${un(e)}`);
14917
+ return Oc(`#${un(t)}${un(n)}${un(e)}`);
14918
14918
  if (typeof t == "object" && n === void 0 && e === void 0)
14919
- return Rc(`#${un(t.red)}${un(t.green)}${un(t.blue)}`);
14919
+ return Oc(`#${un(t.red)}${un(t.green)}${un(t.blue)}`);
14920
14920
  throw new rt(6);
14921
14921
  }
14922
14922
  function Pi(t) {
@@ -14970,7 +14970,7 @@ function Pi(t) {
14970
14970
  };
14971
14971
  const i = ob.exec(n);
14972
14972
  if (i) {
14973
- const o = parseInt(`${i[1]}`, 10), s = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${Tc(o, s, l)})`, u = Ga.exec(c);
14973
+ const o = parseInt(`${i[1]}`, 10), s = parseInt(`${i[2]}`, 10) / 100, l = parseInt(`${i[3]}`, 10) / 100, c = `rgb(${Ac(o, s, l)})`, u = Ga.exec(c);
14974
14974
  if (!u)
14975
14975
  throw new rt(4, n, c);
14976
14976
  return {
@@ -14981,7 +14981,7 @@ function Pi(t) {
14981
14981
  }
14982
14982
  const a = sb.exec(n.substring(0, 50));
14983
14983
  if (a) {
14984
- const o = parseInt(`${a[1]}`, 10), s = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${Tc(o, s, l)})`, u = Ga.exec(c);
14984
+ const o = parseInt(`${a[1]}`, 10), s = parseInt(`${a[2]}`, 10) / 100, l = parseInt(`${a[3]}`, 10) / 100, c = `rgb(${Ac(o, s, l)})`, u = Ga.exec(c);
14985
14985
  if (!u)
14986
14986
  throw new rt(4, n, c);
14987
14987
  return {
@@ -16292,40 +16292,40 @@ const lb = {
16292
16292
  --lr-border-radius: ${A(E.defaults.radius)};
16293
16293
  }
16294
16294
  `;
16295
- function je(t) {
16295
+ function He(t) {
16296
16296
  "@babel/helpers - typeof";
16297
- return je = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
16297
+ return He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
16298
16298
  return typeof n;
16299
16299
  } : function(n) {
16300
16300
  return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
16301
- }, je(t);
16301
+ }, He(t);
16302
16302
  }
16303
16303
  function lt(t, n) {
16304
16304
  if (!(t instanceof n))
16305
16305
  throw new TypeError("Cannot call a class as a function");
16306
16306
  }
16307
16307
  function bb(t, n) {
16308
- if (je(t) !== "object" || t === null) return t;
16308
+ if (He(t) !== "object" || t === null) return t;
16309
16309
  var e = t[Symbol.toPrimitive];
16310
16310
  if (e !== void 0) {
16311
16311
  var r = e.call(t, n || "default");
16312
- if (je(r) !== "object") return r;
16312
+ if (He(r) !== "object") return r;
16313
16313
  throw new TypeError("@@toPrimitive must return a primitive value.");
16314
16314
  }
16315
16315
  return (n === "string" ? String : Number)(t);
16316
16316
  }
16317
16317
  function up(t) {
16318
16318
  var n = bb(t, "string");
16319
- return je(n) === "symbol" ? n : String(n);
16319
+ return He(n) === "symbol" ? n : String(n);
16320
16320
  }
16321
- function Lc(t, n) {
16321
+ function Ic(t, n) {
16322
16322
  for (var e = 0; e < n.length; e++) {
16323
16323
  var r = n[e];
16324
16324
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, up(r.key), r);
16325
16325
  }
16326
16326
  }
16327
16327
  function ct(t, n, e) {
16328
- return n && Lc(t.prototype, n), e && Lc(t, e), Object.defineProperty(t, "prototype", {
16328
+ return n && Ic(t.prototype, n), e && Ic(t, e), Object.defineProperty(t, "prototype", {
16329
16329
  writable: !1
16330
16330
  }), t;
16331
16331
  }
@@ -16334,10 +16334,10 @@ function Et(t) {
16334
16334
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16335
16335
  return t;
16336
16336
  }
16337
- function Do(t, n) {
16338
- return Do = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
16337
+ function $o(t, n) {
16338
+ return $o = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
16339
16339
  return r.__proto__ = i, r;
16340
- }, Do(t, n);
16340
+ }, $o(t, n);
16341
16341
  }
16342
16342
  function ga(t, n) {
16343
16343
  if (typeof n != "function" && n !== null)
@@ -16350,10 +16350,10 @@ function ga(t, n) {
16350
16350
  }
16351
16351
  }), Object.defineProperty(t, "prototype", {
16352
16352
  writable: !1
16353
- }), n && Do(t, n);
16353
+ }), n && $o(t, n);
16354
16354
  }
16355
16355
  function $r(t, n) {
16356
- if (n && (je(n) === "object" || typeof n == "function"))
16356
+ if (n && (He(n) === "object" || typeof n == "function"))
16357
16357
  return n;
16358
16358
  if (n !== void 0)
16359
16359
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -16378,17 +16378,17 @@ function wb(t) {
16378
16378
  function Sb(t) {
16379
16379
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
16380
16380
  }
16381
- function Pc(t, n) {
16381
+ function Lc(t, n) {
16382
16382
  (n == null || n > t.length) && (n = t.length);
16383
16383
  for (var e = 0, r = new Array(n); e < n; e++) r[e] = t[e];
16384
16384
  return r;
16385
16385
  }
16386
16386
  function kb(t, n) {
16387
16387
  if (t) {
16388
- if (typeof t == "string") return Pc(t, n);
16388
+ if (typeof t == "string") return Lc(t, n);
16389
16389
  var e = Object.prototype.toString.call(t).slice(8, -1);
16390
16390
  if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
16391
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Pc(t, n);
16391
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Lc(t, n);
16392
16392
  }
16393
16393
  }
16394
16394
  function _b() {
@@ -16398,7 +16398,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
16398
16398
  function Eb(t) {
16399
16399
  return wb(t) || Sb(t) || kb(t) || _b();
16400
16400
  }
16401
- function Mc(t, n) {
16401
+ function Pc(t, n) {
16402
16402
  var e = Object.keys(t);
16403
16403
  if (Object.getOwnPropertySymbols) {
16404
16404
  var r = Object.getOwnPropertySymbols(t);
@@ -16408,12 +16408,12 @@ function Mc(t, n) {
16408
16408
  }
16409
16409
  return e;
16410
16410
  }
16411
- function Fc(t) {
16411
+ function Mc(t) {
16412
16412
  for (var n = 1; n < arguments.length; n++) {
16413
16413
  var e = arguments[n] != null ? arguments[n] : {};
16414
- n % 2 ? Mc(Object(e), !0).forEach(function(r) {
16414
+ n % 2 ? Pc(Object(e), !0).forEach(function(r) {
16415
16415
  Pt(t, r, e[r]);
16416
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Mc(Object(e)).forEach(function(r) {
16416
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Pc(Object(e)).forEach(function(r) {
16417
16417
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
16418
16418
  });
16419
16419
  }
@@ -16485,7 +16485,7 @@ var Cb = {
16485
16485
  }, {
16486
16486
  key: "create",
16487
16487
  value: function(e) {
16488
- return new t(this.logger, Fc(Fc({}, {
16488
+ return new t(this.logger, Mc(Mc({}, {
16489
16489
  prefix: "".concat(this.prefix, ":").concat(e, ":")
16490
16490
  }), this.options));
16491
16491
  }
@@ -16546,7 +16546,7 @@ function qn() {
16546
16546
  });
16547
16547
  return e.resolve = t, e.reject = n, e;
16548
16548
  }
16549
- function Nc(t) {
16549
+ function Fc(t) {
16550
16550
  return t == null ? "" : "" + t;
16551
16551
  }
16552
16552
  function Ab(t, n, e) {
@@ -16554,7 +16554,7 @@ function Ab(t, n, e) {
16554
16554
  n[r] && (e[r] = n[r]);
16555
16555
  });
16556
16556
  }
16557
- function Ts(t, n, e) {
16557
+ function As(t, n, e) {
16558
16558
  function r(s) {
16559
16559
  return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
16560
16560
  }
@@ -16571,16 +16571,16 @@ function Ts(t, n, e) {
16571
16571
  k: r(a.shift())
16572
16572
  };
16573
16573
  }
16574
- function $c(t, n, e) {
16575
- var r = Ts(t, n, Object), i = r.obj, a = r.k;
16574
+ function Nc(t, n, e) {
16575
+ var r = As(t, n, Object), i = r.obj, a = r.k;
16576
16576
  i[a] = e;
16577
16577
  }
16578
16578
  function Tb(t, n, e, r) {
16579
- var i = Ts(t, n, Object), a = i.obj, o = i.k;
16579
+ var i = As(t, n, Object), a = i.obj, o = i.k;
16580
16580
  a[o] = a[o] || [], a[o].push(e);
16581
16581
  }
16582
16582
  function Mi(t, n) {
16583
- var e = Ts(t, n), r = e.obj, i = e.k;
16583
+ var e = As(t, n), r = e.obj, i = e.k;
16584
16584
  if (r)
16585
16585
  return r[i];
16586
16586
  }
@@ -16649,7 +16649,7 @@ function Fi(t, n) {
16649
16649
  return i;
16650
16650
  }
16651
16651
  }
16652
- function Dc(t, n) {
16652
+ function $c(t, n) {
16653
16653
  var e = Object.keys(t);
16654
16654
  if (Object.getOwnPropertySymbols) {
16655
16655
  var r = Object.getOwnPropertySymbols(t);
@@ -16662,9 +16662,9 @@ function Dc(t, n) {
16662
16662
  function Kr(t) {
16663
16663
  for (var n = 1; n < arguments.length; n++) {
16664
16664
  var e = arguments[n] != null ? arguments[n] : {};
16665
- n % 2 ? Dc(Object(e), !0).forEach(function(r) {
16665
+ n % 2 ? $c(Object(e), !0).forEach(function(r) {
16666
16666
  Pt(t, r, e[r]);
16667
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Dc(Object(e)).forEach(function(r) {
16667
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : $c(Object(e)).forEach(function(r) {
16668
16668
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
16669
16669
  });
16670
16670
  }
@@ -16727,7 +16727,7 @@ var Nb = function(t) {
16727
16727
  var l = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
16728
16728
  silent: !1
16729
16729
  }, c = l.keySeparator !== void 0 ? l.keySeparator : this.options.keySeparator, u = [i, a];
16730
- o && (u = u.concat(c ? o.split(c) : o)), i.indexOf(".") > -1 && (u = i.split("."), s = a, a = u[1]), this.addNamespaces(a), $c(this.data, u, s), l.silent || this.emit("added", i, a, o, s);
16730
+ o && (u = u.concat(c ? o.split(c) : o)), i.indexOf(".") > -1 && (u = i.split("."), s = a, a = u[1]), this.addNamespaces(a), Nc(this.data, u, s), l.silent || this.emit("added", i, a, o, s);
16731
16731
  }
16732
16732
  }, {
16733
16733
  key: "addResources",
@@ -16749,7 +16749,7 @@ var Nb = function(t) {
16749
16749
  }, u = [i, a];
16750
16750
  i.indexOf(".") > -1 && (u = i.split("."), s = o, o = a, a = u[1]), this.addNamespaces(a);
16751
16751
  var d = Mi(this.data, u) || {};
16752
- s ? dp(d, o, l) : d = Kr(Kr({}, d), o), $c(this.data, u, d), c.silent || this.emit("added", i, a, o);
16752
+ s ? dp(d, o, l) : d = Kr(Kr({}, d), o), Nc(this.data, u, d), c.silent || this.emit("added", i, a, o);
16753
16753
  }
16754
16754
  }, {
16755
16755
  key: "removeResourceBundle",
@@ -16797,7 +16797,7 @@ var Nb = function(t) {
16797
16797
  }), e;
16798
16798
  }
16799
16799
  };
16800
- function Bc(t, n) {
16800
+ function Dc(t, n) {
16801
16801
  var e = Object.keys(t);
16802
16802
  if (Object.getOwnPropertySymbols) {
16803
16803
  var r = Object.getOwnPropertySymbols(t);
@@ -16810,9 +16810,9 @@ function Bc(t, n) {
16810
16810
  function Ae(t) {
16811
16811
  for (var n = 1; n < arguments.length; n++) {
16812
16812
  var e = arguments[n] != null ? arguments[n] : {};
16813
- n % 2 ? Bc(Object(e), !0).forEach(function(r) {
16813
+ n % 2 ? Dc(Object(e), !0).forEach(function(r) {
16814
16814
  Pt(t, r, e[r]);
16815
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Bc(Object(e)).forEach(function(r) {
16815
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Dc(Object(e)).forEach(function(r) {
16816
16816
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
16817
16817
  });
16818
16818
  }
@@ -16840,7 +16840,7 @@ function Db() {
16840
16840
  return !1;
16841
16841
  }
16842
16842
  }
16843
- var jc = {}, Hc = function(t) {
16843
+ var Bc = {}, jc = function(t) {
16844
16844
  ga(e, t);
16845
16845
  var n = $b(e);
16846
16846
  function e(r) {
@@ -16888,7 +16888,7 @@ var jc = {}, Hc = function(t) {
16888
16888
  key: "translate",
16889
16889
  value: function(i, a, o) {
16890
16890
  var s = this;
16891
- if (je(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), je(a) === "object" && (a = Ae({}, a)), a || (a = {}), i == null) return "";
16891
+ if (He(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), He(a) === "object" && (a = Ae({}, a)), a || (a = {}), i == null) return "";
16892
16892
  Array.isArray(i) || (i = [String(i)]);
16893
16893
  var l = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, c = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = this.extractFromKey(i[i.length - 1], a), d = u.key, p = u.namespaces, f = p[p.length - 1], h = a.lng || this.language, g = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
16894
16894
  if (h && h.toLowerCase() === "cimode") {
@@ -16949,15 +16949,15 @@ var jc = {}, Hc = function(t) {
16949
16949
  for (var ka = 0; ka < Be.length; ka++)
16950
16950
  Le.push(Be[ka]);
16951
16951
  else this.options.saveMissingTo === "all" ? Le = this.languageUtils.toResolveHierarchy(a.lng || this.language) : Le.push(a.lng || this.language);
16952
- var Gs = function(sn, Ea, Ks) {
16953
- var Js = D && Ks !== b ? Ks : de;
16954
- s.options.missingKeyHandler ? s.options.missingKeyHandler(sn, f, Ea, Js, be, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(sn, f, Ea, Js, be, a), s.emit("missingKey", sn, f, Ea, b);
16952
+ var Vs = function(sn, Ea, Gs) {
16953
+ var Ks = D && Gs !== b ? Gs : de;
16954
+ s.options.missingKeyHandler ? s.options.missingKeyHandler(sn, f, Ea, Ks, be, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(sn, f, Ea, Ks, be, a), s.emit("missingKey", sn, f, Ea, b);
16955
16955
  };
16956
16956
  this.options.saveMissing && (this.options.saveMissingPlurals && M ? Le.forEach(function(_a) {
16957
16957
  s.pluralResolver.getSuffixes(_a, a).forEach(function(sn) {
16958
- Gs([_a], d + sn, a["defaultValue".concat(sn)] || H);
16958
+ Vs([_a], d + sn, a["defaultValue".concat(sn)] || H);
16959
16959
  });
16960
- }) : Gs(Le, d, H));
16960
+ }) : Vs(Le, d, H));
16961
16961
  }
16962
16962
  b = this.extendTranslation(b, i, a, y, o), x && b === d && this.options.appendNamespaceToMissingKey && (b = "".concat(f, ":").concat(d)), (x || F) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? b = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(f, ":").concat(d) : d, F ? b : void 0) : b = this.options.parseMissingKeyHandler(b));
16963
16963
  }
@@ -17008,7 +17008,7 @@ var jc = {}, Hc = function(t) {
17008
17008
  a.options.fallbackNS && (g = g.concat(a.options.fallbackNS));
17009
17009
  var v = o.count !== void 0 && typeof o.count != "string", y = v && !o.ordinal && o.count === 0 && a.pluralResolver.shouldUseIntlApi(), b = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", w = o.lngs ? o.lngs : a.languageUtils.toResolveHierarchy(o.lng || a.language, o.fallbackLng);
17010
17010
  g.forEach(function(N) {
17011
- a.isValidLookup(s) || (d = N, !jc["".concat(w[0], "-").concat(N)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(d) && (jc["".concat(w[0], "-").concat(N)] = !0, a.logger.warn('key "'.concat(l, '" for languages "').concat(w.join(", "), `" won't get resolved as namespace "`).concat(d, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), w.forEach(function(T) {
17011
+ a.isValidLookup(s) || (d = N, !Bc["".concat(w[0], "-").concat(N)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(d) && (Bc["".concat(w[0], "-").concat(N)] = !0, a.logger.warn('key "'.concat(l, '" for languages "').concat(w.join(", "), `" won't get resolved as namespace "`).concat(d, '" was not yet loaded'), "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), w.forEach(function(T) {
17012
17012
  if (!a.isValidLookup(s)) {
17013
17013
  u = T;
17014
17014
  var B = [h];
@@ -17062,7 +17062,7 @@ var jc = {}, Hc = function(t) {
17062
17062
  function Ka(t) {
17063
17063
  return t.charAt(0).toUpperCase() + t.slice(1);
17064
17064
  }
17065
- var Uc = function() {
17065
+ var Hc = function() {
17066
17066
  function t(n) {
17067
17067
  lt(this, t), this.options = n, this.supportedLngs = this.options.supportedLngs || !1, this.logger = it.create("languageUtils");
17068
17068
  }
@@ -17298,7 +17298,7 @@ var Uc = function() {
17298
17298
  22: function(n) {
17299
17299
  return n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3;
17300
17300
  }
17301
- }, Hb = ["v1", "v2", "v3"], zc = {
17301
+ }, Hb = ["v1", "v2", "v3"], Uc = {
17302
17302
  zero: 0,
17303
17303
  one: 1,
17304
17304
  two: 2,
@@ -17360,7 +17360,7 @@ var zb = function() {
17360
17360
  value: function(e) {
17361
17361
  var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(e, i);
17362
17362
  return a ? this.shouldUseIntlApi() ? a.resolvedOptions().pluralCategories.sort(function(o, s) {
17363
- return zc[o] - zc[s];
17363
+ return Uc[o] - Uc[s];
17364
17364
  }).map(function(o) {
17365
17365
  return "".concat(r.options.prepend).concat(o);
17366
17366
  }) : a.numbers.map(function(o) {
@@ -17390,7 +17390,7 @@ var zb = function() {
17390
17390
  }
17391
17391
  }]), t;
17392
17392
  }();
17393
- function Wc(t, n) {
17393
+ function zc(t, n) {
17394
17394
  var e = Object.keys(t);
17395
17395
  if (Object.getOwnPropertySymbols) {
17396
17396
  var r = Object.getOwnPropertySymbols(t);
@@ -17400,18 +17400,18 @@ function Wc(t, n) {
17400
17400
  }
17401
17401
  return e;
17402
17402
  }
17403
- function Ge(t) {
17403
+ function Ke(t) {
17404
17404
  for (var n = 1; n < arguments.length; n++) {
17405
17405
  var e = arguments[n] != null ? arguments[n] : {};
17406
- n % 2 ? Wc(Object(e), !0).forEach(function(r) {
17406
+ n % 2 ? zc(Object(e), !0).forEach(function(r) {
17407
17407
  Pt(t, r, e[r]);
17408
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Wc(Object(e)).forEach(function(r) {
17408
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : zc(Object(e)).forEach(function(r) {
17409
17409
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
17410
17410
  });
17411
17411
  }
17412
17412
  return t;
17413
17413
  }
17414
- function qc(t, n, e) {
17414
+ function Wc(t, n, e) {
17415
17415
  var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = Ob(t, n, e);
17416
17416
  return !a && i && typeof e == "string" && (a = Fi(t, e, r), a === void 0 && (a = Fi(n, e, r))), a;
17417
17417
  }
@@ -17456,13 +17456,13 @@ var Wb = function() {
17456
17456
  }
17457
17457
  var p = function(y) {
17458
17458
  if (y.indexOf(o.formatSeparator) < 0) {
17459
- var b = qc(r, u, y, o.options.keySeparator, o.options.ignoreJSONStructure);
17460
- return o.alwaysFormat ? o.format(b, void 0, i, Ge(Ge(Ge({}, a), r), {}, {
17459
+ var b = Wc(r, u, y, o.options.keySeparator, o.options.ignoreJSONStructure);
17460
+ return o.alwaysFormat ? o.format(b, void 0, i, Ke(Ke(Ke({}, a), r), {}, {
17461
17461
  interpolationkey: y
17462
17462
  })) : b;
17463
17463
  }
17464
17464
  var w = y.split(o.formatSeparator), N = w.shift().trim(), T = w.join(o.formatSeparator).trim();
17465
- return o.format(qc(r, u, N, o.options.keySeparator, o.options.ignoreJSONStructure), T, i, Ge(Ge(Ge({}, a), r), {}, {
17465
+ return o.format(Wc(r, u, N, o.options.keySeparator, o.options.ignoreJSONStructure), T, i, Ke(Ke(Ke({}, a), r), {}, {
17466
17466
  interpolationkey: N
17467
17467
  }));
17468
17468
  };
@@ -17492,7 +17492,7 @@ var Wb = function() {
17492
17492
  continue;
17493
17493
  } else
17494
17494
  o.logger.warn("missed to pass in variable ".concat(y, " for interpolating ").concat(e)), l = "";
17495
- else typeof l != "string" && !o.useRawValueToEscape && (l = Nc(l));
17495
+ else typeof l != "string" && !o.useRawValueToEscape && (l = Fc(l));
17496
17496
  var w = v.safeValue(l);
17497
17497
  if (e = e.replace(s[0], w), h ? (v.regex.lastIndex += l.length, v.regex.lastIndex -= s[0].length) : v.regex.lastIndex = 0, c++, c >= o.maxReplaces)
17498
17498
  break;
@@ -17511,7 +17511,7 @@ var Wb = function() {
17511
17511
  var b = y.match(/'/g), w = y.match(/"/g);
17512
17512
  (b && b.length % 2 === 0 && !w || w.length % 2 !== 0) && (y = y.replace(/'/g, '"'));
17513
17513
  try {
17514
- l = JSON.parse(y), h && (l = Ge(Ge({}, h), l));
17514
+ l = JSON.parse(y), h && (l = Ke(Ke({}, h), l));
17515
17515
  } catch (N) {
17516
17516
  return this.logger.warn("failed parsing options string in nesting for key ".concat(f), N), "".concat(f).concat(g).concat(y);
17517
17517
  }
@@ -17519,7 +17519,7 @@ var Wb = function() {
17519
17519
  }
17520
17520
  for (; o = this.nestingRegexp.exec(e); ) {
17521
17521
  var u = [];
17522
- l = Ge({}, a), l = l.replace && typeof l.replace != "string" ? l.replace : l, l.applyPostProcessor = !1, delete l.defaultValue;
17522
+ l = Ke({}, a), l = l.replace && typeof l.replace != "string" ? l.replace : l, l.applyPostProcessor = !1, delete l.defaultValue;
17523
17523
  var d = !1;
17524
17524
  if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
17525
17525
  var p = o[1].split(this.formatSeparator).map(function(f) {
@@ -17528,8 +17528,8 @@ var Wb = function() {
17528
17528
  o[1] = p.shift(), u = p, d = !0;
17529
17529
  }
17530
17530
  if (s = r(c.call(this, o[1].trim(), l), l), s && o[0] === e && typeof s != "string") return s;
17531
- typeof s != "string" && (s = Nc(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(e)), s = ""), d && (s = u.reduce(function(f, h) {
17532
- return i.format(f, h, a.lng, Ge(Ge({}, a), {}, {
17531
+ typeof s != "string" && (s = Fc(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(e)), s = ""), d && (s = u.reduce(function(f, h) {
17532
+ return i.format(f, h, a.lng, Ke(Ke({}, a), {}, {
17533
17533
  interpolationkey: o[1].trim()
17534
17534
  }));
17535
17535
  }, s.trim())), e = e.replace(o[0], s), this.regexp.lastIndex = 0;
@@ -17538,7 +17538,7 @@ var Wb = function() {
17538
17538
  }
17539
17539
  }]), t;
17540
17540
  }();
17541
- function Vc(t, n) {
17541
+ function qc(t, n) {
17542
17542
  var e = Object.keys(t);
17543
17543
  if (Object.getOwnPropertySymbols) {
17544
17544
  var r = Object.getOwnPropertySymbols(t);
@@ -17551,9 +17551,9 @@ function Vc(t, n) {
17551
17551
  function pt(t) {
17552
17552
  for (var n = 1; n < arguments.length; n++) {
17553
17553
  var e = arguments[n] != null ? arguments[n] : {};
17554
- n % 2 ? Vc(Object(e), !0).forEach(function(r) {
17554
+ n % 2 ? qc(Object(e), !0).forEach(function(r) {
17555
17555
  Pt(t, r, e[r]);
17556
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Vc(Object(e)).forEach(function(r) {
17556
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : qc(Object(e)).forEach(function(r) {
17557
17557
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
17558
17558
  });
17559
17559
  }
@@ -17669,7 +17669,7 @@ var Vb = function() {
17669
17669
  }
17670
17670
  }]), t;
17671
17671
  }();
17672
- function Gc(t, n) {
17672
+ function Vc(t, n) {
17673
17673
  var e = Object.keys(t);
17674
17674
  if (Object.getOwnPropertySymbols) {
17675
17675
  var r = Object.getOwnPropertySymbols(t);
@@ -17679,12 +17679,12 @@ function Gc(t, n) {
17679
17679
  }
17680
17680
  return e;
17681
17681
  }
17682
- function Kc(t) {
17682
+ function Gc(t) {
17683
17683
  for (var n = 1; n < arguments.length; n++) {
17684
17684
  var e = arguments[n] != null ? arguments[n] : {};
17685
- n % 2 ? Gc(Object(e), !0).forEach(function(r) {
17685
+ n % 2 ? Vc(Object(e), !0).forEach(function(r) {
17686
17686
  Pt(t, r, e[r]);
17687
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Gc(Object(e)).forEach(function(r) {
17687
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Vc(Object(e)).forEach(function(r) {
17688
17688
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
17689
17689
  });
17690
17690
  }
@@ -17851,7 +17851,7 @@ var Zb = function(t) {
17851
17851
  }
17852
17852
  if (!(o == null || o === "")) {
17853
17853
  if (this.backend && this.backend.create) {
17854
- var d = Kc(Kc({}, c), {}, {
17854
+ var d = Gc(Gc({}, c), {}, {
17855
17855
  isUpdate: l
17856
17856
  }), p = this.backend.create.bind(this.backend);
17857
17857
  if (p.length < 6)
@@ -17871,7 +17871,7 @@ var Zb = function(t) {
17871
17871
  }
17872
17872
  }]), e;
17873
17873
  }(At);
17874
- function Jc() {
17874
+ function Kc() {
17875
17875
  return {
17876
17876
  debug: !1,
17877
17877
  initImmediate: !0,
@@ -17907,7 +17907,7 @@ function Jc() {
17907
17907
  appendNamespaceToCIMode: !1,
17908
17908
  overloadTranslationOptionHandler: function(n) {
17909
17909
  var e = {};
17910
- if (je(n[1]) === "object" && (e = n[1]), typeof n[1] == "string" && (e.defaultValue = n[1]), typeof n[2] == "string" && (e.tDescription = n[2]), je(n[2]) === "object" || je(n[3]) === "object") {
17910
+ if (He(n[1]) === "object" && (e = n[1]), typeof n[1] == "string" && (e.defaultValue = n[1]), typeof n[2] == "string" && (e.tDescription = n[2]), He(n[2]) === "object" || He(n[3]) === "object") {
17911
17911
  var r = n[3] || n[2];
17912
17912
  Object.keys(r).forEach(function(i) {
17913
17913
  e[i] = r[i];
@@ -17932,10 +17932,10 @@ function Jc() {
17932
17932
  }
17933
17933
  };
17934
17934
  }
17935
- function Zc(t) {
17935
+ function Jc(t) {
17936
17936
  return typeof t.ns == "string" && (t.ns = [t.ns]), typeof t.fallbackLng == "string" && (t.fallbackLng = [t.fallbackLng]), typeof t.fallbackNS == "string" && (t.fallbackNS = [t.fallbackNS]), t.supportedLngs && t.supportedLngs.indexOf("cimode") < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), t;
17937
17937
  }
17938
- function Yc(t, n) {
17938
+ function Zc(t, n) {
17939
17939
  var e = Object.keys(t);
17940
17940
  if (Object.getOwnPropertySymbols) {
17941
17941
  var r = Object.getOwnPropertySymbols(t);
@@ -17948,9 +17948,9 @@ function Yc(t, n) {
17948
17948
  function Xe(t) {
17949
17949
  for (var n = 1; n < arguments.length; n++) {
17950
17950
  var e = arguments[n] != null ? arguments[n] : {};
17951
- n % 2 ? Yc(Object(e), !0).forEach(function(r) {
17951
+ n % 2 ? Zc(Object(e), !0).forEach(function(r) {
17952
17952
  Pt(t, r, e[r]);
17953
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Yc(Object(e)).forEach(function(r) {
17953
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Zc(Object(e)).forEach(function(r) {
17954
17954
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
17955
17955
  });
17956
17956
  }
@@ -17991,7 +17991,7 @@ var Ni = function(t) {
17991
17991
  var n = Yb(e);
17992
17992
  function e() {
17993
17993
  var r, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
17994
- if (lt(this, e), r = n.call(this), va && At.call(Et(r)), r.options = Zc(i), r.services = {}, r.logger = it, r.modules = {
17994
+ if (lt(this, e), r = n.call(this), va && At.call(Et(r)), r.options = Jc(i), r.services = {}, r.logger = it, r.modules = {
17995
17995
  external: []
17996
17996
  }, Qb(Et(r)), a && !r.isInitialized && !i.isClone) {
17997
17997
  if (!r.options.initImmediate)
@@ -18007,8 +18007,8 @@ var Ni = function(t) {
18007
18007
  value: function() {
18008
18008
  var i = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
18009
18009
  typeof a == "function" && (o = a, a = {}), !a.defaultNS && a.defaultNS !== !1 && a.ns && (typeof a.ns == "string" ? a.defaultNS = a.ns : a.ns.indexOf("translation") < 0 && (a.defaultNS = a.ns[0]));
18010
- var s = Jc();
18011
- this.options = Xe(Xe(Xe({}, s), this.options), Zc(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = Xe(Xe({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
18010
+ var s = Kc();
18011
+ this.options = Xe(Xe(Xe({}, s), this.options), Jc(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = Xe(Xe({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
18012
18012
  function l(y) {
18013
18013
  return y ? typeof y == "function" ? new y() : y : null;
18014
18014
  }
@@ -18016,7 +18016,7 @@ var Ni = function(t) {
18016
18016
  this.modules.logger ? it.init(l(this.modules.logger), this.options) : it.init(null, this.options);
18017
18017
  var c;
18018
18018
  this.modules.formatter ? c = this.modules.formatter : typeof Intl < "u" && (c = Vb);
18019
- var u = new Uc(this.options);
18019
+ var u = new Hc(this.options);
18020
18020
  this.store = new Nb(this.options.resources, this.options);
18021
18021
  var d = this.services;
18022
18022
  d.logger = it, d.resourceStore = this.store, d.languageUtils = u, d.pluralResolver = new zb(u, {
@@ -18029,7 +18029,7 @@ var Ni = function(t) {
18029
18029
  for (var b = arguments.length, w = new Array(b > 1 ? b - 1 : 0), N = 1; N < b; N++)
18030
18030
  w[N - 1] = arguments[N];
18031
18031
  i.emit.apply(i, [y].concat(w));
18032
- }), this.modules.languageDetector && (d.languageDetector = l(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = l(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new Hc(this.services, this.options), this.translator.on("*", function(y) {
18032
+ }), this.modules.languageDetector && (d.languageDetector = l(this.modules.languageDetector), d.languageDetector.init && d.languageDetector.init(d, this.options.detection, this.options)), this.modules.i18nFormat && (d.i18nFormat = l(this.modules.i18nFormat), d.i18nFormat.init && d.i18nFormat.init(this)), this.translator = new jc(this.services, this.options), this.translator.on("*", function(y) {
18033
18033
  for (var b = arguments.length, w = new Array(b > 1 ? b - 1 : 0), N = 1; N < b; N++)
18034
18034
  w[N - 1] = arguments[N];
18035
18035
  i.emit.apply(i, [y].concat(w));
@@ -18151,7 +18151,7 @@ var Ni = function(t) {
18151
18151
  value: function(i, a, o) {
18152
18152
  var s = this, l = function c(u, d) {
18153
18153
  var p;
18154
- if (je(d) !== "object") {
18154
+ if (He(d) !== "object") {
18155
18155
  for (var f = arguments.length, h = new Array(f > 2 ? f - 2 : 0), g = 2; g < f; g++)
18156
18156
  h[g - 2] = arguments[g];
18157
18157
  p = s.options.overloadTranslationOptionHandler([u, d].concat(h));
@@ -18228,7 +18228,7 @@ var Ni = function(t) {
18228
18228
  key: "dir",
18229
18229
  value: function(i) {
18230
18230
  if (i || (i = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !i) return "rtl";
18231
- var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new Uc(Jc());
18231
+ var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new Hc(Kc());
18232
18232
  return a.indexOf(o.getLanguagePartFromCode(i)) > -1 || i.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
18233
18233
  }
18234
18234
  }, {
@@ -18243,7 +18243,7 @@ var Ni = function(t) {
18243
18243
  l[u] = i[u];
18244
18244
  }), l.services = Xe({}, this.services), l.services.utils = {
18245
18245
  hasLoadedNamespace: l.hasLoadedNamespace.bind(l)
18246
- }, l.translator = new Hc(l.services, l.options), l.translator.on("*", function(u) {
18246
+ }, l.translator = new jc(l.services, l.options), l.translator.on("*", function(u) {
18247
18247
  for (var d = arguments.length, p = new Array(d > 1 ? d - 1 : 0), f = 1; f < d; f++)
18248
18248
  p[f - 1] = arguments[f];
18249
18249
  l.emit.apply(l, [u].concat(p));
@@ -18466,15 +18466,15 @@ function s3(t, n, e = {}) {
18466
18466
  }
18467
18467
  return null;
18468
18468
  }
18469
- var Os = {};
18469
+ var Ts = {};
18470
18470
  /*!
18471
18471
  * cookie
18472
18472
  * Copyright(c) 2012-2014 Roman Shtylman
18473
18473
  * Copyright(c) 2015 Douglas Christopher Wilson
18474
18474
  * MIT Licensed
18475
18475
  */
18476
- Os.parse = c3;
18477
- Os.serialize = u3;
18476
+ Ts.parse = c3;
18477
+ Ts.serialize = u3;
18478
18478
  var l3 = Object.prototype.toString, Zr = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
18479
18479
  function c3(t, n) {
18480
18480
  if (typeof t != "string")
@@ -18584,22 +18584,22 @@ function h3(t, n) {
18584
18584
  return t;
18585
18585
  }
18586
18586
  }
18587
- const Bo = (t) => Array.isArray(Za[t]) ? Za[t] : [Za[t]], m3 = (t, n) => Bo(t).find((r) => r === n), g3 = (t) => {
18587
+ const Do = (t) => Array.isArray(Za[t]) ? Za[t] : [Za[t]], m3 = (t, n) => Do(t).find((r) => r === n), g3 = (t) => {
18588
18588
  const { country: n, cookies: e, isFromWebview: r, acceptLanguageHeader: i } = t;
18589
18589
  let a = null;
18590
18590
  if (r) {
18591
18591
  const o = i;
18592
18592
  if (o) {
18593
- const s = Bo(n), l = s3(s, o);
18593
+ const s = Do(n), l = s3(s, o);
18594
18594
  l && (a = l);
18595
18595
  }
18596
18596
  }
18597
18597
  if (!a) {
18598
- const o = Os.parse(e).BaseDirectory;
18598
+ const o = Ts.parse(e).BaseDirectory;
18599
18599
  if (o)
18600
18600
  a = `${o.toLocaleLowerCase()}-${n == null ? void 0 : n.toLocaleUpperCase()}`;
18601
18601
  else {
18602
- const s = Bo(n);
18602
+ const s = Do(n);
18603
18603
  s ? a = s[0] : a = "fr-FR";
18604
18604
  }
18605
18605
  }
@@ -18610,15 +18610,15 @@ const Bo = (t) => Array.isArray(Za[t]) ? Za[t] : [Za[t]], m3 = (t, n) => Bo(t).f
18610
18610
  return Object.keys(t).forEach((r) => {
18611
18611
  const i = hp(r);
18612
18612
  e[i] = t[r];
18613
- }), e = n(e), e = Rs(e), e;
18613
+ }), e = n(e), e = Os(e), e;
18614
18614
  }, hp = (t) => {
18615
18615
  const n = t.replace(/^(Uxeng)/, "");
18616
18616
  return n.charAt(0).toLowerCase() + n.slice(1);
18617
18617
  };
18618
- function Rs(t) {
18618
+ function Os(t) {
18619
18619
  const n = {};
18620
18620
  for (const e in t)
18621
- t.hasOwnProperty(e) && (typeof t[e] == "object" ? n[e] = Rs(t[e]) : K2(n, e, t[e]));
18621
+ t.hasOwnProperty(e) && (typeof t[e] == "object" ? n[e] = Os(t[e]) : K2(n, e, t[e]));
18622
18622
  return n;
18623
18623
  }
18624
18624
  function mp(t, n) {
@@ -18626,27 +18626,27 @@ function mp(t, n) {
18626
18626
  return t.apply(n, arguments);
18627
18627
  };
18628
18628
  }
18629
- const { toString: y3 } = Object.prototype, { getPrototypeOf: Is } = Object, ya = /* @__PURE__ */ ((t) => (n) => {
18629
+ const { toString: y3 } = Object.prototype, { getPrototypeOf: Rs } = Object, ya = /* @__PURE__ */ ((t) => (n) => {
18630
18630
  const e = y3.call(n);
18631
18631
  return t[e] || (t[e] = e.slice(8, -1).toLowerCase());
18632
18632
  })(/* @__PURE__ */ Object.create(null)), ut = (t) => (t = t.toLowerCase(), (n) => ya(n) === t), ba = (t) => (n) => typeof n === t, { isArray: $n } = Array, xr = ba("undefined");
18633
18633
  function b3(t) {
18634
- return t !== null && !xr(t) && t.constructor !== null && !xr(t.constructor) && He(t.constructor.isBuffer) && t.constructor.isBuffer(t);
18634
+ return t !== null && !xr(t) && t.constructor !== null && !xr(t.constructor) && Ue(t.constructor.isBuffer) && t.constructor.isBuffer(t);
18635
18635
  }
18636
18636
  const gp = ut("ArrayBuffer");
18637
18637
  function w3(t) {
18638
18638
  let n;
18639
18639
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? n = ArrayBuffer.isView(t) : n = t && t.buffer && gp(t.buffer), n;
18640
18640
  }
18641
- const S3 = ba("string"), He = ba("function"), vp = ba("number"), wa = (t) => t !== null && typeof t == "object", k3 = (t) => t === !0 || t === !1, di = (t) => {
18641
+ const S3 = ba("string"), Ue = ba("function"), vp = ba("number"), wa = (t) => t !== null && typeof t == "object", k3 = (t) => t === !0 || t === !1, di = (t) => {
18642
18642
  if (ya(t) !== "object")
18643
18643
  return !1;
18644
- const n = Is(t);
18644
+ const n = Rs(t);
18645
18645
  return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
18646
- }, _3 = ut("Date"), E3 = ut("File"), C3 = ut("Blob"), x3 = ut("FileList"), A3 = (t) => wa(t) && He(t.pipe), T3 = (t) => {
18646
+ }, _3 = ut("Date"), E3 = ut("File"), C3 = ut("Blob"), x3 = ut("FileList"), A3 = (t) => wa(t) && Ue(t.pipe), T3 = (t) => {
18647
18647
  let n;
18648
- return t && (typeof FormData == "function" && t instanceof FormData || He(t.append) && ((n = ya(t)) === "formdata" || // detect form-data instance
18649
- n === "object" && He(t.toString) && t.toString() === "[object FormData]"));
18648
+ return t && (typeof FormData == "function" && t instanceof FormData || Ue(t.append) && ((n = ya(t)) === "formdata" || // detect form-data instance
18649
+ n === "object" && Ue(t.toString) && t.toString() === "[object FormData]"));
18650
18650
  }, O3 = ut("URLSearchParams"), R3 = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
18651
18651
  function Dr(t, n, { allOwnKeys: e = !1 } = {}) {
18652
18652
  if (t === null || typeof t > "u")
@@ -18672,17 +18672,17 @@ function yp(t, n) {
18672
18672
  return null;
18673
18673
  }
18674
18674
  const bp = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, wp = (t) => !xr(t) && t !== bp;
18675
- function jo() {
18675
+ function Bo() {
18676
18676
  const { caseless: t } = wp(this) && this || {}, n = {}, e = (r, i) => {
18677
18677
  const a = t && yp(n, i) || i;
18678
- di(n[a]) && di(r) ? n[a] = jo(n[a], r) : di(r) ? n[a] = jo({}, r) : $n(r) ? n[a] = r.slice() : n[a] = r;
18678
+ di(n[a]) && di(r) ? n[a] = Bo(n[a], r) : di(r) ? n[a] = Bo({}, r) : $n(r) ? n[a] = r.slice() : n[a] = r;
18679
18679
  };
18680
18680
  for (let r = 0, i = arguments.length; r < i; r++)
18681
18681
  arguments[r] && Dr(arguments[r], e);
18682
18682
  return n;
18683
18683
  }
18684
18684
  const I3 = (t, n, e, { allOwnKeys: r } = {}) => (Dr(n, (i, a) => {
18685
- e && He(i) ? t[a] = mp(i, e) : t[a] = i;
18685
+ e && Ue(i) ? t[a] = mp(i, e) : t[a] = i;
18686
18686
  }, { allOwnKeys: r }), t), L3 = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), P3 = (t, n, e, r) => {
18687
18687
  t.prototype = Object.create(n.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
18688
18688
  value: n.prototype
@@ -18694,7 +18694,7 @@ const I3 = (t, n, e, { allOwnKeys: r } = {}) => (Dr(n, (i, a) => {
18694
18694
  do {
18695
18695
  for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
18696
18696
  o = i[a], (!r || r(o, t, n)) && !s[o] && (n[o] = t[o], s[o] = !0);
18697
- t = e !== !1 && Is(t);
18697
+ t = e !== !1 && Rs(t);
18698
18698
  } while (t && (!e || e(t, n)) && t !== Object.prototype);
18699
18699
  return n;
18700
18700
  }, F3 = (t, n, e) => {
@@ -18710,7 +18710,7 @@ const I3 = (t, n, e, { allOwnKeys: r } = {}) => (Dr(n, (i, a) => {
18710
18710
  for (; n-- > 0; )
18711
18711
  e[n] = t[n];
18712
18712
  return e;
18713
- }, $3 = /* @__PURE__ */ ((t) => (n) => t && n instanceof t)(typeof Uint8Array < "u" && Is(Uint8Array)), D3 = (t, n) => {
18713
+ }, $3 = /* @__PURE__ */ ((t) => (n) => t && n instanceof t)(typeof Uint8Array < "u" && Rs(Uint8Array)), D3 = (t, n) => {
18714
18714
  const r = (t && t[Symbol.iterator]).call(t);
18715
18715
  let i;
18716
18716
  for (; (i = r.next()) && !i.done; ) {
@@ -18728,7 +18728,7 @@ const I3 = (t, n, e, { allOwnKeys: r } = {}) => (Dr(n, (i, a) => {
18728
18728
  function(e, r, i) {
18729
18729
  return r.toUpperCase() + i;
18730
18730
  }
18731
- ), Xc = (({ hasOwnProperty: t }) => (n, e) => t.call(n, e))(Object.prototype), U3 = ut("RegExp"), Sp = (t, n) => {
18731
+ ), Yc = (({ hasOwnProperty: t }) => (n, e) => t.call(n, e))(Object.prototype), U3 = ut("RegExp"), Sp = (t, n) => {
18732
18732
  const e = Object.getOwnPropertyDescriptors(t), r = {};
18733
18733
  Dr(e, (i, a) => {
18734
18734
  let o;
@@ -18736,10 +18736,10 @@ const I3 = (t, n, e, { allOwnKeys: r } = {}) => (Dr(n, (i, a) => {
18736
18736
  }), Object.defineProperties(t, r);
18737
18737
  }, z3 = (t) => {
18738
18738
  Sp(t, (n, e) => {
18739
- if (He(t) && ["arguments", "caller", "callee"].indexOf(e) !== -1)
18739
+ if (Ue(t) && ["arguments", "caller", "callee"].indexOf(e) !== -1)
18740
18740
  return !1;
18741
18741
  const r = t[e];
18742
- if (He(r)) {
18742
+ if (Ue(r)) {
18743
18743
  if (n.enumerable = !1, "writable" in n) {
18744
18744
  n.writable = !1;
18745
18745
  return;
@@ -18757,10 +18757,10 @@ const I3 = (t, n, e, { allOwnKeys: r } = {}) => (Dr(n, (i, a) => {
18757
18757
  };
18758
18758
  return $n(t) ? r(t) : r(String(t).split(n)), e;
18759
18759
  }, q3 = () => {
18760
- }, V3 = (t, n) => (t = +t, Number.isFinite(t) ? t : n), Ya = "abcdefghijklmnopqrstuvwxyz", Qc = "0123456789", kp = {
18761
- DIGIT: Qc,
18760
+ }, V3 = (t, n) => (t = +t, Number.isFinite(t) ? t : n), Ya = "abcdefghijklmnopqrstuvwxyz", Xc = "0123456789", kp = {
18761
+ DIGIT: Xc,
18762
18762
  ALPHA: Ya,
18763
- ALPHA_DIGIT: Ya + Ya.toUpperCase() + Qc
18763
+ ALPHA_DIGIT: Ya + Ya.toUpperCase() + Xc
18764
18764
  }, G3 = (t = 16, n = kp.ALPHA_DIGIT) => {
18765
18765
  let e = "";
18766
18766
  const { length: r } = n;
@@ -18769,7 +18769,7 @@ const I3 = (t, n, e, { allOwnKeys: r } = {}) => (Dr(n, (i, a) => {
18769
18769
  return e;
18770
18770
  };
18771
18771
  function K3(t) {
18772
- return !!(t && He(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
18772
+ return !!(t && Ue(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
18773
18773
  }
18774
18774
  const J3 = (t) => {
18775
18775
  const n = new Array(10), e = (r, i) => {
@@ -18788,7 +18788,7 @@ const J3 = (t) => {
18788
18788
  return r;
18789
18789
  };
18790
18790
  return e(t, 0);
18791
- }, Z3 = ut("AsyncFunction"), Y3 = (t) => t && (wa(t) || He(t)) && He(t.then) && He(t.catch), C = {
18791
+ }, Z3 = ut("AsyncFunction"), Y3 = (t) => t && (wa(t) || Ue(t)) && Ue(t.then) && Ue(t.catch), C = {
18792
18792
  isArray: $n,
18793
18793
  isArrayBuffer: gp,
18794
18794
  isBuffer: b3,
@@ -18804,13 +18804,13 @@ const J3 = (t) => {
18804
18804
  isFile: E3,
18805
18805
  isBlob: C3,
18806
18806
  isRegExp: U3,
18807
- isFunction: He,
18807
+ isFunction: Ue,
18808
18808
  isStream: A3,
18809
18809
  isURLSearchParams: O3,
18810
18810
  isTypedArray: $3,
18811
18811
  isFileList: x3,
18812
18812
  forEach: Dr,
18813
- merge: jo,
18813
+ merge: Bo,
18814
18814
  extend: I3,
18815
18815
  trim: R3,
18816
18816
  stripBOM: L3,
@@ -18823,8 +18823,8 @@ const J3 = (t) => {
18823
18823
  forEachEntry: D3,
18824
18824
  matchAll: B3,
18825
18825
  isHTMLForm: j3,
18826
- hasOwnProperty: Xc,
18827
- hasOwnProp: Xc,
18826
+ hasOwnProperty: Yc,
18827
+ hasOwnProp: Yc,
18828
18828
  // an alias to avoid ESLint no-prototype-builtins detection
18829
18829
  reduceDescriptors: Sp,
18830
18830
  freezeMethods: z3,
@@ -18893,19 +18893,19 @@ ae.from = (t, n, e, r, i, a) => {
18893
18893
  }, (s) => s !== "isAxiosError"), ae.call(o, t.message, n, e, r, i), o.cause = t, o.name = t.name, a && Object.assign(o, a), o;
18894
18894
  };
18895
18895
  const X3 = null;
18896
- function Ho(t) {
18896
+ function jo(t) {
18897
18897
  return C.isPlainObject(t) || C.isArray(t);
18898
18898
  }
18899
18899
  function Cp(t) {
18900
18900
  return C.endsWith(t, "[]") ? t.slice(0, -2) : t;
18901
18901
  }
18902
- function eu(t, n, e) {
18902
+ function Qc(t, n, e) {
18903
18903
  return t ? t.concat(n).map(function(i, a) {
18904
18904
  return i = Cp(i), !e && a ? "[" + i + "]" : i;
18905
18905
  }).join(e ? "." : "") : n;
18906
18906
  }
18907
18907
  function Q3(t) {
18908
- return C.isArray(t) && !t.some(Ho);
18908
+ return C.isArray(t) && !t.some(jo);
18909
18909
  }
18910
18910
  const ew = C.toFlatObject(C, {}, null, function(n) {
18911
18911
  return /^is[A-Z]/.test(n);
@@ -18940,17 +18940,17 @@ function Sa(t, n, e) {
18940
18940
  return g = Cp(g), y.forEach(function(w, N) {
18941
18941
  !(C.isUndefined(w) || w === null) && n.append(
18942
18942
  // eslint-disable-next-line no-nested-ternary
18943
- o === !0 ? eu([g], N, a) : o === null ? g : g + "[]",
18943
+ o === !0 ? Qc([g], N, a) : o === null ? g : g + "[]",
18944
18944
  c(w)
18945
18945
  );
18946
18946
  }), !1;
18947
18947
  }
18948
- return Ho(h) ? !0 : (n.append(eu(v, g, a), c(h)), !1);
18948
+ return jo(h) ? !0 : (n.append(Qc(v, g, a), c(h)), !1);
18949
18949
  }
18950
18950
  const d = [], p = Object.assign(ew, {
18951
18951
  defaultVisitor: u,
18952
18952
  convertValue: c,
18953
- isVisitable: Ho
18953
+ isVisitable: jo
18954
18954
  });
18955
18955
  function f(h, g) {
18956
18956
  if (!C.isUndefined(h)) {
@@ -18971,7 +18971,7 @@ function Sa(t, n, e) {
18971
18971
  throw new TypeError("data must be an object");
18972
18972
  return f(t), n;
18973
18973
  }
18974
- function tu(t) {
18974
+ function eu(t) {
18975
18975
  const n = {
18976
18976
  "!": "%21",
18977
18977
  "'": "%27",
@@ -18985,17 +18985,17 @@ function tu(t) {
18985
18985
  return n[r];
18986
18986
  });
18987
18987
  }
18988
- function Ls(t, n) {
18988
+ function Is(t, n) {
18989
18989
  this._pairs = [], t && Sa(t, this, n);
18990
18990
  }
18991
- const xp = Ls.prototype;
18991
+ const xp = Is.prototype;
18992
18992
  xp.append = function(n, e) {
18993
18993
  this._pairs.push([n, e]);
18994
18994
  };
18995
18995
  xp.toString = function(n) {
18996
18996
  const e = n ? function(r) {
18997
- return n.call(this, r, tu);
18998
- } : tu;
18997
+ return n.call(this, r, eu);
18998
+ } : eu;
18999
18999
  return this._pairs.map(function(i) {
19000
19000
  return e(i[0]) + "=" + e(i[1]);
19001
19001
  }, "").join("&");
@@ -19008,13 +19008,13 @@ function Ap(t, n, e) {
19008
19008
  return t;
19009
19009
  const r = e && e.encode || tw, i = e && e.serialize;
19010
19010
  let a;
19011
- if (i ? a = i(n, e) : a = C.isURLSearchParams(n) ? n.toString() : new Ls(n, e).toString(r), a) {
19011
+ if (i ? a = i(n, e) : a = C.isURLSearchParams(n) ? n.toString() : new Is(n, e).toString(r), a) {
19012
19012
  const o = t.indexOf("#");
19013
19013
  o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
19014
19014
  }
19015
19015
  return t;
19016
19016
  }
19017
- class nu {
19017
+ class tu {
19018
19018
  constructor() {
19019
19019
  this.handlers = [];
19020
19020
  }
@@ -19072,7 +19072,7 @@ const Tp = {
19072
19072
  silentJSONParsing: !0,
19073
19073
  forcedJSONParsing: !0,
19074
19074
  clarifyTimeoutError: !1
19075
- }, nw = typeof URLSearchParams < "u" ? URLSearchParams : Ls, rw = typeof FormData < "u" ? FormData : null, iw = typeof Blob < "u" ? Blob : null, aw = {
19075
+ }, nw = typeof URLSearchParams < "u" ? URLSearchParams : Is, rw = typeof FormData < "u" ? FormData : null, iw = typeof Blob < "u" ? Blob : null, aw = {
19076
19076
  isBrowser: !0,
19077
19077
  classes: {
19078
19078
  URLSearchParams: nw,
@@ -19226,7 +19226,7 @@ const fw = C.toObjectSet([
19226
19226
  `).forEach(function(o) {
19227
19227
  i = o.indexOf(":"), e = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!e || n[e] && fw[e]) && (e === "set-cookie" ? n[e] ? n[e].push(r) : n[e] = [r] : n[e] = n[e] ? n[e] + ", " + r : r);
19228
19228
  }), n;
19229
- }, ru = Symbol("internals");
19229
+ }, nu = Symbol("internals");
19230
19230
  function Vn(t) {
19231
19231
  return t && String(t).trim().toLowerCase();
19232
19232
  }
@@ -19265,7 +19265,7 @@ function yw(t, n) {
19265
19265
  });
19266
19266
  });
19267
19267
  }
19268
- class Ue {
19268
+ class ze {
19269
19269
  constructor(n) {
19270
19270
  n && this.set(n);
19271
19271
  }
@@ -19364,7 +19364,7 @@ class Ue {
19364
19364
  return e.forEach((i) => r.set(i)), r;
19365
19365
  }
19366
19366
  static accessor(n) {
19367
- const r = (this[ru] = this[ru] = {
19367
+ const r = (this[nu] = this[nu] = {
19368
19368
  accessors: {}
19369
19369
  }).accessors, i = this.prototype;
19370
19370
  function a(o) {
@@ -19374,8 +19374,8 @@ class Ue {
19374
19374
  return C.isArray(n) ? n.forEach(a) : a(n), this;
19375
19375
  }
19376
19376
  }
19377
- Ue.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
19378
- C.reduceDescriptors(Ue.prototype, ({ value: t }, n) => {
19377
+ ze.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
19378
+ C.reduceDescriptors(ze.prototype, ({ value: t }, n) => {
19379
19379
  let e = n[0].toUpperCase() + n.slice(1);
19380
19380
  return {
19381
19381
  get: () => t,
@@ -19384,9 +19384,9 @@ C.reduceDescriptors(Ue.prototype, ({ value: t }, n) => {
19384
19384
  }
19385
19385
  };
19386
19386
  });
19387
- C.freezeMethods(Ue);
19387
+ C.freezeMethods(ze);
19388
19388
  function Qa(t, n) {
19389
- const e = this || Br, r = n || e, i = Ue.from(r.headers);
19389
+ const e = this || Br, r = n || e, i = ze.from(r.headers);
19390
19390
  let a = r.data;
19391
19391
  return C.forEach(t, function(s) {
19392
19392
  a = s.call(e, a, i.normalize(), n ? n.status : void 0);
@@ -19499,7 +19499,7 @@ function Cw(t, n) {
19499
19499
  return f ? Math.round(p * 1e3 / f) : void 0;
19500
19500
  };
19501
19501
  }
19502
- function iu(t, n) {
19502
+ function ru(t, n) {
19503
19503
  let e = 0;
19504
19504
  const r = Cw(50, 250);
19505
19505
  return (i) => {
@@ -19520,7 +19520,7 @@ function iu(t, n) {
19520
19520
  const xw = typeof XMLHttpRequest < "u", Aw = xw && function(t) {
19521
19521
  return new Promise(function(e, r) {
19522
19522
  let i = t.data;
19523
- const a = Ue.from(t.headers).normalize();
19523
+ const a = ze.from(t.headers).normalize();
19524
19524
  let { responseType: o, withXSRFToken: s } = t, l;
19525
19525
  function c() {
19526
19526
  t.cancelToken && t.cancelToken.unsubscribe(l), t.signal && t.signal.removeEventListener("abort", l);
@@ -19544,7 +19544,7 @@ const xw = typeof XMLHttpRequest < "u", Aw = xw && function(t) {
19544
19544
  function f() {
19545
19545
  if (!d)
19546
19546
  return;
19547
- const g = Ue.from(
19547
+ const g = ze.from(
19548
19548
  "getAllResponseHeaders" in d && d.getAllResponseHeaders()
19549
19549
  ), y = {
19550
19550
  data: !o || o === "text" || o === "json" ? d.responseText : d.response,
@@ -19581,7 +19581,7 @@ const xw = typeof XMLHttpRequest < "u", Aw = xw && function(t) {
19581
19581
  }
19582
19582
  i === void 0 && a.setContentType(null), "setRequestHeader" in d && C.forEach(a.toJSON(), function(v, y) {
19583
19583
  d.setRequestHeader(y, v);
19584
- }), C.isUndefined(t.withCredentials) || (d.withCredentials = !!t.withCredentials), o && o !== "json" && (d.responseType = t.responseType), typeof t.onDownloadProgress == "function" && d.addEventListener("progress", iu(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", iu(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (g) => {
19584
+ }), C.isUndefined(t.withCredentials) || (d.withCredentials = !!t.withCredentials), o && o !== "json" && (d.responseType = t.responseType), typeof t.onDownloadProgress == "function" && d.addEventListener("progress", ru(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && d.upload && d.upload.addEventListener("progress", ru(t.onUploadProgress)), (t.cancelToken || t.signal) && (l = (g) => {
19585
19585
  d && (r(!g || g.type ? new jr(null, t, d) : g), d.abort(), d = null);
19586
19586
  }, t.cancelToken && t.cancelToken.subscribe(l), t.signal && (t.signal.aborted ? l() : t.signal.addEventListener("abort", l)));
19587
19587
  const h = Ew(p);
@@ -19591,11 +19591,11 @@ const xw = typeof XMLHttpRequest < "u", Aw = xw && function(t) {
19591
19591
  }
19592
19592
  d.send(i || null);
19593
19593
  });
19594
- }, Uo = {
19594
+ }, Ho = {
19595
19595
  http: X3,
19596
19596
  xhr: Aw
19597
19597
  };
19598
- C.forEach(Uo, (t, n) => {
19598
+ C.forEach(Ho, (t, n) => {
19599
19599
  if (t) {
19600
19600
  try {
19601
19601
  Object.defineProperty(t, "name", { value: n });
@@ -19604,7 +19604,7 @@ C.forEach(Uo, (t, n) => {
19604
19604
  Object.defineProperty(t, "adapterName", { value: n });
19605
19605
  }
19606
19606
  });
19607
- const au = (t) => `- ${t}`, Tw = (t) => C.isFunction(t) || t === null || t === !1, Pp = {
19607
+ const iu = (t) => `- ${t}`, Tw = (t) => C.isFunction(t) || t === null || t === !1, Pp = {
19608
19608
  getAdapter: (t) => {
19609
19609
  t = C.isArray(t) ? t : [t];
19610
19610
  const { length: n } = t;
@@ -19613,7 +19613,7 @@ const au = (t) => `- ${t}`, Tw = (t) => C.isFunction(t) || t === null || t === !
19613
19613
  for (let a = 0; a < n; a++) {
19614
19614
  e = t[a];
19615
19615
  let o;
19616
- if (r = e, !Tw(e) && (r = Uo[(o = String(e)).toLowerCase()], r === void 0))
19616
+ if (r = e, !Tw(e) && (r = Ho[(o = String(e)).toLowerCase()], r === void 0))
19617
19617
  throw new ae(`Unknown adapter '${o}'`);
19618
19618
  if (r)
19619
19619
  break;
@@ -19624,8 +19624,8 @@ const au = (t) => `- ${t}`, Tw = (t) => C.isFunction(t) || t === null || t === !
19624
19624
  ([s, l]) => `adapter ${s} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
19625
19625
  );
19626
19626
  let o = n ? a.length > 1 ? `since :
19627
- ` + a.map(au).join(`
19628
- `) : " " + au(a[0]) : "as no adapter specified";
19627
+ ` + a.map(iu).join(`
19628
+ `) : " " + iu(a[0]) : "as no adapter specified";
19629
19629
  throw new ae(
19630
19630
  "There is no suitable adapter to dispatch the request " + o,
19631
19631
  "ERR_NOT_SUPPORT"
@@ -19633,14 +19633,14 @@ const au = (t) => `- ${t}`, Tw = (t) => C.isFunction(t) || t === null || t === !
19633
19633
  }
19634
19634
  return r;
19635
19635
  },
19636
- adapters: Uo
19636
+ adapters: Ho
19637
19637
  };
19638
19638
  function eo(t) {
19639
19639
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
19640
19640
  throw new jr(null, t);
19641
19641
  }
19642
- function ou(t) {
19643
- return eo(t), t.headers = Ue.from(t.headers), t.data = Qa.call(
19642
+ function au(t) {
19643
+ return eo(t), t.headers = ze.from(t.headers), t.data = Qa.call(
19644
19644
  t,
19645
19645
  t.transformRequest
19646
19646
  ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Pp.getAdapter(t.adapter || Br.adapter)(t).then(function(r) {
@@ -19648,16 +19648,16 @@ function ou(t) {
19648
19648
  t,
19649
19649
  t.transformResponse,
19650
19650
  r
19651
- ), r.headers = Ue.from(r.headers), r;
19651
+ ), r.headers = ze.from(r.headers), r;
19652
19652
  }, function(r) {
19653
19653
  return Ip(r) || (eo(t), r && r.response && (r.response.data = Qa.call(
19654
19654
  t,
19655
19655
  t.transformResponse,
19656
19656
  r.response
19657
- ), r.response.headers = Ue.from(r.response.headers))), Promise.reject(r);
19657
+ ), r.response.headers = ze.from(r.response.headers))), Promise.reject(r);
19658
19658
  });
19659
19659
  }
19660
- const su = (t) => t instanceof Ue ? { ...t } : t;
19660
+ const ou = (t) => t instanceof ze ? { ...t } : t;
19661
19661
  function On(t, n) {
19662
19662
  n = n || {};
19663
19663
  const e = {};
@@ -19715,21 +19715,21 @@ function On(t, n) {
19715
19715
  socketPath: o,
19716
19716
  responseEncoding: o,
19717
19717
  validateStatus: s,
19718
- headers: (c, u) => i(su(c), su(u), !0)
19718
+ headers: (c, u) => i(ou(c), ou(u), !0)
19719
19719
  };
19720
19720
  return C.forEach(Object.keys(Object.assign({}, t, n)), function(u) {
19721
19721
  const d = l[u] || i, p = d(t[u], n[u], u);
19722
19722
  C.isUndefined(p) && d !== s || (e[u] = p);
19723
19723
  }), e;
19724
19724
  }
19725
- const Mp = "1.6.8", Ps = {};
19725
+ const Mp = "1.6.8", Ls = {};
19726
19726
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, n) => {
19727
- Ps[t] = function(r) {
19727
+ Ls[t] = function(r) {
19728
19728
  return typeof r === t || "a" + (n < 1 ? "n " : " ") + t;
19729
19729
  };
19730
19730
  });
19731
- const lu = {};
19732
- Ps.transitional = function(n, e, r) {
19731
+ const su = {};
19732
+ Ls.transitional = function(n, e, r) {
19733
19733
  function i(a, o) {
19734
19734
  return "[Axios v" + Mp + "] Transitional option '" + a + "'" + o + (r ? ". " + r : "");
19735
19735
  }
@@ -19739,7 +19739,7 @@ Ps.transitional = function(n, e, r) {
19739
19739
  i(o, " has been removed" + (e ? " in " + e : "")),
19740
19740
  ae.ERR_DEPRECATED
19741
19741
  );
19742
- return e && !lu[o] && (lu[o] = !0, console.warn(
19742
+ return e && !su[o] && (su[o] = !0, console.warn(
19743
19743
  i(
19744
19744
  o,
19745
19745
  " has been deprecated since v" + e + " and will be removed in the near future"
@@ -19764,15 +19764,15 @@ function Ow(t, n, e) {
19764
19764
  throw new ae("Unknown option " + a, ae.ERR_BAD_OPTION);
19765
19765
  }
19766
19766
  }
19767
- const zo = {
19767
+ const Uo = {
19768
19768
  assertOptions: Ow,
19769
- validators: Ps
19770
- }, vt = zo.validators;
19769
+ validators: Ls
19770
+ }, vt = Uo.validators;
19771
19771
  class Wt {
19772
19772
  constructor(n) {
19773
19773
  this.defaults = n, this.interceptors = {
19774
- request: new nu(),
19775
- response: new nu()
19774
+ request: new tu(),
19775
+ response: new tu()
19776
19776
  };
19777
19777
  }
19778
19778
  /**
@@ -19800,13 +19800,13 @@ class Wt {
19800
19800
  _request(n, e) {
19801
19801
  typeof n == "string" ? (e = e || {}, e.url = n) : e = n || {}, e = On(this.defaults, e);
19802
19802
  const { transitional: r, paramsSerializer: i, headers: a } = e;
19803
- r !== void 0 && zo.assertOptions(r, {
19803
+ r !== void 0 && Uo.assertOptions(r, {
19804
19804
  silentJSONParsing: vt.transitional(vt.boolean),
19805
19805
  forcedJSONParsing: vt.transitional(vt.boolean),
19806
19806
  clarifyTimeoutError: vt.transitional(vt.boolean)
19807
19807
  }, !1), i != null && (C.isFunction(i) ? e.paramsSerializer = {
19808
19808
  serialize: i
19809
- } : zo.assertOptions(i, {
19809
+ } : Uo.assertOptions(i, {
19810
19810
  encode: vt.function,
19811
19811
  serialize: vt.function
19812
19812
  }, !0)), e.method = (e.method || this.defaults.method || "get").toLowerCase();
@@ -19819,7 +19819,7 @@ class Wt {
19819
19819
  (h) => {
19820
19820
  delete a[h];
19821
19821
  }
19822
- ), e.headers = Ue.concat(o, a);
19822
+ ), e.headers = ze.concat(o, a);
19823
19823
  const s = [];
19824
19824
  let l = !0;
19825
19825
  this.interceptors.request.forEach(function(g) {
@@ -19831,7 +19831,7 @@ class Wt {
19831
19831
  });
19832
19832
  let u, d = 0, p;
19833
19833
  if (!l) {
19834
- const h = [ou.bind(this), void 0];
19834
+ const h = [au.bind(this), void 0];
19835
19835
  for (h.unshift.apply(h, s), h.push.apply(h, c), p = h.length, u = Promise.resolve(e); d < p; )
19836
19836
  u = u.then(h[d++], h[d++]);
19837
19837
  return u;
@@ -19848,7 +19848,7 @@ class Wt {
19848
19848
  }
19849
19849
  }
19850
19850
  try {
19851
- u = ou.call(this, f);
19851
+ u = au.call(this, f);
19852
19852
  } catch (h) {
19853
19853
  return Promise.reject(h);
19854
19854
  }
@@ -19886,7 +19886,7 @@ C.forEach(["post", "put", "patch"], function(n) {
19886
19886
  }
19887
19887
  Wt.prototype[n] = e(), Wt.prototype[n + "Form"] = e(!0);
19888
19888
  });
19889
- class Ms {
19889
+ class Ps {
19890
19890
  constructor(n) {
19891
19891
  if (typeof n != "function")
19892
19892
  throw new TypeError("executor must be a function.");
@@ -19946,7 +19946,7 @@ class Ms {
19946
19946
  static source() {
19947
19947
  let n;
19948
19948
  return {
19949
- token: new Ms(function(i) {
19949
+ token: new Ps(function(i) {
19950
19950
  n = i;
19951
19951
  }),
19952
19952
  cancel: n
@@ -19961,7 +19961,7 @@ function Rw(t) {
19961
19961
  function Iw(t) {
19962
19962
  return C.isObject(t) && t.isAxiosError === !0;
19963
19963
  }
19964
- const Wo = {
19964
+ const zo = {
19965
19965
  Continue: 100,
19966
19966
  SwitchingProtocols: 101,
19967
19967
  Processing: 102,
@@ -20026,8 +20026,8 @@ const Wo = {
20026
20026
  NotExtended: 510,
20027
20027
  NetworkAuthenticationRequired: 511
20028
20028
  };
20029
- Object.entries(Wo).forEach(([t, n]) => {
20030
- Wo[n] = t;
20029
+ Object.entries(zo).forEach(([t, n]) => {
20030
+ zo[n] = t;
20031
20031
  });
20032
20032
  function Fp(t) {
20033
20033
  const n = new Wt(t), e = mp(Wt.prototype.request, n);
@@ -20038,7 +20038,7 @@ function Fp(t) {
20038
20038
  const U = Fp(Br);
20039
20039
  U.Axios = Wt;
20040
20040
  U.CanceledError = jr;
20041
- U.CancelToken = Ms;
20041
+ U.CancelToken = Ps;
20042
20042
  U.isCancel = Ip;
20043
20043
  U.VERSION = Mp;
20044
20044
  U.toFormData = Sa;
@@ -20050,12 +20050,12 @@ U.all = function(n) {
20050
20050
  U.spread = Rw;
20051
20051
  U.isAxiosError = Iw;
20052
20052
  U.mergeConfig = On;
20053
- U.AxiosHeaders = Ue;
20053
+ U.AxiosHeaders = ze;
20054
20054
  U.formToJSON = (t) => Rp(C.isHTMLForm(t) ? new FormData(t) : t);
20055
20055
  U.getAdapter = Pp.getAdapter;
20056
- U.HttpStatusCode = Wo;
20056
+ U.HttpStatusCode = zo;
20057
20057
  U.default = U;
20058
- class Fs {
20058
+ class Ms {
20059
20059
  constructor({ format: n, successHandler: e, ...r } = {}) {
20060
20060
  j(this, "instance");
20061
20061
  j(this, "format");
@@ -20119,7 +20119,7 @@ class Fs {
20119
20119
  }, new FormData());
20120
20120
  }
20121
20121
  }
20122
- j(Fs, "setDefaults", (n, e) => {
20122
+ j(Ms, "setDefaults", (n, e) => {
20123
20123
  U.defaults.baseURL = n, U.defaults.withCredentials = !0, e && Object.entries(e).forEach(([r, i]) => {
20124
20124
  U.defaults.headers.common[r] = i;
20125
20125
  });
@@ -20129,12 +20129,12 @@ const ce = (t, n) => {
20129
20129
  return U.isAxiosError(t) && ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === n;
20130
20130
  };
20131
20131
  var Yn, mn;
20132
- class qo {
20132
+ class Wo {
20133
20133
  }
20134
- j(qo, "ContentTranslationGet", (Yn = class {
20135
- }, j(Yn, "isBadRequestProblemDetail", (n) => U.isAxiosError(n) && ce(n, 400)), j(Yn, "isUnauthorizeProblemDetail", (n) => U.isAxiosError(n) && ce(n, 401)), j(Yn, "isProblemDetails", (n) => U.isAxiosError(n) && ce(n, 500)), Yn)), j(qo, "ContentReportPost", (mn = class {
20134
+ j(Wo, "ContentTranslationGet", (Yn = class {
20135
+ }, j(Yn, "isBadRequestProblemDetail", (n) => U.isAxiosError(n) && ce(n, 400)), j(Yn, "isUnauthorizeProblemDetail", (n) => U.isAxiosError(n) && ce(n, 401)), j(Yn, "isProblemDetails", (n) => U.isAxiosError(n) && ce(n, 500)), Yn)), j(Wo, "ContentReportPost", (mn = class {
20136
20136
  }, j(mn, "isBadRequestProblemDetail", (n) => U.isAxiosError(n) && ce(n, 400)), j(mn, "isUnauthorizeProblemDetail", (n) => U.isAxiosError(n) && ce(n, 401)), j(mn, "isValidationProblemDetails", (n) => U.isAxiosError(n) && ce(n, 422)), j(mn, "isProblemDetails", (n) => U.isAxiosError(n) && ce(n, 500)), mn));
20137
- const kn = class kn extends Fs {
20137
+ const kn = class kn extends Ms {
20138
20138
  constructor() {
20139
20139
  super(...arguments);
20140
20140
  /** ContentService API methods */
@@ -20172,8 +20172,8 @@ j(kn, "Endpoints", {
20172
20172
  contentTranslationGet: "/api/content/translation",
20173
20173
  contentReportPost: "/api/content/report"
20174
20174
  }), /** ContentService API static errors typeguards */
20175
- j(kn, "Errors", qo);
20176
- let Vo = kn;
20175
+ j(kn, "Errors", Wo);
20176
+ let qo = kn;
20177
20177
  var Lw = Error, Pw = EvalError, Mw = RangeError, Fw = ReferenceError, Np = SyntaxError, Hr = TypeError, Nw = URIError, $w = function() {
20178
20178
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
20179
20179
  return !1;
@@ -20197,13 +20197,13 @@ var Lw = Error, Pw = EvalError, Mw = RangeError, Fw = ReferenceError, Np = Synta
20197
20197
  return !1;
20198
20198
  }
20199
20199
  return !0;
20200
- }, cu = typeof Symbol < "u" && Symbol, Dw = $w, Bw = function() {
20201
- return typeof cu != "function" || typeof Symbol != "function" || typeof cu("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Dw();
20202
- }, uu = {
20200
+ }, lu = typeof Symbol < "u" && Symbol, Dw = $w, Bw = function() {
20201
+ return typeof lu != "function" || typeof Symbol != "function" || typeof lu("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Dw();
20202
+ }, cu = {
20203
20203
  foo: {}
20204
20204
  }, jw = Object, Hw = function() {
20205
- return { __proto__: uu }.foo === uu.foo && !({ __proto__: null } instanceof jw);
20206
- }, Uw = "Function.prototype.bind called on incompatible ", zw = Object.prototype.toString, Ww = Math.max, qw = "[object Function]", du = function(n, e) {
20205
+ return { __proto__: cu }.foo === cu.foo && !({ __proto__: null } instanceof jw);
20206
+ }, Uw = "Function.prototype.bind called on incompatible ", zw = Object.prototype.toString, Ww = Math.max, qw = "[object Function]", uu = function(n, e) {
20207
20207
  for (var r = [], i = 0; i < n.length; i += 1)
20208
20208
  r[i] = n[i];
20209
20209
  for (var a = 0; a < e.length; a += 1)
@@ -20225,13 +20225,13 @@ var Lw = Error, Pw = EvalError, Mw = RangeError, Fw = ReferenceError, Np = Synta
20225
20225
  if (this instanceof i) {
20226
20226
  var u = e.apply(
20227
20227
  this,
20228
- du(r, arguments)
20228
+ uu(r, arguments)
20229
20229
  );
20230
20230
  return Object(u) === u ? u : this;
20231
20231
  }
20232
20232
  return e.apply(
20233
20233
  n,
20234
- du(r, arguments)
20234
+ uu(r, arguments)
20235
20235
  );
20236
20236
  }, o = Ww(0, e.length - r.length), s = [], l = 0; l < o; l++)
20237
20237
  s[l] = "$" + l;
@@ -20241,7 +20241,7 @@ var Lw = Error, Pw = EvalError, Mw = RangeError, Fw = ReferenceError, Np = Synta
20241
20241
  c.prototype = e.prototype, i.prototype = new c(), c.prototype = null;
20242
20242
  }
20243
20243
  return i;
20244
- }, Jw = Kw, Ns = Function.prototype.bind || Jw, Zw = Function.prototype.call, Yw = Object.prototype.hasOwnProperty, Xw = Ns, Qw = Xw.call(Zw, Yw), re, e4 = Lw, t4 = Pw, n4 = Mw, r4 = Fw, Rn = Np, En = Hr, i4 = Nw, $p = Function, to = function(t) {
20244
+ }, Jw = Kw, Fs = Function.prototype.bind || Jw, Zw = Function.prototype.call, Yw = Object.prototype.hasOwnProperty, Xw = Fs, Qw = Xw.call(Zw, Yw), re, e4 = Lw, t4 = Pw, n4 = Mw, r4 = Fw, Rn = Np, En = Hr, i4 = Nw, $p = Function, to = function(t) {
20245
20245
  try {
20246
20246
  return $p('"use strict"; return (' + t + ").constructor;")();
20247
20247
  } catch {
@@ -20360,7 +20360,7 @@ var c4 = function t(n) {
20360
20360
  i && _e && (e = _e(i.prototype));
20361
20361
  }
20362
20362
  return Vt[n] = e, e;
20363
- }, pu = {
20363
+ }, du = {
20364
20364
  __proto__: null,
20365
20365
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
20366
20366
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -20413,19 +20413,19 @@ var c4 = function t(n) {
20413
20413
  "%URIErrorPrototype%": ["URIError", "prototype"],
20414
20414
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
20415
20415
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
20416
- }, Ur = Ns, $i = Qw, u4 = Ur.call(Function.call, Array.prototype.concat), d4 = Ur.call(Function.apply, Array.prototype.splice), fu = Ur.call(Function.call, String.prototype.replace), Di = Ur.call(Function.call, String.prototype.slice), p4 = Ur.call(Function.call, RegExp.prototype.exec), f4 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, h4 = /\\(\\)?/g, m4 = function(n) {
20416
+ }, Ur = Fs, $i = Qw, u4 = Ur.call(Function.call, Array.prototype.concat), d4 = Ur.call(Function.apply, Array.prototype.splice), pu = Ur.call(Function.call, String.prototype.replace), Di = Ur.call(Function.call, String.prototype.slice), p4 = Ur.call(Function.call, RegExp.prototype.exec), f4 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, h4 = /\\(\\)?/g, m4 = function(n) {
20417
20417
  var e = Di(n, 0, 1), r = Di(n, -1);
20418
20418
  if (e === "%" && r !== "%")
20419
20419
  throw new Rn("invalid intrinsic syntax, expected closing `%`");
20420
20420
  if (r === "%" && e !== "%")
20421
20421
  throw new Rn("invalid intrinsic syntax, expected opening `%`");
20422
20422
  var i = [];
20423
- return fu(n, f4, function(a, o, s, l) {
20424
- i[i.length] = s ? fu(l, h4, "$1") : o || a;
20423
+ return pu(n, f4, function(a, o, s, l) {
20424
+ i[i.length] = s ? pu(l, h4, "$1") : o || a;
20425
20425
  }), i;
20426
20426
  }, g4 = function(n, e) {
20427
20427
  var r = n, i;
20428
- if ($i(pu, r) && (i = pu[r], r = "%" + i[0] + "%"), $i(Vt, r)) {
20428
+ if ($i(du, r) && (i = du[r], r = "%" + i[0] + "%"), $i(Vt, r)) {
20429
20429
  var a = Vt[r];
20430
20430
  if (a === Sn && (a = c4(r)), typeof a > "u" && !e)
20431
20431
  throw new En("intrinsic " + n + " exists, but is not available. Please file an issue!");
@@ -20466,10 +20466,10 @@ var c4 = function t(n) {
20466
20466
  }
20467
20467
  }
20468
20468
  return s;
20469
- }, Dp = { exports: {} }, ro, hu;
20470
- function $s() {
20471
- if (hu) return ro;
20472
- hu = 1;
20469
+ }, Dp = { exports: {} }, ro, fu;
20470
+ function Ns() {
20471
+ if (fu) return ro;
20472
+ fu = 1;
20473
20473
  var t = Dn, n = t("%Object.defineProperty%", !0) || !1;
20474
20474
  if (n)
20475
20475
  try {
@@ -20486,7 +20486,7 @@ if (fi)
20486
20486
  } catch {
20487
20487
  fi = null;
20488
20488
  }
20489
- var Bp = fi, mu = $s(), y4 = Np, hn = Hr, gu = Bp, b4 = function(n, e, r) {
20489
+ var Bp = fi, hu = Ns(), y4 = Np, hn = Hr, mu = Bp, b4 = function(n, e, r) {
20490
20490
  if (!n || typeof n != "object" && typeof n != "function")
20491
20491
  throw new hn("`obj` must be an object or a function`");
20492
20492
  if (typeof e != "string" && typeof e != "symbol")
@@ -20499,9 +20499,9 @@ var Bp = fi, mu = $s(), y4 = Np, hn = Hr, gu = Bp, b4 = function(n, e, r) {
20499
20499
  throw new hn("`nonConfigurable`, if provided, must be a boolean or null");
20500
20500
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
20501
20501
  throw new hn("`loose`, if provided, must be a boolean");
20502
- var i = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, o = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, l = !!gu && gu(n, e);
20503
- if (mu)
20504
- mu(n, e, {
20502
+ var i = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, o = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : !1, l = !!mu && mu(n, e);
20503
+ if (hu)
20504
+ hu(n, e, {
20505
20505
  configurable: o === null && l ? l.configurable : !o,
20506
20506
  enumerable: i === null && l ? l.enumerable : !i,
20507
20507
  value: r,
@@ -20511,36 +20511,36 @@ var Bp = fi, mu = $s(), y4 = Np, hn = Hr, gu = Bp, b4 = function(n, e, r) {
20511
20511
  n[e] = r;
20512
20512
  else
20513
20513
  throw new y4("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
20514
- }, Go = $s(), jp = function() {
20515
- return !!Go;
20514
+ }, Vo = Ns(), jp = function() {
20515
+ return !!Vo;
20516
20516
  };
20517
20517
  jp.hasArrayLengthDefineBug = function() {
20518
- if (!Go)
20518
+ if (!Vo)
20519
20519
  return null;
20520
20520
  try {
20521
- return Go([], "length", { value: 1 }).length !== 1;
20521
+ return Vo([], "length", { value: 1 }).length !== 1;
20522
20522
  } catch {
20523
20523
  return !0;
20524
20524
  }
20525
20525
  };
20526
- var w4 = jp, S4 = Dn, vu = b4, k4 = w4(), yu = Bp, bu = Hr, _4 = S4("%Math.floor%"), E4 = function(n, e) {
20526
+ var w4 = jp, S4 = Dn, gu = b4, k4 = w4(), vu = Bp, yu = Hr, _4 = S4("%Math.floor%"), E4 = function(n, e) {
20527
20527
  if (typeof n != "function")
20528
- throw new bu("`fn` is not a function");
20528
+ throw new yu("`fn` is not a function");
20529
20529
  if (typeof e != "number" || e < 0 || e > 4294967295 || _4(e) !== e)
20530
- throw new bu("`length` must be a positive 32-bit integer");
20530
+ throw new yu("`length` must be a positive 32-bit integer");
20531
20531
  var r = arguments.length > 2 && !!arguments[2], i = !0, a = !0;
20532
- if ("length" in n && yu) {
20533
- var o = yu(n, "length");
20532
+ if ("length" in n && vu) {
20533
+ var o = vu(n, "length");
20534
20534
  o && !o.configurable && (i = !1), o && !o.writable && (a = !1);
20535
20535
  }
20536
- return (i || a || !r) && (k4 ? vu(
20536
+ return (i || a || !r) && (k4 ? gu(
20537
20537
  /** @type {Parameters<define>[0]} */
20538
20538
  n,
20539
20539
  "length",
20540
20540
  e,
20541
20541
  !0,
20542
20542
  !0
20543
- ) : vu(
20543
+ ) : gu(
20544
20544
  /** @type {Parameters<define>[0]} */
20545
20545
  n,
20546
20546
  "length",
@@ -20548,7 +20548,7 @@ var w4 = jp, S4 = Dn, vu = b4, k4 = w4(), yu = Bp, bu = Hr, _4 = S4("%Math.floor
20548
20548
  )), n;
20549
20549
  };
20550
20550
  (function(t) {
20551
- var n = Ns, e = Dn, r = E4, i = Hr, a = e("%Function.prototype.apply%"), o = e("%Function.prototype.call%"), s = e("%Reflect.apply%", !0) || n.call(o, a), l = $s(), c = e("%Math.max%");
20551
+ var n = Fs, e = Dn, r = E4, i = Hr, a = e("%Function.prototype.apply%"), o = e("%Function.prototype.call%"), s = e("%Reflect.apply%", !0) || n.call(o, a), l = Ns(), c = e("%Math.max%");
20552
20552
  t.exports = function(p) {
20553
20553
  if (typeof p != "function")
20554
20554
  throw new i("a function is required");
@@ -20572,23 +20572,23 @@ const T4 = {}, O4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
20572
20572
  __proto__: null,
20573
20573
  default: T4
20574
20574
  }, Symbol.toStringTag, { value: "Module" })), R4 = /* @__PURE__ */ V1(O4);
20575
- var Ds = typeof Map == "function" && Map.prototype, io = Object.getOwnPropertyDescriptor && Ds ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Bi = Ds && io && typeof io.get == "function" ? io.get : null, wu = Ds && Map.prototype.forEach, Bs = typeof Set == "function" && Set.prototype, ao = Object.getOwnPropertyDescriptor && Bs ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ji = Bs && ao && typeof ao.get == "function" ? ao.get : null, Su = Bs && Set.prototype.forEach, I4 = typeof WeakMap == "function" && WeakMap.prototype, cr = I4 ? WeakMap.prototype.has : null, L4 = typeof WeakSet == "function" && WeakSet.prototype, ur = L4 ? WeakSet.prototype.has : null, P4 = typeof WeakRef == "function" && WeakRef.prototype, ku = P4 ? WeakRef.prototype.deref : null, M4 = Boolean.prototype.valueOf, F4 = Object.prototype.toString, N4 = Function.prototype.toString, $4 = String.prototype.match, js = String.prototype.slice, wt = String.prototype.replace, D4 = String.prototype.toUpperCase, _u = String.prototype.toLowerCase, zp = RegExp.prototype.test, Eu = Array.prototype.concat, nt = Array.prototype.join, B4 = Array.prototype.slice, Cu = Math.floor, Ko = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, oo = Object.getOwnPropertySymbols, Jo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, In = typeof Symbol == "function" && typeof Symbol.iterator == "object", Re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === In || !0) ? Symbol.toStringTag : null, Wp = Object.prototype.propertyIsEnumerable, xu = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
20575
+ var $s = typeof Map == "function" && Map.prototype, io = Object.getOwnPropertyDescriptor && $s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Bi = $s && io && typeof io.get == "function" ? io.get : null, bu = $s && Map.prototype.forEach, Ds = typeof Set == "function" && Set.prototype, ao = Object.getOwnPropertyDescriptor && Ds ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ji = Ds && ao && typeof ao.get == "function" ? ao.get : null, wu = Ds && Set.prototype.forEach, I4 = typeof WeakMap == "function" && WeakMap.prototype, cr = I4 ? WeakMap.prototype.has : null, L4 = typeof WeakSet == "function" && WeakSet.prototype, ur = L4 ? WeakSet.prototype.has : null, P4 = typeof WeakRef == "function" && WeakRef.prototype, Su = P4 ? WeakRef.prototype.deref : null, M4 = Boolean.prototype.valueOf, F4 = Object.prototype.toString, N4 = Function.prototype.toString, $4 = String.prototype.match, Bs = String.prototype.slice, wt = String.prototype.replace, D4 = String.prototype.toUpperCase, ku = String.prototype.toLowerCase, zp = RegExp.prototype.test, _u = Array.prototype.concat, nt = Array.prototype.join, B4 = Array.prototype.slice, Eu = Math.floor, Go = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, oo = Object.getOwnPropertySymbols, Ko = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, In = typeof Symbol == "function" && typeof Symbol.iterator == "object", Re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === In || !0) ? Symbol.toStringTag : null, Wp = Object.prototype.propertyIsEnumerable, Cu = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
20576
20576
  return t.__proto__;
20577
20577
  } : null);
20578
- function Au(t, n) {
20578
+ function xu(t, n) {
20579
20579
  if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || zp.call(/e/, n))
20580
20580
  return n;
20581
20581
  var e = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
20582
20582
  if (typeof t == "number") {
20583
- var r = t < 0 ? -Cu(-t) : Cu(t);
20583
+ var r = t < 0 ? -Eu(-t) : Eu(t);
20584
20584
  if (r !== t) {
20585
- var i = String(r), a = js.call(n, i.length + 1);
20585
+ var i = String(r), a = Bs.call(n, i.length + 1);
20586
20586
  return wt.call(i, e, "$&_") + "." + wt.call(wt.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
20587
20587
  }
20588
20588
  }
20589
20589
  return wt.call(n, e, "$&_");
20590
20590
  }
20591
- var Zo = R4, Tu = Zo.custom, Ou = Vp(Tu) ? Tu : null, j4 = function t(n, e, r, i) {
20591
+ var Jo = R4, Au = Jo.custom, Tu = Vp(Au) ? Au : null, j4 = function t(n, e, r, i) {
20592
20592
  var a = e || {};
20593
20593
  if (yt(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
20594
20594
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -20614,15 +20614,15 @@ var Zo = R4, Tu = Zo.custom, Ou = Vp(Tu) ? Tu : null, j4 = function t(n, e, r, i
20614
20614
  if (n === 0)
20615
20615
  return 1 / 0 / n > 0 ? "0" : "-0";
20616
20616
  var l = String(n);
20617
- return s ? Au(n, l) : l;
20617
+ return s ? xu(n, l) : l;
20618
20618
  }
20619
20619
  if (typeof n == "bigint") {
20620
20620
  var c = String(n) + "n";
20621
- return s ? Au(n, c) : c;
20621
+ return s ? xu(n, c) : c;
20622
20622
  }
20623
20623
  var u = typeof a.depth > "u" ? 5 : a.depth;
20624
20624
  if (typeof r > "u" && (r = 0), r >= u && u > 0 && typeof n == "object")
20625
- return Yo(n) ? "[Array]" : "[Object]";
20625
+ return Zo(n) ? "[Array]" : "[Object]";
20626
20626
  var d = iS(a, r);
20627
20627
  if (typeof i > "u")
20628
20628
  i = [];
@@ -20637,46 +20637,46 @@ var Zo = R4, Tu = Zo.custom, Ou = Vp(Tu) ? Tu : null, j4 = function t(n, e, r, i
20637
20637
  }
20638
20638
  return t(le, a, r + 1, i);
20639
20639
  }
20640
- if (typeof n == "function" && !Ru(n)) {
20640
+ if (typeof n == "function" && !Ou(n)) {
20641
20641
  var f = J4(n), h = Yr(n, p);
20642
20642
  return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (h.length > 0 ? " { " + nt.call(h, ", ") + " }" : "");
20643
20643
  }
20644
20644
  if (Vp(n)) {
20645
- var g = In ? wt.call(String(n), /^(Symbol\(.*\))_[^)]*$/, "$1") : Jo.call(n);
20645
+ var g = In ? wt.call(String(n), /^(Symbol\(.*\))_[^)]*$/, "$1") : Ko.call(n);
20646
20646
  return typeof n == "object" && !In ? Gn(g) : g;
20647
20647
  }
20648
20648
  if (tS(n)) {
20649
- for (var v = "<" + _u.call(String(n.nodeName)), y = n.attributes || [], b = 0; b < y.length; b++)
20649
+ for (var v = "<" + ku.call(String(n.nodeName)), y = n.attributes || [], b = 0; b < y.length; b++)
20650
20650
  v += " " + y[b].name + "=" + qp(H4(y[b].value), "double", a);
20651
- return v += ">", n.childNodes && n.childNodes.length && (v += "..."), v += "</" + _u.call(String(n.nodeName)) + ">", v;
20651
+ return v += ">", n.childNodes && n.childNodes.length && (v += "..."), v += "</" + ku.call(String(n.nodeName)) + ">", v;
20652
20652
  }
20653
- if (Yo(n)) {
20653
+ if (Zo(n)) {
20654
20654
  if (n.length === 0)
20655
20655
  return "[]";
20656
20656
  var w = Yr(n, p);
20657
- return d && !rS(w) ? "[" + Xo(w, d) + "]" : "[ " + nt.call(w, ", ") + " ]";
20657
+ return d && !rS(w) ? "[" + Yo(w, d) + "]" : "[ " + nt.call(w, ", ") + " ]";
20658
20658
  }
20659
20659
  if (z4(n)) {
20660
20660
  var N = Yr(n, p);
20661
- return !("cause" in Error.prototype) && "cause" in n && !Wp.call(n, "cause") ? "{ [" + String(n) + "] " + nt.call(Eu.call("[cause]: " + p(n.cause), N), ", ") + " }" : N.length === 0 ? "[" + String(n) + "]" : "{ [" + String(n) + "] " + nt.call(N, ", ") + " }";
20661
+ return !("cause" in Error.prototype) && "cause" in n && !Wp.call(n, "cause") ? "{ [" + String(n) + "] " + nt.call(_u.call("[cause]: " + p(n.cause), N), ", ") + " }" : N.length === 0 ? "[" + String(n) + "]" : "{ [" + String(n) + "] " + nt.call(N, ", ") + " }";
20662
20662
  }
20663
20663
  if (typeof n == "object" && o) {
20664
- if (Ou && typeof n[Ou] == "function" && Zo)
20665
- return Zo(n, { depth: u - r });
20664
+ if (Tu && typeof n[Tu] == "function" && Jo)
20665
+ return Jo(n, { depth: u - r });
20666
20666
  if (o !== "symbol" && typeof n.inspect == "function")
20667
20667
  return n.inspect();
20668
20668
  }
20669
20669
  if (Z4(n)) {
20670
20670
  var T = [];
20671
- return wu && wu.call(n, function(le, G) {
20671
+ return bu && bu.call(n, function(le, G) {
20672
20672
  T.push(p(G, n, !0) + " => " + p(le, n));
20673
- }), Iu("Map", Bi.call(n), T, d);
20673
+ }), Ru("Map", Bi.call(n), T, d);
20674
20674
  }
20675
20675
  if (Q4(n)) {
20676
20676
  var B = [];
20677
- return Su && Su.call(n, function(le) {
20677
+ return wu && wu.call(n, function(le) {
20678
20678
  B.push(p(le, n));
20679
- }), Iu("Set", ji.call(n), B, d);
20679
+ }), Ru("Set", ji.call(n), B, d);
20680
20680
  }
20681
20681
  if (Y4(n))
20682
20682
  return so("WeakMap");
@@ -20687,7 +20687,7 @@ var Zo = R4, Tu = Zo.custom, Ou = Vp(Tu) ? Tu : null, j4 = function t(n, e, r, i
20687
20687
  if (q4(n))
20688
20688
  return Gn(p(Number(n)));
20689
20689
  if (G4(n))
20690
- return Gn(p(Ko.call(n)));
20690
+ return Gn(p(Go.call(n)));
20691
20691
  if (V4(n))
20692
20692
  return Gn(M4.call(n));
20693
20693
  if (W4(n))
@@ -20696,9 +20696,9 @@ var Zo = R4, Tu = Zo.custom, Ou = Vp(Tu) ? Tu : null, j4 = function t(n, e, r, i
20696
20696
  return "{ [object Window] }";
20697
20697
  if (n === W1)
20698
20698
  return "{ [object globalThis] }";
20699
- if (!U4(n) && !Ru(n)) {
20700
- var Z = Yr(n, p), z = xu ? xu(n) === Object.prototype : n instanceof Object || n.constructor === Object, se = n instanceof Object ? "" : "null prototype", ne = !z && Re && Object(n) === n && Re in n ? js.call(Mt(n), 8, -1) : se ? "Object" : "", we = z || typeof n.constructor != "function" ? "" : n.constructor.name ? n.constructor.name + " " : "", W = we + (ne || se ? "[" + nt.call(Eu.call([], ne || [], se || []), ": ") + "] " : "");
20701
- return Z.length === 0 ? W + "{}" : d ? W + "{" + Xo(Z, d) + "}" : W + "{ " + nt.call(Z, ", ") + " }";
20699
+ if (!U4(n) && !Ou(n)) {
20700
+ var Z = Yr(n, p), z = Cu ? Cu(n) === Object.prototype : n instanceof Object || n.constructor === Object, se = n instanceof Object ? "" : "null prototype", ne = !z && Re && Object(n) === n && Re in n ? Bs.call(Mt(n), 8, -1) : se ? "Object" : "", we = z || typeof n.constructor != "function" ? "" : n.constructor.name ? n.constructor.name + " " : "", W = we + (ne || se ? "[" + nt.call(_u.call([], ne || [], se || []), ": ") + "] " : "");
20701
+ return Z.length === 0 ? W + "{}" : d ? W + "{" + Yo(Z, d) + "}" : W + "{ " + nt.call(Z, ", ") + " }";
20702
20702
  }
20703
20703
  return String(n);
20704
20704
  };
@@ -20709,13 +20709,13 @@ function qp(t, n, e) {
20709
20709
  function H4(t) {
20710
20710
  return wt.call(String(t), /"/g, "&quot;");
20711
20711
  }
20712
- function Yo(t) {
20712
+ function Zo(t) {
20713
20713
  return Mt(t) === "[object Array]" && (!Re || !(typeof t == "object" && Re in t));
20714
20714
  }
20715
20715
  function U4(t) {
20716
20716
  return Mt(t) === "[object Date]" && (!Re || !(typeof t == "object" && Re in t));
20717
20717
  }
20718
- function Ru(t) {
20718
+ function Ou(t) {
20719
20719
  return Mt(t) === "[object RegExp]" && (!Re || !(typeof t == "object" && Re in t));
20720
20720
  }
20721
20721
  function z4(t) {
@@ -20735,19 +20735,19 @@ function Vp(t) {
20735
20735
  return t && typeof t == "object" && t instanceof Symbol;
20736
20736
  if (typeof t == "symbol")
20737
20737
  return !0;
20738
- if (!t || typeof t != "object" || !Jo)
20738
+ if (!t || typeof t != "object" || !Ko)
20739
20739
  return !1;
20740
20740
  try {
20741
- return Jo.call(t), !0;
20741
+ return Ko.call(t), !0;
20742
20742
  } catch {
20743
20743
  }
20744
20744
  return !1;
20745
20745
  }
20746
20746
  function G4(t) {
20747
- if (!t || typeof t != "object" || !Ko)
20747
+ if (!t || typeof t != "object" || !Go)
20748
20748
  return !1;
20749
20749
  try {
20750
- return Ko.call(t), !0;
20750
+ return Go.call(t), !0;
20751
20751
  } catch {
20752
20752
  }
20753
20753
  return !1;
@@ -20806,10 +20806,10 @@ function Y4(t) {
20806
20806
  return !1;
20807
20807
  }
20808
20808
  function X4(t) {
20809
- if (!ku || !t || typeof t != "object")
20809
+ if (!Su || !t || typeof t != "object")
20810
20810
  return !1;
20811
20811
  try {
20812
- return ku.call(t), !0;
20812
+ return Su.call(t), !0;
20813
20813
  } catch {
20814
20814
  }
20815
20815
  return !1;
@@ -20850,7 +20850,7 @@ function tS(t) {
20850
20850
  function Kp(t, n) {
20851
20851
  if (t.length > n.maxStringLength) {
20852
20852
  var e = t.length - n.maxStringLength, r = "... " + e + " more character" + (e > 1 ? "s" : "");
20853
- return Kp(js.call(t, 0, n.maxStringLength), n) + r;
20853
+ return Kp(Bs.call(t, 0, n.maxStringLength), n) + r;
20854
20854
  }
20855
20855
  var i = wt.call(wt.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, nS);
20856
20856
  return qp(i, "single", n);
@@ -20871,8 +20871,8 @@ function Gn(t) {
20871
20871
  function so(t) {
20872
20872
  return t + " { ? }";
20873
20873
  }
20874
- function Iu(t, n, e, r) {
20875
- var i = r ? Xo(e, r) : nt.call(e, ", ");
20874
+ function Ru(t, n, e, r) {
20875
+ var i = r ? Yo(e, r) : nt.call(e, ", ");
20876
20876
  return t + " (" + n + ") {" + i + "}";
20877
20877
  }
20878
20878
  function rS(t) {
@@ -20895,7 +20895,7 @@ function iS(t, n) {
20895
20895
  prev: nt.call(Array(n + 1), e)
20896
20896
  };
20897
20897
  }
20898
- function Xo(t, n) {
20898
+ function Yo(t, n) {
20899
20899
  if (t.length === 0)
20900
20900
  return "";
20901
20901
  var e = `
@@ -20904,7 +20904,7 @@ function Xo(t, n) {
20904
20904
  ` + n.prev;
20905
20905
  }
20906
20906
  function Yr(t, n) {
20907
- var e = Yo(t), r = [];
20907
+ var e = Zo(t), r = [];
20908
20908
  if (e) {
20909
20909
  r.length = t.length;
20910
20910
  for (var i = 0; i < t.length; i++)
@@ -20923,16 +20923,16 @@ function Yr(t, n) {
20923
20923
  Wp.call(t, a[c]) && r.push("[" + n(a[c]) + "]: " + n(t[a[c]], t));
20924
20924
  return r;
20925
20925
  }
20926
- var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%", !0), sS = Bn("WeakMap.prototype.get", !0), lS = Bn("WeakMap.prototype.set", !0), cS = Bn("WeakMap.prototype.has", !0), uS = Bn("Map.prototype.get", !0), dS = Bn("Map.prototype.set", !0), pS = Bn("Map.prototype.has", !0), Hs = function(t, n) {
20926
+ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%", !0), sS = Bn("WeakMap.prototype.get", !0), lS = Bn("WeakMap.prototype.set", !0), cS = Bn("WeakMap.prototype.has", !0), uS = Bn("Map.prototype.get", !0), dS = Bn("Map.prototype.set", !0), pS = Bn("Map.prototype.has", !0), js = function(t, n) {
20927
20927
  for (var e = t, r; (r = e.next) !== null; e = r)
20928
20928
  if (r.key === n)
20929
20929
  return e.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
20930
20930
  t.next, t.next = r, r;
20931
20931
  }, fS = function(t, n) {
20932
- var e = Hs(t, n);
20932
+ var e = js(t, n);
20933
20933
  return e && e.value;
20934
20934
  }, hS = function(t, n, e) {
20935
- var r = Hs(t, n);
20935
+ var r = js(t, n);
20936
20936
  r ? r.value = e : t.next = /** @type {import('.').ListNode<typeof value>} */
20937
20937
  {
20938
20938
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -20941,7 +20941,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
20941
20941
  value: e
20942
20942
  };
20943
20943
  }, mS = function(t, n) {
20944
- return !!Hs(t, n);
20944
+ return !!js(t, n);
20945
20945
  }, gS = function() {
20946
20946
  var n, e, r, i = {
20947
20947
  assert: function(a) {
@@ -20977,7 +20977,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
20977
20977
  }, vS = String.prototype.replace, yS = /%20/g, lo = {
20978
20978
  RFC1738: "RFC1738",
20979
20979
  RFC3986: "RFC3986"
20980
- }, Us = {
20980
+ }, Hs = {
20981
20981
  default: lo.RFC3986,
20982
20982
  formatters: {
20983
20983
  RFC1738: function(t) {
@@ -20989,7 +20989,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
20989
20989
  },
20990
20990
  RFC1738: lo.RFC1738,
20991
20991
  RFC3986: lo.RFC3986
20992
- }, bS = Us, co = Object.prototype.hasOwnProperty, Ht = Array.isArray, Qe = function() {
20992
+ }, bS = Hs, co = Object.prototype.hasOwnProperty, Ht = Array.isArray, Qe = function() {
20993
20993
  for (var t = [], n = 0; n < 256; ++n)
20994
20994
  t.push("%" + ((n < 16 ? "0" : "") + n.toString(16)).toUpperCase());
20995
20995
  return t;
@@ -21107,7 +21107,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
21107
21107
  isRegExp: xS,
21108
21108
  maybeMap: OS,
21109
21109
  merge: SS
21110
- }, Xp = gS, hi = Yp, dr = Us, RS = Object.prototype.hasOwnProperty, Qp = {
21110
+ }, Xp = gS, hi = Yp, dr = Hs, RS = Object.prototype.hasOwnProperty, Qp = {
21111
21111
  brackets: function(n) {
21112
21112
  return n + "[]";
21113
21113
  },
@@ -21120,7 +21120,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
21120
21120
  }
21121
21121
  }, tt = Array.isArray, IS = Array.prototype.push, ef = function(t, n) {
21122
21122
  IS.apply(t, tt(n) ? n : [n]);
21123
- }, LS = Date.prototype.toISOString, Lu = dr.default, Se = {
21123
+ }, LS = Date.prototype.toISOString, Iu = dr.default, Se = {
21124
21124
  addQueryPrefix: !1,
21125
21125
  allowDots: !1,
21126
21126
  allowEmptyArrays: !1,
@@ -21132,8 +21132,8 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
21132
21132
  encodeDotInKeys: !1,
21133
21133
  encoder: hi.encode,
21134
21134
  encodeValuesOnly: !1,
21135
- format: Lu,
21136
- formatter: dr.formatters[Lu],
21135
+ format: Iu,
21136
+ formatter: dr.formatters[Iu],
21137
21137
  // deprecated
21138
21138
  indices: !1,
21139
21139
  serializeDate: function(n) {
@@ -21289,7 +21289,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
21289
21289
  }
21290
21290
  var p = o.join(r.delimiter), f = r.addQueryPrefix === !0 ? "?" : "";
21291
21291
  return r.charsetSentinel && (r.charset === "iso-8859-1" ? f += "utf8=%26%2310003%3B&" : f += "utf8=%E2%9C%93&"), p.length > 0 ? f + p : "";
21292
- }, Ln = Yp, Qo = Object.prototype.hasOwnProperty, $S = Array.isArray, ye = {
21292
+ }, Ln = Yp, Xo = Object.prototype.hasOwnProperty, $S = Array.isArray, ye = {
21293
21293
  allowDots: !1,
21294
21294
  allowEmptyArrays: !1,
21295
21295
  allowPrototypes: !1,
@@ -21331,7 +21331,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
21331
21331
  return e.decoder(v, ye.decoder, c, "value");
21332
21332
  }
21333
21333
  )), h && e.interpretNumericEntities && c === "iso-8859-1" && (h = DS(h)), u.indexOf("[]=") > -1 && (h = $S(h) ? [h] : h);
21334
- var g = Qo.call(r, f);
21334
+ var g = Xo.call(r, f);
21335
21335
  g && e.duplicates === "combine" ? r[f] = Ln.combine(r[f], h) : (!g || e.duplicates === "last") && (r[f] = h);
21336
21336
  }
21337
21337
  return r;
@@ -21352,12 +21352,12 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
21352
21352
  if (n) {
21353
21353
  var a = r.allowDots ? n.replace(/\.([^.[]+)/g, "[$1]") : n, o = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, l = r.depth > 0 && o.exec(a), c = l ? a.slice(0, l.index) : a, u = [];
21354
21354
  if (c) {
21355
- if (!r.plainObjects && Qo.call(Object.prototype, c) && !r.allowPrototypes)
21355
+ if (!r.plainObjects && Xo.call(Object.prototype, c) && !r.allowPrototypes)
21356
21356
  return;
21357
21357
  u.push(c);
21358
21358
  }
21359
21359
  for (var d = 0; r.depth > 0 && (l = s.exec(a)) !== null && d < r.depth; ) {
21360
- if (d += 1, !r.plainObjects && Qo.call(Object.prototype, l[1].slice(1, -1)) && !r.allowPrototypes)
21360
+ if (d += 1, !r.plainObjects && Xo.call(Object.prototype, l[1].slice(1, -1)) && !r.allowPrototypes)
21361
21361
  return;
21362
21362
  u.push(l[1]);
21363
21363
  }
@@ -21409,7 +21409,7 @@ var Jp = Dn, Bn = A4, aS = j4, oS = Hr, Xr = Jp("%WeakMap%", !0), Qr = Jp("%Map%
21409
21409
  i = Ln.merge(i, l, e);
21410
21410
  }
21411
21411
  return e.allowSparse === !0 ? i : Ln.compact(i);
21412
- }, VS = NS, GS = qS, KS = Us, JS = {
21412
+ }, VS = NS, GS = qS, KS = Hs, JS = {
21413
21413
  formats: KS,
21414
21414
  parse: GS,
21415
21415
  stringify: VS
@@ -21446,12 +21446,12 @@ class YS {
21446
21446
  a,
21447
21447
  r.map((s) => hp(s))
21448
21448
  );
21449
- return o = Rs(o), o;
21449
+ return o = Os(o), o;
21450
21450
  } else
21451
21451
  throw new Error(`Translations fallbacks for ${e} not found.`);
21452
21452
  }
21453
21453
  async getServerTranslations(n, e) {
21454
- const r = await new Vo().contentTranslationGet(
21454
+ const r = await new qo().contentTranslationGet(
21455
21455
  { scopes: n },
21456
21456
  {
21457
21457
  ...e,
@@ -21534,7 +21534,7 @@ const ik = Ot`
21534
21534
  width: 24px;
21535
21535
  }
21536
21536
  `;
21537
- var ak = Object.defineProperty, ok = Object.getOwnPropertyDescriptor, zs = (t, n, e, r) => {
21537
+ var ak = Object.defineProperty, ok = Object.getOwnPropertyDescriptor, Us = (t, n, e, r) => {
21538
21538
  for (var i = r > 1 ? void 0 : r ? ok(n, e) : n, a = t.length - 1, o; a >= 0; a--)
21539
21539
  (o = t[a]) && (i = (r ? o(n, e, i) : o(i)) || i);
21540
21540
  return r && i && ak(n, e, i), i;
@@ -21544,17 +21544,17 @@ let Ar = class extends Fe {
21544
21544
  super(), this.size = "medium", this.dataCerberus = "spinner", this.size = "medium";
21545
21545
  }
21546
21546
  renderElement() {
21547
- return Ke` <div data-cerberus="${this.dataCerberus}"></div> `;
21547
+ return je` <div data-cerberus="${this.dataCerberus}"></div> `;
21548
21548
  }
21549
21549
  };
21550
21550
  Ar.styles = [Fe.styles, ik];
21551
- zs([
21551
+ Us([
21552
21552
  he({ type: String, reflect: !0 })
21553
21553
  ], Ar.prototype, "size", 2);
21554
- zs([
21554
+ Us([
21555
21555
  he({ type: String })
21556
21556
  ], Ar.prototype, "dataCerberus", 2);
21557
- Ar = zs([
21557
+ Ar = Us([
21558
21558
  Rt("lr-spinner")
21559
21559
  ], Ar);
21560
21560
  const sk = Ot`
@@ -21600,7 +21600,7 @@ const sk = Ot`
21600
21600
  user-select: text;
21601
21601
  }
21602
21602
  `;
21603
- var lk = Object.defineProperty, ck = Object.getOwnPropertyDescriptor, Ws = (t, n, e, r) => {
21603
+ var lk = Object.defineProperty, ck = Object.getOwnPropertyDescriptor, zs = (t, n, e, r) => {
21604
21604
  for (var i = r > 1 ? void 0 : r ? ck(n, e) : n, a = t.length - 1, o; a >= 0; a--)
21605
21605
  (o = t[a]) && (i = (r ? o(n, e, i) : o(i)) || i);
21606
21606
  return r && i && lk(n, e, i), i;
@@ -21610,7 +21610,7 @@ let Pn = class extends Fe {
21610
21610
  super(...arguments), this.active = !0, this.blurring = !1;
21611
21611
  }
21612
21612
  renderElement() {
21613
- return Ke`
21613
+ return je`
21614
21614
  <div>
21615
21615
  <slot></slot>
21616
21616
  </div>
@@ -21618,13 +21618,13 @@ let Pn = class extends Fe {
21618
21618
  }
21619
21619
  };
21620
21620
  Pn.styles = [Fe.styles, sk];
21621
- Ws([
21621
+ zs([
21622
21622
  he({ type: Boolean, reflect: !0 })
21623
21623
  ], Pn.prototype, "active", 2);
21624
- Ws([
21624
+ zs([
21625
21625
  he({ type: Boolean, reflect: !0 })
21626
21626
  ], Pn.prototype, "blurring", 2);
21627
- Pn = Ws([
21627
+ Pn = zs([
21628
21628
  Rt("lr-dimmer")
21629
21629
  ], Pn);
21630
21630
  var uk = Object.defineProperty, dk = Object.getOwnPropertyDescriptor, pk = (t, n, e, r) => {
@@ -21632,17 +21632,17 @@ var uk = Object.defineProperty, dk = Object.getOwnPropertyDescriptor, pk = (t, n
21632
21632
  (o = t[a]) && (i = (r ? o(n, e, i) : o(i)) || i);
21633
21633
  return r && i && uk(n, e, i), i;
21634
21634
  };
21635
- let Pu = class extends Pn {
21635
+ let Lu = class extends Pn {
21636
21636
  constructor() {
21637
21637
  super(...arguments), this.active = !0;
21638
21638
  }
21639
21639
  renderElement() {
21640
- return Ke`<lr-spinner></lr-spinner> `;
21640
+ return je`<lr-spinner></lr-spinner> `;
21641
21641
  }
21642
21642
  };
21643
- Pu = pk([
21643
+ Lu = pk([
21644
21644
  Rt("lr-loading-overlay")
21645
- ], Pu);
21645
+ ], Lu);
21646
21646
  const fk = Ot`
21647
21647
  .sr-only {
21648
21648
  border: 0 !important;
@@ -21748,7 +21748,7 @@ let ht = class extends Fe {
21748
21748
  super(...arguments), this.label = "", this.size = "small", this.iconPosition = "left", this.disabled = !1, this.variant = "on-dark";
21749
21749
  }
21750
21750
  renderElement() {
21751
- return Ke`
21751
+ return je`
21752
21752
  <label ?disabled=${this.disabled}>
21753
21753
  <input type="checkbox" tabindex="-1" hidden />
21754
21754
  <span class="sr-only">${this.label}</span>
@@ -21810,10 +21810,10 @@ let Hi = class extends Fe {
21810
21810
  this.rating = t;
21811
21811
  }
21812
21812
  renderElement() {
21813
- return Ke`
21813
+ return je`
21814
21814
  <div>
21815
21815
  ${[...Array(5)].map(
21816
- (t, n) => Ke`
21816
+ (t, n) => je`
21817
21817
  <img
21818
21818
  src="${n <= this.rating ? new URL("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.00003%206.75L4.93881%209.5L3.95921%2014L7.87758%2011.75L11.7959%2014L10.8164%209.5L14%206.75L9.59187%206.25L7.87758%202L6.1633%206.25L2.00003%206.75Z'%20fill='%23191B21'/%3e%3cpath%20d='M4.93881%209.5L5.91592%209.71271C5.99083%209.3686%205.87921%209.01045%205.62207%208.76983L4.93881%209.5ZM2.00003%206.75L1.88079%205.75713C1.49477%205.8035%201.17061%206.0694%201.04965%206.4389C0.928699%206.8084%201.03288%207.21452%201.31676%207.48017L2.00003%206.75ZM6.1633%206.25L6.28254%207.24287C6.6446%207.19938%206.95428%206.96226%207.09069%206.62408L6.1633%206.25ZM7.87758%202L8.80498%201.62592C8.65241%201.24768%208.28543%201%207.87758%201C7.46973%201%207.10275%201.24768%206.95018%201.62592L7.87758%202ZM9.59187%206.25L8.66447%206.62408C8.80176%206.96445%209.11448%207.20226%209.47916%207.24363L9.59187%206.25ZM14%206.75L14.6537%207.50677C14.9543%207.24713%2015.0727%206.8342%2014.9554%206.45472C14.8382%206.07523%2014.5074%205.80114%2014.1127%205.75637L14%206.75ZM10.8164%209.5L10.1627%208.74323C9.8854%208.98274%209.76131%209.3547%209.83924%209.71271L10.8164%209.5ZM11.7959%2014L11.298%2014.8672C11.6409%2015.0641%2012.0676%2015.0405%2012.3867%2014.8069C12.7057%2014.5733%2012.8572%2014.1737%2012.7731%2013.7873L11.7959%2014ZM7.87758%2011.75L8.37554%2010.8828C8.06718%2010.7057%207.68798%2010.7057%207.37962%2010.8828L7.87758%2011.75ZM3.95921%2014L2.9821%2013.7873C2.89799%2014.1737%203.04945%2014.5733%203.3685%2014.8069C3.68755%2015.0405%204.11427%2015.0641%204.45718%2014.8672L3.95921%2014ZM5.62207%208.76983L2.6833%206.01983L1.31676%207.48017L4.25554%2010.2302L5.62207%208.76983ZM2.11927%207.74287L6.28254%207.24287L6.04405%205.25713L1.88079%205.75713L2.11927%207.74287ZM7.09069%206.62408L8.80498%202.37408L6.95018%201.62592L5.2359%205.87592L7.09069%206.62408ZM6.95018%202.37408L8.66447%206.62408L10.5193%205.87592L8.80498%201.62592L6.95018%202.37408ZM9.47916%207.24363L13.8873%207.74363L14.1127%205.75637L9.70457%205.25637L9.47916%207.24363ZM13.3463%205.99323L10.1627%208.74323L11.47%2010.2568L14.6537%207.50677L13.3463%205.99323ZM9.83924%209.71271L10.8188%2014.2127L12.7731%2013.7873L11.7935%209.28729L9.83924%209.71271ZM12.2939%2013.1328L8.37554%2010.8828L7.37962%2012.6172L11.298%2014.8672L12.2939%2013.1328ZM7.37962%2010.8828L3.46125%2013.1328L4.45718%2014.8672L8.37554%2012.6172L7.37962%2010.8828ZM4.93633%2014.2127L5.91592%209.71271L3.96169%209.28729L2.9821%2013.7873L4.93633%2014.2127Z'%20fill='%23191B21'/%3e%3c/svg%3e", import.meta.url).href : new URL("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.87755%201.5C8.08148%201.5%208.26497%201.62384%208.34125%201.81296L9.94413%205.78675L14.0564%206.25319C14.2537%206.27557%2014.4191%206.41262%2014.4777%206.60236C14.5363%206.7921%2014.4771%206.99856%2014.3268%207.12838L11.3681%209.68408L12.2845%2013.8936C12.3265%2014.0868%2012.2508%2014.2867%2012.0913%2014.4034C11.9318%2014.5202%2011.7184%2014.5321%2011.5469%2014.4336L7.87755%2012.3266L4.20817%2014.4336C4.03671%2014.5321%203.82335%2014.5202%203.66383%2014.4034C3.5043%2014.2867%203.42857%2014.0868%203.47063%2013.8936L4.38982%209.67108L1.65837%207.11508C1.51642%206.98226%201.46434%206.7792%201.52481%206.59445C1.58529%206.4097%201.74737%206.27675%201.94038%206.25357L5.81015%205.78882L7.41385%201.81296C7.49014%201.62384%207.67363%201.5%207.87755%201.5ZM7.87755%203.33662L6.62697%206.43704C6.55876%206.60613%206.40392%206.72469%206.22289%206.74643L3.12549%207.11842L5.28041%209.13492C5.40898%209.25523%205.46479%209.4343%205.42734%209.60635L4.68744%2013.0053L7.62857%2011.3164C7.78275%2011.2279%207.97235%2011.2279%208.12653%2011.3164L11.0677%2013.0053L10.3278%209.60635C10.2888%209.42735%2010.3509%209.24137%2010.4895%209.12162L12.8089%207.11811L9.53549%206.74681C9.35315%206.72613%209.19679%206.60723%209.12814%206.43704L7.87755%203.33662Z'%20fill='%23191B21'/%3e%3c/svg%3e", import.meta.url).href}"
21819
21819
  class="star"
@@ -22061,7 +22061,7 @@ const wk = (t) => t ?? fe;
22061
22061
  * Copyright 2017 Google LLC
22062
22062
  * SPDX-License-Identifier: BSD-3-Clause
22063
22063
  */
22064
- const qs = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Vs = (t) => (...n) => ({ _$litDirective$: t, values: n });
22064
+ const Ws = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, qs = (t) => (...n) => ({ _$litDirective$: t, values: n });
22065
22065
  let rf = class {
22066
22066
  constructor(n) {
22067
22067
  }
@@ -22083,10 +22083,10 @@ let rf = class {
22083
22083
  * Copyright 2018 Google LLC
22084
22084
  * SPDX-License-Identifier: BSD-3-Clause
22085
22085
  */
22086
- const Sk = Vs(class extends rf {
22086
+ const Sk = qs(class extends rf {
22087
22087
  constructor(t) {
22088
22088
  var n;
22089
- if (super(t), t.type !== qs.ATTRIBUTE || t.name !== "class" || ((n = t.strings) == null ? void 0 : n.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
22089
+ if (super(t), t.type !== Ws.ATTRIBUTE || t.name !== "class" || ((n = t.strings) == null ? void 0 : n.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
22090
22090
  }
22091
22091
  render(t) {
22092
22092
  return " " + Object.keys(t).filter((n) => t[n]).join(" ") + " ";
@@ -22112,7 +22112,7 @@ var kk = Object.defineProperty, _k = Object.getOwnPropertyDescriptor, dt = (t, n
22112
22112
  (o = t[a]) && (i = (r ? o(n, e, i) : o(i)) || i);
22113
22113
  return r && i && kk(n, e, i), i;
22114
22114
  };
22115
- let qe = class extends Fe {
22115
+ let Ve = class extends Fe {
22116
22116
  constructor() {
22117
22117
  super(...arguments), this.label = "", this.disabled = !1, this.variant = "primary", this.size = "small", this.iconPosition = "left", this.buttonType = "button", this.reversed = !1;
22118
22118
  }
@@ -22120,7 +22120,7 @@ let qe = class extends Fe {
22120
22120
  const t = Sk({
22121
22121
  button: this.buttonType === "button"
22122
22122
  });
22123
- return Ke`
22123
+ return je`
22124
22124
  <button
22125
22125
  aria-label="${wk(this.label)}"
22126
22126
  aria-disabled=${this.disabled}
@@ -22135,37 +22135,37 @@ let qe = class extends Fe {
22135
22135
  `;
22136
22136
  }
22137
22137
  };
22138
- qe.styles = [Fe.styles, bk];
22138
+ Ve.styles = [Fe.styles, bk];
22139
22139
  dt([
22140
22140
  he({ type: String })
22141
- ], qe.prototype, "label", 2);
22141
+ ], Ve.prototype, "label", 2);
22142
22142
  dt([
22143
22143
  he({ type: Boolean })
22144
- ], qe.prototype, "disabled", 2);
22144
+ ], Ve.prototype, "disabled", 2);
22145
22145
  dt([
22146
22146
  he({ type: String })
22147
- ], qe.prototype, "variant", 2);
22147
+ ], Ve.prototype, "variant", 2);
22148
22148
  dt([
22149
22149
  he({ type: String })
22150
- ], qe.prototype, "size", 2);
22150
+ ], Ve.prototype, "size", 2);
22151
22151
  dt([
22152
22152
  he({ type: String })
22153
- ], qe.prototype, "icon", 2);
22153
+ ], Ve.prototype, "icon", 2);
22154
22154
  dt([
22155
22155
  he({ type: String })
22156
- ], qe.prototype, "iconPosition", 2);
22156
+ ], Ve.prototype, "iconPosition", 2);
22157
22157
  dt([
22158
22158
  he({ type: String })
22159
- ], qe.prototype, "buttonType", 2);
22159
+ ], Ve.prototype, "buttonType", 2);
22160
22160
  dt([
22161
22161
  he({ type: Boolean })
22162
- ], qe.prototype, "resetStyle", 2);
22162
+ ], Ve.prototype, "resetStyle", 2);
22163
22163
  dt([
22164
22164
  he({ type: Boolean })
22165
- ], qe.prototype, "reversed", 2);
22166
- qe = dt([
22165
+ ], Ve.prototype, "reversed", 2);
22166
+ Ve = dt([
22167
22167
  Rt("lr-button")
22168
- ], qe);
22168
+ ], Ve);
22169
22169
  /**
22170
22170
  * @license
22171
22171
  * Copyright 2020 Google LLC
@@ -22207,7 +22207,7 @@ function xk(t, n = !1, e = 0) {
22207
22207
  else pr(this, t);
22208
22208
  }
22209
22209
  const Ak = (t) => {
22210
- t.type == qs.CHILD && (t._$AP ?? (t._$AP = xk), t._$AQ ?? (t._$AQ = Ck));
22210
+ t.type == Ws.CHILD && (t._$AP ?? (t._$AP = xk), t._$AQ ?? (t._$AQ = Ck));
22211
22211
  };
22212
22212
  let of = class extends rf {
22213
22213
  constructor() {
@@ -22232,7 +22232,7 @@ let of = class extends rf {
22232
22232
  reconnected() {
22233
22233
  }
22234
22234
  };
22235
- const fo = /* @__PURE__ */ new WeakMap(), Tk = Vs(class extends of {
22235
+ const fo = /* @__PURE__ */ new WeakMap(), Tk = qs(class extends of {
22236
22236
  render(t) {
22237
22237
  return fe;
22238
22238
  }
@@ -22285,9 +22285,10 @@ const fo = /* @__PURE__ */ new WeakMap(), Tk = Vs(class extends of {
22285
22285
  }
22286
22286
  }
22287
22287
 
22288
- #chat-wrapper[data-opened='true'] {
22288
+ #chat-wrapper {
22289
22289
  display: block;
22290
22290
  font-family: var(--font-poppins);
22291
+ transform-origin: bottom;
22291
22292
  }
22292
22293
  #chat-wrapper[data-sticky='true'] {
22293
22294
  position: fixed;
@@ -22309,6 +22310,10 @@ const fo = /* @__PURE__ */ new WeakMap(), Tk = Vs(class extends of {
22309
22310
  right: var(--chat-sticky-offset-right);
22310
22311
  }
22311
22312
  }
22313
+ #chat-wrapper[data-opened='false'] {
22314
+ bottom: -100%;
22315
+ opacity: 0;
22316
+ }
22312
22317
  #chat-wrapper-menu {
22313
22318
  background-color: ${A(E.colors.base.coral.tone300)};
22314
22319
  color: white;
@@ -22615,7 +22620,7 @@ j(jt, "ChatbotConversationsGet", (Xn = class {
22615
22620
  }, j(vn, "isBadRequestProblemDetails", (n) => U.isAxiosError(n) && ce(n, 400)), j(vn, "isNotFoundProblemDetails", (n) => U.isAxiosError(n) && ce(n, 404)), j(vn, "isInternalServerErrorProblemDetails", (n) => U.isAxiosError(n) && ce(n, 500)), j(vn, "isServiceUnavailableProblemDetails", (n) => U.isAxiosError(n) && ce(n, 503)), vn)), j(jt, "ChatbotConversationsMessagesRatePost", (yn = class {
22616
22621
  }, j(yn, "isBadRequestProblemDetails", (n) => U.isAxiosError(n) && ce(n, 400)), j(yn, "isNotFoundProblemDetails", (n) => U.isAxiosError(n) && ce(n, 404)), j(yn, "isInternalServerErrorProblemDetails", (n) => U.isAxiosError(n) && ce(n, 500)), j(yn, "isServiceUnavailableProblemDetails", (n) => U.isAxiosError(n) && ce(n, 503)), yn)), j(jt, "ChatbotIntegrationsPost", (er = class {
22617
22622
  }, j(er, "isBadRequestProblemDetails", (n) => U.isAxiosError(n) && ce(n, 400)), j(er, "isUnauthorizedProblemDetails", (n) => U.isAxiosError(n) && ce(n, 401)), j(er, "isNotFoundProblemDetails", (n) => U.isAxiosError(n) && ce(n, 404)), er));
22618
- const et = class et extends Fs {
22623
+ const et = class et extends Ms {
22619
22624
  constructor() {
22620
22625
  super(...arguments);
22621
22626
  /** ChatbotService API methods */
@@ -22717,8 +22722,8 @@ j(et, "Endpoints", {
22717
22722
  j(et, "Errors", jt);
22718
22723
  let zi = et;
22719
22724
  const Rk = /* @__PURE__ */ new WeakMap();
22720
- let Mu = 0;
22721
- const ho = /* @__PURE__ */ new Map(), Fu = /* @__PURE__ */ new WeakSet(), Nu = () => new Promise((t) => requestAnimationFrame(t)), ei = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], $u = [{ opacity: 0 }], Du = [{ opacity: 0 }, { opacity: 1 }], Bu = (t, n) => {
22725
+ let Pu = 0;
22726
+ const ho = /* @__PURE__ */ new Map(), Mu = /* @__PURE__ */ new WeakSet(), Fu = () => new Promise((t) => requestAnimationFrame(t)), Nu = [{ transform: "translateY(100%) scale(0)", opacity: 0 }], $u = [{ opacity: 0 }], Du = [{ opacity: 0 }, { opacity: 1 }], Bu = (t, n) => {
22722
22727
  const e = t - n;
22723
22728
  return e === 0 ? void 0 : e;
22724
22729
  }, ju = (t, n) => {
@@ -22743,7 +22748,7 @@ const ho = /* @__PURE__ */ new Map(), Fu = /* @__PURE__ */ new WeakSet(), Nu = (
22743
22748
  } }, Ik = { duration: 333, easing: "ease-in-out" }, Lk = ["left", "top", "width", "height", "opacity", "color", "background"], Hu = /* @__PURE__ */ new WeakMap();
22744
22749
  class Pk extends of {
22745
22750
  constructor(n) {
22746
- if (super(n), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, n.type === qs.CHILD) throw Error("The `animate` directive must be used in attribute position.");
22751
+ if (super(n), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, n.type === Ws.CHILD) throw Error("The `animate` directive must be used in attribute position.");
22747
22752
  this.createFinished();
22748
22753
  }
22749
22754
  createFinished() {
@@ -22798,7 +22803,7 @@ class Pk extends of {
22798
22803
  async hostUpdated() {
22799
22804
  if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
22800
22805
  let n;
22801
- this.prepare(), await Nu;
22806
+ this.prepare(), await Fu;
22802
22807
  const e = this.O(), r = this.j(this.options.keyframeOptions, e), i = this.m();
22803
22808
  if (this.A !== void 0) {
22804
22809
  const { from: a, to: o } = this.N(this.A, i, e);
@@ -22808,7 +22813,7 @@ class Pk extends of {
22808
22813
  if (a) {
22809
22814
  ho.delete(this.options.inId);
22810
22815
  const { from: o, to: s } = this.N(a, i, e);
22811
- n = this.calculateKeyframes(o, s), n = this.options.in ? [{ ...this.options.in[0], ...n[0] }, ...this.options.in.slice(1), n[1]] : n, Mu++, n.forEach((l) => l.zIndex = Mu);
22816
+ n = this.calculateKeyframes(o, s), n = this.options.in ? [{ ...this.options.in[0], ...n[0] }, ...this.options.in.slice(1), n[1]] : n, Pu++, n.forEach((l) => l.zIndex = Pu);
22812
22817
  } else this.options.in && (n = [...this.options.in, {}]);
22813
22818
  }
22814
22819
  this.animate(n, r);
@@ -22825,7 +22830,7 @@ class Pk extends of {
22825
22830
  async disconnected() {
22826
22831
  var e;
22827
22832
  if (!this.h || (this.options.id !== void 0 && ho.set(this.options.id, this.A), this.options.out === void 0)) return;
22828
- if (this.prepare(), await Nu(), (e = this.i) == null ? void 0 : e.isConnected) {
22833
+ if (this.prepare(), await Fu(), (e = this.i) == null ? void 0 : e.isConnected) {
22829
22834
  const r = this.o && this.o.parentNode === this.i ? this.o : null;
22830
22835
  if (this.i.insertBefore(this.element, r), this.options.stabilizeOut) {
22831
22836
  const i = this.m();
@@ -22857,9 +22862,9 @@ class Pk extends of {
22857
22862
  return n;
22858
22863
  }
22859
22864
  get isHostRendered() {
22860
- const n = Fu.has(this.u);
22865
+ const n = Mu.has(this.u);
22861
22866
  return n || this.u.updateComplete.then(() => {
22862
- Fu.add(this.u);
22867
+ Mu.add(this.u);
22863
22868
  }), n;
22864
22869
  }
22865
22870
  j(n, e = this.O()) {
@@ -22912,7 +22917,7 @@ class Pk extends of {
22912
22917
  this.shouldLog && !this.isDisabled() && console.log(n, this.options.id, e);
22913
22918
  }
22914
22919
  }
22915
- const ti = Vs(Pk);
22920
+ const ei = qs(Pk);
22916
22921
  class Mk extends YS {
22917
22922
  constructor(n, e, r) {
22918
22923
  super({
@@ -23022,7 +23027,7 @@ var $k = Object.defineProperty, Dk = Object.getOwnPropertyDescriptor, cf = (t) =
23022
23027
  (o = t[a]) && (i = (r ? o(n, e, i) : o(i)) || i);
23023
23028
  return r && i && $k(n, e, i), i;
23024
23029
  }, uf = (t, n, e) => n.has(t) || cf("Cannot " + e), Kn = (t, n, e) => (uf(t, n, "read from private field"), e ? e.call(t) : n.get(t)), Jn = (t, n, e) => n.has(t) ? cf("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, e), Zn = (t, n, e, r) => (uf(t, n, "write to private field"), n.set(t, e), e), yi, bi, wi, Si, ki;
23025
- const Bk = "lr.chatbot.broadcast_channel." + document.location.hostname, bo = "lr.chatbot.conversation_id";
23030
+ const Bk = "lr.chatbot.broadcast_channel." + document.location.hostname, ti = "lr.chatbot.conversation_id";
23026
23031
  let Tt = class extends Fe {
23027
23032
  constructor() {
23028
23033
  super(() => new Mk(this.apiUrl, this.country, this.language)), Jn(this, yi, "/bff"), Jn(this, bi, !1), Jn(this, wi, !1), Jn(this, Si, !1), Jn(this, ki, !1), this._closeClickCount = 0, this._broadcastController = new Nk(
@@ -23061,7 +23066,7 @@ let Tt = class extends Fe {
23061
23066
  Zn(this, ki, t);
23062
23067
  }
23063
23068
  getVersion() {
23064
- return "LR Chatbot - 0.13.12";
23069
+ return "LR Chatbot - 0.13.13";
23065
23070
  }
23066
23071
  async connectedCallback() {
23067
23072
  super.connectedCallback(), await this._conversationHistoryTask.run(), await this._conversationHistoryTask.taskComplete && ((() => {
@@ -23092,7 +23097,7 @@ let Tt = class extends Fe {
23092
23097
  this.deepChat = t, this.deepChat && (this.setDeepChatStyle(), this.setDeepChatTranslations(), this.setChatConnection(), await this.setDeepChatHistory());
23093
23098
  }
23094
23099
  getCurrentConversationId() {
23095
- return localStorage.getItem(bo);
23100
+ return localStorage.getItem(ti);
23096
23101
  }
23097
23102
  createConversationHistoryTask() {
23098
23103
  return new fp(this, {
@@ -23179,12 +23184,12 @@ let Tt = class extends Fe {
23179
23184
  channel: "Channel"
23180
23185
  },
23181
23186
  context: []
23182
- }, a = this._conversationHistoryTask.value ? this.getCurrentConversationId() : null;
23187
+ }, a = this.getCurrentConversationId();
23183
23188
  a && (i.conversation_id = a);
23184
23189
  const o = await r.chatbotConversationsPost(i);
23185
23190
  if (!o.message)
23186
23191
  throw Error();
23187
- o.conversation_id && a === null && localStorage.setItem(bo, o.conversation_id), o.popup_escalation && o.message_status === "max_attempts" && (o.message += gt("chatbot:maxAttemptsSuggestionEscalation")), n.onResponse({ html: o.message, role: "ai" });
23192
+ o.conversation_id && a === null && localStorage.setItem(ti, o.conversation_id), o.conversation_status === "done" && localStorage.removeItem(ti), o.popup_escalation && o.message_status === "max_attempts" && (o.message += gt("chatbot:maxAttemptsSuggestionEscalation")), n.onResponse({ html: o.message, role: "ai" });
23188
23193
  } catch {
23189
23194
  n.onResponse({
23190
23195
  html: `${gt("chatbot:errorMessage", {
@@ -23240,12 +23245,12 @@ let Tt = class extends Fe {
23240
23245
  this.opened || (this.opened = !0, this.minimized = !1, this._broadcastController.send({ action: "open" }));
23241
23246
  }
23242
23247
  close() {
23243
- (this.opened || this.minimized) && (localStorage.removeItem(bo), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this._broadcastController.send({ action: "close" }));
23248
+ (this.opened || this.minimized) && (localStorage.removeItem(ti), this.opened = !1, this.minimized = !1, this.exitOverlay = !1, this._closeClickCount = 0, this._broadcastController.send({ action: "close" }));
23244
23249
  }
23245
23250
  renderExitOverlay() {
23246
- return Ke`
23251
+ return je`
23247
23252
  <div
23248
- ${ti({
23253
+ ${ei({
23249
23254
  in: Du,
23250
23255
  out: $u
23251
23256
  })}
@@ -23268,8 +23273,8 @@ let Tt = class extends Fe {
23268
23273
  </div>
23269
23274
  `;
23270
23275
  }
23271
- renderOpenedChat() {
23272
- return Ke`
23276
+ renderChatPopin() {
23277
+ return je`
23273
23278
  <div
23274
23279
  id="chat-wrapper"
23275
23280
  aria-hidden=${!this.opened}
@@ -23278,10 +23283,7 @@ let Tt = class extends Fe {
23278
23283
  aria-label="chat window"
23279
23284
  role="region"
23280
23285
  part="wrapper"
23281
- ${ti({
23282
- in: ei,
23283
- out: ei
23284
- })}
23286
+ ${ei()}
23285
23287
  >
23286
23288
  <div id="chat-wrapper-menu" part="menu">
23287
23289
  <span id="chat-wrapper-menu-title">${gt("chatbot:title")}</span>
@@ -23336,8 +23338,8 @@ let Tt = class extends Fe {
23336
23338
  </div>
23337
23339
  <div id="chat-wrapper-content">
23338
23340
  ${this.exitOverlay ? this.renderExitOverlay() : fe}
23339
- ${this._conversationHistoryTask.status === Ja.PENDING ? Ke`<lr-loading-overlay
23340
- ${ti({
23341
+ ${this._conversationHistoryTask.status === Ja.PENDING ? je`<lr-loading-overlay
23342
+ ${ei({
23341
23343
  in: Du,
23342
23344
  out: $u
23343
23345
  })}
@@ -23348,7 +23350,7 @@ let Tt = class extends Fe {
23348
23350
  `;
23349
23351
  }
23350
23352
  renderMinimizedChat() {
23351
- return Ke`
23353
+ return je`
23352
23354
  <div
23353
23355
  id="chat-minimized"
23354
23356
  @click=${this.open}
@@ -23356,9 +23358,9 @@ let Tt = class extends Fe {
23356
23358
  aria-label="Open chat"
23357
23359
  aria-expanded=${!this.minimized}
23358
23360
  part="wrapper-minimized"
23359
- ${ti({
23360
- in: ei,
23361
- out: ei
23361
+ ${ei({
23362
+ in: Nu,
23363
+ out: Nu
23362
23364
  })}
23363
23365
  >
23364
23366
  <svg
@@ -23381,12 +23383,7 @@ let Tt = class extends Fe {
23381
23383
  `;
23382
23384
  }
23383
23385
  renderElement() {
23384
- if (!this.opened && !this.minimized)
23385
- return fe;
23386
- if (this.opened && !this.minimized)
23387
- return this.renderOpenedChat();
23388
- if (this.minimized && !this.opened)
23389
- return this.renderMinimizedChat();
23386
+ return je`${this.renderChatPopin()}${this.minimized && !this.opened ? this.renderMinimizedChat() : fe}`;
23390
23387
  }
23391
23388
  };
23392
23389
  yi = /* @__PURE__ */ new WeakMap();