@2uinc/frontend-component-xpert-chatbot 1.13.0-alpha.6 → 1.13.0-alpha.8

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 +704 -713
  2. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import Te, { createContext as Jl, useMemo as es, useContext as Pe, useState as xe, useEffect as Ie, useCallback as Ht, useRef as We } from "react";
1
+ import ve, { createContext as Jl, useMemo as es, useContext as Fe, useState as be, useEffect as Te, useCallback as Ht, useRef as We } from "react";
2
2
  const ts = {
3
3
  xpertKey: "edx",
4
4
  chatApi: {
@@ -138,10 +138,7 @@ const ts = {
138
138
  },
139
139
  launchButton: {
140
140
  message: null,
141
- animatedGraduate: {
142
- enabled: !1,
143
- delayMs: null
144
- },
141
+ animatedGraduate: null,
145
142
  style: {
146
143
  backgroundColor: "#542291",
147
144
  padding: "12px",
@@ -235,10 +232,7 @@ const ts = {
235
232
  },
236
233
  launchButton: {
237
234
  message: null,
238
- animatedGraduate: {
239
- enabled: !1,
240
- delayMs: null
241
- },
235
+ animatedGraduate: null,
242
236
  style: {
243
237
  backgroundColor: "#E31A82",
244
238
  padding: "0.75rem",
@@ -331,10 +325,7 @@ const ts = {
331
325
  },
332
326
  launchButton: {
333
327
  message: null,
334
- animatedGraduate: {
335
- enabled: !1,
336
- delayMs: null
337
- },
328
+ animatedGraduate: null,
338
329
  style: {
339
330
  backgroundColor: "#193d77",
340
331
  padding: "0.75rem",
@@ -427,10 +418,7 @@ const ts = {
427
418
  },
428
419
  launchButton: {
429
420
  message: null,
430
- animatedGraduate: {
431
- enabled: !1,
432
- delayMs: null
433
- },
421
+ animatedGraduate: null,
434
422
  style: {
435
423
  backgroundColor: "#193d77",
436
424
  padding: "0.75rem",
@@ -568,7 +556,7 @@ us();
568
556
  * This source code is licensed under the MIT license found in the
569
557
  * LICENSE file in the root directory of this source tree.
570
558
  */
571
- var cs = Te, To = 60103;
559
+ var cs = ve, To = 60103;
572
560
  Vt.Fragment = 60107;
573
561
  if (typeof Symbol == "function" && Symbol.for) {
574
562
  var di = Symbol.for;
@@ -659,7 +647,7 @@ function sr(e, t) {
659
647
  }
660
648
  );
661
649
  }
662
- var Fe = sr(hs, { path: "/" }), Do = { exports: {} }, gs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ms = gs, ys = ms;
650
+ var _e = sr(hs, { path: "/" }), Do = { exports: {} }, gs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ms = gs, ys = ms;
663
651
  function No() {
664
652
  }
665
653
  function ko() {
@@ -704,17 +692,17 @@ var Ms = function() {
704
692
  return n.PropTypes = n, n;
705
693
  };
706
694
  Do.exports = Ms();
707
- var Q = Do.exports;
708
- const I = /* @__PURE__ */ nt(Q);
695
+ var B = Do.exports;
696
+ const I = /* @__PURE__ */ nt(B);
709
697
  var dn = { exports: {} };
710
698
  dn.exports;
711
699
  (function(e, t) {
712
- var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", D = "[object GeneratorFunction]", b = "[object Map]", C = "[object Number]", x = "[object Null]", E = "[object Object]", j = "[object Proxy]", U = "[object RegExp]", H = "[object Set]", M = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", G = "[object ArrayBuffer]", X = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", k = "[object Int8Array]", z = "[object Int16Array]", _ = "[object Int32Array]", B = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, de = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
713
- h[S] = h[w] = h[k] = h[z] = h[_] = h[B] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[G] = h[c] = h[X] = h[p] = h[m] = h[d] = h[b] = h[C] = h[E] = h[U] = h[H] = h[M] = h[$] = !1;
714
- var ge = typeof en == "object" && en && en.Object === Object && en, Ee = typeof self == "object" && self && self.Object === Object && self, ne = ge || Ee || Function("return this")(), we = t && !t.nodeType && t, ve = we && !0 && e && !e.nodeType && e, Ye = ve && ve.exports === we, Oe = Ye && ge.process, Xe = function() {
700
+ var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", s = "[object Array]", u = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", D = "[object GeneratorFunction]", b = "[object Map]", C = "[object Number]", x = "[object Null]", E = "[object Object]", j = "[object Proxy]", R = "[object RegExp]", H = "[object Set]", M = "[object String]", L = "[object Undefined]", $ = "[object WeakMap]", G = "[object ArrayBuffer]", X = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", k = "[object Int8Array]", z = "[object Int16Array]", _ = "[object Int32Array]", U = "[object Uint8Array]", V = "[object Uint8ClampedArray]", q = "[object Uint16Array]", K = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, he = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
701
+ h[S] = h[w] = h[k] = h[z] = h[_] = h[U] = h[V] = h[q] = h[K] = !0, h[l] = h[s] = h[G] = h[c] = h[X] = h[p] = h[m] = h[d] = h[b] = h[C] = h[E] = h[R] = h[H] = h[M] = h[$] = !1;
702
+ var ge = typeof en == "object" && en && en.Object === Object && en, ke = typeof self == "object" && self && self.Object === Object && self, re = ge || ke || Function("return this")(), xe = t && !t.nodeType && t, we = xe && !0 && e && !e.nodeType && e, Qe = we && we.exports === xe, Se = Qe && ge.process, Xe = function() {
715
703
  try {
716
- var f = ve && ve.require && ve.require("util").types;
717
- return f || Oe && Oe.binding && Oe.binding("util");
704
+ var f = we && we.require && we.require("util").types;
705
+ return f || Se && Se.binding && Se.binding("util");
718
706
  } catch {
719
707
  }
720
708
  }(), ot = Xe && Xe.isTypedArray;
@@ -744,27 +732,27 @@ dn.exports;
744
732
  function Je(f, y) {
745
733
  return f == null ? void 0 : f[y];
746
734
  }
747
- function yt(f, y) {
735
+ function gt(f, y) {
748
736
  return function(v) {
749
737
  return f(y(v));
750
738
  };
751
739
  }
752
- var at = Array.prototype, P = Function.prototype, J = Object.prototype, me = ne["__core-js_shared__"], he = P.toString, be = J.hasOwnProperty, qe = function() {
753
- var f = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
740
+ var at = Array.prototype, mt = Function.prototype, P = Object.prototype, ee = re["__core-js_shared__"], me = mt.toString, le = P.hasOwnProperty, Ye = function() {
741
+ var f = /[^.]+$/.exec(ee && ee.keys && ee.keys.IE_PROTO || "");
754
742
  return f ? "Symbol(src)_1." + f : "";
755
- }(), lt = J.toString, st = he.call(Object), N = RegExp(
756
- "^" + he.call(be).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
757
- ), O = Ye ? ne.Buffer : void 0, R = ne.Symbol, re = ne.Uint8Array, oe = O ? O.allocUnsafe : void 0, De = yt(Object.getPrototypeOf, Object), He = Object.create, $e = J.propertyIsEnumerable, ut = at.splice, je = R ? R.toStringTag : void 0, se = function() {
743
+ }(), qe = P.toString, yt = me.call(Object), N = RegExp(
744
+ "^" + me.call(le).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
745
+ ), O = Qe ? re.Buffer : void 0, Q = re.Symbol, J = re.Uint8Array, oe = O ? O.allocUnsafe : void 0, Ie = gt(Object.getPrototypeOf, Object), He = Object.create, $e = P.propertyIsEnumerable, lt = at.splice, Ee = Q ? Q.toStringTag : void 0, ue = function() {
758
746
  try {
759
747
  var f = Bn(Object, "defineProperty");
760
748
  return f({}, "", {}), f;
761
749
  } catch {
762
750
  }
763
- }(), jt = O ? O.isBuffer : void 0, ze = Math.max, Xa = Date.now, ti = Bn(ne, "Map"), Ct = Bn(Object, "create"), Ja = function() {
751
+ }(), jt = O ? O.isBuffer : void 0, Oe = Math.max, Xa = Date.now, ti = Bn(re, "Map"), Ct = Bn(Object, "create"), Ja = function() {
764
752
  function f() {
765
753
  }
766
754
  return function(y) {
767
- if (!pt(y))
755
+ if (!ut(y))
768
756
  return {};
769
757
  if (He)
770
758
  return He(y);
@@ -773,7 +761,7 @@ dn.exports;
773
761
  return f.prototype = void 0, v;
774
762
  };
775
763
  }();
776
- function ct(f) {
764
+ function st(f) {
777
765
  var y = -1, v = f == null ? 0 : f.length;
778
766
  for (this.clear(); ++y < v; ) {
779
767
  var F = f[y];
@@ -793,17 +781,17 @@ dn.exports;
793
781
  var v = y[f];
794
782
  return v === r ? void 0 : v;
795
783
  }
796
- return be.call(y, f) ? y[f] : void 0;
784
+ return le.call(y, f) ? y[f] : void 0;
797
785
  }
798
786
  function rl(f) {
799
787
  var y = this.__data__;
800
- return Ct ? y[f] !== void 0 : be.call(y, f);
788
+ return Ct ? y[f] !== void 0 : le.call(y, f);
801
789
  }
802
790
  function il(f, y) {
803
791
  var v = this.__data__;
804
792
  return this.size += this.has(f) ? 0 : 1, v[f] = Ct && y === void 0 ? r : y, this;
805
793
  }
806
- ct.prototype.clear = el, ct.prototype.delete = tl, ct.prototype.get = nl, ct.prototype.has = rl, ct.prototype.set = il;
794
+ st.prototype.clear = el, st.prototype.delete = tl, st.prototype.get = nl, st.prototype.has = rl, st.prototype.set = il;
807
795
  function Ke(f) {
808
796
  var y = -1, v = f == null ? 0 : f.length;
809
797
  for (this.clear(); ++y < v; ) {
@@ -819,7 +807,7 @@ dn.exports;
819
807
  if (v < 0)
820
808
  return !1;
821
809
  var F = y.length - 1;
822
- return v == F ? y.pop() : ut.call(y, v, 1), --this.size, !0;
810
+ return v == F ? y.pop() : lt.call(y, v, 1), --this.size, !0;
823
811
  }
824
812
  function ll(f) {
825
813
  var y = this.__data__, v = Zt(y, f);
@@ -842,9 +830,9 @@ dn.exports;
842
830
  }
843
831
  function cl() {
844
832
  this.size = 0, this.__data__ = {
845
- hash: new ct(),
833
+ hash: new st(),
846
834
  map: new (ti || Ke)(),
847
- string: new ct()
835
+ string: new st()
848
836
  };
849
837
  }
850
838
  function pl(f) {
@@ -891,21 +879,21 @@ dn.exports;
891
879
  }
892
880
  bt.prototype.clear = gl, bt.prototype.delete = ml, bt.prototype.get = yl, bt.prototype.has = Ml, bt.prototype.set = bl;
893
881
  function xl(f, y) {
894
- var v = Hn(f), F = !v && Yn(f), te = !v && !F && ai(f), le = !v && !F && !te && si(f), pe = v || F || te || le, ee = pe ? kt(f.length, String) : [], fe = ee.length;
895
- for (var Le in f)
896
- (y || be.call(f, Le)) && !(pe && // Safari 9 has enumerable `arguments.length` in strict mode.
897
- (Le == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
898
- te && (Le == "offset" || Le == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
899
- le && (Le == "buffer" || Le == "byteLength" || Le == "byteOffset") || // Skip index properties.
900
- ii(Le, fe))) && ee.push(Le);
901
- return ee;
882
+ var v = Hn(f), F = !v && Yn(f), ne = !v && !F && ai(f), se = !v && !F && !ne && si(f), fe = v || F || ne || se, te = fe ? kt(f.length, String) : [], de = te.length;
883
+ for (var ze in f)
884
+ (y || le.call(f, ze)) && !(fe && // Safari 9 has enumerable `arguments.length` in strict mode.
885
+ (ze == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
886
+ ne && (ze == "offset" || ze == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
887
+ se && (ze == "buffer" || ze == "byteLength" || ze == "byteOffset") || // Skip index properties.
888
+ ii(ze, de))) && te.push(ze);
889
+ return te;
902
890
  }
903
891
  function Rn(f, y, v) {
904
892
  (v !== void 0 && !Jt(f[y], v) || v === void 0 && !(y in f)) && Un(f, y, v);
905
893
  }
906
894
  function wl(f, y, v) {
907
895
  var F = f[y];
908
- (!(be.call(f, y) && Jt(F, v)) || v === void 0 && !(y in f)) && Un(f, y, v);
896
+ (!(le.call(f, y) && Jt(F, v)) || v === void 0 && !(y in f)) && Un(f, y, v);
909
897
  }
910
898
  function Zt(f, y) {
911
899
  for (var v = f.length; v--; )
@@ -914,7 +902,7 @@ dn.exports;
914
902
  return -1;
915
903
  }
916
904
  function Un(f, y, v) {
917
- y == "__proto__" && se ? se(f, y, {
905
+ y == "__proto__" && ue ? ue(f, y, {
918
906
  configurable: !0,
919
907
  enumerable: !0,
920
908
  value: v,
@@ -923,56 +911,56 @@ dn.exports;
923
911
  }
924
912
  var vl = Ll();
925
913
  function Kt(f) {
926
- return f == null ? f === void 0 ? L : x : je && je in Object(f) ? _l(f) : Ql(f);
914
+ return f == null ? f === void 0 ? L : x : Ee && Ee in Object(f) ? _l(f) : Ql(f);
927
915
  }
928
916
  function ni(f) {
929
917
  return At(f) && Kt(f) == l;
930
918
  }
931
919
  function Tl(f) {
932
- if (!pt(f) || Ul(f))
920
+ if (!ut(f) || Ul(f))
933
921
  return !1;
934
- var y = qn(f) ? N : de;
922
+ var y = qn(f) ? N : he;
935
923
  return y.test(ql(f));
936
924
  }
937
925
  function Il(f) {
938
926
  return At(f) && li(f.length) && !!h[Kt(f)];
939
927
  }
940
928
  function Dl(f) {
941
- if (!pt(f))
929
+ if (!ut(f))
942
930
  return Bl(f);
943
931
  var y = oi(f), v = [];
944
932
  for (var F in f)
945
- F == "constructor" && (y || !be.call(f, F)) || v.push(F);
933
+ F == "constructor" && (y || !le.call(f, F)) || v.push(F);
946
934
  return v;
947
935
  }
948
- function ri(f, y, v, F, te) {
949
- f !== y && vl(y, function(le, pe) {
950
- if (te || (te = new bt()), pt(le))
951
- Nl(f, y, pe, v, ri, F, te);
936
+ function ri(f, y, v, F, ne) {
937
+ f !== y && vl(y, function(se, fe) {
938
+ if (ne || (ne = new bt()), ut(se))
939
+ Nl(f, y, fe, v, ri, F, ne);
952
940
  else {
953
- var ee = F ? F(Qn(f, pe), le, pe + "", f, y, te) : void 0;
954
- ee === void 0 && (ee = le), Rn(f, pe, ee);
941
+ var te = F ? F(Qn(f, fe), se, fe + "", f, y, ne) : void 0;
942
+ te === void 0 && (te = se), Rn(f, fe, te);
955
943
  }
956
944
  }, ui);
957
945
  }
958
- function Nl(f, y, v, F, te, le, pe) {
959
- var ee = Qn(f, v), fe = Qn(y, v), Le = pe.get(fe);
960
- if (Le) {
961
- Rn(f, v, Le);
946
+ function Nl(f, y, v, F, ne, se, fe) {
947
+ var te = Qn(f, v), de = Qn(y, v), ze = fe.get(de);
948
+ if (ze) {
949
+ Rn(f, v, ze);
962
950
  return;
963
951
  }
964
- var Ce = le ? le(ee, fe, v + "", f, y, pe) : void 0, St = Ce === void 0;
952
+ var je = se ? se(te, de, v + "", f, y, fe) : void 0, St = je === void 0;
965
953
  if (St) {
966
- var Vn = Hn(fe), Gn = !Vn && ai(fe), pi = !Vn && !Gn && si(fe);
967
- Ce = fe, Vn || Gn || pi ? Hn(ee) ? Ce = ee : Vl(ee) ? Ce = Sl(ee) : Gn ? (St = !1, Ce = jl(fe, !0)) : pi ? (St = !1, Ce = Al(fe, !0)) : Ce = [] : Gl(fe) || Yn(fe) ? (Ce = ee, Yn(ee) ? Ce = Wl(ee) : (!pt(ee) || qn(ee)) && (Ce = Fl(fe))) : St = !1;
954
+ var Vn = Hn(de), Gn = !Vn && ai(de), pi = !Vn && !Gn && si(de);
955
+ je = de, Vn || Gn || pi ? Hn(te) ? je = te : Vl(te) ? je = Sl(te) : Gn ? (St = !1, je = jl(de, !0)) : pi ? (St = !1, je = Al(de, !0)) : je = [] : Gl(de) || Yn(de) ? (je = te, Yn(te) ? je = Wl(te) : (!ut(te) || qn(te)) && (je = Fl(de))) : St = !1;
968
956
  }
969
- St && (pe.set(fe, Ce), te(Ce, fe, F, le, pe), pe.delete(fe)), Rn(f, v, Ce);
957
+ St && (fe.set(de, je), ne(je, de, F, se, fe), fe.delete(de)), Rn(f, v, je);
970
958
  }
971
959
  function kl(f, y) {
972
960
  return Hl(Yl(f, y, ci), f + "");
973
961
  }
974
- var El = se ? function(f, y) {
975
- return se(f, "toString", {
962
+ var El = ue ? function(f, y) {
963
+ return ue(f, "toString", {
976
964
  configurable: !0,
977
965
  enumerable: !1,
978
966
  value: Kl(y),
@@ -987,7 +975,7 @@ dn.exports;
987
975
  }
988
976
  function Cl(f) {
989
977
  var y = new f.constructor(f.byteLength);
990
- return new re(y).set(new re(f)), y;
978
+ return new J(y).set(new J(f)), y;
991
979
  }
992
980
  function Al(f, y) {
993
981
  var v = y ? Cl(f.buffer) : f.buffer;
@@ -1000,29 +988,29 @@ dn.exports;
1000
988
  return y;
1001
989
  }
1002
990
  function Ol(f, y, v, F) {
1003
- var te = !v;
991
+ var ne = !v;
1004
992
  v || (v = {});
1005
- for (var le = -1, pe = y.length; ++le < pe; ) {
1006
- var ee = y[le], fe = F ? F(v[ee], f[ee], ee, v, f) : void 0;
1007
- fe === void 0 && (fe = f[ee]), te ? Un(v, ee, fe) : wl(v, ee, fe);
993
+ for (var se = -1, fe = y.length; ++se < fe; ) {
994
+ var te = y[se], de = F ? F(v[te], f[te], te, v, f) : void 0;
995
+ de === void 0 && (de = f[te]), ne ? Un(v, te, de) : wl(v, te, de);
1008
996
  }
1009
997
  return v;
1010
998
  }
1011
999
  function zl(f) {
1012
1000
  return kl(function(y, v) {
1013
- var F = -1, te = v.length, le = te > 1 ? v[te - 1] : void 0, pe = te > 2 ? v[2] : void 0;
1014
- for (le = f.length > 3 && typeof le == "function" ? (te--, le) : void 0, pe && Pl(v[0], v[1], pe) && (le = te < 3 ? void 0 : le, te = 1), y = Object(y); ++F < te; ) {
1015
- var ee = v[F];
1016
- ee && f(y, ee, F, le);
1001
+ var F = -1, ne = v.length, se = ne > 1 ? v[ne - 1] : void 0, fe = ne > 2 ? v[2] : void 0;
1002
+ for (se = f.length > 3 && typeof se == "function" ? (ne--, se) : void 0, fe && Pl(v[0], v[1], fe) && (se = ne < 3 ? void 0 : se, ne = 1), y = Object(y); ++F < ne; ) {
1003
+ var te = v[F];
1004
+ te && f(y, te, F, se);
1017
1005
  }
1018
1006
  return y;
1019
1007
  });
1020
1008
  }
1021
1009
  function Ll(f) {
1022
1010
  return function(y, v, F) {
1023
- for (var te = -1, le = Object(y), pe = F(y), ee = pe.length; ee--; ) {
1024
- var fe = pe[f ? ee : ++te];
1025
- if (v(le[fe], fe, le) === !1)
1011
+ for (var ne = -1, se = Object(y), fe = F(y), te = fe.length; te--; ) {
1012
+ var de = fe[f ? te : ++ne];
1013
+ if (v(se[de], de, se) === !1)
1026
1014
  break;
1027
1015
  }
1028
1016
  return y;
@@ -1037,24 +1025,24 @@ dn.exports;
1037
1025
  return Tl(v) ? v : void 0;
1038
1026
  }
1039
1027
  function _l(f) {
1040
- var y = be.call(f, je), v = f[je];
1028
+ var y = le.call(f, Ee), v = f[Ee];
1041
1029
  try {
1042
- f[je] = void 0;
1030
+ f[Ee] = void 0;
1043
1031
  var F = !0;
1044
1032
  } catch {
1045
1033
  }
1046
- var te = lt.call(f);
1047
- return F && (y ? f[je] = v : delete f[je]), te;
1034
+ var ne = qe.call(f);
1035
+ return F && (y ? f[Ee] = v : delete f[Ee]), ne;
1048
1036
  }
1049
1037
  function Fl(f) {
1050
- return typeof f.constructor == "function" && !oi(f) ? Ja(De(f)) : {};
1038
+ return typeof f.constructor == "function" && !oi(f) ? Ja(Ie(f)) : {};
1051
1039
  }
1052
1040
  function ii(f, y) {
1053
1041
  var v = typeof f;
1054
1042
  return y = y ?? a, !!y && (v == "number" || v != "symbol" && ye.test(f)) && f > -1 && f % 1 == 0 && f < y;
1055
1043
  }
1056
1044
  function Pl(f, y, v) {
1057
- if (!pt(v))
1045
+ if (!ut(v))
1058
1046
  return !1;
1059
1047
  var F = typeof y;
1060
1048
  return (F == "number" ? $n(v) && ii(y, v.length) : F == "string" && y in v) ? Jt(v[y], f) : !1;
@@ -1064,10 +1052,10 @@ dn.exports;
1064
1052
  return y == "string" || y == "number" || y == "symbol" || y == "boolean" ? f !== "__proto__" : f === null;
1065
1053
  }
1066
1054
  function Ul(f) {
1067
- return !!qe && qe in f;
1055
+ return !!Ye && Ye in f;
1068
1056
  }
1069
1057
  function oi(f) {
1070
- var y = f && f.constructor, v = typeof y == "function" && y.prototype || J;
1058
+ var y = f && f.constructor, v = typeof y == "function" && y.prototype || P;
1071
1059
  return f === v;
1072
1060
  }
1073
1061
  function Bl(f) {
@@ -1078,16 +1066,16 @@ dn.exports;
1078
1066
  return y;
1079
1067
  }
1080
1068
  function Ql(f) {
1081
- return lt.call(f);
1069
+ return qe.call(f);
1082
1070
  }
1083
1071
  function Yl(f, y, v) {
1084
- return y = ze(y === void 0 ? f.length - 1 : y, 0), function() {
1085
- for (var F = arguments, te = -1, le = ze(F.length - y, 0), pe = Array(le); ++te < le; )
1086
- pe[te] = F[y + te];
1087
- te = -1;
1088
- for (var ee = Array(y + 1); ++te < y; )
1089
- ee[te] = F[te];
1090
- return ee[y] = v(pe), Nt(f, this, ee);
1072
+ return y = Oe(y === void 0 ? f.length - 1 : y, 0), function() {
1073
+ for (var F = arguments, ne = -1, se = Oe(F.length - y, 0), fe = Array(se); ++ne < se; )
1074
+ fe[ne] = F[y + ne];
1075
+ ne = -1;
1076
+ for (var te = Array(y + 1); ++ne < y; )
1077
+ te[ne] = F[ne];
1078
+ return te[y] = v(fe), Nt(f, this, te);
1091
1079
  };
1092
1080
  }
1093
1081
  function Qn(f, y) {
@@ -1098,8 +1086,8 @@ dn.exports;
1098
1086
  function $l(f) {
1099
1087
  var y = 0, v = 0;
1100
1088
  return function() {
1101
- var F = Xa(), te = o - (F - v);
1102
- if (v = F, te > 0) {
1089
+ var F = Xa(), ne = o - (F - v);
1090
+ if (v = F, ne > 0) {
1103
1091
  if (++y >= i)
1104
1092
  return arguments[0];
1105
1093
  } else
@@ -1110,7 +1098,7 @@ dn.exports;
1110
1098
  function ql(f) {
1111
1099
  if (f != null) {
1112
1100
  try {
1113
- return he.call(f);
1101
+ return me.call(f);
1114
1102
  } catch {
1115
1103
  }
1116
1104
  try {
@@ -1126,7 +1114,7 @@ dn.exports;
1126
1114
  var Yn = ni(function() {
1127
1115
  return arguments;
1128
1116
  }()) ? ni : function(f) {
1129
- return At(f) && be.call(f, "callee") && !$e.call(f, "callee");
1117
+ return At(f) && le.call(f, "callee") && !$e.call(f, "callee");
1130
1118
  }, Hn = Array.isArray;
1131
1119
  function $n(f) {
1132
1120
  return f != null && li(f.length) && !qn(f);
@@ -1136,7 +1124,7 @@ dn.exports;
1136
1124
  }
1137
1125
  var ai = jt || Xl;
1138
1126
  function qn(f) {
1139
- if (!pt(f))
1127
+ if (!ut(f))
1140
1128
  return !1;
1141
1129
  var y = Kt(f);
1142
1130
  return y == d || y == D || y == u || y == j;
@@ -1144,7 +1132,7 @@ dn.exports;
1144
1132
  function li(f) {
1145
1133
  return typeof f == "number" && f > -1 && f % 1 == 0 && f <= a;
1146
1134
  }
1147
- function pt(f) {
1135
+ function ut(f) {
1148
1136
  var y = typeof f;
1149
1137
  return f != null && (y == "object" || y == "function");
1150
1138
  }
@@ -1154,11 +1142,11 @@ dn.exports;
1154
1142
  function Gl(f) {
1155
1143
  if (!At(f) || Kt(f) != E)
1156
1144
  return !1;
1157
- var y = De(f);
1145
+ var y = Ie(f);
1158
1146
  if (y === null)
1159
1147
  return !0;
1160
- var v = be.call(y, "constructor") && y.constructor;
1161
- return typeof v == "function" && v instanceof v && he.call(v) == st;
1148
+ var v = le.call(y, "constructor") && y.constructor;
1149
+ return typeof v == "function" && v instanceof v && me.call(v) == yt;
1162
1150
  }
1163
1151
  var si = ot ? Et(ot) : Il;
1164
1152
  function Wl(f) {
@@ -1207,10 +1195,7 @@ const Eo = /* @__PURE__ */ nt(bs), xs = {
1207
1195
  experimentName: null
1208
1196
  },
1209
1197
  launchButton: {
1210
- animatedGraduate: {
1211
- enabled: !1,
1212
- delayMs: null
1213
- },
1198
+ animatedGraduate: null,
1214
1199
  message: {
1215
1200
  enabled: !0,
1216
1201
  text: "Chat to us",
@@ -1317,78 +1302,78 @@ const Eo = /* @__PURE__ */ nt(bs), xs = {
1317
1302
  return /* @__PURE__ */ T.jsx(jo.Provider, { value: { ...r }, children: e });
1318
1303
  };
1319
1304
  Co.propTypes = {
1320
- children: Q.element.isRequired,
1321
- xpertKey: Q.string.isRequired,
1322
- configurations: Q.shape({
1323
- xpertKey: Q.string,
1324
- chatApi: Q.shape({
1325
- endpoint: Q.string.isRequired,
1326
- payloadParams: Q.string
1305
+ children: B.element.isRequired,
1306
+ xpertKey: B.string.isRequired,
1307
+ configurations: B.shape({
1308
+ xpertKey: B.string,
1309
+ chatApi: B.shape({
1310
+ endpoint: B.string.isRequired,
1311
+ payloadParams: B.string
1327
1312
  }).isRequired,
1328
- primaryColor: Q.string.isRequired,
1329
- disclaimer: Q.shape({
1330
- text: Q.string.isRequired,
1331
- privacyPolicyLink: Q.string.isRequired
1313
+ primaryColor: B.string.isRequired,
1314
+ disclaimer: B.shape({
1315
+ text: B.string.isRequired,
1316
+ privacyPolicyLink: B.string.isRequired
1332
1317
  }).isRequired,
1333
- userTracking: Q.shape({
1334
- enabled: Q.bool.isRequired,
1335
- prefix: Q.string.isRequired,
1336
- payloadParams: Q.object
1318
+ userTracking: B.shape({
1319
+ enabled: B.bool.isRequired,
1320
+ prefix: B.string.isRequired,
1321
+ payloadParams: B.object
1337
1322
  }).isRequired,
1338
- webExperimentation: Q.shape({
1339
- enabled: Q.bool.isRequired,
1340
- experimentName: Q.string
1323
+ webExperimentation: B.shape({
1324
+ enabled: B.bool.isRequired,
1325
+ experimentName: B.string
1341
1326
  }).isRequired,
1342
- launchButton: Q.shape({
1343
- style: Q.shape({}).isRequired,
1344
- animatedGraduate: Q.shape({
1345
- enabled: Q.bool.isRequired,
1346
- delayMs: Q.number
1347
- }).isRequired,
1348
- message: Q.shape({
1349
- enabled: Q.bool.isRequired,
1350
- text: Q.string
1327
+ launchButton: B.shape({
1328
+ style: B.shape({}).isRequired,
1329
+ animatedGraduate: B.shape({
1330
+ enabled: B.bool.isRequired,
1331
+ delayMs: B.number
1332
+ }),
1333
+ message: B.shape({
1334
+ enabled: B.bool.isRequired,
1335
+ text: B.string
1351
1336
  })
1352
1337
  }).isRequired,
1353
- proactiveMessage: Q.shape({
1354
- enabled: Q.bool.isRequired,
1355
- textPrefix: Q.string,
1356
- text: Q.string,
1357
- delayMs: Q.number.isRequired,
1358
- style: Q.shape({}).isRequired
1338
+ proactiveMessage: B.shape({
1339
+ enabled: B.bool.isRequired,
1340
+ textPrefix: B.string,
1341
+ text: B.string,
1342
+ delayMs: B.number.isRequired,
1343
+ style: B.shape({}).isRequired
1359
1344
  }).isRequired,
1360
- conversationScreen: Q.shape({
1361
- header: Q.shape({
1362
- logo: Q.shape({
1363
- type: Q.string.isRequired,
1364
- style: Q.shape({})
1345
+ conversationScreen: B.shape({
1346
+ header: B.shape({
1347
+ logo: B.shape({
1348
+ type: B.string.isRequired,
1349
+ style: B.shape({})
1365
1350
  }).isRequired,
1366
- container: Q.shape({
1367
- style: Q.shape({}).isRequired
1351
+ container: B.shape({
1352
+ style: B.shape({}).isRequired
1368
1353
  })
1369
1354
  }),
1370
- systemMessage: Q.string.isRequired,
1371
- prompts: Q.arrayOf(
1372
- Q.shape({
1373
- id: Q.number.isRequired,
1374
- text: Q.string.isRequired
1355
+ systemMessage: B.string.isRequired,
1356
+ prompts: B.arrayOf(
1357
+ B.shape({
1358
+ id: B.number.isRequired,
1359
+ text: B.string.isRequired
1375
1360
  })
1376
1361
  ),
1377
- userMessageBubble: Q.shape({
1378
- style: Q.shape({}).isRequired
1362
+ userMessageBubble: B.shape({
1363
+ style: B.shape({}).isRequired
1379
1364
  }),
1380
- conversationHistory: Q.shape({
1381
- enabled: Q.bool.isRequired
1365
+ conversationHistory: B.shape({
1366
+ enabled: B.bool.isRequired
1382
1367
  }).isRequired,
1383
- liveChat: Q.shape({
1384
- enabled: Q.bool.isRequired,
1385
- sourceCode: Q.string,
1386
- options: Q.shape({})
1368
+ liveChat: B.shape({
1369
+ enabled: B.bool.isRequired,
1370
+ sourceCode: B.string,
1371
+ options: B.shape({})
1387
1372
  })
1388
1373
  }).isRequired
1389
1374
  })
1390
1375
  };
1391
- const Re = jo, Rt = /^[a-z0-9]+(-[a-z0-9]+)*$/, wn = (e, t, n, r = "") => {
1376
+ const Pe = jo, Rt = /^[a-z0-9]+(-[a-z0-9]+)*$/, wn = (e, t, n, r = "") => {
1392
1377
  const i = e.split(":");
1393
1378
  if (e.slice(0, 1) === "@") {
1394
1379
  if (i.length < 2 || i.length > 3)
@@ -1541,7 +1526,7 @@ function Es(e, t) {
1541
1526
  missing: /* @__PURE__ */ new Set()
1542
1527
  };
1543
1528
  }
1544
- function ht(e, t) {
1529
+ function ft(e, t) {
1545
1530
  const n = gi[e] || (gi[e] = /* @__PURE__ */ Object.create(null));
1546
1531
  return n[t] || (n[t] = Es(e, t));
1547
1532
  }
@@ -1565,7 +1550,7 @@ function zo(e) {
1565
1550
  function Cs(e) {
1566
1551
  const t = typeof e == "string" ? wn(e, !0, $t) : e;
1567
1552
  if (t) {
1568
- const n = ht(t.provider, t.prefix), r = t.name;
1553
+ const n = ft(t.provider, t.prefix), r = t.name;
1569
1554
  return n.icons[r] || (n.missing.has(r) ? null : void 0);
1570
1555
  }
1571
1556
  }
@@ -1573,7 +1558,7 @@ function As(e, t) {
1573
1558
  const n = wn(e, !0, $t);
1574
1559
  if (!n)
1575
1560
  return !1;
1576
- const r = ht(n.provider, n.prefix);
1561
+ const r = ft(n.provider, n.prefix);
1577
1562
  return js(r, n.name, t);
1578
1563
  }
1579
1564
  function Ss(e, t) {
@@ -1592,7 +1577,7 @@ function Ss(e, t) {
1592
1577
  name: "a"
1593
1578
  }))
1594
1579
  return !1;
1595
- const r = ht(t, n);
1580
+ const r = ft(t, n);
1596
1581
  return !!Er(r, e);
1597
1582
  }
1598
1583
  const Lo = Object.freeze({
@@ -1869,7 +1854,7 @@ function Zs(e) {
1869
1854
  if (r.name === i.name && r.prefix === i.prefix && r.provider === i.provider)
1870
1855
  return;
1871
1856
  r = i;
1872
- const o = i.provider, a = i.prefix, l = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[a] || (s[a] = ht(o, a));
1857
+ const o = i.provider, a = i.prefix, l = i.name, s = n[o] || (n[o] = /* @__PURE__ */ Object.create(null)), u = s[a] || (s[a] = ft(o, a));
1873
1858
  let c;
1874
1859
  l in u.icons ? c = t.loaded : a === "" || u.missing.has(l) ? c = t.missing : c = t.pending;
1875
1860
  const p = {
@@ -2001,7 +1986,7 @@ function nu(e, t, n, r) {
2001
1986
  M.status === "pending" && (M.status = "aborted");
2002
1987
  }), m = [];
2003
1988
  }
2004
- function U(M, L, $) {
1989
+ function R(M, L, $) {
2005
1990
  const G = L !== "success";
2006
1991
  switch (m = m.filter((X) => X !== M), s) {
2007
1992
  case "pending":
@@ -2048,7 +2033,7 @@ function nu(e, t, n, r) {
2048
2033
  status: "pending",
2049
2034
  resource: M,
2050
2035
  callback: ($, G) => {
2051
- U(L, $, G);
2036
+ R(L, $, G);
2052
2037
  }
2053
2038
  };
2054
2039
  m.push(L), u++, p = setTimeout(H, e.rotate), n(M, t, L.callback);
@@ -2205,7 +2190,7 @@ function Ho() {
2205
2190
  au(!0);
2206
2191
  for (const e in vn)
2207
2192
  Yo(e, (t) => {
2208
- const n = t.data, r = t.provider, i = n.prefix, o = ht(
2193
+ const n = t.data, r = t.provider, i = n.prefix, o = ft(
2209
2194
  r,
2210
2195
  i
2211
2196
  );
@@ -2318,11 +2303,11 @@ const pu = (e, t) => {
2318
2303
  const { provider: u, prefix: c } = s;
2319
2304
  if (c === l && u === a)
2320
2305
  return;
2321
- a = u, l = c, o.push(ht(u, c));
2306
+ a = u, l = c, o.push(ft(u, c));
2322
2307
  const p = i[u] || (i[u] = /* @__PURE__ */ Object.create(null));
2323
2308
  p[c] || (p[c] = []);
2324
2309
  }), r.pending.forEach((s) => {
2325
- const { provider: u, prefix: c, name: p } = s, m = ht(u, c), d = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
2310
+ const { provider: u, prefix: c, name: p } = s, m = ft(u, c), d = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
2326
2311
  d.has(p) || (d.add(p), i[u][c].push(p));
2327
2312
  }), o.forEach((s) => {
2328
2313
  const { provider: u, prefix: c } = s;
@@ -2490,7 +2475,7 @@ const Du = (e, t, n, r) => {
2490
2475
  let x = 0, E = t.id;
2491
2476
  return typeof E == "string" && (E = E.replace(/-/g, "_")), u.dangerouslySetInnerHTML = {
2492
2477
  __html: wu(Us(c.body, E ? () => E + "ID" + x++ : "iconifyReact"))
2493
- }, Te.createElement("svg", u);
2478
+ }, ve.createElement("svg", u);
2494
2479
  }
2495
2480
  const { body: m, width: d, height: D } = e, b = a === "mask" || (a === "bg" ? !1 : m.indexOf("currentColor") !== -1), C = mu(m, {
2496
2481
  ...p,
@@ -2505,7 +2490,7 @@ const Du = (e, t, n, r) => {
2505
2490
  ...Tu,
2506
2491
  ...b ? gr : qo,
2507
2492
  ...s
2508
- }, Te.createElement("span", u);
2493
+ }, ve.createElement("span", u);
2509
2494
  };
2510
2495
  zo(!0);
2511
2496
  Bs("", Ws);
@@ -2541,7 +2526,7 @@ if (typeof document < "u" && typeof window < "u") {
2541
2526
  }
2542
2527
  }
2543
2528
  }
2544
- class Vo extends Te.Component {
2529
+ class Vo extends ve.Component {
2545
2530
  constructor(t) {
2546
2531
  super(t), this.state = {
2547
2532
  // Render placeholder before component is mounted
@@ -2619,7 +2604,7 @@ class Vo extends Te.Component {
2619
2604
  render() {
2620
2605
  const t = this.props, n = this.state.icon;
2621
2606
  if (n === null)
2622
- return t.children ? t.children : Te.createElement("span", {});
2607
+ return t.children ? t.children : ve.createElement("span", {});
2623
2608
  let r = t;
2624
2609
  return n.classes && (r = {
2625
2610
  ...t,
@@ -2630,21 +2615,21 @@ class Vo extends Te.Component {
2630
2615
  }, r, t._inline, t._ref);
2631
2616
  }
2632
2617
  }
2633
- const vt = Te.forwardRef(function(t, n) {
2618
+ const vt = ve.forwardRef(function(t, n) {
2634
2619
  const r = {
2635
2620
  ...t,
2636
2621
  _ref: n,
2637
2622
  _inline: !1
2638
2623
  };
2639
- return Te.createElement(Vo, r);
2624
+ return ve.createElement(Vo, r);
2640
2625
  });
2641
- Te.forwardRef(function(t, n) {
2626
+ ve.forwardRef(function(t, n) {
2642
2627
  const r = {
2643
2628
  ...t,
2644
2629
  _ref: n,
2645
2630
  _inline: !0
2646
2631
  };
2647
- return Te.createElement(Vo, r);
2632
+ return ve.createElement(Vo, r);
2648
2633
  });
2649
2634
  function Go({
2650
2635
  children: e,
@@ -2655,17 +2640,17 @@ function Go({
2655
2640
  style: o = {}
2656
2641
  }) {
2657
2642
  var D;
2658
- const { proactiveMessage: a } = Pe(Re), [l, s] = xe(!0), [u, c] = xe(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((D = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : D.includes("C0003"))) && Fe.get(t) === void 0;
2659
- Ie(() => {
2643
+ const { proactiveMessage: a } = Fe(Pe), [l, s] = be(!0), [u, c] = be(!1), p = l && (!(window != null && window.OnetrustActiveGroups) || ((D = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : D.includes("C0003"))) && _e.get(t) === void 0;
2644
+ Te(() => {
2660
2645
  var b;
2661
2646
  (b = window == null ? void 0 : window.OneTrust) == null || b.OnConsentChanged(() => {
2662
2647
  var C;
2663
- !((C = window == null ? void 0 : window.OnetrustActiveGroups) != null && C.includes("C0003")) && Fe.get(t) !== void 0 && Fe.remove(t);
2648
+ !((C = window == null ? void 0 : window.OnetrustActiveGroups) != null && C.includes("C0003")) && _e.get(t) !== void 0 && _e.remove(t);
2664
2649
  });
2665
- }, [t]), Ie(() => {
2650
+ }, [t]), Te(() => {
2666
2651
  var b;
2667
2652
  i || (!(window != null && window.OnetrustActiveGroups) || (b = window == null ? void 0 : window.OnetrustActiveGroups) != null && b.includes("C0003")) && d(t, 1, 1);
2668
- }, [t, i]), Ie(() => {
2653
+ }, [t, i]), Te(() => {
2669
2654
  if (a.enabled && a.delayMs > 0) {
2670
2655
  const b = setTimeout(() => {
2671
2656
  c(!0);
@@ -2682,7 +2667,7 @@ function Go({
2682
2667
  expires: x,
2683
2668
  path: "/"
2684
2669
  };
2685
- Fe.set(b, C, E);
2670
+ _e.set(b, C, E);
2686
2671
  };
2687
2672
  return u ? /* @__PURE__ */ T.jsx("div", { children: p && /* @__PURE__ */ T.jsxs(
2688
2673
  "div",
@@ -2778,14 +2763,14 @@ var Wo = { exports: {} };
2778
2763
  })(Wo);
2779
2764
  var Nu = Wo.exports;
2780
2765
  const Zo = /* @__PURE__ */ nt(Nu), ku = 576, Eu = (e) => {
2781
- const [t, n] = xe(), r = Ht(() => {
2766
+ const [t, n] = be(), r = Ht(() => {
2782
2767
  n(
2783
2768
  window.matchMedia(
2784
2769
  `(max-width: ${e || ku}px)`
2785
2770
  ).matches
2786
2771
  );
2787
2772
  }, [e]);
2788
- return Ie(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
2773
+ return Te(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
2789
2774
  }, rt = Eu, ju = 991;
2790
2775
  function Tn({
2791
2776
  label: e,
@@ -2835,7 +2820,7 @@ const zt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
2835
2820
  "degrees-moodle-support": zt
2836
2821
  }, zr = ({ handleFloatingActionButtonClick: e }) => {
2837
2822
  var i, o;
2838
- const { xpertKey: t, launchButton: n } = Pe(Re), r = rt(Cu);
2823
+ const { xpertKey: t, launchButton: n } = Fe(Pe), r = rt(Cu);
2839
2824
  return /* @__PURE__ */ T.jsx(
2840
2825
  Tn,
2841
2826
  {
@@ -2871,21 +2856,21 @@ eyes follow your mouse when you hover near it.`, Lr = ({
2871
2856
  handleFloatingActionButtonClick: e
2872
2857
  }) => {
2873
2858
  var m, d, D, b, C, x, E;
2874
- const { xpertKey: t, launchButton: n } = Pe(Re), r = !Fe.get(
2859
+ const { xpertKey: t, launchButton: n } = Fe(Pe), r = !_e.get(
2875
2860
  `${t}-proactive-message-xpert-chatbot`
2876
- ), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((d = n.animatedGraduate) == null ? void 0 : d.delayMs) * 2, [l, s] = xe(!1), u = rt(Ou);
2877
- Ie(() => {
2878
- const U = setTimeout(
2861
+ ), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((d = n.animatedGraduate) == null ? void 0 : d.delayMs) * 2, [l, s] = be(!1), u = rt(Ou);
2862
+ Te(() => {
2863
+ const R = setTimeout(
2879
2864
  () => {
2880
2865
  s(!0);
2881
2866
  },
2882
2867
  a
2883
2868
  );
2884
2869
  return () => {
2885
- clearTimeout(U);
2870
+ clearTimeout(R);
2886
2871
  };
2887
- }, [a]), Ie(() => {
2888
- const j = (U) => {
2872
+ }, [a]), Te(() => {
2873
+ const j = (R) => {
2889
2874
  const H = window.matchMedia(
2890
2875
  `(max-width: ${zu}px)`
2891
2876
  ).matches, M = window.devicePixelRatio > 1.5;
@@ -2894,14 +2879,14 @@ eyes follow your mouse when you hover near it.`, Lr = ({
2894
2879
  i.current.querySelectorAll(
2895
2880
  ".xpert_chatbot__animated_graduate__pupil"
2896
2881
  ).forEach(($) => {
2897
- const G = $.getBoundingClientRect(), X = (U.pageX - window.scrollX - G.left) / 30 / 16 + "rem", S = (U.pageY - window.scrollY - G.top) / 30 / 16 + "rem";
2882
+ const G = $.getBoundingClientRect(), X = (R.pageX - window.scrollX - G.left) / 30 / 16 + "rem", S = (R.pageY - window.scrollY - G.top) / 30 / 16 + "rem";
2898
2883
  $.style.transform = "translate3d(" + X + "," + S + ", 0rem)";
2899
2884
  });
2900
2885
  };
2901
2886
  return window.addEventListener("mousemove", j), () => {
2902
2887
  window.removeEventListener("mousemove", j);
2903
2888
  };
2904
- }, [a]);
2889
+ }, []);
2905
2890
  const c = () => {
2906
2891
  o.current = !0;
2907
2892
  }, p = () => {
@@ -2910,6 +2895,8 @@ eyes follow your mouse when you hover near it.`, Lr = ({
2910
2895
  return /* @__PURE__ */ T.jsxs(
2911
2896
  "div",
2912
2897
  {
2898
+ role: "region",
2899
+ "aria-label": "eyes follow mouse region",
2913
2900
  className: "xpert_chatbot__animated_graduate__eyes_follow_mouse_region",
2914
2901
  onMouseEnter: c,
2915
2902
  onMouseLeave: p,
@@ -2978,6 +2965,8 @@ eyes follow your mouse when you hover near it.`, Lr = ({
2978
2965
  /* @__PURE__ */ T.jsx("g", { mask: "url(#mask0_2271_69)", children: /* @__PURE__ */ T.jsx(
2979
2966
  "circle",
2980
2967
  {
2968
+ role: "img",
2969
+ "aria-label": "Left pupil that follows the mouse cursor",
2981
2970
  className: `xpert_chatbot__animated_graduate__pupil ${l ? "xpert_chatbot__animated_graduate__pupil_blink" : ""}`,
2982
2971
  cx: "30.7465",
2983
2972
  cy: "44.0494",
@@ -3010,6 +2999,8 @@ eyes follow your mouse when you hover near it.`, Lr = ({
3010
2999
  /* @__PURE__ */ T.jsx("g", { mask: "url(#mask1_2271_69)", children: /* @__PURE__ */ T.jsx(
3011
3000
  "circle",
3012
3001
  {
3002
+ role: "img",
3003
+ "aria-label": "Right pupil that follows the mouse cursor",
3013
3004
  className: `xpert_chatbot__animated_graduate__pupil ${l ? "xpert_chatbot__animated_graduate__pupil_blink" : ""}`,
3014
3005
  cx: "14.8773",
3015
3006
  cy: "44.0494",
@@ -3073,7 +3064,7 @@ Lr.defaultProps = {
3073
3064
  const _u = Lr;
3074
3065
  const Fu = 991, Pu = () => {
3075
3066
  var n;
3076
- const e = rt(Fu), { launchButton: t } = Pe(Re);
3067
+ const e = rt(Fu), { launchButton: t } = Fe(Pe);
3077
3068
  return (n = t.message) != null && n.enabled ? /* @__PURE__ */ T.jsx(
3078
3069
  "div",
3079
3070
  {
@@ -3090,7 +3081,7 @@ const Fu = 991, Pu = () => {
3090
3081
  * tabbable 6.2.0
3091
3082
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
3092
3083
  */
3093
- var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], gn = /* @__PURE__ */ Xo.join(","), Jo = typeof Element > "u", gt = Jo ? function() {
3084
+ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], gn = /* @__PURE__ */ Xo.join(","), Jo = typeof Element > "u", dt = Jo ? function() {
3094
3085
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, mn = !Jo && Element.prototype.getRootNode ? function(e) {
3095
3086
  var t;
3096
3087
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -3108,7 +3099,7 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3108
3099
  if (yn(t))
3109
3100
  return [];
3110
3101
  var i = Array.prototype.slice.apply(t.querySelectorAll(gn));
3111
- return n && gt.call(t, gn) && i.unshift(t), i = i.filter(r), i;
3102
+ return n && dt.call(t, gn) && i.unshift(t), i = i.filter(r), i;
3112
3103
  }, ta = function e(t, n, r) {
3113
3104
  for (var i = [], o = Array.from(t); o.length; ) {
3114
3105
  var a = o.shift();
@@ -3120,7 +3111,7 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3120
3111
  candidates: u
3121
3112
  });
3122
3113
  } else {
3123
- var c = gt.call(a, gn);
3114
+ var c = dt.call(a, gn);
3124
3115
  c && r.filter(a) && (n || !t.includes(a)) && i.push(a);
3125
3116
  var p = a.shadowRoot || // check for an undisclosed shadow
3126
3117
  typeof r.getShadowRoot == "function" && r.getShadowRoot(a), m = !yn(p, !1) && (!r.shadowRootFilter || r.shadowRootFilter(a));
@@ -3196,8 +3187,8 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3196
3187
  var r = n.displayCheck, i = n.getShadowRoot;
3197
3188
  if (getComputedStyle(t).visibility === "hidden")
3198
3189
  return !0;
3199
- var o = gt.call(t, "details>summary:first-of-type"), a = o ? t.parentElement : t;
3200
- if (gt.call(a, "details:not([open]) *"))
3190
+ var o = dt.call(t, "details>summary:first-of-type"), a = o ? t.parentElement : t;
3191
+ if (dt.call(a, "details:not([open]) *"))
3201
3192
  return !0;
3202
3193
  if (!r || r === "full" || r === "legacy-full") {
3203
3194
  if (typeof i == "function") {
@@ -3223,7 +3214,7 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3223
3214
  for (var r = 0; r < n.children.length; r++) {
3224
3215
  var i = n.children.item(r);
3225
3216
  if (i.tagName === "LEGEND")
3226
- return gt.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
3217
+ return dt.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
3227
3218
  }
3228
3219
  return !0;
3229
3220
  }
@@ -3272,21 +3263,21 @@ var Xo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3272
3263
  flatten: !0,
3273
3264
  getShadowRoot: n.getShadowRoot
3274
3265
  }) : r = ea(t, n.includeContainer, Mn.bind(null, n)), r;
3275
- }, ft = function(t, n) {
3266
+ }, ct = function(t, n) {
3276
3267
  if (n = n || {}, !t)
3277
3268
  throw new Error("No node provided");
3278
- return gt.call(t, gn) === !1 ? !1 : mr(n, t);
3269
+ return dt.call(t, gn) === !1 ? !1 : mr(n, t);
3279
3270
  }, ec = /* @__PURE__ */ Xo.concat("iframe").join(","), cn = function(t, n) {
3280
3271
  if (n = n || {}, !t)
3281
3272
  throw new Error("No node provided");
3282
- return gt.call(t, ec) === !1 ? !1 : Mn(n, t);
3273
+ return dt.call(t, ec) === !1 ? !1 : Mn(n, t);
3283
3274
  };
3284
3275
  const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3285
3276
  __proto__: null,
3286
3277
  focusable: oa,
3287
3278
  getTabIndex: tt,
3288
3279
  isFocusable: cn,
3289
- isTabbable: ft,
3280
+ isTabbable: ct,
3290
3281
  tabbable: ia
3291
3282
  }, Symbol.toStringTag, { value: "Module" }));
3292
3283
  /*!
@@ -3422,20 +3413,20 @@ var ji = {
3422
3413
  }, u = function(w, k) {
3423
3414
  var z = typeof (k == null ? void 0 : k.composedPath) == "function" ? k.composedPath() : void 0;
3424
3415
  return a.containerGroups.findIndex(function(_) {
3425
- var B = _.container, V = _.tabbableNodes;
3426
- return B.contains(w) || // fall back to explicit tabbable search which will take into consideration any
3416
+ var U = _.container, V = _.tabbableNodes;
3417
+ return U.contains(w) || // fall back to explicit tabbable search which will take into consideration any
3427
3418
  // web components if the `tabbableOptions.getShadowRoot` option was used for
3428
3419
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
3429
3420
  // look inside web components even if open)
3430
- (z == null ? void 0 : z.includes(B)) || V.find(function(q) {
3421
+ (z == null ? void 0 : z.includes(U)) || V.find(function(q) {
3431
3422
  return q === w;
3432
3423
  });
3433
3424
  });
3434
3425
  }, c = function(w) {
3435
3426
  var k = o[w];
3436
3427
  if (typeof k == "function") {
3437
- for (var z = arguments.length, _ = new Array(z > 1 ? z - 1 : 0), B = 1; B < z; B++)
3438
- _[B - 1] = arguments[B];
3428
+ for (var z = arguments.length, _ = new Array(z > 1 ? z - 1 : 0), U = 1; U < z; U++)
3429
+ _[U - 1] = arguments[U];
3439
3430
  k = k.apply(void 0, _);
3440
3431
  }
3441
3432
  if (k === !0 && (k = void 0), !k) {
@@ -3463,10 +3454,10 @@ var ji = {
3463
3454
  return w;
3464
3455
  }, m = function() {
3465
3456
  if (a.containerGroups = a.containers.map(function(w) {
3466
- var k = ia(w, o.tabbableOptions), z = oa(w, o.tabbableOptions), _ = k.length > 0 ? k[0] : void 0, B = k.length > 0 ? k[k.length - 1] : void 0, V = z.find(function(g) {
3467
- return ft(g);
3457
+ var k = ia(w, o.tabbableOptions), z = oa(w, o.tabbableOptions), _ = k.length > 0 ? k[0] : void 0, U = k.length > 0 ? k[k.length - 1] : void 0, V = z.find(function(g) {
3458
+ return ct(g);
3468
3459
  }), q = z.slice().reverse().find(function(g) {
3469
- return ft(g);
3460
+ return ct(g);
3470
3461
  }), K = !!k.find(function(g) {
3471
3462
  return tt(g) > 0;
3472
3463
  });
@@ -3479,7 +3470,7 @@ var ji = {
3479
3470
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
3480
3471
  firstTabbableNode: _,
3481
3472
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
3482
- lastTabbableNode: B,
3473
+ lastTabbableNode: U,
3483
3474
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
3484
3475
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
3485
3476
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -3499,12 +3490,12 @@ var ji = {
3499
3490
  * in reverse.
3500
3491
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
3501
3492
  */
3502
- nextTabbableNode: function(de) {
3503
- var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = k.indexOf(de);
3504
- return h < 0 ? ye ? z.slice(z.indexOf(de) + 1).find(function(ge) {
3505
- return ft(ge);
3506
- }) : z.slice(0, z.indexOf(de)).reverse().find(function(ge) {
3507
- return ft(ge);
3493
+ nextTabbableNode: function(he) {
3494
+ var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = k.indexOf(he);
3495
+ return h < 0 ? ye ? z.slice(z.indexOf(he) + 1).find(function(ge) {
3496
+ return ct(ge);
3497
+ }) : z.slice(0, z.indexOf(he)).reverse().find(function(ge) {
3498
+ return ct(ge);
3508
3499
  }) : k[h + (ye ? 1 : -1)];
3509
3500
  }
3510
3501
  };
@@ -3534,31 +3525,31 @@ var ji = {
3534
3525
  var k = c("setReturnFocus", w);
3535
3526
  return k || (k === !1 ? !1 : w);
3536
3527
  }, C = function(w) {
3537
- var k = w.target, z = w.event, _ = w.isBackward, B = _ === void 0 ? !1 : _;
3528
+ var k = w.target, z = w.event, _ = w.isBackward, U = _ === void 0 ? !1 : _;
3538
3529
  k = k || rn(z), m();
3539
3530
  var V = null;
3540
3531
  if (a.tabbableGroups.length > 0) {
3541
3532
  var q = u(k, z), K = q >= 0 ? a.containerGroups[q] : void 0;
3542
3533
  if (q < 0)
3543
- B ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
3544
- else if (B) {
3545
- var g = Ai(a.tabbableGroups, function(ne) {
3546
- var we = ne.firstTabbableNode;
3547
- return k === we;
3534
+ U ? V = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : V = a.tabbableGroups[0].firstTabbableNode;
3535
+ else if (U) {
3536
+ var g = Ai(a.tabbableGroups, function(re) {
3537
+ var xe = re.firstTabbableNode;
3538
+ return k === xe;
3548
3539
  });
3549
- if (g < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ft(k, o.tabbableOptions) && !K.nextTabbableNode(k, !1)) && (g = q), g >= 0) {
3550
- var de = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[de];
3540
+ if (g < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ct(k, o.tabbableOptions) && !K.nextTabbableNode(k, !1)) && (g = q), g >= 0) {
3541
+ var he = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[he];
3551
3542
  V = tt(k) >= 0 ? ye.lastTabbableNode : ye.lastDomTabbableNode;
3552
3543
  } else
3553
3544
  Bt(z) || (V = K.nextTabbableNode(k, !1));
3554
3545
  } else {
3555
- var h = Ai(a.tabbableGroups, function(ne) {
3556
- var we = ne.lastTabbableNode;
3557
- return k === we;
3546
+ var h = Ai(a.tabbableGroups, function(re) {
3547
+ var xe = re.lastTabbableNode;
3548
+ return k === xe;
3558
3549
  });
3559
- if (h < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ft(k, o.tabbableOptions) && !K.nextTabbableNode(k)) && (h = q), h >= 0) {
3560
- var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, Ee = a.tabbableGroups[ge];
3561
- V = tt(k) >= 0 ? Ee.firstTabbableNode : Ee.firstDomTabbableNode;
3550
+ if (h < 0 && (K.container === k || cn(k, o.tabbableOptions) && !ct(k, o.tabbableOptions) && !K.nextTabbableNode(k)) && (h = q), h >= 0) {
3551
+ var ge = h === a.tabbableGroups.length - 1 ? 0 : h + 1, ke = a.tabbableGroups[ge];
3552
+ V = tt(k) >= 0 ? ke.firstTabbableNode : ke.firstDomTabbableNode;
3562
3553
  } else
3563
3554
  Bt(z) || (V = K.nextTabbableNode(k));
3564
3555
  }
@@ -3588,7 +3579,7 @@ var ji = {
3588
3579
  z && (a.mostRecentlyFocusedNode = k);
3589
3580
  else {
3590
3581
  w.stopImmediatePropagation();
3591
- var _, B = !0;
3582
+ var _, U = !0;
3592
3583
  if (a.mostRecentlyFocusedNode)
3593
3584
  if (tt(a.mostRecentlyFocusedNode) > 0) {
3594
3585
  var V = u(a.mostRecentlyFocusedNode), q = a.containerGroups[V].tabbableNodes;
@@ -3596,17 +3587,17 @@ var ji = {
3596
3587
  var K = q.findIndex(function(g) {
3597
3588
  return g === a.mostRecentlyFocusedNode;
3598
3589
  });
3599
- K >= 0 && (o.isKeyForward(a.recentNavEvent) ? K + 1 < q.length && (_ = q[K + 1], B = !1) : K - 1 >= 0 && (_ = q[K - 1], B = !1));
3590
+ K >= 0 && (o.isKeyForward(a.recentNavEvent) ? K + 1 < q.length && (_ = q[K + 1], U = !1) : K - 1 >= 0 && (_ = q[K - 1], U = !1));
3600
3591
  }
3601
3592
  } else
3602
3593
  a.containerGroups.some(function(g) {
3603
- return g.tabbableNodes.some(function(de) {
3604
- return tt(de) > 0;
3594
+ return g.tabbableNodes.some(function(he) {
3595
+ return tt(he) > 0;
3605
3596
  });
3606
- }) || (B = !1);
3597
+ }) || (U = !1);
3607
3598
  else
3608
- B = !1;
3609
- B && (_ = C({
3599
+ U = !1;
3600
+ U && (_ = C({
3610
3601
  // move FROM the MRU node, not event-related node (which will be the node that is
3611
3602
  // outside the trap causing the focus escape we're trying to fix)
3612
3603
  target: a.mostRecentlyFocusedNode,
@@ -3622,7 +3613,7 @@ var ji = {
3622
3613
  isBackward: k
3623
3614
  });
3624
3615
  z && (Bt(w) && w.preventDefault(), D(z));
3625
- }, U = function(w) {
3616
+ }, R = function(w) {
3626
3617
  if (ac(w) && Lt(o.escapeDeactivates, w) !== !1) {
3627
3618
  w.preventDefault(), l.deactivate();
3628
3619
  return;
@@ -3644,18 +3635,18 @@ var ji = {
3644
3635
  }), r.addEventListener("click", H, {
3645
3636
  capture: !0,
3646
3637
  passive: !1
3647
- }), r.addEventListener("keydown", U, {
3638
+ }), r.addEventListener("keydown", R, {
3648
3639
  capture: !0,
3649
3640
  passive: !1
3650
3641
  }), l;
3651
3642
  }, L = function() {
3652
3643
  if (a.active)
3653
- return r.removeEventListener("focusin", E, !0), r.removeEventListener("mousedown", x, !0), r.removeEventListener("touchstart", x, !0), r.removeEventListener("click", H, !0), r.removeEventListener("keydown", U, !0), l;
3644
+ return r.removeEventListener("focusin", E, !0), r.removeEventListener("mousedown", x, !0), r.removeEventListener("touchstart", x, !0), r.removeEventListener("click", H, !0), r.removeEventListener("keydown", R, !0), l;
3654
3645
  }, $ = function(w) {
3655
3646
  var k = w.some(function(z) {
3656
3647
  var _ = Array.from(z.removedNodes);
3657
- return _.some(function(B) {
3658
- return B === a.mostRecentlyFocusedNode;
3648
+ return _.some(function(U) {
3649
+ return U === a.mostRecentlyFocusedNode;
3659
3650
  });
3660
3651
  });
3661
3652
  k && D(p());
@@ -3679,10 +3670,10 @@ var ji = {
3679
3670
  return this;
3680
3671
  var k = s(w, "onActivate"), z = s(w, "onPostActivate"), _ = s(w, "checkCanFocusTrap");
3681
3672
  _ || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, k == null || k();
3682
- var B = function() {
3673
+ var U = function() {
3683
3674
  _ && m(), M(), X(), z == null || z();
3684
3675
  };
3685
- return _ ? (_(a.containers.concat()).then(B, B), this) : (B(), this);
3676
+ return _ ? (_(a.containers.concat()).then(U, U), this) : (U(), this);
3686
3677
  },
3687
3678
  deactivate: function(w) {
3688
3679
  if (!a.active)
@@ -3693,14 +3684,14 @@ var ji = {
3693
3684
  checkCanReturnFocus: o.checkCanReturnFocus
3694
3685
  }, w);
3695
3686
  clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, L(), a.active = !1, a.paused = !1, X(), ji.deactivateTrap(i, l);
3696
- var z = s(k, "onDeactivate"), _ = s(k, "onPostDeactivate"), B = s(k, "checkCanReturnFocus"), V = s(k, "returnFocus", "returnFocusOnDeactivate");
3687
+ var z = s(k, "onDeactivate"), _ = s(k, "onPostDeactivate"), U = s(k, "checkCanReturnFocus"), V = s(k, "returnFocus", "returnFocusOnDeactivate");
3697
3688
  z == null || z();
3698
3689
  var q = function() {
3699
3690
  Ci(function() {
3700
3691
  V && D(b(a.nodeFocusedBeforeActivation)), _ == null || _();
3701
3692
  });
3702
3693
  };
3703
- return V && B ? (B(b(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
3694
+ return V && U ? (U(b(a.nodeFocusedBeforeActivation)).then(q, q), this) : (q(), this);
3704
3695
  },
3705
3696
  pause: function(w) {
3706
3697
  if (a.paused || !a.active)
@@ -3817,7 +3808,7 @@ function wc(e, t) {
3817
3808
  }
3818
3809
  return (t === "string" ? String : Number)(e);
3819
3810
  }
3820
- var on = Te, Y = Q, vc = fc, Tc = vc.createFocusTrap, Ic = dc, Dc = Ic.isFocusable, _r = /* @__PURE__ */ function(e) {
3811
+ var on = ve, Y = B, vc = fc, Tc = vc.createFocusTrap, Ic = dc, Dc = Ic.isFocusable, _r = /* @__PURE__ */ function(e) {
3821
3812
  mc(n, e);
3822
3813
  var t = yc(n);
3823
3814
  function n(r) {
@@ -4281,7 +4272,7 @@ function ua({
4281
4272
  onClose: i
4282
4273
  }) {
4283
4274
  var s, u, c, p, m, d, D, b, C;
4284
- const { primaryColor: o, conversationScreen: a } = Pe(Re), l = rt(Oc);
4275
+ const { primaryColor: o, conversationScreen: a } = Fe(Pe), l = rt(Oc);
4285
4276
  return /* @__PURE__ */ T.jsxs(
4286
4277
  "div",
4287
4278
  {
@@ -4364,8 +4355,8 @@ function Rr({
4364
4355
  loading: s,
4365
4356
  userInput: u
4366
4357
  }) {
4367
- const { primaryColor: c } = Pe(Re);
4368
- return Ie(() => {
4358
+ const { primaryColor: c } = Fe(Pe);
4359
+ return Te(() => {
4369
4360
  var p;
4370
4361
  (o || a) && ((p = l.current) == null || p.focus());
4371
4362
  }, [a, o, l]), /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
@@ -4467,7 +4458,7 @@ function zi(e) {
4467
4458
  function Li(e) {
4468
4459
  return e && typeof e == "number" ? e : 1;
4469
4460
  }
4470
- class Ue extends Error {
4461
+ class Re extends Error {
4471
4462
  /**
4472
4463
  * Create a message for `reason` at `place` from `origin`.
4473
4464
  *
@@ -4501,17 +4492,17 @@ class Ue extends Error {
4501
4492
  n && ("type" in n || "position" in n ? n.position && (o = n.position) : "start" in n || "end" in n ? o = n : ("line" in n || "column" in n) && (o.start = n)), this.name = Qt(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 = o.start.line, this.column = o.start.column, this.position = o, this.source = i[0], this.ruleId = i[1], this.file, this.actual, this.expected, this.url, this.note;
4502
4493
  }
4503
4494
  }
4504
- Ue.prototype.file = "";
4505
- Ue.prototype.name = "";
4506
- Ue.prototype.reason = "";
4507
- Ue.prototype.message = "";
4508
- Ue.prototype.stack = "";
4509
- Ue.prototype.fatal = null;
4510
- Ue.prototype.column = null;
4511
- Ue.prototype.line = null;
4512
- Ue.prototype.source = null;
4513
- Ue.prototype.ruleId = null;
4514
- Ue.prototype.position = null;
4495
+ Re.prototype.file = "";
4496
+ Re.prototype.name = "";
4497
+ Re.prototype.reason = "";
4498
+ Re.prototype.message = "";
4499
+ Re.prototype.stack = "";
4500
+ Re.prototype.fatal = null;
4501
+ Re.prototype.column = null;
4502
+ Re.prototype.line = null;
4503
+ Re.prototype.source = null;
4504
+ Re.prototype.ruleId = null;
4505
+ Re.prototype.position = null;
4515
4506
  const Ve = { basename: _c, dirname: Fc, extname: Pc, join: Rc, sep: "/" };
4516
4507
  function _c(e, t) {
4517
4508
  if (t !== void 0 && typeof t != "string")
@@ -4823,7 +4814,7 @@ class pa {
4823
4814
  * Message.
4824
4815
  */
4825
4816
  message(t, n, r) {
4826
- const i = new Ue(t, n, r);
4817
+ const i = new Re(t, n, r);
4827
4818
  return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
4828
4819
  }
4829
4820
  /**
@@ -5024,7 +5015,7 @@ function ha() {
5024
5015
  if (typeof b == "function")
5025
5016
  H(b, ...C);
5026
5017
  else if (typeof b == "object")
5027
- Array.isArray(b) ? U(b) : j(b);
5018
+ Array.isArray(b) ? R(b) : j(b);
5028
5019
  else
5029
5020
  throw new TypeError("Expected usable value, not `" + b + "`");
5030
5021
  return x && (n.settings = Object.assign(n.settings || {}, x)), o;
@@ -5041,9 +5032,9 @@ function ha() {
5041
5032
  throw new TypeError("Expected usable value, not `" + M + "`");
5042
5033
  }
5043
5034
  function j(M) {
5044
- U(M.plugins), M.settings && (x = Object.assign(x || {}, M.settings));
5035
+ R(M.plugins), M.settings && (x = Object.assign(x || {}, M.settings));
5045
5036
  }
5046
- function U(M) {
5037
+ function R(M) {
5047
5038
  let L = -1;
5048
5039
  if (M != null)
5049
5040
  if (Array.isArray(M))
@@ -5078,18 +5069,18 @@ function ha() {
5078
5069
  if (qi(b), o.freeze(), !x && typeof C == "function" && (x = C, C = void 0), !x)
5079
5070
  return new Promise(E);
5080
5071
  E(null, x);
5081
- function E(j, U) {
5072
+ function E(j, R) {
5082
5073
  e.run(b, Ft(C), H);
5083
5074
  function H(M, L, $) {
5084
- L = L || b, M ? U(M) : j ? j(L) : x(null, L, $);
5075
+ L = L || b, M ? R(M) : j ? j(L) : x(null, L, $);
5085
5076
  }
5086
5077
  }
5087
5078
  }
5088
5079
  function m(b, C) {
5089
5080
  let x, E;
5090
5081
  return o.run(b, C, j), Vi("runSync", "run", E), x;
5091
- function j(U, H) {
5092
- Fi(U), x = H, E = !0;
5082
+ function j(R, H) {
5083
+ Fi(R), x = H, E = !0;
5093
5084
  }
5094
5085
  }
5095
5086
  function d(b, C) {
@@ -5097,8 +5088,8 @@ function ha() {
5097
5088
  return new Promise(x);
5098
5089
  x(null, C);
5099
5090
  function x(E, j) {
5100
- const U = Ft(b);
5101
- o.run(o.parse(U), U, (M, L, $) => {
5091
+ const R = Ft(b);
5092
+ o.run(o.parse(R), R, (M, L, $) => {
5102
5093
  if (M || !L || !$)
5103
5094
  H(M);
5104
5095
  else {
@@ -5205,7 +5196,7 @@ function Ze(e, t, n, r) {
5205
5196
  for (n && e.splice(t, n); o < r.length; )
5206
5197
  a = r.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4;
5207
5198
  }
5208
- function _e(e, t) {
5199
+ function Le(e, t) {
5209
5200
  return e.length > 0 ? (Ze(e, e.length, 0, t), e) : t;
5210
5201
  }
5211
5202
  const Wi = {}.hasOwnProperty;
@@ -5240,7 +5231,7 @@ function op(e, t) {
5240
5231
  (t[n].add === "after" ? e : r).push(t[n]);
5241
5232
  Ze(e, 0, 0, r);
5242
5233
  }
5243
- const ap = /[!-\/:-@\[-`\{-~\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]/, Ge = it(/[A-Za-z]/), Se = it(/[\dA-Za-z]/), lp = it(/[#-'*+\--9=?A-Z^-~]/);
5234
+ const ap = /[!-\/:-@\[-`\{-~\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]/, Ge = it(/[A-Za-z]/), Ae = it(/[\dA-Za-z]/), lp = it(/[#-'*+\--9=?A-Z^-~]/);
5244
5235
  function wr(e) {
5245
5236
  return (
5246
5237
  // Special whitespace codes (which have negative values), C0 and Control
@@ -5252,7 +5243,7 @@ const vr = it(/\d/), sp = it(/[\dA-Fa-f]/), up = it(/[!-/:-@[-`{-~]/);
5252
5243
  function W(e) {
5253
5244
  return e !== null && e < -2;
5254
5245
  }
5255
- function ke(e) {
5246
+ function Ne(e) {
5256
5247
  return e !== null && (e < 0 || e === 32);
5257
5248
  }
5258
5249
  function ie(e) {
@@ -5265,7 +5256,7 @@ function it(e) {
5265
5256
  return n !== null && e.test(String.fromCharCode(n));
5266
5257
  }
5267
5258
  }
5268
- function ce(e, t, n, r) {
5259
+ function pe(e, t, n, r) {
5269
5260
  const i = r ? r - 1 : Number.POSITIVE_INFINITY;
5270
5261
  let o = 0;
5271
5262
  return a;
@@ -5292,7 +5283,7 @@ function dp(e) {
5292
5283
  e.consume(l);
5293
5284
  return;
5294
5285
  }
5295
- return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ce(e, t, "linePrefix");
5286
+ return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), pe(e, t, "linePrefix");
5296
5287
  }
5297
5288
  function i(l) {
5298
5289
  return e.enter("paragraph"), o(l);
@@ -5323,9 +5314,9 @@ function gp(e) {
5323
5314
  return l;
5324
5315
  function l(j) {
5325
5316
  if (r < n.length) {
5326
- const U = n[r];
5327
- return t.containerState = U[1], e.attempt(
5328
- U[0].continuation,
5317
+ const R = n[r];
5318
+ return t.containerState = R[1], e.attempt(
5319
+ R[0].continuation,
5329
5320
  s,
5330
5321
  u
5331
5322
  )(j);
@@ -5335,22 +5326,22 @@ function gp(e) {
5335
5326
  function s(j) {
5336
5327
  if (r++, t.containerState._closeFlow) {
5337
5328
  t.containerState._closeFlow = void 0, i && E();
5338
- const U = t.events.length;
5339
- let H = U, M;
5329
+ const R = t.events.length;
5330
+ let H = R, M;
5340
5331
  for (; H--; )
5341
5332
  if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
5342
5333
  M = t.events[H][1].end;
5343
5334
  break;
5344
5335
  }
5345
5336
  x(r);
5346
- let L = U;
5337
+ let L = R;
5347
5338
  for (; L < t.events.length; )
5348
5339
  t.events[L][1].end = Object.assign({}, M), L++;
5349
5340
  return Ze(
5350
5341
  t.events,
5351
5342
  H + 1,
5352
5343
  0,
5353
- t.events.slice(U)
5344
+ t.events.slice(R)
5354
5345
  ), t.events.length = L, u(j);
5355
5346
  }
5356
5347
  return l(j);
@@ -5403,9 +5394,9 @@ function gp(e) {
5403
5394
  }
5404
5395
  return W(j) ? (e.consume(j), C(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(j), b);
5405
5396
  }
5406
- function C(j, U) {
5397
+ function C(j, R) {
5407
5398
  const H = t.sliceStream(j);
5408
- if (U && H.push(null), j.previous = o, o && (o.next = j), o = j, i.defineSkip(j.start), i.write(H), t.parser.lazy[j.start.line]) {
5399
+ if (R && H.push(null), j.previous = o, o && (o.next = j), o = j, i.defineSkip(j.start), i.write(H), t.parser.lazy[j.start.line]) {
5409
5400
  let M = i.events.length;
5410
5401
  for (; M--; )
5411
5402
  if (
@@ -5436,9 +5427,9 @@ function gp(e) {
5436
5427
  }
5437
5428
  }
5438
5429
  function x(j) {
5439
- let U = n.length;
5440
- for (; U-- > j; ) {
5441
- const H = n[U];
5430
+ let R = n.length;
5431
+ for (; R-- > j; ) {
5432
+ const H = n[R];
5442
5433
  t.containerState = H[1], H[0].exit.call(t, e);
5443
5434
  }
5444
5435
  n.length = j;
@@ -5448,7 +5439,7 @@ function gp(e) {
5448
5439
  }
5449
5440
  }
5450
5441
  function mp(e, t, n) {
5451
- return ce(
5442
+ return pe(
5452
5443
  e,
5453
5444
  e.attempt(this.parser.constructs.document, t, n),
5454
5445
  "linePrefix",
@@ -5456,7 +5447,7 @@ function mp(e, t, n) {
5456
5447
  );
5457
5448
  }
5458
5449
  function Ki(e) {
5459
- if (e === null || ke(e) || pp(e))
5450
+ if (e === null || Ne(e) || pp(e))
5460
5451
  return 1;
5461
5452
  if (cp(e))
5462
5453
  return 2;
@@ -5502,27 +5493,27 @@ function yp(e, t) {
5502
5493
  type: s > 1 ? "strong" : "emphasis",
5503
5494
  start: Object.assign({}, a.start),
5504
5495
  end: Object.assign({}, l.end)
5505
- }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = _e(u, [
5496
+ }, e[r][1].end = Object.assign({}, a.start), e[n][1].start = Object.assign({}, l.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Le(u, [
5506
5497
  ["enter", e[r][1], t],
5507
5498
  ["exit", e[r][1], t]
5508
- ])), u = _e(u, [
5499
+ ])), u = Le(u, [
5509
5500
  ["enter", i, t],
5510
5501
  ["enter", a, t],
5511
5502
  ["exit", a, t],
5512
5503
  ["enter", o, t]
5513
- ]), u = _e(
5504
+ ]), u = Le(
5514
5505
  u,
5515
5506
  Ur(
5516
5507
  t.parser.constructs.insideSpan.null,
5517
5508
  e.slice(r + 1, n),
5518
5509
  t
5519
5510
  )
5520
- ), u = _e(u, [
5511
+ ), u = Le(u, [
5521
5512
  ["exit", o, t],
5522
5513
  ["enter", l, t],
5523
5514
  ["exit", l, t],
5524
5515
  ["exit", i, t]
5525
- ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = _e(u, [
5516
+ ]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Le(u, [
5526
5517
  ["enter", e[n][1], t],
5527
5518
  ["exit", e[n][1], t]
5528
5519
  ])) : c = 0, Ze(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
@@ -5564,10 +5555,10 @@ function xp(e, t, n) {
5564
5555
  return Ge(d) ? (e.consume(d), a) : u(d);
5565
5556
  }
5566
5557
  function a(d) {
5567
- return d === 43 || d === 45 || d === 46 || Se(d) ? (r = 1, l(d)) : u(d);
5558
+ return d === 43 || d === 45 || d === 46 || Ae(d) ? (r = 1, l(d)) : u(d);
5568
5559
  }
5569
5560
  function l(d) {
5570
- return d === 58 ? (e.consume(d), r = 0, s) : (d === 43 || d === 45 || d === 46 || Se(d)) && r++ < 32 ? (e.consume(d), l) : (r = 0, u(d));
5561
+ return d === 58 ? (e.consume(d), r = 0, s) : (d === 43 || d === 45 || d === 46 || Ae(d)) && r++ < 32 ? (e.consume(d), l) : (r = 0, u(d));
5571
5562
  }
5572
5563
  function s(d) {
5573
5564
  return d === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : d === null || d === 32 || d === 60 || wr(d) ? n(d) : (e.consume(d), s);
@@ -5576,13 +5567,13 @@ function xp(e, t, n) {
5576
5567
  return d === 64 ? (e.consume(d), c) : lp(d) ? (e.consume(d), u) : n(d);
5577
5568
  }
5578
5569
  function c(d) {
5579
- return Se(d) ? p(d) : n(d);
5570
+ return Ae(d) ? p(d) : n(d);
5580
5571
  }
5581
5572
  function p(d) {
5582
5573
  return d === 46 ? (e.consume(d), r = 0, c) : d === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(d);
5583
5574
  }
5584
5575
  function m(d) {
5585
- if ((d === 45 || Se(d)) && r++ < 63) {
5576
+ if ((d === 45 || Ae(d)) && r++ < 63) {
5586
5577
  const D = d === 45 ? m : p;
5587
5578
  return e.consume(d), D;
5588
5579
  }
@@ -5596,7 +5587,7 @@ const In = {
5596
5587
  function wp(e, t, n) {
5597
5588
  return r;
5598
5589
  function r(o) {
5599
- return ie(o) ? ce(e, i, "linePrefix")(o) : i(o);
5590
+ return ie(o) ? pe(e, i, "linePrefix")(o) : i(o);
5600
5591
  }
5601
5592
  function i(o) {
5602
5593
  return o === null || W(o) ? t(o) : n(o);
@@ -5630,7 +5621,7 @@ function Tp(e, t, n) {
5630
5621
  const r = this;
5631
5622
  return i;
5632
5623
  function i(a) {
5633
- return ie(a) ? ce(
5624
+ return ie(a) ? pe(
5634
5625
  e,
5635
5626
  o,
5636
5627
  "linePrefix",
@@ -5676,7 +5667,7 @@ function Np(e, t, n) {
5676
5667
  return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), s;
5677
5668
  }
5678
5669
  function s(p) {
5679
- return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = Se, c(p));
5670
+ return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = Ae, c(p));
5680
5671
  }
5681
5672
  function u(p) {
5682
5673
  return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = sp, c) : (e.enter("characterReferenceValue"), o = 7, a = vr, c(p));
@@ -5684,7 +5675,7 @@ function Np(e, t, n) {
5684
5675
  function c(p) {
5685
5676
  if (p === 59 && i) {
5686
5677
  const m = e.exit("characterReferenceValue");
5687
- return a === Se && !Br(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5678
+ return a === Ae && !Br(r.sliceSerialize(m)) ? n(p) : (e.enter("characterReferenceMarker"), e.consume(p), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
5688
5679
  }
5689
5680
  return a(p) && i++ < o ? (e.consume(p), c) : n(p);
5690
5681
  }
@@ -5712,15 +5703,15 @@ function kp(e, t, n) {
5712
5703
  return o = L && L[1].type === "linePrefix" ? L[2].sliceSerialize(L[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
5713
5704
  }
5714
5705
  function c(M) {
5715
- return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), ie(M) ? ce(e, p, "whitespace")(M) : p(M));
5706
+ return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), ie(M) ? pe(e, p, "whitespace")(M) : p(M));
5716
5707
  }
5717
5708
  function p(M) {
5718
- return M === null || W(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(eo, b, U)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5709
+ return M === null || W(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(eo, b, R)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5719
5710
  contentType: "string"
5720
5711
  }), m(M));
5721
5712
  }
5722
5713
  function m(M) {
5723
- return M === null || W(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : ie(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ce(e, d, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
5714
+ return M === null || W(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : ie(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), pe(e, d, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
5724
5715
  }
5725
5716
  function d(M) {
5726
5717
  return M === null || W(M) ? p(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -5731,13 +5722,13 @@ function kp(e, t, n) {
5731
5722
  return M === null || W(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(M)) : M === 96 && M === l ? n(M) : (e.consume(M), D);
5732
5723
  }
5733
5724
  function b(M) {
5734
- return e.attempt(i, U, C)(M);
5725
+ return e.attempt(i, R, C)(M);
5735
5726
  }
5736
5727
  function C(M) {
5737
5728
  return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), x;
5738
5729
  }
5739
5730
  function x(M) {
5740
- return o > 0 && ie(M) ? ce(
5731
+ return o > 0 && ie(M) ? pe(
5741
5732
  e,
5742
5733
  E,
5743
5734
  "linePrefix",
@@ -5745,12 +5736,12 @@ function kp(e, t, n) {
5745
5736
  )(M) : E(M);
5746
5737
  }
5747
5738
  function E(M) {
5748
- return M === null || W(M) ? e.check(eo, b, U)(M) : (e.enter("codeFlowValue"), j(M));
5739
+ return M === null || W(M) ? e.check(eo, b, R)(M) : (e.enter("codeFlowValue"), j(M));
5749
5740
  }
5750
5741
  function j(M) {
5751
5742
  return M === null || W(M) ? (e.exit("codeFlowValue"), E(M)) : (e.consume(M), j);
5752
5743
  }
5753
- function U(M) {
5744
+ function R(M) {
5754
5745
  return e.exit("codeFenced"), t(M);
5755
5746
  }
5756
5747
  function H(M, L, $) {
@@ -5760,7 +5751,7 @@ function kp(e, t, n) {
5760
5751
  return M.enter("lineEnding"), M.consume(_), M.exit("lineEnding"), S;
5761
5752
  }
5762
5753
  function S(_) {
5763
- return M.enter("codeFencedFence"), ie(_) ? ce(
5754
+ return M.enter("codeFencedFence"), ie(_) ? pe(
5764
5755
  M,
5765
5756
  w,
5766
5757
  "linePrefix",
@@ -5771,7 +5762,7 @@ function kp(e, t, n) {
5771
5762
  return _ === l ? (M.enter("codeFencedFenceSequence"), k(_)) : $(_);
5772
5763
  }
5773
5764
  function k(_) {
5774
- return _ === l ? (G++, M.consume(_), k) : G >= a ? (M.exit("codeFencedFenceSequence"), ie(_) ? ce(M, z, "whitespace")(_) : z(_)) : $(_);
5765
+ return _ === l ? (G++, M.consume(_), k) : G >= a ? (M.exit("codeFencedFenceSequence"), ie(_) ? pe(M, z, "whitespace")(_) : z(_)) : $(_);
5775
5766
  }
5776
5767
  function z(_) {
5777
5768
  return _ === null || W(_) ? (M.exit("codeFencedFence"), L(_)) : $(_);
@@ -5799,7 +5790,7 @@ function Cp(e, t, n) {
5799
5790
  const r = this;
5800
5791
  return i;
5801
5792
  function i(u) {
5802
- return e.enter("codeIndented"), ce(e, o, "linePrefix", 4 + 1)(u);
5793
+ return e.enter("codeIndented"), pe(e, o, "linePrefix", 4 + 1)(u);
5803
5794
  }
5804
5795
  function o(u) {
5805
5796
  const c = r.events[r.events.length - 1];
@@ -5819,7 +5810,7 @@ function Ap(e, t, n) {
5819
5810
  const r = this;
5820
5811
  return i;
5821
5812
  function i(a) {
5822
- return r.parser.lazy[r.now().line] ? n(a) : W(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : ce(e, o, "linePrefix", 4 + 1)(a);
5813
+ return r.parser.lazy[r.now().line] ? n(a) : W(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : pe(e, o, "linePrefix", 4 + 1)(a);
5823
5814
  }
5824
5815
  function o(a) {
5825
5816
  const l = r.events[r.events.length - 1];
@@ -5947,7 +5938,7 @@ function Bp(e, t, n) {
5947
5938
  const r = this;
5948
5939
  return i;
5949
5940
  function i(a) {
5950
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), ce(e, o, "linePrefix");
5941
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), pe(e, o, "linePrefix");
5951
5942
  }
5952
5943
  function o(a) {
5953
5944
  if (a === null || W(a))
@@ -5977,7 +5968,7 @@ function xa(e, t, n, r, i, o, a, l, s) {
5977
5968
  return x === 60 || x === 62 || x === 92 ? (e.consume(x), d) : d(x);
5978
5969
  }
5979
5970
  function b(x) {
5980
- return !c && (x === null || x === 41 || ke(x)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(x)) : c < u && x === 40 ? (e.consume(x), c++, b) : x === 41 ? (e.consume(x), c--, b) : x === null || x === 32 || x === 40 || wr(x) ? n(x) : (e.consume(x), x === 92 ? C : b);
5971
+ return !c && (x === null || x === 41 || Ne(x)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(x)) : c < u && x === 40 ? (e.consume(x), c++, b) : x === 41 ? (e.consume(x), c--, b) : x === null || x === 32 || x === 40 || wr(x) ? n(x) : (e.consume(x), x === 92 ? C : b);
5981
5972
  }
5982
5973
  function C(x) {
5983
5974
  return x === 40 || x === 41 || x === 92 ? (e.consume(x), b) : b(x);
@@ -6017,7 +6008,7 @@ function va(e, t, n, r, i, o) {
6017
6008
  return m === a ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), u(m));
6018
6009
  }
6019
6010
  function u(m) {
6020
- return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : W(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ce(e, u, "linePrefix")) : (e.enter("chunkString", {
6011
+ return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : W(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), pe(e, u, "linePrefix")) : (e.enter("chunkString", {
6021
6012
  contentType: "string"
6022
6013
  }), c(m));
6023
6014
  }
@@ -6032,7 +6023,7 @@ function Yt(e, t) {
6032
6023
  let n;
6033
6024
  return r;
6034
6025
  function r(i) {
6035
- return W(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : ie(i) ? ce(
6026
+ return W(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : ie(i) ? pe(
6036
6027
  e,
6037
6028
  r,
6038
6029
  n ? "linePrefix" : "lineSuffix"
@@ -6074,7 +6065,7 @@ function Hp(e, t, n) {
6074
6065
  ), d === 58 ? (e.enter("definitionMarker"), e.consume(d), e.exit("definitionMarker"), s) : n(d);
6075
6066
  }
6076
6067
  function s(d) {
6077
- return ke(d) ? Yt(e, u)(d) : u(d);
6068
+ return Ne(d) ? Yt(e, u)(d) : u(d);
6078
6069
  }
6079
6070
  function u(d) {
6080
6071
  return xa(
@@ -6093,7 +6084,7 @@ function Hp(e, t, n) {
6093
6084
  return e.attempt(Yp, p, p)(d);
6094
6085
  }
6095
6086
  function p(d) {
6096
- return ie(d) ? ce(e, m, "whitespace")(d) : m(d);
6087
+ return ie(d) ? pe(e, m, "whitespace")(d) : m(d);
6097
6088
  }
6098
6089
  function m(d) {
6099
6090
  return d === null || W(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
@@ -6102,7 +6093,7 @@ function Hp(e, t, n) {
6102
6093
  function $p(e, t, n) {
6103
6094
  return r;
6104
6095
  function r(l) {
6105
- return ke(l) ? Yt(e, i)(l) : n(l);
6096
+ return Ne(l) ? Yt(e, i)(l) : n(l);
6106
6097
  }
6107
6098
  function i(l) {
6108
6099
  return va(
@@ -6115,7 +6106,7 @@ function $p(e, t, n) {
6115
6106
  )(l);
6116
6107
  }
6117
6108
  function o(l) {
6118
- return ie(l) ? ce(e, a, "whitespace")(l) : a(l);
6109
+ return ie(l) ? pe(e, a, "whitespace")(l) : a(l);
6119
6110
  }
6120
6111
  function a(l) {
6121
6112
  return l === null || W(l) ? t(l) : n(l);
@@ -6167,16 +6158,16 @@ function Zp(e, t, n) {
6167
6158
  return e.enter("atxHeadingSequence"), a(c);
6168
6159
  }
6169
6160
  function a(c) {
6170
- return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || ke(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6161
+ return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || Ne(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
6171
6162
  }
6172
6163
  function l(c) {
6173
- return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || W(c) ? (e.exit("atxHeading"), t(c)) : ie(c) ? ce(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6164
+ return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || W(c) ? (e.exit("atxHeading"), t(c)) : ie(c) ? pe(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
6174
6165
  }
6175
6166
  function s(c) {
6176
6167
  return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
6177
6168
  }
6178
6169
  function u(c) {
6179
- return c === null || c === 35 || ke(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6170
+ return c === null || c === 35 || Ne(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
6180
6171
  }
6181
6172
  }
6182
6173
  const Kp = [
@@ -6287,11 +6278,11 @@ function nf(e, t, n) {
6287
6278
  return Ge(h) ? (e.consume(h), a = String.fromCharCode(h), C) : n(h);
6288
6279
  }
6289
6280
  function C(h) {
6290
- if (h === null || h === 47 || h === 62 || ke(h)) {
6291
- const ge = h === 47, Ee = a.toLowerCase();
6292
- return !ge && !o && no.includes(Ee) ? (i = 1, r.interrupt ? t(h) : w(h)) : Kp.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), x) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? E(h) : j(h));
6281
+ if (h === null || h === 47 || h === 62 || Ne(h)) {
6282
+ const ge = h === 47, ke = a.toLowerCase();
6283
+ return !ge && !o && no.includes(ke) ? (i = 1, r.interrupt ? t(h) : w(h)) : Kp.includes(a.toLowerCase()) ? (i = 6, ge ? (e.consume(h), x) : r.interrupt ? t(h) : w(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? E(h) : j(h));
6293
6284
  }
6294
- return h === 45 || Se(h) ? (e.consume(h), a += String.fromCharCode(h), C) : n(h);
6285
+ return h === 45 || Ae(h) ? (e.consume(h), a += String.fromCharCode(h), C) : n(h);
6295
6286
  }
6296
6287
  function x(h) {
6297
6288
  return h === 62 ? (e.consume(h), r.interrupt ? t : w) : n(h);
@@ -6300,10 +6291,10 @@ function nf(e, t, n) {
6300
6291
  return ie(h) ? (e.consume(h), E) : X(h);
6301
6292
  }
6302
6293
  function j(h) {
6303
- return h === 47 ? (e.consume(h), X) : h === 58 || h === 95 || Ge(h) ? (e.consume(h), U) : ie(h) ? (e.consume(h), j) : X(h);
6294
+ return h === 47 ? (e.consume(h), X) : h === 58 || h === 95 || Ge(h) ? (e.consume(h), R) : ie(h) ? (e.consume(h), j) : X(h);
6304
6295
  }
6305
- function U(h) {
6306
- return h === 45 || h === 46 || h === 58 || h === 95 || Se(h) ? (e.consume(h), U) : H(h);
6296
+ function R(h) {
6297
+ return h === 45 || h === 46 || h === 58 || h === 95 || Ae(h) ? (e.consume(h), R) : H(h);
6307
6298
  }
6308
6299
  function H(h) {
6309
6300
  return h === 61 ? (e.consume(h), M) : ie(h) ? (e.consume(h), H) : j(h);
@@ -6315,7 +6306,7 @@ function nf(e, t, n) {
6315
6306
  return h === s ? (e.consume(h), s = null, G) : h === null || W(h) ? n(h) : (e.consume(h), L);
6316
6307
  }
6317
6308
  function $(h) {
6318
- return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ke(h) ? H(h) : (e.consume(h), $);
6309
+ return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || Ne(h) ? H(h) : (e.consume(h), $);
6319
6310
  }
6320
6311
  function G(h) {
6321
6312
  return h === 47 || h === 62 || ie(h) ? j(h) : n(h);
@@ -6327,7 +6318,7 @@ function nf(e, t, n) {
6327
6318
  return h === null || W(h) ? w(h) : ie(h) ? (e.consume(h), S) : n(h);
6328
6319
  }
6329
6320
  function w(h) {
6330
- return h === 45 && i === 2 ? (e.consume(h), B) : h === 60 && i === 1 ? (e.consume(h), V) : h === 62 && i === 4 ? (e.consume(h), de) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), K) : W(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6321
+ return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), V) : h === 62 && i === 4 ? (e.consume(h), he) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), K) : W(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
6331
6322
  Jp,
6332
6323
  ye,
6333
6324
  k
@@ -6346,7 +6337,7 @@ function nf(e, t, n) {
6346
6337
  function _(h) {
6347
6338
  return h === null || W(h) ? k(h) : (e.enter("htmlFlowData"), w(h));
6348
6339
  }
6349
- function B(h) {
6340
+ function U(h) {
6350
6341
  return h === 45 ? (e.consume(h), g) : w(h);
6351
6342
  }
6352
6343
  function V(h) {
@@ -6355,7 +6346,7 @@ function nf(e, t, n) {
6355
6346
  function q(h) {
6356
6347
  if (h === 62) {
6357
6348
  const ge = a.toLowerCase();
6358
- return no.includes(ge) ? (e.consume(h), de) : w(h);
6349
+ return no.includes(ge) ? (e.consume(h), he) : w(h);
6359
6350
  }
6360
6351
  return Ge(h) && a.length < 8 ? (e.consume(h), a += String.fromCharCode(h), q) : w(h);
6361
6352
  }
@@ -6363,10 +6354,10 @@ function nf(e, t, n) {
6363
6354
  return h === 93 ? (e.consume(h), g) : w(h);
6364
6355
  }
6365
6356
  function g(h) {
6366
- return h === 62 ? (e.consume(h), de) : h === 45 && i === 2 ? (e.consume(h), g) : w(h);
6357
+ return h === 62 ? (e.consume(h), he) : h === 45 && i === 2 ? (e.consume(h), g) : w(h);
6367
6358
  }
6368
- function de(h) {
6369
- return h === null || W(h) ? (e.exit("htmlFlowData"), ye(h)) : (e.consume(h), de);
6359
+ function he(h) {
6360
+ return h === null || W(h) ? (e.exit("htmlFlowData"), ye(h)) : (e.consume(h), he);
6370
6361
  }
6371
6362
  function ye(h) {
6372
6363
  return e.exit("htmlFlow"), t(h);
@@ -6415,11 +6406,11 @@ function lf(e, t, n) {
6415
6406
  return g === 45 ? (e.consume(g), d) : p(g);
6416
6407
  }
6417
6408
  function d(g) {
6418
- return g === 62 ? B(g) : g === 45 ? m(g) : p(g);
6409
+ return g === 62 ? U(g) : g === 45 ? m(g) : p(g);
6419
6410
  }
6420
6411
  function D(g) {
6421
- const de = "CDATA[";
6422
- return g === de.charCodeAt(o++) ? (e.consume(g), o === de.length ? b : D) : n(g);
6412
+ const he = "CDATA[";
6413
+ return g === he.charCodeAt(o++) ? (e.consume(g), o === he.length ? b : D) : n(g);
6423
6414
  }
6424
6415
  function b(g) {
6425
6416
  return g === null ? n(g) : g === 93 ? (e.consume(g), C) : W(g) ? (a = b, V(g)) : (e.consume(g), b);
@@ -6428,34 +6419,34 @@ function lf(e, t, n) {
6428
6419
  return g === 93 ? (e.consume(g), x) : b(g);
6429
6420
  }
6430
6421
  function x(g) {
6431
- return g === 62 ? B(g) : g === 93 ? (e.consume(g), x) : b(g);
6422
+ return g === 62 ? U(g) : g === 93 ? (e.consume(g), x) : b(g);
6432
6423
  }
6433
6424
  function E(g) {
6434
- return g === null || g === 62 ? B(g) : W(g) ? (a = E, V(g)) : (e.consume(g), E);
6425
+ return g === null || g === 62 ? U(g) : W(g) ? (a = E, V(g)) : (e.consume(g), E);
6435
6426
  }
6436
6427
  function j(g) {
6437
- return g === null ? n(g) : g === 63 ? (e.consume(g), U) : W(g) ? (a = j, V(g)) : (e.consume(g), j);
6428
+ return g === null ? n(g) : g === 63 ? (e.consume(g), R) : W(g) ? (a = j, V(g)) : (e.consume(g), j);
6438
6429
  }
6439
- function U(g) {
6440
- return g === 62 ? B(g) : j(g);
6430
+ function R(g) {
6431
+ return g === 62 ? U(g) : j(g);
6441
6432
  }
6442
6433
  function H(g) {
6443
6434
  return Ge(g) ? (e.consume(g), M) : n(g);
6444
6435
  }
6445
6436
  function M(g) {
6446
- return g === 45 || Se(g) ? (e.consume(g), M) : L(g);
6437
+ return g === 45 || Ae(g) ? (e.consume(g), M) : L(g);
6447
6438
  }
6448
6439
  function L(g) {
6449
- return W(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : B(g);
6440
+ return W(g) ? (a = L, V(g)) : ie(g) ? (e.consume(g), L) : U(g);
6450
6441
  }
6451
6442
  function $(g) {
6452
- return g === 45 || Se(g) ? (e.consume(g), $) : g === 47 || g === 62 || ke(g) ? G(g) : n(g);
6443
+ return g === 45 || Ae(g) ? (e.consume(g), $) : g === 47 || g === 62 || Ne(g) ? G(g) : n(g);
6453
6444
  }
6454
6445
  function G(g) {
6455
- return g === 47 ? (e.consume(g), B) : g === 58 || g === 95 || Ge(g) ? (e.consume(g), X) : W(g) ? (a = G, V(g)) : ie(g) ? (e.consume(g), G) : B(g);
6446
+ return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 || Ge(g) ? (e.consume(g), X) : W(g) ? (a = G, V(g)) : ie(g) ? (e.consume(g), G) : U(g);
6456
6447
  }
6457
6448
  function X(g) {
6458
- return g === 45 || g === 46 || g === 58 || g === 95 || Se(g) ? (e.consume(g), X) : S(g);
6449
+ return g === 45 || g === 46 || g === 58 || g === 95 || Ae(g) ? (e.consume(g), X) : S(g);
6459
6450
  }
6460
6451
  function S(g) {
6461
6452
  return g === 61 ? (e.consume(g), w) : W(g) ? (a = S, V(g)) : ie(g) ? (e.consume(g), S) : G(g);
@@ -6467,19 +6458,19 @@ function lf(e, t, n) {
6467
6458
  return g === i ? (e.consume(g), i = void 0, _) : g === null ? n(g) : W(g) ? (a = k, V(g)) : (e.consume(g), k);
6468
6459
  }
6469
6460
  function z(g) {
6470
- return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || ke(g) ? G(g) : (e.consume(g), z);
6461
+ return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || Ne(g) ? G(g) : (e.consume(g), z);
6471
6462
  }
6472
6463
  function _(g) {
6473
- return g === 47 || g === 62 || ke(g) ? G(g) : n(g);
6464
+ return g === 47 || g === 62 || Ne(g) ? G(g) : n(g);
6474
6465
  }
6475
- function B(g) {
6466
+ function U(g) {
6476
6467
  return g === 62 ? (e.consume(g), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(g);
6477
6468
  }
6478
6469
  function V(g) {
6479
6470
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), q;
6480
6471
  }
6481
6472
  function q(g) {
6482
- return ie(g) ? ce(
6473
+ return ie(g) ? pe(
6483
6474
  e,
6484
6475
  K,
6485
6476
  "linePrefix",
@@ -6540,19 +6531,19 @@ function ff(e, t) {
6540
6531
  return l = [
6541
6532
  ["enter", s, t],
6542
6533
  ["enter", u, t]
6543
- ], l = _e(l, e.slice(o + 1, o + r + 3)), l = _e(l, [["enter", c, t]]), l = _e(
6534
+ ], l = Le(l, e.slice(o + 1, o + r + 3)), l = Le(l, [["enter", c, t]]), l = Le(
6544
6535
  l,
6545
6536
  Ur(
6546
6537
  t.parser.constructs.insideSpan.null,
6547
6538
  e.slice(o + r + 4, a - 3),
6548
6539
  t
6549
6540
  )
6550
- ), l = _e(l, [
6541
+ ), l = Le(l, [
6551
6542
  ["exit", c, t],
6552
6543
  e[a - 2],
6553
6544
  e[a - 1],
6554
6545
  ["exit", u, t]
6555
- ]), l = _e(l, e.slice(a + 1)), l = _e(l, [["exit", s, t]]), Ze(e, o, e.length, l), e;
6546
+ ]), l = Le(l, e.slice(a + 1)), l = Le(l, [["exit", s, t]]), Ze(e, o, e.length, l), e;
6556
6547
  }
6557
6548
  function df(e, t, n) {
6558
6549
  const r = this;
@@ -6604,7 +6595,7 @@ function hf(e, t, n) {
6604
6595
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
6605
6596
  }
6606
6597
  function i(p) {
6607
- return ke(p) ? Yt(e, o)(p) : o(p);
6598
+ return Ne(p) ? Yt(e, o)(p) : o(p);
6608
6599
  }
6609
6600
  function o(p) {
6610
6601
  return p === 41 ? c(p) : xa(
@@ -6620,7 +6611,7 @@ function hf(e, t, n) {
6620
6611
  )(p);
6621
6612
  }
6622
6613
  function a(p) {
6623
- return ke(p) ? Yt(e, s)(p) : c(p);
6614
+ return Ne(p) ? Yt(e, s)(p) : c(p);
6624
6615
  }
6625
6616
  function l(p) {
6626
6617
  return n(p);
@@ -6636,7 +6627,7 @@ function hf(e, t, n) {
6636
6627
  )(p) : c(p);
6637
6628
  }
6638
6629
  function u(p) {
6639
- return ke(p) ? Yt(e, c)(p) : c(p);
6630
+ return Ne(p) ? Yt(e, c)(p) : c(p);
6640
6631
  }
6641
6632
  function c(p) {
6642
6633
  return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
@@ -6716,7 +6707,7 @@ const ir = {
6716
6707
  function wf(e, t) {
6717
6708
  return n;
6718
6709
  function n(r) {
6719
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ce(e, t, "linePrefix");
6710
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), pe(e, t, "linePrefix");
6720
6711
  }
6721
6712
  }
6722
6713
  const fn = {
@@ -6736,10 +6727,10 @@ function vf(e, t, n) {
6736
6727
  return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || W(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
6737
6728
  }
6738
6729
  function s(u) {
6739
- return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), ie(u) ? ce(e, l, "whitespace")(u) : l(u));
6730
+ return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), ie(u) ? pe(e, l, "whitespace")(u) : l(u));
6740
6731
  }
6741
6732
  }
6742
- const Ne = {
6733
+ const De = {
6743
6734
  name: "list",
6744
6735
  tokenize: Df,
6745
6736
  continuation: {
@@ -6798,7 +6789,7 @@ function Nf(e, t, n) {
6798
6789
  const r = this;
6799
6790
  return r.containerState._closeFlow = void 0, e.check(In, i, o);
6800
6791
  function i(l) {
6801
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ce(
6792
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, pe(
6802
6793
  e,
6803
6794
  t,
6804
6795
  "listItemIndent",
@@ -6809,9 +6800,9 @@ function Nf(e, t, n) {
6809
6800
  return r.containerState.furtherBlankLines || !ie(l) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(l)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(If, t, a)(l));
6810
6801
  }
6811
6802
  function a(l) {
6812
- return r.containerState._closeFlow = !0, r.interrupt = void 0, ce(
6803
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, pe(
6813
6804
  e,
6814
- e.attempt(Ne, t, n),
6805
+ e.attempt(De, t, n),
6815
6806
  "linePrefix",
6816
6807
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
6817
6808
  )(l);
@@ -6819,7 +6810,7 @@ function Nf(e, t, n) {
6819
6810
  }
6820
6811
  function kf(e, t, n) {
6821
6812
  const r = this;
6822
- return ce(
6813
+ return pe(
6823
6814
  e,
6824
6815
  i,
6825
6816
  "listItemIndent",
@@ -6835,7 +6826,7 @@ function Ef(e) {
6835
6826
  }
6836
6827
  function jf(e, t, n) {
6837
6828
  const r = this;
6838
- return ce(
6829
+ return pe(
6839
6830
  e,
6840
6831
  i,
6841
6832
  "listItemPrefixWhitespace",
@@ -6886,7 +6877,7 @@ function Af(e, t, n) {
6886
6877
  return e.enter("setextHeadingLineSequence"), l(u);
6887
6878
  }
6888
6879
  function l(u) {
6889
- return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), ie(u) ? ce(e, s, "lineSuffix")(u) : s(u));
6880
+ return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), ie(u) ? pe(e, s, "lineSuffix")(u) : s(u));
6890
6881
  }
6891
6882
  function s(u) {
6892
6883
  return u === null || W(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
@@ -6904,7 +6895,7 @@ function Of(e) {
6904
6895
  e.attempt(
6905
6896
  this.parser.constructs.flowInitial,
6906
6897
  i,
6907
- ce(
6898
+ pe(
6908
6899
  e,
6909
6900
  e.attempt(
6910
6901
  this.parser.constructs.flow,
@@ -7042,7 +7033,7 @@ function Pf(e, t, n) {
7042
7033
  const s = {
7043
7034
  consume: E,
7044
7035
  enter: j,
7045
- exit: U,
7036
+ exit: R,
7046
7037
  attempt: L(H),
7047
7038
  check: L(M),
7048
7039
  interrupt: L(M, {
@@ -7063,7 +7054,7 @@ function Pf(e, t, n) {
7063
7054
  let c = t.tokenize.call(u, s);
7064
7055
  return t.resolveAll && o.push(t), u;
7065
7056
  function p(S) {
7066
- return a = _e(a, S), C(), a[a.length - 1] !== null ? [] : ($(t, 0), u.events = Ur(o, u.events, u), u.events);
7057
+ return a = Le(a, S), C(), a[a.length - 1] !== null ? [] : ($(t, 0), u.events = Ur(o, u.events, u), u.events);
7067
7058
  }
7068
7059
  function m(S, w) {
7069
7060
  return Uf(d(S), w);
@@ -7105,7 +7096,7 @@ function Pf(e, t, n) {
7105
7096
  const k = w || {};
7106
7097
  return k.type = S, k.start = D(), u.events.push(["enter", k, u]), l.push(k), k;
7107
7098
  }
7108
- function U(S) {
7099
+ function R(S) {
7109
7100
  const w = l.pop();
7110
7101
  return w.end = D(), u.events.push(["exit", w, u]), w;
7111
7102
  }
@@ -7117,46 +7108,46 @@ function Pf(e, t, n) {
7117
7108
  }
7118
7109
  function L(S, w) {
7119
7110
  return k;
7120
- function k(z, _, B) {
7111
+ function k(z, _, U) {
7121
7112
  let V, q, K, g;
7122
7113
  return Array.isArray(z) ? ye(z) : "tokenize" in z ? (
7123
7114
  // @ts-expect-error Looks like a construct.
7124
7115
  ye([z])
7125
- ) : de(z);
7126
- function de(ne) {
7127
- return we;
7128
- function we(ve) {
7129
- const Ye = ve !== null && ne[ve], Oe = ve !== null && ne.null, Xe = [
7116
+ ) : he(z);
7117
+ function he(re) {
7118
+ return xe;
7119
+ function xe(we) {
7120
+ const Qe = we !== null && re[we], Se = we !== null && re.null, Xe = [
7130
7121
  // To do: add more extension tests.
7131
7122
  /* c8 ignore next 2 */
7132
- ...Array.isArray(Ye) ? Ye : Ye ? [Ye] : [],
7133
- ...Array.isArray(Oe) ? Oe : Oe ? [Oe] : []
7123
+ ...Array.isArray(Qe) ? Qe : Qe ? [Qe] : [],
7124
+ ...Array.isArray(Se) ? Se : Se ? [Se] : []
7134
7125
  ];
7135
- return ye(Xe)(ve);
7126
+ return ye(Xe)(we);
7136
7127
  }
7137
7128
  }
7138
- function ye(ne) {
7139
- return V = ne, q = 0, ne.length === 0 ? B : h(ne[q]);
7129
+ function ye(re) {
7130
+ return V = re, q = 0, re.length === 0 ? U : h(re[q]);
7140
7131
  }
7141
- function h(ne) {
7142
- return we;
7143
- function we(ve) {
7144
- return g = G(), K = ne, ne.partial || (u.currentConstruct = ne), ne.name && u.parser.constructs.disable.null.includes(ne.name) ? Ee() : ne.tokenize.call(
7132
+ function h(re) {
7133
+ return xe;
7134
+ function xe(we) {
7135
+ return g = G(), K = re, re.partial || (u.currentConstruct = re), re.name && u.parser.constructs.disable.null.includes(re.name) ? ke() : re.tokenize.call(
7145
7136
  // If we do have fields, create an object w/ `context` as its
7146
7137
  // prototype.
7147
7138
  // This allows a “live binding”, which is needed for `interrupt`.
7148
7139
  w ? Object.assign(Object.create(u), w) : u,
7149
7140
  s,
7150
7141
  ge,
7151
- Ee
7152
- )(ve);
7142
+ ke
7143
+ )(we);
7153
7144
  }
7154
7145
  }
7155
- function ge(ne) {
7146
+ function ge(re) {
7156
7147
  return S(K, g), _;
7157
7148
  }
7158
- function Ee(ne) {
7159
- return g.restore(), ++q < V.length ? h(V[q]) : B;
7149
+ function ke(re) {
7150
+ return g.restore(), ++q < V.length ? h(V[q]) : U;
7160
7151
  }
7161
7152
  }
7162
7153
  }
@@ -7171,10 +7162,10 @@ function Pf(e, t, n) {
7171
7162
  function G() {
7172
7163
  const S = D(), w = u.previous, k = u.currentConstruct, z = u.events.length, _ = Array.from(l);
7173
7164
  return {
7174
- restore: B,
7165
+ restore: U,
7175
7166
  from: z
7176
7167
  };
7177
- function B() {
7168
+ function U() {
7178
7169
  r = S, u.previous = w, u.currentConstruct = k, u.events.length = z, l = _, X();
7179
7170
  }
7180
7171
  }
@@ -7239,19 +7230,19 @@ function Uf(e, t) {
7239
7230
  return r.join("");
7240
7231
  }
7241
7232
  const Bf = {
7242
- 42: Ne,
7243
- 43: Ne,
7244
- 45: Ne,
7245
- 48: Ne,
7246
- 49: Ne,
7247
- 50: Ne,
7248
- 51: Ne,
7249
- 52: Ne,
7250
- 53: Ne,
7251
- 54: Ne,
7252
- 55: Ne,
7253
- 56: Ne,
7254
- 57: Ne,
7233
+ 42: De,
7234
+ 43: De,
7235
+ 45: De,
7236
+ 48: De,
7237
+ 49: De,
7238
+ 50: De,
7239
+ 51: De,
7240
+ 52: De,
7241
+ 53: De,
7242
+ 54: De,
7243
+ 55: De,
7244
+ 56: De,
7245
+ 57: De,
7255
7246
  62: ma
7256
7247
  }, Qf = {
7257
7248
  91: Qp
@@ -7416,7 +7407,7 @@ function id(e) {
7416
7407
  transforms: [],
7417
7408
  canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
7418
7409
  enter: {
7419
- autolink: l(J),
7410
+ autolink: l(P),
7420
7411
  autolinkProtocol: S,
7421
7412
  autolinkEmail: S,
7422
7413
  atxHeading: l(Je),
@@ -7436,39 +7427,39 @@ function id(e) {
7436
7427
  definitionLabelString: s,
7437
7428
  definitionTitleString: s,
7438
7429
  emphasis: l(Et),
7439
- hardBreakEscape: l(yt),
7440
- hardBreakTrailing: l(yt),
7430
+ hardBreakEscape: l(gt),
7431
+ hardBreakTrailing: l(gt),
7441
7432
  htmlFlow: l(at, s),
7442
7433
  htmlFlowData: S,
7443
7434
  htmlText: l(at, s),
7444
7435
  htmlTextData: S,
7445
- image: l(P),
7436
+ image: l(mt),
7446
7437
  label: s,
7447
- link: l(J),
7448
- listItem: l(he),
7438
+ link: l(P),
7439
+ listItem: l(me),
7449
7440
  listItemValue: D,
7450
- listOrdered: l(me, d),
7451
- listUnordered: l(me),
7452
- paragraph: l(be),
7453
- reference: Ee,
7441
+ listOrdered: l(ee, d),
7442
+ listUnordered: l(ee),
7443
+ paragraph: l(le),
7444
+ reference: ke,
7454
7445
  referenceString: s,
7455
7446
  resourceDestinationString: s,
7456
7447
  resourceTitleString: s,
7457
7448
  setextHeading: l(Je),
7458
- strong: l(qe),
7459
- thematicBreak: l(st)
7449
+ strong: l(Ye),
7450
+ thematicBreak: l(yt)
7460
7451
  },
7461
7452
  exit: {
7462
7453
  atxHeading: c(),
7463
7454
  atxHeadingSequence: L,
7464
7455
  autolink: c(),
7465
- autolinkEmail: Oe,
7466
- autolinkProtocol: Ye,
7456
+ autolinkEmail: Se,
7457
+ autolinkProtocol: Qe,
7467
7458
  blockQuote: c(),
7468
7459
  characterEscapeValue: w,
7469
- characterReferenceMarkerHexadecimal: we,
7470
- characterReferenceMarkerNumeric: we,
7471
- characterReferenceValue: ve,
7460
+ characterReferenceMarkerHexadecimal: xe,
7461
+ characterReferenceMarkerNumeric: xe,
7462
+ characterReferenceValue: we,
7472
7463
  codeFenced: c(E),
7473
7464
  codeFencedFence: x,
7474
7465
  codeFencedFenceInfo: b,
@@ -7480,17 +7471,17 @@ function id(e) {
7480
7471
  data: w,
7481
7472
  definition: c(),
7482
7473
  definitionDestinationString: M,
7483
- definitionLabelString: U,
7474
+ definitionLabelString: R,
7484
7475
  definitionTitleString: H,
7485
7476
  emphasis: c(),
7486
7477
  hardBreakEscape: c(z),
7487
7478
  hardBreakTrailing: c(z),
7488
7479
  htmlFlow: c(_),
7489
7480
  htmlFlowData: w,
7490
- htmlText: c(B),
7481
+ htmlText: c(U),
7491
7482
  htmlTextData: w,
7492
7483
  image: c(K),
7493
- label: de,
7484
+ label: he,
7494
7485
  labelText: g,
7495
7486
  lineEnding: k,
7496
7487
  link: c(q),
@@ -7498,7 +7489,7 @@ function id(e) {
7498
7489
  listOrdered: c(),
7499
7490
  listUnordered: c(),
7500
7491
  paragraph: c(),
7501
- referenceString: ne,
7492
+ referenceString: re,
7502
7493
  resourceDestinationString: ye,
7503
7494
  resourceTitleString: h,
7504
7495
  resource: ge,
@@ -7517,7 +7508,7 @@ function id(e) {
7517
7508
  type: "root",
7518
7509
  children: []
7519
7510
  };
7520
- const R = {
7511
+ const Q = {
7521
7512
  stack: [O],
7522
7513
  tokenStack: [],
7523
7514
  config: t,
@@ -7527,31 +7518,31 @@ function id(e) {
7527
7518
  resume: m,
7528
7519
  setData: o,
7529
7520
  getData: a
7530
- }, re = [];
7521
+ }, J = [];
7531
7522
  let oe = -1;
7532
7523
  for (; ++oe < N.length; )
7533
7524
  if (N[oe][1].type === "listOrdered" || N[oe][1].type === "listUnordered")
7534
7525
  if (N[oe][0] === "enter")
7535
- re.push(oe);
7526
+ J.push(oe);
7536
7527
  else {
7537
- const De = re.pop();
7538
- oe = i(N, De, oe);
7528
+ const Ie = J.pop();
7529
+ oe = i(N, Ie, oe);
7539
7530
  }
7540
7531
  for (oe = -1; ++oe < N.length; ) {
7541
- const De = t[N[oe][0]];
7542
- Na.call(De, N[oe][1].type) && De[N[oe][1].type].call(
7532
+ const Ie = t[N[oe][0]];
7533
+ Na.call(Ie, N[oe][1].type) && Ie[N[oe][1].type].call(
7543
7534
  Object.assign(
7544
7535
  {
7545
7536
  sliceSerialize: N[oe][2].sliceSerialize
7546
7537
  },
7547
- R
7538
+ Q
7548
7539
  ),
7549
7540
  N[oe][1]
7550
7541
  );
7551
7542
  }
7552
- if (R.tokenStack.length > 0) {
7553
- const De = R.tokenStack[R.tokenStack.length - 1];
7554
- (De[1] || oo).call(R, void 0, De[0]);
7543
+ if (Q.tokenStack.length > 0) {
7544
+ const Ie = Q.tokenStack[Q.tokenStack.length - 1];
7545
+ (Ie[1] || oo).call(Q, void 0, Ie[0]);
7555
7546
  }
7556
7547
  for (O.position = {
7557
7548
  start: et(
@@ -7572,37 +7563,37 @@ function id(e) {
7572
7563
  O = t.transforms[oe](O) || O;
7573
7564
  return O;
7574
7565
  }
7575
- function i(N, O, R) {
7576
- let re = O - 1, oe = -1, De = !1, He, $e, ut, je;
7577
- for (; ++re <= R; ) {
7578
- const se = N[re];
7579
- if (se[1].type === "listUnordered" || se[1].type === "listOrdered" || se[1].type === "blockQuote" ? (se[0] === "enter" ? oe++ : oe--, je = void 0) : se[1].type === "lineEndingBlank" ? se[0] === "enter" && (He && !je && !oe && !ut && (ut = re), je = void 0) : se[1].type === "linePrefix" || se[1].type === "listItemValue" || se[1].type === "listItemMarker" || se[1].type === "listItemPrefix" || se[1].type === "listItemPrefixWhitespace" || (je = void 0), !oe && se[0] === "enter" && se[1].type === "listItemPrefix" || oe === -1 && se[0] === "exit" && (se[1].type === "listUnordered" || se[1].type === "listOrdered")) {
7566
+ function i(N, O, Q) {
7567
+ let J = O - 1, oe = -1, Ie = !1, He, $e, lt, Ee;
7568
+ for (; ++J <= Q; ) {
7569
+ const ue = N[J];
7570
+ if (ue[1].type === "listUnordered" || ue[1].type === "listOrdered" || ue[1].type === "blockQuote" ? (ue[0] === "enter" ? oe++ : oe--, Ee = void 0) : ue[1].type === "lineEndingBlank" ? ue[0] === "enter" && (He && !Ee && !oe && !lt && (lt = J), Ee = void 0) : ue[1].type === "linePrefix" || ue[1].type === "listItemValue" || ue[1].type === "listItemMarker" || ue[1].type === "listItemPrefix" || ue[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !oe && ue[0] === "enter" && ue[1].type === "listItemPrefix" || oe === -1 && ue[0] === "exit" && (ue[1].type === "listUnordered" || ue[1].type === "listOrdered")) {
7580
7571
  if (He) {
7581
- let jt = re;
7572
+ let jt = J;
7582
7573
  for ($e = void 0; jt--; ) {
7583
- const ze = N[jt];
7584
- if (ze[1].type === "lineEnding" || ze[1].type === "lineEndingBlank") {
7585
- if (ze[0] === "exit")
7574
+ const Oe = N[jt];
7575
+ if (Oe[1].type === "lineEnding" || Oe[1].type === "lineEndingBlank") {
7576
+ if (Oe[0] === "exit")
7586
7577
  continue;
7587
- $e && (N[$e][1].type = "lineEndingBlank", De = !0), ze[1].type = "lineEnding", $e = jt;
7588
- } else if (!(ze[1].type === "linePrefix" || ze[1].type === "blockQuotePrefix" || ze[1].type === "blockQuotePrefixWhitespace" || ze[1].type === "blockQuoteMarker" || ze[1].type === "listItemIndent"))
7578
+ $e && (N[$e][1].type = "lineEndingBlank", Ie = !0), Oe[1].type = "lineEnding", $e = jt;
7579
+ } else if (!(Oe[1].type === "linePrefix" || Oe[1].type === "blockQuotePrefix" || Oe[1].type === "blockQuotePrefixWhitespace" || Oe[1].type === "blockQuoteMarker" || Oe[1].type === "listItemIndent"))
7589
7580
  break;
7590
7581
  }
7591
- ut && (!$e || ut < $e) && (He._spread = !0), He.end = Object.assign(
7582
+ lt && (!$e || lt < $e) && (He._spread = !0), He.end = Object.assign(
7592
7583
  {},
7593
- $e ? N[$e][1].start : se[1].end
7594
- ), N.splice($e || re, 0, ["exit", He, se[2]]), re++, R++;
7584
+ $e ? N[$e][1].start : ue[1].end
7585
+ ), N.splice($e || J, 0, ["exit", He, ue[2]]), J++, Q++;
7595
7586
  }
7596
- se[1].type === "listItemPrefix" && (He = {
7587
+ ue[1].type === "listItemPrefix" && (He = {
7597
7588
  type: "listItem",
7598
7589
  _spread: !1,
7599
- start: Object.assign({}, se[1].start),
7590
+ start: Object.assign({}, ue[1].start),
7600
7591
  // @ts-expect-error: we’ll add `end` in a second.
7601
7592
  end: void 0
7602
- }, N.splice(re, 0, ["enter", He, se[2]]), re++, R++, ut = void 0, je = !0);
7593
+ }, N.splice(J, 0, ["enter", He, ue[2]]), J++, Q++, lt = void 0, Ee = !0);
7603
7594
  }
7604
7595
  }
7605
- return N[O][1]._spread = De, R;
7596
+ return N[O][1]._spread = Ie, Q;
7606
7597
  }
7607
7598
  function o(N, O) {
7608
7599
  n[N] = O;
@@ -7611,9 +7602,9 @@ function id(e) {
7611
7602
  return n[N];
7612
7603
  }
7613
7604
  function l(N, O) {
7614
- return R;
7615
- function R(re) {
7616
- u.call(this, N(re), re), O && O.call(this, re);
7605
+ return Q;
7606
+ function Q(J) {
7607
+ u.call(this, N(J), J), O && O.call(this, J);
7617
7608
  }
7618
7609
  }
7619
7610
  function s() {
@@ -7622,21 +7613,21 @@ function id(e) {
7622
7613
  children: []
7623
7614
  });
7624
7615
  }
7625
- function u(N, O, R) {
7626
- return this.stack[this.stack.length - 1].children.push(N), this.stack.push(N), this.tokenStack.push([O, R]), N.position = {
7616
+ function u(N, O, Q) {
7617
+ return this.stack[this.stack.length - 1].children.push(N), this.stack.push(N), this.tokenStack.push([O, Q]), N.position = {
7627
7618
  start: et(O.start)
7628
7619
  }, N;
7629
7620
  }
7630
7621
  function c(N) {
7631
7622
  return O;
7632
- function O(R) {
7633
- N && N.call(this, R), p.call(this, R);
7623
+ function O(Q) {
7624
+ N && N.call(this, Q), p.call(this, Q);
7634
7625
  }
7635
7626
  }
7636
7627
  function p(N, O) {
7637
- const R = this.stack.pop(), re = this.tokenStack.pop();
7638
- if (re)
7639
- re[0].type !== N.type && (O ? O.call(this, N, re[0]) : (re[1] || oo).call(this, N, re[0]));
7628
+ const Q = this.stack.pop(), J = this.tokenStack.pop();
7629
+ if (J)
7630
+ J[0].type !== N.type && (O ? O.call(this, N, J[0]) : (J[1] || oo).call(this, N, J[0]));
7640
7631
  else
7641
7632
  throw new Error(
7642
7633
  "Cannot close `" + N.type + "` (" + Qt({
@@ -7644,7 +7635,7 @@ function id(e) {
7644
7635
  end: N.end
7645
7636
  }) + "): it’s not open"
7646
7637
  );
7647
- return R.position.end = et(N.end), R;
7638
+ return Q.position.end = et(N.end), Q;
7648
7639
  }
7649
7640
  function m() {
7650
7641
  return tp(this.stack.pop());
@@ -7677,9 +7668,9 @@ function id(e) {
7677
7668
  const N = this.resume(), O = this.stack[this.stack.length - 1];
7678
7669
  O.value = N.replace(/(\r?\n|\r)$/g, "");
7679
7670
  }
7680
- function U(N) {
7681
- const O = this.resume(), R = this.stack[this.stack.length - 1];
7682
- R.label = O, R.identifier = xt(
7671
+ function R(N) {
7672
+ const O = this.resume(), Q = this.stack[this.stack.length - 1];
7673
+ Q.label = O, Q.identifier = xt(
7683
7674
  this.sliceSerialize(N)
7684
7675
  ).toLowerCase();
7685
7676
  }
@@ -7694,8 +7685,8 @@ function id(e) {
7694
7685
  function L(N) {
7695
7686
  const O = this.stack[this.stack.length - 1];
7696
7687
  if (!O.depth) {
7697
- const R = this.sliceSerialize(N).length;
7698
- O.depth = R;
7688
+ const Q = this.sliceSerialize(N).length;
7689
+ O.depth = Q;
7699
7690
  }
7700
7691
  }
7701
7692
  function $() {
@@ -7710,10 +7701,10 @@ function id(e) {
7710
7701
  }
7711
7702
  function S(N) {
7712
7703
  const O = this.stack[this.stack.length - 1];
7713
- let R = O.children[O.children.length - 1];
7714
- (!R || R.type !== "text") && (R = lt(), R.position = {
7704
+ let Q = O.children[O.children.length - 1];
7705
+ (!Q || Q.type !== "text") && (Q = qe(), Q.position = {
7715
7706
  start: et(N.start)
7716
- }, O.children.push(R)), this.stack.push(R);
7707
+ }, O.children.push(Q)), this.stack.push(Q);
7717
7708
  }
7718
7709
  function w(N) {
7719
7710
  const O = this.stack.pop();
@@ -7722,8 +7713,8 @@ function id(e) {
7722
7713
  function k(N) {
7723
7714
  const O = this.stack[this.stack.length - 1];
7724
7715
  if (a("atHardBreak")) {
7725
- const R = O.children[O.children.length - 1];
7726
- R.position.end = et(N.end), o("atHardBreak");
7716
+ const Q = O.children[O.children.length - 1];
7717
+ Q.position.end = et(N.end), o("atHardBreak");
7727
7718
  return;
7728
7719
  }
7729
7720
  !a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(O.type) && (S.call(this, N), w.call(this, N));
@@ -7735,7 +7726,7 @@ function id(e) {
7735
7726
  const N = this.resume(), O = this.stack[this.stack.length - 1];
7736
7727
  O.value = N;
7737
7728
  }
7738
- function B() {
7729
+ function U() {
7739
7730
  const N = this.resume(), O = this.stack[this.stack.length - 1];
7740
7731
  O.value = N;
7741
7732
  }
@@ -7762,16 +7753,16 @@ function id(e) {
7762
7753
  o("referenceType");
7763
7754
  }
7764
7755
  function g(N) {
7765
- const O = this.sliceSerialize(N), R = this.stack[this.stack.length - 2];
7766
- R.label = td(O), R.identifier = xt(O).toLowerCase();
7767
- }
7768
- function de() {
7769
- const N = this.stack[this.stack.length - 1], O = this.resume(), R = this.stack[this.stack.length - 1];
7770
- if (o("inReference", !0), R.type === "link") {
7771
- const re = N.children;
7772
- R.children = re;
7756
+ const O = this.sliceSerialize(N), Q = this.stack[this.stack.length - 2];
7757
+ Q.label = td(O), Q.identifier = xt(O).toLowerCase();
7758
+ }
7759
+ function he() {
7760
+ const N = this.stack[this.stack.length - 1], O = this.resume(), Q = this.stack[this.stack.length - 1];
7761
+ if (o("inReference", !0), Q.type === "link") {
7762
+ const J = N.children;
7763
+ Q.children = J;
7773
7764
  } else
7774
- R.alt = O;
7765
+ Q.alt = O;
7775
7766
  }
7776
7767
  function ye() {
7777
7768
  const N = this.resume(), O = this.stack[this.stack.length - 1];
@@ -7784,34 +7775,34 @@ function id(e) {
7784
7775
  function ge() {
7785
7776
  o("inReference");
7786
7777
  }
7787
- function Ee() {
7778
+ function ke() {
7788
7779
  o("referenceType", "collapsed");
7789
7780
  }
7790
- function ne(N) {
7791
- const O = this.resume(), R = this.stack[this.stack.length - 1];
7792
- R.label = O, R.identifier = xt(
7781
+ function re(N) {
7782
+ const O = this.resume(), Q = this.stack[this.stack.length - 1];
7783
+ Q.label = O, Q.identifier = xt(
7793
7784
  this.sliceSerialize(N)
7794
7785
  ).toLowerCase(), o("referenceType", "full");
7795
7786
  }
7796
- function we(N) {
7787
+ function xe(N) {
7797
7788
  o("characterReferenceType", N.type);
7798
7789
  }
7799
- function ve(N) {
7800
- const O = this.sliceSerialize(N), R = a("characterReferenceType");
7801
- let re;
7802
- R ? (re = Da(
7790
+ function we(N) {
7791
+ const O = this.sliceSerialize(N), Q = a("characterReferenceType");
7792
+ let J;
7793
+ Q ? (J = Da(
7803
7794
  O,
7804
- R === "characterReferenceMarkerNumeric" ? 10 : 16
7805
- ), o("characterReferenceType")) : re = Br(O);
7795
+ Q === "characterReferenceMarkerNumeric" ? 10 : 16
7796
+ ), o("characterReferenceType")) : J = Br(O);
7806
7797
  const oe = this.stack.pop();
7807
- oe.value += re, oe.position.end = et(N.end);
7798
+ oe.value += J, oe.position.end = et(N.end);
7808
7799
  }
7809
- function Ye(N) {
7800
+ function Qe(N) {
7810
7801
  w.call(this, N);
7811
7802
  const O = this.stack[this.stack.length - 1];
7812
7803
  O.url = this.sliceSerialize(N);
7813
7804
  }
7814
- function Oe(N) {
7805
+ function Se(N) {
7815
7806
  w.call(this, N);
7816
7807
  const O = this.stack[this.stack.length - 1];
7817
7808
  O.url = "mailto:" + this.sliceSerialize(N);
@@ -7858,7 +7849,7 @@ function id(e) {
7858
7849
  children: []
7859
7850
  };
7860
7851
  }
7861
- function yt() {
7852
+ function gt() {
7862
7853
  return {
7863
7854
  type: "break"
7864
7855
  };
@@ -7869,7 +7860,7 @@ function id(e) {
7869
7860
  value: ""
7870
7861
  };
7871
7862
  }
7872
- function P() {
7863
+ function mt() {
7873
7864
  return {
7874
7865
  type: "image",
7875
7866
  title: null,
@@ -7877,7 +7868,7 @@ function id(e) {
7877
7868
  alt: null
7878
7869
  };
7879
7870
  }
7880
- function J() {
7871
+ function P() {
7881
7872
  return {
7882
7873
  type: "link",
7883
7874
  title: null,
@@ -7885,7 +7876,7 @@ function id(e) {
7885
7876
  children: []
7886
7877
  };
7887
7878
  }
7888
- function me(N) {
7879
+ function ee(N) {
7889
7880
  return {
7890
7881
  type: "list",
7891
7882
  ordered: N.type === "listOrdered",
@@ -7894,7 +7885,7 @@ function id(e) {
7894
7885
  children: []
7895
7886
  };
7896
7887
  }
7897
- function he(N) {
7888
+ function me(N) {
7898
7889
  return {
7899
7890
  type: "listItem",
7900
7891
  spread: N._spread,
@@ -7902,25 +7893,25 @@ function id(e) {
7902
7893
  children: []
7903
7894
  };
7904
7895
  }
7905
- function be() {
7896
+ function le() {
7906
7897
  return {
7907
7898
  type: "paragraph",
7908
7899
  children: []
7909
7900
  };
7910
7901
  }
7911
- function qe() {
7902
+ function Ye() {
7912
7903
  return {
7913
7904
  type: "strong",
7914
7905
  children: []
7915
7906
  };
7916
7907
  }
7917
- function lt() {
7908
+ function qe() {
7918
7909
  return {
7919
7910
  type: "text",
7920
7911
  value: ""
7921
7912
  };
7922
7913
  }
7923
- function st() {
7914
+ function yt() {
7924
7915
  return {
7925
7916
  type: "thematicBreak"
7926
7917
  };
@@ -8040,7 +8031,7 @@ function It(e) {
8040
8031
  for (; ++n < e.length; ) {
8041
8032
  const o = e.charCodeAt(n);
8042
8033
  let a = "";
8043
- if (o === 37 && Se(e.charCodeAt(n + 1)) && Se(e.charCodeAt(n + 2)))
8034
+ if (o === 37 && Ae(e.charCodeAt(n + 1)) && Ae(e.charCodeAt(n + 2)))
8044
8035
  i = 2;
8045
8036
  else if (o < 128)
8046
8037
  /[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (a = String.fromCharCode(o));
@@ -8770,7 +8761,7 @@ function La(e, t) {
8770
8761
  function Ir(e) {
8771
8762
  return e.toLowerCase();
8772
8763
  }
8773
- class Be {
8764
+ class Ue {
8774
8765
  /**
8775
8766
  * @constructor
8776
8767
  * @param {string} property
@@ -8780,32 +8771,32 @@ class Be {
8780
8771
  this.property = t, this.attribute = n;
8781
8772
  }
8782
8773
  }
8783
- Be.prototype.space = null;
8784
- Be.prototype.boolean = !1;
8785
- Be.prototype.booleanish = !1;
8786
- Be.prototype.overloadedBoolean = !1;
8787
- Be.prototype.number = !1;
8788
- Be.prototype.commaSeparated = !1;
8789
- Be.prototype.spaceSeparated = !1;
8790
- Be.prototype.commaOrSpaceSeparated = !1;
8791
- Be.prototype.mustUseProperty = !1;
8792
- Be.prototype.defined = !1;
8774
+ Ue.prototype.space = null;
8775
+ Ue.prototype.boolean = !1;
8776
+ Ue.prototype.booleanish = !1;
8777
+ Ue.prototype.overloadedBoolean = !1;
8778
+ Ue.prototype.number = !1;
8779
+ Ue.prototype.commaSeparated = !1;
8780
+ Ue.prototype.spaceSeparated = !1;
8781
+ Ue.prototype.commaOrSpaceSeparated = !1;
8782
+ Ue.prototype.mustUseProperty = !1;
8783
+ Ue.prototype.defined = !1;
8793
8784
  let eh = 0;
8794
- const Z = mt(), Me = mt(), _a = mt(), A = mt(), ue = mt(), wt = mt(), Ae = mt();
8795
- function mt() {
8785
+ const Z = ht(), Me = ht(), _a = ht(), A = ht(), ce = ht(), wt = ht(), Ce = ht();
8786
+ function ht() {
8796
8787
  return 2 ** ++eh;
8797
8788
  }
8798
8789
  const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8799
8790
  __proto__: null,
8800
8791
  boolean: Z,
8801
8792
  booleanish: Me,
8802
- commaOrSpaceSeparated: Ae,
8793
+ commaOrSpaceSeparated: Ce,
8803
8794
  commaSeparated: wt,
8804
8795
  number: A,
8805
8796
  overloadedBoolean: _a,
8806
- spaceSeparated: ue
8797
+ spaceSeparated: ce
8807
8798
  }, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Dr);
8808
- class Vr extends Be {
8799
+ class Vr extends Ue {
8809
8800
  /**
8810
8801
  * @constructor
8811
8802
  * @param {string} property
@@ -8887,36 +8878,36 @@ const Ba = Dt({
8887
8878
  ariaColCount: A,
8888
8879
  ariaColIndex: A,
8889
8880
  ariaColSpan: A,
8890
- ariaControls: ue,
8881
+ ariaControls: ce,
8891
8882
  ariaCurrent: null,
8892
- ariaDescribedBy: ue,
8883
+ ariaDescribedBy: ce,
8893
8884
  ariaDetails: null,
8894
8885
  ariaDisabled: Me,
8895
- ariaDropEffect: ue,
8886
+ ariaDropEffect: ce,
8896
8887
  ariaErrorMessage: null,
8897
8888
  ariaExpanded: Me,
8898
- ariaFlowTo: ue,
8889
+ ariaFlowTo: ce,
8899
8890
  ariaGrabbed: Me,
8900
8891
  ariaHasPopup: null,
8901
8892
  ariaHidden: Me,
8902
8893
  ariaInvalid: null,
8903
8894
  ariaKeyShortcuts: null,
8904
8895
  ariaLabel: null,
8905
- ariaLabelledBy: ue,
8896
+ ariaLabelledBy: ce,
8906
8897
  ariaLevel: A,
8907
8898
  ariaLive: null,
8908
8899
  ariaModal: Me,
8909
8900
  ariaMultiLine: Me,
8910
8901
  ariaMultiSelectable: Me,
8911
8902
  ariaOrientation: null,
8912
- ariaOwns: ue,
8903
+ ariaOwns: ce,
8913
8904
  ariaPlaceholder: null,
8914
8905
  ariaPosInSet: A,
8915
8906
  ariaPressed: Me,
8916
8907
  ariaReadOnly: Me,
8917
8908
  ariaRelevant: null,
8918
8909
  ariaRequired: Me,
8919
- ariaRoleDescription: ue,
8910
+ ariaRoleDescription: ce,
8920
8911
  ariaRowCount: A,
8921
8912
  ariaRowIndex: A,
8922
8913
  ariaRowSpan: A,
@@ -8943,8 +8934,8 @@ const Ba = Dt({
8943
8934
  // Standard Properties.
8944
8935
  abbr: null,
8945
8936
  accept: wt,
8946
- acceptCharset: ue,
8947
- accessKey: ue,
8937
+ acceptCharset: ce,
8938
+ accessKey: ce,
8948
8939
  action: null,
8949
8940
  allow: null,
8950
8941
  allowFullScreen: Z,
@@ -8954,21 +8945,21 @@ const Ba = Dt({
8954
8945
  as: null,
8955
8946
  async: Z,
8956
8947
  autoCapitalize: null,
8957
- autoComplete: ue,
8948
+ autoComplete: ce,
8958
8949
  autoFocus: Z,
8959
8950
  autoPlay: Z,
8960
- blocking: ue,
8951
+ blocking: ce,
8961
8952
  capture: null,
8962
8953
  charSet: null,
8963
8954
  checked: Z,
8964
8955
  cite: null,
8965
- className: ue,
8956
+ className: ce,
8966
8957
  cols: A,
8967
8958
  colSpan: null,
8968
8959
  content: null,
8969
8960
  contentEditable: Me,
8970
8961
  controls: Z,
8971
- controlsList: ue,
8962
+ controlsList: ce,
8972
8963
  coords: A | wt,
8973
8964
  crossOrigin: null,
8974
8965
  data: null,
@@ -8990,14 +8981,14 @@ const Ba = Dt({
8990
8981
  formMethod: null,
8991
8982
  formNoValidate: Z,
8992
8983
  formTarget: null,
8993
- headers: ue,
8984
+ headers: ce,
8994
8985
  height: A,
8995
8986
  hidden: Z,
8996
8987
  high: A,
8997
8988
  href: null,
8998
8989
  hrefLang: null,
8999
- htmlFor: ue,
9000
- httpEquiv: ue,
8990
+ htmlFor: ce,
8991
+ httpEquiv: ce,
9001
8992
  id: null,
9002
8993
  imageSizes: null,
9003
8994
  imageSrcSet: null,
@@ -9007,10 +8998,10 @@ const Ba = Dt({
9007
8998
  is: null,
9008
8999
  isMap: Z,
9009
9000
  itemId: null,
9010
- itemProp: ue,
9011
- itemRef: ue,
9001
+ itemProp: ce,
9002
+ itemRef: ce,
9012
9003
  itemScope: Z,
9013
- itemType: ue,
9004
+ itemType: ce,
9014
9005
  kind: null,
9015
9006
  label: null,
9016
9007
  lang: null,
@@ -9123,7 +9114,7 @@ const Ba = Dt({
9123
9114
  open: Z,
9124
9115
  optimum: A,
9125
9116
  pattern: null,
9126
- ping: ue,
9117
+ ping: ce,
9127
9118
  placeholder: null,
9128
9119
  playsInline: Z,
9129
9120
  popover: null,
@@ -9133,12 +9124,12 @@ const Ba = Dt({
9133
9124
  preload: null,
9134
9125
  readOnly: Z,
9135
9126
  referrerPolicy: null,
9136
- rel: ue,
9127
+ rel: ce,
9137
9128
  required: Z,
9138
9129
  reversed: Z,
9139
9130
  rows: A,
9140
9131
  rowSpan: A,
9141
- sandbox: ue,
9132
+ sandbox: ce,
9142
9133
  scope: null,
9143
9134
  scoped: Z,
9144
9135
  seamless: Z,
@@ -9174,7 +9165,7 @@ const Ba = Dt({
9174
9165
  // Several. Use CSS `text-align` instead,
9175
9166
  aLink: null,
9176
9167
  // `<body>`. Use CSS `a:active {color}` instead
9177
- archive: ue,
9168
+ archive: ce,
9178
9169
  // `<object>`. List of URIs to archives
9179
9170
  axis: null,
9180
9171
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -9467,7 +9458,7 @@ const Ba = Dt({
9467
9458
  },
9468
9459
  transform: Ra,
9469
9460
  properties: {
9470
- about: Ae,
9461
+ about: Ce,
9471
9462
  accentHeight: A,
9472
9463
  accumulate: null,
9473
9464
  additive: null,
@@ -9489,7 +9480,7 @@ const Ba = Dt({
9489
9480
  by: null,
9490
9481
  calcMode: null,
9491
9482
  capHeight: A,
9492
- className: ue,
9483
+ className: ce,
9493
9484
  clip: null,
9494
9485
  clipPath: null,
9495
9486
  clipPathUnits: null,
@@ -9579,7 +9570,7 @@ const Ba = Dt({
9579
9570
  k2: A,
9580
9571
  k3: A,
9581
9572
  k4: A,
9582
- kernelMatrix: Ae,
9573
+ kernelMatrix: Ce,
9583
9574
  kernelUnitLength: null,
9584
9575
  keyPoints: null,
9585
9576
  // SEMI_COLON_SEPARATED
@@ -9724,7 +9715,7 @@ const Ba = Dt({
9724
9715
  patternTransform: null,
9725
9716
  patternUnits: null,
9726
9717
  phase: null,
9727
- ping: ue,
9718
+ ping: ce,
9728
9719
  pitch: null,
9729
9720
  playbackOrder: null,
9730
9721
  pointerEvents: null,
@@ -9736,21 +9727,21 @@ const Ba = Dt({
9736
9727
  preserveAspectRatio: null,
9737
9728
  primitiveUnits: null,
9738
9729
  propagate: null,
9739
- property: Ae,
9730
+ property: Ce,
9740
9731
  r: null,
9741
9732
  radius: null,
9742
9733
  referrerPolicy: null,
9743
9734
  refX: null,
9744
9735
  refY: null,
9745
- rel: Ae,
9746
- rev: Ae,
9736
+ rel: Ce,
9737
+ rev: Ce,
9747
9738
  renderingIntent: null,
9748
9739
  repeatCount: null,
9749
9740
  repeatDur: null,
9750
- requiredExtensions: Ae,
9751
- requiredFeatures: Ae,
9752
- requiredFonts: Ae,
9753
- requiredFormats: Ae,
9741
+ requiredExtensions: Ce,
9742
+ requiredFeatures: Ce,
9743
+ requiredFonts: Ce,
9744
+ requiredFormats: Ce,
9754
9745
  resource: null,
9755
9746
  restart: null,
9756
9747
  result: null,
@@ -9778,7 +9769,7 @@ const Ba = Dt({
9778
9769
  strikethroughThickness: A,
9779
9770
  string: null,
9780
9771
  stroke: null,
9781
- strokeDashArray: Ae,
9772
+ strokeDashArray: Ce,
9782
9773
  strokeDashOffset: null,
9783
9774
  strokeLineCap: null,
9784
9775
  strokeLineJoin: null,
@@ -9792,7 +9783,7 @@ const Ba = Dt({
9792
9783
  syncMaster: null,
9793
9784
  syncTolerance: null,
9794
9785
  syncToleranceDefault: null,
9795
- systemLanguage: Ae,
9786
+ systemLanguage: Ce,
9796
9787
  tabIndex: A,
9797
9788
  tableValues: null,
9798
9789
  target: null,
@@ -9806,7 +9797,7 @@ const Ba = Dt({
9806
9797
  title: null,
9807
9798
  transformBehavior: null,
9808
9799
  type: null,
9809
- typeOf: Ae,
9800
+ typeOf: Ce,
9810
9801
  to: null,
9811
9802
  transform: null,
9812
9803
  transformOrigin: null,
@@ -9850,7 +9841,7 @@ const Ba = Dt({
9850
9841
  }), ih = /^data[-\w.:]+$/i, ho = /-[a-z]/g, oh = /[A-Z]/g;
9851
9842
  function ah(e, t) {
9852
9843
  const n = Ir(t);
9853
- let r = t, i = Be;
9844
+ let r = t, i = Ue;
9854
9845
  if (n in e.normal)
9855
9846
  return e.property[e.normal[n]];
9856
9847
  if (n.length > 4 && n.slice(0, 4) === "data" && ih.test(t)) {
@@ -9923,7 +9914,7 @@ var Ya = { exports: {} }, ae = {};
9923
9914
  */
9924
9915
  var Gr = Symbol.for("react.element"), Wr = Symbol.for("react.portal"), Nn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), En = Symbol.for("react.profiler"), jn = Symbol.for("react.provider"), Cn = Symbol.for("react.context"), fh = Symbol.for("react.server_context"), An = Symbol.for("react.forward_ref"), Sn = Symbol.for("react.suspense"), On = Symbol.for("react.suspense_list"), zn = Symbol.for("react.memo"), Ln = Symbol.for("react.lazy"), dh = Symbol.for("react.offscreen"), Ha;
9925
9916
  Ha = Symbol.for("react.module.reference");
9926
- function Qe(e) {
9917
+ function Be(e) {
9927
9918
  if (typeof e == "object" && e !== null) {
9928
9919
  var t = e.$$typeof;
9929
9920
  switch (t) {
@@ -9972,45 +9963,45 @@ ae.isConcurrentMode = function() {
9972
9963
  return !1;
9973
9964
  };
9974
9965
  ae.isContextConsumer = function(e) {
9975
- return Qe(e) === Cn;
9966
+ return Be(e) === Cn;
9976
9967
  };
9977
9968
  ae.isContextProvider = function(e) {
9978
- return Qe(e) === jn;
9969
+ return Be(e) === jn;
9979
9970
  };
9980
9971
  ae.isElement = function(e) {
9981
9972
  return typeof e == "object" && e !== null && e.$$typeof === Gr;
9982
9973
  };
9983
9974
  ae.isForwardRef = function(e) {
9984
- return Qe(e) === An;
9975
+ return Be(e) === An;
9985
9976
  };
9986
9977
  ae.isFragment = function(e) {
9987
- return Qe(e) === Nn;
9978
+ return Be(e) === Nn;
9988
9979
  };
9989
9980
  ae.isLazy = function(e) {
9990
- return Qe(e) === Ln;
9981
+ return Be(e) === Ln;
9991
9982
  };
9992
9983
  ae.isMemo = function(e) {
9993
- return Qe(e) === zn;
9984
+ return Be(e) === zn;
9994
9985
  };
9995
9986
  ae.isPortal = function(e) {
9996
- return Qe(e) === Wr;
9987
+ return Be(e) === Wr;
9997
9988
  };
9998
9989
  ae.isProfiler = function(e) {
9999
- return Qe(e) === En;
9990
+ return Be(e) === En;
10000
9991
  };
10001
9992
  ae.isStrictMode = function(e) {
10002
- return Qe(e) === kn;
9993
+ return Be(e) === kn;
10003
9994
  };
10004
9995
  ae.isSuspense = function(e) {
10005
- return Qe(e) === Sn;
9996
+ return Be(e) === Sn;
10006
9997
  };
10007
9998
  ae.isSuspenseList = function(e) {
10008
- return Qe(e) === On;
9999
+ return Be(e) === On;
10009
10000
  };
10010
10001
  ae.isValidElementType = function(e) {
10011
10002
  return typeof e == "string" || typeof e == "function" || e === Nn || e === En || e === kn || e === Sn || e === On || e === dh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === jn || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === Ha || e.getModuleId !== void 0);
10012
10003
  };
10013
- ae.typeOf = Qe;
10004
+ ae.typeOf = Be;
10014
10005
  Ya.exports = ae;
10015
10006
  var hh = Ya.exports;
10016
10007
  const gh = /* @__PURE__ */ nt(hh);
@@ -10034,7 +10025,7 @@ function Mh(e, t) {
10034
10025
  ).trim();
10035
10026
  }
10036
10027
  var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Th = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ih = /^[;\s]*/, Dh = /^\s+|\s+$/g, Nh = `
10037
- `, yo = "/", Mo = "*", dt = "", kh = "comment", Eh = "declaration", jh = function(e, t) {
10028
+ `, yo = "/", Mo = "*", pt = "", kh = "comment", Eh = "declaration", jh = function(e, t) {
10038
10029
  if (typeof e != "string")
10039
10030
  throw new TypeError("First argument must be a string");
10040
10031
  if (!e)
@@ -10083,9 +10074,9 @@ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh
10083
10074
  function p() {
10084
10075
  var D = o();
10085
10076
  if (!(yo != e.charAt(0) || Mo != e.charAt(1))) {
10086
- for (var b = 2; dt != e.charAt(b) && (Mo != e.charAt(b) || yo != e.charAt(b + 1)); )
10077
+ for (var b = 2; pt != e.charAt(b) && (Mo != e.charAt(b) || yo != e.charAt(b + 1)); )
10087
10078
  ++b;
10088
- if (b += 2, dt === e.charAt(b - 1))
10079
+ if (b += 2, pt === e.charAt(b - 1))
10089
10080
  return l("End of comment missing");
10090
10081
  var C = e.slice(2, b - 2);
10091
10082
  return r += 2, i(C), e = e.slice(b), r += 2, D({
@@ -10101,8 +10092,8 @@ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh
10101
10092
  return l("property missing ':'");
10102
10093
  var C = s(Th), x = D({
10103
10094
  type: Eh,
10104
- property: bo(b[0].replace(mo, dt)),
10105
- value: C ? bo(C[0].replace(mo, dt)) : dt
10095
+ property: bo(b[0].replace(mo, pt)),
10096
+ value: C ? bo(C[0].replace(mo, pt)) : pt
10106
10097
  });
10107
10098
  return s(Ih), x;
10108
10099
  }
@@ -10117,7 +10108,7 @@ var Zr = { exports: {} }, mo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, bh = /\n/g, xh
10117
10108
  return u(), d();
10118
10109
  };
10119
10110
  function bo(e) {
10120
- return e ? e.replace(Dh, dt) : dt;
10111
+ return e ? e.replace(Dh, pt) : pt;
10121
10112
  }
10122
10113
  var Ch = jh;
10123
10114
  function $a(e, t) {
@@ -10151,7 +10142,7 @@ function zh(e, t, n, r) {
10151
10142
  const m = t.position || {
10152
10143
  start: { line: null, column: null, offset: null },
10153
10144
  end: { line: null, column: null, offset: null }
10154
- }, d = i.components && Nr.call(i.components, l) ? i.components[l] : l, D = typeof d == "string" || d === Te.Fragment;
10145
+ }, d = i.components && Nr.call(i.components, l) ? i.components[l] : l, D = typeof d == "string" || d === ve.Fragment;
10155
10146
  if (!gh.isValidElementType(d))
10156
10147
  throw new TypeError(
10157
10148
  `Component for name \`${l}\` not defined or is not renderable`
@@ -10172,7 +10163,7 @@ function zh(e, t, n, r) {
10172
10163
  const b = Lh(t);
10173
10164
  s.checked = b && b.properties ? !!b.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
10174
10165
  }
10175
- return !D && (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), D || (s.isHeader = l === "th")), !D && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Rh(m)), !D && i.rawSourcePos && (s.sourcePosition = t.position), !D && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), D || (s.node = t), p.length > 0 ? Te.createElement(d, s, p) : Te.createElement(d, s);
10166
+ return !D && (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), D || (s.isHeader = l === "th")), !D && l === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Rh(m)), !D && i.rawSourcePos && (s.sourcePosition = t.position), !D && i.includeElementIndex && (s.index = ar(r, t), s.siblingCount = ar(r)), D || (s.node = t), p.length > 0 ? ve.createElement(d, s, p) : ve.createElement(d, s);
10176
10167
  }
10177
10168
  function Lh(e) {
10178
10169
  let t = -1;
@@ -10262,12 +10253,12 @@ function Va(e) {
10262
10253
  const r = t.runSync(t.parse(n), n);
10263
10254
  if (r.type !== "root")
10264
10255
  throw new TypeError("Expected a `root` node");
10265
- let i = Te.createElement(
10266
- Te.Fragment,
10256
+ let i = ve.createElement(
10257
+ ve.Fragment,
10267
10258
  {},
10268
10259
  qa({ options: e, schema: uh, listDepth: 0 }, r)
10269
10260
  );
10270
- return e.className && (i = Te.createElement("div", { className: e.className }, i)), i;
10261
+ return e.className && (i = ve.createElement("div", { className: e.className }, i)), i;
10271
10262
  }
10272
10263
  Va.propTypes = {
10273
10264
  // Core options:
@@ -10397,23 +10388,23 @@ function _n({
10397
10388
  text: a,
10398
10389
  userTrackingName: l
10399
10390
  }) {
10400
- const [s, u] = xe(!0), { primaryColor: c, xpertKey: p, userTracking: m, conversationScreen: d } = Pe(Re), D = Ht(
10391
+ const [s, u] = be(!0), { primaryColor: c, xpertKey: p, userTracking: m, conversationScreen: d } = Fe(Pe), D = Ht(
10401
10392
  (x) => {
10402
- var E, j, U, H;
10403
- ((E = x == null ? void 0 : x.data) == null ? void 0 : E.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (j = window == null ? void 0 : window.OnetrustActiveGroups) != null && j.includes("C0003")) && Fe.set(`${p}-live-chat-open`, 1, {
10393
+ var E, j, R, H;
10394
+ ((E = x == null ? void 0 : x.data) == null ? void 0 : E.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (j = window == null ? void 0 : window.OnetrustActiveGroups) != null && j.includes("C0003")) && _e.set(`${p}-live-chat-open`, 1, {
10404
10395
  expires: 1,
10405
10396
  path: "/"
10406
- }), ((U = x == null ? void 0 : x.data) == null ? void 0 : U.type) === "connection" && ((H = x == null ? void 0 : x.data) == null ? void 0 : H.state) === "disconnected" && Fe.remove(`${p}-live-chat-open`);
10397
+ }), ((R = x == null ? void 0 : x.data) == null ? void 0 : R.type) === "connection" && ((H = x == null ? void 0 : x.data) == null ? void 0 : H.state) === "disconnected" && _e.remove(`${p}-live-chat-open`);
10407
10398
  },
10408
10399
  [p]
10409
10400
  ), b = Ht(
10410
10401
  (x) => {
10411
- var E, j, U;
10412
- ((E = x == null ? void 0 : x.data) == null ? void 0 : E.type) === "unhide" && ((j = x == null ? void 0 : x.data) == null ? void 0 : j.reason) === "pop-out" && t(!0), ((U = x == null ? void 0 : x.data) == null ? void 0 : U.type) === "open" && t(!0);
10402
+ var E, j, R;
10403
+ ((E = x == null ? void 0 : x.data) == null ? void 0 : E.type) === "unhide" && ((j = x == null ? void 0 : x.data) == null ? void 0 : j.reason) === "pop-out" && t(!0), ((R = x == null ? void 0 : x.data) == null ? void 0 : R.type) === "open" && t(!0);
10413
10404
  },
10414
10405
  [t]
10415
10406
  );
10416
- Ie(() => {
10407
+ Te(() => {
10417
10408
  let x, E;
10418
10409
  return d.liveChat.enabled && (window.Five9ChatPlugin || (x = document.createElement("script"), x.type = "text/javascript", x.src = d.liveChat.sourceCode, x.async = !0, x.onload = () => {
10419
10410
  window.Five9ChatPlugin(d.liveChat.options);
@@ -10585,8 +10576,8 @@ Fn.defaultProps = {
10585
10576
  };
10586
10577
  Fn.displayName = "AssistantMessageBubble";
10587
10578
  const $h = Fn, Wa = () => {
10588
- const { disclaimer: e } = Pe(Re), t = We(null);
10589
- return Ie(() => {
10579
+ const { disclaimer: e } = Fe(Pe), t = We(null);
10580
+ return Te(() => {
10590
10581
  var n;
10591
10582
  (n = t == null ? void 0 : t.current) == null || n.focus();
10592
10583
  }, []), /* @__PURE__ */ T.jsxs(
@@ -10619,7 +10610,7 @@ const $h = Fn, Wa = () => {
10619
10610
  Wa.displayName = "ConversationScreenDisclaimer";
10620
10611
  const qh = Wa, Kr = ({ loading: e, onPromptClick: t }) => {
10621
10612
  var i;
10622
- const { primaryColor: n, conversationScreen: r } = Pe(Re);
10613
+ const { primaryColor: n, conversationScreen: r } = Fe(Pe);
10623
10614
  return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
10624
10615
  /* @__PURE__ */ T.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
10625
10616
  (i = r.prompts) == null ? void 0 : i.map((o) => {
@@ -10664,7 +10655,7 @@ Xr.propTypes = {
10664
10655
  Xr.displayName = "SystemMessageBubble";
10665
10656
  const Gh = Xr, Jr = ({ content: e, isNormalSize: t }) => {
10666
10657
  var i;
10667
- const { primaryColor: n, conversationScreen: r } = Pe(Re);
10658
+ const { primaryColor: n, conversationScreen: r } = Fe(Pe);
10668
10659
  return /* @__PURE__ */ T.jsx(
10669
10660
  "div",
10670
10661
  {
@@ -10695,8 +10686,8 @@ const Wh = Jr, Pn = ({
10695
10686
  setLiveChatOpen: l,
10696
10687
  isTestUser: s
10697
10688
  }) => {
10698
- const { conversationScreen: u } = Pe(Re), { prompts: c, systemMessage: p } = u, m = We(null);
10699
- return Ie(() => {
10689
+ const { conversationScreen: u } = Fe(Pe), { prompts: c, systemMessage: p } = u, m = We(null);
10690
+ return Te(() => {
10700
10691
  var d;
10701
10692
  (d = m.current) == null || d.scrollIntoView({
10702
10693
  behavior: "instant",
@@ -10780,7 +10771,7 @@ Pn.displayName = "ConversationsMessages";
10780
10771
  const Zh = Pn;
10781
10772
  function Za({ disableScroll: e }) {
10782
10773
  const t = We(null);
10783
- return Ie(() => {
10774
+ return Te(() => {
10784
10775
  var n;
10785
10776
  e || (n = t.current) == null || n.scrollIntoView({
10786
10777
  behavior: "smooth",
@@ -10806,7 +10797,7 @@ Za.propTypes = {
10806
10797
  };
10807
10798
  const Kh = () => {
10808
10799
  const e = We(null);
10809
- return Ie(() => {
10800
+ return Te(() => {
10810
10801
  var t;
10811
10802
  (t = e.current) == null || t.scrollIntoView({
10812
10803
  behavior: "instant"
@@ -10869,8 +10860,8 @@ const Kh = () => {
10869
10860
  );
10870
10861
  }, lr = Kh;
10871
10862
  function Xh(e) {
10872
- const [t, n] = xe(null);
10873
- return Ie(() => {
10863
+ const [t, n] = be(null);
10864
+ return Te(() => {
10874
10865
  console.log("Chatbot - optimizely mount");
10875
10866
  try {
10876
10867
  (() => {
@@ -10900,7 +10891,7 @@ function Xh(e) {
10900
10891
  ), t;
10901
10892
  }
10902
10893
  function Jh(e) {
10903
- Ie(() => {
10894
+ Te(() => {
10904
10895
  e();
10905
10896
  const t = () => document.visibilityState === "visible" && e();
10906
10897
  return document.addEventListener("visibilitychange", t), () => {
@@ -10924,7 +10915,7 @@ function ng(e) {
10924
10915
  }
10925
10916
  const rg = 991, ig = [];
10926
10917
  function ei({ submitEventExternal: e }) {
10927
- var at;
10918
+ var at, mt;
10928
10919
  const {
10929
10920
  xpertKey: t,
10930
10921
  chatApi: n,
@@ -10933,9 +10924,9 @@ function ei({ submitEventExternal: e }) {
10933
10924
  proactiveMessage: o,
10934
10925
  launchButton: a,
10935
10926
  conversationScreen: l
10936
- } = Pe(Re), s = rt(rg), [, u] = xe(!1), [, c] = xe(!1), [p, m] = xe(ig), [d, D] = xe(!1), [b, C] = xe(!1), [x, E] = xe(!1), [j, U] = xe(""), [H, M] = xe(!1), [L, $] = xe(!0), [G, X] = xe(!1), [S, w] = xe(!1), [k, z] = xe(!1), _ = We(null), B = We(null), V = We(null), q = Fe.get(`${t}-test`) === "1", K = Ht(
10937
- ({ name: P, payload: J }) => {
10938
- const me = Eo(r == null ? void 0 : r.payloadParams, J);
10927
+ } = Fe(Pe), s = rt(rg), [, u] = be(!1), [, c] = be(!1), [p, m] = be(ig), [d, D] = be(!1), [b, C] = be(!1), [x, E] = be(!1), [j, R] = be(""), [H, M] = be(!1), [L, $] = be(!0), [G, X] = be(!1), [S, w] = be(!1), [k, z] = be(!1), _ = We(null), U = We(null), V = We(null), q = _e.get(`${t}-test`) === "1", K = Ht(
10928
+ ({ name: P, payload: ee }) => {
10929
+ const me = Eo(r == null ? void 0 : r.payloadParams, ee);
10939
10930
  e ? e({ name: P, payload: me }) : V.current.track(
10940
10931
  // TODO: this is untestable - create a custom hook to get submit event function.
10941
10932
  P,
@@ -10946,13 +10937,13 @@ function ei({ submitEventExternal: e }) {
10946
10937
  ), g = Ht(async () => {
10947
10938
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
10948
10939
  try {
10949
- const P = Fe.get(
10940
+ const P = _e.get(
10950
10941
  `${t}-conversation-history-id`
10951
10942
  );
10952
10943
  if (!P)
10953
10944
  return;
10954
10945
  D(!0);
10955
- const J = await fetch(
10946
+ const ee = await fetch(
10956
10947
  `${n.endpoint}/xpert-chat/${P}`,
10957
10948
  {
10958
10949
  method: "GET",
@@ -10961,16 +10952,16 @@ function ei({ submitEventExternal: e }) {
10961
10952
  }
10962
10953
  }
10963
10954
  );
10964
- if (J.status === 404) {
10965
- Fe.remove(`${t}-conversation-history-id`);
10955
+ if (ee.status === 404) {
10956
+ _e.remove(`${t}-conversation-history-id`);
10966
10957
  return;
10967
10958
  }
10968
- if (!J.ok)
10969
- throw new lr(`HTTPError: ${J.status} ${J.statusText}`);
10970
- const me = await J.json();
10959
+ if (!ee.ok)
10960
+ throw new lr(`HTTPError: ${ee.status} ${ee.statusText}`);
10961
+ const me = await ee.json();
10971
10962
  m(
10972
- me.map((he) => ({
10973
- ...he,
10963
+ me.map((le) => ({
10964
+ ...le,
10974
10965
  disableFeedback: !0
10975
10966
  }))
10976
10967
  ), w(!0), z(!0);
@@ -10980,31 +10971,31 @@ function ei({ submitEventExternal: e }) {
10980
10971
  D(!1);
10981
10972
  }
10982
10973
  }, [t, n.endpoint]);
10983
- Jh(g), Ie(() => {
10974
+ Jh(g), Te(() => {
10984
10975
  console.log("Chatbot - Find Segment mount");
10985
- let P, J;
10976
+ let P, ee;
10986
10977
  return r.enabled && (P = setInterval(() => {
10987
- var he;
10988
- console.log("Chatbot - Finding Segment"), (he = window.analytics) != null && he.track && (console.log("Chatbot - Segment found"), V.current = window.analytics, clearInterval(P), clearTimeout(J), u(!0));
10989
- }, 1e3), J = setTimeout(() => {
10978
+ var le;
10979
+ console.log("Chatbot - Finding Segment"), (le = window.analytics) != null && le.track && (console.log("Chatbot - Segment found"), V.current = window.analytics, clearInterval(P), clearTimeout(ee), u(!0));
10980
+ }, 1e3), ee = setTimeout(() => {
10990
10981
  clearInterval(P);
10991
10982
  }, 6e4)), () => {
10992
- console.log("Chatbot - Find Segment unmount"), clearInterval(P), clearTimeout(J);
10983
+ console.log("Chatbot - Find Segment unmount"), clearInterval(P), clearTimeout(ee);
10993
10984
  };
10994
- }, [r.enabled, r.prefix]), Ie(() => {
10985
+ }, [r.enabled, r.prefix]), Te(() => {
10995
10986
  console.log("Chatbot - Find Optimizely mount");
10996
- let P, J;
10987
+ let P, ee;
10997
10988
  return P = setInterval(() => {
10998
- i.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(P), clearTimeout(J), c(!0)));
10999
- }, 1e3), J = setTimeout(() => {
10989
+ i.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(P), clearTimeout(ee), c(!0)));
10990
+ }, 1e3), ee = setTimeout(() => {
11000
10991
  clearInterval(P);
11001
10992
  }, 6e4), () => {
11002
- console.log("Chatbot - Find Optimizely unmount"), clearInterval(P), clearTimeout(J);
10993
+ console.log("Chatbot - Find Optimizely unmount"), clearInterval(P), clearTimeout(ee);
11003
10994
  };
11004
10995
  }, [i.enabled, i.experimentName]);
11005
- const de = (P) => {
11006
- var J, me;
11007
- (J = P == null ? void 0 : P.target) != null && J.href && K({
10996
+ const he = (P) => {
10997
+ var ee, me;
10998
+ (ee = P == null ? void 0 : P.target) != null && ee.href && K({
11008
10999
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
11009
11000
  payload: {
11010
11001
  category: "2u",
@@ -11026,8 +11017,8 @@ function ei({ submitEventExternal: e }) {
11026
11017
  `Chatbot - All things setup: ${t}, ${typeof window.analytics}, ${ye}, ${typeof window.optimizely}, ${typeof window.experiments}`
11027
11018
  );
11028
11019
  const h = () => {
11029
- U(""), B.current.value = "", B.current.style.height = "auto";
11030
- }, ge = (P, J) => {
11020
+ R(""), U.current.value = "", U.current.style.height = "auto";
11021
+ }, ge = (P, ee) => {
11031
11022
  K({
11032
11023
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
11033
11024
  payload: {
@@ -11036,15 +11027,15 @@ function ei({ submitEventExternal: e }) {
11036
11027
  linkCount: tg(P),
11037
11028
  apiResponseMessage: P,
11038
11029
  isTestUser: q,
11039
- conversationHistoryId: J
11030
+ conversationHistoryId: ee
11040
11031
  }
11041
11032
  });
11042
- }, Ee = ({
11033
+ }, ke = ({
11043
11034
  conversationSize: P,
11044
- userInputMessage: J,
11035
+ userInputMessage: ee,
11045
11036
  apiResponseMessage: me,
11046
- elapsedSeconds: he,
11047
- conversationByteSize: be
11037
+ elapsedSeconds: le,
11038
+ conversationByteSize: Ye
11048
11039
  }) => {
11049
11040
  K({
11050
11041
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
@@ -11053,19 +11044,19 @@ function ei({ submitEventExternal: e }) {
11053
11044
  label: "xpert-chatbot",
11054
11045
  isTestUser: q,
11055
11046
  conversationSize: P,
11056
- userInputMessage: J,
11047
+ userInputMessage: ee,
11057
11048
  apiResponseMessage: me,
11058
- elapsedSeconds: he,
11059
- conversationByteSize: be
11049
+ elapsedSeconds: le,
11050
+ conversationByteSize: Ye
11060
11051
  }
11061
11052
  });
11062
- }, ne = async (P) => {
11053
+ }, re = async (P) => {
11063
11054
  try {
11064
11055
  if (P.trim().length === 0)
11065
11056
  return;
11066
- const J = /* @__PURE__ */ new Date();
11057
+ const ee = /* @__PURE__ */ new Date();
11067
11058
  z(!1), M(!1);
11068
- const me = p.filter((R) => R.role === "user").length + 1;
11059
+ const me = p.filter((J) => J.role === "user").length + 1;
11069
11060
  K({
11070
11061
  name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
11071
11062
  payload: {
@@ -11076,8 +11067,8 @@ function ei({ submitEventExternal: e }) {
11076
11067
  isTestUser: q
11077
11068
  }
11078
11069
  }), h();
11079
- let he = Fe.get(`${t}-conversation-history-id`) || "";
11080
- !he && l.conversationHistory.enabled ? m([
11070
+ let le = _e.get(`${t}-conversation-history-id`) || "";
11071
+ !le && l.conversationHistory.enabled ? m([
11081
11072
  {
11082
11073
  role: "user",
11083
11074
  content: P
@@ -11089,55 +11080,55 @@ function ei({ submitEventExternal: e }) {
11089
11080
  content: P
11090
11081
  }
11091
11082
  ]), D(!0);
11092
- const be = [
11083
+ const Ye = [
11093
11084
  ...p,
11094
11085
  {
11095
11086
  role: "user",
11096
11087
  content: P
11097
11088
  }
11098
- ].map((R) => ({
11099
- role: R.role,
11100
- content: R.content
11089
+ ].map((J) => ({
11090
+ role: J.role,
11091
+ content: J.content
11101
11092
  })), qe = await fetch(n.endpoint, {
11102
11093
  method: "POST",
11103
11094
  headers: {
11104
11095
  "Content-Type": "application/json",
11105
- "Conversation-History-Id": he
11096
+ "Conversation-History-Id": le
11106
11097
  },
11107
11098
  body: JSON.stringify({
11108
- message_list: be,
11099
+ message_list: Ye,
11109
11100
  ...n.payloadParams
11110
11101
  })
11111
11102
  });
11112
11103
  if (!qe.ok)
11113
11104
  throw new lr(`HTTPError: ${qe.status} ${qe.statusText}`);
11114
- he = qe.headers.get("Conversation-History-Id"), he && Fe.set(
11105
+ le = qe.headers.get("Conversation-History-Id"), le && _e.set(
11115
11106
  `${t}-conversation-history-id`,
11116
- he,
11107
+ le,
11117
11108
  { expires: 1 }
11118
11109
  );
11119
- const lt = await qe.json(), st = lt.content, N = lt.live_agent;
11120
- ge(st, he);
11121
- const O = /* @__PURE__ */ new Date();
11122
- Ee({
11123
- conversationByteSize: ng(JSON.stringify(be)),
11110
+ const yt = await qe.json(), N = yt.content, O = yt.live_agent;
11111
+ ge(N, le);
11112
+ const Q = /* @__PURE__ */ new Date();
11113
+ ke({
11114
+ conversationByteSize: ng(JSON.stringify(Ye)),
11124
11115
  conversationSize: p.length + 2,
11125
11116
  userInputMessage: P,
11126
- apiResponseMessage: st,
11127
- elapsedSeconds: eg(J, O)
11128
- }), m((R) => [
11129
- ...R,
11117
+ apiResponseMessage: N,
11118
+ elapsedSeconds: eg(ee, Q)
11119
+ }), m((J) => [
11120
+ ...J,
11130
11121
  {
11131
11122
  role: "assistant",
11132
- content: st,
11133
- liveAgent: N,
11123
+ content: N,
11124
+ liveAgent: O,
11134
11125
  createdAt: /* @__PURE__ */ new Date()
11135
11126
  }
11136
11127
  ]), w(!1), D(!1), h(), z(!0);
11137
- } catch (J) {
11138
- D(!1), h(), M(!0), console.error(J);
11128
+ } catch (ee) {
11129
+ D(!1), h(), M(!0), console.error(ee);
11139
11130
  }
11140
- }, we = () => {
11131
+ }, xe = () => {
11141
11132
  E(!1), C(!0), K({
11142
11133
  name: `${r.prefix}.bi.xpert.chatbot.action.button.clicked`,
11143
11134
  payload: {
@@ -11146,7 +11137,7 @@ function ei({ submitEventExternal: e }) {
11146
11137
  isTestUser: q
11147
11138
  }
11148
11139
  });
11149
- }, ve = (P) => {
11140
+ }, we = (P) => {
11150
11141
  K({
11151
11142
  name: `${r.prefix}.bi.xpert.chatbot.${P ? "normal" : "expand"}.size.button.clicked`,
11152
11143
  payload: {
@@ -11155,7 +11146,7 @@ function ei({ submitEventExternal: e }) {
11155
11146
  isTestUser: q
11156
11147
  }
11157
11148
  }), $(P);
11158
- }, Ye = () => {
11149
+ }, Qe = () => {
11159
11150
  C(!0), K({
11160
11151
  name: `${r.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
11161
11152
  payload: {
@@ -11164,7 +11155,7 @@ function ei({ submitEventExternal: e }) {
11164
11155
  isTestUser: q
11165
11156
  }
11166
11157
  });
11167
- }, Oe = () => {
11158
+ }, Se = () => {
11168
11159
  K({
11169
11160
  name: `${r.prefix}.bi.xpert.chatbot.proactive.message.closed`,
11170
11161
  payload: {
@@ -11185,17 +11176,17 @@ function ei({ submitEventExternal: e }) {
11185
11176
  }, ot = () => {
11186
11177
  var P;
11187
11178
  /* istanbul ignore next @preserve */
11188
- B.current && (B.current.style.height = "auto", B.current.style.height = `${Math.min(
11189
- (P = B.current) == null ? void 0 : P.scrollHeight,
11179
+ U.current && (U.current.style.height = "auto", U.current.style.height = `${Math.min(
11180
+ (P = U.current) == null ? void 0 : P.scrollHeight,
11190
11181
  120
11191
11182
  )}px`);
11192
11183
  }, Nt = (P) => {
11193
- U(P.target.value);
11184
+ R(P.target.value);
11194
11185
  }, kt = (P) => {
11195
- P.key === "Enter" && j.trim() === "" || P.key === "Enter" && !P.shiftKey && (P.preventDefault(), ne(j));
11196
- }, Et = (P, J = "") => {
11197
- const me = p.map((he, be) => P === be ? (K({
11198
- name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${J.toLowerCase()}.clicked`,
11186
+ P.key === "Enter" && j.trim() === "" || P.key === "Enter" && !P.shiftKey && (P.preventDefault(), re(j));
11187
+ }, Et = (P, ee = "") => {
11188
+ const me = p.map((le, Ye) => P === Ye ? (K({
11189
+ name: `${r.prefix}.bi.xpert.chatbot.feedback.thumbs.${ee.toLowerCase()}.clicked`,
11199
11190
  payload: {
11200
11191
  category: "2u",
11201
11192
  label: "xpert-chatbot",
@@ -11205,11 +11196,11 @@ function ei({ submitEventExternal: e }) {
11205
11196
  isTestUser: q
11206
11197
  }
11207
11198
  }), {
11208
- ...he,
11209
- feedbackThumbType: J
11210
- }) : he);
11199
+ ...le,
11200
+ feedbackThumbType: ee
11201
+ }) : le);
11211
11202
  m(me), w(!1);
11212
- }, Je = a.animatedGraduate.enabled && i.enabled && ye === "A", yt = Je ? s ? o.style.mobile.animatedGraduateExperiment : o.style.animatedGraduateExperiment : s ? o.style.mobile : o.style;
11203
+ }, Je = ((mt = a.animatedGraduate) == null ? void 0 : mt.enabled) && i.enabled && ye === "A", gt = Je ? s ? o.style.mobile.animatedGraduateExperiment : o.style.animatedGraduateExperiment : s ? o.style.mobile : o.style;
11213
11204
  return (
11214
11205
  // do not remove this class as it's needed to turn off chatbot
11215
11206
  /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-frontend-killswitch", children: [
@@ -11217,9 +11208,9 @@ function ei({ submitEventExternal: e }) {
11217
11208
  Go,
11218
11209
  {
11219
11210
  showMessage: !b,
11220
- style: yt,
11221
- onClose: Oe,
11222
- onClick: Ye,
11211
+ style: gt,
11212
+ onClose: Se,
11213
+ onClick: Qe,
11223
11214
  cookieName: `${t}-proactive-message-xpert-chatbot`,
11224
11215
  children: /* @__PURE__ */ T.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ T.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
11225
11216
  o.prefix && /* @__PURE__ */ T.jsx("span", { children: o.prefix }),
@@ -11242,13 +11233,13 @@ function ei({ submitEventExternal: e }) {
11242
11233
  Je && /* @__PURE__ */ T.jsx(
11243
11234
  _u,
11244
11235
  {
11245
- handleFloatingActionButtonClick: we
11236
+ handleFloatingActionButtonClick: xe
11246
11237
  }
11247
11238
  ),
11248
11239
  !Je && /* @__PURE__ */ T.jsx(
11249
11240
  Su,
11250
11241
  {
11251
- handleFloatingActionButtonClick: we
11242
+ handleFloatingActionButtonClick: xe
11252
11243
  }
11253
11244
  ),
11254
11245
  /* @__PURE__ */ T.jsx(Ru, {}),
@@ -11267,7 +11258,7 @@ function ei({ submitEventExternal: e }) {
11267
11258
  isMounted: G,
11268
11259
  isNormalSize: L,
11269
11260
  setIsMounted: X,
11270
- setIsNormalSize: ve
11261
+ setIsNormalSize: we
11271
11262
  }
11272
11263
  ),
11273
11264
  /* @__PURE__ */ T.jsxs(
@@ -11286,8 +11277,8 @@ function ei({ submitEventExternal: e }) {
11286
11277
  loading: d,
11287
11278
  isNormalSize: s || L,
11288
11279
  onFeedbackThumbSelection: Et,
11289
- onPromptClick: ne,
11290
- handleMessageLinkClicked: de,
11280
+ onPromptClick: re,
11281
+ handleMessageLinkClicked: he,
11291
11282
  submitEvent: K,
11292
11283
  setLiveChatOpen: E,
11293
11284
  isTestUser: q
@@ -11312,12 +11303,12 @@ function ei({ submitEventExternal: e }) {
11312
11303
  /* @__PURE__ */ T.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ T.jsx(
11313
11304
  Rr,
11314
11305
  {
11315
- inputRef: B,
11306
+ inputRef: U,
11316
11307
  loading: d,
11317
11308
  hasXpertMessages: k,
11318
11309
  hasError: H,
11319
11310
  userInput: j,
11320
- handleSend: ne,
11311
+ handleSend: re,
11321
11312
  handleInput: ot,
11322
11313
  handleChange: Nt,
11323
11314
  handleKeyDown: kt