@2uinc/frontend-component-xpert-chatbot 1.31.1-beta.2 → 1.32.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 +1061 -1069
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import Ge, { createContext as Pn, useState as ee, useCallback as Ct, useEffect as ke, useContext as Q, useRef as ze, forwardRef as io, createElement as kr, useMemo as Es, Fragment as Ts } from "react";
1
+ import Xe, { createContext as In, useState as te, useCallback as Ct, useEffect as Ce, useContext as ee, useRef as Ue, forwardRef as io, createElement as kr, useMemo as Es, Fragment as Ts } from "react";
2
2
  import Os from "react-dom";
3
3
  var cn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function nt(e) {
@@ -29,10 +29,10 @@ object-assign
29
29
  (c) Sindre Sorhus
30
30
  @license MIT
31
31
  */
32
- var Xn, Ii;
33
- function Ps() {
34
- if (Ii) return Xn;
35
- Ii = 1;
32
+ var Xn, Pi;
33
+ function Is() {
34
+ if (Pi) return Xn;
35
+ Pi = 1;
36
36
  var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
37
37
  function r(a) {
38
38
  if (a == null)
@@ -84,10 +84,10 @@ function Ps() {
84
84
  * LICENSE file in the root directory of this source tree.
85
85
  */
86
86
  var Ai;
87
- function Is() {
87
+ function Ps() {
88
88
  if (Ai) return Nt;
89
- Ai = 1, Ps();
90
- var e = Ge, t = 60103;
89
+ Ai = 1, Is();
90
+ var e = Xe, t = 60103;
91
91
  if (Nt.Fragment = 60107, typeof Symbol == "function" && Symbol.for) {
92
92
  var n = Symbol.for;
93
93
  t = n("react.element"), Nt.Fragment = n("react.fragment");
@@ -104,7 +104,7 @@ function Is() {
104
104
  }
105
105
  var Fi;
106
106
  function As() {
107
- return Fi || (Fi = 1, Gn.exports = Is()), Gn.exports;
107
+ return Fi || (Fi = 1, Gn.exports = Ps()), Gn.exports;
108
108
  }
109
109
  var k = As();
110
110
  /*! js-cookie v3.0.5 | MIT */
@@ -177,7 +177,7 @@ function Sr(e, t) {
177
177
  }
178
178
  );
179
179
  }
180
- var Re = Sr(Fs, { path: "/" }), Zn = { exports: {} }, Yn, Ni;
180
+ var Be = Sr(Fs, { path: "/" }), Zn = { exports: {} }, Yn, Ni;
181
181
  function Ns() {
182
182
  if (Ni) return Yn;
183
183
  Ni = 1;
@@ -243,16 +243,16 @@ Zt.exports;
243
243
  var Mi;
244
244
  function Ms() {
245
245
  return Mi || (Mi = 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]", v = "[object Number]", g = "[object Null]", I = "[object Object]", A = "[object Proxy]", q = "[object RegExp]", P = "[object Set]", b = "[object String]", E = "[object Undefined]", z = "[object WeakMap]", F = "[object ArrayBuffer]", U = "[object DataView]", M = "[object Float32Array]", B = "[object Float64Array]", T = "[object Int8Array]", S = "[object Int16Array]", O = "[object Int32Array]", N = "[object Uint8Array]", H = "[object Uint8ClampedArray]", j = "[object Uint16Array]", D = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, w = {};
247
- w[M] = w[B] = w[T] = w[S] = w[O] = w[N] = w[H] = w[j] = w[D] = !0, w[l] = w[s] = w[F] = w[c] = w[U] = w[d] = w[p] = w[f] = w[h] = w[v] = w[I] = w[q] = w[P] = w[b] = w[z] = !1;
248
- var K = typeof cn == "object" && cn && cn.Object === Object && cn, oe = typeof self == "object" && self && self.Object === Object && self, ne = K || oe || Function("return this")(), de = t && !t.nodeType && t, pe = de && !0 && e && !e.nodeType && e, xe = pe && pe.exports === de, he = xe && K.process, Te = function() {
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]", v = "[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]", U = "[object DataView]", M = "[object Float32Array]", B = "[object Float64Array]", T = "[object Int8Array]", S = "[object Int16Array]", O = "[object Int32Array]", N = "[object Uint8Array]", H = "[object Uint8ClampedArray]", j = "[object Uint16Array]", D = "[object Uint32Array]", m = /[\\^$.*+?()[\]{}|]/g, W = /^\[object .+?Constructor\]$/, Y = /^(?:0|[1-9]\d*)$/, w = {};
247
+ w[M] = w[B] = w[T] = w[S] = w[O] = w[N] = w[H] = w[j] = w[D] = !0, w[l] = w[s] = w[F] = w[c] = w[U] = w[d] = w[p] = w[f] = w[h] = w[v] = w[P] = w[q] = w[I] = w[b] = w[z] = !1;
248
+ var K = typeof cn == "object" && cn && cn.Object === Object && cn, oe = typeof self == "object" && self && self.Object === Object && self, re = K || oe || Function("return this")(), de = t && !t.nodeType && t, pe = de && !0 && e && !e.nodeType && e, xe = pe && pe.exports === de, he = xe && K.process, Ee = function() {
249
249
  try {
250
250
  var x = pe && pe.require && pe.require("util").types;
251
251
  return x || he && he.binding && he.binding("util");
252
252
  } catch {
253
253
  }
254
- }(), Fe = Te && Te.isTypedArray;
255
- function Xe(x, _, L) {
254
+ }(), Ne = Ee && Ee.isTypedArray;
255
+ function Ze(x, _, L) {
256
256
  switch (L.length) {
257
257
  case 0:
258
258
  return x.call(_);
@@ -283,27 +283,27 @@ function Ms() {
283
283
  return x(_(L));
284
284
  };
285
285
  }
286
- var mt = Array.prototype, Pt = Function.prototype, Ze = Object.prototype, X = ne["__core-js_shared__"], re = Pt.toString, ce = Ze.hasOwnProperty, Ee = function() {
286
+ var mt = Array.prototype, It = Function.prototype, Ye = Object.prototype, X = re["__core-js_shared__"], ie = It.toString, ce = Ye.hasOwnProperty, _e = function() {
287
287
  var x = /[^.]+$/.exec(X && X.keys && X.keys.IE_PROTO || "");
288
288
  return x ? "Symbol(src)_1." + x : "";
289
- }(), Ne = Ze.toString, ct = re.call(Object), R = RegExp(
290
- "^" + re.call(ce).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
- ), V = xe ? ne.Buffer : void 0, Z = ne.Symbol, ae = ne.Uint8Array;
292
- V && V.allocUnsafe;
293
- var le = ht(Object.getPrototypeOf, Object), we = Object.create, Ye = Ze.propertyIsEnumerable, $e = mt.splice, Le = Z ? Z.toStringTag : void 0, Ke = function() {
289
+ }(), Ie = Ye.toString, ct = ie.call(Object), R = RegExp(
290
+ "^" + ie.call(ce).replace(m, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
291
+ ), $ = xe ? re.Buffer : void 0, Z = re.Symbol, J = re.Uint8Array;
292
+ $ && $.allocUnsafe;
293
+ var le = ht(Object.getPrototypeOf, Object), Oe = Object.create, ze = Ye.propertyIsEnumerable, Le = mt.splice, je = Z ? Z.toStringTag : void 0, Ke = function() {
294
294
  try {
295
295
  var x = Bn(Object, "defineProperty");
296
296
  return x({}, "", {}), x;
297
297
  } catch {
298
298
  }
299
- }(), Ce = V ? V.isBuffer : void 0, It = Math.max, Ve = Date.now, vi = Bn(ne, "Map"), Ht = Bn(Object, "create"), El = /* @__PURE__ */ function() {
299
+ }(), we = $ ? $.isBuffer : void 0, Pt = Math.max, We = Date.now, vi = Bn(re, "Map"), Ht = Bn(Object, "create"), El = /* @__PURE__ */ function() {
300
300
  function x() {
301
301
  }
302
302
  return function(_) {
303
303
  if (!yt(_))
304
304
  return {};
305
- if (we)
306
- return we(_);
305
+ if (Oe)
306
+ return Oe(_);
307
307
  x.prototype = _;
308
308
  var L = new x();
309
309
  return x.prototype = void 0, L;
@@ -323,7 +323,7 @@ function Ms() {
323
323
  var _ = this.has(x) && delete this.__data__[x];
324
324
  return this.size -= _ ? 1 : 0, _;
325
325
  }
326
- function Pl(x) {
326
+ function Il(x) {
327
327
  var _ = this.__data__;
328
328
  if (Ht) {
329
329
  var L = _[x];
@@ -331,7 +331,7 @@ function Ms() {
331
331
  }
332
332
  return ce.call(_, x) ? _[x] : void 0;
333
333
  }
334
- function Il(x) {
334
+ function Pl(x) {
335
335
  var _ = this.__data__;
336
336
  return Ht ? _[x] !== void 0 : ce.call(_, x);
337
337
  }
@@ -339,7 +339,7 @@ function Ms() {
339
339
  var L = this.__data__;
340
340
  return this.size += this.has(x) ? 0 : 1, L[x] = Ht && _ === void 0 ? r : _, this;
341
341
  }
342
- gt.prototype.clear = Tl, gt.prototype.delete = Ol, gt.prototype.get = Pl, gt.prototype.has = Il, gt.prototype.set = Al;
342
+ gt.prototype.clear = Tl, gt.prototype.delete = Ol, gt.prototype.get = Il, gt.prototype.has = Pl, gt.prototype.set = Al;
343
343
  function it(x) {
344
344
  var _ = -1, L = x == null ? 0 : x.length;
345
345
  for (this.clear(); ++_ < L; ) {
@@ -355,7 +355,7 @@ function Ms() {
355
355
  if (L < 0)
356
356
  return !1;
357
357
  var G = _.length - 1;
358
- return L == G ? _.pop() : $e.call(_, L, 1), --this.size, !0;
358
+ return L == G ? _.pop() : Le.call(_, L, 1), --this.size, !0;
359
359
  }
360
360
  function Ll(x) {
361
361
  var _ = this.__data__, L = on(_, x);
@@ -427,13 +427,13 @@ function Ms() {
427
427
  }
428
428
  Ft.prototype.clear = ql, Ft.prototype.delete = Ul, Ft.prototype.get = $l, Ft.prototype.has = Vl, Ft.prototype.set = Wl;
429
429
  function Gl(x, _) {
430
- var L = qn(x), G = !L && zn(x), ie = !L && !G && Si(x), me = !L && !G && !ie && Ei(x), be = L || G || ie || me, se = be ? Bt(x.length, String) : [], ve = se.length;
431
- for (var We in x)
430
+ var L = qn(x), G = !L && zn(x), ae = !L && !G && Si(x), me = !L && !G && !ae && Ei(x), be = L || G || ae || me, se = be ? Bt(x.length, String) : [], ve = se.length;
431
+ for (var Ge in x)
432
432
  be && // Safari 9 has enumerable `arguments.length` in strict mode.
433
- (We == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
434
- ie && (We == "offset" || We == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
435
- me && (We == "buffer" || We == "byteLength" || We == "byteOffset") || // Skip index properties.
436
- Ci(We, ve)) || se.push(We);
433
+ (Ge == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
434
+ ae && (Ge == "offset" || Ge == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
435
+ me && (Ge == "buffer" || Ge == "byteLength" || Ge == "byteOffset") || // Skip index properties.
436
+ Ci(Ge, ve)) || se.push(Ge);
437
437
  return se;
438
438
  }
439
439
  function Dn(x, _, L) {
@@ -459,7 +459,7 @@ function Ms() {
459
459
  }
460
460
  var Zl = ss();
461
461
  function ln(x) {
462
- return x == null ? x === void 0 ? E : g : Le && Le in Object(x) ? us(x) : ms(x);
462
+ return x == null ? x === void 0 ? E : g : je && je in Object(x) ? us(x) : ms(x);
463
463
  }
464
464
  function xi(x) {
465
465
  return zt(x) && ln(x) == l;
@@ -481,28 +481,28 @@ function Ms() {
481
481
  G == "constructor" && (_ || !ce.call(x, G)) || L.push(G);
482
482
  return L;
483
483
  }
484
- function wi(x, _, L, G, ie) {
484
+ function wi(x, _, L, G, ae) {
485
485
  x !== _ && Zl(_, function(me, be) {
486
- if (ie || (ie = new Ft()), yt(me))
487
- Ql(x, _, be, L, wi, G, ie);
486
+ if (ae || (ae = new Ft()), yt(me))
487
+ Ql(x, _, be, L, wi, G, ae);
488
488
  else {
489
- var se = G ? G(Hn(x, be), me, be + "", x, _, ie) : void 0;
489
+ var se = G ? G(Hn(x, be), me, be + "", x, _, ae) : void 0;
490
490
  se === void 0 && (se = me), Dn(x, be, se);
491
491
  }
492
492
  }, Ti);
493
493
  }
494
- function Ql(x, _, L, G, ie, me, be) {
495
- var se = Hn(x, L), ve = Hn(_, L), We = be.get(ve);
496
- if (We) {
497
- Dn(x, L, We);
494
+ function Ql(x, _, L, G, ae, me, be) {
495
+ var se = Hn(x, L), ve = Hn(_, L), Ge = be.get(ve);
496
+ if (Ge) {
497
+ Dn(x, L, Ge);
498
498
  return;
499
499
  }
500
- var je = me ? me(se, ve, L + "", x, _, be) : void 0, qt = je === void 0;
500
+ var Me = me ? me(se, ve, L + "", x, _, be) : void 0, qt = Me === void 0;
501
501
  if (qt) {
502
- var Vn = qn(ve), Wn = !Vn && Si(ve), Pi = !Vn && !Wn && Ei(ve);
503
- je = ve, Vn || Wn || Pi ? qn(se) ? je = se : xs(se) ? je = as(se) : Wn ? (qt = !1, je = ns(ve)) : Pi ? (qt = !1, je = is(ve)) : je = [] : ws(ve) || zn(ve) ? (je = se, zn(se) ? je = Cs(se) : (!yt(se) || $n(se)) && (je = cs(ve))) : qt = !1;
502
+ var Vn = qn(ve), Wn = !Vn && Si(ve), Ii = !Vn && !Wn && Ei(ve);
503
+ Me = ve, Vn || Wn || Ii ? qn(se) ? Me = se : xs(se) ? Me = as(se) : Wn ? (qt = !1, Me = ns(ve)) : Ii ? (qt = !1, Me = is(ve)) : Me = [] : ws(ve) || zn(ve) ? (Me = se, zn(se) ? Me = Cs(se) : (!yt(se) || $n(se)) && (Me = cs(ve))) : qt = !1;
504
504
  }
505
- qt && (be.set(ve, je), ie(je, ve, G, me, be), be.delete(ve)), Dn(x, L, je);
505
+ qt && (be.set(ve, Me), ae(Me, ve, G, me, be), be.delete(ve)), Dn(x, L, Me);
506
506
  }
507
507
  function es(x, _) {
508
508
  return ys(gs(x, _, Oi), x + "");
@@ -520,7 +520,7 @@ function Ms() {
520
520
  }
521
521
  function rs(x) {
522
522
  var _ = new x.constructor(x.byteLength);
523
- return new ae(_).set(new ae(x)), _;
523
+ return new J(_).set(new J(x)), _;
524
524
  }
525
525
  function is(x, _) {
526
526
  var L = rs(x.buffer);
@@ -533,18 +533,18 @@ function Ms() {
533
533
  return _;
534
534
  }
535
535
  function os(x, _, L, G) {
536
- var ie = !L;
536
+ var ae = !L;
537
537
  L || (L = {});
538
538
  for (var me = -1, be = _.length; ++me < be; ) {
539
539
  var se = _[me], ve = void 0;
540
- ve === void 0 && (ve = x[se]), ie ? Rn(L, se, ve) : Xl(L, se, ve);
540
+ ve === void 0 && (ve = x[se]), ae ? Rn(L, se, ve) : Xl(L, se, ve);
541
541
  }
542
542
  return L;
543
543
  }
544
544
  function ls(x) {
545
545
  return es(function(_, L) {
546
- var G = -1, ie = L.length, me = ie > 1 ? L[ie - 1] : void 0, be = ie > 2 ? L[2] : void 0;
547
- for (me = x.length > 3 && typeof me == "function" ? (ie--, me) : void 0, be && fs(L[0], L[1], be) && (me = ie < 3 ? void 0 : me, ie = 1), _ = Object(_); ++G < ie; ) {
546
+ var G = -1, ae = L.length, me = ae > 1 ? L[ae - 1] : void 0, be = ae > 2 ? L[2] : void 0;
547
+ for (me = x.length > 3 && typeof me == "function" ? (ae--, me) : void 0, be && fs(L[0], L[1], be) && (me = ae < 3 ? void 0 : me, ae = 1), _ = Object(_); ++G < ae; ) {
548
548
  var se = L[G];
549
549
  se && x(_, se, G, me);
550
550
  }
@@ -553,8 +553,8 @@ function Ms() {
553
553
  }
554
554
  function ss(x) {
555
555
  return function(_, L, G) {
556
- for (var ie = -1, me = Object(_), be = G(_), se = be.length; se--; ) {
557
- var ve = be[++ie];
556
+ for (var ae = -1, me = Object(_), be = G(_), se = be.length; se--; ) {
557
+ var ve = be[++ae];
558
558
  if (L(me[ve], ve, me) === !1)
559
559
  break;
560
560
  }
@@ -570,14 +570,14 @@ function Ms() {
570
570
  return Yl(L) ? L : void 0;
571
571
  }
572
572
  function us(x) {
573
- var _ = ce.call(x, Le), L = x[Le];
573
+ var _ = ce.call(x, je), L = x[je];
574
574
  try {
575
- x[Le] = void 0;
575
+ x[je] = void 0;
576
576
  var G = !0;
577
577
  } catch {
578
578
  }
579
- var ie = Ne.call(x);
580
- return G && (_ ? x[Le] = L : delete x[Le]), ie;
579
+ var ae = Ie.call(x);
580
+ return G && (_ ? x[je] = L : delete x[je]), ae;
581
581
  }
582
582
  function cs(x) {
583
583
  return typeof x.constructor == "function" && !ki(x) ? El(le(x)) : {};
@@ -597,10 +597,10 @@ function Ms() {
597
597
  return _ == "string" || _ == "number" || _ == "symbol" || _ == "boolean" ? x !== "__proto__" : x === null;
598
598
  }
599
599
  function ps(x) {
600
- return !!Ee && Ee in x;
600
+ return !!_e && _e in x;
601
601
  }
602
602
  function ki(x) {
603
- var _ = x && x.constructor, L = typeof _ == "function" && _.prototype || Ze;
603
+ var _ = x && x.constructor, L = typeof _ == "function" && _.prototype || Ye;
604
604
  return x === L;
605
605
  }
606
606
  function hs(x) {
@@ -611,16 +611,16 @@ function Ms() {
611
611
  return _;
612
612
  }
613
613
  function ms(x) {
614
- return Ne.call(x);
614
+ return Ie.call(x);
615
615
  }
616
616
  function gs(x, _, L) {
617
- return _ = It(_ === void 0 ? x.length - 1 : _, 0), function() {
618
- for (var G = arguments, ie = -1, me = It(G.length - _, 0), be = Array(me); ++ie < me; )
619
- be[ie] = G[_ + ie];
620
- ie = -1;
621
- for (var se = Array(_ + 1); ++ie < _; )
622
- se[ie] = G[ie];
623
- return se[_] = L(be), Xe(x, this, se);
617
+ return _ = Pt(_ === void 0 ? x.length - 1 : _, 0), function() {
618
+ for (var G = arguments, ae = -1, me = Pt(G.length - _, 0), be = Array(me); ++ae < me; )
619
+ be[ae] = G[_ + ae];
620
+ ae = -1;
621
+ for (var se = Array(_ + 1); ++ae < _; )
622
+ se[ae] = G[ae];
623
+ return se[_] = L(be), Ze(x, this, se);
624
624
  };
625
625
  }
626
626
  function Hn(x, _) {
@@ -631,8 +631,8 @@ function Ms() {
631
631
  function bs(x) {
632
632
  var _ = 0, L = 0;
633
633
  return function() {
634
- var G = Ve(), ie = a - (G - L);
635
- if (L = G, ie > 0) {
634
+ var G = We(), ae = a - (G - L);
635
+ if (L = G, ae > 0) {
636
636
  if (++_ >= i)
637
637
  return arguments[0];
638
638
  } else
@@ -643,7 +643,7 @@ function Ms() {
643
643
  function vs(x) {
644
644
  if (x != null) {
645
645
  try {
646
- return re.call(x);
646
+ return ie.call(x);
647
647
  } catch {
648
648
  }
649
649
  try {
@@ -659,7 +659,7 @@ function Ms() {
659
659
  var zn = xi(/* @__PURE__ */ function() {
660
660
  return arguments;
661
661
  }()) ? xi : function(x) {
662
- return zt(x) && ce.call(x, "callee") && !Ye.call(x, "callee");
662
+ return zt(x) && ce.call(x, "callee") && !ze.call(x, "callee");
663
663
  }, qn = Array.isArray;
664
664
  function Un(x) {
665
665
  return x != null && _i(x.length) && !$n(x);
@@ -667,7 +667,7 @@ function Ms() {
667
667
  function xs(x) {
668
668
  return zt(x) && Un(x);
669
669
  }
670
- var Si = Ce || _s;
670
+ var Si = we || _s;
671
671
  function $n(x) {
672
672
  if (!yt(x))
673
673
  return !1;
@@ -685,15 +685,15 @@ function Ms() {
685
685
  return x != null && typeof x == "object";
686
686
  }
687
687
  function ws(x) {
688
- if (!zt(x) || ln(x) != I)
688
+ if (!zt(x) || ln(x) != P)
689
689
  return !1;
690
690
  var _ = le(x);
691
691
  if (_ === null)
692
692
  return !0;
693
693
  var L = ce.call(_, "constructor") && _.constructor;
694
- return typeof L == "function" && L instanceof L && re.call(L) == ct;
694
+ return typeof L == "function" && L instanceof L && ie.call(L) == ct;
695
695
  }
696
- var Ei = Fe ? Tt(Fe) : Kl;
696
+ var Ei = Ne ? Tt(Ne) : Kl;
697
697
  function Cs(x) {
698
698
  return os(x, Ti(x));
699
699
  }
@@ -1407,14 +1407,14 @@ const zr = /* @__PURE__ */ nt(Ds), Rs = {
1407
1407
  throw new Error("id or configurations is required");
1408
1408
  const n = Vs[e] || {};
1409
1409
  return zr(n, t);
1410
- }, Se = Pn({}), lo = ({
1410
+ }, ke = In({}), lo = ({
1411
1411
  children: e,
1412
1412
  clientId: t = null,
1413
1413
  configurations: n = null,
1414
1414
  xpertKey: r = null,
1415
1415
  widgetMode: i = !0
1416
1416
  }) => {
1417
- const [a, o] = ee(!1), [l, s] = ee({}), u = Ct(async () => {
1417
+ const [a, o] = te(!1), [l, s] = te({}), u = Ct(async () => {
1418
1418
  if (o(!1), !(!t && !r && (!n || Object.keys(n).length === 0))) {
1419
1419
  if (t)
1420
1420
  try {
@@ -1449,10 +1449,10 @@ const zr = /* @__PURE__ */ nt(Ds), Rs = {
1449
1449
  o(!0);
1450
1450
  }
1451
1451
  }, [t, n, r]);
1452
- return ke(() => {
1452
+ return Ce(() => {
1453
1453
  u();
1454
1454
  }, [u]), /* @__PURE__ */ k.jsx(
1455
- Se.Provider,
1455
+ ke.Provider,
1456
1456
  {
1457
1457
  value: { ...l, configurationLoaded: a, widgetMode: i },
1458
1458
  children: e
@@ -1555,7 +1555,7 @@ lo.propTypes = {
1555
1555
  xpertKey: C.string,
1556
1556
  widgetMode: C.bool
1557
1557
  };
1558
- const St = Pn({}), so = C.shape({
1558
+ const St = In({}), so = C.shape({
1559
1559
  content: C.string.isRequired,
1560
1560
  feedbackThumbType: C.oneOf(["DOWN", "UP"]),
1561
1561
  liveAgent: C.bool,
@@ -1565,6 +1565,7 @@ const St = Pn({}), so = C.shape({
1565
1565
  "error",
1566
1566
  "info",
1567
1567
  "notification",
1568
+ "tool",
1568
1569
  "user"
1569
1570
  ]).isRequired,
1570
1571
  timestamp: C.instanceOf(Date),
@@ -1574,15 +1575,16 @@ const St = Pn({}), so = C.shape({
1574
1575
  name: C.string
1575
1576
  })
1576
1577
  })
1577
- )
1578
- }), In = C.arrayOf(so), uo = ({
1578
+ ),
1579
+ toolCallId: C.number
1580
+ }), Pn = C.arrayOf(so), uo = ({
1579
1581
  children: e,
1580
1582
  conversation: t,
1581
1583
  onFeedbackSelection: n,
1582
1584
  onMessageSent: r
1583
1585
  }) => {
1584
- const { id: i } = Q(Se), [a, o] = ee(null), [l, s] = ee(!1), [u, c] = ee([]), d = Ct(() => {
1585
- o(null), s(!1), c([]), Re.remove(`${i}-conversation-history-id`);
1586
+ const { id: i } = ee(ke), [a, o] = te(null), [l, s] = te(!1), [u, c] = te([]), d = Ct(() => {
1587
+ o(null), s(!1), c([]), Be.remove(`${i}-conversation-history-id`);
1586
1588
  }, [i, o]), f = {
1587
1589
  conversationId: a,
1588
1590
  deleteConversationModal: l,
@@ -1599,15 +1601,15 @@ const St = Pn({}), so = C.shape({
1599
1601
  };
1600
1602
  uo.propTypes = {
1601
1603
  children: C.element.isRequired,
1602
- conversation: In,
1604
+ conversation: Pn,
1603
1605
  onFeedbackSelection: C.func,
1604
1606
  onMessageSent: C.func
1605
1607
  };
1606
1608
  const Di = 991, Gs = () => {
1607
- const [e, t] = ee(
1609
+ const [e, t] = te(
1608
1610
  window.innerWidth < Di
1609
1611
  );
1610
- return ke(() => {
1612
+ return Ce(() => {
1611
1613
  const n = () => {
1612
1614
  t(window.innerWidth < Di);
1613
1615
  };
@@ -1616,8 +1618,8 @@ const Di = 991, Gs = () => {
1616
1618
  }, ut = {
1617
1619
  LIVECHAT: "LIVECHAT",
1618
1620
  XPERT: "XPERT"
1619
- }, Pe = Pn({}), co = ({ children: e }) => {
1620
- const [t, n] = ee(!1), [r, i] = ee(!1), [a, o] = ee(!1), [l, s] = ee(!0), [u, c] = ee(!1), [d, p] = ee(ut.XPERT), f = Gs(), y = {
1621
+ }, Pe = In({}), co = ({ children: e }) => {
1622
+ const [t, n] = te(!1), [r, i] = te(!1), [a, o] = te(!1), [l, s] = te(!0), [u, c] = te(!1), [d, p] = te(ut.XPERT), f = Gs(), y = {
1621
1623
  disabledScroll: t,
1622
1624
  hasError: r,
1623
1625
  hasNewMessage: a,
@@ -1686,7 +1688,7 @@ function An({
1686
1688
  children: i,
1687
1689
  ...a
1688
1690
  }) {
1689
- const { isMobile: o } = Q(Pe);
1691
+ const { isMobile: o } = ee(Pe);
1690
1692
  return /* @__PURE__ */ k.jsx(
1691
1693
  "button",
1692
1694
  {
@@ -1724,31 +1726,31 @@ eyes follow your mouse when you hover near it.`, qr = ({
1724
1726
  handleFloatingActionButtonClick: e
1725
1727
  }) => {
1726
1728
  var f, y, h, v;
1727
- const { id: t, launchButton: n } = Q(Se), { isMobile: r } = Q(Pe), i = !Re.get(
1729
+ const { id: t, launchButton: n } = ee(ke), { isMobile: r } = ee(Pe), i = !Be.get(
1728
1730
  `${t}-proactive-message-xpert-chatbot`
1729
- ), a = ze(null), o = ze(!1), l = i ? (f = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : f.delayMs : ((y = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : y.delayMs) * 2, [s, u] = ee(!1), c = window.matchMedia(
1731
+ ), a = Ue(null), o = Ue(!1), l = i ? (f = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : f.delayMs : ((y = n == null ? void 0 : n.animatedGraduate) == null ? void 0 : y.delayMs) * 2, [s, u] = te(!1), c = window.matchMedia(
1730
1732
  `(max-width: ${Ys}px)`
1731
1733
  ).matches;
1732
- ke(() => {
1733
- const I = setTimeout(
1734
+ Ce(() => {
1735
+ const P = setTimeout(
1734
1736
  () => {
1735
1737
  u(!0);
1736
1738
  },
1737
1739
  l
1738
1740
  );
1739
1741
  return () => {
1740
- clearTimeout(I);
1742
+ clearTimeout(P);
1741
1743
  };
1742
- }, [l]), ke(() => {
1743
- const g = (I) => {
1744
+ }, [l]), Ce(() => {
1745
+ const g = (P) => {
1744
1746
  const A = window.devicePixelRatio > 1.5;
1745
1747
  if (!(o != null && o.current) || c || A)
1746
1748
  return;
1747
1749
  a.current.querySelectorAll(
1748
1750
  ".xpert_chatbot__animated_graduate__pupil"
1749
- ).forEach((P) => {
1750
- const b = P.getBoundingClientRect(), E = (I.pageX - window.scrollX - b.left) / 30 / 16 + "rem", z = (I.pageY - window.scrollY - b.top) / 30 / 16 + "rem";
1751
- P.style.transform = "translate3d(" + E + "," + z + ", 0rem)";
1751
+ ).forEach((I) => {
1752
+ const b = I.getBoundingClientRect(), E = (P.pageX - window.scrollX - b.left) / 30 / 16 + "rem", z = (P.pageY - window.scrollY - b.top) / 30 / 16 + "rem";
1753
+ I.style.transform = "translate3d(" + E + "," + z + ", 0rem)";
1752
1754
  });
1753
1755
  };
1754
1756
  return window.addEventListener("mousemove", g), () => {
@@ -1934,7 +1936,7 @@ const Js = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20hei
1934
1936
  default: Js
1935
1937
  }, Ur = ({ handleFloatingActionButtonClick: e }) => {
1936
1938
  var r, i;
1937
- const { launchButton: t } = Q(Se), { isMobile: n } = Q(Pe);
1939
+ const { launchButton: t } = ee(ke), { isMobile: n } = ee(Pe);
1938
1940
  return /* @__PURE__ */ k.jsx(
1939
1941
  An,
1940
1942
  {
@@ -2270,7 +2272,7 @@ var qi = {
2270
2272
  return typeof t == "function" ? t.apply(void 0, r) : t;
2271
2273
  }, dn = function(t) {
2272
2274
  return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
2273
- }, Ou = [], Pu = function(t, n) {
2275
+ }, Ou = [], Iu = function(t, n) {
2274
2276
  var r = (n == null ? void 0 : n.document) || document, i = (n == null ? void 0 : n.trapStack) || Ou, a = zi({
2275
2277
  returnFocusOnDeactivate: !0,
2276
2278
  escapeDeactivates: !0,
@@ -2460,8 +2462,8 @@ var qi = {
2460
2462
  return S === pe;
2461
2463
  });
2462
2464
  if (K < 0 && (m.container === S || yn(S, a.tabbableOptions) && !wt(S, a.tabbableOptions) && !m.nextTabbableNode(S)) && (K = D), K >= 0) {
2463
- var oe = K === o.tabbableGroups.length - 1 ? 0 : K + 1, ne = o.tabbableGroups[oe];
2464
- j = dt(S) >= 0 ? ne.firstTabbableNode : ne.firstDomTabbableNode;
2465
+ var oe = K === o.tabbableGroups.length - 1 ? 0 : K + 1, re = o.tabbableGroups[oe];
2466
+ j = dt(S) >= 0 ? re.firstTabbableNode : re.firstDomTabbableNode;
2465
2467
  } else Yt(O) || (j = m.nextTabbableNode(S));
2466
2468
  }
2467
2469
  } else
@@ -2484,7 +2486,7 @@ var qi = {
2484
2486
  }
2485
2487
  Ut(a.allowOutsideClick, T) || T.preventDefault();
2486
2488
  }
2487
- }, I = function(T) {
2489
+ }, P = function(T) {
2488
2490
  var S = dn(T), O = u(S, T) >= 0;
2489
2491
  if (O || S instanceof Document)
2490
2492
  O && (o.mostRecentlyFocusedNode = S);
@@ -2526,7 +2528,7 @@ var qi = {
2526
2528
  O && (Yt(T) && T.preventDefault(), y(O));
2527
2529
  }, q = function(T) {
2528
2530
  (a.isKeyForward(T) || a.isKeyBackward(T)) && A(T, a.isKeyBackward(T));
2529
- }, P = function(T) {
2531
+ }, I = function(T) {
2530
2532
  _u(T) && Ut(a.escapeDeactivates, T) !== !1 && (T.preventDefault(), l.deactivate());
2531
2533
  }, b = function(T) {
2532
2534
  var S = dn(T);
@@ -2535,7 +2537,7 @@ var qi = {
2535
2537
  if (o.active)
2536
2538
  return qi.activateTrap(i, l), o.delayInitialFocusTimer = a.delayInitialFocus ? Ui(function() {
2537
2539
  y(d());
2538
- }) : y(d()), r.addEventListener("focusin", I, !0), r.addEventListener("mousedown", g, {
2540
+ }) : y(d()), r.addEventListener("focusin", P, !0), r.addEventListener("mousedown", g, {
2539
2541
  capture: !0,
2540
2542
  passive: !1
2541
2543
  }), r.addEventListener("touchstart", g, {
@@ -2547,10 +2549,10 @@ var qi = {
2547
2549
  }), r.addEventListener("keydown", q, {
2548
2550
  capture: !0,
2549
2551
  passive: !1
2550
- }), r.addEventListener("keydown", P), l;
2552
+ }), r.addEventListener("keydown", I), l;
2551
2553
  }, z = function() {
2552
2554
  if (o.active)
2553
- return r.removeEventListener("focusin", I, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", q, !0), r.removeEventListener("keydown", P), l;
2555
+ return r.removeEventListener("focusin", P, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", q, !0), r.removeEventListener("keydown", I), l;
2554
2556
  }, F = function(T) {
2555
2557
  var S = T.some(function(O) {
2556
2558
  var N = Array.from(O.removedNodes);
@@ -2636,10 +2638,10 @@ var qi = {
2636
2638
  }
2637
2639
  }), l.updateContainerElements(t), l;
2638
2640
  };
2639
- const Iu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2641
+ const Pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2640
2642
  __proto__: null,
2641
- createFocusTrap: Pu
2642
- }, Symbol.toStringTag, { value: "Module" })), Au = /* @__PURE__ */ ao(Iu), Fu = /* @__PURE__ */ ao(mu);
2643
+ createFocusTrap: Iu
2644
+ }, Symbol.toStringTag, { value: "Module" })), Au = /* @__PURE__ */ ao(Pu), Fu = /* @__PURE__ */ ao(mu);
2643
2645
  var Qn, $i;
2644
2646
  function Nu() {
2645
2647
  if ($i) return Qn;
@@ -2717,7 +2719,7 @@ function Nu() {
2717
2719
  }
2718
2720
  return (E === "string" ? String : Number)(b);
2719
2721
  }
2720
- var y = Ge, h = /* @__PURE__ */ oo(), v = Au, g = v.createFocusTrap, I = Fu, A = I.isFocusable, q = /* @__PURE__ */ function(b) {
2722
+ var y = Xe, h = /* @__PURE__ */ oo(), v = Au, g = v.createFocusTrap, P = Fu, A = P.isFocusable, q = /* @__PURE__ */ function(b) {
2721
2723
  function E(z) {
2722
2724
  var F;
2723
2725
  t(this, E), F = i(this, E, [z]), d(F, "getNodeForOption", function(B) {
@@ -2902,7 +2904,7 @@ function Nu() {
2902
2904
  return null;
2903
2905
  }
2904
2906
  }]);
2905
- }(y.Component), P = typeof Element > "u" ? Function : Element;
2907
+ }(y.Component), I = typeof Element > "u" ? Function : Element;
2906
2908
  return q.propTypes = {
2907
2909
  active: h.bool,
2908
2910
  paused: h.bool,
@@ -2918,9 +2920,9 @@ function Nu() {
2918
2920
  onDeactivate: h.func,
2919
2921
  onPostDeactivate: h.func,
2920
2922
  checkCanReturnFocus: h.func,
2921
- initialFocus: h.oneOfType([h.instanceOf(P), h.string, h.bool, h.func]),
2923
+ initialFocus: h.oneOfType([h.instanceOf(I), h.string, h.bool, h.func]),
2922
2924
  fallbackFocus: h.oneOfType([
2923
- h.instanceOf(P),
2925
+ h.instanceOf(I),
2924
2926
  h.string,
2925
2927
  // NOTE: does not support `false` as value (or return value from function)
2926
2928
  h.func
@@ -2928,7 +2930,7 @@ function Nu() {
2928
2930
  escapeDeactivates: h.oneOfType([h.bool, h.func]),
2929
2931
  clickOutsideDeactivates: h.oneOfType([h.bool, h.func]),
2930
2932
  returnFocusOnDeactivate: h.bool,
2931
- setReturnFocus: h.oneOfType([h.instanceOf(P), h.string, h.bool, h.func]),
2933
+ setReturnFocus: h.oneOfType([h.instanceOf(I), h.string, h.bool, h.func]),
2932
2934
  allowOutsideClick: h.oneOfType([h.bool, h.func]),
2933
2935
  preventScroll: h.bool,
2934
2936
  tabbableOptions: h.shape({
@@ -2939,12 +2941,12 @@ function Nu() {
2939
2941
  isKeyForward: h.func,
2940
2942
  isKeyBackward: h.func
2941
2943
  }),
2942
- containerElements: h.arrayOf(h.instanceOf(P)),
2944
+ containerElements: h.arrayOf(h.instanceOf(I)),
2943
2945
  // DOM element ONLY
2944
2946
  children: h.oneOfType([
2945
2947
  h.element,
2946
2948
  // React element
2947
- h.instanceOf(P)
2949
+ h.instanceOf(I)
2948
2950
  // DOM element
2949
2951
  ])
2950
2952
  // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
@@ -2960,7 +2962,7 @@ function Nu() {
2960
2962
  var Lu = Nu();
2961
2963
  const ju = /* @__PURE__ */ nt(Lu);
2962
2964
  function $r({ style: e, className: t, children: n, isMounted: r }) {
2963
- const { isMobile: i, isNormalSize: a } = Q(Pe), o = ze(null);
2965
+ const { isMobile: i, isNormalSize: a } = ee(Pe), o = Ue(null);
2964
2966
  return /* @__PURE__ */ k.jsx(
2965
2967
  ju,
2966
2968
  {
@@ -3006,7 +3008,7 @@ $r.defaultProps = {
3006
3008
  isMounted: !1
3007
3009
  };
3008
3010
  function Co({ children: e, isMounted: t }) {
3009
- const { widgetMode: n } = Q(Se);
3011
+ const { widgetMode: n } = ee(ke);
3010
3012
  return n ? /* @__PURE__ */ k.jsx($r, { isMounted: t, children: e }) : /* @__PURE__ */ k.jsx("div", { className: "xpert_chatbot_inline", children: e });
3011
3013
  }
3012
3014
  Co.propTypes = {
@@ -3014,8 +3016,8 @@ Co.propTypes = {
3014
3016
  isMounted: C.bool
3015
3017
  };
3016
3018
  const ko = () => {
3017
- const { disclaimer: e } = Q(Se), t = ze(null);
3018
- return ke(() => {
3019
+ const { disclaimer: e } = ee(ke), t = Ue(null);
3020
+ return Ce(() => {
3019
3021
  var n;
3020
3022
  (n = t == null ? void 0 : t.current) == null || n.focus();
3021
3023
  }, []), /* @__PURE__ */ k.jsxs(
@@ -3229,7 +3231,7 @@ function zu(e, t, n) {
3229
3231
  return !1;
3230
3232
  }
3231
3233
  let en = !1;
3232
- function Po(e) {
3234
+ function Io(e) {
3233
3235
  return typeof e == "boolean" && (en = e), en;
3234
3236
  }
3235
3237
  function Gi(e) {
@@ -3264,12 +3266,12 @@ function Uu(e, t) {
3264
3266
  const r = Mt(t, n);
3265
3267
  return !!Oo(r, e);
3266
3268
  }
3267
- const Io = Object.freeze({
3269
+ const Po = Object.freeze({
3268
3270
  width: null,
3269
3271
  height: null
3270
3272
  }), Ao = Object.freeze({
3271
3273
  // Dimensions
3272
- ...Io,
3274
+ ...Po,
3273
3275
  // Transformations
3274
3276
  ...En
3275
3277
  }), $u = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Vu = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
@@ -3336,11 +3338,11 @@ function Yu(e, t) {
3336
3338
  };
3337
3339
  let a = n.body;
3338
3340
  [n, r].forEach((h) => {
3339
- const v = [], g = h.hFlip, I = h.vFlip;
3341
+ const v = [], g = h.hFlip, P = h.vFlip;
3340
3342
  let A = h.rotate;
3341
- g ? I ? A += 2 : (v.push(
3343
+ g ? P ? A += 2 : (v.push(
3342
3344
  "translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
3343
- ), v.push("scale(-1 1)"), i.top = i.left = 0) : I && (v.push(
3345
+ ), v.push("scale(-1 1)"), i.top = i.left = 0) : P && (v.push(
3344
3346
  "translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
3345
3347
  ), v.push("scale(1 -1)"), i.top = i.left = 0);
3346
3348
  let q;
@@ -3405,7 +3407,7 @@ const Or = /* @__PURE__ */ Object.create(null);
3405
3407
  function tc(e, t) {
3406
3408
  Or[e] = t;
3407
3409
  }
3408
- function Pr(e) {
3410
+ function Ir(e) {
3409
3411
  return Or[e] || Or[""];
3410
3412
  }
3411
3413
  function Wr(e) {
@@ -3691,7 +3693,7 @@ function gc(e, t, n, r) {
3691
3693
  abort: h
3692
3694
  };
3693
3695
  }
3694
- function I() {
3696
+ function P() {
3695
3697
  s = "failed", f.forEach((b) => {
3696
3698
  b(void 0, c);
3697
3699
  });
@@ -3714,11 +3716,11 @@ function gc(e, t, n, r) {
3714
3716
  return;
3715
3717
  }
3716
3718
  if (E === "abort") {
3717
- c = z, I();
3719
+ c = z, P();
3718
3720
  return;
3719
3721
  }
3720
3722
  if (F) {
3721
- c = z, p.length || (o.length ? P() : I());
3723
+ c = z, p.length || (o.length ? I() : P());
3722
3724
  return;
3723
3725
  }
3724
3726
  if (y(), A(), !e.random) {
@@ -3729,7 +3731,7 @@ function gc(e, t, n, r) {
3729
3731
  U(z);
3730
3732
  });
3731
3733
  }
3732
- function P() {
3734
+ function I() {
3733
3735
  if (s !== "pending")
3734
3736
  return;
3735
3737
  y();
@@ -3737,11 +3739,11 @@ function gc(e, t, n, r) {
3737
3739
  if (b === void 0) {
3738
3740
  if (p.length) {
3739
3741
  d = setTimeout(() => {
3740
- y(), s === "pending" && (A(), I());
3742
+ y(), s === "pending" && (A(), P());
3741
3743
  }, e.timeout);
3742
3744
  return;
3743
3745
  }
3744
- I();
3746
+ P();
3745
3747
  return;
3746
3748
  }
3747
3749
  const E = {
@@ -3751,9 +3753,9 @@ function gc(e, t, n, r) {
3751
3753
  q(E, z, F);
3752
3754
  }
3753
3755
  };
3754
- p.push(E), u++, d = setTimeout(P, e.rotate), n(b, t, E.callback);
3756
+ p.push(E), u++, d = setTimeout(I, e.rotate), n(b, t, E.callback);
3755
3757
  }
3756
- return setTimeout(P), g;
3758
+ return setTimeout(I), g;
3757
3759
  }
3758
3760
  function No(e) {
3759
3761
  const t = {
@@ -3807,7 +3809,7 @@ function yc(e) {
3807
3809
  function bc(e, t, n) {
3808
3810
  let r, i;
3809
3811
  if (typeof e == "string") {
3810
- const a = Pr(e);
3812
+ const a = Ir(e);
3811
3813
  if (!a)
3812
3814
  return n(void 0, 424), Yi;
3813
3815
  i = a.send;
@@ -3817,7 +3819,7 @@ function bc(e, t, n) {
3817
3819
  const a = Wr(e);
3818
3820
  if (a) {
3819
3821
  r = No(a);
3820
- const o = e.resources ? e.resources[0] : "", l = Pr(o);
3822
+ const o = e.resources ? e.resources[0] : "", l = Ir(o);
3821
3823
  l && (i = l.send);
3822
3824
  }
3823
3825
  }
@@ -3898,7 +3900,7 @@ function wc(e, t) {
3898
3900
  const { valid: o, invalid: l } = xc(i);
3899
3901
  if (l.length && Vt(e, l, null), !o.length)
3900
3902
  return;
3901
- const s = r.match(To) ? Pr(n) : null;
3903
+ const s = r.match(To) ? Ir(n) : null;
3902
3904
  if (!s) {
3903
3905
  Vt(e, o, null);
3904
3906
  return;
@@ -3911,7 +3913,7 @@ function wc(e, t) {
3911
3913
  }));
3912
3914
  }
3913
3915
  const Cc = (e, t) => {
3914
- const n = hc(e, !0, Po()), r = cc(n);
3916
+ const n = hc(e, !0, Io()), r = cc(n);
3915
3917
  if (!r.pending.length) {
3916
3918
  let s = !0;
3917
3919
  return t && setTimeout(() => {
@@ -3948,7 +3950,7 @@ function kc(e, t) {
3948
3950
  };
3949
3951
  for (const r in t) {
3950
3952
  const i = t[r], a = typeof i;
3951
- r in Io ? (i === null || i && (a === "string" || a === "number")) && (n[r] = i) : a === typeof n[r] && (n[r] = r === "rotate" ? i % 4 : i);
3953
+ r in Po ? (i === null || i && (a === "string" || a === "number")) && (n[r] = i) : a === typeof n[r] && (n[r] = r === "rotate" ? i % 4 : i);
3952
3954
  }
3953
3955
  return n;
3954
3956
  }
@@ -4000,11 +4002,11 @@ function Tc(e, t) {
4000
4002
  function Oc(e) {
4001
4003
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
4002
4004
  }
4003
- function Pc(e) {
4005
+ function Ic(e) {
4004
4006
  return "data:image/svg+xml," + Oc(e);
4005
4007
  }
4006
- function Ic(e) {
4007
- return 'url("' + Pc(e) + '")';
4008
+ function Pc(e) {
4009
+ return 'url("' + Ic(e) + '")';
4008
4010
  }
4009
4011
  let Kt;
4010
4012
  function Ac() {
@@ -4030,7 +4032,7 @@ const Lo = {
4030
4032
  role: "img"
4031
4033
  }, Lc = {
4032
4034
  display: "inline-block"
4033
- }, Ir = {
4035
+ }, Pr = {
4034
4036
  backgroundColor: "currentColor"
4035
4037
  }, jo = {
4036
4038
  backgroundColor: "transparent"
@@ -4039,8 +4041,8 @@ const Lo = {
4039
4041
  Repeat: "no-repeat",
4040
4042
  Size: "100% 100%"
4041
4043
  }, ea = {
4042
- WebkitMask: Ir,
4043
- mask: Ir,
4044
+ WebkitMask: Pr,
4045
+ mask: Pr,
4044
4046
  background: jo
4045
4047
  };
4046
4048
  for (const e in ea) {
@@ -4062,11 +4064,11 @@ const Mc = (e, t, n) => {
4062
4064
  if (n) {
4063
4065
  const v = Fn(n, !1, !0);
4064
4066
  if (v) {
4065
- const g = ["iconify"], I = [
4067
+ const g = ["iconify"], P = [
4066
4068
  "provider",
4067
4069
  "prefix"
4068
4070
  ];
4069
- for (const A of I)
4071
+ for (const A of P)
4070
4072
  v[A] && g.push("iconify--" + v[A]);
4071
4073
  s.className = g.join(" ");
4072
4074
  }
@@ -4137,15 +4139,15 @@ const Mc = (e, t, n) => {
4137
4139
  });
4138
4140
  return s.style = {
4139
4141
  ...o,
4140
- "--svg": Ic(h),
4142
+ "--svg": Pc(h),
4141
4143
  width: ta(c.width),
4142
4144
  height: ta(c.height),
4143
4145
  ...Lc,
4144
- ...y ? Ir : jo,
4146
+ ...y ? Pr : jo,
4145
4147
  ...l
4146
4148
  }, kr("span", s);
4147
4149
  };
4148
- Po(!0);
4150
+ Io(!0);
4149
4151
  tc("", uc);
4150
4152
  if (typeof document < "u" && typeof window < "u") {
4151
4153
  const e = window;
@@ -4179,7 +4181,7 @@ if (typeof document < "u" && typeof window < "u") {
4179
4181
  }
4180
4182
  }
4181
4183
  function Mo(e) {
4182
- const [t, n] = ee(!!e.ssr), [r, i] = ee({});
4184
+ const [t, n] = te(!!e.ssr), [r, i] = te({});
4183
4185
  function a(f) {
4184
4186
  if (f) {
4185
4187
  const y = e.icon;
@@ -4199,7 +4201,7 @@ function Mo(e) {
4199
4201
  name: ""
4200
4202
  };
4201
4203
  }
4202
- const [o, l] = ee(a(!!e.ssr));
4204
+ const [o, l] = te(a(!!e.ssr));
4203
4205
  function s() {
4204
4206
  const f = r.callback;
4205
4207
  f && (f(), i({}));
@@ -4230,7 +4232,7 @@ function Mo(e) {
4230
4232
  });
4231
4233
  } else h && ((f = e.onLoad) === null || f === void 0 || f.call(e, y));
4232
4234
  }
4233
- ke(() => (n(!0), s), []), ke(() => {
4235
+ Ce(() => (n(!0), s), []), Ce(() => {
4234
4236
  t && c();
4235
4237
  }, [e.icon, t]);
4236
4238
  const { name: d, data: p } = o;
@@ -4256,8 +4258,8 @@ function Nn({
4256
4258
  inputRef: i,
4257
4259
  value: a
4258
4260
  }) {
4259
- const { primaryColor: o } = Q(Se), { hasError: l, hasNewMessage: s } = Q(Pe);
4260
- ke(() => {
4261
+ const { primaryColor: o } = ee(ke), { hasError: l, hasNewMessage: s } = ee(Pe);
4262
+ Ce(() => {
4261
4263
  var d;
4262
4264
  (l || s) && ((d = i.current) == null || d.focus());
4263
4265
  }, [s, l, i]);
@@ -4328,8 +4330,8 @@ Nn.propTypes = {
4328
4330
  };
4329
4331
  Nn.defaultProps = {};
4330
4332
  const Ar = ({ content: e = "Please try again later." }) => {
4331
- const t = ze(null);
4332
- return ke(() => {
4333
+ const t = Ue(null);
4334
+ return Ce(() => {
4333
4335
  var n;
4334
4336
  (n = t.current) == null || n.scrollIntoView({
4335
4337
  behavior: "instant"
@@ -4447,32 +4449,32 @@ function Ln({
4447
4449
  text: o,
4448
4450
  userTrackingName: l
4449
4451
  }) {
4450
- var g, I, A, q;
4451
- const [s, u] = ee(!0), { primaryColor: c, id: d, userTracking: p, conversationScreen: f } = Q(Se), y = Ct(
4452
- (P) => {
4452
+ var g, P, A, q;
4453
+ const [s, u] = te(!0), { primaryColor: c, id: d, userTracking: p, conversationScreen: f } = ee(ke), y = Ct(
4454
+ (I) => {
4453
4455
  var b, E, z, F;
4454
- ((b = P == null ? void 0 : P.data) == null ? void 0 : b.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Re.set(`${d}-live-chat-open`, 1, {
4456
+ ((b = I == null ? void 0 : I.data) == null ? void 0 : b.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Be.set(`${d}-live-chat-open`, 1, {
4455
4457
  expires: 1,
4456
4458
  path: "/"
4457
- }), ((z = P == null ? void 0 : P.data) == null ? void 0 : z.type) === "connection" && ((F = P == null ? void 0 : P.data) == null ? void 0 : F.state) === "disconnected" && Re.remove(`${d}-live-chat-open`);
4459
+ }), ((z = I == null ? void 0 : I.data) == null ? void 0 : z.type) === "connection" && ((F = I == null ? void 0 : I.data) == null ? void 0 : F.state) === "disconnected" && Be.remove(`${d}-live-chat-open`);
4458
4460
  },
4459
4461
  [d]
4460
4462
  ), h = Ct(
4461
- (P) => {
4463
+ (I) => {
4462
4464
  var b, E, z, F;
4463
- ((b = P == null ? void 0 : P.data) == null ? void 0 : b.type) === "unhide" && ((E = P == null ? void 0 : P.data) == null ? void 0 : E.reason) === "pop-out" && t(!0), ((z = P == null ? void 0 : P.data) == null ? void 0 : z.type) === "open" && ((F = P == null ? void 0 : P.data) == null ? void 0 : F.chatState) === !0 && t(!0);
4465
+ ((b = I == null ? void 0 : I.data) == null ? void 0 : b.type) === "unhide" && ((E = I == null ? void 0 : I.data) == null ? void 0 : E.reason) === "pop-out" && t(!0), ((z = I == null ? void 0 : I.data) == null ? void 0 : z.type) === "open" && ((F = I == null ? void 0 : I.data) == null ? void 0 : F.chatState) === !0 && t(!0);
4464
4466
  },
4465
4467
  [t]
4466
4468
  );
4467
- ke(() => {
4469
+ Ce(() => {
4468
4470
  var E, z, F, U;
4469
- let P, b;
4471
+ let I, b;
4470
4472
  return (E = f == null ? void 0 : f.liveChat) != null && E.useOwnChat && (b = setTimeout(() => {
4471
4473
  u(!1);
4472
- }, 3e3)), (z = f == null ? void 0 : f.liveChat) != null && z.enabled && !((F = f == null ? void 0 : f.liveChat) != null && F.useOwnChat) && (window.Five9ChatPlugin || (P = document.createElement("script"), P.type = "text/javascript", P.src = (U = f == null ? void 0 : f.liveChat) == null ? void 0 : U.sourceCode, P.async = !0, P.onload = () => {
4474
+ }, 3e3)), (z = f == null ? void 0 : f.liveChat) != null && z.enabled && !((F = f == null ? void 0 : f.liveChat) != null && F.useOwnChat) && (window.Five9ChatPlugin || (I = document.createElement("script"), I.type = "text/javascript", I.src = (U = f == null ? void 0 : f.liveChat) == null ? void 0 : U.sourceCode, I.async = !0, I.onload = () => {
4473
4475
  var M;
4474
4476
  window.Five9ChatPlugin((M = f == null ? void 0 : f.liveChat) == null ? void 0 : M.options);
4475
- }, document.body.appendChild(P)), window.addEventListener("message", y), window.addEventListener("message", h), b = setTimeout(() => {
4477
+ }, document.body.appendChild(I)), window.addEventListener("message", y), window.addEventListener("message", h), b = setTimeout(() => {
4476
4478
  u(!1);
4477
4479
  }, 3e3)), () => {
4478
4480
  var M;
@@ -4480,14 +4482,14 @@ function Ln({
4480
4482
  };
4481
4483
  }, [
4482
4484
  (g = f == null ? void 0 : f.liveChat) == null ? void 0 : g.enabled,
4483
- (I = f == null ? void 0 : f.liveChat) == null ? void 0 : I.options,
4485
+ (P = f == null ? void 0 : f.liveChat) == null ? void 0 : P.options,
4484
4486
  (A = f == null ? void 0 : f.liveChat) == null ? void 0 : A.sourceCode,
4485
4487
  (q = f == null ? void 0 : f.liveChat) == null ? void 0 : q.useOwnChat,
4486
4488
  y,
4487
4489
  h
4488
4490
  ]);
4489
4491
  const v = () => {
4490
- var P;
4492
+ var I;
4491
4493
  e({
4492
4494
  name: `${p == null ? void 0 : p.prefix}.bi.xpert.chatbot.popup.live.chat.${l}`,
4493
4495
  payload: {
@@ -4495,7 +4497,7 @@ function Ln({
4495
4497
  label: "xpert-chatbot",
4496
4498
  isTestUser: n
4497
4499
  }
4498
- }), t(!0), (P = f == null ? void 0 : f.liveChat) != null && P.useOwnChat || window.f9_postMessage({ type: "toggle" });
4500
+ }), t(!0), (I = f == null ? void 0 : f.liveChat) != null && I.useOwnChat || window.f9_postMessage({ type: "toggle" });
4499
4501
  };
4500
4502
  return /* @__PURE__ */ k.jsxs("div", { title: "Talk to a live agent at anytime.", style: i, children: [
4501
4503
  s && r && /* @__PURE__ */ k.jsxs("div", { className: "xpert-chatbot-popup__live-chat--message", children: [
@@ -4594,7 +4596,7 @@ function ia(e) {
4594
4596
  function aa(e) {
4595
4597
  return e && typeof e == "number" ? e : 1;
4596
4598
  }
4597
- class qe extends Error {
4599
+ class $e extends Error {
4598
4600
  /**
4599
4601
  * Create a message for `reason` at `place` from `origin`.
4600
4602
  *
@@ -4628,17 +4630,17 @@ class qe extends Error {
4628
4630
  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 = Jt(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;
4629
4631
  }
4630
4632
  }
4631
- qe.prototype.file = "";
4632
- qe.prototype.name = "";
4633
- qe.prototype.reason = "";
4634
- qe.prototype.message = "";
4635
- qe.prototype.stack = "";
4636
- qe.prototype.fatal = null;
4637
- qe.prototype.column = null;
4638
- qe.prototype.line = null;
4639
- qe.prototype.source = null;
4640
- qe.prototype.ruleId = null;
4641
- qe.prototype.position = null;
4633
+ $e.prototype.file = "";
4634
+ $e.prototype.name = "";
4635
+ $e.prototype.reason = "";
4636
+ $e.prototype.message = "";
4637
+ $e.prototype.stack = "";
4638
+ $e.prototype.fatal = null;
4639
+ $e.prototype.column = null;
4640
+ $e.prototype.line = null;
4641
+ $e.prototype.source = null;
4642
+ $e.prototype.ruleId = null;
4643
+ $e.prototype.position = null;
4642
4644
  const Je = { basename: zc, dirname: qc, extname: Uc, join: $c, sep: "/" };
4643
4645
  function zc(e, t) {
4644
4646
  if (t !== void 0 && typeof t != "string")
@@ -4946,7 +4948,7 @@ class Bo {
4946
4948
  * Message.
4947
4949
  */
4948
4950
  message(t, n, r) {
4949
- const i = new qe(t, n, r);
4951
+ const i = new $e(t, n, r);
4950
4952
  return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
4951
4953
  }
4952
4954
  /**
@@ -5047,11 +5049,11 @@ function Jc() {
5047
5049
  return u[c];
5048
5050
  };
5049
5051
  return or = function s() {
5050
- var u, c, d, p, f, y, h = arguments[0], v = 1, g = arguments.length, I = !1;
5051
- for (typeof h == "boolean" && (I = h, h = arguments[1] || {}, v = 2), (h == null || typeof h != "object" && typeof h != "function") && (h = {}); v < g; ++v)
5052
+ var u, c, d, p, f, y, h = arguments[0], v = 1, g = arguments.length, P = !1;
5053
+ for (typeof h == "boolean" && (P = h, h = arguments[1] || {}, v = 2), (h == null || typeof h != "object" && typeof h != "function") && (h = {}); v < g; ++v)
5052
5054
  if (u = arguments[v], u != null)
5053
5055
  for (c in u)
5054
- d = l(h, c), p = l(u, c), h !== p && (I && p && (a(p) || (f = i(p))) ? (f ? (f = !1, y = d && i(d) ? d : []) : y = d && a(d) ? d : {}, o(h, { name: c, newValue: s(I, y, p) })) : typeof p < "u" && o(h, { name: c, newValue: p }));
5056
+ d = l(h, c), p = l(u, c), h !== p && (P && p && (a(p) || (f = i(p))) ? (f ? (f = !1, y = d && i(d) ? d : []) : y = d && a(d) ? d : {}, o(h, { name: c, newValue: s(P, y, p) })) : typeof p < "u" && o(h, { name: c, newValue: p }));
5055
5057
  return h;
5056
5058
  }, or;
5057
5059
  }
@@ -5150,19 +5152,19 @@ function zo() {
5150
5152
  function s(h, ...v) {
5151
5153
  let g;
5152
5154
  if (ur("use", r), h != null) if (typeof h == "function")
5153
- P(h, ...v);
5155
+ I(h, ...v);
5154
5156
  else if (typeof h == "object")
5155
5157
  Array.isArray(h) ? q(h) : A(h);
5156
5158
  else
5157
5159
  throw new TypeError("Expected usable value, not `" + h + "`");
5158
5160
  return g && (n.settings = Object.assign(n.settings || {}, g)), a;
5159
- function I(b) {
5161
+ function P(b) {
5160
5162
  if (typeof b == "function")
5161
- P(b);
5163
+ I(b);
5162
5164
  else if (typeof b == "object")
5163
5165
  if (Array.isArray(b)) {
5164
5166
  const [E, ...z] = b;
5165
- P(E, ...z);
5167
+ I(E, ...z);
5166
5168
  } else
5167
5169
  A(b);
5168
5170
  else
@@ -5176,12 +5178,12 @@ function zo() {
5176
5178
  if (b != null) if (Array.isArray(b))
5177
5179
  for (; ++E < b.length; ) {
5178
5180
  const z = b[E];
5179
- I(z);
5181
+ P(z);
5180
5182
  }
5181
5183
  else
5182
5184
  throw new TypeError("Expected a list of plugins, not `" + b + "`");
5183
5185
  }
5184
- function P(b, E) {
5186
+ function I(b, E) {
5185
5187
  let z = -1, F;
5186
5188
  for (; ++z < t.length; )
5187
5189
  if (t[z][0] === b) {
@@ -5198,43 +5200,43 @@ function zo() {
5198
5200
  }
5199
5201
  function c(h, v) {
5200
5202
  a.freeze();
5201
- const g = Wt(v), I = a.Compiler;
5202
- return sr("stringify", I), fa(h), ca(I, "compile") ? new I(h, g).compile() : I(h, g);
5203
+ const g = Wt(v), P = a.Compiler;
5204
+ return sr("stringify", P), fa(h), ca(P, "compile") ? new P(h, g).compile() : P(h, g);
5203
5205
  }
5204
5206
  function d(h, v, g) {
5205
5207
  if (fa(h), a.freeze(), !g && typeof v == "function" && (g = v, v = void 0), !g)
5206
- return new Promise(I);
5207
- I(null, g);
5208
- function I(A, q) {
5209
- e.run(h, Wt(v), P);
5210
- function P(b, E, z) {
5208
+ return new Promise(P);
5209
+ P(null, g);
5210
+ function P(A, q) {
5211
+ e.run(h, Wt(v), I);
5212
+ function I(b, E, z) {
5211
5213
  E = E || h, b ? q(b) : A ? A(E) : g(null, E, z);
5212
5214
  }
5213
5215
  }
5214
5216
  }
5215
5217
  function p(h, v) {
5216
- let g, I;
5217
- return a.run(h, v, A), da("runSync", "run", I), g;
5218
- function A(q, P) {
5219
- la(q), g = P, I = !0;
5218
+ let g, P;
5219
+ return a.run(h, v, A), da("runSync", "run", P), g;
5220
+ function A(q, I) {
5221
+ la(q), g = I, P = !0;
5220
5222
  }
5221
5223
  }
5222
5224
  function f(h, v) {
5223
5225
  if (a.freeze(), lr("process", a.Parser), sr("process", a.Compiler), !v)
5224
5226
  return new Promise(g);
5225
5227
  g(null, v);
5226
- function g(I, A) {
5228
+ function g(P, A) {
5227
5229
  const q = Wt(h);
5228
5230
  a.run(a.parse(q), q, (b, E, z) => {
5229
5231
  if (b || !E || !z)
5230
- P(b);
5232
+ I(b);
5231
5233
  else {
5232
5234
  const F = a.stringify(E, z);
5233
- F == null || (of(F) ? z.value = F : z.result = F), P(b, z);
5235
+ F == null || (of(F) ? z.value = F : z.result = F), I(b, z);
5234
5236
  }
5235
5237
  });
5236
- function P(b, E) {
5237
- b || !E ? A(b) : I ? I(E) : v(null, E);
5238
+ function I(b, E) {
5239
+ b || !E ? A(b) : P ? P(E) : v(null, E);
5238
5240
  }
5239
5241
  }
5240
5242
  }
@@ -5242,8 +5244,8 @@ function zo() {
5242
5244
  let v;
5243
5245
  a.freeze(), lr("processSync", a.Parser), sr("processSync", a.Compiler);
5244
5246
  const g = Wt(h);
5245
- return a.process(g, I), da("processSync", "process", v), g;
5246
- function I(A) {
5247
+ return a.process(g, P), da("processSync", "process", v), g;
5248
+ function P(A) {
5247
5249
  v = !0, la(A);
5248
5250
  }
5249
5251
  }
@@ -5332,7 +5334,7 @@ function tt(e, t, n, r) {
5332
5334
  for (n && e.splice(t, n); a < r.length; )
5333
5335
  o = r.slice(a, a + 1e4), o.unshift(t, 0), e.splice(...o), a += 1e4, t += 1e4;
5334
5336
  }
5335
- function He(e, t) {
5337
+ function qe(e, t) {
5336
5338
  return e.length > 0 ? (tt(e, e.length, 0, t), e) : t;
5337
5339
  }
5338
5340
  const ha = {}.hasOwnProperty;
@@ -5367,7 +5369,7 @@ function df(e, t) {
5367
5369
  (t[n].add === "after" ? e : r).push(t[n]);
5368
5370
  tt(e, 0, 0, r);
5369
5371
  }
5370
- const pf = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Qe = pt(/[A-Za-z]/), Be = pt(/[\dA-Za-z]/), hf = pt(/[#-'*+\--9=?A-Z^-~]/);
5372
+ const pf = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, Qe = pt(/[A-Za-z]/), He = pt(/[\dA-Za-z]/), hf = pt(/[#-'*+\--9=?A-Z^-~]/);
5371
5373
  function jr(e) {
5372
5374
  return (
5373
5375
  // Special whitespace codes (which have negative values), C0 and Control
@@ -5376,10 +5378,10 @@ function jr(e) {
5376
5378
  );
5377
5379
  }
5378
5380
  const Mr = pt(/\d/), mf = pt(/[\dA-Fa-f]/), gf = pt(/[!-/:-@[-`{-~]/);
5379
- function J(e) {
5381
+ function Q(e) {
5380
5382
  return e !== null && e < -2;
5381
5383
  }
5382
- function Ae(e) {
5384
+ function Fe(e) {
5383
5385
  return e !== null && (e < 0 || e === 32);
5384
5386
  }
5385
5387
  function ue(e) {
@@ -5436,7 +5438,7 @@ function xf(e) {
5436
5438
  e.exit("chunkText"), e.exit("paragraph"), e.consume(l);
5437
5439
  return;
5438
5440
  }
5439
- return J(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
5441
+ return Q(l) ? (e.consume(l), e.exit("chunkText"), a) : (e.consume(l), o);
5440
5442
  }
5441
5443
  }
5442
5444
  const wf = {
@@ -5461,12 +5463,12 @@ function Cf(e) {
5461
5463
  }
5462
5464
  function s(A) {
5463
5465
  if (r++, t.containerState._closeFlow) {
5464
- t.containerState._closeFlow = void 0, i && I();
5466
+ t.containerState._closeFlow = void 0, i && P();
5465
5467
  const q = t.events.length;
5466
- let P = q, b;
5467
- for (; P--; )
5468
- if (t.events[P][0] === "exit" && t.events[P][1].type === "chunkFlow") {
5469
- b = t.events[P][1].end;
5468
+ let I = q, b;
5469
+ for (; I--; )
5470
+ if (t.events[I][0] === "exit" && t.events[I][1].type === "chunkFlow") {
5471
+ b = t.events[I][1].end;
5470
5472
  break;
5471
5473
  }
5472
5474
  g(r);
@@ -5475,7 +5477,7 @@ function Cf(e) {
5475
5477
  t.events[E][1].end = Object.assign({}, b), E++;
5476
5478
  return tt(
5477
5479
  t.events,
5478
- P + 1,
5480
+ I + 1,
5479
5481
  0,
5480
5482
  t.events.slice(q)
5481
5483
  ), t.events.length = E, u(A);
@@ -5497,7 +5499,7 @@ function Cf(e) {
5497
5499
  )(A);
5498
5500
  }
5499
5501
  function c(A) {
5500
- return i && I(), g(r), p(A);
5502
+ return i && P(), g(r), p(A);
5501
5503
  }
5502
5504
  function d(A) {
5503
5505
  return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, y(A);
@@ -5514,7 +5516,7 @@ function Cf(e) {
5514
5516
  }
5515
5517
  function y(A) {
5516
5518
  if (A === null) {
5517
- i && I(), g(0), e.consume(A);
5519
+ i && P(), g(0), e.consume(A);
5518
5520
  return;
5519
5521
  }
5520
5522
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -5528,11 +5530,11 @@ function Cf(e) {
5528
5530
  v(e.exit("chunkFlow"), !0), g(0), e.consume(A);
5529
5531
  return;
5530
5532
  }
5531
- return J(A) ? (e.consume(A), v(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(A), h);
5533
+ return Q(A) ? (e.consume(A), v(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(A), h);
5532
5534
  }
5533
5535
  function v(A, q) {
5534
- const P = t.sliceStream(A);
5535
- if (q && P.push(null), A.previous = a, a && (a.next = A), a = A, i.defineSkip(A.start), i.write(P), t.parser.lazy[A.start.line]) {
5536
+ const I = t.sliceStream(A);
5537
+ if (q && I.push(null), A.previous = a, a && (a.next = A), a = A, i.defineSkip(A.start), i.write(I), t.parser.lazy[A.start.line]) {
5536
5538
  let b = i.events.length;
5537
5539
  for (; b--; )
5538
5540
  if (
@@ -5565,12 +5567,12 @@ function Cf(e) {
5565
5567
  function g(A) {
5566
5568
  let q = n.length;
5567
5569
  for (; q-- > A; ) {
5568
- const P = n[q];
5569
- t.containerState = P[1], P[0].exit.call(t, e);
5570
+ const I = n[q];
5571
+ t.containerState = I[1], I[0].exit.call(t, e);
5570
5572
  }
5571
5573
  n.length = A;
5572
5574
  }
5573
- function I() {
5575
+ function P() {
5574
5576
  i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
5575
5577
  }
5576
5578
  }
@@ -5583,7 +5585,7 @@ function kf(e, t, n) {
5583
5585
  );
5584
5586
  }
5585
5587
  function ga(e) {
5586
- if (e === null || Ae(e) || bf(e))
5588
+ if (e === null || Fe(e) || bf(e))
5587
5589
  return 1;
5588
5590
  if (yf(e))
5589
5591
  return 2;
@@ -5629,27 +5631,27 @@ function Sf(e, t) {
5629
5631
  type: s > 1 ? "strong" : "emphasis",
5630
5632
  start: Object.assign({}, o.start),
5631
5633
  end: Object.assign({}, l.end)
5632
- }, e[r][1].end = Object.assign({}, o.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = He(u, [
5634
+ }, e[r][1].end = Object.assign({}, o.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = qe(u, [
5633
5635
  ["enter", e[r][1], t],
5634
5636
  ["exit", e[r][1], t]
5635
- ])), u = He(u, [
5637
+ ])), u = qe(u, [
5636
5638
  ["enter", i, t],
5637
5639
  ["enter", o, t],
5638
5640
  ["exit", o, t],
5639
5641
  ["enter", a, t]
5640
- ]), u = He(
5642
+ ]), u = qe(
5641
5643
  u,
5642
5644
  Zr(
5643
5645
  t.parser.constructs.insideSpan.null,
5644
5646
  e.slice(r + 1, n),
5645
5647
  t
5646
5648
  )
5647
- ), u = He(u, [
5649
+ ), u = qe(u, [
5648
5650
  ["exit", a, t],
5649
5651
  ["enter", l, t],
5650
5652
  ["exit", l, t],
5651
5653
  ["exit", i, t]
5652
- ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = He(u, [
5654
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = qe(u, [
5653
5655
  ["enter", e[n][1], t],
5654
5656
  ["exit", e[n][1], t]
5655
5657
  ])) : c = 0, tt(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
@@ -5691,10 +5693,10 @@ function Tf(e, t, n) {
5691
5693
  return Qe(f) ? (e.consume(f), o) : u(f);
5692
5694
  }
5693
5695
  function o(f) {
5694
- return f === 43 || f === 45 || f === 46 || Be(f) ? (r = 1, l(f)) : u(f);
5696
+ return f === 43 || f === 45 || f === 46 || He(f) ? (r = 1, l(f)) : u(f);
5695
5697
  }
5696
5698
  function l(f) {
5697
- return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || Be(f)) && r++ < 32 ? (e.consume(f), l) : (r = 0, u(f));
5699
+ return f === 58 ? (e.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || He(f)) && r++ < 32 ? (e.consume(f), l) : (r = 0, u(f));
5698
5700
  }
5699
5701
  function s(f) {
5700
5702
  return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || jr(f) ? n(f) : (e.consume(f), s);
@@ -5703,13 +5705,13 @@ function Tf(e, t, n) {
5703
5705
  return f === 64 ? (e.consume(f), c) : hf(f) ? (e.consume(f), u) : n(f);
5704
5706
  }
5705
5707
  function c(f) {
5706
- return Be(f) ? d(f) : n(f);
5708
+ return He(f) ? d(f) : n(f);
5707
5709
  }
5708
5710
  function d(f) {
5709
5711
  return f === 46 ? (e.consume(f), r = 0, c) : f === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : p(f);
5710
5712
  }
5711
5713
  function p(f) {
5712
- if ((f === 45 || Be(f)) && r++ < 63) {
5714
+ if ((f === 45 || He(f)) && r++ < 63) {
5713
5715
  const y = f === 45 ? p : d;
5714
5716
  return e.consume(f), y;
5715
5717
  }
@@ -5726,18 +5728,18 @@ function Of(e, t, n) {
5726
5728
  return ue(a) ? ye(e, i, "linePrefix")(a) : i(a);
5727
5729
  }
5728
5730
  function i(a) {
5729
- return a === null || J(a) ? t(a) : n(a);
5731
+ return a === null || Q(a) ? t(a) : n(a);
5730
5732
  }
5731
5733
  }
5732
5734
  const Uo = {
5733
5735
  name: "blockQuote",
5734
- tokenize: Pf,
5736
+ tokenize: If,
5735
5737
  continuation: {
5736
- tokenize: If
5738
+ tokenize: Pf
5737
5739
  },
5738
5740
  exit: Af
5739
5741
  };
5740
- function Pf(e, t, n) {
5742
+ function If(e, t, n) {
5741
5743
  const r = this;
5742
5744
  return i;
5743
5745
  function i(o) {
@@ -5753,7 +5755,7 @@ function Pf(e, t, n) {
5753
5755
  return ue(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(o));
5754
5756
  }
5755
5757
  }
5756
- function If(e, t, n) {
5758
+ function Pf(e, t, n) {
5757
5759
  const r = this;
5758
5760
  return i;
5759
5761
  function i(o) {
@@ -5807,7 +5809,7 @@ function Nf(e, t, n) {
5807
5809
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), s;
5808
5810
  }
5809
5811
  function s(d) {
5810
- return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, o = Be, c(d));
5812
+ return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, o = He, c(d));
5811
5813
  }
5812
5814
  function u(d) {
5813
5815
  return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, o = mf, c) : (e.enter("characterReferenceValue"), a = 7, o = Mr, c(d));
@@ -5815,7 +5817,7 @@ function Nf(e, t, n) {
5815
5817
  function c(d) {
5816
5818
  if (d === 59 && i) {
5817
5819
  const p = e.exit("characterReferenceValue");
5818
- return o === Be && !Yr(r.sliceSerialize(p)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5820
+ return o === He && !Yr(r.sliceSerialize(p)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5819
5821
  }
5820
5822
  return o(d) && i++ < a ? (e.consume(d), c) : n(d);
5821
5823
  }
@@ -5830,7 +5832,7 @@ const va = {
5830
5832
  };
5831
5833
  function Lf(e, t, n) {
5832
5834
  const r = this, i = {
5833
- tokenize: P,
5835
+ tokenize: I,
5834
5836
  partial: !0
5835
5837
  };
5836
5838
  let a = 0, o = 0, l;
@@ -5846,20 +5848,20 @@ function Lf(e, t, n) {
5846
5848
  return b === l ? (o++, e.consume(b), c) : o < 3 ? n(b) : (e.exit("codeFencedFenceSequence"), ue(b) ? ye(e, d, "whitespace")(b) : d(b));
5847
5849
  }
5848
5850
  function d(b) {
5849
- return b === null || J(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(va, h, q)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5851
+ return b === null || Q(b) ? (e.exit("codeFencedFence"), r.interrupt ? t(b) : e.check(va, h, q)(b)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5850
5852
  contentType: "string"
5851
5853
  }), p(b));
5852
5854
  }
5853
5855
  function p(b) {
5854
- return b === null || J(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(b)) : ue(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ye(e, f, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), p);
5856
+ return b === null || Q(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(b)) : ue(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ye(e, f, "whitespace")(b)) : b === 96 && b === l ? n(b) : (e.consume(b), p);
5855
5857
  }
5856
5858
  function f(b) {
5857
- return b === null || J(b) ? d(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5859
+ return b === null || Q(b) ? d(b) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
5858
5860
  contentType: "string"
5859
5861
  }), y(b));
5860
5862
  }
5861
5863
  function y(b) {
5862
- return b === null || J(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(b)) : b === 96 && b === l ? n(b) : (e.consume(b), y);
5864
+ return b === null || Q(b) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(b)) : b === 96 && b === l ? n(b) : (e.consume(b), y);
5863
5865
  }
5864
5866
  function h(b) {
5865
5867
  return e.attempt(i, q, v)(b);
@@ -5870,21 +5872,21 @@ function Lf(e, t, n) {
5870
5872
  function g(b) {
5871
5873
  return a > 0 && ue(b) ? ye(
5872
5874
  e,
5873
- I,
5875
+ P,
5874
5876
  "linePrefix",
5875
5877
  a + 1
5876
- )(b) : I(b);
5878
+ )(b) : P(b);
5877
5879
  }
5878
- function I(b) {
5879
- return b === null || J(b) ? e.check(va, h, q)(b) : (e.enter("codeFlowValue"), A(b));
5880
+ function P(b) {
5881
+ return b === null || Q(b) ? e.check(va, h, q)(b) : (e.enter("codeFlowValue"), A(b));
5880
5882
  }
5881
5883
  function A(b) {
5882
- return b === null || J(b) ? (e.exit("codeFlowValue"), I(b)) : (e.consume(b), A);
5884
+ return b === null || Q(b) ? (e.exit("codeFlowValue"), P(b)) : (e.consume(b), A);
5883
5885
  }
5884
5886
  function q(b) {
5885
5887
  return e.exit("codeFenced"), t(b);
5886
5888
  }
5887
- function P(b, E, z) {
5889
+ function I(b, E, z) {
5888
5890
  let F = 0;
5889
5891
  return U;
5890
5892
  function U(O) {
@@ -5905,7 +5907,7 @@ function Lf(e, t, n) {
5905
5907
  return O === l ? (F++, b.consume(O), T) : F >= o ? (b.exit("codeFencedFenceSequence"), ue(O) ? ye(b, S, "whitespace")(O) : S(O)) : z(O);
5906
5908
  }
5907
5909
  function S(O) {
5908
- return O === null || J(O) ? (b.exit("codeFencedFence"), E(O)) : z(O);
5910
+ return O === null || Q(O) ? (b.exit("codeFencedFence"), E(O)) : z(O);
5909
5911
  }
5910
5912
  }
5911
5913
  }
@@ -5937,10 +5939,10 @@ function Df(e, t, n) {
5937
5939
  return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : n(u);
5938
5940
  }
5939
5941
  function o(u) {
5940
- return u === null ? s(u) : J(u) ? e.attempt(Mf, o, s)(u) : (e.enter("codeFlowValue"), l(u));
5942
+ return u === null ? s(u) : Q(u) ? e.attempt(Mf, o, s)(u) : (e.enter("codeFlowValue"), l(u));
5941
5943
  }
5942
5944
  function l(u) {
5943
- return u === null || J(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), l);
5945
+ return u === null || Q(u) ? (e.exit("codeFlowValue"), o(u)) : (e.consume(u), l);
5944
5946
  }
5945
5947
  function s(u) {
5946
5948
  return e.exit("codeIndented"), t(u);
@@ -5950,11 +5952,11 @@ function Rf(e, t, n) {
5950
5952
  const r = this;
5951
5953
  return i;
5952
5954
  function i(o) {
5953
- return r.parser.lazy[r.now().line] ? n(o) : J(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ye(e, a, "linePrefix", 5)(o);
5955
+ return r.parser.lazy[r.now().line] ? n(o) : Q(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i) : ye(e, a, "linePrefix", 5)(o);
5954
5956
  }
5955
5957
  function a(o) {
5956
5958
  const l = r.events[r.events.length - 1];
5957
- return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : J(o) ? i(o) : n(o);
5959
+ return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(o) : Q(o) ? i(o) : n(o);
5958
5960
  }
5959
5961
  }
5960
5962
  const Bf = {
@@ -5989,10 +5991,10 @@ function qf(e, t, n) {
5989
5991
  return d === 96 ? (e.consume(d), r++, l) : (e.exit("codeTextSequence"), s(d));
5990
5992
  }
5991
5993
  function s(d) {
5992
- return d === null ? n(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), s) : d === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(d)) : J(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), s) : (e.enter("codeTextData"), u(d));
5994
+ return d === null ? n(d) : d === 32 ? (e.enter("space"), e.consume(d), e.exit("space"), s) : d === 96 ? (a = e.enter("codeTextSequence"), i = 0, c(d)) : Q(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), s) : (e.enter("codeTextData"), u(d));
5993
5995
  }
5994
5996
  function u(d) {
5995
- return d === null || d === 32 || d === 96 || J(d) ? (e.exit("codeTextData"), s(d)) : (e.consume(d), u);
5997
+ return d === null || d === 32 || d === 96 || Q(d) ? (e.exit("codeTextData"), s(d)) : (e.consume(d), u);
5996
5998
  }
5997
5999
  function c(d) {
5998
6000
  return d === 96 ? (e.consume(d), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(d)) : (a.type = "codeTextData", u(d));
@@ -6032,8 +6034,8 @@ function Uf(e, t) {
6032
6034
  // Find a void token that includes a break.
6033
6035
  l[p][0] === "exit" && l[p - 1][0] === "enter" && l[p][1].type === l[p - 1][1].type && l[p][1].start.line !== l[p][1].end.line && (h = p + 1, v.push(h), f._tokenizer = void 0, f.previous = void 0, f = f.next);
6034
6036
  for (o.events = [], f ? (f._tokenizer = void 0, f.previous = void 0) : v.pop(), p = v.length; p--; ) {
6035
- const g = l.slice(v[p], v[p + 1]), I = a.pop();
6036
- s.unshift([I, I + g.length - 1]), tt(e, I, 2, g);
6037
+ const g = l.slice(v[p], v[p + 1]), P = a.pop();
6038
+ s.unshift([P, P + g.length - 1]), tt(e, P, 2, g);
6037
6039
  }
6038
6040
  for (p = -1; ++p < s.length; )
6039
6041
  u[y + s[p][0]] = y + s[p][1], y += s[p][1] - s[p][0] - 1;
@@ -6058,7 +6060,7 @@ function Gf(e, t) {
6058
6060
  }), i(l);
6059
6061
  }
6060
6062
  function i(l) {
6061
- return l === null ? a(l) : J(l) ? e.check(
6063
+ return l === null ? a(l) : Q(l) ? e.check(
6062
6064
  Vf,
6063
6065
  o,
6064
6066
  a
@@ -6081,7 +6083,7 @@ function Xf(e, t, n) {
6081
6083
  return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), ye(e, a, "linePrefix");
6082
6084
  }
6083
6085
  function a(o) {
6084
- if (o === null || J(o))
6086
+ if (o === null || Q(o))
6085
6087
  return n(o);
6086
6088
  const l = r.events[r.events.length - 1];
6087
6089
  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);
@@ -6102,13 +6104,13 @@ function Go(e, t, n, r, i, a, o, l, s) {
6102
6104
  }), f(g));
6103
6105
  }
6104
6106
  function f(g) {
6105
- return g === 62 ? (e.exit("chunkString"), e.exit(l), p(g)) : g === null || g === 60 || J(g) ? n(g) : (e.consume(g), g === 92 ? y : f);
6107
+ return g === 62 ? (e.exit("chunkString"), e.exit(l), p(g)) : g === null || g === 60 || Q(g) ? n(g) : (e.consume(g), g === 92 ? y : f);
6106
6108
  }
6107
6109
  function y(g) {
6108
6110
  return g === 60 || g === 62 || g === 92 ? (e.consume(g), f) : f(g);
6109
6111
  }
6110
6112
  function h(g) {
6111
- return !c && (g === null || g === 41 || Ae(g)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(g)) : c < u && g === 40 ? (e.consume(g), c++, h) : g === 41 ? (e.consume(g), c--, h) : g === null || g === 32 || g === 40 || jr(g) ? n(g) : (e.consume(g), g === 92 ? v : h);
6113
+ return !c && (g === null || g === 41 || Fe(g)) ? (e.exit("chunkString"), e.exit(l), e.exit(o), e.exit(r), t(g)) : c < u && g === 40 ? (e.consume(g), c++, h) : g === 41 ? (e.consume(g), c--, h) : g === null || g === 32 || g === 40 || jr(g) ? n(g) : (e.consume(g), g === 92 ? v : h);
6112
6114
  }
6113
6115
  function v(g) {
6114
6116
  return g === 40 || g === 41 || g === 92 ? (e.consume(g), h) : h(g);
@@ -6127,12 +6129,12 @@ function Xo(e, t, n, r, i, a) {
6127
6129
  // which doesn’t need this.
6128
6130
  // Hidden footnotes hook.
6129
6131
  /* c8 ignore next 3 */
6130
- f === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(f) : f === 93 ? (e.exit(a), e.enter(i), e.consume(f), e.exit(i), e.exit(r), t) : J(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), c) : (e.enter("chunkString", {
6132
+ f === 94 && !l && "_hiddenFootnoteSupport" in o.parser.constructs ? n(f) : f === 93 ? (e.exit(a), e.enter(i), e.consume(f), e.exit(i), e.exit(r), t) : Q(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), c) : (e.enter("chunkString", {
6131
6133
  contentType: "string"
6132
6134
  }), d(f));
6133
6135
  }
6134
6136
  function d(f) {
6135
- return f === null || f === 91 || f === 93 || J(f) || l++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), s || (s = !ue(f)), f === 92 ? p : d);
6137
+ return f === null || f === 91 || f === 93 || Q(f) || l++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), s || (s = !ue(f)), f === 92 ? p : d);
6136
6138
  }
6137
6139
  function p(f) {
6138
6140
  return f === 91 || f === 92 || f === 93 ? (e.consume(f), l++, d) : d(f);
@@ -6148,12 +6150,12 @@ function Zo(e, t, n, r, i, a) {
6148
6150
  return p === o ? (e.enter(i), e.consume(p), e.exit(i), e.exit(r), t) : (e.enter(a), u(p));
6149
6151
  }
6150
6152
  function u(p) {
6151
- return p === o ? (e.exit(a), s(o)) : p === null ? n(p) : J(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), ye(e, u, "linePrefix")) : (e.enter("chunkString", {
6153
+ return p === o ? (e.exit(a), s(o)) : p === null ? n(p) : Q(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), ye(e, u, "linePrefix")) : (e.enter("chunkString", {
6152
6154
  contentType: "string"
6153
6155
  }), c(p));
6154
6156
  }
6155
6157
  function c(p) {
6156
- return p === o || p === null || J(p) ? (e.exit("chunkString"), u(p)) : (e.consume(p), p === 92 ? d : c);
6158
+ return p === o || p === null || Q(p) ? (e.exit("chunkString"), u(p)) : (e.consume(p), p === 92 ? d : c);
6157
6159
  }
6158
6160
  function d(p) {
6159
6161
  return p === o || p === 92 ? (e.consume(p), c) : c(p);
@@ -6163,7 +6165,7 @@ function Qt(e, t) {
6163
6165
  let n;
6164
6166
  return r;
6165
6167
  function r(i) {
6166
- return J(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : ue(i) ? ye(
6168
+ return Q(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : ue(i) ? ye(
6167
6169
  e,
6168
6170
  r,
6169
6171
  n ? "linePrefix" : "lineSuffix"
@@ -6205,7 +6207,7 @@ function Kf(e, t, n) {
6205
6207
  ), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), s) : n(f);
6206
6208
  }
6207
6209
  function s(f) {
6208
- return Ae(f) ? Qt(e, u)(f) : u(f);
6210
+ return Fe(f) ? Qt(e, u)(f) : u(f);
6209
6211
  }
6210
6212
  function u(f) {
6211
6213
  return Go(
@@ -6227,13 +6229,13 @@ function Kf(e, t, n) {
6227
6229
  return ue(f) ? ye(e, p, "whitespace")(f) : p(f);
6228
6230
  }
6229
6231
  function p(f) {
6230
- return f === null || J(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
6232
+ return f === null || Q(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
6231
6233
  }
6232
6234
  }
6233
6235
  function Jf(e, t, n) {
6234
6236
  return r;
6235
6237
  function r(l) {
6236
- return Ae(l) ? Qt(e, i)(l) : n(l);
6238
+ return Fe(l) ? Qt(e, i)(l) : n(l);
6237
6239
  }
6238
6240
  function i(l) {
6239
6241
  return Zo(
@@ -6249,7 +6251,7 @@ function Jf(e, t, n) {
6249
6251
  return ue(l) ? ye(e, o, "whitespace")(l) : o(l);
6250
6252
  }
6251
6253
  function o(l) {
6252
- return l === null || J(l) ? t(l) : n(l);
6254
+ return l === null || Q(l) ? t(l) : n(l);
6253
6255
  }
6254
6256
  }
6255
6257
  const Qf = {
@@ -6262,7 +6264,7 @@ function ed(e, t, n) {
6262
6264
  return e.enter("hardBreakEscape"), e.consume(a), i;
6263
6265
  }
6264
6266
  function i(a) {
6265
- return J(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
6267
+ return Q(a) ? (e.exit("hardBreakEscape"), t(a)) : n(a);
6266
6268
  }
6267
6269
  }
6268
6270
  const td = {
@@ -6298,16 +6300,16 @@ function rd(e, t, n) {
6298
6300
  return e.enter("atxHeadingSequence"), o(c);
6299
6301
  }
6300
6302
  function o(c) {
6301
- return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Ae(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6303
+ return c === 35 && r++ < 6 ? (e.consume(c), o) : c === null || Fe(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6302
6304
  }
6303
6305
  function l(c) {
6304
- return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || J(c) ? (e.exit("atxHeading"), t(c)) : ue(c) ? ye(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6306
+ return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || Q(c) ? (e.exit("atxHeading"), t(c)) : ue(c) ? ye(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6305
6307
  }
6306
6308
  function s(c) {
6307
6309
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
6308
6310
  }
6309
6311
  function u(c) {
6310
- return c === null || c === 35 || Ae(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6312
+ return c === null || c === 35 || Fe(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6311
6313
  }
6312
6314
  }
6313
6315
  const id = [
@@ -6418,35 +6420,35 @@ function ud(e, t, n) {
6418
6420
  return Qe(w) ? (e.consume(w), o = String.fromCharCode(w), v) : n(w);
6419
6421
  }
6420
6422
  function v(w) {
6421
- if (w === null || w === 47 || w === 62 || Ae(w)) {
6423
+ if (w === null || w === 47 || w === 62 || Fe(w)) {
6422
6424
  const K = w === 47, oe = o.toLowerCase();
6423
- return !K && !a && wa.includes(oe) ? (i = 1, r.interrupt ? t(w) : B(w)) : id.includes(o.toLowerCase()) ? (i = 6, K ? (e.consume(w), g) : r.interrupt ? t(w) : B(w)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : a ? I(w) : A(w));
6425
+ return !K && !a && wa.includes(oe) ? (i = 1, r.interrupt ? t(w) : B(w)) : id.includes(o.toLowerCase()) ? (i = 6, K ? (e.consume(w), g) : r.interrupt ? t(w) : B(w)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : a ? P(w) : A(w));
6424
6426
  }
6425
- return w === 45 || Be(w) ? (e.consume(w), o += String.fromCharCode(w), v) : n(w);
6427
+ return w === 45 || He(w) ? (e.consume(w), o += String.fromCharCode(w), v) : n(w);
6426
6428
  }
6427
6429
  function g(w) {
6428
6430
  return w === 62 ? (e.consume(w), r.interrupt ? t : B) : n(w);
6429
6431
  }
6430
- function I(w) {
6431
- return ue(w) ? (e.consume(w), I) : U(w);
6432
+ function P(w) {
6433
+ return ue(w) ? (e.consume(w), P) : U(w);
6432
6434
  }
6433
6435
  function A(w) {
6434
6436
  return w === 47 ? (e.consume(w), U) : w === 58 || w === 95 || Qe(w) ? (e.consume(w), q) : ue(w) ? (e.consume(w), A) : U(w);
6435
6437
  }
6436
6438
  function q(w) {
6437
- return w === 45 || w === 46 || w === 58 || w === 95 || Be(w) ? (e.consume(w), q) : P(w);
6439
+ return w === 45 || w === 46 || w === 58 || w === 95 || He(w) ? (e.consume(w), q) : I(w);
6438
6440
  }
6439
- function P(w) {
6440
- return w === 61 ? (e.consume(w), b) : ue(w) ? (e.consume(w), P) : A(w);
6441
+ function I(w) {
6442
+ return w === 61 ? (e.consume(w), b) : ue(w) ? (e.consume(w), I) : A(w);
6441
6443
  }
6442
6444
  function b(w) {
6443
6445
  return w === null || w === 60 || w === 61 || w === 62 || w === 96 ? n(w) : w === 34 || w === 39 ? (e.consume(w), s = w, E) : ue(w) ? (e.consume(w), b) : z(w);
6444
6446
  }
6445
6447
  function E(w) {
6446
- return w === s ? (e.consume(w), s = null, F) : w === null || J(w) ? n(w) : (e.consume(w), E);
6448
+ return w === s ? (e.consume(w), s = null, F) : w === null || Q(w) ? n(w) : (e.consume(w), E);
6447
6449
  }
6448
6450
  function z(w) {
6449
- return w === null || w === 34 || w === 39 || w === 47 || w === 60 || w === 61 || w === 62 || w === 96 || Ae(w) ? P(w) : (e.consume(w), z);
6451
+ return w === null || w === 34 || w === 39 || w === 47 || w === 60 || w === 61 || w === 62 || w === 96 || Fe(w) ? I(w) : (e.consume(w), z);
6450
6452
  }
6451
6453
  function F(w) {
6452
6454
  return w === 47 || w === 62 || ue(w) ? A(w) : n(w);
@@ -6455,14 +6457,14 @@ function ud(e, t, n) {
6455
6457
  return w === 62 ? (e.consume(w), M) : n(w);
6456
6458
  }
6457
6459
  function M(w) {
6458
- return w === null || J(w) ? B(w) : ue(w) ? (e.consume(w), M) : n(w);
6460
+ return w === null || Q(w) ? B(w) : ue(w) ? (e.consume(w), M) : n(w);
6459
6461
  }
6460
6462
  function B(w) {
6461
- return w === 45 && i === 2 ? (e.consume(w), N) : w === 60 && i === 1 ? (e.consume(w), H) : w === 62 && i === 4 ? (e.consume(w), W) : w === 63 && i === 3 ? (e.consume(w), m) : w === 93 && i === 5 ? (e.consume(w), D) : J(w) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6463
+ return w === 45 && i === 2 ? (e.consume(w), N) : w === 60 && i === 1 ? (e.consume(w), H) : w === 62 && i === 4 ? (e.consume(w), W) : w === 63 && i === 3 ? (e.consume(w), m) : w === 93 && i === 5 ? (e.consume(w), D) : Q(w) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6462
6464
  od,
6463
6465
  Y,
6464
6466
  T
6465
- )(w)) : w === null || J(w) ? (e.exit("htmlFlowData"), T(w)) : (e.consume(w), B);
6467
+ )(w)) : w === null || Q(w) ? (e.exit("htmlFlowData"), T(w)) : (e.consume(w), B);
6466
6468
  }
6467
6469
  function T(w) {
6468
6470
  return e.check(
@@ -6475,7 +6477,7 @@ function ud(e, t, n) {
6475
6477
  return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), O;
6476
6478
  }
6477
6479
  function O(w) {
6478
- return w === null || J(w) ? T(w) : (e.enter("htmlFlowData"), B(w));
6480
+ return w === null || Q(w) ? T(w) : (e.enter("htmlFlowData"), B(w));
6479
6481
  }
6480
6482
  function N(w) {
6481
6483
  return w === 45 ? (e.consume(w), m) : B(w);
@@ -6497,7 +6499,7 @@ function ud(e, t, n) {
6497
6499
  return w === 62 ? (e.consume(w), W) : w === 45 && i === 2 ? (e.consume(w), m) : B(w);
6498
6500
  }
6499
6501
  function W(w) {
6500
- return w === null || J(w) ? (e.exit("htmlFlowData"), Y(w)) : (e.consume(w), W);
6502
+ return w === null || Q(w) ? (e.exit("htmlFlowData"), Y(w)) : (e.consume(w), W);
6501
6503
  }
6502
6504
  function Y(w) {
6503
6505
  return e.exit("htmlFlow"), t(w);
@@ -6507,7 +6509,7 @@ function cd(e, t, n) {
6507
6509
  const r = this;
6508
6510
  return i;
6509
6511
  function i(o) {
6510
- return J(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
6512
+ return Q(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : n(o);
6511
6513
  }
6512
6514
  function a(o) {
6513
6515
  return r.parser.lazy[r.now().line] ? n(o) : t(o);
@@ -6531,16 +6533,16 @@ function pd(e, t, n) {
6531
6533
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), s;
6532
6534
  }
6533
6535
  function s(m) {
6534
- return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), P) : m === 63 ? (e.consume(m), A) : Qe(m) ? (e.consume(m), z) : n(m);
6536
+ return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), I) : m === 63 ? (e.consume(m), A) : Qe(m) ? (e.consume(m), z) : n(m);
6535
6537
  }
6536
6538
  function u(m) {
6537
- return m === 45 ? (e.consume(m), c) : m === 91 ? (e.consume(m), a = 0, y) : Qe(m) ? (e.consume(m), I) : n(m);
6539
+ return m === 45 ? (e.consume(m), c) : m === 91 ? (e.consume(m), a = 0, y) : Qe(m) ? (e.consume(m), P) : n(m);
6538
6540
  }
6539
6541
  function c(m) {
6540
6542
  return m === 45 ? (e.consume(m), f) : n(m);
6541
6543
  }
6542
6544
  function d(m) {
6543
- return m === null ? n(m) : m === 45 ? (e.consume(m), p) : J(m) ? (o = d, H(m)) : (e.consume(m), d);
6545
+ return m === null ? n(m) : m === 45 ? (e.consume(m), p) : Q(m) ? (o = d, H(m)) : (e.consume(m), d);
6544
6546
  }
6545
6547
  function p(m) {
6546
6548
  return m === 45 ? (e.consume(m), f) : d(m);
@@ -6553,7 +6555,7 @@ function pd(e, t, n) {
6553
6555
  return m === W.charCodeAt(a++) ? (e.consume(m), a === W.length ? h : y) : n(m);
6554
6556
  }
6555
6557
  function h(m) {
6556
- return m === null ? n(m) : m === 93 ? (e.consume(m), v) : J(m) ? (o = h, H(m)) : (e.consume(m), h);
6558
+ return m === null ? n(m) : m === 93 ? (e.consume(m), v) : Q(m) ? (o = h, H(m)) : (e.consume(m), h);
6557
6559
  }
6558
6560
  function v(m) {
6559
6561
  return m === 93 ? (e.consume(m), g) : h(m);
@@ -6561,47 +6563,47 @@ function pd(e, t, n) {
6561
6563
  function g(m) {
6562
6564
  return m === 62 ? N(m) : m === 93 ? (e.consume(m), g) : h(m);
6563
6565
  }
6564
- function I(m) {
6565
- return m === null || m === 62 ? N(m) : J(m) ? (o = I, H(m)) : (e.consume(m), I);
6566
+ function P(m) {
6567
+ return m === null || m === 62 ? N(m) : Q(m) ? (o = P, H(m)) : (e.consume(m), P);
6566
6568
  }
6567
6569
  function A(m) {
6568
- return m === null ? n(m) : m === 63 ? (e.consume(m), q) : J(m) ? (o = A, H(m)) : (e.consume(m), A);
6570
+ return m === null ? n(m) : m === 63 ? (e.consume(m), q) : Q(m) ? (o = A, H(m)) : (e.consume(m), A);
6569
6571
  }
6570
6572
  function q(m) {
6571
6573
  return m === 62 ? N(m) : A(m);
6572
6574
  }
6573
- function P(m) {
6575
+ function I(m) {
6574
6576
  return Qe(m) ? (e.consume(m), b) : n(m);
6575
6577
  }
6576
6578
  function b(m) {
6577
- return m === 45 || Be(m) ? (e.consume(m), b) : E(m);
6579
+ return m === 45 || He(m) ? (e.consume(m), b) : E(m);
6578
6580
  }
6579
6581
  function E(m) {
6580
- return J(m) ? (o = E, H(m)) : ue(m) ? (e.consume(m), E) : N(m);
6582
+ return Q(m) ? (o = E, H(m)) : ue(m) ? (e.consume(m), E) : N(m);
6581
6583
  }
6582
6584
  function z(m) {
6583
- return m === 45 || Be(m) ? (e.consume(m), z) : m === 47 || m === 62 || Ae(m) ? F(m) : n(m);
6585
+ return m === 45 || He(m) ? (e.consume(m), z) : m === 47 || m === 62 || Fe(m) ? F(m) : n(m);
6584
6586
  }
6585
6587
  function F(m) {
6586
- return m === 47 ? (e.consume(m), N) : m === 58 || m === 95 || Qe(m) ? (e.consume(m), U) : J(m) ? (o = F, H(m)) : ue(m) ? (e.consume(m), F) : N(m);
6588
+ return m === 47 ? (e.consume(m), N) : m === 58 || m === 95 || Qe(m) ? (e.consume(m), U) : Q(m) ? (o = F, H(m)) : ue(m) ? (e.consume(m), F) : N(m);
6587
6589
  }
6588
6590
  function U(m) {
6589
- return m === 45 || m === 46 || m === 58 || m === 95 || Be(m) ? (e.consume(m), U) : M(m);
6591
+ return m === 45 || m === 46 || m === 58 || m === 95 || He(m) ? (e.consume(m), U) : M(m);
6590
6592
  }
6591
6593
  function M(m) {
6592
- return m === 61 ? (e.consume(m), B) : J(m) ? (o = M, H(m)) : ue(m) ? (e.consume(m), M) : F(m);
6594
+ return m === 61 ? (e.consume(m), B) : Q(m) ? (o = M, H(m)) : ue(m) ? (e.consume(m), M) : F(m);
6593
6595
  }
6594
6596
  function B(m) {
6595
- return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, T) : J(m) ? (o = B, H(m)) : ue(m) ? (e.consume(m), B) : (e.consume(m), S);
6597
+ return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, T) : Q(m) ? (o = B, H(m)) : ue(m) ? (e.consume(m), B) : (e.consume(m), S);
6596
6598
  }
6597
6599
  function T(m) {
6598
- return m === i ? (e.consume(m), i = void 0, O) : m === null ? n(m) : J(m) ? (o = T, H(m)) : (e.consume(m), T);
6600
+ return m === i ? (e.consume(m), i = void 0, O) : m === null ? n(m) : Q(m) ? (o = T, H(m)) : (e.consume(m), T);
6599
6601
  }
6600
6602
  function S(m) {
6601
- return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || Ae(m) ? F(m) : (e.consume(m), S);
6603
+ return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || Fe(m) ? F(m) : (e.consume(m), S);
6602
6604
  }
6603
6605
  function O(m) {
6604
- return m === 47 || m === 62 || Ae(m) ? F(m) : n(m);
6606
+ return m === 47 || m === 62 || Fe(m) ? F(m) : n(m);
6605
6607
  }
6606
6608
  function N(m) {
6607
6609
  return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
@@ -6670,19 +6672,19 @@ function bd(e, t) {
6670
6672
  return l = [
6671
6673
  ["enter", s, t],
6672
6674
  ["enter", u, t]
6673
- ], l = He(l, e.slice(a + 1, a + r + 3)), l = He(l, [["enter", c, t]]), l = He(
6675
+ ], l = qe(l, e.slice(a + 1, a + r + 3)), l = qe(l, [["enter", c, t]]), l = qe(
6674
6676
  l,
6675
6677
  Zr(
6676
6678
  t.parser.constructs.insideSpan.null,
6677
6679
  e.slice(a + r + 4, o - 3),
6678
6680
  t
6679
6681
  )
6680
- ), l = He(l, [
6682
+ ), l = qe(l, [
6681
6683
  ["exit", c, t],
6682
6684
  e[o - 2],
6683
6685
  e[o - 1],
6684
6686
  ["exit", u, t]
6685
- ]), l = He(l, e.slice(o + 1)), l = He(l, [["exit", s, t]]), tt(e, a, e.length, l), e;
6687
+ ]), l = qe(l, e.slice(o + 1)), l = qe(l, [["exit", s, t]]), tt(e, a, e.length, l), e;
6686
6688
  }
6687
6689
  function vd(e, t, n) {
6688
6690
  const r = this;
@@ -6734,7 +6736,7 @@ function xd(e, t, n) {
6734
6736
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), i;
6735
6737
  }
6736
6738
  function i(d) {
6737
- return Ae(d) ? Qt(e, a)(d) : a(d);
6739
+ return Fe(d) ? Qt(e, a)(d) : a(d);
6738
6740
  }
6739
6741
  function a(d) {
6740
6742
  return d === 41 ? c(d) : Go(
@@ -6750,7 +6752,7 @@ function xd(e, t, n) {
6750
6752
  )(d);
6751
6753
  }
6752
6754
  function o(d) {
6753
- return Ae(d) ? Qt(e, s)(d) : c(d);
6755
+ return Fe(d) ? Qt(e, s)(d) : c(d);
6754
6756
  }
6755
6757
  function l(d) {
6756
6758
  return n(d);
@@ -6766,7 +6768,7 @@ function xd(e, t, n) {
6766
6768
  )(d) : c(d);
6767
6769
  }
6768
6770
  function u(d) {
6769
- return Ae(d) ? Qt(e, c)(d) : c(d);
6771
+ return Fe(d) ? Qt(e, c)(d) : c(d);
6770
6772
  }
6771
6773
  function c(d) {
6772
6774
  return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), t) : n(d);
@@ -6863,23 +6865,23 @@ function Od(e, t, n) {
6863
6865
  return i = u, l(u);
6864
6866
  }
6865
6867
  function l(u) {
6866
- return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || J(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
6868
+ return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || Q(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
6867
6869
  }
6868
6870
  function s(u) {
6869
6871
  return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), ue(u) ? ye(e, l, "whitespace")(u) : l(u));
6870
6872
  }
6871
6873
  }
6872
- const Ie = {
6874
+ const Ae = {
6873
6875
  name: "list",
6874
6876
  tokenize: Ad,
6875
6877
  continuation: {
6876
6878
  tokenize: Fd
6877
6879
  },
6878
6880
  exit: Ld
6879
- }, Pd = {
6881
+ }, Id = {
6880
6882
  tokenize: jd,
6881
6883
  partial: !0
6882
- }, Id = {
6884
+ }, Pd = {
6883
6885
  tokenize: Nd,
6884
6886
  partial: !0
6885
6887
  };
@@ -6908,7 +6910,7 @@ function Ad(e, t, n) {
6908
6910
  // Can’t be empty when interrupting.
6909
6911
  r.interrupt ? n : c,
6910
6912
  e.attempt(
6911
- Pd,
6913
+ Id,
6912
6914
  p,
6913
6915
  d
6914
6916
  )
@@ -6936,12 +6938,12 @@ function Fd(e, t, n) {
6936
6938
  )(l);
6937
6939
  }
6938
6940
  function a(l) {
6939
- return r.containerState.furtherBlankLines || !ue(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Id, t, o)(l));
6941
+ return r.containerState.furtherBlankLines || !ue(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Pd, t, o)(l));
6940
6942
  }
6941
6943
  function o(l) {
6942
6944
  return r.containerState._closeFlow = !0, r.interrupt = void 0, ye(
6943
6945
  e,
6944
- e.attempt(Ie, t, n),
6946
+ e.attempt(Ae, t, n),
6945
6947
  "linePrefix",
6946
6948
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
6947
6949
  )(l);
@@ -7019,7 +7021,7 @@ function Dd(e, t, n) {
7019
7021
  return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), ue(u) ? ye(e, s, "lineSuffix")(u) : s(u));
7020
7022
  }
7021
7023
  function s(u) {
7022
- return u === null || J(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
7024
+ return u === null || Q(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
7023
7025
  }
7024
7026
  }
7025
7027
  const Rd = {
@@ -7169,10 +7171,10 @@ function $d(e, t, n) {
7169
7171
  const i = {}, a = [];
7170
7172
  let o = [], l = [];
7171
7173
  const s = {
7172
- consume: I,
7174
+ consume: P,
7173
7175
  enter: A,
7174
7176
  exit: q,
7175
- attempt: E(P),
7177
+ attempt: E(I),
7176
7178
  check: E(b),
7177
7179
  interrupt: E(b, {
7178
7180
  interrupt: !0
@@ -7192,7 +7194,7 @@ function $d(e, t, n) {
7192
7194
  let c = t.tokenize.call(u, s);
7193
7195
  return t.resolveAll && a.push(t), u;
7194
7196
  function d(M) {
7195
- return o = He(o, M), v(), o[o.length - 1] !== null ? [] : (z(t, 0), u.events = Zr(a, u.events, u), u.events);
7197
+ return o = qe(o, M), v(), o[o.length - 1] !== null ? [] : (z(t, 0), u.events = Zr(a, u.events, u), u.events);
7196
7198
  }
7197
7199
  function p(M, B) {
7198
7200
  return Wd(f(M), B);
@@ -7227,8 +7229,8 @@ function $d(e, t, n) {
7227
7229
  function g(M) {
7228
7230
  c = c(M);
7229
7231
  }
7230
- function I(M) {
7231
- J(M) ? (r.line++, r.column = 1, r.offset += M === -3 ? 2 : 1, U()) : M !== -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 = M;
7232
+ function P(M) {
7233
+ Q(M) ? (r.line++, r.column = 1, r.offset += M === -3 ? 2 : 1, U()) : M !== -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 = M;
7232
7234
  }
7233
7235
  function A(M, B) {
7234
7236
  const T = B || {};
@@ -7238,7 +7240,7 @@ function $d(e, t, n) {
7238
7240
  const B = l.pop();
7239
7241
  return B.end = y(), u.events.push(["exit", B, u]), B;
7240
7242
  }
7241
- function P(M, B) {
7243
+ function I(M, B) {
7242
7244
  z(M, B.from);
7243
7245
  }
7244
7246
  function b(M, B) {
@@ -7252,25 +7254,25 @@ function $d(e, t, n) {
7252
7254
  // @ts-expect-error Looks like a construct.
7253
7255
  Y([S])
7254
7256
  ) : W(S);
7255
- function W(ne) {
7257
+ function W(re) {
7256
7258
  return de;
7257
7259
  function de(pe) {
7258
- const xe = pe !== null && ne[pe], he = pe !== null && ne.null, Te = [
7260
+ const xe = pe !== null && re[pe], he = pe !== null && re.null, Ee = [
7259
7261
  // To do: add more extension tests.
7260
7262
  /* c8 ignore next 2 */
7261
7263
  ...Array.isArray(xe) ? xe : xe ? [xe] : [],
7262
7264
  ...Array.isArray(he) ? he : he ? [he] : []
7263
7265
  ];
7264
- return Y(Te)(pe);
7266
+ return Y(Ee)(pe);
7265
7267
  }
7266
7268
  }
7267
- function Y(ne) {
7268
- return H = ne, j = 0, ne.length === 0 ? N : w(ne[j]);
7269
+ function Y(re) {
7270
+ return H = re, j = 0, re.length === 0 ? N : w(re[j]);
7269
7271
  }
7270
- function w(ne) {
7272
+ function w(re) {
7271
7273
  return de;
7272
7274
  function de(pe) {
7273
- return m = F(), D = ne, ne.partial || (u.currentConstruct = ne), ne.name && u.parser.constructs.disable.null.includes(ne.name) ? oe() : ne.tokenize.call(
7275
+ return m = F(), D = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? oe() : re.tokenize.call(
7274
7276
  // If we do have fields, create an object w/ `context` as its
7275
7277
  // prototype.
7276
7278
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -7281,10 +7283,10 @@ function $d(e, t, n) {
7281
7283
  )(pe);
7282
7284
  }
7283
7285
  }
7284
- function K(ne) {
7286
+ function K(re) {
7285
7287
  return M(D, m), O;
7286
7288
  }
7287
- function oe(ne) {
7289
+ function oe(re) {
7288
7290
  return m.restore(), ++j < H.length ? w(H[j]) : N;
7289
7291
  }
7290
7292
  }
@@ -7367,19 +7369,19 @@ function Wd(e, t) {
7367
7369
  return r.join("");
7368
7370
  }
7369
7371
  const Gd = {
7370
- 42: Ie,
7371
- 43: Ie,
7372
- 45: Ie,
7373
- 48: Ie,
7374
- 49: Ie,
7375
- 50: Ie,
7376
- 51: Ie,
7377
- 52: Ie,
7378
- 53: Ie,
7379
- 54: Ie,
7380
- 55: Ie,
7381
- 56: Ie,
7382
- 57: Ie,
7372
+ 42: Ae,
7373
+ 43: Ae,
7374
+ 45: Ae,
7375
+ 48: Ae,
7376
+ 49: Ae,
7377
+ 50: Ae,
7378
+ 51: Ae,
7379
+ 52: Ae,
7380
+ 53: Ae,
7381
+ 54: Ae,
7382
+ 55: Ae,
7383
+ 56: Ae,
7384
+ 57: Ae,
7383
7385
  62: Uo
7384
7386
  }, Xd = {
7385
7387
  91: Zf
@@ -7543,18 +7545,18 @@ function cp(e) {
7543
7545
  transforms: [],
7544
7546
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
7545
7547
  enter: {
7546
- autolink: l(Ze),
7548
+ autolink: l(Ye),
7547
7549
  autolinkProtocol: M,
7548
7550
  autolinkEmail: M,
7549
7551
  atxHeading: l(Ot),
7550
- blockQuote: l(Te),
7552
+ blockQuote: l(Ee),
7551
7553
  characterEscape: M,
7552
7554
  characterReference: M,
7553
- codeFenced: l(Fe),
7555
+ codeFenced: l(Ne),
7554
7556
  codeFencedFenceInfo: s,
7555
7557
  codeFencedFenceMeta: s,
7556
- codeIndented: l(Fe, s),
7557
- codeText: l(Xe, s),
7558
+ codeIndented: l(Ne, s),
7559
+ codeText: l(Ze, s),
7558
7560
  codeTextData: M,
7559
7561
  data: M,
7560
7562
  codeFlowValue: M,
@@ -7569,10 +7571,10 @@ function cp(e) {
7569
7571
  htmlFlowData: M,
7570
7572
  htmlText: l(mt, s),
7571
7573
  htmlTextData: M,
7572
- image: l(Pt),
7574
+ image: l(It),
7573
7575
  label: s,
7574
- link: l(Ze),
7575
- listItem: l(re),
7576
+ link: l(Ye),
7577
+ listItem: l(ie),
7576
7578
  listItemValue: y,
7577
7579
  listOrdered: l(X, f),
7578
7580
  listUnordered: l(X),
@@ -7582,7 +7584,7 @@ function cp(e) {
7582
7584
  resourceDestinationString: s,
7583
7585
  resourceTitleString: s,
7584
7586
  setextHeading: l(Ot),
7585
- strong: l(Ee),
7587
+ strong: l(_e),
7586
7588
  thematicBreak: l(ct)
7587
7589
  },
7588
7590
  exit: {
@@ -7596,7 +7598,7 @@ function cp(e) {
7596
7598
  characterReferenceMarkerHexadecimal: de,
7597
7599
  characterReferenceMarkerNumeric: de,
7598
7600
  characterReferenceValue: pe,
7599
- codeFenced: c(I),
7601
+ codeFenced: c(P),
7600
7602
  codeFencedFence: g,
7601
7603
  codeFencedFenceInfo: h,
7602
7604
  codeFencedFenceMeta: v,
@@ -7608,7 +7610,7 @@ function cp(e) {
7608
7610
  definition: c(),
7609
7611
  definitionDestinationString: b,
7610
7612
  definitionLabelString: q,
7611
- definitionTitleString: P,
7613
+ definitionTitleString: I,
7612
7614
  emphasis: c(),
7613
7615
  hardBreakEscape: c(S),
7614
7616
  hardBreakTrailing: c(S),
@@ -7625,7 +7627,7 @@ function cp(e) {
7625
7627
  listOrdered: c(),
7626
7628
  listUnordered: c(),
7627
7629
  paragraph: c(),
7628
- referenceString: ne,
7630
+ referenceString: re,
7629
7631
  resourceDestinationString: Y,
7630
7632
  resourceTitleString: w,
7631
7633
  resource: K,
@@ -7640,12 +7642,12 @@ function cp(e) {
7640
7642
  const n = {};
7641
7643
  return r;
7642
7644
  function r(R) {
7643
- let V = {
7645
+ let $ = {
7644
7646
  type: "root",
7645
7647
  children: []
7646
7648
  };
7647
7649
  const Z = {
7648
- stack: [V],
7650
+ stack: [$],
7649
7651
  tokenStack: [],
7650
7652
  config: t,
7651
7653
  enter: u,
@@ -7654,19 +7656,19 @@ function cp(e) {
7654
7656
  resume: p,
7655
7657
  setData: a,
7656
7658
  getData: o
7657
- }, ae = [];
7659
+ }, J = [];
7658
7660
  let le = -1;
7659
7661
  for (; ++le < R.length; )
7660
7662
  if (R[le][1].type === "listOrdered" || R[le][1].type === "listUnordered")
7661
7663
  if (R[le][0] === "enter")
7662
- ae.push(le);
7664
+ J.push(le);
7663
7665
  else {
7664
- const we = ae.pop();
7665
- le = i(R, we, le);
7666
+ const Oe = J.pop();
7667
+ le = i(R, Oe, le);
7666
7668
  }
7667
7669
  for (le = -1; ++le < R.length; ) {
7668
- const we = t[R[le][0]];
7669
- Qo.call(we, R[le][1].type) && we[R[le][1].type].call(
7670
+ const Oe = t[R[le][0]];
7671
+ Qo.call(Oe, R[le][1].type) && Oe[R[le][1].type].call(
7670
7672
  Object.assign(
7671
7673
  {
7672
7674
  sliceSerialize: R[le][2].sliceSerialize
@@ -7677,10 +7679,10 @@ function cp(e) {
7677
7679
  );
7678
7680
  }
7679
7681
  if (Z.tokenStack.length > 0) {
7680
- const we = Z.tokenStack[Z.tokenStack.length - 1];
7681
- (we[1] || Sa).call(Z, void 0, we[0]);
7682
+ const Oe = Z.tokenStack[Z.tokenStack.length - 1];
7683
+ (Oe[1] || Sa).call(Z, void 0, Oe[0]);
7682
7684
  }
7683
- for (V.position = {
7685
+ for ($.position = {
7684
7686
  start: ft(
7685
7687
  R.length > 0 ? R[0][1].start : {
7686
7688
  line: 1,
@@ -7696,49 +7698,49 @@ function cp(e) {
7696
7698
  }
7697
7699
  )
7698
7700
  }, le = -1; ++le < t.transforms.length; )
7699
- V = t.transforms[le](V) || V;
7700
- return V;
7701
- }
7702
- function i(R, V, Z) {
7703
- let ae = V - 1, le = -1, we = !1, Ye, $e, Le, Ke;
7704
- for (; ++ae <= Z; ) {
7705
- const Ce = R[ae];
7706
- if (Ce[1].type === "listUnordered" || Ce[1].type === "listOrdered" || Ce[1].type === "blockQuote" ? (Ce[0] === "enter" ? le++ : le--, Ke = void 0) : Ce[1].type === "lineEndingBlank" ? Ce[0] === "enter" && (Ye && !Ke && !le && !Le && (Le = ae), Ke = void 0) : Ce[1].type === "linePrefix" || Ce[1].type === "listItemValue" || Ce[1].type === "listItemMarker" || Ce[1].type === "listItemPrefix" || Ce[1].type === "listItemPrefixWhitespace" || (Ke = void 0), !le && Ce[0] === "enter" && Ce[1].type === "listItemPrefix" || le === -1 && Ce[0] === "exit" && (Ce[1].type === "listUnordered" || Ce[1].type === "listOrdered")) {
7707
- if (Ye) {
7708
- let It = ae;
7709
- for ($e = void 0; It--; ) {
7710
- const Ve = R[It];
7711
- if (Ve[1].type === "lineEnding" || Ve[1].type === "lineEndingBlank") {
7712
- if (Ve[0] === "exit") continue;
7713
- $e && (R[$e][1].type = "lineEndingBlank", we = !0), Ve[1].type = "lineEnding", $e = It;
7714
- } else if (!(Ve[1].type === "linePrefix" || Ve[1].type === "blockQuotePrefix" || Ve[1].type === "blockQuotePrefixWhitespace" || Ve[1].type === "blockQuoteMarker" || Ve[1].type === "listItemIndent")) break;
7701
+ $ = t.transforms[le]($) || $;
7702
+ return $;
7703
+ }
7704
+ function i(R, $, Z) {
7705
+ let J = $ - 1, le = -1, Oe = !1, ze, Le, je, Ke;
7706
+ for (; ++J <= Z; ) {
7707
+ const we = R[J];
7708
+ if (we[1].type === "listUnordered" || we[1].type === "listOrdered" || we[1].type === "blockQuote" ? (we[0] === "enter" ? le++ : le--, Ke = void 0) : we[1].type === "lineEndingBlank" ? we[0] === "enter" && (ze && !Ke && !le && !je && (je = J), 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), !le && we[0] === "enter" && we[1].type === "listItemPrefix" || le === -1 && we[0] === "exit" && (we[1].type === "listUnordered" || we[1].type === "listOrdered")) {
7709
+ if (ze) {
7710
+ let Pt = J;
7711
+ for (Le = void 0; Pt--; ) {
7712
+ const We = R[Pt];
7713
+ if (We[1].type === "lineEnding" || We[1].type === "lineEndingBlank") {
7714
+ if (We[0] === "exit") continue;
7715
+ Le && (R[Le][1].type = "lineEndingBlank", Oe = !0), We[1].type = "lineEnding", Le = Pt;
7716
+ } else if (!(We[1].type === "linePrefix" || We[1].type === "blockQuotePrefix" || We[1].type === "blockQuotePrefixWhitespace" || We[1].type === "blockQuoteMarker" || We[1].type === "listItemIndent")) break;
7715
7717
  }
7716
- Le && (!$e || Le < $e) && (Ye._spread = !0), Ye.end = Object.assign(
7718
+ je && (!Le || je < Le) && (ze._spread = !0), ze.end = Object.assign(
7717
7719
  {},
7718
- $e ? R[$e][1].start : Ce[1].end
7719
- ), R.splice($e || ae, 0, ["exit", Ye, Ce[2]]), ae++, Z++;
7720
+ Le ? R[Le][1].start : we[1].end
7721
+ ), R.splice(Le || J, 0, ["exit", ze, we[2]]), J++, Z++;
7720
7722
  }
7721
- Ce[1].type === "listItemPrefix" && (Ye = {
7723
+ we[1].type === "listItemPrefix" && (ze = {
7722
7724
  type: "listItem",
7723
7725
  _spread: !1,
7724
- start: Object.assign({}, Ce[1].start),
7726
+ start: Object.assign({}, we[1].start),
7725
7727
  // @ts-expect-error: we’ll add `end` in a second.
7726
7728
  end: void 0
7727
- }, R.splice(ae, 0, ["enter", Ye, Ce[2]]), ae++, Z++, Le = void 0, Ke = !0);
7729
+ }, R.splice(J, 0, ["enter", ze, we[2]]), J++, Z++, je = void 0, Ke = !0);
7728
7730
  }
7729
7731
  }
7730
- return R[V][1]._spread = we, Z;
7732
+ return R[$][1]._spread = Oe, Z;
7731
7733
  }
7732
- function a(R, V) {
7733
- n[R] = V;
7734
+ function a(R, $) {
7735
+ n[R] = $;
7734
7736
  }
7735
7737
  function o(R) {
7736
7738
  return n[R];
7737
7739
  }
7738
- function l(R, V) {
7740
+ function l(R, $) {
7739
7741
  return Z;
7740
- function Z(ae) {
7741
- u.call(this, R(ae), ae), V && V.call(this, ae);
7742
+ function Z(J) {
7743
+ u.call(this, R(J), J), $ && $.call(this, J);
7742
7744
  }
7743
7745
  }
7744
7746
  function s() {
@@ -7747,21 +7749,21 @@ function cp(e) {
7747
7749
  children: []
7748
7750
  });
7749
7751
  }
7750
- function u(R, V, Z) {
7751
- return this.stack[this.stack.length - 1].children.push(R), this.stack.push(R), this.tokenStack.push([V, Z]), R.position = {
7752
- start: ft(V.start)
7752
+ function u(R, $, Z) {
7753
+ return this.stack[this.stack.length - 1].children.push(R), this.stack.push(R), this.tokenStack.push([$, Z]), R.position = {
7754
+ start: ft($.start)
7753
7755
  }, R;
7754
7756
  }
7755
7757
  function c(R) {
7756
- return V;
7757
- function V(Z) {
7758
+ return $;
7759
+ function $(Z) {
7758
7760
  R && R.call(this, Z), d.call(this, Z);
7759
7761
  }
7760
7762
  }
7761
- function d(R, V) {
7762
- const Z = this.stack.pop(), ae = this.tokenStack.pop();
7763
- if (ae)
7764
- ae[0].type !== R.type && (V ? V.call(this, R, ae[0]) : (ae[1] || Sa).call(this, R, ae[0]));
7763
+ function d(R, $) {
7764
+ const Z = this.stack.pop(), J = this.tokenStack.pop();
7765
+ if (J)
7766
+ J[0].type !== R.type && ($ ? $.call(this, R, J[0]) : (J[1] || Sa).call(this, R, J[0]));
7765
7767
  else throw new Error(
7766
7768
  "Cannot close `" + R.type + "` (" + Jt({
7767
7769
  start: R.start,
@@ -7778,100 +7780,100 @@ function cp(e) {
7778
7780
  }
7779
7781
  function y(R) {
7780
7782
  if (o("expectingFirstListItemValue")) {
7781
- const V = this.stack[this.stack.length - 2];
7782
- V.start = Number.parseInt(this.sliceSerialize(R), 10), a("expectingFirstListItemValue");
7783
+ const $ = this.stack[this.stack.length - 2];
7784
+ $.start = Number.parseInt(this.sliceSerialize(R), 10), a("expectingFirstListItemValue");
7783
7785
  }
7784
7786
  }
7785
7787
  function h() {
7786
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7787
- V.lang = R;
7788
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7789
+ $.lang = R;
7788
7790
  }
7789
7791
  function v() {
7790
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7791
- V.meta = R;
7792
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7793
+ $.meta = R;
7792
7794
  }
7793
7795
  function g() {
7794
7796
  o("flowCodeInside") || (this.buffer(), a("flowCodeInside", !0));
7795
7797
  }
7796
- function I() {
7797
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7798
- V.value = R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
7798
+ function P() {
7799
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7800
+ $.value = R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
7799
7801
  }
7800
7802
  function A() {
7801
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7802
- V.value = R.replace(/(\r?\n|\r)$/g, "");
7803
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7804
+ $.value = R.replace(/(\r?\n|\r)$/g, "");
7803
7805
  }
7804
7806
  function q(R) {
7805
- const V = this.resume(), Z = this.stack[this.stack.length - 1];
7806
- Z.label = V, Z.identifier = Lt(
7807
+ const $ = this.resume(), Z = this.stack[this.stack.length - 1];
7808
+ Z.label = $, Z.identifier = Lt(
7807
7809
  this.sliceSerialize(R)
7808
7810
  ).toLowerCase();
7809
7811
  }
7810
- function P() {
7811
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7812
- V.title = R;
7812
+ function I() {
7813
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7814
+ $.title = R;
7813
7815
  }
7814
7816
  function b() {
7815
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7816
- V.url = R;
7817
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7818
+ $.url = R;
7817
7819
  }
7818
7820
  function E(R) {
7819
- const V = this.stack[this.stack.length - 1];
7820
- if (!V.depth) {
7821
+ const $ = this.stack[this.stack.length - 1];
7822
+ if (!$.depth) {
7821
7823
  const Z = this.sliceSerialize(R).length;
7822
- V.depth = Z;
7824
+ $.depth = Z;
7823
7825
  }
7824
7826
  }
7825
7827
  function z() {
7826
7828
  a("setextHeadingSlurpLineEnding", !0);
7827
7829
  }
7828
7830
  function F(R) {
7829
- const V = this.stack[this.stack.length - 1];
7830
- V.depth = this.sliceSerialize(R).charCodeAt(0) === 61 ? 1 : 2;
7831
+ const $ = this.stack[this.stack.length - 1];
7832
+ $.depth = this.sliceSerialize(R).charCodeAt(0) === 61 ? 1 : 2;
7831
7833
  }
7832
7834
  function U() {
7833
7835
  a("setextHeadingSlurpLineEnding");
7834
7836
  }
7835
7837
  function M(R) {
7836
- const V = this.stack[this.stack.length - 1];
7837
- let Z = V.children[V.children.length - 1];
7838
- (!Z || Z.type !== "text") && (Z = Ne(), Z.position = {
7838
+ const $ = this.stack[this.stack.length - 1];
7839
+ let Z = $.children[$.children.length - 1];
7840
+ (!Z || Z.type !== "text") && (Z = Ie(), Z.position = {
7839
7841
  start: ft(R.start)
7840
- }, V.children.push(Z)), this.stack.push(Z);
7842
+ }, $.children.push(Z)), this.stack.push(Z);
7841
7843
  }
7842
7844
  function B(R) {
7843
- const V = this.stack.pop();
7844
- V.value += this.sliceSerialize(R), V.position.end = ft(R.end);
7845
+ const $ = this.stack.pop();
7846
+ $.value += this.sliceSerialize(R), $.position.end = ft(R.end);
7845
7847
  }
7846
7848
  function T(R) {
7847
- const V = this.stack[this.stack.length - 1];
7849
+ const $ = this.stack[this.stack.length - 1];
7848
7850
  if (o("atHardBreak")) {
7849
- const Z = V.children[V.children.length - 1];
7851
+ const Z = $.children[$.children.length - 1];
7850
7852
  Z.position.end = ft(R.end), a("atHardBreak");
7851
7853
  return;
7852
7854
  }
7853
- !o("setextHeadingSlurpLineEnding") && t.canContainEols.includes(V.type) && (M.call(this, R), B.call(this, R));
7855
+ !o("setextHeadingSlurpLineEnding") && t.canContainEols.includes($.type) && (M.call(this, R), B.call(this, R));
7854
7856
  }
7855
7857
  function S() {
7856
7858
  a("atHardBreak", !0);
7857
7859
  }
7858
7860
  function O() {
7859
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7860
- V.value = R;
7861
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7862
+ $.value = R;
7861
7863
  }
7862
7864
  function N() {
7863
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7864
- V.value = R;
7865
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7866
+ $.value = R;
7865
7867
  }
7866
7868
  function H() {
7867
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7868
- V.value = R;
7869
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7870
+ $.value = R;
7869
7871
  }
7870
7872
  function j() {
7871
7873
  const R = this.stack[this.stack.length - 1];
7872
7874
  if (o("inReference")) {
7873
- const V = o("referenceType") || "shortcut";
7874
- R.type += "Reference", R.referenceType = V, delete R.url, delete R.title;
7875
+ const $ = o("referenceType") || "shortcut";
7876
+ R.type += "Reference", R.referenceType = $, delete R.url, delete R.title;
7875
7877
  } else
7876
7878
  delete R.identifier, delete R.label;
7877
7879
  a("referenceType");
@@ -7879,31 +7881,31 @@ function cp(e) {
7879
7881
  function D() {
7880
7882
  const R = this.stack[this.stack.length - 1];
7881
7883
  if (o("inReference")) {
7882
- const V = o("referenceType") || "shortcut";
7883
- R.type += "Reference", R.referenceType = V, delete R.url, delete R.title;
7884
+ const $ = o("referenceType") || "shortcut";
7885
+ R.type += "Reference", R.referenceType = $, delete R.url, delete R.title;
7884
7886
  } else
7885
7887
  delete R.identifier, delete R.label;
7886
7888
  a("referenceType");
7887
7889
  }
7888
7890
  function m(R) {
7889
- const V = this.sliceSerialize(R), Z = this.stack[this.stack.length - 2];
7890
- Z.label = lp(V), Z.identifier = Lt(V).toLowerCase();
7891
+ const $ = this.sliceSerialize(R), Z = this.stack[this.stack.length - 2];
7892
+ Z.label = lp($), Z.identifier = Lt($).toLowerCase();
7891
7893
  }
7892
7894
  function W() {
7893
- const R = this.stack[this.stack.length - 1], V = this.resume(), Z = this.stack[this.stack.length - 1];
7895
+ const R = this.stack[this.stack.length - 1], $ = this.resume(), Z = this.stack[this.stack.length - 1];
7894
7896
  if (a("inReference", !0), Z.type === "link") {
7895
- const ae = R.children;
7896
- Z.children = ae;
7897
+ const J = R.children;
7898
+ Z.children = J;
7897
7899
  } else
7898
- Z.alt = V;
7900
+ Z.alt = $;
7899
7901
  }
7900
7902
  function Y() {
7901
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7902
- V.url = R;
7903
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7904
+ $.url = R;
7903
7905
  }
7904
7906
  function w() {
7905
- const R = this.resume(), V = this.stack[this.stack.length - 1];
7906
- V.title = R;
7907
+ const R = this.resume(), $ = this.stack[this.stack.length - 1];
7908
+ $.title = R;
7907
7909
  }
7908
7910
  function K() {
7909
7911
  a("inReference");
@@ -7911,9 +7913,9 @@ function cp(e) {
7911
7913
  function oe() {
7912
7914
  a("referenceType", "collapsed");
7913
7915
  }
7914
- function ne(R) {
7915
- const V = this.resume(), Z = this.stack[this.stack.length - 1];
7916
- Z.label = V, Z.identifier = Lt(
7916
+ function re(R) {
7917
+ const $ = this.resume(), Z = this.stack[this.stack.length - 1];
7918
+ Z.label = $, Z.identifier = Lt(
7917
7919
  this.sliceSerialize(R)
7918
7920
  ).toLowerCase(), a("referenceType", "full");
7919
7921
  }
@@ -7921,32 +7923,32 @@ function cp(e) {
7921
7923
  a("characterReferenceType", R.type);
7922
7924
  }
7923
7925
  function pe(R) {
7924
- const V = this.sliceSerialize(R), Z = o("characterReferenceType");
7925
- let ae;
7926
- Z ? (ae = Jo(
7927
- V,
7926
+ const $ = this.sliceSerialize(R), Z = o("characterReferenceType");
7927
+ let J;
7928
+ Z ? (J = Jo(
7929
+ $,
7928
7930
  Z === "characterReferenceMarkerNumeric" ? 10 : 16
7929
- ), a("characterReferenceType")) : ae = Yr(V);
7931
+ ), a("characterReferenceType")) : J = Yr($);
7930
7932
  const le = this.stack.pop();
7931
- le.value += ae, le.position.end = ft(R.end);
7933
+ le.value += J, le.position.end = ft(R.end);
7932
7934
  }
7933
7935
  function xe(R) {
7934
7936
  B.call(this, R);
7935
- const V = this.stack[this.stack.length - 1];
7936
- V.url = this.sliceSerialize(R);
7937
+ const $ = this.stack[this.stack.length - 1];
7938
+ $.url = this.sliceSerialize(R);
7937
7939
  }
7938
7940
  function he(R) {
7939
7941
  B.call(this, R);
7940
- const V = this.stack[this.stack.length - 1];
7941
- V.url = "mailto:" + this.sliceSerialize(R);
7942
+ const $ = this.stack[this.stack.length - 1];
7943
+ $.url = "mailto:" + this.sliceSerialize(R);
7942
7944
  }
7943
- function Te() {
7945
+ function Ee() {
7944
7946
  return {
7945
7947
  type: "blockquote",
7946
7948
  children: []
7947
7949
  };
7948
7950
  }
7949
- function Fe() {
7951
+ function Ne() {
7950
7952
  return {
7951
7953
  type: "code",
7952
7954
  lang: null,
@@ -7954,7 +7956,7 @@ function cp(e) {
7954
7956
  value: ""
7955
7957
  };
7956
7958
  }
7957
- function Xe() {
7959
+ function Ze() {
7958
7960
  return {
7959
7961
  type: "inlineCode",
7960
7962
  value: ""
@@ -7993,7 +7995,7 @@ function cp(e) {
7993
7995
  value: ""
7994
7996
  };
7995
7997
  }
7996
- function Pt() {
7998
+ function It() {
7997
7999
  return {
7998
8000
  type: "image",
7999
8001
  title: null,
@@ -8001,7 +8003,7 @@ function cp(e) {
8001
8003
  alt: null
8002
8004
  };
8003
8005
  }
8004
- function Ze() {
8006
+ function Ye() {
8005
8007
  return {
8006
8008
  type: "link",
8007
8009
  title: null,
@@ -8018,7 +8020,7 @@ function cp(e) {
8018
8020
  children: []
8019
8021
  };
8020
8022
  }
8021
- function re(R) {
8023
+ function ie(R) {
8022
8024
  return {
8023
8025
  type: "listItem",
8024
8026
  spread: R._spread,
@@ -8032,13 +8034,13 @@ function cp(e) {
8032
8034
  children: []
8033
8035
  };
8034
8036
  }
8035
- function Ee() {
8037
+ function _e() {
8036
8038
  return {
8037
8039
  type: "strong",
8038
8040
  children: []
8039
8041
  };
8040
8042
  }
8041
- function Ne() {
8043
+ function Ie() {
8042
8044
  return {
8043
8045
  type: "text",
8044
8046
  value: ""
@@ -8164,7 +8166,7 @@ function Dt(e) {
8164
8166
  for (; ++n < e.length; ) {
8165
8167
  const a = e.charCodeAt(n);
8166
8168
  let o = "";
8167
- if (a === 37 && Be(e.charCodeAt(n + 1)) && Be(e.charCodeAt(n + 2)))
8169
+ if (a === 37 && He(e.charCodeAt(n + 1)) && He(e.charCodeAt(n + 2)))
8168
8170
  i = 2;
8169
8171
  else if (a < 128)
8170
8172
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a)) || (o = String.fromCharCode(a));
@@ -8351,7 +8353,7 @@ function Op(e, t) {
8351
8353
  };
8352
8354
  return e.patch(t, a), e.applyData(t, a);
8353
8355
  }
8354
- function Pp(e, t) {
8356
+ function Ip(e, t) {
8355
8357
  const n = {
8356
8358
  type: "element",
8357
8359
  tagName: "p",
@@ -8360,7 +8362,7 @@ function Pp(e, t) {
8360
8362
  };
8361
8363
  return e.patch(t, n), e.applyData(t, n);
8362
8364
  }
8363
- function Ip(e, t) {
8365
+ function Pp(e, t) {
8364
8366
  const n = { type: "root", children: e.wrap(e.all(t)) };
8365
8367
  return e.patch(t, n), e.applyData(t, n);
8366
8368
  }
@@ -8503,8 +8505,8 @@ const Bp = {
8503
8505
  link: _p,
8504
8506
  listItem: Ep,
8505
8507
  list: Op,
8506
- paragraph: Pp,
8507
- root: Ip,
8508
+ paragraph: Ip,
8509
+ root: Pp,
8508
8510
  strong: Ap,
8509
8511
  table: Np,
8510
8512
  tableCell: jp,
@@ -8659,21 +8661,21 @@ const ei = (
8659
8661
  function Xp(e) {
8660
8662
  return !e || !e.position || !e.position.start || !e.position.start.line || !e.position.start.column || !e.position.end || !e.position.end.line || !e.position.end.column;
8661
8663
  }
8662
- const Pa = {}.hasOwnProperty;
8664
+ const Ia = {}.hasOwnProperty;
8663
8665
  function Zp(e) {
8664
8666
  const t = /* @__PURE__ */ Object.create(null);
8665
8667
  if (!e || !e.type)
8666
8668
  throw new Error("mdast-util-definitions expected node");
8667
8669
  return ei(e, "definition", (r) => {
8668
- const i = Ia(r.identifier);
8669
- i && !Pa.call(t, i) && (t[i] = r);
8670
+ const i = Pa(r.identifier);
8671
+ i && !Ia.call(t, i) && (t[i] = r);
8670
8672
  }), n;
8671
8673
  function n(r) {
8672
- const i = Ia(r);
8673
- return i && Pa.call(t, i) ? t[i] : null;
8674
+ const i = Pa(r);
8675
+ return i && Ia.call(t, i) ? t[i] : null;
8674
8676
  }
8675
8677
  }
8676
- function Ia(e) {
8678
+ function Pa(e) {
8677
8679
  return String(e || "").toUpperCase();
8678
8680
  }
8679
8681
  const Tn = {}.hasOwnProperty;
@@ -8891,7 +8893,7 @@ function sl(e, t) {
8891
8893
  function Rr(e) {
8892
8894
  return e.toLowerCase();
8893
8895
  }
8894
- class Ue {
8896
+ class Ve {
8895
8897
  /**
8896
8898
  * @constructor
8897
8899
  * @param {string} property
@@ -8901,32 +8903,32 @@ class Ue {
8901
8903
  this.property = t, this.attribute = n;
8902
8904
  }
8903
8905
  }
8904
- Ue.prototype.space = null;
8905
- Ue.prototype.boolean = !1;
8906
- Ue.prototype.booleanish = !1;
8907
- Ue.prototype.overloadedBoolean = !1;
8908
- Ue.prototype.number = !1;
8909
- Ue.prototype.commaSeparated = !1;
8910
- Ue.prototype.spaceSeparated = !1;
8911
- Ue.prototype.commaOrSpaceSeparated = !1;
8912
- Ue.prototype.mustUseProperty = !1;
8913
- Ue.prototype.defined = !1;
8906
+ Ve.prototype.space = null;
8907
+ Ve.prototype.boolean = !1;
8908
+ Ve.prototype.booleanish = !1;
8909
+ Ve.prototype.overloadedBoolean = !1;
8910
+ Ve.prototype.number = !1;
8911
+ Ve.prototype.commaSeparated = !1;
8912
+ Ve.prototype.spaceSeparated = !1;
8913
+ Ve.prototype.commaOrSpaceSeparated = !1;
8914
+ Ve.prototype.mustUseProperty = !1;
8915
+ Ve.prototype.defined = !1;
8914
8916
  let ah = 0;
8915
- const te = _t(), _e = _t(), ul = _t(), $ = _t(), ge = _t(), jt = _t(), De = _t();
8917
+ const ne = _t(), Se = _t(), ul = _t(), V = _t(), ge = _t(), jt = _t(), Re = _t();
8916
8918
  function _t() {
8917
8919
  return 2 ** ++ah;
8918
8920
  }
8919
8921
  const Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8920
8922
  __proto__: null,
8921
- boolean: te,
8922
- booleanish: _e,
8923
- commaOrSpaceSeparated: De,
8923
+ boolean: ne,
8924
+ booleanish: Se,
8925
+ commaOrSpaceSeparated: Re,
8924
8926
  commaSeparated: jt,
8925
- number: $,
8927
+ number: V,
8926
8928
  overloadedBoolean: ul,
8927
8929
  spaceSeparated: ge
8928
8930
  }, Symbol.toStringTag, { value: "Module" })), dr = Object.keys(Br);
8929
- class ni extends Ue {
8931
+ class ni extends Ve {
8930
8932
  /**
8931
8933
  * @constructor
8932
8934
  * @param {string} property
@@ -9001,52 +9003,52 @@ const hl = Rt({
9001
9003
  },
9002
9004
  properties: {
9003
9005
  ariaActiveDescendant: null,
9004
- ariaAtomic: _e,
9006
+ ariaAtomic: Se,
9005
9007
  ariaAutoComplete: null,
9006
- ariaBusy: _e,
9007
- ariaChecked: _e,
9008
- ariaColCount: $,
9009
- ariaColIndex: $,
9010
- ariaColSpan: $,
9008
+ ariaBusy: Se,
9009
+ ariaChecked: Se,
9010
+ ariaColCount: V,
9011
+ ariaColIndex: V,
9012
+ ariaColSpan: V,
9011
9013
  ariaControls: ge,
9012
9014
  ariaCurrent: null,
9013
9015
  ariaDescribedBy: ge,
9014
9016
  ariaDetails: null,
9015
- ariaDisabled: _e,
9017
+ ariaDisabled: Se,
9016
9018
  ariaDropEffect: ge,
9017
9019
  ariaErrorMessage: null,
9018
- ariaExpanded: _e,
9020
+ ariaExpanded: Se,
9019
9021
  ariaFlowTo: ge,
9020
- ariaGrabbed: _e,
9022
+ ariaGrabbed: Se,
9021
9023
  ariaHasPopup: null,
9022
- ariaHidden: _e,
9024
+ ariaHidden: Se,
9023
9025
  ariaInvalid: null,
9024
9026
  ariaKeyShortcuts: null,
9025
9027
  ariaLabel: null,
9026
9028
  ariaLabelledBy: ge,
9027
- ariaLevel: $,
9029
+ ariaLevel: V,
9028
9030
  ariaLive: null,
9029
- ariaModal: _e,
9030
- ariaMultiLine: _e,
9031
- ariaMultiSelectable: _e,
9031
+ ariaModal: Se,
9032
+ ariaMultiLine: Se,
9033
+ ariaMultiSelectable: Se,
9032
9034
  ariaOrientation: null,
9033
9035
  ariaOwns: ge,
9034
9036
  ariaPlaceholder: null,
9035
- ariaPosInSet: $,
9036
- ariaPressed: _e,
9037
- ariaReadOnly: _e,
9037
+ ariaPosInSet: V,
9038
+ ariaPressed: Se,
9039
+ ariaReadOnly: Se,
9038
9040
  ariaRelevant: null,
9039
- ariaRequired: _e,
9041
+ ariaRequired: Se,
9040
9042
  ariaRoleDescription: ge,
9041
- ariaRowCount: $,
9042
- ariaRowIndex: $,
9043
- ariaRowSpan: $,
9044
- ariaSelected: _e,
9045
- ariaSetSize: $,
9043
+ ariaRowCount: V,
9044
+ ariaRowIndex: V,
9045
+ ariaRowSpan: V,
9046
+ ariaSelected: Se,
9047
+ ariaSetSize: V,
9046
9048
  ariaSort: null,
9047
- ariaValueMax: $,
9048
- ariaValueMin: $,
9049
- ariaValueNow: $,
9049
+ ariaValueMax: V,
9050
+ ariaValueMin: V,
9051
+ ariaValueNow: V,
9050
9052
  ariaValueText: null,
9051
9053
  role: null
9052
9054
  }
@@ -9068,40 +9070,40 @@ const hl = Rt({
9068
9070
  accessKey: ge,
9069
9071
  action: null,
9070
9072
  allow: null,
9071
- allowFullScreen: te,
9072
- allowPaymentRequest: te,
9073
- allowUserMedia: te,
9073
+ allowFullScreen: ne,
9074
+ allowPaymentRequest: ne,
9075
+ allowUserMedia: ne,
9074
9076
  alt: null,
9075
9077
  as: null,
9076
- async: te,
9078
+ async: ne,
9077
9079
  autoCapitalize: null,
9078
9080
  autoComplete: ge,
9079
- autoFocus: te,
9080
- autoPlay: te,
9081
+ autoFocus: ne,
9082
+ autoPlay: ne,
9081
9083
  blocking: ge,
9082
9084
  capture: null,
9083
9085
  charSet: null,
9084
- checked: te,
9086
+ checked: ne,
9085
9087
  cite: null,
9086
9088
  className: ge,
9087
- cols: $,
9089
+ cols: V,
9088
9090
  colSpan: null,
9089
9091
  content: null,
9090
- contentEditable: _e,
9091
- controls: te,
9092
+ contentEditable: Se,
9093
+ controls: ne,
9092
9094
  controlsList: ge,
9093
- coords: $ | jt,
9095
+ coords: V | jt,
9094
9096
  crossOrigin: null,
9095
9097
  data: null,
9096
9098
  dateTime: null,
9097
9099
  decoding: null,
9098
- default: te,
9099
- defer: te,
9100
+ default: ne,
9101
+ defer: ne,
9100
9102
  dir: null,
9101
9103
  dirName: null,
9102
- disabled: te,
9104
+ disabled: ne,
9103
9105
  download: ul,
9104
- draggable: _e,
9106
+ draggable: Se,
9105
9107
  encType: null,
9106
9108
  enterKeyHint: null,
9107
9109
  fetchPriority: null,
@@ -9109,12 +9111,12 @@ const hl = Rt({
9109
9111
  formAction: null,
9110
9112
  formEncType: null,
9111
9113
  formMethod: null,
9112
- formNoValidate: te,
9114
+ formNoValidate: ne,
9113
9115
  formTarget: null,
9114
9116
  headers: ge,
9115
- height: $,
9116
- hidden: te,
9117
- high: $,
9117
+ height: V,
9118
+ hidden: ne,
9119
+ high: V,
9118
9120
  href: null,
9119
9121
  hrefLang: null,
9120
9122
  htmlFor: ge,
@@ -9122,15 +9124,15 @@ const hl = Rt({
9122
9124
  id: null,
9123
9125
  imageSizes: null,
9124
9126
  imageSrcSet: null,
9125
- inert: te,
9127
+ inert: ne,
9126
9128
  inputMode: null,
9127
9129
  integrity: null,
9128
9130
  is: null,
9129
- isMap: te,
9131
+ isMap: ne,
9130
9132
  itemId: null,
9131
9133
  itemProp: ge,
9132
9134
  itemRef: ge,
9133
- itemScope: te,
9135
+ itemScope: ne,
9134
9136
  itemType: ge,
9135
9137
  kind: null,
9136
9138
  label: null,
@@ -9138,21 +9140,21 @@ const hl = Rt({
9138
9140
  language: null,
9139
9141
  list: null,
9140
9142
  loading: null,
9141
- loop: te,
9142
- low: $,
9143
+ loop: ne,
9144
+ low: V,
9143
9145
  manifest: null,
9144
9146
  max: null,
9145
- maxLength: $,
9147
+ maxLength: V,
9146
9148
  media: null,
9147
9149
  method: null,
9148
9150
  min: null,
9149
- minLength: $,
9150
- multiple: te,
9151
- muted: te,
9151
+ minLength: V,
9152
+ multiple: ne,
9153
+ muted: ne,
9152
9154
  name: null,
9153
9155
  nonce: null,
9154
- noModule: te,
9155
- noValidate: te,
9156
+ noModule: ne,
9157
+ noValidate: ne,
9156
9158
  onAbort: null,
9157
9159
  onAfterPrint: null,
9158
9160
  onAuxClick: null,
@@ -9241,54 +9243,54 @@ const hl = Rt({
9241
9243
  onVolumeChange: null,
9242
9244
  onWaiting: null,
9243
9245
  onWheel: null,
9244
- open: te,
9245
- optimum: $,
9246
+ open: ne,
9247
+ optimum: V,
9246
9248
  pattern: null,
9247
9249
  ping: ge,
9248
9250
  placeholder: null,
9249
- playsInline: te,
9251
+ playsInline: ne,
9250
9252
  popover: null,
9251
9253
  popoverTarget: null,
9252
9254
  popoverTargetAction: null,
9253
9255
  poster: null,
9254
9256
  preload: null,
9255
- readOnly: te,
9257
+ readOnly: ne,
9256
9258
  referrerPolicy: null,
9257
9259
  rel: ge,
9258
- required: te,
9259
- reversed: te,
9260
- rows: $,
9261
- rowSpan: $,
9260
+ required: ne,
9261
+ reversed: ne,
9262
+ rows: V,
9263
+ rowSpan: V,
9262
9264
  sandbox: ge,
9263
9265
  scope: null,
9264
- scoped: te,
9265
- seamless: te,
9266
- selected: te,
9267
- shadowRootClonable: te,
9268
- shadowRootDelegatesFocus: te,
9266
+ scoped: ne,
9267
+ seamless: ne,
9268
+ selected: ne,
9269
+ shadowRootClonable: ne,
9270
+ shadowRootDelegatesFocus: ne,
9269
9271
  shadowRootMode: null,
9270
9272
  shape: null,
9271
- size: $,
9273
+ size: V,
9272
9274
  sizes: null,
9273
9275
  slot: null,
9274
- span: $,
9275
- spellCheck: _e,
9276
+ span: V,
9277
+ spellCheck: Se,
9276
9278
  src: null,
9277
9279
  srcDoc: null,
9278
9280
  srcLang: null,
9279
9281
  srcSet: null,
9280
- start: $,
9282
+ start: V,
9281
9283
  step: null,
9282
9284
  style: null,
9283
- tabIndex: $,
9285
+ tabIndex: V,
9284
9286
  target: null,
9285
9287
  title: null,
9286
9288
  translate: null,
9287
9289
  type: null,
9288
- typeMustMatch: te,
9290
+ typeMustMatch: ne,
9289
9291
  useMap: null,
9290
- value: _e,
9291
- width: $,
9292
+ value: Se,
9293
+ width: V,
9292
9294
  wrap: null,
9293
9295
  writingSuggestions: null,
9294
9296
  // Legacy.
@@ -9305,11 +9307,11 @@ const hl = Rt({
9305
9307
  // `<body>`. Use CSS `background-image` instead
9306
9308
  bgColor: null,
9307
9309
  // `<body>` and table elements. Use CSS `background-color` instead
9308
- border: $,
9310
+ border: V,
9309
9311
  // `<table>`. Use CSS `border-width` instead,
9310
9312
  borderColor: null,
9311
9313
  // `<table>`. Use CSS `border-color` instead,
9312
- bottomMargin: $,
9314
+ bottomMargin: V,
9313
9315
  // `<body>`
9314
9316
  cellPadding: null,
9315
9317
  // `<table>`
@@ -9331,9 +9333,9 @@ const hl = Rt({
9331
9333
  // `<object>`
9332
9334
  color: null,
9333
9335
  // `<font>` and `<hr>`. Use CSS instead
9334
- compact: te,
9336
+ compact: ne,
9335
9337
  // Lists. Use CSS to reduce space between items instead
9336
- declare: te,
9338
+ declare: ne,
9337
9339
  // `<object>`
9338
9340
  event: null,
9339
9341
  // `<script>`
@@ -9343,9 +9345,9 @@ const hl = Rt({
9343
9345
  // `<table>`
9344
9346
  frameBorder: null,
9345
9347
  // `<iframe>`. Use CSS `border` instead
9346
- hSpace: $,
9348
+ hSpace: V,
9347
9349
  // `<img>` and `<object>`
9348
- leftMargin: $,
9350
+ leftMargin: V,
9349
9351
  // `<body>`
9350
9352
  link: null,
9351
9353
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -9353,17 +9355,17 @@ const hl = Rt({
9353
9355
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
9354
9356
  lowSrc: null,
9355
9357
  // `<img>`. Use a `<picture>`
9356
- marginHeight: $,
9358
+ marginHeight: V,
9357
9359
  // `<body>`
9358
- marginWidth: $,
9360
+ marginWidth: V,
9359
9361
  // `<body>`
9360
- noResize: te,
9362
+ noResize: ne,
9361
9363
  // `<frame>`
9362
- noHref: te,
9364
+ noHref: ne,
9363
9365
  // `<area>`. Use no href instead of an explicit `nohref`
9364
- noShade: te,
9366
+ noShade: ne,
9365
9367
  // `<hr>`. Use background-color and height instead of borders
9366
- noWrap: te,
9368
+ noWrap: ne,
9367
9369
  // `<td>` and `<th>`
9368
9370
  object: null,
9369
9371
  // `<applet>`
@@ -9373,13 +9375,13 @@ const hl = Rt({
9373
9375
  // `<isindex>`
9374
9376
  rev: null,
9375
9377
  // `<link>`
9376
- rightMargin: $,
9378
+ rightMargin: V,
9377
9379
  // `<body>`
9378
9380
  rules: null,
9379
9381
  // `<table>`
9380
9382
  scheme: null,
9381
9383
  // `<meta>`
9382
- scrolling: _e,
9384
+ scrolling: Se,
9383
9385
  // `<frame>`. Use overflow in the child context
9384
9386
  standby: null,
9385
9387
  // `<object>`
@@ -9387,7 +9389,7 @@ const hl = Rt({
9387
9389
  // `<table>`
9388
9390
  text: null,
9389
9391
  // `<body>`. Use CSS `color` instead
9390
- topMargin: $,
9392
+ topMargin: V,
9391
9393
  // `<body>`
9392
9394
  valueType: null,
9393
9395
  // `<param>`
@@ -9397,17 +9399,17 @@ const hl = Rt({
9397
9399
  // Several. Use CSS `vertical-align` instead
9398
9400
  vLink: null,
9399
9401
  // `<body>`. Use CSS `a:visited {color}` instead
9400
- vSpace: $,
9402
+ vSpace: V,
9401
9403
  // `<img>` and `<object>`
9402
9404
  // Non-standard Properties.
9403
9405
  allowTransparency: null,
9404
9406
  autoCorrect: null,
9405
9407
  autoSave: null,
9406
- disablePictureInPicture: te,
9407
- disableRemotePlayback: te,
9408
+ disablePictureInPicture: ne,
9409
+ disableRemotePlayback: ne,
9408
9410
  prefix: null,
9409
9411
  property: null,
9410
- results: $,
9412
+ results: V,
9411
9413
  security: null,
9412
9414
  unselectable: null
9413
9415
  }
@@ -9590,28 +9592,28 @@ const hl = Rt({
9590
9592
  },
9591
9593
  transform: dl,
9592
9594
  properties: {
9593
- about: De,
9594
- accentHeight: $,
9595
+ about: Re,
9596
+ accentHeight: V,
9595
9597
  accumulate: null,
9596
9598
  additive: null,
9597
9599
  alignmentBaseline: null,
9598
- alphabetic: $,
9599
- amplitude: $,
9600
+ alphabetic: V,
9601
+ amplitude: V,
9600
9602
  arabicForm: null,
9601
- ascent: $,
9603
+ ascent: V,
9602
9604
  attributeName: null,
9603
9605
  attributeType: null,
9604
- azimuth: $,
9606
+ azimuth: V,
9605
9607
  bandwidth: null,
9606
9608
  baselineShift: null,
9607
9609
  baseFrequency: null,
9608
9610
  baseProfile: null,
9609
9611
  bbox: null,
9610
9612
  begin: null,
9611
- bias: $,
9613
+ bias: V,
9612
9614
  by: null,
9613
9615
  calcMode: null,
9614
- capHeight: $,
9616
+ capHeight: V,
9615
9617
  className: ge,
9616
9618
  clip: null,
9617
9619
  clipPath: null,
@@ -9632,26 +9634,26 @@ const hl = Rt({
9632
9634
  d: null,
9633
9635
  dataType: null,
9634
9636
  defaultAction: null,
9635
- descent: $,
9636
- diffuseConstant: $,
9637
+ descent: V,
9638
+ diffuseConstant: V,
9637
9639
  direction: null,
9638
9640
  display: null,
9639
9641
  dur: null,
9640
- divisor: $,
9642
+ divisor: V,
9641
9643
  dominantBaseline: null,
9642
- download: te,
9644
+ download: ne,
9643
9645
  dx: null,
9644
9646
  dy: null,
9645
9647
  edgeMode: null,
9646
9648
  editable: null,
9647
- elevation: $,
9649
+ elevation: V,
9648
9650
  enableBackground: null,
9649
9651
  end: null,
9650
9652
  event: null,
9651
- exponent: $,
9653
+ exponent: V,
9652
9654
  externalResourcesRequired: null,
9653
9655
  fill: null,
9654
- fillOpacity: $,
9656
+ fillOpacity: V,
9655
9657
  fillRule: null,
9656
9658
  filter: null,
9657
9659
  filterRes: null,
@@ -9681,28 +9683,28 @@ const hl = Rt({
9681
9683
  gradientTransform: null,
9682
9684
  gradientUnits: null,
9683
9685
  handler: null,
9684
- hanging: $,
9686
+ hanging: V,
9685
9687
  hatchContentUnits: null,
9686
9688
  hatchUnits: null,
9687
9689
  height: null,
9688
9690
  href: null,
9689
9691
  hrefLang: null,
9690
- horizAdvX: $,
9691
- horizOriginX: $,
9692
- horizOriginY: $,
9692
+ horizAdvX: V,
9693
+ horizOriginX: V,
9694
+ horizOriginY: V,
9693
9695
  id: null,
9694
- ideographic: $,
9696
+ ideographic: V,
9695
9697
  imageRendering: null,
9696
9698
  initialVisibility: null,
9697
9699
  in: null,
9698
9700
  in2: null,
9699
- intercept: $,
9700
- k: $,
9701
- k1: $,
9702
- k2: $,
9703
- k3: $,
9704
- k4: $,
9705
- kernelMatrix: De,
9701
+ intercept: V,
9702
+ k: V,
9703
+ k1: V,
9704
+ k2: V,
9705
+ k3: V,
9706
+ k4: V,
9707
+ kernelMatrix: Re,
9706
9708
  kernelUnitLength: null,
9707
9709
  keyPoints: null,
9708
9710
  // SEMI_COLON_SEPARATED
@@ -9715,7 +9717,7 @@ const hl = Rt({
9715
9717
  lengthAdjust: null,
9716
9718
  letterSpacing: null,
9717
9719
  lightingColor: null,
9718
- limitingConeAngle: $,
9720
+ limitingConeAngle: V,
9719
9721
  local: null,
9720
9722
  markerEnd: null,
9721
9723
  markerMid: null,
@@ -9731,7 +9733,7 @@ const hl = Rt({
9731
9733
  media: null,
9732
9734
  mediaCharacterEncoding: null,
9733
9735
  mediaContentEncodings: null,
9734
- mediaSize: $,
9736
+ mediaSize: V,
9735
9737
  mediaTime: null,
9736
9738
  method: null,
9737
9739
  min: null,
@@ -9837,12 +9839,12 @@ const hl = Rt({
9837
9839
  origin: null,
9838
9840
  overflow: null,
9839
9841
  overlay: null,
9840
- overlinePosition: $,
9841
- overlineThickness: $,
9842
+ overlinePosition: V,
9843
+ overlineThickness: V,
9842
9844
  paintOrder: null,
9843
9845
  panose1: null,
9844
9846
  path: null,
9845
- pathLength: $,
9847
+ pathLength: V,
9846
9848
  patternContentUnits: null,
9847
9849
  patternTransform: null,
9848
9850
  patternUnits: null,
@@ -9852,28 +9854,28 @@ const hl = Rt({
9852
9854
  playbackOrder: null,
9853
9855
  pointerEvents: null,
9854
9856
  points: null,
9855
- pointsAtX: $,
9856
- pointsAtY: $,
9857
- pointsAtZ: $,
9857
+ pointsAtX: V,
9858
+ pointsAtY: V,
9859
+ pointsAtZ: V,
9858
9860
  preserveAlpha: null,
9859
9861
  preserveAspectRatio: null,
9860
9862
  primitiveUnits: null,
9861
9863
  propagate: null,
9862
- property: De,
9864
+ property: Re,
9863
9865
  r: null,
9864
9866
  radius: null,
9865
9867
  referrerPolicy: null,
9866
9868
  refX: null,
9867
9869
  refY: null,
9868
- rel: De,
9869
- rev: De,
9870
+ rel: Re,
9871
+ rev: Re,
9870
9872
  renderingIntent: null,
9871
9873
  repeatCount: null,
9872
9874
  repeatDur: null,
9873
- requiredExtensions: De,
9874
- requiredFeatures: De,
9875
- requiredFonts: De,
9876
- requiredFormats: De,
9875
+ requiredExtensions: Re,
9876
+ requiredFeatures: Re,
9877
+ requiredFonts: Re,
9878
+ requiredFormats: Re,
9877
9879
  resource: null,
9878
9880
  restart: null,
9879
9881
  result: null,
@@ -9886,8 +9888,8 @@ const hl = Rt({
9886
9888
  side: null,
9887
9889
  slope: null,
9888
9890
  snapshotTime: null,
9889
- specularConstant: $,
9890
- specularExponent: $,
9891
+ specularConstant: V,
9892
+ specularExponent: V,
9891
9893
  spreadMethod: null,
9892
9894
  spacing: null,
9893
9895
  startOffset: null,
@@ -9897,30 +9899,30 @@ const hl = Rt({
9897
9899
  stitchTiles: null,
9898
9900
  stopColor: null,
9899
9901
  stopOpacity: null,
9900
- strikethroughPosition: $,
9901
- strikethroughThickness: $,
9902
+ strikethroughPosition: V,
9903
+ strikethroughThickness: V,
9902
9904
  string: null,
9903
9905
  stroke: null,
9904
- strokeDashArray: De,
9906
+ strokeDashArray: Re,
9905
9907
  strokeDashOffset: null,
9906
9908
  strokeLineCap: null,
9907
9909
  strokeLineJoin: null,
9908
- strokeMiterLimit: $,
9909
- strokeOpacity: $,
9910
+ strokeMiterLimit: V,
9911
+ strokeOpacity: V,
9910
9912
  strokeWidth: null,
9911
9913
  style: null,
9912
- surfaceScale: $,
9914
+ surfaceScale: V,
9913
9915
  syncBehavior: null,
9914
9916
  syncBehaviorDefault: null,
9915
9917
  syncMaster: null,
9916
9918
  syncTolerance: null,
9917
9919
  syncToleranceDefault: null,
9918
- systemLanguage: De,
9919
- tabIndex: $,
9920
+ systemLanguage: Re,
9921
+ tabIndex: V,
9920
9922
  tableValues: null,
9921
9923
  target: null,
9922
- targetX: $,
9923
- targetY: $,
9924
+ targetX: V,
9925
+ targetY: V,
9924
9926
  textAnchor: null,
9925
9927
  textDecoration: null,
9926
9928
  textRendering: null,
@@ -9929,28 +9931,28 @@ const hl = Rt({
9929
9931
  title: null,
9930
9932
  transformBehavior: null,
9931
9933
  type: null,
9932
- typeOf: De,
9934
+ typeOf: Re,
9933
9935
  to: null,
9934
9936
  transform: null,
9935
9937
  transformOrigin: null,
9936
9938
  u1: null,
9937
9939
  u2: null,
9938
- underlinePosition: $,
9939
- underlineThickness: $,
9940
+ underlinePosition: V,
9941
+ underlineThickness: V,
9940
9942
  unicode: null,
9941
9943
  unicodeBidi: null,
9942
9944
  unicodeRange: null,
9943
- unitsPerEm: $,
9945
+ unitsPerEm: V,
9944
9946
  values: null,
9945
- vAlphabetic: $,
9946
- vMathematical: $,
9947
+ vAlphabetic: V,
9948
+ vMathematical: V,
9947
9949
  vectorEffect: null,
9948
- vHanging: $,
9949
- vIdeographic: $,
9950
+ vHanging: V,
9951
+ vIdeographic: V,
9950
9952
  version: null,
9951
- vertAdvY: $,
9952
- vertOriginX: $,
9953
- vertOriginY: $,
9953
+ vertAdvY: V,
9954
+ vertOriginX: V,
9955
+ vertOriginY: V,
9954
9956
  viewBox: null,
9955
9957
  viewTarget: null,
9956
9958
  visibility: null,
@@ -9962,7 +9964,7 @@ const hl = Rt({
9962
9964
  x1: null,
9963
9965
  x2: null,
9964
9966
  xChannelSelector: null,
9965
- xHeight: $,
9967
+ xHeight: V,
9966
9968
  y: null,
9967
9969
  y1: null,
9968
9970
  y2: null,
@@ -9973,7 +9975,7 @@ const hl = Rt({
9973
9975
  }), uh = /^data[-\w.:]+$/i, Fa = /-[a-z]/g, ch = /[A-Z]/g;
9974
9976
  function fh(e, t) {
9975
9977
  const n = Rr(t);
9976
- let r = t, i = Ue;
9978
+ let r = t, i = Ve;
9977
9979
  if (n in e.normal)
9978
9980
  return e.property[e.normal[n]];
9979
9981
  if (n.length > 4 && n.slice(0, 4) === "data" && uh.test(t)) {
@@ -10148,28 +10150,28 @@ function Sh() {
10148
10150
  throw new TypeError("First argument must be a string");
10149
10151
  if (!h) return [];
10150
10152
  v = v || {};
10151
- var g = 1, I = 1;
10153
+ var g = 1, P = 1;
10152
10154
  function A(T) {
10153
10155
  var S = T.match(t);
10154
10156
  S && (g += S.length);
10155
10157
  var O = T.lastIndexOf(s);
10156
- I = ~O ? T.length - O : I + T.length;
10158
+ P = ~O ? T.length - O : P + T.length;
10157
10159
  }
10158
10160
  function q() {
10159
- var T = { line: g, column: I };
10161
+ var T = { line: g, column: P };
10160
10162
  return function(S) {
10161
- return S.position = new P(T), z(), S;
10163
+ return S.position = new I(T), z(), S;
10162
10164
  };
10163
10165
  }
10164
- function P(T) {
10165
- this.start = T, this.end = { line: g, column: I }, this.source = v.source;
10166
+ function I(T) {
10167
+ this.start = T, this.end = { line: g, column: P }, this.source = v.source;
10166
10168
  }
10167
- P.prototype.content = h;
10169
+ I.prototype.content = h;
10168
10170
  function b(T) {
10169
10171
  var S = new Error(
10170
- v.source + ":" + g + ":" + I + ": " + T
10172
+ v.source + ":" + g + ":" + P + ": " + T
10171
10173
  );
10172
- if (S.reason = T, S.filename = v.source, S.line = g, S.column = I, S.source = h, !v.silent) throw S;
10174
+ if (S.reason = T, S.filename = v.source, S.line = g, S.column = P, S.source = h, !v.silent) throw S;
10173
10175
  }
10174
10176
  function E(T) {
10175
10177
  var S = T.exec(h);
@@ -10195,7 +10197,7 @@ function Sh() {
10195
10197
  if (S += 2, d === h.charAt(S - 1))
10196
10198
  return b("End of comment missing");
10197
10199
  var O = h.slice(2, S - 2);
10198
- return I += 2, A(O), h = h.slice(S), I += 2, T({
10200
+ return P += 2, A(O), h = h.slice(S), P += 2, T({
10199
10201
  type: p,
10200
10202
  comment: O
10201
10203
  });
@@ -10248,10 +10250,10 @@ function gl(e, t) {
10248
10250
  const n = [];
10249
10251
  let r = -1, i;
10250
10252
  for (; ++r < t.children.length; )
10251
- i = t.children[r], i.type === "element" ? n.push(Ph(e, i, r, t)) : i.type === "text" ? (t.type !== "element" || !Oh.has(t.tagName) || !wh(i)) && n.push(i.value) : i.type === "raw" && !e.options.skipHtml && n.push(i.value);
10253
+ i = t.children[r], i.type === "element" ? n.push(Ih(e, i, r, t)) : i.type === "text" ? (t.type !== "element" || !Oh.has(t.tagName) || !wh(i)) && n.push(i.value) : i.type === "raw" && !e.options.skipHtml && n.push(i.value);
10252
10254
  return n;
10253
10255
  }
10254
- function Ph(e, t, n, r) {
10256
+ function Ih(e, t, n, r) {
10255
10257
  const i = e.options, a = i.transformLinkUri === void 0 ? Rc : i.transformLinkUri, o = e.schema, l = t.tagName, s = {};
10256
10258
  let u = o, c;
10257
10259
  if (o.space === "html" && l === "svg" && (u = mh, e.schema = u), t.properties)
@@ -10263,7 +10265,7 @@ function Ph(e, t, n, r) {
10263
10265
  const p = t.position || {
10264
10266
  start: { line: null, column: null, offset: null },
10265
10267
  end: { line: null, column: null, offset: null }
10266
- }, f = i.components && Hr.call(i.components, l) ? i.components[l] : l, y = typeof f == "string" || f === Ge.Fragment;
10268
+ }, f = i.components && Hr.call(i.components, l) ? i.components[l] : l, y = typeof f == "string" || f === Xe.Fragment;
10267
10269
  if (!xh.isValidElementType(f))
10268
10270
  throw new TypeError(
10269
10271
  `Component for name \`${l}\` not defined or is not renderable`
@@ -10281,12 +10283,12 @@ function Ph(e, t, n, r) {
10281
10283
  String(s.alt || ""),
10282
10284
  typeof s.title == "string" ? s.title : null
10283
10285
  )), !y && l === "li" && r.type === "element") {
10284
- const h = Ih(t);
10286
+ const h = Ph(t);
10285
10287
  s.checked = h && h.properties ? !!h.properties.checked : null, s.index = mr(r, t), s.ordered = r.tagName === "ol";
10286
10288
  }
10287
- return !y && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), y || (s.isHeader = l === "th")), !y && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Lh(p)), !y && i.rawSourcePos && (s.sourcePosition = t.position), !y && i.includeElementIndex && (s.index = mr(r, t), s.siblingCount = mr(r)), y || (s.node = t), d.length > 0 ? Ge.createElement(f, s, d) : Ge.createElement(f, s);
10289
+ return !y && (l === "ol" || l === "ul") && (s.ordered = l === "ol", s.depth = e.listDepth), (l === "td" || l === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), y || (s.isHeader = l === "th")), !y && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Lh(p)), !y && i.rawSourcePos && (s.sourcePosition = t.position), !y && i.includeElementIndex && (s.index = mr(r, t), s.siblingCount = mr(r)), y || (s.node = t), d.length > 0 ? Xe.createElement(f, s, d) : Xe.createElement(f, s);
10288
10290
  }
10289
- function Ih(e) {
10291
+ function Ph(e) {
10290
10292
  let t = -1;
10291
10293
  for (; ++t < e.children.length; ) {
10292
10294
  const n = e.children[t];
@@ -10374,12 +10376,12 @@ function ri(e) {
10374
10376
  const r = t.runSync(t.parse(n), n);
10375
10377
  if (r.type !== "root")
10376
10378
  throw new TypeError("Expected a `root` node");
10377
- let i = Ge.createElement(
10378
- Ge.Fragment,
10379
+ let i = Xe.createElement(
10380
+ Xe.Fragment,
10379
10381
  {},
10380
10382
  gl({ options: e, schema: hh, listDepth: 0 }, r)
10381
10383
  );
10382
- return e.className && (i = Ge.createElement("div", { className: e.className }, i)), i;
10384
+ return e.className && (i = Xe.createElement("div", { className: e.className }, i)), i;
10383
10385
  }
10384
10386
  ri.propTypes = {
10385
10387
  // Core options:
@@ -10480,7 +10482,7 @@ function Rh() {
10480
10482
  (function(n, r) {
10481
10483
  e.exports = r();
10482
10484
  })(Dh, function() {
10483
- var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", s = "hour", u = "day", c = "week", d = "month", p = "quarter", f = "year", y = "date", h = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(S) {
10485
+ var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", s = "hour", u = "day", c = "week", d = "month", p = "quarter", f = "year", y = "date", h = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, P = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(S) {
10484
10486
  var O = ["th", "st", "nd", "rd"], N = S % 100;
10485
10487
  return "[" + S + (O[(N - 20) % 10] || O[N] || O[0]) + "]";
10486
10488
  } }, A = function(S, O, N) {
@@ -10499,13 +10501,13 @@ function Rh() {
10499
10501
  return { M: d, y: f, w: c, d: u, D: y, h: s, m: l, s: o, ms: a, Q: p }[S] || String(S || "").toLowerCase().replace(/s$/, "");
10500
10502
  }, u: function(S) {
10501
10503
  return S === void 0;
10502
- } }, P = "en", b = {};
10503
- b[P] = I;
10504
+ } }, I = "en", b = {};
10505
+ b[I] = P;
10504
10506
  var E = "$isDayjsObject", z = function(S) {
10505
10507
  return S instanceof B || !(!S || !S[E]);
10506
10508
  }, F = function S(O, N, H) {
10507
10509
  var j;
10508
- if (!O) return P;
10510
+ if (!O) return I;
10509
10511
  if (typeof O == "string") {
10510
10512
  var D = O.toLowerCase();
10511
10513
  b[D] && (j = D), N && (b[D] = N, j = D);
@@ -10515,7 +10517,7 @@ function Rh() {
10515
10517
  var W = O.name;
10516
10518
  b[W] = O, j = W;
10517
10519
  }
10518
- return !H && j && (P = j), j || !H && P;
10520
+ return !H && j && (I = j), j || !H && I;
10519
10521
  }, U = function(S, O) {
10520
10522
  if (z(S)) return S.clone();
10521
10523
  var N = typeof O == "object" ? O : {};
@@ -10566,11 +10568,11 @@ function Rh() {
10566
10568
  return this.$d.getTime();
10567
10569
  }, O.startOf = function(N, H) {
10568
10570
  var j = this, D = !!M.u(H) || H, m = M.p(N), W = function(xe, he) {
10569
- var Te = M.w(j.$u ? Date.UTC(j.$y, he, xe) : new Date(j.$y, he, xe), j);
10570
- return D ? Te : Te.endOf(u);
10571
+ var Ee = M.w(j.$u ? Date.UTC(j.$y, he, xe) : new Date(j.$y, he, xe), j);
10572
+ return D ? Ee : Ee.endOf(u);
10571
10573
  }, Y = function(xe, he) {
10572
10574
  return M.w(j.toDate()[xe].apply(j.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(he)), j);
10573
- }, w = this.$W, K = this.$M, oe = this.$D, ne = "set" + (this.$u ? "UTC" : "");
10575
+ }, w = this.$W, K = this.$M, oe = this.$D, re = "set" + (this.$u ? "UTC" : "");
10574
10576
  switch (m) {
10575
10577
  case f:
10576
10578
  return D ? W(1, 0) : W(31, 11);
@@ -10581,13 +10583,13 @@ function Rh() {
10581
10583
  return W(D ? oe - pe : oe + (6 - pe), K);
10582
10584
  case u:
10583
10585
  case y:
10584
- return Y(ne + "Hours", 0);
10586
+ return Y(re + "Hours", 0);
10585
10587
  case s:
10586
- return Y(ne + "Minutes", 1);
10588
+ return Y(re + "Minutes", 1);
10587
10589
  case l:
10588
- return Y(ne + "Seconds", 2);
10590
+ return Y(re + "Seconds", 2);
10589
10591
  case o:
10590
- return Y(ne + "Milliseconds", 3);
10592
+ return Y(re + "Milliseconds", 3);
10591
10593
  default:
10592
10594
  return this.clone();
10593
10595
  }
@@ -10622,17 +10624,17 @@ function Rh() {
10622
10624
  }, O.format = function(N) {
10623
10625
  var H = this, j = this.$locale();
10624
10626
  if (!this.isValid()) return j.invalidDate || h;
10625
- var D = N || "YYYY-MM-DDTHH:mm:ssZ", m = M.z(this), W = this.$H, Y = this.$m, w = this.$M, K = j.weekdays, oe = j.months, ne = j.meridiem, de = function(he, Te, Fe, Xe) {
10626
- return he && (he[Te] || he(H, D)) || Fe[Te].slice(0, Xe);
10627
+ var D = N || "YYYY-MM-DDTHH:mm:ssZ", m = M.z(this), W = this.$H, Y = this.$m, w = this.$M, K = j.weekdays, oe = j.months, re = j.meridiem, de = function(he, Ee, Ne, Ze) {
10628
+ return he && (he[Ee] || he(H, D)) || Ne[Ee].slice(0, Ze);
10627
10629
  }, pe = function(he) {
10628
10630
  return M.s(W % 12 || 12, he, "0");
10629
- }, xe = ne || function(he, Te, Fe) {
10630
- var Xe = he < 12 ? "AM" : "PM";
10631
- return Fe ? Xe.toLowerCase() : Xe;
10631
+ }, xe = re || function(he, Ee, Ne) {
10632
+ var Ze = he < 12 ? "AM" : "PM";
10633
+ return Ne ? Ze.toLowerCase() : Ze;
10632
10634
  };
10633
- return D.replace(g, function(he, Te) {
10634
- return Te || function(Fe) {
10635
- switch (Fe) {
10635
+ return D.replace(g, function(he, Ee) {
10636
+ return Ee || function(Ne) {
10637
+ switch (Ne) {
10636
10638
  case "YY":
10637
10639
  return String(H.$y).slice(-2);
10638
10640
  case "YYYY":
@@ -10748,7 +10750,7 @@ function Rh() {
10748
10750
  return S.$i || (S(O, B, U), S.$i = !0), U;
10749
10751
  }, U.locale = F, U.isDayjs = z, U.unix = function(S) {
10750
10752
  return U(1e3 * S);
10751
- }, U.en = b[P], U.Ls = b, U.p = {}, U;
10753
+ }, U.en = b[I], U.Ls = b, U.p = {}, U;
10752
10754
  });
10753
10755
  }(wn)), wn.exports;
10754
10756
  }
@@ -10786,7 +10788,7 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
10786
10788
  submitEvent: l
10787
10789
  }) => {
10788
10790
  var A;
10789
- const { primaryColor: s, conversationScreen: u } = Q(Se), { content: c, disableFeedback: d, liveAgent: p, role: f, timestamp: y, toolCalls: h } = n ?? {}, v = p || $h(h).includes("escalate_to_an_agent"), g = !v && !!c, I = {
10791
+ const { primaryColor: s, conversationScreen: u } = ee(ke), { content: c, disableFeedback: d, liveAgent: p, role: f, timestamp: y, toolCalls: h } = n ?? {}, v = p || $h(h).includes("escalate_to_an_agent"), g = !v && !!c, P = {
10790
10792
  agent: {
10791
10793
  bubbleClassName: "xpert-chatbot-popup__bubble--assistant",
10792
10794
  bubbleStyle: {},
@@ -10818,7 +10820,7 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
10818
10820
  return /* @__PURE__ */ k.jsxs(
10819
10821
  "section",
10820
10822
  {
10821
- "aria-label": I[f].sectionAriaLabel,
10823
+ "aria-label": P[f].sectionAriaLabel,
10822
10824
  className: "xpert-chatbot-popup__bubble--group",
10823
10825
  ref: r,
10824
10826
  children: [
@@ -10826,7 +10828,7 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
10826
10828
  "div",
10827
10829
  {
10828
10830
  className: "xpert-chatbot-popup__bubble--group-inner",
10829
- style: I[f].innerStyle,
10831
+ style: P[f].innerStyle,
10830
10832
  children: [
10831
10833
  f === "agent" && /* @__PURE__ */ k.jsx(
10832
10834
  On,
@@ -10840,8 +10842,8 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
10840
10842
  "div",
10841
10843
  {
10842
10844
  "data-testid": "message-container",
10843
- className: I[f].bubbleClassName,
10844
- style: I[f].bubbleStyle,
10845
+ className: P[f].bubbleClassName,
10846
+ style: P[f].bubbleStyle,
10845
10847
  children: [
10846
10848
  g && /* @__PURE__ */ k.jsx(
10847
10849
  ri,
@@ -10862,7 +10864,7 @@ const Vh = "Sure, I can get you to someone who can help.", rn = ({
10862
10864
  children: q.children
10863
10865
  }
10864
10866
  ),
10865
- p: (q) => /* @__PURE__ */ k.jsx("p", { ...q, style: I[f].bubbleStyle, children: q.children })
10867
+ p: (q) => /* @__PURE__ */ k.jsx("p", { ...q, style: P[f].bubbleStyle, children: q.children })
10866
10868
  },
10867
10869
  linkTarget: "_blank",
10868
10870
  transformLinkUri: Uh,
@@ -10951,8 +10953,8 @@ ii.propTypes = {
10951
10953
  };
10952
10954
  ii.displayName = "NotificationMessage";
10953
10955
  function yl({ disableScroll: e }) {
10954
- const t = ze(null);
10955
- return ke(() => {
10956
+ const t = Ue(null);
10957
+ return Ce(() => {
10956
10958
  var n;
10957
10959
  e || (n = t.current) == null || n.scrollIntoView({
10958
10960
  behavior: "smooth",
@@ -10986,8 +10988,8 @@ const an = ({
10986
10988
  setLiveChatOpen: a,
10987
10989
  submitEvent: o
10988
10990
  }) => {
10989
- const { disableScroll: l, hasError: s } = Q(Pe), u = ze(null);
10990
- return ke(() => {
10991
+ const { disableScroll: l, hasError: s } = ee(Pe), u = Ue(null);
10992
+ return Ce(() => {
10991
10993
  var c;
10992
10994
  (c = u.current) == null || c.scrollIntoView({
10993
10995
  behavior: "instant",
@@ -11030,7 +11032,7 @@ const an = ({
11030
11032
  an.propTypes = {
11031
11033
  isTestUser: C.bool,
11032
11034
  loading: C.bool.isRequired,
11033
- messages: In,
11035
+ messages: Pn,
11034
11036
  onFeedbackThumbSelection: C.func.isRequired,
11035
11037
  onMessageLinkClicked: C.func,
11036
11038
  setLiveChatOpen: C.func,
@@ -11046,14 +11048,14 @@ an.defaultProps = {
11046
11048
  an.displayName = "ConversationMessages";
11047
11049
  const bl = () => {
11048
11050
  var s, u, c;
11049
- const { conversationScreen: e, id: t } = Q(Se), n = `${t}-maintenance-banner`, [r, i] = ee(
11050
- Re.get(n) === void 0
11051
+ const { conversationScreen: e, id: t } = ee(ke), n = `${t}-maintenance-banner`, [r, i] = te(
11052
+ Be.get(n) === void 0
11051
11053
  ), a = /* @__PURE__ */ new Date(), o = new Date(
11052
11054
  (s = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : s.endDateTime
11053
11055
  );
11054
11056
  if (!((u = e == null ? void 0 : e.maintenanceBanner) != null && u.enabled) || !((c = e == null ? void 0 : e.maintenanceBanner) != null && c.text) || a > o || !r) return null;
11055
11057
  const l = () => {
11056
- Re.set(n, "1", { expires: 1 }), i(!1);
11058
+ Be.set(n, "1", { expires: 1 }), i(!1);
11057
11059
  };
11058
11060
  return /* @__PURE__ */ k.jsxs(
11059
11061
  "div",
@@ -11098,7 +11100,7 @@ const bl = () => {
11098
11100
  bl.displayName = "MaintenanceBanner";
11099
11101
  const ai = ({ loading: e, onPromptClick: t }) => {
11100
11102
  var a;
11101
- const { primaryColor: n, conversationScreen: r } = Q(Se), { deleteConversationModal: i } = Q(St);
11103
+ const { primaryColor: n, conversationScreen: r } = ee(ke), { deleteConversationModal: i } = ee(St);
11102
11104
  return /* @__PURE__ */ k.jsxs("div", { style: { display: "grid", gap: ".75rem" }, children: [
11103
11105
  /* @__PURE__ */ k.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
11104
11106
  (a = r == null ? void 0 : r.prompts) == null ? void 0 : a.map((o) => {
@@ -11140,8 +11142,8 @@ function oi({
11140
11142
  userInput: s
11141
11143
  }) {
11142
11144
  var v, g;
11143
- const { conversationScreen: u, disclaimer: c } = Q(Se), { deleteConversationModal: d, xpertMessages: p } = Q(St), { loading: f, setMode: y } = Q(Pe), h = (I) => {
11144
- u.liveChat.useOwnChat ? y(ut.LIVECHAT) : o(I);
11145
+ const { conversationScreen: u, disclaimer: c } = ee(ke), { deleteConversationModal: d, xpertMessages: p } = ee(St), { loading: f, setMode: y } = ee(Pe), h = (P) => {
11146
+ u.liveChat.useOwnChat ? y(ut.LIVECHAT) : o(P);
11145
11147
  };
11146
11148
  return /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
11147
11149
  /* @__PURE__ */ k.jsxs(
@@ -11238,7 +11240,7 @@ oi.defaultProps = {
11238
11240
  submitEvent: null,
11239
11241
  userInput: ""
11240
11242
  };
11241
- var gr = {}, Me = {}, yr = {}, Ha;
11243
+ var gr = {}, De = {}, yr = {}, Ha;
11242
11244
  function rt() {
11243
11245
  return Ha || (Ha = 1, function(e) {
11244
11246
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isEventSourceSupported = e.isReactNative = e.ReadyState = e.DEFAULT_HEARTBEAT = e.UNPARSABLE_JSON_OBJECT = e.DEFAULT_RECONNECT_INTERVAL_MS = e.DEFAULT_RECONNECT_LIMIT = e.SOCKET_IO_PING_CODE = e.SOCKET_IO_PATH = e.SOCKET_IO_PING_INTERVAL = e.DEFAULT_EVENT_SOURCE_OPTIONS = e.EMPTY_EVENT_HANDLERS = e.DEFAULT_OPTIONS = void 0;
@@ -11330,8 +11332,8 @@ function vl() {
11330
11332
  else if (g + s <= v && y + s <= v)
11331
11333
  try {
11332
11334
  typeof p == "function" ? r.send(p()) : r.send(p), y = v;
11333
- } catch (I) {
11334
- console.error("Heartbeat failed, closing connection", I instanceof Error ? I.message : I), r.close();
11335
+ } catch (P) {
11336
+ console.error("Heartbeat failed, closing connection", P instanceof Error ? P.message : P), r.close();
11335
11337
  }
11336
11338
  }, f);
11337
11339
  return r.addEventListener("close", function() {
@@ -11421,14 +11423,14 @@ function Wh() {
11421
11423
  return c.onclose = function(v) {
11422
11424
  var g;
11423
11425
  if (d.current.onClose && d.current.onClose(v), p(r.ReadyState.CLOSED), d.current.shouldReconnect && d.current.shouldReconnect(v)) {
11424
- var I = (g = d.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT;
11425
- if (y.current < I) {
11426
+ var P = (g = d.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT;
11427
+ if (y.current < P) {
11426
11428
  var A = typeof d.current.reconnectInterval == "function" ? d.current.reconnectInterval(y.current) : d.current.reconnectInterval;
11427
11429
  h = window.setTimeout(function() {
11428
11430
  y.current++, f();
11429
11431
  }, A ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
11430
11432
  } else
11431
- d.current.onReconnectStop && d.current.onReconnectStop(I), console.warn("Max reconnect attempts of ".concat(I, " exceeded"));
11433
+ d.current.onReconnectStop && d.current.onReconnectStop(P), console.warn("Max reconnect attempts of ".concat(P, " exceeded"));
11432
11434
  }
11433
11435
  }, function() {
11434
11436
  return h && window.clearTimeout(h);
@@ -11439,19 +11441,19 @@ function Wh() {
11439
11441
  var g;
11440
11442
  if (d.current.onError && d.current.onError(v), r.isEventSourceSupported && c instanceof EventSource && (d.current.onClose && d.current.onClose(e(e({}, v), { code: 1006, reason: "An error occurred with the EventSource: ".concat(v), wasClean: !1 })), p(r.ReadyState.CLOSED), c.close()), d.current.retryOnError)
11441
11443
  if (y.current < ((g = d.current.reconnectAttempts) !== null && g !== void 0 ? g : r.DEFAULT_RECONNECT_LIMIT)) {
11442
- var I = typeof d.current.reconnectInterval == "function" ? d.current.reconnectInterval(y.current) : d.current.reconnectInterval;
11444
+ var P = typeof d.current.reconnectInterval == "function" ? d.current.reconnectInterval(y.current) : d.current.reconnectInterval;
11443
11445
  h = window.setTimeout(function() {
11444
11446
  y.current++, f();
11445
- }, I ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
11447
+ }, P ?? r.DEFAULT_RECONNECT_INTERVAL_MS);
11446
11448
  } else
11447
11449
  d.current.onReconnectStop && d.current.onReconnectStop(d.current.reconnectAttempts), console.warn("Max reconnect attempts of ".concat(d.current.reconnectAttempts, " exceeded"));
11448
11450
  }, function() {
11449
11451
  return h && window.clearTimeout(h);
11450
11452
  };
11451
11453
  }, u = function(c, d, p, f, y, h, v) {
11452
- var g = d.setLastMessage, I = d.setReadyState, A, q, P;
11453
- return p.current.fromSocketIO && (A = (0, t.setUpSocketIOPing)(v)), a(c, p, g, h), o(c, p, I, y, h), q = l(c, p, I, f, y), P = s(c, p, I, f, y), function() {
11454
- I(r.ReadyState.CLOSING), q(), P(), c.close(), A && clearInterval(A);
11454
+ var g = d.setLastMessage, P = d.setReadyState, A, q, I;
11455
+ return p.current.fromSocketIO && (A = (0, t.setUpSocketIOPing)(v)), a(c, p, g, h), o(c, p, P, y, h), q = l(c, p, P, f, y), I = s(c, p, P, f, y), function() {
11456
+ P(r.ReadyState.CLOSING), q(), I(), c.close(), A && clearInterval(A);
11455
11457
  };
11456
11458
  };
11457
11459
  return bt.attachListeners = u, bt;
@@ -11571,22 +11573,22 @@ function Zh() {
11571
11573
  });
11572
11574
  }
11573
11575
  return new (c || (c = Promise))(function(f, y) {
11574
- function h(I) {
11576
+ function h(P) {
11575
11577
  try {
11576
- g(d.next(I));
11578
+ g(d.next(P));
11577
11579
  } catch (A) {
11578
11580
  y(A);
11579
11581
  }
11580
11582
  }
11581
- function v(I) {
11583
+ function v(P) {
11582
11584
  try {
11583
- g(d.throw(I));
11585
+ g(d.throw(P));
11584
11586
  } catch (A) {
11585
11587
  y(A);
11586
11588
  }
11587
11589
  }
11588
- function g(I) {
11589
- I.done ? f(I.value) : p(I.value).then(h, v);
11590
+ function g(P) {
11591
+ P.done ? f(P.value) : p(P.value).then(h, v);
11590
11592
  }
11591
11593
  g((d = d.apply(s, u || [])).next());
11592
11594
  });
@@ -11599,8 +11601,8 @@ function Zh() {
11599
11601
  return this;
11600
11602
  }), y;
11601
11603
  function h(g) {
11602
- return function(I) {
11603
- return v([g, I]);
11604
+ return function(P) {
11605
+ return v([g, P]);
11604
11606
  };
11605
11607
  }
11606
11608
  function v(g) {
@@ -11641,8 +11643,8 @@ function Zh() {
11641
11643
  continue;
11642
11644
  }
11643
11645
  g = u.call(s, c);
11644
- } catch (I) {
11645
- g = [6, I], p = 0;
11646
+ } catch (P) {
11647
+ g = [6, P], p = 0;
11646
11648
  } finally {
11647
11649
  d = f = 0;
11648
11650
  }
@@ -11663,7 +11665,7 @@ function Zh() {
11663
11665
  for (var c = [], d = 2; d < arguments.length; d++)
11664
11666
  c[d - 2] = arguments[d];
11665
11667
  return t(void 0, r([s, u], c, !0), void 0, function(p, f, y) {
11666
- var h, v, g, I, A, q, P, b;
11668
+ var h, v, g, P, A, q, I, b;
11667
11669
  return y === void 0 && (y = 0), n(this, function(E) {
11668
11670
  switch (E.label) {
11669
11671
  case 0:
@@ -11678,7 +11680,7 @@ function Zh() {
11678
11680
  case 4:
11679
11681
  return E.sent(), [2, (0, e.getUrl)(p, f, y + 1)];
11680
11682
  case 5:
11681
- return (b = (P = f.current).onReconnectStop) === null || b === void 0 || b.call(P, y), [2, null];
11683
+ return (b = (I = f.current).onReconnectStop) === null || b === void 0 || b.call(I, y), [2, null];
11682
11684
  case 6:
11683
11685
  return [3, 8];
11684
11686
  case 7:
@@ -11690,7 +11692,7 @@ function Zh() {
11690
11692
  case 10:
11691
11693
  h = p, E.label = 11;
11692
11694
  case 11:
11693
- return I = f.current.fromSocketIO ? (0, i.parseSocketIOUrl)(h) : h, A = f.current.queryParams ? (0, i.appendQueryParams)(I, f.current.queryParams) : I, [2, A];
11695
+ return P = f.current.fromSocketIO ? (0, i.parseSocketIOUrl)(h) : h, A = f.current.queryParams ? (0, i.appendQueryParams)(P, f.current.queryParams) : P, [2, A];
11694
11696
  }
11695
11697
  });
11696
11698
  });
@@ -11719,9 +11721,9 @@ function Yh() {
11719
11721
  }
11720
11722
  var Ka;
11721
11723
  function fi() {
11722
- if (Ka) return Me;
11724
+ if (Ka) return De;
11723
11725
  Ka = 1;
11724
- var e = Me && Me.__assign || function() {
11726
+ var e = De && De.__assign || function() {
11725
11727
  return e = Object.assign || function(p) {
11726
11728
  for (var f, y = 1, h = arguments.length; y < h; y++) {
11727
11729
  f = arguments[y];
@@ -11729,98 +11731,98 @@ function fi() {
11729
11731
  }
11730
11732
  return p;
11731
11733
  }, e.apply(this, arguments);
11732
- }, t = Me && Me.__awaiter || function(p, f, y, h) {
11734
+ }, t = De && De.__awaiter || function(p, f, y, h) {
11733
11735
  function v(g) {
11734
- return g instanceof y ? g : new y(function(I) {
11735
- I(g);
11736
+ return g instanceof y ? g : new y(function(P) {
11737
+ P(g);
11736
11738
  });
11737
11739
  }
11738
- return new (y || (y = Promise))(function(g, I) {
11740
+ return new (y || (y = Promise))(function(g, P) {
11739
11741
  function A(b) {
11740
11742
  try {
11741
- P(h.next(b));
11743
+ I(h.next(b));
11742
11744
  } catch (E) {
11743
- I(E);
11745
+ P(E);
11744
11746
  }
11745
11747
  }
11746
11748
  function q(b) {
11747
11749
  try {
11748
- P(h.throw(b));
11750
+ I(h.throw(b));
11749
11751
  } catch (E) {
11750
- I(E);
11752
+ P(E);
11751
11753
  }
11752
11754
  }
11753
- function P(b) {
11755
+ function I(b) {
11754
11756
  b.done ? g(b.value) : v(b.value).then(A, q);
11755
11757
  }
11756
- P((h = h.apply(p, f || [])).next());
11758
+ I((h = h.apply(p, f || [])).next());
11757
11759
  });
11758
- }, n = Me && Me.__generator || function(p, f) {
11760
+ }, n = De && De.__generator || function(p, f) {
11759
11761
  var y = { label: 0, sent: function() {
11760
11762
  if (g[0] & 1) throw g[1];
11761
11763
  return g[1];
11762
- }, trys: [], ops: [] }, h, v, g, I = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
11763
- return I.next = A(0), I.throw = A(1), I.return = A(2), typeof Symbol == "function" && (I[Symbol.iterator] = function() {
11764
+ }, trys: [], ops: [] }, h, v, g, P = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
11765
+ return P.next = A(0), P.throw = A(1), P.return = A(2), typeof Symbol == "function" && (P[Symbol.iterator] = function() {
11764
11766
  return this;
11765
- }), I;
11766
- function A(P) {
11767
+ }), P;
11768
+ function A(I) {
11767
11769
  return function(b) {
11768
- return q([P, b]);
11770
+ return q([I, b]);
11769
11771
  };
11770
11772
  }
11771
- function q(P) {
11773
+ function q(I) {
11772
11774
  if (h) throw new TypeError("Generator is already executing.");
11773
- for (; I && (I = 0, P[0] && (y = 0)), y; ) try {
11774
- if (h = 1, v && (g = P[0] & 2 ? v.return : P[0] ? v.throw || ((g = v.return) && g.call(v), 0) : v.next) && !(g = g.call(v, P[1])).done) return g;
11775
- switch (v = 0, g && (P = [P[0] & 2, g.value]), P[0]) {
11775
+ for (; P && (P = 0, I[0] && (y = 0)), y; ) try {
11776
+ if (h = 1, v && (g = I[0] & 2 ? v.return : I[0] ? v.throw || ((g = v.return) && g.call(v), 0) : v.next) && !(g = g.call(v, I[1])).done) return g;
11777
+ switch (v = 0, g && (I = [I[0] & 2, g.value]), I[0]) {
11776
11778
  case 0:
11777
11779
  case 1:
11778
- g = P;
11780
+ g = I;
11779
11781
  break;
11780
11782
  case 4:
11781
- return y.label++, { value: P[1], done: !1 };
11783
+ return y.label++, { value: I[1], done: !1 };
11782
11784
  case 5:
11783
- y.label++, v = P[1], P = [0];
11785
+ y.label++, v = I[1], I = [0];
11784
11786
  continue;
11785
11787
  case 7:
11786
- P = y.ops.pop(), y.trys.pop();
11788
+ I = y.ops.pop(), y.trys.pop();
11787
11789
  continue;
11788
11790
  default:
11789
- if (g = y.trys, !(g = g.length > 0 && g[g.length - 1]) && (P[0] === 6 || P[0] === 2)) {
11791
+ if (g = y.trys, !(g = g.length > 0 && g[g.length - 1]) && (I[0] === 6 || I[0] === 2)) {
11790
11792
  y = 0;
11791
11793
  continue;
11792
11794
  }
11793
- if (P[0] === 3 && (!g || P[1] > g[0] && P[1] < g[3])) {
11794
- y.label = P[1];
11795
+ if (I[0] === 3 && (!g || I[1] > g[0] && I[1] < g[3])) {
11796
+ y.label = I[1];
11795
11797
  break;
11796
11798
  }
11797
- if (P[0] === 6 && y.label < g[1]) {
11798
- y.label = g[1], g = P;
11799
+ if (I[0] === 6 && y.label < g[1]) {
11800
+ y.label = g[1], g = I;
11799
11801
  break;
11800
11802
  }
11801
11803
  if (g && y.label < g[2]) {
11802
- y.label = g[2], y.ops.push(P);
11804
+ y.label = g[2], y.ops.push(I);
11803
11805
  break;
11804
11806
  }
11805
11807
  g[2] && y.ops.pop(), y.trys.pop();
11806
11808
  continue;
11807
11809
  }
11808
- P = f.call(p, y);
11810
+ I = f.call(p, y);
11809
11811
  } catch (b) {
11810
- P = [6, b], v = 0;
11812
+ I = [6, b], v = 0;
11811
11813
  } finally {
11812
11814
  h = g = 0;
11813
11815
  }
11814
- if (P[0] & 5) throw P[1];
11815
- return { value: P[0] ? P[1] : void 0, done: !0 };
11816
+ if (I[0] & 5) throw I[1];
11817
+ return { value: I[0] ? I[1] : void 0, done: !0 };
11816
11818
  }
11817
- }, r = Me && Me.__importDefault || function(p) {
11819
+ }, r = De && De.__importDefault || function(p) {
11818
11820
  return p && p.__esModule ? p : { default: p };
11819
11821
  };
11820
- Object.defineProperty(Me, "__esModule", { value: !0 }), Me.useWebSocket = void 0;
11821
- var i = Ge, a = Os, o = rt(), l = Xh(), s = Zh(), u = r(Yh()), c = ci(), d = function(p, f, y) {
11822
+ Object.defineProperty(De, "__esModule", { value: !0 }), De.useWebSocket = void 0;
11823
+ var i = Xe, a = Os, o = rt(), l = Xh(), s = Zh(), u = r(Yh()), c = ci(), d = function(p, f, y) {
11822
11824
  f === void 0 && (f = o.DEFAULT_OPTIONS), y === void 0 && (y = !0);
11823
- var h = (0, i.useState)(null), v = h[0], g = h[1], I = (0, i.useState)({}), A = I[0], q = I[1], P = (0, i.useMemo)(function() {
11825
+ var h = (0, i.useState)(null), v = h[0], g = h[1], P = (0, i.useState)({}), A = P[0], q = P[1], I = (0, i.useMemo)(function() {
11824
11826
  if (!f.disableJson && v)
11825
11827
  try {
11826
11828
  return JSON.parse(v.data);
@@ -11848,12 +11850,12 @@ function fi() {
11848
11850
  var D, m = !1, W = !0, Y = function() {
11849
11851
  return t(void 0, void 0, void 0, function() {
11850
11852
  var w, K, oe;
11851
- return n(this, function(ne) {
11852
- switch (ne.label) {
11853
+ return n(this, function(re) {
11854
+ switch (re.label) {
11853
11855
  case 0:
11854
11856
  return w = b, [4, (0, s.getUrl)(p, T)];
11855
11857
  case 1:
11856
- return w.current = ne.sent(), b.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), b.current = "ABORTED", (0, a.flushSync)(function() {
11858
+ return w.current = re.sent(), b.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), b.current = "ABORTED", (0, a.flushSync)(function() {
11857
11859
  return q(function(de) {
11858
11860
  return e(e({}, de), { ABORTED: o.ReadyState.CLOSED });
11859
11861
  });
@@ -11896,12 +11898,12 @@ function fi() {
11896
11898
  sendMessage: N,
11897
11899
  sendJsonMessage: H,
11898
11900
  lastMessage: v,
11899
- lastJsonMessage: P,
11901
+ lastJsonMessage: I,
11900
11902
  readyState: S,
11901
11903
  getWebSocket: j
11902
11904
  };
11903
11905
  };
11904
- return Me.useWebSocket = d, Me;
11906
+ return De.useWebSocket = d, De;
11905
11907
  }
11906
11908
  var xt = {}, Ja;
11907
11909
  function Kh() {
@@ -11917,7 +11919,7 @@ function Kh() {
11917
11919
  }, e.apply(this, arguments);
11918
11920
  };
11919
11921
  Object.defineProperty(xt, "__esModule", { value: !0 }), xt.useSocketIO = void 0;
11920
- var t = Ge, n = fi(), r = rt(), i = {
11922
+ var t = Xe, n = fi(), r = rt(), i = {
11921
11923
  type: "empty",
11922
11924
  payload: null
11923
11925
  }, a = function(l) {
@@ -11970,7 +11972,7 @@ function Jh() {
11970
11972
  return s;
11971
11973
  };
11972
11974
  Object.defineProperty(lt, "__esModule", { value: !0 }), lt.useEventSource = void 0;
11973
- var n = Ge, r = fi(), i = rt(), a = function(o, l, s) {
11975
+ var n = Xe, r = fi(), i = rt(), a = function(o, l, s) {
11974
11976
  l === void 0 && (l = i.DEFAULT_EVENT_SOURCE_OPTIONS);
11975
11977
  var u = l.withCredentials, c = l.events, d = t(l, ["withCredentials", "events"]);
11976
11978
  s === void 0 && (s = !0);
@@ -11980,8 +11982,8 @@ function Jh() {
11980
11982
  c && (f.current = c);
11981
11983
  var y = (0, r.useWebSocket)(o, p, s), h = y.lastMessage, v = y.readyState, g = y.getWebSocket;
11982
11984
  return (0, n.useEffect)(function() {
11983
- h != null && h.type && Object.entries(f.current).forEach(function(I) {
11984
- var A = I[0], q = I[1];
11985
+ h != null && h.type && Object.entries(f.current).forEach(function(P) {
11986
+ var A = P[0], q = P[1];
11985
11987
  A === h.type && q(h);
11986
11988
  });
11987
11989
  }, [h]), {
@@ -12038,8 +12040,8 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
12038
12040
  CONNECTING: "CONNECTING",
12039
12041
  CONVERSATION: "CONVERSATION",
12040
12042
  FORM: "FORM"
12041
- }, Et = Pn({}), xl = ({ children: e, liveChatPayload: t }) => {
12042
- const { conversationScreen: n } = Q(Se), { pushXpertMessage: r } = Q(St), { setHasError: i, setMode: a } = Q(Pe), [o, l] = ee(""), [s, u] = ee(!1), [, c] = ee(""), [d, p] = ee([]), [f, y] = ee(null), [h, v] = ee(st.FORM), [g, I] = ee(null), A = (j) => p((D) => [...D, j]), q = async (j) => {
12043
+ }, Et = In({}), xl = ({ children: e, liveChatPayload: t }) => {
12044
+ const { conversationScreen: n } = ee(ke), { pushXpertMessage: r } = ee(St), { setHasError: i, setMode: a } = ee(Pe), [o, l] = te(""), [s, u] = te(!1), [, c] = te(""), [d, p] = te([]), [f, y] = te(null), [h, v] = te(st.FORM), [g, P] = te(null), A = (j) => p((D) => [...D, j]), q = async (j) => {
12043
12045
  const D = await n0(j.data), { conversation_id: m, event_type: W, body: Y } = D;
12044
12046
  switch (W) {
12045
12047
  case "AGENT_TYPING":
@@ -12065,7 +12067,7 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
12065
12067
  default:
12066
12068
  return;
12067
12069
  }
12068
- }, { sendJsonMessage: P } = t0(f, {
12070
+ }, { sendJsonMessage: I } = t0(f, {
12069
12071
  onMessage: q
12070
12072
  }), b = () => {
12071
12073
  var D;
@@ -12073,7 +12075,7 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
12073
12075
  const j = (D = n == null ? void 0 : n.liveChat) == null ? void 0 : D.form;
12074
12076
  (!j || j.length === 0) && a(ut.XPERT);
12075
12077
  }, E = () => {
12076
- P({
12078
+ I({
12077
12079
  action: "sendmessage",
12078
12080
  event: "TERMINATE_CONVERSATION"
12079
12081
  });
@@ -12089,7 +12091,7 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
12089
12091
  const j = setTimeout(() => {
12090
12092
  u(!1);
12091
12093
  }, 5e3);
12092
- I(j);
12094
+ P(j);
12093
12095
  }, M = (j) => {
12094
12096
  const { displayName: D } = j;
12095
12097
  p([]), l(D ?? "An agent"), v(st.CONVERSATION);
@@ -12100,7 +12102,7 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
12100
12102
  id: D ?? "",
12101
12103
  role: "agent",
12102
12104
  timestamp: W ? new Date(W) : void 0
12103
- }), P({
12105
+ }), I({
12104
12106
  action: "sendmessage",
12105
12107
  messages: [
12106
12108
  {
@@ -12123,14 +12125,14 @@ const r0 = "This conversation with a live agent has ended. Please note that a tr
12123
12125
  id: "",
12124
12126
  role: "user",
12125
12127
  timestamp: /* @__PURE__ */ new Date()
12126
- }), P({
12128
+ }), I({
12127
12129
  action: "sendmessage",
12128
12130
  event: "OUTGOING_MESSAGE",
12129
12131
  message: j
12130
12132
  });
12131
12133
  },
12132
12134
  sendTypingEvent: async () => {
12133
- P({
12135
+ I({
12134
12136
  action: "sendmessage",
12135
12137
  event: "TYPING"
12136
12138
  });
@@ -12168,7 +12170,7 @@ xl.propTypes = {
12168
12170
  };
12169
12171
  const i0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M120-120v-300h60v198l558-558H540v-60h300v300h-60v-198L222-180h198v60H120Z'/%3e%3c/svg%3e", a0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23ffffff'%20height='48'%20viewBox='0%20-960%20960%20960'%20width='48'%3e%3cpath%20d='M370-287h360v-90H370v90ZM180-120q-24%200-42-18t-18-42v-600q0-24%2018-42t42-18h600q24%200%2042%2018t18%2042v600q0%2024-18%2042t-42%2018H180Zm0-60h600v-600H180v600Zm0-600v600-600Z'/%3e%3c/svg%3e";
12170
12172
  function wl({ handleResizeButtonClick: e, setIsMounted: t }) {
12171
- const { isMobile: n, isNormalSize: r } = Q(Pe);
12173
+ const { isMobile: n, isNormalSize: r } = ee(Pe);
12172
12174
  return n ? null : r ? /* @__PURE__ */ k.jsx(
12173
12175
  "button",
12174
12176
  {
@@ -12225,7 +12227,7 @@ function Cl({
12225
12227
  isMounted: r
12226
12228
  }) {
12227
12229
  var u;
12228
- const { conversationScreen: i } = Q(Se), { mode: a } = Q(Pe), { setDeleteConversationModal: o, xpertMessages: l } = Q(St), s = a === ut.XPERT && ((u = i == null ? void 0 : i.conversationHistory) == null ? void 0 : u.allowDeletion) && !!(l != null && l.length);
12230
+ const { conversationScreen: i } = ee(ke), { mode: a } = ee(Pe), { setDeleteConversationModal: o, xpertMessages: l } = ee(St), s = a === ut.XPERT && ((u = i == null ? void 0 : i.conversationHistory) == null ? void 0 : u.allowDeletion) && !!(l != null && l.length);
12229
12231
  return /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
12230
12232
  s && /* @__PURE__ */ k.jsx(
12231
12233
  "button",
@@ -12331,8 +12333,8 @@ function kl({
12331
12333
  setIsMounted: n,
12332
12334
  onClose: r
12333
12335
  }) {
12334
- var u, c, d, p, f, y, h, v, g, I, A, q, P, b, E;
12335
- const { primaryColor: i, conversationScreen: a } = Q(Se), { isMobile: o, mode: l } = Q(Pe), { step: s } = Q(Et);
12336
+ var u, c, d, p, f, y, h, v, g, P, A, q, I, b, E;
12337
+ const { primaryColor: i, conversationScreen: a } = ee(ke), { isMobile: o, mode: l } = ee(Pe), { step: s } = ee(Et);
12336
12338
  return s === st.CONNECTING && l === ut.LIVECHAT ? null : /* @__PURE__ */ k.jsxs(
12337
12339
  "div",
12338
12340
  {
@@ -12369,7 +12371,7 @@ function kl({
12369
12371
  di,
12370
12372
  {
12371
12373
  backgroundColor: (g = a == null ? void 0 : a.header.logo.style) == null ? void 0 : g.backgroundColor,
12372
- textColor: ((q = (A = (I = a == null ? void 0 : a.header) == null ? void 0 : I.logo) == null ? void 0 : A.style) == null ? void 0 : q.color) || "#FFFFFF"
12374
+ textColor: ((q = (A = (P = a == null ? void 0 : a.header) == null ? void 0 : P.logo) == null ? void 0 : A.style) == null ? void 0 : q.color) || "#FFFFFF"
12373
12375
  }
12374
12376
  ),
12375
12377
  /* @__PURE__ */ k.jsx(
@@ -12387,7 +12389,7 @@ function kl({
12387
12389
  className: "xpert-chatbot-popup__header_container",
12388
12390
  style: {
12389
12391
  right: 0,
12390
- background: ((E = (b = (P = a == null ? void 0 : a.header) == null ? void 0 : P.container) == null ? void 0 : b.style) == null ? void 0 : E.background) || i
12392
+ background: ((E = (b = (I = a == null ? void 0 : a.header) == null ? void 0 : I.container) == null ? void 0 : b.style) == null ? void 0 : E.background) || i
12391
12393
  }
12392
12394
  }
12393
12395
  )
@@ -12406,7 +12408,7 @@ function o0() {
12406
12408
  deleteConversationModal: e,
12407
12409
  deleteConversationHistory: t,
12408
12410
  setDeleteConversationModal: n
12409
- } = Q(St), { primaryColor: r } = Q(Se);
12411
+ } = ee(St), { primaryColor: r } = ee(ke);
12410
12412
  return e ? /* @__PURE__ */ k.jsx(
12411
12413
  "div",
12412
12414
  {
@@ -12435,7 +12437,7 @@ function o0() {
12435
12437
  }
12436
12438
  const l0 = () => {
12437
12439
  var n, r, i, a, o;
12438
- const { isMobile: e } = Q(Pe), { launchButton: t } = Q(Se);
12440
+ const { isMobile: e } = ee(Pe), { launchButton: t } = ee(ke);
12439
12441
  return (n = t == null ? void 0 : t.message) != null && n.enabled ? /* @__PURE__ */ k.jsx(
12440
12442
  "div",
12441
12443
  {
@@ -12453,7 +12455,7 @@ function s0() {
12453
12455
  }
12454
12456
  function pi() {
12455
12457
  var l;
12456
- const { conversationScreen: e, primaryColor: t, widgetMode: n } = Q(Se), { cancelLiveChatConnection: r } = Q(Et), i = ((l = e == null ? void 0 : e.liveChat) == null ? void 0 : l.queueMessages) ?? [], a = n ? t : "#FFFFFF", o = n ? "#FFFFFF" : t;
12458
+ const { conversationScreen: e, primaryColor: t, widgetMode: n } = ee(ke), { cancelLiveChatConnection: r } = ee(Et), i = ((l = e == null ? void 0 : e.liveChat) == null ? void 0 : l.queueMessages) ?? [], a = n ? t : "#FFFFFF", o = n ? "#FFFFFF" : t;
12457
12459
  return /* @__PURE__ */ k.jsxs("div", { className: "live-chat-connecting", style: { backgroundColor: a }, children: [
12458
12460
  /* @__PURE__ */ k.jsx(s0, {}),
12459
12461
  /* @__PURE__ */ k.jsx("div", { className: "live-chat-connecting-messages", style: { color: o }, children: i.length === 0 ? /* @__PURE__ */ k.jsx("p", { children: "Connecting to live agent" }) : i.map((s, u) => /* @__PURE__ */ k.jsx("p", { children: s }, `queue-message-${u}`)) }),
@@ -12487,7 +12489,7 @@ const to = 500, u0 = [
12487
12489
  }
12488
12490
  ];
12489
12491
  function hi({ onDismiss: e }) {
12490
- const [t, n] = ee(""), [r, i] = ee(!1), [a, o] = ee(null), { conversationScreen: l } = Q(Se), { endLiveChat: s, submitSurvey: u, terminateConversation: c } = Q(Et), d = () => {
12492
+ const [t, n] = te(""), [r, i] = te(!1), [a, o] = te(null), { conversationScreen: l } = ee(ke), { endLiveChat: s, submitSurvey: u, terminateConversation: c } = ee(Et), d = () => {
12491
12493
  var y;
12492
12494
  c(), (y = l == null ? void 0 : l.liveChat) != null && y.useSurvey ? i(!0) : s();
12493
12495
  }, p = () => {
@@ -12509,14 +12511,14 @@ function hi({ onDismiss: e }) {
12509
12511
  r && /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
12510
12512
  /* @__PURE__ */ k.jsx("p", { children: "Before you go, let me know how I did:" }),
12511
12513
  /* @__PURE__ */ k.jsx("div", { className: "livechat-end-confirmation-container__icon-button-container", children: u0.map(({ key: y, icon: h, text: v }) => {
12512
- const g = y === a, I = g ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
12514
+ const g = y === a, P = g ? { backgroundColor: "#E7E4DB", borderColor: "#767676" } : {};
12513
12515
  return /* @__PURE__ */ k.jsxs(
12514
12516
  "button",
12515
12517
  {
12516
12518
  "aria-checked": g,
12517
12519
  "aria-label": v,
12518
12520
  role: "radio",
12519
- style: I,
12521
+ style: P,
12520
12522
  onClick: () => o(y),
12521
12523
  children: [
12522
12524
  /* @__PURE__ */ k.jsx("span", { children: h }),
@@ -12561,7 +12563,7 @@ hi.propTypes = {
12561
12563
  };
12562
12564
  hi.defaultProps = {};
12563
12565
  function c0(e, t) {
12564
- const [n, r] = ee(!1), i = ze(), a = Ct(
12566
+ const [n, r] = te(!1), i = Ue(), a = Ct(
12565
12567
  (...o) => {
12566
12568
  n || (e(...o), r(!0), clearTimeout(i.current), i.current = setTimeout(() => {
12567
12569
  r(!1);
@@ -12569,7 +12571,7 @@ function c0(e, t) {
12569
12571
  },
12570
12572
  [n, e, t]
12571
12573
  );
12572
- return ke(() => () => {
12574
+ return Ce(() => () => {
12573
12575
  clearTimeout(i.current);
12574
12576
  }, []), a;
12575
12577
  }
@@ -12580,7 +12582,7 @@ function mi() {
12580
12582
  liveChatMessages: n,
12581
12583
  sendMessage: r,
12582
12584
  sendTypingEvent: i
12583
- } = Q(Et), [a, o] = ee(!1), [l, s] = ee(""), u = ze(), c = c0(i, 5e3), d = (y) => {
12585
+ } = ee(Et), [a, o] = te(!1), [l, s] = te(""), u = Ue(), c = c0(i, 5e3), d = (y) => {
12584
12586
  s(y.target.value), c();
12585
12587
  }, p = () => {
12586
12588
  l.trim() !== "" && (r(l), f());
@@ -12655,7 +12657,7 @@ function f0(e) {
12655
12657
  }));
12656
12658
  }
12657
12659
  const d0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20role='img'%20focusable='false'%20aria-hidden='true'%3e%3cpath%20d='M19%2019H5V5h7V3H3v18h18v-9h-2v7zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3h-7z'%20fill='currentColor'%3e%3c/path%3e%3c/svg%3e", p0 = () => {
12658
- const [e, t] = ee({});
12660
+ const [e, t] = te({});
12659
12661
  return {
12660
12662
  clearError: (a) => {
12661
12663
  t((o) => {
@@ -12671,7 +12673,7 @@ const d0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
12671
12673
  setErrors: t
12672
12674
  };
12673
12675
  }, h0 = (e) => {
12674
- const [t, n] = ee(e);
12676
+ const [t, n] = te(e);
12675
12677
  return [t, n, (a, o) => {
12676
12678
  n((l) => ({ ...l, [a]: o }));
12677
12679
  }, (a) => {
@@ -12679,24 +12681,24 @@ const d0 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
12679
12681
  }];
12680
12682
  }, wr = "privacy policy";
12681
12683
  function gi() {
12682
- const { conversationScreen: e, primaryColor: t } = Q(Se), { startLiveChat: n } = Q(Et), { setMode: r } = Q(Pe), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = h0({}), [c, d] = ee(!1), { clearError: p, errors: f, setErrors: y } = p0(), h = Es(
12684
+ const { conversationScreen: e, primaryColor: t } = ee(ke), { startLiveChat: n } = ee(Et), { setMode: r } = ee(Pe), { form: i, formHeader: a, privacyPolicyLink: o, privacyPolicyText: l } = e.liveChat, [s, , u] = h0({}), [c, d] = te(!1), { clearError: p, errors: f, setErrors: y } = p0(), h = Es(
12683
12685
  () => (l ?? "").split(wr, 2),
12684
12686
  [l]
12685
12687
  ), v = () => {
12686
12688
  r(ut.XPERT);
12687
12689
  }, g = () => {
12688
- p("privacyCheck"), d((P) => !P);
12689
- }, I = (P, b) => {
12690
- const E = P.target.value;
12690
+ p("privacyCheck"), d((I) => !I);
12691
+ }, P = (I, b) => {
12692
+ const E = I.target.value;
12691
12693
  p(b), u(b, E);
12692
12694
  }, A = () => {
12693
12695
  q() && n(s);
12694
12696
  };
12695
- ke(() => {
12697
+ Ce(() => {
12696
12698
  (!i || i.length === 0) && n();
12697
12699
  }, [i, n]);
12698
12700
  const q = () => {
12699
- const P = i.reduce((b, E) => {
12701
+ const I = i.reduce((b, E) => {
12700
12702
  const { key: z, validations: F = [] } = E, U = s[z];
12701
12703
  if (!U) return { ...b, [z]: "Required" };
12702
12704
  if ((F == null ? void 0 : F.length) > 0)
@@ -12710,22 +12712,22 @@ function gi() {
12710
12712
  }
12711
12713
  return b;
12712
12714
  }, {});
12713
- return !c && l && (P.privacyCheck = "Required"), y(P), Object.keys(P).length === 0;
12715
+ return !c && l && (I.privacyCheck = "Required"), y(I), Object.keys(I).length === 0;
12714
12716
  };
12715
12717
  return /* @__PURE__ */ k.jsxs("div", { className: "live-chat-form", children: [
12716
12718
  a && /* @__PURE__ */ k.jsx("p", { children: a }),
12717
- (i ?? []).map(({ key: P, name: b }) => /* @__PURE__ */ k.jsxs(Ts, { children: [
12719
+ (i ?? []).map(({ key: I, name: b }) => /* @__PURE__ */ k.jsxs(Ts, { children: [
12718
12720
  /* @__PURE__ */ k.jsx(
12719
12721
  "input",
12720
12722
  {
12721
- className: `live-chat-form-input ${f[P] ? "error" : ""}`,
12723
+ className: `live-chat-form-input ${f[I] ? "error" : ""}`,
12722
12724
  name: b,
12723
12725
  placeholder: b,
12724
- onChange: (E) => I(E, P)
12726
+ onChange: (E) => P(E, I)
12725
12727
  }
12726
12728
  ),
12727
- f[P] && /* @__PURE__ */ k.jsx("p", { className: "live-chat-form-error", children: f[P] })
12728
- ] }, P)),
12729
+ f[I] && /* @__PURE__ */ k.jsx("p", { className: "live-chat-form-error", children: f[I] })
12730
+ ] }, I)),
12729
12731
  l && /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
12730
12732
  /* @__PURE__ */ k.jsx(
12731
12733
  "div",
@@ -12770,7 +12772,7 @@ function gi() {
12770
12772
  },
12771
12773
  type: "checkbox",
12772
12774
  onChange: g,
12773
- onKeyDown: (P) => P.key === "Enter" && g()
12775
+ onKeyDown: (I) => I.key === "Enter" && g()
12774
12776
  }
12775
12777
  ),
12776
12778
  /* @__PURE__ */ k.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
@@ -12794,7 +12796,7 @@ function gi() {
12794
12796
  gi.propTypes = {};
12795
12797
  gi.defaultProps = {};
12796
12798
  function yi() {
12797
- const { step: e } = Q(Et);
12799
+ const { step: e } = ee(Et);
12798
12800
  return /* @__PURE__ */ k.jsxs("div", { className: "live-chat-container", children: [
12799
12801
  e === st.FORM && /* @__PURE__ */ k.jsx(gi, {}),
12800
12802
  e === st.CONNECTING && /* @__PURE__ */ k.jsx(pi, {}),
@@ -12812,17 +12814,17 @@ function Sl({
12812
12814
  style: a = {}
12813
12815
  }) {
12814
12816
  var y;
12815
- const { proactiveMessage: o } = Q(Se), [l, s] = ee(!0), [u, c] = ee(!1), d = l && (!(window != null && window.OnetrustActiveGroups) || ((y = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : y.includes("C0003"))) && Re.get(t) === void 0;
12816
- ke(() => {
12817
+ const { proactiveMessage: o } = ee(ke), [l, s] = te(!0), [u, c] = te(!1), d = l && (!(window != null && window.OnetrustActiveGroups) || ((y = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : y.includes("C0003"))) && Be.get(t) === void 0;
12818
+ Ce(() => {
12817
12819
  var h;
12818
12820
  (h = window == null ? void 0 : window.OneTrust) == null || h.OnConsentChanged(() => {
12819
12821
  var v;
12820
- !((v = window == null ? void 0 : window.OnetrustActiveGroups) != null && v.includes("C0003")) && Re.get(t) !== void 0 && Re.remove(t);
12822
+ !((v = window == null ? void 0 : window.OnetrustActiveGroups) != null && v.includes("C0003")) && Be.get(t) !== void 0 && Be.remove(t);
12821
12823
  });
12822
- }, [t]), ke(() => {
12824
+ }, [t]), Ce(() => {
12823
12825
  var h;
12824
12826
  i || (!(window != null && window.OnetrustActiveGroups) || (h = window == null ? void 0 : window.OnetrustActiveGroups) != null && h.includes("C0003")) && f(t, 1, 1);
12825
- }, [t, i]), ke(() => {
12827
+ }, [t, i]), Ce(() => {
12826
12828
  if (o != null && o.enabled && (o == null ? void 0 : o.delayMs) > 0) {
12827
12829
  const h = setTimeout(() => {
12828
12830
  c(!0);
@@ -12835,11 +12837,11 @@ function Sl({
12835
12837
  var h;
12836
12838
  s(!1), (!(window != null && window.OnetrustActiveGroups) || (h = window == null ? void 0 : window.OnetrustActiveGroups) != null && h.includes("C0003")) && f(t, 1, 1), r();
12837
12839
  }, f = (h, v, g) => {
12838
- const I = {
12840
+ const P = {
12839
12841
  expires: g,
12840
12842
  path: "/"
12841
12843
  };
12842
- Re.set(h, v, I);
12844
+ Be.set(h, v, P);
12843
12845
  };
12844
12846
  return !u || !d || !i ? null : /* @__PURE__ */ k.jsx("div", { children: /* @__PURE__ */ k.jsxs(
12845
12847
  "div",
@@ -12899,9 +12901,9 @@ function m0(e, t, n) {
12899
12901
  },
12900
12902
  [n]
12901
12903
  );
12902
- ke(() => (e && window.addEventListener("message", r), () => {
12904
+ Ce(() => (e && window.addEventListener("message", r), () => {
12903
12905
  window.removeEventListener("message", r);
12904
- }), [e, r]), ke(() => {
12906
+ }), [e, r]), Ce(() => {
12905
12907
  let i;
12906
12908
  return e && (i = document.createElement("style"), document.head.appendChild(i), ((o) => {
12907
12909
  i.innerHTML = `
@@ -12922,8 +12924,8 @@ function m0(e, t, n) {
12922
12924
  }, [e, t]);
12923
12925
  }
12924
12926
  function g0(e) {
12925
- const [t, n] = ee(null);
12926
- return ke(() => {
12927
+ const [t, n] = te(null);
12928
+ return Ce(() => {
12927
12929
  try {
12928
12930
  (() => {
12929
12931
  var i, a, o;
@@ -12948,7 +12950,7 @@ function g0(e) {
12948
12950
  }, [e]), t;
12949
12951
  }
12950
12952
  function y0(e) {
12951
- ke(() => {
12953
+ Ce(() => {
12952
12954
  const t = () => document.visibilityState === "visible" && e();
12953
12955
  return document.addEventListener("visibilitychange", t), () => {
12954
12956
  document.removeEventListener("visibilitychange", t);
@@ -12970,11 +12972,11 @@ function v0(e) {
12970
12972
  function x0(e) {
12971
12973
  return new TextEncoder().encode(e).length;
12972
12974
  }
12973
- const Oe = [];
12975
+ const Te = [];
12974
12976
  for (let e = 0; e < 256; ++e)
12975
- Oe.push((e + 256).toString(16).slice(1));
12977
+ Te.push((e + 256).toString(16).slice(1));
12976
12978
  function w0(e, t = 0) {
12977
- return (Oe[e[t + 0]] + Oe[e[t + 1]] + Oe[e[t + 2]] + Oe[e[t + 3]] + "-" + Oe[e[t + 4]] + Oe[e[t + 5]] + "-" + Oe[e[t + 6]] + Oe[e[t + 7]] + "-" + Oe[e[t + 8]] + Oe[e[t + 9]] + "-" + Oe[e[t + 10]] + Oe[e[t + 11]] + Oe[e[t + 12]] + Oe[e[t + 13]] + Oe[e[t + 14]] + Oe[e[t + 15]]).toLowerCase();
12979
+ return (Te[e[t + 0]] + Te[e[t + 1]] + Te[e[t + 2]] + Te[e[t + 3]] + "-" + Te[e[t + 4]] + Te[e[t + 5]] + "-" + Te[e[t + 6]] + Te[e[t + 7]] + "-" + Te[e[t + 8]] + Te[e[t + 9]] + "-" + Te[e[t + 10]] + Te[e[t + 11]] + Te[e[t + 12]] + Te[e[t + 13]] + Te[e[t + 14]] + Te[e[t + 15]]).toLowerCase();
12978
12980
  }
12979
12981
  let Cr;
12980
12982
  const C0 = new Uint8Array(16);
@@ -12998,13 +13000,13 @@ function _0(e, t, n) {
12998
13000
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, w0(r);
12999
13001
  }
13000
13002
  const ro = (e) => {
13001
- let t = Re.get(`${e}-conversation-history-id`);
13002
- return t || (t = _0(), Re.set(`${e}-conversation-history-id`, t, {
13003
+ let t = Be.get(`${e}-conversation-history-id`);
13004
+ return t || (t = _0(), Be.set(`${e}-conversation-history-id`, t, {
13003
13005
  expires: 1
13004
13006
  })), t;
13005
13007
  };
13006
13008
  function bi({ submitEventExternal: e }) {
13007
- var ht, mt, Pt, Ze;
13009
+ var ht, mt, It, Ye;
13008
13010
  const {
13009
13011
  chatApi: t,
13010
13012
  configurationLoaded: n,
@@ -13015,30 +13017,30 @@ function bi({ submitEventExternal: e }) {
13015
13017
  userTracking: l,
13016
13018
  webExperimentation: s,
13017
13019
  widgetMode: u
13018
- } = Q(Se), {
13020
+ } = ee(ke), {
13019
13021
  onFeedbackSelection: c,
13020
13022
  onMessageSent: d,
13021
13023
  pushXpertMessage: p,
13022
13024
  setXpertMessages: f,
13023
13025
  xpertMessages: y
13024
- } = Q(St), {
13026
+ } = ee(St), {
13025
13027
  isMobile: h,
13026
13028
  mode: v,
13027
13029
  setDisableScroll: g,
13028
- setHasError: I,
13030
+ setHasError: P,
13029
13031
  setHasNewMessage: A,
13030
13032
  setIsNormalSize: q,
13031
- setLoading: P
13032
- } = Q(Pe), [, b] = ee(!1), [, E] = ee(!1), [z, F] = ee(!1), [U, M] = ee(!1), [B, T] = ee(""), [S, O] = ee(!1), N = z || !u, H = ze(null), j = ze(null), D = ze(null), m = Re.get(`${i}-test`) === "1";
13033
+ setLoading: I
13034
+ } = ee(Pe), [, b] = te(!1), [, E] = te(!1), [z, F] = te(!1), [U, M] = te(!1), [B, T] = te(""), [S, O] = te(!1), N = z || !u, H = Ue(null), j = Ue(null), D = Ue(null), m = Be.get(`${i}-test`) === "1";
13033
13035
  m0(
13034
13036
  (ht = r == null ? void 0 : r.liveChat) == null ? void 0 : ht.enabled,
13035
13037
  U,
13036
13038
  M
13037
13039
  );
13038
13040
  const W = Ct(
13039
- ({ name: X, payload: re }) => {
13041
+ ({ name: X, payload: ie }) => {
13040
13042
  if (!n || !(l != null && l.enabled)) return;
13041
- const ce = zr(l == null ? void 0 : l.payloadParams, re);
13043
+ const ce = zr(l == null ? void 0 : l.payloadParams, ie);
13042
13044
  e ? e({ name: X, payload: ce }) : D.current.track(
13043
13045
  // TODO: this is untestable - create a custom hook to get submit event function.
13044
13046
  X,
@@ -13055,9 +13057,9 @@ function bi({ submitEventExternal: e }) {
13055
13057
  var X;
13056
13058
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003") && (X = r == null ? void 0 : r.conversationHistory) != null && X.enabled)
13057
13059
  try {
13058
- let re = ro(i);
13060
+ let ie = ro(i);
13059
13061
  const ce = await fetch(
13060
- `${t.baseUrl}/xpert/v2/history?conversation_id=${re}`,
13062
+ `${t.baseUrl}/xpert/v2/history?conversation_id=${ie}`,
13061
13063
  {
13062
13064
  method: "GET",
13063
13065
  headers: {
@@ -13067,17 +13069,19 @@ function bi({ submitEventExternal: e }) {
13067
13069
  );
13068
13070
  if (!ce.ok)
13069
13071
  throw new Error(`HTTPError: ${ce.status} ${ce.statusText}`);
13070
- const Ee = await ce.json();
13072
+ const _e = await ce.json();
13071
13073
  f(
13072
- Ee.map((Ne) => ({
13073
- ...Ne,
13074
- disableFeedback: !0
13074
+ _e.map((Ie) => ({
13075
+ ...Ie,
13076
+ disableFeedback: !0,
13077
+ toolCalls: Ie.tool_calls,
13078
+ toolCallId: Ie.tool_call_id
13075
13079
  }))
13076
13080
  ), g(!0), A(!0);
13077
- } catch (re) {
13078
- console.error(re);
13081
+ } catch (ie) {
13082
+ console.error(ie);
13079
13083
  } finally {
13080
- P(!1);
13084
+ I(!1);
13081
13085
  }
13082
13086
  };
13083
13087
  y0(
@@ -13085,32 +13089,32 @@ function bi({ submitEventExternal: e }) {
13085
13089
  var X;
13086
13090
  return ((X = r == null ? void 0 : r.conversationHistory) == null ? void 0 : X.enabled) && N && !U && Y();
13087
13091
  }
13088
- ), ke(() => {
13089
- let X, re;
13092
+ ), Ce(() => {
13093
+ let X, ie;
13090
13094
  if (n)
13091
13095
  return l != null && l.enabled && (X = setInterval(() => {
13092
- var Ee;
13093
- ((Ee = window.analytics) != null && Ee.track || e) && (D.current = window.analytics, clearInterval(X), clearTimeout(re), b(!0));
13094
- }, 1e3), re = setTimeout(() => {
13096
+ var _e;
13097
+ ((_e = window.analytics) != null && _e.track || e) && (D.current = window.analytics, clearInterval(X), clearTimeout(ie), b(!0));
13098
+ }, 1e3), ie = setTimeout(() => {
13095
13099
  clearInterval(X);
13096
13100
  }, 6e4)), () => {
13097
- clearInterval(X), clearTimeout(re);
13101
+ clearInterval(X), clearTimeout(ie);
13098
13102
  };
13099
13103
  }, [
13100
13104
  n,
13101
13105
  e,
13102
13106
  l == null ? void 0 : l.enabled,
13103
13107
  l == null ? void 0 : l.prefix
13104
- ]), ke(() => {
13105
- let X, re;
13108
+ ]), Ce(() => {
13109
+ let X, ie;
13106
13110
  const ce = () => {
13107
- s != null && s.enabled && window.optimizely && window.experiments && (clearInterval(X), clearTimeout(re), E(!0));
13111
+ s != null && s.enabled && window.optimizely && window.experiments && (clearInterval(X), clearTimeout(ie), E(!0));
13108
13112
  };
13109
13113
  if (n)
13110
- return X = setInterval(ce, 1e3), re = setTimeout(() => {
13114
+ return X = setInterval(ce, 1e3), ie = setTimeout(() => {
13111
13115
  clearInterval(X);
13112
13116
  }, 6e4), () => {
13113
- clearInterval(X), clearTimeout(re);
13117
+ clearInterval(X), clearTimeout(ie);
13114
13118
  };
13115
13119
  }, [
13116
13120
  n,
@@ -13118,8 +13122,8 @@ function bi({ submitEventExternal: e }) {
13118
13122
  s == null ? void 0 : s.experimentName
13119
13123
  ]);
13120
13124
  const w = (X) => {
13121
- var re, ce;
13122
- (re = X == null ? void 0 : X.target) != null && re.href && W({
13125
+ var ie, ce;
13126
+ (ie = X == null ? void 0 : X.target) != null && ie.href && W({
13123
13127
  name: `${l.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
13124
13128
  payload: {
13125
13129
  category: "2u",
@@ -13133,7 +13137,7 @@ function bi({ submitEventExternal: e }) {
13133
13137
  return null;
13134
13138
  const K = () => {
13135
13139
  T(""), j.current.value = "", j.current.style.height = "auto";
13136
- }, oe = (X, re) => {
13140
+ }, oe = (X, ie) => {
13137
13141
  W({
13138
13142
  name: `${l.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
13139
13143
  payload: {
@@ -13142,15 +13146,15 @@ function bi({ submitEventExternal: e }) {
13142
13146
  linkCount: v0(X),
13143
13147
  apiResponseMessage: X,
13144
13148
  isTestUser: m,
13145
- conversationHistoryId: re
13149
+ conversationHistoryId: ie
13146
13150
  }
13147
13151
  });
13148
- }, ne = ({
13152
+ }, re = ({
13149
13153
  conversationSize: X,
13150
- userInputMessage: re,
13154
+ userInputMessage: ie,
13151
13155
  apiResponseMessage: ce,
13152
- elapsedSeconds: Ee,
13153
- conversationByteSize: Ne
13156
+ elapsedSeconds: _e,
13157
+ conversationByteSize: Ie
13154
13158
  }) => {
13155
13159
  W({
13156
13160
  name: `${l.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
@@ -13159,19 +13163,19 @@ function bi({ submitEventExternal: e }) {
13159
13163
  label: "xpert-chatbot",
13160
13164
  isTestUser: m,
13161
13165
  conversationSize: X,
13162
- userInputMessage: re,
13166
+ userInputMessage: ie,
13163
13167
  apiResponseMessage: ce,
13164
- elapsedSeconds: Ee,
13165
- conversationByteSize: Ne
13168
+ elapsedSeconds: _e,
13169
+ conversationByteSize: Ie
13166
13170
  }
13167
13171
  });
13168
13172
  }, de = async (X) => {
13169
13173
  try {
13170
13174
  if (X.trim().length === 0)
13171
13175
  return;
13172
- const re = /* @__PURE__ */ new Date();
13173
- A(!1), I(!1);
13174
- const ce = y.filter((we) => we.role === "user").length + 1;
13176
+ const ie = /* @__PURE__ */ new Date();
13177
+ A(!1), P(!1);
13178
+ const ce = y.filter((J) => J.role === "user").length + 1;
13175
13179
  if (W({
13176
13180
  name: `${l.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
13177
13181
  payload: {
@@ -13181,62 +13185,62 @@ function bi({ submitEventExternal: e }) {
13181
13185
  userInputMessage: X,
13182
13186
  isTestUser: m
13183
13187
  }
13184
- }), K(), P(!0), d) {
13185
- await d(X), P(!1);
13188
+ }), K(), I(!0), d) {
13189
+ await d(X), I(!1);
13186
13190
  return;
13187
13191
  }
13188
- let Ee = null;
13189
- r.conversationHistory.enabled && (Ee = ro(i)), p({
13190
- role: "user",
13191
- content: X
13192
- });
13193
- const Ne = [
13192
+ let _e = null;
13193
+ r.conversationHistory.enabled && (_e = ro(i)), p({ role: "user", content: X });
13194
+ const Ie = [
13194
13195
  ...y,
13195
- {
13196
- role: "user",
13197
- content: X
13198
- }
13199
- ].map((we) => ({
13200
- role: we.role,
13201
- content: we.content,
13202
- ...we.toolCalls && { tool_calls: we.toolCalls }
13203
- })).filter(({ role: we }) => ["assistant", "user"].includes(we)), ct = await fetch(t.endpoint, {
13196
+ { role: "user", content: X }
13197
+ ].map((J) => ({
13198
+ role: J.role,
13199
+ content: J.content,
13200
+ ...J.toolCalls && { tool_calls: J.toolCalls },
13201
+ ...J.toolCallId && { tool_call_id: J.toolCallId }
13202
+ })).filter(({ role: J }) => ["assistant", "tool", "user"].includes(J)), ct = await fetch(t.endpoint, {
13204
13203
  method: "POST",
13205
- headers: {
13206
- "Content-Type": "application/json"
13207
- },
13204
+ headers: { "Content-Type": "application/json" },
13208
13205
  body: JSON.stringify({
13209
- [t == null ? void 0 : t.messagesKey]: Ne,
13206
+ [t == null ? void 0 : t.messagesKey]: Ie,
13210
13207
  ...t.payloadParams,
13211
- ...Ee && {
13212
- conversation_id: Ee
13208
+ ..._e && {
13209
+ conversation_id: _e
13213
13210
  }
13214
13211
  })
13215
13212
  });
13216
13213
  if (!ct.ok)
13217
13214
  throw new Error(`HTTPError: ${ct.status} ${ct.statusText}`);
13218
- const {
13219
- content: R,
13220
- live_agent: V,
13221
- tool_calls: Z
13222
- } = await ct.json();
13223
- oe(R, Ee);
13224
- const ae = /* @__PURE__ */ new Date();
13225
- ne({
13226
- conversationByteSize: x0(JSON.stringify(Ne)),
13227
- conversationSize: y.length + 2,
13215
+ const R = await ct.json(), $ = Array.isArray(R) ? R : [R];
13216
+ $.forEach(
13217
+ ({
13218
+ content: J,
13219
+ live_agent: le,
13220
+ role: Oe,
13221
+ tool_calls: ze,
13222
+ tool_call_id: Le
13223
+ }) => {
13224
+ p({
13225
+ content: J,
13226
+ createdAt: /* @__PURE__ */ new Date(),
13227
+ liveAgent: le,
13228
+ role: Oe,
13229
+ toolCalls: ze,
13230
+ toolCallId: Le
13231
+ }), oe(J, _e);
13232
+ }
13233
+ );
13234
+ const Z = /* @__PURE__ */ new Date();
13235
+ re({
13236
+ conversationByteSize: x0(JSON.stringify(Ie)),
13237
+ conversationSize: y.length + $.length + 1,
13228
13238
  userInputMessage: X,
13229
- apiResponseMessage: R,
13230
- elapsedSeconds: b0(re, ae)
13231
- }), p({
13232
- content: R,
13233
- createdAt: /* @__PURE__ */ new Date(),
13234
- liveAgent: V,
13235
- role: "assistant",
13236
- toolCalls: Z
13237
- }), g(!1), P(!1), K(), A(!0);
13238
- } catch (re) {
13239
- P(!1), K(), I(!0), console.error(re);
13239
+ apiResponseMessage: $.map((J) => J.content ?? "").join(" "),
13240
+ elapsedSeconds: b0(ie, Z)
13241
+ }), g(!1), I(!1), K(), A(!0);
13242
+ } catch (ie) {
13243
+ I(!1), K(), P(!0), console.error(ie);
13240
13244
  }
13241
13245
  }, pe = () => {
13242
13246
  M(!1), F(!0), Y(), W({
@@ -13265,7 +13269,7 @@ function bi({ submitEventExternal: e }) {
13265
13269
  isTestUser: m
13266
13270
  }
13267
13271
  });
13268
- }, Te = () => {
13272
+ }, Ee = () => {
13269
13273
  W({
13270
13274
  name: `${l.prefix}.bi.xpert.chatbot.proactive.message.closed`,
13271
13275
  payload: {
@@ -13274,7 +13278,7 @@ function bi({ submitEventExternal: e }) {
13274
13278
  isTestUser: m
13275
13279
  }
13276
13280
  });
13277
- }, Fe = () => {
13281
+ }, Ne = () => {
13278
13282
  F(!1), O(!1), W({
13279
13283
  name: `${l.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
13280
13284
  payload: {
@@ -13283,15 +13287,15 @@ function bi({ submitEventExternal: e }) {
13283
13287
  isTestUser: m
13284
13288
  }
13285
13289
  });
13286
- }, Xe = (X) => {
13290
+ }, Ze = (X) => {
13287
13291
  T(X.target.value);
13288
- }, Bt = async (X, re = "") => {
13292
+ }, Bt = async (X, ie = "") => {
13289
13293
  if (c) {
13290
- await c({ index: X, type: re }), g(!1);
13294
+ await c({ index: X, type: ie }), g(!1);
13291
13295
  return;
13292
13296
  }
13293
- const ce = y.map((Ee, Ne) => X === Ne ? (W({
13294
- name: `${l.prefix}.bi.xpert.chatbot.feedback.thumbs.${re.toLowerCase()}.clicked`,
13297
+ const ce = y.map((_e, Ie) => X === Ie ? (W({
13298
+ name: `${l.prefix}.bi.xpert.chatbot.feedback.thumbs.${ie.toLowerCase()}.clicked`,
13295
13299
  payload: {
13296
13300
  category: "2u",
13297
13301
  label: "xpert-chatbot",
@@ -13301,108 +13305,96 @@ function bi({ submitEventExternal: e }) {
13301
13305
  isTestUser: m
13302
13306
  }
13303
13307
  }), {
13304
- ...Ee,
13305
- feedbackThumbType: re
13306
- }) : Ee);
13308
+ ..._e,
13309
+ feedbackThumbType: ie
13310
+ }) : _e);
13307
13311
  f(ce), g(!1);
13308
- }, Tt = (Pt = a == null ? void 0 : a.animatedGraduate) == null ? void 0 : Pt.enabled, Ot = o != null && o.enabled ? h ? (Ze = o == null ? void 0 : o.style) == null ? void 0 : Ze.mobile : o == null ? void 0 : o.style : null;
13312
+ }, Tt = (It = a == null ? void 0 : a.animatedGraduate) == null ? void 0 : It.enabled, Ot = o != null && o.enabled ? h ? (Ye = o == null ? void 0 : o.style) == null ? void 0 : Ye.mobile : o == null ? void 0 : o.style : null;
13309
13313
  return (
13310
13314
  // do not remove this class as it's needed to turn off chatbot
13311
- /* @__PURE__ */ k.jsxs(
13312
- "div",
13313
- {
13314
- className: `xpert-chatbot${u ? "" : "--inline"}`,
13315
- style: {
13316
- position: "fixed",
13317
- bottom: h ? "4.5rem" : ".5rem",
13318
- right: "1.5rem",
13319
- textAlign: "right"
13320
- },
13321
- children: [
13322
- (o == null ? void 0 : o.enabled) && /* @__PURE__ */ k.jsx(
13323
- Sl,
13324
- {
13325
- showMessage: !N,
13326
- style: Ot,
13327
- onClose: Te,
13328
- onClick: he,
13329
- cookieName: `${i}-proactive-message-xpert-chatbot`,
13330
- children: /* @__PURE__ */ k.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ k.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
13331
- (o == null ? void 0 : o.textPrefix) && /* @__PURE__ */ k.jsx(
13332
- "span",
13333
- {
13334
- style: {
13335
- paddingRight: o != null && o.showEmoji ? "0" : "0.3rem"
13336
- },
13337
- children: (o == null ? void 0 : o.textPrefix) ?? ""
13338
- }
13339
- ),
13340
- (o == null ? void 0 : o.showEmoji) && /* @__PURE__ */ k.jsx(
13341
- "span",
13342
- {
13343
- role: "img",
13344
- "aria-label": "Hand wave emoji",
13345
- className: "xpert-chatbot-proactive-message__wave",
13346
- style: {
13347
- padding: o != null && o.textPrefix ? "0 0.3rem" : "0 0.3rem 0 0"
13348
- },
13349
- children: "👋"
13350
- }
13351
- ),
13352
- /* @__PURE__ */ k.jsx("span", { children: (o == null ? void 0 : o.text) ?? "" })
13353
- ] }) })
13354
- }
13355
- ),
13356
- Tt && u && /* @__PURE__ */ k.jsx(
13357
- qr,
13358
- {
13359
- handleFloatingActionButtonClick: pe
13360
- }
13361
- ),
13362
- !Tt && u && /* @__PURE__ */ k.jsx(
13363
- Ur,
13364
- {
13365
- handleFloatingActionButtonClick: pe
13366
- }
13367
- ),
13368
- u && /* @__PURE__ */ k.jsx(l0, {}),
13369
- N && !U && /* @__PURE__ */ k.jsx(Co, { isMounted: S, children: /* @__PURE__ */ k.jsx(
13370
- "div",
13371
- {
13372
- ref: H,
13373
- style: { display: "flex", flexDirection: "column", height: "100%" },
13374
- children: /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
13375
- u && /* @__PURE__ */ k.jsx(
13376
- kl,
13377
- {
13378
- onClose: Fe,
13379
- handleResizeButtonClick: xe,
13380
- isMounted: S,
13381
- setIsMounted: O
13382
- }
13383
- ),
13384
- /* @__PURE__ */ k.jsx(o0, {}),
13385
- v === ut.XPERT && /* @__PURE__ */ k.jsx(
13386
- oi,
13387
- {
13388
- handleChange: Xe,
13389
- handleFeedbackThumbSelection: Bt,
13390
- handleMessageLinkClicked: w,
13391
- handleSend: de,
13392
- inputRef: j,
13393
- isTestUser: m,
13394
- setLiveChatOpen: M,
13395
- submitEvent: W,
13396
- userInput: B
13397
- }
13398
- ),
13399
- v === ut.LIVECHAT && /* @__PURE__ */ k.jsx(yi, {})
13400
- ] })
13401
- }
13402
- ) })
13403
- ]
13404
- }
13405
- )
13315
+ /* @__PURE__ */ k.jsxs("div", { className: `xpert-chatbot${u ? "" : "--inline"}`, children: [
13316
+ (o == null ? void 0 : o.enabled) && /* @__PURE__ */ k.jsx(
13317
+ Sl,
13318
+ {
13319
+ showMessage: !N,
13320
+ style: Ot,
13321
+ onClose: Ee,
13322
+ onClick: he,
13323
+ cookieName: `${i}-proactive-message-xpert-chatbot`,
13324
+ children: /* @__PURE__ */ k.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ k.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
13325
+ (o == null ? void 0 : o.textPrefix) && /* @__PURE__ */ k.jsx(
13326
+ "span",
13327
+ {
13328
+ style: {
13329
+ paddingRight: o != null && o.showEmoji ? "0" : "0.3rem"
13330
+ },
13331
+ children: (o == null ? void 0 : o.textPrefix) ?? ""
13332
+ }
13333
+ ),
13334
+ (o == null ? void 0 : o.showEmoji) && /* @__PURE__ */ k.jsx(
13335
+ "span",
13336
+ {
13337
+ role: "img",
13338
+ "aria-label": "Hand wave emoji",
13339
+ className: "xpert-chatbot-proactive-message__wave",
13340
+ style: {
13341
+ padding: o != null && o.textPrefix ? "0 0.3rem" : "0 0.3rem 0 0"
13342
+ },
13343
+ children: "👋"
13344
+ }
13345
+ ),
13346
+ /* @__PURE__ */ k.jsx("span", { children: (o == null ? void 0 : o.text) ?? "" })
13347
+ ] }) })
13348
+ }
13349
+ ),
13350
+ Tt && u && /* @__PURE__ */ k.jsx(
13351
+ qr,
13352
+ {
13353
+ handleFloatingActionButtonClick: pe
13354
+ }
13355
+ ),
13356
+ !Tt && u && /* @__PURE__ */ k.jsx(
13357
+ Ur,
13358
+ {
13359
+ handleFloatingActionButtonClick: pe
13360
+ }
13361
+ ),
13362
+ u && /* @__PURE__ */ k.jsx(l0, {}),
13363
+ N && !U && /* @__PURE__ */ k.jsx(Co, { isMounted: S, children: /* @__PURE__ */ k.jsx(
13364
+ "div",
13365
+ {
13366
+ ref: H,
13367
+ style: { display: "flex", flexDirection: "column", height: "100%" },
13368
+ children: /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
13369
+ u && /* @__PURE__ */ k.jsx(
13370
+ kl,
13371
+ {
13372
+ onClose: Ne,
13373
+ handleResizeButtonClick: xe,
13374
+ isMounted: S,
13375
+ setIsMounted: O
13376
+ }
13377
+ ),
13378
+ /* @__PURE__ */ k.jsx(o0, {}),
13379
+ v === ut.XPERT && /* @__PURE__ */ k.jsx(
13380
+ oi,
13381
+ {
13382
+ handleChange: Ze,
13383
+ handleFeedbackThumbSelection: Bt,
13384
+ handleMessageLinkClicked: w,
13385
+ handleSend: de,
13386
+ inputRef: j,
13387
+ isTestUser: m,
13388
+ setLiveChatOpen: M,
13389
+ submitEvent: W,
13390
+ userInput: B
13391
+ }
13392
+ ),
13393
+ v === ut.LIVECHAT && /* @__PURE__ */ k.jsx(yi, {})
13394
+ ] })
13395
+ }
13396
+ ) })
13397
+ ] })
13406
13398
  );
13407
13399
  }
13408
13400
  bi.propTypes = {
@@ -13440,7 +13432,7 @@ _l.propTypes = {
13440
13432
  children: C.element,
13441
13433
  clientId: C.string,
13442
13434
  configurations: C.object,
13443
- conversation: In,
13435
+ conversation: Pn,
13444
13436
  id: C.string,
13445
13437
  liveChatPayload: C.object,
13446
13438
  onFeedbackSelection: C.func,
@@ -13477,7 +13469,7 @@ function E0({
13477
13469
  E0.propTypes = {
13478
13470
  clientId: C.string,
13479
13471
  configurations: C.object,
13480
- conversation: In,
13472
+ conversation: Pn,
13481
13473
  liveChatPayload: C.object,
13482
13474
  onFeedbackSelection: C.func,
13483
13475
  onMessageSent: C.func,