@2uinc/frontend-component-xpert-chatbot 1.33.2 → 1.33.4

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 +576 -553
  2. package/package.json +1 -1
@@ -64,8 +64,8 @@ function y0() {
64
64
  return ba = a() ? Object.assign : function(i, u) {
65
65
  for (var s, l = r(i), c, d = 1; d < arguments.length; d++) {
66
66
  s = Object(arguments[d]);
67
- for (var f in s)
68
- t.call(s, f) && (l[f] = s[f]);
67
+ for (var h in s)
68
+ t.call(s, h) && (l[h] = s[h]);
69
69
  if (e) {
70
70
  c = e(s);
71
71
  for (var p = 0; p < c.length; p++)
@@ -94,11 +94,11 @@ function _0() {
94
94
  }
95
95
  var r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = Object.prototype.hasOwnProperty, i = { key: !0, ref: !0, __self: !0, __source: !0 };
96
96
  function u(s, l, c) {
97
- var d, f = {}, p = null, h = null;
98
- c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (h = l.ref);
99
- for (d in l) a.call(l, d) && !i.hasOwnProperty(d) && (f[d] = l[d]);
100
- if (s && s.defaultProps) for (d in l = s.defaultProps, l) f[d] === void 0 && (f[d] = l[d]);
101
- return { $$typeof: t, type: s, key: p, ref: h, props: f, _owner: r.current };
97
+ var d, h = {}, p = null, f = null;
98
+ c !== void 0 && (p = "" + c), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (f = l.ref);
99
+ for (d in l) a.call(l, d) && !i.hasOwnProperty(d) && (h[d] = l[d]);
100
+ if (s && s.defaultProps) for (d in l = s.defaultProps, l) h[d] === void 0 && (h[d] = l[d]);
101
+ return { $$typeof: t, type: s, key: p, ref: f, props: h, _owner: r.current };
102
102
  }
103
103
  return yn.jsx = u, yn.jsxs = u, yn;
104
104
  }
@@ -194,8 +194,8 @@ function x0() {
194
194
  function n() {
195
195
  }
196
196
  return n.resetWarningCache = t, ya = function() {
197
- function r(u, s, l, c, d, f) {
198
- if (f !== e) {
197
+ function r(u, s, l, c, d, h) {
198
+ if (h !== e) {
199
199
  var p = new Error(
200
200
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
201
201
  );
@@ -243,8 +243,8 @@ Xn.exports;
243
243
  var Su;
244
244
  function O0() {
245
245
  return Su || (Su = 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]", T = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", E = "[object Null]", P = "[object Object]", F = "[object Proxy]", X = "[object RegExp]", D = "[object Set]", y = "[object String]", k = "[object Undefined]", W = "[object WeakMap]", M = "[object ArrayBuffer]", Q = "[object DataView]", q = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", H = "[object Uint8Array]", V = "[object Uint8ClampedArray]", j = "[object Uint16Array]", z = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, S = {};
247
- S[q] = S[$] = S[L] = S[I] = S[R] = S[H] = S[V] = S[j] = S[z] = !0, S[s] = S[l] = S[M] = S[d] = S[Q] = S[f] = S[p] = S[h] = S[m] = S[_] = S[P] = S[X] = S[D] = S[y] = S[W] = !1;
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]", h = "[object Date]", p = "[object Error]", f = "[object Function]", T = "[object GeneratorFunction]", m = "[object Map]", _ = "[object Number]", E = "[object Null]", P = "[object Object]", F = "[object Proxy]", X = "[object RegExp]", D = "[object Set]", y = "[object String]", k = "[object Undefined]", W = "[object WeakMap]", M = "[object ArrayBuffer]", Q = "[object DataView]", q = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", R = "[object Int32Array]", H = "[object Uint8Array]", V = "[object Uint8ClampedArray]", j = "[object Uint16Array]", z = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, S = {};
247
+ S[q] = S[$] = S[L] = S[I] = S[R] = S[H] = S[V] = S[j] = S[z] = !0, S[s] = S[l] = S[M] = S[d] = S[Q] = S[h] = S[p] = S[f] = S[m] = S[_] = S[P] = S[X] = S[D] = S[y] = S[W] = !1;
248
248
  var oe = typeof _r == "object" && _r && _r.Object === Object && _r, Te = typeof self == "object" && self && self.Object === Object && self, me = oe || Te || Function("return this")(), xe = t && !t.nodeType && t, ve = xe && !0 && e && !e.nodeType && e, Me = ve && ve.exports === xe, Oe = Me && oe.process, We = function() {
249
249
  try {
250
250
  var A = ve && ve.require && ve.require("util").types;
@@ -672,7 +672,7 @@ function O0() {
672
672
  if (!Jt(A))
673
673
  return !1;
674
674
  var N = Er(A);
675
- return N == h || N == T || N == c || N == F;
675
+ return N == f || N == T || N == c || N == F;
676
676
  }
677
677
  function hu(A) {
678
678
  return typeof A == "number" && A > -1 && A % 1 == 0 && A <= u;
@@ -771,6 +771,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
771
771
  },
772
772
  container: null
773
773
  },
774
+ input: {
775
+ maxLength: 150
776
+ },
774
777
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with? I'm available to answer questions about technical issues, navigating the Digital Campus, or using Digital Campus features.",
775
778
  prompts: null,
776
779
  userMessageBubble: {
@@ -884,6 +887,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
884
887
  },
885
888
  container: null
886
889
  },
890
+ input: {
891
+ maxLength: 150
892
+ },
887
893
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with? I'm available to answer questions about technical issues, navigating the Digital Campus, or using Digital Campus features.",
888
894
  prompts: null,
889
895
  userMessageBubble: {
@@ -1002,6 +1008,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1002
1008
  }
1003
1009
  }
1004
1010
  },
1011
+ input: {
1012
+ maxLength: 150
1013
+ },
1005
1014
  systemMessage: null,
1006
1015
  prompts: null,
1007
1016
  userMessageBubble: null,
@@ -1085,6 +1094,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1085
1094
  }
1086
1095
  }
1087
1096
  },
1097
+ input: {
1098
+ maxLength: 150
1099
+ },
1088
1100
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with?",
1089
1101
  prompts: null,
1090
1102
  userMessageBubble: {
@@ -1183,6 +1195,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1183
1195
  },
1184
1196
  container: null
1185
1197
  },
1198
+ input: {
1199
+ maxLength: 150
1200
+ },
1186
1201
  systemMessage: "Hi there! šŸ‘‹ I’m Xpert. How may I assist you in navigating your Online Learning Campus today?",
1187
1202
  prompts: null,
1188
1203
  userMessageBubble: {
@@ -1270,6 +1285,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1270
1285
  },
1271
1286
  container: null
1272
1287
  },
1288
+ input: {
1289
+ maxLength: 150
1290
+ },
1273
1291
  systemMessage: "Hi there! šŸ‘‹ I'm Xpert, what can I help you with? I'm available to answer questions about things like billing, registration, and payment options.",
1274
1292
  prompts: null,
1275
1293
  userMessageBubble: {
@@ -1358,6 +1376,9 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1358
1376
  },
1359
1377
  container: null
1360
1378
  },
1379
+ input: {
1380
+ maxLength: 150
1381
+ },
1361
1382
  systemMessage: null,
1362
1383
  prompts: [
1363
1384
  { id: 1, text: "What's the application process?" },
@@ -1432,8 +1453,8 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1432
1453
  );
1433
1454
  return;
1434
1455
  }
1435
- const h = await p.json();
1436
- l({ ...h, id: t });
1456
+ const f = await p.json();
1457
+ l({ ...f, id: t });
1437
1458
  } catch (p) {
1438
1459
  console.error("Unexpected error loading the chatbot configuration", p);
1439
1460
  }
@@ -1451,13 +1472,13 @@ const xs = /* @__PURE__ */ Dt(I0), N0 = {
1451
1472
  const d = or(
1452
1473
  () => xs({ id: "generic", ...s }, n ?? {}),
1453
1474
  [n, s]
1454
- ), f = or(() => t || r ? i : !!n, [t, i, n, r]);
1475
+ ), h = or(() => t || r ? i : !!n, [t, i, n, r]);
1455
1476
  return /* @__PURE__ */ v.jsx(
1456
1477
  He.Provider,
1457
1478
  {
1458
1479
  value: {
1459
1480
  ...d,
1460
- configurationLoaded: f,
1481
+ configurationLoaded: h,
1461
1482
  widgetMode: a
1462
1483
  },
1463
1484
  children: e
@@ -1588,8 +1609,8 @@ const Gt = Wr({}), Os = x.shape({
1588
1609
  onFeedbackSelection: n,
1589
1610
  onMessageSent: r
1590
1611
  }) => {
1591
- const a = pt(null), { id: i } = se(He), [u, s] = de(null), [l, c] = de(!1), [d, f] = de([]), p = Et(() => {
1592
- s(null), c(!1), f([]), ft.remove(`${i}-conversation-history-id`);
1612
+ const a = pt(null), { id: i } = se(He), [u, s] = de(null), [l, c] = de(!1), [d, h] = de([]), p = Et(() => {
1613
+ s(null), c(!1), h([]), ft.remove(`${i}-conversation-history-id`);
1593
1614
  }, [i, s]), T = {
1594
1615
  contentRef: a,
1595
1616
  conversationId: u,
@@ -1597,10 +1618,10 @@ const Gt = Wr({}), Os = x.shape({
1597
1618
  deleteConversationHistory: p,
1598
1619
  onFeedbackSelection: n,
1599
1620
  onMessageSent: r,
1600
- pushXpertMessage: (m) => f((_) => [..._, m]),
1621
+ pushXpertMessage: (m) => h((_) => [..._, m]),
1601
1622
  setConversationId: s,
1602
1623
  setDeleteConversationModal: c,
1603
- setXpertMessages: f,
1624
+ setXpertMessages: h,
1604
1625
  xpertMessages: t ?? d
1605
1626
  };
1606
1627
  return /* @__PURE__ */ v.jsx(Gt.Provider, { value: T, children: e });
@@ -1625,14 +1646,14 @@ const xu = 991, B0 = () => {
1625
1646
  LIVECHAT: "LIVECHAT",
1626
1647
  XPERT: "XPERT"
1627
1648
  }, Ze = Wr({}), Ns = ({ children: e }) => {
1628
- const [t, n] = de(!1), [r, a] = de(!1), [i, u] = de(!1), [s, l] = de(!0), [c, d] = de(!1), [f, p] = de(jt.XPERT), h = B0(), T = {
1649
+ const [t, n] = de(!1), [r, a] = de(!1), [i, u] = de(!1), [s, l] = de(!0), [c, d] = de(!1), [h, p] = de(jt.XPERT), f = B0(), T = {
1629
1650
  disabledScroll: t,
1630
1651
  hasError: r,
1631
1652
  hasNewMessage: i,
1632
- isMobile: h,
1633
- isNormalSize: s || h,
1653
+ isMobile: f,
1654
+ isNormalSize: s || f,
1634
1655
  loading: c,
1635
- mode: f,
1656
+ mode: h,
1636
1657
  setDisableScroll: n,
1637
1658
  setHasError: a,
1638
1659
  setHasNewMessage: u,
@@ -1727,10 +1748,10 @@ const j0 = 1500, q0 = `The parent container is wider than the chatbot launch but
1727
1748
  eyes follow your mouse when you hover near it.`, Ls = ({
1728
1749
  handleFloatingActionButtonClick: e = null
1729
1750
  }) => {
1730
- var h, T, m, _;
1751
+ var f, T, m, _;
1731
1752
  const { id: t, launchButton: n } = se(He), { isMobile: r } = se(Ze), a = !ft.get(
1732
1753
  `${t}-proactive-message-xpert-chatbot`
1733
- ), i = pt(null), u = pt(!1), s = a ? (h = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : h.delayMs : ((T = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : T.delayMs) * 2, [l, c] = de(!1), d = window.matchMedia(
1754
+ ), i = pt(null), u = pt(!1), s = a ? (f = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : f.delayMs : ((T = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : T.delayMs) * 2, [l, c] = de(!1), d = window.matchMedia(
1734
1755
  `(max-width: ${j0}px)`
1735
1756
  ).matches;
1736
1757
  Be(() => {
@@ -1759,7 +1780,7 @@ eyes follow your mouse when you hover near it.`, Ls = ({
1759
1780
  window.removeEventListener("mousemove", E);
1760
1781
  };
1761
1782
  }, [d]);
1762
- const f = () => {
1783
+ const h = () => {
1763
1784
  u.current = !0;
1764
1785
  }, p = () => {
1765
1786
  u.current = !1;
@@ -1770,7 +1791,7 @@ eyes follow your mouse when you hover near it.`, Ls = ({
1770
1791
  role: "region",
1771
1792
  "aria-label": "animated graduate region",
1772
1793
  className: d ? "" : "xpert_chatbot__animated_graduate__eyes_follow_mouse_region",
1773
- onMouseEnter: d ? null : f,
1794
+ onMouseEnter: d ? null : h,
1774
1795
  onMouseLeave: d ? null : p,
1775
1796
  children: [
1776
1797
  !d && /* @__PURE__ */ v.jsx("div", { className: "xpert_chatbot__a11y-sr-only", children: q0 }),
@@ -2000,13 +2021,13 @@ var ws = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2000
2021
  } else {
2001
2022
  var d = on.call(u, Fr);
2002
2023
  d && r.filter(u) && (n || !t.includes(u)) && a.push(u);
2003
- var f = u.shadowRoot || // check for an undisclosed shadow
2004
- typeof r.getShadowRoot == "function" && r.getShadowRoot(u), p = !Hr(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(u));
2005
- if (f && p) {
2006
- var h = e(f === !0 ? u.children : f.children, !0, r);
2007
- r.flatten ? a.push.apply(a, h) : a.push({
2024
+ var h = u.shadowRoot || // check for an undisclosed shadow
2025
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(u), p = !Hr(h, !1) && (!r.shadowRootFilter || r.shadowRootFilter(u));
2026
+ if (h && p) {
2027
+ var f = e(h === !0 ? u.children : h.children, !0, r);
2028
+ r.flatten ? a.push.apply(a, f) : a.push({
2008
2029
  scopeParent: u,
2009
- candidates: h
2030
+ candidates: f
2010
2031
  });
2011
2032
  } else
2012
2033
  i.unshift.apply(i, u.children);
@@ -2062,8 +2083,8 @@ var ws = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2062
2083
  if (r && r !== t) {
2063
2084
  var u, s, l;
2064
2085
  for (i = !!((u = a) !== null && u !== void 0 && (s = u.ownerDocument) !== null && s !== void 0 && s.contains(a) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !i && a; ) {
2065
- var c, d, f;
2066
- r = Br(a), a = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((d = a) !== null && d !== void 0 && (f = d.ownerDocument) !== null && f !== void 0 && f.contains(a));
2086
+ var c, d, h;
2087
+ r = Br(a), a = (c = r) === null || c === void 0 ? void 0 : c.host, i = !!((d = a) !== null && d !== void 0 && (h = d.ownerDocument) !== null && h !== void 0 && h.contains(a));
2067
2088
  }
2068
2089
  }
2069
2090
  return i;
@@ -2346,7 +2367,7 @@ var ku = {
2346
2367
  throw new Error("`".concat(L, "` as selector refers to no known node"));
2347
2368
  }
2348
2369
  return g;
2349
- }, f = function() {
2370
+ }, h = function() {
2350
2371
  var L = d("initialFocus", {
2351
2372
  hasFallback: !0
2352
2373
  });
@@ -2418,14 +2439,14 @@ var ku = {
2418
2439
  return L.posTabIndexesFound;
2419
2440
  }) && u.containerGroups.length > 1)
2420
2441
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
2421
- }, h = function(L) {
2442
+ }, f = function(L) {
2422
2443
  var I = L.activeElement;
2423
2444
  if (I)
2424
- return I.shadowRoot && I.shadowRoot.activeElement !== null ? h(I.shadowRoot) : I;
2445
+ return I.shadowRoot && I.shadowRoot.activeElement !== null ? f(I.shadowRoot) : I;
2425
2446
  }, T = function(L) {
2426
- if (L !== !1 && L !== h(document)) {
2447
+ if (L !== !1 && L !== f(document)) {
2427
2448
  if (!L || !L.focus) {
2428
- T(f());
2449
+ T(h());
2429
2450
  return;
2430
2451
  }
2431
2452
  L.focus({
@@ -2513,7 +2534,7 @@ var ku = {
2513
2534
  // outside the trap causing the focus escape we're trying to fix)
2514
2535
  target: u.mostRecentlyFocusedNode,
2515
2536
  isBackward: i.isKeyBackward(u.recentNavEvent)
2516
- })), T(H || u.mostRecentlyFocusedNode || f());
2537
+ })), T(H || u.mostRecentlyFocusedNode || h());
2517
2538
  }
2518
2539
  u.recentNavEvent = void 0;
2519
2540
  }, F = function(L) {
@@ -2534,8 +2555,8 @@ var ku = {
2534
2555
  }, k = function() {
2535
2556
  if (u.active)
2536
2557
  return ku.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Lu(function() {
2537
- T(f());
2538
- }) : T(f()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
2558
+ T(h());
2559
+ }) : T(h()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", E, {
2539
2560
  capture: !0,
2540
2561
  passive: !1
2541
2562
  }), r.addEventListener("touchstart", E, {
@@ -2558,7 +2579,7 @@ var ku = {
2558
2579
  return V === u.mostRecentlyFocusedNode;
2559
2580
  });
2560
2581
  });
2561
- I && T(f());
2582
+ I && T(h());
2562
2583
  }, Q = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(M) : void 0, q = function() {
2563
2584
  Q && (Q.disconnect(), u.active && !u.paused && u.containers.map(function(L) {
2564
2585
  Q.observe(L, {
@@ -2700,14 +2721,14 @@ function xf() {
2700
2721
  return W.__proto__ = M, W;
2701
2722
  }, d(y, k);
2702
2723
  }
2703
- function f(y, k, W) {
2724
+ function h(y, k, W) {
2704
2725
  return (k = p(k)) in y ? Object.defineProperty(y, k, { value: W, enumerable: !0, configurable: !0, writable: !0 }) : y[k] = W, y;
2705
2726
  }
2706
2727
  function p(y) {
2707
- var k = h(y, "string");
2728
+ var k = f(y, "string");
2708
2729
  return e(k) == "symbol" ? k : k + "";
2709
2730
  }
2710
- function h(y, k) {
2731
+ function f(y, k) {
2711
2732
  if (e(y) != "object" || !y) return y;
2712
2733
  var W = y[Symbol.toPrimitive];
2713
2734
  if (W !== void 0) {
@@ -2720,7 +2741,7 @@ function xf() {
2720
2741
  var T = Tt, m = /* @__PURE__ */ Ss(), _ = Af, E = _.createFocusTrap, P = Sf, F = P.isFocusable, X = /* @__PURE__ */ function(y) {
2721
2742
  function k(W) {
2722
2743
  var M;
2723
- t(this, k), M = a(this, k, [W]), f(M, "getNodeForOption", function($) {
2744
+ t(this, k), M = a(this, k, [W]), h(M, "getNodeForOption", function($) {
2724
2745
  var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
2725
2746
  if (typeof I == "function") {
2726
2747
  for (var R = arguments.length, H = new Array(R > 1 ? R - 1 : 0), V = 1; V < R; V++)
@@ -3368,12 +3389,12 @@ function qf(e, t) {
3368
3389
  ));
3369
3390
  });
3370
3391
  const u = r.width, s = r.height, l = a.width, c = a.height;
3371
- let d, f;
3372
- u === null ? (f = s === null ? "1em" : s === "auto" ? c : s, d = Mu(f, l / c)) : (d = u === "auto" ? l : u, f = s === null ? Mu(d, c / l) : s === "auto" ? c : s);
3373
- const p = {}, h = (m, _) => {
3392
+ let d, h;
3393
+ u === null ? (h = s === null ? "1em" : s === "auto" ? c : s, d = Mu(h, l / c)) : (d = u === "auto" ? l : u, h = s === null ? Mu(d, c / l) : s === "auto" ? c : s);
3394
+ const p = {}, f = (m, _) => {
3374
3395
  jf(_) || (p[m] = _.toString());
3375
3396
  };
3376
- h("width", d), h("height", f);
3397
+ f("width", d), f("height", h);
3377
3398
  const T = [a.left, a.top, l, c];
3378
3399
  return p.viewBox = T.join(" "), {
3379
3400
  attributes: p,
@@ -3572,12 +3593,12 @@ function nh(e) {
3572
3593
  const i = a.provider, u = a.prefix, s = a.name, l = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = l[u] || (l[u] = On(i, u));
3573
3594
  let d;
3574
3595
  s in c.icons ? d = t.loaded : u === "" || c.missing.has(s) ? d = t.missing : d = t.pending;
3575
- const f = {
3596
+ const h = {
3576
3597
  provider: i,
3577
3598
  prefix: u,
3578
3599
  name: s
3579
3600
  };
3580
- d.push(f);
3601
+ d.push(h);
3581
3602
  }), t;
3582
3603
  }
3583
3604
  function Js(e, t) {
@@ -3667,10 +3688,10 @@ function sh(e, t, n, r) {
3667
3688
  } else
3668
3689
  u = e.resources.slice(i).concat(e.resources.slice(0, i));
3669
3690
  const s = Date.now();
3670
- let l = "pending", c = 0, d, f = null, p = [], h = [];
3671
- typeof r == "function" && h.push(r);
3691
+ let l = "pending", c = 0, d, h = null, p = [], f = [];
3692
+ typeof r == "function" && f.push(r);
3672
3693
  function T() {
3673
- f && (clearTimeout(f), f = null);
3694
+ h && (clearTimeout(h), h = null);
3674
3695
  }
3675
3696
  function m() {
3676
3697
  l === "pending" && (l = "aborted"), T(), p.forEach((y) => {
@@ -3678,7 +3699,7 @@ function sh(e, t, n, r) {
3678
3699
  }), p = [];
3679
3700
  }
3680
3701
  function _(y, k) {
3681
- k && (h = []), typeof y == "function" && h.push(y);
3702
+ k && (f = []), typeof y == "function" && f.push(y);
3682
3703
  }
3683
3704
  function E() {
3684
3705
  return {
@@ -3692,7 +3713,7 @@ function sh(e, t, n, r) {
3692
3713
  };
3693
3714
  }
3694
3715
  function P() {
3695
- l = "failed", h.forEach((y) => {
3716
+ l = "failed", f.forEach((y) => {
3696
3717
  y(void 0, d);
3697
3718
  });
3698
3719
  }
@@ -3725,7 +3746,7 @@ function sh(e, t, n, r) {
3725
3746
  const Q = e.resources.indexOf(y.resource);
3726
3747
  Q !== -1 && Q !== e.index && (e.index = Q);
3727
3748
  }
3728
- l = "completed", h.forEach((Q) => {
3749
+ l = "completed", f.forEach((Q) => {
3729
3750
  Q(W);
3730
3751
  });
3731
3752
  }
@@ -3736,7 +3757,7 @@ function sh(e, t, n, r) {
3736
3757
  const y = u.shift();
3737
3758
  if (y === void 0) {
3738
3759
  if (p.length) {
3739
- f = setTimeout(() => {
3760
+ h = setTimeout(() => {
3740
3761
  T(), l === "pending" && (F(), P());
3741
3762
  }, e.timeout);
3742
3763
  return;
@@ -3751,7 +3772,7 @@ function sh(e, t, n, r) {
3751
3772
  X(k, W, M);
3752
3773
  }
3753
3774
  };
3754
- p.push(k), c++, f = setTimeout(D, e.rotate), n(y, t, k.callback);
3775
+ p.push(k), c++, h = setTimeout(D, e.rotate), n(y, t, k.callback);
3755
3776
  }
3756
3777
  return setTimeout(D), E;
3757
3778
  }
@@ -3769,8 +3790,8 @@ function el(e) {
3769
3790
  t,
3770
3791
  s,
3771
3792
  l,
3772
- (f, p) => {
3773
- r(), c && c(f, p);
3793
+ (h, p) => {
3794
+ r(), c && c(h, p);
3774
3795
  }
3775
3796
  );
3776
3797
  return n.push(d), d;
@@ -3882,15 +3903,15 @@ function hh(e, t) {
3882
3903
  }
3883
3904
  if (i) {
3884
3905
  a.forEach((d) => {
3885
- const f = i(d, r, n);
3886
- Uu(f, (p) => {
3887
- const h = p ? {
3906
+ const h = i(d, r, n);
3907
+ Uu(h, (p) => {
3908
+ const f = p ? {
3888
3909
  prefix: r,
3889
3910
  icons: {
3890
3911
  [d]: p
3891
3912
  }
3892
3913
  } : null;
3893
- qn(e, [d], h);
3914
+ qn(e, [d], f);
3894
3915
  });
3895
3916
  });
3896
3917
  return;
@@ -3904,8 +3925,8 @@ function hh(e, t) {
3904
3925
  return;
3905
3926
  }
3906
3927
  l.prepare(n, r, u).forEach((d) => {
3907
- ch(n, d, (f) => {
3908
- qn(e, d.icons, f);
3928
+ ch(n, d, (h) => {
3929
+ qn(e, d.icons, h);
3909
3930
  });
3910
3931
  });
3911
3932
  }));
@@ -3932,11 +3953,11 @@ const ph = (e, t) => {
3932
3953
  if (d === s && c === u)
3933
3954
  return;
3934
3955
  u = c, s = d, i.push(On(c, d));
3935
- const f = a[c] || (a[c] = /* @__PURE__ */ Object.create(null));
3936
- f[d] || (f[d] = []);
3956
+ const h = a[c] || (a[c] = /* @__PURE__ */ Object.create(null));
3957
+ h[d] || (h[d] = []);
3937
3958
  }), r.pending.forEach((l) => {
3938
- const { provider: c, prefix: d, name: f } = l, p = On(c, d), h = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
3939
- h.has(f) || (h.add(f), a[c][d].push(f));
3959
+ const { provider: c, prefix: d, name: h } = l, p = On(c, d), f = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
3960
+ f.has(h) || (f.add(h), a[c][d].push(h));
3940
3961
  }), i.forEach((l) => {
3941
3962
  const c = a[l.provider][l.prefix];
3942
3963
  c.length && hh(l, c);
@@ -4130,10 +4151,10 @@ const Ih = (e, t, n) => {
4130
4151
  __html: Sh(Vf(c.body, E ? () => E + "ID" + _++ : "iconifyReact"))
4131
4152
  }, Qa("svg", l);
4132
4153
  }
4133
- const { body: f, width: p, height: h } = e, T = i === "mask" || (i === "bg" ? !1 : f.indexOf("currentColor") !== -1), m = Th(f, {
4154
+ const { body: h, width: p, height: f } = e, T = i === "mask" || (i === "bg" ? !1 : h.indexOf("currentColor") !== -1), m = Th(h, {
4134
4155
  ...d,
4135
4156
  width: p + "",
4136
- height: h + ""
4157
+ height: f + ""
4137
4158
  });
4138
4159
  return l.style = {
4139
4160
  ...u,
@@ -4180,8 +4201,8 @@ if (typeof document < "u" && typeof window < "u") {
4180
4201
  }
4181
4202
  function rl(e) {
4182
4203
  const [t, n] = de(!!e.ssr), [r, a] = de({});
4183
- function i(h) {
4184
- if (h) {
4204
+ function i(f) {
4205
+ if (f) {
4185
4206
  const T = e.icon;
4186
4207
  if (typeof T == "object")
4187
4208
  return {
@@ -4201,15 +4222,15 @@ function rl(e) {
4201
4222
  }
4202
4223
  const [u, s] = de(i(!!e.ssr));
4203
4224
  function l() {
4204
- const h = r.callback;
4205
- h && (h(), a({}));
4225
+ const f = r.callback;
4226
+ f && (f(), a({}));
4206
4227
  }
4207
- function c(h) {
4208
- if (JSON.stringify(u) !== JSON.stringify(h))
4209
- return l(), s(h), !0;
4228
+ function c(f) {
4229
+ if (JSON.stringify(u) !== JSON.stringify(f))
4230
+ return l(), s(f), !0;
4210
4231
  }
4211
4232
  function d() {
4212
- var h;
4233
+ var f;
4213
4234
  const T = e.icon;
4214
4235
  if (typeof T == "object") {
4215
4236
  c({
@@ -4228,16 +4249,16 @@ function rl(e) {
4228
4249
  a({
4229
4250
  callback: _
4230
4251
  });
4231
- } else m && ((h = e.onLoad) === null || h === void 0 || h.call(e, T));
4252
+ } else m && ((f = e.onLoad) === null || f === void 0 || f.call(e, T));
4232
4253
  }
4233
4254
  Be(() => (n(!0), l), []), Be(() => {
4234
4255
  t && d();
4235
4256
  }, [e.icon, t]);
4236
- const { name: f, data: p } = u;
4257
+ const { name: h, data: p } = u;
4237
4258
  return p ? Ih({
4238
4259
  ...xi,
4239
4260
  ...p
4240
- }, e, f) : e.children ? e.children : Qa("span", {});
4261
+ }, e, h) : e.children ? e.children : Qa("span", {});
4241
4262
  }
4242
4263
  const Lt = Cs((e, t) => rl({
4243
4264
  ...e,
@@ -4256,14 +4277,15 @@ function Ni({
4256
4277
  inputRef: a,
4257
4278
  value: i
4258
4279
  }) {
4259
- const { primaryColor: u } = se(He), { hasError: s, hasNewMessage: l } = se(Ze);
4280
+ var p;
4281
+ const { conversationScreen: u, primaryColor: s } = se(He), { hasError: l, hasNewMessage: c } = se(Ze);
4260
4282
  Be(() => {
4261
4283
  var f;
4262
- (s || l) && ((f = a.current) == null || f.focus());
4263
- }, [l, s, a]);
4264
- const c = (f) => {
4284
+ (l || c) && ((f = a.current) == null || f.focus());
4285
+ }, [c, l, a]);
4286
+ const d = (f) => {
4265
4287
  f.key === "Enter" && i.trim() === "" || f.key === "Enter" && !f.shiftKey && (f.preventDefault(), n(i));
4266
- }, d = () => {
4288
+ }, h = () => {
4267
4289
  /* istanbul ignore next @preserve */
4268
4290
  var f;
4269
4291
  a.current && (a.current.style.height = "auto", a.current.style.height = `${Math.min(
@@ -4278,14 +4300,15 @@ function Ni({
4278
4300
  disabled: e,
4279
4301
  value: i,
4280
4302
  ref: a,
4281
- onInput: d,
4303
+ onInput: h,
4282
4304
  onChange: t,
4283
4305
  placeholder: "Write a message",
4284
4306
  cols: "5",
4285
4307
  rows: "1",
4286
- maxLength: "150",
4287
- onKeyDown: c,
4308
+ maxLength: ((p = u == null ? void 0 : u.input) == null ? void 0 : p.maxLength) ?? 5e3,
4309
+ onKeyDown: d,
4288
4310
  style: {
4311
+ margin: "0",
4289
4312
  borderRadius: "1rem",
4290
4313
  boxSizing: "border-box",
4291
4314
  fontFamily: "inherit",
@@ -4294,7 +4317,7 @@ function Ni({
4294
4317
  fontWeight: "300",
4295
4318
  lineHeight: "1.56rem",
4296
4319
  minHeight: "3.25rem",
4297
- outlineColor: u,
4320
+ outlineColor: s,
4298
4321
  padding: "12.5px 45px 12.5px 12.5px",
4299
4322
  resize: "none",
4300
4323
  width: "100%"
@@ -4447,15 +4470,15 @@ function ki({
4447
4470
  userTrackingName: s = "clicked"
4448
4471
  }) {
4449
4472
  var E, P, F, X;
4450
- const [l, c] = de(!0), { primaryColor: d, id: f, userTracking: p, conversationScreen: h } = se(He), T = Et(
4473
+ const [l, c] = de(!0), { primaryColor: d, id: h, userTracking: p, conversationScreen: f } = se(He), T = Et(
4451
4474
  (D) => {
4452
4475
  var y, k, W, M;
4453
- ((y = D == null ? void 0 : D.data) == null ? void 0 : y.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && ft.set(`${f}-live-chat-open`, 1, {
4476
+ ((y = D == null ? void 0 : D.data) == null ? void 0 : y.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && ft.set(`${h}-live-chat-open`, 1, {
4454
4477
  expires: 1,
4455
4478
  path: "/"
4456
- }), ((W = D == null ? void 0 : D.data) == null ? void 0 : W.type) === "connection" && ((M = D == null ? void 0 : D.data) == null ? void 0 : M.state) === "disconnected" && ft.remove(`${f}-live-chat-open`);
4479
+ }), ((W = D == null ? void 0 : D.data) == null ? void 0 : W.type) === "connection" && ((M = D == null ? void 0 : D.data) == null ? void 0 : M.state) === "disconnected" && ft.remove(`${h}-live-chat-open`);
4457
4480
  },
4458
- [f]
4481
+ [h]
4459
4482
  ), m = Et(
4460
4483
  (D) => {
4461
4484
  var y, k, W, M;
@@ -4466,22 +4489,22 @@ function ki({
4466
4489
  Be(() => {
4467
4490
  var k, W, M, Q;
4468
4491
  let D, y;
4469
- return (k = h == null ? void 0 : h.liveChat) != null && k.useOwnChat && (y = setTimeout(() => {
4492
+ return (k = f == null ? void 0 : f.liveChat) != null && k.useOwnChat && (y = setTimeout(() => {
4470
4493
  c(!1);
4471
- }, 3e3)), (W = h == null ? void 0 : h.liveChat) != null && W.enabled && !((M = h == null ? void 0 : h.liveChat) != null && M.useOwnChat) && (window.Five9ChatPlugin || (D = document.createElement("script"), D.type = "text/javascript", D.src = (Q = h == null ? void 0 : h.liveChat) == null ? void 0 : Q.sourceCode, D.async = !0, D.onload = () => {
4494
+ }, 3e3)), (W = f == null ? void 0 : f.liveChat) != null && W.enabled && !((M = f == null ? void 0 : f.liveChat) != null && M.useOwnChat) && (window.Five9ChatPlugin || (D = document.createElement("script"), D.type = "text/javascript", D.src = (Q = f == null ? void 0 : f.liveChat) == null ? void 0 : Q.sourceCode, D.async = !0, D.onload = () => {
4472
4495
  var q;
4473
- window.Five9ChatPlugin((q = h == null ? void 0 : h.liveChat) == null ? void 0 : q.options);
4496
+ window.Five9ChatPlugin((q = f == null ? void 0 : f.liveChat) == null ? void 0 : q.options);
4474
4497
  }, document.body.appendChild(D)), window.addEventListener("message", T), window.addEventListener("message", m), y = setTimeout(() => {
4475
4498
  c(!1);
4476
4499
  }, 3e3)), () => {
4477
4500
  var q;
4478
- (q = h == null ? void 0 : h.liveChat) != null && q.enabled && (window.removeEventListener("message", T), window.removeEventListener("message", m), clearTimeout(y));
4501
+ (q = f == null ? void 0 : f.liveChat) != null && q.enabled && (window.removeEventListener("message", T), window.removeEventListener("message", m), clearTimeout(y));
4479
4502
  };
4480
4503
  }, [
4481
- (E = h == null ? void 0 : h.liveChat) == null ? void 0 : E.enabled,
4482
- (P = h == null ? void 0 : h.liveChat) == null ? void 0 : P.options,
4483
- (F = h == null ? void 0 : h.liveChat) == null ? void 0 : F.sourceCode,
4484
- (X = h == null ? void 0 : h.liveChat) == null ? void 0 : X.useOwnChat,
4504
+ (E = f == null ? void 0 : f.liveChat) == null ? void 0 : E.enabled,
4505
+ (P = f == null ? void 0 : f.liveChat) == null ? void 0 : P.options,
4506
+ (F = f == null ? void 0 : f.liveChat) == null ? void 0 : F.sourceCode,
4507
+ (X = f == null ? void 0 : f.liveChat) == null ? void 0 : X.useOwnChat,
4485
4508
  T,
4486
4509
  m
4487
4510
  ]);
@@ -4494,7 +4517,7 @@ function ki({
4494
4517
  label: "xpert-chatbot",
4495
4518
  isTestUser: r
4496
4519
  }
4497
- }), a(!0), (D = h == null ? void 0 : h.liveChat) != null && D.useOwnChat || window.f9_postMessage({ type: "toggle" });
4520
+ }), a(!0), (D = f == null ? void 0 : f.liveChat) != null && D.useOwnChat || window.f9_postMessage({ type: "toggle" });
4498
4521
  };
4499
4522
  return /* @__PURE__ */ v.jsxs("div", { title: "Talk to a live agent at anytime.", style: t, children: [
4500
4523
  l && n && /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
@@ -5013,8 +5036,8 @@ function Yh() {
5013
5036
  }, i = function(c) {
5014
5037
  if (!c || t.call(c) !== "[object Object]")
5015
5038
  return !1;
5016
- var d = e.call(c, "constructor"), f = c.constructor && c.constructor.prototype && e.call(c.constructor.prototype, "isPrototypeOf");
5017
- if (c.constructor && !d && !f)
5039
+ var d = e.call(c, "constructor"), h = c.constructor && c.constructor.prototype && e.call(c.constructor.prototype, "isPrototypeOf");
5040
+ if (c.constructor && !d && !h)
5018
5041
  return !1;
5019
5042
  var p;
5020
5043
  for (p in c)
@@ -5036,11 +5059,11 @@ function Yh() {
5036
5059
  return c[d];
5037
5060
  };
5038
5061
  return Na = function l() {
5039
- var c, d, f, p, h, T, m = arguments[0], _ = 1, E = arguments.length, P = !1;
5062
+ var c, d, h, p, f, T, m = arguments[0], _ = 1, E = arguments.length, P = !1;
5040
5063
  for (typeof m == "boolean" && (P = m, m = arguments[1] || {}, _ = 2), (m == null || typeof m != "object" && typeof m != "function") && (m = {}); _ < E; ++_)
5041
5064
  if (c = arguments[_], c != null)
5042
5065
  for (d in c)
5043
- f = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (h = a(p))) ? (h ? (h = !1, T = f && a(f) ? f : []) : T = f && i(f) ? f : {}, u(m, { name: d, newValue: l(P, T, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
5066
+ h = s(m, d), p = s(c, d), m !== p && (P && p && (i(p) || (f = a(p))) ? (f ? (f = !1, T = h && a(h) ? h : []) : T = h && i(h) ? h : {}, u(m, { name: d, newValue: l(P, T, p) })) : typeof p < "u" && u(m, { name: d, newValue: p }));
5044
5067
  return m;
5045
5068
  }, Na;
5046
5069
  }
@@ -5063,13 +5086,13 @@ function Vh() {
5063
5086
  s(null, ...a);
5064
5087
  function s(l, ...c) {
5065
5088
  const d = e[++i];
5066
- let f = -1;
5089
+ let h = -1;
5067
5090
  if (l) {
5068
5091
  u(l);
5069
5092
  return;
5070
5093
  }
5071
- for (; ++f < a.length; )
5072
- (c[f] === null || c[f] === void 0) && (c[f] = a[f]);
5094
+ for (; ++h < a.length; )
5095
+ (c[h] === null || c[h] === void 0) && (c[h] = a[h]);
5073
5096
  a = c, d ? Wh(d, s)(...c) : u(null, ...c);
5074
5097
  }
5075
5098
  }
@@ -5112,7 +5135,7 @@ const Gh = sl().freeze(), ol = {}.hasOwnProperty;
5112
5135
  function sl() {
5113
5136
  const e = Vh(), t = [];
5114
5137
  let n = {}, r, a = -1;
5115
- return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = f, i.runSync = p, i.process = h, i.processSync = T, i;
5138
+ return i.data = u, i.Parser = void 0, i.Compiler = void 0, i.freeze = s, i.attachers = t, i.use = l, i.parse = c, i.stringify = d, i.run = h, i.runSync = p, i.process = f, i.processSync = T, i;
5116
5139
  function i() {
5117
5140
  const m = sl();
5118
5141
  let _ = -1;
@@ -5190,7 +5213,7 @@ function sl() {
5190
5213
  const E = zn(_), P = i.Compiler;
5191
5214
  return La("stringify", P), Ju(m), Zu(P, "compile") ? new P(m, E).compile() : P(m, E);
5192
5215
  }
5193
- function f(m, _, E) {
5216
+ function h(m, _, E) {
5194
5217
  if (Ju(m), i.freeze(), !E && typeof _ == "function" && (E = _, _ = void 0), !E)
5195
5218
  return new Promise(P);
5196
5219
  P(null, E);
@@ -5208,7 +5231,7 @@ function sl() {
5208
5231
  Xu(X), E = D, P = !0;
5209
5232
  }
5210
5233
  }
5211
- function h(m, _) {
5234
+ function f(m, _) {
5212
5235
  if (i.freeze(), ka("process", i.Parser), La("process", i.Compiler), !_)
5213
5236
  return new Promise(E);
5214
5237
  E(null, _);
@@ -5482,23 +5505,23 @@ function hp(e) {
5482
5505
  return t.containerState = {}, e.check(
5483
5506
  ro,
5484
5507
  d,
5485
- f
5508
+ h
5486
5509
  )(F);
5487
5510
  }
5488
5511
  function d(F) {
5489
5512
  return a && P(), E(r), p(F);
5490
5513
  }
5491
- function f(F) {
5514
+ function h(F) {
5492
5515
  return t.parser.lazy[t.now().line] = r !== n.length, u = t.now().offset, T(F);
5493
5516
  }
5494
5517
  function p(F) {
5495
5518
  return t.containerState = {}, e.attempt(
5496
5519
  ro,
5497
- h,
5520
+ f,
5498
5521
  T
5499
5522
  )(F);
5500
5523
  }
5501
- function h(F) {
5524
+ function f(F) {
5502
5525
  return r++, n.push([t.currentConstruct, t.containerState]), p(F);
5503
5526
  }
5504
5527
  function T(F) {
@@ -5601,10 +5624,10 @@ function mp(e, t) {
5601
5624
  if ((e[r][1]._close || e[n][1]._open) && (e[n][1].end.offset - e[n][1].start.offset) % 3 && !((e[r][1].end.offset - e[r][1].start.offset + e[n][1].end.offset - e[n][1].start.offset) % 3))
5602
5625
  continue;
5603
5626
  l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
5604
- const f = Object.assign({}, e[r][1].end), p = Object.assign({}, e[n][1].start);
5605
- io(f, -l), io(p, l), u = {
5627
+ const h = Object.assign({}, e[r][1].end), p = Object.assign({}, e[n][1].start);
5628
+ io(h, -l), io(p, l), u = {
5606
5629
  type: l > 1 ? "strongSequence" : "emphasisSequence",
5607
- start: f,
5630
+ start: h,
5608
5631
  end: Object.assign({}, e[r][1].end)
5609
5632
  }, s = {
5610
5633
  type: l > 1 ? "strongSequence" : "emphasisSequence",
@@ -5659,8 +5682,8 @@ function gp(e, t) {
5659
5682
  function s(l) {
5660
5683
  if (l === i)
5661
5684
  return e.consume(l), s;
5662
- const c = e.exit("attentionSequence"), d = ao(l), f = !d || d === 2 && a || n.includes(l), p = !a || a === 2 && d || n.includes(r);
5663
- return c._open = !!(i === 42 ? f : f && (a || !p)), c._close = !!(i === 42 ? p : p && (d || !f)), t(l);
5685
+ const c = e.exit("attentionSequence"), d = ao(l), h = !d || d === 2 && a || n.includes(l), p = !a || a === 2 && d || n.includes(r);
5686
+ return c._open = !!(i === 42 ? h : h && (a || !p)), c._close = !!(i === 42 ? p : p && (d || !h)), t(l);
5664
5687
  }
5665
5688
  }
5666
5689
  function io(e, t) {
@@ -5673,36 +5696,36 @@ const bp = {
5673
5696
  function Ep(e, t, n) {
5674
5697
  let r = 0;
5675
5698
  return a;
5676
- function a(h) {
5677
- return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
5699
+ function a(f) {
5700
+ return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), i;
5678
5701
  }
5679
- function i(h) {
5680
- return kt(h) ? (e.consume(h), u) : c(h);
5702
+ function i(f) {
5703
+ return kt(f) ? (e.consume(f), u) : c(f);
5681
5704
  }
5682
- function u(h) {
5683
- return h === 43 || h === 45 || h === 46 || ht(h) ? (r = 1, s(h)) : c(h);
5705
+ function u(f) {
5706
+ return f === 43 || f === 45 || f === 46 || ht(f) ? (r = 1, s(f)) : c(f);
5684
5707
  }
5685
- function s(h) {
5686
- return h === 58 ? (e.consume(h), r = 0, l) : (h === 43 || h === 45 || h === 46 || ht(h)) && r++ < 32 ? (e.consume(h), s) : (r = 0, c(h));
5708
+ function s(f) {
5709
+ return f === 58 ? (e.consume(f), r = 0, l) : (f === 43 || f === 45 || f === 46 || ht(f)) && r++ < 32 ? (e.consume(f), s) : (r = 0, c(f));
5687
5710
  }
5688
- function l(h) {
5689
- return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || li(h) ? n(h) : (e.consume(h), l);
5711
+ function l(f) {
5712
+ return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || li(f) ? n(f) : (e.consume(f), l);
5690
5713
  }
5691
- function c(h) {
5692
- return h === 64 ? (e.consume(h), d) : ip(h) ? (e.consume(h), c) : n(h);
5714
+ function c(f) {
5715
+ return f === 64 ? (e.consume(f), d) : ip(f) ? (e.consume(f), c) : n(f);
5693
5716
  }
5694
- function d(h) {
5695
- return ht(h) ? f(h) : n(h);
5717
+ function d(f) {
5718
+ return ht(f) ? h(f) : n(f);
5696
5719
  }
5697
- function f(h) {
5698
- return h === 46 ? (e.consume(h), r = 0, d) : h === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : p(h);
5720
+ function h(f) {
5721
+ return f === 46 ? (e.consume(f), r = 0, d) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : p(f);
5699
5722
  }
5700
- function p(h) {
5701
- if ((h === 45 || ht(h)) && r++ < 63) {
5702
- const T = h === 45 ? p : f;
5703
- return e.consume(h), T;
5723
+ function p(f) {
5724
+ if ((f === 45 || ht(f)) && r++ < 63) {
5725
+ const T = f === 45 ? p : h;
5726
+ return e.consume(f), T;
5704
5727
  }
5705
- return n(h);
5728
+ return n(f);
5706
5729
  }
5707
5730
  }
5708
5731
  const Kr = {
@@ -5792,21 +5815,21 @@ function Sp(e, t, n) {
5792
5815
  const r = this;
5793
5816
  let a = 0, i, u;
5794
5817
  return s;
5795
- function s(f) {
5796
- return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), l;
5818
+ function s(h) {
5819
+ return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(h), e.exit("characterReferenceMarker"), l;
5797
5820
  }
5798
- function l(f) {
5799
- return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), i = 31, u = ht, d(f));
5821
+ function l(h) {
5822
+ return h === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(h), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), i = 31, u = ht, d(h));
5800
5823
  }
5801
- function c(f) {
5802
- return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, u = up, d) : (e.enter("characterReferenceValue"), i = 7, u = ci, d(f));
5824
+ function c(h) {
5825
+ return h === 88 || h === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(h), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, u = up, d) : (e.enter("characterReferenceValue"), i = 7, u = ci, d(h));
5803
5826
  }
5804
- function d(f) {
5805
- if (f === 59 && a) {
5827
+ function d(h) {
5828
+ if (h === 59 && a) {
5806
5829
  const p = e.exit("characterReferenceValue");
5807
- return u === ht && !Ri(r.sliceSerialize(p)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5830
+ return u === ht && !Ri(r.sliceSerialize(p)) ? n(h) : (e.enter("characterReferenceMarker"), e.consume(h), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5808
5831
  }
5809
- return u(f) && a++ < i ? (e.consume(f), d) : n(f);
5832
+ return u(h) && a++ < i ? (e.consume(h), d) : n(h);
5810
5833
  }
5811
5834
  }
5812
5835
  const oo = {
@@ -5832,23 +5855,23 @@ function xp(e, t, n) {
5832
5855
  return i = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(y);
5833
5856
  }
5834
5857
  function d(y) {
5835
- return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Ce(y) ? Re(e, f, "whitespace")(y) : f(y));
5858
+ return y === s ? (u++, e.consume(y), d) : u < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Ce(y) ? Re(e, h, "whitespace")(y) : h(y));
5836
5859
  }
5837
- function f(y) {
5860
+ function h(y) {
5838
5861
  return y === null || ce(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(oo, m, X)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5839
5862
  contentType: "string"
5840
5863
  }), p(y));
5841
5864
  }
5842
5865
  function p(y) {
5843
- return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(y)) : Ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Re(e, h, "whitespace")(y)) : y === 96 && y === s ? n(y) : (e.consume(y), p);
5866
+ return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), h(y)) : Ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Re(e, f, "whitespace")(y)) : y === 96 && y === s ? n(y) : (e.consume(y), p);
5844
5867
  }
5845
- function h(y) {
5846
- return y === null || ce(y) ? f(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5868
+ function f(y) {
5869
+ return y === null || ce(y) ? h(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5847
5870
  contentType: "string"
5848
5871
  }), T(y));
5849
5872
  }
5850
5873
  function T(y) {
5851
- return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(y)) : y === 96 && y === s ? n(y) : (e.consume(y), T);
5874
+ return y === null || ce(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(y)) : y === 96 && y === s ? n(y) : (e.consume(y), T);
5852
5875
  }
5853
5876
  function m(y) {
5854
5877
  return e.attempt(a, X, _)(y);
@@ -5971,20 +5994,20 @@ function Rp(e) {
5971
5994
  function Dp(e, t, n) {
5972
5995
  let r = 0, a, i;
5973
5996
  return u;
5974
- function u(f) {
5975
- return e.enter("codeText"), e.enter("codeTextSequence"), s(f);
5997
+ function u(h) {
5998
+ return e.enter("codeText"), e.enter("codeTextSequence"), s(h);
5976
5999
  }
5977
- function s(f) {
5978
- return f === 96 ? (e.consume(f), r++, s) : (e.exit("codeTextSequence"), l(f));
6000
+ function s(h) {
6001
+ return h === 96 ? (e.consume(h), r++, s) : (e.exit("codeTextSequence"), l(h));
5979
6002
  }
5980
- function l(f) {
5981
- return f === null ? n(f) : f === 32 ? (e.enter("space"), e.consume(f), e.exit("space"), l) : f === 96 ? (i = e.enter("codeTextSequence"), a = 0, d(f)) : ce(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), l) : (e.enter("codeTextData"), c(f));
6003
+ function l(h) {
6004
+ return h === null ? n(h) : h === 32 ? (e.enter("space"), e.consume(h), e.exit("space"), l) : h === 96 ? (i = e.enter("codeTextSequence"), a = 0, d(h)) : ce(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), l) : (e.enter("codeTextData"), c(h));
5982
6005
  }
5983
- function c(f) {
5984
- return f === null || f === 32 || f === 96 || ce(f) ? (e.exit("codeTextData"), l(f)) : (e.consume(f), c);
6006
+ function c(h) {
6007
+ return h === null || h === 32 || h === 96 || ce(h) ? (e.exit("codeTextData"), l(h)) : (e.consume(h), c);
5985
6008
  }
5986
- function d(f) {
5987
- return f === 96 ? (e.consume(f), a++, d) : a === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(f)) : (i.type = "codeTextData", c(f));
6009
+ function d(h) {
6010
+ return h === 96 ? (e.consume(h), a++, d) : a === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(h)) : (i.type = "codeTextData", c(h));
5988
6011
  }
5989
6012
  }
5990
6013
  function hl(e) {
@@ -6010,17 +6033,17 @@ function wp(e, t) {
6010
6033
  const n = e[t][1], r = e[t][2];
6011
6034
  let a = t - 1;
6012
6035
  const i = [], u = n._tokenizer || r.parser[n.contentType](n.start), s = u.events, l = [], c = {};
6013
- let d, f, p = -1, h = n, T = 0, m = 0;
6036
+ let d, h, p = -1, f = n, T = 0, m = 0;
6014
6037
  const _ = [m];
6015
- for (; h; ) {
6016
- for (; e[++a][1] !== h; )
6038
+ for (; f; ) {
6039
+ for (; e[++a][1] !== f; )
6017
6040
  ;
6018
- i.push(a), h._tokenizer || (d = r.sliceStream(h), h.next || d.push(null), f && u.defineSkip(h.start), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(d), h._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), f = h, h = h.next;
6041
+ i.push(a), f._tokenizer || (d = r.sliceStream(f), f.next || d.push(null), h && u.defineSkip(f.start), f._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = !0), u.write(d), f._isInFirstContentOfListItem && (u._gfmTasklistFirstContentOfListItem = void 0)), h = f, f = f.next;
6019
6042
  }
6020
- for (h = n; ++p < s.length; )
6043
+ for (f = n; ++p < s.length; )
6021
6044
  // Find a void token that includes a break.
6022
- s[p][0] === "exit" && s[p - 1][0] === "enter" && s[p][1].type === s[p - 1][1].type && s[p][1].start.line !== s[p][1].end.line && (m = p + 1, _.push(m), h._tokenizer = void 0, h.previous = void 0, h = h.next);
6023
- for (u.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : _.pop(), p = _.length; p--; ) {
6045
+ s[p][0] === "exit" && s[p - 1][0] === "enter" && s[p][1].type === s[p - 1][1].type && s[p][1].start.line !== s[p][1].end.line && (m = p + 1, _.push(m), f._tokenizer = void 0, f.previous = void 0, f = f.next);
6046
+ for (u.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : _.pop(), p = _.length; p--; ) {
6024
6047
  const E = s.slice(_[p], _[p + 1]), P = i.pop();
6025
6048
  l.unshift([P, P + E.length - 1]), Rt(e, P, 2, E);
6026
6049
  }
@@ -6079,8 +6102,8 @@ function Hp(e, t, n) {
6079
6102
  function pl(e, t, n, r, a, i, u, s, l) {
6080
6103
  const c = l || Number.POSITIVE_INFINITY;
6081
6104
  let d = 0;
6082
- return f;
6083
- function f(E) {
6105
+ return h;
6106
+ function h(E) {
6084
6107
  return E === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(E), e.exit(i), p) : E === null || E === 32 || E === 41 || li(E) ? n(E) : (e.enter(r), e.enter(u), e.enter(s), e.enter("chunkString", {
6085
6108
  contentType: "string"
6086
6109
  }), m(E));
@@ -6088,13 +6111,13 @@ function pl(e, t, n, r, a, i, u, s, l) {
6088
6111
  function p(E) {
6089
6112
  return E === 62 ? (e.enter(i), e.consume(E), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
6090
6113
  contentType: "string"
6091
- }), h(E));
6114
+ }), f(E));
6092
6115
  }
6093
- function h(E) {
6094
- return E === 62 ? (e.exit("chunkString"), e.exit(s), p(E)) : E === null || E === 60 || ce(E) ? n(E) : (e.consume(E), E === 92 ? T : h);
6116
+ function f(E) {
6117
+ return E === 62 ? (e.exit("chunkString"), e.exit(s), p(E)) : E === null || E === 60 || ce(E) ? n(E) : (e.consume(E), E === 92 ? T : f);
6095
6118
  }
6096
6119
  function T(E) {
6097
- return E === 60 || E === 62 || E === 92 ? (e.consume(E), h) : h(E);
6120
+ return E === 60 || E === 62 || E === 92 ? (e.consume(E), f) : f(E);
6098
6121
  }
6099
6122
  function m(E) {
6100
6123
  return !d && (E === null || E === 41 || tt(E)) ? (e.exit("chunkString"), e.exit(s), e.exit(u), e.exit(r), t(E)) : d < c && E === 40 ? (e.consume(E), d++, m) : E === 41 ? (e.consume(E), d--, m) : E === null || E === 32 || E === 40 || li(E) ? n(E) : (e.consume(E), E === 92 ? _ : m);
@@ -6107,24 +6130,24 @@ function ml(e, t, n, r, a, i) {
6107
6130
  const u = this;
6108
6131
  let s = 0, l;
6109
6132
  return c;
6110
- function c(h) {
6111
- return e.enter(r), e.enter(a), e.consume(h), e.exit(a), e.enter(i), d;
6133
+ function c(f) {
6134
+ return e.enter(r), e.enter(a), e.consume(f), e.exit(a), e.enter(i), d;
6112
6135
  }
6113
- function d(h) {
6114
- return s > 999 || h === null || h === 91 || h === 93 && !l || // To do: remove in the future once we’ve switched from
6136
+ function d(f) {
6137
+ return s > 999 || f === null || f === 91 || f === 93 && !l || // To do: remove in the future once we’ve switched from
6115
6138
  // `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
6116
6139
  // which doesn’t need this.
6117
6140
  // Hidden footnotes hook.
6118
6141
  /* c8 ignore next 3 */
6119
- h === 94 && !s && "_hiddenFootnoteSupport" in u.parser.constructs ? n(h) : h === 93 ? (e.exit(i), e.enter(a), e.consume(h), e.exit(a), e.exit(r), t) : ce(h) ? (e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), d) : (e.enter("chunkString", {
6142
+ f === 94 && !s && "_hiddenFootnoteSupport" in u.parser.constructs ? n(f) : f === 93 ? (e.exit(i), e.enter(a), e.consume(f), e.exit(a), e.exit(r), t) : ce(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), d) : (e.enter("chunkString", {
6120
6143
  contentType: "string"
6121
- }), f(h));
6144
+ }), h(f));
6122
6145
  }
6123
- function f(h) {
6124
- return h === null || h === 91 || h === 93 || ce(h) || s++ > 999 ? (e.exit("chunkString"), d(h)) : (e.consume(h), l || (l = !Ce(h)), h === 92 ? p : f);
6146
+ function h(f) {
6147
+ return f === null || f === 91 || f === 93 || ce(f) || s++ > 999 ? (e.exit("chunkString"), d(f)) : (e.consume(f), l || (l = !Ce(f)), f === 92 ? p : h);
6125
6148
  }
6126
- function p(h) {
6127
- return h === 91 || h === 92 || h === 93 ? (e.consume(h), s++, f) : f(h);
6149
+ function p(f) {
6150
+ return f === 91 || f === 92 || f === 93 ? (e.consume(f), s++, h) : h(f);
6128
6151
  }
6129
6152
  }
6130
6153
  function gl(e, t, n, r, a, i) {
@@ -6142,9 +6165,9 @@ function gl(e, t, n, r, a, i) {
6142
6165
  }), d(p));
6143
6166
  }
6144
6167
  function d(p) {
6145
- return p === u || p === null || ce(p) ? (e.exit("chunkString"), c(p)) : (e.consume(p), p === 92 ? f : d);
6168
+ return p === u || p === null || ce(p) ? (e.exit("chunkString"), c(p)) : (e.consume(p), p === 92 ? h : d);
6146
6169
  }
6147
- function f(p) {
6170
+ function h(p) {
6148
6171
  return p === u || p === 92 ? (e.consume(p), d) : d(p);
6149
6172
  }
6150
6173
  }
@@ -6173,10 +6196,10 @@ function qp(e, t, n) {
6173
6196
  const r = this;
6174
6197
  let a;
6175
6198
  return i;
6176
- function i(h) {
6177
- return e.enter("definition"), u(h);
6199
+ function i(f) {
6200
+ return e.enter("definition"), u(f);
6178
6201
  }
6179
- function u(h) {
6202
+ function u(f) {
6180
6203
  return ml.call(
6181
6204
  r,
6182
6205
  e,
@@ -6186,17 +6209,17 @@ function qp(e, t, n) {
6186
6209
  "definitionLabel",
6187
6210
  "definitionLabelMarker",
6188
6211
  "definitionLabelString"
6189
- )(h);
6212
+ )(f);
6190
6213
  }
6191
- function s(h) {
6214
+ function s(f) {
6192
6215
  return a = An(
6193
6216
  r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)
6194
- ), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), l) : n(h);
6217
+ ), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), l) : n(f);
6195
6218
  }
6196
- function l(h) {
6197
- return tt(h) ? er(e, c)(h) : c(h);
6219
+ function l(f) {
6220
+ return tt(f) ? er(e, c)(f) : c(f);
6198
6221
  }
6199
- function c(h) {
6222
+ function c(f) {
6200
6223
  return pl(
6201
6224
  e,
6202
6225
  d,
@@ -6207,16 +6230,16 @@ function qp(e, t, n) {
6207
6230
  "definitionDestinationLiteralMarker",
6208
6231
  "definitionDestinationRaw",
6209
6232
  "definitionDestinationString"
6210
- )(h);
6233
+ )(f);
6211
6234
  }
6212
- function d(h) {
6213
- return e.attempt(jp, f, f)(h);
6235
+ function d(f) {
6236
+ return e.attempt(jp, h, h)(f);
6214
6237
  }
6215
- function f(h) {
6216
- return Ce(h) ? Re(e, p, "whitespace")(h) : p(h);
6238
+ function h(f) {
6239
+ return Ce(f) ? Re(e, p, "whitespace")(f) : p(f);
6217
6240
  }
6218
- function p(h) {
6219
- return h === null || ce(h) ? (e.exit("definition"), r.parser.defined.push(a), t(h)) : n(h);
6241
+ function p(f) {
6242
+ return f === null || ce(f) ? (e.exit("definition"), r.parser.defined.push(a), t(f)) : n(f);
6220
6243
  }
6221
6244
  }
6222
6245
  function zp(e, t, n) {
@@ -6388,15 +6411,15 @@ function e1(e, t, n) {
6388
6411
  return d(S);
6389
6412
  }
6390
6413
  function d(S) {
6391
- return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(S), f;
6414
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(S), h;
6392
6415
  }
6393
- function f(S) {
6416
+ function h(S) {
6394
6417
  return S === 33 ? (e.consume(S), p) : S === 47 ? (e.consume(S), i = !0, m) : S === 63 ? (e.consume(S), a = 3, r.interrupt ? t : g) : kt(S) ? (e.consume(S), u = String.fromCharCode(S), _) : n(S);
6395
6418
  }
6396
6419
  function p(S) {
6397
- return S === 45 ? (e.consume(S), a = 2, h) : S === 91 ? (e.consume(S), a = 5, s = 0, T) : kt(S) ? (e.consume(S), a = 4, r.interrupt ? t : g) : n(S);
6420
+ return S === 45 ? (e.consume(S), a = 2, f) : S === 91 ? (e.consume(S), a = 5, s = 0, T) : kt(S) ? (e.consume(S), a = 4, r.interrupt ? t : g) : n(S);
6398
6421
  }
6399
- function h(S) {
6422
+ function f(S) {
6400
6423
  return S === 45 ? (e.consume(S), r.interrupt ? t : g) : n(S);
6401
6424
  }
6402
6425
  function T(S) {
@@ -6526,16 +6549,16 @@ function a1(e, t, n) {
6526
6549
  return g === 45 ? (e.consume(g), d) : g === 91 ? (e.consume(g), i = 0, T) : kt(g) ? (e.consume(g), P) : n(g);
6527
6550
  }
6528
6551
  function d(g) {
6529
- return g === 45 ? (e.consume(g), h) : n(g);
6552
+ return g === 45 ? (e.consume(g), f) : n(g);
6530
6553
  }
6531
- function f(g) {
6532
- return g === null ? n(g) : g === 45 ? (e.consume(g), p) : ce(g) ? (u = f, V(g)) : (e.consume(g), f);
6554
+ function h(g) {
6555
+ return g === null ? n(g) : g === 45 ? (e.consume(g), p) : ce(g) ? (u = h, V(g)) : (e.consume(g), h);
6533
6556
  }
6534
6557
  function p(g) {
6535
- return g === 45 ? (e.consume(g), h) : f(g);
6558
+ return g === 45 ? (e.consume(g), f) : h(g);
6536
6559
  }
6537
- function h(g) {
6538
- return g === 62 ? H(g) : g === 45 ? p(g) : f(g);
6560
+ function f(g) {
6561
+ return g === 62 ? H(g) : g === 45 ? p(g) : h(g);
6539
6562
  }
6540
6563
  function T(g) {
6541
6564
  const ne = "CDATA[";
@@ -6683,7 +6706,7 @@ function c1(e, t, n) {
6683
6706
  }
6684
6707
  return s;
6685
6708
  function s(p) {
6686
- return i ? i._inactive ? f(p) : (u = r.parser.defined.includes(
6709
+ return i ? i._inactive ? h(p) : (u = r.parser.defined.includes(
6687
6710
  An(
6688
6711
  r.sliceSerialize({
6689
6712
  start: i.end,
@@ -6696,37 +6719,37 @@ function c1(e, t, n) {
6696
6719
  return p === 40 ? e.attempt(
6697
6720
  i1,
6698
6721
  d,
6699
- u ? d : f
6722
+ u ? d : h
6700
6723
  )(p) : p === 91 ? e.attempt(
6701
6724
  u1,
6702
6725
  d,
6703
- u ? c : f
6704
- )(p) : u ? d(p) : f(p);
6726
+ u ? c : h
6727
+ )(p) : u ? d(p) : h(p);
6705
6728
  }
6706
6729
  function c(p) {
6707
6730
  return e.attempt(
6708
6731
  o1,
6709
6732
  d,
6710
- f
6733
+ h
6711
6734
  )(p);
6712
6735
  }
6713
6736
  function d(p) {
6714
6737
  return t(p);
6715
6738
  }
6716
- function f(p) {
6739
+ function h(p) {
6717
6740
  return i._balanced = !0, n(p);
6718
6741
  }
6719
6742
  }
6720
6743
  function d1(e, t, n) {
6721
6744
  return r;
6722
- function r(f) {
6723
- return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), a;
6745
+ function r(h) {
6746
+ return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), a;
6724
6747
  }
6725
- function a(f) {
6726
- return tt(f) ? er(e, i)(f) : i(f);
6748
+ function a(h) {
6749
+ return tt(h) ? er(e, i)(h) : i(h);
6727
6750
  }
6728
- function i(f) {
6729
- return f === 41 ? d(f) : pl(
6751
+ function i(h) {
6752
+ return h === 41 ? d(h) : pl(
6730
6753
  e,
6731
6754
  u,
6732
6755
  s,
@@ -6736,29 +6759,29 @@ function d1(e, t, n) {
6736
6759
  "resourceDestinationRaw",
6737
6760
  "resourceDestinationString",
6738
6761
  32
6739
- )(f);
6762
+ )(h);
6740
6763
  }
6741
- function u(f) {
6742
- return tt(f) ? er(e, l)(f) : d(f);
6764
+ function u(h) {
6765
+ return tt(h) ? er(e, l)(h) : d(h);
6743
6766
  }
6744
- function s(f) {
6745
- return n(f);
6767
+ function s(h) {
6768
+ return n(h);
6746
6769
  }
6747
- function l(f) {
6748
- return f === 34 || f === 39 || f === 40 ? gl(
6770
+ function l(h) {
6771
+ return h === 34 || h === 39 || h === 40 ? gl(
6749
6772
  e,
6750
6773
  c,
6751
6774
  n,
6752
6775
  "resourceTitle",
6753
6776
  "resourceTitleMarker",
6754
6777
  "resourceTitleString"
6755
- )(f) : d(f);
6778
+ )(h) : d(h);
6756
6779
  }
6757
- function c(f) {
6758
- return tt(f) ? er(e, d)(f) : d(f);
6780
+ function c(h) {
6781
+ return tt(h) ? er(e, d)(h) : d(h);
6759
6782
  }
6760
- function d(f) {
6761
- return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
6783
+ function d(h) {
6784
+ return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
6762
6785
  }
6763
6786
  }
6764
6787
  function f1(e, t, n) {
@@ -6876,41 +6899,41 @@ function C1(e, t, n) {
6876
6899
  const r = this, a = r.events[r.events.length - 1];
6877
6900
  let i = a && a[1].type === "linePrefix" ? a[2].sliceSerialize(a[1], !0).length : 0, u = 0;
6878
6901
  return s;
6879
- function s(h) {
6880
- const T = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
6881
- if (T === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : ci(h)) {
6902
+ function s(f) {
6903
+ const T = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
6904
+ if (T === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : ci(f)) {
6882
6905
  if (r.containerState.type || (r.containerState.type = T, e.enter(T, {
6883
6906
  _container: !0
6884
6907
  })), T === "listUnordered")
6885
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(Dr, n, c)(h) : c(h);
6886
- if (!r.interrupt || h === 49)
6887
- return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
6908
+ return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(Dr, n, c)(f) : c(f);
6909
+ if (!r.interrupt || f === 49)
6910
+ return e.enter("listItemPrefix"), e.enter("listItemValue"), l(f);
6888
6911
  }
6889
- return n(h);
6912
+ return n(f);
6890
6913
  }
6891
- function l(h) {
6892
- return ci(h) && ++u < 10 ? (e.consume(h), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
6914
+ function l(f) {
6915
+ return ci(f) && ++u < 10 ? (e.consume(f), l) : (!r.interrupt || u < 2) && (r.containerState.marker ? f === r.containerState.marker : f === 41 || f === 46) ? (e.exit("listItemValue"), c(f)) : n(f);
6893
6916
  }
6894
- function c(h) {
6895
- return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
6917
+ function c(f) {
6918
+ return e.enter("listItemMarker"), e.consume(f), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, e.check(
6896
6919
  Kr,
6897
6920
  // Can’t be empty when interrupting.
6898
6921
  r.interrupt ? n : d,
6899
6922
  e.attempt(
6900
6923
  y1,
6901
6924
  p,
6902
- f
6925
+ h
6903
6926
  )
6904
6927
  );
6905
6928
  }
6906
- function d(h) {
6907
- return r.containerState.initialBlankLine = !0, i++, p(h);
6929
+ function d(f) {
6930
+ return r.containerState.initialBlankLine = !0, i++, p(f);
6908
6931
  }
6909
- function f(h) {
6910
- return Ce(h) ? (e.enter("listItemPrefixWhitespace"), e.consume(h), e.exit("listItemPrefixWhitespace"), p) : n(h);
6932
+ function h(f) {
6933
+ return Ce(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), p) : n(f);
6911
6934
  }
6912
- function p(h) {
6913
- return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
6935
+ function p(f) {
6936
+ return r.containerState.size = i + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f);
6914
6937
  }
6915
6938
  }
6916
6939
  function A1(e, t, n) {
@@ -6993,13 +7016,13 @@ function I1(e, t, n) {
6993
7016
  let a;
6994
7017
  return i;
6995
7018
  function i(c) {
6996
- let d = r.events.length, f;
7019
+ let d = r.events.length, h;
6997
7020
  for (; d--; )
6998
7021
  if (r.events[d][1].type !== "lineEnding" && r.events[d][1].type !== "linePrefix" && r.events[d][1].type !== "content") {
6999
- f = r.events[d][1].type === "paragraph";
7022
+ h = r.events[d][1].type === "paragraph";
7000
7023
  break;
7001
7024
  }
7002
- return !r.parser.lazy[r.now().line] && (r.interrupt || f) ? (e.enter("setextHeadingLine"), a = c, u(c)) : n(c);
7025
+ return !r.parser.lazy[r.now().line] && (r.interrupt || h) ? (e.enter("setextHeadingLine"), a = c, u(c)) : n(c);
7003
7026
  }
7004
7027
  function u(c) {
7005
7028
  return e.enter("setextHeadingLineSequence"), s(c);
@@ -7079,12 +7102,12 @@ function bl(e) {
7079
7102
  function c(d) {
7080
7103
  if (d === null)
7081
7104
  return !0;
7082
- const f = a[d];
7105
+ const h = a[d];
7083
7106
  let p = -1;
7084
- if (f)
7085
- for (; ++p < f.length; ) {
7086
- const h = f[p];
7087
- if (!h.previous || h.previous.call(r, r.previous))
7107
+ if (h)
7108
+ for (; ++p < h.length; ) {
7109
+ const f = h[p];
7110
+ if (!f.previous || f.previous.call(r, r.previous))
7088
7111
  return !0;
7089
7112
  }
7090
7113
  return !1;
@@ -7172,21 +7195,21 @@ function P1(e, t, n) {
7172
7195
  containerState: {},
7173
7196
  events: [],
7174
7197
  parser: e,
7175
- sliceStream: h,
7198
+ sliceStream: f,
7176
7199
  sliceSerialize: p,
7177
7200
  now: T,
7178
7201
  defineSkip: m,
7179
- write: f
7202
+ write: h
7180
7203
  };
7181
7204
  let d = t.tokenize.call(c, l);
7182
7205
  return t.resolveAll && i.push(t), c;
7183
- function f(q) {
7206
+ function h(q) {
7184
7207
  return u = gt(u, q), _(), u[u.length - 1] !== null ? [] : (W(t, 0), c.events = Li(i, c.events, c), c.events);
7185
7208
  }
7186
7209
  function p(q, $) {
7187
- return F1(h(q), $);
7210
+ return F1(f(q), $);
7188
7211
  }
7189
- function h(q) {
7212
+ function f(q) {
7190
7213
  return M1(u, q);
7191
7214
  }
7192
7215
  function T() {
@@ -7447,16 +7470,16 @@ function X1() {
7447
7470
  return a;
7448
7471
  function a(i, u, s) {
7449
7472
  const l = [];
7450
- let c, d, f, p, h;
7451
- for (i = t + i.toString(u), f = 0, t = "", n && (i.charCodeAt(0) === 65279 && f++, n = void 0); f < i.length; ) {
7452
- if (fo.lastIndex = f, c = fo.exec(i), p = c && c.index !== void 0 ? c.index : i.length, h = i.charCodeAt(p), !c) {
7453
- t = i.slice(f);
7473
+ let c, d, h, p, f;
7474
+ for (i = t + i.toString(u), h = 0, t = "", n && (i.charCodeAt(0) === 65279 && h++, n = void 0); h < i.length; ) {
7475
+ if (fo.lastIndex = h, c = fo.exec(i), p = c && c.index !== void 0 ? c.index : i.length, f = i.charCodeAt(p), !c) {
7476
+ t = i.slice(h);
7454
7477
  break;
7455
7478
  }
7456
- if (h === 10 && f === p && r)
7479
+ if (f === 10 && h === p && r)
7457
7480
  l.push(-3), r = void 0;
7458
7481
  else
7459
- switch (r && (l.push(-5), r = void 0), f < p && (l.push(i.slice(f, p)), e += p - f), h) {
7482
+ switch (r && (l.push(-5), r = void 0), h < p && (l.push(i.slice(h, p)), e += p - h), f) {
7460
7483
  case 0: {
7461
7484
  l.push(65533), e++;
7462
7485
  break;
@@ -7472,7 +7495,7 @@ function X1() {
7472
7495
  default:
7473
7496
  r = !0, e = 1;
7474
7497
  }
7475
- f = p + 1;
7498
+ h = p + 1;
7476
7499
  }
7477
7500
  return s && (r && l.push(-5), t && l.push(t), l.push(null)), l;
7478
7501
  }
@@ -7563,7 +7586,7 @@ function tm(e) {
7563
7586
  link: s(vt),
7564
7587
  listItem: s(be),
7565
7588
  listItemValue: T,
7566
- listOrdered: s(ae, h),
7589
+ listOrdered: s(ae, f),
7567
7590
  listUnordered: s(ae),
7568
7591
  paragraph: s(Ae),
7569
7592
  reference: Te,
@@ -7638,7 +7661,7 @@ function tm(e) {
7638
7661
  tokenStack: [],
7639
7662
  config: t,
7640
7663
  enter: c,
7641
- exit: f,
7664
+ exit: h,
7642
7665
  buffer: l,
7643
7666
  resume: p,
7644
7667
  setData: i,
@@ -7744,10 +7767,10 @@ function tm(e) {
7744
7767
  function d(Y) {
7745
7768
  return Z;
7746
7769
  function Z(ie) {
7747
- Y && Y.call(this, ie), f.call(this, ie);
7770
+ Y && Y.call(this, ie), h.call(this, ie);
7748
7771
  }
7749
7772
  }
7750
- function f(Y, Z) {
7773
+ function h(Y, Z) {
7751
7774
  const ie = this.stack.pop(), le = this.tokenStack.pop();
7752
7775
  if (le)
7753
7776
  le[0].type !== Y.type && (Z ? Z.call(this, Y, le[0]) : (le[1] || ho).call(this, Y, le[0]));
@@ -7762,7 +7785,7 @@ function tm(e) {
7762
7785
  function p() {
7763
7786
  return Jh(this.stack.pop());
7764
7787
  }
7765
- function h() {
7788
+ function f() {
7766
7789
  i("expectingFirstListItemValue", !0);
7767
7790
  }
7768
7791
  function T(Y) {
@@ -8287,8 +8310,8 @@ function bm(e, t, n) {
8287
8310
  const r = e.all(t), a = n ? Em(n) : Sl(t), i = {}, u = [];
8288
8311
  if (typeof t.checked == "boolean") {
8289
8312
  const d = r[0];
8290
- let f;
8291
- d && d.type === "element" && d.tagName === "p" ? f = d : (f = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(f)), f.children.length > 0 && f.children.unshift({ type: "text", value: " " }), f.children.unshift({
8313
+ let h;
8314
+ d && d.type === "element" && d.tagName === "p" ? h = d : (h = { type: "element", tagName: "p", properties: {}, children: [] }, r.unshift(h)), h.children.length > 0 && h.children.unshift({ type: "text", value: " " }), h.children.unshift({
8292
8315
  type: "element",
8293
8316
  tagName: "input",
8294
8317
  properties: { type: "checkbox", checked: t.checked, disabled: !0 },
@@ -8413,10 +8436,10 @@ function xm(e, t, n) {
8413
8436
  let l = -1;
8414
8437
  const c = [];
8415
8438
  for (; ++l < s; ) {
8416
- const f = t.children[l], p = {}, h = u ? u[l] : void 0;
8417
- h && (p.align = h);
8439
+ const h = t.children[l], p = {}, f = u ? u[l] : void 0;
8440
+ f && (p.align = f);
8418
8441
  let T = { type: "element", tagName: i, properties: p, children: [] };
8419
- f && (T.children = e.all(f), e.patch(f, T), T = e.applyData(t, T)), c.push(T);
8442
+ h && (T.children = e.all(h), e.patch(h, T), T = e.applyData(t, T)), c.push(T);
8420
8443
  }
8421
8444
  const d = {
8422
8445
  type: "element",
@@ -8596,20 +8619,20 @@ const Pm = !0, bo = !1, Mm = "skip", Fm = (
8596
8619
  typeof d.name == "string" ? d.name : void 0
8597
8620
  )
8598
8621
  );
8599
- Object.defineProperty(f, "name", {
8622
+ Object.defineProperty(h, "name", {
8600
8623
  value: "node (" + (s.type + (p ? "<" + p + ">" : "")) + ")"
8601
8624
  });
8602
8625
  }
8603
- return f;
8604
- function f() {
8605
- let p = [], h, T, m;
8626
+ return h;
8627
+ function h() {
8628
+ let p = [], f, T, m;
8606
8629
  if ((!t || a(s, l, c[c.length - 1] || null)) && (p = Bm(n(s, c)), p[0] === bo))
8607
8630
  return p;
8608
8631
  if (s.children && p[0] !== Mm)
8609
8632
  for (T = (r ? s.children.length : -1) + i, m = c.concat(s); T > -1 && T < s.children.length; ) {
8610
- if (h = u(s.children[T], T, m)(), h[0] === bo)
8611
- return h;
8612
- T = typeof h[1] == "number" ? h[1] : T + i;
8633
+ if (f = u(s.children[T], T, m)(), f[0] === bo)
8634
+ return f;
8635
+ T = typeof f[1] == "number" ? f[1] : T + i;
8613
8636
  }
8614
8637
  return p;
8615
8638
  }
@@ -8676,25 +8699,25 @@ function jm(e, t) {
8676
8699
  }), u;
8677
8700
  function i(c, d) {
8678
8701
  if (c && "data" in c && c.data) {
8679
- const f = c.data;
8680
- f.hName && (d.type !== "element" && (d = {
8702
+ const h = c.data;
8703
+ h.hName && (d.type !== "element" && (d = {
8681
8704
  type: "element",
8682
8705
  tagName: "",
8683
8706
  properties: {},
8684
8707
  children: []
8685
- }), d.tagName = f.hName), d.type === "element" && f.hProperties && (d.properties = { ...d.properties, ...f.hProperties }), "children" in d && d.children && f.hChildren && (d.children = f.hChildren);
8708
+ }), d.tagName = h.hName), d.type === "element" && h.hProperties && (d.properties = { ...d.properties, ...h.hProperties }), "children" in d && d.children && h.hChildren && (d.children = h.hChildren);
8686
8709
  }
8687
8710
  if (c) {
8688
- const f = "type" in c ? c : { position: c };
8689
- Hm(f) || (d.position = { start: wi(f), end: Pi(f) });
8711
+ const h = "type" in c ? c : { position: c };
8712
+ Hm(h) || (d.position = { start: wi(h), end: Pi(h) });
8690
8713
  }
8691
8714
  return d;
8692
8715
  }
8693
- function u(c, d, f, p) {
8694
- return Array.isArray(f) && (p = f, f = {}), i(c, {
8716
+ function u(c, d, h, p) {
8717
+ return Array.isArray(h) && (p = h, h = {}), i(c, {
8695
8718
  type: "element",
8696
8719
  tagName: d,
8697
- properties: f || {},
8720
+ properties: h || {},
8698
8721
  children: p || []
8699
8722
  });
8700
8723
  }
@@ -8775,7 +8798,7 @@ function Vm(e) {
8775
8798
  let s = 0;
8776
8799
  const l = [];
8777
8800
  for (; ++s <= e.footnoteCounts[i]; ) {
8778
- const f = {
8801
+ const h = {
8779
8802
  type: "element",
8780
8803
  tagName: "a",
8781
8804
  properties: {
@@ -8786,16 +8809,16 @@ function Vm(e) {
8786
8809
  },
8787
8810
  children: [{ type: "text", value: "↩" }]
8788
8811
  };
8789
- s > 1 && f.children.push({
8812
+ s > 1 && h.children.push({
8790
8813
  type: "element",
8791
8814
  tagName: "sup",
8792
8815
  children: [{ type: "text", value: String(s) }]
8793
- }), l.length > 0 && l.push({ type: "text", value: " " }), l.push(f);
8816
+ }), l.length > 0 && l.push({ type: "text", value: " " }), l.push(h);
8794
8817
  }
8795
8818
  const c = a[a.length - 1];
8796
8819
  if (c && c.type === "element" && c.tagName === "p") {
8797
- const f = c.children[c.children.length - 1];
8798
- f && f.type === "text" ? f.value += " " : c.children.push({ type: "text", value: " " }), c.children.push(...l);
8820
+ const h = c.children[c.children.length - 1];
8821
+ h && h.type === "text" ? h.value += " " : c.children.push({ type: "text", value: " " }), c.children.push(...l);
8799
8822
  } else
8800
8823
  a.push(...l);
8801
8824
  const d = {
@@ -10037,7 +10060,7 @@ var Ao;
10037
10060
  function i2() {
10038
10061
  if (Ao) return Se;
10039
10062
  Ao = 1;
10040
- var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), T;
10063
+ var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), T;
10041
10064
  T = Symbol.for("react.module.reference");
10042
10065
  function m(_) {
10043
10066
  if (typeof _ == "object" && _ !== null) {
@@ -10057,7 +10080,7 @@ function i2() {
10057
10080
  case u:
10058
10081
  case l:
10059
10082
  case p:
10060
- case f:
10083
+ case h:
10061
10084
  case i:
10062
10085
  return _;
10063
10086
  default:
@@ -10069,7 +10092,7 @@ function i2() {
10069
10092
  }
10070
10093
  }
10071
10094
  }
10072
- return Se.ContextConsumer = u, Se.ContextProvider = i, Se.Element = e, Se.ForwardRef = l, Se.Fragment = n, Se.Lazy = p, Se.Memo = f, Se.Portal = t, Se.Profiler = a, Se.StrictMode = r, Se.Suspense = c, Se.SuspenseList = d, Se.isAsyncMode = function() {
10095
+ return Se.ContextConsumer = u, Se.ContextProvider = i, Se.Element = e, Se.ForwardRef = l, Se.Fragment = n, Se.Lazy = p, Se.Memo = h, Se.Portal = t, Se.Profiler = a, Se.StrictMode = r, Se.Suspense = c, Se.SuspenseList = d, Se.isAsyncMode = function() {
10073
10096
  return !1;
10074
10097
  }, Se.isConcurrentMode = function() {
10075
10098
  return !1;
@@ -10086,7 +10109,7 @@ function i2() {
10086
10109
  }, Se.isLazy = function(_) {
10087
10110
  return m(_) === p;
10088
10111
  }, Se.isMemo = function(_) {
10089
- return m(_) === f;
10112
+ return m(_) === h;
10090
10113
  }, Se.isPortal = function(_) {
10091
10114
  return m(_) === t;
10092
10115
  }, Se.isProfiler = function(_) {
@@ -10098,7 +10121,7 @@ function i2() {
10098
10121
  }, Se.isSuspenseList = function(_) {
10099
10122
  return m(_) === d;
10100
10123
  }, Se.isValidElementType = function(_) {
10101
- return typeof _ == "string" || typeof _ == "function" || _ === n || _ === a || _ === r || _ === c || _ === d || _ === h || typeof _ == "object" && _ !== null && (_.$$typeof === p || _.$$typeof === f || _.$$typeof === i || _.$$typeof === u || _.$$typeof === l || _.$$typeof === T || _.getModuleId !== void 0);
10124
+ return typeof _ == "string" || typeof _ == "function" || _ === n || _ === a || _ === r || _ === c || _ === d || _ === f || typeof _ == "object" && _ !== null && (_.$$typeof === p || _.$$typeof === h || _.$$typeof === i || _.$$typeof === u || _.$$typeof === l || _.$$typeof === T || _.getModuleId !== void 0);
10102
10125
  }, Se.typeOf = m, Se;
10103
10126
  }
10104
10127
  var So;
@@ -10145,7 +10168,7 @@ function c2() {
10145
10168
  if (Oo) return Fa;
10146
10169
  Oo = 1;
10147
10170
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, a = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, u = /^[;\s]*/, s = /^\s+|\s+$/g, l = `
10148
- `, c = "/", d = "*", f = "", p = "comment", h = "declaration";
10171
+ `, c = "/", d = "*", h = "", p = "comment", f = "declaration";
10149
10172
  Fa = function(m, _) {
10150
10173
  if (typeof m != "string")
10151
10174
  throw new TypeError("First argument must be a string");
@@ -10193,9 +10216,9 @@ function c2() {
10193
10216
  function Q() {
10194
10217
  var L = X();
10195
10218
  if (!(c != m.charAt(0) || d != m.charAt(1))) {
10196
- for (var I = 2; f != m.charAt(I) && (d != m.charAt(I) || c != m.charAt(I + 1)); )
10219
+ for (var I = 2; h != m.charAt(I) && (d != m.charAt(I) || c != m.charAt(I + 1)); )
10197
10220
  ++I;
10198
- if (I += 2, f === m.charAt(I - 1))
10221
+ if (I += 2, h === m.charAt(I - 1))
10199
10222
  return y("End of comment missing");
10200
10223
  var R = m.slice(2, I - 2);
10201
10224
  return P += 2, F(R), m = m.slice(I), P += 2, L({
@@ -10209,9 +10232,9 @@ function c2() {
10209
10232
  if (I) {
10210
10233
  if (Q(), !k(a)) return y("property missing ':'");
10211
10234
  var R = k(i), H = L({
10212
- type: h,
10213
- property: T(I[0].replace(e, f)),
10214
- value: R ? T(R[0].replace(e, f)) : f
10235
+ type: f,
10236
+ property: T(I[0].replace(e, h)),
10237
+ value: R ? T(R[0].replace(e, h)) : h
10215
10238
  });
10216
10239
  return k(u), H;
10217
10240
  }
@@ -10226,7 +10249,7 @@ function c2() {
10226
10249
  return W(), $();
10227
10250
  };
10228
10251
  function T(m) {
10229
- return m ? m.replace(s, f) : f;
10252
+ return m ? m.replace(s, h) : h;
10230
10253
  }
10231
10254
  return Fa;
10232
10255
  }
@@ -10239,7 +10262,7 @@ function d2() {
10239
10262
  var a = null;
10240
10263
  if (!n || typeof n != "string")
10241
10264
  return a;
10242
- for (var i, u = e(n), s = typeof r == "function", l, c, d = 0, f = u.length; d < f; d++)
10265
+ for (var i, u = e(n), s = typeof r == "function", l, c, d = 0, h = u.length; d < h; d++)
10243
10266
  i = u[d], l = i.property, c = i.value, s ? r(l, c, i) : c && (a || (a = {}), a[l] = c);
10244
10267
  return a;
10245
10268
  }
@@ -10261,13 +10284,13 @@ function m2(e, t, n, r) {
10261
10284
  for (d in t.properties)
10262
10285
  pi.call(t.properties, d) && b2(l, d, t.properties[d], e);
10263
10286
  (s === "ol" || s === "ul") && e.listDepth++;
10264
- const f = jl(e, t);
10287
+ const h = jl(e, t);
10265
10288
  (s === "ol" || s === "ul") && e.listDepth--, e.schema = u;
10266
10289
  const p = t.position || {
10267
10290
  start: { line: null, column: null, offset: null },
10268
10291
  end: { line: null, column: null, offset: null }
10269
- }, h = a.components && pi.call(a.components, s) ? a.components[s] : s, T = typeof h == "string" || h === Tt.Fragment;
10270
- if (!s2.isValidElementType(h))
10292
+ }, f = a.components && pi.call(a.components, s) ? a.components[s] : s, T = typeof f == "string" || f === Tt.Fragment;
10293
+ if (!s2.isValidElementType(f))
10271
10294
  throw new TypeError(
10272
10295
  `Component for name \`${s}\` not defined or is not renderable`
10273
10296
  );
@@ -10287,7 +10310,7 @@ function m2(e, t, n, r) {
10287
10310
  const m = g2(t);
10288
10311
  l.checked = m && m.properties ? !!m.properties.checked : null, l.index = Ba(r, t), l.ordered = r.tagName === "ol";
10289
10312
  }
10290
- return !T && (s === "ol" || s === "ul") && (l.ordered = s === "ol", l.depth = e.listDepth), (s === "td" || s === "th") && (l.align && (l.style || (l.style = {}), l.style.textAlign = l.align, delete l.align), T || (l.isHeader = s === "th")), !T && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = y2(p)), !T && a.rawSourcePos && (l.sourcePosition = t.position), !T && a.includeElementIndex && (l.index = Ba(r, t), l.siblingCount = Ba(r)), T || (l.node = t), f.length > 0 ? Tt.createElement(h, l, f) : Tt.createElement(h, l);
10313
+ return !T && (s === "ol" || s === "ul") && (l.ordered = s === "ol", l.depth = e.listDepth), (s === "td" || s === "th") && (l.align && (l.style || (l.style = {}), l.style.textAlign = l.align, delete l.align), T || (l.isHeader = s === "th")), !T && s === "tr" && r.type === "element" && (l.isHeader = r.tagName === "thead"), a.sourcePos && (l["data-sourcepos"] = y2(p)), !T && a.rawSourcePos && (l.sourcePosition = t.position), !T && a.includeElementIndex && (l.index = Ba(r, t), l.siblingCount = Ba(r)), T || (l.node = t), h.length > 0 ? Tt.createElement(f, l, h) : Tt.createElement(f, l);
10291
10314
  }
10292
10315
  function g2(e) {
10293
10316
  let t = -1;
@@ -10444,7 +10467,7 @@ Ui.propTypes = {
10444
10467
  components: x.object
10445
10468
  };
10446
10469
  const ql = ({ children: e, id: t, link: n }) => {
10447
- const { contentRef: r } = se(Gt), [a, i] = de(!1), u = pt(null), s = Et(() => i(!0), []), l = Et(() => i(!1), []), c = Et(() => i(!0), []), d = Et(() => i(!1), []), f = Et(
10470
+ const { contentRef: r } = se(Gt), [a, i] = de(!1), u = pt(null), s = Et(() => i(!0), []), l = Et(() => i(!1), []), c = Et(() => i(!0), []), d = Et(() => i(!1), []), h = Et(
10448
10471
  (p) => {
10449
10472
  p.key === "Enter" ? window.open(n, "_blank") : p.key === "Escape" && i(!1);
10450
10473
  },
@@ -10452,9 +10475,9 @@ const ql = ({ children: e, id: t, link: n }) => {
10452
10475
  );
10453
10476
  return b0(() => {
10454
10477
  if (a && u.current && r.current) {
10455
- const p = u.current.getBoundingClientRect(), h = r.current.getBoundingClientRect();
10478
+ const p = u.current.getBoundingClientRect(), f = r.current.getBoundingClientRect();
10456
10479
  let T = 0;
10457
- p.right > h.right ? (T = h.right - p.right - 2, u.current.style.transform = `translateX(${T}px)`) : u.current.style.transform = "translateX(-50%)";
10480
+ p.right > f.right ? (T = f.right - p.right - 2, u.current.style.transform = `translateX(${T}px)`) : u.current.style.transform = "translateX(-50%)";
10458
10481
  }
10459
10482
  }, [a, r]), Tt.cloneElement(e, {
10460
10483
  "aria-describedby": t,
@@ -10462,7 +10485,7 @@ const ql = ({ children: e, id: t, link: n }) => {
10462
10485
  onMouseLeave: l,
10463
10486
  onFocus: c,
10464
10487
  onBlur: d,
10465
- onKeyDown: f,
10488
+ onKeyDown: h,
10466
10489
  children: /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
10467
10490
  e.props.children,
10468
10491
  a && /* @__PURE__ */ v.jsx(
@@ -10565,7 +10588,7 @@ function I2() {
10565
10588
  (function(n, r) {
10566
10589
  e.exports = r();
10567
10590
  })(O2, function() {
10568
- 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", T = "date", m = "Invalid Date", _ = /^(\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) {
10591
+ var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", h = "month", p = "quarter", f = "year", T = "date", m = "Invalid Date", _ = /^(\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) {
10569
10592
  var R = ["th", "st", "nd", "rd"], H = I % 100;
10570
10593
  return "[" + I + (R[(H - 20) % 10] || R[H] || R[0]) + "]";
10571
10594
  } }, F = function(I, R, H) {
@@ -10576,12 +10599,12 @@ function I2() {
10576
10599
  return (R <= 0 ? "+" : "-") + F(V, 2, "0") + ":" + F(j, 2, "0");
10577
10600
  }, m: function I(R, H) {
10578
10601
  if (R.date() < H.date()) return -I(H, R);
10579
- var V = 12 * (H.year() - R.year()) + (H.month() - R.month()), j = R.clone().add(V, f), z = H - j < 0, g = R.clone().add(V + (z ? -1 : 1), f);
10602
+ var V = 12 * (H.year() - R.year()) + (H.month() - R.month()), j = R.clone().add(V, h), z = H - j < 0, g = R.clone().add(V + (z ? -1 : 1), h);
10580
10603
  return +(-(V + (H - j) / (z ? j - g : g - j)) || 0);
10581
10604
  }, a: function(I) {
10582
10605
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
10583
10606
  }, p: function(I) {
10584
- return { M: f, y: h, w: d, d: c, D: T, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
10607
+ return { M: h, y: f, w: d, d: c, D: T, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
10585
10608
  }, u: function(I) {
10586
10609
  return I === void 0;
10587
10610
  } }, D = "en", y = {};
@@ -10657,9 +10680,9 @@ function I2() {
10657
10680
  return q.w(j.toDate()[Me].apply(j.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Oe)), j);
10658
10681
  }, S = this.$W, oe = this.$M, Te = this.$D, me = "set" + (this.$u ? "UTC" : "");
10659
10682
  switch (g) {
10660
- case h:
10661
- return z ? ne(1, 0) : ne(31, 11);
10662
10683
  case f:
10684
+ return z ? ne(1, 0) : ne(31, 11);
10685
+ case h:
10663
10686
  return z ? ne(1, oe) : ne(0, oe + 1);
10664
10687
  case d:
10665
10688
  var xe = this.$locale().weekStart || 0, ve = (S < xe ? S + 7 : S) - xe;
@@ -10679,8 +10702,8 @@ function I2() {
10679
10702
  }, R.endOf = function(H) {
10680
10703
  return this.startOf(H, !1);
10681
10704
  }, R.$set = function(H, V) {
10682
- var j, z = q.p(H), g = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = g + "Date", j[T] = g + "Date", j[f] = g + "Month", j[h] = g + "FullYear", j[l] = g + "Hours", j[s] = g + "Minutes", j[u] = g + "Seconds", j[i] = g + "Milliseconds", j)[z], ue = z === c ? this.$D + (V - this.$W) : V;
10683
- if (z === f || z === h) {
10705
+ var j, z = q.p(H), g = "set" + (this.$u ? "UTC" : ""), ne = (j = {}, j[c] = g + "Date", j[T] = g + "Date", j[h] = g + "Month", j[f] = g + "FullYear", j[l] = g + "Hours", j[s] = g + "Minutes", j[u] = g + "Seconds", j[i] = g + "Milliseconds", j)[z], ue = z === c ? this.$D + (V - this.$W) : V;
10706
+ if (z === h || z === f) {
10684
10707
  var S = this.clone().set(T, 1);
10685
10708
  S.$d[ne](ue), S.init(), this.$d = S.set(T, Math.min(this.$D, S.daysInMonth())).$d;
10686
10709
  } else ne && this.$d[ne](ue);
@@ -10696,8 +10719,8 @@ function I2() {
10696
10719
  var Te = Q(z);
10697
10720
  return q.w(Te.date(Te.date() + Math.round(oe * H)), z);
10698
10721
  };
10699
- if (g === f) return this.set(f, this.$M + H);
10700
- if (g === h) return this.set(h, this.$y + H);
10722
+ if (g === h) return this.set(h, this.$M + H);
10723
+ if (g === f) return this.set(f, this.$y + H);
10701
10724
  if (g === c) return ne(1);
10702
10725
  if (g === d) return ne(7);
10703
10726
  var ue = (j = {}, j[s] = r, j[l] = a, j[u] = n, j)[g] || 1, S = this.$d.getTime() + H * ue;
@@ -10777,10 +10800,10 @@ function I2() {
10777
10800
  return q.m(g, ue);
10778
10801
  };
10779
10802
  switch (ne) {
10780
- case h:
10803
+ case f:
10781
10804
  z = Te() / 12;
10782
10805
  break;
10783
- case f:
10806
+ case h:
10784
10807
  z = Te();
10785
10808
  break;
10786
10809
  case p:
@@ -10806,7 +10829,7 @@ function I2() {
10806
10829
  }
10807
10830
  return j ? z : q.a(z);
10808
10831
  }, R.daysInMonth = function() {
10809
- return this.endOf(f).$D;
10832
+ return this.endOf(h).$D;
10810
10833
  }, R.$locale = function() {
10811
10834
  return y[this.$L];
10812
10835
  }, R.locale = function(H, V) {
@@ -10825,7 +10848,7 @@ function I2() {
10825
10848
  return this.$d.toUTCString();
10826
10849
  }, I;
10827
10850
  }(), L = $.prototype;
10828
- return Q.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", T]].forEach(function(I) {
10851
+ return Q.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", h], ["$y", f], ["$D", T]].forEach(function(I) {
10829
10852
  L[I[1]] = function(R) {
10830
10853
  return this.$g(R, I[0], I[1]);
10831
10854
  };
@@ -10970,10 +10993,10 @@ const Yl = -1, Zr = 0, tr = 1, zr = 2, qi = 3, zi = 4, Yi = 5, $i = 6, $l = 7, V
10970
10993
  let p = u;
10971
10994
  return l === "DataView" ? p = new Uint8Array(u.buffer) : l === "ArrayBuffer" && (p = new Uint8Array(u)), a([l, [...p]], u);
10972
10995
  }
10973
- const d = [], f = a([s, d], u);
10996
+ const d = [], h = a([s, d], u);
10974
10997
  for (const p of u)
10975
10998
  d.push(i(p));
10976
- return f;
10999
+ return h;
10977
11000
  }
10978
11001
  case zr: {
10979
11002
  if (l)
@@ -10987,28 +11010,28 @@ const Yl = -1, Zr = 0, tr = 1, zr = 2, qi = 3, zi = 4, Yi = 5, $i = 6, $l = 7, V
10987
11010
  }
10988
11011
  if (t && "toJSON" in u)
10989
11012
  return i(u.toJSON());
10990
- const d = [], f = a([s, d], u);
11013
+ const d = [], h = a([s, d], u);
10991
11014
  for (const p of F2(u))
10992
11015
  (e || !Or(Yn(u[p]))) && d.push([i(p), i(u[p])]);
10993
- return f;
11016
+ return h;
10994
11017
  }
10995
11018
  case qi:
10996
11019
  return a([s, u.toISOString()], u);
10997
11020
  case zi: {
10998
- const { source: d, flags: f } = u;
10999
- return a([s, { source: d, flags: f }], u);
11021
+ const { source: d, flags: h } = u;
11022
+ return a([s, { source: d, flags: h }], u);
11000
11023
  }
11001
11024
  case Yi: {
11002
- const d = [], f = a([s, d], u);
11003
- for (const [p, h] of u)
11004
- (e || !(Or(Yn(p)) || Or(Yn(h)))) && d.push([i(p), i(h)]);
11005
- return f;
11025
+ const d = [], h = a([s, d], u);
11026
+ for (const [p, f] of u)
11027
+ (e || !(Or(Yn(p)) || Or(Yn(f)))) && d.push([i(p), i(f)]);
11028
+ return h;
11006
11029
  }
11007
11030
  case $i: {
11008
- const d = [], f = a([s, d], u);
11031
+ const d = [], h = a([s, d], u);
11009
11032
  for (const p of u)
11010
11033
  (e || !Or(Yn(p))) && d.push(i(p));
11011
- return f;
11034
+ return h;
11012
11035
  }
11013
11036
  }
11014
11037
  const { message: c } = u;
@@ -12200,8 +12223,8 @@ function tc(e, t, n) {
12200
12223
  if (l.tagName = d || c, K2(u))
12201
12224
  s.unshift(u);
12202
12225
  else
12203
- for (const [f, p] of Object.entries(u))
12204
- Q2(e, l.properties, f, p);
12226
+ for (const [h, p] of Object.entries(u))
12227
+ Q2(e, l.properties, h, p);
12205
12228
  }
12206
12229
  for (const c of s)
12207
12230
  bi(l.children, c);
@@ -13607,11 +13630,11 @@ function pg(e, t) {
13607
13630
  const s = (
13608
13631
  /** @type {DefaultTreeAdapterMap['template']} */
13609
13632
  t
13610
- ), l = s.sourceCodeLocation, c = l && l.startTag && Cn(l.startTag), d = l && l.endTag && Cn(l.endTag), f = (
13633
+ ), l = s.sourceCodeLocation, c = l && l.startTag && Cn(l.startTag), d = l && l.endTag && Cn(l.endTag), h = (
13611
13634
  /** @type {Root} */
13612
13635
  Gi(e, s.content)
13613
13636
  );
13614
- c && d && e.file && (f.position = { start: c.end, end: d.start }), u.content = f;
13637
+ c && d && e.file && (h.position = { start: c.end, end: d.start }), u.content = h;
13615
13638
  }
13616
13639
  return e.schema = n, u;
13617
13640
  }
@@ -19565,33 +19588,33 @@ function sT(e, t, n, r) {
19565
19588
  const i = Gc(a), u = r ? -1 : 1;
19566
19589
  s(e, void 0, [])();
19567
19590
  function s(l, c, d) {
19568
- const f = (
19591
+ const h = (
19569
19592
  /** @type {Record<string, unknown>} */
19570
19593
  l && typeof l == "object" ? l : {}
19571
19594
  );
19572
- if (typeof f.type == "string") {
19573
- const h = (
19595
+ if (typeof h.type == "string") {
19596
+ const f = (
19574
19597
  // `hast`
19575
- typeof f.tagName == "string" ? f.tagName : (
19598
+ typeof h.tagName == "string" ? h.tagName : (
19576
19599
  // `xast`
19577
- typeof f.name == "string" ? f.name : void 0
19600
+ typeof h.name == "string" ? h.name : void 0
19578
19601
  )
19579
19602
  );
19580
19603
  Object.defineProperty(p, "name", {
19581
- value: "node (" + (l.type + (h ? "<" + h + ">" : "")) + ")"
19604
+ value: "node (" + (l.type + (f ? "<" + f + ">" : "")) + ")"
19582
19605
  });
19583
19606
  }
19584
19607
  return p;
19585
19608
  function p() {
19586
- let h = Xc, T, m, _;
19587
- if ((!t || i(l, c, d[d.length - 1] || void 0)) && (h = lT(n(l, d)), h[0] === rs))
19588
- return h;
19609
+ let f = Xc, T, m, _;
19610
+ if ((!t || i(l, c, d[d.length - 1] || void 0)) && (f = lT(n(l, d)), f[0] === rs))
19611
+ return f;
19589
19612
  if ("children" in l && l.children) {
19590
19613
  const E = (
19591
19614
  /** @type {UnistParent} */
19592
19615
  l
19593
19616
  );
19594
- if (E.children && h[0] !== oT)
19617
+ if (E.children && f[0] !== oT)
19595
19618
  for (m = (r ? E.children.length : -1) + u, _ = d.concat(E); m > -1 && m < E.children.length; ) {
19596
19619
  const P = E.children[m];
19597
19620
  if (T = s(P, m, _)(), T[0] === rs)
@@ -19599,7 +19622,7 @@ function sT(e, t, n, r) {
19599
19622
  m = typeof T[1] == "number" ? T[1] : m + u;
19600
19623
  }
19601
19624
  }
19602
- return h;
19625
+ return f;
19603
19626
  }
19604
19627
  }
19605
19628
  }
@@ -19610,8 +19633,8 @@ function cT(e, t, n, r) {
19610
19633
  let a, i, u;
19611
19634
  i = t, u = n, a = r, sT(e, i, s, a);
19612
19635
  function s(l, c) {
19613
- const d = c[c.length - 1], f = d ? d.children.indexOf(l) : void 0;
19614
- return u(l, f, d);
19636
+ const d = c[c.length - 1], h = d ? d.children.indexOf(l) : void 0;
19637
+ return u(l, h, d);
19615
19638
  }
19616
19639
  }
19617
19640
  const dT = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi, fT = /* @__PURE__ */ new Set([
@@ -19645,8 +19668,8 @@ function Kc(e, t) {
19645
19668
  s
19646
19669
  );
19647
19670
  if (d.value.stitch && c && l !== void 0) {
19648
- const f = c.children;
19649
- return f[l] = d.value.stitch, l;
19671
+ const h = c.children;
19672
+ return h[l] = d.value.stitch, l;
19650
19673
  }
19651
19674
  }), u.type === "root" && u.children.length === 1 && u.children[0].type === e.type ? u.children[0] : u;
19652
19675
  }
@@ -19841,9 +19864,9 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19841
19864
  var X;
19842
19865
  const { primaryColor: l, conversationScreen: c } = se(He), {
19843
19866
  content: d,
19844
- disableFeedback: f,
19867
+ disableFeedback: h,
19845
19868
  liveAgent: p,
19846
- role: h = "assistant",
19869
+ role: f = "assistant",
19847
19870
  timestamp: T,
19848
19871
  toolCalls: m
19849
19872
  } = n ?? {}, _ = p || w2(m).includes("escalate_to_an_agent"), E = !_ && !!d, P = or(
@@ -19902,7 +19925,7 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19902
19925
  children: y.children
19903
19926
  }
19904
19927
  ),
19905
- p: (y) => /* @__PURE__ */ v.jsx("p", { ...y, style: P[h].bubbleStyle, children: y.children }),
19928
+ p: (y) => /* @__PURE__ */ v.jsx("p", { ...y, style: P[f].bubbleStyle, children: y.children }),
19906
19929
  "document-source": ({ children: y, node: k }) => {
19907
19930
  var M;
19908
19931
  const W = (M = k.properties) == null ? void 0 : M.dataIndex;
@@ -19915,11 +19938,11 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19915
19938
  children: D
19916
19939
  }
19917
19940
  );
19918
- }, [d, E, i, P, h]);
19941
+ }, [d, E, i, P, f]);
19919
19942
  return /* @__PURE__ */ v.jsxs(
19920
19943
  "section",
19921
19944
  {
19922
- "aria-label": P[h].sectionAriaLabel,
19945
+ "aria-label": P[f].sectionAriaLabel,
19923
19946
  className: "xpert-chatbot-popup__bubble--group",
19924
19947
  ref: r,
19925
19948
  children: [
@@ -19927,9 +19950,9 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19927
19950
  "div",
19928
19951
  {
19929
19952
  className: "xpert-chatbot-popup__bubble--group-inner",
19930
- style: P[h].innerStyle,
19953
+ style: P[f].innerStyle,
19931
19954
  children: [
19932
- h === "agent" && /* @__PURE__ */ v.jsx(
19955
+ f === "agent" && /* @__PURE__ */ v.jsx(
19933
19956
  mi,
19934
19957
  {
19935
19958
  alignSelf: "flex-end",
@@ -19941,8 +19964,8 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19941
19964
  "div",
19942
19965
  {
19943
19966
  "data-testid": "message-container",
19944
- className: P[h].bubbleClassName,
19945
- style: P[h].bubbleStyle,
19967
+ className: P[f].bubbleClassName,
19968
+ style: P[f].bubbleStyle,
19946
19969
  children: [
19947
19970
  F,
19948
19971
  _ && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -19963,7 +19986,7 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19963
19986
  ]
19964
19987
  }
19965
19988
  ),
19966
- h === "user" && /* @__PURE__ */ v.jsx(
19989
+ f === "user" && /* @__PURE__ */ v.jsx(
19967
19990
  mi,
19968
19991
  {
19969
19992
  alignSelf: "flex-end",
@@ -19975,7 +19998,7 @@ const xT = "Sure, I can get you to someone who can help.", vT = (e) => {
19975
19998
  }
19976
19999
  ),
19977
20000
  T && /* @__PURE__ */ v.jsx("div", { className: "xpert-chatbot-popup__bubble--timestamp", children: k2(T).format("hh:mm a") }),
19978
- !f && a && h === "assistant" ? /* @__PURE__ */ v.jsx(
20001
+ !h && a && f === "assistant" ? /* @__PURE__ */ v.jsx(
19979
20002
  al,
19980
20003
  {
19981
20004
  id: e,
@@ -20075,12 +20098,12 @@ const ia = ({
20075
20098
  "aria-label": "Chat conversation",
20076
20099
  "aria-busy": t,
20077
20100
  style: { display: "flex", flexDirection: "column" },
20078
- children: n.map((d, f) => {
20079
- const { role: p } = d, h = `${p}-${f}`;
20080
- return p === "error" ? /* @__PURE__ */ v.jsx(ii, { content: d == null ? void 0 : d.content }, h) : p === "notification" ? /* @__PURE__ */ v.jsx(eu, { message: d }, h) : ["agent", "assistant", "info", "user"].includes(p) ? /* @__PURE__ */ v.jsx(
20101
+ children: n.map((d, h) => {
20102
+ const { role: p } = d, f = `${p}-${h}`;
20103
+ return p === "error" ? /* @__PURE__ */ v.jsx(ii, { content: d == null ? void 0 : d.content }, f) : p === "notification" ? /* @__PURE__ */ v.jsx(eu, { message: d }, f) : ["agent", "assistant", "info", "user"].includes(p) ? /* @__PURE__ */ v.jsx(
20081
20104
  aa,
20082
20105
  {
20083
- index: f,
20106
+ index: h,
20084
20107
  isTestUser: e,
20085
20108
  message: d,
20086
20109
  messageRef: c,
@@ -20089,7 +20112,7 @@ const ia = ({
20089
20112
  onFeedbackThumbSelection: r,
20090
20113
  onMessageLinkClicked: a
20091
20114
  },
20092
- h
20115
+ f
20093
20116
  ) : null;
20094
20117
  })
20095
20118
  }
@@ -20204,7 +20227,7 @@ function nd({
20204
20227
  userInput: l = ""
20205
20228
  }) {
20206
20229
  var _, E;
20207
- const { conversationScreen: c, disclaimer: d } = se(He), { deleteConversationModal: f, xpertMessages: p } = se(Gt), { loading: h, setMode: T } = se(Ze), m = (P) => {
20230
+ const { conversationScreen: c, disclaimer: d } = se(He), { deleteConversationModal: h, xpertMessages: p } = se(Gt), { loading: f, setMode: T } = se(Ze), m = (P) => {
20208
20231
  c.liveChat.useOwnChat ? T(jt.LIVECHAT) : u(P);
20209
20232
  };
20210
20233
  return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -20219,7 +20242,7 @@ function nd({
20219
20242
  },
20220
20243
  children: [
20221
20244
  (d == null ? void 0 : d.text) && /* @__PURE__ */ v.jsx(Ys, {}),
20222
- ((_ = c == null ? void 0 : c.prompts) == null ? void 0 : _.length) > 0 && /* @__PURE__ */ v.jsx(tu, { loading: h, onPromptClick: r }),
20245
+ ((_ = c == null ? void 0 : c.prompts) == null ? void 0 : _.length) > 0 && /* @__PURE__ */ v.jsx(tu, { loading: f, onPromptClick: r }),
20223
20246
  (c == null ? void 0 : c.systemMessage) && /* @__PURE__ */ v.jsx(
20224
20247
  aa,
20225
20248
  {
@@ -20234,7 +20257,7 @@ function nd({
20234
20257
  {
20235
20258
  isTestUser: i,
20236
20259
  messages: p,
20237
- loading: h,
20260
+ loading: f,
20238
20261
  setLiveChatOpen: u,
20239
20262
  submitEvent: s,
20240
20263
  onFeedbackThumbSelection: t,
@@ -20268,7 +20291,7 @@ function nd({
20268
20291
  /* @__PURE__ */ v.jsx("div", { style: { display: "flex", flex: 1, padding: "1.5rem" }, children: /* @__PURE__ */ v.jsx(
20269
20292
  Ni,
20270
20293
  {
20271
- disabled: h || f,
20294
+ disabled: f || h,
20272
20295
  handleChange: e,
20273
20296
  handleSend: r,
20274
20297
  inputRef: a,
@@ -20350,8 +20373,8 @@ function ru() {
20350
20373
  var n = function(a, i) {
20351
20374
  i === void 0 && (i = {});
20352
20375
  var u = /\?([\w]+=[\w]+)/, s = u.test(a), l = "".concat(Object.entries(i).reduce(function(c, d) {
20353
- var f = d[0], p = d[1];
20354
- return c + "".concat(f, "=").concat(p, "&");
20376
+ var h = d[0], p = d[1];
20377
+ return c + "".concat(h, "=").concat(p, "&");
20355
20378
  }, "").slice(0, -1));
20356
20379
  return "".concat(a).concat(s ? "&" : "?").concat(l);
20357
20380
  };
@@ -20376,7 +20399,7 @@ function rd() {
20376
20399
  }).current : r.current;
20377
20400
  }
20378
20401
  function n(r, a, i) {
20379
- var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, f = u.message, p = f === void 0 ? e.DEFAULT_HEARTBEAT.message : f, h = Math.max(100, l / 10), T = Date.now(), m = setInterval(function() {
20402
+ var u = i || {}, s = u.interval, l = s === void 0 ? e.DEFAULT_HEARTBEAT.interval : s, c = u.timeout, d = c === void 0 ? e.DEFAULT_HEARTBEAT.timeout : c, h = u.message, p = h === void 0 ? e.DEFAULT_HEARTBEAT.message : h, f = Math.max(100, l / 10), T = Date.now(), m = setInterval(function() {
20380
20403
  var _ = Date.now(), E = t(a);
20381
20404
  if (E + d <= _)
20382
20405
  console.warn("Heartbeat timed out, closing connection, last message received ".concat(_ - E, "ms ago, last ping sent ").concat(_ - T, "ms ago")), r.close();
@@ -20386,7 +20409,7 @@ function rd() {
20386
20409
  } catch (P) {
20387
20410
  console.error("Heartbeat failed, closing connection", P instanceof Error ? P.message : P), r.close();
20388
20411
  }
20389
- }, h);
20412
+ }, f);
20390
20413
  return r.addEventListener("close", function() {
20391
20414
  clearInterval(m);
20392
20415
  }), function() {
@@ -20445,65 +20468,65 @@ function OT() {
20445
20468
  ds = 1;
20446
20469
  var e = en && en.__assign || function() {
20447
20470
  return e = Object.assign || function(d) {
20448
- for (var f, p = 1, h = arguments.length; p < h; p++) {
20449
- f = arguments[p];
20450
- for (var T in f) Object.prototype.hasOwnProperty.call(f, T) && (d[T] = f[T]);
20471
+ for (var h, p = 1, f = arguments.length; p < f; p++) {
20472
+ h = arguments[p];
20473
+ for (var T in h) Object.prototype.hasOwnProperty.call(h, T) && (d[T] = h[T]);
20451
20474
  }
20452
20475
  return d;
20453
20476
  }, e.apply(this, arguments);
20454
20477
  };
20455
20478
  Object.defineProperty(en, "__esModule", { value: !0 }), en.attachListeners = void 0;
20456
- var t = ru(), n = rd(), r = wt(), a = iu(), i = function(d, f, p, h) {
20479
+ var t = ru(), n = rd(), r = wt(), a = iu(), i = function(d, h, p, f) {
20457
20480
  d.onmessage = function(T) {
20458
20481
  var m;
20459
- f.current.onMessage && f.current.onMessage(T), typeof (h == null ? void 0 : h.current) == "number" && (h.current = Date.now()), !(typeof f.current.filter == "function" && f.current.filter(T) !== !0) && (f.current.heartbeat && typeof f.current.heartbeat != "boolean" && ((m = f.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === T.data || p(T));
20482
+ h.current.onMessage && h.current.onMessage(T), typeof (f == null ? void 0 : f.current) == "number" && (f.current = Date.now()), !(typeof h.current.filter == "function" && h.current.filter(T) !== !0) && (h.current.heartbeat && typeof h.current.heartbeat != "boolean" && ((m = h.current.heartbeat) === null || m === void 0 ? void 0 : m.returnMessage) === T.data || p(T));
20460
20483
  };
20461
- }, u = function(d, f, p, h, T) {
20484
+ }, u = function(d, h, p, f, T) {
20462
20485
  d.onopen = function(m) {
20463
- if (f.current.onOpen && f.current.onOpen(m), h.current = 0, p(r.ReadyState.OPEN), f.current.heartbeat && d instanceof WebSocket) {
20464
- var _ = typeof f.current.heartbeat == "boolean" ? void 0 : f.current.heartbeat;
20486
+ if (h.current.onOpen && h.current.onOpen(m), f.current = 0, p(r.ReadyState.OPEN), h.current.heartbeat && d instanceof WebSocket) {
20487
+ var _ = typeof h.current.heartbeat == "boolean" ? void 0 : h.current.heartbeat;
20465
20488
  T.current = Date.now(), (0, n.heartbeat)(d, T, _);
20466
20489
  }
20467
20490
  };
20468
- }, s = function(d, f, p, h, T) {
20491
+ }, s = function(d, h, p, f, T) {
20469
20492
  if (r.isEventSourceSupported && d instanceof EventSource)
20470
20493
  return function() {
20471
20494
  };
20472
- (0, a.assertIsWebSocket)(d, f.current.skipAssert);
20495
+ (0, a.assertIsWebSocket)(d, h.current.skipAssert);
20473
20496
  var m;
20474
20497
  return d.onclose = function(_) {
20475
20498
  var E;
20476
- if (f.current.onClose && f.current.onClose(_), p(r.ReadyState.CLOSED), f.current.shouldReconnect && f.current.shouldReconnect(_)) {
20477
- var P = (E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT;
20499
+ if (h.current.onClose && h.current.onClose(_), p(r.ReadyState.CLOSED), h.current.shouldReconnect && h.current.shouldReconnect(_)) {
20500
+ var P = (E = h.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT;
20478
20501
  if (T.current < P) {
20479
- var F = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T.current) : f.current.reconnectInterval;
20502
+ var F = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(T.current) : h.current.reconnectInterval;
20480
20503
  m = window.setTimeout(function() {
20481
- T.current++, h();
20504
+ T.current++, f();
20482
20505
  }, F ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
20483
20506
  } else
20484
- f.current.onReconnectStop && f.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
20507
+ h.current.onReconnectStop && h.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
20485
20508
  }
20486
20509
  }, function() {
20487
20510
  return m && window.clearTimeout(m);
20488
20511
  };
20489
- }, l = function(d, f, p, h, T) {
20512
+ }, l = function(d, h, p, f, T) {
20490
20513
  var m;
20491
20514
  return d.onerror = function(_) {
20492
20515
  var E;
20493
- if (f.current.onError && f.current.onError(_), r.isEventSourceSupported && d instanceof EventSource && (f.current.onClose && f.current.onClose(e(e({}, _), { code: 1006, reason: "An error occurred with the EventSource: ".concat(_), wasClean: !1 })), p(r.ReadyState.CLOSED), d.close()), f.current.retryOnError)
20494
- if (T.current < ((E = f.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT)) {
20495
- var P = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T.current) : f.current.reconnectInterval;
20516
+ if (h.current.onError && h.current.onError(_), r.isEventSourceSupported && d instanceof EventSource && (h.current.onClose && h.current.onClose(e(e({}, _), { code: 1006, reason: "An error occurred with the EventSource: ".concat(_), wasClean: !1 })), p(r.ReadyState.CLOSED), d.close()), h.current.retryOnError)
20517
+ if (T.current < ((E = h.current.reconnectAttempts) !== null && E !== void 0 ? E : r.DEFAULT_RECONNECT_LIMIT)) {
20518
+ var P = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(T.current) : h.current.reconnectInterval;
20496
20519
  m = window.setTimeout(function() {
20497
- T.current++, h();
20520
+ T.current++, f();
20498
20521
  }, P ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
20499
20522
  } else
20500
- f.current.onReconnectStop && f.current.onReconnectStop(f.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(f.current.reconnectAttempts, " exceeded"));
20523
+ h.current.onReconnectStop && h.current.onReconnectStop(h.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(h.current.reconnectAttempts, " exceeded"));
20501
20524
  }, function() {
20502
20525
  return m && window.clearTimeout(m);
20503
20526
  };
20504
- }, c = function(d, f, p, h, T, m, _) {
20505
- var E = f.setLastMessage, P = f.setReadyState, F, X, D;
20506
- return p.current.fromSocketIO && (F = (0, t.setUpSocketIOPing)(_)), i(d, p, E, m), u(d, p, P, T, m), X = s(d, p, P, h, T), D = l(d, p, P, h, T), function() {
20527
+ }, c = function(d, h, p, f, T, m, _) {
20528
+ var E = h.setLastMessage, P = h.setReadyState, F, X, D;
20529
+ return p.current.fromSocketIO && (F = (0, t.setUpSocketIOPing)(_)), i(d, p, E, m), u(d, p, P, T, m), X = s(d, p, P, f, T), D = l(d, p, P, f, T), function() {
20507
20530
  P(r.ReadyState.CLOSING), X(), D(), d.close(), F && clearInterval(F);
20508
20531
  };
20509
20532
  };
@@ -20514,38 +20537,38 @@ function IT() {
20514
20537
  if (fs) return tn;
20515
20538
  fs = 1;
20516
20539
  var e = tn && tn.__assign || function() {
20517
- return e = Object.assign || function(f) {
20518
- for (var p, h = 1, T = arguments.length; h < T; h++) {
20519
- p = arguments[h];
20520
- for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (f[m] = p[m]);
20540
+ return e = Object.assign || function(h) {
20541
+ for (var p, f = 1, T = arguments.length; f < T; f++) {
20542
+ p = arguments[f];
20543
+ for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (h[m] = p[m]);
20521
20544
  }
20522
- return f;
20545
+ return h;
20523
20546
  }, e.apply(this, arguments);
20524
20547
  };
20525
20548
  Object.defineProperty(tn, "__esModule", { value: !0 }), tn.attachSharedListeners = void 0;
20526
- var t = nu(), n = wt(), r = au(), a = ru(), i = rd(), u = function(f, p, h) {
20527
- f.onmessage = function(T) {
20549
+ var t = nu(), n = wt(), r = au(), a = ru(), i = rd(), u = function(h, p, f) {
20550
+ h.onmessage = function(T) {
20528
20551
  (0, r.getSubscribers)(p).forEach(function(m) {
20529
20552
  var _;
20530
- m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(T), typeof ((_ = m == null ? void 0 : m.lastMessageTime) === null || _ === void 0 ? void 0 : _.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(T) !== !0) && (h && typeof h != "boolean" && (h == null ? void 0 : h.returnMessage) === T.data || m.setLastMessage(T));
20553
+ m.optionsRef.current.onMessage && m.optionsRef.current.onMessage(T), typeof ((_ = m == null ? void 0 : m.lastMessageTime) === null || _ === void 0 ? void 0 : _.current) == "number" && (m.lastMessageTime.current = Date.now()), !(typeof m.optionsRef.current.filter == "function" && m.optionsRef.current.filter(T) !== !0) && (f && typeof f != "boolean" && (f == null ? void 0 : f.returnMessage) === T.data || m.setLastMessage(T));
20531
20554
  });
20532
20555
  };
20533
- }, s = function(f, p, h) {
20534
- f.onopen = function(T) {
20556
+ }, s = function(h, p, f) {
20557
+ h.onopen = function(T) {
20535
20558
  var m = (0, r.getSubscribers)(p);
20536
20559
  m.forEach(function(_) {
20537
- _.reconnectCount.current = 0, _.optionsRef.current.onOpen && _.optionsRef.current.onOpen(T), _.setReadyState(n.ReadyState.OPEN), h && f instanceof WebSocket && (_.lastMessageTime.current = Date.now());
20538
- }), h && f instanceof WebSocket && (0, i.heartbeat)(f, m.map(function(_) {
20560
+ _.reconnectCount.current = 0, _.optionsRef.current.onOpen && _.optionsRef.current.onOpen(T), _.setReadyState(n.ReadyState.OPEN), f && h instanceof WebSocket && (_.lastMessageTime.current = Date.now());
20561
+ }), f && h instanceof WebSocket && (0, i.heartbeat)(h, m.map(function(_) {
20539
20562
  return _.lastMessageTime;
20540
- }), typeof h == "boolean" ? void 0 : h);
20563
+ }), typeof f == "boolean" ? void 0 : f);
20541
20564
  };
20542
- }, l = function(f, p) {
20543
- f instanceof WebSocket && (f.onclose = function(h) {
20565
+ }, l = function(h, p) {
20566
+ h instanceof WebSocket && (h.onclose = function(f) {
20544
20567
  (0, r.getSubscribers)(p).forEach(function(T) {
20545
- T.optionsRef.current.onClose && T.optionsRef.current.onClose(h), T.setReadyState(n.ReadyState.CLOSED);
20568
+ T.optionsRef.current.onClose && T.optionsRef.current.onClose(f), T.setReadyState(n.ReadyState.CLOSED);
20546
20569
  }), delete t.sharedWebSockets[p], (0, r.getSubscribers)(p).forEach(function(T) {
20547
20570
  var m;
20548
- if (T.optionsRef.current.shouldReconnect && T.optionsRef.current.shouldReconnect(h)) {
20571
+ if (T.optionsRef.current.shouldReconnect && T.optionsRef.current.shouldReconnect(f)) {
20549
20572
  var _ = (m = T.optionsRef.current.reconnectAttempts) !== null && m !== void 0 ? m : n.DEFAULT_RECONNECT_LIMIT;
20550
20573
  if (T.reconnectCount.current < _) {
20551
20574
  var E = typeof T.optionsRef.current.reconnectInterval == "function" ? T.optionsRef.current.reconnectInterval(T.reconnectCount.current) : T.optionsRef.current.reconnectInterval;
@@ -20557,15 +20580,15 @@ function IT() {
20557
20580
  }
20558
20581
  });
20559
20582
  });
20560
- }, c = function(f, p) {
20561
- f.onerror = function(h) {
20583
+ }, c = function(h, p) {
20584
+ h.onerror = function(f) {
20562
20585
  (0, r.getSubscribers)(p).forEach(function(T) {
20563
- T.optionsRef.current.onError && T.optionsRef.current.onError(h), n.isEventSourceSupported && f instanceof EventSource && (T.optionsRef.current.onClose && T.optionsRef.current.onClose(e(e({}, h), { code: 1006, reason: "An error occurred with the EventSource: ".concat(h), wasClean: !1 })), T.setReadyState(n.ReadyState.CLOSED));
20564
- }), n.isEventSourceSupported && f instanceof EventSource && f.close();
20586
+ T.optionsRef.current.onError && T.optionsRef.current.onError(f), n.isEventSourceSupported && h instanceof EventSource && (T.optionsRef.current.onClose && T.optionsRef.current.onClose(e(e({}, f), { code: 1006, reason: "An error occurred with the EventSource: ".concat(f), wasClean: !1 })), T.setReadyState(n.ReadyState.CLOSED));
20587
+ }), n.isEventSourceSupported && h instanceof EventSource && h.close();
20565
20588
  };
20566
- }, d = function(f, p, h, T) {
20589
+ }, d = function(h, p, f, T) {
20567
20590
  var m;
20568
- return h.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(T)), u(f, p, h.current.heartbeat), l(f, p), s(f, p, h.current.heartbeat), c(f, p), function() {
20591
+ return f.current.fromSocketIO && (m = (0, a.setUpSocketIOPing)(T)), u(h, p, f.current.heartbeat), l(h, p), s(h, p, f.current.heartbeat), c(h, p), function() {
20569
20592
  m && clearInterval(m);
20570
20593
  };
20571
20594
  };
@@ -20575,30 +20598,30 @@ var hs;
20575
20598
  function NT() {
20576
20599
  if (hs) return Wn;
20577
20600
  hs = 1, Object.defineProperty(Wn, "__esModule", { value: !0 }), Wn.createOrJoinSocket = void 0;
20578
- var e = nu(), t = wt(), n = OT(), r = IT(), a = au(), i = function(s, l, c, d, f) {
20601
+ var e = nu(), t = wt(), n = OT(), r = IT(), a = au(), i = function(s, l, c, d, h) {
20579
20602
  return function() {
20580
20603
  if ((0, a.removeSubscriber)(s, l), !(0, a.hasSubscribers)(s)) {
20581
20604
  try {
20582
20605
  var p = e.sharedWebSockets[s];
20583
- p instanceof WebSocket && (p.onclose = function(h) {
20584
- c.current.onClose && c.current.onClose(h), d(t.ReadyState.CLOSED);
20606
+ p instanceof WebSocket && (p.onclose = function(f) {
20607
+ c.current.onClose && c.current.onClose(f), d(t.ReadyState.CLOSED);
20585
20608
  }), p.close();
20586
20609
  } catch {
20587
20610
  }
20588
- f && f(), delete e.sharedWebSockets[s];
20611
+ h && h(), delete e.sharedWebSockets[s];
20589
20612
  }
20590
20613
  };
20591
- }, u = function(s, l, c, d, f, p, h, T, m) {
20614
+ }, u = function(s, l, c, d, h, p, f, T, m) {
20592
20615
  if (!t.isEventSourceSupported && d.current.eventSourceOptions)
20593
20616
  throw t.isReactNative ? new Error("EventSource is not supported in ReactNative") : new Error("EventSource is not supported");
20594
20617
  if (d.current.share) {
20595
20618
  var _ = null;
20596
20619
  e.sharedWebSockets[l] === void 0 ? (e.sharedWebSockets[l] = d.current.eventSourceOptions ? new EventSource(l, d.current.eventSourceOptions) : new WebSocket(l, d.current.protocols), s.current = e.sharedWebSockets[l], c(t.ReadyState.CONNECTING), _ = (0, r.attachSharedListeners)(e.sharedWebSockets[l], l, d, m)) : (s.current = e.sharedWebSockets[l], c(e.sharedWebSockets[l].readyState));
20597
20620
  var E = {
20598
- setLastMessage: f,
20621
+ setLastMessage: h,
20599
20622
  setReadyState: c,
20600
20623
  optionsRef: d,
20601
- reconnectCount: h,
20624
+ reconnectCount: f,
20602
20625
  lastMessageTime: T,
20603
20626
  reconnect: p
20604
20627
  };
@@ -20607,9 +20630,9 @@ function NT() {
20607
20630
  if (s.current = d.current.eventSourceOptions ? new EventSource(l, d.current.eventSourceOptions) : new WebSocket(l, d.current.protocols), c(t.ReadyState.CONNECTING), !s.current)
20608
20631
  throw new Error("WebSocket failed to be created");
20609
20632
  return (0, n.attachListeners)(s.current, {
20610
- setLastMessage: f,
20633
+ setLastMessage: h,
20611
20634
  setReadyState: c
20612
- }, d, p.current, h, T, m);
20635
+ }, d, p.current, f, T, m);
20613
20636
  }
20614
20637
  };
20615
20638
  return Wn.createOrJoinSocket = u, Wn;
@@ -20617,37 +20640,37 @@ function NT() {
20617
20640
  var Ft = {}, ps;
20618
20641
  function kT() {
20619
20642
  return ps || (ps = 1, function(e) {
20620
- var t = Ft && Ft.__awaiter || function(l, c, d, f) {
20621
- function p(h) {
20622
- return h instanceof d ? h : new d(function(T) {
20623
- T(h);
20643
+ var t = Ft && Ft.__awaiter || function(l, c, d, h) {
20644
+ function p(f) {
20645
+ return f instanceof d ? f : new d(function(T) {
20646
+ T(f);
20624
20647
  });
20625
20648
  }
20626
- return new (d || (d = Promise))(function(h, T) {
20649
+ return new (d || (d = Promise))(function(f, T) {
20627
20650
  function m(P) {
20628
20651
  try {
20629
- E(f.next(P));
20652
+ E(h.next(P));
20630
20653
  } catch (F) {
20631
20654
  T(F);
20632
20655
  }
20633
20656
  }
20634
20657
  function _(P) {
20635
20658
  try {
20636
- E(f.throw(P));
20659
+ E(h.throw(P));
20637
20660
  } catch (F) {
20638
20661
  T(F);
20639
20662
  }
20640
20663
  }
20641
20664
  function E(P) {
20642
- P.done ? h(P.value) : p(P.value).then(m, _);
20665
+ P.done ? f(P.value) : p(P.value).then(m, _);
20643
20666
  }
20644
- E((f = f.apply(l, c || [])).next());
20667
+ E((h = h.apply(l, c || [])).next());
20645
20668
  });
20646
20669
  }, n = Ft && Ft.__generator || function(l, c) {
20647
20670
  var d = { label: 0, sent: function() {
20648
- if (h[0] & 1) throw h[1];
20649
- return h[1];
20650
- }, trys: [], ops: [] }, f, p, h, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
20671
+ if (f[0] & 1) throw f[1];
20672
+ return f[1];
20673
+ }, trys: [], ops: [] }, h, p, f, T = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
20651
20674
  return T.next = m(0), T.throw = m(1), T.return = m(2), typeof Symbol == "function" && (T[Symbol.iterator] = function() {
20652
20675
  return this;
20653
20676
  }), T;
@@ -20657,13 +20680,13 @@ function kT() {
20657
20680
  };
20658
20681
  }
20659
20682
  function _(E) {
20660
- if (f) throw new TypeError("Generator is already executing.");
20683
+ if (h) throw new TypeError("Generator is already executing.");
20661
20684
  for (; T && (T = 0, E[0] && (d = 0)), d; ) try {
20662
- if (f = 1, p && (h = E[0] & 2 ? p.return : E[0] ? p.throw || ((h = p.return) && h.call(p), 0) : p.next) && !(h = h.call(p, E[1])).done) return h;
20663
- switch (p = 0, h && (E = [E[0] & 2, h.value]), E[0]) {
20685
+ if (h = 1, p && (f = E[0] & 2 ? p.return : E[0] ? p.throw || ((f = p.return) && f.call(p), 0) : p.next) && !(f = f.call(p, E[1])).done) return f;
20686
+ switch (p = 0, f && (E = [E[0] & 2, f.value]), E[0]) {
20664
20687
  case 0:
20665
20688
  case 1:
20666
- h = E;
20689
+ f = E;
20667
20690
  break;
20668
20691
  case 4:
20669
20692
  return d.label++, { value: E[1], done: !1 };
@@ -20674,38 +20697,38 @@ function kT() {
20674
20697
  E = d.ops.pop(), d.trys.pop();
20675
20698
  continue;
20676
20699
  default:
20677
- if (h = d.trys, !(h = h.length > 0 && h[h.length - 1]) && (E[0] === 6 || E[0] === 2)) {
20700
+ if (f = d.trys, !(f = f.length > 0 && f[f.length - 1]) && (E[0] === 6 || E[0] === 2)) {
20678
20701
  d = 0;
20679
20702
  continue;
20680
20703
  }
20681
- if (E[0] === 3 && (!h || E[1] > h[0] && E[1] < h[3])) {
20704
+ if (E[0] === 3 && (!f || E[1] > f[0] && E[1] < f[3])) {
20682
20705
  d.label = E[1];
20683
20706
  break;
20684
20707
  }
20685
- if (E[0] === 6 && d.label < h[1]) {
20686
- d.label = h[1], h = E;
20708
+ if (E[0] === 6 && d.label < f[1]) {
20709
+ d.label = f[1], f = E;
20687
20710
  break;
20688
20711
  }
20689
- if (h && d.label < h[2]) {
20690
- d.label = h[2], d.ops.push(E);
20712
+ if (f && d.label < f[2]) {
20713
+ d.label = f[2], d.ops.push(E);
20691
20714
  break;
20692
20715
  }
20693
- h[2] && d.ops.pop(), d.trys.pop();
20716
+ f[2] && d.ops.pop(), d.trys.pop();
20694
20717
  continue;
20695
20718
  }
20696
20719
  E = c.call(l, d);
20697
20720
  } catch (P) {
20698
20721
  E = [6, P], p = 0;
20699
20722
  } finally {
20700
- f = h = 0;
20723
+ h = f = 0;
20701
20724
  }
20702
20725
  if (E[0] & 5) throw E[1];
20703
20726
  return { value: E[0] ? E[1] : void 0, done: !0 };
20704
20727
  }
20705
20728
  }, r = Ft && Ft.__spreadArray || function(l, c, d) {
20706
- if (d || arguments.length === 2) for (var f = 0, p = c.length, h; f < p; f++)
20707
- (h || !(f in c)) && (h || (h = Array.prototype.slice.call(c, 0, f)), h[f] = c[f]);
20708
- return l.concat(h || Array.prototype.slice.call(c));
20729
+ if (d || arguments.length === 2) for (var h = 0, p = c.length, f; h < p; h++)
20730
+ (f || !(h in c)) && (f || (f = Array.prototype.slice.call(c, 0, h)), f[h] = c[h]);
20731
+ return l.concat(f || Array.prototype.slice.call(c));
20709
20732
  };
20710
20733
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getUrl = void 0;
20711
20734
  var a = ru(), i = wt(), u = function(l) {
@@ -20713,9 +20736,9 @@ function kT() {
20713
20736
  return window.setTimeout(c, l);
20714
20737
  });
20715
20738
  }, s = function(l, c) {
20716
- for (var d = [], f = 2; f < arguments.length; f++)
20717
- d[f - 2] = arguments[f];
20718
- return t(void 0, r([l, c], d, !0), void 0, function(p, h, T) {
20739
+ for (var d = [], h = 2; h < arguments.length; h++)
20740
+ d[h - 2] = arguments[h];
20741
+ return t(void 0, r([l, c], d, !0), void 0, function(p, f, T) {
20719
20742
  var m, _, E, P, F, X, D, y;
20720
20743
  return T === void 0 && (T = 0), n(this, function(k) {
20721
20744
  switch (k.label) {
@@ -20727,11 +20750,11 @@ function kT() {
20727
20750
  case 2:
20728
20751
  return m = k.sent(), [3, 9];
20729
20752
  case 3:
20730
- return k.sent(), h.current.retryOnError ? (_ = (X = h.current.reconnectAttempts) !== null && X !== void 0 ? X : i.DEFAULT_RECONNECT_LIMIT, T < _ ? (E = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(T) : h.current.reconnectInterval, [4, u(E ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20753
+ return k.sent(), f.current.retryOnError ? (_ = (X = f.current.reconnectAttempts) !== null && X !== void 0 ? X : i.DEFAULT_RECONNECT_LIMIT, T < _ ? (E = typeof f.current.reconnectInterval == "function" ? f.current.reconnectInterval(T) : f.current.reconnectInterval, [4, u(E ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20731
20754
  case 4:
20732
- return k.sent(), [2, (0, e.getUrl)(p, h, T + 1)];
20755
+ return k.sent(), [2, (0, e.getUrl)(p, f, T + 1)];
20733
20756
  case 5:
20734
- return (y = (D = h.current).onReconnectStop) === null || y === void 0 || y.call(D, T), [2, null];
20757
+ return (y = (D = f.current).onReconnectStop) === null || y === void 0 || y.call(D, T), [2, null];
20735
20758
  case 6:
20736
20759
  return [3, 8];
20737
20760
  case 7:
@@ -20743,7 +20766,7 @@ function kT() {
20743
20766
  case 10:
20744
20767
  m = p, k.label = 11;
20745
20768
  case 11:
20746
- return P = h.current.fromSocketIO ? (0, a.parseSocketIOUrl)(m) : m, F = h.current.queryParams ? (0, a.appendQueryParams)(P, h.current.queryParams) : P, [2, F];
20769
+ return P = f.current.fromSocketIO ? (0, a.parseSocketIOUrl)(m) : m, F = f.current.queryParams ? (0, a.appendQueryParams)(P, f.current.queryParams) : P, [2, F];
20747
20770
  }
20748
20771
  });
20749
20772
  });
@@ -20776,13 +20799,13 @@ function uu() {
20776
20799
  gs = 1;
20777
20800
  var e = st && st.__assign || function() {
20778
20801
  return e = Object.assign || function(p) {
20779
- for (var h, T = 1, m = arguments.length; T < m; T++) {
20780
- h = arguments[T];
20781
- for (var _ in h) Object.prototype.hasOwnProperty.call(h, _) && (p[_] = h[_]);
20802
+ for (var f, T = 1, m = arguments.length; T < m; T++) {
20803
+ f = arguments[T];
20804
+ for (var _ in f) Object.prototype.hasOwnProperty.call(f, _) && (p[_] = f[_]);
20782
20805
  }
20783
20806
  return p;
20784
20807
  }, e.apply(this, arguments);
20785
- }, t = st && st.__awaiter || function(p, h, T, m) {
20808
+ }, t = st && st.__awaiter || function(p, f, T, m) {
20786
20809
  function _(E) {
20787
20810
  return E instanceof T ? E : new T(function(P) {
20788
20811
  P(E);
@@ -20806,9 +20829,9 @@ function uu() {
20806
20829
  function D(y) {
20807
20830
  y.done ? E(y.value) : _(y.value).then(F, X);
20808
20831
  }
20809
- D((m = m.apply(p, h || [])).next());
20832
+ D((m = m.apply(p, f || [])).next());
20810
20833
  });
20811
- }, n = st && st.__generator || function(p, h) {
20834
+ }, n = st && st.__generator || function(p, f) {
20812
20835
  var T = { label: 0, sent: function() {
20813
20836
  if (E[0] & 1) throw E[1];
20814
20837
  return E[1];
@@ -20858,7 +20881,7 @@ function uu() {
20858
20881
  E[2] && T.ops.pop(), T.trys.pop();
20859
20882
  continue;
20860
20883
  }
20861
- D = h.call(p, T);
20884
+ D = f.call(p, T);
20862
20885
  } catch (y) {
20863
20886
  D = [6, y], _ = 0;
20864
20887
  } finally {
@@ -20871,20 +20894,20 @@ function uu() {
20871
20894
  return p && p.__esModule ? p : { default: p };
20872
20895
  };
20873
20896
  Object.defineProperty(st, "__esModule", { value: !0 }), st.useWebSocket = void 0;
20874
- var a = Tt, i = T0, u = wt(), s = NT(), l = kT(), c = r(LT()), d = iu(), f = function(p, h, T) {
20875
- h === void 0 && (h = u.DEFAULT_OPTIONS), T === void 0 && (T = !0);
20897
+ var a = Tt, i = T0, u = wt(), s = NT(), l = kT(), c = r(LT()), d = iu(), h = function(p, f, T) {
20898
+ f === void 0 && (f = u.DEFAULT_OPTIONS), T === void 0 && (T = !0);
20876
20899
  var m = (0, a.useState)(null), _ = m[0], E = m[1], P = (0, a.useState)({}), F = P[0], X = P[1], D = (0, a.useMemo)(function() {
20877
- if (!h.disableJson && _)
20900
+ if (!f.disableJson && _)
20878
20901
  try {
20879
20902
  return JSON.parse(_.data);
20880
20903
  } catch {
20881
20904
  return u.UNPARSABLE_JSON_OBJECT;
20882
20905
  }
20883
20906
  return null;
20884
- }, [_, h.disableJson]), y = (0, a.useRef)(null), k = (0, a.useRef)(null), W = (0, a.useRef)(function() {
20885
- }), M = (0, a.useRef)(0), Q = (0, a.useRef)(Date.now()), q = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(h);
20886
- L.current = h;
20887
- var I = y.current && F[y.current] !== void 0 ? F[y.current] : p !== null && T === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, R = h.queryParams ? JSON.stringify(h.queryParams) : null, H = (0, a.useCallback)(function(z, g) {
20907
+ }, [_, f.disableJson]), y = (0, a.useRef)(null), k = (0, a.useRef)(null), W = (0, a.useRef)(function() {
20908
+ }), M = (0, a.useRef)(0), Q = (0, a.useRef)(Date.now()), q = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(f);
20909
+ L.current = f;
20910
+ var I = y.current && F[y.current] !== void 0 ? F[y.current] : p !== null && T === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, R = f.queryParams ? JSON.stringify(f.queryParams) : null, H = (0, a.useCallback)(function(z, g) {
20888
20911
  var ne;
20889
20912
  if (g === void 0 && (g = !0), u.isEventSourceSupported && k.current instanceof EventSource) {
20890
20913
  console.warn("Unable to send a message from an eventSource");
@@ -20954,7 +20977,7 @@ function uu() {
20954
20977
  getWebSocket: j
20955
20978
  };
20956
20979
  };
20957
- return st.useWebSocket = f, st;
20980
+ return st.useWebSocket = h, st;
20958
20981
  }
20959
20982
  var nn = {}, bs;
20960
20983
  function RT() {
@@ -20964,7 +20987,7 @@ function RT() {
20964
20987
  return e = Object.assign || function(s) {
20965
20988
  for (var l, c = 1, d = arguments.length; c < d; c++) {
20966
20989
  l = arguments[c];
20967
- for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && (s[f] = l[f]);
20990
+ for (var h in l) Object.prototype.hasOwnProperty.call(l, h) && (s[h] = l[h]);
20968
20991
  }
20969
20992
  return s;
20970
20993
  }, e.apply(this, arguments);
@@ -20988,12 +21011,12 @@ function RT() {
20988
21011
  l === void 0 && (l = r.DEFAULT_OPTIONS), c === void 0 && (c = !0);
20989
21012
  var d = (0, t.useMemo)(function() {
20990
21013
  return e(e({}, l), { fromSocketIO: !0 });
20991
- }, []), f = (0, n.useWebSocket)(s, d, c), p = f.sendMessage, h = f.sendJsonMessage, T = f.lastMessage, m = f.readyState, _ = f.getWebSocket, E = (0, t.useMemo)(function() {
21014
+ }, []), h = (0, n.useWebSocket)(s, d, c), p = h.sendMessage, f = h.sendJsonMessage, T = h.lastMessage, m = h.readyState, _ = h.getWebSocket, E = (0, t.useMemo)(function() {
20992
21015
  return i(T);
20993
21016
  }, [T]);
20994
21017
  return {
20995
21018
  sendMessage: p,
20996
- sendJsonMessage: h,
21019
+ sendJsonMessage: f,
20997
21020
  lastMessage: E,
20998
21021
  lastJsonMessage: E,
20999
21022
  readyState: m,
@@ -21025,15 +21048,15 @@ function DT() {
21025
21048
  Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.useEventSource = void 0;
21026
21049
  var n = Tt, r = uu(), a = wt(), i = function(u, s, l) {
21027
21050
  s === void 0 && (s = a.DEFAULT_EVENT_SOURCE_OPTIONS);
21028
- var c = s.withCredentials, d = s.events, f = t(s, ["withCredentials", "events"]);
21051
+ var c = s.withCredentials, d = s.events, h = t(s, ["withCredentials", "events"]);
21029
21052
  l === void 0 && (l = !0);
21030
- var p = e(e({}, f), { eventSourceOptions: {
21053
+ var p = e(e({}, h), { eventSourceOptions: {
21031
21054
  withCredentials: c
21032
- } }), h = (0, n.useRef)(a.EMPTY_EVENT_HANDLERS);
21033
- d && (h.current = d);
21055
+ } }), f = (0, n.useRef)(a.EMPTY_EVENT_HANDLERS);
21056
+ d && (f.current = d);
21034
21057
  var T = (0, r.useWebSocket)(u, p, l), m = T.lastMessage, _ = T.readyState, E = T.getWebSocket;
21035
21058
  return (0, n.useEffect)(function() {
21036
- m != null && m.type && Object.entries(h.current).forEach(function(P) {
21059
+ m != null && m.type && Object.entries(f.current).forEach(function(P) {
21037
21060
  var F = P[0], X = P[1];
21038
21061
  F === m.type && X(m);
21039
21062
  });
@@ -21092,7 +21115,7 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
21092
21115
  CONVERSATION: "CONVERSATION",
21093
21116
  FORM: "FORM"
21094
21117
  }, hn = Wr({}), ad = ({ children: e, liveChatPayload: t }) => {
21095
- const { conversationScreen: n } = se(He), { pushXpertMessage: r } = se(Gt), { setHasError: a, setMode: i } = se(Ze), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [f, p] = de([]), [h, T] = de(null), [m, _] = de(Ut.FORM), [E, P] = de(null), F = (j) => p((z) => [...z, j]), X = async (j) => {
21118
+ const { conversationScreen: n } = se(He), { pushXpertMessage: r } = se(Gt), { setHasError: a, setMode: i } = se(Ze), [u, s] = de(""), [l, c] = de(!1), [, d] = de(""), [h, p] = de([]), [f, T] = de(null), [m, _] = de(Ut.FORM), [E, P] = de(null), F = (j) => p((z) => [...z, j]), X = async (j) => {
21096
21119
  const z = await FT(j.data), { conversation_id: g, event_type: ne, body: ue } = z;
21097
21120
  switch (ne) {
21098
21121
  case "AGENT_TYPING":
@@ -21118,7 +21141,7 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
21118
21141
  default:
21119
21142
  return;
21120
21143
  }
21121
- }, { sendJsonMessage: D } = MT(h, {
21144
+ }, { sendJsonMessage: D } = MT(f, {
21122
21145
  onMessage: X
21123
21146
  }), y = () => {
21124
21147
  var z;
@@ -21168,7 +21191,7 @@ const BT = "This conversation with a live agent has ended. Please note that a tr
21168
21191
  agentTyping: l,
21169
21192
  cancelLiveChatConnection: y,
21170
21193
  endLiveChat: W,
21171
- liveChatMessages: f,
21194
+ liveChatMessages: h,
21172
21195
  pushLiveChatMessage: F,
21173
21196
  sendMessage: (j) => {
21174
21197
  F({
@@ -21365,7 +21388,7 @@ function sd({
21365
21388
  setIsMounted: n,
21366
21389
  onClose: r
21367
21390
  }) {
21368
- var c, d, f, p, h, T, m, _, E, P, F, X, D, y, k;
21391
+ var c, d, h, p, f, T, m, _, E, P, F, X, D, y, k;
21369
21392
  const { primaryColor: a, conversationScreen: i } = se(He), { isMobile: u, mode: s } = se(Ze), { step: l } = se(hn);
21370
21393
  return l === Ut.CONNECTING && s === jt.LIVECHAT ? null : /* @__PURE__ */ v.jsxs(
21371
21394
  "div",
@@ -21385,11 +21408,11 @@ function sd({
21385
21408
  className: "xpert-chatbot-popup__header_container",
21386
21409
  style: {
21387
21410
  left: 0,
21388
- background: ((p = (f = i == null ? void 0 : i.header.container) == null ? void 0 : f.style) == null ? void 0 : p.background) || a
21411
+ background: ((p = (h = i == null ? void 0 : i.header.container) == null ? void 0 : h.style) == null ? void 0 : p.background) || a
21389
21412
  }
21390
21413
  }
21391
21414
  ),
21392
- ((T = (h = i == null ? void 0 : i.header) == null ? void 0 : h.logo) == null ? void 0 : T.type) === "edx" ? /* @__PURE__ */ v.jsx(
21415
+ ((T = (f = i == null ? void 0 : i.header) == null ? void 0 : f.logo) == null ? void 0 : T.type) === "edx" ? /* @__PURE__ */ v.jsx(
21393
21416
  "img",
21394
21417
  {
21395
21418
  "data-ot-ignore": "",
@@ -21542,7 +21565,7 @@ const ys = 500, YT = [
21542
21565
  }
21543
21566
  ];
21544
21567
  function cd({ onDismiss: e }) {
21545
- const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(He), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(hn), f = () => {
21568
+ const [t, n] = de(""), [r, a] = de(!1), [i, u] = de(null), { conversationScreen: s } = se(He), { endLiveChat: l, submitSurvey: c, terminateConversation: d } = se(hn), h = () => {
21546
21569
  var T;
21547
21570
  d(), (T = s == null ? void 0 : s.liveChat) != null && T.useSurvey ? a(!0) : l();
21548
21571
  }, p = () => {
@@ -21550,7 +21573,7 @@ function cd({ onDismiss: e }) {
21550
21573
  content: t,
21551
21574
  selectedOption: i
21552
21575
  });
21553
- }, h = (T) => {
21576
+ }, f = (T) => {
21554
21577
  n(T.target.value.slice(0, ys));
21555
21578
  };
21556
21579
  return /* @__PURE__ */ v.jsxs("div", { className: "livechat-end-confirmation-container", children: [
@@ -21558,7 +21581,7 @@ function cd({ onDismiss: e }) {
21558
21581
  /* @__PURE__ */ v.jsx("p", { children: "Are you sure you want to end this conversation?" }),
21559
21582
  /* @__PURE__ */ v.jsxs("div", { className: "livechat-end-confirmation-container__button-container", children: [
21560
21583
  /* @__PURE__ */ v.jsx("button", { className: "string-btn", onClick: e, children: "Nevermind" }),
21561
- /* @__PURE__ */ v.jsx("button", { className: "pill-btn", onClick: f, children: "Close chat" })
21584
+ /* @__PURE__ */ v.jsx("button", { className: "pill-btn", onClick: h, children: "Close chat" })
21562
21585
  ] })
21563
21586
  ] }),
21564
21587
  r && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -21588,7 +21611,7 @@ function cd({ onDismiss: e }) {
21588
21611
  "aria-label": "Add additional comments",
21589
21612
  placeholder: "Any additional comments?",
21590
21613
  value: t,
21591
- onChange: h
21614
+ onChange: f
21592
21615
  }
21593
21616
  ),
21594
21617
  /* @__PURE__ */ v.jsxs("p", { className: "livechat-end-confirmation-container__sub-text", children: [
@@ -21634,11 +21657,11 @@ function dd() {
21634
21657
  liveChatMessages: n,
21635
21658
  sendMessage: r,
21636
21659
  sendTypingEvent: a
21637
- } = se(hn), [i, u] = de(!1), [s, l] = de(""), c = pt(), d = $T(a, 5e3), f = (T) => {
21660
+ } = se(hn), [i, u] = de(!1), [s, l] = de(""), c = pt(), d = $T(a, 5e3), h = (T) => {
21638
21661
  l(T.target.value), d();
21639
21662
  }, p = () => {
21640
- s.trim() !== "" && (r(s), h());
21641
- }, h = () => {
21663
+ s.trim() !== "" && (r(s), f());
21664
+ }, f = () => {
21642
21665
  l(""), c.current.value = "", c.current.style.height = "auto";
21643
21666
  };
21644
21667
  return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
@@ -21689,7 +21712,7 @@ function dd() {
21689
21712
  Ni,
21690
21713
  {
21691
21714
  disabled: i,
21692
- handleChange: f,
21715
+ handleChange: h,
21693
21716
  handleSend: p,
21694
21717
  inputRef: c,
21695
21718
  value: s
@@ -21732,13 +21755,13 @@ const WT = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
21732
21755
  }];
21733
21756
  }, Ka = "privacy policy";
21734
21757
  function fd() {
21735
- const { conversationScreen: e, primaryColor: t } = se(He), { startLiveChat: n } = se(hn), { setMode: r } = se(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = XT({}), [d, f] = de(!1), { clearError: p, errors: h, setErrors: T } = GT(), m = or(
21758
+ const { conversationScreen: e, primaryColor: t } = se(He), { startLiveChat: n } = se(hn), { setMode: r } = se(Ze), { form: a, formHeader: i, privacyPolicyLink: u, privacyPolicyText: s } = e.liveChat, [l, , c] = XT({}), [d, h] = de(!1), { clearError: p, errors: f, setErrors: T } = GT(), m = or(
21736
21759
  () => (s ?? "").split(Ka, 2),
21737
21760
  [s]
21738
21761
  ), _ = () => {
21739
21762
  r(jt.XPERT);
21740
21763
  }, E = () => {
21741
- p("privacyCheck"), f((D) => !D);
21764
+ p("privacyCheck"), h((D) => !D);
21742
21765
  }, P = (D, y) => {
21743
21766
  const k = D.target.value;
21744
21767
  p(y), c(y, k);
@@ -21771,13 +21794,13 @@ function fd() {
21771
21794
  /* @__PURE__ */ v.jsx(
21772
21795
  "input",
21773
21796
  {
21774
- className: `live-chat-form-input ${h[D] ? "error" : ""}`,
21797
+ className: `live-chat-form-input ${f[D] ? "error" : ""}`,
21775
21798
  name: y,
21776
21799
  placeholder: y,
21777
21800
  onChange: (k) => P(k, D)
21778
21801
  }
21779
21802
  ),
21780
- h[D] && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: h[D] })
21803
+ f[D] && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: f[D] })
21781
21804
  ] }, D)),
21782
21805
  s && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
21783
21806
  /* @__PURE__ */ v.jsx(
@@ -21829,7 +21852,7 @@ function fd() {
21829
21852
  /* @__PURE__ */ v.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
21830
21853
  ] })
21831
21854
  ] }),
21832
- h.privacyCheck && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: h.privacyCheck }),
21855
+ f.privacyCheck && /* @__PURE__ */ v.jsx("p", { className: "live-chat-form-error", children: f.privacyCheck }),
21833
21856
  /* @__PURE__ */ v.jsxs("div", { className: "live-chat-buttons-container", children: [
21834
21857
  /* @__PURE__ */ v.jsx("button", { className: "live-chat-cancel-button", onClick: _, children: "Cancel" }),
21835
21858
  /* @__PURE__ */ v.jsx(
@@ -21863,7 +21886,7 @@ function pd({
21863
21886
  style: i = {}
21864
21887
  }) {
21865
21888
  var T;
21866
- const { proactiveMessage: u } = se(He), [s, l] = de(!0), [c, d] = de(!1), f = s && (!(window != null && window.OnetrustActiveGroups) || ((T = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : T.includes("C0003"))) && ft.get(t) === void 0;
21889
+ const { proactiveMessage: u } = se(He), [s, l] = de(!0), [c, d] = de(!1), h = s && (!(window != null && window.OnetrustActiveGroups) || ((T = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : T.includes("C0003"))) && ft.get(t) === void 0;
21867
21890
  Be(() => {
21868
21891
  var m;
21869
21892
  (m = window == null ? void 0 : window.OneTrust) == null || m.OnConsentChanged(() => {
@@ -21872,7 +21895,7 @@ function pd({
21872
21895
  });
21873
21896
  }, [t]), Be(() => {
21874
21897
  var m;
21875
- a || (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && h(t, 1, 1);
21898
+ a || (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && f(t, 1, 1);
21876
21899
  }, [t, a]), Be(() => {
21877
21900
  if (u != null && u.enabled && (u == null ? void 0 : u.delayMs) > 0) {
21878
21901
  const m = setTimeout(() => {
@@ -21884,15 +21907,15 @@ function pd({
21884
21907
  }, [u == null ? void 0 : u.delayMs, u == null ? void 0 : u.enabled]);
21885
21908
  const p = () => {
21886
21909
  var m;
21887
- l(!1), (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && h(t, 1, 1), r();
21888
- }, h = (m, _, E) => {
21910
+ l(!1), (!(window != null && window.OnetrustActiveGroups) || (m = window == null ? void 0 : window.OnetrustActiveGroups) != null && m.includes("C0003")) && f(t, 1, 1), r();
21911
+ }, f = (m, _, E) => {
21889
21912
  const P = {
21890
21913
  expires: E,
21891
21914
  path: "/"
21892
21915
  };
21893
21916
  ft.set(m, _, P);
21894
21917
  };
21895
- return !c || !f || !a ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
21918
+ return !c || !h || !a ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
21896
21919
  "div",
21897
21920
  {
21898
21921
  role: "alertdialog",
@@ -22041,9 +22064,9 @@ function md({ submitEventExternal: e = null }) {
22041
22064
  widgetMode: c
22042
22065
  } = se(He), {
22043
22066
  contentRef: d,
22044
- onFeedbackSelection: f,
22067
+ onFeedbackSelection: h,
22045
22068
  onMessageSent: p,
22046
- pushXpertMessage: h,
22069
+ pushXpertMessage: f,
22047
22070
  setXpertMessages: T,
22048
22071
  xpertMessages: m
22049
22072
  } = se(Gt), {
@@ -22213,7 +22236,7 @@ function md({ submitEventExternal: e = null }) {
22213
22236
  return;
22214
22237
  }
22215
22238
  let Ye = null;
22216
- r.conversationHistory.enabled && (Ye = _s(a)), h({ role: "user", content: ae });
22239
+ r.conversationHistory.enabled && (Ye = _s(a)), f({ role: "user", content: ae });
22217
22240
  const Qe = [
22218
22241
  ...m,
22219
22242
  { role: "user", content: ae }
@@ -22244,7 +22267,7 @@ function md({ submitEventExternal: e = null }) {
22244
22267
  tool_calls: mt,
22245
22268
  tool_call_id: it
22246
22269
  }) => {
22247
- h({
22270
+ f({
22248
22271
  content: le,
22249
22272
  createdAt: /* @__PURE__ */ new Date(),
22250
22273
  liveAgent: ye,
@@ -22313,8 +22336,8 @@ function md({ submitEventExternal: e = null }) {
22313
22336
  }, xt = (ae) => {
22314
22337
  I(ae.target.value);
22315
22338
  }, Mn = async (ae, be = "") => {
22316
- if (f) {
22317
- await f({ index: ae, type: be }), P(!1);
22339
+ if (h) {
22340
+ await h({ index: ae, type: be }), P(!1);
22318
22341
  return;
22319
22342
  }
22320
22343
  const Ae = m.map((Ye, Qe) => ae === Qe ? (ne({
@@ -22443,10 +22466,10 @@ const gd = ({
22443
22466
  conversation: r,
22444
22467
  onFeedbackSelection: i,
22445
22468
  onMessageSent: u
22446
- }, f = {
22469
+ }, h = {
22447
22470
  liveChatPayload: a
22448
22471
  };
22449
- return /* @__PURE__ */ v.jsx(vs, { ...c, children: /* @__PURE__ */ v.jsx(Ns, { children: /* @__PURE__ */ v.jsx(Is, { ...d, children: /* @__PURE__ */ v.jsx(ad, { ...f, children: e }) }) }) });
22472
+ return /* @__PURE__ */ v.jsx(vs, { ...c, children: /* @__PURE__ */ v.jsx(Ns, { children: /* @__PURE__ */ v.jsx(Is, { ...d, children: /* @__PURE__ */ v.jsx(ad, { ...h, children: e }) }) }) });
22450
22473
  };
22451
22474
  gd.propTypes = {
22452
22475
  children: x.element,