@2uinc/frontend-component-xpert-chatbot 1.3.11-beta.1 → 1.3.11-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 +696 -685
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import ue, { useState as pe, useEffect as
|
1
|
+
import ue, { useState as pe, useEffect as ye, useCallback as at, useRef as Fe } from "react";
|
2
2
|
const tl = {
|
3
3
|
xpertKey: "edx",
|
4
4
|
chatApiEndpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chat",
|
@@ -182,7 +182,7 @@ const tl = {
|
|
182
182
|
function Ue(e) {
|
183
183
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
184
184
|
}
|
185
|
-
function
|
185
|
+
function Ii(e) {
|
186
186
|
if (e.__esModule)
|
187
187
|
return e;
|
188
188
|
var t = e.default;
|
@@ -203,7 +203,7 @@ function Ti(e) {
|
|
203
203
|
});
|
204
204
|
}), n;
|
205
205
|
}
|
206
|
-
var
|
206
|
+
var Ti = { exports: {} }, ct = {};
|
207
207
|
/*
|
208
208
|
object-assign
|
209
209
|
(c) Sindre Sorhus
|
@@ -265,8 +265,8 @@ function vi(e, t, n) {
|
|
265
265
|
}
|
266
266
|
ct.jsx = vi;
|
267
267
|
ct.jsxs = vi;
|
268
|
-
|
269
|
-
var D =
|
268
|
+
Ti.exports = ct;
|
269
|
+
var D = Ti.exports, ji = { exports: {} }, fl = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", dl = fl, hl = dl;
|
270
270
|
function Ei() {
|
271
271
|
}
|
272
272
|
function Si() {
|
@@ -386,7 +386,7 @@ function wn(e, t) {
|
|
386
386
|
var De = wn(ml, { path: "/" });
|
387
387
|
function yl(e) {
|
388
388
|
const [t, n] = pe(null);
|
389
|
-
return
|
389
|
+
return ye(() => {
|
390
390
|
console.log("Chatbot - optimizely mount");
|
391
391
|
try {
|
392
392
|
(() => {
|
@@ -423,7 +423,7 @@ const Ml = 576, xl = (e) => {
|
|
423
423
|
).matches
|
424
424
|
);
|
425
425
|
}, [e]);
|
426
|
-
return
|
426
|
+
return ye(() => (r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r)), [r]), t;
|
427
427
|
}, pt = xl, nt = /^[a-z0-9]+(-[a-z0-9]+)*$/, _t = (e, t, n, r = "") => {
|
428
428
|
const i = e.split(":");
|
429
429
|
if (e.slice(0, 1) === "@") {
|
@@ -569,7 +569,7 @@ function zi(e) {
|
|
569
569
|
return t;
|
570
570
|
}
|
571
571
|
const yr = /* @__PURE__ */ Object.create(null);
|
572
|
-
function
|
572
|
+
function Il(e, t) {
|
573
573
|
return {
|
574
574
|
provider: e,
|
575
575
|
prefix: t,
|
@@ -579,14 +579,14 @@ function Tl(e, t) {
|
|
579
579
|
}
|
580
580
|
function Re(e, t) {
|
581
581
|
const n = yr[e] || (yr[e] = /* @__PURE__ */ Object.create(null));
|
582
|
-
return n[t] || (n[t] =
|
582
|
+
return n[t] || (n[t] = Il(e, t));
|
583
583
|
}
|
584
584
|
function Bn(e, t) {
|
585
585
|
return zi(t) ? Oi(t, (n, r) => {
|
586
586
|
r ? e.icons[n] = r : e.missing.add(n);
|
587
587
|
}) : [];
|
588
588
|
}
|
589
|
-
function
|
589
|
+
function Tl(e, t, n) {
|
590
590
|
try {
|
591
591
|
if (typeof n.body == "string")
|
592
592
|
return e.icons[t] = { ...n }, !0;
|
@@ -610,7 +610,7 @@ function vl(e, t) {
|
|
610
610
|
if (!n)
|
611
611
|
return !1;
|
612
612
|
const r = Re(n.provider, n.prefix);
|
613
|
-
return
|
613
|
+
return Tl(r, n.name, t);
|
614
614
|
}
|
615
615
|
function jl(e, t) {
|
616
616
|
if (typeof e != "object")
|
@@ -678,9 +678,9 @@ function Al(e, t) {
|
|
678
678
|
height: n.height
|
679
679
|
};
|
680
680
|
let o = n.body;
|
681
|
-
[n, r].forEach((
|
682
|
-
const b = [], S =
|
683
|
-
let v =
|
681
|
+
[n, r].forEach((I) => {
|
682
|
+
const b = [], S = I.hFlip, w = I.vFlip;
|
683
|
+
let v = I.rotate;
|
684
684
|
S ? w ? v += 2 : (b.push(
|
685
685
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
686
686
|
), b.push("scale(-1 1)"), i.top = i.left = 0) : w && (b.push(
|
@@ -709,8 +709,8 @@ function Al(e, t) {
|
|
709
709
|
const l = r.width, a = r.height, s = i.width, u = i.height;
|
710
710
|
let c, p;
|
711
711
|
l === null ? (p = a === null ? "1em" : a === "auto" ? u : a, c = Mr(p, s / u)) : (c = l === "auto" ? s : l, p = a === null ? Mr(c, u / s) : a === "auto" ? u : a);
|
712
|
-
const m = {}, f = (
|
713
|
-
Cl(b) || (m[
|
712
|
+
const m = {}, f = (I, b) => {
|
713
|
+
Cl(b) || (m[I] = b.toString());
|
714
714
|
};
|
715
715
|
return f("width", c), f("height", p), m.viewBox = i.left.toString() + " " + i.top.toString() + " " + s.toString() + " " + u.toString(), {
|
716
716
|
attributes: m,
|
@@ -741,7 +741,7 @@ const Nn = /* @__PURE__ */ Object.create(null);
|
|
741
741
|
function Fl(e, t) {
|
742
742
|
Nn[e] = t;
|
743
743
|
}
|
744
|
-
function
|
744
|
+
function In(e) {
|
745
745
|
return Nn[e] || Nn[""];
|
746
746
|
}
|
747
747
|
function Qn(e) {
|
@@ -1005,11 +1005,11 @@ function Kl(e, t, n, r) {
|
|
1005
1005
|
const a = Date.now();
|
1006
1006
|
let s = "pending", u = 0, c, p = null, m = [], f = [];
|
1007
1007
|
typeof r == "function" && f.push(r);
|
1008
|
-
function
|
1008
|
+
function I() {
|
1009
1009
|
p && (clearTimeout(p), p = null);
|
1010
1010
|
}
|
1011
1011
|
function b() {
|
1012
|
-
s === "pending" && (s = "aborted"),
|
1012
|
+
s === "pending" && (s = "aborted"), I(), m.forEach((y) => {
|
1013
1013
|
y.status === "pending" && (y.status = "aborted");
|
1014
1014
|
}), m = [];
|
1015
1015
|
}
|
@@ -1057,7 +1057,7 @@ function Kl(e, t, n, r) {
|
|
1057
1057
|
c = U, m.length || (l.length ? _() : v());
|
1058
1058
|
return;
|
1059
1059
|
}
|
1060
|
-
if (
|
1060
|
+
if (I(), j(), !e.random) {
|
1061
1061
|
const q = e.resources.indexOf(y.resource);
|
1062
1062
|
q !== -1 && q !== e.index && (e.index = q);
|
1063
1063
|
}
|
@@ -1068,12 +1068,12 @@ function Kl(e, t, n, r) {
|
|
1068
1068
|
function _() {
|
1069
1069
|
if (s !== "pending")
|
1070
1070
|
return;
|
1071
|
-
|
1071
|
+
I();
|
1072
1072
|
const y = l.shift();
|
1073
1073
|
if (y === void 0) {
|
1074
1074
|
if (m.length) {
|
1075
1075
|
p = setTimeout(() => {
|
1076
|
-
|
1076
|
+
I(), s === "pending" && (j(), v());
|
1077
1077
|
}, e.timeout);
|
1078
1078
|
return;
|
1079
1079
|
}
|
@@ -1143,7 +1143,7 @@ function Jl(e) {
|
|
1143
1143
|
function ea(e, t, n) {
|
1144
1144
|
let r, i;
|
1145
1145
|
if (typeof e == "string") {
|
1146
|
-
const o =
|
1146
|
+
const o = In(e);
|
1147
1147
|
if (!o)
|
1148
1148
|
return n(void 0, 424), br;
|
1149
1149
|
i = o.send;
|
@@ -1153,14 +1153,14 @@ function ea(e, t, n) {
|
|
1153
1153
|
const o = Qn(e);
|
1154
1154
|
if (o) {
|
1155
1155
|
r = _i(o);
|
1156
|
-
const l = e.resources ? e.resources[0] : "", a =
|
1156
|
+
const l = e.resources ? e.resources[0] : "", a = In(l);
|
1157
1157
|
a && (i = a.send);
|
1158
1158
|
}
|
1159
1159
|
}
|
1160
1160
|
return !r || !i ? (n(void 0, 424), br) : r.query(t, i, n)().abort;
|
1161
1161
|
}
|
1162
1162
|
const wr = "iconify2", st = "iconify", Ui = st + "-count", Dr = st + "-version", Bi = 36e5, ta = 168;
|
1163
|
-
function
|
1163
|
+
function Tn(e, t) {
|
1164
1164
|
try {
|
1165
1165
|
return e.getItem(t);
|
1166
1166
|
} catch {
|
@@ -1182,7 +1182,7 @@ function kn(e, t) {
|
|
1182
1182
|
return qn(e, Ui, t.toString());
|
1183
1183
|
}
|
1184
1184
|
function vn(e) {
|
1185
|
-
return parseInt(
|
1185
|
+
return parseInt(Tn(e, Ui)) || 0;
|
1186
1186
|
}
|
1187
1187
|
const Ut = {
|
1188
1188
|
local: !0,
|
@@ -1209,7 +1209,7 @@ function Hi(e, t) {
|
|
1209
1209
|
const n = Yi(e);
|
1210
1210
|
if (!n)
|
1211
1211
|
return;
|
1212
|
-
const r =
|
1212
|
+
const r = Tn(n, Dr);
|
1213
1213
|
if (r !== wr) {
|
1214
1214
|
if (r) {
|
1215
1215
|
const a = vn(n);
|
@@ -1220,7 +1220,7 @@ function Hi(e, t) {
|
|
1220
1220
|
return;
|
1221
1221
|
}
|
1222
1222
|
const i = Math.floor(Date.now() / Bi) - ta, o = (a) => {
|
1223
|
-
const s = st + a.toString(), u =
|
1223
|
+
const s = st + a.toString(), u = Tn(n, s);
|
1224
1224
|
if (typeof u == "string") {
|
1225
1225
|
try {
|
1226
1226
|
const c = JSON.parse(u);
|
@@ -1292,7 +1292,7 @@ function ia(e, t) {
|
|
1292
1292
|
}
|
1293
1293
|
t.lastModified && !ra(e, t.lastModified) || Object.keys(t.icons).length && (t.not_found && (t = Object.assign({}, t), delete t.not_found), n("local") || n("session"));
|
1294
1294
|
}
|
1295
|
-
function
|
1295
|
+
function Ir() {
|
1296
1296
|
}
|
1297
1297
|
function oa(e) {
|
1298
1298
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
@@ -1305,7 +1305,7 @@ function la(e, t) {
|
|
1305
1305
|
const { provider: n, prefix: r } = e, i = e.iconsToLoad;
|
1306
1306
|
delete e.iconsToLoad;
|
1307
1307
|
let o;
|
1308
|
-
if (!i || !(o =
|
1308
|
+
if (!i || !(o = In(n)))
|
1309
1309
|
return;
|
1310
1310
|
o.prepare(n, r, i).forEach((a) => {
|
1311
1311
|
ea(n, a, (s) => {
|
@@ -1342,7 +1342,7 @@ const aa = (e, t) => {
|
|
1342
1342
|
r.loaded,
|
1343
1343
|
r.missing,
|
1344
1344
|
r.pending,
|
1345
|
-
|
1345
|
+
Ir
|
1346
1346
|
);
|
1347
1347
|
}), () => {
|
1348
1348
|
s = !1;
|
@@ -1363,7 +1363,7 @@ const aa = (e, t) => {
|
|
1363
1363
|
}), o.forEach((s) => {
|
1364
1364
|
const { provider: u, prefix: c } = s;
|
1365
1365
|
i[u][c].length && la(s, i[u][c]);
|
1366
|
-
}), t ? Zl(t, r, o) :
|
1366
|
+
}), t ? Zl(t, r, o) : Ir;
|
1367
1367
|
};
|
1368
1368
|
function ua(e, t) {
|
1369
1369
|
const n = {
|
@@ -1457,7 +1457,7 @@ const $i = {
|
|
1457
1457
|
backgroundColor: "currentColor"
|
1458
1458
|
}, Vi = {
|
1459
1459
|
backgroundColor: "transparent"
|
1460
|
-
},
|
1460
|
+
}, Tr = {
|
1461
1461
|
Image: "var(--svg)",
|
1462
1462
|
Repeat: "no-repeat",
|
1463
1463
|
Size: "100% 100%"
|
@@ -1468,8 +1468,8 @@ const $i = {
|
|
1468
1468
|
};
|
1469
1469
|
for (const e in kr) {
|
1470
1470
|
const t = kr[e];
|
1471
|
-
for (const n in
|
1472
|
-
t[e + n] =
|
1471
|
+
for (const n in Tr)
|
1472
|
+
t[e + n] = Tr[n];
|
1473
1473
|
}
|
1474
1474
|
const ba = {
|
1475
1475
|
...$i,
|
@@ -1528,10 +1528,10 @@ const wa = (e, t, n, r) => {
|
|
1528
1528
|
__html: ya(Pl(c.body, v ? () => v + "ID" + w++ : "iconifyReact"))
|
1529
1529
|
}, ue.createElement("svg", u);
|
1530
1530
|
}
|
1531
|
-
const { body: m, width: f, height:
|
1531
|
+
const { body: m, width: f, height: I } = e, b = l === "mask" || (l === "bg" ? !1 : m.indexOf("currentColor") !== -1), S = fa(m, {
|
1532
1532
|
...p,
|
1533
1533
|
width: f + "",
|
1534
|
-
height:
|
1534
|
+
height: I + ""
|
1535
1535
|
});
|
1536
1536
|
return u.style = {
|
1537
1537
|
...a,
|
@@ -1690,13 +1690,13 @@ const jr = {
|
|
1690
1690
|
function Vn(e) {
|
1691
1691
|
var l;
|
1692
1692
|
const [t, n] = pe(!0), r = t && (!(window != null && window.OnetrustActiveGroups) || ((l = window == null ? void 0 : window.OnetrustActiveGroups) == null ? void 0 : l.includes("C0003"))) && De.get(e.cookieName) === void 0;
|
1693
|
-
|
1693
|
+
ye(() => {
|
1694
1694
|
var a;
|
1695
1695
|
(a = window == null ? void 0 : window.OneTrust) == null || a.OnConsentChanged(() => {
|
1696
1696
|
var s;
|
1697
1697
|
!((s = window == null ? void 0 : window.OnetrustActiveGroups) != null && s.includes("C0003")) && De.get(e.cookieName) !== void 0 && De.remove(e.cookieName);
|
1698
1698
|
});
|
1699
|
-
}, [e.cookieName]),
|
1699
|
+
}, [e.cookieName]), ye(() => {
|
1700
1700
|
var a;
|
1701
1701
|
e.showMessage || (!(window != null && window.OnetrustActiveGroups) || (a = window == null ? void 0 : window.OnetrustActiveGroups) != null && a.includes("C0003")) && o(e.cookieName, 1, 1);
|
1702
1702
|
}, [e.showMessage, e.cookieName]);
|
@@ -1867,7 +1867,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1867
1867
|
n === void 0 && (n = !0);
|
1868
1868
|
var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", l = o || n && t && e(t.parentNode);
|
1869
1869
|
return l;
|
1870
|
-
},
|
1870
|
+
}, Ia = function(t) {
|
1871
1871
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
1872
1872
|
return r === "" || r === "true";
|
1873
1873
|
}, Ji = function(t, n, r) {
|
@@ -1906,8 +1906,8 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
1906
1906
|
}, Ce = function(t) {
|
1907
1907
|
if (!t)
|
1908
1908
|
throw new Error("No node provided");
|
1909
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
1910
|
-
},
|
1909
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Ia(t)) && !to(t) ? 0 : t.tabIndex;
|
1910
|
+
}, Ta = function(t, n) {
|
1911
1911
|
var r = Ce(t);
|
1912
1912
|
return r < 0 && n && !to(t) ? 0 : r;
|
1913
1913
|
}, ka = function(t, n) {
|
@@ -2010,7 +2010,7 @@ var Xi = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
2010
2010
|
}, Fa = function e(t) {
|
2011
2011
|
var n = [], r = [];
|
2012
2012
|
return t.forEach(function(i, o) {
|
2013
|
-
var l = !!i.scopeParent, a = l ? i.scopeParent : i, s =
|
2013
|
+
var l = !!i.scopeParent, a = l ? i.scopeParent : i, s = Ta(a, l), u = l ? e(i.candidates) : a;
|
2014
2014
|
s === 0 ? l ? n.push.apply(n, u) : n.push(a) : r.push({
|
2015
2015
|
documentOrder: o,
|
2016
2016
|
tabIndex: s,
|
@@ -2286,7 +2286,7 @@ var Ar = {
|
|
2286
2286
|
var N = M.activeElement;
|
2287
2287
|
if (N)
|
2288
2288
|
return N.shadowRoot && N.shadowRoot.activeElement !== null ? E(N.shadowRoot) : N;
|
2289
|
-
},
|
2289
|
+
}, I = function E(M) {
|
2290
2290
|
if (M !== !1 && M !== f(document)) {
|
2291
2291
|
if (!M || !M.focus) {
|
2292
2292
|
E(p());
|
@@ -2377,7 +2377,7 @@ var Ar = {
|
|
2377
2377
|
// outside the trap causing the focus escape we're trying to fix)
|
2378
2378
|
target: l.mostRecentlyFocusedNode,
|
2379
2379
|
isBackward: o.isKeyBackward(l.recentNavEvent)
|
2380
|
-
})),
|
2380
|
+
})), I(z || l.mostRecentlyFocusedNode || p());
|
2381
2381
|
}
|
2382
2382
|
l.recentNavEvent = void 0;
|
2383
2383
|
}, j = function(M) {
|
@@ -2387,7 +2387,7 @@ var Ar = {
|
|
2387
2387
|
event: M,
|
2388
2388
|
isBackward: N
|
2389
2389
|
});
|
2390
|
-
C && (it(M) && M.preventDefault(),
|
2390
|
+
C && (it(M) && M.preventDefault(), I(C));
|
2391
2391
|
}, B = function(M) {
|
2392
2392
|
if (Ha(M) && Ke(o.escapeDeactivates, M) !== !1) {
|
2393
2393
|
M.preventDefault(), a.deactivate();
|
@@ -2400,8 +2400,8 @@ var Ar = {
|
|
2400
2400
|
}, y = function() {
|
2401
2401
|
if (l.active)
|
2402
2402
|
return Ar.activateTrap(i, a), l.delayInitialFocusTimer = o.delayInitialFocus ? Or(function() {
|
2403
|
-
|
2404
|
-
}) :
|
2403
|
+
I(p());
|
2404
|
+
}) : I(p()), r.addEventListener("focusin", v, !0), r.addEventListener("mousedown", w, {
|
2405
2405
|
capture: !0,
|
2406
2406
|
passive: !1
|
2407
2407
|
}), r.addEventListener("touchstart", w, {
|
@@ -2424,7 +2424,7 @@ var Ar = {
|
|
2424
2424
|
return F === l.mostRecentlyFocusedNode;
|
2425
2425
|
});
|
2426
2426
|
});
|
2427
|
-
N &&
|
2427
|
+
N && I(p());
|
2428
2428
|
}, Q = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(U) : void 0, q = function() {
|
2429
2429
|
Q && (Q.disconnect(), l.active && !l.paused && l.containers.map(function(M) {
|
2430
2430
|
Q.observe(M, {
|
@@ -2463,7 +2463,7 @@ var Ar = {
|
|
2463
2463
|
C == null || C();
|
2464
2464
|
var V = function() {
|
2465
2465
|
Or(function() {
|
2466
|
-
Y &&
|
2466
|
+
Y && I(b(l.nodeFocusedBeforeActivation)), z == null || z();
|
2467
2467
|
});
|
2468
2468
|
};
|
2469
2469
|
return Y && F ? (F(b(l.nodeFocusedBeforeActivation)).then(V, V), this) : (V(), this);
|
@@ -2491,7 +2491,7 @@ var Ar = {
|
|
2491
2491
|
const Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2492
2492
|
__proto__: null,
|
2493
2493
|
createFocusTrap: Wa
|
2494
|
-
}, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */
|
2494
|
+
}, Symbol.toStringTag, { value: "Module" })), Ga = /* @__PURE__ */ Ii(Za), Xa = /* @__PURE__ */ Ii(_a);
|
2495
2495
|
function He(e) {
|
2496
2496
|
"@babel/helpers - typeof";
|
2497
2497
|
return He = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
@@ -2583,7 +2583,7 @@ function ou(e, t) {
|
|
2583
2583
|
}
|
2584
2584
|
return (t === "string" ? String : Number)(e);
|
2585
2585
|
}
|
2586
|
-
var
|
2586
|
+
var It = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusable, Zn = /* @__PURE__ */ function(e) {
|
2587
2587
|
eu(n, e);
|
2588
2588
|
var t = tu(n);
|
2589
2589
|
function n(r) {
|
@@ -2602,8 +2602,8 @@ var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2602
2602
|
}
|
2603
2603
|
var f = u;
|
2604
2604
|
if (typeof u == "string") {
|
2605
|
-
var
|
2606
|
-
if (f = (
|
2605
|
+
var I;
|
2606
|
+
if (f = (I = this.getDocument()) === null || I === void 0 ? void 0 : I.querySelector(u), !f)
|
2607
2607
|
throw new Error("`".concat(a, "` as selector refers to no known node"));
|
2608
2608
|
}
|
2609
2609
|
return f;
|
@@ -2755,14 +2755,14 @@ var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2755
2755
|
}, {
|
2756
2756
|
key: "render",
|
2757
2757
|
value: function() {
|
2758
|
-
var i = this, o = this.props.children ?
|
2758
|
+
var i = this, o = this.props.children ? It.Children.only(this.props.children) : void 0;
|
2759
2759
|
if (o) {
|
2760
|
-
if (o.type && o.type ===
|
2760
|
+
if (o.type && o.type === It.Fragment)
|
2761
2761
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
2762
2762
|
var l = function(u) {
|
2763
2763
|
var c = i.props.containerElements;
|
2764
2764
|
o && (typeof o.ref == "function" ? o.ref(u) : o.ref && (o.ref.current = u)), i.focusTrapElements = c || [u];
|
2765
|
-
}, a =
|
2765
|
+
}, a = It.cloneElement(o, {
|
2766
2766
|
ref: l
|
2767
2767
|
});
|
2768
2768
|
return a;
|
@@ -2770,7 +2770,7 @@ var Tt = ue, P = Ci, lu = Ga, au = lu.createFocusTrap, uu = Xa, su = uu.isFocusa
|
|
2770
2770
|
return null;
|
2771
2771
|
}
|
2772
2772
|
}]), n;
|
2773
|
-
}(
|
2773
|
+
}(It.Component), Je = typeof Element > "u" ? Function : Element;
|
2774
2774
|
Zn.propTypes = {
|
2775
2775
|
active: P.bool,
|
2776
2776
|
paused: P.bool,
|
@@ -2832,7 +2832,7 @@ const pu = /* @__PURE__ */ Ue(cu), fu = (e) => {
|
|
2832
2832
|
}, n = () => {
|
2833
2833
|
document.body.style.overflow = "unset";
|
2834
2834
|
};
|
2835
|
-
|
2835
|
+
ye(() => {
|
2836
2836
|
const r = e == null ? void 0 : e.current;
|
2837
2837
|
return r == null || r.addEventListener("mouseover", t), r == null || r.addEventListener("mouseout", n), () => {
|
2838
2838
|
n(), r == null || r.removeEventListener("mouseover", t), r == null || r.removeEventListener("mouseout", n);
|
@@ -2964,43 +2964,53 @@ lo.propTypes = {
|
|
2964
2964
|
primaryColor: g.string.isRequired
|
2965
2965
|
}).isRequired
|
2966
2966
|
};
|
2967
|
+
const yu = {
|
2968
|
+
fontSize: "16px",
|
2969
|
+
maxHeight: "100%",
|
2970
|
+
maxWidth: "100%",
|
2971
|
+
display: "block"
|
2972
|
+
};
|
2967
2973
|
function Qt({
|
2968
2974
|
loading: e,
|
2969
2975
|
inputRef: t,
|
2970
|
-
|
2971
|
-
|
2972
|
-
|
2973
|
-
|
2974
|
-
|
2975
|
-
|
2976
|
-
|
2976
|
+
hasError: n,
|
2977
|
+
userInput: r,
|
2978
|
+
handleSend: i,
|
2979
|
+
handleInput: o,
|
2980
|
+
handleChange: l,
|
2981
|
+
handleKeyDown: a,
|
2982
|
+
containerStyle: s,
|
2983
|
+
configurations: u
|
2977
2984
|
}) {
|
2978
|
-
return
|
2985
|
+
return ye(() => {
|
2986
|
+
var c;
|
2987
|
+
(c = t == null ? void 0 : t.current) == null || c.focus();
|
2988
|
+
}, [e, n, t]), /* @__PURE__ */ D.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: s, children: [
|
2979
2989
|
/* @__PURE__ */ D.jsx(
|
2980
2990
|
"textarea",
|
2981
2991
|
{
|
2982
2992
|
disabled: e,
|
2983
|
-
value:
|
2993
|
+
value: r,
|
2984
2994
|
ref: t,
|
2985
|
-
onInput:
|
2986
|
-
onChange:
|
2995
|
+
onInput: o,
|
2996
|
+
onChange: l,
|
2987
2997
|
placeholder: "Write a message",
|
2988
2998
|
cols: "5",
|
2989
2999
|
rows: "1",
|
2990
3000
|
maxLength: "150",
|
2991
|
-
onKeyDown:
|
3001
|
+
onKeyDown: a,
|
2992
3002
|
style: {
|
2993
|
-
outlineColor:
|
3003
|
+
outlineColor: u.primaryColor,
|
2994
3004
|
width: "100%",
|
2995
3005
|
minHeight: "3.25rem",
|
2996
3006
|
borderRadius: "1rem",
|
2997
3007
|
padding: "12.5px 45px 12.5px 12.5px",
|
2998
3008
|
fontFamily: "inherit",
|
2999
|
-
fontSize: "1rem",
|
3000
3009
|
fontWeight: "300",
|
3001
3010
|
lineHeight: "1.56rem",
|
3002
3011
|
boxSizing: "border-box",
|
3003
|
-
resize: "none"
|
3012
|
+
resize: "none",
|
3013
|
+
...yu
|
3004
3014
|
}
|
3005
3015
|
}
|
3006
3016
|
),
|
@@ -3009,8 +3019,8 @@ function Qt({
|
|
3009
3019
|
{
|
3010
3020
|
disabled: e,
|
3011
3021
|
className: "xpert-chatbot-popup__input--send-btn",
|
3012
|
-
onClick: (
|
3013
|
-
|
3022
|
+
onClick: (c) => {
|
3023
|
+
c.preventDefault(), i(r);
|
3014
3024
|
},
|
3015
3025
|
"aria-label": "Send message",
|
3016
3026
|
children: /* @__PURE__ */ D.jsx(Ae, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
@@ -3021,6 +3031,7 @@ function Qt({
|
|
3021
3031
|
Qt.propTypes = {
|
3022
3032
|
loading: g.bool.isRequired,
|
3023
3033
|
inputRef: g.shape({ current: g.instanceOf(Object) }).isRequired,
|
3034
|
+
hasError: g.bool.isRequired,
|
3024
3035
|
handleSend: g.func.isRequired,
|
3025
3036
|
userInput: g.string.isRequired,
|
3026
3037
|
handleInput: g.func.isRequired,
|
@@ -3034,7 +3045,7 @@ Qt.propTypes = {
|
|
3034
3045
|
Qt.defaultProps = {
|
3035
3046
|
containerStyle: void 0
|
3036
3047
|
};
|
3037
|
-
const
|
3048
|
+
const Mu = {
|
3038
3049
|
Groups: "material-symbols:groups",
|
3039
3050
|
Compass: "mdi:compass-outline",
|
3040
3051
|
InfoOutline: "material-symbols:info-outline"
|
@@ -3076,7 +3087,7 @@ function ao({
|
|
3076
3087
|
/* @__PURE__ */ D.jsx("div", { className: "xpert-chatbot-popup__disclaimer__compass-icon", children: /* @__PURE__ */ D.jsx(
|
3077
3088
|
Ae,
|
3078
3089
|
{
|
3079
|
-
icon:
|
3090
|
+
icon: Mu[c.icon],
|
3080
3091
|
style: { fontSize: "1.75rem" }
|
3081
3092
|
}
|
3082
3093
|
) }),
|
@@ -3154,7 +3165,7 @@ ao.propTypes = {
|
|
3154
3165
|
};
|
3155
3166
|
function uo({ disableScroll: e }) {
|
3156
3167
|
const t = Fe(null);
|
3157
|
-
return
|
3168
|
+
return ye(() => {
|
3158
3169
|
var n;
|
3159
3170
|
e || (n = t.current) == null || n.scrollIntoView({
|
3160
3171
|
behavior: "smooth",
|
@@ -3179,7 +3190,7 @@ uo.propTypes = {
|
|
3179
3190
|
};
|
3180
3191
|
const so = () => {
|
3181
3192
|
const e = Fe(null);
|
3182
|
-
return
|
3193
|
+
return ye(() => {
|
3183
3194
|
var t;
|
3184
3195
|
(t = e.current) == null || t.scrollIntoView({
|
3185
3196
|
behavior: "instant"
|
@@ -3244,8 +3255,8 @@ const so = () => {
|
|
3244
3255
|
so.propTypes = {
|
3245
3256
|
errorRef: g.shape({ current: g.instanceOf(Object) }).isRequired
|
3246
3257
|
};
|
3247
|
-
const
|
3248
|
-
function
|
3258
|
+
const xu = so, Pr = ["http", "https", "mailto", "tel"];
|
3259
|
+
function bu(e) {
|
3249
3260
|
const t = (e || "").trim(), n = t.charAt(0);
|
3250
3261
|
if (n === "#" || n === "/")
|
3251
3262
|
return t;
|
@@ -3266,10 +3277,10 @@ function xu(e) {
|
|
3266
3277
|
* @author Feross Aboukhadijeh <https://feross.org>
|
3267
3278
|
* @license MIT
|
3268
3279
|
*/
|
3269
|
-
var
|
3280
|
+
var wu = function(t) {
|
3270
3281
|
return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
3271
3282
|
};
|
3272
|
-
const co = /* @__PURE__ */ Ue(
|
3283
|
+
const co = /* @__PURE__ */ Ue(wu);
|
3273
3284
|
function ot(e) {
|
3274
3285
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Fr(e.position) : "start" in e || "end" in e ? Fr(e) : "line" in e || "column" in e ? Cn(e) : "";
|
3275
3286
|
}
|
@@ -3327,8 +3338,8 @@ xe.prototype.line = null;
|
|
3327
3338
|
xe.prototype.source = null;
|
3328
3339
|
xe.prototype.ruleId = null;
|
3329
3340
|
xe.prototype.position = null;
|
3330
|
-
const
|
3331
|
-
function
|
3341
|
+
const Ie = { basename: Du, dirname: Nu, extname: Iu, join: Tu, sep: "/" };
|
3342
|
+
function Du(e, t) {
|
3332
3343
|
if (t !== void 0 && typeof t != "string")
|
3333
3344
|
throw new TypeError('"ext" argument must be a string');
|
3334
3345
|
ft(e);
|
@@ -3357,7 +3368,7 @@ function wu(e, t) {
|
|
3357
3368
|
l < 0 && (o = !0, l = i + 1), a > -1 && (e.charCodeAt(i) === t.charCodeAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
|
3358
3369
|
return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
|
3359
3370
|
}
|
3360
|
-
function
|
3371
|
+
function Nu(e) {
|
3361
3372
|
if (ft(e), e.length === 0)
|
3362
3373
|
return ".";
|
3363
3374
|
let t = -1, n = e.length, r;
|
@@ -3371,7 +3382,7 @@ function Du(e) {
|
|
3371
3382
|
r || (r = !0);
|
3372
3383
|
return t < 0 ? e.charCodeAt(0) === 47 ? "/" : "." : t === 1 && e.charCodeAt(0) === 47 ? "//" : e.slice(0, t);
|
3373
3384
|
}
|
3374
|
-
function
|
3385
|
+
function Iu(e) {
|
3375
3386
|
ft(e);
|
3376
3387
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
|
3377
3388
|
for (; t--; ) {
|
@@ -3393,15 +3404,15 @@ function Tu(...e) {
|
|
3393
3404
|
let t = -1, n;
|
3394
3405
|
for (; ++t < e.length; )
|
3395
3406
|
ft(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
3396
|
-
return n === void 0 ? "." :
|
3407
|
+
return n === void 0 ? "." : ku(n);
|
3397
3408
|
}
|
3398
|
-
function
|
3409
|
+
function ku(e) {
|
3399
3410
|
ft(e);
|
3400
3411
|
const t = e.charCodeAt(0) === 47;
|
3401
|
-
let n =
|
3412
|
+
let n = vu(e, !t);
|
3402
3413
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.charCodeAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
3403
3414
|
}
|
3404
|
-
function
|
3415
|
+
function vu(e, t) {
|
3405
3416
|
let n = "", r = 0, i = -1, o = 0, l = -1, a, s;
|
3406
3417
|
for (; ++l <= e.length; ) {
|
3407
3418
|
if (l < e.length)
|
@@ -3440,8 +3451,8 @@ function ft(e) {
|
|
3440
3451
|
"Path must be a string. Received " + JSON.stringify(e)
|
3441
3452
|
);
|
3442
3453
|
}
|
3443
|
-
const
|
3444
|
-
function
|
3454
|
+
const ju = { cwd: Eu };
|
3455
|
+
function Eu() {
|
3445
3456
|
return "/";
|
3446
3457
|
}
|
3447
3458
|
function An(e) {
|
@@ -3449,7 +3460,7 @@ function An(e) {
|
|
3449
3460
|
e.href && // @ts-expect-error: indexable.
|
3450
3461
|
e.origin;
|
3451
3462
|
}
|
3452
|
-
function
|
3463
|
+
function Su(e) {
|
3453
3464
|
if (typeof e == "string")
|
3454
3465
|
e = new URL(e);
|
3455
3466
|
else if (!An(e)) {
|
@@ -3462,9 +3473,9 @@ function Eu(e) {
|
|
3462
3473
|
const t = new TypeError("The URL must be of scheme file");
|
3463
3474
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
3464
3475
|
}
|
3465
|
-
return
|
3476
|
+
return Cu(e);
|
3466
3477
|
}
|
3467
|
-
function
|
3478
|
+
function Cu(e) {
|
3468
3479
|
if (e.hostname !== "") {
|
3469
3480
|
const r = new TypeError(
|
3470
3481
|
'File URL host must be "localhost" or empty on darwin'
|
@@ -3511,7 +3522,7 @@ class po {
|
|
3511
3522
|
*/
|
3512
3523
|
constructor(t) {
|
3513
3524
|
let n;
|
3514
|
-
t ? typeof t == "string" ||
|
3525
|
+
t ? typeof t == "string" || Au(t) ? n = { value: t } : An(t) ? n = { path: t } : n = t : n = {}, this.data = {}, this.messages = [], this.history = [], this.cwd = ju.cwd(), this.value, this.stored, this.result, this.map;
|
3515
3526
|
let r = -1;
|
3516
3527
|
for (; ++r < pn.length; ) {
|
3517
3528
|
const o = pn[r];
|
@@ -3539,13 +3550,13 @@ class po {
|
|
3539
3550
|
* @param {string | URL} path
|
3540
3551
|
*/
|
3541
3552
|
set path(t) {
|
3542
|
-
An(t) && (t =
|
3553
|
+
An(t) && (t = Su(t)), dn(t, "path"), this.path !== t && this.history.push(t);
|
3543
3554
|
}
|
3544
3555
|
/**
|
3545
3556
|
* Get the parent path (example: `'~'`).
|
3546
3557
|
*/
|
3547
3558
|
get dirname() {
|
3548
|
-
return typeof this.path == "string" ?
|
3559
|
+
return typeof this.path == "string" ? Ie.dirname(this.path) : void 0;
|
3549
3560
|
}
|
3550
3561
|
/**
|
3551
3562
|
* Set the parent path (example: `'~'`).
|
@@ -3553,13 +3564,13 @@ class po {
|
|
3553
3564
|
* Cannot be set if there’s no `path` yet.
|
3554
3565
|
*/
|
3555
3566
|
set dirname(t) {
|
3556
|
-
_r(this.basename, "dirname"), this.path =
|
3567
|
+
_r(this.basename, "dirname"), this.path = Ie.join(t || "", this.basename);
|
3557
3568
|
}
|
3558
3569
|
/**
|
3559
3570
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
3560
3571
|
*/
|
3561
3572
|
get basename() {
|
3562
|
-
return typeof this.path == "string" ?
|
3573
|
+
return typeof this.path == "string" ? Ie.basename(this.path) : void 0;
|
3563
3574
|
}
|
3564
3575
|
/**
|
3565
3576
|
* Set basename (including extname) (`'index.min.js'`).
|
@@ -3569,13 +3580,13 @@ class po {
|
|
3569
3580
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3570
3581
|
*/
|
3571
3582
|
set basename(t) {
|
3572
|
-
dn(t, "basename"), fn(t, "basename"), this.path =
|
3583
|
+
dn(t, "basename"), fn(t, "basename"), this.path = Ie.join(this.dirname || "", t);
|
3573
3584
|
}
|
3574
3585
|
/**
|
3575
3586
|
* Get the extname (including dot) (example: `'.js'`).
|
3576
3587
|
*/
|
3577
3588
|
get extname() {
|
3578
|
-
return typeof this.path == "string" ?
|
3589
|
+
return typeof this.path == "string" ? Ie.extname(this.path) : void 0;
|
3579
3590
|
}
|
3580
3591
|
/**
|
3581
3592
|
* Set the extname (including dot) (example: `'.js'`).
|
@@ -3591,13 +3602,13 @@ class po {
|
|
3591
3602
|
if (t.includes(".", 1))
|
3592
3603
|
throw new Error("`extname` cannot contain multiple dots");
|
3593
3604
|
}
|
3594
|
-
this.path =
|
3605
|
+
this.path = Ie.join(this.dirname, this.stem + (t || ""));
|
3595
3606
|
}
|
3596
3607
|
/**
|
3597
3608
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
3598
3609
|
*/
|
3599
3610
|
get stem() {
|
3600
|
-
return typeof this.path == "string" ?
|
3611
|
+
return typeof this.path == "string" ? Ie.basename(this.path, this.extname) : void 0;
|
3601
3612
|
}
|
3602
3613
|
/**
|
3603
3614
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
@@ -3607,7 +3618,7 @@ class po {
|
|
3607
3618
|
* Cannot be nullified (use `file.path = file.dirname` instead).
|
3608
3619
|
*/
|
3609
3620
|
set stem(t) {
|
3610
|
-
dn(t, "stem"), fn(t, "stem"), this.path =
|
3621
|
+
dn(t, "stem"), fn(t, "stem"), this.path = Ie.join(this.dirname || "", t + (this.extname || ""));
|
3611
3622
|
}
|
3612
3623
|
/**
|
3613
3624
|
* Serialize the file.
|
@@ -3687,9 +3698,9 @@ class po {
|
|
3687
3698
|
}
|
3688
3699
|
}
|
3689
3700
|
function fn(e, t) {
|
3690
|
-
if (e && e.includes(
|
3701
|
+
if (e && e.includes(Ie.sep))
|
3691
3702
|
throw new Error(
|
3692
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
3703
|
+
"`" + t + "` cannot be a path: did not expect `" + Ie.sep + "`"
|
3693
3704
|
);
|
3694
3705
|
}
|
3695
3706
|
function dn(e, t) {
|
@@ -3700,7 +3711,7 @@ function _r(e, t) {
|
|
3700
3711
|
if (!e)
|
3701
3712
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
3702
3713
|
}
|
3703
|
-
function
|
3714
|
+
function Au(e) {
|
3704
3715
|
return co(e);
|
3705
3716
|
}
|
3706
3717
|
function Ur(e) {
|
@@ -3734,7 +3745,7 @@ var St = Object.prototype.hasOwnProperty, fo = Object.prototype.toString, Br = O
|
|
3734
3745
|
} else
|
3735
3746
|
return;
|
3736
3747
|
return t[n];
|
3737
|
-
},
|
3748
|
+
}, Ou = function e() {
|
3738
3749
|
var t, n, r, i, o, l, a = arguments[0], s = 1, u = arguments.length, c = !1;
|
3739
3750
|
for (typeof a == "boolean" && (c = a, a = arguments[1] || {}, s = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); s < u; ++s)
|
3740
3751
|
if (t = arguments[s], t != null)
|
@@ -3742,14 +3753,14 @@ var St = Object.prototype.hasOwnProperty, fo = Object.prototype.toString, Br = O
|
|
3742
3753
|
r = $r(a, n), i = $r(t, n), a !== i && (c && i && (Hr(i) || (o = Yr(i))) ? (o ? (o = !1, l = r && Yr(r) ? r : []) : l = r && Hr(r) ? r : {}, qr(a, { name: n, newValue: e(c, l, i) })) : typeof i < "u" && qr(a, { name: n, newValue: i }));
|
3743
3754
|
return a;
|
3744
3755
|
};
|
3745
|
-
const Vr = /* @__PURE__ */ Ue(
|
3756
|
+
const Vr = /* @__PURE__ */ Ue(Ou);
|
3746
3757
|
function On(e) {
|
3747
3758
|
if (typeof e != "object" || e === null)
|
3748
3759
|
return !1;
|
3749
3760
|
const t = Object.getPrototypeOf(e);
|
3750
3761
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
3751
3762
|
}
|
3752
|
-
function
|
3763
|
+
function zu() {
|
3753
3764
|
const e = [], t = { run: n, use: r };
|
3754
3765
|
return t;
|
3755
3766
|
function n(...i) {
|
@@ -3767,7 +3778,7 @@ function Ou() {
|
|
3767
3778
|
}
|
3768
3779
|
for (; ++p < i.length; )
|
3769
3780
|
(u[p] === null || u[p] === void 0) && (u[p] = i[p]);
|
3770
|
-
i = u, c ?
|
3781
|
+
i = u, c ? Lu(c, a)(...u) : l(null, ...u);
|
3771
3782
|
}
|
3772
3783
|
}
|
3773
3784
|
function r(i) {
|
@@ -3778,7 +3789,7 @@ function Ou() {
|
|
3778
3789
|
return e.push(i), t;
|
3779
3790
|
}
|
3780
3791
|
}
|
3781
|
-
function
|
3792
|
+
function Lu(e, t) {
|
3782
3793
|
let n;
|
3783
3794
|
return r;
|
3784
3795
|
function r(...l) {
|
@@ -3805,11 +3816,11 @@ function zu(e, t) {
|
|
3805
3816
|
i(null, l);
|
3806
3817
|
}
|
3807
3818
|
}
|
3808
|
-
const
|
3819
|
+
const Pu = go().freeze(), ho = {}.hasOwnProperty;
|
3809
3820
|
function go() {
|
3810
|
-
const e =
|
3821
|
+
const e = zu(), t = [];
|
3811
3822
|
let n = {}, r, i = -1;
|
3812
|
-
return o.data = l, o.Parser = void 0, o.Compiler = void 0, o.freeze = a, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync =
|
3823
|
+
return o.data = l, o.Parser = void 0, o.Compiler = void 0, o.freeze = a, o.attachers = t, o.use = s, o.parse = u, o.stringify = c, o.run = p, o.runSync = m, o.process = f, o.processSync = I, o;
|
3813
3824
|
function o() {
|
3814
3825
|
const b = go();
|
3815
3826
|
let S = -1;
|
@@ -3918,7 +3929,7 @@ function go() {
|
|
3918
3929
|
_(y);
|
3919
3930
|
else {
|
3920
3931
|
const Q = o.stringify(A, U);
|
3921
|
-
Q == null || (
|
3932
|
+
Q == null || (_u(Q) ? U.value = Q : U.result = Q), _(y, U);
|
3922
3933
|
}
|
3923
3934
|
});
|
3924
3935
|
function _(y, A) {
|
@@ -3926,7 +3937,7 @@ function go() {
|
|
3926
3937
|
}
|
3927
3938
|
}
|
3928
3939
|
}
|
3929
|
-
function
|
3940
|
+
function I(b) {
|
3930
3941
|
let S;
|
3931
3942
|
o.freeze(), hn("processSync", o.Parser), gn("processSync", o.Compiler);
|
3932
3943
|
const w = et(b);
|
@@ -3943,9 +3954,9 @@ function Wr(e, t) {
|
|
3943
3954
|
// Classes’ prototype methods are not enumerable, so we check if some value
|
3944
3955
|
// exists in the prototype.
|
3945
3956
|
// type-coverage:ignore-next-line
|
3946
|
-
(
|
3957
|
+
(Fu(e.prototype) || t in e.prototype);
|
3947
3958
|
}
|
3948
|
-
function
|
3959
|
+
function Fu(e) {
|
3949
3960
|
let t;
|
3950
3961
|
for (t in e)
|
3951
3962
|
if (ho.call(e, t))
|
@@ -3977,21 +3988,21 @@ function Gr(e, t, n) {
|
|
3977
3988
|
);
|
3978
3989
|
}
|
3979
3990
|
function et(e) {
|
3980
|
-
return
|
3991
|
+
return Ru(e) ? e : new po(e);
|
3981
3992
|
}
|
3982
|
-
function
|
3993
|
+
function Ru(e) {
|
3983
3994
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
3984
3995
|
}
|
3985
|
-
function
|
3996
|
+
function _u(e) {
|
3986
3997
|
return typeof e == "string" || co(e);
|
3987
3998
|
}
|
3988
|
-
const
|
3989
|
-
function
|
3990
|
-
const n = t ||
|
3999
|
+
const Uu = {};
|
4000
|
+
function Bu(e, t) {
|
4001
|
+
const n = t || Uu, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
3991
4002
|
return mo(e, r, i);
|
3992
4003
|
}
|
3993
4004
|
function mo(e, t, n) {
|
3994
|
-
if (
|
4005
|
+
if (Qu(e)) {
|
3995
4006
|
if ("value" in e)
|
3996
4007
|
return e.type === "html" && !n ? "" : e.value;
|
3997
4008
|
if (t && "alt" in e && e.alt)
|
@@ -4008,7 +4019,7 @@ function Xr(e, t, n) {
|
|
4008
4019
|
r[i] = mo(e[i], t, n);
|
4009
4020
|
return r.join("");
|
4010
4021
|
}
|
4011
|
-
function
|
4022
|
+
function Qu(e) {
|
4012
4023
|
return !!(e && typeof e == "object");
|
4013
4024
|
}
|
4014
4025
|
function ke(e, t, n, r) {
|
@@ -4020,18 +4031,18 @@ function ke(e, t, n, r) {
|
|
4020
4031
|
for (n && e.splice(t, n); o < r.length; )
|
4021
4032
|
l = r.slice(o, o + 1e4), l.unshift(t, 0), e.splice(...l), o += 1e4, t += 1e4;
|
4022
4033
|
}
|
4023
|
-
function
|
4034
|
+
function Me(e, t) {
|
4024
4035
|
return e.length > 0 ? (ke(e, e.length, 0, t), e) : t;
|
4025
4036
|
}
|
4026
4037
|
const Kr = {}.hasOwnProperty;
|
4027
|
-
function
|
4038
|
+
function Yu(e) {
|
4028
4039
|
const t = {};
|
4029
4040
|
let n = -1;
|
4030
4041
|
for (; ++n < e.length; )
|
4031
|
-
|
4042
|
+
Hu(t, e[n]);
|
4032
4043
|
return t;
|
4033
4044
|
}
|
4034
|
-
function
|
4045
|
+
function Hu(e, t) {
|
4035
4046
|
let n;
|
4036
4047
|
for (n in t) {
|
4037
4048
|
const i = (Kr.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
@@ -4040,7 +4051,7 @@ function Yu(e, t) {
|
|
4040
4051
|
for (l in o) {
|
4041
4052
|
Kr.call(i, l) || (i[l] = []);
|
4042
4053
|
const a = o[l];
|
4043
|
-
|
4054
|
+
qu(
|
4044
4055
|
// @ts-expect-error Looks like a list.
|
4045
4056
|
i[l],
|
4046
4057
|
Array.isArray(a) ? a : a ? [a] : []
|
@@ -4048,14 +4059,14 @@ function Yu(e, t) {
|
|
4048
4059
|
}
|
4049
4060
|
}
|
4050
4061
|
}
|
4051
|
-
function
|
4062
|
+
function qu(e, t) {
|
4052
4063
|
let n = -1;
|
4053
4064
|
const r = [];
|
4054
4065
|
for (; ++n < t.length; )
|
4055
4066
|
(t[n].add === "after" ? e : r).push(t[n]);
|
4056
4067
|
ke(e, 0, 0, r);
|
4057
4068
|
}
|
4058
|
-
const
|
4069
|
+
const $u = /[!-\/:-@\[-`\{-~\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]/, Te = Oe(/[A-Za-z]/), me = Oe(/[\dA-Za-z]/), Vu = Oe(/[#-'*+\--9=?A-Z^-~]/);
|
4059
4070
|
function zn(e) {
|
4060
4071
|
return (
|
4061
4072
|
// Special whitespace codes (which have negative values), C0 and Control
|
@@ -4063,7 +4074,7 @@ function zn(e) {
|
|
4063
4074
|
e !== null && (e < 32 || e === 127)
|
4064
4075
|
);
|
4065
4076
|
}
|
4066
|
-
const Ln = Oe(/\d/),
|
4077
|
+
const Ln = Oe(/\d/), Wu = Oe(/[\dA-Fa-f]/), Zu = Oe(/[!-/:-@[-`{-~]/);
|
4067
4078
|
function R(e) {
|
4068
4079
|
return e !== null && e < -2;
|
4069
4080
|
}
|
@@ -4073,7 +4084,7 @@ function de(e) {
|
|
4073
4084
|
function Z(e) {
|
4074
4085
|
return e === -2 || e === -1 || e === 32;
|
4075
4086
|
}
|
4076
|
-
const
|
4087
|
+
const Gu = Oe($u), Xu = Oe(/\s/);
|
4077
4088
|
function Oe(e) {
|
4078
4089
|
return t;
|
4079
4090
|
function t(n) {
|
@@ -4091,10 +4102,10 @@ function ee(e, t, n, r) {
|
|
4091
4102
|
return Z(s) && o++ < i ? (e.consume(s), a) : (e.exit(n), t(s));
|
4092
4103
|
}
|
4093
4104
|
}
|
4094
|
-
const
|
4095
|
-
tokenize:
|
4105
|
+
const Ku = {
|
4106
|
+
tokenize: Ju
|
4096
4107
|
};
|
4097
|
-
function
|
4108
|
+
function Ju(e) {
|
4098
4109
|
const t = e.attempt(
|
4099
4110
|
this.parser.constructs.contentInitial,
|
4100
4111
|
r,
|
@@ -4127,12 +4138,12 @@ function Ku(e) {
|
|
4127
4138
|
return R(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
4128
4139
|
}
|
4129
4140
|
}
|
4130
|
-
const
|
4131
|
-
tokenize: es
|
4132
|
-
}, Jr = {
|
4141
|
+
const es = {
|
4133
4142
|
tokenize: ts
|
4143
|
+
}, Jr = {
|
4144
|
+
tokenize: ns
|
4134
4145
|
};
|
4135
|
-
function
|
4146
|
+
function ts(e) {
|
4136
4147
|
const t = this, n = [];
|
4137
4148
|
let r = 0, i, o, l;
|
4138
4149
|
return a;
|
@@ -4175,7 +4186,7 @@ function es(e) {
|
|
4175
4186
|
if (!i)
|
4176
4187
|
return m(j);
|
4177
4188
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
4178
|
-
return
|
4189
|
+
return I(j);
|
4179
4190
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
4180
4191
|
}
|
4181
4192
|
return t.containerState = {}, e.check(
|
@@ -4188,19 +4199,19 @@ function es(e) {
|
|
4188
4199
|
return i && v(), w(r), m(j);
|
4189
4200
|
}
|
4190
4201
|
function p(j) {
|
4191
|
-
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset,
|
4202
|
+
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, I(j);
|
4192
4203
|
}
|
4193
4204
|
function m(j) {
|
4194
4205
|
return t.containerState = {}, e.attempt(
|
4195
4206
|
Jr,
|
4196
4207
|
f,
|
4197
|
-
|
4208
|
+
I
|
4198
4209
|
)(j);
|
4199
4210
|
}
|
4200
4211
|
function f(j) {
|
4201
4212
|
return r++, n.push([t.currentConstruct, t.containerState]), m(j);
|
4202
4213
|
}
|
4203
|
-
function
|
4214
|
+
function I(j) {
|
4204
4215
|
if (j === null) {
|
4205
4216
|
i && v(), w(0), e.consume(j);
|
4206
4217
|
return;
|
@@ -4262,7 +4273,7 @@ function es(e) {
|
|
4262
4273
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
4263
4274
|
}
|
4264
4275
|
}
|
4265
|
-
function
|
4276
|
+
function ns(e, t, n) {
|
4266
4277
|
return ee(
|
4267
4278
|
e,
|
4268
4279
|
e.attempt(this.parser.constructs.document, t, n),
|
@@ -4271,9 +4282,9 @@ function ts(e, t, n) {
|
|
4271
4282
|
);
|
4272
4283
|
}
|
4273
4284
|
function ei(e) {
|
4274
|
-
if (e === null || de(e) ||
|
4285
|
+
if (e === null || de(e) || Xu(e))
|
4275
4286
|
return 1;
|
4276
|
-
if (
|
4287
|
+
if (Gu(e))
|
4277
4288
|
return 2;
|
4278
4289
|
}
|
4279
4290
|
function Gn(e, t, n) {
|
@@ -4287,10 +4298,10 @@ function Gn(e, t, n) {
|
|
4287
4298
|
}
|
4288
4299
|
const Pn = {
|
4289
4300
|
name: "attention",
|
4290
|
-
tokenize:
|
4291
|
-
resolveAll:
|
4301
|
+
tokenize: is,
|
4302
|
+
resolveAll: rs
|
4292
4303
|
};
|
4293
|
-
function
|
4304
|
+
function rs(e, t) {
|
4294
4305
|
let n = -1, r, i, o, l, a, s, u, c;
|
4295
4306
|
for (; ++n < e.length; )
|
4296
4307
|
if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
|
@@ -4317,27 +4328,27 @@ function ns(e, t) {
|
|
4317
4328
|
type: s > 1 ? "strong" : "emphasis",
|
4318
4329
|
start: Object.assign({}, l.start),
|
4319
4330
|
end: Object.assign({}, a.end)
|
4320
|
-
}, e[r][1].end = Object.assign({}, l.start), e[n][1].start = Object.assign({}, a.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u =
|
4331
|
+
}, e[r][1].end = Object.assign({}, l.start), e[n][1].start = Object.assign({}, a.end), u = [], e[r][1].end.offset - e[r][1].start.offset && (u = Me(u, [
|
4321
4332
|
["enter", e[r][1], t],
|
4322
4333
|
["exit", e[r][1], t]
|
4323
|
-
])), u =
|
4334
|
+
])), u = Me(u, [
|
4324
4335
|
["enter", i, t],
|
4325
4336
|
["enter", l, t],
|
4326
4337
|
["exit", l, t],
|
4327
4338
|
["enter", o, t]
|
4328
|
-
]), u =
|
4339
|
+
]), u = Me(
|
4329
4340
|
u,
|
4330
4341
|
Gn(
|
4331
4342
|
t.parser.constructs.insideSpan.null,
|
4332
4343
|
e.slice(r + 1, n),
|
4333
4344
|
t
|
4334
4345
|
)
|
4335
|
-
), u =
|
4346
|
+
), u = Me(u, [
|
4336
4347
|
["exit", o, t],
|
4337
4348
|
["enter", a, t],
|
4338
4349
|
["exit", a, t],
|
4339
4350
|
["exit", i, t]
|
4340
|
-
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u =
|
4351
|
+
]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, u = Me(u, [
|
4341
4352
|
["enter", e[n][1], t],
|
4342
4353
|
["exit", e[n][1], t]
|
4343
4354
|
])) : c = 0, ke(e, r - 1, n - r + 3, u), n = r + u.length - c - 2;
|
@@ -4348,7 +4359,7 @@ function ns(e, t) {
|
|
4348
4359
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
4349
4360
|
return e;
|
4350
4361
|
}
|
4351
|
-
function
|
4362
|
+
function is(e, t) {
|
4352
4363
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ei(r);
|
4353
4364
|
let o;
|
4354
4365
|
return l;
|
@@ -4365,18 +4376,18 @@ function rs(e, t) {
|
|
4365
4376
|
function ti(e, t) {
|
4366
4377
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
4367
4378
|
}
|
4368
|
-
const
|
4379
|
+
const os = {
|
4369
4380
|
name: "autolink",
|
4370
|
-
tokenize:
|
4381
|
+
tokenize: ls
|
4371
4382
|
};
|
4372
|
-
function
|
4383
|
+
function ls(e, t, n) {
|
4373
4384
|
let r = 0;
|
4374
4385
|
return i;
|
4375
4386
|
function i(f) {
|
4376
4387
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
|
4377
4388
|
}
|
4378
4389
|
function o(f) {
|
4379
|
-
return
|
4390
|
+
return Te(f) ? (e.consume(f), l) : u(f);
|
4380
4391
|
}
|
4381
4392
|
function l(f) {
|
4382
4393
|
return f === 43 || f === 45 || f === 46 || me(f) ? (r = 1, a(f)) : u(f);
|
@@ -4388,7 +4399,7 @@ function os(e, t, n) {
|
|
4388
4399
|
return f === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(f), e.exit("autolinkMarker"), e.exit("autolink"), t) : f === null || f === 32 || f === 60 || zn(f) ? n(f) : (e.consume(f), s);
|
4389
4400
|
}
|
4390
4401
|
function u(f) {
|
4391
|
-
return f === 64 ? (e.consume(f), c) :
|
4402
|
+
return f === 64 ? (e.consume(f), c) : Vu(f) ? (e.consume(f), u) : n(f);
|
4392
4403
|
}
|
4393
4404
|
function c(f) {
|
4394
4405
|
return me(f) ? p(f) : n(f);
|
@@ -4398,17 +4409,17 @@ function os(e, t, n) {
|
|
4398
4409
|
}
|
4399
4410
|
function m(f) {
|
4400
4411
|
if ((f === 45 || me(f)) && r++ < 63) {
|
4401
|
-
const
|
4402
|
-
return e.consume(f),
|
4412
|
+
const I = f === 45 ? m : p;
|
4413
|
+
return e.consume(f), I;
|
4403
4414
|
}
|
4404
4415
|
return n(f);
|
4405
4416
|
}
|
4406
4417
|
}
|
4407
4418
|
const Yt = {
|
4408
|
-
tokenize:
|
4419
|
+
tokenize: as,
|
4409
4420
|
partial: !0
|
4410
4421
|
};
|
4411
|
-
function
|
4422
|
+
function as(e, t, n) {
|
4412
4423
|
return r;
|
4413
4424
|
function r(o) {
|
4414
4425
|
return Z(o) ? ee(e, i, "linePrefix")(o) : i(o);
|
@@ -4419,13 +4430,13 @@ function ls(e, t, n) {
|
|
4419
4430
|
}
|
4420
4431
|
const yo = {
|
4421
4432
|
name: "blockQuote",
|
4422
|
-
tokenize:
|
4433
|
+
tokenize: us,
|
4423
4434
|
continuation: {
|
4424
|
-
tokenize:
|
4435
|
+
tokenize: ss
|
4425
4436
|
},
|
4426
|
-
exit:
|
4437
|
+
exit: cs
|
4427
4438
|
};
|
4428
|
-
function
|
4439
|
+
function us(e, t, n) {
|
4429
4440
|
const r = this;
|
4430
4441
|
return i;
|
4431
4442
|
function i(l) {
|
@@ -4441,7 +4452,7 @@ function as(e, t, n) {
|
|
4441
4452
|
return Z(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
4442
4453
|
}
|
4443
4454
|
}
|
4444
|
-
function
|
4455
|
+
function ss(e, t, n) {
|
4445
4456
|
const r = this;
|
4446
4457
|
return i;
|
4447
4458
|
function i(l) {
|
@@ -4456,20 +4467,20 @@ function us(e, t, n) {
|
|
4456
4467
|
return e.attempt(yo, t, n)(l);
|
4457
4468
|
}
|
4458
4469
|
}
|
4459
|
-
function
|
4470
|
+
function cs(e) {
|
4460
4471
|
e.exit("blockQuote");
|
4461
4472
|
}
|
4462
4473
|
const Mo = {
|
4463
4474
|
name: "characterEscape",
|
4464
|
-
tokenize:
|
4475
|
+
tokenize: ps
|
4465
4476
|
};
|
4466
|
-
function
|
4477
|
+
function ps(e, t, n) {
|
4467
4478
|
return r;
|
4468
4479
|
function r(o) {
|
4469
4480
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
4470
4481
|
}
|
4471
4482
|
function i(o) {
|
4472
|
-
return
|
4483
|
+
return Zu(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
4473
4484
|
}
|
4474
4485
|
}
|
4475
4486
|
const ni = document.createElement("i");
|
@@ -4481,9 +4492,9 @@ function Xn(e) {
|
|
4481
4492
|
}
|
4482
4493
|
const xo = {
|
4483
4494
|
name: "characterReference",
|
4484
|
-
tokenize:
|
4495
|
+
tokenize: fs
|
4485
4496
|
};
|
4486
|
-
function
|
4497
|
+
function fs(e, t, n) {
|
4487
4498
|
const r = this;
|
4488
4499
|
let i = 0, o, l;
|
4489
4500
|
return a;
|
@@ -4494,7 +4505,7 @@ function ps(e, t, n) {
|
|
4494
4505
|
return p === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(p), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), o = 31, l = me, c(p));
|
4495
4506
|
}
|
4496
4507
|
function u(p) {
|
4497
|
-
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
4508
|
+
return p === 88 || p === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(p), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = Wu, c) : (e.enter("characterReferenceValue"), o = 7, l = Ln, c(p));
|
4498
4509
|
}
|
4499
4510
|
function c(p) {
|
4500
4511
|
if (p === 59 && i) {
|
@@ -4505,14 +4516,14 @@ function ps(e, t, n) {
|
|
4505
4516
|
}
|
4506
4517
|
}
|
4507
4518
|
const ri = {
|
4508
|
-
tokenize:
|
4519
|
+
tokenize: hs,
|
4509
4520
|
partial: !0
|
4510
4521
|
}, ii = {
|
4511
4522
|
name: "codeFenced",
|
4512
|
-
tokenize:
|
4523
|
+
tokenize: ds,
|
4513
4524
|
concrete: !0
|
4514
4525
|
};
|
4515
|
-
function
|
4526
|
+
function ds(e, t, n) {
|
4516
4527
|
const r = this, i = {
|
4517
4528
|
tokenize: _,
|
4518
4529
|
partial: !0
|
@@ -4540,10 +4551,10 @@ function fs(e, t, n) {
|
|
4540
4551
|
function f(y) {
|
4541
4552
|
return y === null || R(y) ? p(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
4542
4553
|
contentType: "string"
|
4543
|
-
}),
|
4554
|
+
}), I(y));
|
4544
4555
|
}
|
4545
|
-
function
|
4546
|
-
return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(y)) : y === 96 && y === a ? n(y) : (e.consume(y),
|
4556
|
+
function I(y) {
|
4557
|
+
return y === null || R(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), p(y)) : y === 96 && y === a ? n(y) : (e.consume(y), I);
|
4547
4558
|
}
|
4548
4559
|
function b(y) {
|
4549
4560
|
return e.attempt(i, B, S)(y);
|
@@ -4593,7 +4604,7 @@ function fs(e, t, n) {
|
|
4593
4604
|
}
|
4594
4605
|
}
|
4595
4606
|
}
|
4596
|
-
function
|
4607
|
+
function hs(e, t, n) {
|
4597
4608
|
const r = this;
|
4598
4609
|
return i;
|
4599
4610
|
function i(l) {
|
@@ -4605,12 +4616,12 @@ function ds(e, t, n) {
|
|
4605
4616
|
}
|
4606
4617
|
const yn = {
|
4607
4618
|
name: "codeIndented",
|
4608
|
-
tokenize:
|
4609
|
-
},
|
4610
|
-
tokenize:
|
4619
|
+
tokenize: ms
|
4620
|
+
}, gs = {
|
4621
|
+
tokenize: ys,
|
4611
4622
|
partial: !0
|
4612
4623
|
};
|
4613
|
-
function
|
4624
|
+
function ms(e, t, n) {
|
4614
4625
|
const r = this;
|
4615
4626
|
return i;
|
4616
4627
|
function i(u) {
|
@@ -4621,7 +4632,7 @@ function gs(e, t, n) {
|
|
4621
4632
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? l(u) : n(u);
|
4622
4633
|
}
|
4623
4634
|
function l(u) {
|
4624
|
-
return u === null ? s(u) : R(u) ? e.attempt(
|
4635
|
+
return u === null ? s(u) : R(u) ? e.attempt(gs, l, s)(u) : (e.enter("codeFlowValue"), a(u));
|
4625
4636
|
}
|
4626
4637
|
function a(u) {
|
4627
4638
|
return u === null || R(u) ? (e.exit("codeFlowValue"), l(u)) : (e.consume(u), a);
|
@@ -4630,7 +4641,7 @@ function gs(e, t, n) {
|
|
4630
4641
|
return e.exit("codeIndented"), t(u);
|
4631
4642
|
}
|
4632
4643
|
}
|
4633
|
-
function
|
4644
|
+
function ys(e, t, n) {
|
4634
4645
|
const r = this;
|
4635
4646
|
return i;
|
4636
4647
|
function i(l) {
|
@@ -4641,13 +4652,13 @@ function ms(e, t, n) {
|
|
4641
4652
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : R(l) ? i(l) : n(l);
|
4642
4653
|
}
|
4643
4654
|
}
|
4644
|
-
const
|
4655
|
+
const Ms = {
|
4645
4656
|
name: "codeText",
|
4646
|
-
tokenize:
|
4647
|
-
resolve:
|
4648
|
-
previous:
|
4657
|
+
tokenize: ws,
|
4658
|
+
resolve: xs,
|
4659
|
+
previous: bs
|
4649
4660
|
};
|
4650
|
-
function
|
4661
|
+
function xs(e) {
|
4651
4662
|
let t = e.length - 4, n = 3, r, i;
|
4652
4663
|
if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
|
4653
4664
|
for (r = n; ++r < t; )
|
@@ -4660,10 +4671,10 @@ function Ms(e) {
|
|
4660
4671
|
i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
|
4661
4672
|
return e;
|
4662
4673
|
}
|
4663
|
-
function
|
4674
|
+
function bs(e) {
|
4664
4675
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
4665
4676
|
}
|
4666
|
-
function
|
4677
|
+
function ws(e, t, n) {
|
4667
4678
|
let r = 0, i, o;
|
4668
4679
|
return l;
|
4669
4680
|
function l(p) {
|
@@ -4692,7 +4703,7 @@ function bo(e) {
|
|
4692
4703
|
for (; ++o < s.length && s[o][1].type !== "content"; )
|
4693
4704
|
s[o][1].type === "chunkText" && (s[o][1]._isInFirstContentOfListItem = !0, o++);
|
4694
4705
|
if (r[0] === "enter")
|
4695
|
-
r[1].contentType && (Object.assign(t,
|
4706
|
+
r[1].contentType && (Object.assign(t, Ds(e, n)), n = t[n], u = !0);
|
4696
4707
|
else if (r[1]._container) {
|
4697
4708
|
for (o = n, i = void 0; o-- && (l = e[o], l[1].type === "lineEnding" || l[1].type === "lineEndingBlank"); )
|
4698
4709
|
l[0] === "enter" && (i && (e[i][1].type = "lineEndingBlank"), l[1].type = "lineEnding", i = o);
|
@@ -4701,11 +4712,11 @@ function bo(e) {
|
|
4701
4712
|
}
|
4702
4713
|
return !u;
|
4703
4714
|
}
|
4704
|
-
function
|
4715
|
+
function Ds(e, t) {
|
4705
4716
|
const n = e[t][1], r = e[t][2];
|
4706
4717
|
let i = t - 1;
|
4707
4718
|
const o = [], l = n._tokenizer || r.parser[n.contentType](n.start), a = l.events, s = [], u = {};
|
4708
|
-
let c, p, m = -1, f = n,
|
4719
|
+
let c, p, m = -1, f = n, I = 0, b = 0;
|
4709
4720
|
const S = [b];
|
4710
4721
|
for (; f; ) {
|
4711
4722
|
for (; e[++i][1] !== f; )
|
@@ -4720,20 +4731,20 @@ function ws(e, t) {
|
|
4720
4731
|
s.unshift([v, v + w.length - 1]), ke(e, v, 2, w);
|
4721
4732
|
}
|
4722
4733
|
for (m = -1; ++m < s.length; )
|
4723
|
-
u[
|
4734
|
+
u[I + s[m][0]] = I + s[m][1], I += s[m][1] - s[m][0] - 1;
|
4724
4735
|
return u;
|
4725
4736
|
}
|
4726
|
-
const
|
4727
|
-
tokenize: Is,
|
4728
|
-
resolve: Ts
|
4729
|
-
}, Ns = {
|
4737
|
+
const Ns = {
|
4730
4738
|
tokenize: ks,
|
4739
|
+
resolve: Ts
|
4740
|
+
}, Is = {
|
4741
|
+
tokenize: vs,
|
4731
4742
|
partial: !0
|
4732
4743
|
};
|
4733
4744
|
function Ts(e) {
|
4734
4745
|
return bo(e), e;
|
4735
4746
|
}
|
4736
|
-
function
|
4747
|
+
function ks(e, t) {
|
4737
4748
|
let n;
|
4738
4749
|
return r;
|
4739
4750
|
function r(a) {
|
@@ -4743,7 +4754,7 @@ function Is(e, t) {
|
|
4743
4754
|
}
|
4744
4755
|
function i(a) {
|
4745
4756
|
return a === null ? o(a) : R(a) ? e.check(
|
4746
|
-
|
4757
|
+
Is,
|
4747
4758
|
l,
|
4748
4759
|
o
|
4749
4760
|
)(a) : (e.consume(a), i);
|
@@ -4758,7 +4769,7 @@ function Is(e, t) {
|
|
4758
4769
|
}), n = n.next, i;
|
4759
4770
|
}
|
4760
4771
|
}
|
4761
|
-
function
|
4772
|
+
function vs(e, t, n) {
|
4762
4773
|
const r = this;
|
4763
4774
|
return i;
|
4764
4775
|
function i(l) {
|
@@ -4786,9 +4797,9 @@ function wo(e, t, n, r, i, o, l, a, s) {
|
|
4786
4797
|
}), f(w));
|
4787
4798
|
}
|
4788
4799
|
function f(w) {
|
4789
|
-
return w === 62 ? (e.exit("chunkString"), e.exit(a), m(w)) : w === null || w === 60 || R(w) ? n(w) : (e.consume(w), w === 92 ?
|
4800
|
+
return w === 62 ? (e.exit("chunkString"), e.exit(a), m(w)) : w === null || w === 60 || R(w) ? n(w) : (e.consume(w), w === 92 ? I : f);
|
4790
4801
|
}
|
4791
|
-
function
|
4802
|
+
function I(w) {
|
4792
4803
|
return w === 60 || w === 62 || w === 92 ? (e.consume(w), f) : f(w);
|
4793
4804
|
}
|
4794
4805
|
function b(w) {
|
@@ -4857,14 +4868,14 @@ function lt(e, t) {
|
|
4857
4868
|
function Qe(e) {
|
4858
4869
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
4859
4870
|
}
|
4860
|
-
const
|
4871
|
+
const js = {
|
4861
4872
|
name: "definition",
|
4862
|
-
tokenize:
|
4863
|
-
},
|
4864
|
-
tokenize:
|
4873
|
+
tokenize: Ss
|
4874
|
+
}, Es = {
|
4875
|
+
tokenize: Cs,
|
4865
4876
|
partial: !0
|
4866
4877
|
};
|
4867
|
-
function
|
4878
|
+
function Ss(e, t, n) {
|
4868
4879
|
const r = this;
|
4869
4880
|
let i;
|
4870
4881
|
return o;
|
@@ -4905,7 +4916,7 @@ function Es(e, t, n) {
|
|
4905
4916
|
)(f);
|
4906
4917
|
}
|
4907
4918
|
function c(f) {
|
4908
|
-
return e.attempt(
|
4919
|
+
return e.attempt(Es, p, p)(f);
|
4909
4920
|
}
|
4910
4921
|
function p(f) {
|
4911
4922
|
return Z(f) ? ee(e, m, "whitespace")(f) : m(f);
|
@@ -4914,7 +4925,7 @@ function Es(e, t, n) {
|
|
4914
4925
|
return f === null || R(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
|
4915
4926
|
}
|
4916
4927
|
}
|
4917
|
-
function
|
4928
|
+
function Cs(e, t, n) {
|
4918
4929
|
return r;
|
4919
4930
|
function r(a) {
|
4920
4931
|
return de(a) ? lt(e, i)(a) : n(a);
|
@@ -4936,11 +4947,11 @@ function Ss(e, t, n) {
|
|
4936
4947
|
return a === null || R(a) ? t(a) : n(a);
|
4937
4948
|
}
|
4938
4949
|
}
|
4939
|
-
const
|
4950
|
+
const As = {
|
4940
4951
|
name: "hardBreakEscape",
|
4941
|
-
tokenize:
|
4952
|
+
tokenize: Os
|
4942
4953
|
};
|
4943
|
-
function
|
4954
|
+
function Os(e, t, n) {
|
4944
4955
|
return r;
|
4945
4956
|
function r(o) {
|
4946
4957
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
@@ -4949,12 +4960,12 @@ function As(e, t, n) {
|
|
4949
4960
|
return R(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
|
4950
4961
|
}
|
4951
4962
|
}
|
4952
|
-
const
|
4963
|
+
const zs = {
|
4953
4964
|
name: "headingAtx",
|
4954
|
-
tokenize:
|
4955
|
-
resolve:
|
4965
|
+
tokenize: Ps,
|
4966
|
+
resolve: Ls
|
4956
4967
|
};
|
4957
|
-
function
|
4968
|
+
function Ls(e, t) {
|
4958
4969
|
let n = e.length - 2, r = 3, i, o;
|
4959
4970
|
return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
|
4960
4971
|
type: "atxHeadingText",
|
@@ -4972,7 +4983,7 @@ function zs(e, t) {
|
|
4972
4983
|
["exit", i, t]
|
4973
4984
|
])), e;
|
4974
4985
|
}
|
4975
|
-
function
|
4986
|
+
function Ps(e, t, n) {
|
4976
4987
|
let r = 0;
|
4977
4988
|
return i;
|
4978
4989
|
function i(c) {
|
@@ -4994,7 +5005,7 @@ function Ls(e, t, n) {
|
|
4994
5005
|
return c === null || c === 35 || de(c) ? (e.exit("atxHeadingText"), a(c)) : (e.consume(c), u);
|
4995
5006
|
}
|
4996
5007
|
}
|
4997
|
-
const
|
5008
|
+
const Fs = [
|
4998
5009
|
"address",
|
4999
5010
|
"article",
|
5000
5011
|
"aside",
|
@@ -5057,25 +5068,25 @@ const Ps = [
|
|
5057
5068
|
"tr",
|
5058
5069
|
"track",
|
5059
5070
|
"ul"
|
5060
|
-
], oi = ["pre", "script", "style", "textarea"],
|
5071
|
+
], oi = ["pre", "script", "style", "textarea"], Rs = {
|
5061
5072
|
name: "htmlFlow",
|
5062
|
-
tokenize:
|
5063
|
-
resolveTo:
|
5073
|
+
tokenize: Qs,
|
5074
|
+
resolveTo: Bs,
|
5064
5075
|
concrete: !0
|
5065
|
-
}, Rs = {
|
5066
|
-
tokenize: Ys,
|
5067
|
-
partial: !0
|
5068
5076
|
}, _s = {
|
5069
|
-
tokenize:
|
5077
|
+
tokenize: Hs,
|
5078
|
+
partial: !0
|
5079
|
+
}, Us = {
|
5080
|
+
tokenize: Ys,
|
5070
5081
|
partial: !0
|
5071
5082
|
};
|
5072
|
-
function
|
5083
|
+
function Bs(e) {
|
5073
5084
|
let t = e.length;
|
5074
5085
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
5075
5086
|
;
|
5076
5087
|
return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
|
5077
5088
|
}
|
5078
|
-
function
|
5089
|
+
function Qs(e, t, n) {
|
5079
5090
|
const r = this;
|
5080
5091
|
let i, o, l, a, s;
|
5081
5092
|
return u;
|
@@ -5086,25 +5097,25 @@ function Bs(e, t, n) {
|
|
5086
5097
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(h), p;
|
5087
5098
|
}
|
5088
5099
|
function p(h) {
|
5089
|
-
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) :
|
5100
|
+
return h === 33 ? (e.consume(h), m) : h === 47 ? (e.consume(h), o = !0, b) : h === 63 ? (e.consume(h), i = 3, r.interrupt ? t : d) : Te(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
|
5090
5101
|
}
|
5091
5102
|
function m(h) {
|
5092
|
-
return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0,
|
5103
|
+
return h === 45 ? (e.consume(h), i = 2, f) : h === 91 ? (e.consume(h), i = 5, a = 0, I) : Te(h) ? (e.consume(h), i = 4, r.interrupt ? t : d) : n(h);
|
5093
5104
|
}
|
5094
5105
|
function f(h) {
|
5095
5106
|
return h === 45 ? (e.consume(h), r.interrupt ? t : d) : n(h);
|
5096
5107
|
}
|
5097
|
-
function
|
5108
|
+
function I(h) {
|
5098
5109
|
const re = "CDATA[";
|
5099
|
-
return h === re.charCodeAt(a++) ? (e.consume(h), a === re.length ? r.interrupt ? t : M :
|
5110
|
+
return h === re.charCodeAt(a++) ? (e.consume(h), a === re.length ? r.interrupt ? t : M : I) : n(h);
|
5100
5111
|
}
|
5101
5112
|
function b(h) {
|
5102
|
-
return
|
5113
|
+
return Te(h) ? (e.consume(h), l = String.fromCharCode(h), S) : n(h);
|
5103
5114
|
}
|
5104
5115
|
function S(h) {
|
5105
5116
|
if (h === null || h === 47 || h === 62 || de(h)) {
|
5106
5117
|
const re = h === 47, te = l.toLowerCase();
|
5107
|
-
return !re && !o && oi.includes(te) ? (i = 1, r.interrupt ? t(h) : M(h)) :
|
5118
|
+
return !re && !o && oi.includes(te) ? (i = 1, r.interrupt ? t(h) : M(h)) : Fs.includes(l.toLowerCase()) ? (i = 6, re ? (e.consume(h), w) : r.interrupt ? t(h) : M(h)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(h) : o ? v(h) : j(h));
|
5108
5119
|
}
|
5109
5120
|
return h === 45 || me(h) ? (e.consume(h), l += String.fromCharCode(h), S) : n(h);
|
5110
5121
|
}
|
@@ -5115,7 +5126,7 @@ function Bs(e, t, n) {
|
|
5115
5126
|
return Z(h) ? (e.consume(h), v) : q(h);
|
5116
5127
|
}
|
5117
5128
|
function j(h) {
|
5118
|
-
return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 ||
|
5129
|
+
return h === 47 ? (e.consume(h), q) : h === 58 || h === 95 || Te(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), j) : q(h);
|
5119
5130
|
}
|
5120
5131
|
function B(h) {
|
5121
5132
|
return h === 45 || h === 46 || h === 58 || h === 95 || me(h) ? (e.consume(h), B) : _(h);
|
@@ -5143,14 +5154,14 @@ function Bs(e, t, n) {
|
|
5143
5154
|
}
|
5144
5155
|
function M(h) {
|
5145
5156
|
return h === 45 && i === 2 ? (e.consume(h), F) : h === 60 && i === 1 ? (e.consume(h), Y) : h === 62 && i === 4 ? (e.consume(h), ne) : h === 63 && i === 3 ? (e.consume(h), d) : h === 93 && i === 5 ? (e.consume(h), X) : R(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
5146
|
-
|
5157
|
+
_s,
|
5147
5158
|
le,
|
5148
5159
|
N
|
5149
5160
|
)(h)) : h === null || R(h) ? (e.exit("htmlFlowData"), N(h)) : (e.consume(h), M);
|
5150
5161
|
}
|
5151
5162
|
function N(h) {
|
5152
5163
|
return e.check(
|
5153
|
-
|
5164
|
+
Us,
|
5154
5165
|
C,
|
5155
5166
|
le
|
5156
5167
|
)(h);
|
@@ -5172,7 +5183,7 @@ function Bs(e, t, n) {
|
|
5172
5183
|
const re = l.toLowerCase();
|
5173
5184
|
return oi.includes(re) ? (e.consume(h), ne) : M(h);
|
5174
5185
|
}
|
5175
|
-
return
|
5186
|
+
return Te(h) && l.length < 8 ? (e.consume(h), l += String.fromCharCode(h), V) : M(h);
|
5176
5187
|
}
|
5177
5188
|
function X(h) {
|
5178
5189
|
return h === 93 ? (e.consume(h), d) : M(h);
|
@@ -5187,7 +5198,7 @@ function Bs(e, t, n) {
|
|
5187
5198
|
return e.exit("htmlFlow"), t(h);
|
5188
5199
|
}
|
5189
5200
|
}
|
5190
|
-
function
|
5201
|
+
function Ys(e, t, n) {
|
5191
5202
|
const r = this;
|
5192
5203
|
return i;
|
5193
5204
|
function i(l) {
|
@@ -5197,17 +5208,17 @@ function Qs(e, t, n) {
|
|
5197
5208
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
5198
5209
|
}
|
5199
5210
|
}
|
5200
|
-
function
|
5211
|
+
function Hs(e, t, n) {
|
5201
5212
|
return r;
|
5202
5213
|
function r(i) {
|
5203
5214
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Yt, t, n);
|
5204
5215
|
}
|
5205
5216
|
}
|
5206
|
-
const
|
5217
|
+
const qs = {
|
5207
5218
|
name: "htmlText",
|
5208
|
-
tokenize:
|
5219
|
+
tokenize: $s
|
5209
5220
|
};
|
5210
|
-
function
|
5221
|
+
function $s(e, t, n) {
|
5211
5222
|
const r = this;
|
5212
5223
|
let i, o, l;
|
5213
5224
|
return a;
|
@@ -5215,10 +5226,10 @@ function qs(e, t, n) {
|
|
5215
5226
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(d), s;
|
5216
5227
|
}
|
5217
5228
|
function s(d) {
|
5218
|
-
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), j) :
|
5229
|
+
return d === 33 ? (e.consume(d), u) : d === 47 ? (e.consume(d), _) : d === 63 ? (e.consume(d), j) : Te(d) ? (e.consume(d), U) : n(d);
|
5219
5230
|
}
|
5220
5231
|
function u(d) {
|
5221
|
-
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0,
|
5232
|
+
return d === 45 ? (e.consume(d), c) : d === 91 ? (e.consume(d), o = 0, I) : Te(d) ? (e.consume(d), v) : n(d);
|
5222
5233
|
}
|
5223
5234
|
function c(d) {
|
5224
5235
|
return d === 45 ? (e.consume(d), f) : n(d);
|
@@ -5232,9 +5243,9 @@ function qs(e, t, n) {
|
|
5232
5243
|
function f(d) {
|
5233
5244
|
return d === 62 ? F(d) : d === 45 ? m(d) : p(d);
|
5234
5245
|
}
|
5235
|
-
function
|
5246
|
+
function I(d) {
|
5236
5247
|
const ne = "CDATA[";
|
5237
|
-
return d === ne.charCodeAt(o++) ? (e.consume(d), o === ne.length ? b :
|
5248
|
+
return d === ne.charCodeAt(o++) ? (e.consume(d), o === ne.length ? b : I) : n(d);
|
5238
5249
|
}
|
5239
5250
|
function b(d) {
|
5240
5251
|
return d === null ? n(d) : d === 93 ? (e.consume(d), S) : R(d) ? (l = b, Y(d)) : (e.consume(d), b);
|
@@ -5255,7 +5266,7 @@ function qs(e, t, n) {
|
|
5255
5266
|
return d === 62 ? F(d) : j(d);
|
5256
5267
|
}
|
5257
5268
|
function _(d) {
|
5258
|
-
return
|
5269
|
+
return Te(d) ? (e.consume(d), y) : n(d);
|
5259
5270
|
}
|
5260
5271
|
function y(d) {
|
5261
5272
|
return d === 45 || me(d) ? (e.consume(d), y) : A(d);
|
@@ -5267,7 +5278,7 @@ function qs(e, t, n) {
|
|
5267
5278
|
return d === 45 || me(d) ? (e.consume(d), U) : d === 47 || d === 62 || de(d) ? Q(d) : n(d);
|
5268
5279
|
}
|
5269
5280
|
function Q(d) {
|
5270
|
-
return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 ||
|
5281
|
+
return d === 47 ? (e.consume(d), F) : d === 58 || d === 95 || Te(d) ? (e.consume(d), q) : R(d) ? (l = Q, Y(d)) : Z(d) ? (e.consume(d), Q) : F(d);
|
5271
5282
|
}
|
5272
5283
|
function q(d) {
|
5273
5284
|
return d === 45 || d === 46 || d === 58 || d === 95 || me(d) ? (e.consume(d), q) : E(d);
|
@@ -5307,17 +5318,17 @@ function qs(e, t, n) {
|
|
5307
5318
|
}
|
5308
5319
|
const Kn = {
|
5309
5320
|
name: "labelEnd",
|
5310
|
-
tokenize:
|
5311
|
-
resolveTo:
|
5312
|
-
resolveAll:
|
5313
|
-
}, $s = {
|
5314
|
-
tokenize: Ks
|
5321
|
+
tokenize: Ks,
|
5322
|
+
resolveTo: Xs,
|
5323
|
+
resolveAll: Gs
|
5315
5324
|
}, Vs = {
|
5316
5325
|
tokenize: Js
|
5317
5326
|
}, Ws = {
|
5318
5327
|
tokenize: ec
|
5328
|
+
}, Zs = {
|
5329
|
+
tokenize: tc
|
5319
5330
|
};
|
5320
|
-
function
|
5331
|
+
function Gs(e) {
|
5321
5332
|
let t = -1;
|
5322
5333
|
for (; ++t < e.length; ) {
|
5323
5334
|
const n = e[t][1];
|
@@ -5325,7 +5336,7 @@ function Zs(e) {
|
|
5325
5336
|
}
|
5326
5337
|
return e;
|
5327
5338
|
}
|
5328
|
-
function
|
5339
|
+
function Xs(e, t) {
|
5329
5340
|
let n = e.length, r = 0, i, o, l, a;
|
5330
5341
|
for (; n--; )
|
5331
5342
|
if (i = e[n][1], o) {
|
@@ -5355,21 +5366,21 @@ function Gs(e, t) {
|
|
5355
5366
|
return a = [
|
5356
5367
|
["enter", s, t],
|
5357
5368
|
["enter", u, t]
|
5358
|
-
], a =
|
5369
|
+
], a = Me(a, e.slice(o + 1, o + r + 3)), a = Me(a, [["enter", c, t]]), a = Me(
|
5359
5370
|
a,
|
5360
5371
|
Gn(
|
5361
5372
|
t.parser.constructs.insideSpan.null,
|
5362
5373
|
e.slice(o + r + 4, l - 3),
|
5363
5374
|
t
|
5364
5375
|
)
|
5365
|
-
), a =
|
5376
|
+
), a = Me(a, [
|
5366
5377
|
["exit", c, t],
|
5367
5378
|
e[l - 2],
|
5368
5379
|
e[l - 1],
|
5369
5380
|
["exit", u, t]
|
5370
|
-
]), a =
|
5381
|
+
]), a = Me(a, e.slice(l + 1)), a = Me(a, [["exit", s, t]]), ke(e, o, e.length, a), e;
|
5371
5382
|
}
|
5372
|
-
function
|
5383
|
+
function Ks(e, t, n) {
|
5373
5384
|
const r = this;
|
5374
5385
|
let i = r.events.length, o, l;
|
5375
5386
|
for (; i--; )
|
@@ -5390,18 +5401,18 @@ function Xs(e, t, n) {
|
|
5390
5401
|
}
|
5391
5402
|
function s(m) {
|
5392
5403
|
return m === 40 ? e.attempt(
|
5393
|
-
|
5404
|
+
Vs,
|
5394
5405
|
c,
|
5395
5406
|
l ? c : p
|
5396
5407
|
)(m) : m === 91 ? e.attempt(
|
5397
|
-
|
5408
|
+
Ws,
|
5398
5409
|
c,
|
5399
5410
|
l ? u : p
|
5400
5411
|
)(m) : l ? c(m) : p(m);
|
5401
5412
|
}
|
5402
5413
|
function u(m) {
|
5403
5414
|
return e.attempt(
|
5404
|
-
|
5415
|
+
Zs,
|
5405
5416
|
c,
|
5406
5417
|
p
|
5407
5418
|
)(m);
|
@@ -5413,7 +5424,7 @@ function Xs(e, t, n) {
|
|
5413
5424
|
return o._balanced = !0, n(m);
|
5414
5425
|
}
|
5415
5426
|
}
|
5416
|
-
function
|
5427
|
+
function Js(e, t, n) {
|
5417
5428
|
return r;
|
5418
5429
|
function r(p) {
|
5419
5430
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), i;
|
@@ -5457,7 +5468,7 @@ function Ks(e, t, n) {
|
|
5457
5468
|
return p === 41 ? (e.enter("resourceMarker"), e.consume(p), e.exit("resourceMarker"), e.exit("resource"), t) : n(p);
|
5458
5469
|
}
|
5459
5470
|
}
|
5460
|
-
function
|
5471
|
+
function ec(e, t, n) {
|
5461
5472
|
const r = this;
|
5462
5473
|
return i;
|
5463
5474
|
function i(a) {
|
@@ -5482,7 +5493,7 @@ function Js(e, t, n) {
|
|
5482
5493
|
return n(a);
|
5483
5494
|
}
|
5484
5495
|
}
|
5485
|
-
function
|
5496
|
+
function tc(e, t, n) {
|
5486
5497
|
return r;
|
5487
5498
|
function r(o) {
|
5488
5499
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
@@ -5491,12 +5502,12 @@ function ec(e, t, n) {
|
|
5491
5502
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
|
5492
5503
|
}
|
5493
5504
|
}
|
5494
|
-
const
|
5505
|
+
const nc = {
|
5495
5506
|
name: "labelStartImage",
|
5496
|
-
tokenize:
|
5507
|
+
tokenize: rc,
|
5497
5508
|
resolveAll: Kn.resolveAll
|
5498
5509
|
};
|
5499
|
-
function
|
5510
|
+
function rc(e, t, n) {
|
5500
5511
|
const r = this;
|
5501
5512
|
return i;
|
5502
5513
|
function i(a) {
|
@@ -5509,12 +5520,12 @@ function nc(e, t, n) {
|
|
5509
5520
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
|
5510
5521
|
}
|
5511
5522
|
}
|
5512
|
-
const
|
5523
|
+
const ic = {
|
5513
5524
|
name: "labelStartLink",
|
5514
|
-
tokenize:
|
5525
|
+
tokenize: oc,
|
5515
5526
|
resolveAll: Kn.resolveAll
|
5516
5527
|
};
|
5517
|
-
function
|
5528
|
+
function oc(e, t, n) {
|
5518
5529
|
const r = this;
|
5519
5530
|
return i;
|
5520
5531
|
function i(l) {
|
@@ -5526,9 +5537,9 @@ function ic(e, t, n) {
|
|
5526
5537
|
}
|
5527
5538
|
const Mn = {
|
5528
5539
|
name: "lineEnding",
|
5529
|
-
tokenize:
|
5540
|
+
tokenize: lc
|
5530
5541
|
};
|
5531
|
-
function
|
5542
|
+
function lc(e, t) {
|
5532
5543
|
return n;
|
5533
5544
|
function n(r) {
|
5534
5545
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ee(e, t, "linePrefix");
|
@@ -5536,9 +5547,9 @@ function oc(e, t) {
|
|
5536
5547
|
}
|
5537
5548
|
const Ct = {
|
5538
5549
|
name: "thematicBreak",
|
5539
|
-
tokenize:
|
5550
|
+
tokenize: ac
|
5540
5551
|
};
|
5541
|
-
function
|
5552
|
+
function ac(e, t, n) {
|
5542
5553
|
let r = 0, i;
|
5543
5554
|
return o;
|
5544
5555
|
function o(u) {
|
@@ -5556,28 +5567,28 @@ function lc(e, t, n) {
|
|
5556
5567
|
}
|
5557
5568
|
const fe = {
|
5558
5569
|
name: "list",
|
5559
|
-
tokenize:
|
5570
|
+
tokenize: cc,
|
5560
5571
|
continuation: {
|
5561
|
-
tokenize:
|
5572
|
+
tokenize: pc
|
5562
5573
|
},
|
5563
|
-
exit:
|
5564
|
-
}, ac = {
|
5565
|
-
tokenize: dc,
|
5566
|
-
partial: !0
|
5574
|
+
exit: dc
|
5567
5575
|
}, uc = {
|
5568
|
-
tokenize:
|
5576
|
+
tokenize: hc,
|
5577
|
+
partial: !0
|
5578
|
+
}, sc = {
|
5579
|
+
tokenize: fc,
|
5569
5580
|
partial: !0
|
5570
5581
|
};
|
5571
|
-
function
|
5582
|
+
function cc(e, t, n) {
|
5572
5583
|
const r = this, i = r.events[r.events.length - 1];
|
5573
5584
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
5574
5585
|
return a;
|
5575
5586
|
function a(f) {
|
5576
|
-
const
|
5577
|
-
if (
|
5578
|
-
if (r.containerState.type || (r.containerState.type =
|
5587
|
+
const I = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
|
5588
|
+
if (I === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : Ln(f)) {
|
5589
|
+
if (r.containerState.type || (r.containerState.type = I, e.enter(I, {
|
5579
5590
|
_container: !0
|
5580
|
-
})),
|
5591
|
+
})), I === "listUnordered")
|
5581
5592
|
return e.enter("listItemPrefix"), f === 42 || f === 45 ? e.check(Ct, n, u)(f) : u(f);
|
5582
5593
|
if (!r.interrupt || f === 49)
|
5583
5594
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), s(f);
|
@@ -5593,7 +5604,7 @@ function sc(e, t, n) {
|
|
5593
5604
|
// Can’t be empty when interrupting.
|
5594
5605
|
r.interrupt ? n : c,
|
5595
5606
|
e.attempt(
|
5596
|
-
|
5607
|
+
uc,
|
5597
5608
|
m,
|
5598
5609
|
p
|
5599
5610
|
)
|
@@ -5609,7 +5620,7 @@ function sc(e, t, n) {
|
|
5609
5620
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f);
|
5610
5621
|
}
|
5611
5622
|
}
|
5612
|
-
function
|
5623
|
+
function pc(e, t, n) {
|
5613
5624
|
const r = this;
|
5614
5625
|
return r.containerState._closeFlow = void 0, e.check(Yt, i, o);
|
5615
5626
|
function i(a) {
|
@@ -5621,7 +5632,7 @@ function cc(e, t, n) {
|
|
5621
5632
|
)(a);
|
5622
5633
|
}
|
5623
5634
|
function o(a) {
|
5624
|
-
return r.containerState.furtherBlankLines || !Z(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
5635
|
+
return r.containerState.furtherBlankLines || !Z(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(sc, t, l)(a));
|
5625
5636
|
}
|
5626
5637
|
function l(a) {
|
5627
5638
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, ee(
|
@@ -5632,7 +5643,7 @@ function cc(e, t, n) {
|
|
5632
5643
|
)(a);
|
5633
5644
|
}
|
5634
5645
|
}
|
5635
|
-
function
|
5646
|
+
function fc(e, t, n) {
|
5636
5647
|
const r = this;
|
5637
5648
|
return ee(
|
5638
5649
|
e,
|
@@ -5645,10 +5656,10 @@ function pc(e, t, n) {
|
|
5645
5656
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
|
5646
5657
|
}
|
5647
5658
|
}
|
5648
|
-
function
|
5659
|
+
function dc(e) {
|
5649
5660
|
e.exit(this.containerState.type);
|
5650
5661
|
}
|
5651
|
-
function
|
5662
|
+
function hc(e, t, n) {
|
5652
5663
|
const r = this;
|
5653
5664
|
return ee(
|
5654
5665
|
e,
|
@@ -5663,10 +5674,10 @@ function dc(e, t, n) {
|
|
5663
5674
|
}
|
5664
5675
|
const li = {
|
5665
5676
|
name: "setextUnderline",
|
5666
|
-
tokenize:
|
5667
|
-
resolveTo:
|
5677
|
+
tokenize: mc,
|
5678
|
+
resolveTo: gc
|
5668
5679
|
};
|
5669
|
-
function
|
5680
|
+
function gc(e, t) {
|
5670
5681
|
let n = e.length, r, i, o;
|
5671
5682
|
for (; n--; )
|
5672
5683
|
if (e[n][0] === "enter") {
|
@@ -5684,7 +5695,7 @@ function hc(e, t) {
|
|
5684
5695
|
};
|
5685
5696
|
return e[i][1].type = "setextHeadingText", o ? (e.splice(i, 0, ["enter", l, t]), e.splice(o + 1, 0, ["exit", e[r][1], t]), e[r][1].end = Object.assign({}, e[o][1].end)) : e[r][1] = l, e.push(["exit", l, t]), e;
|
5686
5697
|
}
|
5687
|
-
function
|
5698
|
+
function mc(e, t, n) {
|
5688
5699
|
const r = this;
|
5689
5700
|
let i;
|
5690
5701
|
return o;
|
@@ -5707,10 +5718,10 @@ function gc(e, t, n) {
|
|
5707
5718
|
return u === null || R(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
5708
5719
|
}
|
5709
5720
|
}
|
5710
|
-
const
|
5711
|
-
tokenize:
|
5721
|
+
const yc = {
|
5722
|
+
tokenize: Mc
|
5712
5723
|
};
|
5713
|
-
function
|
5724
|
+
function Mc(e) {
|
5714
5725
|
const t = this, n = e.attempt(
|
5715
5726
|
// Try to parse a blank line.
|
5716
5727
|
Yt,
|
@@ -5724,7 +5735,7 @@ function yc(e) {
|
|
5724
5735
|
e.attempt(
|
5725
5736
|
this.parser.constructs.flow,
|
5726
5737
|
i,
|
5727
|
-
e.attempt(
|
5738
|
+
e.attempt(Ns, i)
|
5728
5739
|
),
|
5729
5740
|
"linePrefix"
|
5730
5741
|
)
|
@@ -5746,14 +5757,14 @@ function yc(e) {
|
|
5746
5757
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
|
5747
5758
|
}
|
5748
5759
|
}
|
5749
|
-
const
|
5750
|
-
resolveAll:
|
5751
|
-
},
|
5752
|
-
function
|
5760
|
+
const xc = {
|
5761
|
+
resolveAll: To()
|
5762
|
+
}, bc = Io("string"), wc = Io("text");
|
5763
|
+
function Io(e) {
|
5753
5764
|
return {
|
5754
5765
|
tokenize: t,
|
5755
|
-
resolveAll:
|
5756
|
-
e === "text" ?
|
5766
|
+
resolveAll: To(
|
5767
|
+
e === "text" ? Dc : void 0
|
5757
5768
|
)
|
5758
5769
|
};
|
5759
5770
|
function t(n) {
|
@@ -5787,7 +5798,7 @@ function To(e) {
|
|
5787
5798
|
}
|
5788
5799
|
}
|
5789
5800
|
}
|
5790
|
-
function
|
5801
|
+
function To(e) {
|
5791
5802
|
return t;
|
5792
5803
|
function t(n, r) {
|
5793
5804
|
let i = -1, o;
|
@@ -5796,7 +5807,7 @@ function Io(e) {
|
|
5796
5807
|
return e ? e(n, r) : n;
|
5797
5808
|
}
|
5798
5809
|
}
|
5799
|
-
function
|
5810
|
+
function Dc(e, t) {
|
5800
5811
|
let n = 0;
|
5801
5812
|
for (; ++n <= e.length; )
|
5802
5813
|
if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
|
@@ -5840,7 +5851,7 @@ function wc(e, t) {
|
|
5840
5851
|
}
|
5841
5852
|
return e;
|
5842
5853
|
}
|
5843
|
-
function
|
5854
|
+
function Nc(e, t, n) {
|
5844
5855
|
let r = Object.assign(
|
5845
5856
|
n ? Object.assign({}, n) : {
|
5846
5857
|
line: 1,
|
@@ -5871,22 +5882,22 @@ function Dc(e, t, n) {
|
|
5871
5882
|
parser: e,
|
5872
5883
|
sliceStream: f,
|
5873
5884
|
sliceSerialize: m,
|
5874
|
-
now:
|
5885
|
+
now: I,
|
5875
5886
|
defineSkip: b,
|
5876
5887
|
write: p
|
5877
5888
|
};
|
5878
5889
|
let c = t.tokenize.call(u, s);
|
5879
5890
|
return t.resolveAll && o.push(t), u;
|
5880
5891
|
function p(E) {
|
5881
|
-
return l =
|
5892
|
+
return l = Me(l, E), S(), l[l.length - 1] !== null ? [] : (U(t, 0), u.events = Gn(o, u.events, u), u.events);
|
5882
5893
|
}
|
5883
5894
|
function m(E, M) {
|
5884
5895
|
return Tc(f(E), M);
|
5885
5896
|
}
|
5886
5897
|
function f(E) {
|
5887
|
-
return
|
5898
|
+
return Ic(l, E);
|
5888
5899
|
}
|
5889
|
-
function
|
5900
|
+
function I() {
|
5890
5901
|
const { line: E, column: M, offset: N, _index: C, _bufferIndex: z } = r;
|
5891
5902
|
return {
|
5892
5903
|
line: E,
|
@@ -5918,11 +5929,11 @@ function Dc(e, t, n) {
|
|
5918
5929
|
}
|
5919
5930
|
function j(E, M) {
|
5920
5931
|
const N = M || {};
|
5921
|
-
return N.type = E, N.start =
|
5932
|
+
return N.type = E, N.start = I(), u.events.push(["enter", N, u]), a.push(N), N;
|
5922
5933
|
}
|
5923
5934
|
function B(E) {
|
5924
5935
|
const M = a.pop();
|
5925
|
-
return M.end =
|
5936
|
+
return M.end = I(), u.events.push(["exit", M, u]), M;
|
5926
5937
|
}
|
5927
5938
|
function _(E, M) {
|
5928
5939
|
U(E, M.from);
|
@@ -5984,7 +5995,7 @@ function Dc(e, t, n) {
|
|
5984
5995
|
), E.resolveTo && (u.events = E.resolveTo(u.events, u));
|
5985
5996
|
}
|
5986
5997
|
function Q() {
|
5987
|
-
const E =
|
5998
|
+
const E = I(), M = u.previous, N = u.currentConstruct, C = u.events.length, z = Array.from(a);
|
5988
5999
|
return {
|
5989
6000
|
restore: F,
|
5990
6001
|
from: C
|
@@ -5997,7 +6008,7 @@ function Dc(e, t, n) {
|
|
5997
6008
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
5998
6009
|
}
|
5999
6010
|
}
|
6000
|
-
function
|
6011
|
+
function Ic(e, t) {
|
6001
6012
|
const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
|
6002
6013
|
let l;
|
6003
6014
|
if (n === i)
|
@@ -6053,7 +6064,7 @@ function Tc(e, t) {
|
|
6053
6064
|
}
|
6054
6065
|
return r.join("");
|
6055
6066
|
}
|
6056
|
-
const
|
6067
|
+
const kc = {
|
6057
6068
|
42: fe,
|
6058
6069
|
43: fe,
|
6059
6070
|
45: fe,
|
@@ -6068,79 +6079,79 @@ const Ic = {
|
|
6068
6079
|
56: fe,
|
6069
6080
|
57: fe,
|
6070
6081
|
62: yo
|
6071
|
-
}, kc = {
|
6072
|
-
91: vs
|
6073
6082
|
}, vc = {
|
6083
|
+
91: js
|
6084
|
+
}, jc = {
|
6074
6085
|
[-2]: yn,
|
6075
6086
|
[-1]: yn,
|
6076
6087
|
32: yn
|
6077
|
-
},
|
6078
|
-
35:
|
6088
|
+
}, Ec = {
|
6089
|
+
35: zs,
|
6079
6090
|
42: Ct,
|
6080
6091
|
45: [li, Ct],
|
6081
|
-
60:
|
6092
|
+
60: Rs,
|
6082
6093
|
61: li,
|
6083
6094
|
95: Ct,
|
6084
6095
|
96: ii,
|
6085
6096
|
126: ii
|
6086
|
-
},
|
6097
|
+
}, Sc = {
|
6087
6098
|
38: xo,
|
6088
6099
|
92: Mo
|
6089
|
-
},
|
6100
|
+
}, Cc = {
|
6090
6101
|
[-5]: Mn,
|
6091
6102
|
[-4]: Mn,
|
6092
6103
|
[-3]: Mn,
|
6093
|
-
33:
|
6104
|
+
33: nc,
|
6094
6105
|
38: xo,
|
6095
6106
|
42: Pn,
|
6096
|
-
60: [
|
6097
|
-
91:
|
6098
|
-
92: [
|
6107
|
+
60: [os, qs],
|
6108
|
+
91: ic,
|
6109
|
+
92: [As, Mo],
|
6099
6110
|
93: Kn,
|
6100
6111
|
95: Pn,
|
6101
|
-
96:
|
6102
|
-
}, Cc = {
|
6103
|
-
null: [Pn, Mc]
|
6112
|
+
96: Ms
|
6104
6113
|
}, Ac = {
|
6105
|
-
null: [
|
6114
|
+
null: [Pn, xc]
|
6106
6115
|
}, Oc = {
|
6116
|
+
null: [42, 95]
|
6117
|
+
}, zc = {
|
6107
6118
|
null: []
|
6108
|
-
},
|
6119
|
+
}, Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6109
6120
|
__proto__: null,
|
6110
|
-
attentionMarkers:
|
6111
|
-
contentInitial:
|
6112
|
-
disable:
|
6113
|
-
document:
|
6114
|
-
flow:
|
6115
|
-
flowInitial:
|
6116
|
-
insideSpan:
|
6117
|
-
string:
|
6118
|
-
text:
|
6121
|
+
attentionMarkers: Oc,
|
6122
|
+
contentInitial: vc,
|
6123
|
+
disable: zc,
|
6124
|
+
document: kc,
|
6125
|
+
flow: Ec,
|
6126
|
+
flowInitial: jc,
|
6127
|
+
insideSpan: Ac,
|
6128
|
+
string: Sc,
|
6129
|
+
text: Cc
|
6119
6130
|
}, Symbol.toStringTag, { value: "Module" }));
|
6120
|
-
function
|
6131
|
+
function Pc(e) {
|
6121
6132
|
const n = (
|
6122
6133
|
/** @type {FullNormalizedExtension} */
|
6123
|
-
|
6134
|
+
Yu([Lc, ...(e || {}).extensions || []])
|
6124
6135
|
), r = {
|
6125
6136
|
defined: [],
|
6126
6137
|
lazy: {},
|
6127
6138
|
constructs: n,
|
6128
|
-
content: i(
|
6129
|
-
document: i(
|
6130
|
-
flow: i(
|
6131
|
-
string: i(
|
6132
|
-
text: i(
|
6139
|
+
content: i(Ku),
|
6140
|
+
document: i(es),
|
6141
|
+
flow: i(yc),
|
6142
|
+
string: i(bc),
|
6143
|
+
text: i(wc)
|
6133
6144
|
};
|
6134
6145
|
return r;
|
6135
6146
|
function i(o) {
|
6136
6147
|
return l;
|
6137
6148
|
function l(a) {
|
6138
|
-
return
|
6149
|
+
return Nc(r, o, a);
|
6139
6150
|
}
|
6140
6151
|
}
|
6141
6152
|
}
|
6142
6153
|
const ai = /[\0\t\n\r]/g;
|
6143
|
-
function
|
6154
|
+
function Fc() {
|
6144
6155
|
let e = 1, t = "", n = !0, r;
|
6145
6156
|
return i;
|
6146
6157
|
function i(o, l, a) {
|
@@ -6176,7 +6187,7 @@ function Pc() {
|
|
6176
6187
|
return a && (r && s.push(-5), t && s.push(t), s.push(null)), s;
|
6177
6188
|
}
|
6178
6189
|
}
|
6179
|
-
function
|
6190
|
+
function Rc(e) {
|
6180
6191
|
for (; !bo(e); )
|
6181
6192
|
;
|
6182
6193
|
return e;
|
@@ -6192,11 +6203,11 @@ function ko(e, t) {
|
|
6192
6203
|
n > 1114111 ? "�" : String.fromCharCode(n)
|
6193
6204
|
);
|
6194
6205
|
}
|
6195
|
-
const
|
6196
|
-
function
|
6197
|
-
return e.replace(
|
6206
|
+
const _c = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
6207
|
+
function Uc(e) {
|
6208
|
+
return e.replace(_c, Bc);
|
6198
6209
|
}
|
6199
|
-
function
|
6210
|
+
function Bc(e, t, n) {
|
6200
6211
|
if (t)
|
6201
6212
|
return t;
|
6202
6213
|
if (n.charCodeAt(0) === 35) {
|
@@ -6205,7 +6216,7 @@ function Uc(e, t, n) {
|
|
6205
6216
|
}
|
6206
6217
|
return Xn(n) || e;
|
6207
6218
|
}
|
6208
|
-
const vo = {}.hasOwnProperty,
|
6219
|
+
const vo = {}.hasOwnProperty, Qc = (
|
6209
6220
|
/**
|
6210
6221
|
* @type {(
|
6211
6222
|
* ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
|
@@ -6219,14 +6230,14 @@ const vo = {}.hasOwnProperty, Bc = (
|
|
6219
6230
|
* @returns {Root}
|
6220
6231
|
*/
|
6221
6232
|
function(e, t, n) {
|
6222
|
-
return typeof t != "string" && (n = t, t = void 0),
|
6223
|
-
|
6224
|
-
|
6233
|
+
return typeof t != "string" && (n = t, t = void 0), Yc(n)(
|
6234
|
+
Rc(
|
6235
|
+
Pc(n).document().write(Fc()(e, t, !0))
|
6225
6236
|
)
|
6226
6237
|
);
|
6227
6238
|
}
|
6228
6239
|
);
|
6229
|
-
function
|
6240
|
+
function Yc(e) {
|
6230
6241
|
const t = {
|
6231
6242
|
transforms: [],
|
6232
6243
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
@@ -6261,7 +6272,7 @@ function Qc(e) {
|
|
6261
6272
|
label: s,
|
6262
6273
|
link: a(Mt),
|
6263
6274
|
listItem: a(xt),
|
6264
|
-
listItemValue:
|
6275
|
+
listItemValue: I,
|
6265
6276
|
listOrdered: a(We, f),
|
6266
6277
|
listUnordered: a(We),
|
6267
6278
|
paragraph: a(ln),
|
@@ -6328,12 +6339,12 @@ function Qc(e) {
|
|
6328
6339
|
const n = {};
|
6329
6340
|
return r;
|
6330
6341
|
function r(x) {
|
6331
|
-
let
|
6342
|
+
let T = {
|
6332
6343
|
type: "root",
|
6333
6344
|
children: []
|
6334
6345
|
};
|
6335
6346
|
const O = {
|
6336
|
-
stack: [
|
6347
|
+
stack: [T],
|
6337
6348
|
tokenStack: [],
|
6338
6349
|
config: t,
|
6339
6350
|
enter: u,
|
@@ -6368,7 +6379,7 @@ function Qc(e) {
|
|
6368
6379
|
const ce = O.tokenStack[O.tokenStack.length - 1];
|
6369
6380
|
(ce[1] || ui).call(O, void 0, ce[0]);
|
6370
6381
|
}
|
6371
|
-
for (
|
6382
|
+
for (T.position = {
|
6372
6383
|
start: Se(
|
6373
6384
|
x.length > 0 ? x[0][1].start : {
|
6374
6385
|
line: 1,
|
@@ -6384,11 +6395,11 @@ function Qc(e) {
|
|
6384
6395
|
}
|
6385
6396
|
)
|
6386
6397
|
}, K = -1; ++K < t.transforms.length; )
|
6387
|
-
|
6388
|
-
return
|
6398
|
+
T = t.transforms[K](T) || T;
|
6399
|
+
return T;
|
6389
6400
|
}
|
6390
|
-
function i(x,
|
6391
|
-
let $ =
|
6401
|
+
function i(x, T, O) {
|
6402
|
+
let $ = T - 1, K = -1, ce = !1, Ne, ae, Ze, Ge;
|
6392
6403
|
for (; ++$ <= O; ) {
|
6393
6404
|
const ie = x[$];
|
6394
6405
|
if (ie[1].type === "listUnordered" || ie[1].type === "listOrdered" || ie[1].type === "blockQuote" ? (ie[0] === "enter" ? K++ : K--, Ge = void 0) : ie[1].type === "lineEndingBlank" ? ie[0] === "enter" && (Ne && !Ge && !K && !Ze && (Ze = $), Ge = void 0) : ie[1].type === "linePrefix" || ie[1].type === "listItemValue" || ie[1].type === "listItemMarker" || ie[1].type === "listItemPrefix" || ie[1].type === "listItemPrefixWhitespace" || (Ge = void 0), !K && ie[0] === "enter" && ie[1].type === "listItemPrefix" || K === -1 && ie[0] === "exit" && (ie[1].type === "listUnordered" || ie[1].type === "listOrdered")) {
|
@@ -6417,18 +6428,18 @@ function Qc(e) {
|
|
6417
6428
|
}, x.splice($, 0, ["enter", Ne, ie[2]]), $++, O++, Ze = void 0, Ge = !0);
|
6418
6429
|
}
|
6419
6430
|
}
|
6420
|
-
return x[
|
6431
|
+
return x[T][1]._spread = ce, O;
|
6421
6432
|
}
|
6422
|
-
function o(x,
|
6423
|
-
n[x] =
|
6433
|
+
function o(x, T) {
|
6434
|
+
n[x] = T;
|
6424
6435
|
}
|
6425
6436
|
function l(x) {
|
6426
6437
|
return n[x];
|
6427
6438
|
}
|
6428
|
-
function a(x,
|
6439
|
+
function a(x, T) {
|
6429
6440
|
return O;
|
6430
6441
|
function O($) {
|
6431
|
-
u.call(this, x($), $),
|
6442
|
+
u.call(this, x($), $), T && T.call(this, $);
|
6432
6443
|
}
|
6433
6444
|
}
|
6434
6445
|
function s() {
|
@@ -6437,21 +6448,21 @@ function Qc(e) {
|
|
6437
6448
|
children: []
|
6438
6449
|
});
|
6439
6450
|
}
|
6440
|
-
function u(x,
|
6441
|
-
return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([
|
6442
|
-
start: Se(
|
6451
|
+
function u(x, T, O) {
|
6452
|
+
return this.stack[this.stack.length - 1].children.push(x), this.stack.push(x), this.tokenStack.push([T, O]), x.position = {
|
6453
|
+
start: Se(T.start)
|
6443
6454
|
}, x;
|
6444
6455
|
}
|
6445
6456
|
function c(x) {
|
6446
|
-
return
|
6447
|
-
function
|
6457
|
+
return T;
|
6458
|
+
function T(O) {
|
6448
6459
|
x && x.call(this, O), p.call(this, O);
|
6449
6460
|
}
|
6450
6461
|
}
|
6451
|
-
function p(x,
|
6462
|
+
function p(x, T) {
|
6452
6463
|
const O = this.stack.pop(), $ = this.tokenStack.pop();
|
6453
6464
|
if ($)
|
6454
|
-
$[0].type !== x.type && (
|
6465
|
+
$[0].type !== x.type && (T ? T.call(this, x, $[0]) : ($[1] || ui).call(this, x, $[0]));
|
6455
6466
|
else
|
6456
6467
|
throw new Error(
|
6457
6468
|
"Cannot close `" + x.type + "` (" + ot({
|
@@ -6462,107 +6473,107 @@ function Qc(e) {
|
|
6462
6473
|
return O.position.end = Se(x.end), O;
|
6463
6474
|
}
|
6464
6475
|
function m() {
|
6465
|
-
return
|
6476
|
+
return Bu(this.stack.pop());
|
6466
6477
|
}
|
6467
6478
|
function f() {
|
6468
6479
|
o("expectingFirstListItemValue", !0);
|
6469
6480
|
}
|
6470
|
-
function
|
6481
|
+
function I(x) {
|
6471
6482
|
if (l("expectingFirstListItemValue")) {
|
6472
|
-
const
|
6473
|
-
|
6483
|
+
const T = this.stack[this.stack.length - 2];
|
6484
|
+
T.start = Number.parseInt(this.sliceSerialize(x), 10), o("expectingFirstListItemValue");
|
6474
6485
|
}
|
6475
6486
|
}
|
6476
6487
|
function b() {
|
6477
|
-
const x = this.resume(),
|
6478
|
-
|
6488
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6489
|
+
T.lang = x;
|
6479
6490
|
}
|
6480
6491
|
function S() {
|
6481
|
-
const x = this.resume(),
|
6482
|
-
|
6492
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6493
|
+
T.meta = x;
|
6483
6494
|
}
|
6484
6495
|
function w() {
|
6485
6496
|
l("flowCodeInside") || (this.buffer(), o("flowCodeInside", !0));
|
6486
6497
|
}
|
6487
6498
|
function v() {
|
6488
|
-
const x = this.resume(),
|
6489
|
-
|
6499
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6500
|
+
T.value = x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), o("flowCodeInside");
|
6490
6501
|
}
|
6491
6502
|
function j() {
|
6492
|
-
const x = this.resume(),
|
6493
|
-
|
6503
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6504
|
+
T.value = x.replace(/(\r?\n|\r)$/g, "");
|
6494
6505
|
}
|
6495
6506
|
function B(x) {
|
6496
|
-
const
|
6497
|
-
O.label =
|
6507
|
+
const T = this.resume(), O = this.stack[this.stack.length - 1];
|
6508
|
+
O.label = T, O.identifier = Qe(
|
6498
6509
|
this.sliceSerialize(x)
|
6499
6510
|
).toLowerCase();
|
6500
6511
|
}
|
6501
6512
|
function _() {
|
6502
|
-
const x = this.resume(),
|
6503
|
-
|
6513
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6514
|
+
T.title = x;
|
6504
6515
|
}
|
6505
6516
|
function y() {
|
6506
|
-
const x = this.resume(),
|
6507
|
-
|
6517
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6518
|
+
T.url = x;
|
6508
6519
|
}
|
6509
6520
|
function A(x) {
|
6510
|
-
const
|
6511
|
-
if (!
|
6521
|
+
const T = this.stack[this.stack.length - 1];
|
6522
|
+
if (!T.depth) {
|
6512
6523
|
const O = this.sliceSerialize(x).length;
|
6513
|
-
|
6524
|
+
T.depth = O;
|
6514
6525
|
}
|
6515
6526
|
}
|
6516
6527
|
function U() {
|
6517
6528
|
o("setextHeadingSlurpLineEnding", !0);
|
6518
6529
|
}
|
6519
6530
|
function Q(x) {
|
6520
|
-
const
|
6521
|
-
|
6531
|
+
const T = this.stack[this.stack.length - 1];
|
6532
|
+
T.depth = this.sliceSerialize(x).charCodeAt(0) === 61 ? 1 : 2;
|
6522
6533
|
}
|
6523
6534
|
function q() {
|
6524
6535
|
o("setextHeadingSlurpLineEnding");
|
6525
6536
|
}
|
6526
6537
|
function E(x) {
|
6527
|
-
const
|
6528
|
-
let O =
|
6538
|
+
const T = this.stack[this.stack.length - 1];
|
6539
|
+
let O = T.children[T.children.length - 1];
|
6529
6540
|
(!O || O.type !== "text") && (O = bt(), O.position = {
|
6530
6541
|
start: Se(x.start)
|
6531
|
-
},
|
6542
|
+
}, T.children.push(O)), this.stack.push(O);
|
6532
6543
|
}
|
6533
6544
|
function M(x) {
|
6534
|
-
const
|
6535
|
-
|
6545
|
+
const T = this.stack.pop();
|
6546
|
+
T.value += this.sliceSerialize(x), T.position.end = Se(x.end);
|
6536
6547
|
}
|
6537
6548
|
function N(x) {
|
6538
|
-
const
|
6549
|
+
const T = this.stack[this.stack.length - 1];
|
6539
6550
|
if (l("atHardBreak")) {
|
6540
|
-
const O =
|
6551
|
+
const O = T.children[T.children.length - 1];
|
6541
6552
|
O.position.end = Se(x.end), o("atHardBreak");
|
6542
6553
|
return;
|
6543
6554
|
}
|
6544
|
-
!l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(
|
6555
|
+
!l("setextHeadingSlurpLineEnding") && t.canContainEols.includes(T.type) && (E.call(this, x), M.call(this, x));
|
6545
6556
|
}
|
6546
6557
|
function C() {
|
6547
6558
|
o("atHardBreak", !0);
|
6548
6559
|
}
|
6549
6560
|
function z() {
|
6550
|
-
const x = this.resume(),
|
6551
|
-
|
6561
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6562
|
+
T.value = x;
|
6552
6563
|
}
|
6553
6564
|
function F() {
|
6554
|
-
const x = this.resume(),
|
6555
|
-
|
6565
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6566
|
+
T.value = x;
|
6556
6567
|
}
|
6557
6568
|
function Y() {
|
6558
|
-
const x = this.resume(),
|
6559
|
-
|
6569
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6570
|
+
T.value = x;
|
6560
6571
|
}
|
6561
6572
|
function V() {
|
6562
6573
|
const x = this.stack[this.stack.length - 1];
|
6563
6574
|
if (l("inReference")) {
|
6564
|
-
const
|
6565
|
-
x.type += "Reference", x.referenceType =
|
6575
|
+
const T = l("referenceType") || "shortcut";
|
6576
|
+
x.type += "Reference", x.referenceType = T, delete x.url, delete x.title;
|
6566
6577
|
} else
|
6567
6578
|
delete x.identifier, delete x.label;
|
6568
6579
|
o("referenceType");
|
@@ -6570,31 +6581,31 @@ function Qc(e) {
|
|
6570
6581
|
function X() {
|
6571
6582
|
const x = this.stack[this.stack.length - 1];
|
6572
6583
|
if (l("inReference")) {
|
6573
|
-
const
|
6574
|
-
x.type += "Reference", x.referenceType =
|
6584
|
+
const T = l("referenceType") || "shortcut";
|
6585
|
+
x.type += "Reference", x.referenceType = T, delete x.url, delete x.title;
|
6575
6586
|
} else
|
6576
6587
|
delete x.identifier, delete x.label;
|
6577
6588
|
o("referenceType");
|
6578
6589
|
}
|
6579
6590
|
function d(x) {
|
6580
|
-
const
|
6581
|
-
O.label =
|
6591
|
+
const T = this.sliceSerialize(x), O = this.stack[this.stack.length - 2];
|
6592
|
+
O.label = Uc(T), O.identifier = Qe(T).toLowerCase();
|
6582
6593
|
}
|
6583
6594
|
function ne() {
|
6584
|
-
const x = this.stack[this.stack.length - 1],
|
6595
|
+
const x = this.stack[this.stack.length - 1], T = this.resume(), O = this.stack[this.stack.length - 1];
|
6585
6596
|
if (o("inReference", !0), O.type === "link") {
|
6586
6597
|
const $ = x.children;
|
6587
6598
|
O.children = $;
|
6588
6599
|
} else
|
6589
|
-
O.alt =
|
6600
|
+
O.alt = T;
|
6590
6601
|
}
|
6591
6602
|
function le() {
|
6592
|
-
const x = this.resume(),
|
6593
|
-
|
6603
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6604
|
+
T.url = x;
|
6594
6605
|
}
|
6595
6606
|
function h() {
|
6596
|
-
const x = this.resume(),
|
6597
|
-
|
6607
|
+
const x = this.resume(), T = this.stack[this.stack.length - 1];
|
6608
|
+
T.title = x;
|
6598
6609
|
}
|
6599
6610
|
function re() {
|
6600
6611
|
o("inReference");
|
@@ -6603,8 +6614,8 @@ function Qc(e) {
|
|
6603
6614
|
o("referenceType", "collapsed");
|
6604
6615
|
}
|
6605
6616
|
function W(x) {
|
6606
|
-
const
|
6607
|
-
O.label =
|
6617
|
+
const T = this.resume(), O = this.stack[this.stack.length - 1];
|
6618
|
+
O.label = T, O.identifier = Qe(
|
6608
6619
|
this.sliceSerialize(x)
|
6609
6620
|
).toLowerCase(), o("referenceType", "full");
|
6610
6621
|
}
|
@@ -6612,24 +6623,24 @@ function Qc(e) {
|
|
6612
6623
|
o("characterReferenceType", x.type);
|
6613
6624
|
}
|
6614
6625
|
function he(x) {
|
6615
|
-
const
|
6626
|
+
const T = this.sliceSerialize(x), O = l("characterReferenceType");
|
6616
6627
|
let $;
|
6617
6628
|
O ? ($ = ko(
|
6618
|
-
|
6629
|
+
T,
|
6619
6630
|
O === "characterReferenceMarkerNumeric" ? 10 : 16
|
6620
|
-
), o("characterReferenceType")) : $ = Xn(
|
6631
|
+
), o("characterReferenceType")) : $ = Xn(T);
|
6621
6632
|
const K = this.stack.pop();
|
6622
6633
|
K.value += $, K.position.end = Se(x.end);
|
6623
6634
|
}
|
6624
6635
|
function ve(x) {
|
6625
6636
|
M.call(this, x);
|
6626
|
-
const
|
6627
|
-
|
6637
|
+
const T = this.stack[this.stack.length - 1];
|
6638
|
+
T.url = this.sliceSerialize(x);
|
6628
6639
|
}
|
6629
6640
|
function Ee(x) {
|
6630
6641
|
M.call(this, x);
|
6631
|
-
const
|
6632
|
-
|
6642
|
+
const T = this.stack[this.stack.length - 1];
|
6643
|
+
T.url = "mailto:" + this.sliceSerialize(x);
|
6633
6644
|
}
|
6634
6645
|
function Ve() {
|
6635
6646
|
return {
|
@@ -6752,10 +6763,10 @@ function jo(e, t) {
|
|
6752
6763
|
let n = -1;
|
6753
6764
|
for (; ++n < t.length; ) {
|
6754
6765
|
const r = t[n];
|
6755
|
-
Array.isArray(r) ? jo(e, r) :
|
6766
|
+
Array.isArray(r) ? jo(e, r) : Hc(e, r);
|
6756
6767
|
}
|
6757
6768
|
}
|
6758
|
-
function
|
6769
|
+
function Hc(e, t) {
|
6759
6770
|
let n;
|
6760
6771
|
for (n in t)
|
6761
6772
|
if (vo.call(t, n)) {
|
@@ -6787,13 +6798,13 @@ function ui(e, t) {
|
|
6787
6798
|
}) + ") is still open"
|
6788
6799
|
);
|
6789
6800
|
}
|
6790
|
-
function
|
6801
|
+
function qc(e) {
|
6791
6802
|
Object.assign(this, { Parser: (n) => {
|
6792
6803
|
const r = (
|
6793
6804
|
/** @type {Options} */
|
6794
6805
|
this.data("settings")
|
6795
6806
|
);
|
6796
|
-
return
|
6807
|
+
return Qc(
|
6797
6808
|
n,
|
6798
6809
|
Object.assign({}, r, e, {
|
6799
6810
|
// Note: these options are not in the readme.
|
@@ -6805,7 +6816,7 @@ function Hc(e) {
|
|
6805
6816
|
);
|
6806
6817
|
} });
|
6807
6818
|
}
|
6808
|
-
function
|
6819
|
+
function $c(e, t) {
|
6809
6820
|
const n = {
|
6810
6821
|
type: "element",
|
6811
6822
|
tagName: "blockquote",
|
@@ -6814,12 +6825,12 @@ function qc(e, t) {
|
|
6814
6825
|
};
|
6815
6826
|
return e.patch(t, n), e.applyData(t, n);
|
6816
6827
|
}
|
6817
|
-
function
|
6828
|
+
function Vc(e, t) {
|
6818
6829
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
6819
6830
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
6820
6831
|
` }];
|
6821
6832
|
}
|
6822
|
-
function
|
6833
|
+
function Wc(e, t) {
|
6823
6834
|
const n = t.value ? t.value + `
|
6824
6835
|
` : "", r = t.lang ? t.lang.match(/^[^ \t]+(?=[ \t]|$)/) : null, i = {};
|
6825
6836
|
r && (i.className = ["language-" + r]);
|
@@ -6831,7 +6842,7 @@ function Vc(e, t) {
|
|
6831
6842
|
};
|
6832
6843
|
return t.meta && (o.data = { meta: t.meta }), e.patch(t, o), o = e.applyData(t, o), o = { type: "element", tagName: "pre", properties: {}, children: [o] }, e.patch(t, o), o;
|
6833
6844
|
}
|
6834
|
-
function
|
6845
|
+
function Zc(e, t) {
|
6835
6846
|
const n = {
|
6836
6847
|
type: "element",
|
6837
6848
|
tagName: "del",
|
@@ -6840,7 +6851,7 @@ function Wc(e, t) {
|
|
6840
6851
|
};
|
6841
6852
|
return e.patch(t, n), e.applyData(t, n);
|
6842
6853
|
}
|
6843
|
-
function
|
6854
|
+
function Gc(e, t) {
|
6844
6855
|
const n = {
|
6845
6856
|
type: "element",
|
6846
6857
|
tagName: "em",
|
@@ -6892,7 +6903,7 @@ function Eo(e, t) {
|
|
6892
6903
|
};
|
6893
6904
|
return e.patch(t, s), e.applyData(t, s);
|
6894
6905
|
}
|
6895
|
-
function
|
6906
|
+
function Xc(e, t) {
|
6896
6907
|
const n = e.footnoteById;
|
6897
6908
|
let r = 1;
|
6898
6909
|
for (; r in n; )
|
@@ -6909,7 +6920,7 @@ function Gc(e, t) {
|
|
6909
6920
|
position: t.position
|
6910
6921
|
});
|
6911
6922
|
}
|
6912
|
-
function
|
6923
|
+
function Kc(e, t) {
|
6913
6924
|
const n = {
|
6914
6925
|
type: "element",
|
6915
6926
|
tagName: "h" + t.depth,
|
@@ -6918,7 +6929,7 @@ function Xc(e, t) {
|
|
6918
6929
|
};
|
6919
6930
|
return e.patch(t, n), e.applyData(t, n);
|
6920
6931
|
}
|
6921
|
-
function
|
6932
|
+
function Jc(e, t) {
|
6922
6933
|
if (e.dangerous) {
|
6923
6934
|
const n = { type: "raw", value: t.value };
|
6924
6935
|
return e.patch(t, n), e.applyData(t, n);
|
@@ -6935,7 +6946,7 @@ function So(e, t) {
|
|
6935
6946
|
const l = i[i.length - 1];
|
6936
6947
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
6937
6948
|
}
|
6938
|
-
function
|
6949
|
+
function ep(e, t) {
|
6939
6950
|
const n = e.definition(t.identifier);
|
6940
6951
|
if (!n)
|
6941
6952
|
return So(e, t);
|
@@ -6944,13 +6955,13 @@ function Jc(e, t) {
|
|
6944
6955
|
const i = { type: "element", tagName: "img", properties: r, children: [] };
|
6945
6956
|
return e.patch(t, i), e.applyData(t, i);
|
6946
6957
|
}
|
6947
|
-
function
|
6958
|
+
function tp(e, t) {
|
6948
6959
|
const n = { src: qe(t.url) };
|
6949
6960
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
6950
6961
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
6951
6962
|
return e.patch(t, r), e.applyData(t, r);
|
6952
6963
|
}
|
6953
|
-
function
|
6964
|
+
function np(e, t) {
|
6954
6965
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
6955
6966
|
e.patch(t, n);
|
6956
6967
|
const r = {
|
@@ -6961,7 +6972,7 @@ function tp(e, t) {
|
|
6961
6972
|
};
|
6962
6973
|
return e.patch(t, r), e.applyData(t, r);
|
6963
6974
|
}
|
6964
|
-
function
|
6975
|
+
function rp(e, t) {
|
6965
6976
|
const n = e.definition(t.identifier);
|
6966
6977
|
if (!n)
|
6967
6978
|
return So(e, t);
|
@@ -6975,7 +6986,7 @@ function np(e, t) {
|
|
6975
6986
|
};
|
6976
6987
|
return e.patch(t, i), e.applyData(t, i);
|
6977
6988
|
}
|
6978
|
-
function
|
6989
|
+
function ip(e, t) {
|
6979
6990
|
const n = { href: qe(t.url) };
|
6980
6991
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
6981
6992
|
const r = {
|
@@ -6986,8 +6997,8 @@ function rp(e, t) {
|
|
6986
6997
|
};
|
6987
6998
|
return e.patch(t, r), e.applyData(t, r);
|
6988
6999
|
}
|
6989
|
-
function
|
6990
|
-
const r = e.all(t), i = n ?
|
7000
|
+
function op(e, t, n) {
|
7001
|
+
const r = e.all(t), i = n ? lp(n) : Co(t), o = {}, l = [];
|
6991
7002
|
if (typeof t.checked == "boolean") {
|
6992
7003
|
const c = r[0];
|
6993
7004
|
let p;
|
@@ -7010,7 +7021,7 @@ function ip(e, t, n) {
|
|
7010
7021
|
const u = { type: "element", tagName: "li", properties: o, children: l };
|
7011
7022
|
return e.patch(t, u), e.applyData(t, u);
|
7012
7023
|
}
|
7013
|
-
function
|
7024
|
+
function lp(e) {
|
7014
7025
|
let t = !1;
|
7015
7026
|
if (e.type === "list") {
|
7016
7027
|
t = e.spread || !1;
|
@@ -7025,7 +7036,7 @@ function Co(e) {
|
|
7025
7036
|
const t = e.spread;
|
7026
7037
|
return t ?? e.children.length > 1;
|
7027
7038
|
}
|
7028
|
-
function
|
7039
|
+
function ap(e, t) {
|
7029
7040
|
const n = {}, r = e.all(t);
|
7030
7041
|
let i = -1;
|
7031
7042
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
@@ -7043,7 +7054,7 @@ function lp(e, t) {
|
|
7043
7054
|
};
|
7044
7055
|
return e.patch(t, o), e.applyData(t, o);
|
7045
7056
|
}
|
7046
|
-
function
|
7057
|
+
function up(e, t) {
|
7047
7058
|
const n = {
|
7048
7059
|
type: "element",
|
7049
7060
|
tagName: "p",
|
@@ -7052,11 +7063,11 @@ function ap(e, t) {
|
|
7052
7063
|
};
|
7053
7064
|
return e.patch(t, n), e.applyData(t, n);
|
7054
7065
|
}
|
7055
|
-
function
|
7066
|
+
function sp(e, t) {
|
7056
7067
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
7057
7068
|
return e.patch(t, n), e.applyData(t, n);
|
7058
7069
|
}
|
7059
|
-
function
|
7070
|
+
function cp(e, t) {
|
7060
7071
|
const n = {
|
7061
7072
|
type: "element",
|
7062
7073
|
tagName: "strong",
|
@@ -7066,7 +7077,7 @@ function sp(e, t) {
|
|
7066
7077
|
return e.patch(t, n), e.applyData(t, n);
|
7067
7078
|
}
|
7068
7079
|
const Jn = Ao("start"), er = Ao("end");
|
7069
|
-
function
|
7080
|
+
function pp(e) {
|
7070
7081
|
return { start: Jn(e), end: er(e) };
|
7071
7082
|
}
|
7072
7083
|
function Ao(e) {
|
@@ -7083,7 +7094,7 @@ function Ao(e) {
|
|
7083
7094
|
};
|
7084
7095
|
}
|
7085
7096
|
}
|
7086
|
-
function
|
7097
|
+
function fp(e, t) {
|
7087
7098
|
const n = e.all(t), r = n.shift(), i = [];
|
7088
7099
|
if (r) {
|
7089
7100
|
const l = {
|
@@ -7111,15 +7122,15 @@ function pp(e, t) {
|
|
7111
7122
|
};
|
7112
7123
|
return e.patch(t, o), e.applyData(t, o);
|
7113
7124
|
}
|
7114
|
-
function
|
7125
|
+
function dp(e, t, n) {
|
7115
7126
|
const r = n ? n.children : void 0, o = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", l = n && n.type === "table" ? n.align : void 0, a = l ? l.length : t.children.length;
|
7116
7127
|
let s = -1;
|
7117
7128
|
const u = [];
|
7118
7129
|
for (; ++s < a; ) {
|
7119
7130
|
const p = t.children[s], m = {}, f = l ? l[s] : void 0;
|
7120
7131
|
f && (m.align = f);
|
7121
|
-
let
|
7122
|
-
p && (
|
7132
|
+
let I = { type: "element", tagName: o, properties: m, children: [] };
|
7133
|
+
p && (I.children = e.all(p), e.patch(p, I), I = e.applyData(t, I)), u.push(I);
|
7123
7134
|
}
|
7124
7135
|
const c = {
|
7125
7136
|
type: "element",
|
@@ -7129,7 +7140,7 @@ function fp(e, t, n) {
|
|
7129
7140
|
};
|
7130
7141
|
return e.patch(t, c), e.applyData(t, c);
|
7131
7142
|
}
|
7132
|
-
function
|
7143
|
+
function hp(e, t) {
|
7133
7144
|
const n = {
|
7134
7145
|
type: "element",
|
7135
7146
|
tagName: "td",
|
@@ -7140,7 +7151,7 @@ function dp(e, t) {
|
|
7140
7151
|
return e.patch(t, n), e.applyData(t, n);
|
7141
7152
|
}
|
7142
7153
|
const si = 9, ci = 32;
|
7143
|
-
function
|
7154
|
+
function gp(e) {
|
7144
7155
|
const t = String(e), n = /\r?\n|\r/g;
|
7145
7156
|
let r = n.exec(t), i = 0;
|
7146
7157
|
const o = [];
|
@@ -7165,11 +7176,11 @@ function pi(e, t, n) {
|
|
7165
7176
|
}
|
7166
7177
|
return i > r ? e.slice(r, i) : "";
|
7167
7178
|
}
|
7168
|
-
function
|
7169
|
-
const n = { type: "text", value:
|
7179
|
+
function mp(e, t) {
|
7180
|
+
const n = { type: "text", value: gp(String(t.value)) };
|
7170
7181
|
return e.patch(t, n), e.applyData(t, n);
|
7171
7182
|
}
|
7172
|
-
function
|
7183
|
+
function yp(e, t) {
|
7173
7184
|
const n = {
|
7174
7185
|
type: "element",
|
7175
7186
|
tagName: "hr",
|
@@ -7178,37 +7189,37 @@ function mp(e, t) {
|
|
7178
7189
|
};
|
7179
7190
|
return e.patch(t, n), e.applyData(t, n);
|
7180
7191
|
}
|
7181
|
-
const
|
7182
|
-
blockquote:
|
7183
|
-
break:
|
7184
|
-
code:
|
7185
|
-
delete:
|
7186
|
-
emphasis:
|
7192
|
+
const Mp = {
|
7193
|
+
blockquote: $c,
|
7194
|
+
break: Vc,
|
7195
|
+
code: Wc,
|
7196
|
+
delete: Zc,
|
7197
|
+
emphasis: Gc,
|
7187
7198
|
footnoteReference: Eo,
|
7188
|
-
footnote:
|
7189
|
-
heading:
|
7190
|
-
html:
|
7191
|
-
imageReference:
|
7192
|
-
image:
|
7193
|
-
inlineCode:
|
7194
|
-
linkReference:
|
7195
|
-
link:
|
7196
|
-
listItem:
|
7197
|
-
list:
|
7198
|
-
paragraph:
|
7199
|
-
root:
|
7200
|
-
strong:
|
7201
|
-
table:
|
7202
|
-
tableCell:
|
7203
|
-
tableRow:
|
7204
|
-
text:
|
7205
|
-
thematicBreak:
|
7206
|
-
toml:
|
7207
|
-
yaml:
|
7208
|
-
definition:
|
7209
|
-
footnoteDefinition:
|
7199
|
+
footnote: Xc,
|
7200
|
+
heading: Kc,
|
7201
|
+
html: Jc,
|
7202
|
+
imageReference: ep,
|
7203
|
+
image: tp,
|
7204
|
+
inlineCode: np,
|
7205
|
+
linkReference: rp,
|
7206
|
+
link: ip,
|
7207
|
+
listItem: op,
|
7208
|
+
list: ap,
|
7209
|
+
paragraph: up,
|
7210
|
+
root: sp,
|
7211
|
+
strong: cp,
|
7212
|
+
table: fp,
|
7213
|
+
tableCell: hp,
|
7214
|
+
tableRow: dp,
|
7215
|
+
text: mp,
|
7216
|
+
thematicBreak: yp,
|
7217
|
+
toml: Tt,
|
7218
|
+
yaml: Tt,
|
7219
|
+
definition: Tt,
|
7220
|
+
footnoteDefinition: Tt
|
7210
7221
|
};
|
7211
|
-
function
|
7222
|
+
function Tt() {
|
7212
7223
|
return null;
|
7213
7224
|
}
|
7214
7225
|
const Oo = (
|
@@ -7224,17 +7235,17 @@ const Oo = (
|
|
7224
7235
|
*/
|
7225
7236
|
function(e) {
|
7226
7237
|
if (e == null)
|
7227
|
-
return
|
7238
|
+
return Dp;
|
7228
7239
|
if (typeof e == "string")
|
7229
|
-
return
|
7240
|
+
return wp(e);
|
7230
7241
|
if (typeof e == "object")
|
7231
|
-
return Array.isArray(e) ?
|
7242
|
+
return Array.isArray(e) ? xp(e) : bp(e);
|
7232
7243
|
if (typeof e == "function")
|
7233
7244
|
return Ht(e);
|
7234
7245
|
throw new Error("Expected function, string, or object as test");
|
7235
7246
|
}
|
7236
7247
|
);
|
7237
|
-
function
|
7248
|
+
function xp(e) {
|
7238
7249
|
const t = [];
|
7239
7250
|
let n = -1;
|
7240
7251
|
for (; ++n < e.length; )
|
@@ -7248,7 +7259,7 @@ function Mp(e) {
|
|
7248
7259
|
return !1;
|
7249
7260
|
}
|
7250
7261
|
}
|
7251
|
-
function
|
7262
|
+
function bp(e) {
|
7252
7263
|
return Ht(t);
|
7253
7264
|
function t(n) {
|
7254
7265
|
let r;
|
@@ -7258,7 +7269,7 @@ function xp(e) {
|
|
7258
7269
|
return !0;
|
7259
7270
|
}
|
7260
7271
|
}
|
7261
|
-
function
|
7272
|
+
function wp(e) {
|
7262
7273
|
return Ht(t);
|
7263
7274
|
function t(n) {
|
7264
7275
|
return n && n.type === e;
|
@@ -7270,10 +7281,10 @@ function Ht(e) {
|
|
7270
7281
|
return !!(n && typeof n == "object" && "type" in n && e.call(this, n, ...r));
|
7271
7282
|
}
|
7272
7283
|
}
|
7273
|
-
function
|
7284
|
+
function Dp() {
|
7274
7285
|
return !0;
|
7275
7286
|
}
|
7276
|
-
const
|
7287
|
+
const Np = !0, fi = !1, Ip = "skip", Tp = (
|
7277
7288
|
/**
|
7278
7289
|
* @type {(
|
7279
7290
|
* (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &
|
@@ -7307,22 +7318,22 @@ const Dp = !0, fi = !1, Np = "skip", Tp = (
|
|
7307
7318
|
}
|
7308
7319
|
return p;
|
7309
7320
|
function p() {
|
7310
|
-
let m = [], f,
|
7311
|
-
if ((!t || i(a, s, u[u.length - 1] || null)) && (m =
|
7321
|
+
let m = [], f, I, b;
|
7322
|
+
if ((!t || i(a, s, u[u.length - 1] || null)) && (m = kp(n(a, u)), m[0] === fi))
|
7312
7323
|
return m;
|
7313
|
-
if (a.children && m[0] !==
|
7314
|
-
for (
|
7315
|
-
if (f = l(a.children[
|
7324
|
+
if (a.children && m[0] !== Ip)
|
7325
|
+
for (I = (r ? a.children.length : -1) + o, b = u.concat(a); I > -1 && I < a.children.length; ) {
|
7326
|
+
if (f = l(a.children[I], I, b)(), f[0] === fi)
|
7316
7327
|
return f;
|
7317
|
-
|
7328
|
+
I = typeof f[1] == "number" ? f[1] : I + o;
|
7318
7329
|
}
|
7319
7330
|
return m;
|
7320
7331
|
}
|
7321
7332
|
}
|
7322
7333
|
}
|
7323
7334
|
);
|
7324
|
-
function
|
7325
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
7335
|
+
function kp(e) {
|
7336
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [Np, e] : [e];
|
7326
7337
|
}
|
7327
7338
|
const tr = (
|
7328
7339
|
/**
|
@@ -7350,11 +7361,11 @@ const tr = (
|
|
7350
7361
|
}
|
7351
7362
|
}
|
7352
7363
|
);
|
7353
|
-
function
|
7364
|
+
function vp(e) {
|
7354
7365
|
return !e || !e.position || !e.position.start || !e.position.start.line || !e.position.start.column || !e.position.end || !e.position.end.line || !e.position.end.column;
|
7355
7366
|
}
|
7356
7367
|
const di = {}.hasOwnProperty;
|
7357
|
-
function
|
7368
|
+
function jp(e) {
|
7358
7369
|
const t = /* @__PURE__ */ Object.create(null);
|
7359
7370
|
if (!e || !e.type)
|
7360
7371
|
throw new Error("mdast-util-definitions expected node");
|
@@ -7371,11 +7382,11 @@ function hi(e) {
|
|
7371
7382
|
return String(e || "").toUpperCase();
|
7372
7383
|
}
|
7373
7384
|
const Rt = {}.hasOwnProperty;
|
7374
|
-
function
|
7385
|
+
function Ep(e, t) {
|
7375
7386
|
const n = t || {}, r = n.allowDangerousHtml || !1, i = {};
|
7376
7387
|
return l.dangerous = r, l.clobberPrefix = n.clobberPrefix === void 0 || n.clobberPrefix === null ? "user-content-" : n.clobberPrefix, l.footnoteLabel = n.footnoteLabel || "Footnotes", l.footnoteLabelTagName = n.footnoteLabelTagName || "h2", l.footnoteLabelProperties = n.footnoteLabelProperties || {
|
7377
7388
|
className: ["sr-only"]
|
7378
|
-
}, l.footnoteBackLabel = n.footnoteBackLabel || "Back to content", l.unknownHandler = n.unknownHandler, l.passThrough = n.passThrough, l.handlers = { ...
|
7389
|
+
}, l.footnoteBackLabel = n.footnoteBackLabel || "Back to content", l.unknownHandler = n.unknownHandler, l.passThrough = n.passThrough, l.handlers = { ...Mp, ...n.handlers }, l.definition = jp(e), l.footnoteById = i, l.footnoteOrder = [], l.footnoteCounts = {}, l.patch = Sp, l.applyData = Cp, l.one = a, l.all = s, l.wrap = Op, l.augment = o, tr(e, "footnoteDefinition", (u) => {
|
7379
7390
|
const c = String(u.identifier).toUpperCase();
|
7380
7391
|
Rt.call(i, c) || (i[c] = u);
|
7381
7392
|
}), l;
|
@@ -7391,7 +7402,7 @@ function jp(e, t) {
|
|
7391
7402
|
}
|
7392
7403
|
if (u) {
|
7393
7404
|
const p = "type" in u ? u : { position: u };
|
7394
|
-
|
7405
|
+
vp(p) || (c.position = { start: Jn(p), end: er(p) });
|
7395
7406
|
}
|
7396
7407
|
return c;
|
7397
7408
|
}
|
@@ -7410,10 +7421,10 @@ function jp(e, t) {
|
|
7410
7421
|
return nr(l, u);
|
7411
7422
|
}
|
7412
7423
|
}
|
7413
|
-
function Ep(e, t) {
|
7414
|
-
e.position && (t.position = cp(e));
|
7415
|
-
}
|
7416
7424
|
function Sp(e, t) {
|
7425
|
+
e.position && (t.position = pp(e));
|
7426
|
+
}
|
7427
|
+
function Cp(e, t) {
|
7417
7428
|
let n = t;
|
7418
7429
|
if (e && e.data) {
|
7419
7430
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
@@ -7430,7 +7441,7 @@ function zo(e, t, n) {
|
|
7430
7441
|
const r = t && t.type;
|
7431
7442
|
if (!r)
|
7432
7443
|
throw new Error("Expected node, got `" + t + "`");
|
7433
|
-
return Rt.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: nr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) :
|
7444
|
+
return Rt.call(e.handlers, r) ? e.handlers[r](e, t, n) : e.passThrough && e.passThrough.includes(r) ? "children" in t ? { ...t, children: nr(e, t) } : t : e.unknownHandler ? e.unknownHandler(e, t, n) : Ap(e, t);
|
7434
7445
|
}
|
7435
7446
|
function nr(e, t) {
|
7436
7447
|
const n = [];
|
@@ -7450,7 +7461,7 @@ function nr(e, t) {
|
|
7450
7461
|
}
|
7451
7462
|
return n;
|
7452
7463
|
}
|
7453
|
-
function
|
7464
|
+
function Ap(e, t) {
|
7454
7465
|
const n = t.data || {}, r = "value" in t && !(Rt.call(n, "hProperties") || Rt.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
7455
7466
|
type: "element",
|
7456
7467
|
tagName: "div",
|
@@ -7459,7 +7470,7 @@ function Cp(e, t) {
|
|
7459
7470
|
};
|
7460
7471
|
return e.patch(t, r), e.applyData(t, r);
|
7461
7472
|
}
|
7462
|
-
function
|
7473
|
+
function Op(e, t) {
|
7463
7474
|
const n = [];
|
7464
7475
|
let r = -1;
|
7465
7476
|
for (t && n.push({ type: "text", value: `
|
@@ -7469,7 +7480,7 @@ function Ap(e, t) {
|
|
7469
7480
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
7470
7481
|
` }), n;
|
7471
7482
|
}
|
7472
|
-
function
|
7483
|
+
function zp(e) {
|
7473
7484
|
const t = [];
|
7474
7485
|
let n = -1;
|
7475
7486
|
for (; ++n < e.footnoteOrder.length; ) {
|
@@ -7541,24 +7552,24 @@ function Op(e) {
|
|
7541
7552
|
};
|
7542
7553
|
}
|
7543
7554
|
function Lo(e, t) {
|
7544
|
-
const n =
|
7555
|
+
const n = Ep(e, t), r = n.one(e, null), i = zp(n);
|
7545
7556
|
return i && r.children.push({ type: "text", value: `
|
7546
7557
|
` }, i), Array.isArray(r) ? { type: "root", children: r } : r;
|
7547
7558
|
}
|
7548
|
-
const
|
7559
|
+
const Lp = (
|
7549
7560
|
/** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */
|
7550
7561
|
function(e, t) {
|
7551
|
-
return e && "run" in e ?
|
7562
|
+
return e && "run" in e ? Fp(e, t) : Rp(e || t);
|
7552
7563
|
}
|
7553
|
-
),
|
7554
|
-
function
|
7564
|
+
), Pp = Lp;
|
7565
|
+
function Fp(e, t) {
|
7555
7566
|
return (n, r, i) => {
|
7556
7567
|
e.run(Lo(n, t), r, (o) => {
|
7557
7568
|
i(o);
|
7558
7569
|
});
|
7559
7570
|
};
|
7560
7571
|
}
|
7561
|
-
function
|
7572
|
+
function Rp(e) {
|
7562
7573
|
return (t) => Lo(t, e);
|
7563
7574
|
}
|
7564
7575
|
class dt {
|
@@ -7605,10 +7616,10 @@ be.prototype.spaceSeparated = !1;
|
|
7605
7616
|
be.prototype.commaOrSpaceSeparated = !1;
|
7606
7617
|
be.prototype.mustUseProperty = !1;
|
7607
7618
|
be.prototype.defined = !1;
|
7608
|
-
let
|
7619
|
+
let _p = 0;
|
7609
7620
|
const H = Be(), oe = Be(), Fo = Be(), k = Be(), J = Be(), Ye = Be(), ge = Be();
|
7610
7621
|
function Be() {
|
7611
|
-
return 2 ** ++
|
7622
|
+
return 2 ** ++_p;
|
7612
7623
|
}
|
7613
7624
|
const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
7614
7625
|
__proto__: null,
|
@@ -7641,12 +7652,12 @@ rr.prototype.defined = !0;
|
|
7641
7652
|
function gi(e, t, n) {
|
7642
7653
|
n && (e[t] = n);
|
7643
7654
|
}
|
7644
|
-
const
|
7655
|
+
const Up = {}.hasOwnProperty;
|
7645
7656
|
function $e(e) {
|
7646
7657
|
const t = {}, n = {};
|
7647
7658
|
let r;
|
7648
7659
|
for (r in e.properties)
|
7649
|
-
if (
|
7660
|
+
if (Up.call(e.properties, r)) {
|
7650
7661
|
const i = e.properties[r], o = new rr(
|
7651
7662
|
r,
|
7652
7663
|
e.transform(e.attributes || {}, r),
|
@@ -7744,7 +7755,7 @@ const Qo = $e({
|
|
7744
7755
|
ariaValueText: null,
|
7745
7756
|
role: null
|
7746
7757
|
}
|
7747
|
-
}),
|
7758
|
+
}), Bp = $e({
|
7748
7759
|
space: "html",
|
7749
7760
|
attributes: {
|
7750
7761
|
acceptcharset: "accept-charset",
|
@@ -8103,7 +8114,7 @@ const Qo = $e({
|
|
8103
8114
|
security: null,
|
8104
8115
|
unselectable: null
|
8105
8116
|
}
|
8106
|
-
}),
|
8117
|
+
}), Qp = $e({
|
8107
8118
|
space: "svg",
|
8108
8119
|
attributes: {
|
8109
8120
|
accentHeight: "accent-height",
|
@@ -8662,20 +8673,20 @@ const Qo = $e({
|
|
8662
8673
|
z: null,
|
8663
8674
|
zoomAndPan: null
|
8664
8675
|
}
|
8665
|
-
}),
|
8666
|
-
function
|
8676
|
+
}), Yp = /^data[-\w.:]+$/i, mi = /-[a-z]/g, Hp = /[A-Z]/g;
|
8677
|
+
function qp(e, t) {
|
8667
8678
|
const n = Fn(t);
|
8668
8679
|
let r = t, i = be;
|
8669
8680
|
if (n in e.normal)
|
8670
8681
|
return e.property[e.normal[n]];
|
8671
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
8682
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Yp.test(t)) {
|
8672
8683
|
if (t.charAt(4) === "-") {
|
8673
|
-
const o = t.slice(5).replace(mi,
|
8684
|
+
const o = t.slice(5).replace(mi, Vp);
|
8674
8685
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
8675
8686
|
} else {
|
8676
8687
|
const o = t.slice(4);
|
8677
8688
|
if (!mi.test(o)) {
|
8678
|
-
let l = o.replace(
|
8689
|
+
let l = o.replace(Hp, $p);
|
8679
8690
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
8680
8691
|
}
|
8681
8692
|
}
|
@@ -8683,10 +8694,10 @@ function Hp(e, t) {
|
|
8683
8694
|
}
|
8684
8695
|
return new i(r, t);
|
8685
8696
|
}
|
8686
|
-
function
|
8697
|
+
function $p(e) {
|
8687
8698
|
return "-" + e.toLowerCase();
|
8688
8699
|
}
|
8689
|
-
function
|
8700
|
+
function Vp(e) {
|
8690
8701
|
return e.charAt(1).toUpperCase();
|
8691
8702
|
}
|
8692
8703
|
const yi = {
|
@@ -8707,8 +8718,8 @@ const yi = {
|
|
8707
8718
|
xLinkTitle: "xlinkTitle",
|
8708
8719
|
xLinkType: "xlinkType",
|
8709
8720
|
xmlnsXLink: "xmlnsXlink"
|
8710
|
-
},
|
8711
|
-
function
|
8721
|
+
}, Wp = Po([_o, Ro, Qo, Yo, Bp], "html"), Zp = Po([_o, Ro, Qo, Yo, Qp], "svg");
|
8722
|
+
function Gp(e) {
|
8712
8723
|
if (e.allowedElements && e.disallowedElements)
|
8713
8724
|
throw new TypeError(
|
8714
8725
|
"Only one of `allowedElements` and `disallowedElements` should be defined"
|
@@ -8736,7 +8747,7 @@ var Ho = { exports: {} }, G = {};
|
|
8736
8747
|
* This source code is licensed under the MIT license found in the
|
8737
8748
|
* LICENSE file in the root directory of this source tree.
|
8738
8749
|
*/
|
8739
|
-
var ir = Symbol.for("react.element"), or = Symbol.for("react.portal"), qt = Symbol.for("react.fragment"), $t = Symbol.for("react.strict_mode"), Vt = Symbol.for("react.profiler"), Wt = Symbol.for("react.provider"), Zt = Symbol.for("react.context"),
|
8750
|
+
var ir = Symbol.for("react.element"), or = Symbol.for("react.portal"), qt = Symbol.for("react.fragment"), $t = Symbol.for("react.strict_mode"), Vt = Symbol.for("react.profiler"), Wt = Symbol.for("react.provider"), Zt = Symbol.for("react.context"), Xp = Symbol.for("react.server_context"), Gt = Symbol.for("react.forward_ref"), Xt = Symbol.for("react.suspense"), Kt = Symbol.for("react.suspense_list"), Jt = Symbol.for("react.memo"), en = Symbol.for("react.lazy"), Kp = Symbol.for("react.offscreen"), qo;
|
8740
8751
|
qo = Symbol.for("react.module.reference");
|
8741
8752
|
function we(e) {
|
8742
8753
|
if (typeof e == "object" && e !== null) {
|
@@ -8752,7 +8763,7 @@ function we(e) {
|
|
8752
8763
|
return e;
|
8753
8764
|
default:
|
8754
8765
|
switch (e = e && e.$$typeof, e) {
|
8755
|
-
case
|
8766
|
+
case Xp:
|
8756
8767
|
case Zt:
|
8757
8768
|
case Gt:
|
8758
8769
|
case en:
|
@@ -8823,13 +8834,13 @@ G.isSuspenseList = function(e) {
|
|
8823
8834
|
return we(e) === Kt;
|
8824
8835
|
};
|
8825
8836
|
G.isValidElementType = function(e) {
|
8826
|
-
return typeof e == "string" || typeof e == "function" || e === qt || e === Vt || e === $t || e === Xt || e === Kt || e ===
|
8837
|
+
return typeof e == "string" || typeof e == "function" || e === qt || e === Vt || e === $t || e === Xt || e === Kt || e === Kp || typeof e == "object" && e !== null && (e.$$typeof === en || e.$$typeof === Jt || e.$$typeof === Wt || e.$$typeof === Zt || e.$$typeof === Gt || e.$$typeof === qo || e.getModuleId !== void 0);
|
8827
8838
|
};
|
8828
8839
|
G.typeOf = we;
|
8829
8840
|
Ho.exports = G;
|
8830
|
-
var
|
8831
|
-
const
|
8832
|
-
function
|
8841
|
+
var Jp = Ho.exports;
|
8842
|
+
const ef = /* @__PURE__ */ Ue(Jp);
|
8843
|
+
function tf(e) {
|
8833
8844
|
const t = (
|
8834
8845
|
// @ts-expect-error looks like a node.
|
8835
8846
|
e && typeof e == "object" && e.type === "text" ? (
|
@@ -8839,135 +8850,135 @@ function ef(e) {
|
|
8839
8850
|
);
|
8840
8851
|
return typeof t == "string" && t.replace(/[ \t\n\f\r]/g, "") === "";
|
8841
8852
|
}
|
8842
|
-
function
|
8853
|
+
function nf(e) {
|
8843
8854
|
return e.join(" ").trim();
|
8844
8855
|
}
|
8845
|
-
function
|
8856
|
+
function rf(e, t) {
|
8846
8857
|
const n = t || {};
|
8847
8858
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
8848
8859
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
8849
8860
|
).trim();
|
8850
8861
|
}
|
8851
|
-
var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,
|
8852
|
-
`, xi = "/", bi = "*", Pe = "",
|
8862
|
+
var lr = { exports: {} }, Mi = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, of = /\n/g, lf = /^\s*/, af = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, uf = /^:\s*/, sf = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, cf = /^[;\s]*/, pf = /^\s+|\s+$/g, ff = `
|
8863
|
+
`, xi = "/", bi = "*", Pe = "", df = "comment", hf = "declaration", gf = function(e, t) {
|
8853
8864
|
if (typeof e != "string")
|
8854
8865
|
throw new TypeError("First argument must be a string");
|
8855
8866
|
if (!e)
|
8856
8867
|
return [];
|
8857
8868
|
t = t || {};
|
8858
8869
|
var n = 1, r = 1;
|
8859
|
-
function i(
|
8860
|
-
var b =
|
8870
|
+
function i(I) {
|
8871
|
+
var b = I.match(of);
|
8861
8872
|
b && (n += b.length);
|
8862
|
-
var S =
|
8863
|
-
r = ~S ?
|
8873
|
+
var S = I.lastIndexOf(ff);
|
8874
|
+
r = ~S ? I.length - S : r + I.length;
|
8864
8875
|
}
|
8865
8876
|
function o() {
|
8866
|
-
var
|
8877
|
+
var I = { line: n, column: r };
|
8867
8878
|
return function(b) {
|
8868
|
-
return b.position = new l(
|
8879
|
+
return b.position = new l(I), u(), b;
|
8869
8880
|
};
|
8870
8881
|
}
|
8871
|
-
function l(
|
8872
|
-
this.start =
|
8882
|
+
function l(I) {
|
8883
|
+
this.start = I, this.end = { line: n, column: r }, this.source = t.source;
|
8873
8884
|
}
|
8874
8885
|
l.prototype.content = e;
|
8875
|
-
function a(
|
8886
|
+
function a(I) {
|
8876
8887
|
var b = new Error(
|
8877
|
-
t.source + ":" + n + ":" + r + ": " +
|
8888
|
+
t.source + ":" + n + ":" + r + ": " + I
|
8878
8889
|
);
|
8879
|
-
if (b.reason =
|
8890
|
+
if (b.reason = I, b.filename = t.source, b.line = n, b.column = r, b.source = e, !t.silent)
|
8880
8891
|
throw b;
|
8881
8892
|
}
|
8882
|
-
function s(
|
8883
|
-
var b =
|
8893
|
+
function s(I) {
|
8894
|
+
var b = I.exec(e);
|
8884
8895
|
if (b) {
|
8885
8896
|
var S = b[0];
|
8886
8897
|
return i(S), e = e.slice(S.length), b;
|
8887
8898
|
}
|
8888
8899
|
}
|
8889
8900
|
function u() {
|
8890
|
-
s(
|
8901
|
+
s(lf);
|
8891
8902
|
}
|
8892
|
-
function c(
|
8903
|
+
function c(I) {
|
8893
8904
|
var b;
|
8894
|
-
for (
|
8895
|
-
b !== !1 &&
|
8896
|
-
return
|
8905
|
+
for (I = I || []; b = p(); )
|
8906
|
+
b !== !1 && I.push(b);
|
8907
|
+
return I;
|
8897
8908
|
}
|
8898
8909
|
function p() {
|
8899
|
-
var
|
8910
|
+
var I = o();
|
8900
8911
|
if (!(xi != e.charAt(0) || bi != e.charAt(1))) {
|
8901
8912
|
for (var b = 2; Pe != e.charAt(b) && (bi != e.charAt(b) || xi != e.charAt(b + 1)); )
|
8902
8913
|
++b;
|
8903
8914
|
if (b += 2, Pe === e.charAt(b - 1))
|
8904
8915
|
return a("End of comment missing");
|
8905
8916
|
var S = e.slice(2, b - 2);
|
8906
|
-
return r += 2, i(S), e = e.slice(b), r += 2,
|
8907
|
-
type:
|
8917
|
+
return r += 2, i(S), e = e.slice(b), r += 2, I({
|
8918
|
+
type: df,
|
8908
8919
|
comment: S
|
8909
8920
|
});
|
8910
8921
|
}
|
8911
8922
|
}
|
8912
8923
|
function m() {
|
8913
|
-
var
|
8924
|
+
var I = o(), b = s(af);
|
8914
8925
|
if (b) {
|
8915
|
-
if (p(), !s(
|
8926
|
+
if (p(), !s(uf))
|
8916
8927
|
return a("property missing ':'");
|
8917
|
-
var S = s(
|
8918
|
-
type:
|
8928
|
+
var S = s(sf), w = I({
|
8929
|
+
type: hf,
|
8919
8930
|
property: wi(b[0].replace(Mi, Pe)),
|
8920
8931
|
value: S ? wi(S[0].replace(Mi, Pe)) : Pe
|
8921
8932
|
});
|
8922
|
-
return s(
|
8933
|
+
return s(cf), w;
|
8923
8934
|
}
|
8924
8935
|
}
|
8925
8936
|
function f() {
|
8926
|
-
var
|
8927
|
-
c(
|
8937
|
+
var I = [];
|
8938
|
+
c(I);
|
8928
8939
|
for (var b; b = m(); )
|
8929
|
-
b !== !1 && (
|
8930
|
-
return
|
8940
|
+
b !== !1 && (I.push(b), c(I));
|
8941
|
+
return I;
|
8931
8942
|
}
|
8932
8943
|
return u(), f();
|
8933
8944
|
};
|
8934
8945
|
function wi(e) {
|
8935
|
-
return e ? e.replace(
|
8946
|
+
return e ? e.replace(pf, Pe) : Pe;
|
8936
8947
|
}
|
8937
|
-
var
|
8948
|
+
var mf = gf;
|
8938
8949
|
function $o(e, t) {
|
8939
8950
|
var n = null;
|
8940
8951
|
if (!e || typeof e != "string")
|
8941
8952
|
return n;
|
8942
|
-
for (var r, i =
|
8953
|
+
for (var r, i = mf(e), o = typeof t == "function", l, a, s = 0, u = i.length; s < u; s++)
|
8943
8954
|
r = i[s], l = r.property, a = r.value, o ? t(l, a, r) : a && (n || (n = {}), n[l] = a);
|
8944
8955
|
return n;
|
8945
8956
|
}
|
8946
8957
|
lr.exports = $o;
|
8947
8958
|
lr.exports.default = $o;
|
8948
|
-
var
|
8949
|
-
const
|
8959
|
+
var yf = lr.exports;
|
8960
|
+
const Mf = /* @__PURE__ */ Ue(yf), _n = {}.hasOwnProperty, xf = /* @__PURE__ */ new Set(["table", "thead", "tbody", "tfoot", "tr"]);
|
8950
8961
|
function Vo(e, t) {
|
8951
8962
|
const n = [];
|
8952
8963
|
let r = -1, i;
|
8953
8964
|
for (; ++r < t.children.length; )
|
8954
|
-
i = t.children[r], i.type === "element" ? n.push(
|
8965
|
+
i = t.children[r], i.type === "element" ? n.push(bf(e, i, r, t)) : i.type === "text" ? (t.type !== "element" || !xf.has(t.tagName) || !tf(i)) && n.push(i.value) : i.type === "raw" && !e.options.skipHtml && n.push(i.value);
|
8955
8966
|
return n;
|
8956
8967
|
}
|
8957
|
-
function
|
8958
|
-
const i = e.options, o = i.transformLinkUri === void 0 ?
|
8968
|
+
function bf(e, t, n, r) {
|
8969
|
+
const i = e.options, o = i.transformLinkUri === void 0 ? bu : i.transformLinkUri, l = e.schema, a = t.tagName, s = {};
|
8959
8970
|
let u = l, c;
|
8960
|
-
if (l.space === "html" && a === "svg" && (u =
|
8971
|
+
if (l.space === "html" && a === "svg" && (u = Zp, e.schema = u), t.properties)
|
8961
8972
|
for (c in t.properties)
|
8962
|
-
_n.call(t.properties, c) &&
|
8973
|
+
_n.call(t.properties, c) && Df(s, c, t.properties[c], e);
|
8963
8974
|
(a === "ol" || a === "ul") && e.listDepth++;
|
8964
8975
|
const p = Vo(e, t);
|
8965
8976
|
(a === "ol" || a === "ul") && e.listDepth--, e.schema = l;
|
8966
8977
|
const m = t.position || {
|
8967
8978
|
start: { line: null, column: null, offset: null },
|
8968
8979
|
end: { line: null, column: null, offset: null }
|
8969
|
-
}, f = i.components && _n.call(i.components, a) ? i.components[a] : a,
|
8970
|
-
if (!
|
8980
|
+
}, f = i.components && _n.call(i.components, a) ? i.components[a] : a, I = typeof f == "string" || f === ue.Fragment;
|
8981
|
+
if (!ef.isValidElementType(f))
|
8971
8982
|
throw new TypeError(
|
8972
8983
|
`Component for name \`${a}\` not defined or is not renderable`
|
8973
8984
|
);
|
@@ -8979,17 +8990,17 @@ function xf(e, t, n, r) {
|
|
8979
8990
|
String(s.href || ""),
|
8980
8991
|
t.children,
|
8981
8992
|
typeof s.title == "string" ? s.title : null
|
8982
|
-
)), !
|
8993
|
+
)), !I && a === "code" && r.type === "element" && r.tagName !== "pre" && (s.inline = !0), !I && (a === "h1" || a === "h2" || a === "h3" || a === "h4" || a === "h5" || a === "h6") && (s.level = Number.parseInt(a.charAt(1), 10)), a === "img" && i.transformImageUri && (s.src = i.transformImageUri(
|
8983
8994
|
String(s.src || ""),
|
8984
8995
|
String(s.alt || ""),
|
8985
8996
|
typeof s.title == "string" ? s.title : null
|
8986
|
-
)), !
|
8987
|
-
const b =
|
8997
|
+
)), !I && a === "li" && r.type === "element") {
|
8998
|
+
const b = wf(t);
|
8988
8999
|
s.checked = b && b.properties ? !!b.properties.checked : null, s.index = bn(r, t), s.ordered = r.tagName === "ol";
|
8989
9000
|
}
|
8990
|
-
return !
|
9001
|
+
return !I && (a === "ol" || a === "ul") && (s.ordered = a === "ol", s.depth = e.listDepth), (a === "td" || a === "th") && (s.align && (s.style || (s.style = {}), s.style.textAlign = s.align, delete s.align), I || (s.isHeader = a === "th")), !I && a === "tr" && r.type === "element" && (s.isHeader = r.tagName === "thead"), i.sourcePos && (s["data-sourcepos"] = Tf(m)), !I && i.rawSourcePos && (s.sourcePosition = t.position), !I && i.includeElementIndex && (s.index = bn(r, t), s.siblingCount = bn(r)), I || (s.node = t), p.length > 0 ? ue.createElement(f, s, p) : ue.createElement(f, s);
|
8991
9002
|
}
|
8992
|
-
function
|
9003
|
+
function wf(e) {
|
8993
9004
|
let t = -1;
|
8994
9005
|
for (; ++t < e.children.length; ) {
|
8995
9006
|
const n = e.children[t];
|
@@ -9004,24 +9015,24 @@ function bn(e, t) {
|
|
9004
9015
|
e.children[n].type === "element" && r++;
|
9005
9016
|
return r;
|
9006
9017
|
}
|
9007
|
-
function
|
9008
|
-
const i =
|
9018
|
+
function Df(e, t, n, r) {
|
9019
|
+
const i = qp(r.schema, t);
|
9009
9020
|
let o = n;
|
9010
|
-
o == null || o !== o || (Array.isArray(o) && (o = i.commaSeparated ?
|
9021
|
+
o == null || o !== o || (Array.isArray(o) && (o = i.commaSeparated ? rf(o) : nf(o)), i.property === "style" && typeof o == "string" && (o = Nf(o)), i.space && i.property ? e[_n.call(yi, i.property) ? yi[i.property] : i.property] = o : i.attribute && (e[i.attribute] = o));
|
9011
9022
|
}
|
9012
|
-
function
|
9023
|
+
function Nf(e) {
|
9013
9024
|
const t = {};
|
9014
9025
|
try {
|
9015
|
-
|
9026
|
+
Mf(e, n);
|
9016
9027
|
} catch {
|
9017
9028
|
}
|
9018
9029
|
return t;
|
9019
9030
|
function n(r, i) {
|
9020
9031
|
const o = r.slice(0, 4) === "-ms-" ? `ms-${r.slice(4)}` : r;
|
9021
|
-
t[o.replace(/-([a-z])/g,
|
9032
|
+
t[o.replace(/-([a-z])/g, If)] = i;
|
9022
9033
|
}
|
9023
9034
|
}
|
9024
|
-
function
|
9035
|
+
function If(e, t) {
|
9025
9036
|
return t.toUpperCase();
|
9026
9037
|
}
|
9027
9038
|
function Tf(e) {
|
@@ -9035,7 +9046,7 @@ function Tf(e) {
|
|
9035
9046
|
e.end.column
|
9036
9047
|
].map(String).join("");
|
9037
9048
|
}
|
9038
|
-
const Di = {}.hasOwnProperty,
|
9049
|
+
const Di = {}.hasOwnProperty, kf = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", kt = {
|
9039
9050
|
plugins: { to: "remarkPlugins", id: "change-plugins-to-remarkplugins" },
|
9040
9051
|
renderers: { to: "components", id: "change-renderers-to-components" },
|
9041
9052
|
astPlugins: { id: "remove-buggy-html-in-markdown-parser" },
|
@@ -9064,13 +9075,13 @@ function Wo(e) {
|
|
9064
9075
|
if (Di.call(kt, o) && Di.call(e, o)) {
|
9065
9076
|
const l = kt[o];
|
9066
9077
|
console.warn(
|
9067
|
-
`[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${
|
9078
|
+
`[react-markdown] Warning: please ${l.to ? `use \`${l.to}\` instead of` : "remove"} \`${o}\` (see <${kf}#${l.id}> for more info)`
|
9068
9079
|
), delete kt[o];
|
9069
9080
|
}
|
9070
|
-
const t =
|
9081
|
+
const t = Pu().use(qc).use(e.remarkPlugins || []).use(Pp, {
|
9071
9082
|
...e.remarkRehypeOptions,
|
9072
9083
|
allowDangerousHtml: !0
|
9073
|
-
}).use(e.rehypePlugins || []).use(
|
9084
|
+
}).use(e.rehypePlugins || []).use(Gp, e), n = new po();
|
9074
9085
|
typeof e.children == "string" ? n.value = e.children : e.children !== void 0 && e.children !== null && console.warn(
|
9075
9086
|
`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`
|
9076
9087
|
);
|
@@ -9080,7 +9091,7 @@ function Wo(e) {
|
|
9080
9091
|
let i = ue.createElement(
|
9081
9092
|
ue.Fragment,
|
9082
9093
|
{},
|
9083
|
-
Vo({ options: e, schema:
|
9094
|
+
Vo({ options: e, schema: Wp, listDepth: 0 }, r)
|
9084
9095
|
);
|
9085
9096
|
return e.className && (i = ue.createElement("div", { className: e.className }, i)), i;
|
9086
9097
|
}
|
@@ -9143,19 +9154,19 @@ Wo.propTypes = {
|
|
9143
9154
|
transformImageUri: g.func,
|
9144
9155
|
components: g.object
|
9145
9156
|
};
|
9146
|
-
const
|
9157
|
+
const vf = (e) => {
|
9147
9158
|
Array.from(e.entries()).forEach((n) => {
|
9148
9159
|
const r = n[0], i = n[1];
|
9149
9160
|
r.toLocaleLowerCase().startsWith("utm_") && e.delete(r, i);
|
9150
9161
|
});
|
9151
|
-
},
|
9162
|
+
}, jf = (e) => {
|
9152
9163
|
e.delete("linked_from", "xpert_chat"), e.append("linked_from", "xpert_chat");
|
9153
9164
|
};
|
9154
|
-
function
|
9165
|
+
function Ef(e) {
|
9155
9166
|
const t = new URL(e), n = t.host;
|
9156
9167
|
if (n == null ? void 0 : n.includes("edx.org")) {
|
9157
9168
|
const i = t.searchParams;
|
9158
|
-
|
9169
|
+
vf(i), jf(i), t.search = i;
|
9159
9170
|
}
|
9160
9171
|
return t.toString();
|
9161
9172
|
}
|
@@ -9220,7 +9231,7 @@ const ar = ({
|
|
9220
9231
|
"data-testid": "message-container",
|
9221
9232
|
className: "xpert-chatbot-popup__bubble--assistant",
|
9222
9233
|
style: { maxWidth: n ? "85%" : "67%" },
|
9223
|
-
children: /* @__PURE__ */ D.jsx(Wo, { linkTarget: "_blank", transformLinkUri:
|
9234
|
+
children: /* @__PURE__ */ D.jsx(Wo, { linkTarget: "_blank", transformLinkUri: Ef, children: t.content })
|
9224
9235
|
}
|
9225
9236
|
),
|
9226
9237
|
t.disableFeedback ? null : /* @__PURE__ */ D.jsx(
|
@@ -9242,7 +9253,7 @@ ar.propTypes = {
|
|
9242
9253
|
messageRef: g.shape({ current: g.instanceOf(Element) })
|
9243
9254
|
};
|
9244
9255
|
ar.displayName = "AssistantMessageBubble";
|
9245
|
-
const
|
9256
|
+
const Sf = ar, ur = ({ configurations: e }) => /* @__PURE__ */ D.jsxs(
|
9246
9257
|
"div",
|
9247
9258
|
{
|
9248
9259
|
role: "alert",
|
@@ -9273,7 +9284,7 @@ ur.propTypes = {
|
|
9273
9284
|
}).isRequired
|
9274
9285
|
};
|
9275
9286
|
ur.displayName = "ConversationScreenDisclaimer";
|
9276
|
-
const
|
9287
|
+
const Cf = ur, sr = ({ configurations: e, loading: t, onPromptClick: n }) => /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
9277
9288
|
/* @__PURE__ */ D.jsx("div", { style: { fontWeight: 700, fontSize: "0.75rem" }, children: "Some things I can help you with" }),
|
9278
9289
|
e.prompts.map((r) => /* @__PURE__ */ D.jsx(
|
9279
9290
|
"button",
|
@@ -9307,7 +9318,7 @@ sr.propTypes = {
|
|
9307
9318
|
onPromptClick: g.func.isRequired
|
9308
9319
|
};
|
9309
9320
|
sr.displayName = "PromptList";
|
9310
|
-
const
|
9321
|
+
const Af = sr, cr = ({ message: e, isNormalSize: t }) => /* @__PURE__ */ D.jsx("div", { role: "status", className: "xpert-chatbot-popup__bubble--group", children: /* @__PURE__ */ D.jsx("div", { className: "xpert-chatbot-popup__bubble--group-inner", children: /* @__PURE__ */ D.jsx(
|
9311
9322
|
"div",
|
9312
9323
|
{
|
9313
9324
|
"data-testid": "message-container",
|
@@ -9321,7 +9332,7 @@ cr.propTypes = {
|
|
9321
9332
|
isNormalSize: g.bool.isRequired
|
9322
9333
|
};
|
9323
9334
|
cr.displayName = "SystemMessageBubble";
|
9324
|
-
const
|
9335
|
+
const Of = cr, pr = ({ content: e, isNormalSize: t, configurations: n }) => /* @__PURE__ */ D.jsx(
|
9325
9336
|
"div",
|
9326
9337
|
{
|
9327
9338
|
role: "status",
|
@@ -9343,7 +9354,7 @@ pr.propTypes = {
|
|
9343
9354
|
})
|
9344
9355
|
};
|
9345
9356
|
pr.displayName = "UserMessageBubble";
|
9346
|
-
const
|
9357
|
+
const zf = pr, tn = ({
|
9347
9358
|
messages: e,
|
9348
9359
|
loading: t,
|
9349
9360
|
isNormalSize: n,
|
@@ -9354,16 +9365,16 @@ const Of = pr, tn = ({
|
|
9354
9365
|
}) => {
|
9355
9366
|
var s;
|
9356
9367
|
const a = Fe(null);
|
9357
|
-
return
|
9368
|
+
return ye(() => {
|
9358
9369
|
var u;
|
9359
9370
|
(u = a.current) == null || u.scrollIntoView({
|
9360
9371
|
behavior: "instant",
|
9361
9372
|
block: "start"
|
9362
9373
|
});
|
9363
9374
|
}, [e.length]), /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
9364
|
-
o && /* @__PURE__ */ D.jsx(
|
9375
|
+
o && /* @__PURE__ */ D.jsx(Cf, { configurations: l }),
|
9365
9376
|
((s = l.prompts) == null ? void 0 : s.length) > 0 && /* @__PURE__ */ D.jsx(
|
9366
|
-
|
9377
|
+
Af,
|
9367
9378
|
{
|
9368
9379
|
loading: t,
|
9369
9380
|
onPromptClick: i,
|
@@ -9382,7 +9393,7 @@ const Of = pr, tn = ({
|
|
9382
9393
|
style: { display: "flex", flexDirection: "column" },
|
9383
9394
|
children: [
|
9384
9395
|
(l == null ? void 0 : l.systemMessage) && /* @__PURE__ */ D.jsx(
|
9385
|
-
|
9396
|
+
Of,
|
9386
9397
|
{
|
9387
9398
|
message: l == null ? void 0 : l.systemMessage,
|
9388
9399
|
isNormalSize: n
|
@@ -9390,7 +9401,7 @@ const Of = pr, tn = ({
|
|
9390
9401
|
),
|
9391
9402
|
e.map(
|
9392
9403
|
(u, c) => u.role === "assistant" ? /* @__PURE__ */ D.jsx(
|
9393
|
-
|
9404
|
+
Sf,
|
9394
9405
|
{
|
9395
9406
|
index: c,
|
9396
9407
|
message: u,
|
@@ -9400,7 +9411,7 @@ const Of = pr, tn = ({
|
|
9400
9411
|
},
|
9401
9412
|
`${u.role}-${c}`
|
9402
9413
|
) : /* @__PURE__ */ D.jsx(
|
9403
|
-
|
9414
|
+
zf,
|
9404
9415
|
{
|
9405
9416
|
content: u.content,
|
9406
9417
|
isNormalSize: n,
|
@@ -9446,13 +9457,13 @@ tn.defaultProps = {
|
|
9446
9457
|
showDisclaimerText: !1
|
9447
9458
|
};
|
9448
9459
|
tn.displayName = "XpertConversationsMessages";
|
9449
|
-
const zf = tn, Go = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg3MSIgaGVpZ2h0PSI1NjQiIHZpZXdCb3g9IjAgMCAxODcxIDU2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTkyOCAxODhIMTg3MUwxODA4IDQ5MUg4NjVMOTI4IDE4OFoiIGZpbGw9IiNGMENDMDAiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzEyM180MjgpIj4KPHBhdGggZD0iTTI1NS4yNzMgMTk3LjM4N0MyNTAuODUyIDE5Mi4yNTQgMjQ1LjM1MiAxODguMTg1IDIzOC43OTYgMTg1LjE4OEMyMzIuMjMyIDE4Mi4xOTEgMjI0LjU5NyAxODAuNjkyIDIxNS44OTggMTgwLjY5MkMyMDcuMDQ5IDE4MC42OTIgMTk4Ljc3NyAxODIuMjY2IDE5MS4wNzQgMTg1LjQwNUMxODMuMzcyIDE4OC41NDUgMTc2LjM4MSAxOTMuMDA0IDE3MC4xMDIgMTk4Ljc4MUMxNjMuODIzIDIwNC41NTggMTU4LjQwNiAyMTEuNDgyIDE1My44MzUgMjE5LjUzN0MxNDkuMjY0IDIyNy42IDE0NS42MyAyMzYuNTQ3IDE0Mi45MjYgMjQ2LjM5M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9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0zNzAtMjg3aDM2MHYtOTBIMzcwdjkwWk0xODAtMTIwcS0yNCAwLTQyLTE4dC0xOC00MnYtNjAwcTAtMjQgMTgtNDJ0NDItMThoNjAwcTI0IDAgNDIgMTh0MTggNDJ2NjAwcTAgMjQtMTggNDJ0LTQyIDE4SDE4MFptMC02MGg2MDB2LTYwMEgxODB2NjAwWm0wLTYwMHY2MDAtNjAwWiIvPjwvc3ZnPg==", Rf = 991;
|
9450
9461
|
function Xo({
|
9451
9462
|
isNormalSize: e,
|
9452
9463
|
setIsMounted: t,
|
9453
9464
|
setIsNormalSize: n
|
9454
9465
|
}) {
|
9455
|
-
return pt(
|
9466
|
+
return pt(Rf) ? null : e ? /* @__PURE__ */ D.jsx(
|
9456
9467
|
"button",
|
9457
9468
|
{
|
9458
9469
|
onClick: () => {
|
@@ -9473,7 +9484,7 @@ function Xo({
|
|
9473
9484
|
"aria-hidden": !0,
|
9474
9485
|
height: "24px",
|
9475
9486
|
width: "24px",
|
9476
|
-
src:
|
9487
|
+
src: Pf,
|
9477
9488
|
alt: "Expand xpert dialog width icon"
|
9478
9489
|
}
|
9479
9490
|
)
|
@@ -9498,7 +9509,7 @@ function Xo({
|
|
9498
9509
|
"aria-hidden": !0,
|
9499
9510
|
height: "24px",
|
9500
9511
|
width: "24px",
|
9501
|
-
src:
|
9512
|
+
src: Ff,
|
9502
9513
|
alt: "Shrink xpert dialog width icon"
|
9503
9514
|
}
|
9504
9515
|
)
|
@@ -9606,7 +9617,7 @@ fr.defaultProps = {
|
|
9606
9617
|
backgroundColor: "#F0CC00",
|
9607
9618
|
textColor: "transparent"
|
9608
9619
|
};
|
9609
|
-
const
|
9620
|
+
const _f = fr, Uf = 991;
|
9610
9621
|
function Jo({
|
9611
9622
|
isNormalSize: e,
|
9612
9623
|
setIsNormalSize: t,
|
@@ -9616,7 +9627,7 @@ function Jo({
|
|
9616
9627
|
configurations: o
|
9617
9628
|
}) {
|
9618
9629
|
var a, s;
|
9619
|
-
const l = pt(
|
9630
|
+
const l = pt(Uf);
|
9620
9631
|
return /* @__PURE__ */ D.jsxs(
|
9621
9632
|
"div",
|
9622
9633
|
{
|
@@ -9640,7 +9651,7 @@ function Jo({
|
|
9640
9651
|
style: o.headerLogoStyle
|
9641
9652
|
}
|
9642
9653
|
) : /* @__PURE__ */ D.jsx(
|
9643
|
-
|
9654
|
+
_f,
|
9644
9655
|
{
|
9645
9656
|
backgroundColor: (a = o == null ? void 0 : o.headerLogoStyle) == null ? void 0 : a.backgroundColor,
|
9646
9657
|
textColor: (s = o == null ? void 0 : o.headerLogoStyle) == null ? void 0 : s.color
|
@@ -9674,7 +9685,7 @@ Jo.propTypes = {
|
|
9674
9685
|
useDefaultLogo: g.bool
|
9675
9686
|
})
|
9676
9687
|
};
|
9677
|
-
const
|
9688
|
+
const Bf = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjQiPjxwYXRoIGQ9Ik00NDAtMTIwdi04MGgzMjB2LTI4NHEwLTExNy04MS41LTE5OC41VDQ4MC03NjRxLTExNyAwLTE5OC41IDgxLjVUMjAwLTQ4NHYyNDRoLTQwcS0zMyAwLTU2LjUtMjMuNVQ4MC0zMjB2LTgwcTAtMjEgMTAuNS0zOS41VDEyMC00NjlsMy01M3E4LTY4IDM5LjUtMTI2dDc5LTEwMXE0Ny41LTQzIDEwOS02N1Q0ODAtODQwcTY4IDAgMTI5IDI0dDEwOSA2Ni41UTc2Ni03MDcgNzk3LTY0OXQ0MCAxMjZsMyA1MnExOSA5IDI5LjUgMjd0MTAuNSAzOHY5MnEwIDIwLTEwLjUgMzhUODQwLTI0OXY0OXEwIDMzLTIzLjUgNTYuNVQ3NjAtMTIwSDQ0MFptLTgwLTI4MHEtMTcgMC0yOC41LTExLjVUMzIwLTQ0MHEwLTE3IDExLjUtMjguNVQzNjAtNDgwcTE3IDAgMjguNSAxMS41VDQwMC00NDBxMCAxNy0xMS41IDI4LjVUMzYwLTQwMFptMjQwIDBxLTE3IDAtMjguNS0xMS41VDU2MC00NDBxMC0xNyAxMS41LTI4LjVUNjAwLTQ4MHExNyAwIDI4LjUgMTEuNVQ2NDAtNDQwcTAgMTctMTEuNSAyOC41VDYwMC00MDBabS0zNTktNjJxLTctMTA2IDY0LTE4MnQxNzctNzZxODkgMCAxNTYuNSA1Ni41VDcyMC01MTlxLTkxLTEtMTY3LjUtNDlUNDM1LTY5OHEtMTYgODAtNjcuNSAxNDIuNVQyNDEtNDYyWiIvPjwvc3ZnPg==";
|
9678
9689
|
function dr({
|
9679
9690
|
configurations: e,
|
9680
9691
|
submitEvent: t,
|
@@ -9697,7 +9708,7 @@ function dr({
|
|
9697
9708
|
},
|
9698
9709
|
[n]
|
9699
9710
|
);
|
9700
|
-
|
9711
|
+
ye(() => {
|
9701
9712
|
const u = document.createElement("script");
|
9702
9713
|
u.type = "text/javascript", u.src = e.liveChatUrl, u.async = !0, u.onload = () => {
|
9703
9714
|
window.Five9ChatPlugin(e.liveChatOptions);
|
@@ -9752,7 +9763,7 @@ function dr({
|
|
9752
9763
|
{
|
9753
9764
|
height: "24px",
|
9754
9765
|
width: "24px",
|
9755
|
-
src:
|
9766
|
+
src: Bf,
|
9756
9767
|
alt: "Open live chat window icon"
|
9757
9768
|
}
|
9758
9769
|
)
|
@@ -9780,11 +9791,11 @@ dr.defaultProps = {
|
|
9780
9791
|
setLiveChatOpen: null,
|
9781
9792
|
isTestUser: !1
|
9782
9793
|
};
|
9783
|
-
const Ni = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0yODEtMjQwcS0xNCAwLTI3LjUtMTRUMjQwLTI4MnYtOThoNTAwdi0zNDBoMTAwcTE0IDAgMjcgMTR0MTMgMjl2NTk2TDcyMS0yNDBIMjgxWk04MC0yODB2LTU1OHEwLTE0IDEzLTI4dDI3LTE0aDUxOXExNSAwIDI4IDEzLjV0MTMgMjguNXYzNTZxMCAxNC0xMyAyOHQtMjggMTRIMjQwTDgwLTI4MFptNTQwLTIyMHYtMzIwSDE0MHYzMjBoNDgwWm0tNDgwIDB2LTMyMCAzMjBaIiBmaWxsPSIjRkZGRkZGIi8+PC9zdmc+",
|
9794
|
+
const Ni = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0yODEtMjQwcS0xNCAwLTI3LjUtMTRUMjQwLTI4MnYtOThoNTAwdi0zNDBoMTAwcTE0IDAgMjcgMTR0MTMgMjl2NTk2TDcyMS0yNDBIMjgxWk04MC0yODB2LTU1OHEwLTE0IDEzLTI4dDI3LTE0aDUxOXExNSAwIDI4IDEzLjV0MTMgMjguNXYzNTZxMCAxNC0xMyAyOHQtMjggMTRIMjQwTDgwLTI4MFptNTQwLTIyMHYtMzIwSDE0MHYzMjBoNDgwWm0tNDgwIDB2LTMyMCAzMjBaIiBmaWxsPSIjRkZGRkZGIi8+PC9zdmc+", Qf = {
|
9784
9795
|
edx: Go,
|
9785
9796
|
"speech-emerson": Ni,
|
9786
9797
|
"get-smarter": Ni
|
9787
|
-
},
|
9798
|
+
}, Yf = 991, Hf = [];
|
9788
9799
|
console.log("Chatbot - load");
|
9789
9800
|
function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
9790
9801
|
var bt;
|
@@ -9812,9 +9823,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9812
9823
|
cookieNamePrefix: p,
|
9813
9824
|
proactiveMessagePrefix: m,
|
9814
9825
|
proactiveMessage: f,
|
9815
|
-
disableDisclaimerPage:
|
9826
|
+
disableDisclaimerPage: I,
|
9816
9827
|
conversationHistory: b
|
9817
|
-
} = i, S = pt(
|
9828
|
+
} = i, S = pt(Yf), [, w] = pe(!1), [v, j] = pe(Hf), [B, _] = pe(!1), [y, A] = pe(!1), [U, Q] = pe(!1), [q, E] = pe(""), [M, N] = pe(!1), [C, z] = pe(!1), [F, Y] = pe(!0), [V, X] = pe(!1), [d, ne] = pe(!1), le = Fe(null), h = Fe(null), re = Fe(null), te = De.get(`${p}-test`) === "1", W = at(
|
9818
9829
|
({ name: L, payload: x }) => {
|
9819
9830
|
t ? t({ name: L, payload: x }) : re.current.track(
|
9820
9831
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
@@ -9847,9 +9858,9 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9847
9858
|
}
|
9848
9859
|
if (!x.ok)
|
9849
9860
|
throw new Error(`HTTPError: ${x.status} ${x.statusText}`);
|
9850
|
-
const
|
9861
|
+
const T = await x.json();
|
9851
9862
|
j(
|
9852
|
-
|
9863
|
+
T.map((O) => ({
|
9853
9864
|
...O,
|
9854
9865
|
disableFeedback: !0
|
9855
9866
|
}))
|
@@ -9860,12 +9871,12 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9860
9871
|
_(!1);
|
9861
9872
|
}
|
9862
9873
|
}, [p, o]);
|
9863
|
-
|
9874
|
+
ye(() => (se(), document.addEventListener("visibilitychange", se), () => {
|
9864
9875
|
document.removeEventListener(
|
9865
9876
|
"visibilitychange",
|
9866
9877
|
se
|
9867
9878
|
);
|
9868
|
-
}), [se]),
|
9879
|
+
}), [se]), ye(() => {
|
9869
9880
|
console.log("Chatbot - mount");
|
9870
9881
|
let L, x;
|
9871
9882
|
return s && (L = setInterval(() => {
|
@@ -9876,15 +9887,15 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9876
9887
|
}, 6e4)), () => {
|
9877
9888
|
console.log("Chatbot - unmount"), clearInterval(L), clearTimeout(x);
|
9878
9889
|
};
|
9879
|
-
}, [u, s]),
|
9880
|
-
const L = (
|
9890
|
+
}, [u, s]), ye(() => {
|
9891
|
+
const L = (T) => {
|
9881
9892
|
var O, $;
|
9882
|
-
(O =
|
9893
|
+
(O = T == null ? void 0 : T.target) != null && O.href && W({
|
9883
9894
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
9884
9895
|
payload: {
|
9885
9896
|
category: "2u",
|
9886
9897
|
label: "xpert-chatbot",
|
9887
|
-
link: ($ =
|
9898
|
+
link: ($ = T == null ? void 0 : T.target) == null ? void 0 : $.href,
|
9888
9899
|
isTestUser: te
|
9889
9900
|
}
|
9890
9901
|
});
|
@@ -9931,7 +9942,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9931
9942
|
}, Ve = ({
|
9932
9943
|
conversationSize: L,
|
9933
9944
|
userInputMessage: x,
|
9934
|
-
apiResponseMessage:
|
9945
|
+
apiResponseMessage: T,
|
9935
9946
|
elapsedSeconds: O
|
9936
9947
|
}) => {
|
9937
9948
|
W({
|
@@ -9942,7 +9953,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9942
9953
|
isTestUser: te,
|
9943
9954
|
conversationSize: L,
|
9944
9955
|
userInputMessage: x,
|
9945
|
-
apiResponseMessage:
|
9956
|
+
apiResponseMessage: T,
|
9946
9957
|
elapsedSeconds: O
|
9947
9958
|
}
|
9948
9959
|
});
|
@@ -9956,13 +9967,13 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9956
9967
|
return;
|
9957
9968
|
const x = /* @__PURE__ */ new Date();
|
9958
9969
|
z(!1);
|
9959
|
-
const
|
9970
|
+
const T = v.filter((ae) => ae.role === "user").length + 1;
|
9960
9971
|
W({
|
9961
9972
|
name: `${s}.bi.xpert.chatbot.popup.chat.message.sent`,
|
9962
9973
|
payload: {
|
9963
9974
|
category: "2u",
|
9964
9975
|
label: "xpert-chatbot",
|
9965
|
-
totalUserInputMessagesSent:
|
9976
|
+
totalUserInputMessagesSent: T,
|
9966
9977
|
userInputMessage: L,
|
9967
9978
|
isTestUser: te
|
9968
9979
|
}
|
@@ -10096,7 +10107,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10096
10107
|
}, ln = (L) => {
|
10097
10108
|
L.key === "Enter" && q.trim() === "" || L.key === "Enter" && !L.shiftKey && (L.preventDefault(), ze(q));
|
10098
10109
|
}, an = (L, x = "") => {
|
10099
|
-
const
|
10110
|
+
const T = v.map((O, $) => L === $ ? (W({
|
10100
10111
|
name: `${s}.bi.xpert.chatbot.feedback.thumbs.${x.toLowerCase()}.clicked`,
|
10101
10112
|
payload: {
|
10102
10113
|
category: "2u",
|
@@ -10110,7 +10121,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10110
10121
|
...O,
|
10111
10122
|
feedbackThumbType: x
|
10112
10123
|
}) : O);
|
10113
|
-
j(
|
10124
|
+
j(T), ne(!1);
|
10114
10125
|
};
|
10115
10126
|
return (
|
10116
10127
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -10154,7 +10165,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10154
10165
|
{
|
10155
10166
|
"data-ot-ignore": "",
|
10156
10167
|
className: "xpert-chatbot-button__logo optanon-category-C0001",
|
10157
|
-
src:
|
10168
|
+
src: Qf[i.xpertKey],
|
10158
10169
|
alt: "xpert logo",
|
10159
10170
|
"aria-hidden": !0,
|
10160
10171
|
style: { width: a == null ? void 0 : a.iconWidth }
|
@@ -10169,7 +10180,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10169
10180
|
style: { display: "flex", flexDirection: "column", height: "100%" },
|
10170
10181
|
"aria-label": "XPERT Chatbot Popup",
|
10171
10182
|
role: "dialog",
|
10172
|
-
children: M ||
|
10183
|
+
children: M || I || v.length > 0 ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
|
10173
10184
|
/* @__PURE__ */ D.jsx(
|
10174
10185
|
Jo,
|
10175
10186
|
{
|
@@ -10183,19 +10194,19 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10183
10194
|
),
|
10184
10195
|
/* @__PURE__ */ D.jsxs("div", { style: { padding: "0 1.5rem", overflow: "auto" }, children: [
|
10185
10196
|
/* @__PURE__ */ D.jsx(
|
10186
|
-
|
10197
|
+
Lf,
|
10187
10198
|
{
|
10188
10199
|
messages: v,
|
10189
10200
|
loading: B,
|
10190
10201
|
isNormalSize: S || F,
|
10191
10202
|
onFeedbackThumbSelection: an,
|
10192
10203
|
onPromptClick: ze,
|
10193
|
-
showDisclaimerText:
|
10204
|
+
showDisclaimerText: I,
|
10194
10205
|
configurations: i
|
10195
10206
|
}
|
10196
10207
|
),
|
10197
10208
|
B && /* @__PURE__ */ D.jsx(uo, { disableScroll: d }),
|
10198
|
-
C && /* @__PURE__ */ D.jsx(
|
10209
|
+
C && /* @__PURE__ */ D.jsx(xu, {})
|
10199
10210
|
] }),
|
10200
10211
|
/* @__PURE__ */ D.jsxs("div", { style: { marginTop: "auto", display: "flex" }, children: [
|
10201
10212
|
i.isLiveChatEnabled && /* @__PURE__ */ D.jsx(
|