@2uinc/frontend-component-xpert-chatbot 1.15.4-beta.1 → 1.15.4-beta.3
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.
- package/dist/lib/index.min.js +855 -855
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import nt, { createContext as is, useMemo as os, useState as ye, useEffect as
|
1
|
+
import nt, { createContext as is, useMemo as os, useState as ye, useEffect as Me, useContext as Le, useRef as We, forwardRef as Io, createElement as sr, useCallback as Ht } from "react";
|
2
2
|
const as = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApi: {
|
@@ -496,7 +496,7 @@ var en = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
496
496
|
function it(e) {
|
497
497
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
498
498
|
}
|
499
|
-
function
|
499
|
+
function No(e) {
|
500
500
|
if (e.__esModule)
|
501
501
|
return e;
|
502
502
|
var t = e.default;
|
@@ -651,7 +651,7 @@ function ur(e, t) {
|
|
651
651
|
}
|
652
652
|
);
|
653
653
|
}
|
654
|
-
var
|
654
|
+
var Ee = ur(Ms, { path: "/" }), Co = { exports: {} }, xs = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", ws = xs, vs = ws;
|
655
655
|
function Ao() {
|
656
656
|
}
|
657
657
|
function So() {
|
@@ -701,31 +701,31 @@ const N = /* @__PURE__ */ it(B);
|
|
701
701
|
var dn = { exports: {} };
|
702
702
|
dn.exports;
|
703
703
|
(function(e, t) {
|
704
|
-
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]", f = "[object Date]", m = "[object Error]", p = "[object Function]",
|
705
|
-
g[S] = g[w] = g[j] = g[O] = g[P] = g[$] = g[G] = g[Z] = g[ie] = !0, g[l] = g[s] = g[q] = g[c] = g[
|
706
|
-
var me = typeof en == "object" && en && en.Object === Object && en,
|
704
|
+
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]", f = "[object Date]", m = "[object Error]", p = "[object Function]", D = "[object GeneratorFunction]", x = "[object Map]", k = "[object Number]", b = "[object Null]", z = "[object Object]", E = "[object Proxy]", _ = "[object RegExp]", Q = "[object Set]", M = "[object String]", L = "[object Undefined]", Y = "[object WeakMap]", q = "[object ArrayBuffer]", ee = "[object DataView]", S = "[object Float32Array]", w = "[object Float64Array]", j = "[object Int8Array]", O = "[object Int16Array]", P = "[object Int32Array]", $ = "[object Uint8Array]", G = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", ie = "[object Uint32Array]", h = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, we = /^(?:0|[1-9]\d*)$/, g = {};
|
705
|
+
g[S] = g[w] = g[j] = g[O] = g[P] = g[$] = g[G] = g[Z] = g[ie] = !0, g[l] = g[s] = g[q] = g[c] = g[ee] = g[f] = g[m] = g[p] = g[x] = g[k] = g[z] = g[_] = g[Q] = g[M] = g[Y] = !1;
|
706
|
+
var me = typeof en == "object" && en && en.Object === Object && en, Ne = typeof self == "object" && self && self.Object === Object && self, ae = me || Ne || Function("return this")(), ke = t && !t.nodeType && t, ve = ke && !0 && e && !e.nodeType && e, Fe = ve && ve.exports === ke, Pe = Fe && me.process, Ke = function() {
|
707
707
|
try {
|
708
|
-
var d =
|
709
|
-
return d ||
|
708
|
+
var d = ve && ve.require && ve.require("util").types;
|
709
|
+
return d || Pe && Pe.binding && Pe.binding("util");
|
710
710
|
} catch {
|
711
711
|
}
|
712
712
|
}(), lt = Ke && Ke.isTypedArray;
|
713
|
-
function
|
714
|
-
switch (
|
713
|
+
function It(d, y, I) {
|
714
|
+
switch (I.length) {
|
715
715
|
case 0:
|
716
716
|
return d.call(y);
|
717
717
|
case 1:
|
718
|
-
return d.call(y,
|
718
|
+
return d.call(y, I[0]);
|
719
719
|
case 2:
|
720
|
-
return d.call(y,
|
720
|
+
return d.call(y, I[0], I[1]);
|
721
721
|
case 3:
|
722
|
-
return d.call(y,
|
722
|
+
return d.call(y, I[0], I[1], I[2]);
|
723
723
|
}
|
724
|
-
return d.apply(y,
|
724
|
+
return d.apply(y, I);
|
725
725
|
}
|
726
|
-
function
|
727
|
-
for (var
|
728
|
-
R[
|
726
|
+
function Nt(d, y) {
|
727
|
+
for (var I = -1, R = Array(d); ++I < d; )
|
728
|
+
R[I] = y(I);
|
729
729
|
return R;
|
730
730
|
}
|
731
731
|
function kt(d) {
|
@@ -737,37 +737,37 @@ dn.exports;
|
|
737
737
|
return d == null ? void 0 : d[y];
|
738
738
|
}
|
739
739
|
function yt(d, y) {
|
740
|
-
return function(
|
741
|
-
return d(y(
|
740
|
+
return function(I) {
|
741
|
+
return d(y(I));
|
742
742
|
};
|
743
743
|
}
|
744
|
-
var Je = Array.prototype, jt = Function.prototype, $e = Object.prototype, Ze =
|
744
|
+
var Je = Array.prototype, jt = Function.prototype, $e = Object.prototype, Ze = ae["__core-js_shared__"], F = jt.toString, W = $e.hasOwnProperty, be = function() {
|
745
745
|
var d = /[^.]+$/.exec(Ze && Ze.keys && Ze.keys.IE_PROTO || "");
|
746
746
|
return d ? "Symbol(src)_1." + d : "";
|
747
|
-
}(),
|
747
|
+
}(), se = $e.toString, Ie = F.call(Object), T = RegExp(
|
748
748
|
"^" + F.call(W).replace(h, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
749
|
-
), C =
|
749
|
+
), C = Fe ? ae.Buffer : void 0, U = ae.Symbol, K = ae.Uint8Array, J = C ? C.allocUnsafe : void 0, ue = yt(Object.getPrototypeOf, Object), Te = Object.create, De = $e.propertyIsEnumerable, st = Je.splice, Ae = U ? U.toStringTag : void 0, pe = function() {
|
750
750
|
try {
|
751
751
|
var d = Bn(Object, "defineProperty");
|
752
752
|
return d({}, "", {}), d;
|
753
753
|
} catch {
|
754
754
|
}
|
755
|
-
}(), Et = C ? C.isBuffer : void 0,
|
755
|
+
}(), Et = C ? C.isBuffer : void 0, Re = Math.max, rl = Date.now, ri = Bn(ae, "Map"), Ct = Bn(Object, "create"), il = function() {
|
756
756
|
function d() {
|
757
757
|
}
|
758
758
|
return function(y) {
|
759
759
|
if (!ct(y))
|
760
760
|
return {};
|
761
|
-
if (
|
762
|
-
return
|
761
|
+
if (Te)
|
762
|
+
return Te(y);
|
763
763
|
d.prototype = y;
|
764
|
-
var
|
765
|
-
return d.prototype = void 0,
|
764
|
+
var I = new d();
|
765
|
+
return d.prototype = void 0, I;
|
766
766
|
};
|
767
767
|
}();
|
768
768
|
function ut(d) {
|
769
|
-
var y = -1,
|
770
|
-
for (this.clear(); ++y <
|
769
|
+
var y = -1, I = d == null ? 0 : d.length;
|
770
|
+
for (this.clear(); ++y < I; ) {
|
771
771
|
var R = d[y];
|
772
772
|
this.set(R[0], R[1]);
|
773
773
|
}
|
@@ -782,8 +782,8 @@ dn.exports;
|
|
782
782
|
function ll(d) {
|
783
783
|
var y = this.__data__;
|
784
784
|
if (Ct) {
|
785
|
-
var
|
786
|
-
return
|
785
|
+
var I = y[d];
|
786
|
+
return I === r ? void 0 : I;
|
787
787
|
}
|
788
788
|
return W.call(y, d) ? y[d] : void 0;
|
789
789
|
}
|
@@ -792,13 +792,13 @@ dn.exports;
|
|
792
792
|
return Ct ? y[d] !== void 0 : W.call(y, d);
|
793
793
|
}
|
794
794
|
function ul(d, y) {
|
795
|
-
var
|
796
|
-
return this.size += this.has(d) ? 0 : 1,
|
795
|
+
var I = this.__data__;
|
796
|
+
return this.size += this.has(d) ? 0 : 1, I[d] = Ct && y === void 0 ? r : y, this;
|
797
797
|
}
|
798
798
|
ut.prototype.clear = ol, ut.prototype.delete = al, ut.prototype.get = ll, ut.prototype.has = sl, ut.prototype.set = ul;
|
799
799
|
function Xe(d) {
|
800
|
-
var y = -1,
|
801
|
-
for (this.clear(); ++y <
|
800
|
+
var y = -1, I = d == null ? 0 : d.length;
|
801
|
+
for (this.clear(); ++y < I; ) {
|
802
802
|
var R = d[y];
|
803
803
|
this.set(R[0], R[1]);
|
804
804
|
}
|
@@ -807,27 +807,27 @@ dn.exports;
|
|
807
807
|
this.__data__ = [], this.size = 0;
|
808
808
|
}
|
809
809
|
function pl(d) {
|
810
|
-
var y = this.__data__,
|
811
|
-
if (
|
810
|
+
var y = this.__data__, I = Zt(y, d);
|
811
|
+
if (I < 0)
|
812
812
|
return !1;
|
813
813
|
var R = y.length - 1;
|
814
|
-
return
|
814
|
+
return I == R ? y.pop() : st.call(y, I, 1), --this.size, !0;
|
815
815
|
}
|
816
816
|
function fl(d) {
|
817
|
-
var y = this.__data__,
|
818
|
-
return
|
817
|
+
var y = this.__data__, I = Zt(y, d);
|
818
|
+
return I < 0 ? void 0 : y[I][1];
|
819
819
|
}
|
820
820
|
function dl(d) {
|
821
821
|
return Zt(this.__data__, d) > -1;
|
822
822
|
}
|
823
823
|
function hl(d, y) {
|
824
|
-
var
|
825
|
-
return R < 0 ? (++this.size,
|
824
|
+
var I = this.__data__, R = Zt(I, d);
|
825
|
+
return R < 0 ? (++this.size, I.push([d, y])) : I[R][1] = y, this;
|
826
826
|
}
|
827
827
|
Xe.prototype.clear = cl, Xe.prototype.delete = pl, Xe.prototype.get = fl, Xe.prototype.has = dl, Xe.prototype.set = hl;
|
828
828
|
function bt(d) {
|
829
|
-
var y = -1,
|
830
|
-
for (this.clear(); ++y <
|
829
|
+
var y = -1, I = d == null ? 0 : d.length;
|
830
|
+
for (this.clear(); ++y < I; ) {
|
831
831
|
var R = d[y];
|
832
832
|
this.set(R[0], R[1]);
|
833
833
|
}
|
@@ -850,8 +850,8 @@ dn.exports;
|
|
850
850
|
return Kt(this, d).has(d);
|
851
851
|
}
|
852
852
|
function Ml(d, y) {
|
853
|
-
var
|
854
|
-
return
|
853
|
+
var I = Kt(this, d), R = I.size;
|
854
|
+
return I.set(d, y), this.size += I.size == R ? 0 : 1, this;
|
855
855
|
}
|
856
856
|
bt.prototype.clear = gl, bt.prototype.delete = ml, bt.prototype.get = yl, bt.prototype.has = bl, bt.prototype.set = Ml;
|
857
857
|
function Mt(d) {
|
@@ -862,8 +862,8 @@ dn.exports;
|
|
862
862
|
this.__data__ = new Xe(), this.size = 0;
|
863
863
|
}
|
864
864
|
function wl(d) {
|
865
|
-
var y = this.__data__,
|
866
|
-
return this.size = y.size,
|
865
|
+
var y = this.__data__, I = y.delete(d);
|
866
|
+
return this.size = y.size, I;
|
867
867
|
}
|
868
868
|
function vl(d) {
|
869
869
|
return this.__data__.get(d);
|
@@ -872,50 +872,50 @@ dn.exports;
|
|
872
872
|
return this.__data__.has(d);
|
873
873
|
}
|
874
874
|
function Dl(d, y) {
|
875
|
-
var
|
876
|
-
if (
|
877
|
-
var R =
|
875
|
+
var I = this.__data__;
|
876
|
+
if (I instanceof Xe) {
|
877
|
+
var R = I.__data__;
|
878
878
|
if (!ri || R.length < n - 1)
|
879
|
-
return R.push([d, y]), this.size = ++
|
880
|
-
|
879
|
+
return R.push([d, y]), this.size = ++I.size, this;
|
880
|
+
I = this.__data__ = new bt(R);
|
881
881
|
}
|
882
|
-
return
|
882
|
+
return I.set(d, y), this.size = I.size, this;
|
883
883
|
}
|
884
884
|
Mt.prototype.clear = xl, Mt.prototype.delete = wl, Mt.prototype.get = vl, Mt.prototype.has = Tl, Mt.prototype.set = Dl;
|
885
|
-
function
|
886
|
-
var
|
887
|
-
for (var
|
888
|
-
(y || W.call(d,
|
889
|
-
(
|
890
|
-
re && (
|
891
|
-
|
892
|
-
ai(
|
885
|
+
function Il(d, y) {
|
886
|
+
var I = Hn(d), R = !I && Yn(d), re = !I && !R && si(d), ce = !I && !R && !re && ci(d), he = I || R || re || ce, te = he ? Nt(d.length, String) : [], ge = te.length;
|
887
|
+
for (var Ue in d)
|
888
|
+
(y || W.call(d, Ue)) && !(he && // Safari 9 has enumerable `arguments.length` in strict mode.
|
889
|
+
(Ue == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
890
|
+
re && (Ue == "offset" || Ue == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
891
|
+
ce && (Ue == "buffer" || Ue == "byteLength" || Ue == "byteOffset") || // Skip index properties.
|
892
|
+
ai(Ue, ge))) && te.push(Ue);
|
893
893
|
return te;
|
894
894
|
}
|
895
|
-
function Rn(d, y,
|
896
|
-
(
|
895
|
+
function Rn(d, y, I) {
|
896
|
+
(I !== void 0 && !Jt(d[y], I) || I === void 0 && !(y in d)) && Un(d, y, I);
|
897
897
|
}
|
898
|
-
function
|
898
|
+
function Nl(d, y, I) {
|
899
899
|
var R = d[y];
|
900
|
-
(!(W.call(d, y) && Jt(R,
|
900
|
+
(!(W.call(d, y) && Jt(R, I)) || I === void 0 && !(y in d)) && Un(d, y, I);
|
901
901
|
}
|
902
902
|
function Zt(d, y) {
|
903
|
-
for (var
|
904
|
-
if (Jt(d[
|
905
|
-
return
|
903
|
+
for (var I = d.length; I--; )
|
904
|
+
if (Jt(d[I][0], y))
|
905
|
+
return I;
|
906
906
|
return -1;
|
907
907
|
}
|
908
|
-
function Un(d, y,
|
909
|
-
y == "__proto__" &&
|
908
|
+
function Un(d, y, I) {
|
909
|
+
y == "__proto__" && pe ? pe(d, y, {
|
910
910
|
configurable: !0,
|
911
911
|
enumerable: !0,
|
912
|
-
value:
|
912
|
+
value: I,
|
913
913
|
writable: !0
|
914
|
-
}) : d[y] =
|
914
|
+
}) : d[y] = I;
|
915
915
|
}
|
916
916
|
var kl = Ul();
|
917
917
|
function Xt(d) {
|
918
|
-
return d == null ? d === void 0 ? L : b :
|
918
|
+
return d == null ? d === void 0 ? L : b : Ae && Ae in Object(d) ? Bl(d) : Vl(d);
|
919
919
|
}
|
920
920
|
function ii(d) {
|
921
921
|
return At(d) && Xt(d) == l;
|
@@ -923,7 +923,7 @@ dn.exports;
|
|
923
923
|
function jl(d) {
|
924
924
|
if (!ct(d) || $l(d))
|
925
925
|
return !1;
|
926
|
-
var y = qn(d) ?
|
926
|
+
var y = qn(d) ? T : ne;
|
927
927
|
return y.test(Xl(d));
|
928
928
|
}
|
929
929
|
function El(d) {
|
@@ -932,39 +932,39 @@ dn.exports;
|
|
932
932
|
function Cl(d) {
|
933
933
|
if (!ct(d))
|
934
934
|
return ql(d);
|
935
|
-
var y = li(d),
|
935
|
+
var y = li(d), I = [];
|
936
936
|
for (var R in d)
|
937
|
-
R == "constructor" && (y || !W.call(d, R)) ||
|
938
|
-
return
|
937
|
+
R == "constructor" && (y || !W.call(d, R)) || I.push(R);
|
938
|
+
return I;
|
939
939
|
}
|
940
|
-
function oi(d, y,
|
941
|
-
d !== y && kl(y, function(
|
942
|
-
if (re || (re = new Mt()), ct(
|
943
|
-
Al(d, y, he,
|
940
|
+
function oi(d, y, I, R, re) {
|
941
|
+
d !== y && kl(y, function(ce, he) {
|
942
|
+
if (re || (re = new Mt()), ct(ce))
|
943
|
+
Al(d, y, he, I, oi, R, re);
|
944
944
|
else {
|
945
|
-
var te = R ? R(Qn(d, he),
|
946
|
-
te === void 0 && (te =
|
945
|
+
var te = R ? R(Qn(d, he), ce, he + "", d, y, re) : void 0;
|
946
|
+
te === void 0 && (te = ce), Rn(d, he, te);
|
947
947
|
}
|
948
948
|
}, pi);
|
949
949
|
}
|
950
|
-
function Al(d, y,
|
951
|
-
var te = Qn(d,
|
952
|
-
if (
|
953
|
-
Rn(d,
|
950
|
+
function Al(d, y, I, R, re, ce, he) {
|
951
|
+
var te = Qn(d, I), ge = Qn(y, I), Ue = he.get(ge);
|
952
|
+
if (Ue) {
|
953
|
+
Rn(d, I, Ue);
|
954
954
|
return;
|
955
955
|
}
|
956
|
-
var
|
956
|
+
var Se = ce ? ce(te, ge, I + "", d, y, he) : void 0, St = Se === void 0;
|
957
957
|
if (St) {
|
958
958
|
var Vn = Hn(ge), Wn = !Vn && si(ge), di = !Vn && !Wn && ci(ge);
|
959
|
-
|
959
|
+
Se = ge, Vn || Wn || di ? Hn(te) ? Se = te : Kl(te) ? Se = Fl(te) : Wn ? (St = !1, Se = zl(ge, !0)) : di ? (St = !1, Se = _l(ge, !0)) : Se = [] : Jl(ge) || Yn(ge) ? (Se = te, Yn(te) ? Se = es(te) : (!ct(te) || qn(te)) && (Se = Ql(ge))) : St = !1;
|
960
960
|
}
|
961
|
-
St && (he.set(ge,
|
961
|
+
St && (he.set(ge, Se), re(Se, ge, R, ce, he), he.delete(ge)), Rn(d, I, Se);
|
962
962
|
}
|
963
963
|
function Sl(d, y) {
|
964
964
|
return Gl(Wl(d, y, fi), d + "");
|
965
965
|
}
|
966
|
-
var Ol =
|
967
|
-
return
|
966
|
+
var Ol = pe ? function(d, y) {
|
967
|
+
return pe(d, "toString", {
|
968
968
|
configurable: !0,
|
969
969
|
enumerable: !1,
|
970
970
|
value: ns(y),
|
@@ -974,7 +974,7 @@ dn.exports;
|
|
974
974
|
function zl(d, y) {
|
975
975
|
if (y)
|
976
976
|
return d.slice();
|
977
|
-
var
|
977
|
+
var I = d.length, R = J ? J(I) : new d.constructor(I);
|
978
978
|
return d.copy(R), R;
|
979
979
|
}
|
980
980
|
function Ll(d) {
|
@@ -982,74 +982,74 @@ dn.exports;
|
|
982
982
|
return new K(y).set(new K(d)), y;
|
983
983
|
}
|
984
984
|
function _l(d, y) {
|
985
|
-
var
|
986
|
-
return new d.constructor(
|
985
|
+
var I = y ? Ll(d.buffer) : d.buffer;
|
986
|
+
return new d.constructor(I, d.byteOffset, d.length);
|
987
987
|
}
|
988
988
|
function Fl(d, y) {
|
989
|
-
var
|
990
|
-
for (y || (y = Array(R)); ++
|
991
|
-
y[
|
989
|
+
var I = -1, R = d.length;
|
990
|
+
for (y || (y = Array(R)); ++I < R; )
|
991
|
+
y[I] = d[I];
|
992
992
|
return y;
|
993
993
|
}
|
994
|
-
function Pl(d, y,
|
995
|
-
var re = !
|
996
|
-
|
997
|
-
for (var
|
998
|
-
var te = y[
|
999
|
-
ge === void 0 && (ge = d[te]), re ? Un(
|
994
|
+
function Pl(d, y, I, R) {
|
995
|
+
var re = !I;
|
996
|
+
I || (I = {});
|
997
|
+
for (var ce = -1, he = y.length; ++ce < he; ) {
|
998
|
+
var te = y[ce], ge = R ? R(I[te], d[te], te, I, d) : void 0;
|
999
|
+
ge === void 0 && (ge = d[te]), re ? Un(I, te, ge) : Nl(I, te, ge);
|
1000
1000
|
}
|
1001
|
-
return
|
1001
|
+
return I;
|
1002
1002
|
}
|
1003
1003
|
function Rl(d) {
|
1004
|
-
return Sl(function(y,
|
1005
|
-
var R = -1, re =
|
1006
|
-
for (
|
1007
|
-
var te =
|
1008
|
-
te && d(y, te, R,
|
1004
|
+
return Sl(function(y, I) {
|
1005
|
+
var R = -1, re = I.length, ce = re > 1 ? I[re - 1] : void 0, he = re > 2 ? I[2] : void 0;
|
1006
|
+
for (ce = d.length > 3 && typeof ce == "function" ? (re--, ce) : void 0, he && Yl(I[0], I[1], he) && (ce = re < 3 ? void 0 : ce, re = 1), y = Object(y); ++R < re; ) {
|
1007
|
+
var te = I[R];
|
1008
|
+
te && d(y, te, R, ce);
|
1009
1009
|
}
|
1010
1010
|
return y;
|
1011
1011
|
});
|
1012
1012
|
}
|
1013
1013
|
function Ul(d) {
|
1014
|
-
return function(y,
|
1015
|
-
for (var re = -1,
|
1014
|
+
return function(y, I, R) {
|
1015
|
+
for (var re = -1, ce = Object(y), he = R(y), te = he.length; te--; ) {
|
1016
1016
|
var ge = he[d ? te : ++re];
|
1017
|
-
if (
|
1017
|
+
if (I(ce[ge], ge, ce) === !1)
|
1018
1018
|
break;
|
1019
1019
|
}
|
1020
1020
|
return y;
|
1021
1021
|
};
|
1022
1022
|
}
|
1023
1023
|
function Kt(d, y) {
|
1024
|
-
var
|
1025
|
-
return Hl(y) ?
|
1024
|
+
var I = d.__data__;
|
1025
|
+
return Hl(y) ? I[typeof y == "string" ? "string" : "hash"] : I.map;
|
1026
1026
|
}
|
1027
1027
|
function Bn(d, y) {
|
1028
|
-
var
|
1029
|
-
return jl(
|
1028
|
+
var I = mt(d, y);
|
1029
|
+
return jl(I) ? I : void 0;
|
1030
1030
|
}
|
1031
1031
|
function Bl(d) {
|
1032
|
-
var y = W.call(d,
|
1032
|
+
var y = W.call(d, Ae), I = d[Ae];
|
1033
1033
|
try {
|
1034
|
-
d[
|
1034
|
+
d[Ae] = void 0;
|
1035
1035
|
var R = !0;
|
1036
1036
|
} catch {
|
1037
1037
|
}
|
1038
|
-
var re =
|
1039
|
-
return R && (y ? d[
|
1038
|
+
var re = se.call(d);
|
1039
|
+
return R && (y ? d[Ae] = I : delete d[Ae]), re;
|
1040
1040
|
}
|
1041
1041
|
function Ql(d) {
|
1042
|
-
return typeof d.constructor == "function" && !li(d) ? il(
|
1042
|
+
return typeof d.constructor == "function" && !li(d) ? il(ue(d)) : {};
|
1043
1043
|
}
|
1044
1044
|
function ai(d, y) {
|
1045
|
-
var
|
1046
|
-
return y = y ?? a, !!y && (
|
1045
|
+
var I = typeof d;
|
1046
|
+
return y = y ?? a, !!y && (I == "number" || I != "symbol" && we.test(d)) && d > -1 && d % 1 == 0 && d < y;
|
1047
1047
|
}
|
1048
|
-
function Yl(d, y,
|
1049
|
-
if (!ct(
|
1048
|
+
function Yl(d, y, I) {
|
1049
|
+
if (!ct(I))
|
1050
1050
|
return !1;
|
1051
1051
|
var R = typeof y;
|
1052
|
-
return (R == "number" ? $n(
|
1052
|
+
return (R == "number" ? $n(I) && ai(y, I.length) : R == "string" && y in I) ? Jt(I[y], d) : !1;
|
1053
1053
|
}
|
1054
1054
|
function Hl(d) {
|
1055
1055
|
var y = typeof d;
|
@@ -1059,27 +1059,27 @@ dn.exports;
|
|
1059
1059
|
return !!be && be in d;
|
1060
1060
|
}
|
1061
1061
|
function li(d) {
|
1062
|
-
var y = d && d.constructor,
|
1063
|
-
return d ===
|
1062
|
+
var y = d && d.constructor, I = typeof y == "function" && y.prototype || $e;
|
1063
|
+
return d === I;
|
1064
1064
|
}
|
1065
1065
|
function ql(d) {
|
1066
1066
|
var y = [];
|
1067
1067
|
if (d != null)
|
1068
|
-
for (var
|
1069
|
-
y.push(
|
1068
|
+
for (var I in Object(d))
|
1069
|
+
y.push(I);
|
1070
1070
|
return y;
|
1071
1071
|
}
|
1072
1072
|
function Vl(d) {
|
1073
|
-
return
|
1073
|
+
return se.call(d);
|
1074
1074
|
}
|
1075
|
-
function Wl(d, y,
|
1076
|
-
return y =
|
1077
|
-
for (var R = arguments, re = -1,
|
1075
|
+
function Wl(d, y, I) {
|
1076
|
+
return y = Re(y === void 0 ? d.length - 1 : y, 0), function() {
|
1077
|
+
for (var R = arguments, re = -1, ce = Re(R.length - y, 0), he = Array(ce); ++re < ce; )
|
1078
1078
|
he[re] = R[y + re];
|
1079
1079
|
re = -1;
|
1080
1080
|
for (var te = Array(y + 1); ++re < y; )
|
1081
1081
|
te[re] = R[re];
|
1082
|
-
return te[y] =
|
1082
|
+
return te[y] = I(he), It(d, this, te);
|
1083
1083
|
};
|
1084
1084
|
}
|
1085
1085
|
function Qn(d, y) {
|
@@ -1088,10 +1088,10 @@ dn.exports;
|
|
1088
1088
|
}
|
1089
1089
|
var Gl = Zl(Ol);
|
1090
1090
|
function Zl(d) {
|
1091
|
-
var y = 0,
|
1091
|
+
var y = 0, I = 0;
|
1092
1092
|
return function() {
|
1093
|
-
var R = rl(), re = o - (R -
|
1094
|
-
if (
|
1093
|
+
var R = rl(), re = o - (R - I);
|
1094
|
+
if (I = R, re > 0) {
|
1095
1095
|
if (++y >= i)
|
1096
1096
|
return arguments[0];
|
1097
1097
|
} else
|
@@ -1118,7 +1118,7 @@ dn.exports;
|
|
1118
1118
|
var Yn = ii(function() {
|
1119
1119
|
return arguments;
|
1120
1120
|
}()) ? ii : function(d) {
|
1121
|
-
return At(d) && W.call(d, "callee") && !
|
1121
|
+
return At(d) && W.call(d, "callee") && !De.call(d, "callee");
|
1122
1122
|
}, Hn = Array.isArray;
|
1123
1123
|
function $n(d) {
|
1124
1124
|
return d != null && ui(d.length) && !qn(d);
|
@@ -1131,7 +1131,7 @@ dn.exports;
|
|
1131
1131
|
if (!ct(d))
|
1132
1132
|
return !1;
|
1133
1133
|
var y = Xt(d);
|
1134
|
-
return y == p || y ==
|
1134
|
+
return y == p || y == D || y == u || y == E;
|
1135
1135
|
}
|
1136
1136
|
function ui(d) {
|
1137
1137
|
return typeof d == "number" && d > -1 && d % 1 == 0 && d <= a;
|
@@ -1146,21 +1146,21 @@ dn.exports;
|
|
1146
1146
|
function Jl(d) {
|
1147
1147
|
if (!At(d) || Xt(d) != z)
|
1148
1148
|
return !1;
|
1149
|
-
var y =
|
1149
|
+
var y = ue(d);
|
1150
1150
|
if (y === null)
|
1151
1151
|
return !0;
|
1152
|
-
var
|
1153
|
-
return typeof
|
1152
|
+
var I = W.call(y, "constructor") && y.constructor;
|
1153
|
+
return typeof I == "function" && I instanceof I && F.call(I) == Ie;
|
1154
1154
|
}
|
1155
1155
|
var ci = lt ? kt(lt) : El;
|
1156
1156
|
function es(d) {
|
1157
1157
|
return Pl(d, pi(d));
|
1158
1158
|
}
|
1159
1159
|
function pi(d) {
|
1160
|
-
return $n(d) ?
|
1160
|
+
return $n(d) ? Il(d, !0) : Cl(d);
|
1161
1161
|
}
|
1162
|
-
var ts = Rl(function(d, y,
|
1163
|
-
oi(d, y,
|
1162
|
+
var ts = Rl(function(d, y, I) {
|
1163
|
+
oi(d, y, I);
|
1164
1164
|
});
|
1165
1165
|
function ns(d) {
|
1166
1166
|
return function() {
|
@@ -1176,7 +1176,7 @@ dn.exports;
|
|
1176
1176
|
e.exports = ts;
|
1177
1177
|
})(dn, dn.exports);
|
1178
1178
|
var Ds = dn.exports;
|
1179
|
-
const Oo = /* @__PURE__ */ it(Ds),
|
1179
|
+
const Oo = /* @__PURE__ */ it(Ds), Is = {
|
1180
1180
|
xpertKey: "exec-ed-ss-olc-moodle",
|
1181
1181
|
chatApi: {
|
1182
1182
|
endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
|
@@ -1288,17 +1288,17 @@ const Oo = /* @__PURE__ */ it(Ds), Ns = {
|
|
1288
1288
|
}
|
1289
1289
|
}
|
1290
1290
|
}
|
1291
|
-
},
|
1291
|
+
}, Ns = {
|
1292
1292
|
edx: as,
|
1293
1293
|
"get-smarter": ss,
|
1294
1294
|
"speech-emerson": ls,
|
1295
|
-
"exec-ed-ss-olc-moodle":
|
1295
|
+
"exec-ed-ss-olc-moodle": Is,
|
1296
1296
|
"degrees-canvas-support": us,
|
1297
1297
|
"degrees-moodle-support": cs
|
1298
1298
|
}, ks = (e, t = {}) => {
|
1299
1299
|
if (!e && (!t || Object.keys(t).length === 0))
|
1300
1300
|
throw new Error("xpertKey or configurations is required");
|
1301
|
-
const n =
|
1301
|
+
const n = Ns[e] || {};
|
1302
1302
|
return Oo(n, t);
|
1303
1303
|
}, js = ks, zo = is({}), Lo = ({
|
1304
1304
|
children: e,
|
@@ -1388,7 +1388,7 @@ Lo.propTypes = {
|
|
1388
1388
|
}).isRequired
|
1389
1389
|
})
|
1390
1390
|
};
|
1391
|
-
const
|
1391
|
+
const _e = zo;
|
1392
1392
|
var _o = { exports: {} };
|
1393
1393
|
/*!
|
1394
1394
|
Copyright (c) 2018 Jed Watson.
|
@@ -1430,7 +1430,7 @@ const Fo = /* @__PURE__ */ it(Es), mi = 991, Cs = () => {
|
|
1430
1430
|
const [e, t] = ye(
|
1431
1431
|
window.innerWidth < mi
|
1432
1432
|
);
|
1433
|
-
return
|
1433
|
+
return Me(() => {
|
1434
1434
|
const n = () => {
|
1435
1435
|
t(window.innerWidth < mi);
|
1436
1436
|
};
|
@@ -1487,7 +1487,7 @@ const Ot = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
1487
1487
|
"degrees-moodle-support": Ot
|
1488
1488
|
}, jr = ({ handleFloatingActionButtonClick: e }) => {
|
1489
1489
|
var i, o;
|
1490
|
-
const { xpertKey: t, launchButton: n } =
|
1490
|
+
const { xpertKey: t, launchButton: n } = Le(_e), r = ot();
|
1491
1491
|
return /* @__PURE__ */ v.jsx(
|
1492
1492
|
wn,
|
1493
1493
|
{
|
@@ -1522,11 +1522,11 @@ const Os = 1500, zs = `The parent container is wider than the chatbot launch but
|
|
1522
1522
|
eyes follow your mouse when you hover near it.`, Er = ({
|
1523
1523
|
handleFloatingActionButtonClick: e
|
1524
1524
|
}) => {
|
1525
|
-
var m, p,
|
1526
|
-
const { xpertKey: t, launchButton: n } =
|
1525
|
+
var m, p, D, x, k, b, z;
|
1526
|
+
const { xpertKey: t, launchButton: n } = Le(_e), r = !Ee.get(
|
1527
1527
|
`${t}-proactive-message-xpert-chatbot`
|
1528
1528
|
), i = We(null), o = We(!1), a = r ? (m = n.animatedGraduate) == null ? void 0 : m.delayMs : ((p = n.animatedGraduate) == null ? void 0 : p.delayMs) * 2, [l, s] = ye(!1), u = ot();
|
1529
|
-
|
1529
|
+
Me(() => {
|
1530
1530
|
const _ = setTimeout(
|
1531
1531
|
() => {
|
1532
1532
|
s(!0);
|
@@ -1536,7 +1536,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1536
1536
|
return () => {
|
1537
1537
|
clearTimeout(_);
|
1538
1538
|
};
|
1539
|
-
}, [a]),
|
1539
|
+
}, [a]), Me(() => {
|
1540
1540
|
const E = (_) => {
|
1541
1541
|
const Q = window.matchMedia(
|
1542
1542
|
`(max-width: ${Os}px)`
|
@@ -1546,8 +1546,8 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1546
1546
|
i.current.querySelectorAll(
|
1547
1547
|
".xpert_chatbot__animated_graduate__pupil"
|
1548
1548
|
).forEach((Y) => {
|
1549
|
-
const q = Y.getBoundingClientRect(),
|
1550
|
-
Y.style.transform = "translate3d(" +
|
1549
|
+
const q = Y.getBoundingClientRect(), ee = (_.pageX - window.scrollX - q.left) / 30 / 16 + "rem", S = (_.pageY - window.scrollY - q.top) / 30 / 16 + "rem";
|
1550
|
+
Y.style.transform = "translate3d(" + ee + "," + S + ", 0rem)";
|
1551
1551
|
});
|
1552
1552
|
};
|
1553
1553
|
return window.addEventListener("mousemove", E), () => {
|
@@ -1575,7 +1575,7 @@ eyes follow your mouse when you hover near it.`, Er = ({
|
|
1575
1575
|
onClick: e,
|
1576
1576
|
label: "Open XPERT Chatbot",
|
1577
1577
|
className: "xpert-chatbot-button__animated_graduate__launch-button",
|
1578
|
-
style: u ? { ...(x = (
|
1578
|
+
style: u ? { ...(x = (D = n.style) == null ? void 0 : D.mobile) == null ? void 0 : x.animatedGraduateExperiment } : { ...(k = n.style) == null ? void 0 : k.animatedGraduateExperiment },
|
1579
1579
|
"aria-haspopup": "dialog",
|
1580
1580
|
"aria-expanded": open,
|
1581
1581
|
children: /* @__PURE__ */ v.jsx("div", { ref: i, children: /* @__PURE__ */ v.jsxs(
|
@@ -1731,7 +1731,7 @@ Er.defaultProps = {
|
|
1731
1731
|
const Ls = Er;
|
1732
1732
|
const _s = () => {
|
1733
1733
|
var n;
|
1734
|
-
const e = ot(), { launchButton: t } =
|
1734
|
+
const e = ot(), { launchButton: t } = Le(_e);
|
1735
1735
|
return (n = t.message) != null && n.enabled ? /* @__PURE__ */ v.jsx(
|
1736
1736
|
"div",
|
1737
1737
|
{
|
@@ -2158,12 +2158,12 @@ var xi = {
|
|
2158
2158
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
2159
2159
|
*/
|
2160
2160
|
nextTabbableNode: function(ne) {
|
2161
|
-
var
|
2162
|
-
return g < 0 ?
|
2161
|
+
var we = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, g = j.indexOf(ne);
|
2162
|
+
return g < 0 ? we ? O.slice(O.indexOf(ne) + 1).find(function(me) {
|
2163
2163
|
return pt(me);
|
2164
2164
|
}) : O.slice(0, O.indexOf(ne)).reverse().find(function(me) {
|
2165
2165
|
return pt(me);
|
2166
|
-
}) : j[g + (
|
2166
|
+
}) : j[g + (we ? 1 : -1)];
|
2167
2167
|
}
|
2168
2168
|
};
|
2169
2169
|
}), a.tabbableGroups = a.containerGroups.filter(function(w) {
|
@@ -2178,7 +2178,7 @@ var xi = {
|
|
2178
2178
|
var j = w.activeElement;
|
2179
2179
|
if (j)
|
2180
2180
|
return j.shadowRoot && j.shadowRoot.activeElement !== null ? S(j.shadowRoot) : j;
|
2181
|
-
},
|
2181
|
+
}, D = function S(w) {
|
2182
2182
|
if (w !== !1 && w !== p(document)) {
|
2183
2183
|
if (!w || !w.focus) {
|
2184
2184
|
S(f());
|
@@ -2200,23 +2200,23 @@ var xi = {
|
|
2200
2200
|
if (Z < 0)
|
2201
2201
|
$ ? G = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : G = a.tabbableGroups[0].firstTabbableNode;
|
2202
2202
|
else if ($) {
|
2203
|
-
var h = vi(a.tabbableGroups, function(
|
2204
|
-
var
|
2205
|
-
return j ===
|
2203
|
+
var h = vi(a.tabbableGroups, function(ae) {
|
2204
|
+
var ke = ae.firstTabbableNode;
|
2205
|
+
return j === ke;
|
2206
2206
|
});
|
2207
2207
|
if (h < 0 && (ie.container === j || sn(j, o.tabbableOptions) && !pt(j, o.tabbableOptions) && !ie.nextTabbableNode(j, !1)) && (h = Z), h >= 0) {
|
2208
|
-
var ne = h === 0 ? a.tabbableGroups.length - 1 : h - 1,
|
2209
|
-
G = tt(j) >= 0 ?
|
2208
|
+
var ne = h === 0 ? a.tabbableGroups.length - 1 : h - 1, we = a.tabbableGroups[ne];
|
2209
|
+
G = tt(j) >= 0 ? we.lastTabbableNode : we.lastDomTabbableNode;
|
2210
2210
|
} else
|
2211
2211
|
Rt(O) || (G = ie.nextTabbableNode(j, !1));
|
2212
2212
|
} else {
|
2213
|
-
var g = vi(a.tabbableGroups, function(
|
2214
|
-
var
|
2215
|
-
return j ===
|
2213
|
+
var g = vi(a.tabbableGroups, function(ae) {
|
2214
|
+
var ke = ae.lastTabbableNode;
|
2215
|
+
return j === ke;
|
2216
2216
|
});
|
2217
2217
|
if (g < 0 && (ie.container === j || sn(j, o.tabbableOptions) && !pt(j, o.tabbableOptions) && !ie.nextTabbableNode(j)) && (g = Z), g >= 0) {
|
2218
|
-
var me = g === a.tabbableGroups.length - 1 ? 0 : g + 1,
|
2219
|
-
G = tt(j) >= 0 ?
|
2218
|
+
var me = g === a.tabbableGroups.length - 1 ? 0 : g + 1, Ne = a.tabbableGroups[me];
|
2219
|
+
G = tt(j) >= 0 ? Ne.firstTabbableNode : Ne.firstDomTabbableNode;
|
2220
2220
|
} else
|
2221
2221
|
Rt(O) || (G = ie.nextTabbableNode(j));
|
2222
2222
|
}
|
@@ -2269,7 +2269,7 @@ var xi = {
|
|
2269
2269
|
// outside the trap causing the focus escape we're trying to fix)
|
2270
2270
|
target: a.mostRecentlyFocusedNode,
|
2271
2271
|
isBackward: o.isKeyBackward(a.recentNavEvent)
|
2272
|
-
})),
|
2272
|
+
})), D(P || a.mostRecentlyFocusedNode || f());
|
2273
2273
|
}
|
2274
2274
|
a.recentNavEvent = void 0;
|
2275
2275
|
}, E = function(w) {
|
@@ -2279,7 +2279,7 @@ var xi = {
|
|
2279
2279
|
event: w,
|
2280
2280
|
isBackward: j
|
2281
2281
|
});
|
2282
|
-
O && (Rt(w) && w.preventDefault(),
|
2282
|
+
O && (Rt(w) && w.preventDefault(), D(O));
|
2283
2283
|
}, _ = function(w) {
|
2284
2284
|
if (iu(w) && zt(o.escapeDeactivates, w) !== !1) {
|
2285
2285
|
w.preventDefault(), l.deactivate();
|
@@ -2292,8 +2292,8 @@ var xi = {
|
|
2292
2292
|
}, M = function() {
|
2293
2293
|
if (a.active)
|
2294
2294
|
return xi.activateTrap(i, l), a.delayInitialFocusTimer = o.delayInitialFocus ? wi(function() {
|
2295
|
-
|
2296
|
-
}) :
|
2295
|
+
D(f());
|
2296
|
+
}) : D(f()), r.addEventListener("focusin", z, !0), r.addEventListener("mousedown", b, {
|
2297
2297
|
capture: !0,
|
2298
2298
|
passive: !1
|
2299
2299
|
}), r.addEventListener("touchstart", b, {
|
@@ -2316,8 +2316,8 @@ var xi = {
|
|
2316
2316
|
return $ === a.mostRecentlyFocusedNode;
|
2317
2317
|
});
|
2318
2318
|
});
|
2319
|
-
j &&
|
2320
|
-
}, q = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Y) : void 0,
|
2319
|
+
j && D(f());
|
2320
|
+
}, q = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Y) : void 0, ee = function() {
|
2321
2321
|
q && (q.disconnect(), a.active && !a.paused && a.containers.map(function(w) {
|
2322
2322
|
q.observe(w, {
|
2323
2323
|
subtree: !0,
|
@@ -2338,7 +2338,7 @@ var xi = {
|
|
2338
2338
|
var j = s(w, "onActivate"), O = s(w, "onPostActivate"), P = s(w, "checkCanFocusTrap");
|
2339
2339
|
P || m(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
|
2340
2340
|
var $ = function() {
|
2341
|
-
P && m(), M(),
|
2341
|
+
P && m(), M(), ee(), O == null || O();
|
2342
2342
|
};
|
2343
2343
|
return P ? (P(a.containers.concat()).then($, $), this) : ($(), this);
|
2344
2344
|
},
|
@@ -2350,12 +2350,12 @@ var xi = {
|
|
2350
2350
|
onPostDeactivate: o.onPostDeactivate,
|
2351
2351
|
checkCanReturnFocus: o.checkCanReturnFocus
|
2352
2352
|
}, w);
|
2353
|
-
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, L(), a.active = !1, a.paused = !1,
|
2353
|
+
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, L(), a.active = !1, a.paused = !1, ee(), xi.deactivateTrap(i, l);
|
2354
2354
|
var O = s(j, "onDeactivate"), P = s(j, "onPostDeactivate"), $ = s(j, "checkCanReturnFocus"), G = s(j, "returnFocus", "returnFocusOnDeactivate");
|
2355
2355
|
O == null || O();
|
2356
2356
|
var Z = function() {
|
2357
2357
|
wi(function() {
|
2358
|
-
G &&
|
2358
|
+
G && D(x(a.nodeFocusedBeforeActivation)), P == null || P();
|
2359
2359
|
});
|
2360
2360
|
};
|
2361
2361
|
return G && $ ? ($(x(a.nodeFocusedBeforeActivation)).then(Z, Z), this) : (Z(), this);
|
@@ -2364,26 +2364,26 @@ var xi = {
|
|
2364
2364
|
if (a.paused || !a.active)
|
2365
2365
|
return this;
|
2366
2366
|
var j = s(w, "onPause"), O = s(w, "onPostPause");
|
2367
|
-
return a.paused = !0, j == null || j(), L(),
|
2367
|
+
return a.paused = !0, j == null || j(), L(), ee(), O == null || O(), this;
|
2368
2368
|
},
|
2369
2369
|
unpause: function(w) {
|
2370
2370
|
if (!a.paused || !a.active)
|
2371
2371
|
return this;
|
2372
2372
|
var j = s(w, "onUnpause"), O = s(w, "onPostUnpause");
|
2373
|
-
return a.paused = !1, j == null || j(), m(), M(),
|
2373
|
+
return a.paused = !1, j == null || j(), m(), M(), ee(), O == null || O(), this;
|
2374
2374
|
},
|
2375
2375
|
updateContainerElements: function(w) {
|
2376
2376
|
var j = [].concat(w).filter(Boolean);
|
2377
2377
|
return a.containers = j.map(function(O) {
|
2378
2378
|
return typeof O == "string" ? r.querySelector(O) : O;
|
2379
|
-
}), a.active && m(),
|
2379
|
+
}), a.active && m(), ee(), this;
|
2380
2380
|
}
|
2381
2381
|
}, l.updateContainerElements(t), l;
|
2382
2382
|
};
|
2383
2383
|
const uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2384
2384
|
__proto__: null,
|
2385
2385
|
createFocusTrap: su
|
2386
|
-
}, Symbol.toStringTag, { value: "Module" })), cu = /* @__PURE__ */
|
2386
|
+
}, Symbol.toStringTag, { value: "Module" })), cu = /* @__PURE__ */ No(uu), pu = /* @__PURE__ */ No(Js);
|
2387
2387
|
function vt(e) {
|
2388
2388
|
"@babel/helpers - typeof";
|
2389
2389
|
return vt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
@@ -2494,8 +2494,8 @@ var rn = nt, H = B, xu = cu, wu = xu.createFocusTrap, vu = pu, Tu = vu.isFocusab
|
|
2494
2494
|
}
|
2495
2495
|
var p = u;
|
2496
2496
|
if (typeof u == "string") {
|
2497
|
-
var
|
2498
|
-
if (p = (
|
2497
|
+
var D;
|
2498
|
+
if (p = (D = this.getDocument()) === null || D === void 0 ? void 0 : D.querySelector(u), !p)
|
2499
2499
|
throw new Error("`".concat(l, "` as selector refers to no known node"));
|
2500
2500
|
}
|
2501
2501
|
return p;
|
@@ -2718,7 +2718,7 @@ Cr.defaultProps = {
|
|
2718
2718
|
_createFocusTrap: wu
|
2719
2719
|
};
|
2720
2720
|
var Du = Cr;
|
2721
|
-
const
|
2721
|
+
const Iu = /* @__PURE__ */ it(Du);
|
2722
2722
|
function Ar({
|
2723
2723
|
style: e,
|
2724
2724
|
className: t,
|
@@ -2728,7 +2728,7 @@ function Ar({
|
|
2728
2728
|
}) {
|
2729
2729
|
const o = ot(), a = We(null);
|
2730
2730
|
return /* @__PURE__ */ v.jsx(
|
2731
|
-
|
2731
|
+
Iu,
|
2732
2732
|
{
|
2733
2733
|
focusTrapOptions: {
|
2734
2734
|
clickOutsideDeactivates: !0,
|
@@ -2791,14 +2791,14 @@ const Wo = Object.freeze(
|
|
2791
2791
|
body: "",
|
2792
2792
|
hidden: !1
|
2793
2793
|
});
|
2794
|
-
function
|
2794
|
+
function Nu(e, t) {
|
2795
2795
|
const n = {};
|
2796
2796
|
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
2797
2797
|
const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
2798
2798
|
return r && (n.rotate = r), n;
|
2799
2799
|
}
|
2800
2800
|
function Di(e, t) {
|
2801
|
-
const n =
|
2801
|
+
const n = Nu(e, t);
|
2802
2802
|
for (const r in fr)
|
2803
2803
|
r in Mn ? r in e && !(r in n) && (n[r] = Mn[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
2804
2804
|
return n;
|
@@ -2916,7 +2916,7 @@ function Zo(e) {
|
|
2916
2916
|
}
|
2917
2917
|
return t;
|
2918
2918
|
}
|
2919
|
-
const
|
2919
|
+
const Ii = /* @__PURE__ */ Object.create(null);
|
2920
2920
|
function Cu(e, t) {
|
2921
2921
|
return {
|
2922
2922
|
provider: e,
|
@@ -2926,7 +2926,7 @@ function Cu(e, t) {
|
|
2926
2926
|
};
|
2927
2927
|
}
|
2928
2928
|
function ht(e, t) {
|
2929
|
-
const n =
|
2929
|
+
const n = Ii[e] || (Ii[e] = /* @__PURE__ */ Object.create(null));
|
2930
2930
|
return n[t] || (n[t] = Cu(e, t));
|
2931
2931
|
}
|
2932
2932
|
function Or(e, t) {
|
@@ -2946,7 +2946,7 @@ let $t = !1;
|
|
2946
2946
|
function Xo(e) {
|
2947
2947
|
return typeof e == "boolean" && ($t = e), $t;
|
2948
2948
|
}
|
2949
|
-
function
|
2949
|
+
function Ni(e) {
|
2950
2950
|
const t = typeof e == "string" ? vn(e, !0, $t) : e;
|
2951
2951
|
if (t) {
|
2952
2952
|
const n = ht(t.provider, t.prefix), r = t.name;
|
@@ -3089,10 +3089,10 @@ function Uu(e, t) {
|
|
3089
3089
|
Ru(k) || (m[x] = k.toString());
|
3090
3090
|
};
|
3091
3091
|
p("width", c), p("height", f);
|
3092
|
-
const
|
3093
|
-
return m.viewBox =
|
3092
|
+
const D = [i.left, i.top, s, u];
|
3093
|
+
return m.viewBox = D.join(" "), {
|
3094
3094
|
attributes: m,
|
3095
|
-
viewBox:
|
3095
|
+
viewBox: D,
|
3096
3096
|
body: o
|
3097
3097
|
};
|
3098
3098
|
}
|
@@ -3384,11 +3384,11 @@ function ac(e, t, n, r) {
|
|
3384
3384
|
const l = Date.now();
|
3385
3385
|
let s = "pending", u = 0, c, f = null, m = [], p = [];
|
3386
3386
|
typeof r == "function" && p.push(r);
|
3387
|
-
function
|
3387
|
+
function D() {
|
3388
3388
|
f && (clearTimeout(f), f = null);
|
3389
3389
|
}
|
3390
3390
|
function x() {
|
3391
|
-
s === "pending" && (s = "aborted"),
|
3391
|
+
s === "pending" && (s = "aborted"), D(), m.forEach((M) => {
|
3392
3392
|
M.status === "pending" && (M.status = "aborted");
|
3393
3393
|
}), m = [];
|
3394
3394
|
}
|
@@ -3418,7 +3418,7 @@ function ac(e, t, n, r) {
|
|
3418
3418
|
}
|
3419
3419
|
function _(M, L, Y) {
|
3420
3420
|
const q = L !== "success";
|
3421
|
-
switch (m = m.filter((
|
3421
|
+
switch (m = m.filter((ee) => ee !== M), s) {
|
3422
3422
|
case "pending":
|
3423
3423
|
break;
|
3424
3424
|
case "failed":
|
@@ -3436,23 +3436,23 @@ function ac(e, t, n, r) {
|
|
3436
3436
|
c = Y, m.length || (a.length ? Q() : z());
|
3437
3437
|
return;
|
3438
3438
|
}
|
3439
|
-
if (
|
3440
|
-
const
|
3441
|
-
|
3439
|
+
if (D(), E(), !e.random) {
|
3440
|
+
const ee = e.resources.indexOf(M.resource);
|
3441
|
+
ee !== -1 && ee !== e.index && (e.index = ee);
|
3442
3442
|
}
|
3443
|
-
s = "completed", p.forEach((
|
3444
|
-
|
3443
|
+
s = "completed", p.forEach((ee) => {
|
3444
|
+
ee(Y);
|
3445
3445
|
});
|
3446
3446
|
}
|
3447
3447
|
function Q() {
|
3448
3448
|
if (s !== "pending")
|
3449
3449
|
return;
|
3450
|
-
|
3450
|
+
D();
|
3451
3451
|
const M = a.shift();
|
3452
3452
|
if (M === void 0) {
|
3453
3453
|
if (m.length) {
|
3454
3454
|
f = setTimeout(() => {
|
3455
|
-
|
3455
|
+
D(), s === "pending" && (E(), z());
|
3456
3456
|
}, e.timeout);
|
3457
3457
|
return;
|
3458
3458
|
}
|
@@ -3809,7 +3809,7 @@ function Dc(e) {
|
|
3809
3809
|
return 'url("' + Tc(e) + '")';
|
3810
3810
|
}
|
3811
3811
|
let Bt;
|
3812
|
-
function
|
3812
|
+
function Ic() {
|
3813
3813
|
try {
|
3814
3814
|
Bt = window.trustedTypes.createPolicy("iconify", {
|
3815
3815
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
@@ -3819,8 +3819,8 @@ function Nc() {
|
|
3819
3819
|
Bt = null;
|
3820
3820
|
}
|
3821
3821
|
}
|
3822
|
-
function
|
3823
|
-
return Bt === void 0 &&
|
3822
|
+
function Nc(e) {
|
3823
|
+
return Bt === void 0 && Ic(), Bt ? Bt.createHTML(e) : e;
|
3824
3824
|
}
|
3825
3825
|
const sa = {
|
3826
3826
|
...Jo,
|
@@ -3920,10 +3920,10 @@ const Cc = (e, t, n) => {
|
|
3920
3920
|
}, Object.assign(s, c);
|
3921
3921
|
let k = 0, b = t.id;
|
3922
3922
|
return typeof b == "string" && (b = b.replace(/-/g, "_")), s.dangerouslySetInnerHTML = {
|
3923
|
-
__html:
|
3923
|
+
__html: Nc(Hu(u.body, b ? () => b + "ID" + k++ : "iconifyReact"))
|
3924
3924
|
}, sr("svg", s);
|
3925
3925
|
}
|
3926
|
-
const { body: f, width: m, height: p } = e,
|
3926
|
+
const { body: f, width: m, height: p } = e, D = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), x = wc(f, {
|
3927
3927
|
...c,
|
3928
3928
|
width: m + "",
|
3929
3929
|
height: p + ""
|
@@ -3934,7 +3934,7 @@ const Cc = (e, t, n) => {
|
|
3934
3934
|
width: _i(c.width),
|
3935
3935
|
height: _i(c.height),
|
3936
3936
|
...jc,
|
3937
|
-
...
|
3937
|
+
...D ? br : ua,
|
3938
3938
|
...l
|
3939
3939
|
}, sr("span", s);
|
3940
3940
|
};
|
@@ -3976,16 +3976,16 @@ function ca(e) {
|
|
3976
3976
|
const [t, n] = ye(!!e.ssr), [r, i] = ye({});
|
3977
3977
|
function o(p) {
|
3978
3978
|
if (p) {
|
3979
|
-
const
|
3980
|
-
if (typeof
|
3979
|
+
const D = e.icon;
|
3980
|
+
if (typeof D == "object")
|
3981
3981
|
return {
|
3982
3982
|
name: "",
|
3983
|
-
data:
|
3983
|
+
data: D
|
3984
3984
|
};
|
3985
|
-
const x =
|
3985
|
+
const x = Ni(D);
|
3986
3986
|
if (x)
|
3987
3987
|
return {
|
3988
|
-
name:
|
3988
|
+
name: D,
|
3989
3989
|
data: x
|
3990
3990
|
};
|
3991
3991
|
}
|
@@ -4004,28 +4004,28 @@ function ca(e) {
|
|
4004
4004
|
}
|
4005
4005
|
function c() {
|
4006
4006
|
var p;
|
4007
|
-
const
|
4008
|
-
if (typeof
|
4007
|
+
const D = e.icon;
|
4008
|
+
if (typeof D == "object") {
|
4009
4009
|
u({
|
4010
4010
|
name: "",
|
4011
|
-
data:
|
4011
|
+
data: D
|
4012
4012
|
});
|
4013
4013
|
return;
|
4014
4014
|
}
|
4015
|
-
const x =
|
4015
|
+
const x = Ni(D);
|
4016
4016
|
if (u({
|
4017
|
-
name:
|
4017
|
+
name: D,
|
4018
4018
|
data: x
|
4019
4019
|
}))
|
4020
4020
|
if (x === void 0) {
|
4021
|
-
const k = mc([
|
4021
|
+
const k = mc([D], c);
|
4022
4022
|
i({
|
4023
4023
|
callback: k
|
4024
4024
|
});
|
4025
4025
|
} else
|
4026
|
-
x && ((p = e.onLoad) === null || p === void 0 || p.call(e,
|
4026
|
+
x && ((p = e.onLoad) === null || p === void 0 || p.call(e, D));
|
4027
4027
|
}
|
4028
|
-
|
4028
|
+
Me(() => (n(!0), s), []), Me(() => {
|
4029
4029
|
t && c();
|
4030
4030
|
}, [e.icon, t]);
|
4031
4031
|
const { name: f, data: m } = a;
|
@@ -4034,11 +4034,11 @@ function ca(e) {
|
|
4034
4034
|
...m
|
4035
4035
|
}, e, f) : e.children ? e.children : sr("span", {});
|
4036
4036
|
}
|
4037
|
-
const rt =
|
4037
|
+
const rt = Io((e, t) => ca({
|
4038
4038
|
...e,
|
4039
4039
|
_ref: t
|
4040
4040
|
}));
|
4041
|
-
|
4041
|
+
Io((e, t) => ca({
|
4042
4042
|
inline: !0,
|
4043
4043
|
...e,
|
4044
4044
|
_ref: t
|
@@ -4207,8 +4207,8 @@ function da({
|
|
4207
4207
|
setIsMounted: r,
|
4208
4208
|
onClose: i
|
4209
4209
|
}) {
|
4210
|
-
var s, u, c, f, m, p,
|
4211
|
-
const { primaryColor: o, conversationScreen: a } =
|
4210
|
+
var s, u, c, f, m, p, D, x, k;
|
4211
|
+
const { primaryColor: o, conversationScreen: a } = Le(_e), l = ot();
|
4212
4212
|
return /* @__PURE__ */ v.jsxs(
|
4213
4213
|
"div",
|
4214
4214
|
{
|
@@ -4245,7 +4245,7 @@ function da({
|
|
4245
4245
|
Oc,
|
4246
4246
|
{
|
4247
4247
|
backgroundColor: (p = a.header.logo.style) == null ? void 0 : p.backgroundColor,
|
4248
|
-
textColor: (
|
4248
|
+
textColor: (D = a.header.logo.style) == null ? void 0 : D.color
|
4249
4249
|
}
|
4250
4250
|
),
|
4251
4251
|
/* @__PURE__ */ v.jsx(
|
@@ -4317,7 +4317,7 @@ function Pi(e) {
|
|
4317
4317
|
function Ri(e) {
|
4318
4318
|
return e && typeof e == "number" ? e : 1;
|
4319
4319
|
}
|
4320
|
-
class
|
4320
|
+
class Qe extends Error {
|
4321
4321
|
/**
|
4322
4322
|
* Create a message for `reason` at `place` from `origin`.
|
4323
4323
|
*
|
@@ -4351,17 +4351,17 @@ class Ue extends Error {
|
|
4351
4351
|
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;
|
4352
4352
|
}
|
4353
4353
|
}
|
4354
|
-
|
4355
|
-
|
4356
|
-
|
4357
|
-
|
4358
|
-
|
4359
|
-
|
4360
|
-
|
4361
|
-
|
4362
|
-
|
4363
|
-
|
4364
|
-
|
4354
|
+
Qe.prototype.file = "";
|
4355
|
+
Qe.prototype.name = "";
|
4356
|
+
Qe.prototype.reason = "";
|
4357
|
+
Qe.prototype.message = "";
|
4358
|
+
Qe.prototype.stack = "";
|
4359
|
+
Qe.prototype.fatal = null;
|
4360
|
+
Qe.prototype.column = null;
|
4361
|
+
Qe.prototype.line = null;
|
4362
|
+
Qe.prototype.source = null;
|
4363
|
+
Qe.prototype.ruleId = null;
|
4364
|
+
Qe.prototype.position = null;
|
4365
4365
|
const qe = { basename: _c, dirname: Fc, extname: Pc, join: Rc, sep: "/" };
|
4366
4366
|
function _c(e, t) {
|
4367
4367
|
if (t !== void 0 && typeof t != "string")
|
@@ -4673,7 +4673,7 @@ class ga {
|
|
4673
4673
|
* Message.
|
4674
4674
|
*/
|
4675
4675
|
message(t, n, r) {
|
4676
|
-
const i = new
|
4676
|
+
const i = new Qe(t, n, r);
|
4677
4677
|
return this.path && (i.name = this.path + ":" + i.name, i.file = this.path), i.fatal = !1, this.messages.push(i), i;
|
4678
4678
|
}
|
4679
4679
|
/**
|
@@ -4844,7 +4844,7 @@ const Zc = ba().freeze(), ya = {}.hasOwnProperty;
|
|
4844
4844
|
function ba() {
|
4845
4845
|
const e = Wc(), t = [];
|
4846
4846
|
let n = {}, r, i = -1;
|
4847
|
-
return o.data = a, o.Parser = void 0, o.Compiler = void 0, o.freeze = l, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = f, o.runSync = m, o.process = p, o.processSync =
|
4847
|
+
return o.data = a, o.Parser = void 0, o.Compiler = void 0, o.freeze = l, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = f, o.runSync = m, o.process = p, o.processSync = D, o;
|
4848
4848
|
function o() {
|
4849
4849
|
const x = ba();
|
4850
4850
|
let k = -1;
|
@@ -4961,7 +4961,7 @@ function ba() {
|
|
4961
4961
|
}
|
4962
4962
|
}
|
4963
4963
|
}
|
4964
|
-
function
|
4964
|
+
function D(x) {
|
4965
4965
|
let k;
|
4966
4966
|
o.freeze(), er("processSync", o.Parser), tr("processSync", o.Compiler);
|
4967
4967
|
const b = Ft(x);
|
@@ -5055,7 +5055,7 @@ function Ge(e, t, n, r) {
|
|
5055
5055
|
for (n && e.splice(t, n); o < r.length; )
|
5056
5056
|
a = r.slice(o, o + 1e4), a.unshift(t, 0), e.splice(...a), o += 1e4, t += 1e4;
|
5057
5057
|
}
|
5058
|
-
function
|
5058
|
+
function Be(e, t) {
|
5059
5059
|
return e.length > 0 ? (Ge(e, e.length, 0, t), e) : t;
|
5060
5060
|
}
|
5061
5061
|
const Ji = {}.hasOwnProperty;
|
@@ -5090,7 +5090,7 @@ function op(e, t) {
|
|
5090
5090
|
(t[n].add === "after" ? e : r).push(t[n]);
|
5091
5091
|
Ge(e, 0, 0, r);
|
5092
5092
|
}
|
5093
|
-
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]/, Ve = at(/[A-Za-z]/),
|
5093
|
+
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]/, Ve = at(/[A-Za-z]/), ze = at(/[\dA-Za-z]/), lp = at(/[#-'*+\--9=?A-Z^-~]/);
|
5094
5094
|
function vr(e) {
|
5095
5095
|
return (
|
5096
5096
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -5102,10 +5102,10 @@ const Tr = at(/\d/), sp = at(/[\dA-Fa-f]/), up = at(/[!-/:-@[-`{-~]/);
|
|
5102
5102
|
function V(e) {
|
5103
5103
|
return e !== null && e < -2;
|
5104
5104
|
}
|
5105
|
-
function
|
5105
|
+
function Ce(e) {
|
5106
5106
|
return e !== null && (e < 0 || e === 32);
|
5107
5107
|
}
|
5108
|
-
function
|
5108
|
+
function oe(e) {
|
5109
5109
|
return e === -2 || e === -1 || e === 32;
|
5110
5110
|
}
|
5111
5111
|
const cp = at(ap), pp = at(/\s/);
|
@@ -5115,15 +5115,15 @@ function at(e) {
|
|
5115
5115
|
return n !== null && e.test(String.fromCharCode(n));
|
5116
5116
|
}
|
5117
5117
|
}
|
5118
|
-
function
|
5118
|
+
function de(e, t, n, r) {
|
5119
5119
|
const i = r ? r - 1 : Number.POSITIVE_INFINITY;
|
5120
5120
|
let o = 0;
|
5121
5121
|
return a;
|
5122
5122
|
function a(s) {
|
5123
|
-
return
|
5123
|
+
return oe(s) ? (e.enter(n), l(s)) : t(s);
|
5124
5124
|
}
|
5125
5125
|
function l(s) {
|
5126
|
-
return
|
5126
|
+
return oe(s) && o++ < i ? (e.consume(s), l) : (e.exit(n), t(s));
|
5127
5127
|
}
|
5128
5128
|
}
|
5129
5129
|
const fp = {
|
@@ -5142,7 +5142,7 @@ function dp(e) {
|
|
5142
5142
|
e.consume(l);
|
5143
5143
|
return;
|
5144
5144
|
}
|
5145
|
-
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"),
|
5145
|
+
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), de(e, t, "linePrefix");
|
5146
5146
|
}
|
5147
5147
|
function i(l) {
|
5148
5148
|
return e.enter("paragraph"), o(l);
|
@@ -5210,7 +5210,7 @@ function gp(e) {
|
|
5210
5210
|
if (!i)
|
5211
5211
|
return m(E);
|
5212
5212
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
5213
|
-
return
|
5213
|
+
return D(E);
|
5214
5214
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
5215
5215
|
}
|
5216
5216
|
return t.containerState = {}, e.check(
|
@@ -5223,19 +5223,19 @@ function gp(e) {
|
|
5223
5223
|
return i && z(), b(r), m(E);
|
5224
5224
|
}
|
5225
5225
|
function f(E) {
|
5226
|
-
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset,
|
5226
|
+
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, D(E);
|
5227
5227
|
}
|
5228
5228
|
function m(E) {
|
5229
5229
|
return t.containerState = {}, e.attempt(
|
5230
5230
|
eo,
|
5231
5231
|
p,
|
5232
|
-
|
5232
|
+
D
|
5233
5233
|
)(E);
|
5234
5234
|
}
|
5235
5235
|
function p(E) {
|
5236
5236
|
return r++, n.push([t.currentConstruct, t.containerState]), m(E);
|
5237
5237
|
}
|
5238
|
-
function
|
5238
|
+
function D(E) {
|
5239
5239
|
if (E === null) {
|
5240
5240
|
i && z(), b(0), e.consume(E);
|
5241
5241
|
return;
|
@@ -5266,17 +5266,17 @@ function gp(e) {
|
|
5266
5266
|
)
|
5267
5267
|
return;
|
5268
5268
|
const L = t.events.length;
|
5269
|
-
let Y = L, q,
|
5269
|
+
let Y = L, q, ee;
|
5270
5270
|
for (; Y--; )
|
5271
5271
|
if (t.events[Y][0] === "exit" && t.events[Y][1].type === "chunkFlow") {
|
5272
5272
|
if (q) {
|
5273
|
-
|
5273
|
+
ee = t.events[Y][1].end;
|
5274
5274
|
break;
|
5275
5275
|
}
|
5276
5276
|
q = !0;
|
5277
5277
|
}
|
5278
5278
|
for (b(r), M = L; M < t.events.length; )
|
5279
|
-
t.events[M][1].end = Object.assign({},
|
5279
|
+
t.events[M][1].end = Object.assign({}, ee), M++;
|
5280
5280
|
Ge(
|
5281
5281
|
t.events,
|
5282
5282
|
Y + 1,
|
@@ -5298,7 +5298,7 @@ function gp(e) {
|
|
5298
5298
|
}
|
5299
5299
|
}
|
5300
5300
|
function mp(e, t, n) {
|
5301
|
-
return
|
5301
|
+
return de(
|
5302
5302
|
e,
|
5303
5303
|
e.attempt(this.parser.constructs.document, t, n),
|
5304
5304
|
"linePrefix",
|
@@ -5306,7 +5306,7 @@ function mp(e, t, n) {
|
|
5306
5306
|
);
|
5307
5307
|
}
|
5308
5308
|
function to(e) {
|
5309
|
-
if (e === null ||
|
5309
|
+
if (e === null || Ce(e) || pp(e))
|
5310
5310
|
return 1;
|
5311
5311
|
if (cp(e))
|
5312
5312
|
return 2;
|
@@ -5352,27 +5352,27 @@ function yp(e, t) {
|
|
5352
5352
|
type: s > 1 ? "strong" : "emphasis",
|
5353
5353
|
start: Object.assign({}, a.start),
|
5354
5354
|
end: Object.assign({}, l.end)
|
5355
|
-
}, 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 =
|
5355
|
+
}, 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 = Be(u, [
|
5356
5356
|
["enter", e[r][1], t],
|
5357
5357
|
["exit", e[r][1], t]
|
5358
|
-
])), u =
|
5358
|
+
])), u = Be(u, [
|
5359
5359
|
["enter", i, t],
|
5360
5360
|
["enter", a, t],
|
5361
5361
|
["exit", a, t],
|
5362
5362
|
["enter", o, t]
|
5363
|
-
]), u =
|
5363
|
+
]), u = Be(
|
5364
5364
|
u,
|
5365
5365
|
Ur(
|
5366
5366
|
t.parser.constructs.insideSpan.null,
|
5367
5367
|
e.slice(r + 1, n),
|
5368
5368
|
t
|
5369
5369
|
)
|
5370
|
-
), u =
|
5370
|
+
), u = Be(u, [
|
5371
5371
|
["exit", o, t],
|
5372
5372
|
["enter", l, t],
|
5373
5373
|
["exit", l, t],
|
5374
5374
|
["exit", i, t]
|
5375
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u =
|
5375
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Be(u, [
|
5376
5376
|
["enter", e[n][1], t],
|
5377
5377
|
["exit", e[n][1], t]
|
5378
5378
|
])) : c = 0, Ge(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
@@ -5414,10 +5414,10 @@ function xp(e, t, n) {
|
|
5414
5414
|
return Ve(p) ? (e.consume(p), a) : u(p);
|
5415
5415
|
}
|
5416
5416
|
function a(p) {
|
5417
|
-
return p === 43 || p === 45 || p === 46 ||
|
5417
|
+
return p === 43 || p === 45 || p === 46 || ze(p) ? (r = 1, l(p)) : u(p);
|
5418
5418
|
}
|
5419
5419
|
function l(p) {
|
5420
|
-
return p === 58 ? (e.consume(p), r = 0, s) : (p === 43 || p === 45 || p === 46 ||
|
5420
|
+
return p === 58 ? (e.consume(p), r = 0, s) : (p === 43 || p === 45 || p === 46 || ze(p)) && r++ < 32 ? (e.consume(p), l) : (r = 0, u(p));
|
5421
5421
|
}
|
5422
5422
|
function s(p) {
|
5423
5423
|
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || vr(p) ? n(p) : (e.consume(p), s);
|
@@ -5426,15 +5426,15 @@ function xp(e, t, n) {
|
|
5426
5426
|
return p === 64 ? (e.consume(p), c) : lp(p) ? (e.consume(p), u) : n(p);
|
5427
5427
|
}
|
5428
5428
|
function c(p) {
|
5429
|
-
return
|
5429
|
+
return ze(p) ? f(p) : n(p);
|
5430
5430
|
}
|
5431
5431
|
function f(p) {
|
5432
5432
|
return p === 46 ? (e.consume(p), r = 0, c) : p === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : m(p);
|
5433
5433
|
}
|
5434
5434
|
function m(p) {
|
5435
|
-
if ((p === 45 ||
|
5436
|
-
const
|
5437
|
-
return e.consume(p),
|
5435
|
+
if ((p === 45 || ze(p)) && r++ < 63) {
|
5436
|
+
const D = p === 45 ? m : f;
|
5437
|
+
return e.consume(p), D;
|
5438
5438
|
}
|
5439
5439
|
return n(p);
|
5440
5440
|
}
|
@@ -5446,7 +5446,7 @@ const Dn = {
|
|
5446
5446
|
function wp(e, t, n) {
|
5447
5447
|
return r;
|
5448
5448
|
function r(o) {
|
5449
|
-
return
|
5449
|
+
return oe(o) ? de(e, i, "linePrefix")(o) : i(o);
|
5450
5450
|
}
|
5451
5451
|
function i(o) {
|
5452
5452
|
return o === null || V(o) ? t(o) : n(o);
|
@@ -5473,14 +5473,14 @@ function vp(e, t, n) {
|
|
5473
5473
|
return n(a);
|
5474
5474
|
}
|
5475
5475
|
function o(a) {
|
5476
|
-
return
|
5476
|
+
return oe(a) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(a), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(a));
|
5477
5477
|
}
|
5478
5478
|
}
|
5479
5479
|
function Tp(e, t, n) {
|
5480
5480
|
const r = this;
|
5481
5481
|
return i;
|
5482
5482
|
function i(a) {
|
5483
|
-
return
|
5483
|
+
return oe(a) ? de(
|
5484
5484
|
e,
|
5485
5485
|
o,
|
5486
5486
|
"linePrefix",
|
@@ -5496,9 +5496,9 @@ function Dp(e) {
|
|
5496
5496
|
}
|
5497
5497
|
const wa = {
|
5498
5498
|
name: "characterEscape",
|
5499
|
-
tokenize:
|
5499
|
+
tokenize: Ip
|
5500
5500
|
};
|
5501
|
-
function
|
5501
|
+
function Ip(e, t, n) {
|
5502
5502
|
return r;
|
5503
5503
|
function r(o) {
|
5504
5504
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
@@ -5516,9 +5516,9 @@ function Br(e) {
|
|
5516
5516
|
}
|
5517
5517
|
const va = {
|
5518
5518
|
name: "characterReference",
|
5519
|
-
tokenize:
|
5519
|
+
tokenize: Np
|
5520
5520
|
};
|
5521
|
-
function
|
5521
|
+
function Np(e, t, n) {
|
5522
5522
|
const r = this;
|
5523
5523
|
let i = 0, o, a;
|
5524
5524
|
return l;
|
@@ -5526,7 +5526,7 @@ function Ip(e, t, n) {
|
|
5526
5526
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), s;
|
5527
5527
|
}
|
5528
5528
|
function s(f) {
|
5529
|
-
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a =
|
5529
|
+
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, a = ze, c(f));
|
5530
5530
|
}
|
5531
5531
|
function u(f) {
|
5532
5532
|
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, a = sp, c) : (e.enter("characterReferenceValue"), o = 7, a = Tr, c(f));
|
@@ -5534,7 +5534,7 @@ function Ip(e, t, n) {
|
|
5534
5534
|
function c(f) {
|
5535
5535
|
if (f === 59 && i) {
|
5536
5536
|
const m = e.exit("characterReferenceValue");
|
5537
|
-
return a ===
|
5537
|
+
return a === ze && !Br(r.sliceSerialize(m)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
5538
5538
|
}
|
5539
5539
|
return a(f) && i++ < o ? (e.consume(f), c) : n(f);
|
5540
5540
|
}
|
@@ -5562,7 +5562,7 @@ function kp(e, t, n) {
|
|
5562
5562
|
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);
|
5563
5563
|
}
|
5564
5564
|
function c(M) {
|
5565
|
-
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"),
|
5565
|
+
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), oe(M) ? de(e, f, "whitespace")(M) : f(M));
|
5566
5566
|
}
|
5567
5567
|
function f(M) {
|
5568
5568
|
return M === null || V(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(io, x, _)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
@@ -5570,15 +5570,15 @@ function kp(e, t, n) {
|
|
5570
5570
|
}), m(M));
|
5571
5571
|
}
|
5572
5572
|
function m(M) {
|
5573
|
-
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(M)) :
|
5573
|
+
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(M)) : oe(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), de(e, p, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
|
5574
5574
|
}
|
5575
5575
|
function p(M) {
|
5576
5576
|
return M === null || V(M) ? f(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
5577
5577
|
contentType: "string"
|
5578
|
-
}),
|
5578
|
+
}), D(M));
|
5579
5579
|
}
|
5580
|
-
function
|
5581
|
-
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(M)) : M === 96 && M === l ? n(M) : (e.consume(M),
|
5580
|
+
function D(M) {
|
5581
|
+
return M === null || V(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(M)) : M === 96 && M === l ? n(M) : (e.consume(M), D);
|
5582
5582
|
}
|
5583
5583
|
function x(M) {
|
5584
5584
|
return e.attempt(i, _, k)(M);
|
@@ -5587,7 +5587,7 @@ function kp(e, t, n) {
|
|
5587
5587
|
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), b;
|
5588
5588
|
}
|
5589
5589
|
function b(M) {
|
5590
|
-
return o > 0 &&
|
5590
|
+
return o > 0 && oe(M) ? de(
|
5591
5591
|
e,
|
5592
5592
|
z,
|
5593
5593
|
"linePrefix",
|
@@ -5605,12 +5605,12 @@ function kp(e, t, n) {
|
|
5605
5605
|
}
|
5606
5606
|
function Q(M, L, Y) {
|
5607
5607
|
let q = 0;
|
5608
|
-
return
|
5609
|
-
function
|
5608
|
+
return ee;
|
5609
|
+
function ee(P) {
|
5610
5610
|
return M.enter("lineEnding"), M.consume(P), M.exit("lineEnding"), S;
|
5611
5611
|
}
|
5612
5612
|
function S(P) {
|
5613
|
-
return M.enter("codeFencedFence"),
|
5613
|
+
return M.enter("codeFencedFence"), oe(P) ? de(
|
5614
5614
|
M,
|
5615
5615
|
w,
|
5616
5616
|
"linePrefix",
|
@@ -5621,7 +5621,7 @@ function kp(e, t, n) {
|
|
5621
5621
|
return P === l ? (M.enter("codeFencedFenceSequence"), j(P)) : Y(P);
|
5622
5622
|
}
|
5623
5623
|
function j(P) {
|
5624
|
-
return P === l ? (q++, M.consume(P), j) : q >= a ? (M.exit("codeFencedFenceSequence"),
|
5624
|
+
return P === l ? (q++, M.consume(P), j) : q >= a ? (M.exit("codeFencedFenceSequence"), oe(P) ? de(M, O, "whitespace")(P) : O(P)) : Y(P);
|
5625
5625
|
}
|
5626
5626
|
function O(P) {
|
5627
5627
|
return P === null || V(P) ? (M.exit("codeFencedFence"), L(P)) : Y(P);
|
@@ -5649,7 +5649,7 @@ function Cp(e, t, n) {
|
|
5649
5649
|
const r = this;
|
5650
5650
|
return i;
|
5651
5651
|
function i(u) {
|
5652
|
-
return e.enter("codeIndented"),
|
5652
|
+
return e.enter("codeIndented"), de(e, o, "linePrefix", 4 + 1)(u);
|
5653
5653
|
}
|
5654
5654
|
function o(u) {
|
5655
5655
|
const c = r.events[r.events.length - 1];
|
@@ -5669,7 +5669,7 @@ function Ap(e, t, n) {
|
|
5669
5669
|
const r = this;
|
5670
5670
|
return i;
|
5671
5671
|
function i(a) {
|
5672
|
-
return r.parser.lazy[r.now().line] ? n(a) : V(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) :
|
5672
|
+
return r.parser.lazy[r.now().line] ? n(a) : V(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : de(e, o, "linePrefix", 4 + 1)(a);
|
5673
5673
|
}
|
5674
5674
|
function o(a) {
|
5675
5675
|
const l = r.events[r.events.length - 1];
|
@@ -5740,7 +5740,7 @@ function _p(e, t) {
|
|
5740
5740
|
const n = e[t][1], r = e[t][2];
|
5741
5741
|
let i = t - 1;
|
5742
5742
|
const o = [], a = n._tokenizer || r.parser[n.contentType](n.start), l = a.events, s = [], u = {};
|
5743
|
-
let c, f, m = -1, p = n,
|
5743
|
+
let c, f, m = -1, p = n, D = 0, x = 0;
|
5744
5744
|
const k = [x];
|
5745
5745
|
for (; p; ) {
|
5746
5746
|
for (; e[++i][1] !== p; )
|
@@ -5755,7 +5755,7 @@ function _p(e, t) {
|
|
5755
5755
|
s.unshift([z, z + b.length - 1]), Ge(e, z, 2, b);
|
5756
5756
|
}
|
5757
5757
|
for (m = -1; ++m < s.length; )
|
5758
|
-
u[
|
5758
|
+
u[D + s[m][0]] = D + s[m][1], D += s[m][1] - s[m][0] - 1;
|
5759
5759
|
return u;
|
5760
5760
|
}
|
5761
5761
|
const Fp = {
|
@@ -5797,7 +5797,7 @@ function Bp(e, t, n) {
|
|
5797
5797
|
const r = this;
|
5798
5798
|
return i;
|
5799
5799
|
function i(a) {
|
5800
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"),
|
5800
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), de(e, o, "linePrefix");
|
5801
5801
|
}
|
5802
5802
|
function o(a) {
|
5803
5803
|
if (a === null || V(a))
|
@@ -5821,19 +5821,19 @@ function Da(e, t, n, r, i, o, a, l, s) {
|
|
5821
5821
|
}), p(b));
|
5822
5822
|
}
|
5823
5823
|
function p(b) {
|
5824
|
-
return b === 62 ? (e.exit("chunkString"), e.exit(l), m(b)) : b === null || b === 60 || V(b) ? n(b) : (e.consume(b), b === 92 ?
|
5824
|
+
return b === 62 ? (e.exit("chunkString"), e.exit(l), m(b)) : b === null || b === 60 || V(b) ? n(b) : (e.consume(b), b === 92 ? D : p);
|
5825
5825
|
}
|
5826
|
-
function
|
5826
|
+
function D(b) {
|
5827
5827
|
return b === 60 || b === 62 || b === 92 ? (e.consume(b), p) : p(b);
|
5828
5828
|
}
|
5829
5829
|
function x(b) {
|
5830
|
-
return !c && (b === null || b === 41 ||
|
5830
|
+
return !c && (b === null || b === 41 || Ce(b)) ? (e.exit("chunkString"), e.exit(l), e.exit(a), e.exit(r), t(b)) : c < u && b === 40 ? (e.consume(b), c++, x) : b === 41 ? (e.consume(b), c--, x) : b === null || b === 32 || b === 40 || vr(b) ? n(b) : (e.consume(b), b === 92 ? k : x);
|
5831
5831
|
}
|
5832
5832
|
function k(b) {
|
5833
5833
|
return b === 40 || b === 41 || b === 92 ? (e.consume(b), x) : x(b);
|
5834
5834
|
}
|
5835
5835
|
}
|
5836
|
-
function
|
5836
|
+
function Ia(e, t, n, r, i, o) {
|
5837
5837
|
const a = this;
|
5838
5838
|
let l = 0, s;
|
5839
5839
|
return u;
|
@@ -5851,13 +5851,13 @@ function Na(e, t, n, r, i, o) {
|
|
5851
5851
|
}), f(p));
|
5852
5852
|
}
|
5853
5853
|
function f(p) {
|
5854
|
-
return p === null || p === 91 || p === 93 || V(p) || l++ > 999 ? (e.exit("chunkString"), c(p)) : (e.consume(p), s || (s = !
|
5854
|
+
return p === null || p === 91 || p === 93 || V(p) || l++ > 999 ? (e.exit("chunkString"), c(p)) : (e.consume(p), s || (s = !oe(p)), p === 92 ? m : f);
|
5855
5855
|
}
|
5856
5856
|
function m(p) {
|
5857
5857
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), l++, f) : f(p);
|
5858
5858
|
}
|
5859
5859
|
}
|
5860
|
-
function
|
5860
|
+
function Na(e, t, n, r, i, o) {
|
5861
5861
|
let a;
|
5862
5862
|
return l;
|
5863
5863
|
function l(m) {
|
@@ -5867,7 +5867,7 @@ function Ia(e, t, n, r, i, o) {
|
|
5867
5867
|
return m === a ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), u(m));
|
5868
5868
|
}
|
5869
5869
|
function u(m) {
|
5870
|
-
return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : V(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"),
|
5870
|
+
return m === a ? (e.exit(o), s(a)) : m === null ? n(m) : V(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), de(e, u, "linePrefix")) : (e.enter("chunkString", {
|
5871
5871
|
contentType: "string"
|
5872
5872
|
}), c(m));
|
5873
5873
|
}
|
@@ -5882,7 +5882,7 @@ function Yt(e, t) {
|
|
5882
5882
|
let n;
|
5883
5883
|
return r;
|
5884
5884
|
function r(i) {
|
5885
|
-
return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) :
|
5885
|
+
return V(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : oe(i) ? de(
|
5886
5886
|
e,
|
5887
5887
|
r,
|
5888
5888
|
n ? "linePrefix" : "lineSuffix"
|
@@ -5907,7 +5907,7 @@ function Hp(e, t, n) {
|
|
5907
5907
|
return e.enter("definition"), a(p);
|
5908
5908
|
}
|
5909
5909
|
function a(p) {
|
5910
|
-
return
|
5910
|
+
return Ia.call(
|
5911
5911
|
r,
|
5912
5912
|
e,
|
5913
5913
|
l,
|
@@ -5924,7 +5924,7 @@ function Hp(e, t, n) {
|
|
5924
5924
|
), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), s) : n(p);
|
5925
5925
|
}
|
5926
5926
|
function s(p) {
|
5927
|
-
return
|
5927
|
+
return Ce(p) ? Yt(e, u)(p) : u(p);
|
5928
5928
|
}
|
5929
5929
|
function u(p) {
|
5930
5930
|
return Da(
|
@@ -5943,7 +5943,7 @@ function Hp(e, t, n) {
|
|
5943
5943
|
return e.attempt(Yp, f, f)(p);
|
5944
5944
|
}
|
5945
5945
|
function f(p) {
|
5946
|
-
return
|
5946
|
+
return oe(p) ? de(e, m, "whitespace")(p) : m(p);
|
5947
5947
|
}
|
5948
5948
|
function m(p) {
|
5949
5949
|
return p === null || V(p) ? (e.exit("definition"), r.parser.defined.push(i), t(p)) : n(p);
|
@@ -5952,10 +5952,10 @@ function Hp(e, t, n) {
|
|
5952
5952
|
function $p(e, t, n) {
|
5953
5953
|
return r;
|
5954
5954
|
function r(l) {
|
5955
|
-
return
|
5955
|
+
return Ce(l) ? Yt(e, i)(l) : n(l);
|
5956
5956
|
}
|
5957
5957
|
function i(l) {
|
5958
|
-
return
|
5958
|
+
return Na(
|
5959
5959
|
e,
|
5960
5960
|
o,
|
5961
5961
|
n,
|
@@ -5965,7 +5965,7 @@ function $p(e, t, n) {
|
|
5965
5965
|
)(l);
|
5966
5966
|
}
|
5967
5967
|
function o(l) {
|
5968
|
-
return
|
5968
|
+
return oe(l) ? de(e, a, "whitespace")(l) : a(l);
|
5969
5969
|
}
|
5970
5970
|
function a(l) {
|
5971
5971
|
return l === null || V(l) ? t(l) : n(l);
|
@@ -6017,16 +6017,16 @@ function Zp(e, t, n) {
|
|
6017
6017
|
return e.enter("atxHeadingSequence"), a(c);
|
6018
6018
|
}
|
6019
6019
|
function a(c) {
|
6020
|
-
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null ||
|
6020
|
+
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || Ce(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
|
6021
6021
|
}
|
6022
6022
|
function l(c) {
|
6023
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) :
|
6023
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || V(c) ? (e.exit("atxHeading"), t(c)) : oe(c) ? de(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
6024
6024
|
}
|
6025
6025
|
function s(c) {
|
6026
6026
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), l(c));
|
6027
6027
|
}
|
6028
6028
|
function u(c) {
|
6029
|
-
return c === null || c === 35 ||
|
6029
|
+
return c === null || c === 35 || Ce(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), u);
|
6030
6030
|
}
|
6031
6031
|
}
|
6032
6032
|
const Xp = [
|
@@ -6124,62 +6124,62 @@ function nf(e, t, n) {
|
|
6124
6124
|
return g === 33 ? (e.consume(g), m) : g === 47 ? (e.consume(g), o = !0, x) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : h) : Ve(g) ? (e.consume(g), a = String.fromCharCode(g), k) : n(g);
|
6125
6125
|
}
|
6126
6126
|
function m(g) {
|
6127
|
-
return g === 45 ? (e.consume(g), i = 2, p) : g === 91 ? (e.consume(g), i = 5, l = 0,
|
6127
|
+
return g === 45 ? (e.consume(g), i = 2, p) : g === 91 ? (e.consume(g), i = 5, l = 0, D) : Ve(g) ? (e.consume(g), i = 4, r.interrupt ? t : h) : n(g);
|
6128
6128
|
}
|
6129
6129
|
function p(g) {
|
6130
6130
|
return g === 45 ? (e.consume(g), r.interrupt ? t : h) : n(g);
|
6131
6131
|
}
|
6132
|
-
function
|
6132
|
+
function D(g) {
|
6133
6133
|
const me = "CDATA[";
|
6134
|
-
return g === me.charCodeAt(l++) ? (e.consume(g), l === me.length ? r.interrupt ? t : w :
|
6134
|
+
return g === me.charCodeAt(l++) ? (e.consume(g), l === me.length ? r.interrupt ? t : w : D) : n(g);
|
6135
6135
|
}
|
6136
6136
|
function x(g) {
|
6137
6137
|
return Ve(g) ? (e.consume(g), a = String.fromCharCode(g), k) : n(g);
|
6138
6138
|
}
|
6139
6139
|
function k(g) {
|
6140
|
-
if (g === null || g === 47 || g === 62 ||
|
6141
|
-
const me = g === 47,
|
6142
|
-
return !me && !o && ao.includes(
|
6140
|
+
if (g === null || g === 47 || g === 62 || Ce(g)) {
|
6141
|
+
const me = g === 47, Ne = a.toLowerCase();
|
6142
|
+
return !me && !o && ao.includes(Ne) ? (i = 1, r.interrupt ? t(g) : w(g)) : Xp.includes(a.toLowerCase()) ? (i = 6, me ? (e.consume(g), b) : r.interrupt ? t(g) : w(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? z(g) : E(g));
|
6143
6143
|
}
|
6144
|
-
return g === 45 ||
|
6144
|
+
return g === 45 || ze(g) ? (e.consume(g), a += String.fromCharCode(g), k) : n(g);
|
6145
6145
|
}
|
6146
6146
|
function b(g) {
|
6147
6147
|
return g === 62 ? (e.consume(g), r.interrupt ? t : w) : n(g);
|
6148
6148
|
}
|
6149
6149
|
function z(g) {
|
6150
|
-
return
|
6150
|
+
return oe(g) ? (e.consume(g), z) : ee(g);
|
6151
6151
|
}
|
6152
6152
|
function E(g) {
|
6153
|
-
return g === 47 ? (e.consume(g),
|
6153
|
+
return g === 47 ? (e.consume(g), ee) : g === 58 || g === 95 || Ve(g) ? (e.consume(g), _) : oe(g) ? (e.consume(g), E) : ee(g);
|
6154
6154
|
}
|
6155
6155
|
function _(g) {
|
6156
|
-
return g === 45 || g === 46 || g === 58 || g === 95 ||
|
6156
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || ze(g) ? (e.consume(g), _) : Q(g);
|
6157
6157
|
}
|
6158
6158
|
function Q(g) {
|
6159
|
-
return g === 61 ? (e.consume(g), M) :
|
6159
|
+
return g === 61 ? (e.consume(g), M) : oe(g) ? (e.consume(g), Q) : E(g);
|
6160
6160
|
}
|
6161
6161
|
function M(g) {
|
6162
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), s = g, L) :
|
6162
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), s = g, L) : oe(g) ? (e.consume(g), M) : Y(g);
|
6163
6163
|
}
|
6164
6164
|
function L(g) {
|
6165
6165
|
return g === s ? (e.consume(g), s = null, q) : g === null || V(g) ? n(g) : (e.consume(g), L);
|
6166
6166
|
}
|
6167
6167
|
function Y(g) {
|
6168
|
-
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 ||
|
6168
|
+
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || Ce(g) ? Q(g) : (e.consume(g), Y);
|
6169
6169
|
}
|
6170
6170
|
function q(g) {
|
6171
|
-
return g === 47 || g === 62 ||
|
6171
|
+
return g === 47 || g === 62 || oe(g) ? E(g) : n(g);
|
6172
6172
|
}
|
6173
|
-
function
|
6173
|
+
function ee(g) {
|
6174
6174
|
return g === 62 ? (e.consume(g), S) : n(g);
|
6175
6175
|
}
|
6176
6176
|
function S(g) {
|
6177
|
-
return g === null || V(g) ? w(g) :
|
6177
|
+
return g === null || V(g) ? w(g) : oe(g) ? (e.consume(g), S) : n(g);
|
6178
6178
|
}
|
6179
6179
|
function w(g) {
|
6180
6180
|
return g === 45 && i === 2 ? (e.consume(g), $) : g === 60 && i === 1 ? (e.consume(g), G) : g === 62 && i === 4 ? (e.consume(g), ne) : g === 63 && i === 3 ? (e.consume(g), h) : g === 93 && i === 5 ? (e.consume(g), ie) : V(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
6181
6181
|
Jp,
|
6182
|
-
|
6182
|
+
we,
|
6183
6183
|
j
|
6184
6184
|
)(g)) : g === null || V(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), w);
|
6185
6185
|
}
|
@@ -6187,7 +6187,7 @@ function nf(e, t, n) {
|
|
6187
6187
|
return e.check(
|
6188
6188
|
ef,
|
6189
6189
|
O,
|
6190
|
-
|
6190
|
+
we
|
6191
6191
|
)(g);
|
6192
6192
|
}
|
6193
6193
|
function O(g) {
|
@@ -6216,9 +6216,9 @@ function nf(e, t, n) {
|
|
6216
6216
|
return g === 62 ? (e.consume(g), ne) : g === 45 && i === 2 ? (e.consume(g), h) : w(g);
|
6217
6217
|
}
|
6218
6218
|
function ne(g) {
|
6219
|
-
return g === null || V(g) ? (e.exit("htmlFlowData"),
|
6219
|
+
return g === null || V(g) ? (e.exit("htmlFlowData"), we(g)) : (e.consume(g), ne);
|
6220
6220
|
}
|
6221
|
-
function
|
6221
|
+
function we(g) {
|
6222
6222
|
return e.exit("htmlFlow"), t(g);
|
6223
6223
|
}
|
6224
6224
|
}
|
@@ -6253,7 +6253,7 @@ function lf(e, t, n) {
|
|
6253
6253
|
return h === 33 ? (e.consume(h), u) : h === 47 ? (e.consume(h), Q) : h === 63 ? (e.consume(h), E) : Ve(h) ? (e.consume(h), Y) : n(h);
|
6254
6254
|
}
|
6255
6255
|
function u(h) {
|
6256
|
-
return h === 45 ? (e.consume(h), c) : h === 91 ? (e.consume(h), o = 0,
|
6256
|
+
return h === 45 ? (e.consume(h), c) : h === 91 ? (e.consume(h), o = 0, D) : Ve(h) ? (e.consume(h), z) : n(h);
|
6257
6257
|
}
|
6258
6258
|
function c(h) {
|
6259
6259
|
return h === 45 ? (e.consume(h), p) : n(h);
|
@@ -6267,9 +6267,9 @@ function lf(e, t, n) {
|
|
6267
6267
|
function p(h) {
|
6268
6268
|
return h === 62 ? $(h) : h === 45 ? m(h) : f(h);
|
6269
6269
|
}
|
6270
|
-
function
|
6270
|
+
function D(h) {
|
6271
6271
|
const ne = "CDATA[";
|
6272
|
-
return h === ne.charCodeAt(o++) ? (e.consume(h), o === ne.length ? x :
|
6272
|
+
return h === ne.charCodeAt(o++) ? (e.consume(h), o === ne.length ? x : D) : n(h);
|
6273
6273
|
}
|
6274
6274
|
function x(h) {
|
6275
6275
|
return h === null ? n(h) : h === 93 ? (e.consume(h), k) : V(h) ? (a = x, G(h)) : (e.consume(h), x);
|
@@ -6293,34 +6293,34 @@ function lf(e, t, n) {
|
|
6293
6293
|
return Ve(h) ? (e.consume(h), M) : n(h);
|
6294
6294
|
}
|
6295
6295
|
function M(h) {
|
6296
|
-
return h === 45 ||
|
6296
|
+
return h === 45 || ze(h) ? (e.consume(h), M) : L(h);
|
6297
6297
|
}
|
6298
6298
|
function L(h) {
|
6299
|
-
return V(h) ? (a = L, G(h)) :
|
6299
|
+
return V(h) ? (a = L, G(h)) : oe(h) ? (e.consume(h), L) : $(h);
|
6300
6300
|
}
|
6301
6301
|
function Y(h) {
|
6302
|
-
return h === 45 ||
|
6302
|
+
return h === 45 || ze(h) ? (e.consume(h), Y) : h === 47 || h === 62 || Ce(h) ? q(h) : n(h);
|
6303
6303
|
}
|
6304
6304
|
function q(h) {
|
6305
|
-
return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || Ve(h) ? (e.consume(h),
|
6305
|
+
return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || Ve(h) ? (e.consume(h), ee) : V(h) ? (a = q, G(h)) : oe(h) ? (e.consume(h), q) : $(h);
|
6306
6306
|
}
|
6307
|
-
function
|
6308
|
-
return h === 45 || h === 46 || h === 58 || h === 95 ||
|
6307
|
+
function ee(h) {
|
6308
|
+
return h === 45 || h === 46 || h === 58 || h === 95 || ze(h) ? (e.consume(h), ee) : S(h);
|
6309
6309
|
}
|
6310
6310
|
function S(h) {
|
6311
|
-
return h === 61 ? (e.consume(h), w) : V(h) ? (a = S, G(h)) :
|
6311
|
+
return h === 61 ? (e.consume(h), w) : V(h) ? (a = S, G(h)) : oe(h) ? (e.consume(h), S) : q(h);
|
6312
6312
|
}
|
6313
6313
|
function w(h) {
|
6314
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), i = h, j) : V(h) ? (a = w, G(h)) :
|
6314
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), i = h, j) : V(h) ? (a = w, G(h)) : oe(h) ? (e.consume(h), w) : (e.consume(h), O);
|
6315
6315
|
}
|
6316
6316
|
function j(h) {
|
6317
6317
|
return h === i ? (e.consume(h), i = void 0, P) : h === null ? n(h) : V(h) ? (a = j, G(h)) : (e.consume(h), j);
|
6318
6318
|
}
|
6319
6319
|
function O(h) {
|
6320
|
-
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? n(h) : h === 47 || h === 62 ||
|
6320
|
+
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? n(h) : h === 47 || h === 62 || Ce(h) ? q(h) : (e.consume(h), O);
|
6321
6321
|
}
|
6322
6322
|
function P(h) {
|
6323
|
-
return h === 47 || h === 62 ||
|
6323
|
+
return h === 47 || h === 62 || Ce(h) ? q(h) : n(h);
|
6324
6324
|
}
|
6325
6325
|
function $(h) {
|
6326
6326
|
return h === 62 ? (e.consume(h), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(h);
|
@@ -6329,7 +6329,7 @@ function lf(e, t, n) {
|
|
6329
6329
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), Z;
|
6330
6330
|
}
|
6331
6331
|
function Z(h) {
|
6332
|
-
return
|
6332
|
+
return oe(h) ? de(
|
6333
6333
|
e,
|
6334
6334
|
ie,
|
6335
6335
|
"linePrefix",
|
@@ -6390,19 +6390,19 @@ function ff(e, t) {
|
|
6390
6390
|
return l = [
|
6391
6391
|
["enter", s, t],
|
6392
6392
|
["enter", u, t]
|
6393
|
-
], l =
|
6393
|
+
], l = Be(l, e.slice(o + 1, o + r + 3)), l = Be(l, [["enter", c, t]]), l = Be(
|
6394
6394
|
l,
|
6395
6395
|
Ur(
|
6396
6396
|
t.parser.constructs.insideSpan.null,
|
6397
6397
|
e.slice(o + r + 4, a - 3),
|
6398
6398
|
t
|
6399
6399
|
)
|
6400
|
-
), l =
|
6400
|
+
), l = Be(l, [
|
6401
6401
|
["exit", c, t],
|
6402
6402
|
e[a - 2],
|
6403
6403
|
e[a - 1],
|
6404
6404
|
["exit", u, t]
|
6405
|
-
]), l =
|
6405
|
+
]), l = Be(l, e.slice(a + 1)), l = Be(l, [["exit", s, t]]), Ge(e, o, e.length, l), e;
|
6406
6406
|
}
|
6407
6407
|
function df(e, t, n) {
|
6408
6408
|
const r = this;
|
@@ -6454,7 +6454,7 @@ function hf(e, t, n) {
|
|
6454
6454
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
|
6455
6455
|
}
|
6456
6456
|
function i(f) {
|
6457
|
-
return
|
6457
|
+
return Ce(f) ? Yt(e, o)(f) : o(f);
|
6458
6458
|
}
|
6459
6459
|
function o(f) {
|
6460
6460
|
return f === 41 ? c(f) : Da(
|
@@ -6470,13 +6470,13 @@ function hf(e, t, n) {
|
|
6470
6470
|
)(f);
|
6471
6471
|
}
|
6472
6472
|
function a(f) {
|
6473
|
-
return
|
6473
|
+
return Ce(f) ? Yt(e, s)(f) : c(f);
|
6474
6474
|
}
|
6475
6475
|
function l(f) {
|
6476
6476
|
return n(f);
|
6477
6477
|
}
|
6478
6478
|
function s(f) {
|
6479
|
-
return f === 34 || f === 39 || f === 40 ?
|
6479
|
+
return f === 34 || f === 39 || f === 40 ? Na(
|
6480
6480
|
e,
|
6481
6481
|
u,
|
6482
6482
|
n,
|
@@ -6486,7 +6486,7 @@ function hf(e, t, n) {
|
|
6486
6486
|
)(f) : c(f);
|
6487
6487
|
}
|
6488
6488
|
function u(f) {
|
6489
|
-
return
|
6489
|
+
return Ce(f) ? Yt(e, c)(f) : c(f);
|
6490
6490
|
}
|
6491
6491
|
function c(f) {
|
6492
6492
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), t) : n(f);
|
@@ -6496,7 +6496,7 @@ function gf(e, t, n) {
|
|
6496
6496
|
const r = this;
|
6497
6497
|
return i;
|
6498
6498
|
function i(l) {
|
6499
|
-
return
|
6499
|
+
return Ia.call(
|
6500
6500
|
r,
|
6501
6501
|
e,
|
6502
6502
|
o,
|
@@ -6566,7 +6566,7 @@ const ir = {
|
|
6566
6566
|
function wf(e, t) {
|
6567
6567
|
return n;
|
6568
6568
|
function n(r) {
|
6569
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
6569
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), de(e, t, "linePrefix");
|
6570
6570
|
}
|
6571
6571
|
}
|
6572
6572
|
const fn = {
|
@@ -6586,14 +6586,14 @@ function vf(e, t, n) {
|
|
6586
6586
|
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || V(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
6587
6587
|
}
|
6588
6588
|
function s(u) {
|
6589
|
-
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"),
|
6589
|
+
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), oe(u) ? de(e, l, "whitespace")(u) : l(u));
|
6590
6590
|
}
|
6591
6591
|
}
|
6592
|
-
const
|
6592
|
+
const je = {
|
6593
6593
|
name: "list",
|
6594
|
-
tokenize:
|
6594
|
+
tokenize: If,
|
6595
6595
|
continuation: {
|
6596
|
-
tokenize:
|
6596
|
+
tokenize: Nf
|
6597
6597
|
},
|
6598
6598
|
exit: jf
|
6599
6599
|
}, Tf = {
|
@@ -6603,16 +6603,16 @@ const Ie = {
|
|
6603
6603
|
tokenize: kf,
|
6604
6604
|
partial: !0
|
6605
6605
|
};
|
6606
|
-
function
|
6606
|
+
function If(e, t, n) {
|
6607
6607
|
const r = this, i = r.events[r.events.length - 1];
|
6608
6608
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, a = 0;
|
6609
6609
|
return l;
|
6610
6610
|
function l(p) {
|
6611
|
-
const
|
6612
|
-
if (
|
6613
|
-
if (r.containerState.type || (r.containerState.type =
|
6611
|
+
const D = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
6612
|
+
if (D === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : Tr(p)) {
|
6613
|
+
if (r.containerState.type || (r.containerState.type = D, e.enter(D, {
|
6614
6614
|
_container: !0
|
6615
|
-
})),
|
6615
|
+
})), D === "listUnordered")
|
6616
6616
|
return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(fn, n, u)(p) : u(p);
|
6617
6617
|
if (!r.interrupt || p === 49)
|
6618
6618
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), s(p);
|
@@ -6638,17 +6638,17 @@ function Nf(e, t, n) {
|
|
6638
6638
|
return r.containerState.initialBlankLine = !0, o++, m(p);
|
6639
6639
|
}
|
6640
6640
|
function f(p) {
|
6641
|
-
return
|
6641
|
+
return oe(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), m) : n(p);
|
6642
6642
|
}
|
6643
6643
|
function m(p) {
|
6644
6644
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(p);
|
6645
6645
|
}
|
6646
6646
|
}
|
6647
|
-
function
|
6647
|
+
function Nf(e, t, n) {
|
6648
6648
|
const r = this;
|
6649
6649
|
return r.containerState._closeFlow = void 0, e.check(Dn, i, o);
|
6650
6650
|
function i(l) {
|
6651
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
6651
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, de(
|
6652
6652
|
e,
|
6653
6653
|
t,
|
6654
6654
|
"listItemIndent",
|
@@ -6656,12 +6656,12 @@ function If(e, t, n) {
|
|
6656
6656
|
)(l);
|
6657
6657
|
}
|
6658
6658
|
function o(l) {
|
6659
|
-
return r.containerState.furtherBlankLines || !
|
6659
|
+
return r.containerState.furtherBlankLines || !oe(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(Df, t, a)(l));
|
6660
6660
|
}
|
6661
6661
|
function a(l) {
|
6662
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
6662
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, de(
|
6663
6663
|
e,
|
6664
|
-
e.attempt(
|
6664
|
+
e.attempt(je, t, n),
|
6665
6665
|
"linePrefix",
|
6666
6666
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
6667
6667
|
)(l);
|
@@ -6669,7 +6669,7 @@ function If(e, t, n) {
|
|
6669
6669
|
}
|
6670
6670
|
function kf(e, t, n) {
|
6671
6671
|
const r = this;
|
6672
|
-
return
|
6672
|
+
return de(
|
6673
6673
|
e,
|
6674
6674
|
i,
|
6675
6675
|
"listItemIndent",
|
@@ -6685,7 +6685,7 @@ function jf(e) {
|
|
6685
6685
|
}
|
6686
6686
|
function Ef(e, t, n) {
|
6687
6687
|
const r = this;
|
6688
|
-
return
|
6688
|
+
return de(
|
6689
6689
|
e,
|
6690
6690
|
i,
|
6691
6691
|
"listItemPrefixWhitespace",
|
@@ -6693,7 +6693,7 @@ function Ef(e, t, n) {
|
|
6693
6693
|
);
|
6694
6694
|
function i(o) {
|
6695
6695
|
const a = r.events[r.events.length - 1];
|
6696
|
-
return !
|
6696
|
+
return !oe(o) && a && a[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
|
6697
6697
|
}
|
6698
6698
|
}
|
6699
6699
|
const lo = {
|
@@ -6736,7 +6736,7 @@ function Af(e, t, n) {
|
|
6736
6736
|
return e.enter("setextHeadingLineSequence"), l(u);
|
6737
6737
|
}
|
6738
6738
|
function l(u) {
|
6739
|
-
return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"),
|
6739
|
+
return u === i ? (e.consume(u), l) : (e.exit("setextHeadingLineSequence"), oe(u) ? de(e, s, "lineSuffix")(u) : s(u));
|
6740
6740
|
}
|
6741
6741
|
function s(u) {
|
6742
6742
|
return u === null || V(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
@@ -6754,7 +6754,7 @@ function Of(e) {
|
|
6754
6754
|
e.attempt(
|
6755
6755
|
this.parser.constructs.flowInitial,
|
6756
6756
|
i,
|
6757
|
-
|
6757
|
+
de(
|
6758
6758
|
e,
|
6759
6759
|
e.attempt(
|
6760
6760
|
this.parser.constructs.flow,
|
@@ -6906,14 +6906,14 @@ function Pf(e, t, n) {
|
|
6906
6906
|
parser: e,
|
6907
6907
|
sliceStream: p,
|
6908
6908
|
sliceSerialize: m,
|
6909
|
-
now:
|
6909
|
+
now: D,
|
6910
6910
|
defineSkip: x,
|
6911
6911
|
write: f
|
6912
6912
|
};
|
6913
6913
|
let c = t.tokenize.call(u, s);
|
6914
6914
|
return t.resolveAll && o.push(t), u;
|
6915
6915
|
function f(S) {
|
6916
|
-
return a =
|
6916
|
+
return a = Be(a, S), k(), a[a.length - 1] !== null ? [] : (Y(t, 0), u.events = Ur(o, u.events, u), u.events);
|
6917
6917
|
}
|
6918
6918
|
function m(S, w) {
|
6919
6919
|
return Uf(p(S), w);
|
@@ -6921,7 +6921,7 @@ function Pf(e, t, n) {
|
|
6921
6921
|
function p(S) {
|
6922
6922
|
return Rf(a, S);
|
6923
6923
|
}
|
6924
|
-
function
|
6924
|
+
function D() {
|
6925
6925
|
const { line: S, column: w, offset: j, _index: O, _bufferIndex: P } = r;
|
6926
6926
|
return {
|
6927
6927
|
line: S,
|
@@ -6932,7 +6932,7 @@ function Pf(e, t, n) {
|
|
6932
6932
|
};
|
6933
6933
|
}
|
6934
6934
|
function x(S) {
|
6935
|
-
i[S.line] = S.column,
|
6935
|
+
i[S.line] = S.column, ee();
|
6936
6936
|
}
|
6937
6937
|
function k() {
|
6938
6938
|
let S;
|
@@ -6949,15 +6949,15 @@ function Pf(e, t, n) {
|
|
6949
6949
|
c = c(S);
|
6950
6950
|
}
|
6951
6951
|
function z(S) {
|
6952
|
-
V(S) ? (r.line++, r.column = 1, r.offset += S === -3 ? 2 : 1,
|
6952
|
+
V(S) ? (r.line++, r.column = 1, r.offset += S === -3 ? 2 : 1, ee()) : S !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === a[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = S;
|
6953
6953
|
}
|
6954
6954
|
function E(S, w) {
|
6955
6955
|
const j = w || {};
|
6956
|
-
return j.type = S, j.start =
|
6956
|
+
return j.type = S, j.start = D(), u.events.push(["enter", j, u]), l.push(j), j;
|
6957
6957
|
}
|
6958
6958
|
function _(S) {
|
6959
6959
|
const w = l.pop();
|
6960
|
-
return w.end =
|
6960
|
+
return w.end = D(), u.events.push(["exit", w, u]), w;
|
6961
6961
|
}
|
6962
6962
|
function Q(S, w) {
|
6963
6963
|
Y(S, w.from);
|
@@ -6969,43 +6969,43 @@ function Pf(e, t, n) {
|
|
6969
6969
|
return j;
|
6970
6970
|
function j(O, P, $) {
|
6971
6971
|
let G, Z, ie, h;
|
6972
|
-
return Array.isArray(O) ?
|
6972
|
+
return Array.isArray(O) ? we(O) : "tokenize" in O ? (
|
6973
6973
|
// @ts-expect-error Looks like a construct.
|
6974
|
-
|
6974
|
+
we([O])
|
6975
6975
|
) : ne(O);
|
6976
|
-
function ne(
|
6977
|
-
return
|
6978
|
-
function
|
6979
|
-
const
|
6976
|
+
function ne(ae) {
|
6977
|
+
return ke;
|
6978
|
+
function ke(ve) {
|
6979
|
+
const Fe = ve !== null && ae[ve], Pe = ve !== null && ae.null, Ke = [
|
6980
6980
|
// To do: add more extension tests.
|
6981
6981
|
/* c8 ignore next 2 */
|
6982
|
-
...Array.isArray(
|
6983
|
-
...Array.isArray(
|
6982
|
+
...Array.isArray(Fe) ? Fe : Fe ? [Fe] : [],
|
6983
|
+
...Array.isArray(Pe) ? Pe : Pe ? [Pe] : []
|
6984
6984
|
];
|
6985
|
-
return
|
6985
|
+
return we(Ke)(ve);
|
6986
6986
|
}
|
6987
6987
|
}
|
6988
|
-
function
|
6989
|
-
return G =
|
6988
|
+
function we(ae) {
|
6989
|
+
return G = ae, Z = 0, ae.length === 0 ? $ : g(ae[Z]);
|
6990
6990
|
}
|
6991
|
-
function g(
|
6992
|
-
return
|
6993
|
-
function
|
6994
|
-
return h = q(), ie =
|
6991
|
+
function g(ae) {
|
6992
|
+
return ke;
|
6993
|
+
function ke(ve) {
|
6994
|
+
return h = q(), ie = ae, ae.partial || (u.currentConstruct = ae), ae.name && u.parser.constructs.disable.null.includes(ae.name) ? Ne() : ae.tokenize.call(
|
6995
6995
|
// If we do have fields, create an object w/ `context` as its
|
6996
6996
|
// prototype.
|
6997
6997
|
// This allows a “live binding”, which is needed for `interrupt`.
|
6998
6998
|
w ? Object.assign(Object.create(u), w) : u,
|
6999
6999
|
s,
|
7000
7000
|
me,
|
7001
|
-
|
7002
|
-
)(
|
7001
|
+
Ne
|
7002
|
+
)(ve);
|
7003
7003
|
}
|
7004
7004
|
}
|
7005
|
-
function me(
|
7005
|
+
function me(ae) {
|
7006
7006
|
return S(ie, h), P;
|
7007
7007
|
}
|
7008
|
-
function
|
7008
|
+
function Ne(ae) {
|
7009
7009
|
return h.restore(), ++Z < G.length ? g(G[Z]) : $;
|
7010
7010
|
}
|
7011
7011
|
}
|
@@ -7019,16 +7019,16 @@ function Pf(e, t, n) {
|
|
7019
7019
|
), S.resolveTo && (u.events = S.resolveTo(u.events, u));
|
7020
7020
|
}
|
7021
7021
|
function q() {
|
7022
|
-
const S =
|
7022
|
+
const S = D(), w = u.previous, j = u.currentConstruct, O = u.events.length, P = Array.from(l);
|
7023
7023
|
return {
|
7024
7024
|
restore: $,
|
7025
7025
|
from: O
|
7026
7026
|
};
|
7027
7027
|
function $() {
|
7028
|
-
r = S, u.previous = w, u.currentConstruct = j, u.events.length = O, l = P,
|
7028
|
+
r = S, u.previous = w, u.currentConstruct = j, u.events.length = O, l = P, ee();
|
7029
7029
|
}
|
7030
7030
|
}
|
7031
|
-
function
|
7031
|
+
function ee() {
|
7032
7032
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
7033
7033
|
}
|
7034
7034
|
}
|
@@ -7089,19 +7089,19 @@ function Uf(e, t) {
|
|
7089
7089
|
return r.join("");
|
7090
7090
|
}
|
7091
7091
|
const Bf = {
|
7092
|
-
42:
|
7093
|
-
43:
|
7094
|
-
45:
|
7095
|
-
48:
|
7096
|
-
49:
|
7097
|
-
50:
|
7098
|
-
51:
|
7099
|
-
52:
|
7100
|
-
53:
|
7101
|
-
54:
|
7102
|
-
55:
|
7103
|
-
56:
|
7104
|
-
57:
|
7092
|
+
42: je,
|
7093
|
+
43: je,
|
7094
|
+
45: je,
|
7095
|
+
48: je,
|
7096
|
+
49: je,
|
7097
|
+
50: je,
|
7098
|
+
51: je,
|
7099
|
+
52: je,
|
7100
|
+
53: je,
|
7101
|
+
54: je,
|
7102
|
+
55: je,
|
7103
|
+
56: je,
|
7104
|
+
57: je,
|
7105
7105
|
62: xa
|
7106
7106
|
}, Qf = {
|
7107
7107
|
91: Qp
|
@@ -7277,11 +7277,11 @@ function id(e) {
|
|
7277
7277
|
codeFencedFenceInfo: s,
|
7278
7278
|
codeFencedFenceMeta: s,
|
7279
7279
|
codeIndented: l(lt, s),
|
7280
|
-
codeText: l(
|
7280
|
+
codeText: l(It, s),
|
7281
7281
|
codeTextData: S,
|
7282
7282
|
data: S,
|
7283
7283
|
codeFlowValue: S,
|
7284
|
-
definition: l(
|
7284
|
+
definition: l(Nt),
|
7285
7285
|
definitionDestinationString: s,
|
7286
7286
|
definitionLabelString: s,
|
7287
7287
|
definitionTitleString: s,
|
@@ -7296,29 +7296,29 @@ function id(e) {
|
|
7296
7296
|
label: s,
|
7297
7297
|
link: l($e),
|
7298
7298
|
listItem: l(F),
|
7299
|
-
listItemValue:
|
7299
|
+
listItemValue: D,
|
7300
7300
|
listOrdered: l(Ze, p),
|
7301
7301
|
listUnordered: l(Ze),
|
7302
7302
|
paragraph: l(W),
|
7303
|
-
reference:
|
7303
|
+
reference: Ne,
|
7304
7304
|
referenceString: s,
|
7305
7305
|
resourceDestinationString: s,
|
7306
7306
|
resourceTitleString: s,
|
7307
7307
|
setextHeading: l(mt),
|
7308
7308
|
strong: l(be),
|
7309
|
-
thematicBreak: l(
|
7309
|
+
thematicBreak: l(Ie)
|
7310
7310
|
},
|
7311
7311
|
exit: {
|
7312
7312
|
atxHeading: c(),
|
7313
7313
|
atxHeadingSequence: L,
|
7314
7314
|
autolink: c(),
|
7315
|
-
autolinkEmail:
|
7316
|
-
autolinkProtocol:
|
7315
|
+
autolinkEmail: Pe,
|
7316
|
+
autolinkProtocol: Fe,
|
7317
7317
|
blockQuote: c(),
|
7318
7318
|
characterEscapeValue: w,
|
7319
|
-
characterReferenceMarkerHexadecimal:
|
7320
|
-
characterReferenceMarkerNumeric:
|
7321
|
-
characterReferenceValue:
|
7319
|
+
characterReferenceMarkerHexadecimal: ke,
|
7320
|
+
characterReferenceMarkerNumeric: ke,
|
7321
|
+
characterReferenceValue: ve,
|
7322
7322
|
codeFenced: c(z),
|
7323
7323
|
codeFencedFence: b,
|
7324
7324
|
codeFencedFenceInfo: x,
|
@@ -7348,11 +7348,11 @@ function id(e) {
|
|
7348
7348
|
listOrdered: c(),
|
7349
7349
|
listUnordered: c(),
|
7350
7350
|
paragraph: c(),
|
7351
|
-
referenceString:
|
7352
|
-
resourceDestinationString:
|
7351
|
+
referenceString: ae,
|
7352
|
+
resourceDestinationString: we,
|
7353
7353
|
resourceTitleString: g,
|
7354
7354
|
resource: me,
|
7355
|
-
setextHeading: c(
|
7355
|
+
setextHeading: c(ee),
|
7356
7356
|
setextHeadingLineSequence: q,
|
7357
7357
|
setextHeadingText: Y,
|
7358
7358
|
strong: c(),
|
@@ -7362,7 +7362,7 @@ function id(e) {
|
|
7362
7362
|
Aa(t, (e || {}).mdastExtensions || []);
|
7363
7363
|
const n = {};
|
7364
7364
|
return r;
|
7365
|
-
function r(
|
7365
|
+
function r(T) {
|
7366
7366
|
let C = {
|
7367
7367
|
type: "root",
|
7368
7368
|
children: []
|
@@ -7378,92 +7378,92 @@ function id(e) {
|
|
7378
7378
|
setData: o,
|
7379
7379
|
getData: a
|
7380
7380
|
}, K = [];
|
7381
|
-
let
|
7382
|
-
for (; ++
|
7383
|
-
if (
|
7384
|
-
if (
|
7385
|
-
K.push(
|
7381
|
+
let J = -1;
|
7382
|
+
for (; ++J < T.length; )
|
7383
|
+
if (T[J][1].type === "listOrdered" || T[J][1].type === "listUnordered")
|
7384
|
+
if (T[J][0] === "enter")
|
7385
|
+
K.push(J);
|
7386
7386
|
else {
|
7387
|
-
const
|
7388
|
-
|
7387
|
+
const ue = K.pop();
|
7388
|
+
J = i(T, ue, J);
|
7389
7389
|
}
|
7390
|
-
for (
|
7391
|
-
const
|
7392
|
-
Ca.call(
|
7390
|
+
for (J = -1; ++J < T.length; ) {
|
7391
|
+
const ue = t[T[J][0]];
|
7392
|
+
Ca.call(ue, T[J][1].type) && ue[T[J][1].type].call(
|
7393
7393
|
Object.assign(
|
7394
7394
|
{
|
7395
|
-
sliceSerialize:
|
7395
|
+
sliceSerialize: T[J][2].sliceSerialize
|
7396
7396
|
},
|
7397
7397
|
U
|
7398
7398
|
),
|
7399
|
-
|
7399
|
+
T[J][1]
|
7400
7400
|
);
|
7401
7401
|
}
|
7402
7402
|
if (U.tokenStack.length > 0) {
|
7403
|
-
const
|
7404
|
-
(
|
7403
|
+
const ue = U.tokenStack[U.tokenStack.length - 1];
|
7404
|
+
(ue[1] || uo).call(U, void 0, ue[0]);
|
7405
7405
|
}
|
7406
7406
|
for (C.position = {
|
7407
7407
|
start: et(
|
7408
|
-
|
7408
|
+
T.length > 0 ? T[0][1].start : {
|
7409
7409
|
line: 1,
|
7410
7410
|
column: 1,
|
7411
7411
|
offset: 0
|
7412
7412
|
}
|
7413
7413
|
),
|
7414
7414
|
end: et(
|
7415
|
-
|
7415
|
+
T.length > 0 ? T[T.length - 2][1].end : {
|
7416
7416
|
line: 1,
|
7417
7417
|
column: 1,
|
7418
7418
|
offset: 0
|
7419
7419
|
}
|
7420
7420
|
)
|
7421
|
-
},
|
7422
|
-
C = t.transforms[
|
7421
|
+
}, J = -1; ++J < t.transforms.length; )
|
7422
|
+
C = t.transforms[J](C) || C;
|
7423
7423
|
return C;
|
7424
7424
|
}
|
7425
|
-
function i(
|
7426
|
-
let K = C - 1,
|
7425
|
+
function i(T, C, U) {
|
7426
|
+
let K = C - 1, J = -1, ue = !1, Te, De, st, Ae;
|
7427
7427
|
for (; ++K <= U; ) {
|
7428
|
-
const
|
7429
|
-
if (
|
7430
|
-
if (
|
7428
|
+
const pe = T[K];
|
7429
|
+
if (pe[1].type === "listUnordered" || pe[1].type === "listOrdered" || pe[1].type === "blockQuote" ? (pe[0] === "enter" ? J++ : J--, Ae = void 0) : pe[1].type === "lineEndingBlank" ? pe[0] === "enter" && (Te && !Ae && !J && !st && (st = K), Ae = void 0) : pe[1].type === "linePrefix" || pe[1].type === "listItemValue" || pe[1].type === "listItemMarker" || pe[1].type === "listItemPrefix" || pe[1].type === "listItemPrefixWhitespace" || (Ae = void 0), !J && pe[0] === "enter" && pe[1].type === "listItemPrefix" || J === -1 && pe[0] === "exit" && (pe[1].type === "listUnordered" || pe[1].type === "listOrdered")) {
|
7430
|
+
if (Te) {
|
7431
7431
|
let Et = K;
|
7432
|
-
for (
|
7433
|
-
const
|
7434
|
-
if (
|
7435
|
-
if (
|
7432
|
+
for (De = void 0; Et--; ) {
|
7433
|
+
const Re = T[Et];
|
7434
|
+
if (Re[1].type === "lineEnding" || Re[1].type === "lineEndingBlank") {
|
7435
|
+
if (Re[0] === "exit")
|
7436
7436
|
continue;
|
7437
|
-
|
7438
|
-
} else if (!(
|
7437
|
+
De && (T[De][1].type = "lineEndingBlank", ue = !0), Re[1].type = "lineEnding", De = Et;
|
7438
|
+
} else if (!(Re[1].type === "linePrefix" || Re[1].type === "blockQuotePrefix" || Re[1].type === "blockQuotePrefixWhitespace" || Re[1].type === "blockQuoteMarker" || Re[1].type === "listItemIndent"))
|
7439
7439
|
break;
|
7440
7440
|
}
|
7441
|
-
st && (!
|
7441
|
+
st && (!De || st < De) && (Te._spread = !0), Te.end = Object.assign(
|
7442
7442
|
{},
|
7443
|
-
|
7444
|
-
),
|
7443
|
+
De ? T[De][1].start : pe[1].end
|
7444
|
+
), T.splice(De || K, 0, ["exit", Te, pe[2]]), K++, U++;
|
7445
7445
|
}
|
7446
|
-
|
7446
|
+
pe[1].type === "listItemPrefix" && (Te = {
|
7447
7447
|
type: "listItem",
|
7448
7448
|
_spread: !1,
|
7449
|
-
start: Object.assign({},
|
7449
|
+
start: Object.assign({}, pe[1].start),
|
7450
7450
|
// @ts-expect-error: we’ll add `end` in a second.
|
7451
7451
|
end: void 0
|
7452
|
-
},
|
7452
|
+
}, T.splice(K, 0, ["enter", Te, pe[2]]), K++, U++, st = void 0, Ae = !0);
|
7453
7453
|
}
|
7454
7454
|
}
|
7455
|
-
return
|
7455
|
+
return T[C][1]._spread = ue, U;
|
7456
7456
|
}
|
7457
|
-
function o(
|
7458
|
-
n[
|
7457
|
+
function o(T, C) {
|
7458
|
+
n[T] = C;
|
7459
7459
|
}
|
7460
|
-
function a(
|
7461
|
-
return n[
|
7460
|
+
function a(T) {
|
7461
|
+
return n[T];
|
7462
7462
|
}
|
7463
|
-
function l(
|
7463
|
+
function l(T, C) {
|
7464
7464
|
return U;
|
7465
7465
|
function U(K) {
|
7466
|
-
u.call(this,
|
7466
|
+
u.call(this, T(K), K), C && C.call(this, K);
|
7467
7467
|
}
|
7468
7468
|
}
|
7469
7469
|
function s() {
|
@@ -7472,29 +7472,29 @@ function id(e) {
|
|
7472
7472
|
children: []
|
7473
7473
|
});
|
7474
7474
|
}
|
7475
|
-
function u(
|
7476
|
-
return this.stack[this.stack.length - 1].children.push(
|
7475
|
+
function u(T, C, U) {
|
7476
|
+
return this.stack[this.stack.length - 1].children.push(T), this.stack.push(T), this.tokenStack.push([C, U]), T.position = {
|
7477
7477
|
start: et(C.start)
|
7478
|
-
},
|
7478
|
+
}, T;
|
7479
7479
|
}
|
7480
|
-
function c(
|
7480
|
+
function c(T) {
|
7481
7481
|
return C;
|
7482
7482
|
function C(U) {
|
7483
|
-
|
7483
|
+
T && T.call(this, U), f.call(this, U);
|
7484
7484
|
}
|
7485
7485
|
}
|
7486
|
-
function f(
|
7486
|
+
function f(T, C) {
|
7487
7487
|
const U = this.stack.pop(), K = this.tokenStack.pop();
|
7488
7488
|
if (K)
|
7489
|
-
K[0].type !==
|
7489
|
+
K[0].type !== T.type && (C ? C.call(this, T, K[0]) : (K[1] || uo).call(this, T, K[0]));
|
7490
7490
|
else
|
7491
7491
|
throw new Error(
|
7492
|
-
"Cannot close `" +
|
7493
|
-
start:
|
7494
|
-
end:
|
7492
|
+
"Cannot close `" + T.type + "` (" + Qt({
|
7493
|
+
start: T.start,
|
7494
|
+
end: T.end
|
7495
7495
|
}) + "): it’s not open"
|
7496
7496
|
);
|
7497
|
-
return U.position.end = et(
|
7497
|
+
return U.position.end = et(T.end), U;
|
7498
7498
|
}
|
7499
7499
|
function m() {
|
7500
7500
|
return tp(this.stack.pop());
|
@@ -7502,169 +7502,169 @@ function id(e) {
|
|
7502
7502
|
function p() {
|
7503
7503
|
o("expectingFirstListItemValue", !0);
|
7504
7504
|
}
|
7505
|
-
function T
|
7505
|
+
function D(T) {
|
7506
7506
|
if (a("expectingFirstListItemValue")) {
|
7507
7507
|
const C = this.stack[this.stack.length - 2];
|
7508
|
-
C.start = Number.parseInt(this.sliceSerialize(
|
7508
|
+
C.start = Number.parseInt(this.sliceSerialize(T), 10), o("expectingFirstListItemValue");
|
7509
7509
|
}
|
7510
7510
|
}
|
7511
7511
|
function x() {
|
7512
|
-
const
|
7513
|
-
C.lang =
|
7512
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7513
|
+
C.lang = T;
|
7514
7514
|
}
|
7515
7515
|
function k() {
|
7516
|
-
const
|
7517
|
-
C.meta =
|
7516
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7517
|
+
C.meta = T;
|
7518
7518
|
}
|
7519
7519
|
function b() {
|
7520
7520
|
a("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
|
7521
7521
|
}
|
7522
7522
|
function z() {
|
7523
|
-
const
|
7524
|
-
C.value =
|
7523
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7524
|
+
C.value = T.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
|
7525
7525
|
}
|
7526
7526
|
function E() {
|
7527
|
-
const
|
7528
|
-
C.value =
|
7527
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7528
|
+
C.value = T.replace(/(\r?\n|\r)$/g, "");
|
7529
7529
|
}
|
7530
|
-
function _(
|
7530
|
+
function _(T) {
|
7531
7531
|
const C = this.resume(), U = this.stack[this.stack.length - 1];
|
7532
7532
|
U.label = C, U.identifier = xt(
|
7533
|
-
this.sliceSerialize(
|
7533
|
+
this.sliceSerialize(T)
|
7534
7534
|
).toLowerCase();
|
7535
7535
|
}
|
7536
7536
|
function Q() {
|
7537
|
-
const
|
7538
|
-
C.title =
|
7537
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7538
|
+
C.title = T;
|
7539
7539
|
}
|
7540
7540
|
function M() {
|
7541
|
-
const
|
7542
|
-
C.url =
|
7541
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7542
|
+
C.url = T;
|
7543
7543
|
}
|
7544
|
-
function L(
|
7544
|
+
function L(T) {
|
7545
7545
|
const C = this.stack[this.stack.length - 1];
|
7546
7546
|
if (!C.depth) {
|
7547
|
-
const U = this.sliceSerialize(
|
7547
|
+
const U = this.sliceSerialize(T).length;
|
7548
7548
|
C.depth = U;
|
7549
7549
|
}
|
7550
7550
|
}
|
7551
7551
|
function Y() {
|
7552
7552
|
o("setextHeadingSlurpLineEnding", !0);
|
7553
7553
|
}
|
7554
|
-
function q(
|
7554
|
+
function q(T) {
|
7555
7555
|
const C = this.stack[this.stack.length - 1];
|
7556
|
-
C.depth = this.sliceSerialize(
|
7556
|
+
C.depth = this.sliceSerialize(T).charCodeAt(0) === 61 ? 1 : 2;
|
7557
7557
|
}
|
7558
|
-
function
|
7558
|
+
function ee() {
|
7559
7559
|
o("setextHeadingSlurpLineEnding");
|
7560
7560
|
}
|
7561
|
-
function S(
|
7561
|
+
function S(T) {
|
7562
7562
|
const C = this.stack[this.stack.length - 1];
|
7563
7563
|
let U = C.children[C.children.length - 1];
|
7564
|
-
(!U || U.type !== "text") && (U =
|
7565
|
-
start: et(
|
7564
|
+
(!U || U.type !== "text") && (U = se(), U.position = {
|
7565
|
+
start: et(T.start)
|
7566
7566
|
}, C.children.push(U)), this.stack.push(U);
|
7567
7567
|
}
|
7568
|
-
function w(
|
7568
|
+
function w(T) {
|
7569
7569
|
const C = this.stack.pop();
|
7570
|
-
C.value += this.sliceSerialize(
|
7570
|
+
C.value += this.sliceSerialize(T), C.position.end = et(T.end);
|
7571
7571
|
}
|
7572
|
-
function j(
|
7572
|
+
function j(T) {
|
7573
7573
|
const C = this.stack[this.stack.length - 1];
|
7574
7574
|
if (a("atHardBreak")) {
|
7575
7575
|
const U = C.children[C.children.length - 1];
|
7576
|
-
U.position.end = et(
|
7576
|
+
U.position.end = et(T.end), o("atHardBreak");
|
7577
7577
|
return;
|
7578
7578
|
}
|
7579
|
-
!a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(C.type) && (S.call(this,
|
7579
|
+
!a("setextHeadingSlurpLineEnding") && t.canContainEols.includes(C.type) && (S.call(this, T), w.call(this, T));
|
7580
7580
|
}
|
7581
7581
|
function O() {
|
7582
7582
|
o("atHardBreak", !0);
|
7583
7583
|
}
|
7584
7584
|
function P() {
|
7585
|
-
const
|
7586
|
-
C.value =
|
7585
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7586
|
+
C.value = T;
|
7587
7587
|
}
|
7588
7588
|
function $() {
|
7589
|
-
const
|
7590
|
-
C.value =
|
7589
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7590
|
+
C.value = T;
|
7591
7591
|
}
|
7592
7592
|
function G() {
|
7593
|
-
const
|
7594
|
-
C.value =
|
7593
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7594
|
+
C.value = T;
|
7595
7595
|
}
|
7596
7596
|
function Z() {
|
7597
|
-
const
|
7597
|
+
const T = this.stack[this.stack.length - 1];
|
7598
7598
|
if (a("inReference")) {
|
7599
7599
|
const C = a("referenceType") || "shortcut";
|
7600
|
-
|
7600
|
+
T.type += "Reference", T.referenceType = C, delete T.url, delete T.title;
|
7601
7601
|
} else
|
7602
|
-
delete
|
7602
|
+
delete T.identifier, delete T.label;
|
7603
7603
|
o("referenceType");
|
7604
7604
|
}
|
7605
7605
|
function ie() {
|
7606
|
-
const
|
7606
|
+
const T = this.stack[this.stack.length - 1];
|
7607
7607
|
if (a("inReference")) {
|
7608
7608
|
const C = a("referenceType") || "shortcut";
|
7609
|
-
|
7609
|
+
T.type += "Reference", T.referenceType = C, delete T.url, delete T.title;
|
7610
7610
|
} else
|
7611
|
-
delete
|
7611
|
+
delete T.identifier, delete T.label;
|
7612
7612
|
o("referenceType");
|
7613
7613
|
}
|
7614
|
-
function h(
|
7615
|
-
const C = this.sliceSerialize(
|
7614
|
+
function h(T) {
|
7615
|
+
const C = this.sliceSerialize(T), U = this.stack[this.stack.length - 2];
|
7616
7616
|
U.label = td(C), U.identifier = xt(C).toLowerCase();
|
7617
7617
|
}
|
7618
7618
|
function ne() {
|
7619
|
-
const
|
7619
|
+
const T = this.stack[this.stack.length - 1], C = this.resume(), U = this.stack[this.stack.length - 1];
|
7620
7620
|
if (o("inReference", !0), U.type === "link") {
|
7621
|
-
const K =
|
7621
|
+
const K = T.children;
|
7622
7622
|
U.children = K;
|
7623
7623
|
} else
|
7624
7624
|
U.alt = C;
|
7625
7625
|
}
|
7626
|
-
function
|
7627
|
-
const
|
7628
|
-
C.url =
|
7626
|
+
function we() {
|
7627
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7628
|
+
C.url = T;
|
7629
7629
|
}
|
7630
7630
|
function g() {
|
7631
|
-
const
|
7632
|
-
C.title =
|
7631
|
+
const T = this.resume(), C = this.stack[this.stack.length - 1];
|
7632
|
+
C.title = T;
|
7633
7633
|
}
|
7634
7634
|
function me() {
|
7635
7635
|
o("inReference");
|
7636
7636
|
}
|
7637
|
-
function
|
7637
|
+
function Ne() {
|
7638
7638
|
o("referenceType", "collapsed");
|
7639
7639
|
}
|
7640
|
-
function
|
7640
|
+
function ae(T) {
|
7641
7641
|
const C = this.resume(), U = this.stack[this.stack.length - 1];
|
7642
7642
|
U.label = C, U.identifier = xt(
|
7643
|
-
this.sliceSerialize(
|
7643
|
+
this.sliceSerialize(T)
|
7644
7644
|
).toLowerCase(), o("referenceType", "full");
|
7645
7645
|
}
|
7646
|
-
function
|
7647
|
-
o("characterReferenceType",
|
7646
|
+
function ke(T) {
|
7647
|
+
o("characterReferenceType", T.type);
|
7648
7648
|
}
|
7649
|
-
function
|
7650
|
-
const C = this.sliceSerialize(
|
7649
|
+
function ve(T) {
|
7650
|
+
const C = this.sliceSerialize(T), U = a("characterReferenceType");
|
7651
7651
|
let K;
|
7652
7652
|
U ? (K = Ea(
|
7653
7653
|
C,
|
7654
7654
|
U === "characterReferenceMarkerNumeric" ? 10 : 16
|
7655
7655
|
), o("characterReferenceType")) : K = Br(C);
|
7656
|
-
const
|
7657
|
-
|
7656
|
+
const J = this.stack.pop();
|
7657
|
+
J.value += K, J.position.end = et(T.end);
|
7658
7658
|
}
|
7659
|
-
function
|
7660
|
-
w.call(this,
|
7659
|
+
function Fe(T) {
|
7660
|
+
w.call(this, T);
|
7661
7661
|
const C = this.stack[this.stack.length - 1];
|
7662
|
-
C.url = this.sliceSerialize(
|
7662
|
+
C.url = this.sliceSerialize(T);
|
7663
7663
|
}
|
7664
|
-
function
|
7665
|
-
w.call(this,
|
7664
|
+
function Pe(T) {
|
7665
|
+
w.call(this, T);
|
7666
7666
|
const C = this.stack[this.stack.length - 1];
|
7667
|
-
C.url = "mailto:" + this.sliceSerialize(
|
7667
|
+
C.url = "mailto:" + this.sliceSerialize(T);
|
7668
7668
|
}
|
7669
7669
|
function Ke() {
|
7670
7670
|
return {
|
@@ -7680,13 +7680,13 @@ function id(e) {
|
|
7680
7680
|
value: ""
|
7681
7681
|
};
|
7682
7682
|
}
|
7683
|
-
function
|
7683
|
+
function It() {
|
7684
7684
|
return {
|
7685
7685
|
type: "inlineCode",
|
7686
7686
|
value: ""
|
7687
7687
|
};
|
7688
7688
|
}
|
7689
|
-
function
|
7689
|
+
function Nt() {
|
7690
7690
|
return {
|
7691
7691
|
type: "definition",
|
7692
7692
|
identifier: "",
|
@@ -7735,19 +7735,19 @@ function id(e) {
|
|
7735
7735
|
children: []
|
7736
7736
|
};
|
7737
7737
|
}
|
7738
|
-
function Ze(
|
7738
|
+
function Ze(T) {
|
7739
7739
|
return {
|
7740
7740
|
type: "list",
|
7741
|
-
ordered:
|
7741
|
+
ordered: T.type === "listOrdered",
|
7742
7742
|
start: null,
|
7743
|
-
spread:
|
7743
|
+
spread: T._spread,
|
7744
7744
|
children: []
|
7745
7745
|
};
|
7746
7746
|
}
|
7747
|
-
function F(
|
7747
|
+
function F(T) {
|
7748
7748
|
return {
|
7749
7749
|
type: "listItem",
|
7750
|
-
spread:
|
7750
|
+
spread: T._spread,
|
7751
7751
|
checked: null,
|
7752
7752
|
children: []
|
7753
7753
|
};
|
@@ -7764,13 +7764,13 @@ function id(e) {
|
|
7764
7764
|
children: []
|
7765
7765
|
};
|
7766
7766
|
}
|
7767
|
-
function
|
7767
|
+
function se() {
|
7768
7768
|
return {
|
7769
7769
|
type: "text",
|
7770
7770
|
value: ""
|
7771
7771
|
};
|
7772
7772
|
}
|
7773
|
-
function
|
7773
|
+
function Ie() {
|
7774
7774
|
return {
|
7775
7775
|
type: "thematicBreak"
|
7776
7776
|
};
|
@@ -7890,7 +7890,7 @@ function Tt(e) {
|
|
7890
7890
|
for (; ++n < e.length; ) {
|
7891
7891
|
const o = e.charCodeAt(n);
|
7892
7892
|
let a = "";
|
7893
|
-
if (o === 37 &&
|
7893
|
+
if (o === 37 && ze(e.charCodeAt(n + 1)) && ze(e.charCodeAt(n + 2)))
|
7894
7894
|
i = 2;
|
7895
7895
|
else if (o < 128)
|
7896
7896
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o)) || (a = String.fromCharCode(o));
|
@@ -8091,7 +8091,7 @@ function Dd(e, t) {
|
|
8091
8091
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
8092
8092
|
return e.patch(t, n), e.applyData(t, n);
|
8093
8093
|
}
|
8094
|
-
function
|
8094
|
+
function Id(e, t) {
|
8095
8095
|
const n = {
|
8096
8096
|
type: "element",
|
8097
8097
|
tagName: "strong",
|
@@ -8101,7 +8101,7 @@ function Nd(e, t) {
|
|
8101
8101
|
return e.patch(t, n), e.applyData(t, n);
|
8102
8102
|
}
|
8103
8103
|
const Yr = La("start"), Hr = La("end");
|
8104
|
-
function
|
8104
|
+
function Nd(e) {
|
8105
8105
|
return { start: Yr(e), end: Hr(e) };
|
8106
8106
|
}
|
8107
8107
|
function La(e) {
|
@@ -8153,8 +8153,8 @@ function jd(e, t, n) {
|
|
8153
8153
|
for (; ++s < l; ) {
|
8154
8154
|
const f = t.children[s], m = {}, p = a ? a[s] : void 0;
|
8155
8155
|
p && (m.align = p);
|
8156
|
-
let
|
8157
|
-
f && (
|
8156
|
+
let D = { type: "element", tagName: o, properties: m, children: [] };
|
8157
|
+
f && (D.children = e.all(f), e.patch(f, D), D = e.applyData(t, D)), u.push(D);
|
8158
8158
|
}
|
8159
8159
|
const c = {
|
8160
8160
|
type: "element",
|
@@ -8232,7 +8232,7 @@ const Od = {
|
|
8232
8232
|
list: vd,
|
8233
8233
|
paragraph: Td,
|
8234
8234
|
root: Dd,
|
8235
|
-
strong:
|
8235
|
+
strong: Id,
|
8236
8236
|
table: kd,
|
8237
8237
|
tableCell: Ed,
|
8238
8238
|
tableRow: jd,
|
@@ -8265,7 +8265,7 @@ const _a = (
|
|
8265
8265
|
if (typeof e == "object")
|
8266
8266
|
return Array.isArray(e) ? zd(e) : Ld(e);
|
8267
8267
|
if (typeof e == "function")
|
8268
|
-
return
|
8268
|
+
return In(e);
|
8269
8269
|
throw new Error("Expected function, string, or object as test");
|
8270
8270
|
}
|
8271
8271
|
);
|
@@ -8274,7 +8274,7 @@ function zd(e) {
|
|
8274
8274
|
let n = -1;
|
8275
8275
|
for (; ++n < e.length; )
|
8276
8276
|
t[n] = _a(e[n]);
|
8277
|
-
return
|
8277
|
+
return In(r);
|
8278
8278
|
function r(...i) {
|
8279
8279
|
let o = -1;
|
8280
8280
|
for (; ++o < t.length; )
|
@@ -8284,7 +8284,7 @@ function zd(e) {
|
|
8284
8284
|
}
|
8285
8285
|
}
|
8286
8286
|
function Ld(e) {
|
8287
|
-
return
|
8287
|
+
return In(t);
|
8288
8288
|
function t(n) {
|
8289
8289
|
let r;
|
8290
8290
|
for (r in e)
|
@@ -8294,12 +8294,12 @@ function Ld(e) {
|
|
8294
8294
|
}
|
8295
8295
|
}
|
8296
8296
|
function _d(e) {
|
8297
|
-
return
|
8297
|
+
return In(t);
|
8298
8298
|
function t(n) {
|
8299
8299
|
return n && n.type === e;
|
8300
8300
|
}
|
8301
8301
|
}
|
8302
|
-
function
|
8302
|
+
function In(e) {
|
8303
8303
|
return t;
|
8304
8304
|
function t(n, ...r) {
|
8305
8305
|
return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
|
@@ -8342,14 +8342,14 @@ const Pd = !0, ho = !1, Rd = "skip", Ud = (
|
|
8342
8342
|
}
|
8343
8343
|
return f;
|
8344
8344
|
function f() {
|
8345
|
-
let m = [], p,
|
8345
|
+
let m = [], p, D, x;
|
8346
8346
|
if ((!t || i(l, s, u[u.length - 1] || null)) && (m = Bd(n(l, u)), m[0] === ho))
|
8347
8347
|
return m;
|
8348
8348
|
if (l.children && m[0] !== Rd)
|
8349
|
-
for (
|
8350
|
-
if (p = a(l.children[
|
8349
|
+
for (D = (r ? l.children.length : -1) + o, x = u.concat(l); D > -1 && D < l.children.length; ) {
|
8350
|
+
if (p = a(l.children[D], D, x)(), p[0] === ho)
|
8351
8351
|
return p;
|
8352
|
-
|
8352
|
+
D = typeof p[1] == "number" ? p[1] : D + o;
|
8353
8353
|
}
|
8354
8354
|
return m;
|
8355
8355
|
}
|
@@ -8446,7 +8446,7 @@ function Hd(e, t) {
|
|
8446
8446
|
}
|
8447
8447
|
}
|
8448
8448
|
function $d(e, t) {
|
8449
|
-
e.position && (t.position =
|
8449
|
+
e.position && (t.position = Nd(e));
|
8450
8450
|
}
|
8451
8451
|
function qd(e, t) {
|
8452
8452
|
let n = t;
|
@@ -8617,10 +8617,10 @@ function Ra(e, t) {
|
|
8617
8617
|
Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
|
8618
8618
|
return new Gt(n, r, t);
|
8619
8619
|
}
|
8620
|
-
function
|
8620
|
+
function Ir(e) {
|
8621
8621
|
return e.toLowerCase();
|
8622
8622
|
}
|
8623
|
-
class
|
8623
|
+
class Ye {
|
8624
8624
|
/**
|
8625
8625
|
* @constructor
|
8626
8626
|
* @param {string} property
|
@@ -8630,32 +8630,32 @@ class Be {
|
|
8630
8630
|
this.property = t, this.attribute = n;
|
8631
8631
|
}
|
8632
8632
|
}
|
8633
|
-
|
8634
|
-
|
8635
|
-
|
8636
|
-
|
8637
|
-
|
8638
|
-
|
8639
|
-
|
8640
|
-
|
8641
|
-
|
8642
|
-
|
8633
|
+
Ye.prototype.space = null;
|
8634
|
+
Ye.prototype.boolean = !1;
|
8635
|
+
Ye.prototype.booleanish = !1;
|
8636
|
+
Ye.prototype.overloadedBoolean = !1;
|
8637
|
+
Ye.prototype.number = !1;
|
8638
|
+
Ye.prototype.commaSeparated = !1;
|
8639
|
+
Ye.prototype.spaceSeparated = !1;
|
8640
|
+
Ye.prototype.commaOrSpaceSeparated = !1;
|
8641
|
+
Ye.prototype.mustUseProperty = !1;
|
8642
|
+
Ye.prototype.defined = !1;
|
8643
8643
|
let eh = 0;
|
8644
|
-
const X = gt(),
|
8644
|
+
const X = gt(), xe = gt(), Ua = gt(), A = gt(), fe = gt(), wt = gt(), Oe = gt();
|
8645
8645
|
function gt() {
|
8646
8646
|
return 2 ** ++eh;
|
8647
8647
|
}
|
8648
|
-
const
|
8648
|
+
const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
8649
8649
|
__proto__: null,
|
8650
8650
|
boolean: X,
|
8651
|
-
booleanish:
|
8652
|
-
commaOrSpaceSeparated:
|
8651
|
+
booleanish: xe,
|
8652
|
+
commaOrSpaceSeparated: Oe,
|
8653
8653
|
commaSeparated: wt,
|
8654
8654
|
number: A,
|
8655
8655
|
overloadedBoolean: Ua,
|
8656
|
-
spaceSeparated:
|
8657
|
-
}, Symbol.toStringTag, { value: "Module" })), or = Object.keys(
|
8658
|
-
class Vr extends
|
8656
|
+
spaceSeparated: fe
|
8657
|
+
}, Symbol.toStringTag, { value: "Module" })), or = Object.keys(Nr);
|
8658
|
+
class Vr extends Ye {
|
8659
8659
|
/**
|
8660
8660
|
* @constructor
|
8661
8661
|
* @param {string} property
|
@@ -8668,7 +8668,7 @@ class Vr extends Be {
|
|
8668
8668
|
if (super(t, n), yo(this, "space", i), typeof r == "number")
|
8669
8669
|
for (; ++o < or.length; ) {
|
8670
8670
|
const a = or[o];
|
8671
|
-
yo(this, or[o], (r &
|
8671
|
+
yo(this, or[o], (r & Nr[a]) === Nr[a]);
|
8672
8672
|
}
|
8673
8673
|
}
|
8674
8674
|
}
|
@@ -8688,7 +8688,7 @@ function Dt(e) {
|
|
8688
8688
|
i,
|
8689
8689
|
e.space
|
8690
8690
|
);
|
8691
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[
|
8691
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Ir(r)] = r, n[Ir(o.attribute)] = r;
|
8692
8692
|
}
|
8693
8693
|
return new Gt(t, n, e.space);
|
8694
8694
|
}
|
@@ -8730,47 +8730,47 @@ const $a = Dt({
|
|
8730
8730
|
},
|
8731
8731
|
properties: {
|
8732
8732
|
ariaActiveDescendant: null,
|
8733
|
-
ariaAtomic:
|
8733
|
+
ariaAtomic: xe,
|
8734
8734
|
ariaAutoComplete: null,
|
8735
|
-
ariaBusy:
|
8736
|
-
ariaChecked:
|
8735
|
+
ariaBusy: xe,
|
8736
|
+
ariaChecked: xe,
|
8737
8737
|
ariaColCount: A,
|
8738
8738
|
ariaColIndex: A,
|
8739
8739
|
ariaColSpan: A,
|
8740
|
-
ariaControls:
|
8740
|
+
ariaControls: fe,
|
8741
8741
|
ariaCurrent: null,
|
8742
|
-
ariaDescribedBy:
|
8742
|
+
ariaDescribedBy: fe,
|
8743
8743
|
ariaDetails: null,
|
8744
|
-
ariaDisabled:
|
8745
|
-
ariaDropEffect:
|
8744
|
+
ariaDisabled: xe,
|
8745
|
+
ariaDropEffect: fe,
|
8746
8746
|
ariaErrorMessage: null,
|
8747
|
-
ariaExpanded:
|
8748
|
-
ariaFlowTo:
|
8749
|
-
ariaGrabbed:
|
8747
|
+
ariaExpanded: xe,
|
8748
|
+
ariaFlowTo: fe,
|
8749
|
+
ariaGrabbed: xe,
|
8750
8750
|
ariaHasPopup: null,
|
8751
|
-
ariaHidden:
|
8751
|
+
ariaHidden: xe,
|
8752
8752
|
ariaInvalid: null,
|
8753
8753
|
ariaKeyShortcuts: null,
|
8754
8754
|
ariaLabel: null,
|
8755
|
-
ariaLabelledBy:
|
8755
|
+
ariaLabelledBy: fe,
|
8756
8756
|
ariaLevel: A,
|
8757
8757
|
ariaLive: null,
|
8758
|
-
ariaModal:
|
8759
|
-
ariaMultiLine:
|
8760
|
-
ariaMultiSelectable:
|
8758
|
+
ariaModal: xe,
|
8759
|
+
ariaMultiLine: xe,
|
8760
|
+
ariaMultiSelectable: xe,
|
8761
8761
|
ariaOrientation: null,
|
8762
|
-
ariaOwns:
|
8762
|
+
ariaOwns: fe,
|
8763
8763
|
ariaPlaceholder: null,
|
8764
8764
|
ariaPosInSet: A,
|
8765
|
-
ariaPressed:
|
8766
|
-
ariaReadOnly:
|
8765
|
+
ariaPressed: xe,
|
8766
|
+
ariaReadOnly: xe,
|
8767
8767
|
ariaRelevant: null,
|
8768
|
-
ariaRequired:
|
8769
|
-
ariaRoleDescription:
|
8768
|
+
ariaRequired: xe,
|
8769
|
+
ariaRoleDescription: fe,
|
8770
8770
|
ariaRowCount: A,
|
8771
8771
|
ariaRowIndex: A,
|
8772
8772
|
ariaRowSpan: A,
|
8773
|
-
ariaSelected:
|
8773
|
+
ariaSelected: xe,
|
8774
8774
|
ariaSetSize: A,
|
8775
8775
|
ariaSort: null,
|
8776
8776
|
ariaValueMax: A,
|
@@ -8793,8 +8793,8 @@ const $a = Dt({
|
|
8793
8793
|
// Standard Properties.
|
8794
8794
|
abbr: null,
|
8795
8795
|
accept: wt,
|
8796
|
-
acceptCharset:
|
8797
|
-
accessKey:
|
8796
|
+
acceptCharset: fe,
|
8797
|
+
accessKey: fe,
|
8798
8798
|
action: null,
|
8799
8799
|
allow: null,
|
8800
8800
|
allowFullScreen: X,
|
@@ -8804,21 +8804,21 @@ const $a = Dt({
|
|
8804
8804
|
as: null,
|
8805
8805
|
async: X,
|
8806
8806
|
autoCapitalize: null,
|
8807
|
-
autoComplete:
|
8807
|
+
autoComplete: fe,
|
8808
8808
|
autoFocus: X,
|
8809
8809
|
autoPlay: X,
|
8810
|
-
blocking:
|
8810
|
+
blocking: fe,
|
8811
8811
|
capture: null,
|
8812
8812
|
charSet: null,
|
8813
8813
|
checked: X,
|
8814
8814
|
cite: null,
|
8815
|
-
className:
|
8815
|
+
className: fe,
|
8816
8816
|
cols: A,
|
8817
8817
|
colSpan: null,
|
8818
8818
|
content: null,
|
8819
|
-
contentEditable:
|
8819
|
+
contentEditable: xe,
|
8820
8820
|
controls: X,
|
8821
|
-
controlsList:
|
8821
|
+
controlsList: fe,
|
8822
8822
|
coords: A | wt,
|
8823
8823
|
crossOrigin: null,
|
8824
8824
|
data: null,
|
@@ -8830,7 +8830,7 @@ const $a = Dt({
|
|
8830
8830
|
dirName: null,
|
8831
8831
|
disabled: X,
|
8832
8832
|
download: Ua,
|
8833
|
-
draggable:
|
8833
|
+
draggable: xe,
|
8834
8834
|
encType: null,
|
8835
8835
|
enterKeyHint: null,
|
8836
8836
|
fetchPriority: null,
|
@@ -8840,14 +8840,14 @@ const $a = Dt({
|
|
8840
8840
|
formMethod: null,
|
8841
8841
|
formNoValidate: X,
|
8842
8842
|
formTarget: null,
|
8843
|
-
headers:
|
8843
|
+
headers: fe,
|
8844
8844
|
height: A,
|
8845
8845
|
hidden: X,
|
8846
8846
|
high: A,
|
8847
8847
|
href: null,
|
8848
8848
|
hrefLang: null,
|
8849
|
-
htmlFor:
|
8850
|
-
httpEquiv:
|
8849
|
+
htmlFor: fe,
|
8850
|
+
httpEquiv: fe,
|
8851
8851
|
id: null,
|
8852
8852
|
imageSizes: null,
|
8853
8853
|
imageSrcSet: null,
|
@@ -8857,10 +8857,10 @@ const $a = Dt({
|
|
8857
8857
|
is: null,
|
8858
8858
|
isMap: X,
|
8859
8859
|
itemId: null,
|
8860
|
-
itemProp:
|
8861
|
-
itemRef:
|
8860
|
+
itemProp: fe,
|
8861
|
+
itemRef: fe,
|
8862
8862
|
itemScope: X,
|
8863
|
-
itemType:
|
8863
|
+
itemType: fe,
|
8864
8864
|
kind: null,
|
8865
8865
|
label: null,
|
8866
8866
|
lang: null,
|
@@ -8973,7 +8973,7 @@ const $a = Dt({
|
|
8973
8973
|
open: X,
|
8974
8974
|
optimum: A,
|
8975
8975
|
pattern: null,
|
8976
|
-
ping:
|
8976
|
+
ping: fe,
|
8977
8977
|
placeholder: null,
|
8978
8978
|
playsInline: X,
|
8979
8979
|
popover: null,
|
@@ -8983,12 +8983,12 @@ const $a = Dt({
|
|
8983
8983
|
preload: null,
|
8984
8984
|
readOnly: X,
|
8985
8985
|
referrerPolicy: null,
|
8986
|
-
rel:
|
8986
|
+
rel: fe,
|
8987
8987
|
required: X,
|
8988
8988
|
reversed: X,
|
8989
8989
|
rows: A,
|
8990
8990
|
rowSpan: A,
|
8991
|
-
sandbox:
|
8991
|
+
sandbox: fe,
|
8992
8992
|
scope: null,
|
8993
8993
|
scoped: X,
|
8994
8994
|
seamless: X,
|
@@ -9000,7 +9000,7 @@ const $a = Dt({
|
|
9000
9000
|
sizes: null,
|
9001
9001
|
slot: null,
|
9002
9002
|
span: A,
|
9003
|
-
spellCheck:
|
9003
|
+
spellCheck: xe,
|
9004
9004
|
src: null,
|
9005
9005
|
srcDoc: null,
|
9006
9006
|
srcLang: null,
|
@@ -9015,7 +9015,7 @@ const $a = Dt({
|
|
9015
9015
|
type: null,
|
9016
9016
|
typeMustMatch: X,
|
9017
9017
|
useMap: null,
|
9018
|
-
value:
|
9018
|
+
value: xe,
|
9019
9019
|
width: A,
|
9020
9020
|
wrap: null,
|
9021
9021
|
// Legacy.
|
@@ -9024,7 +9024,7 @@ const $a = Dt({
|
|
9024
9024
|
// Several. Use CSS `text-align` instead,
|
9025
9025
|
aLink: null,
|
9026
9026
|
// `<body>`. Use CSS `a:active {color}` instead
|
9027
|
-
archive:
|
9027
|
+
archive: fe,
|
9028
9028
|
// `<object>`. List of URIs to archives
|
9029
9029
|
axis: null,
|
9030
9030
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
@@ -9106,7 +9106,7 @@ const $a = Dt({
|
|
9106
9106
|
// `<table>`
|
9107
9107
|
scheme: null,
|
9108
9108
|
// `<meta>`
|
9109
|
-
scrolling:
|
9109
|
+
scrolling: xe,
|
9110
9110
|
// `<frame>`. Use overflow in the child context
|
9111
9111
|
standby: null,
|
9112
9112
|
// `<object>`
|
@@ -9317,7 +9317,7 @@ const $a = Dt({
|
|
9317
9317
|
},
|
9318
9318
|
transform: Ya,
|
9319
9319
|
properties: {
|
9320
|
-
about:
|
9320
|
+
about: Oe,
|
9321
9321
|
accentHeight: A,
|
9322
9322
|
accumulate: null,
|
9323
9323
|
additive: null,
|
@@ -9339,7 +9339,7 @@ const $a = Dt({
|
|
9339
9339
|
by: null,
|
9340
9340
|
calcMode: null,
|
9341
9341
|
capHeight: A,
|
9342
|
-
className:
|
9342
|
+
className: fe,
|
9343
9343
|
clip: null,
|
9344
9344
|
clipPath: null,
|
9345
9345
|
clipPathUnits: null,
|
@@ -9429,7 +9429,7 @@ const $a = Dt({
|
|
9429
9429
|
k2: A,
|
9430
9430
|
k3: A,
|
9431
9431
|
k4: A,
|
9432
|
-
kernelMatrix:
|
9432
|
+
kernelMatrix: Oe,
|
9433
9433
|
kernelUnitLength: null,
|
9434
9434
|
keyPoints: null,
|
9435
9435
|
// SEMI_COLON_SEPARATED
|
@@ -9574,7 +9574,7 @@ const $a = Dt({
|
|
9574
9574
|
patternTransform: null,
|
9575
9575
|
patternUnits: null,
|
9576
9576
|
phase: null,
|
9577
|
-
ping:
|
9577
|
+
ping: fe,
|
9578
9578
|
pitch: null,
|
9579
9579
|
playbackOrder: null,
|
9580
9580
|
pointerEvents: null,
|
@@ -9586,21 +9586,21 @@ const $a = Dt({
|
|
9586
9586
|
preserveAspectRatio: null,
|
9587
9587
|
primitiveUnits: null,
|
9588
9588
|
propagate: null,
|
9589
|
-
property:
|
9589
|
+
property: Oe,
|
9590
9590
|
r: null,
|
9591
9591
|
radius: null,
|
9592
9592
|
referrerPolicy: null,
|
9593
9593
|
refX: null,
|
9594
9594
|
refY: null,
|
9595
|
-
rel:
|
9596
|
-
rev:
|
9595
|
+
rel: Oe,
|
9596
|
+
rev: Oe,
|
9597
9597
|
renderingIntent: null,
|
9598
9598
|
repeatCount: null,
|
9599
9599
|
repeatDur: null,
|
9600
|
-
requiredExtensions:
|
9601
|
-
requiredFeatures:
|
9602
|
-
requiredFonts:
|
9603
|
-
requiredFormats:
|
9600
|
+
requiredExtensions: Oe,
|
9601
|
+
requiredFeatures: Oe,
|
9602
|
+
requiredFonts: Oe,
|
9603
|
+
requiredFormats: Oe,
|
9604
9604
|
resource: null,
|
9605
9605
|
restart: null,
|
9606
9606
|
result: null,
|
@@ -9628,7 +9628,7 @@ const $a = Dt({
|
|
9628
9628
|
strikethroughThickness: A,
|
9629
9629
|
string: null,
|
9630
9630
|
stroke: null,
|
9631
|
-
strokeDashArray:
|
9631
|
+
strokeDashArray: Oe,
|
9632
9632
|
strokeDashOffset: null,
|
9633
9633
|
strokeLineCap: null,
|
9634
9634
|
strokeLineJoin: null,
|
@@ -9642,7 +9642,7 @@ const $a = Dt({
|
|
9642
9642
|
syncMaster: null,
|
9643
9643
|
syncTolerance: null,
|
9644
9644
|
syncToleranceDefault: null,
|
9645
|
-
systemLanguage:
|
9645
|
+
systemLanguage: Oe,
|
9646
9646
|
tabIndex: A,
|
9647
9647
|
tableValues: null,
|
9648
9648
|
target: null,
|
@@ -9656,7 +9656,7 @@ const $a = Dt({
|
|
9656
9656
|
title: null,
|
9657
9657
|
transformBehavior: null,
|
9658
9658
|
type: null,
|
9659
|
-
typeOf:
|
9659
|
+
typeOf: Oe,
|
9660
9660
|
to: null,
|
9661
9661
|
transform: null,
|
9662
9662
|
transformOrigin: null,
|
@@ -9699,8 +9699,8 @@ const $a = Dt({
|
|
9699
9699
|
}
|
9700
9700
|
}), ih = /^data[-\w.:]+$/i, bo = /-[a-z]/g, oh = /[A-Z]/g;
|
9701
9701
|
function ah(e, t) {
|
9702
|
-
const n =
|
9703
|
-
let r = t, i =
|
9702
|
+
const n = Ir(t);
|
9703
|
+
let r = t, i = Ye;
|
9704
9704
|
if (n in e.normal)
|
9705
9705
|
return e.property[e.normal[n]];
|
9706
9706
|
if (n.length > 4 && n.slice(0, 4) === "data" && ih.test(t)) {
|
@@ -9761,7 +9761,7 @@ function ph(e) {
|
|
9761
9761
|
});
|
9762
9762
|
};
|
9763
9763
|
}
|
9764
|
-
var Va = { exports: {} },
|
9764
|
+
var Va = { exports: {} }, le = {};
|
9765
9765
|
/**
|
9766
9766
|
* @license React
|
9767
9767
|
* react-is.production.min.js
|
@@ -9771,15 +9771,15 @@ var Va = { exports: {} }, se = {};
|
|
9771
9771
|
* This source code is licensed under the MIT license found in the
|
9772
9772
|
* LICENSE file in the root directory of this source tree.
|
9773
9773
|
*/
|
9774
|
-
var Wr = Symbol.for("react.element"), Gr = Symbol.for("react.portal"),
|
9774
|
+
var Wr = Symbol.for("react.element"), Gr = Symbol.for("react.portal"), Nn = Symbol.for("react.fragment"), kn = Symbol.for("react.strict_mode"), jn = Symbol.for("react.profiler"), En = 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"), Wa;
|
9775
9775
|
Wa = Symbol.for("react.module.reference");
|
9776
|
-
function
|
9776
|
+
function He(e) {
|
9777
9777
|
if (typeof e == "object" && e !== null) {
|
9778
9778
|
var t = e.$$typeof;
|
9779
9779
|
switch (t) {
|
9780
9780
|
case Wr:
|
9781
9781
|
switch (e = e.type, e) {
|
9782
|
-
case
|
9782
|
+
case Nn:
|
9783
9783
|
case jn:
|
9784
9784
|
case kn:
|
9785
9785
|
case Sn:
|
@@ -9803,65 +9803,65 @@ function Qe(e) {
|
|
9803
9803
|
}
|
9804
9804
|
}
|
9805
9805
|
}
|
9806
|
-
|
9807
|
-
|
9808
|
-
|
9809
|
-
|
9810
|
-
|
9811
|
-
|
9812
|
-
|
9813
|
-
|
9814
|
-
|
9815
|
-
|
9816
|
-
|
9817
|
-
|
9818
|
-
|
9806
|
+
le.ContextConsumer = Cn;
|
9807
|
+
le.ContextProvider = En;
|
9808
|
+
le.Element = Wr;
|
9809
|
+
le.ForwardRef = An;
|
9810
|
+
le.Fragment = Nn;
|
9811
|
+
le.Lazy = Ln;
|
9812
|
+
le.Memo = zn;
|
9813
|
+
le.Portal = Gr;
|
9814
|
+
le.Profiler = jn;
|
9815
|
+
le.StrictMode = kn;
|
9816
|
+
le.Suspense = Sn;
|
9817
|
+
le.SuspenseList = On;
|
9818
|
+
le.isAsyncMode = function() {
|
9819
9819
|
return !1;
|
9820
9820
|
};
|
9821
|
-
|
9821
|
+
le.isConcurrentMode = function() {
|
9822
9822
|
return !1;
|
9823
9823
|
};
|
9824
|
-
|
9825
|
-
return
|
9824
|
+
le.isContextConsumer = function(e) {
|
9825
|
+
return He(e) === Cn;
|
9826
9826
|
};
|
9827
|
-
|
9828
|
-
return
|
9827
|
+
le.isContextProvider = function(e) {
|
9828
|
+
return He(e) === En;
|
9829
9829
|
};
|
9830
|
-
|
9830
|
+
le.isElement = function(e) {
|
9831
9831
|
return typeof e == "object" && e !== null && e.$$typeof === Wr;
|
9832
9832
|
};
|
9833
|
-
|
9834
|
-
return
|
9833
|
+
le.isForwardRef = function(e) {
|
9834
|
+
return He(e) === An;
|
9835
9835
|
};
|
9836
|
-
|
9837
|
-
return
|
9836
|
+
le.isFragment = function(e) {
|
9837
|
+
return He(e) === Nn;
|
9838
9838
|
};
|
9839
|
-
|
9840
|
-
return
|
9839
|
+
le.isLazy = function(e) {
|
9840
|
+
return He(e) === Ln;
|
9841
9841
|
};
|
9842
|
-
|
9843
|
-
return
|
9842
|
+
le.isMemo = function(e) {
|
9843
|
+
return He(e) === zn;
|
9844
9844
|
};
|
9845
|
-
|
9846
|
-
return
|
9845
|
+
le.isPortal = function(e) {
|
9846
|
+
return He(e) === Gr;
|
9847
9847
|
};
|
9848
|
-
|
9849
|
-
return
|
9848
|
+
le.isProfiler = function(e) {
|
9849
|
+
return He(e) === jn;
|
9850
9850
|
};
|
9851
|
-
|
9852
|
-
return
|
9851
|
+
le.isStrictMode = function(e) {
|
9852
|
+
return He(e) === kn;
|
9853
9853
|
};
|
9854
|
-
|
9855
|
-
return
|
9854
|
+
le.isSuspense = function(e) {
|
9855
|
+
return He(e) === Sn;
|
9856
9856
|
};
|
9857
|
-
|
9858
|
-
return
|
9857
|
+
le.isSuspenseList = function(e) {
|
9858
|
+
return He(e) === On;
|
9859
9859
|
};
|
9860
|
-
|
9861
|
-
return typeof e == "string" || typeof e == "function" || e ===
|
9860
|
+
le.isValidElementType = function(e) {
|
9861
|
+
return typeof e == "string" || typeof e == "function" || e === Nn || e === jn || e === kn || e === Sn || e === On || e === dh || typeof e == "object" && e !== null && (e.$$typeof === Ln || e.$$typeof === zn || e.$$typeof === En || e.$$typeof === Cn || e.$$typeof === An || e.$$typeof === Wa || e.getModuleId !== void 0);
|
9862
9862
|
};
|
9863
|
-
|
9864
|
-
Va.exports =
|
9863
|
+
le.typeOf = He;
|
9864
|
+
Va.exports = le;
|
9865
9865
|
var hh = Va.exports;
|
9866
9866
|
const gh = /* @__PURE__ */ it(hh);
|
9867
9867
|
function mh(e) {
|
@@ -9883,7 +9883,7 @@ function bh(e, t) {
|
|
9883
9883
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
9884
9884
|
).trim();
|
9885
9885
|
}
|
9886
|
-
var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Th = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Dh = /^[;\s]*/,
|
9886
|
+
var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh = /^\s*/, wh = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, vh = /^:\s*/, Th = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Dh = /^[;\s]*/, Ih = /^\s+|\s+$/g, Nh = `
|
9887
9887
|
`, wo = "/", vo = "*", ft = "", kh = "comment", jh = "declaration", Eh = function(e, t) {
|
9888
9888
|
if (typeof e != "string")
|
9889
9889
|
throw new TypeError("First argument must be a string");
|
@@ -9891,31 +9891,31 @@ var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh
|
|
9891
9891
|
return [];
|
9892
9892
|
t = t || {};
|
9893
9893
|
var n = 1, r = 1;
|
9894
|
-
function i(
|
9895
|
-
var x =
|
9894
|
+
function i(D) {
|
9895
|
+
var x = D.match(Mh);
|
9896
9896
|
x && (n += x.length);
|
9897
|
-
var k =
|
9898
|
-
r = ~k ?
|
9897
|
+
var k = D.lastIndexOf(Nh);
|
9898
|
+
r = ~k ? D.length - k : r + D.length;
|
9899
9899
|
}
|
9900
9900
|
function o() {
|
9901
|
-
var
|
9901
|
+
var D = { line: n, column: r };
|
9902
9902
|
return function(x) {
|
9903
|
-
return x.position = new a(
|
9903
|
+
return x.position = new a(D), u(), x;
|
9904
9904
|
};
|
9905
9905
|
}
|
9906
|
-
function a(
|
9907
|
-
this.start =
|
9906
|
+
function a(D) {
|
9907
|
+
this.start = D, this.end = { line: n, column: r }, this.source = t.source;
|
9908
9908
|
}
|
9909
9909
|
a.prototype.content = e;
|
9910
|
-
function l(
|
9910
|
+
function l(D) {
|
9911
9911
|
var x = new Error(
|
9912
|
-
t.source + ":" + n + ":" + r + ": " +
|
9912
|
+
t.source + ":" + n + ":" + r + ": " + D
|
9913
9913
|
);
|
9914
|
-
if (x.reason =
|
9914
|
+
if (x.reason = D, x.filename = t.source, x.line = n, x.column = r, x.source = e, !t.silent)
|
9915
9915
|
throw x;
|
9916
9916
|
}
|
9917
|
-
function s(
|
9918
|
-
var x =
|
9917
|
+
function s(D) {
|
9918
|
+
var x = D.exec(e);
|
9919
9919
|
if (x) {
|
9920
9920
|
var k = x[0];
|
9921
9921
|
return i(k), e = e.slice(k.length), x;
|
@@ -9924,32 +9924,32 @@ var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh
|
|
9924
9924
|
function u() {
|
9925
9925
|
s(xh);
|
9926
9926
|
}
|
9927
|
-
function c(
|
9927
|
+
function c(D) {
|
9928
9928
|
var x;
|
9929
|
-
for (
|
9930
|
-
x !== !1 &&
|
9931
|
-
return
|
9929
|
+
for (D = D || []; x = f(); )
|
9930
|
+
x !== !1 && D.push(x);
|
9931
|
+
return D;
|
9932
9932
|
}
|
9933
9933
|
function f() {
|
9934
|
-
var
|
9934
|
+
var D = o();
|
9935
9935
|
if (!(wo != e.charAt(0) || vo != e.charAt(1))) {
|
9936
9936
|
for (var x = 2; ft != e.charAt(x) && (vo != e.charAt(x) || wo != e.charAt(x + 1)); )
|
9937
9937
|
++x;
|
9938
9938
|
if (x += 2, ft === e.charAt(x - 1))
|
9939
9939
|
return l("End of comment missing");
|
9940
9940
|
var k = e.slice(2, x - 2);
|
9941
|
-
return r += 2, i(k), e = e.slice(x), r += 2,
|
9941
|
+
return r += 2, i(k), e = e.slice(x), r += 2, D({
|
9942
9942
|
type: kh,
|
9943
9943
|
comment: k
|
9944
9944
|
});
|
9945
9945
|
}
|
9946
9946
|
}
|
9947
9947
|
function m() {
|
9948
|
-
var
|
9948
|
+
var D = o(), x = s(wh);
|
9949
9949
|
if (x) {
|
9950
9950
|
if (f(), !s(vh))
|
9951
9951
|
return l("property missing ':'");
|
9952
|
-
var k = s(Th), b =
|
9952
|
+
var k = s(Th), b = D({
|
9953
9953
|
type: jh,
|
9954
9954
|
property: To(x[0].replace(xo, ft)),
|
9955
9955
|
value: k ? To(k[0].replace(xo, ft)) : ft
|
@@ -9958,16 +9958,16 @@ var Zr = { exports: {} }, xo = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Mh = /\n/g, xh
|
|
9958
9958
|
}
|
9959
9959
|
}
|
9960
9960
|
function p() {
|
9961
|
-
var
|
9962
|
-
c(
|
9961
|
+
var D = [];
|
9962
|
+
c(D);
|
9963
9963
|
for (var x; x = m(); )
|
9964
|
-
x !== !1 && (
|
9965
|
-
return
|
9964
|
+
x !== !1 && (D.push(x), c(D));
|
9965
|
+
return D;
|
9966
9966
|
}
|
9967
9967
|
return u(), p();
|
9968
9968
|
};
|
9969
9969
|
function To(e) {
|
9970
|
-
return e ? e.replace(
|
9970
|
+
return e ? e.replace(Ih, ft) : ft;
|
9971
9971
|
}
|
9972
9972
|
var Ch = Eh;
|
9973
9973
|
function Ga(e, t) {
|
@@ -10001,7 +10001,7 @@ function zh(e, t, n, r) {
|
|
10001
10001
|
const m = t.position || {
|
10002
10002
|
start: { line: null, column: null, offset: null },
|
10003
10003
|
end: { line: null, column: null, offset: null }
|
10004
|
-
}, p = i.components && kr.call(i.components, l) ? i.components[l] : l,
|
10004
|
+
}, p = i.components && kr.call(i.components, l) ? i.components[l] : l, D = typeof p == "string" || p === nt.Fragment;
|
10005
10005
|
if (!gh.isValidElementType(p))
|
10006
10006
|
throw new TypeError(
|
10007
10007
|
`Component for name \`${l}\` not defined or is not renderable`
|
@@ -10014,15 +10014,15 @@ function zh(e, t, n, r) {
|
|
10014
10014
|
String(s.href || ""),
|
10015
10015
|
t.children,
|
10016
10016
|
typeof s.title == "string" ? s.title : null
|
10017
|
-
)), !
|
10017
|
+
)), !D && l === "code" && r.type === "element" && r.tagName !== "pre" && (s.inline = !0), !D && (l === "h1" || l === "h2" || l === "h3" || l === "h4" || l === "h5" || l === "h6") && (s.level = Number.parseInt(l.charAt(1), 10)), l === "img" && i.transformImageUri && (s.src = i.transformImageUri(
|
10018
10018
|
String(s.src || ""),
|
10019
10019
|
String(s.alt || ""),
|
10020
10020
|
typeof s.title == "string" ? s.title : null
|
10021
|
-
)), !
|
10021
|
+
)), !D && l === "li" && r.type === "element") {
|
10022
10022
|
const x = Lh(t);
|
10023
10023
|
s.checked = x && x.properties ? !!x.properties.checked : null, s.index = ar(r, t), s.ordered = r.tagName === "ol";
|
10024
10024
|
}
|
10025
|
-
return !
|
10025
|
+
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), f.length > 0 ? nt.createElement(p, s, f) : nt.createElement(p, s);
|
10026
10026
|
}
|
10027
10027
|
function Lh(e) {
|
10028
10028
|
let t = -1;
|
@@ -10180,15 +10180,15 @@ Xr.propTypes = {
|
|
10180
10180
|
};
|
10181
10181
|
const Xa = () => {
|
10182
10182
|
var s, u, c;
|
10183
|
-
const { conversationScreen: e, xpertKey: t } =
|
10184
|
-
|
10183
|
+
const { conversationScreen: e, xpertKey: t } = Le(_e), n = `${t}-maintenance-banner`, [r, i] = ye(
|
10184
|
+
Ee.get(n) === void 0
|
10185
10185
|
), o = /* @__PURE__ */ new Date(), a = new Date(
|
10186
10186
|
(s = e == null ? void 0 : e.maintenanceBanner) == null ? void 0 : s.endDateTime
|
10187
10187
|
);
|
10188
10188
|
if (!((u = e == null ? void 0 : e.maintenanceBanner) != null && u.enabled) || !((c = e == null ? void 0 : e.maintenanceBanner) != null && c.text) || o > a || !r)
|
10189
10189
|
return null;
|
10190
10190
|
const l = () => {
|
10191
|
-
|
10191
|
+
Ee.set(n, "1", { expires: 1 }), i(!1);
|
10192
10192
|
};
|
10193
10193
|
return /* @__PURE__ */ v.jsxs(
|
10194
10194
|
"div",
|
@@ -10244,8 +10244,8 @@ function Kr({
|
|
10244
10244
|
loading: s,
|
10245
10245
|
userInput: u
|
10246
10246
|
}) {
|
10247
|
-
const { primaryColor: c } =
|
10248
|
-
return
|
10247
|
+
const { primaryColor: c } = Le(_e);
|
10248
|
+
return Me(() => {
|
10249
10249
|
var f;
|
10250
10250
|
(o || a) && ((f = l.current) == null || f.focus());
|
10251
10251
|
}, [a, o, l]), /* @__PURE__ */ v.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: e, children: [
|
@@ -10378,13 +10378,13 @@ function _n({
|
|
10378
10378
|
text: a,
|
10379
10379
|
userTrackingName: l
|
10380
10380
|
}) {
|
10381
|
-
const [s, u] = ye(!0), { primaryColor: c, xpertKey: f, userTracking: m, conversationScreen: p } =
|
10381
|
+
const [s, u] = ye(!0), { primaryColor: c, xpertKey: f, userTracking: m, conversationScreen: p } = Le(_e), D = Ht(
|
10382
10382
|
(b) => {
|
10383
10383
|
var z, E, _, Q;
|
10384
|
-
((z = b == null ? void 0 : b.data) == null ? void 0 : z.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) &&
|
10384
|
+
((z = b == null ? void 0 : b.data) == null ? void 0 : z.who) === "customer" && (!(window != null && window.OnetrustActiveGroups) || (E = window == null ? void 0 : window.OnetrustActiveGroups) != null && E.includes("C0003")) && Ee.set(`${f}-live-chat-open`, 1, {
|
10385
10385
|
expires: 1,
|
10386
10386
|
path: "/"
|
10387
|
-
}), ((_ = b == null ? void 0 : b.data) == null ? void 0 : _.type) === "connection" && ((Q = b == null ? void 0 : b.data) == null ? void 0 : Q.state) === "disconnected" &&
|
10387
|
+
}), ((_ = b == null ? void 0 : b.data) == null ? void 0 : _.type) === "connection" && ((Q = b == null ? void 0 : b.data) == null ? void 0 : Q.state) === "disconnected" && Ee.remove(`${f}-live-chat-open`);
|
10388
10388
|
},
|
10389
10389
|
[f]
|
10390
10390
|
), x = Ht(
|
@@ -10394,20 +10394,20 @@ function _n({
|
|
10394
10394
|
},
|
10395
10395
|
[t]
|
10396
10396
|
);
|
10397
|
-
|
10397
|
+
Me(() => {
|
10398
10398
|
let b, z;
|
10399
10399
|
return p.liveChat.enabled && (window.Five9ChatPlugin || (b = document.createElement("script"), b.type = "text/javascript", b.src = p.liveChat.sourceCode, b.async = !0, b.onload = () => {
|
10400
10400
|
window.Five9ChatPlugin(p.liveChat.options);
|
10401
|
-
}, document.body.appendChild(b)), window.addEventListener("message",
|
10401
|
+
}, document.body.appendChild(b)), window.addEventListener("message", D), window.addEventListener("message", x), z = setTimeout(() => {
|
10402
10402
|
u(!1);
|
10403
10403
|
}, 3e3)), () => {
|
10404
|
-
p.liveChat.enabled && (window.removeEventListener("message",
|
10404
|
+
p.liveChat.enabled && (window.removeEventListener("message", D), window.removeEventListener("message", x), clearTimeout(z));
|
10405
10405
|
};
|
10406
10406
|
}, [
|
10407
10407
|
p.liveChat.enabled,
|
10408
10408
|
p.liveChat.options,
|
10409
10409
|
p.liveChat.sourceCode,
|
10410
|
-
|
10410
|
+
D,
|
10411
10411
|
x
|
10412
10412
|
]);
|
10413
10413
|
const k = () => {
|
@@ -10566,8 +10566,8 @@ Fn.defaultProps = {
|
|
10566
10566
|
};
|
10567
10567
|
Fn.displayName = "AssistantMessageBubble";
|
10568
10568
|
const Vh = Fn, Ja = () => {
|
10569
|
-
const { disclaimer: e } =
|
10570
|
-
return
|
10569
|
+
const { disclaimer: e } = Le(_e), t = We(null);
|
10570
|
+
return Me(() => {
|
10571
10571
|
var n;
|
10572
10572
|
(n = t == null ? void 0 : t.current) == null || n.focus();
|
10573
10573
|
}, []), /* @__PURE__ */ v.jsxs(
|
@@ -10600,7 +10600,7 @@ const Vh = Fn, Ja = () => {
|
|
10600
10600
|
Ja.displayName = "ConversationScreenDisclaimer";
|
10601
10601
|
const Wh = Ja, Jr = ({ loading: e, onPromptClick: t }) => {
|
10602
10602
|
var i;
|
10603
|
-
const { primaryColor: n, conversationScreen: r } =
|
10603
|
+
const { primaryColor: n, conversationScreen: r } = Le(_e);
|
10604
10604
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
10605
10605
|
/* @__PURE__ */ v.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
10606
10606
|
(i = r.prompts) == null ? void 0 : i.map((o) => {
|
@@ -10645,7 +10645,7 @@ ei.propTypes = {
|
|
10645
10645
|
ei.displayName = "SystemMessageBubble";
|
10646
10646
|
const Zh = ei, ti = ({ content: e, isNormalSize: t }) => {
|
10647
10647
|
var i;
|
10648
|
-
const { primaryColor: n, conversationScreen: r } =
|
10648
|
+
const { primaryColor: n, conversationScreen: r } = Le(_e);
|
10649
10649
|
return /* @__PURE__ */ v.jsx(
|
10650
10650
|
"section",
|
10651
10651
|
{
|
@@ -10676,8 +10676,8 @@ const Xh = ti, Pn = ({
|
|
10676
10676
|
setLiveChatOpen: l,
|
10677
10677
|
isTestUser: s
|
10678
10678
|
}) => {
|
10679
|
-
const { conversationScreen: u } =
|
10680
|
-
return
|
10679
|
+
const { conversationScreen: u } = Le(_e), { prompts: c, systemMessage: f } = u, m = We(null);
|
10680
|
+
return Me(() => {
|
10681
10681
|
var p;
|
10682
10682
|
(p = m.current) == null || p.scrollIntoView({
|
10683
10683
|
behavior: "instant",
|
@@ -10704,10 +10704,10 @@ const Xh = ti, Pn = ({
|
|
10704
10704
|
"aria-busy": t,
|
10705
10705
|
style: { display: "flex", flexDirection: "column" },
|
10706
10706
|
children: e.map(
|
10707
|
-
(p,
|
10707
|
+
(p, D) => p.role === "assistant" ? /* @__PURE__ */ v.jsx(
|
10708
10708
|
Vh,
|
10709
10709
|
{
|
10710
|
-
index:
|
10710
|
+
index: D,
|
10711
10711
|
message: p,
|
10712
10712
|
isNormalSize: n,
|
10713
10713
|
onFeedbackThumbSelection: r,
|
@@ -10717,14 +10717,14 @@ const Xh = ti, Pn = ({
|
|
10717
10717
|
setLiveChatOpen: l,
|
10718
10718
|
isTestUser: s
|
10719
10719
|
},
|
10720
|
-
`${p.role}-${
|
10720
|
+
`${p.role}-${D}`
|
10721
10721
|
) : /* @__PURE__ */ v.jsx(
|
10722
10722
|
Xh,
|
10723
10723
|
{
|
10724
10724
|
content: p.content,
|
10725
10725
|
isNormalSize: n
|
10726
10726
|
},
|
10727
|
-
`${p.role}-${p.timestamp ||
|
10727
|
+
`${p.role}-${p.timestamp || D}`
|
10728
10728
|
)
|
10729
10729
|
)
|
10730
10730
|
}
|
@@ -10759,7 +10759,7 @@ Pn.displayName = "ConversationsMessages";
|
|
10759
10759
|
const Kh = Pn;
|
10760
10760
|
function el({ disableScroll: e }) {
|
10761
10761
|
const t = We(null);
|
10762
|
-
return
|
10762
|
+
return Me(() => {
|
10763
10763
|
var n;
|
10764
10764
|
e || (n = t.current) == null || n.scrollIntoView({
|
10765
10765
|
behavior: "smooth",
|
@@ -10785,7 +10785,7 @@ el.propTypes = {
|
|
10785
10785
|
};
|
10786
10786
|
const Jh = () => {
|
10787
10787
|
const e = We(null);
|
10788
|
-
return
|
10788
|
+
return Me(() => {
|
10789
10789
|
var t;
|
10790
10790
|
(t = e.current) == null || t.scrollIntoView({
|
10791
10791
|
behavior: "instant"
|
@@ -10855,18 +10855,18 @@ function tl({
|
|
10855
10855
|
showMessage: i = !1,
|
10856
10856
|
style: o = {}
|
10857
10857
|
}) {
|
10858
|
-
var
|
10859
|
-
const { proactiveMessage: a } =
|
10860
|
-
|
10858
|
+
var D;
|
10859
|
+
const { proactiveMessage: a } = Le(_e), [l, s] = ye(!0), [u, c] = ye(!1), f = l && (!(window != null && window.OnetrustActiveGroups) || ((D = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : D.includes("C0003"))) && Ee.get(t) === void 0;
|
10860
|
+
Me(() => {
|
10861
10861
|
var x;
|
10862
10862
|
(x = window == null ? void 0 : window.OneTrust) == null || x.OnConsentChanged(() => {
|
10863
10863
|
var k;
|
10864
|
-
!((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) &&
|
10864
|
+
!((k = window == null ? void 0 : window.OnetrustActiveGroups) != null && k.includes("C0003")) && Ee.get(t) !== void 0 && Ee.remove(t);
|
10865
10865
|
});
|
10866
|
-
}, [t]),
|
10866
|
+
}, [t]), Me(() => {
|
10867
10867
|
var x;
|
10868
10868
|
i || (!(window != null && window.OnetrustActiveGroups) || (x = window == null ? void 0 : window.OnetrustActiveGroups) != null && x.includes("C0003")) && p(t, 1, 1);
|
10869
|
-
}, [t, i]),
|
10869
|
+
}, [t, i]), Me(() => {
|
10870
10870
|
if (a.enabled && a.delayMs > 0) {
|
10871
10871
|
const x = setTimeout(() => {
|
10872
10872
|
c(!0);
|
@@ -10883,7 +10883,7 @@ function tl({
|
|
10883
10883
|
expires: b,
|
10884
10884
|
path: "/"
|
10885
10885
|
};
|
10886
|
-
|
10886
|
+
Ee.set(x, k, z);
|
10887
10887
|
};
|
10888
10888
|
return !u || !f ? null : /* @__PURE__ */ v.jsx("div", { children: /* @__PURE__ */ v.jsxs(
|
10889
10889
|
"div",
|
@@ -10944,9 +10944,9 @@ function eg(e, t, n) {
|
|
10944
10944
|
},
|
10945
10945
|
[n]
|
10946
10946
|
);
|
10947
|
-
|
10947
|
+
Me(() => (e && window.addEventListener("message", r), () => {
|
10948
10948
|
window.removeEventListener("message", r);
|
10949
|
-
}), [e, r]),
|
10949
|
+
}), [e, r]), Me(() => {
|
10950
10950
|
let i;
|
10951
10951
|
return e && (i = document.createElement("style"), document.head.appendChild(i), ((a) => {
|
10952
10952
|
i.innerHTML = `
|
@@ -10968,7 +10968,7 @@ function eg(e, t, n) {
|
|
10968
10968
|
}
|
10969
10969
|
function tg(e) {
|
10970
10970
|
const [t, n] = ye(null);
|
10971
|
-
return
|
10971
|
+
return Me(() => {
|
10972
10972
|
try {
|
10973
10973
|
(() => {
|
10974
10974
|
var i, o, a;
|
@@ -10997,7 +10997,7 @@ function tg(e) {
|
|
10997
10997
|
), t;
|
10998
10998
|
}
|
10999
10999
|
function ng(e) {
|
11000
|
-
|
11000
|
+
Me(() => {
|
11001
11001
|
e();
|
11002
11002
|
const t = () => document.visibilityState === "visible" && e();
|
11003
11003
|
return document.addEventListener("visibilitychange", t), () => {
|
@@ -11030,7 +11030,7 @@ function ni({ submitEventExternal: e }) {
|
|
11030
11030
|
userTracking: o,
|
11031
11031
|
webExperimentation: a,
|
11032
11032
|
xpertKey: l
|
11033
|
-
} =
|
11033
|
+
} = Le(_e), s = ot(), [, u] = ye(!1), [, c] = ye(!1), [f, m] = ye(!1), [p, D] = ye(ag), [x, k] = ye(!1), [b, z] = ye(!1), [E, _] = ye(!1), [Q, M] = ye(""), [L, Y] = ye(!1), [q, ee] = ye(!0), [S, w] = ye(!1), [j, O] = ye(!1), [P, $] = ye(!1), G = We(null), Z = We(null), ie = We(null), h = Ee.get(`${l}-test`) === "1";
|
11034
11034
|
eg(
|
11035
11035
|
n.liveChat.enabled,
|
11036
11036
|
E,
|
@@ -11046,10 +11046,10 @@ function ni({ submitEventExternal: e }) {
|
|
11046
11046
|
);
|
11047
11047
|
},
|
11048
11048
|
[e, o.payloadParams]
|
11049
|
-
),
|
11049
|
+
), we = Ht(async () => {
|
11050
11050
|
if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
|
11051
11051
|
try {
|
11052
|
-
const F =
|
11052
|
+
const F = Ee.get(
|
11053
11053
|
`${l}-conversation-history-id`
|
11054
11054
|
);
|
11055
11055
|
if (!F)
|
@@ -11065,15 +11065,15 @@ function ni({ submitEventExternal: e }) {
|
|
11065
11065
|
}
|
11066
11066
|
);
|
11067
11067
|
if (W.status === 404) {
|
11068
|
-
|
11068
|
+
Ee.remove(`${l}-conversation-history-id`);
|
11069
11069
|
return;
|
11070
11070
|
}
|
11071
11071
|
if (!W.ok)
|
11072
11072
|
throw new lr(`HTTPError: ${W.status} ${W.statusText}`);
|
11073
11073
|
const be = await W.json();
|
11074
|
-
|
11075
|
-
be.map((
|
11076
|
-
...
|
11074
|
+
D(
|
11075
|
+
be.map((se) => ({
|
11076
|
+
...se,
|
11077
11077
|
disableFeedback: !0
|
11078
11078
|
}))
|
11079
11079
|
), O(!0), $(!0);
|
@@ -11083,17 +11083,17 @@ function ni({ submitEventExternal: e }) {
|
|
11083
11083
|
k(!1);
|
11084
11084
|
}
|
11085
11085
|
}, [l, t.endpoint]);
|
11086
|
-
ng(
|
11086
|
+
ng(we), Me(() => {
|
11087
11087
|
let F, W;
|
11088
11088
|
return o.enabled && (F = setInterval(() => {
|
11089
|
-
var
|
11090
|
-
console.log("Chatbot - Finding Segment"), (
|
11089
|
+
var se;
|
11090
|
+
console.log("Chatbot - Finding Segment"), (se = window.analytics) != null && se.track && (console.log("Chatbot - Segment found"), ie.current = window.analytics, clearInterval(F), clearTimeout(W), u(!0));
|
11091
11091
|
}, 1e3), W = setTimeout(() => {
|
11092
11092
|
clearInterval(F);
|
11093
11093
|
}, 6e4)), () => {
|
11094
11094
|
clearInterval(F), clearTimeout(W);
|
11095
11095
|
};
|
11096
|
-
}, [o.enabled, o.prefix]),
|
11096
|
+
}, [o.enabled, o.prefix]), Me(() => {
|
11097
11097
|
let F, W;
|
11098
11098
|
return F = setInterval(() => {
|
11099
11099
|
a.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(F), clearTimeout(W), c(!0)));
|
@@ -11102,49 +11102,49 @@ function ni({ submitEventExternal: e }) {
|
|
11102
11102
|
}, 6e4), () => {
|
11103
11103
|
clearInterval(F), clearTimeout(W);
|
11104
11104
|
};
|
11105
|
-
}, [a.enabled, a.experimentName]),
|
11105
|
+
}, [a.enabled, a.experimentName]), Me(() => {
|
11106
11106
|
let F, W;
|
11107
11107
|
return F = setInterval(() => {
|
11108
|
-
var
|
11108
|
+
var C, U, K, J, ue;
|
11109
11109
|
console.log(
|
11110
11110
|
"Chatbot - Finding Mobile banners",
|
11111
11111
|
s,
|
11112
11112
|
f
|
11113
11113
|
);
|
11114
|
-
const
|
11115
|
-
|
11116
|
-
),
|
11114
|
+
const se = (C = document.querySelectorAll(".branch-banner-ios")) == null ? void 0 : C[0], Ie = (U = document.querySelectorAll(
|
11115
|
+
".branch-banner-android"
|
11116
|
+
)) == null ? void 0 : U[0], T = (K = document.querySelectorAll(
|
11117
11117
|
".onetrust-banner-sdk"
|
11118
|
-
)) == null ? void 0 :
|
11119
|
-
if ((
|
11118
|
+
)) == null ? void 0 : K[0];
|
11119
|
+
if ((se || Ie || T && ((J = T == null ? void 0 : T.style) == null ? void 0 : J.display) !== "none") && s && !f && (console.log("Chatbot - Mobile banners found"), m(!0)), !se && !Ie && (!T || ((ue = T == null ? void 0 : T.style) == null ? void 0 : ue.display) === "none") && s && f) {
|
11120
11120
|
console.log("Chatbot - Mobile banners not found");
|
11121
|
-
const
|
11121
|
+
const Te = document.getElementById(
|
11122
11122
|
"xpert_chatbot__proactive-message"
|
11123
11123
|
);
|
11124
|
-
|
11125
|
-
const
|
11124
|
+
Te && (Te.style.bottom = "6rem");
|
11125
|
+
const De = document.getElementById(
|
11126
11126
|
"xpert_chatbot__floating-action-btn"
|
11127
11127
|
);
|
11128
|
-
|
11128
|
+
De && (De.style.bottom = "0rem"), clearInterval(F), clearTimeout(W);
|
11129
11129
|
}
|
11130
11130
|
}, 1e3), W = setTimeout(() => {
|
11131
|
-
var
|
11131
|
+
var C, U, K, J, ue;
|
11132
11132
|
console.log("Chatbot - Mobile banner search time out"), clearInterval(F);
|
11133
|
-
const
|
11134
|
-
|
11135
|
-
),
|
11133
|
+
const se = (C = document.querySelectorAll(".branch-banner-ios")) == null ? void 0 : C[0], Ie = (U = document.querySelectorAll(
|
11134
|
+
".branch-banner-android"
|
11135
|
+
)) == null ? void 0 : U[0], T = (K = document.querySelectorAll(
|
11136
11136
|
".onetrust-banner-sdk"
|
11137
|
-
)) == null ? void 0 :
|
11138
|
-
if ((
|
11137
|
+
)) == null ? void 0 : K[0];
|
11138
|
+
if ((se || Ie || T && ((J = T == null ? void 0 : T.style) == null ? void 0 : J.display) !== "none") && s && !f && (console.log("Chatbot - Mobile banners found"), m(!0)), !se && !Ie && (!T || ((ue = T == null ? void 0 : T.style) == null ? void 0 : ue.display) === "none") && s && f) {
|
11139
11139
|
console.log("Chatbot - Mobile banners not found");
|
11140
|
-
const
|
11140
|
+
const Te = document.getElementById(
|
11141
11141
|
"xpert_chatbot__proactive-message"
|
11142
11142
|
);
|
11143
|
-
|
11144
|
-
const
|
11143
|
+
Te && (Te.style.bottom = "6rem");
|
11144
|
+
const De = document.getElementById(
|
11145
11145
|
"xpert_chatbot__floating-action-btn"
|
11146
11146
|
);
|
11147
|
-
|
11147
|
+
De && (De.style.bottom = "0rem");
|
11148
11148
|
}
|
11149
11149
|
}, 6e4), () => {
|
11150
11150
|
clearInterval(F), clearTimeout(W);
|
@@ -11170,9 +11170,9 @@ function ni({ submitEventExternal: e }) {
|
|
11170
11170
|
), h || console.log(`Chatbot - Test user not setup: ${l}, ${h}`), null;
|
11171
11171
|
if (o.prefix && !(($e = ie == null ? void 0 : ie.current) != null && $e.track) && !e)
|
11172
11172
|
return console.log(`Chatbot - Segment not setup: ${l}`), null;
|
11173
|
-
const
|
11173
|
+
const Ne = () => {
|
11174
11174
|
M(""), Z.current.value = "", Z.current.style.height = "auto";
|
11175
|
-
},
|
11175
|
+
}, ae = (F, W) => {
|
11176
11176
|
ne({
|
11177
11177
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.response`,
|
11178
11178
|
payload: {
|
@@ -11184,12 +11184,12 @@ function ni({ submitEventExternal: e }) {
|
|
11184
11184
|
conversationHistoryId: W
|
11185
11185
|
}
|
11186
11186
|
});
|
11187
|
-
},
|
11187
|
+
}, ke = ({
|
11188
11188
|
conversationSize: F,
|
11189
11189
|
userInputMessage: W,
|
11190
11190
|
apiResponseMessage: be,
|
11191
|
-
elapsedSeconds:
|
11192
|
-
conversationByteSize:
|
11191
|
+
elapsedSeconds: se,
|
11192
|
+
conversationByteSize: Ie
|
11193
11193
|
}) => {
|
11194
11194
|
ne({
|
11195
11195
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
@@ -11200,17 +11200,17 @@ function ni({ submitEventExternal: e }) {
|
|
11200
11200
|
conversationSize: F,
|
11201
11201
|
userInputMessage: W,
|
11202
11202
|
apiResponseMessage: be,
|
11203
|
-
elapsedSeconds:
|
11204
|
-
conversationByteSize:
|
11203
|
+
elapsedSeconds: se,
|
11204
|
+
conversationByteSize: Ie
|
11205
11205
|
}
|
11206
11206
|
});
|
11207
|
-
},
|
11207
|
+
}, ve = async (F) => {
|
11208
11208
|
try {
|
11209
11209
|
if (F.trim().length === 0)
|
11210
11210
|
return;
|
11211
11211
|
const W = /* @__PURE__ */ new Date();
|
11212
11212
|
$(!1), Y(!1);
|
11213
|
-
const be = p.filter((
|
11213
|
+
const be = p.filter((ue) => ue.role === "user").length + 1;
|
11214
11214
|
ne({
|
11215
11215
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
11216
11216
|
payload: {
|
@@ -11220,69 +11220,69 @@ function ni({ submitEventExternal: e }) {
|
|
11220
11220
|
userInputMessage: F,
|
11221
11221
|
isTestUser: h
|
11222
11222
|
}
|
11223
|
-
}),
|
11224
|
-
let
|
11225
|
-
!
|
11223
|
+
}), Ne();
|
11224
|
+
let se = Ee.get(`${l}-conversation-history-id`) || "";
|
11225
|
+
!se && n.conversationHistory.enabled ? D([
|
11226
11226
|
{
|
11227
11227
|
role: "user",
|
11228
11228
|
content: F
|
11229
11229
|
}
|
11230
|
-
]) :
|
11230
|
+
]) : D([
|
11231
11231
|
...p,
|
11232
11232
|
{
|
11233
11233
|
role: "user",
|
11234
11234
|
content: F
|
11235
11235
|
}
|
11236
11236
|
]), k(!0);
|
11237
|
-
const
|
11237
|
+
const Ie = [
|
11238
11238
|
...p,
|
11239
11239
|
{
|
11240
11240
|
role: "user",
|
11241
11241
|
content: F
|
11242
11242
|
}
|
11243
|
-
].map((
|
11244
|
-
role:
|
11245
|
-
content:
|
11246
|
-
})),
|
11243
|
+
].map((ue) => ({
|
11244
|
+
role: ue.role,
|
11245
|
+
content: ue.content
|
11246
|
+
})), T = await fetch(t.endpoint, {
|
11247
11247
|
method: "POST",
|
11248
11248
|
headers: {
|
11249
11249
|
"Content-Type": "application/json",
|
11250
|
-
"Conversation-History-Id":
|
11250
|
+
"Conversation-History-Id": se
|
11251
11251
|
},
|
11252
11252
|
body: JSON.stringify({
|
11253
|
-
message_list:
|
11253
|
+
message_list: Ie,
|
11254
11254
|
...t.payloadParams
|
11255
11255
|
})
|
11256
11256
|
});
|
11257
|
-
if (!
|
11258
|
-
throw new lr(`HTTPError: ${
|
11259
|
-
|
11257
|
+
if (!T.ok)
|
11258
|
+
throw new lr(`HTTPError: ${T.status} ${T.statusText}`);
|
11259
|
+
se = T.headers.get("Conversation-History-Id"), se && Ee.set(
|
11260
11260
|
`${l}-conversation-history-id`,
|
11261
|
-
|
11261
|
+
se,
|
11262
11262
|
{ expires: 1 }
|
11263
11263
|
);
|
11264
|
-
const C = await
|
11265
|
-
|
11266
|
-
const
|
11267
|
-
|
11268
|
-
conversationByteSize: og(JSON.stringify(
|
11264
|
+
const C = await T.json(), U = C.content, K = C.live_agent;
|
11265
|
+
ae(U, se);
|
11266
|
+
const J = /* @__PURE__ */ new Date();
|
11267
|
+
ke({
|
11268
|
+
conversationByteSize: og(JSON.stringify(Ie)),
|
11269
11269
|
conversationSize: p.length + 2,
|
11270
11270
|
userInputMessage: F,
|
11271
11271
|
apiResponseMessage: U,
|
11272
|
-
elapsedSeconds: rg(W,
|
11273
|
-
}),
|
11274
|
-
...
|
11272
|
+
elapsedSeconds: rg(W, J)
|
11273
|
+
}), D((ue) => [
|
11274
|
+
...ue,
|
11275
11275
|
{
|
11276
11276
|
role: "assistant",
|
11277
11277
|
content: U,
|
11278
11278
|
liveAgent: K,
|
11279
11279
|
createdAt: /* @__PURE__ */ new Date()
|
11280
11280
|
}
|
11281
|
-
]), O(!1), k(!1),
|
11281
|
+
]), O(!1), k(!1), Ne(), $(!0);
|
11282
11282
|
} catch (W) {
|
11283
|
-
k(!1),
|
11283
|
+
k(!1), Ne(), Y(!0), console.error(W);
|
11284
11284
|
}
|
11285
|
-
},
|
11285
|
+
}, Fe = () => {
|
11286
11286
|
_(!1), z(!0), ne({
|
11287
11287
|
name: `${o.prefix}.bi.xpert.chatbot.action.button.clicked`,
|
11288
11288
|
payload: {
|
@@ -11291,7 +11291,7 @@ function ni({ submitEventExternal: e }) {
|
|
11291
11291
|
isTestUser: h
|
11292
11292
|
}
|
11293
11293
|
});
|
11294
|
-
},
|
11294
|
+
}, Pe = (F) => {
|
11295
11295
|
ne({
|
11296
11296
|
name: `${o.prefix}.bi.xpert.chatbot.${F ? "normal" : "expand"}.size.button.clicked`,
|
11297
11297
|
payload: {
|
@@ -11299,7 +11299,7 @@ function ni({ submitEventExternal: e }) {
|
|
11299
11299
|
label: "xpert-chatbot",
|
11300
11300
|
isTestUser: h
|
11301
11301
|
}
|
11302
|
-
}),
|
11302
|
+
}), ee(F);
|
11303
11303
|
}, Ke = () => {
|
11304
11304
|
z(!0), ne({
|
11305
11305
|
name: `${o.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
|
@@ -11318,7 +11318,7 @@ function ni({ submitEventExternal: e }) {
|
|
11318
11318
|
isTestUser: h
|
11319
11319
|
}
|
11320
11320
|
});
|
11321
|
-
},
|
11321
|
+
}, It = () => {
|
11322
11322
|
z(!1), w(!1), ne({
|
11323
11323
|
name: `${o.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
|
11324
11324
|
payload: {
|
@@ -11327,7 +11327,7 @@ function ni({ submitEventExternal: e }) {
|
|
11327
11327
|
isTestUser: h
|
11328
11328
|
}
|
11329
11329
|
});
|
11330
|
-
},
|
11330
|
+
}, Nt = () => {
|
11331
11331
|
var F;
|
11332
11332
|
/* istanbul ignore next @preserve */
|
11333
11333
|
Z.current && (Z.current.style.height = "auto", Z.current.style.height = `${Math.min(
|
@@ -11337,9 +11337,9 @@ function ni({ submitEventExternal: e }) {
|
|
11337
11337
|
}, kt = (F) => {
|
11338
11338
|
M(F.target.value);
|
11339
11339
|
}, mt = (F) => {
|
11340
|
-
F.key === "Enter" && Q.trim() === "" || F.key === "Enter" && !F.shiftKey && (F.preventDefault(),
|
11340
|
+
F.key === "Enter" && Q.trim() === "" || F.key === "Enter" && !F.shiftKey && (F.preventDefault(), ve(Q));
|
11341
11341
|
}, yt = (F, W = "") => {
|
11342
|
-
const be = p.map((
|
11342
|
+
const be = p.map((se, Ie) => F === Ie ? (ne({
|
11343
11343
|
name: `${o.prefix}.bi.xpert.chatbot.feedback.thumbs.${W.toLowerCase()}.clicked`,
|
11344
11344
|
payload: {
|
11345
11345
|
category: "2u",
|
@@ -11350,10 +11350,10 @@ function ni({ submitEventExternal: e }) {
|
|
11350
11350
|
isTestUser: h
|
11351
11351
|
}
|
11352
11352
|
}), {
|
11353
|
-
...
|
11353
|
+
...se,
|
11354
11354
|
feedbackThumbType: W
|
11355
|
-
}) :
|
11356
|
-
|
11355
|
+
}) : se);
|
11356
|
+
D(be), O(!1);
|
11357
11357
|
}, Je = ((Ze = r.animatedGraduate) == null ? void 0 : Ze.enabled) && a.enabled && me === "A", jt = i.enabled ? Je ? s ? i.style.mobile.animatedGraduateExperiment : i.style.animatedGraduateExperiment : s ? i.style.mobile : i.style : null;
|
11358
11358
|
return (
|
11359
11359
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -11395,13 +11395,13 @@ function ni({ submitEventExternal: e }) {
|
|
11395
11395
|
Je && /* @__PURE__ */ v.jsx(
|
11396
11396
|
Ls,
|
11397
11397
|
{
|
11398
|
-
handleFloatingActionButtonClick:
|
11398
|
+
handleFloatingActionButtonClick: Fe
|
11399
11399
|
}
|
11400
11400
|
),
|
11401
11401
|
!Je && /* @__PURE__ */ v.jsx(
|
11402
11402
|
Ss,
|
11403
11403
|
{
|
11404
|
-
handleFloatingActionButtonClick:
|
11404
|
+
handleFloatingActionButtonClick: Fe
|
11405
11405
|
}
|
11406
11406
|
),
|
11407
11407
|
/* @__PURE__ */ v.jsx(Fs, {}),
|
@@ -11416,11 +11416,11 @@ function ni({ submitEventExternal: e }) {
|
|
11416
11416
|
/* @__PURE__ */ v.jsx(
|
11417
11417
|
da,
|
11418
11418
|
{
|
11419
|
-
onClose:
|
11419
|
+
onClose: It,
|
11420
11420
|
isMounted: S,
|
11421
11421
|
isNormalSize: q,
|
11422
11422
|
setIsMounted: w,
|
11423
|
-
setIsNormalSize:
|
11423
|
+
setIsNormalSize: Pe
|
11424
11424
|
}
|
11425
11425
|
),
|
11426
11426
|
/* @__PURE__ */ v.jsxs(
|
@@ -11440,7 +11440,7 @@ function ni({ submitEventExternal: e }) {
|
|
11440
11440
|
loading: x,
|
11441
11441
|
isNormalSize: s || q,
|
11442
11442
|
onFeedbackThumbSelection: yt,
|
11443
|
-
onPromptClick:
|
11443
|
+
onPromptClick: ve,
|
11444
11444
|
handleMessageLinkClicked: g,
|
11445
11445
|
submitEvent: ne,
|
11446
11446
|
setLiveChatOpen: _,
|
@@ -11472,8 +11472,8 @@ function ni({ submitEventExternal: e }) {
|
|
11472
11472
|
hasXpertMessages: P,
|
11473
11473
|
hasError: L,
|
11474
11474
|
userInput: Q,
|
11475
|
-
handleSend:
|
11476
|
-
handleInput:
|
11475
|
+
handleSend: ve,
|
11476
|
+
handleInput: Nt,
|
11477
11477
|
handleChange: kt,
|
11478
11478
|
handleKeyDown: mt
|
11479
11479
|
}
|