@2uinc/frontend-component-xpert-chatbot 1.27.1 → 1.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib/index.min.js +258 -266
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import Ge, { createContext as An, useState as ee, useCallback as ct, useEffect as Ce, useContext as Q, useRef as ze, forwardRef as ho, createElement as _r, useMemo as Rs, Fragment as Bs } from "react";
1
+ import Ge, { createContext as An, useState as ee, useCallback as bt, useEffect as Ce, useContext as Q, useRef as ze, forwardRef as ho, createElement as _r, useMemo as Rs, Fragment as Bs } from "react";
2
2
  import Hs from "react-dom";
3
3
  var fn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function tt(e) {
@@ -251,7 +251,7 @@ function Xs() {
251
251
  return v || pe && pe.binding && pe.binding("util");
252
252
  } catch {
253
253
  }
254
- }(), Pe = Ee && Ee.isTypedArray;
254
+ }(), Ae = Ee && Ee.isTypedArray;
255
255
  function Xe(v, _, F) {
256
256
  switch (F.length) {
257
257
  case 0:
@@ -275,22 +275,22 @@ function Xs() {
275
275
  return v(_);
276
276
  };
277
277
  }
278
- function pt(v, _) {
278
+ function dt(v, _) {
279
279
  return v == null ? void 0 : v[_];
280
280
  }
281
- function ht(v, _) {
281
+ function pt(v, _) {
282
282
  return function(F) {
283
283
  return v(_(F));
284
284
  };
285
285
  }
286
- var Y = Array.prototype, ae = Function.prototype, ye = Object.prototype, ke = ne["__core-js_shared__"], Ne = ae.toString, Oe = ye.hasOwnProperty, lt = function() {
286
+ var Y = Array.prototype, ae = Function.prototype, he = Object.prototype, ke = ne["__core-js_shared__"], Oe = ae.toString, Ie = he.hasOwnProperty, lt = function() {
287
287
  var v = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
288
288
  return v ? "Symbol(src)_1." + v : "";
289
- }(), Et = ye.toString, Bt = Ne.call(Object), M = RegExp(
290
- "^" + Ne.call(Oe).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
289
+ }(), Et = he.toString, Bt = Oe.call(Object), M = RegExp(
290
+ "^" + Oe.call(Ie).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
291
  ), V = xe ? ne.Buffer : void 0, X = ne.Symbol, oe = ne.Uint8Array;
292
292
  V && V.allocUnsafe;
293
- var ue = ht(Object.getPrototypeOf, Object), Ae = Object.create, Ze = ye.propertyIsEnumerable, $e = Y.splice, je = X ? X.toStringTag : void 0, Ye = function() {
293
+ var ue = pt(Object.getPrototypeOf, Object), Fe = Object.create, Ze = he.propertyIsEnumerable, $e = Y.splice, je = X ? X.toStringTag : void 0, Ye = function() {
294
294
  try {
295
295
  var v = zn(Object, "defineProperty");
296
296
  return v({}, "", {}), v;
@@ -300,16 +300,16 @@ function Xs() {
300
300
  function v() {
301
301
  }
302
302
  return function(_) {
303
- if (!gt(_))
303
+ if (!mt(_))
304
304
  return {};
305
- if (Ae)
306
- return Ae(_);
305
+ if (Fe)
306
+ return Fe(_);
307
307
  v.prototype = _;
308
308
  var F = new v();
309
309
  return v.prototype = void 0, F;
310
310
  };
311
311
  }();
312
- function mt(v) {
312
+ function ht(v) {
313
313
  var _ = -1, F = v == null ? 0 : v.length;
314
314
  for (this.clear(); ++_ < F; ) {
315
315
  var G = v[_];
@@ -329,17 +329,17 @@ function Xs() {
329
329
  var F = _[v];
330
330
  return F === r ? void 0 : F;
331
331
  }
332
- return Oe.call(_, v) ? _[v] : void 0;
332
+ return Ie.call(_, v) ? _[v] : void 0;
333
333
  }
334
334
  function ql(v) {
335
335
  var _ = this.__data__;
336
- return Ht ? _[v] !== void 0 : Oe.call(_, v);
336
+ return Ht ? _[v] !== void 0 : Ie.call(_, v);
337
337
  }
338
338
  function Ul(v, _) {
339
339
  var F = this.__data__;
340
340
  return this.size += this.has(v) ? 0 : 1, F[v] = Ht && _ === void 0 ? r : _, this;
341
341
  }
342
- mt.prototype.clear = Bl, mt.prototype.delete = Hl, mt.prototype.get = zl, mt.prototype.has = ql, mt.prototype.set = Ul;
342
+ ht.prototype.clear = Bl, ht.prototype.delete = Hl, ht.prototype.get = zl, ht.prototype.has = ql, ht.prototype.set = Ul;
343
343
  function rt(v) {
344
344
  var _ = -1, F = v == null ? 0 : v.length;
345
345
  for (this.clear(); ++_ < F; ) {
@@ -378,9 +378,9 @@ function Xs() {
378
378
  }
379
379
  function Zl() {
380
380
  this.size = 0, this.__data__ = {
381
- hash: new mt(),
381
+ hash: new ht(),
382
382
  map: new (Ei || rt)(),
383
- string: new mt()
383
+ string: new ht()
384
384
  };
385
385
  }
386
386
  function Yl(v) {
@@ -427,12 +427,12 @@ function Xs() {
427
427
  }
428
428
  It.prototype.clear = es, It.prototype.delete = ts, It.prototype.get = ns, It.prototype.has = rs, It.prototype.set = is;
429
429
  function as(v, _) {
430
- var F = $n(v), G = !F && Un(v), re = !F && !G && Ai(v), he = !F && !G && !re && Li(v), be = F || G || re || he, le = be ? St(v.length, String) : [], ve = le.length;
430
+ var F = $n(v), G = !F && Un(v), re = !F && !G && Ai(v), me = !F && !G && !re && Li(v), be = F || G || re || me, le = be ? St(v.length, String) : [], ve = le.length;
431
431
  for (var We in v)
432
432
  be && // Safari 9 has enumerable `arguments.length` in strict mode.
433
433
  (We == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
434
434
  re && (We == "offset" || We == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
435
- he && (We == "buffer" || We == "byteLength" || We == "byteOffset") || // Skip index properties.
435
+ me && (We == "buffer" || We == "byteLength" || We == "byteOffset") || // Skip index properties.
436
436
  Ii(We, ve)) || le.push(We);
437
437
  return le;
438
438
  }
@@ -441,7 +441,7 @@ function Xs() {
441
441
  }
442
442
  function os(v, _, F) {
443
443
  var G = v[_];
444
- (!(Oe.call(v, _) && cn(G, F)) || F === void 0 && !(_ in v)) && Hn(v, _, F);
444
+ (!(Ie.call(v, _) && cn(G, F)) || F === void 0 && !(_ in v)) && Hn(v, _, F);
445
445
  }
446
446
  function ln(v, _) {
447
447
  for (var F = v.length; F--; )
@@ -465,7 +465,7 @@ function Xs() {
465
465
  return zt(v) && sn(v) == l;
466
466
  }
467
467
  function ss(v) {
468
- if (!gt(v) || _s(v))
468
+ if (!mt(v) || _s(v))
469
469
  return !1;
470
470
  var _ = Wn(v) ? M : W;
471
471
  return _.test(As(v));
@@ -474,35 +474,35 @@ function Xs() {
474
474
  return zt(v) && Fi(v.length) && !!x[sn(v)];
475
475
  }
476
476
  function cs(v) {
477
- if (!gt(v))
477
+ if (!mt(v))
478
478
  return Es(v);
479
479
  var _ = Pi(v), F = [];
480
480
  for (var G in v)
481
- G == "constructor" && (_ || !Oe.call(v, G)) || F.push(G);
481
+ G == "constructor" && (_ || !Ie.call(v, G)) || F.push(G);
482
482
  return F;
483
483
  }
484
484
  function Oi(v, _, F, G, re) {
485
- v !== _ && ls(_, function(he, be) {
486
- if (re || (re = new It()), gt(he))
485
+ v !== _ && ls(_, function(me, be) {
486
+ if (re || (re = new It()), mt(me))
487
487
  fs(v, _, be, F, Oi, G, re);
488
488
  else {
489
- var le = G ? G(qn(v, be), he, be + "", v, _, re) : void 0;
490
- le === void 0 && (le = he), Bn(v, be, le);
489
+ var le = G ? G(qn(v, be), me, be + "", v, _, re) : void 0;
490
+ le === void 0 && (le = me), Bn(v, be, le);
491
491
  }
492
492
  }, Ni);
493
493
  }
494
- function fs(v, _, F, G, re, he, be) {
494
+ function fs(v, _, F, G, re, me, be) {
495
495
  var le = qn(v, F), ve = qn(_, F), We = be.get(ve);
496
496
  if (We) {
497
497
  Bn(v, F, We);
498
498
  return;
499
499
  }
500
- var De = he ? he(le, ve, F + "", v, _, be) : void 0, qt = De === void 0;
500
+ var De = me ? me(le, ve, F + "", v, _, be) : void 0, qt = De === void 0;
501
501
  if (qt) {
502
502
  var Gn = $n(ve), Xn = !Gn && Ai(ve), Di = !Gn && !Xn && Li(ve);
503
- De = ve, Gn || Xn || Di ? $n(le) ? De = le : Fs(le) ? De = ys(le) : Xn ? (qt = !1, De = hs(ve)) : Di ? (qt = !1, De = gs(ve)) : De = [] : Ls(ve) || Un(ve) ? (De = le, Un(le) ? De = Ns(le) : (!gt(le) || Wn(le)) && (De = Cs(ve))) : qt = !1;
503
+ De = ve, Gn || Xn || Di ? $n(le) ? De = le : Fs(le) ? De = ys(le) : Xn ? (qt = !1, De = hs(ve)) : Di ? (qt = !1, De = gs(ve)) : De = [] : Ls(ve) || Un(ve) ? (De = le, Un(le) ? De = Ns(le) : (!mt(le) || Wn(le)) && (De = Cs(ve))) : qt = !1;
504
504
  }
505
- qt && (be.set(ve, De), re(De, ve, G, he, be), be.delete(ve)), Bn(v, F, De);
505
+ qt && (be.set(ve, De), re(De, ve, G, me, be), be.delete(ve)), Bn(v, F, De);
506
506
  }
507
507
  function ds(v, _) {
508
508
  return Is(Os(v, _, ji), v + "");
@@ -535,27 +535,27 @@ function Xs() {
535
535
  function bs(v, _, F, G) {
536
536
  var re = !F;
537
537
  F || (F = {});
538
- for (var he = -1, be = _.length; ++he < be; ) {
539
- var le = _[he], ve = void 0;
538
+ for (var me = -1, be = _.length; ++me < be; ) {
539
+ var le = _[me], ve = void 0;
540
540
  ve === void 0 && (ve = v[le]), re ? Hn(F, le, ve) : os(F, le, ve);
541
541
  }
542
542
  return F;
543
543
  }
544
544
  function vs(v) {
545
545
  return ds(function(_, F) {
546
- var G = -1, re = F.length, he = re > 1 ? F[re - 1] : void 0, be = re > 2 ? F[2] : void 0;
547
- for (he = v.length > 3 && typeof he == "function" ? (re--, he) : void 0, be && ks(F[0], F[1], be) && (he = re < 3 ? void 0 : he, re = 1), _ = Object(_); ++G < re; ) {
546
+ var G = -1, re = F.length, me = re > 1 ? F[re - 1] : void 0, be = re > 2 ? F[2] : void 0;
547
+ for (me = v.length > 3 && typeof me == "function" ? (re--, me) : void 0, be && ks(F[0], F[1], be) && (me = re < 3 ? void 0 : me, re = 1), _ = Object(_); ++G < re; ) {
548
548
  var le = F[G];
549
- le && v(_, le, G, he);
549
+ le && v(_, le, G, me);
550
550
  }
551
551
  return _;
552
552
  });
553
553
  }
554
554
  function xs(v) {
555
555
  return function(_, F, G) {
556
- for (var re = -1, he = Object(_), be = G(_), le = be.length; le--; ) {
556
+ for (var re = -1, me = Object(_), be = G(_), le = be.length; le--; ) {
557
557
  var ve = be[++re];
558
- if (F(he[ve], ve, he) === !1)
558
+ if (F(me[ve], ve, me) === !1)
559
559
  break;
560
560
  }
561
561
  return _;
@@ -566,11 +566,11 @@ function Xs() {
566
566
  return Ss(_) ? F[typeof _ == "string" ? "string" : "hash"] : F.map;
567
567
  }
568
568
  function zn(v, _) {
569
- var F = pt(v, _);
569
+ var F = dt(v, _);
570
570
  return ss(F) ? F : void 0;
571
571
  }
572
572
  function ws(v) {
573
- var _ = Oe.call(v, je), F = v[je];
573
+ var _ = Ie.call(v, je), F = v[je];
574
574
  try {
575
575
  v[je] = void 0;
576
576
  var G = !0;
@@ -587,7 +587,7 @@ function Xs() {
587
587
  return _ = _ ?? o, !!_ && (F == "number" || F != "symbol" && J.test(v)) && v > -1 && v % 1 == 0 && v < _;
588
588
  }
589
589
  function ks(v, _, F) {
590
- if (!gt(F))
590
+ if (!mt(F))
591
591
  return !1;
592
592
  var G = typeof _;
593
593
  return (G == "number" ? Vn(F) && Ii(_, F.length) : G == "string" && _ in F) ? cn(F[_], v) : !1;
@@ -600,7 +600,7 @@ function Xs() {
600
600
  return !!lt && lt in v;
601
601
  }
602
602
  function Pi(v) {
603
- var _ = v && v.constructor, F = typeof _ == "function" && _.prototype || ye;
603
+ var _ = v && v.constructor, F = typeof _ == "function" && _.prototype || he;
604
604
  return v === F;
605
605
  }
606
606
  function Es(v) {
@@ -615,7 +615,7 @@ function Xs() {
615
615
  }
616
616
  function Os(v, _, F) {
617
617
  return _ = Tt(_ === void 0 ? v.length - 1 : _, 0), function() {
618
- for (var G = arguments, re = -1, he = Tt(G.length - _, 0), be = Array(he); ++re < he; )
618
+ for (var G = arguments, re = -1, me = Tt(G.length - _, 0), be = Array(me); ++re < me; )
619
619
  be[re] = G[_ + re];
620
620
  re = -1;
621
621
  for (var le = Array(_ + 1); ++re < _; )
@@ -643,7 +643,7 @@ function Xs() {
643
643
  function As(v) {
644
644
  if (v != null) {
645
645
  try {
646
- return Ne.call(v);
646
+ return Oe.call(v);
647
647
  } catch {
648
648
  }
649
649
  try {
@@ -659,7 +659,7 @@ function Xs() {
659
659
  var Un = Ti(/* @__PURE__ */ function() {
660
660
  return arguments;
661
661
  }()) ? Ti : function(v) {
662
- return zt(v) && Oe.call(v, "callee") && !Ze.call(v, "callee");
662
+ return zt(v) && Ie.call(v, "callee") && !Ze.call(v, "callee");
663
663
  }, $n = Array.isArray;
664
664
  function Vn(v) {
665
665
  return v != null && Fi(v.length) && !Wn(v);
@@ -669,7 +669,7 @@ function Xs() {
669
669
  }
670
670
  var Ai = we || Ms;
671
671
  function Wn(v) {
672
- if (!gt(v))
672
+ if (!mt(v))
673
673
  return !1;
674
674
  var _ = sn(v);
675
675
  return _ == d || _ == y || _ == u || _ == L;
@@ -677,7 +677,7 @@ function Xs() {
677
677
  function Fi(v) {
678
678
  return typeof v == "number" && v > -1 && v % 1 == 0 && v <= o;
679
679
  }
680
- function gt(v) {
680
+ function mt(v) {
681
681
  var _ = typeof v;
682
682
  return v != null && (_ == "object" || _ == "function");
683
683
  }
@@ -690,10 +690,10 @@ function Xs() {
690
690
  var _ = ue(v);
691
691
  if (_ === null)
692
692
  return !0;
693
- var F = Oe.call(_, "constructor") && _.constructor;
694
- return typeof F == "function" && F instanceof F && Ne.call(F) == Bt;
693
+ var F = Ie.call(_, "constructor") && _.constructor;
694
+ return typeof F == "function" && F instanceof F && Oe.call(F) == Bt;
695
695
  }
696
- var Li = Pe ? _t(Pe) : us;
696
+ var Li = Ae ? _t(Ae) : us;
697
697
  function Ns(v) {
698
698
  return bs(v, Ni(v));
699
699
  }
@@ -1413,7 +1413,7 @@ const Vr = /* @__PURE__ */ tt(Zs), Ys = {
1413
1413
  configurations: n = null,
1414
1414
  xpertKey: r = null
1415
1415
  }) => {
1416
- const [i, a] = ee(!1), [o, l] = ee({}), s = ct(async () => {
1416
+ const [i, a] = ee(!1), [o, l] = ee({}), s = bt(async () => {
1417
1417
  if (a(!1), !(!t && !r && (!n || Object.keys(n).length === 0))) {
1418
1418
  if (t)
1419
1419
  try {
@@ -1554,7 +1554,7 @@ yo.propTypes = {
1554
1554
  xpertKey: k.string
1555
1555
  };
1556
1556
  const wt = An({}), bo = ({ children: e }) => {
1557
- const { id: t } = Q(Se), [n, r] = ee(null), [i, a] = ee(!1), [o, l] = ee([]), s = ct(() => {
1557
+ const { id: t } = Q(Se), [n, r] = ee(null), [i, a] = ee(!1), [o, l] = ee([]), s = bt(() => {
1558
1558
  r(null), a(!1), l([]), Re.remove(`${t}-conversation-history-id`);
1559
1559
  }, [t, r]), c = {
1560
1560
  conversationId: n,
@@ -1581,11 +1581,11 @@ const $i = 991, au = () => {
1581
1581
  };
1582
1582
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
1583
1583
  }, []), e;
1584
- }, ft = {
1584
+ }, ct = {
1585
1585
  LIVECHAT: "LIVECHAT",
1586
1586
  XPERT: "XPERT"
1587
- }, Ie = An({}), vo = ({ children: e }) => {
1588
- const [t, n] = ee(!1), [r, i] = ee(!1), [a, o] = ee(!1), [l, s] = ee(!0), [u, c] = ee(!1), [f, p] = ee(ft.XPERT), d = au(), y = {
1587
+ }, Pe = An({}), vo = ({ children: e }) => {
1588
+ const [t, n] = ee(!1), [r, i] = ee(!1), [a, o] = ee(!1), [l, s] = ee(!0), [u, c] = ee(!1), [f, p] = ee(ct.XPERT), d = au(), y = {
1589
1589
  disabledScroll: t,
1590
1590
  hasError: r,
1591
1591
  hasNewMessage: a,
@@ -1600,7 +1600,7 @@ const $i = 991, au = () => {
1600
1600
  setLoading: c,
1601
1601
  setMode: p
1602
1602
  };
1603
- return /* @__PURE__ */ C.jsx(Ie.Provider, { value: y, children: e });
1603
+ return /* @__PURE__ */ C.jsx(Pe.Provider, { value: y, children: e });
1604
1604
  };
1605
1605
  vo.propTypes = {
1606
1606
  children: k.element.isRequired
@@ -1654,7 +1654,7 @@ function Fn({
1654
1654
  children: i,
1655
1655
  ...a
1656
1656
  }) {
1657
- const { isMobile: o } = Q(Ie);
1657
+ const { isMobile: o } = Q(Pe);
1658
1658
  return /* @__PURE__ */ C.jsx(
1659
1659
  "button",
1660
1660
  {
@@ -1692,7 +1692,7 @@ eyes follow your mouse when you hover near it.`, Wr = ({
1692
1692
  handleFloatingActionButtonClick: e
1693
1693
  }) => {
1694
1694
  var d, y, h, w;
1695
- const { id: t, launchButton: n } = Q(Se), { isMobile: r } = Q(Ie), i = !Re.get(
1695
+ const { id: t, launchButton: n } = Q(Se), { isMobile: r } = Q(Pe), i = !Re.get(
1696
1696
  `${t}-proactive-message-xpert-chatbot`
1697
1697
  ), a = ze(null), o = ze(!1), l = i ? (d = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : d.delayMs : ((y = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : y.delayMs) * 2, [s, u] = ee(!1), c = window.matchMedia(
1698
1698
  `(max-width: ${su}px)`
@@ -1902,7 +1902,7 @@ const cu = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
1902
1902
  default: cu
1903
1903
  }, Gr = ({ handleFloatingActionButtonClick: e }) => {
1904
1904
  var r, i;
1905
- const { launchButton: t } = Q(Se), { isMobile: n } = Q(Ie);
1905
+ const { launchButton: t } = Q(Se), { isMobile: n } = Q(Pe);
1906
1906
  return /* @__PURE__ */ C.jsx(
1907
1907
  Fn,
1908
1908
  {
@@ -3311,7 +3311,7 @@ function jn({
3311
3311
  inputRef: i,
3312
3312
  value: a
3313
3313
  }) {
3314
- const { primaryColor: o } = Q(Se), { hasError: l, hasNewMessage: s } = Q(Ie);
3314
+ const { primaryColor: o } = Q(Se), { hasError: l, hasNewMessage: s } = Q(Pe);
3315
3315
  Ce(() => {
3316
3316
  var f;
3317
3317
  (l || s) && ((f = i.current) == null || f.focus());
@@ -3436,7 +3436,7 @@ function Dn({
3436
3436
  userTrackingName: l
3437
3437
  }) {
3438
3438
  var g, P, L, q;
3439
- const [s, u] = ee(!0), { primaryColor: c, id: f, userTracking: p, conversationScreen: d } = Q(Se), y = ct(
3439
+ const [s, u] = ee(!0), { primaryColor: c, id: f, userTracking: p, conversationScreen: d } = Q(Se), y = bt(
3440
3440
  (I) => {
3441
3441
  var b, E, z, N;
3442
3442
  ((b = I == null ? void 0 : I.data) == null ? void 0 : b.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Re.set(`${f}-live-chat-open`, 1, {
@@ -3445,7 +3445,7 @@ function Dn({
3445
3445
  }), ((z = I == null ? void 0 : I.data) == null ? void 0 : z.type) === "connection" && ((N = I == null ? void 0 : I.data) == null ? void 0 : N.state) === "disconnected" && Re.remove(`${f}-live-chat-open`);
3446
3446
  },
3447
3447
  [f]
3448
- ), h = ct(
3448
+ ), h = bt(
3449
3449
  (I) => {
3450
3450
  var b, E, z, N;
3451
3451
  ((b = I == null ? void 0 : I.data) == null ? void 0 : b.type) === "unhide" && ((E = I == null ? void 0 : I.data) == null ? void 0 : E.reason) === "pop-out" && t(!0), ((z = I == null ? void 0 : I.data) == null ? void 0 : z.type) === "open" && ((N = I == null ? void 0 : I.data) == null ? void 0 : N.chatState) === !0 && t(!0);
@@ -4355,7 +4355,7 @@ function Gc(e, t) {
4355
4355
  (t[n].add === "after" ? e : r).push(t[n]);
4356
4356
  et(e, 0, 0, r);
4357
4357
  }
4358
- const Xc = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Je = dt(/[A-Za-z]/), Be = dt(/[\dA-Za-z]/), Zc = dt(/[#-'*+\--9=?A-Z^-~]/);
4358
+ const Xc = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Je = ft(/[A-Za-z]/), Be = ft(/[\dA-Za-z]/), Zc = ft(/[#-'*+\--9=?A-Z^-~]/);
4359
4359
  function Mr(e) {
4360
4360
  return (
4361
4361
  // Special whitespace codes (which have negative values), C0 and Control
@@ -4363,24 +4363,24 @@ function Mr(e) {
4363
4363
  e !== null && (e < 32 || e === 127)
4364
4364
  );
4365
4365
  }
4366
- const Rr = dt(/\d/), Yc = dt(/[\dA-Fa-f]/), Kc = dt(/[!-/:-@[-`{-~]/);
4366
+ const Rr = ft(/\d/), Yc = ft(/[\dA-Fa-f]/), Kc = ft(/[!-/:-@[-`{-~]/);
4367
4367
  function K(e) {
4368
4368
  return e !== null && e < -2;
4369
4369
  }
4370
- function Le(e) {
4370
+ function Ne(e) {
4371
4371
  return e !== null && (e < 0 || e === 32);
4372
4372
  }
4373
4373
  function se(e) {
4374
4374
  return e === -2 || e === -1 || e === 32;
4375
4375
  }
4376
- const Jc = dt(Xc), Qc = dt(/\s/);
4377
- function dt(e) {
4376
+ const Jc = ft(Xc), Qc = ft(/\s/);
4377
+ function ft(e) {
4378
4378
  return t;
4379
4379
  function t(n) {
4380
4380
  return n !== null && e.test(String.fromCharCode(n));
4381
4381
  }
4382
4382
  }
4383
- function ge(e, t, n, r) {
4383
+ function ye(e, t, n, r) {
4384
4384
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
4385
4385
  let a = 0;
4386
4386
  return o;
@@ -4407,7 +4407,7 @@ function tf(e) {
4407
4407
  e.consume(l);
4408
4408
  return;
4409
4409
  }
4410
- return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ge(e, t, "linePrefix");
4410
+ return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ye(e, t, "linePrefix");
4411
4411
  }
4412
4412
  function i(l) {
4413
4413
  return e.enter("paragraph"), a(l);
@@ -4563,7 +4563,7 @@ function rf(e) {
4563
4563
  }
4564
4564
  }
4565
4565
  function af(e, t, n) {
4566
- return ge(
4566
+ return ye(
4567
4567
  e,
4568
4568
  e.attempt(this.parser.constructs.document, t, n),
4569
4569
  "linePrefix",
@@ -4571,7 +4571,7 @@ function af(e, t, n) {
4571
4571
  );
4572
4572
  }
4573
4573
  function va(e) {
4574
- if (e === null || Le(e) || Qc(e))
4574
+ if (e === null || Ne(e) || Qc(e))
4575
4575
  return 1;
4576
4576
  if (Jc(e))
4577
4577
  return 2;
@@ -4711,7 +4711,7 @@ const Mn = {
4711
4711
  function cf(e, t, n) {
4712
4712
  return r;
4713
4713
  function r(a) {
4714
- return se(a) ? ge(e, i, "linePrefix")(a) : i(a);
4714
+ return se(a) ? ye(e, i, "linePrefix")(a) : i(a);
4715
4715
  }
4716
4716
  function i(a) {
4717
4717
  return a === null || K(a) ? t(a) : n(a);
@@ -4745,7 +4745,7 @@ function df(e, t, n) {
4745
4745
  const r = this;
4746
4746
  return i;
4747
4747
  function i(o) {
4748
- return se(o) ? ge(
4748
+ return se(o) ? ye(
4749
4749
  e,
4750
4750
  a,
4751
4751
  "linePrefix",
@@ -4827,7 +4827,7 @@ function gf(e, t, n) {
4827
4827
  return a = E && E[1].type === "linePrefix" ? E[2].sliceSerialize(E[1], !0).length : 0, l = b, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(b);
4828
4828
  }
4829
4829
  function c(b) {
4830
- return b === l ? (o++, e.consume(b), c) : o < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), se(b) ? ge(e, f, "whitespace")(b) : f(b));
4830
+ return b === l ? (o++, e.consume(b), c) : o < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), se(b) ? ye(e, f, "whitespace")(b) : f(b));
4831
4831
  }
4832
4832
  function f(b) {
4833
4833
  return b === null || K(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(Ca, h, q)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -4835,7 +4835,7 @@ function gf(e, t, n) {
4835
4835
  }), p(b));
4836
4836
  }
4837
4837
  function p(b) {
4838
- return b === null || K(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(b)) : se(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, d, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), p);
4838
+ return b === null || K(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(b)) : se(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ye(e, d, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), p);
4839
4839
  }
4840
4840
  function d(b) {
4841
4841
  return b === null || K(b) ? f(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -4852,7 +4852,7 @@ function gf(e, t, n) {
4852
4852
  return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), g;
4853
4853
  }
4854
4854
  function g(b) {
4855
- return a > 0 && se(b) ? ge(
4855
+ return a > 0 && se(b) ? ye(
4856
4856
  e,
4857
4857
  P,
4858
4858
  "linePrefix",
@@ -4875,7 +4875,7 @@ function gf(e, t, n) {
4875
4875
  return b.enter("lineEnding"), b.consume(T), b.exit("lineEnding"), D;
4876
4876
  }
4877
4877
  function D(T) {
4878
- return b.enter("codeFencedFence"), se(T) ? ge(
4878
+ return b.enter("codeFencedFence"), se(T) ? ye(
4879
4879
  b,
4880
4880
  B,
4881
4881
  "linePrefix",
@@ -4886,7 +4886,7 @@ function gf(e, t, n) {
4886
4886
  return T === l ? (b.enter("codeFencedFenceSequence"), O(T)) : z(T);
4887
4887
  }
4888
4888
  function O(T) {
4889
- return T === l ? (N++, b.consume(T), O) : N >= o ? (b.exit("codeFencedFenceSequence"), se(T) ? ge(b, S, "whitespace")(T) : S(T)) : z(T);
4889
+ return T === l ? (N++, b.consume(T), O) : N >= o ? (b.exit("codeFencedFenceSequence"), se(T) ? ye(b, S, "whitespace")(T) : S(T)) : z(T);
4890
4890
  }
4891
4891
  function S(T) {
4892
4892
  return T === null || K(T) ? (b.exit("codeFencedFence"), E(T)) : z(T);
@@ -4914,7 +4914,7 @@ function vf(e, t, n) {
4914
4914
  const r = this;
4915
4915
  return i;
4916
4916
  function i(u) {
4917
- return e.enter("codeIndented"), ge(e, a, "linePrefix", 5)(u);
4917
+ return e.enter("codeIndented"), ye(e, a, "linePrefix", 5)(u);
4918
4918
  }
4919
4919
  function a(u) {
4920
4920
  const c = r.events[r.events.length - 1];
@@ -4934,7 +4934,7 @@ function xf(e, t, n) {
4934
4934
  const r = this;
4935
4935
  return i;
4936
4936
  function i(o) {
4937
- return r.parser.lazy[r.now().line] ? n(o) : K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ge(e, a, "linePrefix", 5)(o);
4937
+ return r.parser.lazy[r.now().line] ? n(o) : K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ye(e, a, "linePrefix", 5)(o);
4938
4938
  }
4939
4939
  function a(o) {
4940
4940
  const l = r.events[r.events.length - 1];
@@ -5062,7 +5062,7 @@ function Pf(e, t, n) {
5062
5062
  const r = this;
5063
5063
  return i;
5064
5064
  function i(o) {
5065
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), ge(e, a, "linePrefix");
5065
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), ye(e, a, "linePrefix");
5066
5066
  }
5067
5067
  function a(o) {
5068
5068
  if (o === null || K(o))
@@ -5092,7 +5092,7 @@ function Ko(e, t, n, r, i, a, o, l, s) {
5092
5092
  return g === 60 || g === 62 || g === 92 ? (e.consume(g), d) : d(g);
5093
5093
  }
5094
5094
  function h(g) {
5095
- return !c && (g === null || g === 41 || Le(g)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(g)) : c < u && g === 40 ? (e.consume(g), c++, h) : g === 41 ? (e.consume(g), c--, h) : g === null || g === 32 || g === 40 || Mr(g) ? n(g) : (e.consume(g), g === 92 ? w : h);
5095
+ return !c && (g === null || g === 41 || Ne(g)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(g)) : c < u && g === 40 ? (e.consume(g), c++, h) : g === 41 ? (e.consume(g), c--, h) : g === null || g === 32 || g === 40 || Mr(g) ? n(g) : (e.consume(g), g === 92 ? w : h);
5096
5096
  }
5097
5097
  function w(g) {
5098
5098
  return g === 40 || g === 41 || g === 92 ? (e.consume(g), h) : h(g);
@@ -5132,7 +5132,7 @@ function Qo(e, t, n, r, i, a) {
5132
5132
  return p === o ? (e.enter(i), e.consume(p), e.exit(i), e.exit(r), t) : (e.enter(a), u(p));
5133
5133
  }
5134
5134
  function u(p) {
5135
- return p === o ? (e.exit(a), s(o)) : p === null ? n(p) : K(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), ge(e, u, "linePrefix")) : (e.enter("chunkString", {
5135
+ return p === o ? (e.exit(a), s(o)) : p === null ? n(p) : K(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), ye(e, u, "linePrefix")) : (e.enter("chunkString", {
5136
5136
  contentType: "string"
5137
5137
  }), c(p));
5138
5138
  }
@@ -5147,7 +5147,7 @@ function Jt(e, t) {
5147
5147
  let n;
5148
5148
  return r;
5149
5149
  function r(i) {
5150
- return K(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ge(
5150
+ return K(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ye(
5151
5151
  e,
5152
5152
  r,
5153
5153
  n ? "linePrefix" : "lineSuffix"
@@ -5189,7 +5189,7 @@ function Lf(e, t, n) {
5189
5189
  ), d === 58 ? (e.enter("definitionMarker"), e.consume(d), e.exit("definitionMarker"), s) : n(d);
5190
5190
  }
5191
5191
  function s(d) {
5192
- return Le(d) ? Jt(e, u)(d) : u(d);
5192
+ return Ne(d) ? Jt(e, u)(d) : u(d);
5193
5193
  }
5194
5194
  function u(d) {
5195
5195
  return Ko(
@@ -5208,7 +5208,7 @@ function Lf(e, t, n) {
5208
5208
  return e.attempt(Ff, f, f)(d);
5209
5209
  }
5210
5210
  function f(d) {
5211
- return se(d) ? ge(e, p, "whitespace")(d) : p(d);
5211
+ return se(d) ? ye(e, p, "whitespace")(d) : p(d);
5212
5212
  }
5213
5213
  function p(d) {
5214
5214
  return d === null || K(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
@@ -5217,7 +5217,7 @@ function Lf(e, t, n) {
5217
5217
  function Nf(e, t, n) {
5218
5218
  return r;
5219
5219
  function r(l) {
5220
- return Le(l) ? Jt(e, i)(l) : n(l);
5220
+ return Ne(l) ? Jt(e, i)(l) : n(l);
5221
5221
  }
5222
5222
  function i(l) {
5223
5223
  return Qo(
@@ -5230,7 +5230,7 @@ function Nf(e, t, n) {
5230
5230
  )(l);
5231
5231
  }
5232
5232
  function a(l) {
5233
- return se(l) ? ge(e, o, "whitespace")(l) : o(l);
5233
+ return se(l) ? ye(e, o, "whitespace")(l) : o(l);
5234
5234
  }
5235
5235
  function o(l) {
5236
5236
  return l === null || K(l) ? t(l) : n(l);
@@ -5282,16 +5282,16 @@ function Bf(e, t, n) {
5282
5282
  return e.enter("atxHeadingSequence"), o(c);
5283
5283
  }
5284
5284
  function o(c) {
5285
- return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Le(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
5285
+ return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Ne(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
5286
5286
  }
5287
5287
  function l(c) {
5288
- return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || K(c) ? (e.exit("atxHeading"), t(c)) : se(c) ? ge(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
5288
+ return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || K(c) ? (e.exit("atxHeading"), t(c)) : se(c) ? ye(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
5289
5289
  }
5290
5290
  function s(c) {
5291
5291
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
5292
5292
  }
5293
5293
  function u(c) {
5294
- return c === null || c === 35 || Le(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
5294
+ return c === null || c === 35 || Ne(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
5295
5295
  }
5296
5296
  }
5297
5297
  const Hf = [
@@ -5402,7 +5402,7 @@ function Vf(e, t, n) {
5402
5402
  return Je(x) ? (e.consume(x), o = String.fromCharCode(x), w) : n(x);
5403
5403
  }
5404
5404
  function w(x) {
5405
- if (x === null || x === 47 || x === 62 || Le(x)) {
5405
+ if (x === null || x === 47 || x === 62 || Ne(x)) {
5406
5406
  const Z = x === 47, ie = o.toLowerCase();
5407
5407
  return !Z && !a && Sa.includes(ie) ? (i = 1, r.interrupt ? t(x) : B(x)) : Hf.includes(o.toLowerCase()) ? (i = 6, Z ? (e.consume(x), g) : r.interrupt ? t(x) : B(x)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : a ? P(x) : L(x));
5408
5408
  }
@@ -5430,7 +5430,7 @@ function Vf(e, t, n) {
5430
5430
  return x === s ? (e.consume(x), s = null, N) : x === null || K(x) ? n(x) : (e.consume(x), E);
5431
5431
  }
5432
5432
  function z(x) {
5433
- return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Le(x) ? I(x) : (e.consume(x), z);
5433
+ return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Ne(x) ? I(x) : (e.consume(x), z);
5434
5434
  }
5435
5435
  function N(x) {
5436
5436
  return x === 47 || x === 62 || se(x) ? L(x) : n(x);
@@ -5564,7 +5564,7 @@ function Zf(e, t, n) {
5564
5564
  return K(m) ? (o = E, j(m)) : se(m) ? (e.consume(m), E) : A(m);
5565
5565
  }
5566
5566
  function z(m) {
5567
- return m === 45 || Be(m) ? (e.consume(m), z) : m === 47 || m === 62 || Le(m) ? N(m) : n(m);
5567
+ return m === 45 || Be(m) ? (e.consume(m), z) : m === 47 || m === 62 || Ne(m) ? N(m) : n(m);
5568
5568
  }
5569
5569
  function N(m) {
5570
5570
  return m === 47 ? (e.consume(m), A) : m === 58 || m === 95 || Je(m) ? (e.consume(m), U) : K(m) ? (o = N, j(m)) : se(m) ? (e.consume(m), N) : A(m);
@@ -5582,10 +5582,10 @@ function Zf(e, t, n) {
5582
5582
  return m === i ? (e.consume(m), i = void 0, T) : m === null ? n(m) : K(m) ? (o = O, j(m)) : (e.consume(m), O);
5583
5583
  }
5584
5584
  function S(m) {
5585
- return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || Le(m) ? N(m) : (e.consume(m), S);
5585
+ return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || Ne(m) ? N(m) : (e.consume(m), S);
5586
5586
  }
5587
5587
  function T(m) {
5588
- return m === 47 || m === 62 || Le(m) ? N(m) : n(m);
5588
+ return m === 47 || m === 62 || Ne(m) ? N(m) : n(m);
5589
5589
  }
5590
5590
  function A(m) {
5591
5591
  return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
@@ -5594,7 +5594,7 @@ function Zf(e, t, n) {
5594
5594
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), R;
5595
5595
  }
5596
5596
  function R(m) {
5597
- return se(m) ? ge(
5597
+ return se(m) ? ye(
5598
5598
  e,
5599
5599
  H,
5600
5600
  "linePrefix",
@@ -5718,7 +5718,7 @@ function nd(e, t, n) {
5718
5718
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
5719
5719
  }
5720
5720
  function i(f) {
5721
- return Le(f) ? Jt(e, a)(f) : a(f);
5721
+ return Ne(f) ? Jt(e, a)(f) : a(f);
5722
5722
  }
5723
5723
  function a(f) {
5724
5724
  return f === 41 ? c(f) : Ko(
@@ -5734,7 +5734,7 @@ function nd(e, t, n) {
5734
5734
  )(f);
5735
5735
  }
5736
5736
  function o(f) {
5737
- return Le(f) ? Jt(e, s)(f) : c(f);
5737
+ return Ne(f) ? Jt(e, s)(f) : c(f);
5738
5738
  }
5739
5739
  function l(f) {
5740
5740
  return n(f);
@@ -5750,7 +5750,7 @@ function nd(e, t, n) {
5750
5750
  )(f) : c(f);
5751
5751
  }
5752
5752
  function u(f) {
5753
- return Le(f) ? Jt(e, c)(f) : c(f);
5753
+ return Ne(f) ? Jt(e, c)(f) : c(f);
5754
5754
  }
5755
5755
  function c(f) {
5756
5756
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
@@ -5830,7 +5830,7 @@ const dr = {
5830
5830
  function ud(e, t) {
5831
5831
  return n;
5832
5832
  function n(r) {
5833
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ge(e, t, "linePrefix");
5833
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ye(e, t, "linePrefix");
5834
5834
  }
5835
5835
  }
5836
5836
  const wn = {
@@ -5850,10 +5850,10 @@ function cd(e, t, n) {
5850
5850
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || K(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
5851
5851
  }
5852
5852
  function s(u) {
5853
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), se(u) ? ge(e, l, "whitespace")(u) : l(u));
5853
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), se(u) ? ye(e, l, "whitespace")(u) : l(u));
5854
5854
  }
5855
5855
  }
5856
- const Fe = {
5856
+ const Le = {
5857
5857
  name: "list",
5858
5858
  tokenize: pd,
5859
5859
  continuation: {
@@ -5912,7 +5912,7 @@ function hd(e, t, n) {
5912
5912
  const r = this;
5913
5913
  return r.containerState._closeFlow = void 0, e.check(Mn, i, a);
5914
5914
  function i(l) {
5915
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ge(
5915
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ye(
5916
5916
  e,
5917
5917
  t,
5918
5918
  "listItemIndent",
@@ -5923,9 +5923,9 @@ function hd(e, t, n) {
5923
5923
  return r.containerState.furtherBlankLines || !se(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(dd, t, o)(l));
5924
5924
  }
5925
5925
  function o(l) {
5926
- return r.containerState._closeFlow = !0, r.interrupt = void 0, ge(
5926
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, ye(
5927
5927
  e,
5928
- e.attempt(Fe, t, n),
5928
+ e.attempt(Le, t, n),
5929
5929
  "linePrefix",
5930
5930
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5931
5931
  )(l);
@@ -5933,7 +5933,7 @@ function hd(e, t, n) {
5933
5933
  }
5934
5934
  function md(e, t, n) {
5935
5935
  const r = this;
5936
- return ge(
5936
+ return ye(
5937
5937
  e,
5938
5938
  i,
5939
5939
  "listItemIndent",
@@ -5949,7 +5949,7 @@ function gd(e) {
5949
5949
  }
5950
5950
  function yd(e, t, n) {
5951
5951
  const r = this;
5952
- return ge(
5952
+ return ye(
5953
5953
  e,
5954
5954
  i,
5955
5955
  "listItemPrefixWhitespace",
@@ -6000,7 +6000,7 @@ function vd(e, t, n) {
6000
6000
  return e.enter("setextHeadingLineSequence"), l(u);
6001
6001
  }
6002
6002
  function l(u) {
6003
- return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), se(u) ? ge(e, s, "lineSuffix")(u) : s(u));
6003
+ return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), se(u) ? ye(e, s, "lineSuffix")(u) : s(u));
6004
6004
  }
6005
6005
  function s(u) {
6006
6006
  return u === null || K(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
@@ -6018,7 +6018,7 @@ function wd(e) {
6018
6018
  e.attempt(
6019
6019
  this.parser.constructs.flowInitial,
6020
6020
  i,
6021
- ge(
6021
+ ye(
6022
6022
  e,
6023
6023
  e.attempt(
6024
6024
  this.parser.constructs.flow,
@@ -6351,19 +6351,19 @@ function Od(e, t) {
6351
6351
  return r.join("");
6352
6352
  }
6353
6353
  const Id = {
6354
- 42: Fe,
6355
- 43: Fe,
6356
- 45: Fe,
6357
- 48: Fe,
6358
- 49: Fe,
6359
- 50: Fe,
6360
- 51: Fe,
6361
- 52: Fe,
6362
- 53: Fe,
6363
- 54: Fe,
6364
- 55: Fe,
6365
- 56: Fe,
6366
- 57: Fe,
6354
+ 42: Le,
6355
+ 43: Le,
6356
+ 45: Le,
6357
+ 48: Le,
6358
+ 49: Le,
6359
+ 50: Le,
6360
+ 51: Le,
6361
+ 52: Le,
6362
+ 53: Le,
6363
+ 54: Le,
6364
+ 55: Le,
6365
+ 56: Le,
6366
+ 57: Le,
6367
6367
  62: Go
6368
6368
  }, Pd = {
6369
6369
  91: Af
@@ -6527,17 +6527,17 @@ function Wd(e) {
6527
6527
  transforms: [],
6528
6528
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
6529
6529
  enter: {
6530
- autolink: l(ye),
6530
+ autolink: l(he),
6531
6531
  autolinkProtocol: D,
6532
6532
  autolinkEmail: D,
6533
- atxHeading: l(pt),
6533
+ atxHeading: l(dt),
6534
6534
  blockQuote: l(Ee),
6535
6535
  characterEscape: D,
6536
6536
  characterReference: D,
6537
- codeFenced: l(Pe),
6537
+ codeFenced: l(Ae),
6538
6538
  codeFencedFenceInfo: s,
6539
6539
  codeFencedFenceMeta: s,
6540
- codeIndented: l(Pe, s),
6540
+ codeIndented: l(Ae, s),
6541
6541
  codeText: l(Xe, s),
6542
6542
  codeTextData: D,
6543
6543
  data: D,
@@ -6547,25 +6547,25 @@ function Wd(e) {
6547
6547
  definitionLabelString: s,
6548
6548
  definitionTitleString: s,
6549
6549
  emphasis: l(_t),
6550
- hardBreakEscape: l(ht),
6551
- hardBreakTrailing: l(ht),
6550
+ hardBreakEscape: l(pt),
6551
+ hardBreakTrailing: l(pt),
6552
6552
  htmlFlow: l(Y, s),
6553
6553
  htmlFlowData: D,
6554
6554
  htmlText: l(Y, s),
6555
6555
  htmlTextData: D,
6556
6556
  image: l(ae),
6557
6557
  label: s,
6558
- link: l(ye),
6559
- listItem: l(Ne),
6558
+ link: l(he),
6559
+ listItem: l(Oe),
6560
6560
  listItemValue: y,
6561
6561
  listOrdered: l(ke, d),
6562
6562
  listUnordered: l(ke),
6563
- paragraph: l(Oe),
6563
+ paragraph: l(Ie),
6564
6564
  reference: ie,
6565
6565
  referenceString: s,
6566
6566
  resourceDestinationString: s,
6567
6567
  resourceTitleString: s,
6568
- setextHeading: l(pt),
6568
+ setextHeading: l(dt),
6569
6569
  strong: l(lt),
6570
6570
  thematicBreak: l(Bt)
6571
6571
  },
@@ -6645,12 +6645,12 @@ function Wd(e) {
6645
6645
  if (M[ue][0] === "enter")
6646
6646
  oe.push(ue);
6647
6647
  else {
6648
- const Ae = oe.pop();
6649
- ue = i(M, Ae, ue);
6648
+ const Fe = oe.pop();
6649
+ ue = i(M, Fe, ue);
6650
6650
  }
6651
6651
  for (ue = -1; ++ue < M.length; ) {
6652
- const Ae = t[M[ue][0]];
6653
- rl.call(Ae, M[ue][1].type) && Ae[M[ue][1].type].call(
6652
+ const Fe = t[M[ue][0]];
6653
+ rl.call(Fe, M[ue][1].type) && Fe[M[ue][1].type].call(
6654
6654
  Object.assign(
6655
6655
  {
6656
6656
  sliceSerialize: M[ue][2].sliceSerialize
@@ -6661,8 +6661,8 @@ function Wd(e) {
6661
6661
  );
6662
6662
  }
6663
6663
  if (X.tokenStack.length > 0) {
6664
- const Ae = X.tokenStack[X.tokenStack.length - 1];
6665
- (Ae[1] || Ta).call(X, void 0, Ae[0]);
6664
+ const Fe = X.tokenStack[X.tokenStack.length - 1];
6665
+ (Fe[1] || Ta).call(X, void 0, Fe[0]);
6666
6666
  }
6667
6667
  for (V.position = {
6668
6668
  start: st(
@@ -6684,7 +6684,7 @@ function Wd(e) {
6684
6684
  return V;
6685
6685
  }
6686
6686
  function i(M, V, X) {
6687
- let oe = V - 1, ue = -1, Ae = !1, Ze, $e, je, Ye;
6687
+ let oe = V - 1, ue = -1, Fe = !1, Ze, $e, je, Ye;
6688
6688
  for (; ++oe <= X; ) {
6689
6689
  const we = M[oe];
6690
6690
  if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? ue++ : ue--, Ye = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (Ze && !Ye && !ue && !je && (je = oe), Ye = void 0) : we[1].type === "linePrefix" || we[1].type === "listItemValue" || we[1].type === "listItemMarker" || we[1].type === "listItemPrefix" || we[1].type === "listItemPrefixWhitespace" || (Ye = void 0), !ue && we[0] === "enter" && we[1].type === "listItemPrefix" || ue === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
@@ -6694,7 +6694,7 @@ function Wd(e) {
6694
6694
  const Ve = M[Tt];
6695
6695
  if (Ve[1].type === "lineEnding" || Ve[1].type === "lineEndingBlank") {
6696
6696
  if (Ve[0] === "exit") continue;
6697
- $e && (M[$e][1].type = "lineEndingBlank", Ae = !0), Ve[1].type = "lineEnding", $e = Tt;
6697
+ $e && (M[$e][1].type = "lineEndingBlank", Fe = !0), Ve[1].type = "lineEnding", $e = Tt;
6698
6698
  } else if (!(Ve[1].type === "linePrefix" || Ve[1].type === "blockQuotePrefix" || Ve[1].type === "blockQuotePrefixWhitespace" || Ve[1].type === "blockQuoteMarker" || Ve[1].type === "listItemIndent")) break;
6699
6699
  }
6700
6700
  je && (!$e || je < $e) && (Ze._spread = !0), Ze.end = Object.assign(
@@ -6711,7 +6711,7 @@ function Wd(e) {
6711
6711
  }, M.splice(oe, 0, ["enter", Ze, we[2]]), oe++, X++, je = void 0, Ye = !0);
6712
6712
  }
6713
6713
  }
6714
- return M[V][1]._spread = Ae, X;
6714
+ return M[V][1]._spread = Fe, X;
6715
6715
  }
6716
6716
  function a(M, V) {
6717
6717
  n[M] = V;
@@ -6930,7 +6930,7 @@ function Wd(e) {
6930
6930
  children: []
6931
6931
  };
6932
6932
  }
6933
- function Pe() {
6933
+ function Ae() {
6934
6934
  return {
6935
6935
  type: "code",
6936
6936
  lang: null,
@@ -6959,14 +6959,14 @@ function Wd(e) {
6959
6959
  children: []
6960
6960
  };
6961
6961
  }
6962
- function pt() {
6962
+ function dt() {
6963
6963
  return {
6964
6964
  type: "heading",
6965
6965
  depth: void 0,
6966
6966
  children: []
6967
6967
  };
6968
6968
  }
6969
- function ht() {
6969
+ function pt() {
6970
6970
  return {
6971
6971
  type: "break"
6972
6972
  };
@@ -6985,7 +6985,7 @@ function Wd(e) {
6985
6985
  alt: null
6986
6986
  };
6987
6987
  }
6988
- function ye() {
6988
+ function he() {
6989
6989
  return {
6990
6990
  type: "link",
6991
6991
  title: null,
@@ -7002,7 +7002,7 @@ function Wd(e) {
7002
7002
  children: []
7003
7003
  };
7004
7004
  }
7005
- function Ne(M) {
7005
+ function Oe(M) {
7006
7006
  return {
7007
7007
  type: "listItem",
7008
7008
  spread: M._spread,
@@ -7010,7 +7010,7 @@ function Wd(e) {
7010
7010
  children: []
7011
7011
  };
7012
7012
  }
7013
- function Oe() {
7013
+ function Ie() {
7014
7014
  return {
7015
7015
  type: "paragraph",
7016
7016
  children: []
@@ -7896,7 +7896,7 @@ Ue.prototype.commaOrSpaceSeparated = !1;
7896
7896
  Ue.prototype.mustUseProperty = !1;
7897
7897
  Ue.prototype.defined = !1;
7898
7898
  let zp = 0;
7899
- const te = Ct(), _e = Ct(), pl = Ct(), $ = Ct(), me = Ct(), Dt = Ct(), Me = Ct();
7899
+ const te = Ct(), _e = Ct(), pl = Ct(), $ = Ct(), ge = Ct(), Dt = Ct(), Me = Ct();
7900
7900
  function Ct() {
7901
7901
  return 2 ** ++zp;
7902
7902
  }
@@ -7908,7 +7908,7 @@ const zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7908
7908
  commaSeparated: Dt,
7909
7909
  number: $,
7910
7910
  overloadedBoolean: pl,
7911
- spaceSeparated: me
7911
+ spaceSeparated: ge
7912
7912
  }, Symbol.toStringTag, { value: "Module" })), pr = Object.keys(zr);
7913
7913
  class si extends Ue {
7914
7914
  /**
@@ -7992,36 +7992,36 @@ const bl = Rt({
7992
7992
  ariaColCount: $,
7993
7993
  ariaColIndex: $,
7994
7994
  ariaColSpan: $,
7995
- ariaControls: me,
7995
+ ariaControls: ge,
7996
7996
  ariaCurrent: null,
7997
- ariaDescribedBy: me,
7997
+ ariaDescribedBy: ge,
7998
7998
  ariaDetails: null,
7999
7999
  ariaDisabled: _e,
8000
- ariaDropEffect: me,
8000
+ ariaDropEffect: ge,
8001
8001
  ariaErrorMessage: null,
8002
8002
  ariaExpanded: _e,
8003
- ariaFlowTo: me,
8003
+ ariaFlowTo: ge,
8004
8004
  ariaGrabbed: _e,
8005
8005
  ariaHasPopup: null,
8006
8006
  ariaHidden: _e,
8007
8007
  ariaInvalid: null,
8008
8008
  ariaKeyShortcuts: null,
8009
8009
  ariaLabel: null,
8010
- ariaLabelledBy: me,
8010
+ ariaLabelledBy: ge,
8011
8011
  ariaLevel: $,
8012
8012
  ariaLive: null,
8013
8013
  ariaModal: _e,
8014
8014
  ariaMultiLine: _e,
8015
8015
  ariaMultiSelectable: _e,
8016
8016
  ariaOrientation: null,
8017
- ariaOwns: me,
8017
+ ariaOwns: ge,
8018
8018
  ariaPlaceholder: null,
8019
8019
  ariaPosInSet: $,
8020
8020
  ariaPressed: _e,
8021
8021
  ariaReadOnly: _e,
8022
8022
  ariaRelevant: null,
8023
8023
  ariaRequired: _e,
8024
- ariaRoleDescription: me,
8024
+ ariaRoleDescription: ge,
8025
8025
  ariaRowCount: $,
8026
8026
  ariaRowIndex: $,
8027
8027
  ariaRowSpan: $,
@@ -8048,8 +8048,8 @@ const bl = Rt({
8048
8048
  // Standard Properties.
8049
8049
  abbr: null,
8050
8050
  accept: Dt,
8051
- acceptCharset: me,
8052
- accessKey: me,
8051
+ acceptCharset: ge,
8052
+ accessKey: ge,
8053
8053
  action: null,
8054
8054
  allow: null,
8055
8055
  allowFullScreen: te,
@@ -8059,21 +8059,21 @@ const bl = Rt({
8059
8059
  as: null,
8060
8060
  async: te,
8061
8061
  autoCapitalize: null,
8062
- autoComplete: me,
8062
+ autoComplete: ge,
8063
8063
  autoFocus: te,
8064
8064
  autoPlay: te,
8065
- blocking: me,
8065
+ blocking: ge,
8066
8066
  capture: null,
8067
8067
  charSet: null,
8068
8068
  checked: te,
8069
8069
  cite: null,
8070
- className: me,
8070
+ className: ge,
8071
8071
  cols: $,
8072
8072
  colSpan: null,
8073
8073
  content: null,
8074
8074
  contentEditable: _e,
8075
8075
  controls: te,
8076
- controlsList: me,
8076
+ controlsList: ge,
8077
8077
  coords: $ | Dt,
8078
8078
  crossOrigin: null,
8079
8079
  data: null,
@@ -8095,14 +8095,14 @@ const bl = Rt({
8095
8095
  formMethod: null,
8096
8096
  formNoValidate: te,
8097
8097
  formTarget: null,
8098
- headers: me,
8098
+ headers: ge,
8099
8099
  height: $,
8100
8100
  hidden: te,
8101
8101
  high: $,
8102
8102
  href: null,
8103
8103
  hrefLang: null,
8104
- htmlFor: me,
8105
- httpEquiv: me,
8104
+ htmlFor: ge,
8105
+ httpEquiv: ge,
8106
8106
  id: null,
8107
8107
  imageSizes: null,
8108
8108
  imageSrcSet: null,
@@ -8112,10 +8112,10 @@ const bl = Rt({
8112
8112
  is: null,
8113
8113
  isMap: te,
8114
8114
  itemId: null,
8115
- itemProp: me,
8116
- itemRef: me,
8115
+ itemProp: ge,
8116
+ itemRef: ge,
8117
8117
  itemScope: te,
8118
- itemType: me,
8118
+ itemType: ge,
8119
8119
  kind: null,
8120
8120
  label: null,
8121
8121
  lang: null,
@@ -8228,7 +8228,7 @@ const bl = Rt({
8228
8228
  open: te,
8229
8229
  optimum: $,
8230
8230
  pattern: null,
8231
- ping: me,
8231
+ ping: ge,
8232
8232
  placeholder: null,
8233
8233
  playsInline: te,
8234
8234
  popover: null,
@@ -8238,12 +8238,12 @@ const bl = Rt({
8238
8238
  preload: null,
8239
8239
  readOnly: te,
8240
8240
  referrerPolicy: null,
8241
- rel: me,
8241
+ rel: ge,
8242
8242
  required: te,
8243
8243
  reversed: te,
8244
8244
  rows: $,
8245
8245
  rowSpan: $,
8246
- sandbox: me,
8246
+ sandbox: ge,
8247
8247
  scope: null,
8248
8248
  scoped: te,
8249
8249
  seamless: te,
@@ -8279,7 +8279,7 @@ const bl = Rt({
8279
8279
  // Several. Use CSS `text-align` instead,
8280
8280
  aLink: null,
8281
8281
  // `<body>`. Use CSS `a:active {color}` instead
8282
- archive: me,
8282
+ archive: ge,
8283
8283
  // `<object>`. List of URIs to archives
8284
8284
  axis: null,
8285
8285
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -8594,7 +8594,7 @@ const bl = Rt({
8594
8594
  by: null,
8595
8595
  calcMode: null,
8596
8596
  capHeight: $,
8597
- className: me,
8597
+ className: ge,
8598
8598
  clip: null,
8599
8599
  clipPath: null,
8600
8600
  clipPathUnits: null,
@@ -8829,7 +8829,7 @@ const bl = Rt({
8829
8829
  patternTransform: null,
8830
8830
  patternUnits: null,
8831
8831
  phase: null,
8832
- ping: me,
8832
+ ping: ge,
8833
8833
  pitch: null,
8834
8834
  playbackOrder: null,
8835
8835
  pointerEvents: null,
@@ -9604,17 +9604,17 @@ function xh() {
9604
9604
  }, T.format = function(A) {
9605
9605
  var j = this, R = this.$locale();
9606
9606
  if (!this.isValid()) return R.invalidDate || h;
9607
- var H = A || "YYYY-MM-DDTHH:mm:ssZ", m = D.z(this), W = this.$H, J = this.$m, x = this.$M, Z = R.weekdays, ie = R.months, ne = R.meridiem, fe = function(pe, Ee, Pe, Xe) {
9608
- return pe && (pe[Ee] || pe(j, H)) || Pe[Ee].slice(0, Xe);
9607
+ var H = A || "YYYY-MM-DDTHH:mm:ssZ", m = D.z(this), W = this.$H, J = this.$m, x = this.$M, Z = R.weekdays, ie = R.months, ne = R.meridiem, fe = function(pe, Ee, Ae, Xe) {
9608
+ return pe && (pe[Ee] || pe(j, H)) || Ae[Ee].slice(0, Xe);
9609
9609
  }, de = function(pe) {
9610
9610
  return D.s(W % 12 || 12, pe, "0");
9611
- }, xe = ne || function(pe, Ee, Pe) {
9611
+ }, xe = ne || function(pe, Ee, Ae) {
9612
9612
  var Xe = pe < 12 ? "AM" : "PM";
9613
- return Pe ? Xe.toLowerCase() : Xe;
9613
+ return Ae ? Xe.toLowerCase() : Xe;
9614
9614
  };
9615
9615
  return H.replace(g, function(pe, Ee) {
9616
- return Ee || function(Pe) {
9617
- switch (Pe) {
9616
+ return Ee || function(Ae) {
9617
+ switch (Ae) {
9618
9618
  case "YY":
9619
9619
  return String(j.$y).slice(-2);
9620
9620
  case "YYYY":
@@ -10034,7 +10034,7 @@ const on = ({
10034
10034
  setLiveChatOpen: a,
10035
10035
  submitEvent: o
10036
10036
  }) => {
10037
- const { disableScroll: l, hasError: s } = Q(Ie), u = ze(null);
10037
+ const { disableScroll: l, hasError: s } = Q(Pe), u = ze(null);
10038
10038
  return Ce(() => {
10039
10039
  var c;
10040
10040
  (c = u.current) == null || c.scrollIntoView({
@@ -10208,8 +10208,8 @@ function di({
10208
10208
  userInput: s
10209
10209
  }) {
10210
10210
  var h, w;
10211
- const { conversationScreen: u } = Q(Se), { deleteConversationModal: c, xpertMessages: f } = Q(wt), { loading: p, setMode: d } = Q(Ie), y = (g) => {
10212
- u.liveChat.useOwnChat ? d(ft.LIVECHAT) : o(g);
10211
+ const { conversationScreen: u } = Q(Se), { deleteConversationModal: c, xpertMessages: f } = Q(wt), { loading: p, setMode: d } = Q(Pe), y = (g) => {
10212
+ u.liveChat.useOwnChat ? d(ct.LIVECHAT) : o(g);
10213
10213
  };
10214
10214
  return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
10215
10215
  /* @__PURE__ */ C.jsxs(
@@ -11008,11 +11008,11 @@ function Nh() {
11008
11008
  };
11009
11009
  return Nt.useSocketIO = o, Nt;
11010
11010
  }
11011
- var yt = {}, no;
11011
+ var gt = {}, no;
11012
11012
  function jh() {
11013
- if (no) return yt;
11013
+ if (no) return gt;
11014
11014
  no = 1;
11015
- var e = yt.__assign || function() {
11015
+ var e = gt.__assign || function() {
11016
11016
  return e = Object.assign || function(o) {
11017
11017
  for (var l, s = 1, u = arguments.length; s < u; s++) {
11018
11018
  l = arguments[s];
@@ -11020,7 +11020,7 @@ function jh() {
11020
11020
  }
11021
11021
  return o;
11022
11022
  }, e.apply(this, arguments);
11023
- }, t = yt.__rest || function(o, l) {
11023
+ }, t = gt.__rest || function(o, l) {
11024
11024
  var s = {};
11025
11025
  for (var u in o) Object.prototype.hasOwnProperty.call(o, u) && l.indexOf(u) < 0 && (s[u] = o[u]);
11026
11026
  if (o != null && typeof Object.getOwnPropertySymbols == "function")
@@ -11028,7 +11028,7 @@ function jh() {
11028
11028
  l.indexOf(u[c]) < 0 && Object.prototype.propertyIsEnumerable.call(o, u[c]) && (s[u[c]] = o[u[c]]);
11029
11029
  return s;
11030
11030
  };
11031
- Object.defineProperty(yt, "__esModule", { value: !0 }), yt.useEventSource = void 0;
11031
+ Object.defineProperty(gt, "__esModule", { value: !0 }), gt.useEventSource = void 0;
11032
11032
  var n = Ge, r = yi(), i = nt(), a = function(o, l, s) {
11033
11033
  l === void 0 && (l = i.DEFAULT_EVENT_SOURCE_OPTIONS);
11034
11034
  var u = l.withCredentials, c = l.events, f = t(l, ["withCredentials", "events"]);
@@ -11049,7 +11049,7 @@ function jh() {
11049
11049
  getEventSource: g
11050
11050
  };
11051
11051
  };
11052
- return yt.useEventSource = a, yt;
11052
+ return gt.useEventSource = a, gt;
11053
11053
  }
11054
11054
  var ro;
11055
11055
  function Dh() {
@@ -11098,7 +11098,7 @@ const Hh = "This conversation with a live agent has ended. Please note that a tr
11098
11098
  CONVERSATION: "CONVERSATION",
11099
11099
  FORM: "FORM"
11100
11100
  }, kt = An({}), Sl = ({ children: e }) => {
11101
- const { conversationScreen: t } = Q(Se), { pushXpertMessage: n } = Q(wt), { setHasError: r, setMode: i } = Q(Ie), [a, o] = ee(""), [l, s] = ee(!1), [, u] = ee(""), [c, f] = ee([]), [p, d] = ee(null), [y, h] = ee(ot.FORM), [w, g] = ee(null), P = (j) => f((R) => [...R, j]), L = async (j) => {
11101
+ const { conversationScreen: t } = Q(Se), { pushXpertMessage: n } = Q(wt), { setHasError: r, setMode: i } = Q(Pe), [a, o] = ee(""), [l, s] = ee(!1), [, u] = ee(""), [c, f] = ee([]), [p, d] = ee(null), [y, h] = ee(ot.FORM), [w, g] = ee(null), P = (j) => f((R) => [...R, j]), L = async (j) => {
11102
11102
  const R = await Bh(j.data), { conversation_id: H, event_type: m, body: W } = R;
11103
11103
  switch (m) {
11104
11104
  case "AGENT_TYPING":
@@ -11139,7 +11139,7 @@ const Hh = "This conversation with a live agent has ended. Please note that a tr
11139
11139
  role: "info"
11140
11140
  }), z();
11141
11141
  }, z = () => {
11142
- u(""), d(null), h(ot.FORM), i(ft.XPERT);
11142
+ u(""), d(null), h(ot.FORM), i(ct.XPERT);
11143
11143
  }, N = () => {
11144
11144
  w && clearTimeout(w), s(!0);
11145
11145
  const j = setTimeout(() => {
@@ -11223,7 +11223,7 @@ Sl.propTypes = {
11223
11223
  };
11224
11224
  const zh = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", qh = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
11225
11225
  function _l({ handleResizeButtonClick: e, setIsMounted: t }) {
11226
- const { isMobile: n, isNormalSize: r } = Q(Ie);
11226
+ const { isMobile: n, isNormalSize: r } = Q(Pe);
11227
11227
  return n ? null : r ? /* @__PURE__ */ C.jsx(
11228
11228
  "button",
11229
11229
  {
@@ -11280,7 +11280,7 @@ function El({
11280
11280
  isMounted: r
11281
11281
  }) {
11282
11282
  var u;
11283
- const { conversationScreen: i } = Q(Se), { mode: a } = Q(Ie), { setDeleteConversationModal: o, xpertMessages: l } = Q(wt), s = a === ft.XPERT && ((u = i == null ? void 0 : i.conversationHistory) == null ? void 0 : u.allowDeletion) && !!(l != null && l.length);
11283
+ const { conversationScreen: i } = Q(Se), { mode: a } = Q(Pe), { setDeleteConversationModal: o, xpertMessages: l } = Q(wt), s = a === ct.XPERT && ((u = i == null ? void 0 : i.conversationHistory) == null ? void 0 : u.allowDeletion) && !!(l != null && l.length);
11284
11284
  return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
11285
11285
  s && /* @__PURE__ */ C.jsx(
11286
11286
  "button",
@@ -11387,8 +11387,8 @@ function Tl({
11387
11387
  onClose: r
11388
11388
  }) {
11389
11389
  var u, c, f, p, d, y, h, w, g, P, L, q, I, b, E;
11390
- const { primaryColor: i, conversationScreen: a } = Q(Se), { isMobile: o, mode: l } = Q(Ie), { step: s } = Q(kt);
11391
- return s === ot.CONNECTING && l === ft.LIVECHAT ? null : /* @__PURE__ */ C.jsxs(
11390
+ const { primaryColor: i, conversationScreen: a } = Q(Se), { isMobile: o, mode: l } = Q(Pe), { step: s } = Q(kt);
11391
+ return s === ot.CONNECTING && l === ct.LIVECHAT ? null : /* @__PURE__ */ C.jsxs(
11392
11392
  "div",
11393
11393
  {
11394
11394
  "data-testid": "xpert-conversations-header",
@@ -11674,7 +11674,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11674
11674
  flatten: !0,
11675
11675
  getShadowRoot: n.getShadowRoot
11676
11676
  }) : r = Pl(t, n.includeContainer, Pn.bind(null, n)), r;
11677
- }, bt = function(t, n) {
11677
+ }, yt = function(t, n) {
11678
11678
  if (n = n || {}, !t)
11679
11679
  throw new Error("No node provided");
11680
11680
  return xt.call(t, Tn) === !1 ? !1 : Ur(n, t);
@@ -11688,7 +11688,7 @@ const a0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11688
11688
  focusable: jl,
11689
11689
  getTabIndex: ut,
11690
11690
  isFocusable: kn,
11691
- isTabbable: bt,
11691
+ isTabbable: yt,
11692
11692
  tabbable: Nl
11693
11693
  }, Symbol.toStringTag, { value: "Module" }));
11694
11694
  /*!
@@ -11889,9 +11889,9 @@ var lo = {
11889
11889
  }, p = function() {
11890
11890
  if (o.containerGroups = o.containers.map(function(O) {
11891
11891
  var S = Nl(O, a.tabbableOptions), T = jl(O, a.tabbableOptions), A = S.length > 0 ? S[0] : void 0, j = S.length > 0 ? S[S.length - 1] : void 0, R = T.find(function(W) {
11892
- return bt(W);
11892
+ return yt(W);
11893
11893
  }), H = T.slice().reverse().find(function(W) {
11894
- return bt(W);
11894
+ return yt(W);
11895
11895
  }), m = !!S.find(function(W) {
11896
11896
  return ut(W) > 0;
11897
11897
  });
@@ -11927,9 +11927,9 @@ var lo = {
11927
11927
  nextTabbableNode: function(J) {
11928
11928
  var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Z = S.indexOf(J);
11929
11929
  return Z < 0 ? x ? T.slice(T.indexOf(J) + 1).find(function(ie) {
11930
- return bt(ie);
11930
+ return yt(ie);
11931
11931
  }) : T.slice(0, T.indexOf(J)).reverse().find(function(ie) {
11932
- return bt(ie);
11932
+ return yt(ie);
11933
11933
  }) : S[Z + (x ? 1 : -1)];
11934
11934
  }
11935
11935
  };
@@ -11973,7 +11973,7 @@ var lo = {
11973
11973
  var de = fe.firstTabbableNode;
11974
11974
  return S === de;
11975
11975
  });
11976
- if (W < 0 && (m.container === S || kn(S, a.tabbableOptions) && !bt(S, a.tabbableOptions) && !m.nextTabbableNode(S, !1)) && (W = H), W >= 0) {
11976
+ if (W < 0 && (m.container === S || kn(S, a.tabbableOptions) && !yt(S, a.tabbableOptions) && !m.nextTabbableNode(S, !1)) && (W = H), W >= 0) {
11977
11977
  var J = W === 0 ? o.tabbableGroups.length - 1 : W - 1, x = o.tabbableGroups[J];
11978
11978
  R = ut(S) >= 0 ? x.lastTabbableNode : x.lastDomTabbableNode;
11979
11979
  } else Qt(T) || (R = m.nextTabbableNode(S, !1));
@@ -11982,7 +11982,7 @@ var lo = {
11982
11982
  var de = fe.lastTabbableNode;
11983
11983
  return S === de;
11984
11984
  });
11985
- if (Z < 0 && (m.container === S || kn(S, a.tabbableOptions) && !bt(S, a.tabbableOptions) && !m.nextTabbableNode(S)) && (Z = H), Z >= 0) {
11985
+ if (Z < 0 && (m.container === S || kn(S, a.tabbableOptions) && !yt(S, a.tabbableOptions) && !m.nextTabbableNode(S)) && (Z = H), Z >= 0) {
11986
11986
  var ie = Z === o.tabbableGroups.length - 1 ? 0 : Z + 1, ne = o.tabbableGroups[ie];
11987
11987
  R = ut(S) >= 0 ? ne.firstTabbableNode : ne.firstDomTabbableNode;
11988
11988
  } else Qt(T) || (R = m.nextTabbableNode(S));
@@ -12469,7 +12469,7 @@ function k0() {
12469
12469
  var S0 = k0();
12470
12470
  const _0 = /* @__PURE__ */ tt(S0);
12471
12471
  function vi({ style: e, className: t, children: n, isMounted: r }) {
12472
- const { isMobile: i, isNormalSize: a } = Q(Ie), o = ze(null);
12472
+ const { isMobile: i, isNormalSize: a } = Q(Pe), o = ze(null);
12473
12473
  return /* @__PURE__ */ C.jsx(
12474
12474
  _0,
12475
12475
  {
@@ -12515,7 +12515,7 @@ vi.defaultProps = {
12515
12515
  };
12516
12516
  const E0 = () => {
12517
12517
  var n, r, i, a, o;
12518
- const { isMobile: e } = Q(Ie), { launchButton: t } = Q(Se);
12518
+ const { isMobile: e } = Q(Pe), { launchButton: t } = Q(Se);
12519
12519
  return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ C.jsx(
12520
12520
  "div",
12521
12521
  {
@@ -12641,7 +12641,7 @@ wi.propTypes = {
12641
12641
  };
12642
12642
  wi.defaultProps = {};
12643
12643
  function I0(e, t) {
12644
- const [n, r] = ee(!1), i = ze(), a = ct(
12644
+ const [n, r] = ee(!1), i = ze(), a = bt(
12645
12645
  (...o) => {
12646
12646
  n || (e(...o), r(!0), clearTimeout(i.current), i.current = setTimeout(() => {
12647
12647
  r(!1);
@@ -12759,11 +12759,11 @@ const A0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
12759
12759
  }];
12760
12760
  }, kr = "privacy policy";
12761
12761
  function ki() {
12762
- const { conversationScreen: e, primaryColor: t } = Q(Se), { startLiveChat: n } = Q(kt), { setMode: r } = Q(Ie), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = L0({}), [c, f] = ee(!1), { clearError: p, errors: d, setErrors: y } = F0(), h = Rs(
12762
+ const { conversationScreen: e, primaryColor: t } = Q(Se), { startLiveChat: n } = Q(kt), { setMode: r } = Q(Pe), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = L0({}), [c, f] = ee(!1), { clearError: p, errors: d, setErrors: y } = F0(), h = Rs(
12763
12763
  () => (l ?? "").split(kr, 2),
12764
12764
  [l]
12765
12765
  ), w = () => {
12766
- r(ft.XPERT);
12766
+ r(ct.XPERT);
12767
12767
  }, g = () => {
12768
12768
  p("privacyCheck"), f((I) => !I);
12769
12769
  }, P = (I, b) => {
@@ -12968,7 +12968,7 @@ Dl.propTypes = {
12968
12968
  style: k.shape()
12969
12969
  };
12970
12970
  function N0(e, t, n) {
12971
- const r = ct(
12971
+ const r = bt(
12972
12972
  (i) => {
12973
12973
  const { data: a } = i || {}, { chatState: o, show: l, type: s } = a || {};
12974
12974
  (s === "openForm" && l === !1 || s === "open" && o === !1) && n(!1);
@@ -13084,7 +13084,7 @@ const po = (e) => {
13084
13084
  })), t;
13085
13085
  };
13086
13086
  function _i({ submitEventExternal: e }) {
13087
- var St, _t, pt, ht;
13087
+ var St, _t, dt, pt;
13088
13088
  const {
13089
13089
  chatApi: t,
13090
13090
  configurationLoaded: n,
@@ -13102,20 +13102,20 @@ function _i({ submitEventExternal: e }) {
13102
13102
  setHasNewMessage: w,
13103
13103
  setIsNormalSize: g,
13104
13104
  setLoading: P
13105
- } = Q(Ie), [, L] = ee(!1), [, q] = ee(!1), [I, b] = ee(!1), [E, z] = ee(!1), [N, U] = ee(""), [D, B] = ee(!1), O = ze(null), S = ze(null), T = ze(null), A = Re.get(`${s}-test`) === "1";
13105
+ } = Q(Pe), [, L] = ee(!1), [, q] = ee(!1), [I, b] = ee(!1), [E, z] = ee(!1), [N, U] = ee(""), [D, B] = ee(!1), O = ze(null), S = ze(null), T = ze(null), A = Re.get(`${s}-test`) === "1";
13106
13106
  N0(
13107
13107
  (St = r == null ? void 0 : r.liveChat) == null ? void 0 : St.enabled,
13108
13108
  E,
13109
13109
  z
13110
13110
  );
13111
- const j = ct(
13111
+ const j = bt(
13112
13112
  ({ name: Y, payload: ae }) => {
13113
13113
  if (!n || !(o != null && o.enabled)) return;
13114
- const ye = Vr(o == null ? void 0 : o.payloadParams, ae);
13115
- e ? e({ name: Y, payload: ye }) : T.current.track(
13114
+ const he = Vr(o == null ? void 0 : o.payloadParams, ae);
13115
+ e ? e({ name: Y, payload: he }) : T.current.track(
13116
13116
  // TODO: this is untestable - create a custom hook to get submit event function.
13117
13117
  Y,
13118
- ye
13118
+ he
13119
13119
  );
13120
13120
  },
13121
13121
  [
@@ -13124,12 +13124,13 @@ function _i({ submitEventExternal: e }) {
13124
13124
  o == null ? void 0 : o.enabled,
13125
13125
  o == null ? void 0 : o.payloadParams
13126
13126
  ]
13127
- ), R = ct(async () => {
13128
- if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && t != null && t.baseUrl)
13127
+ ), R = async () => {
13128
+ var Y;
13129
+ if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && (Y = r == null ? void 0 : r.conversationHistory) != null && Y.enabled)
13129
13130
  try {
13130
- let Y = po(s);
13131
- const ae = await fetch(
13132
- `${t.baseUrl}/xpert/v2/history?conversation_id=${Y}`,
13131
+ let ae = po(s);
13132
+ const he = await fetch(
13133
+ `${t.baseUrl}/xpert/v2/history?conversation_id=${ae}`,
13133
13134
  {
13134
13135
  method: "GET",
13135
13136
  headers: {
@@ -13137,32 +13138,23 @@ function _i({ submitEventExternal: e }) {
13137
13138
  }
13138
13139
  }
13139
13140
  );
13140
- if (!ae.ok)
13141
- throw new Error(`HTTPError: ${ae.status} ${ae.statusText}`);
13142
- const ye = await ae.json();
13141
+ if (!he.ok)
13142
+ throw new Error(`HTTPError: ${he.status} ${he.statusText}`);
13143
+ const ke = await he.json();
13143
13144
  c(
13144
- ye.map((ke) => ({
13145
- ...ke,
13145
+ ke.map((Oe) => ({
13146
+ ...Oe,
13146
13147
  disableFeedback: !0
13147
13148
  }))
13148
13149
  ), y(!0), w(!0);
13149
- } catch (Y) {
13150
- console.error(Y);
13150
+ } catch (ae) {
13151
+ console.error(ae);
13151
13152
  } finally {
13152
13153
  P(!1);
13153
13154
  }
13154
- }, [
13155
- s,
13156
- P,
13157
- t,
13158
- c,
13159
- y,
13160
- w
13161
- ]);
13162
- Ce(() => {
13163
- R();
13164
- }, [R]), D0(
13165
- () => r.conversationHistory.enabled && R()
13155
+ };
13156
+ D0(
13157
+ () => r.conversationHistory.enabled && I && !E && R()
13166
13158
  ), Ce(() => {
13167
13159
  let Y, ae;
13168
13160
  if (n)
@@ -13181,11 +13173,11 @@ function _i({ submitEventExternal: e }) {
13181
13173
  o == null ? void 0 : o.prefix
13182
13174
  ]), Ce(() => {
13183
13175
  let Y, ae;
13184
- const ye = () => {
13176
+ const he = () => {
13185
13177
  l != null && l.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(Y), clearTimeout(ae), q(!0)));
13186
13178
  };
13187
13179
  if (n)
13188
- return Y = setInterval(ye, 1e3), ae = setTimeout(() => {
13180
+ return Y = setInterval(he, 1e3), ae = setTimeout(() => {
13189
13181
  clearInterval(Y);
13190
13182
  }, 6e4), () => {
13191
13183
  clearInterval(Y), clearTimeout(ae);
@@ -13196,13 +13188,13 @@ function _i({ submitEventExternal: e }) {
13196
13188
  l == null ? void 0 : l.experimentName
13197
13189
  ]);
13198
13190
  const H = (Y) => {
13199
- var ae, ye;
13191
+ var ae, he;
13200
13192
  (ae = Y == null ? void 0 : Y.target) != null && ae.href && j({
13201
13193
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
13202
13194
  payload: {
13203
13195
  category: "2u",
13204
13196
  label: "xpert-chatbot",
13205
- link: (ye = Y == null ? void 0 : Y.target) == null ? void 0 : ye.href,
13197
+ link: (he = Y == null ? void 0 : Y.target) == null ? void 0 : he.href,
13206
13198
  isTestUser: A
13207
13199
  }
13208
13200
  });
@@ -13233,9 +13225,9 @@ function _i({ submitEventExternal: e }) {
13233
13225
  }, x = ({
13234
13226
  conversationSize: Y,
13235
13227
  userInputMessage: ae,
13236
- apiResponseMessage: ye,
13228
+ apiResponseMessage: he,
13237
13229
  elapsedSeconds: ke,
13238
- conversationByteSize: Ne
13230
+ conversationByteSize: Oe
13239
13231
  }) => {
13240
13232
  j({
13241
13233
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
@@ -13245,9 +13237,9 @@ function _i({ submitEventExternal: e }) {
13245
13237
  isTestUser: A,
13246
13238
  conversationSize: Y,
13247
13239
  userInputMessage: ae,
13248
- apiResponseMessage: ye,
13240
+ apiResponseMessage: he,
13249
13241
  elapsedSeconds: ke,
13250
- conversationByteSize: Ne
13242
+ conversationByteSize: Oe
13251
13243
  }
13252
13244
  });
13253
13245
  }, Z = async (Y) => {
@@ -13256,13 +13248,13 @@ function _i({ submitEventExternal: e }) {
13256
13248
  return;
13257
13249
  const ae = /* @__PURE__ */ new Date();
13258
13250
  w(!1), h(!1);
13259
- const ye = f.filter((X) => X.role === "user").length + 1;
13251
+ const he = f.filter((X) => X.role === "user").length + 1;
13260
13252
  j({
13261
13253
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
13262
13254
  payload: {
13263
13255
  category: "2u",
13264
13256
  label: "xpert-chatbot",
13265
- totalUserInputMessagesSent: ye,
13257
+ totalUserInputMessagesSent: he,
13266
13258
  userInputMessage: Y,
13267
13259
  isTestUser: A
13268
13260
  }
@@ -13272,7 +13264,7 @@ function _i({ submitEventExternal: e }) {
13272
13264
  role: "user",
13273
13265
  content: Y
13274
13266
  }), P(!0);
13275
- const Ne = [
13267
+ const Oe = [
13276
13268
  ...f,
13277
13269
  {
13278
13270
  role: "user",
@@ -13282,30 +13274,30 @@ function _i({ submitEventExternal: e }) {
13282
13274
  role: X.role,
13283
13275
  content: X.content,
13284
13276
  ...X.toolCalls && { tool_calls: X.toolCalls }
13285
- })).filter(({ role: X }) => ["assistant", "user"].includes(X)), Oe = await fetch(t.endpoint, {
13277
+ })).filter(({ role: X }) => ["assistant", "user"].includes(X)), Ie = await fetch(t.endpoint, {
13286
13278
  method: "POST",
13287
13279
  headers: {
13288
13280
  "Content-Type": "application/json"
13289
13281
  },
13290
13282
  body: JSON.stringify({
13291
- [t == null ? void 0 : t.messagesKey]: Ne,
13283
+ [t == null ? void 0 : t.messagesKey]: Oe,
13292
13284
  ...t.payloadParams,
13293
13285
  ...ke && {
13294
13286
  conversation_id: ke
13295
13287
  }
13296
13288
  })
13297
13289
  });
13298
- if (!Oe.ok)
13299
- throw new Error(`HTTPError: ${Oe.status} ${Oe.statusText}`);
13290
+ if (!Ie.ok)
13291
+ throw new Error(`HTTPError: ${Ie.status} ${Ie.statusText}`);
13300
13292
  const {
13301
13293
  content: lt,
13302
13294
  live_agent: Et,
13303
13295
  tool_calls: Bt
13304
- } = await Oe.json();
13296
+ } = await Ie.json();
13305
13297
  J(lt, ke);
13306
13298
  const M = /* @__PURE__ */ new Date();
13307
13299
  x({
13308
- conversationByteSize: B0(JSON.stringify(Ne)),
13300
+ conversationByteSize: B0(JSON.stringify(Oe)),
13309
13301
  conversationSize: f.length + 2,
13310
13302
  userInputMessage: Y,
13311
13303
  apiResponseMessage: lt,
@@ -13321,7 +13313,7 @@ function _i({ submitEventExternal: e }) {
13321
13313
  P(!1), W(), h(!0), console.error(ae);
13322
13314
  }
13323
13315
  }, ie = () => {
13324
- z(!1), b(!0), j({
13316
+ z(!1), b(!0), R(), j({
13325
13317
  name: `${o.prefix}.bi.xpert.chatbot.action.button.clicked`,
13326
13318
  payload: {
13327
13319
  category: "2u",
@@ -13339,7 +13331,7 @@ function _i({ submitEventExternal: e }) {
13339
13331
  }
13340
13332
  }), g(Y);
13341
13333
  }, fe = () => {
13342
- b(!0), j({
13334
+ b(!0), R(), j({
13343
13335
  name: `${o.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
13344
13336
  payload: {
13345
13337
  category: "2u",
@@ -13368,7 +13360,7 @@ function _i({ submitEventExternal: e }) {
13368
13360
  }, pe = (Y) => {
13369
13361
  U(Y.target.value);
13370
13362
  }, Ee = (Y, ae = "") => {
13371
- const ye = f.map((ke, Ne) => Y === Ne ? (j({
13363
+ const he = f.map((ke, Oe) => Y === Oe ? (j({
13372
13364
  name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${ae.toLowerCase()}.clicked`,
13373
13365
  payload: {
13374
13366
  category: "2u",
@@ -13382,8 +13374,8 @@ function _i({ submitEventExternal: e }) {
13382
13374
  ...ke,
13383
13375
  feedbackThumbType: ae
13384
13376
  }) : ke);
13385
- c(ye), y(!1);
13386
- }, Pe = (pt = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : pt.enabled, Xe = a != null && a.enabled ? p ? (ht = a == null ? void 0 : a.style) == null ? void 0 : ht.mobile : a == null ? void 0 : a.style : null;
13377
+ c(he), y(!1);
13378
+ }, Ae = (dt = i == null ? void 0 : i.animatedGraduate) == null ? void 0 : dt.enabled, Xe = a != null && a.enabled ? p ? (pt = a == null ? void 0 : a.style) == null ? void 0 : pt.mobile : a == null ? void 0 : a.style : null;
13387
13379
  return (
13388
13380
  // do not remove this class as it's needed to turn off chatbot
13389
13381
  /* @__PURE__ */ C.jsxs("div", { className: "xpert_chatbot", children: [
@@ -13421,13 +13413,13 @@ function _i({ submitEventExternal: e }) {
13421
13413
  ] }) })
13422
13414
  }
13423
13415
  ),
13424
- Pe && /* @__PURE__ */ C.jsx(
13416
+ Ae && /* @__PURE__ */ C.jsx(
13425
13417
  Wr,
13426
13418
  {
13427
13419
  handleFloatingActionButtonClick: ie
13428
13420
  }
13429
13421
  ),
13430
- !Pe && /* @__PURE__ */ C.jsx(
13422
+ !Ae && /* @__PURE__ */ C.jsx(
13431
13423
  Gr,
13432
13424
  {
13433
13425
  handleFloatingActionButtonClick: ie
@@ -13452,7 +13444,7 @@ function _i({ submitEventExternal: e }) {
13452
13444
  }
13453
13445
  ),
13454
13446
  /* @__PURE__ */ C.jsx(Uh, {}),
13455
- d === ft.XPERT && /* @__PURE__ */ C.jsx(
13447
+ d === ct.XPERT && /* @__PURE__ */ C.jsx(
13456
13448
  di,
13457
13449
  {
13458
13450
  handleChange: pe,
@@ -13466,7 +13458,7 @@ function _i({ submitEventExternal: e }) {
13466
13458
  userInput: N
13467
13459
  }
13468
13460
  ),
13469
- d === ft.LIVECHAT && /* @__PURE__ */ C.jsx(Si, {})
13461
+ d === ct.LIVECHAT && /* @__PURE__ */ C.jsx(Si, {})
13470
13462
  ] })
13471
13463
  }
13472
13464
  ) })