@2uinc/frontend-component-xpert-chatbot 1.7.0-beta.4 → 1.7.0-beta.6
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 +266 -268
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -290,7 +290,7 @@ function xo(e) {
|
|
290
290
|
});
|
291
291
|
}), n;
|
292
292
|
}
|
293
|
-
var bo = { exports: {} },
|
293
|
+
var bo = { exports: {} }, $t = {};
|
294
294
|
/*
|
295
295
|
object-assign
|
296
296
|
(c) Sindre Sorhus
|
@@ -334,10 +334,10 @@ ou();
|
|
334
334
|
* LICENSE file in the root directory of this source tree.
|
335
335
|
*/
|
336
336
|
var au = ve, wo = 60103;
|
337
|
-
|
337
|
+
$t.Fragment = 60107;
|
338
338
|
if (typeof Symbol == "function" && Symbol.for) {
|
339
339
|
var fi = Symbol.for;
|
340
|
-
wo = fi("react.element"),
|
340
|
+
wo = fi("react.element"), $t.Fragment = fi("react.fragment");
|
341
341
|
}
|
342
342
|
var lu = au.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, uu = Object.prototype.hasOwnProperty, su = { key: !0, ref: !0, __self: !0, __source: !0 };
|
343
343
|
function vo(e, t, n) {
|
@@ -350,9 +350,9 @@ function vo(e, t, n) {
|
|
350
350
|
i[r] === void 0 && (i[r] = t[r]);
|
351
351
|
return { $$typeof: wo, type: e, key: o, ref: a, props: i, _owner: lu.current };
|
352
352
|
}
|
353
|
-
|
354
|
-
|
355
|
-
bo.exports =
|
353
|
+
$t.jsx = vo;
|
354
|
+
$t.jsxs = vo;
|
355
|
+
bo.exports = $t;
|
356
356
|
var k = bo.exports, Do = { exports: {} }, cu = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", fu = cu, pu = fu;
|
357
357
|
function To() {
|
358
358
|
}
|
@@ -403,8 +403,8 @@ const N = /* @__PURE__ */ nt(Q);
|
|
403
403
|
var pn = { exports: {} };
|
404
404
|
pn.exports;
|
405
405
|
(function(e, t) {
|
406
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", j = "[object Number]", v = "[object Null]", C = "[object Object]", S = "[object Proxy]", W = "[object RegExp]",
|
407
|
-
h[A] = h[b] = h[I] = h[z] = h[L] = h[U] = h[_] = h[V] = h[ie] = !0, h[l] = h[u] = h[G] = h[c] = h[K] = h[p] = h[m] = h[d] = h[x] = h[j] = h[C] = h[W] = h[
|
406
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 800, o = 16, a = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", p = "[object Date]", m = "[object Error]", d = "[object Function]", T = "[object GeneratorFunction]", x = "[object Map]", j = "[object Number]", v = "[object Null]", C = "[object Object]", S = "[object Proxy]", W = "[object RegExp]", $ = "[object Set]", M = "[object String]", P = "[object Undefined]", H = "[object WeakMap]", G = "[object ArrayBuffer]", K = "[object DataView]", A = "[object Float32Array]", b = "[object Float64Array]", I = "[object Int8Array]", z = "[object Int16Array]", L = "[object Int32Array]", U = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", V = "[object Uint16Array]", ie = "[object Uint32Array]", g = /[\\^$.*+?()[\]{}|]/g, fe = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, h = {};
|
407
|
+
h[A] = h[b] = h[I] = h[z] = h[L] = h[U] = h[_] = h[V] = h[ie] = !0, h[l] = h[u] = h[G] = h[c] = h[K] = h[p] = h[m] = h[d] = h[x] = h[j] = h[C] = h[W] = h[$] = h[M] = h[H] = !1;
|
408
408
|
var me = typeof Jt == "object" && Jt && Jt.Object === Object && Jt, De = typeof self == "object" && self && self.Object === Object && self, oe = me || De || Function("return this")(), Te = t && !t.nodeType && t, be = Te && !0 && e && !e.nodeType && e, Be = be && be.exports === Te, ze = Be && me.process, Ke = function() {
|
409
409
|
try {
|
410
410
|
var f = be && be.require && be.require("util").types;
|
@@ -448,7 +448,7 @@ pn.exports;
|
|
448
448
|
return f ? "Symbol(src)_1." + f : "";
|
449
449
|
}(), Xe = he.toString, jt = je.call(Object), D = RegExp(
|
450
450
|
"^" + je.call(xe).replace(g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
451
|
-
), O = Be ? oe.Buffer : void 0, Y = oe.Symbol, ee = oe.Uint8Array, re = O ? O.allocUnsafe : void 0, Ie = at(Object.getPrototypeOf, Object), Qe = Object.create, Ye = he.propertyIsEnumerable, lt = R.splice, Ee = Y ? Y.toStringTag : void 0,
|
451
|
+
), O = Be ? oe.Buffer : void 0, Y = oe.Symbol, ee = oe.Uint8Array, re = O ? O.allocUnsafe : void 0, Ie = at(Object.getPrototypeOf, Object), Qe = Object.create, Ye = he.propertyIsEnumerable, lt = R.splice, Ee = Y ? Y.toStringTag : void 0, ue = function() {
|
452
452
|
try {
|
453
453
|
var f = Fn(Object, "defineProperty");
|
454
454
|
return f({}, "", {}), f;
|
@@ -608,7 +608,7 @@ pn.exports;
|
|
608
608
|
return -1;
|
609
609
|
}
|
610
610
|
function Pn(f, y, w) {
|
611
|
-
y == "__proto__" &&
|
611
|
+
y == "__proto__" && ue ? ue(f, y, {
|
612
612
|
configurable: !0,
|
613
613
|
enumerable: !0,
|
614
614
|
value: w,
|
@@ -625,7 +625,7 @@ pn.exports;
|
|
625
625
|
function wl(f) {
|
626
626
|
if (!st(f) || _l(f))
|
627
627
|
return !1;
|
628
|
-
var y = Qn(f) ? D :
|
628
|
+
var y = Qn(f) ? D : fe;
|
629
629
|
return y.test(Hl(f));
|
630
630
|
}
|
631
631
|
function vl(f) {
|
@@ -658,15 +658,15 @@ pn.exports;
|
|
658
658
|
var Ae = le ? le(X, de, w + "", f, y, pe) : void 0, St = Ae === void 0;
|
659
659
|
if (St) {
|
660
660
|
var Yn = Un(de), Hn = !Yn && ii(de), si = !Yn && !Hn && ai(de);
|
661
|
-
Ae = de, Yn || Hn || si ? Un(X) ? Ae = X :
|
661
|
+
Ae = de, Yn || Hn || si ? Un(X) ? Ae = X : ql(X) ? Ae = Al(X) : Hn ? (St = !1, Ae = kl(de, !0)) : si ? (St = !1, Ae = El(de, !0)) : Ae = [] : $l(de) || Rn(de) ? (Ae = X, Rn(X) ? Ae = Vl(X) : (!st(X) || Qn(X)) && (Ae = Ll(de))) : St = !1;
|
662
662
|
}
|
663
663
|
St && (pe.set(de, Ae), J(Ae, de, F, le, pe), pe.delete(de)), Ln(f, w, Ae);
|
664
664
|
}
|
665
665
|
function Il(f, y) {
|
666
666
|
return Ql(Bl(f, y, ui), f + "");
|
667
667
|
}
|
668
|
-
var Nl =
|
669
|
-
return
|
668
|
+
var Nl = ue ? function(f, y) {
|
669
|
+
return ue(f, "toString", {
|
670
670
|
configurable: !0,
|
671
671
|
enumerable: !1,
|
672
672
|
value: Gl(y),
|
@@ -825,7 +825,7 @@ pn.exports;
|
|
825
825
|
function Bn(f) {
|
826
826
|
return f != null && oi(f.length) && !Qn(f);
|
827
827
|
}
|
828
|
-
function
|
828
|
+
function ql(f) {
|
829
829
|
return Ct(f) && Bn(f);
|
830
830
|
}
|
831
831
|
var ii = Et || Zl;
|
@@ -845,7 +845,7 @@ pn.exports;
|
|
845
845
|
function Ct(f) {
|
846
846
|
return f != null && typeof f == "object";
|
847
847
|
}
|
848
|
-
function
|
848
|
+
function $l(f) {
|
849
849
|
if (!Ct(f) || Zt(f) != C)
|
850
850
|
return !1;
|
851
851
|
var y = Ie(f);
|
@@ -1256,7 +1256,7 @@ const Du = {
|
|
1256
1256
|
not_found: {},
|
1257
1257
|
...Eo
|
1258
1258
|
};
|
1259
|
-
function
|
1259
|
+
function qn(e, t) {
|
1260
1260
|
for (const n in t)
|
1261
1261
|
if (n in e && typeof e[n] != typeof t[n])
|
1262
1262
|
return !1;
|
@@ -1266,12 +1266,12 @@ function Co(e) {
|
|
1266
1266
|
if (typeof e != "object" || e === null)
|
1267
1267
|
return null;
|
1268
1268
|
const t = e;
|
1269
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" ||
|
1269
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !qn(e, Du))
|
1270
1270
|
return null;
|
1271
1271
|
const n = t.icons;
|
1272
1272
|
for (const i in n) {
|
1273
1273
|
const o = n[i];
|
1274
|
-
if (!i.match(_t) || typeof o.body != "string" ||
|
1274
|
+
if (!i.match(_t) || typeof o.body != "string" || !qn(
|
1275
1275
|
o,
|
1276
1276
|
ar
|
1277
1277
|
))
|
@@ -1280,7 +1280,7 @@ function Co(e) {
|
|
1280
1280
|
const r = t.aliases || /* @__PURE__ */ Object.create(null);
|
1281
1281
|
for (const i in r) {
|
1282
1282
|
const o = r[i], a = o.parent;
|
1283
|
-
if (!i.match(_t) || typeof a != "string" || !n[a] && !r[a] ||
|
1283
|
+
if (!i.match(_t) || typeof a != "string" || !n[a] && !r[a] || !qn(
|
1284
1284
|
o,
|
1285
1285
|
ar
|
1286
1286
|
))
|
@@ -1605,11 +1605,11 @@ const Hu = (e, t, n) => {
|
|
1605
1605
|
}).catch(() => {
|
1606
1606
|
n("next", i);
|
1607
1607
|
});
|
1608
|
-
},
|
1608
|
+
}, qu = {
|
1609
1609
|
prepare: Qu,
|
1610
1610
|
send: Hu
|
1611
1611
|
};
|
1612
|
-
function
|
1612
|
+
function $u(e) {
|
1613
1613
|
const t = {
|
1614
1614
|
loaded: [],
|
1615
1615
|
missing: [],
|
@@ -1774,7 +1774,7 @@ function Xu(e, t, n, r) {
|
|
1774
1774
|
return;
|
1775
1775
|
}
|
1776
1776
|
if (G) {
|
1777
|
-
c = H, m.length || (a.length ?
|
1777
|
+
c = H, m.length || (a.length ? $() : C());
|
1778
1778
|
return;
|
1779
1779
|
}
|
1780
1780
|
if (T(), S(), !e.random) {
|
@@ -1785,7 +1785,7 @@ function Xu(e, t, n, r) {
|
|
1785
1785
|
K(H);
|
1786
1786
|
});
|
1787
1787
|
}
|
1788
|
-
function
|
1788
|
+
function $() {
|
1789
1789
|
if (u !== "pending")
|
1790
1790
|
return;
|
1791
1791
|
T();
|
@@ -1807,9 +1807,9 @@ function Xu(e, t, n, r) {
|
|
1807
1807
|
W(P, H, G);
|
1808
1808
|
}
|
1809
1809
|
};
|
1810
|
-
m.push(P), s++, p = setTimeout(
|
1810
|
+
m.push(P), s++, p = setTimeout($, e.rotate), n(M, t, P.callback);
|
1811
1811
|
}
|
1812
|
-
return setTimeout(
|
1812
|
+
return setTimeout($), v;
|
1813
1813
|
}
|
1814
1814
|
function Po(e) {
|
1815
1815
|
const t = {
|
@@ -1846,9 +1846,9 @@ function Po(e) {
|
|
1846
1846
|
}
|
1847
1847
|
function mi() {
|
1848
1848
|
}
|
1849
|
-
const
|
1849
|
+
const $n = /* @__PURE__ */ Object.create(null);
|
1850
1850
|
function Ju(e) {
|
1851
|
-
if (
|
1851
|
+
if (!$n[e]) {
|
1852
1852
|
const t = jr(e);
|
1853
1853
|
if (!t)
|
1854
1854
|
return;
|
@@ -1856,9 +1856,9 @@ function Ju(e) {
|
|
1856
1856
|
config: t,
|
1857
1857
|
redundancy: n
|
1858
1858
|
};
|
1859
|
-
|
1859
|
+
$n[e] = r;
|
1860
1860
|
}
|
1861
|
-
return
|
1861
|
+
return $n[e];
|
1862
1862
|
}
|
1863
1863
|
function es(e, t, n) {
|
1864
1864
|
let r, i;
|
@@ -1879,7 +1879,7 @@ function es(e, t, n) {
|
|
1879
1879
|
}
|
1880
1880
|
return !r || !i ? (n(void 0, 424), mi) : r.query(t, i, n)().abort;
|
1881
1881
|
}
|
1882
|
-
const yi = "iconify2",
|
1882
|
+
const yi = "iconify2", qt = "iconify", Fo = qt + "-count", Mi = qt + "-version", _o = 36e5, ts = 168;
|
1883
1883
|
function sr(e, t) {
|
1884
1884
|
try {
|
1885
1885
|
return e.getItem(t);
|
@@ -1934,13 +1934,13 @@ function Bo(e, t) {
|
|
1934
1934
|
if (r) {
|
1935
1935
|
const l = fr(n);
|
1936
1936
|
for (let u = 0; u < l; u++)
|
1937
|
-
xi(n,
|
1937
|
+
xi(n, qt + u.toString());
|
1938
1938
|
}
|
1939
1939
|
Er(n, Mi, yi), cr(n, 0);
|
1940
1940
|
return;
|
1941
1941
|
}
|
1942
1942
|
const i = Math.floor(Date.now() / _o) - ts, o = (l) => {
|
1943
|
-
const u =
|
1943
|
+
const u = qt + l.toString(), s = sr(n, u);
|
1944
1944
|
if (typeof s == "string") {
|
1945
1945
|
try {
|
1946
1946
|
const c = JSON.parse(s);
|
@@ -2006,7 +2006,7 @@ function is(e, t) {
|
|
2006
2006
|
};
|
2007
2007
|
return Er(
|
2008
2008
|
i,
|
2009
|
-
|
2009
|
+
qt + a.toString(),
|
2010
2010
|
JSON.stringify(l)
|
2011
2011
|
);
|
2012
2012
|
}
|
@@ -2054,7 +2054,7 @@ function as(e, t) {
|
|
2054
2054
|
}));
|
2055
2055
|
}
|
2056
2056
|
const ls = (e, t) => {
|
2057
|
-
const n = Zu(e, !0, So()), r =
|
2057
|
+
const n = Zu(e, !0, So()), r = $u(n);
|
2058
2058
|
if (!r.pending.length) {
|
2059
2059
|
let u = !0;
|
2060
2060
|
return t && setTimeout(() => {
|
@@ -2264,7 +2264,7 @@ const ws = (e, t, n, r) => {
|
|
2264
2264
|
}, ve.createElement("span", s);
|
2265
2265
|
};
|
2266
2266
|
So(!0);
|
2267
|
-
Fu("",
|
2267
|
+
Fu("", qu);
|
2268
2268
|
if (typeof document < "u" && typeof window < "u") {
|
2269
2269
|
Qo();
|
2270
2270
|
const e = window;
|
@@ -2297,7 +2297,7 @@ if (typeof document < "u" && typeof window < "u") {
|
|
2297
2297
|
}
|
2298
2298
|
}
|
2299
2299
|
}
|
2300
|
-
class
|
2300
|
+
class qo extends ve.Component {
|
2301
2301
|
constructor(t) {
|
2302
2302
|
super(t), this.state = {
|
2303
2303
|
// Render placeholder before component is mounted
|
@@ -2392,7 +2392,7 @@ const bt = ve.forwardRef(function(t, n) {
|
|
2392
2392
|
_ref: n,
|
2393
2393
|
_inline: !1
|
2394
2394
|
};
|
2395
|
-
return ve.createElement(
|
2395
|
+
return ve.createElement(qo, r);
|
2396
2396
|
});
|
2397
2397
|
ve.forwardRef(function(t, n) {
|
2398
2398
|
const r = {
|
@@ -2400,7 +2400,7 @@ ve.forwardRef(function(t, n) {
|
|
2400
2400
|
_ref: n,
|
2401
2401
|
_inline: !0
|
2402
2402
|
};
|
2403
|
-
return ve.createElement(
|
2403
|
+
return ve.createElement(qo, r);
|
2404
2404
|
});
|
2405
2405
|
const vs = 576, Ds = (e) => {
|
2406
2406
|
const [t, n] = we(), r = Yt(() => {
|
@@ -2412,7 +2412,7 @@ const vs = 576, Ds = (e) => {
|
|
2412
2412
|
}, [e]);
|
2413
2413
|
return Oe(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
|
2414
2414
|
}, vt = Ds, Ts = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0xMjAtMTIwdi0zMDBoNjB2MTk4bDU1OC01NThINTQwdi02MGgzMDB2MzAwaC02MHYtMTk4TDIyMi0xODBoMTk4djYwSDEyMFoiLz48L3N2Zz4=", Is = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmZmZmZmYiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==", Ns = 991;
|
2415
|
-
function
|
2415
|
+
function $o({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
2416
2416
|
return vt(Ns) ? null : e ? /* @__PURE__ */ k.jsx(
|
2417
2417
|
"button",
|
2418
2418
|
{
|
@@ -2466,7 +2466,7 @@ function qo({ isNormalSize: e, setIsMounted: t, setIsNormalSize: n }) {
|
|
2466
2466
|
}
|
2467
2467
|
);
|
2468
2468
|
}
|
2469
|
-
|
2469
|
+
$o.propTypes = {
|
2470
2470
|
isNormalSize: N.bool.isRequired,
|
2471
2471
|
setIsMounted: N.func.isRequired,
|
2472
2472
|
setIsNormalSize: N.func.isRequired
|
@@ -2491,7 +2491,7 @@ function Vo({
|
|
2491
2491
|
paddingBottom: "1.25rem"
|
2492
2492
|
},
|
2493
2493
|
children: /* @__PURE__ */ k.jsx(
|
2494
|
-
|
2494
|
+
$o,
|
2495
2495
|
{
|
2496
2496
|
isMounted: i,
|
2497
2497
|
setIsMounted: t,
|
@@ -2808,7 +2808,7 @@ _e.prototype.line = null;
|
|
2808
2808
|
_e.prototype.source = null;
|
2809
2809
|
_e.prototype.ruleId = null;
|
2810
2810
|
_e.prototype.position = null;
|
2811
|
-
const
|
2811
|
+
const qe = { basename: Cs, dirname: Ss, extname: Os, join: zs, sep: "/" };
|
2812
2812
|
function Cs(e, t) {
|
2813
2813
|
if (t !== void 0 && typeof t != "string")
|
2814
2814
|
throw new TypeError('"ext" argument must be a string');
|
@@ -3026,7 +3026,7 @@ class Ko {
|
|
3026
3026
|
* Get the parent path (example: `'~'`).
|
3027
3027
|
*/
|
3028
3028
|
get dirname() {
|
3029
|
-
return typeof this.path == "string" ?
|
3029
|
+
return typeof this.path == "string" ? qe.dirname(this.path) : void 0;
|
3030
3030
|
}
|
3031
3031
|
/**
|
3032
3032
|
* Set the parent path (example: `'~'`).
|
@@ -3034,13 +3034,13 @@ class Ko {
|
|
3034
3034
|
* Cannot be set if there’s no `path` yet.
|
3035
3035
|
*/
|
3036
3036
|
set dirname(t) {
|
3037
|
-
ki(this.basename, "dirname"), this.path =
|
3037
|
+
ki(this.basename, "dirname"), this.path = qe.join(t || "", this.basename);
|
3038
3038
|
}
|
3039
3039
|
/**
|
3040
3040
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
3041
3041
|
*/
|
3042
3042
|
get basename() {
|
3043
|
-
return typeof this.path == "string" ?
|
3043
|
+
return typeof this.path == "string" ? qe.basename(this.path) : void 0;
|
3044
3044
|
}
|
3045
3045
|
/**
|
3046
3046
|
* Set basename (including extname) (`'index.min.js'`).
|
@@ -3050,13 +3050,13 @@ class Ko {
|
|
3050
3050
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3051
3051
|
*/
|
3052
3052
|
set basename(t) {
|
3053
|
-
Gn(t, "basename"), Wn(t, "basename"), this.path =
|
3053
|
+
Gn(t, "basename"), Wn(t, "basename"), this.path = qe.join(this.dirname || "", t);
|
3054
3054
|
}
|
3055
3055
|
/**
|
3056
3056
|
* Get the extname (including dot) (example: `'.js'`).
|
3057
3057
|
*/
|
3058
3058
|
get extname() {
|
3059
|
-
return typeof this.path == "string" ?
|
3059
|
+
return typeof this.path == "string" ? qe.extname(this.path) : void 0;
|
3060
3060
|
}
|
3061
3061
|
/**
|
3062
3062
|
* Set the extname (including dot) (example: `'.js'`).
|
@@ -3072,13 +3072,13 @@ class Ko {
|
|
3072
3072
|
if (t.includes(".", 1))
|
3073
3073
|
throw new Error("`extname` cannot contain multiple dots");
|
3074
3074
|
}
|
3075
|
-
this.path =
|
3075
|
+
this.path = qe.join(this.dirname, this.stem + (t || ""));
|
3076
3076
|
}
|
3077
3077
|
/**
|
3078
3078
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
3079
3079
|
*/
|
3080
3080
|
get stem() {
|
3081
|
-
return typeof this.path == "string" ?
|
3081
|
+
return typeof this.path == "string" ? qe.basename(this.path, this.extname) : void 0;
|
3082
3082
|
}
|
3083
3083
|
/**
|
3084
3084
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -3088,7 +3088,7 @@ class Ko {
|
|
3088
3088
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3089
3089
|
*/
|
3090
3090
|
set stem(t) {
|
3091
|
-
Gn(t, "stem"), Wn(t, "stem"), this.path =
|
3091
|
+
Gn(t, "stem"), Wn(t, "stem"), this.path = qe.join(this.dirname || "", t + (this.extname || ""));
|
3092
3092
|
}
|
3093
3093
|
/**
|
3094
3094
|
* Serialize the file.
|
@@ -3168,9 +3168,9 @@ class Ko {
|
|
3168
3168
|
}
|
3169
3169
|
}
|
3170
3170
|
function Wn(e, t) {
|
3171
|
-
if (e && e.includes(
|
3171
|
+
if (e && e.includes(qe.sep))
|
3172
3172
|
throw new Error(
|
3173
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
3173
|
+
"`" + t + "` cannot be a path: did not expect `" + qe.sep + "`"
|
3174
3174
|
);
|
3175
3175
|
}
|
3176
3176
|
function Gn(e, t) {
|
@@ -3286,7 +3286,7 @@ function Hs(e, t) {
|
|
3286
3286
|
i(null, a);
|
3287
3287
|
}
|
3288
3288
|
}
|
3289
|
-
const
|
3289
|
+
const qs = ea().freeze(), Jo = {}.hasOwnProperty;
|
3290
3290
|
function ea() {
|
3291
3291
|
const e = Ys(), t = [];
|
3292
3292
|
let n = {}, r, i = -1;
|
@@ -3318,7 +3318,7 @@ function ea() {
|
|
3318
3318
|
let v;
|
3319
3319
|
if (Xn("use", r), x != null)
|
3320
3320
|
if (typeof x == "function")
|
3321
|
-
|
3321
|
+
$(x, ...j);
|
3322
3322
|
else if (typeof x == "object")
|
3323
3323
|
Array.isArray(x) ? W(x) : S(x);
|
3324
3324
|
else
|
@@ -3326,11 +3326,11 @@ function ea() {
|
|
3326
3326
|
return v && (n.settings = Object.assign(n.settings || {}, v)), o;
|
3327
3327
|
function C(M) {
|
3328
3328
|
if (typeof M == "function")
|
3329
|
-
|
3329
|
+
$(M);
|
3330
3330
|
else if (typeof M == "object")
|
3331
3331
|
if (Array.isArray(M)) {
|
3332
3332
|
const [P, ...H] = M;
|
3333
|
-
|
3333
|
+
$(P, ...H);
|
3334
3334
|
} else
|
3335
3335
|
S(M);
|
3336
3336
|
else
|
@@ -3350,7 +3350,7 @@ function ea() {
|
|
3350
3350
|
else
|
3351
3351
|
throw new TypeError("Expected a list of plugins, not `" + M + "`");
|
3352
3352
|
}
|
3353
|
-
function
|
3353
|
+
function $(M, P) {
|
3354
3354
|
let H = -1, G;
|
3355
3355
|
for (; ++H < t.length; )
|
3356
3356
|
if (t[H][0] === M) {
|
@@ -3375,8 +3375,8 @@ function ea() {
|
|
3375
3375
|
return new Promise(C);
|
3376
3376
|
C(null, v);
|
3377
3377
|
function C(S, W) {
|
3378
|
-
e.run(x, zt(j),
|
3379
|
-
function
|
3378
|
+
e.run(x, zt(j), $);
|
3379
|
+
function $(M, P, H) {
|
3380
3380
|
P = P || x, M ? W(M) : S ? S(P) : v(null, P, H);
|
3381
3381
|
}
|
3382
3382
|
}
|
@@ -3384,8 +3384,8 @@ function ea() {
|
|
3384
3384
|
function m(x, j) {
|
3385
3385
|
let v, C;
|
3386
3386
|
return o.run(x, j, S), _i("runSync", "run", C), v;
|
3387
|
-
function S(W,
|
3388
|
-
ji(W), v =
|
3387
|
+
function S(W, $) {
|
3388
|
+
ji(W), v = $, C = !0;
|
3389
3389
|
}
|
3390
3390
|
}
|
3391
3391
|
function d(x, j) {
|
@@ -3396,13 +3396,13 @@ function ea() {
|
|
3396
3396
|
const W = zt(x);
|
3397
3397
|
o.run(o.parse(W), W, (M, P, H) => {
|
3398
3398
|
if (M || !P || !H)
|
3399
|
-
|
3399
|
+
$(M);
|
3400
3400
|
else {
|
3401
3401
|
const G = o.stringify(P, H);
|
3402
|
-
G == null || (Ws(G) ? H.value = G : H.result = G),
|
3402
|
+
G == null || (Ws(G) ? H.value = G : H.result = G), $(M, H);
|
3403
3403
|
}
|
3404
3404
|
});
|
3405
|
-
function
|
3405
|
+
function $(M, P) {
|
3406
3406
|
M || !P ? S(M) : C ? C(P) : j(null, P);
|
3407
3407
|
}
|
3408
3408
|
}
|
@@ -3424,9 +3424,9 @@ function Pi(e, t) {
|
|
3424
3424
|
// Classes’ prototype methods are not enumerable, so we check if some value
|
3425
3425
|
// exists in the prototype.
|
3426
3426
|
// type-coverage:ignore-next-line
|
3427
|
-
(
|
3427
|
+
($s(e.prototype) || t in e.prototype);
|
3428
3428
|
}
|
3429
|
-
function
|
3429
|
+
function $s(e) {
|
3430
3430
|
let t;
|
3431
3431
|
for (t in e)
|
3432
3432
|
if (Jo.call(e, t))
|
@@ -3536,7 +3536,7 @@ function ec(e, t) {
|
|
3536
3536
|
(t[n].add === "after" ? e : r).push(t[n]);
|
3537
3537
|
Ve(e, 0, 0, r);
|
3538
3538
|
}
|
3539
|
-
const tc = /[!-\/:-@\[-`\{-~\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]/,
|
3539
|
+
const tc = /[!-\/:-@\[-`\{-~\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]/, $e = rt(/[A-Za-z]/), Se = rt(/[\dA-Za-z]/), nc = rt(/[#-'*+\--9=?A-Z^-~]/);
|
3540
3540
|
function mr(e) {
|
3541
3541
|
return (
|
3542
3542
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -3545,7 +3545,7 @@ function mr(e) {
|
|
3545
3545
|
);
|
3546
3546
|
}
|
3547
3547
|
const yr = rt(/\d/), rc = rt(/[\dA-Fa-f]/), ic = rt(/[!-/:-@[-`{-~]/);
|
3548
|
-
function
|
3548
|
+
function q(e) {
|
3549
3549
|
return e !== null && e < -2;
|
3550
3550
|
}
|
3551
3551
|
function ke(e) {
|
@@ -3561,7 +3561,7 @@ function rt(e) {
|
|
3561
3561
|
return n !== null && e.test(String.fromCharCode(n));
|
3562
3562
|
}
|
3563
3563
|
}
|
3564
|
-
function
|
3564
|
+
function ce(e, t, n, r) {
|
3565
3565
|
const i = r ? r - 1 : Number.POSITIVE_INFINITY;
|
3566
3566
|
let o = 0;
|
3567
3567
|
return a;
|
@@ -3588,7 +3588,7 @@ function uc(e) {
|
|
3588
3588
|
e.consume(l);
|
3589
3589
|
return;
|
3590
3590
|
}
|
3591
|
-
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"),
|
3591
|
+
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), ce(e, t, "linePrefix");
|
3592
3592
|
}
|
3593
3593
|
function i(l) {
|
3594
3594
|
return e.enter("paragraph"), o(l);
|
@@ -3605,7 +3605,7 @@ function uc(e) {
|
|
3605
3605
|
e.exit("chunkText"), e.exit("paragraph"), e.consume(l);
|
3606
3606
|
return;
|
3607
3607
|
}
|
3608
|
-
return
|
3608
|
+
return q(l) ? (e.consume(l), e.exit("chunkText"), o) : (e.consume(l), a);
|
3609
3609
|
}
|
3610
3610
|
}
|
3611
3611
|
const sc = {
|
@@ -3632,10 +3632,10 @@ function cc(e) {
|
|
3632
3632
|
if (r++, t.containerState._closeFlow) {
|
3633
3633
|
t.containerState._closeFlow = void 0, i && C();
|
3634
3634
|
const W = t.events.length;
|
3635
|
-
let
|
3636
|
-
for (;
|
3637
|
-
if (t.events[
|
3638
|
-
M = t.events[
|
3635
|
+
let $ = W, M;
|
3636
|
+
for (; $--; )
|
3637
|
+
if (t.events[$][0] === "exit" && t.events[$][1].type === "chunkFlow") {
|
3638
|
+
M = t.events[$][1].end;
|
3639
3639
|
break;
|
3640
3640
|
}
|
3641
3641
|
v(r);
|
@@ -3644,7 +3644,7 @@ function cc(e) {
|
|
3644
3644
|
t.events[P][1].end = Object.assign({}, M), P++;
|
3645
3645
|
return Ve(
|
3646
3646
|
t.events,
|
3647
|
-
|
3647
|
+
$ + 1,
|
3648
3648
|
0,
|
3649
3649
|
t.events.slice(W)
|
3650
3650
|
), t.events.length = P, s(S);
|
@@ -3697,11 +3697,11 @@ function cc(e) {
|
|
3697
3697
|
j(e.exit("chunkFlow"), !0), v(0), e.consume(S);
|
3698
3698
|
return;
|
3699
3699
|
}
|
3700
|
-
return
|
3700
|
+
return q(S) ? (e.consume(S), j(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(S), x);
|
3701
3701
|
}
|
3702
3702
|
function j(S, W) {
|
3703
|
-
const
|
3704
|
-
if (W &&
|
3703
|
+
const $ = t.sliceStream(S);
|
3704
|
+
if (W && $.push(null), S.previous = o, o && (o.next = S), o = S, i.defineSkip(S.start), i.write($), t.parser.lazy[S.start.line]) {
|
3705
3705
|
let M = i.events.length;
|
3706
3706
|
for (; M--; )
|
3707
3707
|
if (
|
@@ -3734,8 +3734,8 @@ function cc(e) {
|
|
3734
3734
|
function v(S) {
|
3735
3735
|
let W = n.length;
|
3736
3736
|
for (; W-- > S; ) {
|
3737
|
-
const
|
3738
|
-
t.containerState =
|
3737
|
+
const $ = n[W];
|
3738
|
+
t.containerState = $[1], $[0].exit.call(t, e);
|
3739
3739
|
}
|
3740
3740
|
n.length = S;
|
3741
3741
|
}
|
@@ -3744,7 +3744,7 @@ function cc(e) {
|
|
3744
3744
|
}
|
3745
3745
|
}
|
3746
3746
|
function fc(e, t, n) {
|
3747
|
-
return
|
3747
|
+
return ce(
|
3748
3748
|
e,
|
3749
3749
|
e.attempt(this.parser.constructs.document, t, n),
|
3750
3750
|
"linePrefix",
|
@@ -3857,7 +3857,7 @@ function gc(e, t, n) {
|
|
3857
3857
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(d), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
|
3858
3858
|
}
|
3859
3859
|
function o(d) {
|
3860
|
-
return
|
3860
|
+
return $e(d) ? (e.consume(d), a) : s(d);
|
3861
3861
|
}
|
3862
3862
|
function a(d) {
|
3863
3863
|
return d === 43 || d === 45 || d === 46 || Se(d) ? (r = 1, l(d)) : s(d);
|
@@ -3892,10 +3892,10 @@ const vn = {
|
|
3892
3892
|
function mc(e, t, n) {
|
3893
3893
|
return r;
|
3894
3894
|
function r(o) {
|
3895
|
-
return te(o) ?
|
3895
|
+
return te(o) ? ce(e, i, "linePrefix")(o) : i(o);
|
3896
3896
|
}
|
3897
3897
|
function i(o) {
|
3898
|
-
return o === null ||
|
3898
|
+
return o === null || q(o) ? t(o) : n(o);
|
3899
3899
|
}
|
3900
3900
|
}
|
3901
3901
|
const na = {
|
@@ -3926,7 +3926,7 @@ function Mc(e, t, n) {
|
|
3926
3926
|
const r = this;
|
3927
3927
|
return i;
|
3928
3928
|
function i(a) {
|
3929
|
-
return te(a) ?
|
3929
|
+
return te(a) ? ce(
|
3930
3930
|
e,
|
3931
3931
|
o,
|
3932
3932
|
"linePrefix",
|
@@ -3985,17 +3985,17 @@ function wc(e, t, n) {
|
|
3985
3985
|
return a(p) && i++ < o ? (e.consume(p), c) : n(p);
|
3986
3986
|
}
|
3987
3987
|
}
|
3988
|
-
const
|
3988
|
+
const qi = {
|
3989
3989
|
tokenize: Dc,
|
3990
3990
|
partial: !0
|
3991
|
-
},
|
3991
|
+
}, $i = {
|
3992
3992
|
name: "codeFenced",
|
3993
3993
|
tokenize: vc,
|
3994
3994
|
concrete: !0
|
3995
3995
|
};
|
3996
3996
|
function vc(e, t, n) {
|
3997
3997
|
const r = this, i = {
|
3998
|
-
tokenize:
|
3998
|
+
tokenize: $,
|
3999
3999
|
partial: !0
|
4000
4000
|
};
|
4001
4001
|
let o = 0, a = 0, l;
|
@@ -4008,23 +4008,23 @@ function vc(e, t, n) {
|
|
4008
4008
|
return o = P && P[1].type === "linePrefix" ? P[2].sliceSerialize(P[1], !0).length : 0, l = M, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(M);
|
4009
4009
|
}
|
4010
4010
|
function c(M) {
|
4011
|
-
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), te(M) ?
|
4011
|
+
return M === l ? (a++, e.consume(M), c) : a < 3 ? n(M) : (e.exit("codeFencedFenceSequence"), te(M) ? ce(e, p, "whitespace")(M) : p(M));
|
4012
4012
|
}
|
4013
4013
|
function p(M) {
|
4014
|
-
return M === null ||
|
4014
|
+
return M === null || q(M) ? (e.exit("codeFencedFence"), r.interrupt ? t(M) : e.check(qi, x, W)(M)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
4015
4015
|
contentType: "string"
|
4016
4016
|
}), m(M));
|
4017
4017
|
}
|
4018
4018
|
function m(M) {
|
4019
|
-
return M === null ||
|
4019
|
+
return M === null || q(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(M)) : te(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), ce(e, d, "whitespace")(M)) : M === 96 && M === l ? n(M) : (e.consume(M), m);
|
4020
4020
|
}
|
4021
4021
|
function d(M) {
|
4022
|
-
return M === null ||
|
4022
|
+
return M === null || q(M) ? p(M) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
4023
4023
|
contentType: "string"
|
4024
4024
|
}), T(M));
|
4025
4025
|
}
|
4026
4026
|
function T(M) {
|
4027
|
-
return M === null ||
|
4027
|
+
return M === null || q(M) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(M)) : M === 96 && M === l ? n(M) : (e.consume(M), T);
|
4028
4028
|
}
|
4029
4029
|
function x(M) {
|
4030
4030
|
return e.attempt(i, W, j)(M);
|
@@ -4033,7 +4033,7 @@ function vc(e, t, n) {
|
|
4033
4033
|
return e.enter("lineEnding"), e.consume(M), e.exit("lineEnding"), v;
|
4034
4034
|
}
|
4035
4035
|
function v(M) {
|
4036
|
-
return o > 0 && te(M) ?
|
4036
|
+
return o > 0 && te(M) ? ce(
|
4037
4037
|
e,
|
4038
4038
|
C,
|
4039
4039
|
"linePrefix",
|
@@ -4041,22 +4041,22 @@ function vc(e, t, n) {
|
|
4041
4041
|
)(M) : C(M);
|
4042
4042
|
}
|
4043
4043
|
function C(M) {
|
4044
|
-
return M === null ||
|
4044
|
+
return M === null || q(M) ? e.check(qi, x, W)(M) : (e.enter("codeFlowValue"), S(M));
|
4045
4045
|
}
|
4046
4046
|
function S(M) {
|
4047
|
-
return M === null ||
|
4047
|
+
return M === null || q(M) ? (e.exit("codeFlowValue"), C(M)) : (e.consume(M), S);
|
4048
4048
|
}
|
4049
4049
|
function W(M) {
|
4050
4050
|
return e.exit("codeFenced"), t(M);
|
4051
4051
|
}
|
4052
|
-
function
|
4052
|
+
function $(M, P, H) {
|
4053
4053
|
let G = 0;
|
4054
4054
|
return K;
|
4055
4055
|
function K(L) {
|
4056
4056
|
return M.enter("lineEnding"), M.consume(L), M.exit("lineEnding"), A;
|
4057
4057
|
}
|
4058
4058
|
function A(L) {
|
4059
|
-
return M.enter("codeFencedFence"), te(L) ?
|
4059
|
+
return M.enter("codeFencedFence"), te(L) ? ce(
|
4060
4060
|
M,
|
4061
4061
|
b,
|
4062
4062
|
"linePrefix",
|
@@ -4067,10 +4067,10 @@ function vc(e, t, n) {
|
|
4067
4067
|
return L === l ? (M.enter("codeFencedFenceSequence"), I(L)) : H(L);
|
4068
4068
|
}
|
4069
4069
|
function I(L) {
|
4070
|
-
return L === l ? (G++, M.consume(L), I) : G >= a ? (M.exit("codeFencedFenceSequence"), te(L) ?
|
4070
|
+
return L === l ? (G++, M.consume(L), I) : G >= a ? (M.exit("codeFencedFenceSequence"), te(L) ? ce(M, z, "whitespace")(L) : z(L)) : H(L);
|
4071
4071
|
}
|
4072
4072
|
function z(L) {
|
4073
|
-
return L === null ||
|
4073
|
+
return L === null || q(L) ? (M.exit("codeFencedFence"), P(L)) : H(L);
|
4074
4074
|
}
|
4075
4075
|
}
|
4076
4076
|
}
|
@@ -4095,17 +4095,17 @@ function Ic(e, t, n) {
|
|
4095
4095
|
const r = this;
|
4096
4096
|
return i;
|
4097
4097
|
function i(s) {
|
4098
|
-
return e.enter("codeIndented"),
|
4098
|
+
return e.enter("codeIndented"), ce(e, o, "linePrefix", 4 + 1)(s);
|
4099
4099
|
}
|
4100
4100
|
function o(s) {
|
4101
4101
|
const c = r.events[r.events.length - 1];
|
4102
4102
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? a(s) : n(s);
|
4103
4103
|
}
|
4104
4104
|
function a(s) {
|
4105
|
-
return s === null ? u(s) :
|
4105
|
+
return s === null ? u(s) : q(s) ? e.attempt(Tc, a, u)(s) : (e.enter("codeFlowValue"), l(s));
|
4106
4106
|
}
|
4107
4107
|
function l(s) {
|
4108
|
-
return s === null ||
|
4108
|
+
return s === null || q(s) ? (e.exit("codeFlowValue"), a(s)) : (e.consume(s), l);
|
4109
4109
|
}
|
4110
4110
|
function u(s) {
|
4111
4111
|
return e.exit("codeIndented"), t(s);
|
@@ -4115,11 +4115,11 @@ function Nc(e, t, n) {
|
|
4115
4115
|
const r = this;
|
4116
4116
|
return i;
|
4117
4117
|
function i(a) {
|
4118
|
-
return r.parser.lazy[r.now().line] ? n(a) :
|
4118
|
+
return r.parser.lazy[r.now().line] ? n(a) : q(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : ce(e, o, "linePrefix", 4 + 1)(a);
|
4119
4119
|
}
|
4120
4120
|
function o(a) {
|
4121
4121
|
const l = r.events[r.events.length - 1];
|
4122
|
-
return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(a) :
|
4122
|
+
return l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(a) : q(a) ? i(a) : n(a);
|
4123
4123
|
}
|
4124
4124
|
}
|
4125
4125
|
const kc = {
|
@@ -4154,10 +4154,10 @@ function Ac(e, t, n) {
|
|
4154
4154
|
return p === 96 ? (e.consume(p), r++, l) : (e.exit("codeTextSequence"), u(p));
|
4155
4155
|
}
|
4156
4156
|
function u(p) {
|
4157
|
-
return p === null ? n(p) : p === 32 ? (e.enter("space"), e.consume(p), e.exit("space"), u) : p === 96 ? (o = e.enter("codeTextSequence"), i = 0, c(p)) :
|
4157
|
+
return p === null ? n(p) : p === 32 ? (e.enter("space"), e.consume(p), e.exit("space"), u) : p === 96 ? (o = e.enter("codeTextSequence"), i = 0, c(p)) : q(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), u) : (e.enter("codeTextData"), s(p));
|
4158
4158
|
}
|
4159
4159
|
function s(p) {
|
4160
|
-
return p === null || p === 32 || p === 96 ||
|
4160
|
+
return p === null || p === 32 || p === 96 || q(p) ? (e.exit("codeTextData"), u(p)) : (e.consume(p), s);
|
4161
4161
|
}
|
4162
4162
|
function c(p) {
|
4163
4163
|
return p === 96 ? (e.consume(p), i++, c) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(p)) : (o.type = "codeTextData", s(p));
|
@@ -4223,7 +4223,7 @@ function Lc(e, t) {
|
|
4223
4223
|
}), i(l);
|
4224
4224
|
}
|
4225
4225
|
function i(l) {
|
4226
|
-
return l === null ? o(l) :
|
4226
|
+
return l === null ? o(l) : q(l) ? e.check(
|
4227
4227
|
Oc,
|
4228
4228
|
a,
|
4229
4229
|
o
|
@@ -4243,10 +4243,10 @@ function Pc(e, t, n) {
|
|
4243
4243
|
const r = this;
|
4244
4244
|
return i;
|
4245
4245
|
function i(a) {
|
4246
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"),
|
4246
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), ce(e, o, "linePrefix");
|
4247
4247
|
}
|
4248
4248
|
function o(a) {
|
4249
|
-
if (a === null ||
|
4249
|
+
if (a === null || q(a))
|
4250
4250
|
return n(a);
|
4251
4251
|
const l = r.events[r.events.length - 1];
|
4252
4252
|
return !r.parser.constructs.disable.null.includes("codeIndented") && l && l[1].type === "linePrefix" && l[2].sliceSerialize(l[1], !0).length >= 4 ? t(a) : e.interrupt(r.parser.constructs.flow, n, t)(a);
|
@@ -4267,7 +4267,7 @@ function aa(e, t, n, r, i, o, a, l, u) {
|
|
4267
4267
|
}), d(v));
|
4268
4268
|
}
|
4269
4269
|
function d(v) {
|
4270
|
-
return v === 62 ? (e.exit("chunkString"), e.exit(l), m(v)) : v === null || v === 60 ||
|
4270
|
+
return v === 62 ? (e.exit("chunkString"), e.exit(l), m(v)) : v === null || v === 60 || q(v) ? n(v) : (e.consume(v), v === 92 ? T : d);
|
4271
4271
|
}
|
4272
4272
|
function T(v) {
|
4273
4273
|
return v === 60 || v === 62 || v === 92 ? (e.consume(v), d) : d(v);
|
@@ -4292,12 +4292,12 @@ function la(e, t, n, r, i, o) {
|
|
4292
4292
|
// which doesn’t need this.
|
4293
4293
|
// Hidden footnotes hook.
|
4294
4294
|
/* c8 ignore next 3 */
|
4295
|
-
d === 94 && !l && "_hiddenFootnoteSupport" in a.parser.constructs ? n(d) : d === 93 ? (e.exit(o), e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) :
|
4295
|
+
d === 94 && !l && "_hiddenFootnoteSupport" in a.parser.constructs ? n(d) : d === 93 ? (e.exit(o), e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) : q(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), c) : (e.enter("chunkString", {
|
4296
4296
|
contentType: "string"
|
4297
4297
|
}), p(d));
|
4298
4298
|
}
|
4299
4299
|
function p(d) {
|
4300
|
-
return d === null || d === 91 || d === 93 ||
|
4300
|
+
return d === null || d === 91 || d === 93 || q(d) || l++ > 999 ? (e.exit("chunkString"), c(d)) : (e.consume(d), u || (u = !te(d)), d === 92 ? m : p);
|
4301
4301
|
}
|
4302
4302
|
function m(d) {
|
4303
4303
|
return d === 91 || d === 92 || d === 93 ? (e.consume(d), l++, p) : p(d);
|
@@ -4313,12 +4313,12 @@ function ua(e, t, n, r, i, o) {
|
|
4313
4313
|
return m === a ? (e.enter(i), e.consume(m), e.exit(i), e.exit(r), t) : (e.enter(o), s(m));
|
4314
4314
|
}
|
4315
4315
|
function s(m) {
|
4316
|
-
return m === a ? (e.exit(o), u(a)) : m === null ? n(m) :
|
4316
|
+
return m === a ? (e.exit(o), u(a)) : m === null ? n(m) : q(m) ? (e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ce(e, s, "linePrefix")) : (e.enter("chunkString", {
|
4317
4317
|
contentType: "string"
|
4318
4318
|
}), c(m));
|
4319
4319
|
}
|
4320
4320
|
function c(m) {
|
4321
|
-
return m === a || m === null ||
|
4321
|
+
return m === a || m === null || q(m) ? (e.exit("chunkString"), s(m)) : (e.consume(m), m === 92 ? p : c);
|
4322
4322
|
}
|
4323
4323
|
function p(m) {
|
4324
4324
|
return m === a || m === 92 ? (e.consume(m), c) : c(m);
|
@@ -4328,7 +4328,7 @@ function Bt(e, t) {
|
|
4328
4328
|
let n;
|
4329
4329
|
return r;
|
4330
4330
|
function r(i) {
|
4331
|
-
return
|
4331
|
+
return q(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : te(i) ? ce(
|
4332
4332
|
e,
|
4333
4333
|
r,
|
4334
4334
|
n ? "linePrefix" : "lineSuffix"
|
@@ -4389,10 +4389,10 @@ function Rc(e, t, n) {
|
|
4389
4389
|
return e.attempt(_c, p, p)(d);
|
4390
4390
|
}
|
4391
4391
|
function p(d) {
|
4392
|
-
return te(d) ?
|
4392
|
+
return te(d) ? ce(e, m, "whitespace")(d) : m(d);
|
4393
4393
|
}
|
4394
4394
|
function m(d) {
|
4395
|
-
return d === null ||
|
4395
|
+
return d === null || q(d) ? (e.exit("definition"), r.parser.defined.push(i), t(d)) : n(d);
|
4396
4396
|
}
|
4397
4397
|
}
|
4398
4398
|
function Uc(e, t, n) {
|
@@ -4411,10 +4411,10 @@ function Uc(e, t, n) {
|
|
4411
4411
|
)(l);
|
4412
4412
|
}
|
4413
4413
|
function o(l) {
|
4414
|
-
return te(l) ?
|
4414
|
+
return te(l) ? ce(e, a, "whitespace")(l) : a(l);
|
4415
4415
|
}
|
4416
4416
|
function a(l) {
|
4417
|
-
return l === null ||
|
4417
|
+
return l === null || q(l) ? t(l) : n(l);
|
4418
4418
|
}
|
4419
4419
|
}
|
4420
4420
|
const Bc = {
|
@@ -4427,12 +4427,12 @@ function Qc(e, t, n) {
|
|
4427
4427
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
4428
4428
|
}
|
4429
4429
|
function i(o) {
|
4430
|
-
return
|
4430
|
+
return q(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
|
4431
4431
|
}
|
4432
4432
|
}
|
4433
4433
|
const Yc = {
|
4434
4434
|
name: "headingAtx",
|
4435
|
-
tokenize:
|
4435
|
+
tokenize: qc,
|
4436
4436
|
resolve: Hc
|
4437
4437
|
};
|
4438
4438
|
function Hc(e, t) {
|
@@ -4453,7 +4453,7 @@ function Hc(e, t) {
|
|
4453
4453
|
["exit", i, t]
|
4454
4454
|
])), e;
|
4455
4455
|
}
|
4456
|
-
function
|
4456
|
+
function qc(e, t, n) {
|
4457
4457
|
let r = 0;
|
4458
4458
|
return i;
|
4459
4459
|
function i(c) {
|
@@ -4466,7 +4466,7 @@ function $c(e, t, n) {
|
|
4466
4466
|
return c === 35 && r++ < 6 ? (e.consume(c), a) : c === null || ke(c) ? (e.exit("atxHeadingSequence"), l(c)) : n(c);
|
4467
4467
|
}
|
4468
4468
|
function l(c) {
|
4469
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), u(c)) : c === null ||
|
4469
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), u(c)) : c === null || q(c) ? (e.exit("atxHeading"), t(c)) : te(c) ? ce(e, l, "whitespace")(c) : (e.enter("atxHeadingText"), s(c));
|
4470
4470
|
}
|
4471
4471
|
function u(c) {
|
4472
4472
|
return c === 35 ? (e.consume(c), u) : (e.exit("atxHeadingSequence"), l(c));
|
@@ -4475,7 +4475,7 @@ function $c(e, t, n) {
|
|
4475
4475
|
return c === null || c === 35 || ke(c) ? (e.exit("atxHeadingText"), l(c)) : (e.consume(c), s);
|
4476
4476
|
}
|
4477
4477
|
}
|
4478
|
-
const
|
4478
|
+
const $c = [
|
4479
4479
|
"address",
|
4480
4480
|
"article",
|
4481
4481
|
"aside",
|
@@ -4567,10 +4567,10 @@ function Kc(e, t, n) {
|
|
4567
4567
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
|
4568
4568
|
}
|
4569
4569
|
function p(h) {
|
4570
|
-
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, x) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) :
|
4570
|
+
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, x) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : g) : $e(h) ? (e.consume(h), a = String.fromCharCode(h), j) : n(h);
|
4571
4571
|
}
|
4572
4572
|
function m(h) {
|
4573
|
-
return h === 45 ? (e.consume(h), i = 2, d) : h === 91 ? (e.consume(h), i = 5, l = 0, T) :
|
4573
|
+
return h === 45 ? (e.consume(h), i = 2, d) : h === 91 ? (e.consume(h), i = 5, l = 0, T) : $e(h) ? (e.consume(h), i = 4, r.interrupt ? t : g) : n(h);
|
4574
4574
|
}
|
4575
4575
|
function d(h) {
|
4576
4576
|
return h === 45 ? (e.consume(h), r.interrupt ? t : g) : n(h);
|
@@ -4580,12 +4580,12 @@ function Kc(e, t, n) {
|
|
4580
4580
|
return h === me.charCodeAt(l++) ? (e.consume(h), l === me.length ? r.interrupt ? t : b : T) : n(h);
|
4581
4581
|
}
|
4582
4582
|
function x(h) {
|
4583
|
-
return
|
4583
|
+
return $e(h) ? (e.consume(h), a = String.fromCharCode(h), j) : n(h);
|
4584
4584
|
}
|
4585
4585
|
function j(h) {
|
4586
4586
|
if (h === null || h === 47 || h === 62 || ke(h)) {
|
4587
4587
|
const me = h === 47, De = a.toLowerCase();
|
4588
|
-
return !me && !o && Vi.includes(De) ? (i = 1, r.interrupt ? t(h) : b(h)) :
|
4588
|
+
return !me && !o && Vi.includes(De) ? (i = 1, r.interrupt ? t(h) : b(h)) : $c.includes(a.toLowerCase()) ? (i = 6, me ? (e.consume(h), v) : r.interrupt ? t(h) : b(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? C(h) : S(h));
|
4589
4589
|
}
|
4590
4590
|
return h === 45 || Se(h) ? (e.consume(h), a += String.fromCharCode(h), j) : n(h);
|
4591
4591
|
}
|
@@ -4596,22 +4596,22 @@ function Kc(e, t, n) {
|
|
4596
4596
|
return te(h) ? (e.consume(h), C) : K(h);
|
4597
4597
|
}
|
4598
4598
|
function S(h) {
|
4599
|
-
return h === 47 ? (e.consume(h), K) : h === 58 || h === 95 ||
|
4599
|
+
return h === 47 ? (e.consume(h), K) : h === 58 || h === 95 || $e(h) ? (e.consume(h), W) : te(h) ? (e.consume(h), S) : K(h);
|
4600
4600
|
}
|
4601
4601
|
function W(h) {
|
4602
|
-
return h === 45 || h === 46 || h === 58 || h === 95 || Se(h) ? (e.consume(h), W) :
|
4602
|
+
return h === 45 || h === 46 || h === 58 || h === 95 || Se(h) ? (e.consume(h), W) : $(h);
|
4603
4603
|
}
|
4604
|
-
function
|
4605
|
-
return h === 61 ? (e.consume(h), M) : te(h) ? (e.consume(h),
|
4604
|
+
function $(h) {
|
4605
|
+
return h === 61 ? (e.consume(h), M) : te(h) ? (e.consume(h), $) : S(h);
|
4606
4606
|
}
|
4607
4607
|
function M(h) {
|
4608
4608
|
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), u = h, P) : te(h) ? (e.consume(h), M) : H(h);
|
4609
4609
|
}
|
4610
4610
|
function P(h) {
|
4611
|
-
return h === u ? (e.consume(h), u = null, G) : h === null ||
|
4611
|
+
return h === u ? (e.consume(h), u = null, G) : h === null || q(h) ? n(h) : (e.consume(h), P);
|
4612
4612
|
}
|
4613
4613
|
function H(h) {
|
4614
|
-
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ke(h) ?
|
4614
|
+
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || ke(h) ? $(h) : (e.consume(h), H);
|
4615
4615
|
}
|
4616
4616
|
function G(h) {
|
4617
4617
|
return h === 47 || h === 62 || te(h) ? S(h) : n(h);
|
@@ -4620,14 +4620,14 @@ function Kc(e, t, n) {
|
|
4620
4620
|
return h === 62 ? (e.consume(h), A) : n(h);
|
4621
4621
|
}
|
4622
4622
|
function A(h) {
|
4623
|
-
return h === null ||
|
4623
|
+
return h === null || q(h) ? b(h) : te(h) ? (e.consume(h), A) : n(h);
|
4624
4624
|
}
|
4625
4625
|
function b(h) {
|
4626
|
-
return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), _) : h === 62 && i === 4 ? (e.consume(h),
|
4626
|
+
return h === 45 && i === 2 ? (e.consume(h), U) : h === 60 && i === 1 ? (e.consume(h), _) : h === 62 && i === 4 ? (e.consume(h), fe) : h === 63 && i === 3 ? (e.consume(h), g) : h === 93 && i === 5 ? (e.consume(h), ie) : q(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
4627
4627
|
Wc,
|
4628
4628
|
ye,
|
4629
4629
|
I
|
4630
|
-
)(h)) : h === null ||
|
4630
|
+
)(h)) : h === null || q(h) ? (e.exit("htmlFlowData"), I(h)) : (e.consume(h), b);
|
4631
4631
|
}
|
4632
4632
|
function I(h) {
|
4633
4633
|
return e.check(
|
@@ -4640,7 +4640,7 @@ function Kc(e, t, n) {
|
|
4640
4640
|
return e.enter("lineEnding"), e.consume(h), e.exit("lineEnding"), L;
|
4641
4641
|
}
|
4642
4642
|
function L(h) {
|
4643
|
-
return h === null ||
|
4643
|
+
return h === null || q(h) ? I(h) : (e.enter("htmlFlowData"), b(h));
|
4644
4644
|
}
|
4645
4645
|
function U(h) {
|
4646
4646
|
return h === 45 ? (e.consume(h), g) : b(h);
|
@@ -4651,18 +4651,18 @@ function Kc(e, t, n) {
|
|
4651
4651
|
function V(h) {
|
4652
4652
|
if (h === 62) {
|
4653
4653
|
const me = a.toLowerCase();
|
4654
|
-
return Vi.includes(me) ? (e.consume(h),
|
4654
|
+
return Vi.includes(me) ? (e.consume(h), fe) : b(h);
|
4655
4655
|
}
|
4656
|
-
return
|
4656
|
+
return $e(h) && a.length < 8 ? (e.consume(h), a += String.fromCharCode(h), V) : b(h);
|
4657
4657
|
}
|
4658
4658
|
function ie(h) {
|
4659
4659
|
return h === 93 ? (e.consume(h), g) : b(h);
|
4660
4660
|
}
|
4661
4661
|
function g(h) {
|
4662
|
-
return h === 62 ? (e.consume(h),
|
4662
|
+
return h === 62 ? (e.consume(h), fe) : h === 45 && i === 2 ? (e.consume(h), g) : b(h);
|
4663
4663
|
}
|
4664
|
-
function
|
4665
|
-
return h === null ||
|
4664
|
+
function fe(h) {
|
4665
|
+
return h === null || q(h) ? (e.exit("htmlFlowData"), ye(h)) : (e.consume(h), fe);
|
4666
4666
|
}
|
4667
4667
|
function ye(h) {
|
4668
4668
|
return e.exit("htmlFlow"), t(h);
|
@@ -4672,7 +4672,7 @@ function Xc(e, t, n) {
|
|
4672
4672
|
const r = this;
|
4673
4673
|
return i;
|
4674
4674
|
function i(a) {
|
4675
|
-
return
|
4675
|
+
return q(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), o) : n(a);
|
4676
4676
|
}
|
4677
4677
|
function o(a) {
|
4678
4678
|
return r.parser.lazy[r.now().line] ? n(a) : t(a);
|
@@ -4696,16 +4696,16 @@ function tf(e, t, n) {
|
|
4696
4696
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(g), u;
|
4697
4697
|
}
|
4698
4698
|
function u(g) {
|
4699
|
-
return g === 33 ? (e.consume(g), s) : g === 47 ? (e.consume(g),
|
4699
|
+
return g === 33 ? (e.consume(g), s) : g === 47 ? (e.consume(g), $) : g === 63 ? (e.consume(g), S) : $e(g) ? (e.consume(g), H) : n(g);
|
4700
4700
|
}
|
4701
4701
|
function s(g) {
|
4702
|
-
return g === 45 ? (e.consume(g), c) : g === 91 ? (e.consume(g), o = 0, T) :
|
4702
|
+
return g === 45 ? (e.consume(g), c) : g === 91 ? (e.consume(g), o = 0, T) : $e(g) ? (e.consume(g), C) : n(g);
|
4703
4703
|
}
|
4704
4704
|
function c(g) {
|
4705
4705
|
return g === 45 ? (e.consume(g), d) : n(g);
|
4706
4706
|
}
|
4707
4707
|
function p(g) {
|
4708
|
-
return g === null ? n(g) : g === 45 ? (e.consume(g), m) :
|
4708
|
+
return g === null ? n(g) : g === 45 ? (e.consume(g), m) : q(g) ? (a = p, _(g)) : (e.consume(g), p);
|
4709
4709
|
}
|
4710
4710
|
function m(g) {
|
4711
4711
|
return g === 45 ? (e.consume(g), d) : p(g);
|
@@ -4714,11 +4714,11 @@ function tf(e, t, n) {
|
|
4714
4714
|
return g === 62 ? U(g) : g === 45 ? m(g) : p(g);
|
4715
4715
|
}
|
4716
4716
|
function T(g) {
|
4717
|
-
const
|
4718
|
-
return g ===
|
4717
|
+
const fe = "CDATA[";
|
4718
|
+
return g === fe.charCodeAt(o++) ? (e.consume(g), o === fe.length ? x : T) : n(g);
|
4719
4719
|
}
|
4720
4720
|
function x(g) {
|
4721
|
-
return g === null ? n(g) : g === 93 ? (e.consume(g), j) :
|
4721
|
+
return g === null ? n(g) : g === 93 ? (e.consume(g), j) : q(g) ? (a = x, _(g)) : (e.consume(g), x);
|
4722
4722
|
}
|
4723
4723
|
function j(g) {
|
4724
4724
|
return g === 93 ? (e.consume(g), v) : x(g);
|
@@ -4727,40 +4727,40 @@ function tf(e, t, n) {
|
|
4727
4727
|
return g === 62 ? U(g) : g === 93 ? (e.consume(g), v) : x(g);
|
4728
4728
|
}
|
4729
4729
|
function C(g) {
|
4730
|
-
return g === null || g === 62 ? U(g) :
|
4730
|
+
return g === null || g === 62 ? U(g) : q(g) ? (a = C, _(g)) : (e.consume(g), C);
|
4731
4731
|
}
|
4732
4732
|
function S(g) {
|
4733
|
-
return g === null ? n(g) : g === 63 ? (e.consume(g), W) :
|
4733
|
+
return g === null ? n(g) : g === 63 ? (e.consume(g), W) : q(g) ? (a = S, _(g)) : (e.consume(g), S);
|
4734
4734
|
}
|
4735
4735
|
function W(g) {
|
4736
4736
|
return g === 62 ? U(g) : S(g);
|
4737
4737
|
}
|
4738
|
-
function
|
4739
|
-
return
|
4738
|
+
function $(g) {
|
4739
|
+
return $e(g) ? (e.consume(g), M) : n(g);
|
4740
4740
|
}
|
4741
4741
|
function M(g) {
|
4742
4742
|
return g === 45 || Se(g) ? (e.consume(g), M) : P(g);
|
4743
4743
|
}
|
4744
4744
|
function P(g) {
|
4745
|
-
return
|
4745
|
+
return q(g) ? (a = P, _(g)) : te(g) ? (e.consume(g), P) : U(g);
|
4746
4746
|
}
|
4747
4747
|
function H(g) {
|
4748
4748
|
return g === 45 || Se(g) ? (e.consume(g), H) : g === 47 || g === 62 || ke(g) ? G(g) : n(g);
|
4749
4749
|
}
|
4750
4750
|
function G(g) {
|
4751
|
-
return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 ||
|
4751
|
+
return g === 47 ? (e.consume(g), U) : g === 58 || g === 95 || $e(g) ? (e.consume(g), K) : q(g) ? (a = G, _(g)) : te(g) ? (e.consume(g), G) : U(g);
|
4752
4752
|
}
|
4753
4753
|
function K(g) {
|
4754
4754
|
return g === 45 || g === 46 || g === 58 || g === 95 || Se(g) ? (e.consume(g), K) : A(g);
|
4755
4755
|
}
|
4756
4756
|
function A(g) {
|
4757
|
-
return g === 61 ? (e.consume(g), b) :
|
4757
|
+
return g === 61 ? (e.consume(g), b) : q(g) ? (a = A, _(g)) : te(g) ? (e.consume(g), A) : G(g);
|
4758
4758
|
}
|
4759
4759
|
function b(g) {
|
4760
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), i = g, I) :
|
4760
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), i = g, I) : q(g) ? (a = b, _(g)) : te(g) ? (e.consume(g), b) : (e.consume(g), z);
|
4761
4761
|
}
|
4762
4762
|
function I(g) {
|
4763
|
-
return g === i ? (e.consume(g), i = void 0, L) : g === null ? n(g) :
|
4763
|
+
return g === i ? (e.consume(g), i = void 0, L) : g === null ? n(g) : q(g) ? (a = I, _(g)) : (e.consume(g), I);
|
4764
4764
|
}
|
4765
4765
|
function z(g) {
|
4766
4766
|
return g === null || g === 34 || g === 39 || g === 60 || g === 61 || g === 96 ? n(g) : g === 47 || g === 62 || ke(g) ? G(g) : (e.consume(g), z);
|
@@ -4775,7 +4775,7 @@ function tf(e, t, n) {
|
|
4775
4775
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), V;
|
4776
4776
|
}
|
4777
4777
|
function V(g) {
|
4778
|
-
return te(g) ?
|
4778
|
+
return te(g) ? ce(
|
4779
4779
|
e,
|
4780
4780
|
ie,
|
4781
4781
|
"linePrefix",
|
@@ -5012,7 +5012,7 @@ const er = {
|
|
5012
5012
|
function mf(e, t) {
|
5013
5013
|
return n;
|
5014
5014
|
function n(r) {
|
5015
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
5015
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ce(e, t, "linePrefix");
|
5016
5016
|
}
|
5017
5017
|
}
|
5018
5018
|
const cn = {
|
@@ -5029,10 +5029,10 @@ function yf(e, t, n) {
|
|
5029
5029
|
return i = s, l(s);
|
5030
5030
|
}
|
5031
5031
|
function l(s) {
|
5032
|
-
return s === i ? (e.enter("thematicBreakSequence"), u(s)) : r >= 3 && (s === null ||
|
5032
|
+
return s === i ? (e.enter("thematicBreakSequence"), u(s)) : r >= 3 && (s === null || q(s)) ? (e.exit("thematicBreak"), t(s)) : n(s);
|
5033
5033
|
}
|
5034
5034
|
function u(s) {
|
5035
|
-
return s === i ? (e.consume(s), r++, u) : (e.exit("thematicBreakSequence"), te(s) ?
|
5035
|
+
return s === i ? (e.consume(s), r++, u) : (e.exit("thematicBreakSequence"), te(s) ? ce(e, l, "whitespace")(s) : l(s));
|
5036
5036
|
}
|
5037
5037
|
}
|
5038
5038
|
const Ne = {
|
@@ -5094,7 +5094,7 @@ function wf(e, t, n) {
|
|
5094
5094
|
const r = this;
|
5095
5095
|
return r.containerState._closeFlow = void 0, e.check(vn, i, o);
|
5096
5096
|
function i(l) {
|
5097
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
5097
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, ce(
|
5098
5098
|
e,
|
5099
5099
|
t,
|
5100
5100
|
"listItemIndent",
|
@@ -5105,7 +5105,7 @@ function wf(e, t, n) {
|
|
5105
5105
|
return r.containerState.furtherBlankLines || !te(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(xf, t, a)(l));
|
5106
5106
|
}
|
5107
5107
|
function a(l) {
|
5108
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
5108
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, ce(
|
5109
5109
|
e,
|
5110
5110
|
e.attempt(Ne, t, n),
|
5111
5111
|
"linePrefix",
|
@@ -5115,7 +5115,7 @@ function wf(e, t, n) {
|
|
5115
5115
|
}
|
5116
5116
|
function vf(e, t, n) {
|
5117
5117
|
const r = this;
|
5118
|
-
return
|
5118
|
+
return ce(
|
5119
5119
|
e,
|
5120
5120
|
i,
|
5121
5121
|
"listItemIndent",
|
@@ -5131,7 +5131,7 @@ function Df(e) {
|
|
5131
5131
|
}
|
5132
5132
|
function Tf(e, t, n) {
|
5133
5133
|
const r = this;
|
5134
|
-
return
|
5134
|
+
return ce(
|
5135
5135
|
e,
|
5136
5136
|
i,
|
5137
5137
|
"listItemPrefixWhitespace",
|
@@ -5182,10 +5182,10 @@ function Nf(e, t, n) {
|
|
5182
5182
|
return e.enter("setextHeadingLineSequence"), l(s);
|
5183
5183
|
}
|
5184
5184
|
function l(s) {
|
5185
|
-
return s === i ? (e.consume(s), l) : (e.exit("setextHeadingLineSequence"), te(s) ?
|
5185
|
+
return s === i ? (e.consume(s), l) : (e.exit("setextHeadingLineSequence"), te(s) ? ce(e, u, "lineSuffix")(s) : u(s));
|
5186
5186
|
}
|
5187
5187
|
function u(s) {
|
5188
|
-
return s === null ||
|
5188
|
+
return s === null || q(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
|
5189
5189
|
}
|
5190
5190
|
}
|
5191
5191
|
const kf = {
|
@@ -5200,7 +5200,7 @@ function jf(e) {
|
|
5200
5200
|
e.attempt(
|
5201
5201
|
this.parser.constructs.flowInitial,
|
5202
5202
|
i,
|
5203
|
-
|
5203
|
+
ce(
|
5204
5204
|
e,
|
5205
5205
|
e.attempt(
|
5206
5206
|
this.parser.constructs.flow,
|
@@ -5339,7 +5339,7 @@ function Of(e, t, n) {
|
|
5339
5339
|
consume: C,
|
5340
5340
|
enter: S,
|
5341
5341
|
exit: W,
|
5342
|
-
attempt: P(
|
5342
|
+
attempt: P($),
|
5343
5343
|
check: P(M),
|
5344
5344
|
interrupt: P(M, {
|
5345
5345
|
interrupt: !0
|
@@ -5395,7 +5395,7 @@ function Of(e, t, n) {
|
|
5395
5395
|
c = c(A);
|
5396
5396
|
}
|
5397
5397
|
function C(A) {
|
5398
|
-
|
5398
|
+
q(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1, K()) : A !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === a[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = A;
|
5399
5399
|
}
|
5400
5400
|
function S(A, b) {
|
5401
5401
|
const I = b || {};
|
@@ -5405,7 +5405,7 @@ function Of(e, t, n) {
|
|
5405
5405
|
const b = l.pop();
|
5406
5406
|
return b.end = T(), s.events.push(["exit", b, s]), b;
|
5407
5407
|
}
|
5408
|
-
function
|
5408
|
+
function $(A, b) {
|
5409
5409
|
H(A, b.from);
|
5410
5410
|
}
|
5411
5411
|
function M(A, b) {
|
@@ -5418,8 +5418,8 @@ function Of(e, t, n) {
|
|
5418
5418
|
return Array.isArray(z) ? ye(z) : "tokenize" in z ? (
|
5419
5419
|
// @ts-expect-error Looks like a construct.
|
5420
5420
|
ye([z])
|
5421
|
-
) :
|
5422
|
-
function
|
5421
|
+
) : fe(z);
|
5422
|
+
function fe(oe) {
|
5423
5423
|
return Te;
|
5424
5424
|
function Te(be) {
|
5425
5425
|
const Be = be !== null && oe[be], ze = be !== null && oe.null, Ke = [
|
@@ -5562,8 +5562,8 @@ const Pf = {
|
|
5562
5562
|
60: Vc,
|
5563
5563
|
61: Wi,
|
5564
5564
|
95: cn,
|
5565
|
-
96:
|
5566
|
-
126:
|
5565
|
+
96: $i,
|
5566
|
+
126: $i
|
5567
5567
|
}, Uf = {
|
5568
5568
|
38: ia,
|
5569
5569
|
92: ra
|
@@ -5586,7 +5586,7 @@ const Pf = {
|
|
5586
5586
|
null: [42, 95]
|
5587
5587
|
}, Hf = {
|
5588
5588
|
null: []
|
5589
|
-
},
|
5589
|
+
}, qf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5590
5590
|
__proto__: null,
|
5591
5591
|
attentionMarkers: Yf,
|
5592
5592
|
contentInitial: Ff,
|
@@ -5598,10 +5598,10 @@ const Pf = {
|
|
5598
5598
|
string: Uf,
|
5599
5599
|
text: Bf
|
5600
5600
|
}, Symbol.toStringTag, { value: "Module" }));
|
5601
|
-
function
|
5601
|
+
function $f(e) {
|
5602
5602
|
const n = (
|
5603
5603
|
/** @type {FullNormalizedExtension} */
|
5604
|
-
Xs([
|
5604
|
+
Xs([qf, ...(e || {}).extensions || []])
|
5605
5605
|
), r = {
|
5606
5606
|
defined: [],
|
5607
5607
|
lazy: {},
|
@@ -5702,7 +5702,7 @@ const pa = {}.hasOwnProperty, Xf = (
|
|
5702
5702
|
function(e, t, n) {
|
5703
5703
|
return typeof t != "string" && (n = t, t = void 0), Jf(n)(
|
5704
5704
|
Wf(
|
5705
|
-
|
5705
|
+
$f(n).document().write(Vf()(e, t, !0))
|
5706
5706
|
)
|
5707
5707
|
);
|
5708
5708
|
}
|
@@ -5777,7 +5777,7 @@ function Jf(e) {
|
|
5777
5777
|
definition: c(),
|
5778
5778
|
definitionDestinationString: M,
|
5779
5779
|
definitionLabelString: W,
|
5780
|
-
definitionTitleString:
|
5780
|
+
definitionTitleString: $,
|
5781
5781
|
emphasis: c(),
|
5782
5782
|
hardBreakEscape: c(z),
|
5783
5783
|
hardBreakTrailing: c(z),
|
@@ -5786,7 +5786,7 @@ function Jf(e) {
|
|
5786
5786
|
htmlText: c(U),
|
5787
5787
|
htmlTextData: b,
|
5788
5788
|
image: c(ie),
|
5789
|
-
label:
|
5789
|
+
label: fe,
|
5790
5790
|
labelText: g,
|
5791
5791
|
lineEnding: I,
|
5792
5792
|
link: c(V),
|
@@ -5871,8 +5871,8 @@ function Jf(e) {
|
|
5871
5871
|
function i(D, O, Y) {
|
5872
5872
|
let ee = O - 1, re = -1, Ie = !1, Qe, Ye, lt, Ee;
|
5873
5873
|
for (; ++ee <= Y; ) {
|
5874
|
-
const
|
5875
|
-
if (
|
5874
|
+
const ue = D[ee];
|
5875
|
+
if (ue[1].type === "listUnordered" || ue[1].type === "listOrdered" || ue[1].type === "blockQuote" ? (ue[0] === "enter" ? re++ : re--, Ee = void 0) : ue[1].type === "lineEndingBlank" ? ue[0] === "enter" && (Qe && !Ee && !re && !lt && (lt = ee), Ee = void 0) : ue[1].type === "linePrefix" || ue[1].type === "listItemValue" || ue[1].type === "listItemMarker" || ue[1].type === "listItemPrefix" || ue[1].type === "listItemPrefixWhitespace" || (Ee = void 0), !re && ue[0] === "enter" && ue[1].type === "listItemPrefix" || re === -1 && ue[0] === "exit" && (ue[1].type === "listUnordered" || ue[1].type === "listOrdered")) {
|
5876
5876
|
if (Qe) {
|
5877
5877
|
let Et = ee;
|
5878
5878
|
for (Ye = void 0; Et--; ) {
|
@@ -5886,16 +5886,16 @@ function Jf(e) {
|
|
5886
5886
|
}
|
5887
5887
|
lt && (!Ye || lt < Ye) && (Qe._spread = !0), Qe.end = Object.assign(
|
5888
5888
|
{},
|
5889
|
-
Ye ? D[Ye][1].start :
|
5890
|
-
), D.splice(Ye || ee, 0, ["exit", Qe,
|
5889
|
+
Ye ? D[Ye][1].start : ue[1].end
|
5890
|
+
), D.splice(Ye || ee, 0, ["exit", Qe, ue[2]]), ee++, Y++;
|
5891
5891
|
}
|
5892
|
-
|
5892
|
+
ue[1].type === "listItemPrefix" && (Qe = {
|
5893
5893
|
type: "listItem",
|
5894
5894
|
_spread: !1,
|
5895
|
-
start: Object.assign({},
|
5895
|
+
start: Object.assign({}, ue[1].start),
|
5896
5896
|
// @ts-expect-error: we’ll add `end` in a second.
|
5897
5897
|
end: void 0
|
5898
|
-
}, D.splice(ee, 0, ["enter", Qe,
|
5898
|
+
}, D.splice(ee, 0, ["enter", Qe, ue[2]]), ee++, Y++, lt = void 0, Ee = !0);
|
5899
5899
|
}
|
5900
5900
|
}
|
5901
5901
|
return D[O][1]._spread = Ie, Y;
|
@@ -5979,7 +5979,7 @@ function Jf(e) {
|
|
5979
5979
|
this.sliceSerialize(D)
|
5980
5980
|
).toLowerCase();
|
5981
5981
|
}
|
5982
|
-
function
|
5982
|
+
function $() {
|
5983
5983
|
const D = this.resume(), O = this.stack[this.stack.length - 1];
|
5984
5984
|
O.title = D;
|
5985
5985
|
}
|
@@ -6061,7 +6061,7 @@ function Jf(e) {
|
|
6061
6061
|
const O = this.sliceSerialize(D), Y = this.stack[this.stack.length - 2];
|
6062
6062
|
Y.label = Zf(O), Y.identifier = Mt(O).toLowerCase();
|
6063
6063
|
}
|
6064
|
-
function
|
6064
|
+
function fe() {
|
6065
6065
|
const D = this.stack[this.stack.length - 1], O = this.resume(), Y = this.stack[this.stack.length - 1];
|
6066
6066
|
if (o("inReference", !0), Y.type === "link") {
|
6067
6067
|
const ee = D.children;
|
@@ -7026,12 +7026,12 @@ function ba(e, t) {
|
|
7026
7026
|
return i && r.children.push({ type: "text", value: `
|
7027
7027
|
` }, i), Array.isArray(r) ? { type: "root", children: r } : r;
|
7028
7028
|
}
|
7029
|
-
const
|
7029
|
+
const qp = (
|
7030
7030
|
/** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */
|
7031
7031
|
function(e, t) {
|
7032
7032
|
return e && "run" in e ? Vp(e, t) : Wp(e || t);
|
7033
7033
|
}
|
7034
|
-
),
|
7034
|
+
), $p = qp;
|
7035
7035
|
function Vp(e, t) {
|
7036
7036
|
return (n, r, i) => {
|
7037
7037
|
e.run(ba(n, t), r, (o) => {
|
@@ -7087,7 +7087,7 @@ Re.prototype.commaOrSpaceSeparated = !1;
|
|
7087
7087
|
Re.prototype.mustUseProperty = !1;
|
7088
7088
|
Re.prototype.defined = !1;
|
7089
7089
|
let Gp = 0;
|
7090
|
-
const Z = ht(), Me = ht(), va = ht(), E = ht(),
|
7090
|
+
const Z = ht(), Me = ht(), va = ht(), E = ht(), se = ht(), xt = ht(), Ce = ht();
|
7091
7091
|
function ht() {
|
7092
7092
|
return 2 ** ++Gp;
|
7093
7093
|
}
|
@@ -7099,7 +7099,7 @@ const br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7099
7099
|
commaSeparated: xt,
|
7100
7100
|
number: E,
|
7101
7101
|
overloadedBoolean: va,
|
7102
|
-
spaceSeparated:
|
7102
|
+
spaceSeparated: se
|
7103
7103
|
}, Symbol.toStringTag, { value: "Module" })), tr = Object.keys(br);
|
7104
7104
|
class Ur extends Re {
|
7105
7105
|
/**
|
@@ -7183,36 +7183,36 @@ const ka = Tt({
|
|
7183
7183
|
ariaColCount: E,
|
7184
7184
|
ariaColIndex: E,
|
7185
7185
|
ariaColSpan: E,
|
7186
|
-
ariaControls:
|
7186
|
+
ariaControls: se,
|
7187
7187
|
ariaCurrent: null,
|
7188
|
-
ariaDescribedBy:
|
7188
|
+
ariaDescribedBy: se,
|
7189
7189
|
ariaDetails: null,
|
7190
7190
|
ariaDisabled: Me,
|
7191
|
-
ariaDropEffect:
|
7191
|
+
ariaDropEffect: se,
|
7192
7192
|
ariaErrorMessage: null,
|
7193
7193
|
ariaExpanded: Me,
|
7194
|
-
ariaFlowTo:
|
7194
|
+
ariaFlowTo: se,
|
7195
7195
|
ariaGrabbed: Me,
|
7196
7196
|
ariaHasPopup: null,
|
7197
7197
|
ariaHidden: Me,
|
7198
7198
|
ariaInvalid: null,
|
7199
7199
|
ariaKeyShortcuts: null,
|
7200
7200
|
ariaLabel: null,
|
7201
|
-
ariaLabelledBy:
|
7201
|
+
ariaLabelledBy: se,
|
7202
7202
|
ariaLevel: E,
|
7203
7203
|
ariaLive: null,
|
7204
7204
|
ariaModal: Me,
|
7205
7205
|
ariaMultiLine: Me,
|
7206
7206
|
ariaMultiSelectable: Me,
|
7207
7207
|
ariaOrientation: null,
|
7208
|
-
ariaOwns:
|
7208
|
+
ariaOwns: se,
|
7209
7209
|
ariaPlaceholder: null,
|
7210
7210
|
ariaPosInSet: E,
|
7211
7211
|
ariaPressed: Me,
|
7212
7212
|
ariaReadOnly: Me,
|
7213
7213
|
ariaRelevant: null,
|
7214
7214
|
ariaRequired: Me,
|
7215
|
-
ariaRoleDescription:
|
7215
|
+
ariaRoleDescription: se,
|
7216
7216
|
ariaRowCount: E,
|
7217
7217
|
ariaRowIndex: E,
|
7218
7218
|
ariaRowSpan: E,
|
@@ -7239,8 +7239,8 @@ const ka = Tt({
|
|
7239
7239
|
// Standard Properties.
|
7240
7240
|
abbr: null,
|
7241
7241
|
accept: xt,
|
7242
|
-
acceptCharset:
|
7243
|
-
accessKey:
|
7242
|
+
acceptCharset: se,
|
7243
|
+
accessKey: se,
|
7244
7244
|
action: null,
|
7245
7245
|
allow: null,
|
7246
7246
|
allowFullScreen: Z,
|
@@ -7250,21 +7250,21 @@ const ka = Tt({
|
|
7250
7250
|
as: null,
|
7251
7251
|
async: Z,
|
7252
7252
|
autoCapitalize: null,
|
7253
|
-
autoComplete:
|
7253
|
+
autoComplete: se,
|
7254
7254
|
autoFocus: Z,
|
7255
7255
|
autoPlay: Z,
|
7256
|
-
blocking:
|
7256
|
+
blocking: se,
|
7257
7257
|
capture: null,
|
7258
7258
|
charSet: null,
|
7259
7259
|
checked: Z,
|
7260
7260
|
cite: null,
|
7261
|
-
className:
|
7261
|
+
className: se,
|
7262
7262
|
cols: E,
|
7263
7263
|
colSpan: null,
|
7264
7264
|
content: null,
|
7265
7265
|
contentEditable: Me,
|
7266
7266
|
controls: Z,
|
7267
|
-
controlsList:
|
7267
|
+
controlsList: se,
|
7268
7268
|
coords: E | xt,
|
7269
7269
|
crossOrigin: null,
|
7270
7270
|
data: null,
|
@@ -7286,14 +7286,14 @@ const ka = Tt({
|
|
7286
7286
|
formMethod: null,
|
7287
7287
|
formNoValidate: Z,
|
7288
7288
|
formTarget: null,
|
7289
|
-
headers:
|
7289
|
+
headers: se,
|
7290
7290
|
height: E,
|
7291
7291
|
hidden: Z,
|
7292
7292
|
high: E,
|
7293
7293
|
href: null,
|
7294
7294
|
hrefLang: null,
|
7295
|
-
htmlFor:
|
7296
|
-
httpEquiv:
|
7295
|
+
htmlFor: se,
|
7296
|
+
httpEquiv: se,
|
7297
7297
|
id: null,
|
7298
7298
|
imageSizes: null,
|
7299
7299
|
imageSrcSet: null,
|
@@ -7303,10 +7303,10 @@ const ka = Tt({
|
|
7303
7303
|
is: null,
|
7304
7304
|
isMap: Z,
|
7305
7305
|
itemId: null,
|
7306
|
-
itemProp:
|
7307
|
-
itemRef:
|
7306
|
+
itemProp: se,
|
7307
|
+
itemRef: se,
|
7308
7308
|
itemScope: Z,
|
7309
|
-
itemType:
|
7309
|
+
itemType: se,
|
7310
7310
|
kind: null,
|
7311
7311
|
label: null,
|
7312
7312
|
lang: null,
|
@@ -7419,7 +7419,7 @@ const ka = Tt({
|
|
7419
7419
|
open: Z,
|
7420
7420
|
optimum: E,
|
7421
7421
|
pattern: null,
|
7422
|
-
ping:
|
7422
|
+
ping: se,
|
7423
7423
|
placeholder: null,
|
7424
7424
|
playsInline: Z,
|
7425
7425
|
popover: null,
|
@@ -7429,12 +7429,12 @@ const ka = Tt({
|
|
7429
7429
|
preload: null,
|
7430
7430
|
readOnly: Z,
|
7431
7431
|
referrerPolicy: null,
|
7432
|
-
rel:
|
7432
|
+
rel: se,
|
7433
7433
|
required: Z,
|
7434
7434
|
reversed: Z,
|
7435
7435
|
rows: E,
|
7436
7436
|
rowSpan: E,
|
7437
|
-
sandbox:
|
7437
|
+
sandbox: se,
|
7438
7438
|
scope: null,
|
7439
7439
|
scoped: Z,
|
7440
7440
|
seamless: Z,
|
@@ -7470,7 +7470,7 @@ const ka = Tt({
|
|
7470
7470
|
// Several. Use CSS `text-align` instead,
|
7471
7471
|
aLink: null,
|
7472
7472
|
// `<body>`. Use CSS `a:active {color}` instead
|
7473
|
-
archive:
|
7473
|
+
archive: se,
|
7474
7474
|
// `<object>`. List of URIs to archives
|
7475
7475
|
axis: null,
|
7476
7476
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
@@ -7785,7 +7785,7 @@ const ka = Tt({
|
|
7785
7785
|
by: null,
|
7786
7786
|
calcMode: null,
|
7787
7787
|
capHeight: E,
|
7788
|
-
className:
|
7788
|
+
className: se,
|
7789
7789
|
clip: null,
|
7790
7790
|
clipPath: null,
|
7791
7791
|
clipPathUnits: null,
|
@@ -8020,7 +8020,7 @@ const ka = Tt({
|
|
8020
8020
|
patternTransform: null,
|
8021
8021
|
patternUnits: null,
|
8022
8022
|
phase: null,
|
8023
|
-
ping:
|
8023
|
+
ping: se,
|
8024
8024
|
pitch: null,
|
8025
8025
|
playbackOrder: null,
|
8026
8026
|
pointerEvents: null,
|
@@ -8548,7 +8548,7 @@ function Oa(e) {
|
|
8548
8548
|
`[react-markdown] Warning: please ${a.to ? `use \`${a.to}\` instead of` : "remove"} \`${o}\` (see <${Ld}#${a.id}> for more info)`
|
8549
8549
|
), delete rn[o];
|
8550
8550
|
}
|
8551
|
-
const t =
|
8551
|
+
const t = qs().use(tp).use(e.remarkPlugins || []).use($p, {
|
8552
8552
|
...e.remarkRehypeOptions,
|
8553
8553
|
allowDangerousHtml: !0
|
8554
8554
|
}).use(e.rehypePlugins || []).use(ad, e), n = new Ko();
|
@@ -8778,7 +8778,7 @@ const Rd = Hr, La = () => {
|
|
8778
8778
|
);
|
8779
8779
|
};
|
8780
8780
|
La.displayName = "ConversationScreenDisclaimer";
|
8781
|
-
const Ud = La,
|
8781
|
+
const Ud = La, qr = ({ loading: e, onPromptClick: t }) => {
|
8782
8782
|
var i;
|
8783
8783
|
const { primaryColor: n, conversationScreen: r } = We(Ge);
|
8784
8784
|
return /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
|
@@ -8804,12 +8804,12 @@ const Ud = La, $r = ({ loading: e, onPromptClick: t }) => {
|
|
8804
8804
|
})
|
8805
8805
|
] });
|
8806
8806
|
};
|
8807
|
-
|
8807
|
+
qr.propTypes = {
|
8808
8808
|
loading: N.bool.isRequired,
|
8809
8809
|
onPromptClick: N.func.isRequired
|
8810
8810
|
};
|
8811
|
-
|
8812
|
-
const Bd = $r
|
8811
|
+
qr.displayName = "PromptList";
|
8812
|
+
const Bd = qr, $r = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ k.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ k.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ k.jsx(
|
8813
8813
|
"div",
|
8814
8814
|
{
|
8815
8815
|
"data-testid": "message-container",
|
@@ -8818,12 +8818,12 @@ const Bd = $r, qr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ k.jsx("
|
|
8818
8818
|
children: e
|
8819
8819
|
}
|
8820
8820
|
) }) });
|
8821
|
-
|
8821
|
+
$r.propTypes = {
|
8822
8822
|
message: N.string.isRequired,
|
8823
8823
|
isNormalSize: N.bool.isRequired
|
8824
8824
|
};
|
8825
|
-
|
8826
|
-
const Qd =
|
8825
|
+
$r.displayName = "SystemMessageBubble";
|
8826
|
+
const Qd = $r, Vr = ({ content: e, isNormalSize: t }) => {
|
8827
8827
|
var i;
|
8828
8828
|
const { primaryColor: n, conversationScreen: r } = We(Ge);
|
8829
8829
|
return /* @__PURE__ */ k.jsx(
|
@@ -8925,7 +8925,7 @@ zn.defaultProps = {
|
|
8925
8925
|
isNormalSize: !0
|
8926
8926
|
};
|
8927
8927
|
zn.displayName = "ConversationsMessages";
|
8928
|
-
const Hd = zn,
|
8928
|
+
const Hd = zn, qd = () => {
|
8929
8929
|
const e = tt(null);
|
8930
8930
|
return Oe(() => {
|
8931
8931
|
var t;
|
@@ -8988,7 +8988,7 @@ const Hd = zn, $d = () => {
|
|
8988
8988
|
]
|
8989
8989
|
}
|
8990
8990
|
);
|
8991
|
-
}, rr =
|
8991
|
+
}, rr = qd;
|
8992
8992
|
var Pa = { exports: {} };
|
8993
8993
|
/*!
|
8994
8994
|
Copyright (c) 2018 Jed Watson.
|
@@ -9025,8 +9025,8 @@ var Pa = { exports: {} };
|
|
9025
9025
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
9026
9026
|
})();
|
9027
9027
|
})(Pa);
|
9028
|
-
var
|
9029
|
-
const Fa = /* @__PURE__ */ nt(
|
9028
|
+
var $d = Pa.exports;
|
9029
|
+
const Fa = /* @__PURE__ */ nt($d), Vd = 991;
|
9030
9030
|
function Wr({
|
9031
9031
|
label: e,
|
9032
9032
|
className: t,
|
@@ -9244,7 +9244,7 @@ var _a = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
9244
9244
|
getShadowRoot: n.getShadowRoot,
|
9245
9245
|
shadowRootFilter: ah
|
9246
9246
|
}) : r = Ua(t, n.includeContainer, vr.bind(null, n)), lh(r);
|
9247
|
-
},
|
9247
|
+
}, qa = function(t, n) {
|
9248
9248
|
n = n || {};
|
9249
9249
|
var r;
|
9250
9250
|
return n.getShadowRoot ? r = Ba([t], n.includeContainer, {
|
@@ -9263,7 +9263,7 @@ var _a = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
9263
9263
|
};
|
9264
9264
|
const sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
9265
9265
|
__proto__: null,
|
9266
|
-
focusable:
|
9266
|
+
focusable: qa,
|
9267
9267
|
getTabIndex: et,
|
9268
9268
|
isFocusable: fn,
|
9269
9269
|
isTabbable: ct,
|
@@ -9443,7 +9443,7 @@ var go = {
|
|
9443
9443
|
return b;
|
9444
9444
|
}, m = function() {
|
9445
9445
|
if (a.containerGroups = a.containers.map(function(b) {
|
9446
|
-
var I = Ha(b, o.tabbableOptions), z =
|
9446
|
+
var I = Ha(b, o.tabbableOptions), z = qa(b, o.tabbableOptions), L = I.length > 0 ? I[0] : void 0, U = I.length > 0 ? I[I.length - 1] : void 0, _ = z.find(function(g) {
|
9447
9447
|
return ct(g);
|
9448
9448
|
}), V = z.slice().reverse().find(function(g) {
|
9449
9449
|
return ct(g);
|
@@ -9479,11 +9479,11 @@ var go = {
|
|
9479
9479
|
* in reverse.
|
9480
9480
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
9481
9481
|
*/
|
9482
|
-
nextTabbableNode: function(
|
9483
|
-
var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = I.indexOf(
|
9484
|
-
return h < 0 ? ye ? z.slice(z.indexOf(
|
9482
|
+
nextTabbableNode: function(fe) {
|
9483
|
+
var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = I.indexOf(fe);
|
9484
|
+
return h < 0 ? ye ? z.slice(z.indexOf(fe) + 1).find(function(me) {
|
9485
9485
|
return ct(me);
|
9486
|
-
}) : z.slice(0, z.indexOf(
|
9486
|
+
}) : z.slice(0, z.indexOf(fe)).reverse().find(function(me) {
|
9487
9487
|
return ct(me);
|
9488
9488
|
}) : I[h + (ye ? 1 : -1)];
|
9489
9489
|
}
|
@@ -9527,7 +9527,7 @@ var go = {
|
|
9527
9527
|
return I === Te;
|
9528
9528
|
});
|
9529
9529
|
if (g < 0 && (ie.container === I || fn(I, o.tabbableOptions) && !ct(I, o.tabbableOptions) && !ie.nextTabbableNode(I, !1)) && (g = V), g >= 0) {
|
9530
|
-
var
|
9530
|
+
var fe = g === 0 ? a.tabbableGroups.length - 1 : g - 1, ye = a.tabbableGroups[fe];
|
9531
9531
|
_ = et(I) >= 0 ? ye.lastTabbableNode : ye.lastDomTabbableNode;
|
9532
9532
|
} else
|
9533
9533
|
Qt(z) || (_ = ie.nextTabbableNode(I, !1));
|
@@ -9580,8 +9580,8 @@ var go = {
|
|
9580
9580
|
}
|
9581
9581
|
} else
|
9582
9582
|
a.containerGroups.some(function(g) {
|
9583
|
-
return g.tabbableNodes.some(function(
|
9584
|
-
return et(
|
9583
|
+
return g.tabbableNodes.some(function(fe) {
|
9584
|
+
return et(fe) > 0;
|
9585
9585
|
});
|
9586
9586
|
}) || (U = !1);
|
9587
9587
|
else
|
@@ -9608,7 +9608,7 @@ var go = {
|
|
9608
9608
|
return;
|
9609
9609
|
}
|
9610
9610
|
(o.isKeyForward(b) || o.isKeyBackward(b)) && S(b, o.isKeyBackward(b));
|
9611
|
-
},
|
9611
|
+
}, $ = function(b) {
|
9612
9612
|
var I = on(b);
|
9613
9613
|
s(I, b) >= 0 || Lt(o.clickOutsideDeactivates, b) || Lt(o.allowOutsideClick, b) || (b.preventDefault(), b.stopImmediatePropagation());
|
9614
9614
|
}, M = function() {
|
@@ -9621,7 +9621,7 @@ var go = {
|
|
9621
9621
|
}), r.addEventListener("touchstart", v, {
|
9622
9622
|
capture: !0,
|
9623
9623
|
passive: !1
|
9624
|
-
}), r.addEventListener("click",
|
9624
|
+
}), r.addEventListener("click", $, {
|
9625
9625
|
capture: !0,
|
9626
9626
|
passive: !1
|
9627
9627
|
}), r.addEventListener("keydown", W, {
|
@@ -9630,7 +9630,7 @@ var go = {
|
|
9630
9630
|
}), l;
|
9631
9631
|
}, P = function() {
|
9632
9632
|
if (a.active)
|
9633
|
-
return r.removeEventListener("focusin", C, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click",
|
9633
|
+
return r.removeEventListener("focusin", C, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", $, !0), r.removeEventListener("keydown", W, !0), l;
|
9634
9634
|
}, H = function(b) {
|
9635
9635
|
var I = b.some(function(z) {
|
9636
9636
|
var L = Array.from(z.removedNodes);
|
@@ -9721,7 +9721,7 @@ function vh(e, t) {
|
|
9721
9721
|
function Mo(e, t) {
|
9722
9722
|
for (var n = 0; n < t.length; n++) {
|
9723
9723
|
var r = t[n];
|
9724
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
9724
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, $a(r.key), r);
|
9725
9725
|
}
|
9726
9726
|
}
|
9727
9727
|
function Dh(e, t, n) {
|
@@ -9779,9 +9779,9 @@ function xn(e) {
|
|
9779
9779
|
}, xn(e);
|
9780
9780
|
}
|
9781
9781
|
function jh(e, t, n) {
|
9782
|
-
return t =
|
9782
|
+
return t = $a(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
9783
9783
|
}
|
9784
|
-
function
|
9784
|
+
function $a(e) {
|
9785
9785
|
var t = Eh(e, "string");
|
9786
9786
|
return wt(t) === "symbol" ? t : String(t);
|
9787
9787
|
}
|
@@ -10377,7 +10377,7 @@ const Yh = 991, Hh = () => {
|
|
10377
10377
|
children: t.message.text
|
10378
10378
|
}
|
10379
10379
|
) : null;
|
10380
|
-
},
|
10380
|
+
}, qh = Hh, $h = {
|
10381
10381
|
edx: Wo,
|
10382
10382
|
"speech-emerson": ir,
|
10383
10383
|
"get-smarter": ir,
|
@@ -10393,15 +10393,15 @@ function Xr({ submitEventExternal: e }) {
|
|
10393
10393
|
launchButton: o,
|
10394
10394
|
proactiveMessage: a,
|
10395
10395
|
conversationScreen: l
|
10396
|
-
} = We(Ge), u = vt(Vh), [, s] = we(!1), [c, p] = we(Wh), [m, d] = we(!1), [T, x] = we(!1), [j, v] = we(!1), [C, S] = we(""), [W,
|
10396
|
+
} = We(Ge), u = vt(Vh), [, s] = we(!1), [c, p] = we(Wh), [m, d] = we(!1), [T, x] = we(!1), [j, v] = we(!1), [C, S] = we(""), [W, $] = we(!1), [M, P] = we(!0), [H, G] = we(!1), [K, A] = we(!1), [b, I] = we(!1), z = tt(null), L = tt(null), U = tt(null), _ = He.get(`${t}-test`) === "1", V = Yt(
|
10397
10397
|
({ name: R, payload: ne }) => {
|
10398
10398
|
console.log(
|
10399
|
-
"userTracking.defaultProperties",
|
10399
|
+
"xcf userTracking.defaultProperties",
|
10400
10400
|
r == null ? void 0 : r.defaultProperties,
|
10401
10401
|
ne
|
10402
10402
|
);
|
10403
10403
|
const he = No(r == null ? void 0 : r.defaultProperties, ne);
|
10404
|
-
console.log("resolvedPayload", he), e ? (console.log("x1"), e({ name: R, payload: he })) : (console.log("x2"), U.current.track(
|
10404
|
+
console.log("xcf resolvedPayload", he), e ? (console.log("xcf x1"), e({ name: R, payload: he })) : (console.log("xcf x2"), U.current.track(
|
10405
10405
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
10406
10406
|
R,
|
10407
10407
|
he
|
@@ -10473,18 +10473,16 @@ function Xr({ submitEventExternal: e }) {
|
|
10473
10473
|
isTestUser: _
|
10474
10474
|
}
|
10475
10475
|
});
|
10476
|
-
},
|
10476
|
+
}, fe = _h(
|
10477
10477
|
i.experimentName
|
10478
10478
|
);
|
10479
|
-
if (i.experimentName &&
|
10480
|
-
return i.experimentName &&
|
10481
|
-
`Chatbot - Experiment not setup: ${t}, ${
|
10479
|
+
if (i.experimentName && fe !== "A" && !_)
|
10480
|
+
return i.experimentName && fe !== "A" && console.log(
|
10481
|
+
`Chatbot - Experiment not setup: ${t}, ${fe}, ${window.optimizely}`
|
10482
10482
|
), _ || console.log(`Chatbot - Test user not setup: ${t}, ${_}`), null;
|
10483
10483
|
if (r.prefix && !((gt = U == null ? void 0 : U.current) != null && gt.track) && !e)
|
10484
10484
|
return console.log(`Chatbot - Segment not setup: ${t}`), null;
|
10485
|
-
console.log(
|
10486
|
-
`Chatbot - All things setup: ${t}, ${typeof window.analytics}, ${ue}, ${typeof window.optimizely}, ${typeof window.experiments}`
|
10487
|
-
);
|
10485
|
+
console.log(`Chatbot - All things setup: ${JSON.stringify(r)}`);
|
10488
10486
|
const ye = () => {
|
10489
10487
|
S(""), L.current.value = "", L.current.style.height = "auto";
|
10490
10488
|
}, h = (R, ne) => {
|
@@ -10524,7 +10522,7 @@ function Xr({ submitEventExternal: e }) {
|
|
10524
10522
|
if (R.trim().length === 0)
|
10525
10523
|
return;
|
10526
10524
|
const ne = /* @__PURE__ */ new Date();
|
10527
|
-
I(!1),
|
10525
|
+
I(!1), $(!1);
|
10528
10526
|
const he = c.filter((D) => D.role === "user").length + 1;
|
10529
10527
|
V({
|
10530
10528
|
name: `${r.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
|
@@ -10594,7 +10592,7 @@ function Xr({ submitEventExternal: e }) {
|
|
10594
10592
|
}
|
10595
10593
|
]), A(!1), d(!1), ye(), I(!0);
|
10596
10594
|
} catch (ne) {
|
10597
|
-
d(!1), ye(),
|
10595
|
+
d(!1), ye(), $(!0), console.error(ne);
|
10598
10596
|
}
|
10599
10597
|
}, oe = () => {
|
10600
10598
|
v(!1), x(!0), V({
|
@@ -10713,7 +10711,7 @@ function Xr({ submitEventExternal: e }) {
|
|
10713
10711
|
{
|
10714
10712
|
"data-ot-ignore": "",
|
10715
10713
|
className: "xpert-chatbot-button__logo optanon-category-C0001",
|
10716
|
-
src:
|
10714
|
+
src: $h[t],
|
10717
10715
|
alt: "xpert logo",
|
10718
10716
|
"aria-hidden": !0,
|
10719
10717
|
style: { width: (at = o.style) == null ? void 0 : at.iconWidth }
|
@@ -10721,7 +10719,7 @@ function Xr({ submitEventExternal: e }) {
|
|
10721
10719
|
)
|
10722
10720
|
}
|
10723
10721
|
),
|
10724
|
-
/* @__PURE__ */ k.jsx(
|
10722
|
+
/* @__PURE__ */ k.jsx(qh, {})
|
10725
10723
|
] }),
|
10726
10724
|
T && !j && /* @__PURE__ */ k.jsx(Zr, { isNormalSize: M, isMounted: H, children: /* @__PURE__ */ k.jsx(
|
10727
10725
|
"div",
|
@@ -10815,7 +10813,7 @@ Ga.propTypes = {
|
|
10815
10813
|
xpertKey: N.string
|
10816
10814
|
};
|
10817
10815
|
function Gh({ configurations: e = {}, key: t, submitEventExternal: n, xpertKey: r }) {
|
10818
|
-
return /* @__PURE__ */ k.jsx(
|
10816
|
+
return console.log("xcf configurations", e), /* @__PURE__ */ k.jsx(
|
10819
10817
|
Ga,
|
10820
10818
|
{
|
10821
10819
|
xpertKey: r,
|