@2uinc/frontend-component-xpert-chatbot 1.36.0-alpha.21 → 1.36.0-alpha.23

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 +582 -594
  2. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import yt, { createContext as Kr, useState as ce, useCallback as st, useEffect as Ne, useMemo as cn, useRef as nt, useContext as oe, forwardRef as ws, createElement as Za, useLayoutEffect as O0, memo as I0, Suspense as N0, Fragment as k0, StrictMode as L0 } from "react";
2
- import w0, { render as R0 } from "react-dom";
1
+ import yt, { createContext as Kr, useState as ce, useCallback as st, useEffect as Re, useMemo as cn, useRef as tt, useContext as se, forwardRef as Rs, createElement as Za, useLayoutEffect as O0, memo as I0, Suspense as N0, Fragment as k0, StrictMode as L0 } from "react";
2
+ import R0, { render as w0 } from "react-dom";
3
3
  var Sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function Mt(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
- function Rs(e) {
7
+ function ws(e) {
8
8
  if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
9
9
  var t = e.default;
10
10
  if (typeof t == "function") {
@@ -243,15 +243,15 @@ Jn.exports;
243
243
  var Ou;
244
244
  function j0() {
245
245
  return Ou || (Ou = 1, function(e, t) {
246
- var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", E = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]", R = "[object Set]", _ = "[object String]", N = "[object Undefined]", V = "[object WeakMap]", H = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", w = "[object Int32Array]", B = "[object Uint8Array]", G = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, x = {};
247
- x[Y] = x[$] = x[L] = x[I] = x[w] = x[B] = x[G] = x[j] = x[q] = !0, x[s] = x[l] = x[H] = x[d] = x[te] = x[f] = x[p] = x[h] = x[m] = x[y] = x[P] = x[W] = x[R] = x[_] = x[V] = !1;
248
- var se = typeof Sr == "object" && Sr && Sr.Object === Object && Sr, ye = typeof self == "object" && self && self.Object === Object && self, me = se || ye || Function("return this")(), Ae = t && !t.nodeType && t, xe = Ae && !0 && e && !e.nodeType && e, je = xe && xe.exports === Ae, ve = je && se.process, Je = function() {
246
+ var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", y = "[object Number]", E = "[object Null]", P = "[object Object]", M = "[object Proxy]", W = "[object RegExp]", w = "[object Set]", _ = "[object String]", N = "[object Undefined]", V = "[object WeakMap]", H = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", B = "[object Uint8Array]", G = "[object Uint8ClampedArray]", j = "[object Uint16Array]", q = "[object Uint32Array]", b = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, x = {};
247
+ x[Y] = x[$] = x[L] = x[I] = x[R] = x[B] = x[G] = x[j] = x[q] = !0, x[s] = x[l] = x[H] = x[d] = x[te] = x[f] = x[p] = x[h] = x[m] = x[y] = x[P] = x[W] = x[w] = x[_] = x[V] = !1;
248
+ var oe = typeof Sr == "object" && Sr && Sr.Object === Object && Sr, ye = typeof self == "object" && self && self.Object === Object && self, me = oe || ye || Function("return this")(), Ae = t && !t.nodeType && t, xe = Ae && !0 && e && !e.nodeType && e, je = xe && xe.exports === Ae, ve = je && oe.process, Ze = function() {
249
249
  try {
250
250
  var A = xe && xe.require && xe.require("util").types;
251
251
  return A || ve && ve.binding && ve.binding("util");
252
252
  } catch {
253
253
  }
254
- }(), ft = Je && Je.isTypedArray;
254
+ }(), ft = Ze && Ze.isTypedArray;
255
255
  function It(A, k, U) {
256
256
  switch (U.length) {
257
257
  case 0:
@@ -290,7 +290,7 @@ function j0() {
290
290
  "^" + Ht.call(ie).replace(b, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
291
  ), X = je ? me.Buffer : void 0, re = me.Symbol, ue = me.Uint8Array;
292
292
  X && X.allocUnsafe;
293
- var pe = Tn(Object.getPrototypeOf, Object), Re = Object.create, Xe = Nt.propertyIsEnumerable, ke = en.splice, et = re ? re.toStringTag : void 0, it = function() {
293
+ var pe = Tn(Object.getPrototypeOf, Object), we = Object.create, Xe = Nt.propertyIsEnumerable, Ne = en.splice, Je = re ? re.toStringTag : void 0, it = function() {
294
294
  try {
295
295
  var A = ca(Object, "defineProperty");
296
296
  return A({}, "", {}), A;
@@ -302,8 +302,8 @@ function j0() {
302
302
  return function(k) {
303
303
  if (!rn(k))
304
304
  return {};
305
- if (Re)
306
- return Re(k);
305
+ if (we)
306
+ return we(k);
307
307
  A.prototype = k;
308
308
  var U = new A();
309
309
  return A.prototype = void 0, U;
@@ -335,11 +335,11 @@ function j0() {
335
335
  var k = this.__data__;
336
336
  return tn ? k[A] !== void 0 : ie.call(k, A);
337
337
  }
338
- function wd(A, k) {
338
+ function Rd(A, k) {
339
339
  var U = this.__data__;
340
340
  return this.size += this.has(A) ? 0 : 1, U[A] = tn && k === void 0 ? r : k, this;
341
341
  }
342
- nn.prototype.clear = Id, nn.prototype.delete = Nd, nn.prototype.get = kd, nn.prototype.has = Ld, nn.prototype.set = wd;
342
+ nn.prototype.clear = Id, nn.prototype.delete = Nd, nn.prototype.get = kd, nn.prototype.has = Ld, nn.prototype.set = Rd;
343
343
  function Ut(A) {
344
344
  var k = -1, U = A == null ? 0 : A.length;
345
345
  for (this.clear(); ++k < U; ) {
@@ -347,7 +347,7 @@ function j0() {
347
347
  this.set(ae[0], ae[1]);
348
348
  }
349
349
  }
350
- function Rd() {
350
+ function wd() {
351
351
  this.__data__ = [], this.size = 0;
352
352
  }
353
353
  function Dd(A) {
@@ -355,7 +355,7 @@ function j0() {
355
355
  if (U < 0)
356
356
  return !1;
357
357
  var ae = k.length - 1;
358
- return U == ae ? k.pop() : ke.call(k, U, 1), --this.size, !0;
358
+ return U == ae ? k.pop() : Ne.call(k, U, 1), --this.size, !0;
359
359
  }
360
360
  function Pd(A) {
361
361
  var k = this.__data__, U = yr(k, A);
@@ -368,7 +368,7 @@ function j0() {
368
368
  var U = this.__data__, ae = yr(U, A);
369
369
  return ae < 0 ? (++this.size, U.push([A, k])) : U[ae][1] = k, this;
370
370
  }
371
- Ut.prototype.clear = Rd, Ut.prototype.delete = Dd, Ut.prototype.get = Pd, Ut.prototype.has = Md, Ut.prototype.set = Fd;
371
+ Ut.prototype.clear = wd, Ut.prototype.delete = Dd, Ut.prototype.get = Pd, Ut.prototype.has = Md, Ut.prototype.set = Fd;
372
372
  function _n(A) {
373
373
  var k = -1, U = A == null ? 0 : A.length;
374
374
  for (this.clear(); ++k < U; ) {
@@ -427,12 +427,12 @@ function j0() {
427
427
  }
428
428
  Cn.prototype.clear = zd, Cn.prototype.delete = Yd, Cn.prototype.get = $d, Cn.prototype.has = Vd, Cn.prototype.set = Wd;
429
429
  function Gd(A, k) {
430
- var U = ha(A), ae = !U && fa(A), Te = !U && !ae && mu(A), Le = !U && !ae && !Te && bu(A), Be = U || ae || Te || Le, _e = Be ? Un(A.length, String) : [], He = _e.length;
430
+ var U = ha(A), ae = !U && fa(A), Te = !U && !ae && mu(A), ke = !U && !ae && !Te && bu(A), Be = U || ae || Te || ke, _e = Be ? Un(A.length, String) : [], He = _e.length;
431
431
  for (var St in A)
432
432
  Be && // Safari 9 has enumerable `arguments.length` in strict mode.
433
433
  (St == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
434
434
  Te && (St == "offset" || St == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
435
- Le && (St == "buffer" || St == "byteLength" || St == "byteOffset") || // Skip index properties.
435
+ ke && (St == "buffer" || St == "byteLength" || St == "byteOffset") || // Skip index properties.
436
436
  hu(St, He)) || _e.push(St);
437
437
  return _e;
438
438
  }
@@ -459,7 +459,7 @@ function j0() {
459
459
  }
460
460
  var Kd = l0();
461
461
  function _r(A) {
462
- return A == null ? A === void 0 ? N : E : et && et in Object(A) ? c0(A) : g0(A);
462
+ return A == null ? A === void 0 ? N : E : Je && Je in Object(A) ? c0(A) : g0(A);
463
463
  }
464
464
  function du(A) {
465
465
  return qn(A) && _r(A) == s;
@@ -482,27 +482,27 @@ function j0() {
482
482
  return U;
483
483
  }
484
484
  function fu(A, k, U, ae, Te) {
485
- A !== k && Kd(k, function(Le, Be) {
486
- if (Te || (Te = new Cn()), rn(Le))
485
+ A !== k && Kd(k, function(ke, Be) {
486
+ if (Te || (Te = new Cn()), rn(ke))
487
487
  e0(A, k, Be, U, fu, ae, Te);
488
488
  else {
489
- var _e = ae ? ae(da(A, Be), Le, Be + "", A, k, Te) : void 0;
490
- _e === void 0 && (_e = Le), sa(A, Be, _e);
489
+ var _e = ae ? ae(da(A, Be), ke, Be + "", A, k, Te) : void 0;
490
+ _e === void 0 && (_e = ke), sa(A, Be, _e);
491
491
  }
492
492
  }, Eu);
493
493
  }
494
- function e0(A, k, U, ae, Te, Le, Be) {
494
+ function e0(A, k, U, ae, Te, ke, Be) {
495
495
  var _e = da(A, U), He = da(k, U), St = Be.get(He);
496
496
  if (St) {
497
497
  sa(A, U, St);
498
498
  return;
499
499
  }
500
- var ht = Le ? Le(_e, He, U + "", A, k, Be) : void 0, zn = ht === void 0;
500
+ var ht = ke ? ke(_e, He, U + "", A, k, Be) : void 0, zn = ht === void 0;
501
501
  if (zn) {
502
502
  var ga = ha(He), ba = !ga && mu(He), yu = !ga && !ba && bu(He);
503
503
  ht = He, ga || ba || yu ? ha(_e) ? ht = _e : _0(_e) ? ht = u0(_e) : ba ? (zn = !1, ht = r0(He)) : yu ? (zn = !1, ht = i0(He)) : ht = [] : C0(He) || fa(He) ? (ht = _e, fa(_e) ? ht = A0(_e) : (!rn(_e) || ma(_e)) && (ht = d0(He))) : zn = !1;
504
504
  }
505
- zn && (Be.set(He, ht), Te(ht, He, ae, Le, Be), Be.delete(He)), sa(A, U, ht);
505
+ zn && (Be.set(He, ht), Te(ht, He, ae, ke, Be), Be.delete(He)), sa(A, U, ht);
506
506
  }
507
507
  function t0(A, k) {
508
508
  return E0(b0(A, k, Tu), A + "");
@@ -535,27 +535,27 @@ function j0() {
535
535
  function o0(A, k, U, ae) {
536
536
  var Te = !U;
537
537
  U || (U = {});
538
- for (var Le = -1, Be = k.length; ++Le < Be; ) {
539
- var _e = k[Le], He = void 0;
538
+ for (var ke = -1, Be = k.length; ++ke < Be; ) {
539
+ var _e = k[ke], He = void 0;
540
540
  He === void 0 && (He = A[_e]), Te ? la(U, _e, He) : Xd(U, _e, He);
541
541
  }
542
542
  return U;
543
543
  }
544
544
  function s0(A) {
545
545
  return t0(function(k, U) {
546
- var ae = -1, Te = U.length, Le = Te > 1 ? U[Te - 1] : void 0, Be = Te > 2 ? U[2] : void 0;
547
- for (Le = A.length > 3 && typeof Le == "function" ? (Te--, Le) : void 0, Be && f0(U[0], U[1], Be) && (Le = Te < 3 ? void 0 : Le, Te = 1), k = Object(k); ++ae < Te; ) {
546
+ var ae = -1, Te = U.length, ke = Te > 1 ? U[Te - 1] : void 0, Be = Te > 2 ? U[2] : void 0;
547
+ for (ke = A.length > 3 && typeof ke == "function" ? (Te--, ke) : void 0, Be && f0(U[0], U[1], Be) && (ke = Te < 3 ? void 0 : ke, Te = 1), k = Object(k); ++ae < Te; ) {
548
548
  var _e = U[ae];
549
- _e && A(k, _e, ae, Le);
549
+ _e && A(k, _e, ae, ke);
550
550
  }
551
551
  return k;
552
552
  });
553
553
  }
554
554
  function l0(A) {
555
555
  return function(k, U, ae) {
556
- for (var Te = -1, Le = Object(k), Be = ae(k), _e = Be.length; _e--; ) {
556
+ for (var Te = -1, ke = Object(k), Be = ae(k), _e = Be.length; _e--; ) {
557
557
  var He = Be[++Te];
558
- if (U(Le[He], He, Le) === !1)
558
+ if (U(ke[He], He, ke) === !1)
559
559
  break;
560
560
  }
561
561
  return k;
@@ -570,14 +570,14 @@ function j0() {
570
570
  return Qd(U) ? U : void 0;
571
571
  }
572
572
  function c0(A) {
573
- var k = ie.call(A, et), U = A[et];
573
+ var k = ie.call(A, Je), U = A[Je];
574
574
  try {
575
- A[et] = void 0;
575
+ A[Je] = void 0;
576
576
  var ae = !0;
577
577
  } catch {
578
578
  }
579
579
  var Te = Se.call(A);
580
- return ae && (k ? A[et] = U : delete A[et]), Te;
580
+ return ae && (k ? A[Je] = U : delete A[Je]), Te;
581
581
  }
582
582
  function d0(A) {
583
583
  return typeof A.constructor == "function" && !pu(A) ? kt(pe(A)) : {};
@@ -615,7 +615,7 @@ function j0() {
615
615
  }
616
616
  function b0(A, k, U) {
617
617
  return k = rt(k === void 0 ? A.length - 1 : k, 0), function() {
618
- for (var ae = arguments, Te = -1, Le = rt(ae.length - k, 0), Be = Array(Le); ++Te < Le; )
618
+ for (var ae = arguments, Te = -1, ke = rt(ae.length - k, 0), Be = Array(ke); ++Te < ke; )
619
619
  Be[Te] = ae[k + Te];
620
620
  Te = -1;
621
621
  for (var _e = Array(k + 1); ++Te < k; )
@@ -1471,7 +1471,7 @@ const Ps = /* @__PURE__ */ Mt(q0), z0 = {
1471
1471
  u(!0);
1472
1472
  }
1473
1473
  }, [t, r]);
1474
- Ne(() => {
1474
+ Re(() => {
1475
1475
  c();
1476
1476
  }, [c]);
1477
1477
  const d = cn(
@@ -1618,7 +1618,7 @@ const Zt = Kr({}), Ie = {
1618
1618
  onFeedbackSelection: n,
1619
1619
  onMessageSent: r
1620
1620
  }) => {
1621
- const a = nt(null), { id: i } = oe(Ye), [u, s] = ce(null), [l, c] = ce(!1), [d, f] = ce([]), p = st(() => {
1621
+ const a = tt(null), { id: i } = se(Ye), [u, s] = ce(null), [l, c] = ce(!1), [d, f] = ce([]), p = st(() => {
1622
1622
  s(null), c(!1), f([]), lt.remove(`${i}-conversation-history-id`);
1623
1623
  }, [i, s]), g = {
1624
1624
  contentRef: a,
@@ -1645,7 +1645,7 @@ const Iu = 991, Z0 = () => {
1645
1645
  const [e, t] = ce(
1646
1646
  window.innerWidth < Iu
1647
1647
  );
1648
- return Ne(() => {
1648
+ return Re(() => {
1649
1649
  const n = () => {
1650
1650
  t(window.innerWidth < Iu);
1651
1651
  };
@@ -1654,7 +1654,7 @@ const Iu = 991, Z0 = () => {
1654
1654
  }, vt = {
1655
1655
  LIVECHAT: "LIVECHAT",
1656
1656
  XPERT: "XPERT"
1657
- }, Ze = Kr({}), Us = ({
1657
+ }, nt = Kr({}), Us = ({
1658
1658
  children: e,
1659
1659
  externalLoading: t = !1,
1660
1660
  externalStreaming: n = !1
@@ -1676,7 +1676,7 @@ const Iu = 991, Z0 = () => {
1676
1676
  setStreaming: g,
1677
1677
  setMode: y
1678
1678
  };
1679
- return /* @__PURE__ */ S.jsx(Ze.Provider, { value: P, children: e });
1679
+ return /* @__PURE__ */ S.jsx(nt.Provider, { value: P, children: e });
1680
1680
  };
1681
1681
  Us.propTypes = {
1682
1682
  children: v.element.isRequired,
@@ -1732,7 +1732,7 @@ function vi({
1732
1732
  children: a,
1733
1733
  ...i
1734
1734
  }) {
1735
- const { isMobile: u } = oe(Ze);
1735
+ const { isMobile: u } = se(nt);
1736
1736
  return /* @__PURE__ */ S.jsx(
1737
1737
  "button",
1738
1738
  {
@@ -1766,12 +1766,12 @@ eyes follow your mouse when you hover near it.`, qs = ({
1766
1766
  handleFloatingActionButtonClick: e = null
1767
1767
  }) => {
1768
1768
  var h, g, m, y;
1769
- const { id: t, launchButton: n } = oe(Ye), { isMobile: r } = oe(Ze), a = !lt.get(
1769
+ const { id: t, launchButton: n } = se(Ye), { isMobile: r } = se(nt), a = !lt.get(
1770
1770
  `${t}-proactive-message-xpert-chatbot`
1771
- ), i = nt(null), u = nt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((g = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : g.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
1771
+ ), i = tt(null), u = tt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((g = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : g.delayMs) * 2, [l, c] = ce(!1), d = window.matchMedia(
1772
1772
  `(max-width: ${tf}px)`
1773
1773
  ).matches;
1774
- Ne(() => {
1774
+ Re(() => {
1775
1775
  const P = setTimeout(
1776
1776
  () => {
1777
1777
  c(!0);
@@ -1781,16 +1781,16 @@ eyes follow your mouse when you hover near it.`, qs = ({
1781
1781
  return () => {
1782
1782
  clearTimeout(P);
1783
1783
  };
1784
- }, [s]), Ne(() => {
1784
+ }, [s]), Re(() => {
1785
1785
  const E = (P) => {
1786
1786
  const M = window.devicePixelRatio > 1.5;
1787
1787
  if (!(u != null && u.current) || d || M)
1788
1788
  return;
1789
1789
  i.current.querySelectorAll(
1790
1790
  ".xpert_chatbot__animated_graduate__pupil"
1791
- ).forEach((R) => {
1792
- const _ = R.getBoundingClientRect(), N = (P.pageX - window.scrollX - _.left) / 30 / 16 + "rem", V = (P.pageY - window.scrollY - _.top) / 30 / 16 + "rem";
1793
- R.style.transform = "translate3d(" + N + "," + V + ", 0rem)";
1791
+ ).forEach((w) => {
1792
+ const _ = w.getBoundingClientRect(), N = (P.pageX - window.scrollX - _.left) / 30 / 16 + "rem", V = (P.pageY - window.scrollY - _.top) / 30 / 16 + "rem";
1793
+ w.style.transform = "translate3d(" + N + "," + V + ", 0rem)";
1794
1794
  });
1795
1795
  };
1796
1796
  return window.addEventListener("mousemove", E), () => {
@@ -1975,7 +1975,7 @@ const rf = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
1975
1975
  handleFloatingActionButtonClick: e = null
1976
1976
  }) => {
1977
1977
  var r, a;
1978
- const { launchButton: t } = oe(Ye), { isMobile: n } = oe(Ze);
1978
+ const { launchButton: t } = se(Ye), { isMobile: n } = se(nt);
1979
1979
  return /* @__PURE__ */ S.jsx(
1980
1980
  vi,
1981
1981
  {
@@ -2192,7 +2192,7 @@ var $s = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2192
2192
  if (n = n || {}, !t)
2193
2193
  throw new Error("No node provided");
2194
2194
  return fn.call(t, Ur) === !1 ? !1 : ei(n, t);
2195
- }, yf = /* @__PURE__ */ $s.concat("iframe").join(","), Rr = function(t, n) {
2195
+ }, yf = /* @__PURE__ */ $s.concat("iframe").join(","), wr = function(t, n) {
2196
2196
  if (n = n || {}, !t)
2197
2197
  throw new Error("No node provided");
2198
2198
  return fn.call(t, yf) === !1 ? !1 : zr(n, t);
@@ -2201,7 +2201,7 @@ const _f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2201
2201
  __proto__: null,
2202
2202
  focusable: Zs,
2203
2203
  getTabIndex: Kt,
2204
- isFocusable: Rr,
2204
+ isFocusable: wr,
2205
2205
  isTabbable: sn,
2206
2206
  tabbable: Qs
2207
2207
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2242,7 +2242,7 @@ function Lu(e, t) {
2242
2242
  }
2243
2243
  return n;
2244
2244
  }
2245
- function wu(e) {
2245
+ function Ru(e) {
2246
2246
  for (var t = 1; t < arguments.length; t++) {
2247
2247
  var n = arguments[t] != null ? arguments[t] : {};
2248
2248
  t % 2 ? Lu(Object(n), !0).forEach(function(r) {
@@ -2277,7 +2277,7 @@ function Nf(e, t) {
2277
2277
  return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ti(e, t) : void 0;
2278
2278
  }
2279
2279
  }
2280
- var Ru = {
2280
+ var wu = {
2281
2281
  activateTrap: function(t, n) {
2282
2282
  if (t.length > 0) {
2283
2283
  var r = t[t.length - 1];
@@ -2296,9 +2296,9 @@ var Ru = {
2296
2296
  return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
2297
2297
  }, tr = function(t) {
2298
2298
  return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
2299
- }, wf = function(t) {
2300
- return tr(t) && !t.shiftKey;
2301
2299
  }, Rf = function(t) {
2300
+ return tr(t) && !t.shiftKey;
2301
+ }, wf = function(t) {
2302
2302
  return tr(t) && t.shiftKey;
2303
2303
  }, Du = function(t) {
2304
2304
  return setTimeout(t, 0);
@@ -2309,12 +2309,12 @@ var Ru = {
2309
2309
  }, vr = function(t) {
2310
2310
  return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
2311
2311
  }, Df = [], Pf = function(t, n) {
2312
- var r = (n == null ? void 0 : n.document) || document, a = (n == null ? void 0 : n.trapStack) || Df, i = wu({
2312
+ var r = (n == null ? void 0 : n.document) || document, a = (n == null ? void 0 : n.trapStack) || Df, i = Ru({
2313
2313
  returnFocusOnDeactivate: !0,
2314
2314
  escapeDeactivates: !0,
2315
2315
  delayInitialFocus: !0,
2316
- isKeyForward: wf,
2317
- isKeyBackward: Rf
2316
+ isKeyForward: Rf,
2317
+ isKeyBackward: wf
2318
2318
  }, n), u = {
2319
2319
  // containers given to createFocusTrap()
2320
2320
  // @type {Array<HTMLElement>}
@@ -2352,22 +2352,22 @@ var Ru = {
2352
2352
  delayInitialFocusTimer: void 0,
2353
2353
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
2354
2354
  recentNavEvent: void 0
2355
- }, s, l = function(L, I, w) {
2356
- return L && L[I] !== void 0 ? L[I] : i[w || I];
2355
+ }, s, l = function(L, I, R) {
2356
+ return L && L[I] !== void 0 ? L[I] : i[R || I];
2357
2357
  }, c = function(L, I) {
2358
- var w = typeof (I == null ? void 0 : I.composedPath) == "function" ? I.composedPath() : void 0;
2358
+ var R = typeof (I == null ? void 0 : I.composedPath) == "function" ? I.composedPath() : void 0;
2359
2359
  return u.containerGroups.findIndex(function(B) {
2360
2360
  var G = B.container, j = B.tabbableNodes;
2361
2361
  return G.contains(L) || // fall back to explicit tabbable search which will take into consideration any
2362
2362
  // web components if the `tabbableOptions.getShadowRoot` option was used for
2363
2363
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
2364
2364
  // look inside web components even if open)
2365
- (w == null ? void 0 : w.includes(G)) || j.find(function(q) {
2365
+ (R == null ? void 0 : R.includes(G)) || j.find(function(q) {
2366
2366
  return q === L;
2367
2367
  });
2368
2368
  });
2369
2369
  }, d = function(L) {
2370
- var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = I.hasFallback, B = w === void 0 ? !1 : w, G = I.params, j = G === void 0 ? [] : G, q = i[L];
2370
+ var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = I.hasFallback, B = R === void 0 ? !1 : R, G = I.params, j = G === void 0 ? [] : G, q = i[L];
2371
2371
  if (typeof q == "function" && (q = q.apply(void 0, vf(j))), q === !0 && (q = void 0), !q) {
2372
2372
  if (q === void 0 || q === !1)
2373
2373
  return q;
@@ -2390,12 +2390,12 @@ var Ru = {
2390
2390
  });
2391
2391
  if (L === !1)
2392
2392
  return !1;
2393
- if (L === void 0 || L && !Rr(L, i.tabbableOptions))
2393
+ if (L === void 0 || L && !wr(L, i.tabbableOptions))
2394
2394
  if (c(r.activeElement) >= 0)
2395
2395
  L = r.activeElement;
2396
2396
  else {
2397
- var I = u.tabbableGroups[0], w = I && I.firstTabbableNode;
2398
- L = w || d("fallbackFocus");
2397
+ var I = u.tabbableGroups[0], R = I && I.firstTabbableNode;
2398
+ L = R || d("fallbackFocus");
2399
2399
  }
2400
2400
  else L === null && (L = d("fallbackFocus"));
2401
2401
  if (!L)
@@ -2403,9 +2403,9 @@ var Ru = {
2403
2403
  return L;
2404
2404
  }, p = function() {
2405
2405
  if (u.containerGroups = u.containers.map(function(L) {
2406
- var I = Qs(L, i.tabbableOptions), w = Zs(L, i.tabbableOptions), B = I.length > 0 ? I[0] : void 0, G = I.length > 0 ? I[I.length - 1] : void 0, j = w.find(function(ne) {
2406
+ var I = Qs(L, i.tabbableOptions), R = Zs(L, i.tabbableOptions), B = I.length > 0 ? I[0] : void 0, G = I.length > 0 ? I[I.length - 1] : void 0, j = R.find(function(ne) {
2407
2407
  return sn(ne);
2408
- }), q = w.slice().reverse().find(function(ne) {
2408
+ }), q = R.slice().reverse().find(function(ne) {
2409
2409
  return sn(ne);
2410
2410
  }), b = !!I.find(function(ne) {
2411
2411
  return Kt(ne) > 0;
@@ -2413,7 +2413,7 @@ var Ru = {
2413
2413
  return {
2414
2414
  container: L,
2415
2415
  tabbableNodes: I,
2416
- focusableNodes: w,
2416
+ focusableNodes: R,
2417
2417
  /** True if at least one node with positive `tabindex` was found in this container. */
2418
2418
  posTabIndexesFound: b,
2419
2419
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -2440,12 +2440,12 @@ var Ru = {
2440
2440
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
2441
2441
  */
2442
2442
  nextTabbableNode: function(le) {
2443
- var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, se = I.indexOf(le);
2444
- return se < 0 ? x ? w.slice(w.indexOf(le) + 1).find(function(ye) {
2443
+ var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, oe = I.indexOf(le);
2444
+ return oe < 0 ? x ? R.slice(R.indexOf(le) + 1).find(function(ye) {
2445
2445
  return sn(ye);
2446
- }) : w.slice(0, w.indexOf(le)).reverse().find(function(ye) {
2446
+ }) : R.slice(0, R.indexOf(le)).reverse().find(function(ye) {
2447
2447
  return sn(ye);
2448
- }) : I[se + (x ? 1 : -1)];
2448
+ }) : I[oe + (x ? 1 : -1)];
2449
2449
  }
2450
2450
  };
2451
2451
  }), u.tabbableGroups = u.containerGroups.filter(function(L) {
@@ -2476,11 +2476,11 @@ var Ru = {
2476
2476
  });
2477
2477
  return I || (I === !1 ? !1 : L);
2478
2478
  }, y = function(L) {
2479
- var I = L.target, w = L.event, B = L.isBackward, G = B === void 0 ? !1 : B;
2480
- I = I || vr(w), p();
2479
+ var I = L.target, R = L.event, B = L.isBackward, G = B === void 0 ? !1 : B;
2480
+ I = I || vr(R), p();
2481
2481
  var j = null;
2482
2482
  if (u.tabbableGroups.length > 0) {
2483
- var q = c(I, w), b = q >= 0 ? u.containerGroups[q] : void 0;
2483
+ var q = c(I, R), b = q >= 0 ? u.containerGroups[q] : void 0;
2484
2484
  if (q < 0)
2485
2485
  G ? j = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : j = u.tabbableGroups[0].firstTabbableNode;
2486
2486
  else if (G) {
@@ -2488,19 +2488,19 @@ var Ru = {
2488
2488
  var xe = Ae.firstTabbableNode;
2489
2489
  return I === xe;
2490
2490
  });
2491
- if (ne < 0 && (b.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I, !1)) && (ne = q), ne >= 0) {
2491
+ if (ne < 0 && (b.container === I || wr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I, !1)) && (ne = q), ne >= 0) {
2492
2492
  var le = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, x = u.tabbableGroups[le];
2493
2493
  j = Kt(I) >= 0 ? x.lastTabbableNode : x.lastDomTabbableNode;
2494
- } else tr(w) || (j = b.nextTabbableNode(I, !1));
2494
+ } else tr(R) || (j = b.nextTabbableNode(I, !1));
2495
2495
  } else {
2496
- var se = u.tabbableGroups.findIndex(function(Ae) {
2496
+ var oe = u.tabbableGroups.findIndex(function(Ae) {
2497
2497
  var xe = Ae.lastTabbableNode;
2498
2498
  return I === xe;
2499
2499
  });
2500
- if (se < 0 && (b.container === I || Rr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I)) && (se = q), se >= 0) {
2501
- var ye = se === u.tabbableGroups.length - 1 ? 0 : se + 1, me = u.tabbableGroups[ye];
2500
+ if (oe < 0 && (b.container === I || wr(I, i.tabbableOptions) && !sn(I, i.tabbableOptions) && !b.nextTabbableNode(I)) && (oe = q), oe >= 0) {
2501
+ var ye = oe === u.tabbableGroups.length - 1 ? 0 : oe + 1, me = u.tabbableGroups[ye];
2502
2502
  j = Kt(I) >= 0 ? me.firstTabbableNode : me.firstDomTabbableNode;
2503
- } else tr(w) || (j = b.nextTabbableNode(I));
2503
+ } else tr(R) || (j = b.nextTabbableNode(I));
2504
2504
  }
2505
2505
  } else
2506
2506
  j = d("fallbackFocus");
@@ -2523,9 +2523,9 @@ var Ru = {
2523
2523
  Yn(i.allowOutsideClick, L) || L.preventDefault();
2524
2524
  }
2525
2525
  }, P = function(L) {
2526
- var I = vr(L), w = c(I, L) >= 0;
2527
- if (w || I instanceof Document)
2528
- w && (u.mostRecentlyFocusedNode = I);
2526
+ var I = vr(L), R = c(I, L) >= 0;
2527
+ if (R || I instanceof Document)
2528
+ R && (u.mostRecentlyFocusedNode = I);
2529
2529
  else {
2530
2530
  L.stopImmediatePropagation();
2531
2531
  var B, G = !0;
@@ -2557,21 +2557,21 @@ var Ru = {
2557
2557
  }, M = function(L) {
2558
2558
  var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2559
2559
  u.recentNavEvent = L;
2560
- var w = y({
2560
+ var R = y({
2561
2561
  event: L,
2562
2562
  isBackward: I
2563
2563
  });
2564
- w && (tr(L) && L.preventDefault(), g(w));
2564
+ R && (tr(L) && L.preventDefault(), g(R));
2565
2565
  }, W = function(L) {
2566
2566
  (i.isKeyForward(L) || i.isKeyBackward(L)) && M(L, i.isKeyBackward(L));
2567
- }, R = function(L) {
2567
+ }, w = function(L) {
2568
2568
  Lf(L) && Yn(i.escapeDeactivates, L) !== !1 && (L.preventDefault(), s.deactivate());
2569
2569
  }, _ = function(L) {
2570
2570
  var I = vr(L);
2571
2571
  c(I, L) >= 0 || Yn(i.clickOutsideDeactivates, L) || Yn(i.allowOutsideClick, L) || (L.preventDefault(), L.stopImmediatePropagation());
2572
2572
  }, N = function() {
2573
2573
  if (u.active)
2574
- return Ru.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Du(function() {
2574
+ return wu.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Du(function() {
2575
2575
  g(f());
2576
2576
  }) : g(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
2577
2577
  capture: !0,
@@ -2585,13 +2585,13 @@ var Ru = {
2585
2585
  }), r.addEventListener("keydown", W, {
2586
2586
  capture: !0,
2587
2587
  passive: !1
2588
- }), r.addEventListener("keydown", R), s;
2588
+ }), r.addEventListener("keydown", w), s;
2589
2589
  }, V = function() {
2590
2590
  if (u.active)
2591
- return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", E, !0), r.removeEventListener("touchstart", E, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown", R), s;
2591
+ return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", E, !0), r.removeEventListener("touchstart", E, !0), r.removeEventListener("click", _, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown", w), s;
2592
2592
  }, H = function(L) {
2593
- var I = L.some(function(w) {
2594
- var B = Array.from(w.removedNodes);
2593
+ var I = L.some(function(R) {
2594
+ var B = Array.from(R.removedNodes);
2595
2595
  return B.some(function(G) {
2596
2596
  return G === u.mostRecentlyFocusedNode;
2597
2597
  });
@@ -2615,24 +2615,24 @@ var Ru = {
2615
2615
  activate: function(L) {
2616
2616
  if (u.active)
2617
2617
  return this;
2618
- var I = l(L, "onActivate"), w = l(L, "onPostActivate"), B = l(L, "checkCanFocusTrap");
2618
+ var I = l(L, "onActivate"), R = l(L, "onPostActivate"), B = l(L, "checkCanFocusTrap");
2619
2619
  B || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = h(r), I == null || I();
2620
2620
  var G = function() {
2621
- B && p(), N(), Y(), w == null || w();
2621
+ B && p(), N(), Y(), R == null || R();
2622
2622
  };
2623
2623
  return B ? (B(u.containers.concat()).then(G, G), this) : (G(), this);
2624
2624
  },
2625
2625
  deactivate: function(L) {
2626
2626
  if (!u.active)
2627
2627
  return this;
2628
- var I = wu({
2628
+ var I = Ru({
2629
2629
  onDeactivate: i.onDeactivate,
2630
2630
  onPostDeactivate: i.onPostDeactivate,
2631
2631
  checkCanReturnFocus: i.checkCanReturnFocus
2632
2632
  }, L);
2633
- clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, V(), u.active = !1, u.paused = !1, Y(), Ru.deactivateTrap(a, s);
2634
- var w = l(I, "onDeactivate"), B = l(I, "onPostDeactivate"), G = l(I, "checkCanReturnFocus"), j = l(I, "returnFocus", "returnFocusOnDeactivate");
2635
- w == null || w();
2633
+ clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, V(), u.active = !1, u.paused = !1, Y(), wu.deactivateTrap(a, s);
2634
+ var R = l(I, "onDeactivate"), B = l(I, "onPostDeactivate"), G = l(I, "checkCanReturnFocus"), j = l(I, "returnFocus", "returnFocusOnDeactivate");
2635
+ R == null || R();
2636
2636
  var q = function() {
2637
2637
  Du(function() {
2638
2638
  j && g(m(u.nodeFocusedBeforeActivation)), B == null || B();
@@ -2648,8 +2648,8 @@ var Ru = {
2648
2648
  },
2649
2649
  updateContainerElements: function(L) {
2650
2650
  var I = [].concat(L).filter(Boolean);
2651
- return u.containers = I.map(function(w) {
2652
- return typeof w == "string" ? r.querySelector(w) : w;
2651
+ return u.containers = I.map(function(R) {
2652
+ return typeof R == "string" ? r.querySelector(R) : R;
2653
2653
  }), u.active && p(), Y(), this;
2654
2654
  }
2655
2655
  }, Object.defineProperties(s, {
@@ -2663,8 +2663,8 @@ var Ru = {
2663
2663
  if (u.paused === L)
2664
2664
  return this;
2665
2665
  if (u.paused = L, L) {
2666
- var w = l(I, "onPause"), B = l(I, "onPostPause");
2667
- w == null || w(), V(), Y(), B == null || B();
2666
+ var R = l(I, "onPause"), B = l(I, "onPostPause");
2667
+ R == null || R(), V(), Y(), B == null || B();
2668
2668
  } else {
2669
2669
  var G = l(I, "onUnpause"), j = l(I, "onPostUnpause");
2670
2670
  G == null || G(), p(), N(), Y(), j == null || j();
@@ -2677,7 +2677,7 @@ var Ru = {
2677
2677
  const Mf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2678
2678
  __proto__: null,
2679
2679
  createFocusTrap: Pf
2680
- }, Symbol.toStringTag, { value: "Module" })), Ff = /* @__PURE__ */ Rs(Mf), Bf = /* @__PURE__ */ Rs(_f);
2680
+ }, Symbol.toStringTag, { value: "Module" })), Ff = /* @__PURE__ */ ws(Mf), Bf = /* @__PURE__ */ ws(_f);
2681
2681
  var Sa, Pu;
2682
2682
  function Hf() {
2683
2683
  if (Pu) return Sa;
@@ -2761,7 +2761,7 @@ function Hf() {
2761
2761
  t(this, N), H = a(this, N, [V]), f(H, "getNodeForOption", function($) {
2762
2762
  var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
2763
2763
  if (typeof I == "function") {
2764
- for (var w = arguments.length, B = new Array(w > 1 ? w - 1 : 0), G = 1; G < w; G++)
2764
+ for (var R = arguments.length, B = new Array(R > 1 ? R - 1 : 0), G = 1; G < R; G++)
2765
2765
  B[G - 1] = arguments[G];
2766
2766
  I = I.apply(void 0, B);
2767
2767
  }
@@ -2881,9 +2881,9 @@ function Hf() {
2881
2881
  H.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
2882
2882
  // as a result of the click-through) -- in which case do NOT restore focus
2883
2883
  // to `returnFocusNode` because focus should remain on the outside node
2884
- !M(H.outsideClick.target, H.internalOptions.tabbableOptions))), I = H.internalOptions.preventScroll, w = I === void 0 ? !1 : I;
2884
+ !M(H.outsideClick.target, H.internalOptions.tabbableOptions))), I = H.internalOptions.preventScroll, R = I === void 0 ? !1 : I;
2885
2885
  L && $.focus({
2886
- preventScroll: w
2886
+ preventScroll: R
2887
2887
  }), H.originalOptions.onPostDeactivate && H.originalOptions.onPostDeactivate.call(null), H.outsideClick = null;
2888
2888
  };
2889
2889
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(te, te) : te();
@@ -2930,8 +2930,8 @@ function Hf() {
2930
2930
  if (te.type && te.type === g.Fragment)
2931
2931
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
2932
2932
  var Y = function(I) {
2933
- var w = H.props.containerElements;
2934
- te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), H.focusTrapElements = w || [I];
2933
+ var R = H.props.containerElements;
2934
+ te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), H.focusTrapElements = R || [I];
2935
2935
  }, $ = g.cloneElement(te, {
2936
2936
  ref: Y
2937
2937
  });
@@ -2940,7 +2940,7 @@ function Hf() {
2940
2940
  return null;
2941
2941
  }
2942
2942
  }]);
2943
- }(g.Component), R = typeof Element > "u" ? Function : Element;
2943
+ }(g.Component), w = typeof Element > "u" ? Function : Element;
2944
2944
  return W.propTypes = {
2945
2945
  active: m.bool,
2946
2946
  paused: m.bool,
@@ -2956,9 +2956,9 @@ function Hf() {
2956
2956
  onDeactivate: m.func,
2957
2957
  onPostDeactivate: m.func,
2958
2958
  checkCanReturnFocus: m.func,
2959
- initialFocus: m.oneOfType([m.instanceOf(R), m.string, m.bool, m.func]),
2959
+ initialFocus: m.oneOfType([m.instanceOf(w), m.string, m.bool, m.func]),
2960
2960
  fallbackFocus: m.oneOfType([
2961
- m.instanceOf(R),
2961
+ m.instanceOf(w),
2962
2962
  m.string,
2963
2963
  // NOTE: does not support `false` as value (or return value from function)
2964
2964
  m.func
@@ -2966,7 +2966,7 @@ function Hf() {
2966
2966
  escapeDeactivates: m.oneOfType([m.bool, m.func]),
2967
2967
  clickOutsideDeactivates: m.oneOfType([m.bool, m.func]),
2968
2968
  returnFocusOnDeactivate: m.bool,
2969
- setReturnFocus: m.oneOfType([m.instanceOf(R), m.string, m.bool, m.func]),
2969
+ setReturnFocus: m.oneOfType([m.instanceOf(w), m.string, m.bool, m.func]),
2970
2970
  allowOutsideClick: m.oneOfType([m.bool, m.func]),
2971
2971
  preventScroll: m.bool,
2972
2972
  tabbableOptions: m.shape({
@@ -2977,12 +2977,12 @@ function Hf() {
2977
2977
  isKeyForward: m.func,
2978
2978
  isKeyBackward: m.func
2979
2979
  }),
2980
- containerElements: m.arrayOf(m.instanceOf(R)),
2980
+ containerElements: m.arrayOf(m.instanceOf(w)),
2981
2981
  // DOM element ONLY
2982
2982
  children: m.oneOfType([
2983
2983
  m.element,
2984
2984
  // React element
2985
- m.instanceOf(R)
2985
+ m.instanceOf(w)
2986
2986
  // DOM element
2987
2987
  ])
2988
2988
  // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
@@ -3003,7 +3003,7 @@ function Js({
3003
3003
  isMounted: n = !1,
3004
3004
  style: r = {}
3005
3005
  }) {
3006
- const { isMobile: a, isNormalSize: i } = oe(Ze), u = nt(null);
3006
+ const { isMobile: a, isNormalSize: i } = se(nt), u = tt(null);
3007
3007
  return /* @__PURE__ */ S.jsx(
3008
3008
  jf,
3009
3009
  {
@@ -3044,7 +3044,7 @@ Js.propTypes = {
3044
3044
  className: v.string
3045
3045
  };
3046
3046
  function el({ children: e, isMounted: t }) {
3047
- const { widgetMode: n } = oe(Ye);
3047
+ const { widgetMode: n } = se(Ye);
3048
3048
  return n ? /* @__PURE__ */ S.jsx(Js, { isMounted: t, children: e }) : /* @__PURE__ */ S.jsx("div", { className: "xpert_chatbot_inline", children: e });
3049
3049
  }
3050
3050
  el.propTypes = {
@@ -3052,8 +3052,8 @@ el.propTypes = {
3052
3052
  isMounted: v.bool
3053
3053
  };
3054
3054
  const tl = () => {
3055
- const { disclaimer: e } = oe(Ye), t = nt(null);
3056
- return Ne(() => {
3055
+ const { disclaimer: e } = se(Ye), t = tt(null);
3056
+ return Re(() => {
3057
3057
  var n;
3058
3058
  (n = t == null ? void 0 : t.current) == null || n.focus();
3059
3059
  }, []), /* @__PURE__ */ S.jsxs(
@@ -3756,7 +3756,7 @@ function Ch(e, t, n, r) {
3756
3756
  return;
3757
3757
  }
3758
3758
  if (H) {
3759
- d = V, p.length || (u.length ? R() : P());
3759
+ d = V, p.length || (u.length ? w() : P());
3760
3760
  return;
3761
3761
  }
3762
3762
  if (g(), M(), !e.random) {
@@ -3767,7 +3767,7 @@ function Ch(e, t, n, r) {
3767
3767
  te(V);
3768
3768
  });
3769
3769
  }
3770
- function R() {
3770
+ function w() {
3771
3771
  if (l !== "pending")
3772
3772
  return;
3773
3773
  g();
@@ -3789,9 +3789,9 @@ function Ch(e, t, n, r) {
3789
3789
  W(N, V, H);
3790
3790
  }
3791
3791
  };
3792
- p.push(N), c++, f = setTimeout(R, e.rotate), n(_, t, N.callback);
3792
+ p.push(N), c++, f = setTimeout(w, e.rotate), n(_, t, N.callback);
3793
3793
  }
3794
- return setTimeout(R), E;
3794
+ return setTimeout(w), E;
3795
3795
  }
3796
3796
  function dl(e) {
3797
3797
  const t = {
@@ -4003,7 +4003,7 @@ function Lh(e, t) {
4003
4003
  }
4004
4004
  });
4005
4005
  }
4006
- function wh(e, t = 0) {
4006
+ function Rh(e, t = 0) {
4007
4007
  const n = e.replace(/^-?[0-9.]*/, "");
4008
4008
  function r(a) {
4009
4009
  for (; a < 0; )
@@ -4029,7 +4029,7 @@ function wh(e, t = 0) {
4029
4029
  }
4030
4030
  return t;
4031
4031
  }
4032
- function Rh(e, t) {
4032
+ function wh(e, t) {
4033
4033
  let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
4034
4034
  for (const r in t)
4035
4035
  n += " " + r + '="' + t[r] + '"';
@@ -4145,7 +4145,7 @@ const qh = (e, t, n) => {
4145
4145
  break;
4146
4146
  // Rotation as string
4147
4147
  case "rotate":
4148
- typeof E == "string" ? a[y] = wh(E) : typeof E == "number" && (a[y] = E);
4148
+ typeof E == "string" ? a[y] = Rh(E) : typeof E == "number" && (a[y] = E);
4149
4149
  break;
4150
4150
  // Remove aria-hidden
4151
4151
  case "ariaHidden":
@@ -4168,7 +4168,7 @@ const qh = (e, t, n) => {
4168
4168
  __html: Bh(uh(c.body, E ? () => E + "ID" + y++ : "iconifyReact"))
4169
4169
  }, Za("svg", l);
4170
4170
  }
4171
- const { body: f, width: p, height: h } = e, g = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = Rh(f, {
4171
+ const { body: f, width: p, height: h } = e, g = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = wh(f, {
4172
4172
  ...d,
4173
4173
  width: p + "",
4174
4174
  height: h + ""
@@ -4268,7 +4268,7 @@ function pl(e) {
4268
4268
  });
4269
4269
  } else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, g));
4270
4270
  }
4271
- Ne(() => (n(!0), l), []), Ne(() => {
4271
+ Re(() => (n(!0), l), []), Re(() => {
4272
4272
  t && d();
4273
4273
  }, [e.icon, t]);
4274
4274
  const { name: f, data: p } = u;
@@ -4277,11 +4277,11 @@ function pl(e) {
4277
4277
  ...p
4278
4278
  }, e, f) : e.children ? e.children : e.fallback ? e.fallback : Za("span", {});
4279
4279
  }
4280
- const Dt = ws((e, t) => pl({
4280
+ const Dt = Rs((e, t) => pl({
4281
4281
  ...e,
4282
4282
  _ref: t
4283
4283
  }));
4284
- ws((e, t) => pl({
4284
+ Rs((e, t) => pl({
4285
4285
  inline: !0,
4286
4286
  ...e,
4287
4287
  _ref: t
@@ -4294,7 +4294,7 @@ function Li({
4294
4294
  handleChange: a
4295
4295
  }) {
4296
4296
  var M;
4297
- const i = nt(!1), { conversationScreen: u, primaryColor: s } = oe(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = oe(Ze), [p, h] = ce(""), g = st(
4297
+ const i = tt(!1), { conversationScreen: u, primaryColor: s } = se(Ye), { hasError: l, hasNewMessage: c, loading: d, streaming: f } = se(nt), [p, h] = ce(""), g = st(
4298
4298
  (W) => {
4299
4299
  W.preventDefault(), h(W.target.value), a && a(W);
4300
4300
  },
@@ -4302,10 +4302,10 @@ function Li({
4302
4302
  ), m = () => {
4303
4303
  h(""), r.current && (r.current.style.height = "auto");
4304
4304
  }, y = e || d || f;
4305
- Ne(() => {
4305
+ Re(() => {
4306
4306
  var W;
4307
4307
  i.current && !y && ((W = r.current) == null || W.focus()), i.current = y;
4308
- }, [y, r]), Ne(() => {
4308
+ }, [y, r]), Re(() => {
4309
4309
  var W;
4310
4310
  (l || c) && ((W = r.current) == null || W.focus());
4311
4311
  }, [c, l, r]);
@@ -4376,8 +4376,8 @@ Li.propTypes = {
4376
4376
  handleChange: v.func
4377
4377
  };
4378
4378
  const ui = ({ content: e = "Please try again later." }) => {
4379
- const t = nt(null);
4380
- return Ne(() => {
4379
+ const t = tt(null);
4380
+ return Re(() => {
4381
4381
  var n;
4382
4382
  (n = t.current) == null || n.scrollIntoView({
4383
4383
  behavior: "instant"
@@ -5040,7 +5040,7 @@ function El() {
5040
5040
  function l(m, ...y) {
5041
5041
  let E;
5042
5042
  if (Da("use", r), m != null) if (typeof m == "function")
5043
- R(m, ...y);
5043
+ w(m, ...y);
5044
5044
  else if (typeof m == "object")
5045
5045
  Array.isArray(m) ? W(m) : M(m);
5046
5046
  else
@@ -5048,11 +5048,11 @@ function El() {
5048
5048
  return E && (n.settings = Object.assign(n.settings || {}, E)), i;
5049
5049
  function P(_) {
5050
5050
  if (typeof _ == "function")
5051
- R(_);
5051
+ w(_);
5052
5052
  else if (typeof _ == "object")
5053
5053
  if (Array.isArray(_)) {
5054
5054
  const [N, ...V] = _;
5055
- R(N, ...V);
5055
+ w(N, ...V);
5056
5056
  } else
5057
5057
  M(_);
5058
5058
  else
@@ -5071,7 +5071,7 @@ function El() {
5071
5071
  else
5072
5072
  throw new TypeError("Expected a list of plugins, not `" + _ + "`");
5073
5073
  }
5074
- function R(_, N) {
5074
+ function w(_, N) {
5075
5075
  let V = -1, H;
5076
5076
  for (; ++V < t.length; )
5077
5077
  if (t[V][0] === _) {
@@ -5084,20 +5084,20 @@ function El() {
5084
5084
  function c(m) {
5085
5085
  i.freeze();
5086
5086
  const y = Wn(m), E = i.Parser;
5087
- return wa("parse", E), to(E, "parse") ? new E(String(y), y).parse() : E(String(y), y);
5087
+ return Ra("parse", E), to(E, "parse") ? new E(String(y), y).parse() : E(String(y), y);
5088
5088
  }
5089
5089
  function d(m, y) {
5090
5090
  i.freeze();
5091
5091
  const E = Wn(y), P = i.Compiler;
5092
- return Ra("stringify", P), no(m), to(P, "compile") ? new P(m, E).compile() : P(m, E);
5092
+ return wa("stringify", P), no(m), to(P, "compile") ? new P(m, E).compile() : P(m, E);
5093
5093
  }
5094
5094
  function f(m, y, E) {
5095
5095
  if (no(m), i.freeze(), !E && typeof y == "function" && (E = y, y = void 0), !E)
5096
5096
  return new Promise(P);
5097
5097
  P(null, E);
5098
5098
  function P(M, W) {
5099
- e.run(m, Wn(y), R);
5100
- function R(_, N, V) {
5099
+ e.run(m, Wn(y), w);
5100
+ function w(_, N, V) {
5101
5101
  N = N || m, _ ? W(_) : M ? M(N) : E(null, N, V);
5102
5102
  }
5103
5103
  }
@@ -5105,32 +5105,32 @@ function El() {
5105
5105
  function p(m, y) {
5106
5106
  let E, P;
5107
5107
  return i.run(m, y, M), ro("runSync", "run", P), E;
5108
- function M(W, R) {
5109
- Zu(W), E = R, P = !0;
5108
+ function M(W, w) {
5109
+ Zu(W), E = w, P = !0;
5110
5110
  }
5111
5111
  }
5112
5112
  function h(m, y) {
5113
- if (i.freeze(), wa("process", i.Parser), Ra("process", i.Compiler), !y)
5113
+ if (i.freeze(), Ra("process", i.Parser), wa("process", i.Compiler), !y)
5114
5114
  return new Promise(E);
5115
5115
  E(null, y);
5116
5116
  function E(P, M) {
5117
5117
  const W = Wn(m);
5118
5118
  i.run(i.parse(W), W, (_, N, V) => {
5119
5119
  if (_ || !N || !V)
5120
- R(_);
5120
+ w(_);
5121
5121
  else {
5122
5122
  const H = i.stringify(N, V);
5123
- H == null || (cp(H) ? V.value = H : V.result = H), R(_, V);
5123
+ H == null || (cp(H) ? V.value = H : V.result = H), w(_, V);
5124
5124
  }
5125
5125
  });
5126
- function R(_, N) {
5126
+ function w(_, N) {
5127
5127
  _ || !N ? M(_) : P ? P(N) : y(null, N);
5128
5128
  }
5129
5129
  }
5130
5130
  }
5131
5131
  function g(m) {
5132
5132
  let y;
5133
- i.freeze(), wa("processSync", i.Parser), Ra("processSync", i.Compiler);
5133
+ i.freeze(), Ra("processSync", i.Parser), wa("processSync", i.Compiler);
5134
5134
  const E = Wn(m);
5135
5135
  return i.process(E, P), ro("processSync", "process", y), E;
5136
5136
  function P(M) {
@@ -5154,11 +5154,11 @@ function sp(e) {
5154
5154
  return !0;
5155
5155
  return !1;
5156
5156
  }
5157
- function wa(e, t) {
5157
+ function Ra(e, t) {
5158
5158
  if (typeof t != "function")
5159
5159
  throw new TypeError("Cannot `" + e + "` without `Parser`");
5160
5160
  }
5161
- function Ra(e, t) {
5161
+ function wa(e, t) {
5162
5162
  if (typeof t != "function")
5163
5163
  throw new TypeError("Cannot `" + e + "` without `Compiler`");
5164
5164
  }
@@ -5271,7 +5271,7 @@ function Fe(e, t, n, r) {
5271
5271
  return uo(l) && i++ < a ? (e.consume(l), s) : (e.exit(n), t(l));
5272
5272
  }
5273
5273
  }
5274
- function wi(e) {
5274
+ function Ri(e) {
5275
5275
  return e !== null && e < -2;
5276
5276
  }
5277
5277
  const bp = {
@@ -5307,7 +5307,7 @@ function Ep(e) {
5307
5307
  e.exit("chunkText"), e.exit("paragraph"), e.consume(s);
5308
5308
  return;
5309
5309
  }
5310
- return wi(s) ? (e.consume(s), e.exit("chunkText"), i) : (e.consume(s), u);
5310
+ return Ri(s) ? (e.consume(s), e.exit("chunkText"), i) : (e.consume(s), u);
5311
5311
  }
5312
5312
  }
5313
5313
  const Tp = {
@@ -5334,10 +5334,10 @@ function yp(e) {
5334
5334
  if (r++, t.containerState._closeFlow) {
5335
5335
  t.containerState._closeFlow = void 0, a && P();
5336
5336
  const W = t.events.length;
5337
- let R = W, _;
5338
- for (; R--; )
5339
- if (t.events[R][0] === "exit" && t.events[R][1].type === "chunkFlow") {
5340
- _ = t.events[R][1].end;
5337
+ let w = W, _;
5338
+ for (; w--; )
5339
+ if (t.events[w][0] === "exit" && t.events[w][1].type === "chunkFlow") {
5340
+ _ = t.events[w][1].end;
5341
5341
  break;
5342
5342
  }
5343
5343
  E(r);
@@ -5346,7 +5346,7 @@ function yp(e) {
5346
5346
  t.events[N][1].end = Object.assign({}, _), N++;
5347
5347
  return Pt(
5348
5348
  t.events,
5349
- R + 1,
5349
+ w + 1,
5350
5350
  0,
5351
5351
  t.events.slice(W)
5352
5352
  ), t.events.length = N, c(M);
@@ -5399,11 +5399,11 @@ function yp(e) {
5399
5399
  y(e.exit("chunkFlow"), !0), E(0), e.consume(M);
5400
5400
  return;
5401
5401
  }
5402
- return wi(M) ? (e.consume(M), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(M), m);
5402
+ return Ri(M) ? (e.consume(M), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(M), m);
5403
5403
  }
5404
5404
  function y(M, W) {
5405
- const R = t.sliceStream(M);
5406
- if (W && R.push(null), M.previous = i, i && (i.next = M), i = M, a.defineSkip(M.start), a.write(R), t.parser.lazy[M.start.line]) {
5405
+ const w = t.sliceStream(M);
5406
+ if (W && w.push(null), M.previous = i, i && (i.next = M), i = M, a.defineSkip(M.start), a.write(w), t.parser.lazy[M.start.line]) {
5407
5407
  let _ = a.events.length;
5408
5408
  for (; _--; )
5409
5409
  if (
@@ -5436,8 +5436,8 @@ function yp(e) {
5436
5436
  function E(M) {
5437
5437
  let W = n.length;
5438
5438
  for (; W-- > M; ) {
5439
- const R = n[W];
5440
- t.containerState = R[1], R[0].exit.call(t, e);
5439
+ const w = n[W];
5440
+ t.containerState = w[1], w[0].exit.call(t, e);
5441
5441
  }
5442
5442
  n.length = M;
5443
5443
  }
@@ -5470,7 +5470,7 @@ function so(e) {
5470
5470
  if (Sp(e))
5471
5471
  return 2;
5472
5472
  }
5473
- function Ri(e, t, n) {
5473
+ function wi(e, t, n) {
5474
5474
  const r = [];
5475
5475
  let a = -1;
5476
5476
  for (; ++a < e.length; ) {
@@ -5521,7 +5521,7 @@ function vp(e, t) {
5521
5521
  ["enter", i, t]
5522
5522
  ]), c = Et(
5523
5523
  c,
5524
- Ri(
5524
+ wi(
5525
5525
  t.parser.constructs.insideSpan.null,
5526
5526
  e.slice(r + 1, n),
5527
5527
  t
@@ -5559,7 +5559,7 @@ function Op(e, t) {
5559
5559
  function lo(e, t) {
5560
5560
  e.column += t, e.offset += t, e._bufferIndex += t;
5561
5561
  }
5562
- const Rt = wn(/[A-Za-z]/), xt = wn(/[\dA-Za-z]/), Ip = wn(/[#-'*+\--9=?A-Z^-~]/);
5562
+ const wt = Rn(/[A-Za-z]/), xt = Rn(/[\dA-Za-z]/), Ip = Rn(/[#-'*+\--9=?A-Z^-~]/);
5563
5563
  function Np(e) {
5564
5564
  return (
5565
5565
  // Special whitespace codes (which have negative values), C0 and Control
@@ -5567,34 +5567,34 @@ function Np(e) {
5567
5567
  e !== null && (e < 32 || e === 127)
5568
5568
  );
5569
5569
  }
5570
- const di = wn(/\d/), kp = wn(/[\dA-Fa-f]/), Lp = wn(/[!-/:-@[-`{-~]/);
5570
+ const di = Rn(/\d/), kp = Rn(/[\dA-Fa-f]/), Lp = Rn(/[!-/:-@[-`{-~]/);
5571
5571
  function be(e) {
5572
5572
  return e !== null && e < -2;
5573
5573
  }
5574
5574
  function _t(e) {
5575
5575
  return e !== null && (e < 0 || e === 32);
5576
5576
  }
5577
- function we(e) {
5577
+ function Le(e) {
5578
5578
  return e === -2 || e === -1 || e === 32;
5579
5579
  }
5580
- function wn(e) {
5580
+ function Rn(e) {
5581
5581
  return t;
5582
5582
  function t(n) {
5583
5583
  return n !== null && e.test(String.fromCharCode(n));
5584
5584
  }
5585
5585
  }
5586
- const wp = {
5586
+ const Rp = {
5587
5587
  name: "autolink",
5588
- tokenize: Rp
5588
+ tokenize: wp
5589
5589
  };
5590
- function Rp(e, t, n) {
5590
+ function wp(e, t, n) {
5591
5591
  let r = 0;
5592
5592
  return a;
5593
5593
  function a(h) {
5594
5594
  return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
5595
5595
  }
5596
5596
  function i(h) {
5597
- return Rt(h) ? (e.consume(h), u) : c(h);
5597
+ return wt(h) ? (e.consume(h), u) : c(h);
5598
5598
  }
5599
5599
  function u(h) {
5600
5600
  return h === 43 || h === 45 || h === 46 || xt(h) ? (r = 1, s(h)) : c(h);
@@ -5629,7 +5629,7 @@ const Jr = {
5629
5629
  function Dp(e, t, n) {
5630
5630
  return r;
5631
5631
  function r(i) {
5632
- return we(i) ? Fe(e, a, "linePrefix")(i) : a(i);
5632
+ return Le(i) ? Fe(e, a, "linePrefix")(i) : a(i);
5633
5633
  }
5634
5634
  function a(i) {
5635
5635
  return i === null || be(i) ? t(i) : n(i);
@@ -5656,14 +5656,14 @@ function Pp(e, t, n) {
5656
5656
  return n(u);
5657
5657
  }
5658
5658
  function i(u) {
5659
- return we(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
5659
+ return Le(u) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(u), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(u));
5660
5660
  }
5661
5661
  }
5662
5662
  function Mp(e, t, n) {
5663
5663
  const r = this;
5664
5664
  return a;
5665
5665
  function a(u) {
5666
- return we(u) ? Fe(
5666
+ return Le(u) ? Fe(
5667
5667
  e,
5668
5668
  i,
5669
5669
  "linePrefix",
@@ -5736,7 +5736,7 @@ const fo = {
5736
5736
  };
5737
5737
  function Up(e, t, n) {
5738
5738
  const r = this, a = {
5739
- tokenize: R,
5739
+ tokenize: w,
5740
5740
  partial: !0
5741
5741
  };
5742
5742
  let i = 0, u = 0, s;
@@ -5749,7 +5749,7 @@ function Up(e, t, n) {
5749
5749
  return i = N && N[1].type === "linePrefix" ? N[2].sliceSerialize(N[1], !0).length : 0, s = _, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(_);
5750
5750
  }
5751
5751
  function d(_) {
5752
- return _ === s ? (u++, e.consume(_), d) : u < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), we(_) ? Fe(e, f, "whitespace")(_) : f(_));
5752
+ return _ === s ? (u++, e.consume(_), d) : u < 3 ? n(_) : (e.exit("codeFencedFenceSequence"), Le(_) ? Fe(e, f, "whitespace")(_) : f(_));
5753
5753
  }
5754
5754
  function f(_) {
5755
5755
  return _ === null || be(_) ? (e.exit("codeFencedFence"), r.interrupt ? t(_) : e.check(fo, m, W)(_)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
@@ -5757,7 +5757,7 @@ function Up(e, t, n) {
5757
5757
  }), p(_));
5758
5758
  }
5759
5759
  function p(_) {
5760
- return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(_)) : we(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Fe(e, h, "whitespace")(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), p);
5760
+ return _ === null || be(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(_)) : Le(_) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Fe(e, h, "whitespace")(_)) : _ === 96 && _ === s ? n(_) : (e.consume(_), p);
5761
5761
  }
5762
5762
  function h(_) {
5763
5763
  return _ === null || be(_) ? f(_) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -5774,7 +5774,7 @@ function Up(e, t, n) {
5774
5774
  return e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), E;
5775
5775
  }
5776
5776
  function E(_) {
5777
- return i > 0 && we(_) ? Fe(
5777
+ return i > 0 && Le(_) ? Fe(
5778
5778
  e,
5779
5779
  P,
5780
5780
  "linePrefix",
@@ -5790,28 +5790,28 @@ function Up(e, t, n) {
5790
5790
  function W(_) {
5791
5791
  return e.exit("codeFenced"), t(_);
5792
5792
  }
5793
- function R(_, N, V) {
5793
+ function w(_, N, V) {
5794
5794
  let H = 0;
5795
5795
  return te;
5796
- function te(w) {
5797
- return _.enter("lineEnding"), _.consume(w), _.exit("lineEnding"), Y;
5796
+ function te(R) {
5797
+ return _.enter("lineEnding"), _.consume(R), _.exit("lineEnding"), Y;
5798
5798
  }
5799
- function Y(w) {
5800
- return _.enter("codeFencedFence"), we(w) ? Fe(
5799
+ function Y(R) {
5800
+ return _.enter("codeFencedFence"), Le(R) ? Fe(
5801
5801
  _,
5802
5802
  $,
5803
5803
  "linePrefix",
5804
5804
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5805
- )(w) : $(w);
5805
+ )(R) : $(R);
5806
5806
  }
5807
- function $(w) {
5808
- return w === s ? (_.enter("codeFencedFenceSequence"), L(w)) : V(w);
5807
+ function $(R) {
5808
+ return R === s ? (_.enter("codeFencedFenceSequence"), L(R)) : V(R);
5809
5809
  }
5810
- function L(w) {
5811
- return w === s ? (H++, _.consume(w), L) : H >= u ? (_.exit("codeFencedFenceSequence"), we(w) ? Fe(_, I, "whitespace")(w) : I(w)) : V(w);
5810
+ function L(R) {
5811
+ return R === s ? (H++, _.consume(R), L) : H >= u ? (_.exit("codeFencedFenceSequence"), Le(R) ? Fe(_, I, "whitespace")(R) : I(R)) : V(R);
5812
5812
  }
5813
- function I(w) {
5814
- return w === null || be(w) ? (_.exit("codeFencedFence"), N(w)) : V(w);
5813
+ function I(R) {
5814
+ return R === null || be(R) ? (_.exit("codeFencedFence"), N(R)) : V(R);
5815
5815
  }
5816
5816
  }
5817
5817
  }
@@ -6158,7 +6158,7 @@ function s1(e, t, n) {
6158
6158
  return e.attempt(o1, f, f)(h);
6159
6159
  }
6160
6160
  function f(h) {
6161
- return we(h) ? Fe(e, p, "whitespace")(h) : p(h);
6161
+ return Le(h) ? Fe(e, p, "whitespace")(h) : p(h);
6162
6162
  }
6163
6163
  function p(h) {
6164
6164
  return h === null || be(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
@@ -6180,7 +6180,7 @@ function l1(e, t, n) {
6180
6180
  )(s);
6181
6181
  }
6182
6182
  function i(s) {
6183
- return we(s) ? Fe(e, u, "whitespace")(s) : u(s);
6183
+ return Le(s) ? Fe(e, u, "whitespace")(s) : u(s);
6184
6184
  }
6185
6185
  function u(s) {
6186
6186
  return s === null || be(s) ? t(s) : n(s);
@@ -6235,7 +6235,7 @@ function p1(e, t, n) {
6235
6235
  return d === 35 && r++ < 6 ? (e.consume(d), u) : d === null || _t(d) ? (e.exit("atxHeadingSequence"), s(d)) : n(d);
6236
6236
  }
6237
6237
  function s(d) {
6238
- return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || be(d) ? (e.exit("atxHeading"), t(d)) : we(d) ? Fe(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
6238
+ return d === 35 ? (e.enter("atxHeadingSequence"), l(d)) : d === null || be(d) ? (e.exit("atxHeading"), t(d)) : Le(d) ? Fe(e, s, "whitespace")(d) : (e.enter("atxHeadingText"), c(d));
6239
6239
  }
6240
6240
  function l(d) {
6241
6241
  return d === 35 ? (e.consume(d), l) : (e.exit("atxHeadingSequence"), s(d));
@@ -6336,25 +6336,25 @@ function y1(e, t, n) {
6336
6336
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), f;
6337
6337
  }
6338
6338
  function f(x) {
6339
- return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t : b) : Rt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
6339
+ return x === 33 ? (e.consume(x), p) : x === 47 ? (e.consume(x), i = !0, m) : x === 63 ? (e.consume(x), a = 3, r.interrupt ? t : b) : wt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
6340
6340
  }
6341
6341
  function p(x) {
6342
- return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0, g) : Rt(x) ? (e.consume(x), a = 4, r.interrupt ? t : b) : n(x);
6342
+ return x === 45 ? (e.consume(x), a = 2, h) : x === 91 ? (e.consume(x), a = 5, s = 0, g) : wt(x) ? (e.consume(x), a = 4, r.interrupt ? t : b) : n(x);
6343
6343
  }
6344
6344
  function h(x) {
6345
6345
  return x === 45 ? (e.consume(x), r.interrupt ? t : b) : n(x);
6346
6346
  }
6347
6347
  function g(x) {
6348
- const se = "CDATA[";
6349
- return x === se.charCodeAt(s++) ? (e.consume(x), s === se.length ? r.interrupt ? t : $ : g) : n(x);
6348
+ const oe = "CDATA[";
6349
+ return x === oe.charCodeAt(s++) ? (e.consume(x), s === oe.length ? r.interrupt ? t : $ : g) : n(x);
6350
6350
  }
6351
6351
  function m(x) {
6352
- return Rt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
6352
+ return wt(x) ? (e.consume(x), u = String.fromCharCode(x), y) : n(x);
6353
6353
  }
6354
6354
  function y(x) {
6355
6355
  if (x === null || x === 47 || x === 62 || _t(x)) {
6356
- const se = x === 47, ye = u.toLowerCase();
6357
- return !se && !i && bo.includes(ye) ? (a = 1, r.interrupt ? t(x) : $(x)) : m1.includes(u.toLowerCase()) ? (a = 6, se ? (e.consume(x), E) : r.interrupt ? t(x) : $(x)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : i ? P(x) : M(x));
6356
+ const oe = x === 47, ye = u.toLowerCase();
6357
+ return !oe && !i && bo.includes(ye) ? (a = 1, r.interrupt ? t(x) : $(x)) : m1.includes(u.toLowerCase()) ? (a = 6, oe ? (e.consume(x), E) : r.interrupt ? t(x) : $(x)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(x) : i ? P(x) : M(x));
6358
6358
  }
6359
6359
  return x === 45 || xt(x) ? (e.consume(x), u += String.fromCharCode(x), y) : n(x);
6360
6360
  }
@@ -6362,34 +6362,34 @@ function y1(e, t, n) {
6362
6362
  return x === 62 ? (e.consume(x), r.interrupt ? t : $) : n(x);
6363
6363
  }
6364
6364
  function P(x) {
6365
- return we(x) ? (e.consume(x), P) : te(x);
6365
+ return Le(x) ? (e.consume(x), P) : te(x);
6366
6366
  }
6367
6367
  function M(x) {
6368
- return x === 47 ? (e.consume(x), te) : x === 58 || x === 95 || Rt(x) ? (e.consume(x), W) : we(x) ? (e.consume(x), M) : te(x);
6368
+ return x === 47 ? (e.consume(x), te) : x === 58 || x === 95 || wt(x) ? (e.consume(x), W) : Le(x) ? (e.consume(x), M) : te(x);
6369
6369
  }
6370
6370
  function W(x) {
6371
- return x === 45 || x === 46 || x === 58 || x === 95 || xt(x) ? (e.consume(x), W) : R(x);
6371
+ return x === 45 || x === 46 || x === 58 || x === 95 || xt(x) ? (e.consume(x), W) : w(x);
6372
6372
  }
6373
- function R(x) {
6374
- return x === 61 ? (e.consume(x), _) : we(x) ? (e.consume(x), R) : M(x);
6373
+ function w(x) {
6374
+ return x === 61 ? (e.consume(x), _) : Le(x) ? (e.consume(x), w) : M(x);
6375
6375
  }
6376
6376
  function _(x) {
6377
- return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) : we(x) ? (e.consume(x), _) : V(x);
6377
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), l = x, N) : Le(x) ? (e.consume(x), _) : V(x);
6378
6378
  }
6379
6379
  function N(x) {
6380
6380
  return x === l ? (e.consume(x), l = null, H) : x === null || be(x) ? n(x) : (e.consume(x), N);
6381
6381
  }
6382
6382
  function V(x) {
6383
- return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || _t(x) ? R(x) : (e.consume(x), V);
6383
+ return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || _t(x) ? w(x) : (e.consume(x), V);
6384
6384
  }
6385
6385
  function H(x) {
6386
- return x === 47 || x === 62 || we(x) ? M(x) : n(x);
6386
+ return x === 47 || x === 62 || Le(x) ? M(x) : n(x);
6387
6387
  }
6388
6388
  function te(x) {
6389
6389
  return x === 62 ? (e.consume(x), Y) : n(x);
6390
6390
  }
6391
6391
  function Y(x) {
6392
- return x === null || be(x) ? $(x) : we(x) ? (e.consume(x), Y) : n(x);
6392
+ return x === null || be(x) ? $(x) : Le(x) ? (e.consume(x), Y) : n(x);
6393
6393
  }
6394
6394
  function $(x) {
6395
6395
  return x === 45 && a === 2 ? (e.consume(x), B) : x === 60 && a === 1 ? (e.consume(x), G) : x === 62 && a === 4 ? (e.consume(x), ne) : x === 63 && a === 3 ? (e.consume(x), b) : x === 93 && a === 5 ? (e.consume(x), q) : be(x) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
@@ -6406,9 +6406,9 @@ function y1(e, t, n) {
6406
6406
  )(x);
6407
6407
  }
6408
6408
  function I(x) {
6409
- return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), w;
6409
+ return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), R;
6410
6410
  }
6411
- function w(x) {
6411
+ function R(x) {
6412
6412
  return x === null || be(x) ? L(x) : (e.enter("htmlFlowData"), $(x));
6413
6413
  }
6414
6414
  function B(x) {
@@ -6419,10 +6419,10 @@ function y1(e, t, n) {
6419
6419
  }
6420
6420
  function j(x) {
6421
6421
  if (x === 62) {
6422
- const se = u.toLowerCase();
6423
- return bo.includes(se) ? (e.consume(x), ne) : $(x);
6422
+ const oe = u.toLowerCase();
6423
+ return bo.includes(oe) ? (e.consume(x), ne) : $(x);
6424
6424
  }
6425
- return Rt(x) && u.length < 8 ? (e.consume(x), u += String.fromCharCode(x), j) : $(x);
6425
+ return wt(x) && u.length < 8 ? (e.consume(x), u += String.fromCharCode(x), j) : $(x);
6426
6426
  }
6427
6427
  function q(x) {
6428
6428
  return x === 93 ? (e.consume(x), b) : $(x);
@@ -6465,10 +6465,10 @@ function S1(e, t, n) {
6465
6465
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(b), l;
6466
6466
  }
6467
6467
  function l(b) {
6468
- return b === 33 ? (e.consume(b), c) : b === 47 ? (e.consume(b), R) : b === 63 ? (e.consume(b), M) : Rt(b) ? (e.consume(b), V) : n(b);
6468
+ return b === 33 ? (e.consume(b), c) : b === 47 ? (e.consume(b), w) : b === 63 ? (e.consume(b), M) : wt(b) ? (e.consume(b), V) : n(b);
6469
6469
  }
6470
6470
  function c(b) {
6471
- return b === 45 ? (e.consume(b), d) : b === 91 ? (e.consume(b), i = 0, g) : Rt(b) ? (e.consume(b), P) : n(b);
6471
+ return b === 45 ? (e.consume(b), d) : b === 91 ? (e.consume(b), i = 0, g) : wt(b) ? (e.consume(b), P) : n(b);
6472
6472
  }
6473
6473
  function d(b) {
6474
6474
  return b === 45 ? (e.consume(b), h) : n(b);
@@ -6504,37 +6504,37 @@ function S1(e, t, n) {
6504
6504
  function W(b) {
6505
6505
  return b === 62 ? B(b) : M(b);
6506
6506
  }
6507
- function R(b) {
6508
- return Rt(b) ? (e.consume(b), _) : n(b);
6507
+ function w(b) {
6508
+ return wt(b) ? (e.consume(b), _) : n(b);
6509
6509
  }
6510
6510
  function _(b) {
6511
6511
  return b === 45 || xt(b) ? (e.consume(b), _) : N(b);
6512
6512
  }
6513
6513
  function N(b) {
6514
- return be(b) ? (u = N, G(b)) : we(b) ? (e.consume(b), N) : B(b);
6514
+ return be(b) ? (u = N, G(b)) : Le(b) ? (e.consume(b), N) : B(b);
6515
6515
  }
6516
6516
  function V(b) {
6517
6517
  return b === 45 || xt(b) ? (e.consume(b), V) : b === 47 || b === 62 || _t(b) ? H(b) : n(b);
6518
6518
  }
6519
6519
  function H(b) {
6520
- return b === 47 ? (e.consume(b), B) : b === 58 || b === 95 || Rt(b) ? (e.consume(b), te) : be(b) ? (u = H, G(b)) : we(b) ? (e.consume(b), H) : B(b);
6520
+ return b === 47 ? (e.consume(b), B) : b === 58 || b === 95 || wt(b) ? (e.consume(b), te) : be(b) ? (u = H, G(b)) : Le(b) ? (e.consume(b), H) : B(b);
6521
6521
  }
6522
6522
  function te(b) {
6523
6523
  return b === 45 || b === 46 || b === 58 || b === 95 || xt(b) ? (e.consume(b), te) : Y(b);
6524
6524
  }
6525
6525
  function Y(b) {
6526
- return b === 61 ? (e.consume(b), $) : be(b) ? (u = Y, G(b)) : we(b) ? (e.consume(b), Y) : H(b);
6526
+ return b === 61 ? (e.consume(b), $) : be(b) ? (u = Y, G(b)) : Le(b) ? (e.consume(b), Y) : H(b);
6527
6527
  }
6528
6528
  function $(b) {
6529
- return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), a = b, L) : be(b) ? (u = $, G(b)) : we(b) ? (e.consume(b), $) : (e.consume(b), I);
6529
+ return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), a = b, L) : be(b) ? (u = $, G(b)) : Le(b) ? (e.consume(b), $) : (e.consume(b), I);
6530
6530
  }
6531
6531
  function L(b) {
6532
- return b === a ? (e.consume(b), a = void 0, w) : b === null ? n(b) : be(b) ? (u = L, G(b)) : (e.consume(b), L);
6532
+ return b === a ? (e.consume(b), a = void 0, R) : b === null ? n(b) : be(b) ? (u = L, G(b)) : (e.consume(b), L);
6533
6533
  }
6534
6534
  function I(b) {
6535
6535
  return b === null || b === 34 || b === 39 || b === 60 || b === 61 || b === 96 ? n(b) : b === 47 || b === 62 || _t(b) ? H(b) : (e.consume(b), I);
6536
6536
  }
6537
- function w(b) {
6537
+ function R(b) {
6538
6538
  return b === 47 || b === 62 || _t(b) ? H(b) : n(b);
6539
6539
  }
6540
6540
  function B(b) {
@@ -6544,7 +6544,7 @@ function S1(e, t, n) {
6544
6544
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), j;
6545
6545
  }
6546
6546
  function j(b) {
6547
- return we(b) ? Fe(
6547
+ return Le(b) ? Fe(
6548
6548
  e,
6549
6549
  q,
6550
6550
  "linePrefix",
@@ -6563,9 +6563,9 @@ const Pi = {
6563
6563
  }, x1 = {
6564
6564
  tokenize: L1
6565
6565
  }, v1 = {
6566
- tokenize: w1
6567
- }, O1 = {
6568
6566
  tokenize: R1
6567
+ }, O1 = {
6568
+ tokenize: w1
6569
6569
  };
6570
6570
  function I1(e) {
6571
6571
  let t = -1;
@@ -6606,7 +6606,7 @@ function N1(e, t) {
6606
6606
  ["enter", c, t]
6607
6607
  ], s = Et(s, e.slice(i + 1, i + r + 3)), s = Et(s, [["enter", d, t]]), s = Et(
6608
6608
  s,
6609
- Ri(
6609
+ wi(
6610
6610
  t.parser.constructs.insideSpan.null,
6611
6611
  e.slice(i + r + 4, u - 3),
6612
6612
  t
@@ -6706,7 +6706,7 @@ function L1(e, t, n) {
6706
6706
  return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
6707
6707
  }
6708
6708
  }
6709
- function w1(e, t, n) {
6709
+ function R1(e, t, n) {
6710
6710
  const r = this;
6711
6711
  return a;
6712
6712
  function a(s) {
@@ -6731,7 +6731,7 @@ function w1(e, t, n) {
6731
6731
  return n(s);
6732
6732
  }
6733
6733
  }
6734
- function R1(e, t, n) {
6734
+ function w1(e, t, n) {
6735
6735
  return r;
6736
6736
  function r(i) {
6737
6737
  return e.enter("reference"), e.enter("referenceMarker"), e.consume(i), e.exit("referenceMarker"), a;
@@ -6800,7 +6800,7 @@ function H1(e, t, n) {
6800
6800
  return c === a ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || be(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
6801
6801
  }
6802
6802
  function l(c) {
6803
- return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), we(c) ? Fe(e, s, "whitespace")(c) : s(c));
6803
+ return c === a ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), Le(c) ? Fe(e, s, "whitespace")(c) : s(c));
6804
6804
  }
6805
6805
  }
6806
6806
  const ot = {
@@ -6852,7 +6852,7 @@ function q1(e, t, n) {
6852
6852
  return r.containerState.initialBlankLine = !0, i++, p(h);
6853
6853
  }
6854
6854
  function f(h) {
6855
- return we(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
6855
+ return Le(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
6856
6856
  }
6857
6857
  function p(h) {
6858
6858
  return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
@@ -6870,7 +6870,7 @@ function z1(e, t, n) {
6870
6870
  )(s);
6871
6871
  }
6872
6872
  function i(s) {
6873
- return r.containerState.furtherBlankLines || !we(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(j1, t, u)(s));
6873
+ return r.containerState.furtherBlankLines || !Le(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, u(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(j1, t, u)(s));
6874
6874
  }
6875
6875
  function u(s) {
6876
6876
  return r.containerState._closeFlow = !0, r.interrupt = void 0, Fe(
@@ -6907,7 +6907,7 @@ function V1(e, t, n) {
6907
6907
  );
6908
6908
  function a(i) {
6909
6909
  const u = r.events[r.events.length - 1];
6910
- return !we(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
6910
+ return !Le(i) && u && u[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
6911
6911
  }
6912
6912
  }
6913
6913
  const Eo = {
@@ -6950,7 +6950,7 @@ function G1(e, t, n) {
6950
6950
  return e.enter("setextHeadingLineSequence"), s(c);
6951
6951
  }
6952
6952
  function s(c) {
6953
- return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), we(c) ? Fe(e, l, "lineSuffix")(c) : l(c));
6953
+ return c === a ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), Le(c) ? Fe(e, l, "lineSuffix")(c) : l(c));
6954
6954
  }
6955
6955
  function l(c) {
6956
6956
  return c === null || be(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
@@ -7106,7 +7106,7 @@ function tm(e, t, n) {
7106
7106
  consume: P,
7107
7107
  enter: M,
7108
7108
  exit: W,
7109
- attempt: N(R),
7109
+ attempt: N(w),
7110
7110
  check: N(_),
7111
7111
  interrupt: N(_, {
7112
7112
  interrupt: !0
@@ -7126,7 +7126,7 @@ function tm(e, t, n) {
7126
7126
  let d = t.tokenize.call(c, l);
7127
7127
  return t.resolveAll && i.push(t), c;
7128
7128
  function f(Y) {
7129
- return u = Et(u, Y), y(), u[u.length - 1] !== null ? [] : (V(t, 0), c.events = Ri(i, c.events, c), c.events);
7129
+ return u = Et(u, Y), y(), u[u.length - 1] !== null ? [] : (V(t, 0), c.events = wi(i, c.events, c), c.events);
7130
7130
  }
7131
7131
  function p(Y, $) {
7132
7132
  return rm(h(Y), $);
@@ -7135,13 +7135,13 @@ function tm(e, t, n) {
7135
7135
  return nm(u, Y);
7136
7136
  }
7137
7137
  function g() {
7138
- const { line: Y, column: $, offset: L, _index: I, _bufferIndex: w } = r;
7138
+ const { line: Y, column: $, offset: L, _index: I, _bufferIndex: R } = r;
7139
7139
  return {
7140
7140
  line: Y,
7141
7141
  column: $,
7142
7142
  offset: L,
7143
7143
  _index: I,
7144
- _bufferIndex: w
7144
+ _bufferIndex: R
7145
7145
  };
7146
7146
  }
7147
7147
  function m(Y) {
@@ -7162,7 +7162,7 @@ function tm(e, t, n) {
7162
7162
  d = d(Y);
7163
7163
  }
7164
7164
  function P(Y) {
7165
- wi(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, te()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = Y;
7165
+ Ri(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, te()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = Y;
7166
7166
  }
7167
7167
  function M(Y, $) {
7168
7168
  const L = $ || {};
@@ -7172,7 +7172,7 @@ function tm(e, t, n) {
7172
7172
  const $ = s.pop();
7173
7173
  return $.end = g(), c.events.push(["exit", $, c]), $;
7174
7174
  }
7175
- function R(Y, $) {
7175
+ function w(Y, $) {
7176
7176
  V(Y, $.from);
7177
7177
  }
7178
7178
  function _(Y, $) {
@@ -7180,7 +7180,7 @@ function tm(e, t, n) {
7180
7180
  }
7181
7181
  function N(Y, $) {
7182
7182
  return L;
7183
- function L(I, w, B) {
7183
+ function L(I, R, B) {
7184
7184
  let G, j, q, b;
7185
7185
  return Array.isArray(I) ? le(I) : "tokenize" in I ? (
7186
7186
  // @ts-expect-error Looks like a construct.
@@ -7189,13 +7189,13 @@ function tm(e, t, n) {
7189
7189
  function ne(me) {
7190
7190
  return Ae;
7191
7191
  function Ae(xe) {
7192
- const je = xe !== null && me[xe], ve = xe !== null && me.null, Je = [
7192
+ const je = xe !== null && me[xe], ve = xe !== null && me.null, Ze = [
7193
7193
  // To do: add more extension tests.
7194
7194
  /* c8 ignore next 2 */
7195
7195
  ...Array.isArray(je) ? je : je ? [je] : [],
7196
7196
  ...Array.isArray(ve) ? ve : ve ? [ve] : []
7197
7197
  ];
7198
- return le(Je)(xe);
7198
+ return le(Ze)(xe);
7199
7199
  }
7200
7200
  }
7201
7201
  function le(me) {
@@ -7210,13 +7210,13 @@ function tm(e, t, n) {
7210
7210
  // This allows a “live binding”, which is needed for `interrupt`.
7211
7211
  $ ? Object.assign(Object.create(c), $) : c,
7212
7212
  l,
7213
- se,
7213
+ oe,
7214
7214
  ye
7215
7215
  )(xe);
7216
7216
  }
7217
7217
  }
7218
- function se(me) {
7219
- return Y(q, b), w;
7218
+ function oe(me) {
7219
+ return Y(q, b), R;
7220
7220
  }
7221
7221
  function ye(me) {
7222
7222
  return b.restore(), ++j < G.length ? x(G[j]) : B;
@@ -7232,13 +7232,13 @@ function tm(e, t, n) {
7232
7232
  ), Y.resolveTo && (c.events = Y.resolveTo(c.events, c));
7233
7233
  }
7234
7234
  function H() {
7235
- const Y = g(), $ = c.previous, L = c.currentConstruct, I = c.events.length, w = Array.from(s);
7235
+ const Y = g(), $ = c.previous, L = c.currentConstruct, I = c.events.length, R = Array.from(s);
7236
7236
  return {
7237
7237
  restore: B,
7238
7238
  from: I
7239
7239
  };
7240
7240
  function B() {
7241
- r = Y, c.previous = $, c.currentConstruct = L, c.events.length = I, s = w, te();
7241
+ r = Y, c.previous = $, c.currentConstruct = L, c.events.length = I, s = R, te();
7242
7242
  }
7243
7243
  }
7244
7244
  function te() {
@@ -7340,7 +7340,7 @@ const am = {
7340
7340
  33: D1,
7341
7341
  38: Al,
7342
7342
  42: ci,
7343
- 60: [wp, A1],
7343
+ 60: [Rp, A1],
7344
7344
  91: M1,
7345
7345
  92: [c1, Cl],
7346
7346
  93: Pi,
@@ -7481,7 +7481,7 @@ function _m(e) {
7481
7481
  autolinkProtocol: Y,
7482
7482
  autolinkEmail: Y,
7483
7483
  atxHeading: s(Jt),
7484
- blockQuote: s(Je),
7484
+ blockQuote: s(Ze),
7485
7485
  characterEscape: Y,
7486
7486
  characterReference: Y,
7487
7487
  codeFenced: s(ft),
@@ -7542,11 +7542,11 @@ function _m(e) {
7542
7542
  definition: d(),
7543
7543
  definitionDestinationString: _,
7544
7544
  definitionLabelString: W,
7545
- definitionTitleString: R,
7545
+ definitionTitleString: w,
7546
7546
  emphasis: d(),
7547
7547
  hardBreakEscape: d(I),
7548
7548
  hardBreakTrailing: d(I),
7549
- htmlFlow: d(w),
7549
+ htmlFlow: d(R),
7550
7550
  htmlFlowData: $,
7551
7551
  htmlText: d(B),
7552
7552
  htmlTextData: $,
@@ -7562,7 +7562,7 @@ function _m(e) {
7562
7562
  referenceString: me,
7563
7563
  resourceDestinationString: le,
7564
7564
  resourceTitleString: x,
7565
- resource: se,
7565
+ resource: oe,
7566
7566
  setextHeading: d(te),
7567
7567
  setextHeadingLineSequence: H,
7568
7568
  setextHeadingText: V,
@@ -7570,7 +7570,7 @@ function _m(e) {
7570
7570
  thematicBreak: d()
7571
7571
  }
7572
7572
  };
7573
- wl(t, (e || {}).mdastExtensions || []);
7573
+ Rl(t, (e || {}).mdastExtensions || []);
7574
7574
  const n = {};
7575
7575
  return r;
7576
7576
  function r(F) {
@@ -7595,12 +7595,12 @@ function _m(e) {
7595
7595
  if (F[pe][0] === "enter")
7596
7596
  ue.push(pe);
7597
7597
  else {
7598
- const Re = ue.pop();
7599
- pe = a(F, Re, pe);
7598
+ const we = ue.pop();
7599
+ pe = a(F, we, pe);
7600
7600
  }
7601
7601
  for (pe = -1; ++pe < F.length; ) {
7602
- const Re = t[F[pe][0]];
7603
- Ll.call(Re, F[pe][1].type) && Re[F[pe][1].type].call(
7602
+ const we = t[F[pe][0]];
7603
+ Ll.call(we, F[pe][1].type) && we[F[pe][1].type].call(
7604
7604
  Object.assign(
7605
7605
  {
7606
7606
  sliceSerialize: F[pe][2].sliceSerialize
@@ -7611,8 +7611,8 @@ function _m(e) {
7611
7611
  );
7612
7612
  }
7613
7613
  if (re.tokenStack.length > 0) {
7614
- const Re = re.tokenStack[re.tokenStack.length - 1];
7615
- (Re[1] || yo).call(re, void 0, Re[0]);
7614
+ const we = re.tokenStack[re.tokenStack.length - 1];
7615
+ (we[1] || yo).call(re, void 0, we[0]);
7616
7616
  }
7617
7617
  for (X.position = {
7618
7618
  start: Wt(
@@ -7634,23 +7634,23 @@ function _m(e) {
7634
7634
  return X;
7635
7635
  }
7636
7636
  function a(F, X, re) {
7637
- let ue = X - 1, pe = -1, Re = !1, Xe, ke, et, it;
7637
+ let ue = X - 1, pe = -1, we = !1, Xe, Ne, Je, it;
7638
7638
  for (; ++ue <= re; ) {
7639
7639
  const Oe = F[ue];
7640
- if (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered" || Oe[1].type === "blockQuote" ? (Oe[0] === "enter" ? pe++ : pe--, it = void 0) : Oe[1].type === "lineEndingBlank" ? Oe[0] === "enter" && (Xe && !it && !pe && !et && (et = ue), it = void 0) : Oe[1].type === "linePrefix" || Oe[1].type === "listItemValue" || Oe[1].type === "listItemMarker" || Oe[1].type === "listItemPrefix" || Oe[1].type === "listItemPrefixWhitespace" || (it = void 0), !pe && Oe[0] === "enter" && Oe[1].type === "listItemPrefix" || pe === -1 && Oe[0] === "exit" && (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered")) {
7640
+ if (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered" || Oe[1].type === "blockQuote" ? (Oe[0] === "enter" ? pe++ : pe--, it = void 0) : Oe[1].type === "lineEndingBlank" ? Oe[0] === "enter" && (Xe && !it && !pe && !Je && (Je = ue), it = void 0) : Oe[1].type === "linePrefix" || Oe[1].type === "listItemValue" || Oe[1].type === "listItemMarker" || Oe[1].type === "listItemPrefix" || Oe[1].type === "listItemPrefixWhitespace" || (it = void 0), !pe && Oe[0] === "enter" && Oe[1].type === "listItemPrefix" || pe === -1 && Oe[0] === "exit" && (Oe[1].type === "listUnordered" || Oe[1].type === "listOrdered")) {
7641
7641
  if (Xe) {
7642
7642
  let rt = ue;
7643
- for (ke = void 0; rt--; ) {
7643
+ for (Ne = void 0; rt--; ) {
7644
7644
  const ze = F[rt];
7645
7645
  if (ze[1].type === "lineEnding" || ze[1].type === "lineEndingBlank") {
7646
7646
  if (ze[0] === "exit") continue;
7647
- ke && (F[ke][1].type = "lineEndingBlank", Re = !0), ze[1].type = "lineEnding", ke = rt;
7647
+ Ne && (F[Ne][1].type = "lineEndingBlank", we = !0), ze[1].type = "lineEnding", Ne = rt;
7648
7648
  } else if (!(ze[1].type === "linePrefix" || ze[1].type === "blockQuotePrefix" || ze[1].type === "blockQuotePrefixWhitespace" || ze[1].type === "blockQuoteMarker" || ze[1].type === "listItemIndent")) break;
7649
7649
  }
7650
- et && (!ke || et < ke) && (Xe._spread = !0), Xe.end = Object.assign(
7650
+ Je && (!Ne || Je < Ne) && (Xe._spread = !0), Xe.end = Object.assign(
7651
7651
  {},
7652
- ke ? F[ke][1].start : Oe[1].end
7653
- ), F.splice(ke || ue, 0, ["exit", Xe, Oe[2]]), ue++, re++;
7652
+ Ne ? F[Ne][1].start : Oe[1].end
7653
+ ), F.splice(Ne || ue, 0, ["exit", Xe, Oe[2]]), ue++, re++;
7654
7654
  }
7655
7655
  Oe[1].type === "listItemPrefix" && (Xe = {
7656
7656
  type: "listItem",
@@ -7658,10 +7658,10 @@ function _m(e) {
7658
7658
  start: Object.assign({}, Oe[1].start),
7659
7659
  // @ts-expect-error: we’ll add `end` in a second.
7660
7660
  end: void 0
7661
- }, F.splice(ue, 0, ["enter", Xe, Oe[2]]), ue++, re++, et = void 0, it = !0);
7661
+ }, F.splice(ue, 0, ["enter", Xe, Oe[2]]), ue++, re++, Je = void 0, it = !0);
7662
7662
  }
7663
7663
  }
7664
- return F[X][1]._spread = Re, re;
7664
+ return F[X][1]._spread = we, re;
7665
7665
  }
7666
7666
  function i(F, X) {
7667
7667
  n[F] = X;
@@ -7741,7 +7741,7 @@ function _m(e) {
7741
7741
  this.sliceSerialize(F)
7742
7742
  ).toLowerCase();
7743
7743
  }
7744
- function R() {
7744
+ function w() {
7745
7745
  const F = this.resume(), X = this.stack[this.stack.length - 1];
7746
7746
  X.title = F;
7747
7747
  }
@@ -7789,7 +7789,7 @@ function _m(e) {
7789
7789
  function I() {
7790
7790
  i("atHardBreak", !0);
7791
7791
  }
7792
- function w() {
7792
+ function R() {
7793
7793
  const F = this.resume(), X = this.stack[this.stack.length - 1];
7794
7794
  X.value = F;
7795
7795
  }
@@ -7839,7 +7839,7 @@ function _m(e) {
7839
7839
  const F = this.resume(), X = this.stack[this.stack.length - 1];
7840
7840
  X.title = F;
7841
7841
  }
7842
- function se() {
7842
+ function oe() {
7843
7843
  i("inReference");
7844
7844
  }
7845
7845
  function ye() {
@@ -7874,7 +7874,7 @@ function _m(e) {
7874
7874
  const X = this.stack[this.stack.length - 1];
7875
7875
  X.url = "mailto:" + this.sliceSerialize(F);
7876
7876
  }
7877
- function Je() {
7877
+ function Ze() {
7878
7878
  return {
7879
7879
  type: "blockquote",
7880
7880
  children: []
@@ -7991,11 +7991,11 @@ function Wt(e) {
7991
7991
  offset: e.offset
7992
7992
  };
7993
7993
  }
7994
- function wl(e, t) {
7994
+ function Rl(e, t) {
7995
7995
  let n = -1;
7996
7996
  for (; ++n < t.length; ) {
7997
7997
  const r = t[n];
7998
- Array.isArray(r) ? wl(e, r) : Cm(e, r);
7998
+ Array.isArray(r) ? Rl(e, r) : Cm(e, r);
7999
7999
  }
8000
8000
  }
8001
8001
  function Cm(e, t) {
@@ -8099,7 +8099,7 @@ function Nm(e) {
8099
8099
  return n !== null && e.test(String.fromCharCode(n));
8100
8100
  }
8101
8101
  }
8102
- function Rn(e) {
8102
+ function wn(e) {
8103
8103
  const t = [];
8104
8104
  let n = -1, r = 0, a = 0;
8105
8105
  for (; ++n < e.length; ) {
@@ -8118,8 +8118,8 @@ function Rn(e) {
8118
8118
  }
8119
8119
  return t.join("") + e.slice(r);
8120
8120
  }
8121
- function Rl(e, t) {
8122
- const n = String(t.identifier).toUpperCase(), r = Rn(n.toLowerCase()), a = e.footnoteOrder.indexOf(n);
8121
+ function wl(e, t) {
8122
+ const n = String(t.identifier).toUpperCase(), r = wn(n.toLowerCase()), a = e.footnoteOrder.indexOf(n);
8123
8123
  let i;
8124
8124
  a === -1 ? (e.footnoteOrder.push(n), e.footnoteCounts[n] = 1, i = e.footnoteOrder.length) : (e.footnoteCounts[n]++, i = a + 1);
8125
8125
  const u = e.footnoteCounts[n], s = {
@@ -8152,7 +8152,7 @@ function km(e, t) {
8152
8152
  identifier: a,
8153
8153
  children: [{ type: "paragraph", children: t.children }],
8154
8154
  position: t.position
8155
- }, Rl(e, {
8155
+ }, wl(e, {
8156
8156
  type: "footnoteReference",
8157
8157
  identifier: a,
8158
8158
  position: t.position
@@ -8167,7 +8167,7 @@ function Lm(e, t) {
8167
8167
  };
8168
8168
  return e.patch(t, n), e.applyData(t, n);
8169
8169
  }
8170
- function wm(e, t) {
8170
+ function Rm(e, t) {
8171
8171
  if (e.dangerous) {
8172
8172
  const n = { type: "raw", value: t.value };
8173
8173
  return e.patch(t, n), e.applyData(t, n);
@@ -8184,17 +8184,17 @@ function Dl(e, t) {
8184
8184
  const u = a[a.length - 1];
8185
8185
  return u && u.type === "text" ? u.value += r : a.push({ type: "text", value: r }), a;
8186
8186
  }
8187
- function Rm(e, t) {
8187
+ function wm(e, t) {
8188
8188
  const n = e.definition(t.identifier);
8189
8189
  if (!n)
8190
8190
  return Dl(e, t);
8191
- const r = { src: Rn(n.url || ""), alt: t.alt };
8191
+ const r = { src: wn(n.url || ""), alt: t.alt };
8192
8192
  n.title !== null && n.title !== void 0 && (r.title = n.title);
8193
8193
  const a = { type: "element", tagName: "img", properties: r, children: [] };
8194
8194
  return e.patch(t, a), e.applyData(t, a);
8195
8195
  }
8196
8196
  function Dm(e, t) {
8197
- const n = { src: Rn(t.url) };
8197
+ const n = { src: wn(t.url) };
8198
8198
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
8199
8199
  const r = { type: "element", tagName: "img", properties: n, children: [] };
8200
8200
  return e.patch(t, r), e.applyData(t, r);
@@ -8214,7 +8214,7 @@ function Mm(e, t) {
8214
8214
  const n = e.definition(t.identifier);
8215
8215
  if (!n)
8216
8216
  return Dl(e, t);
8217
- const r = { href: Rn(n.url || "") };
8217
+ const r = { href: wn(n.url || "") };
8218
8218
  n.title !== null && n.title !== void 0 && (r.title = n.title);
8219
8219
  const a = {
8220
8220
  type: "element",
@@ -8225,7 +8225,7 @@ function Mm(e, t) {
8225
8225
  return e.patch(t, a), e.applyData(t, a);
8226
8226
  }
8227
8227
  function Fm(e, t) {
8228
- const n = { href: Rn(t.url) };
8228
+ const n = { href: wn(t.url) };
8229
8229
  t.title !== null && t.title !== void 0 && (n.title = t.title);
8230
8230
  const r = {
8231
8231
  type: "element",
@@ -8433,11 +8433,11 @@ const Qm = {
8433
8433
  code: vm,
8434
8434
  delete: Om,
8435
8435
  emphasis: Im,
8436
- footnoteReference: Rl,
8436
+ footnoteReference: wl,
8437
8437
  footnote: km,
8438
8438
  heading: Lm,
8439
- html: wm,
8440
- imageReference: Rm,
8439
+ html: Rm,
8440
+ imageReference: wm,
8441
8441
  image: Dm,
8442
8442
  inlineCode: Pm,
8443
8443
  linkReference: Mm,
@@ -8723,7 +8723,7 @@ function h2(e) {
8723
8723
  const r = e.footnoteById[e.footnoteOrder[n]];
8724
8724
  if (!r)
8725
8725
  continue;
8726
- const a = e.all(r), i = String(r.identifier).toUpperCase(), u = Rn(i.toLowerCase());
8726
+ const a = e.all(r), i = String(r.identifier).toUpperCase(), u = wn(i.toLowerCase());
8727
8727
  let s = 0;
8728
8728
  const l = [];
8729
8729
  for (; ++s <= e.footnoteCounts[i]; ) {
@@ -10053,9 +10053,9 @@ function v2() {
10053
10053
  return typeof y == "string" || typeof y == "function" || y === n || y === a || y === r || y === c || y === d || y === h || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === f || y.$$typeof === i || y.$$typeof === u || y.$$typeof === l || y.$$typeof === g || y.getModuleId !== void 0);
10054
10054
  }, Ce.typeOf = m, Ce;
10055
10055
  }
10056
- var wo;
10056
+ var Ro;
10057
10057
  function O2() {
10058
- return wo || (wo = 1, Ba.exports = v2()), Ba.exports;
10058
+ return Ro || (Ro = 1, Ba.exports = v2()), Ba.exports;
10059
10059
  }
10060
10060
  var I2 = O2();
10061
10061
  const N2 = /* @__PURE__ */ Mt(I2);
@@ -10069,7 +10069,7 @@ function k2(e) {
10069
10069
  );
10070
10070
  return typeof t == "string" && t.replace(/[ \t\n\f\r]/g, "") === "";
10071
10071
  }
10072
- function Ro(e) {
10072
+ function wo(e) {
10073
10073
  const t = String(e || "").trim();
10074
10074
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
10075
10075
  }
@@ -10107,19 +10107,19 @@ function L2() {
10107
10107
  function M(L) {
10108
10108
  var I = L.match(t);
10109
10109
  I && (E += I.length);
10110
- var w = L.lastIndexOf(l);
10111
- P = ~w ? L.length - w : P + L.length;
10110
+ var R = L.lastIndexOf(l);
10111
+ P = ~R ? L.length - R : P + L.length;
10112
10112
  }
10113
10113
  function W() {
10114
10114
  var L = { line: E, column: P };
10115
10115
  return function(I) {
10116
- return I.position = new R(L), V(), I;
10116
+ return I.position = new w(L), V(), I;
10117
10117
  };
10118
10118
  }
10119
- function R(L) {
10119
+ function w(L) {
10120
10120
  this.start = L, this.end = { line: E, column: P }, this.source = y.source;
10121
10121
  }
10122
- R.prototype.content = m;
10122
+ w.prototype.content = m;
10123
10123
  function _(L) {
10124
10124
  var I = new Error(
10125
10125
  y.source + ":" + E + ":" + P + ": " + L
@@ -10129,8 +10129,8 @@ function L2() {
10129
10129
  function N(L) {
10130
10130
  var I = L.exec(m);
10131
10131
  if (I) {
10132
- var w = I[0];
10133
- return M(w), m = m.slice(w.length), I;
10132
+ var R = I[0];
10133
+ return M(R), m = m.slice(R.length), I;
10134
10134
  }
10135
10135
  }
10136
10136
  function V() {
@@ -10149,10 +10149,10 @@ function L2() {
10149
10149
  ++I;
10150
10150
  if (I += 2, f === m.charAt(I - 1))
10151
10151
  return _("End of comment missing");
10152
- var w = m.slice(2, I - 2);
10153
- return P += 2, M(w), m = m.slice(I), P += 2, L({
10152
+ var R = m.slice(2, I - 2);
10153
+ return P += 2, M(R), m = m.slice(I), P += 2, L({
10154
10154
  type: p,
10155
- comment: w
10155
+ comment: R
10156
10156
  });
10157
10157
  }
10158
10158
  }
@@ -10160,10 +10160,10 @@ function L2() {
10160
10160
  var L = W(), I = N(r);
10161
10161
  if (I) {
10162
10162
  if (te(), !N(a)) return _("property missing ':'");
10163
- var w = N(i), B = L({
10163
+ var R = N(i), B = L({
10164
10164
  type: h,
10165
10165
  property: g(I[0].replace(e, f)),
10166
- value: w ? g(w[0].replace(e, f)) : f
10166
+ value: R ? g(R[0].replace(e, f)) : f
10167
10167
  });
10168
10168
  return N(u), B;
10169
10169
  }
@@ -10183,7 +10183,7 @@ function L2() {
10183
10183
  return Ha;
10184
10184
  }
10185
10185
  var Mo;
10186
- function w2() {
10186
+ function R2() {
10187
10187
  if (Mo) return Ir.exports;
10188
10188
  Mo = 1;
10189
10189
  var e = L2();
@@ -10197,8 +10197,8 @@ function w2() {
10197
10197
  }
10198
10198
  return Ir.exports = t, Ir.exports.default = t, Ir.exports;
10199
10199
  }
10200
- var R2 = w2();
10201
- const D2 = /* @__PURE__ */ Mt(R2), pi = {}.hasOwnProperty, P2 = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
10200
+ var w2 = R2();
10201
+ const D2 = /* @__PURE__ */ Mt(w2), pi = {}.hasOwnProperty, P2 = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
10202
10202
  function Zl(e, t) {
10203
10203
  const n = [];
10204
10204
  let r = -1, a;
@@ -11774,7 +11774,7 @@ function ig(e, t, n, r) {
11774
11774
  if (typeof r == "number") {
11775
11775
  if (Number.isNaN(r)) return;
11776
11776
  i = r;
11777
- } else typeof r == "boolean" ? i = r : typeof r == "string" ? a.spaceSeparated ? i = Ro(r) : a.commaSeparated ? i = Do(r) : a.commaOrSpaceSeparated ? i = Ro(Do(r).join(" ")) : i = $o(a, a.property, r) : Array.isArray(r) ? i = [...r] : i = a.property === "style" ? ug(r) : String(r);
11777
+ } else typeof r == "boolean" ? i = r : typeof r == "string" ? a.spaceSeparated ? i = wo(r) : a.commaSeparated ? i = Do(r) : a.commaOrSpaceSeparated ? i = wo(Do(r).join(" ")) : i = $o(a, a.property, r) : Array.isArray(r) ? i = [...r] : i = a.property === "style" ? ug(r) : String(r);
11778
11778
  if (Array.isArray(i)) {
11779
11779
  const u = [];
11780
11780
  for (const s of i)
@@ -13205,7 +13205,7 @@ function _c(e, t) {
13205
13205
  }
13206
13206
  return r.handlers = n.handlers || {}, r.invalid = n.invalid, r.unknown = n.unknown, r;
13207
13207
  }
13208
- const Sg = {}, xg = {}.hasOwnProperty, Cc = _c("type", { handlers: { root: Og, element: wg, text: kg, comment: Lg, doctype: Ng } });
13208
+ const Sg = {}, xg = {}.hasOwnProperty, Cc = _c("type", { handlers: { root: Og, element: Rg, text: kg, comment: Lg, doctype: Ng } });
13209
13209
  function vg(e, t) {
13210
13210
  const r = (t || Sg).space;
13211
13211
  return Cc(e, r === "svg" ? ji : Xl);
@@ -13249,7 +13249,7 @@ function Lg(e) {
13249
13249
  };
13250
13250
  return Fn(e, t), t;
13251
13251
  }
13252
- function wg(e, t) {
13252
+ function Rg(e, t) {
13253
13253
  const n = t;
13254
13254
  let r = n;
13255
13255
  e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = ji);
@@ -13258,7 +13258,7 @@ function wg(e, t) {
13258
13258
  if (e.properties) {
13259
13259
  for (i in e.properties)
13260
13260
  if (i !== "children" && xg.call(e.properties, i)) {
13261
- const l = Rg(
13261
+ const l = wg(
13262
13262
  r,
13263
13263
  i,
13264
13264
  e.properties[i]
@@ -13277,7 +13277,7 @@ function wg(e, t) {
13277
13277
  };
13278
13278
  return s.childNodes = Ki(e.children, s, r), Fn(e, s), e.tagName === "template" && e.content && (s.content = Ig(e.content, r)), s;
13279
13279
  }
13280
- function Rg(e, t, n) {
13280
+ function wg(e, t, n) {
13281
13281
  const r = Gl(e, t);
13282
13282
  if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
13283
13283
  return;
@@ -16175,11 +16175,11 @@ class ob {
16175
16175
  }
16176
16176
  }
16177
16177
  const za = 3;
16178
- var wt;
16178
+ var Rt;
16179
16179
  (function(e) {
16180
16180
  e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
16181
- })(wt || (wt = {}));
16182
- const ns = { type: wt.Marker };
16181
+ })(Rt || (Rt = {}));
16182
+ const ns = { type: Rt.Marker };
16183
16183
  class sb {
16184
16184
  constructor(t) {
16185
16185
  this.treeAdapter = t, this.entries = [], this.bookmark = null;
@@ -16191,7 +16191,7 @@ class sb {
16191
16191
  const r = [], a = n.length, i = this.treeAdapter.getTagName(t), u = this.treeAdapter.getNamespaceURI(t);
16192
16192
  for (let s = 0; s < this.entries.length; s++) {
16193
16193
  const l = this.entries[s];
16194
- if (l.type === wt.Marker)
16194
+ if (l.type === Rt.Marker)
16195
16195
  break;
16196
16196
  const { element: c } = l;
16197
16197
  if (this.treeAdapter.getTagName(c) === i && this.treeAdapter.getNamespaceURI(c) === u) {
@@ -16220,7 +16220,7 @@ class sb {
16220
16220
  }
16221
16221
  pushElement(t, n) {
16222
16222
  this._ensureNoahArkCondition(t), this.entries.unshift({
16223
- type: wt.Element,
16223
+ type: Rt.Element,
16224
16224
  element: t,
16225
16225
  token: n
16226
16226
  });
@@ -16228,7 +16228,7 @@ class sb {
16228
16228
  insertElementAfterBookmark(t, n) {
16229
16229
  const r = this.entries.indexOf(this.bookmark);
16230
16230
  this.entries.splice(r, 0, {
16231
- type: wt.Element,
16231
+ type: Rt.Element,
16232
16232
  element: t,
16233
16233
  token: n
16234
16234
  });
@@ -16248,11 +16248,11 @@ class sb {
16248
16248
  }
16249
16249
  //Search
16250
16250
  getElementEntryInScopeWithTagName(t) {
16251
- const n = this.entries.find((r) => r.type === wt.Marker || this.treeAdapter.getTagName(r.element) === t);
16252
- return n && n.type === wt.Element ? n : null;
16251
+ const n = this.entries.find((r) => r.type === Rt.Marker || this.treeAdapter.getTagName(r.element) === t);
16252
+ return n && n.type === Rt.Element ? n : null;
16253
16253
  }
16254
16254
  getElementEntry(t) {
16255
- return this.entries.find((n) => n.type === wt.Element && n.element === t);
16255
+ return this.entries.find((n) => n.type === Rt.Element && n.element === t);
16256
16256
  }
16257
16257
  }
16258
16258
  const Xt = {
@@ -16666,14 +16666,14 @@ function Cb(e) {
16666
16666
  const t = e.tagID;
16667
16667
  return t === o.FONT && e.attrs.some(({ name: r }) => r === dn.COLOR || r === dn.SIZE || r === dn.FACE) || _b.has(t);
16668
16668
  }
16669
- function wc(e) {
16669
+ function Rc(e) {
16670
16670
  for (let t = 0; t < e.attrs.length; t++)
16671
16671
  if (e.attrs[t].name === gb) {
16672
16672
  e.attrs[t].name = bb;
16673
16673
  break;
16674
16674
  }
16675
16675
  }
16676
- function Rc(e) {
16676
+ function wc(e) {
16677
16677
  for (let t = 0; t < e.attrs.length; t++) {
16678
16678
  const n = Eb.get(e.attrs[t].name);
16679
16679
  n != null && (e.attrs[t].name = n);
@@ -16988,7 +16988,7 @@ class us {
16988
16988
  _reconstructActiveFormattingElements() {
16989
16989
  const t = this.activeFormattingElements.entries.length;
16990
16990
  if (t) {
16991
- const n = this.activeFormattingElements.entries.findIndex((a) => a.type === wt.Marker || this.openElements.contains(a.element)), r = n === -1 ? t - 1 : n - 1;
16991
+ const n = this.activeFormattingElements.entries.findIndex((a) => a.type === Rt.Marker || this.openElements.contains(a.element)), r = n === -1 ? t - 1 : n - 1;
16992
16992
  for (let a = r; a >= 0; a--) {
16993
16993
  const i = this.activeFormattingElements.entries[a];
16994
16994
  this._insertElement(i.token, this.treeAdapter.getNamespaceURI(i.element)), i.element = this.openElements.current;
@@ -17454,7 +17454,7 @@ class us {
17454
17454
  break;
17455
17455
  }
17456
17456
  case O.TEXT: {
17457
- RE(this, t);
17457
+ wE(this, t);
17458
17458
  break;
17459
17459
  }
17460
17460
  case O.IN_TABLE: {
@@ -17627,7 +17627,7 @@ function Lb(e, t) {
17627
17627
  let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
17628
17628
  return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : Hc(e, t), n;
17629
17629
  }
17630
- function wb(e, t) {
17630
+ function Rb(e, t) {
17631
17631
  let n = null, r = e.openElements.stackTop;
17632
17632
  for (; r >= 0; r--) {
17633
17633
  const a = e.openElements.items[r];
@@ -17637,7 +17637,7 @@ function wb(e, t) {
17637
17637
  }
17638
17638
  return n || (e.openElements.shortenToLength(Math.max(r, 0)), e.activeFormattingElements.removeEntry(t)), n;
17639
17639
  }
17640
- function Rb(e, t, n) {
17640
+ function wb(e, t, n) {
17641
17641
  let r = t, a = e.openElements.getCommonAncestor(t);
17642
17642
  for (let i = 0, u = a; u !== n; i++, u = a) {
17643
17643
  a = e.openElements.getCommonAncestor(u);
@@ -17668,11 +17668,11 @@ function Zi(e, t) {
17668
17668
  const r = Lb(e, t);
17669
17669
  if (!r)
17670
17670
  break;
17671
- const a = wb(e, r);
17671
+ const a = Rb(e, r);
17672
17672
  if (!a)
17673
17673
  break;
17674
17674
  e.activeFormattingElements.bookmark = r;
17675
- const i = Rb(e, a, r.element), u = e.openElements.getCommonAncestor(r.element);
17675
+ const i = wb(e, a, r.element), u = e.openElements.getCommonAncestor(r.element);
17676
17676
  e.treeAdapter.detachNode(i), u && Pb(e, u, i), Mb(e, a, r);
17677
17677
  }
17678
17678
  }
@@ -18041,10 +18041,10 @@ function yE(e, t) {
18041
18041
  e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(o.RTC), e._insertElement(t, K.HTML);
18042
18042
  }
18043
18043
  function _E(e, t) {
18044
- e._reconstructActiveFormattingElements(), wc(t), Qi(t), t.selfClosing ? e._appendElement(t, K.MATHML) : e._insertElement(t, K.MATHML), t.ackSelfClosing = !0;
18044
+ e._reconstructActiveFormattingElements(), Rc(t), Qi(t), t.selfClosing ? e._appendElement(t, K.MATHML) : e._insertElement(t, K.MATHML), t.ackSelfClosing = !0;
18045
18045
  }
18046
18046
  function CE(e, t) {
18047
- e._reconstructActiveFormattingElements(), Rc(t), Qi(t), t.selfClosing ? e._appendElement(t, K.SVG) : e._insertElement(t, K.SVG), t.ackSelfClosing = !0;
18047
+ e._reconstructActiveFormattingElements(), wc(t), Qi(t), t.selfClosing ? e._appendElement(t, K.SVG) : e._insertElement(t, K.SVG), t.ackSelfClosing = !0;
18048
18048
  }
18049
18049
  function ss(e, t) {
18050
18050
  e._reconstructActiveFormattingElements(), e._insertElement(t, K.HTML);
@@ -18293,7 +18293,7 @@ function LE(e, t) {
18293
18293
  const n = t.tagID;
18294
18294
  e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
18295
18295
  }
18296
- function wE(e) {
18296
+ function RE(e) {
18297
18297
  e._reconstructActiveFormattingElements(), e._insertFakeElement(D.BR, o.BR), e.openElements.pop(), e.framesetOk = !1;
18298
18298
  }
18299
18299
  function Hc(e, t) {
@@ -18380,7 +18380,7 @@ function ra(e, t) {
18380
18380
  break;
18381
18381
  }
18382
18382
  case o.BR: {
18383
- wE(e);
18383
+ RE(e);
18384
18384
  break;
18385
18385
  }
18386
18386
  case o.BODY: {
@@ -18412,7 +18412,7 @@ function ra(e, t) {
18412
18412
  function Uc(e, t) {
18413
18413
  e.tmplInsertionModeStack.length > 0 ? Wc(e, t) : Ji(e, t);
18414
18414
  }
18415
- function RE(e, t) {
18415
+ function wE(e, t) {
18416
18416
  var n;
18417
18417
  t.tagID === o.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
18418
18418
  }
@@ -18942,7 +18942,7 @@ function oT(e, t) {
18942
18942
  Xc(e), e._startTagOutsideForeignContent(t);
18943
18943
  else {
18944
18944
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
18945
- r === K.MATHML ? wc(t) : r === K.SVG && (Ab(t), Rc(t)), Qi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
18945
+ r === K.MATHML ? Rc(t) : r === K.SVG && (Ab(t), wc(t)), Qi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
18946
18946
  }
18947
18947
  }
18948
18948
  function sT(e, t) {
@@ -19313,7 +19313,7 @@ function Tr(e) {
19313
19313
  function LT(e) {
19314
19314
  return "children" in e ? jo({ ...e, children: [] }) : jo(e);
19315
19315
  }
19316
- function wT(e) {
19316
+ function RT(e) {
19317
19317
  return function(t, n) {
19318
19318
  return (
19319
19319
  /** @type {Root} */
@@ -19321,24 +19321,24 @@ function wT(e) {
19321
19321
  );
19322
19322
  };
19323
19323
  }
19324
- var Hr = { exports: {} }, RT = Hr.exports, ds;
19324
+ var Hr = { exports: {} }, wT = Hr.exports, ds;
19325
19325
  function DT() {
19326
19326
  return ds || (ds = 1, function(e, t) {
19327
19327
  (function(n, r) {
19328
19328
  e.exports = r();
19329
- })(RT, function() {
19329
+ })(wT, function() {
19330
19330
  var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", g = "date", m = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
19331
- var w = ["th", "st", "nd", "rd"], B = I % 100;
19332
- return "[" + I + (w[(B - 20) % 10] || w[B] || w[0]) + "]";
19333
- } }, M = function(I, w, B) {
19331
+ var R = ["th", "st", "nd", "rd"], B = I % 100;
19332
+ return "[" + I + (R[(B - 20) % 10] || R[B] || R[0]) + "]";
19333
+ } }, M = function(I, R, B) {
19334
19334
  var G = String(I);
19335
- return !G || G.length >= w ? I : "" + Array(w + 1 - G.length).join(B) + I;
19335
+ return !G || G.length >= R ? I : "" + Array(R + 1 - G.length).join(B) + I;
19336
19336
  }, W = { s: M, z: function(I) {
19337
- var w = -I.utcOffset(), B = Math.abs(w), G = Math.floor(B / 60), j = B % 60;
19338
- return (w <= 0 ? "+" : "-") + M(G, 2, "0") + ":" + M(j, 2, "0");
19339
- }, m: function I(w, B) {
19340
- if (w.date() < B.date()) return -I(B, w);
19341
- var G = 12 * (B.year() - w.year()) + (B.month() - w.month()), j = w.clone().add(G, f), q = B - j < 0, b = w.clone().add(G + (q ? -1 : 1), f);
19337
+ var R = -I.utcOffset(), B = Math.abs(R), G = Math.floor(B / 60), j = B % 60;
19338
+ return (R <= 0 ? "+" : "-") + M(G, 2, "0") + ":" + M(j, 2, "0");
19339
+ }, m: function I(R, B) {
19340
+ if (R.date() < B.date()) return -I(B, R);
19341
+ var G = 12 * (B.year() - R.year()) + (B.month() - R.month()), j = R.clone().add(G, f), q = B - j < 0, b = R.clone().add(G + (q ? -1 : 1), f);
19342
19342
  return +(-(G + (B - j) / (q ? j - b : b - j)) || 0);
19343
19343
  }, a: function(I) {
19344
19344
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
@@ -19346,37 +19346,37 @@ function DT() {
19346
19346
  return { M: f, y: h, w: d, d: c, D: g, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
19347
19347
  }, u: function(I) {
19348
19348
  return I === void 0;
19349
- } }, R = "en", _ = {};
19350
- _[R] = P;
19349
+ } }, w = "en", _ = {};
19350
+ _[w] = P;
19351
19351
  var N = "$isDayjsObject", V = function(I) {
19352
19352
  return I instanceof $ || !(!I || !I[N]);
19353
- }, H = function I(w, B, G) {
19353
+ }, H = function I(R, B, G) {
19354
19354
  var j;
19355
- if (!w) return R;
19356
- if (typeof w == "string") {
19357
- var q = w.toLowerCase();
19355
+ if (!R) return w;
19356
+ if (typeof R == "string") {
19357
+ var q = R.toLowerCase();
19358
19358
  _[q] && (j = q), B && (_[q] = B, j = q);
19359
- var b = w.split("-");
19359
+ var b = R.split("-");
19360
19360
  if (!j && b.length > 1) return I(b[0]);
19361
19361
  } else {
19362
- var ne = w.name;
19363
- _[ne] = w, j = ne;
19362
+ var ne = R.name;
19363
+ _[ne] = R, j = ne;
19364
19364
  }
19365
- return !G && j && (R = j), j || !G && R;
19366
- }, te = function(I, w) {
19365
+ return !G && j && (w = j), j || !G && w;
19366
+ }, te = function(I, R) {
19367
19367
  if (V(I)) return I.clone();
19368
- var B = typeof w == "object" ? w : {};
19368
+ var B = typeof R == "object" ? R : {};
19369
19369
  return B.date = I, B.args = arguments, new $(B);
19370
19370
  }, Y = W;
19371
- Y.l = H, Y.i = V, Y.w = function(I, w) {
19372
- return te(I, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
19371
+ Y.l = H, Y.i = V, Y.w = function(I, R) {
19372
+ return te(I, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
19373
19373
  };
19374
19374
  var $ = function() {
19375
19375
  function I(B) {
19376
19376
  this.$L = H(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[N] = !0;
19377
19377
  }
19378
- var w = I.prototype;
19379
- return w.parse = function(B) {
19378
+ var R = I.prototype;
19379
+ return R.parse = function(B) {
19380
19380
  this.$d = function(G) {
19381
19381
  var j = G.date, q = G.utc;
19382
19382
  if (j === null) return /* @__PURE__ */ new Date(NaN);
@@ -19391,41 +19391,41 @@ function DT() {
19391
19391
  }
19392
19392
  return new Date(j);
19393
19393
  }(B), this.init();
19394
- }, w.init = function() {
19394
+ }, R.init = function() {
19395
19395
  var B = this.$d;
19396
19396
  this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
19397
- }, w.$utils = function() {
19397
+ }, R.$utils = function() {
19398
19398
  return Y;
19399
- }, w.isValid = function() {
19399
+ }, R.isValid = function() {
19400
19400
  return this.$d.toString() !== m;
19401
- }, w.isSame = function(B, G) {
19401
+ }, R.isSame = function(B, G) {
19402
19402
  var j = te(B);
19403
19403
  return this.startOf(G) <= j && j <= this.endOf(G);
19404
- }, w.isAfter = function(B, G) {
19404
+ }, R.isAfter = function(B, G) {
19405
19405
  return te(B) < this.startOf(G);
19406
- }, w.isBefore = function(B, G) {
19406
+ }, R.isBefore = function(B, G) {
19407
19407
  return this.endOf(G) < te(B);
19408
- }, w.$g = function(B, G, j) {
19408
+ }, R.$g = function(B, G, j) {
19409
19409
  return Y.u(B) ? this[G] : this.set(j, B);
19410
- }, w.unix = function() {
19410
+ }, R.unix = function() {
19411
19411
  return Math.floor(this.valueOf() / 1e3);
19412
- }, w.valueOf = function() {
19412
+ }, R.valueOf = function() {
19413
19413
  return this.$d.getTime();
19414
- }, w.startOf = function(B, G) {
19414
+ }, R.startOf = function(B, G) {
19415
19415
  var j = this, q = !!Y.u(G) || G, b = Y.p(B), ne = function(je, ve) {
19416
- var Je = Y.w(j.$u ? Date.UTC(j.$y, ve, je) : new Date(j.$y, ve, je), j);
19417
- return q ? Je : Je.endOf(c);
19416
+ var Ze = Y.w(j.$u ? Date.UTC(j.$y, ve, je) : new Date(j.$y, ve, je), j);
19417
+ return q ? Ze : Ze.endOf(c);
19418
19418
  }, le = function(je, ve) {
19419
19419
  return Y.w(j.toDate()[je].apply(j.toDate("s"), (q ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ve)), j);
19420
- }, x = this.$W, se = this.$M, ye = this.$D, me = "set" + (this.$u ? "UTC" : "");
19420
+ }, x = this.$W, oe = this.$M, ye = this.$D, me = "set" + (this.$u ? "UTC" : "");
19421
19421
  switch (b) {
19422
19422
  case h:
19423
19423
  return q ? ne(1, 0) : ne(31, 11);
19424
19424
  case f:
19425
- return q ? ne(1, se) : ne(0, se + 1);
19425
+ return q ? ne(1, oe) : ne(0, oe + 1);
19426
19426
  case d:
19427
19427
  var Ae = this.$locale().weekStart || 0, xe = (x < Ae ? x + 7 : x) - Ae;
19428
- return ne(q ? ye - xe : ye + (6 - xe), se);
19428
+ return ne(q ? ye - xe : ye + (6 - xe), oe);
19429
19429
  case c:
19430
19430
  case g:
19431
19431
  return le(me + "Hours", 0);
@@ -19438,25 +19438,25 @@ function DT() {
19438
19438
  default:
19439
19439
  return this.clone();
19440
19440
  }
19441
- }, w.endOf = function(B) {
19441
+ }, R.endOf = function(B) {
19442
19442
  return this.startOf(B, !1);
19443
- }, w.$set = function(B, G) {
19443
+ }, R.$set = function(B, G) {
19444
19444
  var j, q = Y.p(B), b = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = b + "Date", j[g] = b + "Date", j[f] = b + "Month", j[h] = b + "FullYear", j[l] = b + "Hours", j[s] = b + "Minutes", j[u] = b + "Seconds", j[i] = b + "Milliseconds", j)[q], le = q === c ? this.$D + (G - this.$W) : G;
19445
19445
  if (q === f || q === h) {
19446
19446
  var x = this.clone().set(g, 1);
19447
19447
  x.$d[ne](le), x.init(), this.$d = x.set(g, Math.min(this.$D, x.daysInMonth())).$d;
19448
19448
  } else ne && this.$d[ne](le);
19449
19449
  return this.init(), this;
19450
- }, w.set = function(B, G) {
19450
+ }, R.set = function(B, G) {
19451
19451
  return this.clone().$set(B, G);
19452
- }, w.get = function(B) {
19452
+ }, R.get = function(B) {
19453
19453
  return this[Y.p(B)]();
19454
- }, w.add = function(B, G) {
19454
+ }, R.add = function(B, G) {
19455
19455
  var j, q = this;
19456
19456
  B = Number(B);
19457
- var b = Y.p(G), ne = function(se) {
19457
+ var b = Y.p(G), ne = function(oe) {
19458
19458
  var ye = te(q);
19459
- return Y.w(ye.date(ye.date() + Math.round(se * B)), q);
19459
+ return Y.w(ye.date(ye.date() + Math.round(oe * B)), q);
19460
19460
  };
19461
19461
  if (b === f) return this.set(f, this.$M + B);
19462
19462
  if (b === h) return this.set(h, this.$y + B);
@@ -19464,21 +19464,21 @@ function DT() {
19464
19464
  if (b === d) return ne(7);
19465
19465
  var le = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[b] || 1, x = this.$d.getTime() + B * le;
19466
19466
  return Y.w(x, this);
19467
- }, w.subtract = function(B, G) {
19467
+ }, R.subtract = function(B, G) {
19468
19468
  return this.add(-1 * B, G);
19469
- }, w.format = function(B) {
19469
+ }, R.format = function(B) {
19470
19470
  var G = this, j = this.$locale();
19471
19471
  if (!this.isValid()) return j.invalidDate || m;
19472
- var q = B || "YYYY-MM-DDTHH:mm:ssZ", b = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, se = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Je, ft, It) {
19473
- return ve && (ve[Je] || ve(G, q)) || ft[Je].slice(0, It);
19472
+ var q = B || "YYYY-MM-DDTHH:mm:ssZ", b = Y.z(this), ne = this.$H, le = this.$m, x = this.$M, oe = j.weekdays, ye = j.months, me = j.meridiem, Ae = function(ve, Ze, ft, It) {
19473
+ return ve && (ve[Ze] || ve(G, q)) || ft[Ze].slice(0, It);
19474
19474
  }, xe = function(ve) {
19475
19475
  return Y.s(ne % 12 || 12, ve, "0");
19476
- }, je = me || function(ve, Je, ft) {
19476
+ }, je = me || function(ve, Ze, ft) {
19477
19477
  var It = ve < 12 ? "AM" : "PM";
19478
19478
  return ft ? It.toLowerCase() : It;
19479
19479
  };
19480
- return q.replace(E, function(ve, Je) {
19481
- return Je || function(ft) {
19480
+ return q.replace(E, function(ve, Ze) {
19481
+ return Ze || function(ft) {
19482
19482
  switch (ft) {
19483
19483
  case "YY":
19484
19484
  return String(G.$y).slice(-2);
@@ -19499,11 +19499,11 @@ function DT() {
19499
19499
  case "d":
19500
19500
  return String(G.$W);
19501
19501
  case "dd":
19502
- return Ae(j.weekdaysMin, G.$W, se, 2);
19502
+ return Ae(j.weekdaysMin, G.$W, oe, 2);
19503
19503
  case "ddd":
19504
- return Ae(j.weekdaysShort, G.$W, se, 3);
19504
+ return Ae(j.weekdaysShort, G.$W, oe, 3);
19505
19505
  case "dddd":
19506
- return se[G.$W];
19506
+ return oe[G.$W];
19507
19507
  case "H":
19508
19508
  return String(ne);
19509
19509
  case "HH":
@@ -19532,10 +19532,10 @@ function DT() {
19532
19532
  return null;
19533
19533
  }(ve) || b.replace(":", "");
19534
19534
  });
19535
- }, w.utcOffset = function() {
19535
+ }, R.utcOffset = function() {
19536
19536
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
19537
- }, w.diff = function(B, G, j) {
19538
- var q, b = this, ne = Y.p(G), le = te(B), x = (le.utcOffset() - this.utcOffset()) * r, se = this - le, ye = function() {
19537
+ }, R.diff = function(B, G, j) {
19538
+ var q, b = this, ne = Y.p(G), le = te(B), x = (le.utcOffset() - this.utcOffset()) * r, oe = this - le, ye = function() {
19539
19539
  return Y.m(b, le);
19540
19540
  };
19541
19541
  switch (ne) {
@@ -19549,53 +19549,53 @@ function DT() {
19549
19549
  q = ye() / 3;
19550
19550
  break;
19551
19551
  case d:
19552
- q = (se - x) / 6048e5;
19552
+ q = (oe - x) / 6048e5;
19553
19553
  break;
19554
19554
  case c:
19555
- q = (se - x) / 864e5;
19555
+ q = (oe - x) / 864e5;
19556
19556
  break;
19557
19557
  case l:
19558
- q = se / a;
19558
+ q = oe / a;
19559
19559
  break;
19560
19560
  case s:
19561
- q = se / r;
19561
+ q = oe / r;
19562
19562
  break;
19563
19563
  case u:
19564
- q = se / n;
19564
+ q = oe / n;
19565
19565
  break;
19566
19566
  default:
19567
- q = se;
19567
+ q = oe;
19568
19568
  }
19569
19569
  return j ? q : Y.a(q);
19570
- }, w.daysInMonth = function() {
19570
+ }, R.daysInMonth = function() {
19571
19571
  return this.endOf(f).$D;
19572
- }, w.$locale = function() {
19572
+ }, R.$locale = function() {
19573
19573
  return _[this.$L];
19574
- }, w.locale = function(B, G) {
19574
+ }, R.locale = function(B, G) {
19575
19575
  if (!B) return this.$L;
19576
19576
  var j = this.clone(), q = H(B, G, !0);
19577
19577
  return q && (j.$L = q), j;
19578
- }, w.clone = function() {
19578
+ }, R.clone = function() {
19579
19579
  return Y.w(this.$d, this);
19580
- }, w.toDate = function() {
19580
+ }, R.toDate = function() {
19581
19581
  return new Date(this.valueOf());
19582
- }, w.toJSON = function() {
19582
+ }, R.toJSON = function() {
19583
19583
  return this.isValid() ? this.toISOString() : null;
19584
- }, w.toISOString = function() {
19584
+ }, R.toISOString = function() {
19585
19585
  return this.$d.toISOString();
19586
- }, w.toString = function() {
19586
+ }, R.toString = function() {
19587
19587
  return this.$d.toUTCString();
19588
19588
  }, I;
19589
19589
  }(), L = $.prototype;
19590
19590
  return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", g]].forEach(function(I) {
19591
- L[I[1]] = function(w) {
19592
- return this.$g(w, I[0], I[1]);
19591
+ L[I[1]] = function(R) {
19592
+ return this.$g(R, I[0], I[1]);
19593
19593
  };
19594
- }), te.extend = function(I, w) {
19595
- return I.$i || (I(w, $, te), I.$i = !0), te;
19594
+ }), te.extend = function(I, R) {
19595
+ return I.$i || (I(R, $, te), I.$i = !0), te;
19596
19596
  }, te.locale = H, te.isDayjs = V, te.unix = function(I) {
19597
19597
  return te(1e3 * I);
19598
- }, te.en = _[R], te.Ls = _, te.p = {}, te;
19598
+ }, te.en = _[w], te.Ls = _, te.p = {}, te;
19599
19599
  });
19600
19600
  }(Hr)), Hr.exports;
19601
19601
  }
@@ -19655,31 +19655,31 @@ function tu({
19655
19655
  userTrackingName: s = "clicked"
19656
19656
  }) {
19657
19657
  var E, P, M, W;
19658
- const [l, c] = ce(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = oe(Ye), g = st(
19659
- (R) => {
19658
+ const [l, c] = ce(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = se(Ye), g = st(
19659
+ (w) => {
19660
19660
  var _, N, V, H;
19661
- ((_ = R == null ? void 0 : R.data) == null ? void 0 : _.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (N = window == null ? void 0 : window.OnetrustActiveGroups) != null && N.includes("C0003")) && lt.set(`${f}-live-chat-open`, 1, {
19661
+ ((_ = w == null ? void 0 : w.data) == null ? void 0 : _.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (N = window == null ? void 0 : window.OnetrustActiveGroups) != null && N.includes("C0003")) && lt.set(`${f}-live-chat-open`, 1, {
19662
19662
  expires: 1,
19663
19663
  path: "/"
19664
- }), ((V = R == null ? void 0 : R.data) == null ? void 0 : V.type) === "connection" && ((H = R == null ? void 0 : R.data) == null ? void 0 : H.state) === "disconnected" && lt.remove(`${f}-live-chat-open`);
19664
+ }), ((V = w == null ? void 0 : w.data) == null ? void 0 : V.type) === "connection" && ((H = w == null ? void 0 : w.data) == null ? void 0 : H.state) === "disconnected" && lt.remove(`${f}-live-chat-open`);
19665
19665
  },
19666
19666
  [f]
19667
19667
  ), m = st(
19668
- (R) => {
19668
+ (w) => {
19669
19669
  var _, N, V, H;
19670
- ((_ = R == null ? void 0 : R.data) == null ? void 0 : _.type) === "unhide" && ((N = R == null ? void 0 : R.data) == null ? void 0 : N.reason) === "pop-out" && a(!0), ((V = R == null ? void 0 : R.data) == null ? void 0 : V.type) === "open" && ((H = R == null ? void 0 : R.data) == null ? void 0 : H.chatState) === !0 && a(!0);
19670
+ ((_ = w == null ? void 0 : w.data) == null ? void 0 : _.type) === "unhide" && ((N = w == null ? void 0 : w.data) == null ? void 0 : N.reason) === "pop-out" && a(!0), ((V = w == null ? void 0 : w.data) == null ? void 0 : V.type) === "open" && ((H = w == null ? void 0 : w.data) == null ? void 0 : H.chatState) === !0 && a(!0);
19671
19671
  },
19672
19672
  [a]
19673
19673
  );
19674
- Ne(() => {
19674
+ Re(() => {
19675
19675
  var N, V, H, te;
19676
- let R, _;
19676
+ let w, _;
19677
19677
  return (N = h == null ? void 0 : h.liveChat) != null && N.useOwnChat && (_ = setTimeout(() => {
19678
19678
  c(!1);
19679
- }, 3e3)), (V = h == null ? void 0 : h.liveChat) != null && V.enabled && !((H = h == null ? void 0 : h.liveChat) != null && H.useOwnChat) && (window.Five9ChatPlugin || (R = document.createElement("script"), R.type = "text/javascript", R.src = (te = h == null ? void 0 : h.liveChat) == null ? void 0 : te.sourceCode, R.async = !0, R.onload = () => {
19679
+ }, 3e3)), (V = h == null ? void 0 : h.liveChat) != null && V.enabled && !((H = h == null ? void 0 : h.liveChat) != null && H.useOwnChat) && (window.Five9ChatPlugin || (w = document.createElement("script"), w.type = "text/javascript", w.src = (te = h == null ? void 0 : h.liveChat) == null ? void 0 : te.sourceCode, w.async = !0, w.onload = () => {
19680
19680
  var Y;
19681
19681
  window.Five9ChatPlugin((Y = h == null ? void 0 : h.liveChat) == null ? void 0 : Y.options);
19682
- }, document.body.appendChild(R)), window.addEventListener("message", g), window.addEventListener("message", m), _ = setTimeout(() => {
19682
+ }, document.body.appendChild(w)), window.addEventListener("message", g), window.addEventListener("message", m), _ = setTimeout(() => {
19683
19683
  c(!1);
19684
19684
  }, 3e3)), () => {
19685
19685
  var Y;
@@ -19694,7 +19694,7 @@ function tu({
19694
19694
  m
19695
19695
  ]);
19696
19696
  const y = () => {
19697
- var R;
19697
+ var w;
19698
19698
  i({
19699
19699
  name: `${p == null ? void 0 : p.prefix}.bi.xpert.chatbot.popup.live.chat.${s}`,
19700
19700
  payload: {
@@ -19702,7 +19702,7 @@ function tu({
19702
19702
  label: "xpert-chatbot",
19703
19703
  isTestUser: r
19704
19704
  }
19705
- }), a(!0), (R = h == null ? void 0 : h.liveChat) != null && R.useOwnChat || window.f9_postMessage({ type: "toggle" });
19705
+ }), a(!0), (w = h == null ? void 0 : h.liveChat) != null && w.useOwnChat || window.f9_postMessage({ type: "toggle" });
19706
19706
  };
19707
19707
  return /* @__PURE__ */ S.jsxs("div", { title: "Talk to a live agent at anytime.", style: t, children: [
19708
19708
  l && n && /* @__PURE__ */ S.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
@@ -19750,7 +19750,7 @@ tu.propTypes = {
19750
19750
  userTrackingName: v.string
19751
19751
  };
19752
19752
  const id = ({ children: e, id: t, link: n }) => {
19753
- const { contentRef: r } = oe(Zt), [a, i] = ce(!1), u = nt(null), s = st(() => i(!0), []), l = st(() => i(!1), []), c = st(() => i(!0), []), d = st(() => i(!1), []), f = st(
19753
+ const { contentRef: r } = se(Zt), [a, i] = ce(!1), u = tt(null), s = st(() => i(!0), []), l = st(() => i(!1), []), c = st(() => i(!0), []), d = st(() => i(!1), []), f = st(
19754
19754
  (p) => {
19755
19755
  p.key === "Enter" ? window.open(n, "_blank") : p.key === "Escape" && i(!1);
19756
19756
  },
@@ -19795,11 +19795,11 @@ id.propTypes = {
19795
19795
  children: v.element.isRequired,
19796
19796
  id: v.string.isRequired
19797
19797
  };
19798
- const tt = [];
19798
+ const et = [];
19799
19799
  for (let e = 0; e < 256; ++e)
19800
- tt.push((e + 256).toString(16).slice(1));
19800
+ et.push((e + 256).toString(16).slice(1));
19801
19801
  function BT(e, t = 0) {
19802
- return (tt[e[t + 0]] + tt[e[t + 1]] + tt[e[t + 2]] + tt[e[t + 3]] + "-" + tt[e[t + 4]] + tt[e[t + 5]] + "-" + tt[e[t + 6]] + tt[e[t + 7]] + "-" + tt[e[t + 8]] + tt[e[t + 9]] + "-" + tt[e[t + 10]] + tt[e[t + 11]] + tt[e[t + 12]] + tt[e[t + 13]] + tt[e[t + 14]] + tt[e[t + 15]]).toLowerCase();
19802
+ return (et[e[t + 0]] + et[e[t + 1]] + et[e[t + 2]] + et[e[t + 3]] + "-" + et[e[t + 4]] + et[e[t + 5]] + "-" + et[e[t + 6]] + et[e[t + 7]] + "-" + et[e[t + 8]] + et[e[t + 9]] + "-" + et[e[t + 10]] + et[e[t + 11]] + et[e[t + 12]] + et[e[t + 13]] + et[e[t + 14]] + et[e[t + 15]]).toLowerCase();
19803
19803
  }
19804
19804
  let $a;
19805
19805
  const HT = new Uint8Array(16);
@@ -19922,23 +19922,11 @@ const zT = () => /* @__PURE__ */ S.jsx(
19922
19922
  )
19923
19923
  }
19924
19924
  ), od = ({ src: e, alt: t, ...n }) => {
19925
- const { streaming: r } = oe(Ze), a = nt(null), [i, u] = ce(!1), [s, l] = ce(!1);
19926
- return Ne(() => {
19927
- const c = a.current;
19928
- if (!c) return;
19929
- const d = new IntersectionObserver(
19930
- ([f]) => {
19931
- u(f.isIntersecting);
19932
- },
19933
- { threshold: 0.01 }
19934
- );
19935
- return d.observe(c), () => {
19936
- d.disconnect();
19937
- };
19938
- }, []), /* @__PURE__ */ S.jsxs(
19925
+ const r = tt(null), [a, i] = ce(!1);
19926
+ return /* @__PURE__ */ S.jsxs(
19939
19927
  "div",
19940
19928
  {
19941
- ref: a,
19929
+ ref: r,
19942
19930
  style: {
19943
19931
  position: "relative",
19944
19932
  display: "flex",
@@ -19950,15 +19938,15 @@ const zT = () => /* @__PURE__ */ S.jsx(
19950
19938
  role: "img",
19951
19939
  "aria-label": t || "Image",
19952
19940
  children: [
19953
- s && /* @__PURE__ */ S.jsx(zT, {}),
19954
- i && !s && /* @__PURE__ */ S.jsx(
19941
+ a && /* @__PURE__ */ S.jsx(zT, {}),
19942
+ !a && /* @__PURE__ */ S.jsx(
19955
19943
  "img",
19956
19944
  {
19957
19945
  src: e,
19958
19946
  alt: t,
19959
19947
  loading: "lazy",
19960
19948
  onError: () => {
19961
- l(!0);
19949
+ i(!0);
19962
19950
  },
19963
19951
  style: {
19964
19952
  maxWidth: "100%",
@@ -20075,7 +20063,7 @@ const WT = (e) => ({
20075
20063
  toolCall: l
20076
20064
  }) => {
20077
20065
  var _;
20078
- const { primaryColor: c, conversationScreen: d } = oe(Ye), {
20066
+ const { primaryColor: c, conversationScreen: d } = se(Ye), {
20079
20067
  content: f,
20080
20068
  disableFeedback: p,
20081
20069
  liveAgent: h,
@@ -20093,7 +20081,7 @@ const WT = (e) => ({
20093
20081
  ), W = cn(
20094
20082
  () => WT(l)(f),
20095
20083
  [f, l]
20096
- ), R = cn(() => {
20084
+ ), w = cn(() => {
20097
20085
  if (!P) return null;
20098
20086
  const N = GT(W);
20099
20087
  return /* @__PURE__ */ S.jsx(
@@ -20104,7 +20092,7 @@ const WT = (e) => ({
20104
20092
  M[y].bubbleStyle
20105
20093
  ),
20106
20094
  linkTarget: "_blank",
20107
- rehypePlugins: [wT],
20095
+ rehypePlugins: [RT],
20108
20096
  transformLinkUri: VT,
20109
20097
  children: N
20110
20098
  }
@@ -20144,7 +20132,7 @@ const WT = (e) => ({
20144
20132
  className: M[y].bubbleClassName,
20145
20133
  style: M[y].bubbleStyle,
20146
20134
  children: [
20147
- R,
20135
+ w,
20148
20136
  E && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
20149
20137
  /* @__PURE__ */ S.jsx("div", { children: XT }),
20150
20138
  /* @__PURE__ */ S.jsx(
@@ -20224,8 +20212,8 @@ au.propTypes = {
20224
20212
  };
20225
20213
  au.displayName = "NotificationMessage";
20226
20214
  function ld({ disableScroll: e }) {
20227
- const t = nt(null);
20228
- return Ne(() => {
20215
+ const t = tt(null);
20216
+ return Re(() => {
20229
20217
  var n;
20230
20218
  e || (n = t.current) == null || n.scrollIntoView({
20231
20219
  behavior: "smooth",
@@ -20259,7 +20247,7 @@ const oa = ({
20259
20247
  setLiveChatOpen: i = null,
20260
20248
  submitEvent: u = null
20261
20249
  }) => {
20262
- const { disableScroll: s, hasError: l, streaming: c } = oe(Ze), d = nt(null), f = cn(
20250
+ const { disableScroll: s, hasError: l, streaming: c } = se(nt), d = tt(null), f = cn(
20263
20251
  () => n.reduce((p, h) => (h.toolCalls && h.toolCalls.forEach(({ function: g, id: m }) => {
20264
20252
  p[m] = g == null ? void 0 : g.name;
20265
20253
  }), p), {}),
@@ -20324,7 +20312,7 @@ oa.propTypes = {
20324
20312
  oa.displayName = "ConversationMessages";
20325
20313
  const cd = () => {
20326
20314
  var l, c, d;
20327
- const { conversationScreen: e, id: t } = oe(Ye), n = `${t}-maintenance-banner`, [r, a] = ce(
20315
+ const { conversationScreen: e, id: t } = se(Ye), n = `${t}-maintenance-banner`, [r, a] = ce(
20328
20316
  lt.get(n) === void 0
20329
20317
  ), i = /* @__PURE__ */ new Date(), u = new Date(
20330
20318
  (l = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : l.endDateTime
@@ -20376,7 +20364,7 @@ const cd = () => {
20376
20364
  cd.displayName = "MaintenanceBanner";
20377
20365
  const iu = ({ onPromptClick: e }) => {
20378
20366
  var s;
20379
- const { primaryColor: t, conversationScreen: n } = oe(Ye), { deleteConversationModal: r } = oe(Zt), { loading: a, streaming: i } = oe(Ze), u = a || i;
20367
+ const { primaryColor: t, conversationScreen: n } = se(Ye), { deleteConversationModal: r } = se(Zt), { loading: a, streaming: i } = se(nt), u = a || i;
20380
20368
  return /* @__PURE__ */ S.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
20381
20369
  /* @__PURE__ */ S.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
20382
20370
  (s = n == null ? void 0 : n.prompts) == null ? void 0 : s.map((l) => {
@@ -20407,7 +20395,7 @@ iu.propTypes = {
20407
20395
  };
20408
20396
  iu.displayName = "PromptList";
20409
20397
  const dd = ({ chatContentRef: e, messages: t }) => {
20410
- const { loading: n, streaming: r } = oe(Ze), [a, i] = ce(!1), u = nt(null), s = st(() => {
20398
+ const { loading: n, streaming: r } = se(nt), [a, i] = ce(!1), u = tt(null), s = st(() => {
20411
20399
  if (!e.current) return;
20412
20400
  const { scrollTop: c, scrollHeight: d, clientHeight: f } = e.current, p = c + f >= d - 10;
20413
20401
  i(!p);
@@ -20417,11 +20405,11 @@ const dd = ({ chatContentRef: e, messages: t }) => {
20417
20405
  behavior: "smooth"
20418
20406
  }), u.current && u.current.focus();
20419
20407
  };
20420
- return Ne(() => {
20408
+ return Re(() => {
20421
20409
  const c = e.current;
20422
20410
  if (c)
20423
20411
  return c.addEventListener("scroll", s), () => c.removeEventListener("scroll", s);
20424
- }, [e, s]), Ne(() => {
20412
+ }, [e, s]), Re(() => {
20425
20413
  !n && e.current && e.current.scrollTo({
20426
20414
  top: e.current.scrollHeight,
20427
20415
  behavior: "smooth"
@@ -20452,7 +20440,7 @@ function fd({
20452
20440
  submitEvent: u = null
20453
20441
  }) {
20454
20442
  var y, E;
20455
- const { conversationScreen: s, disclaimer: l } = oe(Ye), { deleteConversationModal: c, xpertMessages: d } = oe(Zt), { loading: f, setMode: p, mode: h } = oe(Ze), g = nt(null), m = (P) => {
20443
+ const { conversationScreen: s, disclaimer: l } = se(Ye), { deleteConversationModal: c, xpertMessages: d } = se(Zt), { loading: f, setMode: p, mode: h } = se(nt), g = tt(null), m = (P) => {
20456
20444
  s.liveChat.useOwnChat ? p(vt.LIVECHAT) : i(P);
20457
20445
  };
20458
20446
  return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
@@ -20617,10 +20605,10 @@ function ou() {
20617
20605
  };
20618
20606
  return jt.setUpSocketIOPing = r, jt;
20619
20607
  }
20620
- var wr = {}, gs;
20608
+ var Rr = {}, gs;
20621
20609
  function hd() {
20622
- if (gs) return wr;
20623
- gs = 1, Object.defineProperty(wr, "__esModule", { value: !0 }), wr.heartbeat = n;
20610
+ if (gs) return Rr;
20611
+ gs = 1, Object.defineProperty(Rr, "__esModule", { value: !0 }), Rr.heartbeat = n;
20624
20612
  var e = Ft();
20625
20613
  function t(r) {
20626
20614
  return Array.isArray(r) ? r.reduce(function(a, i) {
@@ -20644,7 +20632,7 @@ function hd() {
20644
20632
  }), function() {
20645
20633
  };
20646
20634
  }
20647
- return wr;
20635
+ return Rr;
20648
20636
  }
20649
20637
  var Zn = {}, Xa = {}, bs;
20650
20638
  function su() {
@@ -20754,9 +20742,9 @@ function ZT() {
20754
20742
  return m && window.clearTimeout(m);
20755
20743
  };
20756
20744
  }, c = function(d, f, p, h, g, m, y) {
20757
- var E = f.setLastMessage, P = f.setReadyState, M, W, R;
20758
- return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, E, m), u(d, p, P, g, m), W = s(d, p, P, h, g), R = l(d, p, P, h, g), function() {
20759
- P(r.ReadyState.CLOSING), W(), R(), d.close(), M && clearInterval(M);
20745
+ var E = f.setLastMessage, P = f.setReadyState, M, W, w;
20746
+ return p.current.fromSocketIO && (M = (0, t.setUpSocketIOPing)(y)), i(d, p, E, m), u(d, p, P, g, m), W = s(d, p, P, h, g), w = l(d, p, P, h, g), function() {
20747
+ P(r.ReadyState.CLOSING), W(), w(), d.close(), M && clearInterval(M);
20760
20748
  };
20761
20749
  };
20762
20750
  return an.attachListeners = c, an;
@@ -20968,7 +20956,7 @@ function t3() {
20968
20956
  for (var d = [], f = 2; f < arguments.length; f++)
20969
20957
  d[f - 2] = arguments[f];
20970
20958
  return t(void 0, r([l, c], d, !0), void 0, function(p, h, g) {
20971
- var m, y, E, P, M, W, R, _;
20959
+ var m, y, E, P, M, W, w, _;
20972
20960
  return g === void 0 && (g = 0), n(this, function(N) {
20973
20961
  switch (N.label) {
20974
20962
  case 0:
@@ -20983,7 +20971,7 @@ function t3() {
20983
20971
  case 4:
20984
20972
  return N.sent(), [2, (0, e.getUrl)(p, h, g + 1)];
20985
20973
  case 5:
20986
- return (_ = (R = h.current).onReconnectStop) === null || _ === void 0 || _.call(R, g), [2, null];
20974
+ return (_ = (w = h.current).onReconnectStop) === null || _ === void 0 || _.call(w, g), [2, null];
20987
20975
  case 6:
20988
20976
  return [3, 8];
20989
20977
  case 7:
@@ -21043,22 +21031,22 @@ function cu() {
21043
21031
  return new (g || (g = Promise))(function(E, P) {
21044
21032
  function M(_) {
21045
21033
  try {
21046
- R(m.next(_));
21034
+ w(m.next(_));
21047
21035
  } catch (N) {
21048
21036
  P(N);
21049
21037
  }
21050
21038
  }
21051
21039
  function W(_) {
21052
21040
  try {
21053
- R(m.throw(_));
21041
+ w(m.throw(_));
21054
21042
  } catch (N) {
21055
21043
  P(N);
21056
21044
  }
21057
21045
  }
21058
- function R(_) {
21046
+ function w(_) {
21059
21047
  _.done ? E(_.value) : y(_.value).then(M, W);
21060
21048
  }
21061
- R((m = m.apply(p, h || [])).next());
21049
+ w((m = m.apply(p, h || [])).next());
21062
21050
  });
21063
21051
  }, n = pt && pt.__generator || function(p, h) {
21064
21052
  var g = { label: 0, sent: function() {
@@ -21068,64 +21056,64 @@ function cu() {
21068
21056
  return P.next = M(0), P.throw = M(1), P.return = M(2), typeof Symbol == "function" && (P[Symbol.iterator] = function() {
21069
21057
  return this;
21070
21058
  }), P;
21071
- function M(R) {
21059
+ function M(w) {
21072
21060
  return function(_) {
21073
- return W([R, _]);
21061
+ return W([w, _]);
21074
21062
  };
21075
21063
  }
21076
- function W(R) {
21064
+ function W(w) {
21077
21065
  if (m) throw new TypeError("Generator is already executing.");
21078
- for (; P && (P = 0, R[0] && (g = 0)), g; ) try {
21079
- if (m = 1, y && (E = R[0] & 2 ? y.return : R[0] ? y.throw || ((E = y.return) && E.call(y), 0) : y.next) && !(E = E.call(y, R[1])).done) return E;
21080
- switch (y = 0, E && (R = [R[0] & 2, E.value]), R[0]) {
21066
+ for (; P && (P = 0, w[0] && (g = 0)), g; ) try {
21067
+ if (m = 1, y && (E = w[0] & 2 ? y.return : w[0] ? y.throw || ((E = y.return) && E.call(y), 0) : y.next) && !(E = E.call(y, w[1])).done) return E;
21068
+ switch (y = 0, E && (w = [w[0] & 2, E.value]), w[0]) {
21081
21069
  case 0:
21082
21070
  case 1:
21083
- E = R;
21071
+ E = w;
21084
21072
  break;
21085
21073
  case 4:
21086
- return g.label++, { value: R[1], done: !1 };
21074
+ return g.label++, { value: w[1], done: !1 };
21087
21075
  case 5:
21088
- g.label++, y = R[1], R = [0];
21076
+ g.label++, y = w[1], w = [0];
21089
21077
  continue;
21090
21078
  case 7:
21091
- R = g.ops.pop(), g.trys.pop();
21079
+ w = g.ops.pop(), g.trys.pop();
21092
21080
  continue;
21093
21081
  default:
21094
- if (E = g.trys, !(E = E.length > 0 && E[E.length - 1]) && (R[0] === 6 || R[0] === 2)) {
21082
+ if (E = g.trys, !(E = E.length > 0 && E[E.length - 1]) && (w[0] === 6 || w[0] === 2)) {
21095
21083
  g = 0;
21096
21084
  continue;
21097
21085
  }
21098
- if (R[0] === 3 && (!E || R[1] > E[0] && R[1] < E[3])) {
21099
- g.label = R[1];
21086
+ if (w[0] === 3 && (!E || w[1] > E[0] && w[1] < E[3])) {
21087
+ g.label = w[1];
21100
21088
  break;
21101
21089
  }
21102
- if (R[0] === 6 && g.label < E[1]) {
21103
- g.label = E[1], E = R;
21090
+ if (w[0] === 6 && g.label < E[1]) {
21091
+ g.label = E[1], E = w;
21104
21092
  break;
21105
21093
  }
21106
21094
  if (E && g.label < E[2]) {
21107
- g.label = E[2], g.ops.push(R);
21095
+ g.label = E[2], g.ops.push(w);
21108
21096
  break;
21109
21097
  }
21110
21098
  E[2] && g.ops.pop(), g.trys.pop();
21111
21099
  continue;
21112
21100
  }
21113
- R = h.call(p, g);
21101
+ w = h.call(p, g);
21114
21102
  } catch (_) {
21115
- R = [6, _], y = 0;
21103
+ w = [6, _], y = 0;
21116
21104
  } finally {
21117
21105
  m = E = 0;
21118
21106
  }
21119
- if (R[0] & 5) throw R[1];
21120
- return { value: R[0] ? R[1] : void 0, done: !0 };
21107
+ if (w[0] & 5) throw w[1];
21108
+ return { value: w[0] ? w[1] : void 0, done: !0 };
21121
21109
  }
21122
21110
  }, r = pt && pt.__importDefault || function(p) {
21123
21111
  return p && p.__esModule ? p : { default: p };
21124
21112
  };
21125
21113
  Object.defineProperty(pt, "__esModule", { value: !0 }), pt.useWebSocket = void 0;
21126
- var a = yt, i = w0, u = Ft(), s = e3(), l = t3(), c = r(n3()), d = lu(), f = function(p, h, g) {
21114
+ var a = yt, i = R0, u = Ft(), s = e3(), l = t3(), c = r(n3()), d = lu(), f = function(p, h, g) {
21127
21115
  h === void 0 && (h = u.DEFAULT_OPTIONS), g === void 0 && (g = !0);
21128
- var m = (0, a.useState)(null), y = m[0], E = m[1], P = (0, a.useState)({}), M = P[0], W = P[1], R = (0, a.useMemo)(function() {
21116
+ var m = (0, a.useState)(null), y = m[0], E = m[1], P = (0, a.useState)({}), M = P[0], W = P[1], w = (0, a.useMemo)(function() {
21129
21117
  if (!h.disableJson && y)
21130
21118
  try {
21131
21119
  return JSON.parse(y.data);
@@ -21136,7 +21124,7 @@ function cu() {
21136
21124
  }, [y, h.disableJson]), _ = (0, a.useRef)(null), N = (0, a.useRef)(null), V = (0, a.useRef)(function() {
21137
21125
  }), H = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(h);
21138
21126
  L.current = h;
21139
- var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null && g === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, w = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(q, b) {
21127
+ var I = _.current && M[_.current] !== void 0 ? M[_.current] : p !== null && g === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, R = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(q, b) {
21140
21128
  var ne;
21141
21129
  if (b === void 0 && (b = !0), u.isEventSourceSupported && N.current instanceof EventSource) {
21142
21130
  console.warn("Unable to send a message from an eventSource");
@@ -21152,7 +21140,7 @@ function cu() {
21152
21140
  if (p !== null && g === !0) {
21153
21141
  var q, b = !1, ne = !0, le = function() {
21154
21142
  return t(void 0, void 0, void 0, function() {
21155
- var x, se, ye;
21143
+ var x, oe, ye;
21156
21144
  return n(this, function(me) {
21157
21145
  switch (me.label) {
21158
21146
  case 0:
@@ -21165,7 +21153,7 @@ function cu() {
21165
21153
  }), [
21166
21154
  2
21167
21155
  /*return*/
21168
- ]) : (se = function(Ae) {
21156
+ ]) : (oe = function(Ae) {
21169
21157
  b || (0, i.flushSync)(function() {
21170
21158
  return E(Ae);
21171
21159
  });
@@ -21176,7 +21164,7 @@ function cu() {
21176
21164
  return e(e({}, xe), _.current && (je = {}, je[_.current] = Ae, je));
21177
21165
  });
21178
21166
  });
21179
- }, ne && (q = (0, s.createOrJoinSocket)(N, _.current, ye, L, se, V, H, te, B)), [
21167
+ }, ne && (q = (0, s.createOrJoinSocket)(N, _.current, ye, L, oe, V, H, te, B)), [
21180
21168
  2
21181
21169
  /*return*/
21182
21170
  ]);
@@ -21190,10 +21178,10 @@ function cu() {
21190
21178
  b = !0, ne = !1, $.current && ($.current = null), q == null || q(), E(null);
21191
21179
  };
21192
21180
  } else (p === null || g === !1) && (H.current = 0, W(function(x) {
21193
- var se;
21194
- return e(e({}, x), _.current && (se = {}, se[_.current] = u.ReadyState.CLOSED, se));
21181
+ var oe;
21182
+ return e(e({}, x), _.current && (oe = {}, oe[_.current] = u.ReadyState.CLOSED, oe));
21195
21183
  }));
21196
- }, [p, g, w, B]), (0, a.useEffect)(function() {
21184
+ }, [p, g, R, B]), (0, a.useEffect)(function() {
21197
21185
  I === u.ReadyState.OPEN && Y.current.splice(0).forEach(function(q) {
21198
21186
  B(q);
21199
21187
  });
@@ -21201,7 +21189,7 @@ function cu() {
21201
21189
  sendMessage: B,
21202
21190
  sendJsonMessage: G,
21203
21191
  lastMessage: y,
21204
- lastJsonMessage: R,
21192
+ lastJsonMessage: w,
21205
21193
  readyState: I,
21206
21194
  getWebSocket: j
21207
21195
  };
@@ -21344,7 +21332,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21344
21332
  CONVERSATION: "CONVERSATION",
21345
21333
  FORM: "FORM"
21346
21334
  }, En = Kr({}), pd = ({ children: e, liveChatPayload: t }) => {
21347
- const { conversationScreen: n } = oe(Ye), { pushXpertMessage: r } = oe(Zt), { setHasError: a, setMode: i } = oe(Ze), [u, s] = ce(""), [l, c] = ce(!1), [, d] = ce(""), [f, p] = ce([]), [h, g] = ce(null), [m, y] = ce($t.FORM), [E, P] = ce(null), M = (j) => p((q) => [...q, j]), W = async (j) => {
21335
+ const { conversationScreen: n } = se(Ye), { pushXpertMessage: r } = se(Zt), { setHasError: a, setMode: i } = se(nt), [u, s] = ce(""), [l, c] = ce(!1), [, d] = ce(""), [f, p] = ce([]), [h, g] = ce(null), [m, y] = ce($t.FORM), [E, P] = ce(null), M = (j) => p((q) => [...q, j]), W = async (j) => {
21348
21336
  const q = await s3(j.data), { conversation_id: b, event_type: ne, body: le } = q;
21349
21337
  switch (ne) {
21350
21338
  case "AGENT_TYPING":
@@ -21370,7 +21358,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21370
21358
  default:
21371
21359
  return;
21372
21360
  }
21373
- }, { sendJsonMessage: R } = o3(h, {
21361
+ }, { sendJsonMessage: w } = o3(h, {
21374
21362
  onMessage: W
21375
21363
  }), _ = () => {
21376
21364
  var q;
@@ -21378,7 +21366,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21378
21366
  const j = (q = n == null ? void 0 : n.liveChat) == null ? void 0 : q.form;
21379
21367
  (!j || j.length === 0) && i(vt.XPERT);
21380
21368
  }, N = () => {
21381
- R({
21369
+ w({
21382
21370
  action: "sendmessage",
21383
21371
  event: "TERMINATE_CONVERSATION"
21384
21372
  });
@@ -21405,7 +21393,7 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21405
21393
  id: q ?? "",
21406
21394
  role: Ie.AGENT,
21407
21395
  timestamp: ne ? new Date(ne) : void 0
21408
- }), R({
21396
+ }), w({
21409
21397
  action: "sendmessage",
21410
21398
  messages: [
21411
21399
  {
@@ -21428,14 +21416,14 @@ const l3 = "This conversation with a live agent has ended. Please note that a tr
21428
21416
  id: "",
21429
21417
  role: Ie.USER,
21430
21418
  timestamp: /* @__PURE__ */ new Date()
21431
- }), R({
21419
+ }), w({
21432
21420
  action: "sendmessage",
21433
21421
  event: "OUTGOING_MESSAGE",
21434
21422
  message: j
21435
21423
  });
21436
21424
  },
21437
21425
  sendTypingEvent: async () => {
21438
- R({
21426
+ w({
21439
21427
  action: "sendmessage",
21440
21428
  event: "TYPING"
21441
21429
  });
@@ -21473,7 +21461,7 @@ pd.propTypes = {
21473
21461
  };
21474
21462
  const c3 = "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", d3 = "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";
21475
21463
  function md({ handleResizeButtonClick: e, setIsMounted: t }) {
21476
- const { isMobile: n, isNormalSize: r } = oe(Ze);
21464
+ const { isMobile: n, isNormalSize: r } = se(nt);
21477
21465
  if (n)
21478
21466
  return null;
21479
21467
  const a = `${r ? "Expand" : "Shrink"} Xpert dialog width`;
@@ -21512,7 +21500,7 @@ function gd({
21512
21500
  isMounted: r
21513
21501
  }) {
21514
21502
  var c;
21515
- const { conversationScreen: a } = oe(Ye), { mode: i } = oe(Ze), { setDeleteConversationModal: u, xpertMessages: s } = oe(Zt), l = i === vt.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
21503
+ const { conversationScreen: a } = se(Ye), { mode: i } = se(nt), { setDeleteConversationModal: u, xpertMessages: s } = se(Zt), l = i === vt.XPERT && ((c = a == null ? void 0 : a.conversationHistory) == null ? void 0 : c.allowDeletion) && !!(s != null && s.length);
21516
21504
  return /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
21517
21505
  l && /* @__PURE__ */ S.jsx(
21518
21506
  "button",
@@ -21617,9 +21605,9 @@ function Ed({
21617
21605
  setIsMounted: n,
21618
21606
  onClose: r
21619
21607
  }) {
21620
- var c, d, f, p, h, g, m, y, E, P, M, W, R, _, N;
21621
- const { primaryColor: a, conversationScreen: i } = oe(Ye), { isMobile: u, mode: s } = oe(Ze), { step: l } = oe(En);
21622
- return Ne(() => {
21608
+ var c, d, f, p, h, g, m, y, E, P, M, W, w, _, N;
21609
+ const { primaryColor: a, conversationScreen: i } = se(Ye), { isMobile: u, mode: s } = se(nt), { step: l } = se(En);
21610
+ return Re(() => {
21623
21611
  const V = document.getElementById("header-mobile");
21624
21612
  return V && (V.style.display = "none"), () => {
21625
21613
  V && (V.style.display = "");
@@ -21678,7 +21666,7 @@ function Ed({
21678
21666
  className: "xpert-chatbot-popup__header_container",
21679
21667
  style: {
21680
21668
  right: 0,
21681
- background: ((N = (_ = (R = i == null ? void 0 : i.header) == null ? void 0 : R.container) == null ? void 0 : _.style) == null ? void 0 : N.background) || a
21669
+ background: ((N = (_ = (w = i == null ? void 0 : i.header) == null ? void 0 : w.container) == null ? void 0 : _.style) == null ? void 0 : N.background) || a
21682
21670
  }
21683
21671
  }
21684
21672
  )
@@ -21697,7 +21685,7 @@ function f3() {
21697
21685
  deleteConversationModal: e,
21698
21686
  deleteConversationHistory: t,
21699
21687
  setDeleteConversationModal: n
21700
- } = oe(Zt), { primaryColor: r } = oe(Ye);
21688
+ } = se(Zt), { primaryColor: r } = se(Ye);
21701
21689
  return e ? /* @__PURE__ */ S.jsx(
21702
21690
  "div",
21703
21691
  {
@@ -21748,7 +21736,7 @@ function f3() {
21748
21736
  }
21749
21737
  const h3 = () => {
21750
21738
  var n, r, a, i, u;
21751
- const { isMobile: e } = oe(Ze), { launchButton: t } = oe(Ye);
21739
+ const { isMobile: e } = se(nt), { launchButton: t } = se(Ye);
21752
21740
  return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ S.jsx(
21753
21741
  "div",
21754
21742
  {
@@ -21766,7 +21754,7 @@ function p3() {
21766
21754
  }
21767
21755
  function Td() {
21768
21756
  var s;
21769
- const { conversationScreen: e, primaryColor: t, widgetMode: n } = oe(Ye), { cancelLiveChatConnection: r } = oe(En), a = ((s = e == null ? void 0 : e.liveChat) == null ? void 0 : s.queueMessages) ?? [], i = n ? t : "#FFFFFF", u = n ? "#FFFFFF" : t;
21757
+ const { conversationScreen: e, primaryColor: t, widgetMode: n } = se(Ye), { cancelLiveChatConnection: r } = se(En), a = ((s = e == null ? void 0 : e.liveChat) == null ? void 0 : s.queueMessages) ?? [], i = n ? t : "#FFFFFF", u = n ? "#FFFFFF" : t;
21770
21758
  return /* @__PURE__ */ S.jsxs("div", { className: "live-chat-connecting", style: { backgroundColor: i }, children: [
21771
21759
  /* @__PURE__ */ S.jsx(p3, {}),
21772
21760
  /* @__PURE__ */ S.jsx("div", { className: "live-chat-connecting-messages", style: { color: u }, children: a.length === 0 ? /* @__PURE__ */ S.jsx("p", { children: "Connecting to live agent" }) : a.map((l, c) => /* @__PURE__ */ S.jsx("p", { children: l }, `queue-message-${c}`)) }),
@@ -21799,7 +21787,7 @@ const Is = 500, m3 = [
21799
21787
  }
21800
21788
  ];
21801
21789
  function yd({ onDismiss: e }) {
21802
- const [t, n] = ce(""), [r, a] = ce(!1), [i, u] = ce(null), { conversationScreen: s } = oe(Ye), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = oe(En), f = () => {
21790
+ const [t, n] = ce(""), [r, a] = ce(!1), [i, u] = ce(null), { conversationScreen: s } = se(Ye), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(En), f = () => {
21803
21791
  var g;
21804
21792
  d(), (g = s == null ? void 0 : s.liveChat) != null && g.useSurvey ? a(!0) : l();
21805
21793
  }, p = () => {
@@ -21872,7 +21860,7 @@ yd.propTypes = {
21872
21860
  onDismiss: v.func
21873
21861
  };
21874
21862
  function g3(e, t) {
21875
- const [n, r] = ce(!1), a = nt(), i = st(
21863
+ const [n, r] = ce(!1), a = tt(), i = st(
21876
21864
  (...u) => {
21877
21865
  n || (e(...u), r(!0), clearTimeout(a.current), a.current = setTimeout(() => {
21878
21866
  r(!1);
@@ -21880,7 +21868,7 @@ function g3(e, t) {
21880
21868
  },
21881
21869
  [n, e, t]
21882
21870
  );
21883
- return Ne(() => () => {
21871
+ return Re(() => () => {
21884
21872
  clearTimeout(a.current);
21885
21873
  }, []), i;
21886
21874
  }
@@ -21891,7 +21879,7 @@ function _d() {
21891
21879
  liveChatMessages: n,
21892
21880
  sendMessage: r,
21893
21881
  sendTypingEvent: a
21894
- } = oe(En), i = nt(null), [u, s] = ce(!1), l = g3(a, 5e3), c = () => {
21882
+ } = se(En), i = tt(null), [u, s] = ce(!1), l = g3(a, 5e3), c = () => {
21895
21883
  l();
21896
21884
  }, d = (f) => {
21897
21885
  f.trim() !== "" && r(f);
@@ -21986,24 +21974,24 @@ const E3 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
21986
21974
  }];
21987
21975
  }, Qa = "privacy policy";
21988
21976
  function Cd() {
21989
- const { conversationScreen: e, primaryColor: t } = oe(Ye), { startLiveChat: n } = oe(En), { setMode: r } = oe(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = y3({}), [d, f] = ce(!1), { clearError: p, errors: h, setErrors: g } = T3(), m = cn(
21977
+ const { conversationScreen: e, primaryColor: t } = se(Ye), { startLiveChat: n } = se(En), { setMode: r } = se(nt), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = y3({}), [d, f] = ce(!1), { clearError: p, errors: h, setErrors: g } = T3(), m = cn(
21990
21978
  () => (s ?? "").split(Qa, 2),
21991
21979
  [s]
21992
21980
  ), y = () => {
21993
21981
  r(vt.XPERT);
21994
21982
  }, E = () => {
21995
- p("privacyCheck"), f((R) => !R);
21996
- }, P = (R, _) => {
21997
- const N = R.target.value;
21983
+ p("privacyCheck"), f((w) => !w);
21984
+ }, P = (w, _) => {
21985
+ const N = w.target.value;
21998
21986
  p(_), c(_, N);
21999
21987
  }, M = () => {
22000
21988
  W() && n(l);
22001
21989
  };
22002
- Ne(() => {
21990
+ Re(() => {
22003
21991
  (!a || a.length === 0) && n();
22004
21992
  }, [a, n]);
22005
21993
  const W = () => {
22006
- const R = a.reduce((_, N) => {
21994
+ const w = a.reduce((_, N) => {
22007
21995
  const { key: V, validations: H = [] } = N, te = l[V];
22008
21996
  if (!te) return { ..._, [V]: "Required" };
22009
21997
  if ((H == null ? void 0 : H.length) > 0)
@@ -22017,22 +22005,22 @@ function Cd() {
22017
22005
  }
22018
22006
  return _;
22019
22007
  }, {});
22020
- return !d && s && (R.privacyCheck = "Required"), g(R), Object.keys(R).length === 0;
22008
+ return !d && s && (w.privacyCheck = "Required"), g(w), Object.keys(w).length === 0;
22021
22009
  };
22022
22010
  return /* @__PURE__ */ S.jsxs("div", { className: "live-chat-form", children: [
22023
22011
  i && /* @__PURE__ */ S.jsx("p", { children: i }),
22024
- (a ?? []).map(({ key: R, name: _ }) => /* @__PURE__ */ S.jsxs(k0, { children: [
22012
+ (a ?? []).map(({ key: w, name: _ }) => /* @__PURE__ */ S.jsxs(k0, { children: [
22025
22013
  /* @__PURE__ */ S.jsx(
22026
22014
  "input",
22027
22015
  {
22028
- className: `live-chat-form-input ${h[R] ? "error" : ""}`,
22016
+ className: `live-chat-form-input ${h[w] ? "error" : ""}`,
22029
22017
  name: _,
22030
22018
  placeholder: _,
22031
- onChange: (N) => P(N, R)
22019
+ onChange: (N) => P(N, w)
22032
22020
  }
22033
22021
  ),
22034
- h[R] && /* @__PURE__ */ S.jsx("p", { className: "live-chat-form-error", children: h[R] })
22035
- ] }, R)),
22022
+ h[w] && /* @__PURE__ */ S.jsx("p", { className: "live-chat-form-error", children: h[w] })
22023
+ ] }, w)),
22036
22024
  s && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
22037
22025
  /* @__PURE__ */ S.jsx(
22038
22026
  "div",
@@ -22077,7 +22065,7 @@ function Cd() {
22077
22065
  },
22078
22066
  type: "checkbox",
22079
22067
  onChange: E,
22080
- onKeyDown: (R) => R.key === "Enter" && E()
22068
+ onKeyDown: (w) => w.key === "Enter" && E()
22081
22069
  }
22082
22070
  ),
22083
22071
  /* @__PURE__ */ S.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
@@ -22100,7 +22088,7 @@ function Cd() {
22100
22088
  }
22101
22089
  Cd.propTypes = {};
22102
22090
  function Ad() {
22103
- const { step: e } = oe(En);
22091
+ const { step: e } = se(En);
22104
22092
  return /* @__PURE__ */ S.jsxs("div", { className: "live-chat-container", children: [
22105
22093
  e === $t.FORM && /* @__PURE__ */ S.jsx(Cd, {}),
22106
22094
  e === $t.CONNECTING && /* @__PURE__ */ S.jsx(Td, {}),
@@ -22117,17 +22105,17 @@ function Sd({
22117
22105
  style: i = {}
22118
22106
  }) {
22119
22107
  var g;
22120
- const { proactiveMessage: u } = oe(Ye), [s, l] = ce(!0), [c, d] = ce(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((g = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : g.includes("C0003"))) && lt.get(t) === void 0;
22121
- Ne(() => {
22108
+ const { proactiveMessage: u } = se(Ye), [s, l] = ce(!0), [c, d] = ce(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((g = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : g.includes("C0003"))) && lt.get(t) === void 0;
22109
+ Re(() => {
22122
22110
  var m;
22123
22111
  (m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
22124
22112
  var y;
22125
22113
  !((y = window == null ? void 0 : window.OnetrustActiveGroups) != null && y.includes("C0003")) && lt.get(t) !== void 0 && lt.remove(t);
22126
22114
  });
22127
- }, [t]), Ne(() => {
22115
+ }, [t]), Re(() => {
22128
22116
  var m;
22129
22117
  a || (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && h(t, 1, 1);
22130
- }, [t, a]), Ne(() => {
22118
+ }, [t, a]), Re(() => {
22131
22119
  if (u != null && u.enabled && (u == null ? void 0 : u.delayMs) > 0) {
22132
22120
  const m = setTimeout(() => {
22133
22121
  d(!0);
@@ -22204,9 +22192,9 @@ function _3(e, t, n) {
22204
22192
  },
22205
22193
  [n]
22206
22194
  );
22207
- Ne(() => (e && window.addEventListener("message", r), () => {
22195
+ Re(() => (e && window.addEventListener("message", r), () => {
22208
22196
  window.removeEventListener("message", r);
22209
- }), [e, r]), Ne(() => {
22197
+ }), [e, r]), Re(() => {
22210
22198
  let a;
22211
22199
  return e && (a = document.createElement("style"), document.head.appendChild(a), ((u) => {
22212
22200
  a.innerHTML = `
@@ -22228,7 +22216,7 @@ function _3(e, t, n) {
22228
22216
  }
22229
22217
  function C3(e) {
22230
22218
  const [t, n] = ce(null);
22231
- return Ne(() => {
22219
+ return Re(() => {
22232
22220
  try {
22233
22221
  (() => {
22234
22222
  var a, i, u;
@@ -22253,7 +22241,7 @@ function C3(e) {
22253
22241
  }, [e]), t;
22254
22242
  }
22255
22243
  function A3(e) {
22256
- Ne(() => {
22244
+ Re(() => {
22257
22245
  const t = () => document.visibilityState === "visible" && e();
22258
22246
  return document.addEventListener("visibilitychange", t), () => {
22259
22247
  document.removeEventListener("visibilitychange", t);
@@ -22293,24 +22281,24 @@ function xd({ submitEventExternal: e = null }) {
22293
22281
  userTracking: s,
22294
22282
  webExperimentation: l,
22295
22283
  widgetMode: c
22296
- } = oe(Ye), {
22284
+ } = se(Ye), {
22297
22285
  contentRef: d,
22298
22286
  onFeedbackSelection: f,
22299
22287
  onMessageSent: p,
22300
22288
  pushXpertMessage: h,
22301
22289
  setXpertMessages: g,
22302
22290
  xpertMessages: m
22303
- } = oe(Zt), {
22291
+ } = se(Zt), {
22304
22292
  isMobile: y,
22305
22293
  mode: E,
22306
22294
  setDisableScroll: P,
22307
22295
  setHasError: M,
22308
22296
  setHasNewMessage: W,
22309
- setIsNormalSize: R,
22297
+ setIsNormalSize: w,
22310
22298
  setLoading: _,
22311
22299
  setStreaming: N
22312
- } = oe(Ze), [, V] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [$, L] = ce(!1), [I, w] = ce(!1), B = te || !c, G = nt(null), j = nt(null), q = lt.get(`${a}-test`) === "1";
22313
- Ne(() => {
22300
+ } = se(nt), [, V] = ce(!1), [, H] = ce(!1), [te, Y] = ce(!1), [$, L] = ce(!1), [I, R] = ce(!1), B = te || !c, G = tt(null), j = tt(null), q = lt.get(`${a}-test`) === "1";
22301
+ Re(() => {
22314
22302
  E === vt.XPERT && B && G.current && G.current.focus();
22315
22303
  }, [E, B]), _3(
22316
22304
  (en = r == null ? void 0 : r.liveChat) == null ? void 0 : en.enabled,
@@ -22343,11 +22331,11 @@ function xd({ submitEventExternal: e = null }) {
22343
22331
  return;
22344
22332
  }
22345
22333
  if (!await (async (re, ue = 1e4, pe = 200) => {
22346
- let Re = 0;
22334
+ let we = 0;
22347
22335
  for (; !re(); ) {
22348
- if (Re >= ue)
22336
+ if (we >= ue)
22349
22337
  return !1;
22350
- await new Promise((Xe) => setTimeout(Xe, pe)), Re += pe;
22338
+ await new Promise((Xe) => setTimeout(Xe, pe)), we += pe;
22351
22339
  }
22352
22340
  return !0;
22353
22341
  })(
@@ -22358,7 +22346,7 @@ function xd({ submitEventExternal: e = null }) {
22358
22346
  }
22359
22347
  try {
22360
22348
  let re = Ls(a);
22361
- const ue = (F = t == null ? void 0 : t.baseUrl) != null && F.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", pe = `conversation_id=${re}&client_id=${(X = t == null ? void 0 : t.payloadParams) == null ? void 0 : X.client_id}`, Re = await fetch(
22349
+ const ue = (F = t == null ? void 0 : t.baseUrl) != null && F.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", pe = `conversation_id=${re}&client_id=${(X = t == null ? void 0 : t.payloadParams) == null ? void 0 : X.client_id}`, we = await fetch(
22362
22350
  `${t.baseUrl}${ue}?${pe}`,
22363
22351
  {
22364
22352
  method: "GET",
@@ -22367,15 +22355,15 @@ function xd({ submitEventExternal: e = null }) {
22367
22355
  }
22368
22356
  }
22369
22357
  );
22370
- if (!Re.ok)
22371
- throw new Error(`HTTPError: ${Re.status} ${Re.statusText}`);
22372
- const Xe = await Re.json();
22358
+ if (!we.ok)
22359
+ throw new Error(`HTTPError: ${we.status} ${we.statusText}`);
22360
+ const Xe = await we.json();
22373
22361
  g(
22374
- Xe.map((ke) => ({
22375
- ...ke,
22362
+ Xe.map((Ne) => ({
22363
+ ...Ne,
22376
22364
  disableFeedback: !0,
22377
- toolCalls: ke.tool_calls,
22378
- toolCallId: ke.tool_call_id
22365
+ toolCalls: Ne.tool_calls,
22366
+ toolCallId: Ne.tool_call_id
22379
22367
  }))
22380
22368
  ), P(!0), W(!0);
22381
22369
  } catch (re) {
@@ -22386,7 +22374,7 @@ function xd({ submitEventExternal: e = null }) {
22386
22374
  }, le = ((yn = r == null ? void 0 : r.conversationHistory) == null ? void 0 : yn.enabled) && B && !$;
22387
22375
  A3(
22388
22376
  () => le && ne()
22389
- ), Ne(() => {
22377
+ ), Re(() => {
22390
22378
  let ie, Ee;
22391
22379
  if (n)
22392
22380
  return s != null && s.enabled && (ie = setInterval(() => {
@@ -22402,7 +22390,7 @@ function xd({ submitEventExternal: e = null }) {
22402
22390
  e,
22403
22391
  s == null ? void 0 : s.enabled,
22404
22392
  s == null ? void 0 : s.prefix
22405
- ]), Ne(() => {
22393
+ ]), Re(() => {
22406
22394
  let ie, Ee;
22407
22395
  const Se = () => {
22408
22396
  l != null && l.enabled && window.optimizely && window.experiments && (clearInterval(ie), clearTimeout(Ee), H(!0));
@@ -22432,7 +22420,7 @@ function xd({ submitEventExternal: e = null }) {
22432
22420
  };
22433
22421
  if (C3(l == null ? void 0 : l.experimentName), !n || l != null && l.enabled && !(l != null && l.experimentName) && !q || s != null && s.enabled && (s != null && s.prefix) && !((Nt = j == null ? void 0 : j.current) != null && Nt.track) && !e)
22434
22422
  return null;
22435
- const se = (ie, Ee) => {
22423
+ const oe = (ie, Ee) => {
22436
22424
  b({
22437
22425
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
22438
22426
  payload: {
@@ -22470,31 +22458,31 @@ function xd({ submitEventExternal: e = null }) {
22470
22458
  const X = await ie.json(), re = Array.isArray(X) ? X : [X];
22471
22459
  re.forEach(
22472
22460
  ({
22473
- content: ke,
22474
- live_agent: et,
22461
+ content: Ne,
22462
+ live_agent: Je,
22475
22463
  role: it,
22476
22464
  tool_calls: Oe,
22477
22465
  tool_call_id: rt
22478
22466
  }) => {
22479
22467
  h({
22480
- content: ke,
22468
+ content: Ne,
22481
22469
  createdAt: /* @__PURE__ */ new Date(),
22482
- liveAgent: et,
22470
+ liveAgent: Je,
22483
22471
  role: it,
22484
22472
  toolCalls: Oe,
22485
22473
  toolCallId: rt
22486
22474
  });
22487
22475
  }
22488
22476
  );
22489
- const ue = re.filter(({ content: ke }) => !!ke), pe = ue.map((ke) => ke.content ?? "").join("");
22490
- se(pe, Ee);
22491
- const Re = /* @__PURE__ */ new Date(), Xe = ks(JSON.stringify(qe));
22477
+ const ue = re.filter(({ content: Ne }) => !!Ne), pe = ue.map((Ne) => Ne.content ?? "").join("");
22478
+ oe(pe, Ee);
22479
+ const we = /* @__PURE__ */ new Date(), Xe = ks(JSON.stringify(qe));
22492
22480
  return ye({
22493
22481
  conversationByteSize: Xe,
22494
- conversationSize: ue.length + m.filter(({ content: ke }) => !!ke).length + 1,
22482
+ conversationSize: ue.length + m.filter(({ content: Ne }) => !!Ne).length + 1,
22495
22483
  userInputMessage: Se,
22496
22484
  apiResponseMessage: pe,
22497
- elapsedSeconds: Ns(F, Re),
22485
+ elapsedSeconds: Ns(F, we),
22498
22486
  isStreaming: !1
22499
22487
  }), re;
22500
22488
  }, Ae = async (ie, Ee, Se, qe, F) => {
@@ -22503,9 +22491,9 @@ function xd({ submitEventExternal: e = null }) {
22503
22491
  let re = [], ue = 0;
22504
22492
  const pe = /* @__PURE__ */ new Date();
22505
22493
  for (; ; ) {
22506
- const { value: ke, done: et } = await ie.read();
22507
- if (et) break;
22508
- const it = X.decode(ke, { stream: !0 });
22494
+ const { value: Ne, done: Je } = await ie.read();
22495
+ if (Je) break;
22496
+ const it = X.decode(Ne, { stream: !0 });
22509
22497
  try {
22510
22498
  const Oe = it.match(/\[.*?\](?=\[|$)/gs), rt = JSON.parse(Oe[Oe.length - 1]).map(
22511
22499
  (ze) => ({
@@ -22546,8 +22534,8 @@ function xd({ submitEventExternal: e = null }) {
22546
22534
  } catch {
22547
22535
  }
22548
22536
  }
22549
- const Re = ((Xe = re.find((ke) => ke.content)) == null ? void 0 : Xe.content) || "";
22550
- return se(Re, Ee), re;
22537
+ const we = ((Xe = re.find((Ne) => Ne.content)) == null ? void 0 : Xe.content) || "";
22538
+ return oe(we, Ee), re;
22551
22539
  }, xe = async (ie, Ee, Se, qe, F) => {
22552
22540
  N(!0);
22553
22541
  const X = ie.body.getReader(), re = await Ae(
@@ -22625,7 +22613,7 @@ function xd({ submitEventExternal: e = null }) {
22625
22613
  _(!1), M(!0), console.error(Se);
22626
22614
  }
22627
22615
  }, ve = () => {
22628
- L(!1), Y(!0), R(!0), ne(), b({
22616
+ L(!1), Y(!0), w(!0), ne(), b({
22629
22617
  name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
22630
22618
  payload: {
22631
22619
  category: "2u",
@@ -22633,7 +22621,7 @@ function xd({ submitEventExternal: e = null }) {
22633
22621
  isTestUser: q
22634
22622
  }
22635
22623
  });
22636
- }, Je = (ie) => {
22624
+ }, Ze = (ie) => {
22637
22625
  b({
22638
22626
  name: `${s.prefix}.bi.xpert.chatbot.${ie ? "normal" : "expand"}.size.button.clicked`,
22639
22627
  payload: {
@@ -22641,9 +22629,9 @@ function xd({ submitEventExternal: e = null }) {
22641
22629
  label: "xpert-chatbot",
22642
22630
  isTestUser: q
22643
22631
  }
22644
- }), R(ie);
22632
+ }), w(ie);
22645
22633
  }, ft = () => {
22646
- Y(!0), R(!0), ne(), b({
22634
+ Y(!0), w(!0), ne(), b({
22647
22635
  name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
22648
22636
  payload: {
22649
22637
  category: "2u",
@@ -22661,7 +22649,7 @@ function xd({ submitEventExternal: e = null }) {
22661
22649
  }
22662
22650
  });
22663
22651
  }, Un = () => {
22664
- Y(!1), w(!1), b({
22652
+ Y(!1), R(!1), b({
22665
22653
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
22666
22654
  payload: {
22667
22655
  category: "2u",
@@ -22750,9 +22738,9 @@ function xd({ submitEventExternal: e = null }) {
22750
22738
  Ed,
22751
22739
  {
22752
22740
  onClose: Un,
22753
- handleResizeButtonClick: Je,
22741
+ handleResizeButtonClick: Ze,
22754
22742
  isMounted: I,
22755
- setIsMounted: w
22743
+ setIsMounted: R
22756
22744
  }
22757
22745
  ),
22758
22746
  /* @__PURE__ */ S.jsx(f3, {}),
@@ -22867,7 +22855,7 @@ Od.propTypes = {
22867
22855
  };
22868
22856
  function O3() {
22869
22857
  let e = document.getElementById("xpert-chatbot-container");
22870
- e || (e = document.createElement("div"), e.setAttribute("id", "xpert-chatbot-container"), document.body.appendChild(e), R0(
22858
+ e || (e = document.createElement("div"), e.setAttribute("id", "xpert-chatbot-container"), document.body.appendChild(e), w0(
22871
22859
  /* @__PURE__ */ S.jsx(L0, { children: /* @__PURE__ */ S.jsx(
22872
22860
  Od,
22873
22861
  {