@2uinc/frontend-component-xpert-chatbot 1.24.0 → 1.25.0

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 +212 -210
  2. package/package.json +1 -1
@@ -243,8 +243,8 @@ Xt.exports;
243
243
  var zi;
244
244
  function $s() {
245
245
  return zi || (zi = 1, function(e, t) {
246
- var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", p = "[object Error]", f = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", w = "[object Number]", g = "[object Null]", P = "[object Object]", A = "[object Proxy]", q = "[object RegExp]", I = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", F = "[object ArrayBuffer]", $ = "[object DataView]", j = "[object Float32Array]", H = "[object Float64Array]", O = "[object Int8Array]", S = "[object Int16Array]", T = "[object Int32Array]", L = "[object Uint8Array]", R = "[object Uint8ClampedArray]", B = "[object Uint16Array]", M = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, x = {};
247
- x[j] = x[H] = x[O] = x[S] = x[T] = x[L] = x[R] = x[B] = x[M] = !0, x[l] = x[s] = x[F] = x[c] = x[$] = x[d] = x[p] = x[f] = x[h] = x[w] = x[P] = x[q] = x[I] = x[b] = x[z] = !1;
246
+ var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", d = "[object Date]", p = "[object Error]", f = "[object Function]", y = "[object GeneratorFunction]", h = "[object Map]", w = "[object Number]", g = "[object Null]", P = "[object Object]", A = "[object Proxy]", q = "[object RegExp]", I = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", F = "[object ArrayBuffer]", $ = "[object DataView]", j = "[object Float32Array]", H = "[object Float64Array]", O = "[object Int8Array]", S = "[object Int16Array]", T = "[object Int32Array]", L = "[object Uint8Array]", R = "[object Uint8ClampedArray]", B = "[object Uint16Array]", D = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, x = {};
247
+ x[j] = x[H] = x[O] = x[S] = x[T] = x[L] = x[R] = x[B] = x[D] = !0, x[l] = x[s] = x[F] = x[c] = x[$] = x[d] = x[p] = x[f] = x[h] = x[w] = x[P] = x[q] = x[I] = x[b] = x[z] = !1;
248
248
  var K = typeof cn == "object" && cn && cn.Object === Object && cn, ie = typeof self == "object" && self && self.Object === Object && self, re = K || ie || Function("return this")(), fe = t && !t.nodeType && t, de = fe && !0 && e && !e.nodeType && e, ye = de && de.exports === fe, pe = ye && K.process, Ee = function() {
249
249
  try {
250
250
  var v = de && de.require && de.require("util").types;
@@ -286,7 +286,7 @@ function $s() {
286
286
  var pt = Array.prototype, St = Function.prototype, Ge = Object.prototype, nt = re["__core-js_shared__"], rt = St.toString, X = Ge.hasOwnProperty, ne = function() {
287
287
  var v = /[^.]+$/.exec(nt && nt.keys && nt.keys.IE_PROTO || "");
288
288
  return v ? "Symbol(src)_1." + v : "";
289
- }(), Ce = Ge.toString, ke = rt.call(Object), D = RegExp(
289
+ }(), Ce = Ge.toString, ke = rt.call(Object), M = RegExp(
290
290
  "^" + rt.call(X).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
291
  ), U = ye ? re.Buffer : void 0, Z = re.Symbol, oe = re.Uint8Array;
292
292
  U && U.allocUnsafe;
@@ -467,7 +467,7 @@ function $s() {
467
467
  function is(v) {
468
468
  if (!mt(v) || ws(v))
469
469
  return !1;
470
- var _ = Vn(v) ? D : W;
470
+ var _ = Vn(v) ? M : W;
471
471
  return _.test(Ts(v));
472
472
  }
473
473
  function as(v) {
@@ -5436,7 +5436,7 @@ function zf(e, t, n) {
5436
5436
  return x === null || J(x) ? H(x) : ue(x) ? (e.consume(x), j) : n(x);
5437
5437
  }
5438
5438
  function H(x) {
5439
- return x === 45 && i === 2 ? (e.consume(x), L) : x === 60 && i === 1 ? (e.consume(x), R) : x === 62 && i === 4 ? (e.consume(x), W) : x === 63 && i === 3 ? (e.consume(x), m) : x === 93 && i === 5 ? (e.consume(x), M) : J(x) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
5439
+ return x === 45 && i === 2 ? (e.consume(x), L) : x === 60 && i === 1 ? (e.consume(x), R) : x === 62 && i === 4 ? (e.consume(x), W) : x === 63 && i === 3 ? (e.consume(x), m) : x === 93 && i === 5 ? (e.consume(x), D) : J(x) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
5440
5440
  Rf,
5441
5441
  Y,
5442
5442
  O
@@ -5468,7 +5468,7 @@ function zf(e, t, n) {
5468
5468
  }
5469
5469
  return Ke(x) && o.length < 8 ? (e.consume(x), o += String.fromCharCode(x), B) : H(x);
5470
5470
  }
5471
- function M(x) {
5471
+ function D(x) {
5472
5472
  return x === 93 ? (e.consume(x), m) : H(x);
5473
5473
  }
5474
5474
  function m(x) {
@@ -5590,12 +5590,12 @@ function Vf(e, t, n) {
5590
5590
  function B(m) {
5591
5591
  return ue(m) ? ge(
5592
5592
  e,
5593
- M,
5593
+ D,
5594
5594
  "linePrefix",
5595
5595
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5596
- )(m) : M(m);
5596
+ )(m) : D(m);
5597
5597
  }
5598
- function M(m) {
5598
+ function D(m) {
5599
5599
  return e.enter("htmlTextData"), o(m);
5600
5600
  }
5601
5601
  }
@@ -6225,7 +6225,7 @@ function Cd(e, t, n) {
6225
6225
  function E(j, H) {
6226
6226
  return O;
6227
6227
  function O(S, T, L) {
6228
- let R, B, M, m;
6228
+ let R, B, D, m;
6229
6229
  return Array.isArray(S) ? Y(S) : "tokenize" in S ? (
6230
6230
  // @ts-expect-error Looks like a construct.
6231
6231
  Y([S])
@@ -6248,7 +6248,7 @@ function Cd(e, t, n) {
6248
6248
  function x(re) {
6249
6249
  return fe;
6250
6250
  function fe(de) {
6251
- return m = F(), M = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? ie() : re.tokenize.call(
6251
+ return m = F(), D = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? ie() : re.tokenize.call(
6252
6252
  // If we do have fields, create an object w/ `context` as its
6253
6253
  // prototype.
6254
6254
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -6260,7 +6260,7 @@ function Cd(e, t, n) {
6260
6260
  }
6261
6261
  }
6262
6262
  function K(re) {
6263
- return j(M, m), T;
6263
+ return j(D, m), T;
6264
6264
  }
6265
6265
  function ie(re) {
6266
6266
  return m.restore(), ++B < R.length ? x(R[B]) : L;
@@ -6594,7 +6594,7 @@ function qd(e) {
6594
6594
  htmlFlowData: H,
6595
6595
  htmlText: c(L),
6596
6596
  htmlTextData: H,
6597
- image: c(M),
6597
+ image: c(D),
6598
6598
  label: W,
6599
6599
  labelText: m,
6600
6600
  lineEnding: O,
@@ -6617,7 +6617,7 @@ function qd(e) {
6617
6617
  el(t, (e || {}).mdastExtensions || []);
6618
6618
  const n = {};
6619
6619
  return r;
6620
- function r(D) {
6620
+ function r(M) {
6621
6621
  let U = {
6622
6622
  type: "root",
6623
6623
  children: []
@@ -6634,24 +6634,24 @@ function qd(e) {
6634
6634
  getData: o
6635
6635
  }, oe = [];
6636
6636
  let le = -1;
6637
- for (; ++le < D.length; )
6638
- if (D[le][1].type === "listOrdered" || D[le][1].type === "listUnordered")
6639
- if (D[le][0] === "enter")
6637
+ for (; ++le < M.length; )
6638
+ if (M[le][1].type === "listOrdered" || M[le][1].type === "listUnordered")
6639
+ if (M[le][0] === "enter")
6640
6640
  oe.push(le);
6641
6641
  else {
6642
6642
  const Oe = oe.pop();
6643
- le = i(D, Oe, le);
6643
+ le = i(M, Oe, le);
6644
6644
  }
6645
- for (le = -1; ++le < D.length; ) {
6646
- const Oe = t[D[le][0]];
6647
- Qo.call(Oe, D[le][1].type) && Oe[D[le][1].type].call(
6645
+ for (le = -1; ++le < M.length; ) {
6646
+ const Oe = t[M[le][0]];
6647
+ Qo.call(Oe, M[le][1].type) && Oe[M[le][1].type].call(
6648
6648
  Object.assign(
6649
6649
  {
6650
- sliceSerialize: D[le][2].sliceSerialize
6650
+ sliceSerialize: M[le][2].sliceSerialize
6651
6651
  },
6652
6652
  Z
6653
6653
  ),
6654
- D[le][1]
6654
+ M[le][1]
6655
6655
  );
6656
6656
  }
6657
6657
  if (Z.tokenStack.length > 0) {
@@ -6660,14 +6660,14 @@ function qd(e) {
6660
6660
  }
6661
6661
  for (U.position = {
6662
6662
  start: st(
6663
- D.length > 0 ? D[0][1].start : {
6663
+ M.length > 0 ? M[0][1].start : {
6664
6664
  line: 1,
6665
6665
  column: 1,
6666
6666
  offset: 0
6667
6667
  }
6668
6668
  ),
6669
6669
  end: st(
6670
- D.length > 0 ? D[D.length - 2][1].end : {
6670
+ M.length > 0 ? M[M.length - 2][1].end : {
6671
6671
  line: 1,
6672
6672
  column: 1,
6673
6673
  offset: 0
@@ -6677,24 +6677,24 @@ function qd(e) {
6677
6677
  U = t.transforms[le](U) || U;
6678
6678
  return U;
6679
6679
  }
6680
- function i(D, U, Z) {
6680
+ function i(M, U, Z) {
6681
6681
  let oe = U - 1, le = -1, Oe = !1, Te, qe, Le, Xe;
6682
6682
  for (; ++oe <= Z; ) {
6683
- const xe = D[oe];
6683
+ const xe = M[oe];
6684
6684
  if (xe[1].type === "listUnordered" || xe[1].type === "listOrdered" || xe[1].type === "blockQuote" ? (xe[0] === "enter" ? le++ : le--, Xe = void 0) : xe[1].type === "lineEndingBlank" ? xe[0] === "enter" && (Te && !Xe && !le && !Le && (Le = oe), Xe = void 0) : xe[1].type === "linePrefix" || xe[1].type === "listItemValue" || xe[1].type === "listItemMarker" || xe[1].type === "listItemPrefix" || xe[1].type === "listItemPrefixWhitespace" || (Xe = void 0), !le && xe[0] === "enter" && xe[1].type === "listItemPrefix" || le === -1 && xe[0] === "exit" && (xe[1].type === "listUnordered" || xe[1].type === "listOrdered")) {
6685
6685
  if (Te) {
6686
6686
  let _t = oe;
6687
6687
  for (qe = void 0; _t--; ) {
6688
- const Ue = D[_t];
6688
+ const Ue = M[_t];
6689
6689
  if (Ue[1].type === "lineEnding" || Ue[1].type === "lineEndingBlank") {
6690
6690
  if (Ue[0] === "exit") continue;
6691
- qe && (D[qe][1].type = "lineEndingBlank", Oe = !0), Ue[1].type = "lineEnding", qe = _t;
6691
+ qe && (M[qe][1].type = "lineEndingBlank", Oe = !0), Ue[1].type = "lineEnding", qe = _t;
6692
6692
  } else if (!(Ue[1].type === "linePrefix" || Ue[1].type === "blockQuotePrefix" || Ue[1].type === "blockQuotePrefixWhitespace" || Ue[1].type === "blockQuoteMarker" || Ue[1].type === "listItemIndent")) break;
6693
6693
  }
6694
6694
  Le && (!qe || Le < qe) && (Te._spread = !0), Te.end = Object.assign(
6695
6695
  {},
6696
- qe ? D[qe][1].start : xe[1].end
6697
- ), D.splice(qe || oe, 0, ["exit", Te, xe[2]]), oe++, Z++;
6696
+ qe ? M[qe][1].start : xe[1].end
6697
+ ), M.splice(qe || oe, 0, ["exit", Te, xe[2]]), oe++, Z++;
6698
6698
  }
6699
6699
  xe[1].type === "listItemPrefix" && (Te = {
6700
6700
  type: "listItem",
@@ -6702,21 +6702,21 @@ function qd(e) {
6702
6702
  start: Object.assign({}, xe[1].start),
6703
6703
  // @ts-expect-error: we’ll add `end` in a second.
6704
6704
  end: void 0
6705
- }, D.splice(oe, 0, ["enter", Te, xe[2]]), oe++, Z++, Le = void 0, Xe = !0);
6705
+ }, M.splice(oe, 0, ["enter", Te, xe[2]]), oe++, Z++, Le = void 0, Xe = !0);
6706
6706
  }
6707
6707
  }
6708
- return D[U][1]._spread = Oe, Z;
6708
+ return M[U][1]._spread = Oe, Z;
6709
6709
  }
6710
- function a(D, U) {
6711
- n[D] = U;
6710
+ function a(M, U) {
6711
+ n[M] = U;
6712
6712
  }
6713
- function o(D) {
6714
- return n[D];
6713
+ function o(M) {
6714
+ return n[M];
6715
6715
  }
6716
- function l(D, U) {
6716
+ function l(M, U) {
6717
6717
  return Z;
6718
6718
  function Z(oe) {
6719
- u.call(this, D(oe), oe), U && U.call(this, oe);
6719
+ u.call(this, M(oe), oe), U && U.call(this, oe);
6720
6720
  }
6721
6721
  }
6722
6722
  function s() {
@@ -6725,28 +6725,28 @@ function qd(e) {
6725
6725
  children: []
6726
6726
  });
6727
6727
  }
6728
- function u(D, U, Z) {
6729
- return this.stack[this.stack.length - 1].children.push(D), this.stack.push(D), this.tokenStack.push([U, Z]), D.position = {
6728
+ function u(M, U, Z) {
6729
+ return this.stack[this.stack.length - 1].children.push(M), this.stack.push(M), this.tokenStack.push([U, Z]), M.position = {
6730
6730
  start: st(U.start)
6731
- }, D;
6731
+ }, M;
6732
6732
  }
6733
- function c(D) {
6733
+ function c(M) {
6734
6734
  return U;
6735
6735
  function U(Z) {
6736
- D && D.call(this, Z), d.call(this, Z);
6736
+ M && M.call(this, Z), d.call(this, Z);
6737
6737
  }
6738
6738
  }
6739
- function d(D, U) {
6739
+ function d(M, U) {
6740
6740
  const Z = this.stack.pop(), oe = this.tokenStack.pop();
6741
6741
  if (oe)
6742
- oe[0].type !== D.type && (U ? U.call(this, D, oe[0]) : (oe[1] || _a).call(this, D, oe[0]));
6742
+ oe[0].type !== M.type && (U ? U.call(this, M, oe[0]) : (oe[1] || _a).call(this, M, oe[0]));
6743
6743
  else throw new Error(
6744
- "Cannot close `" + D.type + "` (" + Kt({
6745
- start: D.start,
6746
- end: D.end
6744
+ "Cannot close `" + M.type + "` (" + Kt({
6745
+ start: M.start,
6746
+ end: M.end
6747
6747
  }) + "): it’s not open"
6748
6748
  );
6749
- return Z.position.end = st(D.end), Z;
6749
+ return Z.position.end = st(M.end), Z;
6750
6750
  }
6751
6751
  function p() {
6752
6752
  return Bc(this.stack.pop());
@@ -6754,134 +6754,134 @@ function qd(e) {
6754
6754
  function f() {
6755
6755
  a("expectingFirstListItemValue", !0);
6756
6756
  }
6757
- function y(D) {
6757
+ function y(M) {
6758
6758
  if (o("expectingFirstListItemValue")) {
6759
6759
  const U = this.stack[this.stack.length - 2];
6760
- U.start = Number.parseInt(this.sliceSerialize(D), 10), a("expectingFirstListItemValue");
6760
+ U.start = Number.parseInt(this.sliceSerialize(M), 10), a("expectingFirstListItemValue");
6761
6761
  }
6762
6762
  }
6763
6763
  function h() {
6764
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6765
- U.lang = D;
6764
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6765
+ U.lang = M;
6766
6766
  }
6767
6767
  function w() {
6768
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6769
- U.meta = D;
6768
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6769
+ U.meta = M;
6770
6770
  }
6771
6771
  function g() {
6772
6772
  o("flowCodeInside") || (this.buffer(), a("flowCodeInside", !0));
6773
6773
  }
6774
6774
  function P() {
6775
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6776
- U.value = D.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
6775
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6776
+ U.value = M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
6777
6777
  }
6778
6778
  function A() {
6779
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6780
- U.value = D.replace(/(\r?\n|\r)$/g, "");
6779
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6780
+ U.value = M.replace(/(\r?\n|\r)$/g, "");
6781
6781
  }
6782
- function q(D) {
6782
+ function q(M) {
6783
6783
  const U = this.resume(), Z = this.stack[this.stack.length - 1];
6784
6784
  Z.label = U, Z.identifier = Nt(
6785
- this.sliceSerialize(D)
6785
+ this.sliceSerialize(M)
6786
6786
  ).toLowerCase();
6787
6787
  }
6788
6788
  function I() {
6789
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6790
- U.title = D;
6789
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6790
+ U.title = M;
6791
6791
  }
6792
6792
  function b() {
6793
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6794
- U.url = D;
6793
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6794
+ U.url = M;
6795
6795
  }
6796
- function E(D) {
6796
+ function E(M) {
6797
6797
  const U = this.stack[this.stack.length - 1];
6798
6798
  if (!U.depth) {
6799
- const Z = this.sliceSerialize(D).length;
6799
+ const Z = this.sliceSerialize(M).length;
6800
6800
  U.depth = Z;
6801
6801
  }
6802
6802
  }
6803
6803
  function z() {
6804
6804
  a("setextHeadingSlurpLineEnding", !0);
6805
6805
  }
6806
- function F(D) {
6806
+ function F(M) {
6807
6807
  const U = this.stack[this.stack.length - 1];
6808
- U.depth = this.sliceSerialize(D).charCodeAt(0) === 61 ? 1 : 2;
6808
+ U.depth = this.sliceSerialize(M).charCodeAt(0) === 61 ? 1 : 2;
6809
6809
  }
6810
6810
  function $() {
6811
6811
  a("setextHeadingSlurpLineEnding");
6812
6812
  }
6813
- function j(D) {
6813
+ function j(M) {
6814
6814
  const U = this.stack[this.stack.length - 1];
6815
6815
  let Z = U.children[U.children.length - 1];
6816
6816
  (!Z || Z.type !== "text") && (Z = Ce(), Z.position = {
6817
- start: st(D.start)
6817
+ start: st(M.start)
6818
6818
  }, U.children.push(Z)), this.stack.push(Z);
6819
6819
  }
6820
- function H(D) {
6820
+ function H(M) {
6821
6821
  const U = this.stack.pop();
6822
- U.value += this.sliceSerialize(D), U.position.end = st(D.end);
6822
+ U.value += this.sliceSerialize(M), U.position.end = st(M.end);
6823
6823
  }
6824
- function O(D) {
6824
+ function O(M) {
6825
6825
  const U = this.stack[this.stack.length - 1];
6826
6826
  if (o("atHardBreak")) {
6827
6827
  const Z = U.children[U.children.length - 1];
6828
- Z.position.end = st(D.end), a("atHardBreak");
6828
+ Z.position.end = st(M.end), a("atHardBreak");
6829
6829
  return;
6830
6830
  }
6831
- !o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(U.type) && (j.call(this, D), H.call(this, D));
6831
+ !o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(U.type) && (j.call(this, M), H.call(this, M));
6832
6832
  }
6833
6833
  function S() {
6834
6834
  a("atHardBreak", !0);
6835
6835
  }
6836
6836
  function T() {
6837
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6838
- U.value = D;
6837
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6838
+ U.value = M;
6839
6839
  }
6840
6840
  function L() {
6841
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6842
- U.value = D;
6841
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6842
+ U.value = M;
6843
6843
  }
6844
6844
  function R() {
6845
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6846
- U.value = D;
6845
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6846
+ U.value = M;
6847
6847
  }
6848
6848
  function B() {
6849
- const D = this.stack[this.stack.length - 1];
6849
+ const M = this.stack[this.stack.length - 1];
6850
6850
  if (o("inReference")) {
6851
6851
  const U = o("referenceType") || "shortcut";
6852
- D.type += "Reference", D.referenceType = U, delete D.url, delete D.title;
6852
+ M.type += "Reference", M.referenceType = U, delete M.url, delete M.title;
6853
6853
  } else
6854
- delete D.identifier, delete D.label;
6854
+ delete M.identifier, delete M.label;
6855
6855
  a("referenceType");
6856
6856
  }
6857
- function M() {
6858
- const D = this.stack[this.stack.length - 1];
6857
+ function D() {
6858
+ const M = this.stack[this.stack.length - 1];
6859
6859
  if (o("inReference")) {
6860
6860
  const U = o("referenceType") || "shortcut";
6861
- D.type += "Reference", D.referenceType = U, delete D.url, delete D.title;
6861
+ M.type += "Reference", M.referenceType = U, delete M.url, delete M.title;
6862
6862
  } else
6863
- delete D.identifier, delete D.label;
6863
+ delete M.identifier, delete M.label;
6864
6864
  a("referenceType");
6865
6865
  }
6866
- function m(D) {
6867
- const U = this.sliceSerialize(D), Z = this.stack[this.stack.length - 2];
6866
+ function m(M) {
6867
+ const U = this.sliceSerialize(M), Z = this.stack[this.stack.length - 2];
6868
6868
  Z.label = Bd(U), Z.identifier = Nt(U).toLowerCase();
6869
6869
  }
6870
6870
  function W() {
6871
- const D = this.stack[this.stack.length - 1], U = this.resume(), Z = this.stack[this.stack.length - 1];
6871
+ const M = this.stack[this.stack.length - 1], U = this.resume(), Z = this.stack[this.stack.length - 1];
6872
6872
  if (a("inReference", !0), Z.type === "link") {
6873
- const oe = D.children;
6873
+ const oe = M.children;
6874
6874
  Z.children = oe;
6875
6875
  } else
6876
6876
  Z.alt = U;
6877
6877
  }
6878
6878
  function Y() {
6879
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6880
- U.url = D;
6879
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6880
+ U.url = M;
6881
6881
  }
6882
6882
  function x() {
6883
- const D = this.resume(), U = this.stack[this.stack.length - 1];
6884
- U.title = D;
6883
+ const M = this.resume(), U = this.stack[this.stack.length - 1];
6884
+ U.title = M;
6885
6885
  }
6886
6886
  function K() {
6887
6887
  a("inReference");
@@ -6889,34 +6889,34 @@ function qd(e) {
6889
6889
  function ie() {
6890
6890
  a("referenceType", "collapsed");
6891
6891
  }
6892
- function re(D) {
6892
+ function re(M) {
6893
6893
  const U = this.resume(), Z = this.stack[this.stack.length - 1];
6894
6894
  Z.label = U, Z.identifier = Nt(
6895
- this.sliceSerialize(D)
6895
+ this.sliceSerialize(M)
6896
6896
  ).toLowerCase(), a("referenceType", "full");
6897
6897
  }
6898
- function fe(D) {
6899
- a("characterReferenceType", D.type);
6898
+ function fe(M) {
6899
+ a("characterReferenceType", M.type);
6900
6900
  }
6901
- function de(D) {
6902
- const U = this.sliceSerialize(D), Z = o("characterReferenceType");
6901
+ function de(M) {
6902
+ const U = this.sliceSerialize(M), Z = o("characterReferenceType");
6903
6903
  let oe;
6904
6904
  Z ? (oe = Jo(
6905
6905
  U,
6906
6906
  Z === "characterReferenceMarkerNumeric" ? 10 : 16
6907
6907
  ), a("characterReferenceType")) : oe = ei(U);
6908
6908
  const le = this.stack.pop();
6909
- le.value += oe, le.position.end = st(D.end);
6909
+ le.value += oe, le.position.end = st(M.end);
6910
6910
  }
6911
- function ye(D) {
6912
- H.call(this, D);
6911
+ function ye(M) {
6912
+ H.call(this, M);
6913
6913
  const U = this.stack[this.stack.length - 1];
6914
- U.url = this.sliceSerialize(D);
6914
+ U.url = this.sliceSerialize(M);
6915
6915
  }
6916
- function pe(D) {
6917
- H.call(this, D);
6916
+ function pe(M) {
6917
+ H.call(this, M);
6918
6918
  const U = this.stack[this.stack.length - 1];
6919
- U.url = "mailto:" + this.sliceSerialize(D);
6919
+ U.url = "mailto:" + this.sliceSerialize(M);
6920
6920
  }
6921
6921
  function Ee() {
6922
6922
  return {
@@ -6987,19 +6987,19 @@ function qd(e) {
6987
6987
  children: []
6988
6988
  };
6989
6989
  }
6990
- function nt(D) {
6990
+ function nt(M) {
6991
6991
  return {
6992
6992
  type: "list",
6993
- ordered: D.type === "listOrdered",
6993
+ ordered: M.type === "listOrdered",
6994
6994
  start: null,
6995
- spread: D._spread,
6995
+ spread: M._spread,
6996
6996
  children: []
6997
6997
  };
6998
6998
  }
6999
- function rt(D) {
6999
+ function rt(M) {
7000
7000
  return {
7001
7001
  type: "listItem",
7002
- spread: D._spread,
7002
+ spread: M._spread,
7003
7003
  checked: null,
7004
7004
  children: []
7005
7005
  };
@@ -9467,8 +9467,8 @@ function gh() {
9467
9467
  return (T <= 0 ? "+" : "-") + A(R, 2, "0") + ":" + A(B, 2, "0");
9468
9468
  }, m: function S(T, L) {
9469
9469
  if (T.date() < L.date()) return -S(L, T);
9470
- var R = 12 * (L.year() - T.year()) + (L.month() - T.month()), B = T.clone().add(R, d), M = L - B < 0, m = T.clone().add(R + (M ? -1 : 1), d);
9471
- return +(-(R + (L - B) / (M ? B - m : m - B)) || 0);
9470
+ var R = 12 * (L.year() - T.year()) + (L.month() - T.month()), B = T.clone().add(R, d), D = L - B < 0, m = T.clone().add(R + (D ? -1 : 1), d);
9471
+ return +(-(R + (L - B) / (D ? B - m : m - B)) || 0);
9472
9472
  }, a: function(S) {
9473
9473
  return S < 0 ? Math.ceil(S) || 0 : Math.floor(S);
9474
9474
  }, p: function(S) {
@@ -9483,8 +9483,8 @@ function gh() {
9483
9483
  var B;
9484
9484
  if (!T) return I;
9485
9485
  if (typeof T == "string") {
9486
- var M = T.toLowerCase();
9487
- b[M] && (B = M), L && (b[M] = L, B = M);
9486
+ var D = T.toLowerCase();
9487
+ b[D] && (B = D), L && (b[D] = L, B = D);
9488
9488
  var m = T.split("-");
9489
9489
  if (!B && m.length > 1) return S(m[0]);
9490
9490
  } else {
@@ -9507,7 +9507,7 @@ function gh() {
9507
9507
  var T = S.prototype;
9508
9508
  return T.parse = function(L) {
9509
9509
  this.$d = function(R) {
9510
- var B = R.date, M = R.utc;
9510
+ var B = R.date, D = R.utc;
9511
9511
  if (B === null) return /* @__PURE__ */ new Date(NaN);
9512
9512
  if (j.u(B)) return /* @__PURE__ */ new Date();
9513
9513
  if (B instanceof Date) return new Date(B);
@@ -9515,7 +9515,7 @@ function gh() {
9515
9515
  var m = B.match(w);
9516
9516
  if (m) {
9517
9517
  var W = m[2] - 1 || 0, Y = (m[7] || "0").substring(0, 3);
9518
- return M ? new Date(Date.UTC(m[1], W, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, Y)) : new Date(m[1], W, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, Y);
9518
+ return D ? new Date(Date.UTC(m[1], W, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, Y)) : new Date(m[1], W, m[3] || 1, m[4] || 0, m[5] || 0, m[6] || 0, Y);
9519
9519
  }
9520
9520
  }
9521
9521
  return new Date(B);
@@ -9541,20 +9541,20 @@ function gh() {
9541
9541
  }, T.valueOf = function() {
9542
9542
  return this.$d.getTime();
9543
9543
  }, T.startOf = function(L, R) {
9544
- var B = this, M = !!j.u(R) || R, m = j.p(L), W = function(ye, pe) {
9544
+ var B = this, D = !!j.u(R) || R, m = j.p(L), W = function(ye, pe) {
9545
9545
  var Ee = j.w(B.$u ? Date.UTC(B.$y, pe, ye) : new Date(B.$y, pe, ye), B);
9546
- return M ? Ee : Ee.endOf(u);
9546
+ return D ? Ee : Ee.endOf(u);
9547
9547
  }, Y = function(ye, pe) {
9548
- return j.w(B.toDate()[ye].apply(B.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), B);
9548
+ return j.w(B.toDate()[ye].apply(B.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), B);
9549
9549
  }, x = this.$W, K = this.$M, ie = this.$D, re = "set" + (this.$u ? "UTC" : "");
9550
9550
  switch (m) {
9551
9551
  case f:
9552
- return M ? W(1, 0) : W(31, 11);
9552
+ return D ? W(1, 0) : W(31, 11);
9553
9553
  case d:
9554
- return M ? W(1, K) : W(0, K + 1);
9554
+ return D ? W(1, K) : W(0, K + 1);
9555
9555
  case c:
9556
9556
  var fe = this.$locale().weekStart || 0, de = (x < fe ? x + 7 : x) - fe;
9557
- return W(M ? ie - de : ie + (6 - de), K);
9557
+ return W(D ? ie - de : ie + (6 - de), K);
9558
9558
  case u:
9559
9559
  case y:
9560
9560
  return Y(re + "Hours", 0);
@@ -9570,8 +9570,8 @@ function gh() {
9570
9570
  }, T.endOf = function(L) {
9571
9571
  return this.startOf(L, !1);
9572
9572
  }, T.$set = function(L, R) {
9573
- var B, M = j.p(L), m = "set" + (this.$u ? "UTC" : ""), W = (B = {}, B[u] = m + "Date", B[y] = m + "Date", B[d] = m + "Month", B[f] = m + "FullYear", B[s] = m + "Hours", B[l] = m + "Minutes", B[o] = m + "Seconds", B[a] = m + "Milliseconds", B)[M], Y = M === u ? this.$D + (R - this.$W) : R;
9574
- if (M === d || M === f) {
9573
+ var B, D = j.p(L), m = "set" + (this.$u ? "UTC" : ""), W = (B = {}, B[u] = m + "Date", B[y] = m + "Date", B[d] = m + "Month", B[f] = m + "FullYear", B[s] = m + "Hours", B[l] = m + "Minutes", B[o] = m + "Seconds", B[a] = m + "Milliseconds", B)[D], Y = D === u ? this.$D + (R - this.$W) : R;
9574
+ if (D === d || D === f) {
9575
9575
  var x = this.clone().set(y, 1);
9576
9576
  x.$d[W](Y), x.init(), this.$d = x.set(y, Math.min(this.$D, x.daysInMonth())).$d;
9577
9577
  } else W && this.$d[W](Y);
@@ -9581,11 +9581,11 @@ function gh() {
9581
9581
  }, T.get = function(L) {
9582
9582
  return this[j.p(L)]();
9583
9583
  }, T.add = function(L, R) {
9584
- var B, M = this;
9584
+ var B, D = this;
9585
9585
  L = Number(L);
9586
9586
  var m = j.p(R), W = function(K) {
9587
- var ie = $(M);
9588
- return j.w(ie.date(ie.date() + Math.round(K * L)), M);
9587
+ var ie = $(D);
9588
+ return j.w(ie.date(ie.date() + Math.round(K * L)), D);
9589
9589
  };
9590
9590
  if (m === d) return this.set(d, this.$M + L);
9591
9591
  if (m === f) return this.set(f, this.$y + L);
@@ -9598,15 +9598,15 @@ function gh() {
9598
9598
  }, T.format = function(L) {
9599
9599
  var R = this, B = this.$locale();
9600
9600
  if (!this.isValid()) return B.invalidDate || h;
9601
- var M = L || "YYYY-MM-DDTHH:mm:ssZ", m = j.z(this), W = this.$H, Y = this.$m, x = this.$M, K = B.weekdays, ie = B.months, re = B.meridiem, fe = function(pe, Ee, Ne, We) {
9602
- return pe && (pe[Ee] || pe(R, M)) || Ne[Ee].slice(0, We);
9601
+ var D = L || "YYYY-MM-DDTHH:mm:ssZ", m = j.z(this), W = this.$H, Y = this.$m, x = this.$M, K = B.weekdays, ie = B.months, re = B.meridiem, fe = function(pe, Ee, Ne, We) {
9602
+ return pe && (pe[Ee] || pe(R, D)) || Ne[Ee].slice(0, We);
9603
9603
  }, de = function(pe) {
9604
9604
  return j.s(W % 12 || 12, pe, "0");
9605
9605
  }, ye = re || function(pe, Ee, Ne) {
9606
9606
  var We = pe < 12 ? "AM" : "PM";
9607
9607
  return Ne ? We.toLowerCase() : We;
9608
9608
  };
9609
- return M.replace(g, function(pe, Ee) {
9609
+ return D.replace(g, function(pe, Ee) {
9610
9610
  return Ee || function(Ne) {
9611
9611
  switch (Ne) {
9612
9612
  case "YY":
@@ -9664,46 +9664,46 @@ function gh() {
9664
9664
  }, T.utcOffset = function() {
9665
9665
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
9666
9666
  }, T.diff = function(L, R, B) {
9667
- var M, m = this, W = j.p(R), Y = $(L), x = (Y.utcOffset() - this.utcOffset()) * r, K = this - Y, ie = function() {
9667
+ var D, m = this, W = j.p(R), Y = $(L), x = (Y.utcOffset() - this.utcOffset()) * r, K = this - Y, ie = function() {
9668
9668
  return j.m(m, Y);
9669
9669
  };
9670
9670
  switch (W) {
9671
9671
  case f:
9672
- M = ie() / 12;
9672
+ D = ie() / 12;
9673
9673
  break;
9674
9674
  case d:
9675
- M = ie();
9675
+ D = ie();
9676
9676
  break;
9677
9677
  case p:
9678
- M = ie() / 3;
9678
+ D = ie() / 3;
9679
9679
  break;
9680
9680
  case c:
9681
- M = (K - x) / 6048e5;
9681
+ D = (K - x) / 6048e5;
9682
9682
  break;
9683
9683
  case u:
9684
- M = (K - x) / 864e5;
9684
+ D = (K - x) / 864e5;
9685
9685
  break;
9686
9686
  case s:
9687
- M = K / i;
9687
+ D = K / i;
9688
9688
  break;
9689
9689
  case l:
9690
- M = K / r;
9690
+ D = K / r;
9691
9691
  break;
9692
9692
  case o:
9693
- M = K / n;
9693
+ D = K / n;
9694
9694
  break;
9695
9695
  default:
9696
- M = K;
9696
+ D = K;
9697
9697
  }
9698
- return B ? M : j.a(M);
9698
+ return B ? D : j.a(D);
9699
9699
  }, T.daysInMonth = function() {
9700
9700
  return this.endOf(d).$D;
9701
9701
  }, T.$locale = function() {
9702
9702
  return b[this.$L];
9703
9703
  }, T.locale = function(L, R) {
9704
9704
  if (!L) return this.$L;
9705
- var B = this.clone(), M = F(L, R, !0);
9706
- return M && (B.$L = M), B;
9705
+ var B = this.clone(), D = F(L, R, !0);
9706
+ return D && (B.$L = D), B;
9707
9707
  }, T.clone = function() {
9708
9708
  return j.w(this.$d, this);
9709
9709
  }, T.toDate = function() {
@@ -10871,21 +10871,21 @@ function mi() {
10871
10871
  }, [w]), b = (0, i.useRef)(null), E = (0, i.useRef)(null), z = (0, i.useRef)(function() {
10872
10872
  }), F = (0, i.useRef)(0), $ = (0, i.useRef)(Date.now()), j = (0, i.useRef)([]), H = (0, i.useRef)(null), O = (0, i.useRef)(f);
10873
10873
  O.current = f;
10874
- var S = b.current && A[b.current] !== void 0 ? A[b.current] : p !== null && y === !0 ? o.ReadyState.CONNECTING : o.ReadyState.UNINSTANTIATED, T = f.queryParams ? JSON.stringify(f.queryParams) : null, L = (0, i.useCallback)(function(M, m) {
10874
+ var S = b.current && A[b.current] !== void 0 ? A[b.current] : p !== null && y === !0 ? o.ReadyState.CONNECTING : o.ReadyState.UNINSTANTIATED, T = f.queryParams ? JSON.stringify(f.queryParams) : null, L = (0, i.useCallback)(function(D, m) {
10875
10875
  var W;
10876
10876
  if (m === void 0 && (m = !0), o.isEventSourceSupported && E.current instanceof EventSource) {
10877
10877
  console.warn("Unable to send a message from an eventSource");
10878
10878
  return;
10879
10879
  }
10880
- ((W = E.current) === null || W === void 0 ? void 0 : W.readyState) === o.ReadyState.OPEN ? ((0, c.assertIsWebSocket)(E.current, O.current.skipAssert), E.current.send(M)) : m && j.current.push(M);
10881
- }, []), R = (0, i.useCallback)(function(M, m) {
10882
- m === void 0 && (m = !0), L(JSON.stringify(M), m);
10880
+ ((W = E.current) === null || W === void 0 ? void 0 : W.readyState) === o.ReadyState.OPEN ? ((0, c.assertIsWebSocket)(E.current, O.current.skipAssert), E.current.send(D)) : m && j.current.push(D);
10881
+ }, []), R = (0, i.useCallback)(function(D, m) {
10882
+ m === void 0 && (m = !0), L(JSON.stringify(D), m);
10883
10883
  }, [L]), B = (0, i.useCallback)(function() {
10884
10884
  return O.current.share !== !0 || o.isEventSourceSupported && E.current instanceof EventSource ? E.current : (H.current === null && E.current && ((0, c.assertIsWebSocket)(E.current, O.current.skipAssert), H.current = (0, u.default)(E.current, z)), H.current);
10885
10885
  }, []);
10886
10886
  return (0, i.useEffect)(function() {
10887
10887
  if (p !== null && y === !0) {
10888
- var M, m = !1, W = !0, Y = function() {
10888
+ var D, m = !1, W = !0, Y = function() {
10889
10889
  return t(void 0, void 0, void 0, function() {
10890
10890
  var x, K, ie;
10891
10891
  return n(this, function(re) {
@@ -10911,7 +10911,7 @@ function mi() {
10911
10911
  return e(e({}, de), b.current && (ye = {}, ye[b.current] = fe, ye));
10912
10912
  });
10913
10913
  });
10914
- }, W && (M = (0, l.createOrJoinSocket)(E, b.current, ie, O, K, z, F, $, L)), [
10914
+ }, W && (D = (0, l.createOrJoinSocket)(E, b.current, ie, O, K, z, F, $, L)), [
10915
10915
  2
10916
10916
  /*return*/
10917
10917
  ]);
@@ -10920,17 +10920,17 @@ function mi() {
10920
10920
  });
10921
10921
  };
10922
10922
  return z.current = function() {
10923
- m || (H.current && (H.current = null), M == null || M(), Y());
10923
+ m || (H.current && (H.current = null), D == null || D(), Y());
10924
10924
  }, Y(), function() {
10925
- m = !0, W = !1, H.current && (H.current = null), M == null || M(), g(null);
10925
+ m = !0, W = !1, H.current && (H.current = null), D == null || D(), g(null);
10926
10926
  };
10927
10927
  } else (p === null || y === !1) && (F.current = 0, q(function(x) {
10928
10928
  var K;
10929
10929
  return e(e({}, x), b.current && (K = {}, K[b.current] = o.ReadyState.CLOSED, K));
10930
10930
  }));
10931
10931
  }, [p, y, T, L]), (0, i.useEffect)(function() {
10932
- S === o.ReadyState.OPEN && j.current.splice(0).forEach(function(M) {
10933
- L(M);
10932
+ S === o.ReadyState.OPEN && j.current.splice(0).forEach(function(D) {
10933
+ L(D);
10934
10934
  });
10935
10935
  }, [S]), {
10936
10936
  sendMessage: L,
@@ -11080,14 +11080,14 @@ const jh = "This conversation with a live agent has ended. Please note that a tr
11080
11080
  FORM: "FORM"
11081
11081
  }, Ct = Pn({}), xl = ({ children: e }) => {
11082
11082
  const { conversationScreen: t } = Q(Se), { pushXpertMessage: n } = Q(xt), { setHasError: r, setMode: i } = Q(Pe), [a, o] = ee(""), [l, s] = ee(!1), [, u] = ee(""), [c, d] = ee([]), [p, f] = ee(null), [y, h] = ee(lt.FORM), [w, g] = ee(null), P = (R) => d((B) => [...B, R]), A = async (R) => {
11083
- const B = await Lh(R.data), { conversation_id: M, event_type: m, body: W } = B;
11083
+ const B = await Lh(R.data), { conversation_id: D, event_type: m, body: W } = B;
11084
11084
  switch (m) {
11085
11085
  case "AGENT_TYPING":
11086
11086
  return F();
11087
11087
  case "CONVERSATION_ACCEPTED":
11088
11088
  return $(W);
11089
11089
  case "CONVERSATION_CREATED":
11090
- return u(M);
11090
+ return u(D);
11091
11091
  case "CONVERSATION_ERROR":
11092
11092
  return;
11093
11093
  case "CONVERSATION_TERMINATED":
@@ -11131,9 +11131,9 @@ const jh = "This conversation with a live agent has ended. Please note that a tr
11131
11131
  const { displayName: B } = R;
11132
11132
  d([]), o(B ?? "An agent"), h(lt.CONVERSATION);
11133
11133
  }, j = (R) => {
11134
- const { messageId: B, text: M, timestamp: m } = R;
11134
+ const { messageId: B, text: D, timestamp: m } = R;
11135
11135
  P({
11136
- content: M ?? "",
11136
+ content: D ?? "",
11137
11137
  id: B ?? "",
11138
11138
  role: "agent",
11139
11139
  timestamp: m ? new Date(m) : void 0
@@ -11178,11 +11178,13 @@ const jh = "This conversation with a live agent has ended. Please note that a tr
11178
11178
  startLiveChat: (R) => {
11179
11179
  var B;
11180
11180
  try {
11181
- h(lt.CONNECTING), f(
11182
- `${(B = t == null ? void 0 : t.liveChat) == null ? void 0 : B.socketUrl}?${new URLSearchParams(R).toString()}`
11181
+ h(lt.CONNECTING);
11182
+ const D = new URLSearchParams(R);
11183
+ D.append("url", window.location.href), f(
11184
+ `${(B = t == null ? void 0 : t.liveChat) == null ? void 0 : B.socketUrl}?${D.toString()}`
11183
11185
  );
11184
- } catch (M) {
11185
- console.error(M.message), r(!0), z();
11186
+ } catch (D) {
11187
+ console.error(D.message), r(!0), z();
11186
11188
  }
11187
11189
  },
11188
11190
  submitSurvey: () => {
@@ -11826,21 +11828,21 @@ var ao = {
11826
11828
  // web components if the `tabbableOptions.getShadowRoot` option was used for
11827
11829
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
11828
11830
  // look inside web components even if open)
11829
- (T == null ? void 0 : T.includes(R)) || B.find(function(M) {
11830
- return M === O;
11831
+ (T == null ? void 0 : T.includes(R)) || B.find(function(D) {
11832
+ return D === O;
11831
11833
  });
11832
11834
  });
11833
11835
  }, c = function(O) {
11834
- var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, T = S.hasFallback, L = T === void 0 ? !1 : T, R = S.params, B = R === void 0 ? [] : R, M = a[O];
11835
- if (typeof M == "function" && (M = M.apply(void 0, a0(B))), M === !0 && (M = void 0), !M) {
11836
- if (M === void 0 || M === !1)
11837
- return M;
11836
+ var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, T = S.hasFallback, L = T === void 0 ? !1 : T, R = S.params, B = R === void 0 ? [] : R, D = a[O];
11837
+ if (typeof D == "function" && (D = D.apply(void 0, a0(B))), D === !0 && (D = void 0), !D) {
11838
+ if (D === void 0 || D === !1)
11839
+ return D;
11838
11840
  throw new Error("`".concat(O, "` was specified but was not a node, or did not return a node"));
11839
11841
  }
11840
- var m = M;
11841
- if (typeof M == "string") {
11842
+ var m = D;
11843
+ if (typeof D == "string") {
11842
11844
  try {
11843
- m = r.querySelector(M);
11845
+ m = r.querySelector(D);
11844
11846
  } catch (W) {
11845
11847
  throw new Error("`".concat(O, '` appears to be an invalid selector; error="').concat(W.message, '"'));
11846
11848
  }
@@ -11869,7 +11871,7 @@ var ao = {
11869
11871
  if (o.containerGroups = o.containers.map(function(O) {
11870
11872
  var S = Pl(O, a.tabbableOptions), T = Al(O, a.tabbableOptions), L = S.length > 0 ? S[0] : void 0, R = S.length > 0 ? S[S.length - 1] : void 0, B = T.find(function(W) {
11871
11873
  return yt(W);
11872
- }), M = T.slice().reverse().find(function(W) {
11874
+ }), D = T.slice().reverse().find(function(W) {
11873
11875
  return yt(W);
11874
11876
  }), m = !!S.find(function(W) {
11875
11877
  return ut(W) > 0;
@@ -11894,7 +11896,7 @@ var ao = {
11894
11896
  /** First tabbable node in container, __DOM__ order; `undefined` if none. */
11895
11897
  firstDomTabbableNode: B,
11896
11898
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
11897
- lastDomTabbableNode: M,
11899
+ lastDomTabbableNode: D,
11898
11900
  /**
11899
11901
  * Finds the __tabbable__ node that follows the given node in the specified direction,
11900
11902
  * in this container, if any.
@@ -11944,15 +11946,15 @@ var ao = {
11944
11946
  S = S || yn(T), p();
11945
11947
  var B = null;
11946
11948
  if (o.tabbableGroups.length > 0) {
11947
- var M = u(S, T), m = M >= 0 ? o.containerGroups[M] : void 0;
11948
- if (M < 0)
11949
+ var D = u(S, T), m = D >= 0 ? o.containerGroups[D] : void 0;
11950
+ if (D < 0)
11949
11951
  R ? B = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : B = o.tabbableGroups[0].firstTabbableNode;
11950
11952
  else if (R) {
11951
11953
  var W = o.tabbableGroups.findIndex(function(fe) {
11952
11954
  var de = fe.firstTabbableNode;
11953
11955
  return S === de;
11954
11956
  });
11955
- if (W < 0 && (m.container === S || Cn(S, a.tabbableOptions) && !yt(S, a.tabbableOptions) && !m.nextTabbableNode(S, !1)) && (W = M), W >= 0) {
11957
+ if (W < 0 && (m.container === S || Cn(S, a.tabbableOptions) && !yt(S, a.tabbableOptions) && !m.nextTabbableNode(S, !1)) && (W = D), W >= 0) {
11956
11958
  var Y = W === 0 ? o.tabbableGroups.length - 1 : W - 1, x = o.tabbableGroups[Y];
11957
11959
  B = ut(S) >= 0 ? x.lastTabbableNode : x.lastDomTabbableNode;
11958
11960
  } else Jt(T) || (B = m.nextTabbableNode(S, !1));
@@ -11961,7 +11963,7 @@ var ao = {
11961
11963
  var de = fe.lastTabbableNode;
11962
11964
  return S === de;
11963
11965
  });
11964
- if (K < 0 && (m.container === S || Cn(S, a.tabbableOptions) && !yt(S, a.tabbableOptions) && !m.nextTabbableNode(S)) && (K = M), K >= 0) {
11966
+ if (K < 0 && (m.container === S || Cn(S, a.tabbableOptions) && !yt(S, a.tabbableOptions) && !m.nextTabbableNode(S)) && (K = D), K >= 0) {
11965
11967
  var ie = K === o.tabbableGroups.length - 1 ? 0 : K + 1, re = o.tabbableGroups[ie];
11966
11968
  B = ut(S) >= 0 ? re.firstTabbableNode : re.firstDomTabbableNode;
11967
11969
  } else Jt(T) || (B = m.nextTabbableNode(S));
@@ -11995,12 +11997,12 @@ var ao = {
11995
11997
  var L, R = !0;
11996
11998
  if (o.mostRecentlyFocusedNode)
11997
11999
  if (ut(o.mostRecentlyFocusedNode) > 0) {
11998
- var B = u(o.mostRecentlyFocusedNode), M = o.containerGroups[B].tabbableNodes;
11999
- if (M.length > 0) {
12000
- var m = M.findIndex(function(W) {
12000
+ var B = u(o.mostRecentlyFocusedNode), D = o.containerGroups[B].tabbableNodes;
12001
+ if (D.length > 0) {
12002
+ var m = D.findIndex(function(W) {
12001
12003
  return W === o.mostRecentlyFocusedNode;
12002
12004
  });
12003
- m >= 0 && (a.isKeyForward(o.recentNavEvent) ? m + 1 < M.length && (L = M[m + 1], R = !1) : m - 1 >= 0 && (L = M[m - 1], R = !1));
12005
+ m >= 0 && (a.isKeyForward(o.recentNavEvent) ? m + 1 < D.length && (L = D[m + 1], R = !1) : m - 1 >= 0 && (L = D[m - 1], R = !1));
12004
12006
  }
12005
12007
  } else
12006
12008
  o.containerGroups.some(function(W) {
@@ -12097,12 +12099,12 @@ var ao = {
12097
12099
  clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, z(), o.active = !1, o.paused = !1, j(), ao.deactivateTrap(i, l);
12098
12100
  var T = s(S, "onDeactivate"), L = s(S, "onPostDeactivate"), R = s(S, "checkCanReturnFocus"), B = s(S, "returnFocus", "returnFocusOnDeactivate");
12099
12101
  T == null || T();
12100
- var M = function() {
12102
+ var D = function() {
12101
12103
  oo(function() {
12102
12104
  B && y(h(o.nodeFocusedBeforeActivation)), L == null || L();
12103
12105
  });
12104
12106
  };
12105
- return B && R ? (R(h(o.nodeFocusedBeforeActivation)).then(M, M), this) : (M(), this);
12107
+ return B && R ? (R(h(o.nodeFocusedBeforeActivation)).then(D, D), this) : (D(), this);
12106
12108
  },
12107
12109
  pause: function(O) {
12108
12110
  if (o.paused || !o.active)
@@ -12222,8 +12224,8 @@ function b0() {
12222
12224
  }
12223
12225
  var B = S;
12224
12226
  if (typeof S == "string") {
12225
- var M;
12226
- if (B = (M = this.getDocument()) === null || M === void 0 ? void 0 : M.querySelector(S), !B)
12227
+ var D;
12228
+ if (B = (D = this.getDocument()) === null || D === void 0 ? void 0 : D.querySelector(S), !B)
12227
12229
  throw new Error("`".concat(H, "` as selector refers to no known node"));
12228
12230
  }
12229
12231
  return B;
@@ -13054,7 +13056,7 @@ function ki({ submitEventExternal: e }) {
13054
13056
  setHasNewMessage: A,
13055
13057
  setIsNormalSize: q,
13056
13058
  setLoading: I
13057
- } = Q(Pe), [, b] = ee(!1), [, E] = ee(!1), [z, F] = ee(!1), [$, j] = ee(!1), [H, O] = ee(""), [S, T] = ee(!1), L = Re(null), R = Re(null), B = Re(null), M = Ie.get(`${s}-test`) === "1";
13059
+ } = Q(Pe), [, b] = ee(!1), [, E] = ee(!1), [z, F] = ee(!1), [$, j] = ee(!1), [H, O] = ee(""), [S, T] = ee(!1), L = Re(null), R = Re(null), B = Re(null), D = Ie.get(`${s}-test`) === "1";
13058
13060
  I0(
13059
13061
  (pt = r == null ? void 0 : r.liveChat) == null ? void 0 : pt.enabled,
13060
13062
  $,
@@ -13173,17 +13175,17 @@ function ki({ submitEventExternal: e }) {
13173
13175
  category: "2u",
13174
13176
  label: "xpert-chatbot",
13175
13177
  link: (Ce = X == null ? void 0 : X.target) == null ? void 0 : Ce.href,
13176
- isTestUser: M
13178
+ isTestUser: D
13177
13179
  }
13178
13180
  });
13179
13181
  }, K = P0(
13180
13182
  l == null ? void 0 : l.experimentName
13181
13183
  );
13182
13184
  if (!n) return null;
13183
- if (l != null && l.enabled && !(l != null && l.experimentName) && !M)
13185
+ if (l != null && l.enabled && !(l != null && l.experimentName) && !D)
13184
13186
  return l != null && l.enabled && !(l != null && l.experimentName) && console.log(
13185
13187
  `Chatbot - Experiment not setup: ${s}, ${K}, ${window == null ? void 0 : window.optimizely}`
13186
- ), M || console.log(`Chatbot - Test user not setup: ${s}, ${M}`), null;
13188
+ ), D || console.log(`Chatbot - Test user not setup: ${s}, ${D}`), null;
13187
13189
  if (o != null && o.enabled && (o != null && o.prefix) && !((Ge = B == null ? void 0 : B.current) != null && Ge.track) && !e)
13188
13190
  return console.log(`Chatbot - Segment not setup: ${s}`), null;
13189
13191
  const ie = () => {
@@ -13196,7 +13198,7 @@ function ki({ submitEventExternal: e }) {
13196
13198
  label: "xpert-chatbot",
13197
13199
  linkCount: N0(X),
13198
13200
  apiResponseMessage: X,
13199
- isTestUser: M,
13201
+ isTestUser: D,
13200
13202
  conversationHistoryId: ne
13201
13203
  }
13202
13204
  });
@@ -13205,19 +13207,19 @@ function ki({ submitEventExternal: e }) {
13205
13207
  userInputMessage: ne,
13206
13208
  apiResponseMessage: Ce,
13207
13209
  elapsedSeconds: ke,
13208
- conversationByteSize: D
13210
+ conversationByteSize: M
13209
13211
  }) => {
13210
13212
  m({
13211
13213
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
13212
13214
  payload: {
13213
13215
  category: "2u",
13214
13216
  label: "xpert-chatbot",
13215
- isTestUser: M,
13217
+ isTestUser: D,
13216
13218
  conversationSize: X,
13217
13219
  userInputMessage: ne,
13218
13220
  apiResponseMessage: Ce,
13219
13221
  elapsedSeconds: ke,
13220
- conversationByteSize: D
13222
+ conversationByteSize: M
13221
13223
  }
13222
13224
  });
13223
13225
  }, de = async (X) => {
@@ -13234,7 +13236,7 @@ function ki({ submitEventExternal: e }) {
13234
13236
  label: "xpert-chatbot",
13235
13237
  totalUserInputMessagesSent: Ce,
13236
13238
  userInputMessage: X,
13237
- isTestUser: M
13239
+ isTestUser: D
13238
13240
  }
13239
13241
  }), ie();
13240
13242
  let ke = Ie.get(`${s}-conversation-history-id`) || "";
@@ -13247,7 +13249,7 @@ function ki({ submitEventExternal: e }) {
13247
13249
  role: "user",
13248
13250
  content: X
13249
13251
  }), I(!0);
13250
- const D = [
13252
+ const M = [
13251
13253
  ...y,
13252
13254
  {
13253
13255
  role: "user",
@@ -13263,7 +13265,7 @@ function ki({ submitEventExternal: e }) {
13263
13265
  "Conversation-History-Id": ke
13264
13266
  },
13265
13267
  body: JSON.stringify({
13266
- [t == null ? void 0 : t.messagesKey]: D,
13268
+ [t == null ? void 0 : t.messagesKey]: M,
13267
13269
  ...t.payloadParams
13268
13270
  })
13269
13271
  });
@@ -13276,7 +13278,7 @@ function ki({ submitEventExternal: e }) {
13276
13278
  re(Z, ke);
13277
13279
  const le = /* @__PURE__ */ new Date();
13278
13280
  fe({
13279
- conversationByteSize: L0(JSON.stringify(D)),
13281
+ conversationByteSize: L0(JSON.stringify(M)),
13280
13282
  conversationSize: y.length + 2,
13281
13283
  userInputMessage: X,
13282
13284
  apiResponseMessage: Z,
@@ -13296,7 +13298,7 @@ function ki({ submitEventExternal: e }) {
13296
13298
  payload: {
13297
13299
  category: "2u",
13298
13300
  label: "xpert-chatbot",
13299
- isTestUser: M
13301
+ isTestUser: D
13300
13302
  }
13301
13303
  });
13302
13304
  }, pe = (X) => {
@@ -13305,7 +13307,7 @@ function ki({ submitEventExternal: e }) {
13305
13307
  payload: {
13306
13308
  category: "2u",
13307
13309
  label: "xpert-chatbot",
13308
- isTestUser: M
13310
+ isTestUser: D
13309
13311
  }
13310
13312
  }), q(X);
13311
13313
  }, Ee = () => {
@@ -13314,7 +13316,7 @@ function ki({ submitEventExternal: e }) {
13314
13316
  payload: {
13315
13317
  category: "2u",
13316
13318
  label: "xpert-chatbot",
13317
- isTestUser: M
13319
+ isTestUser: D
13318
13320
  }
13319
13321
  });
13320
13322
  }, Ne = () => {
@@ -13323,7 +13325,7 @@ function ki({ submitEventExternal: e }) {
13323
13325
  payload: {
13324
13326
  category: "2u",
13325
13327
  label: "xpert-chatbot",
13326
- isTestUser: M
13328
+ isTestUser: D
13327
13329
  }
13328
13330
  });
13329
13331
  }, We = () => {
@@ -13332,13 +13334,13 @@ function ki({ submitEventExternal: e }) {
13332
13334
  payload: {
13333
13335
  category: "2u",
13334
13336
  label: "xpert-chatbot",
13335
- isTestUser: M
13337
+ isTestUser: D
13336
13338
  }
13337
13339
  });
13338
13340
  }, Mt = (X) => {
13339
13341
  O(X.target.value);
13340
13342
  }, Rt = (X, ne = "") => {
13341
- const Ce = y.map((ke, D) => X === D ? (m({
13343
+ const Ce = y.map((ke, M) => X === M ? (m({
13342
13344
  name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${ne.toLowerCase()}.clicked`,
13343
13345
  payload: {
13344
13346
  category: "2u",
@@ -13346,7 +13348,7 @@ function ki({ submitEventExternal: e }) {
13346
13348
  userInputMessage: y[X - 1],
13347
13349
  apiResponseMessageIndex: X,
13348
13350
  apiResponseMessage: y[X],
13349
- isTestUser: M
13351
+ isTestUser: D
13350
13352
  }
13351
13353
  }), {
13352
13354
  ...ke,
@@ -13430,7 +13432,7 @@ function ki({ submitEventExternal: e }) {
13430
13432
  handleMessageLinkClicked: x,
13431
13433
  handleSend: de,
13432
13434
  inputRef: R,
13433
- isTestUser: M,
13435
+ isTestUser: D,
13434
13436
  setLiveChatOpen: j,
13435
13437
  submitEvent: m,
13436
13438
  userInput: H
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"