@2uinc/frontend-component-xpert-chatbot 1.26.1 → 1.27.0-beta.1

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 +198 -184
  2. package/package.json +1 -1
@@ -29,9 +29,9 @@ object-assign
29
29
  (c) Sindre Sorhus
30
30
  @license MIT
31
31
  */
32
- var Yn, Mi;
32
+ var Kn, Mi;
33
33
  function zs() {
34
- if (Mi) return Yn;
34
+ if (Mi) return Kn;
35
35
  Mi = 1;
36
36
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
37
37
  function r(a) {
@@ -61,7 +61,7 @@ function zs() {
61
61
  return !1;
62
62
  }
63
63
  }
64
- return Yn = i() ? Object.assign : function(a, o) {
64
+ return Kn = i() ? Object.assign : function(a, o) {
65
65
  for (var l, s = r(a), u, c = 1; c < arguments.length; c++) {
66
66
  l = Object(arguments[c]);
67
67
  for (var f in l)
@@ -73,7 +73,7 @@ function zs() {
73
73
  }
74
74
  }
75
75
  return s;
76
- }, Yn;
76
+ }, Kn;
77
77
  }
78
78
  /** @license React v17.0.2
79
79
  * react-jsx-runtime.production.min.js
@@ -177,7 +177,7 @@ function Er(e, t) {
177
177
  }
178
178
  );
179
179
  }
180
- var Re = Er($s, { path: "/" }), Kn = { exports: {} }, Jn, Hi;
180
+ var Re = Er($s, { path: "/" }), Yn = { exports: {} }, Jn, Hi;
181
181
  function Vs() {
182
182
  if (Hi) return Jn;
183
183
  Hi = 1;
@@ -234,7 +234,7 @@ function Ws() {
234
234
  }
235
235
  var qi;
236
236
  function go() {
237
- return qi || (qi = 1, Kn.exports = /* @__PURE__ */ Ws()()), Kn.exports;
237
+ return qi || (qi = 1, Yn.exports = /* @__PURE__ */ Ws()()), Yn.exports;
238
238
  }
239
239
  var Gs = /* @__PURE__ */ go();
240
240
  const k = /* @__PURE__ */ tt(Gs);
@@ -283,14 +283,14 @@ function Xs() {
283
283
  return v(_(L));
284
284
  };
285
285
  }
286
- var Y = Array.prototype, ae = Function.prototype, ye = Object.prototype, ke = ne["__core-js_shared__"], Ne = ae.toString, Oe = ye.hasOwnProperty, lt = function() {
286
+ var K = Array.prototype, ae = Function.prototype, ye = Object.prototype, ke = ne["__core-js_shared__"], Ne = ae.toString, Oe = ye.hasOwnProperty, lt = function() {
287
287
  var v = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
288
288
  return v ? "Symbol(src)_1." + v : "";
289
289
  }(), Et = ye.toString, Bt = Ne.call(Object), M = RegExp(
290
290
  "^" + Ne.call(Oe).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
291
  ), U = xe ? ne.Buffer : void 0, X = ne.Symbol, oe = ne.Uint8Array;
292
292
  U && U.allocUnsafe;
293
- var ue = ht(Object.getPrototypeOf, Object), Ae = Object.create, Ze = ye.propertyIsEnumerable, $e = Y.splice, je = X ? X.toStringTag : void 0, Ye = function() {
293
+ var ue = ht(Object.getPrototypeOf, Object), Ae = Object.create, Ze = ye.propertyIsEnumerable, $e = K.splice, je = X ? X.toStringTag : void 0, Ke = function() {
294
294
  try {
295
295
  var v = zn(Object, "defineProperty");
296
296
  return v({}, "", {}), v;
@@ -383,11 +383,11 @@ function Xs() {
383
383
  string: new mt()
384
384
  };
385
385
  }
386
- function Yl(v) {
386
+ function Kl(v) {
387
387
  var _ = un(this, v).delete(v);
388
388
  return this.size -= _ ? 1 : 0, _;
389
389
  }
390
- function Kl(v) {
390
+ function Yl(v) {
391
391
  return un(this, v).get(v);
392
392
  }
393
393
  function Jl(v) {
@@ -397,7 +397,7 @@ function Xs() {
397
397
  var L = un(this, v), G = L.size;
398
398
  return L.set(v, _), this.size += L.size == G ? 0 : 1, this;
399
399
  }
400
- Ot.prototype.clear = Zl, Ot.prototype.delete = Yl, Ot.prototype.get = Kl, Ot.prototype.has = Jl, Ot.prototype.set = Ql;
400
+ Ot.prototype.clear = Zl, Ot.prototype.delete = Kl, Ot.prototype.get = Yl, Ot.prototype.has = Jl, Ot.prototype.set = Ql;
401
401
  function It(v) {
402
402
  var _ = this.__data__ = new rt(v);
403
403
  this.size = _.size;
@@ -450,7 +450,7 @@ function Xs() {
450
450
  return -1;
451
451
  }
452
452
  function Hn(v, _, L) {
453
- _ == "__proto__" && Ye ? Ye(v, _, {
453
+ _ == "__proto__" && Ke ? Ke(v, _, {
454
454
  configurable: !0,
455
455
  enumerable: !0,
456
456
  value: L,
@@ -507,8 +507,8 @@ function Xs() {
507
507
  function ds(v, _) {
508
508
  return Is(Os(v, _, ji), v + "");
509
509
  }
510
- var ps = Ye ? function(v, _) {
511
- return Ye(v, "toString", {
510
+ var ps = Ke ? function(v, _) {
511
+ return Ke(v, "toString", {
512
512
  configurable: !0,
513
513
  enumerable: !1,
514
514
  value: Ds(_),
@@ -718,7 +718,7 @@ function Xs() {
718
718
  }(Zt, Zt.exports)), Zt.exports;
719
719
  }
720
720
  var Zs = Xs();
721
- const Vr = /* @__PURE__ */ tt(Zs), Ys = {
721
+ const Vr = /* @__PURE__ */ tt(Zs), Ks = {
722
722
  id: "degrees-canvas-support",
723
723
  chatApi: {
724
724
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
@@ -831,7 +831,7 @@ const Vr = /* @__PURE__ */ tt(Zs), Ys = {
831
831
  useOwnChat: !1
832
832
  }
833
833
  }
834
- }, Ks = {
834
+ }, Ys = {
835
835
  id: "degrees-moodle-support",
836
836
  chatApi: {
837
837
  endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
@@ -1395,8 +1395,8 @@ const Vr = /* @__PURE__ */ tt(Zs), Ys = {
1395
1395
  }
1396
1396
  }
1397
1397
  }, ru = {
1398
- "degrees-canvas-support": Ys,
1399
- "degrees-moodle-support": Ks,
1398
+ "degrees-canvas-support": Ks,
1399
+ "degrees-moodle-support": Ys,
1400
1400
  edx: Js,
1401
1401
  "edx-global-support": Qs,
1402
1402
  "exec-ed-ss-olc-moodle": eu,
@@ -2328,7 +2328,7 @@ function Au(e, t) {
2328
2328
  function Ir(e) {
2329
2329
  return Or[e] || Or[""];
2330
2330
  }
2331
- function Yr(e) {
2331
+ function Kr(e) {
2332
2332
  let t;
2333
2333
  if (typeof e.resources == "string")
2334
2334
  t = [e.resources];
@@ -2353,21 +2353,21 @@ function Yr(e) {
2353
2353
  dataAfterTimeout: e.dataAfterTimeout !== !1
2354
2354
  };
2355
2355
  }
2356
- const Kr = /* @__PURE__ */ Object.create(null), Ut = [
2356
+ const Yr = /* @__PURE__ */ Object.create(null), Ut = [
2357
2357
  "https://api.simplesvg.com",
2358
2358
  "https://api.unisvg.com"
2359
2359
  ], xn = [];
2360
2360
  for (; Ut.length > 0; )
2361
2361
  Ut.length === 1 || Math.random() > 0.5 ? xn.push(Ut.shift()) : xn.push(Ut.pop());
2362
- Kr[""] = Yr({
2362
+ Yr[""] = Kr({
2363
2363
  resources: ["https://api.iconify.design"].concat(xn)
2364
2364
  });
2365
2365
  function Fu(e, t) {
2366
- const n = Yr(t);
2367
- return n === null ? !1 : (Kr[e] = n, !0);
2366
+ const n = Kr(t);
2367
+ return n === null ? !1 : (Yr[e] = n, !0);
2368
2368
  }
2369
2369
  function Jr(e) {
2370
- return Kr[e];
2370
+ return Yr[e];
2371
2371
  }
2372
2372
  const Lu = () => {
2373
2373
  let e;
@@ -2377,7 +2377,7 @@ const Lu = () => {
2377
2377
  } catch {
2378
2378
  }
2379
2379
  };
2380
- let Yi = Lu();
2380
+ let Ki = Lu();
2381
2381
  function Nu(e, t) {
2382
2382
  const n = Jr(e);
2383
2383
  if (!n)
@@ -2424,7 +2424,7 @@ function Mu(e) {
2424
2424
  return "/";
2425
2425
  }
2426
2426
  const Ru = (e, t, n) => {
2427
- if (!Yi) {
2427
+ if (!Ki) {
2428
2428
  n("abort", 424);
2429
2429
  return;
2430
2430
  }
@@ -2447,7 +2447,7 @@ const Ru = (e, t, n) => {
2447
2447
  return;
2448
2448
  }
2449
2449
  let i = 503;
2450
- Yi(e + r).then((a) => {
2450
+ Ki(e + r).then((a) => {
2451
2451
  const o = a.status;
2452
2452
  if (o !== 200) {
2453
2453
  setTimeout(() => {
@@ -2708,7 +2708,7 @@ function Ao(e) {
2708
2708
  cleanup: r
2709
2709
  };
2710
2710
  }
2711
- function Ki() {
2711
+ function Yi() {
2712
2712
  }
2713
2713
  const nr = /* @__PURE__ */ Object.create(null);
2714
2714
  function Gu(e) {
@@ -2729,21 +2729,21 @@ function Xu(e, t, n) {
2729
2729
  if (typeof e == "string") {
2730
2730
  const a = Ir(e);
2731
2731
  if (!a)
2732
- return n(void 0, 424), Ki;
2732
+ return n(void 0, 424), Yi;
2733
2733
  i = a.send;
2734
2734
  const o = Gu(e);
2735
2735
  o && (r = o.redundancy);
2736
2736
  } else {
2737
- const a = Yr(e);
2737
+ const a = Kr(e);
2738
2738
  if (a) {
2739
2739
  r = Ao(a);
2740
2740
  const o = e.resources ? e.resources[0] : "", l = Ir(o);
2741
2741
  l && (i = l.send);
2742
2742
  }
2743
2743
  }
2744
- return !r || !i ? (n(void 0, 424), Ki) : r.query(t, i, n)().abort;
2744
+ return !r || !i ? (n(void 0, 424), Yi) : r.query(t, i, n)().abort;
2745
2745
  }
2746
- const Ji = "iconify2", tn = "iconify", Fo = tn + "-count", Qi = tn + "-version", Lo = 36e5, Zu = 168, Yu = 50;
2746
+ const Ji = "iconify2", tn = "iconify", Fo = tn + "-count", Qi = tn + "-version", Lo = 36e5, Zu = 168, Ku = 50;
2747
2747
  function Pr(e, t) {
2748
2748
  try {
2749
2749
  return e.getItem(t);
@@ -2776,7 +2776,7 @@ const Nn = {
2776
2776
  session: /* @__PURE__ */ new Set()
2777
2777
  };
2778
2778
  let ei = !1;
2779
- function Ku(e) {
2779
+ function Yu(e) {
2780
2780
  ei = e;
2781
2781
  }
2782
2782
  let pn = typeof window > "u" ? {} : window;
@@ -2822,7 +2822,7 @@ function Do(e, t) {
2822
2822
  }
2823
2823
  function Mo() {
2824
2824
  if (!ei) {
2825
- Ku(!0);
2825
+ Yu(!0);
2826
2826
  for (const e in Nn)
2827
2827
  Do(e, (t) => {
2828
2828
  const n = t.data, r = t.provider, i = n.prefix, a = vt(
@@ -2861,7 +2861,7 @@ function Qu(e, t) {
2861
2861
  let o;
2862
2862
  if (a.size)
2863
2863
  a.delete(o = Array.from(a).shift());
2864
- else if (o = Fr(i), o >= Yu || !Ar(i, o + 1))
2864
+ else if (o = Fr(i), o >= Ku || !Ar(i, o + 1))
2865
2865
  return;
2866
2866
  const l = {
2867
2867
  cached: Math.floor(Date.now() / Lo),
@@ -3060,19 +3060,19 @@ function fc(e) {
3060
3060
  function dc(e) {
3061
3061
  return 'url("' + fc(e) + '")';
3062
3062
  }
3063
- let Yt;
3063
+ let Kt;
3064
3064
  function pc() {
3065
3065
  try {
3066
- Yt = window.trustedTypes.createPolicy("iconify", {
3066
+ Kt = window.trustedTypes.createPolicy("iconify", {
3067
3067
  // eslint-disable-next-line @typescript-eslint/no-unsafe-return
3068
3068
  createHTML: (e) => e
3069
3069
  });
3070
3070
  } catch {
3071
- Yt = null;
3071
+ Kt = null;
3072
3072
  }
3073
3073
  }
3074
3074
  function hc(e) {
3075
- return Yt === void 0 && pc(), Yt ? Yt.createHTML(e) : e;
3075
+ return Kt === void 0 && pc(), Kt ? Kt.createHTML(e) : e;
3076
3076
  }
3077
3077
  const Ro = {
3078
3078
  ...Io,
@@ -3570,7 +3570,7 @@ function wc() {
3570
3570
  }
3571
3571
  var Cc = wc();
3572
3572
  const qo = /* @__PURE__ */ tt(Cc);
3573
- function Kt(e) {
3573
+ function Yt(e) {
3574
3574
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? la(e.position) : "start" in e || "end" in e ? la(e) : "line" in e || "column" in e ? Nr(e) : "";
3575
3575
  }
3576
3576
  function Nr(e) {
@@ -3613,7 +3613,7 @@ class qe extends Error {
3613
3613
  const o = r.indexOf(":");
3614
3614
  o === -1 ? i[1] = r : (i[0] = r.slice(0, o), i[1] = r.slice(o + 1));
3615
3615
  }
3616
- n && ("type" in n || "position" in n ? n.position && (a = n.position) : "start" in n || "end" in n ? a = n : ("line" in n || "column" in n) && (a.start = n)), this.name = Kt(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = a.start.line, this.column = a.start.column, this.position = a, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
3616
+ n && ("type" in n || "position" in n ? n.position && (a = n.position) : "start" in n || "end" in n ? a = n : ("line" in n || "column" in n) && (a.start = n)), this.name = Yt(n) || "1:1", this.message = typeof t == "object" ? t.message : t, this.stack = "", typeof t == "object" && t.stack && (this.stack = t.stack), this.reason = this.message, this.fatal, this.line = a.start.line, this.column = a.start.column, this.position = a, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
3617
3617
  }
3618
3618
  }
3619
3619
  qe.prototype.file = "";
@@ -3627,7 +3627,7 @@ qe.prototype.line = null;
3627
3627
  qe.prototype.source = null;
3628
3628
  qe.prototype.ruleId = null;
3629
3629
  qe.prototype.position = null;
3630
- const Ke = { basename: kc, dirname: Sc, extname: _c, join: Ec, sep: "/" };
3630
+ const Ye = { basename: kc, dirname: Sc, extname: _c, join: Ec, sep: "/" };
3631
3631
  function kc(e, t) {
3632
3632
  if (t !== void 0 && typeof t != "string")
3633
3633
  throw new TypeError('"ext" argument must be a string');
@@ -3841,7 +3841,7 @@ class Uo {
3841
3841
  * Get the parent path (example: `'~'`).
3842
3842
  */
3843
3843
  get dirname() {
3844
- return typeof this.path == "string" ? Ke.dirname(this.path) : void 0;
3844
+ return typeof this.path == "string" ? Ye.dirname(this.path) : void 0;
3845
3845
  }
3846
3846
  /**
3847
3847
  * Set the parent path (example: `'~'`).
@@ -3849,13 +3849,13 @@ class Uo {
3849
3849
  * Cannot be set if there’s no `path` yet.
3850
3850
  */
3851
3851
  set dirname(t) {
3852
- ua(this.basename, "dirname"), this.path = Ke.join(t || "", this.basename);
3852
+ ua(this.basename, "dirname"), this.path = Ye.join(t || "", this.basename);
3853
3853
  }
3854
3854
  /**
3855
3855
  * Get the basename (including extname) (example: `'index.min.js'`).
3856
3856
  */
3857
3857
  get basename() {
3858
- return typeof this.path == "string" ? Ke.basename(this.path) : void 0;
3858
+ return typeof this.path == "string" ? Ye.basename(this.path) : void 0;
3859
3859
  }
3860
3860
  /**
3861
3861
  * Set basename (including extname) (`'index.min.js'`).
@@ -3865,13 +3865,13 @@ class Uo {
3865
3865
  * Cannot be nullified (use `file.path = file.dirname` instead).
3866
3866
  */
3867
3867
  set basename(t) {
3868
- or(t, "basename"), ar(t, "basename"), this.path = Ke.join(this.dirname || "", t);
3868
+ or(t, "basename"), ar(t, "basename"), this.path = Ye.join(this.dirname || "", t);
3869
3869
  }
3870
3870
  /**
3871
3871
  * Get the extname (including dot) (example: `'.js'`).
3872
3872
  */
3873
3873
  get extname() {
3874
- return typeof this.path == "string" ? Ke.extname(this.path) : void 0;
3874
+ return typeof this.path == "string" ? Ye.extname(this.path) : void 0;
3875
3875
  }
3876
3876
  /**
3877
3877
  * Set the extname (including dot) (example: `'.js'`).
@@ -3887,13 +3887,13 @@ class Uo {
3887
3887
  if (t.includes(".", 1))
3888
3888
  throw new Error("`extname` cannot contain multiple dots");
3889
3889
  }
3890
- this.path = Ke.join(this.dirname, this.stem + (t || ""));
3890
+ this.path = Ye.join(this.dirname, this.stem + (t || ""));
3891
3891
  }
3892
3892
  /**
3893
3893
  * Get the stem (basename w/o extname) (example: `'index.min'`).
3894
3894
  */
3895
3895
  get stem() {
3896
- return typeof this.path == "string" ? Ke.basename(this.path, this.extname) : void 0;
3896
+ return typeof this.path == "string" ? Ye.basename(this.path, this.extname) : void 0;
3897
3897
  }
3898
3898
  /**
3899
3899
  * Set the stem (basename w/o extname) (example: `'index.min'`).
@@ -3903,7 +3903,7 @@ class Uo {
3903
3903
  * Cannot be nullified (use `file.path = file.dirname` instead).
3904
3904
  */
3905
3905
  set stem(t) {
3906
- or(t, "stem"), ar(t, "stem"), this.path = Ke.join(this.dirname || "", t + (this.extname || ""));
3906
+ or(t, "stem"), ar(t, "stem"), this.path = Ye.join(this.dirname || "", t + (this.extname || ""));
3907
3907
  }
3908
3908
  /**
3909
3909
  * Serialize the file.
@@ -3983,9 +3983,9 @@ class Uo {
3983
3983
  }
3984
3984
  }
3985
3985
  function ar(e, t) {
3986
- if (e && e.includes(Ke.sep))
3986
+ if (e && e.includes(Ye.sep))
3987
3987
  throw new Error(
3988
- "`" + t + "` cannot be a path: did not expect `" + Ke.sep + "`"
3988
+ "`" + t + "` cannot be a path: did not expect `" + Ye.sep + "`"
3989
3989
  );
3990
3990
  }
3991
3991
  function or(e, t) {
@@ -4363,8 +4363,8 @@ function Mr(e) {
4363
4363
  e !== null && (e < 32 || e === 127)
4364
4364
  );
4365
4365
  }
4366
- const Rr = dt(/\d/), Yc = dt(/[\dA-Fa-f]/), Kc = dt(/[!-/:-@[-`{-~]/);
4367
- function K(e) {
4366
+ const Rr = dt(/\d/), Kc = dt(/[\dA-Fa-f]/), Yc = dt(/[!-/:-@[-`{-~]/);
4367
+ function Y(e) {
4368
4368
  return e !== null && e < -2;
4369
4369
  }
4370
4370
  function Le(e) {
@@ -4424,7 +4424,7 @@ function tf(e) {
4424
4424
  e.exit("chunkText"), e.exit("paragraph"), e.consume(l);
4425
4425
  return;
4426
4426
  }
4427
- return K(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
4427
+ return Y(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
4428
4428
  }
4429
4429
  }
4430
4430
  const nf = {
@@ -4516,7 +4516,7 @@ function rf(e) {
4516
4516
  w(e.exit("chunkFlow"), !0), g(0), e.consume(F);
4517
4517
  return;
4518
4518
  }
4519
- return K(F) ? (e.consume(F), w(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(F), h);
4519
+ return Y(F) ? (e.consume(F), w(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(F), h);
4520
4520
  }
4521
4521
  function w(F, q) {
4522
4522
  const I = t.sliceStream(F);
@@ -4714,7 +4714,7 @@ function cf(e, t, n) {
4714
4714
  return se(a) ? ge(e, i, "linePrefix")(a) : i(a);
4715
4715
  }
4716
4716
  function i(a) {
4717
- return a === null || K(a) ? t(a) : n(a);
4717
+ return a === null || Y(a) ? t(a) : n(a);
4718
4718
  }
4719
4719
  }
4720
4720
  const Go = {
@@ -4769,7 +4769,7 @@ function hf(e, t, n) {
4769
4769
  return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(a), e.exit("escapeMarker"), i;
4770
4770
  }
4771
4771
  function i(a) {
4772
- return Kc(a) ? (e.enter("characterEscapeValue"), e.consume(a), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(a);
4772
+ return Yc(a) ? (e.enter("characterEscapeValue"), e.consume(a), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(a);
4773
4773
  }
4774
4774
  }
4775
4775
  const wa = document.createElement("i");
@@ -4794,7 +4794,7 @@ function mf(e, t, n) {
4794
4794
  return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, o = Be, c(f));
4795
4795
  }
4796
4796
  function u(f) {
4797
- return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = Yc, c) : (e.enter("characterReferenceValue"), a = 7, o = Rr, c(f));
4797
+ return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = Kc, c) : (e.enter("characterReferenceValue"), a = 7, o = Rr, c(f));
4798
4798
  }
4799
4799
  function c(f) {
4800
4800
  if (f === 59 && i) {
@@ -4830,20 +4830,20 @@ function gf(e, t, n) {
4830
4830
  return b === l ? (o++, e.consume(b), c) : o < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), se(b) ? ge(e, f, "whitespace")(b) : f(b));
4831
4831
  }
4832
4832
  function f(b) {
4833
- return b === null || K(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(Ca, h, q)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
4833
+ return b === null || Y(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(Ca, h, q)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
4834
4834
  contentType: "string"
4835
4835
  }), p(b));
4836
4836
  }
4837
4837
  function p(b) {
4838
- return b === null || K(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(b)) : se(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, d, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), p);
4838
+ return b === null || Y(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(b)) : se(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ge(e, d, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), p);
4839
4839
  }
4840
4840
  function d(b) {
4841
- return b === null || K(b) ? f(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
4841
+ return b === null || Y(b) ? f(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
4842
4842
  contentType: "string"
4843
4843
  }), y(b));
4844
4844
  }
4845
4845
  function y(b) {
4846
- return b === null || K(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(b)) : b === 96 && b === l ? n(b) : (e.consume(b), y);
4846
+ return b === null || Y(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(b)) : b === 96 && b === l ? n(b) : (e.consume(b), y);
4847
4847
  }
4848
4848
  function h(b) {
4849
4849
  return e.attempt(i, q, w)(b);
@@ -4860,10 +4860,10 @@ function gf(e, t, n) {
4860
4860
  )(b) : P(b);
4861
4861
  }
4862
4862
  function P(b) {
4863
- return b === null || K(b) ? e.check(Ca, h, q)(b) : (e.enter("codeFlowValue"), F(b));
4863
+ return b === null || Y(b) ? e.check(Ca, h, q)(b) : (e.enter("codeFlowValue"), F(b));
4864
4864
  }
4865
4865
  function F(b) {
4866
- return b === null || K(b) ? (e.exit("codeFlowValue"), P(b)) : (e.consume(b), F);
4866
+ return b === null || Y(b) ? (e.exit("codeFlowValue"), P(b)) : (e.consume(b), F);
4867
4867
  }
4868
4868
  function q(b) {
4869
4869
  return e.exit("codeFenced"), t(b);
@@ -4889,7 +4889,7 @@ function gf(e, t, n) {
4889
4889
  return T === l ? (N++, b.consume(T), O) : N >= o ? (b.exit("codeFencedFenceSequence"), se(T) ? ge(b, S, "whitespace")(T) : S(T)) : z(T);
4890
4890
  }
4891
4891
  function S(T) {
4892
- return T === null || K(T) ? (b.exit("codeFencedFence"), E(T)) : z(T);
4892
+ return T === null || Y(T) ? (b.exit("codeFencedFence"), E(T)) : z(T);
4893
4893
  }
4894
4894
  }
4895
4895
  }
@@ -4921,10 +4921,10 @@ function vf(e, t, n) {
4921
4921
  return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : n(u);
4922
4922
  }
4923
4923
  function o(u) {
4924
- return u === null ? s(u) : K(u) ? e.attempt(bf, o, s)(u) : (e.enter("codeFlowValue"), l(u));
4924
+ return u === null ? s(u) : Y(u) ? e.attempt(bf, o, s)(u) : (e.enter("codeFlowValue"), l(u));
4925
4925
  }
4926
4926
  function l(u) {
4927
- return u === null || K(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), l);
4927
+ return u === null || Y(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), l);
4928
4928
  }
4929
4929
  function s(u) {
4930
4930
  return e.exit("codeIndented"), t(u);
@@ -4934,11 +4934,11 @@ function xf(e, t, n) {
4934
4934
  const r = this;
4935
4935
  return i;
4936
4936
  function i(o) {
4937
- return r.parser.lazy[r.now().line] ? n(o) : K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ge(e, a, "linePrefix", 5)(o);
4937
+ return r.parser.lazy[r.now().line] ? n(o) : Y(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ge(e, a, "linePrefix", 5)(o);
4938
4938
  }
4939
4939
  function a(o) {
4940
4940
  const l = r.events[r.events.length - 1];
4941
- return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : K(o) ? i(o) : n(o);
4941
+ return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : Y(o) ? i(o) : n(o);
4942
4942
  }
4943
4943
  }
4944
4944
  const wf = {
@@ -4973,16 +4973,16 @@ function Sf(e, t, n) {
4973
4973
  return f === 96 ? (e.consume(f), r++, l) : (e.exit("codeTextSequence"), s(f));
4974
4974
  }
4975
4975
  function s(f) {
4976
- return f === null ? n(f) : f === 32 ? (e.enter("space"), e.consume(f), e.exit("space"), s) : f === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(f)) : K(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), s) : (e.enter("codeTextData"), u(f));
4976
+ return f === null ? n(f) : f === 32 ? (e.enter("space"), e.consume(f), e.exit("space"), s) : f === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(f)) : Y(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), s) : (e.enter("codeTextData"), u(f));
4977
4977
  }
4978
4978
  function u(f) {
4979
- return f === null || f === 32 || f === 96 || K(f) ? (e.exit("codeTextData"), s(f)) : (e.consume(f), u);
4979
+ return f === null || f === 32 || f === 96 || Y(f) ? (e.exit("codeTextData"), s(f)) : (e.consume(f), u);
4980
4980
  }
4981
4981
  function c(f) {
4982
4982
  return f === 96 ? (e.consume(f), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(f)) : (a.type = "codeTextData", u(f));
4983
4983
  }
4984
4984
  }
4985
- function Yo(e) {
4985
+ function Ko(e) {
4986
4986
  const t = {};
4987
4987
  let n = -1, r, i, a, o, l, s, u;
4988
4988
  for (; ++n < e.length; ) {
@@ -5031,7 +5031,7 @@ const Ef = {
5031
5031
  partial: !0
5032
5032
  };
5033
5033
  function Of(e) {
5034
- return Yo(e), e;
5034
+ return Ko(e), e;
5035
5035
  }
5036
5036
  function If(e, t) {
5037
5037
  let n;
@@ -5042,7 +5042,7 @@ function If(e, t) {
5042
5042
  }), i(l);
5043
5043
  }
5044
5044
  function i(l) {
5045
- return l === null ? a(l) : K(l) ? e.check(
5045
+ return l === null ? a(l) : Y(l) ? e.check(
5046
5046
  Tf,
5047
5047
  o,
5048
5048
  a
@@ -5065,13 +5065,13 @@ function Pf(e, t, n) {
5065
5065
  return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), ge(e, a, "linePrefix");
5066
5066
  }
5067
5067
  function a(o) {
5068
- if (o === null || K(o))
5068
+ if (o === null || Y(o))
5069
5069
  return n(o);
5070
5070
  const l = r.events[r.events.length - 1];
5071
5071
  return !r.parser.constructs.disable.null.includes("codeIndented") && l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : e.interrupt(r.parser.constructs.flow, n, t)(o);
5072
5072
  }
5073
5073
  }
5074
- function Ko(e, t, n, r, i, a, o, l, s) {
5074
+ function Yo(e, t, n, r, i, a, o, l, s) {
5075
5075
  const u = s || Number.POSITIVE_INFINITY;
5076
5076
  let c = 0;
5077
5077
  return f;
@@ -5086,7 +5086,7 @@ function Ko(e, t, n, r, i, a, o, l, s) {
5086
5086
  }), d(g));
5087
5087
  }
5088
5088
  function d(g) {
5089
- return g === 62 ? (e.exit("chunkString"), e.exit(l), p(g)) : g === null || g === 60 || K(g) ? n(g) : (e.consume(g), g === 92 ? y : d);
5089
+ return g === 62 ? (e.exit("chunkString"), e.exit(l), p(g)) : g === null || g === 60 || Y(g) ? n(g) : (e.consume(g), g === 92 ? y : d);
5090
5090
  }
5091
5091
  function y(g) {
5092
5092
  return g === 60 || g === 62 || g === 92 ? (e.consume(g), d) : d(g);
@@ -5111,12 +5111,12 @@ function Jo(e, t, n, r, i, a) {
5111
5111
  // which doesn’t need this.
5112
5112
  // Hidden footnotes hook.
5113
5113
  /* c8 ignore next 3 */
5114
- d === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(d) : d === 93 ? (e.exit(a), e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) : K(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), c) : (e.enter("chunkString", {
5114
+ d === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(d) : d === 93 ? (e.exit(a), e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) : Y(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), c) : (e.enter("chunkString", {
5115
5115
  contentType: "string"
5116
5116
  }), f(d));
5117
5117
  }
5118
5118
  function f(d) {
5119
- return d === null || d === 91 || d === 93 || K(d) || l++ > 999 ? (e.exit("chunkString"), c(d)) : (e.consume(d), s || (s = !se(d)), d === 92 ? p : f);
5119
+ return d === null || d === 91 || d === 93 || Y(d) || l++ > 999 ? (e.exit("chunkString"), c(d)) : (e.consume(d), s || (s = !se(d)), d === 92 ? p : f);
5120
5120
  }
5121
5121
  function p(d) {
5122
5122
  return d === 91 || d === 92 || d === 93 ? (e.consume(d), l++, f) : f(d);
@@ -5132,12 +5132,12 @@ function Qo(e, t, n, r, i, a) {
5132
5132
  return p === o ? (e.enter(i), e.consume(p), e.exit(i), e.exit(r), t) : (e.enter(a), u(p));
5133
5133
  }
5134
5134
  function u(p) {
5135
- return p === o ? (e.exit(a), s(o)) : p === null ? n(p) : K(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), ge(e, u, "linePrefix")) : (e.enter("chunkString", {
5135
+ return p === o ? (e.exit(a), s(o)) : p === null ? n(p) : Y(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), ge(e, u, "linePrefix")) : (e.enter("chunkString", {
5136
5136
  contentType: "string"
5137
5137
  }), c(p));
5138
5138
  }
5139
5139
  function c(p) {
5140
- return p === o || p === null || K(p) ? (e.exit("chunkString"), u(p)) : (e.consume(p), p === 92 ? f : c);
5140
+ return p === o || p === null || Y(p) ? (e.exit("chunkString"), u(p)) : (e.consume(p), p === 92 ? f : c);
5141
5141
  }
5142
5142
  function f(p) {
5143
5143
  return p === o || p === 92 ? (e.consume(p), c) : c(p);
@@ -5147,7 +5147,7 @@ function Jt(e, t) {
5147
5147
  let n;
5148
5148
  return r;
5149
5149
  function r(i) {
5150
- return K(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ge(
5150
+ return Y(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : se(i) ? ge(
5151
5151
  e,
5152
5152
  r,
5153
5153
  n ? "linePrefix" : "lineSuffix"
@@ -5192,7 +5192,7 @@ function Lf(e, t, n) {
5192
5192
  return Le(d) ? Jt(e, u)(d) : u(d);
5193
5193
  }
5194
5194
  function u(d) {
5195
- return Ko(
5195
+ return Yo(
5196
5196
  e,
5197
5197
  c,
5198
5198
  // Note: we don’t need to reset the way `markdown-rs` does.
@@ -5211,7 +5211,7 @@ function Lf(e, t, n) {
5211
5211
  return se(d) ? ge(e, p, "whitespace")(d) : p(d);
5212
5212
  }
5213
5213
  function p(d) {
5214
- return d === null || K(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
5214
+ return d === null || Y(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
5215
5215
  }
5216
5216
  }
5217
5217
  function Nf(e, t, n) {
@@ -5233,7 +5233,7 @@ function Nf(e, t, n) {
5233
5233
  return se(l) ? ge(e, o, "whitespace")(l) : o(l);
5234
5234
  }
5235
5235
  function o(l) {
5236
- return l === null || K(l) ? t(l) : n(l);
5236
+ return l === null || Y(l) ? t(l) : n(l);
5237
5237
  }
5238
5238
  }
5239
5239
  const jf = {
@@ -5246,7 +5246,7 @@ function Df(e, t, n) {
5246
5246
  return e.enter("hardBreakEscape"), e.consume(a), i;
5247
5247
  }
5248
5248
  function i(a) {
5249
- return K(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
5249
+ return Y(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
5250
5250
  }
5251
5251
  }
5252
5252
  const Mf = {
@@ -5285,7 +5285,7 @@ function Bf(e, t, n) {
5285
5285
  return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Le(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
5286
5286
  }
5287
5287
  function l(c) {
5288
- return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || K(c) ? (e.exit("atxHeading"), t(c)) : se(c) ? ge(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
5288
+ return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || Y(c) ? (e.exit("atxHeading"), t(c)) : se(c) ? ge(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
5289
5289
  }
5290
5290
  function s(c) {
5291
5291
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
@@ -5427,7 +5427,7 @@ function Vf(e, t, n) {
5427
5427
  return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? n(x) : x === 34 || x === 39 ? (e.consume(x), s = x, E) : se(x) ? (e.consume(x), b) : z(x);
5428
5428
  }
5429
5429
  function E(x) {
5430
- return x === s ? (e.consume(x), s = null, N) : x === null || K(x) ? n(x) : (e.consume(x), E);
5430
+ return x === s ? (e.consume(x), s = null, N) : x === null || Y(x) ? n(x) : (e.consume(x), E);
5431
5431
  }
5432
5432
  function z(x) {
5433
5433
  return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Le(x) ? I(x) : (e.consume(x), z);
@@ -5439,14 +5439,14 @@ function Vf(e, t, n) {
5439
5439
  return x === 62 ? (e.consume(x), D) : n(x);
5440
5440
  }
5441
5441
  function D(x) {
5442
- return x === null || K(x) ? B(x) : se(x) ? (e.consume(x), D) : n(x);
5442
+ return x === null || Y(x) ? B(x) : se(x) ? (e.consume(x), D) : n(x);
5443
5443
  }
5444
5444
  function B(x) {
5445
- return x === 45 && i === 2 ? (e.consume(x), A) : x === 60 && i === 1 ? (e.consume(x), j) : x === 62 && i === 4 ? (e.consume(x), W) : x === 63 && i === 3 ? (e.consume(x), m) : x === 93 && i === 5 ? (e.consume(x), H) : K(x) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
5445
+ return x === 45 && i === 2 ? (e.consume(x), A) : x === 60 && i === 1 ? (e.consume(x), j) : x === 62 && i === 4 ? (e.consume(x), W) : x === 63 && i === 3 ? (e.consume(x), m) : x === 93 && i === 5 ? (e.consume(x), H) : Y(x) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
5446
5446
  qf,
5447
5447
  J,
5448
5448
  O
5449
- )(x)) : x === null || K(x) ? (e.exit("htmlFlowData"), O(x)) : (e.consume(x), B);
5449
+ )(x)) : x === null || Y(x) ? (e.exit("htmlFlowData"), O(x)) : (e.consume(x), B);
5450
5450
  }
5451
5451
  function O(x) {
5452
5452
  return e.check(
@@ -5459,7 +5459,7 @@ function Vf(e, t, n) {
5459
5459
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), T;
5460
5460
  }
5461
5461
  function T(x) {
5462
- return x === null || K(x) ? O(x) : (e.enter("htmlFlowData"), B(x));
5462
+ return x === null || Y(x) ? O(x) : (e.enter("htmlFlowData"), B(x));
5463
5463
  }
5464
5464
  function A(x) {
5465
5465
  return x === 45 ? (e.consume(x), m) : B(x);
@@ -5481,7 +5481,7 @@ function Vf(e, t, n) {
5481
5481
  return x === 62 ? (e.consume(x), W) : x === 45 && i === 2 ? (e.consume(x), m) : B(x);
5482
5482
  }
5483
5483
  function W(x) {
5484
- return x === null || K(x) ? (e.exit("htmlFlowData"), J(x)) : (e.consume(x), W);
5484
+ return x === null || Y(x) ? (e.exit("htmlFlowData"), J(x)) : (e.consume(x), W);
5485
5485
  }
5486
5486
  function J(x) {
5487
5487
  return e.exit("htmlFlow"), t(x);
@@ -5491,7 +5491,7 @@ function Wf(e, t, n) {
5491
5491
  const r = this;
5492
5492
  return i;
5493
5493
  function i(o) {
5494
- return K(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
5494
+ return Y(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
5495
5495
  }
5496
5496
  function a(o) {
5497
5497
  return r.parser.lazy[r.now().line] ? n(o) : t(o);
@@ -5524,7 +5524,7 @@ function Zf(e, t, n) {
5524
5524
  return m === 45 ? (e.consume(m), d) : n(m);
5525
5525
  }
5526
5526
  function f(m) {
5527
- return m === null ? n(m) : m === 45 ? (e.consume(m), p) : K(m) ? (o = f, j(m)) : (e.consume(m), f);
5527
+ return m === null ? n(m) : m === 45 ? (e.consume(m), p) : Y(m) ? (o = f, j(m)) : (e.consume(m), f);
5528
5528
  }
5529
5529
  function p(m) {
5530
5530
  return m === 45 ? (e.consume(m), d) : f(m);
@@ -5537,7 +5537,7 @@ function Zf(e, t, n) {
5537
5537
  return m === W.charCodeAt(a++) ? (e.consume(m), a === W.length ? h : y) : n(m);
5538
5538
  }
5539
5539
  function h(m) {
5540
- return m === null ? n(m) : m === 93 ? (e.consume(m), w) : K(m) ? (o = h, j(m)) : (e.consume(m), h);
5540
+ return m === null ? n(m) : m === 93 ? (e.consume(m), w) : Y(m) ? (o = h, j(m)) : (e.consume(m), h);
5541
5541
  }
5542
5542
  function w(m) {
5543
5543
  return m === 93 ? (e.consume(m), g) : h(m);
@@ -5546,10 +5546,10 @@ function Zf(e, t, n) {
5546
5546
  return m === 62 ? A(m) : m === 93 ? (e.consume(m), g) : h(m);
5547
5547
  }
5548
5548
  function P(m) {
5549
- return m === null || m === 62 ? A(m) : K(m) ? (o = P, j(m)) : (e.consume(m), P);
5549
+ return m === null || m === 62 ? A(m) : Y(m) ? (o = P, j(m)) : (e.consume(m), P);
5550
5550
  }
5551
5551
  function F(m) {
5552
- return m === null ? n(m) : m === 63 ? (e.consume(m), q) : K(m) ? (o = F, j(m)) : (e.consume(m), F);
5552
+ return m === null ? n(m) : m === 63 ? (e.consume(m), q) : Y(m) ? (o = F, j(m)) : (e.consume(m), F);
5553
5553
  }
5554
5554
  function q(m) {
5555
5555
  return m === 62 ? A(m) : F(m);
@@ -5561,25 +5561,25 @@ function Zf(e, t, n) {
5561
5561
  return m === 45 || Be(m) ? (e.consume(m), b) : E(m);
5562
5562
  }
5563
5563
  function E(m) {
5564
- return K(m) ? (o = E, j(m)) : se(m) ? (e.consume(m), E) : A(m);
5564
+ return Y(m) ? (o = E, j(m)) : se(m) ? (e.consume(m), E) : A(m);
5565
5565
  }
5566
5566
  function z(m) {
5567
5567
  return m === 45 || Be(m) ? (e.consume(m), z) : m === 47 || m === 62 || Le(m) ? N(m) : n(m);
5568
5568
  }
5569
5569
  function N(m) {
5570
- return m === 47 ? (e.consume(m), A) : m === 58 || m === 95 || Je(m) ? (e.consume(m), $) : K(m) ? (o = N, j(m)) : se(m) ? (e.consume(m), N) : A(m);
5570
+ return m === 47 ? (e.consume(m), A) : m === 58 || m === 95 || Je(m) ? (e.consume(m), $) : Y(m) ? (o = N, j(m)) : se(m) ? (e.consume(m), N) : A(m);
5571
5571
  }
5572
5572
  function $(m) {
5573
5573
  return m === 45 || m === 46 || m === 58 || m === 95 || Be(m) ? (e.consume(m), $) : D(m);
5574
5574
  }
5575
5575
  function D(m) {
5576
- return m === 61 ? (e.consume(m), B) : K(m) ? (o = D, j(m)) : se(m) ? (e.consume(m), D) : N(m);
5576
+ return m === 61 ? (e.consume(m), B) : Y(m) ? (o = D, j(m)) : se(m) ? (e.consume(m), D) : N(m);
5577
5577
  }
5578
5578
  function B(m) {
5579
- return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, O) : K(m) ? (o = B, j(m)) : se(m) ? (e.consume(m), B) : (e.consume(m), S);
5579
+ return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, O) : Y(m) ? (o = B, j(m)) : se(m) ? (e.consume(m), B) : (e.consume(m), S);
5580
5580
  }
5581
5581
  function O(m) {
5582
- return m === i ? (e.consume(m), i = void 0, T) : m === null ? n(m) : K(m) ? (o = O, j(m)) : (e.consume(m), O);
5582
+ return m === i ? (e.consume(m), i = void 0, T) : m === null ? n(m) : Y(m) ? (o = O, j(m)) : (e.consume(m), O);
5583
5583
  }
5584
5584
  function S(m) {
5585
5585
  return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || Le(m) ? N(m) : (e.consume(m), S);
@@ -5610,9 +5610,9 @@ const ri = {
5610
5610
  tokenize: td,
5611
5611
  resolveTo: ed,
5612
5612
  resolveAll: Qf
5613
- }, Yf = {
5614
- tokenize: nd
5615
5613
  }, Kf = {
5614
+ tokenize: nd
5615
+ }, Yf = {
5616
5616
  tokenize: rd
5617
5617
  }, Jf = {
5618
5618
  tokenize: id
@@ -5689,11 +5689,11 @@ function td(e, t, n) {
5689
5689
  }
5690
5690
  function s(p) {
5691
5691
  return p === 40 ? e.attempt(
5692
- Yf,
5692
+ Kf,
5693
5693
  c,
5694
5694
  o ? c : f
5695
5695
  )(p) : p === 91 ? e.attempt(
5696
- Kf,
5696
+ Yf,
5697
5697
  c,
5698
5698
  o ? u : f
5699
5699
  )(p) : o ? c(p) : f(p);
@@ -5721,7 +5721,7 @@ function nd(e, t, n) {
5721
5721
  return Le(f) ? Jt(e, a)(f) : a(f);
5722
5722
  }
5723
5723
  function a(f) {
5724
- return f === 41 ? c(f) : Ko(
5724
+ return f === 41 ? c(f) : Yo(
5725
5725
  e,
5726
5726
  o,
5727
5727
  l,
@@ -5847,7 +5847,7 @@ function cd(e, t, n) {
5847
5847
  return i = u, l(u);
5848
5848
  }
5849
5849
  function l(u) {
5850
- return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || K(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
5850
+ return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || Y(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
5851
5851
  }
5852
5852
  function s(u) {
5853
5853
  return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), se(u) ? ge(e, l, "whitespace")(u) : l(u));
@@ -6003,7 +6003,7 @@ function vd(e, t, n) {
6003
6003
  return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), se(u) ? ge(e, s, "lineSuffix")(u) : s(u));
6004
6004
  }
6005
6005
  function s(u) {
6006
- return u === null || K(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
6006
+ return u === null || Y(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
6007
6007
  }
6008
6008
  }
6009
6009
  const xd = {
@@ -6212,7 +6212,7 @@ function Ed(e, t, n) {
6212
6212
  c = c(D);
6213
6213
  }
6214
6214
  function P(D) {
6215
- K(D) ? (r.line++, r.column = 1, r.offset += D === -3 ? 2 : 1, $()) : D !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = D;
6215
+ Y(D) ? (r.line++, r.column = 1, r.offset += D === -3 ? 2 : 1, $()) : D !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = D;
6216
6216
  }
6217
6217
  function F(D, B) {
6218
6218
  const O = B || {};
@@ -6473,7 +6473,7 @@ function Hd() {
6473
6473
  }
6474
6474
  }
6475
6475
  function zd(e) {
6476
- for (; !Yo(e); )
6476
+ for (; !Ko(e); )
6477
6477
  ;
6478
6478
  return e;
6479
6479
  }
@@ -6549,9 +6549,9 @@ function Wd(e) {
6549
6549
  emphasis: l(_t),
6550
6550
  hardBreakEscape: l(ht),
6551
6551
  hardBreakTrailing: l(ht),
6552
- htmlFlow: l(Y, s),
6552
+ htmlFlow: l(K, s),
6553
6553
  htmlFlowData: D,
6554
- htmlText: l(Y, s),
6554
+ htmlText: l(K, s),
6555
6555
  htmlTextData: D,
6556
6556
  image: l(ae),
6557
6557
  label: s,
@@ -6684,10 +6684,10 @@ function Wd(e) {
6684
6684
  return U;
6685
6685
  }
6686
6686
  function i(M, U, X) {
6687
- let oe = U - 1, ue = -1, Ae = !1, Ze, $e, je, Ye;
6687
+ let oe = U - 1, ue = -1, Ae = !1, Ze, $e, je, Ke;
6688
6688
  for (; ++oe <= X; ) {
6689
6689
  const we = M[oe];
6690
- if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? ue++ : ue--, Ye = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (Ze && !Ye && !ue && !je && (je = oe), Ye = void 0) : we[1].type === "linePrefix" || we[1].type === "listItemValue" || we[1].type === "listItemMarker" || we[1].type === "listItemPrefix" || we[1].type === "listItemPrefixWhitespace" || (Ye = void 0), !ue && we[0] === "enter" && we[1].type === "listItemPrefix" || ue === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
6690
+ if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? ue++ : ue--, Ke = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (Ze && !Ke && !ue && !je && (je = oe), Ke = void 0) : we[1].type === "linePrefix" || we[1].type === "listItemValue" || we[1].type === "listItemMarker" || we[1].type === "listItemPrefix" || we[1].type === "listItemPrefixWhitespace" || (Ke = void 0), !ue && we[0] === "enter" && we[1].type === "listItemPrefix" || ue === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
6691
6691
  if (Ze) {
6692
6692
  let Tt = oe;
6693
6693
  for ($e = void 0; Tt--; ) {
@@ -6708,7 +6708,7 @@ function Wd(e) {
6708
6708
  start: Object.assign({}, we[1].start),
6709
6709
  // @ts-expect-error: we’ll add `end` in a second.
6710
6710
  end: void 0
6711
- }, M.splice(oe, 0, ["enter", Ze, we[2]]), oe++, X++, je = void 0, Ye = !0);
6711
+ }, M.splice(oe, 0, ["enter", Ze, we[2]]), oe++, X++, je = void 0, Ke = !0);
6712
6712
  }
6713
6713
  }
6714
6714
  return M[U][1]._spread = Ae, X;
@@ -6747,7 +6747,7 @@ function Wd(e) {
6747
6747
  if (oe)
6748
6748
  oe[0].type !== M.type && (U ? U.call(this, M, oe[0]) : (oe[1] || Ta).call(this, M, oe[0]));
6749
6749
  else throw new Error(
6750
- "Cannot close `" + M.type + "` (" + Kt({
6750
+ "Cannot close `" + M.type + "` (" + Yt({
6751
6751
  start: M.start,
6752
6752
  end: M.end
6753
6753
  }) + "): it’s not open"
@@ -6971,7 +6971,7 @@ function Wd(e) {
6971
6971
  type: "break"
6972
6972
  };
6973
6973
  }
6974
- function Y() {
6974
+ function K() {
6975
6975
  return {
6976
6976
  type: "html",
6977
6977
  value: ""
@@ -7066,15 +7066,15 @@ function Gd(e, t) {
7066
7066
  }
7067
7067
  function Ta(e, t) {
7068
7068
  throw e ? new Error(
7069
- "Cannot close `" + e.type + "` (" + Kt({
7069
+ "Cannot close `" + e.type + "` (" + Yt({
7070
7070
  start: e.start,
7071
7071
  end: e.end
7072
- }) + "): a different token (`" + t.type + "`, " + Kt({
7072
+ }) + "): a different token (`" + t.type + "`, " + Yt({
7073
7073
  start: t.start,
7074
7074
  end: t.end
7075
7075
  }) + ") is open"
7076
7076
  ) : new Error(
7077
- "Cannot close document, a token (`" + t.type + "`, " + Kt({
7077
+ "Cannot close document, a token (`" + t.type + "`, " + Yt({
7078
7078
  start: t.start,
7079
7079
  end: t.end
7080
7080
  }) + ") is still open"
@@ -7107,12 +7107,12 @@ function Zd(e, t) {
7107
7107
  };
7108
7108
  return e.patch(t, n), e.applyData(t, n);
7109
7109
  }
7110
- function Yd(e, t) {
7110
+ function Kd(e, t) {
7111
7111
  const n = { type: "element", tagName: "br", properties: {}, children: [] };
7112
7112
  return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
7113
7113
  ` }];
7114
7114
  }
7115
- function Kd(e, t) {
7115
+ function Yd(e, t) {
7116
7116
  const n = t.value ? t.value + `
7117
7117
  ` : "", r = t.lang ? t.lang.match(/^[^ \t]+(?=[ \t]|$)/) : null, i = {};
7118
7118
  r && (i.className = ["language-" + r]);
@@ -7472,8 +7472,8 @@ function xp(e, t) {
7472
7472
  }
7473
7473
  const wp = {
7474
7474
  blockquote: Zd,
7475
- break: Yd,
7476
- code: Kd,
7475
+ break: Kd,
7476
+ code: Yd,
7477
7477
  delete: Jd,
7478
7478
  emphasis: Qd,
7479
7479
  footnoteReference: al,
@@ -8997,7 +8997,7 @@ const Da = {
8997
8997
  xLinkTitle: "xlinkTitle",
8998
8998
  xLinkType: "xlinkType",
8999
8999
  xmlnsXLink: "xmlnsXlink"
9000
- }, Yp = dl([ml, hl, bl, vl, Up], "html"), Kp = dl([ml, hl, bl, vl, $p], "svg");
9000
+ }, Kp = dl([ml, hl, bl, vl, Up], "html"), Yp = dl([ml, hl, bl, vl, $p], "svg");
9001
9001
  function Jp(e) {
9002
9002
  if (e.allowedElements && e.disallowedElements)
9003
9003
  throw new TypeError(
@@ -9236,7 +9236,7 @@ function xl(e, t) {
9236
9236
  function fh(e, t, n, r) {
9237
9237
  const i = e.options, a = i.transformLinkUri === void 0 ? xc : i.transformLinkUri, o = e.schema, l = t.tagName, s = {};
9238
9238
  let u = o, c;
9239
- if (o.space === "html" && l === "svg" && (u = Kp, e.schema = u), t.properties)
9239
+ if (o.space === "html" && l === "svg" && (u = Yp, e.schema = u), t.properties)
9240
9240
  for (c in t.properties)
9241
9241
  qr.call(t.properties, c) && ph(s, c, t.properties[c], e);
9242
9242
  (l === "ol" || l === "ul") && e.listDepth++;
@@ -9359,7 +9359,7 @@ function ui(e) {
9359
9359
  let i = Ge.createElement(
9360
9360
  Ge.Fragment,
9361
9361
  {},
9362
- xl({ options: e, schema: Yp, listDepth: 0 }, r)
9362
+ xl({ options: e, schema: Kp, listDepth: 0 }, r)
9363
9363
  );
9364
9364
  return e.className && (i = Ge.createElement("div", { className: e.className }, i)), i;
9365
9365
  }
@@ -10505,10 +10505,10 @@ function Oh() {
10505
10505
  };
10506
10506
  return At.attachListeners = u, At;
10507
10507
  }
10508
- var Ft = {}, Ya;
10508
+ var Ft = {}, Ka;
10509
10509
  function Ih() {
10510
- if (Ya) return Ft;
10511
- Ya = 1;
10510
+ if (Ka) return Ft;
10511
+ Ka = 1;
10512
10512
  var e = Ft.__assign || function() {
10513
10513
  return e = Object.assign || function(f) {
10514
10514
  for (var p, d = 1, y = arguments.length; d < y; d++) {
@@ -10564,10 +10564,10 @@ function Ih() {
10564
10564
  };
10565
10565
  return Ft.attachSharedListeners = c, Ft;
10566
10566
  }
10567
- var Ka;
10567
+ var Ya;
10568
10568
  function Ph() {
10569
- if (Ka) return Wt;
10570
- Ka = 1, Object.defineProperty(Wt, "__esModule", { value: !0 }), Wt.createOrJoinSocket = void 0;
10569
+ if (Ya) return Wt;
10570
+ Ya = 1, Object.defineProperty(Wt, "__esModule", { value: !0 }), Wt.createOrJoinSocket = void 0;
10571
10571
  var e = pi(), t = nt(), n = Oh(), r = Ih(), i = mi(), a = function(l, s, u, c, f) {
10572
10572
  return function() {
10573
10573
  if ((0, i.removeSubscriber)(l, s), !(0, i.hasSubscribers)(l)) {
@@ -11564,10 +11564,10 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11564
11564
  }
11565
11565
  var a = Xh(i, t.form);
11566
11566
  return !a || a === t;
11567
- }, Yh = function(t) {
11568
- return Ll(t) && t.type === "radio";
11569
11567
  }, Kh = function(t) {
11570
- return Yh(t) && !Zh(t);
11568
+ return Ll(t) && t.type === "radio";
11569
+ }, Yh = function(t) {
11570
+ return Kh(t) && !Zh(t);
11571
11571
  }, Jh = function(t) {
11572
11572
  var n, r = t && On(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, a = !1;
11573
11573
  if (r && r !== t) {
@@ -11626,7 +11626,7 @@ var Ol = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
11626
11626
  In(n) || Wh(n) || Qh(n, t) || // For a details element with a summary, the summary element gets the focus
11627
11627
  Gh(n) || e0(n));
11628
11628
  }, Ur = function(t, n) {
11629
- return !(Kh(n) || ut(n) < 0 || !Pn(t, n));
11629
+ return !(Yh(n) || ut(n) < 0 || !Pn(t, n));
11630
11630
  }, t0 = function(t) {
11631
11631
  var n = parseInt(t.getAttribute("tabindex"), 10);
11632
11632
  return !!(isNaN(n) || n >= 0);
@@ -13095,12 +13095,12 @@ function _i({ submitEventExternal: e }) {
13095
13095
  z
13096
13096
  );
13097
13097
  const j = ct(
13098
- ({ name: Y, payload: ae }) => {
13098
+ ({ name: K, payload: ae }) => {
13099
13099
  if (!n || !(o != null && o.enabled)) return;
13100
13100
  const ye = Vr(o == null ? void 0 : o.payloadParams, ae);
13101
- e ? e({ name: Y, payload: ye }) : T.current.track(
13101
+ e ? e({ name: K, payload: ye }) : T.current.track(
13102
13102
  // TODO: this is untestable - create a custom hook to get submit event function.
13103
- Y,
13103
+ K,
13104
13104
  ye
13105
13105
  );
13106
13106
  },
@@ -13113,9 +13113,9 @@ function _i({ submitEventExternal: e }) {
13113
13113
  ), R = ct(async () => {
13114
13114
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && t != null && t.baseUrl)
13115
13115
  try {
13116
- let Y = po(s);
13116
+ let K = po(s);
13117
13117
  const ae = await fetch(
13118
- `${t.baseUrl}/xpert/v2/history?conversation_id=${Y}`,
13118
+ `${t.baseUrl}/xpert/v2/history?conversation_id=${K}`,
13119
13119
  {
13120
13120
  method: "GET",
13121
13121
  headers: {
@@ -13132,8 +13132,8 @@ function _i({ submitEventExternal: e }) {
13132
13132
  disableFeedback: !0
13133
13133
  }))
13134
13134
  ), y(!0), w(!0);
13135
- } catch (Y) {
13136
- console.error(Y);
13135
+ } catch (K) {
13136
+ console.error(K);
13137
13137
  } finally {
13138
13138
  P(!1);
13139
13139
  }
@@ -13150,15 +13150,15 @@ function _i({ submitEventExternal: e }) {
13150
13150
  }, [R]), j0(
13151
13151
  () => r.conversationHistory.enabled && R()
13152
13152
  ), Ce(() => {
13153
- let Y, ae;
13153
+ let K, ae;
13154
13154
  if (n)
13155
- return o != null && o.enabled && (Y = setInterval(() => {
13155
+ return o != null && o.enabled && (K = setInterval(() => {
13156
13156
  var ke;
13157
- console.log("Chatbot - Finding Segment"), ((ke = window.analytics) != null && ke.track || e) && (console.log("Chatbot - Segment found"), T.current = window.analytics, clearInterval(Y), clearTimeout(ae), F(!0));
13157
+ console.log("Chatbot - Finding Segment"), ((ke = window.analytics) != null && ke.track || e) && (console.log("Chatbot - Segment found"), T.current = window.analytics, clearInterval(K), clearTimeout(ae), F(!0));
13158
13158
  }, 1e3), ae = setTimeout(() => {
13159
- clearInterval(Y);
13159
+ clearInterval(K);
13160
13160
  }, 6e4)), () => {
13161
- clearInterval(Y), clearTimeout(ae);
13161
+ clearInterval(K), clearTimeout(ae);
13162
13162
  };
13163
13163
  }, [
13164
13164
  n,
@@ -13166,29 +13166,29 @@ function _i({ submitEventExternal: e }) {
13166
13166
  o == null ? void 0 : o.enabled,
13167
13167
  o == null ? void 0 : o.prefix
13168
13168
  ]), Ce(() => {
13169
- let Y, ae;
13169
+ let K, ae;
13170
13170
  const ye = () => {
13171
- l != null && l.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(Y), clearTimeout(ae), q(!0)));
13171
+ l != null && l.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(K), clearTimeout(ae), q(!0)));
13172
13172
  };
13173
13173
  if (n)
13174
- return Y = setInterval(ye, 1e3), ae = setTimeout(() => {
13175
- clearInterval(Y);
13174
+ return K = setInterval(ye, 1e3), ae = setTimeout(() => {
13175
+ clearInterval(K);
13176
13176
  }, 6e4), () => {
13177
- clearInterval(Y), clearTimeout(ae);
13177
+ clearInterval(K), clearTimeout(ae);
13178
13178
  };
13179
13179
  }, [
13180
13180
  n,
13181
13181
  l == null ? void 0 : l.enabled,
13182
13182
  l == null ? void 0 : l.experimentName
13183
13183
  ]);
13184
- const H = (Y) => {
13184
+ const H = (K) => {
13185
13185
  var ae, ye;
13186
- (ae = Y == null ? void 0 : Y.target) != null && ae.href && j({
13186
+ (ae = K == null ? void 0 : K.target) != null && ae.href && j({
13187
13187
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
13188
13188
  payload: {
13189
13189
  category: "2u",
13190
13190
  label: "xpert-chatbot",
13191
- link: (ye = Y == null ? void 0 : Y.target) == null ? void 0 : ye.href,
13191
+ link: (ye = K == null ? void 0 : K.target) == null ? void 0 : ye.href,
13192
13192
  isTestUser: A
13193
13193
  }
13194
13194
  });
@@ -13204,20 +13204,20 @@ function _i({ submitEventExternal: e }) {
13204
13204
  return console.log(`Chatbot - Segment not setup: ${s}`), null;
13205
13205
  const W = () => {
13206
13206
  $(""), S.current.value = "", S.current.style.height = "auto";
13207
- }, J = (Y, ae) => {
13207
+ }, J = (K, ae) => {
13208
13208
  j({
13209
13209
  name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
13210
13210
  payload: {
13211
13211
  category: "2u",
13212
13212
  label: "xpert-chatbot",
13213
- linkCount: M0(Y),
13214
- apiResponseMessage: Y,
13213
+ linkCount: M0(K),
13214
+ apiResponseMessage: K,
13215
13215
  isTestUser: A,
13216
13216
  conversationHistoryId: ae
13217
13217
  }
13218
13218
  });
13219
13219
  }, x = ({
13220
- conversationSize: Y,
13220
+ conversationSize: K,
13221
13221
  userInputMessage: ae,
13222
13222
  apiResponseMessage: ye,
13223
13223
  elapsedSeconds: ke,
@@ -13229,16 +13229,16 @@ function _i({ submitEventExternal: e }) {
13229
13229
  category: "2u",
13230
13230
  label: "xpert-chatbot",
13231
13231
  isTestUser: A,
13232
- conversationSize: Y,
13232
+ conversationSize: K,
13233
13233
  userInputMessage: ae,
13234
13234
  apiResponseMessage: ye,
13235
13235
  elapsedSeconds: ke,
13236
13236
  conversationByteSize: Ne
13237
13237
  }
13238
13238
  });
13239
- }, Z = async (Y) => {
13239
+ }, Z = async (K) => {
13240
13240
  try {
13241
- if (Y.trim().length === 0)
13241
+ if (K.trim().length === 0)
13242
13242
  return;
13243
13243
  const ae = /* @__PURE__ */ new Date();
13244
13244
  w(!1), h(!1);
@@ -13249,20 +13249,20 @@ function _i({ submitEventExternal: e }) {
13249
13249
  category: "2u",
13250
13250
  label: "xpert-chatbot",
13251
13251
  totalUserInputMessagesSent: ye,
13252
- userInputMessage: Y,
13252
+ userInputMessage: K,
13253
13253
  isTestUser: A
13254
13254
  }
13255
13255
  }), W();
13256
13256
  let ke = null;
13257
13257
  r.conversationHistory.enabled && (ke = po(s)), u({
13258
13258
  role: "user",
13259
- content: Y
13259
+ content: K
13260
13260
  }), P(!0);
13261
13261
  const Ne = [
13262
13262
  ...f,
13263
13263
  {
13264
13264
  role: "user",
13265
- content: Y
13265
+ content: K
13266
13266
  }
13267
13267
  ].map((U) => ({
13268
13268
  role: U.role,
@@ -13288,7 +13288,7 @@ function _i({ submitEventExternal: e }) {
13288
13288
  x({
13289
13289
  conversationByteSize: R0(JSON.stringify(Ne)),
13290
13290
  conversationSize: f.length + 2,
13291
- userInputMessage: Y,
13291
+ userInputMessage: K,
13292
13292
  apiResponseMessage: lt,
13293
13293
  elapsedSeconds: D0(ae, Bt)
13294
13294
  }), u({
@@ -13309,15 +13309,15 @@ function _i({ submitEventExternal: e }) {
13309
13309
  isTestUser: A
13310
13310
  }
13311
13311
  });
13312
- }, ne = (Y) => {
13312
+ }, ne = (K) => {
13313
13313
  j({
13314
- name: `${o.prefix}.bi.xpert.chatbot.${Y ? "normal" : "expand"}.size.button.clicked`,
13314
+ name: `${o.prefix}.bi.xpert.chatbot.${K ? "normal" : "expand"}.size.button.clicked`,
13315
13315
  payload: {
13316
13316
  category: "2u",
13317
13317
  label: "xpert-chatbot",
13318
13318
  isTestUser: A
13319
13319
  }
13320
- }), g(Y);
13320
+ }), g(K);
13321
13321
  }, fe = () => {
13322
13322
  b(!0), j({
13323
13323
  name: `${o.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
@@ -13345,17 +13345,17 @@ function _i({ submitEventExternal: e }) {
13345
13345
  isTestUser: A
13346
13346
  }
13347
13347
  });
13348
- }, pe = (Y) => {
13349
- $(Y.target.value);
13350
- }, Ee = (Y, ae = "") => {
13351
- const ye = f.map((ke, Ne) => Y === Ne ? (j({
13348
+ }, pe = (K) => {
13349
+ $(K.target.value);
13350
+ }, Ee = (K, ae = "") => {
13351
+ const ye = f.map((ke, Ne) => K === Ne ? (j({
13352
13352
  name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${ae.toLowerCase()}.clicked`,
13353
13353
  payload: {
13354
13354
  category: "2u",
13355
13355
  label: "xpert-chatbot",
13356
- userInputMessage: f[Y - 1],
13357
- apiResponseMessageIndex: Y,
13358
- apiResponseMessage: f[Y],
13356
+ userInputMessage: f[K - 1],
13357
+ apiResponseMessageIndex: K,
13358
+ apiResponseMessage: f[K],
13359
13359
  isTestUser: A
13360
13360
  }
13361
13361
  }), {
@@ -13479,7 +13479,21 @@ Ml.propTypes = {
13479
13479
  id: k.string,
13480
13480
  xpertKey: k.string
13481
13481
  };
13482
- function $0({
13482
+ function $0(e) {
13483
+ e && Object.defineProperty(document, "cookie", {
13484
+ configurable: !0,
13485
+ get: function() {
13486
+ return "";
13487
+ },
13488
+ set: function(t) {
13489
+ }
13490
+ });
13491
+ }
13492
+ const V0 = ["retool.prod.2u.com", "retool.stg.2u.com"], W0 = V0.includes(
13493
+ window.location.hostname
13494
+ );
13495
+ $0(W0);
13496
+ function G0({
13483
13497
  clientId: e,
13484
13498
  configurations: t = {},
13485
13499
  submitEventExternal: n,
@@ -13495,12 +13509,12 @@ function $0({
13495
13509
  }
13496
13510
  );
13497
13511
  }
13498
- $0.propTypes = {
13512
+ G0.propTypes = {
13499
13513
  clientId: k.string,
13500
13514
  configurations: k.object,
13501
13515
  submitEventExternal: k.func,
13502
13516
  xpertKey: k.string
13503
13517
  };
13504
13518
  export {
13505
- $0 as Chatbot
13519
+ G0 as Chatbot
13506
13520
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.26.1",
3
+ "version": "1.27.0-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"