zudoku 0.35.5 → 0.35.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/authentication/providers/openid.js +11 -7
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/components/AnchorLink.js +3 -2
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +3 -2
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/oas/graphql/index.d.ts +4 -3
- package/dist/lib/oas/graphql/index.js +9 -13
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +1 -1
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.js +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/lib/{Markdown-hBN9vkm5.js → Markdown-C0eXdzGn.js} +306 -306
- package/lib/{Markdown-hBN9vkm5.js.map → Markdown-C0eXdzGn.js.map} +1 -1
- package/lib/{MdxPage-UCWwxhzC.js → MdxPage-BKkG1cm1.js} +2 -2
- package/lib/{MdxPage-UCWwxhzC.js.map → MdxPage-BKkG1cm1.js.map} +1 -1
- package/lib/{OasProvider-CJ8KOnsH.js → OasProvider-CwhKwrwl.js} +2 -2
- package/lib/{OasProvider-CJ8KOnsH.js.map → OasProvider-CwhKwrwl.js.map} +1 -1
- package/lib/{OperationList-C4rpJdcE.js → OperationList-DGYoFitT.js} +4 -4
- package/lib/{OperationList-C4rpJdcE.js.map → OperationList-DGYoFitT.js.map} +1 -1
- package/lib/{SlotletProvider-D-XPr1Wg.js → SlotletProvider-BJC58V32.js} +2 -2
- package/lib/{SlotletProvider-D-XPr1Wg.js.map → SlotletProvider-BJC58V32.js.map} +1 -1
- package/lib/{createServer-BEFAOb-x.js → createServer-CbL1Uh2Q.js} +4108 -4066
- package/lib/createServer-CbL1Uh2Q.js.map +1 -0
- package/lib/{index-Dowg8c_k.js → index-Dm1QJHVl.js} +118 -116
- package/lib/index-Dm1QJHVl.js.map +1 -0
- package/lib/zudoku.auth-openid.js +282 -281
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +1 -1
- package/lib/zudoku.plugin-api-keys.js +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +5 -5
- package/src/lib/authentication/providers/openid.tsx +12 -9
- package/src/lib/components/AnchorLink.tsx +4 -2
- package/src/lib/components/navigation/SidebarItem.tsx +3 -2
- package/src/lib/oas/graphql/index.ts +27 -27
- package/src/lib/plugins/openapi/OperationList.tsx +1 -1
- package/src/lib/plugins/openapi/graphql/graphql.ts +5 -4
- package/lib/createServer-BEFAOb-x.js.map +0 -1
- package/lib/index-Dowg8c_k.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as B } from "./jsx-runtime-CYK1ROHF.js";
|
|
2
|
-
import { createContext as Ss, useRef as sn, useEffect as Yt, useCallback as
|
|
3
|
-
import { d as Os, h as br,
|
|
2
|
+
import { createContext as Ss, useRef as sn, useEffect as Yt, useCallback as hi, useContext as ys, useState as tr, useMemo as $r, memo as Ns } from "react";
|
|
3
|
+
import { d as Os, h as br, u as Ar, b as Ls, e as Ds } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
|
|
4
4
|
import { c as di } from "./index-CPNSgwSb.js";
|
|
5
5
|
import { ChevronRightIcon as Rs, ExternalLinkIcon as Ps } from "lucide-react";
|
|
6
6
|
import { m as ws, j as mi } from "./hook-CfCFKZ-2.js";
|
|
@@ -9,10 +9,10 @@ import * as Pn from "@radix-ui/react-collapsible";
|
|
|
9
9
|
import { Slot as Ms } from "@radix-ui/react-slot";
|
|
10
10
|
import { Callout as Je } from "./ui/Callout.js";
|
|
11
11
|
import { Stepper as Bs } from "./ui/Stepper.js";
|
|
12
|
-
import { S as
|
|
12
|
+
import { S as Jr } from "./SyntaxHighlight-BEoSoPEo.js";
|
|
13
13
|
import { g as pi } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
14
14
|
import { e as Fs } from "./index-Bn6Lc9tq.js";
|
|
15
|
-
const Ei = -1, An = 0, dn = 1, mn = 2,
|
|
15
|
+
const Ei = -1, An = 0, dn = 1, mn = 2, _r = 3, Cr = 4, xr = 5, Ir = 6, Ti = 7, gi = 8, Zr = typeof self == "object" ? self : globalThis, Hs = (e, t) => {
|
|
16
16
|
const n = (u, i) => (e.set(i, u), u), r = (u) => {
|
|
17
17
|
if (e.has(u))
|
|
18
18
|
return e.get(u);
|
|
@@ -33,19 +33,19 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
|
|
|
33
33
|
o[r(l)] = r(c);
|
|
34
34
|
return o;
|
|
35
35
|
}
|
|
36
|
-
case
|
|
36
|
+
case _r:
|
|
37
37
|
return n(new Date(a), u);
|
|
38
|
-
case
|
|
38
|
+
case Cr: {
|
|
39
39
|
const { source: o, flags: l } = a;
|
|
40
40
|
return n(new RegExp(o, l), u);
|
|
41
41
|
}
|
|
42
|
-
case
|
|
42
|
+
case xr: {
|
|
43
43
|
const o = n(/* @__PURE__ */ new Map(), u);
|
|
44
44
|
for (const [l, c] of a)
|
|
45
45
|
o.set(r(l), r(c));
|
|
46
46
|
return o;
|
|
47
47
|
}
|
|
48
|
-
case
|
|
48
|
+
case Ir: {
|
|
49
49
|
const o = n(/* @__PURE__ */ new Set(), u);
|
|
50
50
|
for (const l of a)
|
|
51
51
|
o.add(r(l));
|
|
@@ -53,17 +53,17 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
|
|
|
53
53
|
}
|
|
54
54
|
case Ti: {
|
|
55
55
|
const { name: o, message: l } = a;
|
|
56
|
-
return n(new
|
|
56
|
+
return n(new Zr[o](l), u);
|
|
57
57
|
}
|
|
58
58
|
case gi:
|
|
59
59
|
return n(BigInt(a), u);
|
|
60
60
|
case "BigInt":
|
|
61
61
|
return n(Object(BigInt(a)), u);
|
|
62
62
|
}
|
|
63
|
-
return n(new
|
|
63
|
+
return n(new Zr[i](a), u);
|
|
64
64
|
};
|
|
65
65
|
return r;
|
|
66
|
-
},
|
|
66
|
+
}, eu = (e) => Hs(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: Us } = {}, { keys: vs } = Object, Ot = (e) => {
|
|
67
67
|
const t = typeof e;
|
|
68
68
|
if (t !== "object" || !e)
|
|
69
69
|
return [An, t];
|
|
@@ -74,13 +74,13 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
|
|
|
74
74
|
case "Object":
|
|
75
75
|
return [mn, ot];
|
|
76
76
|
case "Date":
|
|
77
|
-
return [Ar, ot];
|
|
78
|
-
case "RegExp":
|
|
79
77
|
return [_r, ot];
|
|
80
|
-
case "
|
|
78
|
+
case "RegExp":
|
|
81
79
|
return [Cr, ot];
|
|
82
|
-
case "
|
|
80
|
+
case "Map":
|
|
83
81
|
return [xr, ot];
|
|
82
|
+
case "Set":
|
|
83
|
+
return [Ir, ot];
|
|
84
84
|
}
|
|
85
85
|
return n.includes("Array") ? [dn, n] : n.includes("Error") ? [Ti, n] : [mn, n];
|
|
86
86
|
}, tn = ([e, t]) => e === An && (t === "function" || t === "symbol"), zs = (e, t, n, r) => {
|
|
@@ -134,19 +134,19 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
|
|
|
134
134
|
(e || !tn(Ot(a[E]))) && h.push([i(E), i(a[E])]);
|
|
135
135
|
return f;
|
|
136
136
|
}
|
|
137
|
-
case
|
|
137
|
+
case _r:
|
|
138
138
|
return u([o, a.toISOString()], a);
|
|
139
|
-
case
|
|
139
|
+
case Cr: {
|
|
140
140
|
const { source: h, flags: f } = a;
|
|
141
141
|
return u([o, { source: h, flags: f }], a);
|
|
142
142
|
}
|
|
143
|
-
case
|
|
143
|
+
case xr: {
|
|
144
144
|
const h = [], f = u([o, h], a);
|
|
145
145
|
for (const [E, m] of a)
|
|
146
146
|
(e || !(tn(Ot(E)) || tn(Ot(m)))) && h.push([i(E), i(m)]);
|
|
147
147
|
return f;
|
|
148
148
|
}
|
|
149
|
-
case
|
|
149
|
+
case Ir: {
|
|
150
150
|
const h = [], f = u([o, h], a);
|
|
151
151
|
for (const E of a)
|
|
152
152
|
(e || !tn(Ot(E))) && h.push(i(E));
|
|
@@ -157,13 +157,13 @@ const Ei = -1, An = 0, dn = 1, mn = 2, Ar = 3, _r = 4, Cr = 5, xr = 6, Ti = 7, g
|
|
|
157
157
|
return u([o, { name: l, message: c }], a);
|
|
158
158
|
};
|
|
159
159
|
return i;
|
|
160
|
-
},
|
|
160
|
+
}, tu = (e, { json: t, lossy: n } = {}) => {
|
|
161
161
|
const r = [];
|
|
162
162
|
return zs(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
163
163
|
}, Tt = typeof structuredClone == "function" ? (
|
|
164
164
|
/* c8 ignore start */
|
|
165
|
-
(e, t) => t && ("json" in t || "lossy" in t) ?
|
|
166
|
-
) : (e, t) =>
|
|
165
|
+
(e, t) => t && ("json" in t || "lossy" in t) ? eu(tu(e, t)) : structuredClone(e)
|
|
166
|
+
) : (e, t) => eu(tu(e, t));
|
|
167
167
|
let Qt = class {
|
|
168
168
|
/**
|
|
169
169
|
* @constructor
|
|
@@ -223,7 +223,7 @@ const nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
223
223
|
overloadedBoolean: Ai,
|
|
224
224
|
spaceSeparated: re
|
|
225
225
|
}, Symbol.toStringTag, { value: "Module" })), wn = Object.keys(nr);
|
|
226
|
-
let
|
|
226
|
+
let kr = class extends Se {
|
|
227
227
|
/**
|
|
228
228
|
* @constructor
|
|
229
229
|
* @param {string} property
|
|
@@ -233,15 +233,15 @@ let Ir = class extends Se {
|
|
|
233
233
|
*/
|
|
234
234
|
constructor(t, n, r, u) {
|
|
235
235
|
let i = -1;
|
|
236
|
-
if (super(t, n),
|
|
236
|
+
if (super(t, n), nu(this, "space", u), typeof r == "number")
|
|
237
237
|
for (; ++i < wn.length; ) {
|
|
238
238
|
const a = wn[i];
|
|
239
|
-
|
|
239
|
+
nu(this, wn[i], (r & nr[a]) === nr[a]);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
|
-
|
|
244
|
-
function
|
|
243
|
+
kr.prototype.defined = !0;
|
|
244
|
+
function nu(e, t, n) {
|
|
245
245
|
n && (e[t] = n);
|
|
246
246
|
}
|
|
247
247
|
const js = {}.hasOwnProperty;
|
|
@@ -250,7 +250,7 @@ function At(e) {
|
|
|
250
250
|
let r;
|
|
251
251
|
for (r in e.properties)
|
|
252
252
|
if (js.call(e.properties, r)) {
|
|
253
|
-
const u = e.properties[r], i = new
|
|
253
|
+
const u = e.properties[r], i = new kr(
|
|
254
254
|
r,
|
|
255
255
|
e.transform(e.attributes || {}, r),
|
|
256
256
|
u,
|
|
@@ -1267,24 +1267,24 @@ const ki = At({
|
|
|
1267
1267
|
z: null,
|
|
1268
1268
|
zoomAndPan: null
|
|
1269
1269
|
}
|
|
1270
|
-
}), Ws = /^data[-\w.:]+$/i,
|
|
1271
|
-
function
|
|
1270
|
+
}), Ws = /^data[-\w.:]+$/i, ru = /-[a-z]/g, Qs = /[A-Z]/g;
|
|
1271
|
+
function Sr(e, t) {
|
|
1272
1272
|
const n = jt(t);
|
|
1273
1273
|
let r = t, u = Se;
|
|
1274
1274
|
if (n in e.normal)
|
|
1275
1275
|
return e.property[e.normal[n]];
|
|
1276
1276
|
if (n.length > 4 && n.slice(0, 4) === "data" && Ws.test(t)) {
|
|
1277
1277
|
if (t.charAt(4) === "-") {
|
|
1278
|
-
const i = t.slice(5).replace(
|
|
1278
|
+
const i = t.slice(5).replace(ru, Xs);
|
|
1279
1279
|
r = "data" + i.charAt(0).toUpperCase() + i.slice(1);
|
|
1280
1280
|
} else {
|
|
1281
1281
|
const i = t.slice(4);
|
|
1282
|
-
if (!
|
|
1282
|
+
if (!ru.test(i)) {
|
|
1283
1283
|
let a = i.replace(Qs, Gs);
|
|
1284
1284
|
a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a;
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
u =
|
|
1287
|
+
u = kr;
|
|
1288
1288
|
}
|
|
1289
1289
|
return new u(r, t);
|
|
1290
1290
|
}
|
|
@@ -1295,7 +1295,7 @@ function Xs(e) {
|
|
|
1295
1295
|
return e.charAt(1).toUpperCase();
|
|
1296
1296
|
}
|
|
1297
1297
|
const _n = bi([Ci, _i, ki, Si, qs], "html"), Gt = bi([Ci, _i, ki, Si, Vs], "svg");
|
|
1298
|
-
function
|
|
1298
|
+
function uu(e) {
|
|
1299
1299
|
const t = [], n = String(e || "");
|
|
1300
1300
|
let r = n.indexOf(","), u = 0, i = !1;
|
|
1301
1301
|
for (; !i; ) {
|
|
@@ -1311,13 +1311,13 @@ function yi(e, t) {
|
|
|
1311
1311
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
1312
1312
|
).trim();
|
|
1313
1313
|
}
|
|
1314
|
-
const
|
|
1314
|
+
const iu = /[#.]/g;
|
|
1315
1315
|
function Ks(e, t) {
|
|
1316
1316
|
const n = e || "", r = {};
|
|
1317
1317
|
let u = 0, i, a;
|
|
1318
1318
|
for (; u < n.length; ) {
|
|
1319
|
-
|
|
1320
|
-
const o =
|
|
1319
|
+
iu.lastIndex = u;
|
|
1320
|
+
const o = iu.exec(n), l = n.slice(u, o ? o.index : n.length);
|
|
1321
1321
|
l && (i ? i === "#" ? r.id = l : Array.isArray(r.className) ? r.className.push(l) : r.className = [l] : a = l, u += l.length), o && (i = o[0], u++);
|
|
1322
1322
|
}
|
|
1323
1323
|
return {
|
|
@@ -1328,7 +1328,7 @@ function Ks(e, t) {
|
|
|
1328
1328
|
children: []
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function au(e) {
|
|
1332
1332
|
const t = String(e || "").trim();
|
|
1333
1333
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
1334
1334
|
}
|
|
@@ -1384,19 +1384,19 @@ function $s(e) {
|
|
|
1384
1384
|
return !!("children" in e && Array.isArray(e.children));
|
|
1385
1385
|
}
|
|
1386
1386
|
function Js(e, t, n, r) {
|
|
1387
|
-
const u =
|
|
1387
|
+
const u = Sr(e, n);
|
|
1388
1388
|
let i = -1, a;
|
|
1389
1389
|
if (r != null) {
|
|
1390
1390
|
if (typeof r == "number") {
|
|
1391
1391
|
if (Number.isNaN(r)) return;
|
|
1392
1392
|
a = r;
|
|
1393
|
-
} else typeof r == "boolean" ? a = r : typeof r == "string" ? u.spaceSeparated ? a =
|
|
1393
|
+
} else typeof r == "boolean" ? a = r : typeof r == "string" ? u.spaceSeparated ? a = au(r) : u.commaSeparated ? a = uu(r) : u.commaOrSpaceSeparated ? a = au(uu(r).join(" ")) : a = su(u, u.property, r) : Array.isArray(r) ? a = r.concat() : a = u.property === "style" ? Zs(r) : String(r);
|
|
1394
1394
|
if (Array.isArray(a)) {
|
|
1395
1395
|
const o = [];
|
|
1396
1396
|
for (; ++i < a.length; ) {
|
|
1397
1397
|
const l = (
|
|
1398
1398
|
/** @type {number | string} */
|
|
1399
|
-
|
|
1399
|
+
su(u, u.property, a[i])
|
|
1400
1400
|
);
|
|
1401
1401
|
o[i] = l;
|
|
1402
1402
|
}
|
|
@@ -1424,7 +1424,7 @@ function ur(e, t) {
|
|
|
1424
1424
|
else
|
|
1425
1425
|
throw new Error("Expected node, nodes, or string, got `" + t + "`");
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function su(e, t, n) {
|
|
1428
1428
|
if (typeof n == "string") {
|
|
1429
1429
|
if (e.number && n && !Number.isNaN(Number(n)))
|
|
1430
1430
|
return Number(n);
|
|
@@ -1497,7 +1497,7 @@ function uo(e) {
|
|
|
1497
1497
|
for (; ; ) {
|
|
1498
1498
|
let o = n[a];
|
|
1499
1499
|
if (o === void 0) {
|
|
1500
|
-
const l =
|
|
1500
|
+
const l = ou(t, n[a - 1]);
|
|
1501
1501
|
o = l === -1 ? t.length + 1 : l + 1, n[a] = o;
|
|
1502
1502
|
}
|
|
1503
1503
|
if (o > i)
|
|
@@ -1513,7 +1513,7 @@ function uo(e) {
|
|
|
1513
1513
|
function u(i) {
|
|
1514
1514
|
if (i && typeof i.line == "number" && typeof i.column == "number" && !Number.isNaN(i.line) && !Number.isNaN(i.column)) {
|
|
1515
1515
|
for (; n.length < i.line; ) {
|
|
1516
|
-
const o = n[n.length - 1], l =
|
|
1516
|
+
const o = n[n.length - 1], l = ou(t, o), c = l === -1 ? t.length + 1 : l + 1;
|
|
1517
1517
|
if (o === c) break;
|
|
1518
1518
|
n.push(c);
|
|
1519
1519
|
}
|
|
@@ -1522,7 +1522,7 @@ function uo(e) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function ou(e, t) {
|
|
1526
1526
|
const n = e.indexOf("\r", t), r = e.indexOf(`
|
|
1527
1527
|
`, t);
|
|
1528
1528
|
return r === -1 ? n : n === -1 || n + 1 === r ? r : n < r ? n : r;
|
|
@@ -1537,7 +1537,7 @@ const et = {
|
|
|
1537
1537
|
}, Li = {}.hasOwnProperty, io = Object.prototype;
|
|
1538
1538
|
function ao(e, t) {
|
|
1539
1539
|
const n = t || {};
|
|
1540
|
-
return
|
|
1540
|
+
return yr(
|
|
1541
1541
|
{
|
|
1542
1542
|
file: n.file || void 0,
|
|
1543
1543
|
location: !1,
|
|
@@ -1547,7 +1547,7 @@ function ao(e, t) {
|
|
|
1547
1547
|
e
|
|
1548
1548
|
);
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function yr(e, t) {
|
|
1551
1551
|
let n;
|
|
1552
1552
|
switch (t.nodeName) {
|
|
1553
1553
|
case "#comment": {
|
|
@@ -1602,7 +1602,7 @@ function Di(e, t) {
|
|
|
1602
1602
|
for (; ++n < t.length; ) {
|
|
1603
1603
|
const u = (
|
|
1604
1604
|
/** @type {RootContent} */
|
|
1605
|
-
|
|
1605
|
+
yr(e, t[n])
|
|
1606
1606
|
);
|
|
1607
1607
|
r.push(u);
|
|
1608
1608
|
}
|
|
@@ -1624,7 +1624,7 @@ function so(e, t) {
|
|
|
1624
1624
|
t
|
|
1625
1625
|
), l = o.sourceCodeLocation, c = l && l.startTag && dt(l.startTag), h = l && l.endTag && dt(l.endTag), f = (
|
|
1626
1626
|
/** @type {Root} */
|
|
1627
|
-
|
|
1627
|
+
yr(e, o.content)
|
|
1628
1628
|
);
|
|
1629
1629
|
c && h && e.file && (f.position = { start: c.end, end: h.start }), a.content = f;
|
|
1630
1630
|
}
|
|
@@ -1645,7 +1645,7 @@ function oo(e, t, n) {
|
|
|
1645
1645
|
let a;
|
|
1646
1646
|
if (n.attrs)
|
|
1647
1647
|
for (a in n.attrs)
|
|
1648
|
-
Li.call(n.attrs, a) && (i[
|
|
1648
|
+
Li.call(n.attrs, a) && (i[Sr(e.schema, a).property] = dt(
|
|
1649
1649
|
n.attrs[a]
|
|
1650
1650
|
));
|
|
1651
1651
|
n.startTag;
|
|
@@ -1656,29 +1656,29 @@ function oo(e, t, n) {
|
|
|
1656
1656
|
return r;
|
|
1657
1657
|
}
|
|
1658
1658
|
function dt(e) {
|
|
1659
|
-
const t =
|
|
1659
|
+
const t = lu({
|
|
1660
1660
|
line: e.startLine,
|
|
1661
1661
|
column: e.startCol,
|
|
1662
1662
|
offset: e.startOffset
|
|
1663
|
-
}), n =
|
|
1663
|
+
}), n = lu({
|
|
1664
1664
|
line: e.endLine,
|
|
1665
1665
|
column: e.endCol,
|
|
1666
1666
|
offset: e.endOffset
|
|
1667
1667
|
});
|
|
1668
1668
|
return t || n ? { start: t, end: n } : void 0;
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function lu(e) {
|
|
1671
1671
|
return e.line && e.column ? e : void 0;
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const cu = {}.hasOwnProperty;
|
|
1674
1674
|
function Ri(e, t) {
|
|
1675
1675
|
const n = t || {};
|
|
1676
1676
|
function r(u, ...i) {
|
|
1677
1677
|
let a = r.invalid;
|
|
1678
1678
|
const o = r.handlers;
|
|
1679
|
-
if (u &&
|
|
1679
|
+
if (u && cu.call(u, e)) {
|
|
1680
1680
|
const l = String(u[e]);
|
|
1681
|
-
a =
|
|
1681
|
+
a = cu.call(o, l) ? o[l] : r.unknown;
|
|
1682
1682
|
}
|
|
1683
1683
|
if (a)
|
|
1684
1684
|
return a.call(this, u, ...i);
|
|
@@ -1697,11 +1697,11 @@ function ho(e, t) {
|
|
|
1697
1697
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
1698
1698
|
childNodes: []
|
|
1699
1699
|
};
|
|
1700
|
-
return n.childNodes =
|
|
1700
|
+
return n.childNodes = Nr(e.children, n, t), _t(e, n), n;
|
|
1701
1701
|
}
|
|
1702
1702
|
function mo(e, t) {
|
|
1703
1703
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
1704
|
-
return n.childNodes =
|
|
1704
|
+
return n.childNodes = Nr(e.children, n, t), _t(e, n), n;
|
|
1705
1705
|
}
|
|
1706
1706
|
function po(e) {
|
|
1707
1707
|
const t = {
|
|
@@ -1755,10 +1755,10 @@ function go(e, t) {
|
|
|
1755
1755
|
childNodes: [],
|
|
1756
1756
|
parentNode: null
|
|
1757
1757
|
};
|
|
1758
|
-
return o.childNodes =
|
|
1758
|
+
return o.childNodes = Nr(e.children, o, r), _t(e, o), e.tagName === "template" && e.content && (o.content = mo(e.content, r)), o;
|
|
1759
1759
|
}
|
|
1760
1760
|
function bo(e, t, n) {
|
|
1761
|
-
const r =
|
|
1761
|
+
const r = Sr(e, t);
|
|
1762
1762
|
if (n === !1 || n === null || n === void 0 || typeof n == "number" && Number.isNaN(n) || !n && r.boolean)
|
|
1763
1763
|
return;
|
|
1764
1764
|
Array.isArray(n) && (n = r.commaSeparated ? yi(n) : Ni(n));
|
|
@@ -1772,7 +1772,7 @@ function bo(e, t, n) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
return u;
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function Nr(e, t, n) {
|
|
1776
1776
|
let r = -1;
|
|
1777
1777
|
const u = [];
|
|
1778
1778
|
if (e)
|
|
@@ -2548,7 +2548,7 @@ function Ho(e) {
|
|
|
2548
2548
|
function Ve(e) {
|
|
2549
2549
|
return Ho(e) || wt(e);
|
|
2550
2550
|
}
|
|
2551
|
-
function
|
|
2551
|
+
function fu(e) {
|
|
2552
2552
|
return Ve(e) || Fo(e);
|
|
2553
2553
|
}
|
|
2554
2554
|
function nn(e) {
|
|
@@ -2557,7 +2557,7 @@ function nn(e) {
|
|
|
2557
2557
|
function zi(e) {
|
|
2558
2558
|
return e === d.SPACE || e === d.LINE_FEED || e === d.TABULATION || e === d.FORM_FEED;
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function hu(e) {
|
|
2561
2561
|
return zi(e) || e === d.SOLIDUS || e === d.GREATER_THAN_SIGN;
|
|
2562
2562
|
}
|
|
2563
2563
|
function Uo(e) {
|
|
@@ -3440,7 +3440,7 @@ class vo {
|
|
|
3440
3440
|
// Script data double escape start state
|
|
3441
3441
|
//------------------------------------------------------------------
|
|
3442
3442
|
_stateScriptDataDoubleEscapeStart(t) {
|
|
3443
|
-
if (this.preprocessor.startsWith(ge.SCRIPT, !1) &&
|
|
3443
|
+
if (this.preprocessor.startsWith(ge.SCRIPT, !1) && hu(this.preprocessor.peek(ge.SCRIPT.length))) {
|
|
3444
3444
|
this._emitCodePoint(t);
|
|
3445
3445
|
for (let n = 0; n < ge.SCRIPT.length; n++)
|
|
3446
3446
|
this._emitCodePoint(this._consume());
|
|
@@ -3531,7 +3531,7 @@ class vo {
|
|
|
3531
3531
|
// Script data double escape end state
|
|
3532
3532
|
//------------------------------------------------------------------
|
|
3533
3533
|
_stateScriptDataDoubleEscapeEnd(t) {
|
|
3534
|
-
if (this.preprocessor.startsWith(ge.SCRIPT, !1) &&
|
|
3534
|
+
if (this.preprocessor.startsWith(ge.SCRIPT, !1) && hu(this.preprocessor.peek(ge.SCRIPT.length))) {
|
|
3535
3535
|
this._emitCodePoint(t);
|
|
3536
3536
|
for (let n = 0; n < ge.SCRIPT.length; n++)
|
|
3537
3537
|
this._emitCodePoint(this._consume());
|
|
@@ -4445,15 +4445,15 @@ class vo {
|
|
|
4445
4445
|
this.active = !1, this.preprocessor.pos = this.preprocessor.html.length - 1, this.consumedAfterSnapshot = 0, this.preprocessor.endOfChunkHit = !0;
|
|
4446
4446
|
return;
|
|
4447
4447
|
}
|
|
4448
|
-
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() &&
|
|
4448
|
+
t === 0 ? (this.preprocessor.pos = this.entityStartPos, this._flushCodePointConsumedAsCharacterReference(d.AMPERSAND), this.state = !this._isCharacterReferenceInAttribute() && fu(this.preprocessor.peek(1)) ? p.AMBIGUOUS_AMPERSAND : this.returnState) : this.state = this.returnState;
|
|
4449
4449
|
}
|
|
4450
4450
|
// Ambiguos ampersand state
|
|
4451
4451
|
//------------------------------------------------------------------
|
|
4452
4452
|
_stateAmbiguousAmpersand(t) {
|
|
4453
|
-
|
|
4453
|
+
fu(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === d.SEMICOLON && this._err(x.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
|
|
4454
4454
|
}
|
|
4455
4455
|
}
|
|
4456
|
-
const Yi = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]),
|
|
4456
|
+
const Yi = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P, s.RB, s.RP, s.RT, s.RTC]), du = /* @__PURE__ */ new Set([
|
|
4457
4457
|
...Yi,
|
|
4458
4458
|
s.CAPTION,
|
|
4459
4459
|
s.COLGROUP,
|
|
@@ -4473,7 +4473,7 @@ const Yi = /* @__PURE__ */ new Set([s.DD, s.DT, s.LI, s.OPTGROUP, s.OPTION, s.P,
|
|
|
4473
4473
|
s.TD,
|
|
4474
4474
|
s.TEMPLATE,
|
|
4475
4475
|
s.TH
|
|
4476
|
-
]), zo = /* @__PURE__ */ new Set([...pn, s.OL, s.UL]), Yo = /* @__PURE__ */ new Set([...pn, s.BUTTON]),
|
|
4476
|
+
]), zo = /* @__PURE__ */ new Set([...pn, s.OL, s.UL]), Yo = /* @__PURE__ */ new Set([...pn, s.BUTTON]), mu = /* @__PURE__ */ new Set([s.ANNOTATION_XML, s.MI, s.MN, s.MO, s.MS, s.MTEXT]), pu = /* @__PURE__ */ new Set([s.DESC, s.FOREIGN_OBJECT, s.TITLE]), jo = /* @__PURE__ */ new Set([s.TR, s.TEMPLATE, s.HTML]), qo = /* @__PURE__ */ new Set([s.TBODY, s.TFOOT, s.THEAD, s.TEMPLATE, s.HTML]), Vo = /* @__PURE__ */ new Set([s.TABLE, s.TEMPLATE, s.HTML]), Wo = /* @__PURE__ */ new Set([s.TD, s.TH]);
|
|
4477
4477
|
class Qo {
|
|
4478
4478
|
get currentTmplContentOrNode() {
|
|
4479
4479
|
return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;
|
|
@@ -4588,12 +4588,12 @@ class Qo {
|
|
|
4588
4588
|
break;
|
|
4589
4589
|
}
|
|
4590
4590
|
case O.SVG: {
|
|
4591
|
-
if (
|
|
4591
|
+
if (pu.has(u))
|
|
4592
4592
|
return !1;
|
|
4593
4593
|
break;
|
|
4594
4594
|
}
|
|
4595
4595
|
case O.MATHML: {
|
|
4596
|
-
if (
|
|
4596
|
+
if (mu.has(u))
|
|
4597
4597
|
return !1;
|
|
4598
4598
|
break;
|
|
4599
4599
|
}
|
|
@@ -4622,12 +4622,12 @@ class Qo {
|
|
|
4622
4622
|
break;
|
|
4623
4623
|
}
|
|
4624
4624
|
case O.SVG: {
|
|
4625
|
-
if (
|
|
4625
|
+
if (pu.has(n))
|
|
4626
4626
|
return !1;
|
|
4627
4627
|
break;
|
|
4628
4628
|
}
|
|
4629
4629
|
case O.MATHML: {
|
|
4630
|
-
if (
|
|
4630
|
+
if (mu.has(n))
|
|
4631
4631
|
return !1;
|
|
4632
4632
|
break;
|
|
4633
4633
|
}
|
|
@@ -4681,11 +4681,11 @@ class Qo {
|
|
|
4681
4681
|
this.pop();
|
|
4682
4682
|
}
|
|
4683
4683
|
generateImpliedEndTagsThoroughly() {
|
|
4684
|
-
for (;
|
|
4684
|
+
for (; du.has(this.currentTagId); )
|
|
4685
4685
|
this.pop();
|
|
4686
4686
|
}
|
|
4687
4687
|
generateImpliedEndTagsWithExclusion(t) {
|
|
4688
|
-
for (; this.currentTagId !== t &&
|
|
4688
|
+
for (; this.currentTagId !== t && du.has(this.currentTagId); )
|
|
4689
4689
|
this.pop();
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
@@ -4694,7 +4694,7 @@ var Pe;
|
|
|
4694
4694
|
(function(e) {
|
|
4695
4695
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
4696
4696
|
})(Pe || (Pe = {}));
|
|
4697
|
-
const
|
|
4697
|
+
const Eu = { type: Pe.Marker };
|
|
4698
4698
|
class Go {
|
|
4699
4699
|
constructor(t) {
|
|
4700
4700
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
|
@@ -4731,7 +4731,7 @@ class Go {
|
|
|
4731
4731
|
}
|
|
4732
4732
|
//Mutations
|
|
4733
4733
|
insertMarker() {
|
|
4734
|
-
this.entries.unshift(
|
|
4734
|
+
this.entries.unshift(Eu);
|
|
4735
4735
|
}
|
|
4736
4736
|
pushElement(t, n) {
|
|
4737
4737
|
this._ensureNoahArkCondition(t), this.entries.unshift({
|
|
@@ -4758,7 +4758,7 @@ class Go {
|
|
|
4758
4758
|
* @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker
|
|
4759
4759
|
*/
|
|
4760
4760
|
clearToLastMarker() {
|
|
4761
|
-
const t = this.entries.indexOf(
|
|
4761
|
+
const t = this.entries.indexOf(Eu);
|
|
4762
4762
|
t >= 0 ? this.entries.splice(0, t + 1) : this.entries.length = 0;
|
|
4763
4763
|
}
|
|
4764
4764
|
//Search
|
|
@@ -4996,7 +4996,7 @@ const We = {
|
|
|
4996
4996
|
"-//w3c//dtd html 4.01 frameset//",
|
|
4997
4997
|
"-//w3c//dtd html 4.01 transitional//"
|
|
4998
4998
|
];
|
|
4999
|
-
function
|
|
4999
|
+
function Tu(e, t) {
|
|
5000
5000
|
return t.some((n) => e.startsWith(n));
|
|
5001
5001
|
}
|
|
5002
5002
|
function el(e) {
|
|
@@ -5013,14 +5013,14 @@ function tl(e) {
|
|
|
5013
5013
|
if (n = n.toLowerCase(), Jo.has(n))
|
|
5014
5014
|
return Ie.QUIRKS;
|
|
5015
5015
|
let r = t === null ? $o : qi;
|
|
5016
|
-
if (
|
|
5016
|
+
if (Tu(n, r))
|
|
5017
5017
|
return Ie.QUIRKS;
|
|
5018
|
-
if (r = t === null ? Vi : Zo,
|
|
5018
|
+
if (r = t === null ? Vi : Zo, Tu(n, r))
|
|
5019
5019
|
return Ie.LIMITED_QUIRKS;
|
|
5020
5020
|
}
|
|
5021
5021
|
return Ie.NO_QUIRKS;
|
|
5022
5022
|
}
|
|
5023
|
-
const
|
|
5023
|
+
const gu = {
|
|
5024
5024
|
TEXT_HTML: "text/html",
|
|
5025
5025
|
APPLICATION_XML: "application/xhtml+xml"
|
|
5026
5026
|
}, nl = "definitionurl", rl = "definitionURL", ul = new Map([
|
|
@@ -5194,7 +5194,7 @@ function Qi(e) {
|
|
|
5194
5194
|
n != null && (e.attrs[t].name = n);
|
|
5195
5195
|
}
|
|
5196
5196
|
}
|
|
5197
|
-
function
|
|
5197
|
+
function Or(e) {
|
|
5198
5198
|
for (let t = 0; t < e.attrs.length; t++) {
|
|
5199
5199
|
const n = il.get(e.attrs[t].name);
|
|
5200
5200
|
n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace);
|
|
@@ -5212,7 +5212,7 @@ function fl(e, t, n) {
|
|
|
5212
5212
|
for (let r = 0; r < n.length; r++)
|
|
5213
5213
|
if (n[r].name === tt.ENCODING) {
|
|
5214
5214
|
const u = n[r].value.toLowerCase();
|
|
5215
|
-
return u ===
|
|
5215
|
+
return u === gu.TEXT_HTML || u === gu.APPLICATION_XML;
|
|
5216
5216
|
}
|
|
5217
5217
|
}
|
|
5218
5218
|
return t === O.SVG && (e === s.FOREIGN_OBJECT || e === s.DESC || e === s.TITLE);
|
|
@@ -5232,16 +5232,16 @@ const El = {
|
|
|
5232
5232
|
endLine: -1,
|
|
5233
5233
|
endCol: -1,
|
|
5234
5234
|
endOffset: -1
|
|
5235
|
-
}, Gi = /* @__PURE__ */ new Set([s.TABLE, s.TBODY, s.TFOOT, s.THEAD, s.TR]),
|
|
5235
|
+
}, Gi = /* @__PURE__ */ new Set([s.TABLE, s.TBODY, s.TFOOT, s.THEAD, s.TR]), bu = {
|
|
5236
5236
|
scriptingEnabled: !0,
|
|
5237
5237
|
sourceCodeLocationInfo: !1,
|
|
5238
5238
|
treeAdapter: We,
|
|
5239
5239
|
onParseError: null
|
|
5240
5240
|
};
|
|
5241
|
-
class
|
|
5241
|
+
class Au {
|
|
5242
5242
|
constructor(t, n, r = null, u = null) {
|
|
5243
5243
|
this.fragmentContext = r, this.scriptHandler = u, this.currentToken = null, this.stopped = !1, this.insertionMode = T.INITIAL, this.originalInsertionMode = T.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
|
|
5244
|
-
...
|
|
5244
|
+
...bu,
|
|
5245
5245
|
...t
|
|
5246
5246
|
}, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new vo(this.options, this), this.activeFormattingElements = new Go(this.treeAdapter), this.fragmentContextID = r ? Ct(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new Qo(this.document, this.treeAdapter, this);
|
|
5247
5247
|
}
|
|
@@ -5252,7 +5252,7 @@ class bu {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
static getFragmentParser(t, n) {
|
|
5254
5254
|
const r = {
|
|
5255
|
-
...
|
|
5255
|
+
...bu,
|
|
5256
5256
|
...n
|
|
5257
5257
|
};
|
|
5258
5258
|
t ?? (t = r.treeAdapter.createElement(_.TEMPLATE, O.HTML, []));
|
|
@@ -5884,7 +5884,7 @@ class bu {
|
|
|
5884
5884
|
break;
|
|
5885
5885
|
}
|
|
5886
5886
|
case T.IN_COLUMN_GROUP: {
|
|
5887
|
-
|
|
5887
|
+
Rr(this, t);
|
|
5888
5888
|
break;
|
|
5889
5889
|
}
|
|
5890
5890
|
case T.IN_TABLE_BODY: {
|
|
@@ -6086,7 +6086,7 @@ class bu {
|
|
|
6086
6086
|
case T.AFTER_FRAMESET:
|
|
6087
6087
|
case T.AFTER_AFTER_BODY:
|
|
6088
6088
|
case T.AFTER_AFTER_FRAMESET: {
|
|
6089
|
-
|
|
6089
|
+
Dr(this, t);
|
|
6090
6090
|
break;
|
|
6091
6091
|
}
|
|
6092
6092
|
}
|
|
@@ -6178,7 +6178,7 @@ function Cl(e, t, n) {
|
|
|
6178
6178
|
const r = e.treeAdapter.getNamespaceURI(n.element), { token: u } = n, i = e.treeAdapter.createElement(u.tagName, r, u.attrs);
|
|
6179
6179
|
e._adoptNodes(t, i), e.treeAdapter.appendChild(t, i), e.activeFormattingElements.insertElementAfterBookmark(i, u), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, i, u.tagID);
|
|
6180
6180
|
}
|
|
6181
|
-
function
|
|
6181
|
+
function Lr(e, t) {
|
|
6182
6182
|
for (let n = 0; n < ml; n++) {
|
|
6183
6183
|
const r = Tl(e, t);
|
|
6184
6184
|
if (!r)
|
|
@@ -6200,7 +6200,7 @@ function xl(e, t) {
|
|
|
6200
6200
|
function Il(e, t) {
|
|
6201
6201
|
e._appendCommentNode(t, e.document);
|
|
6202
6202
|
}
|
|
6203
|
-
function
|
|
6203
|
+
function Dr(e, t) {
|
|
6204
6204
|
if (e.stopped = !0, t.location) {
|
|
6205
6205
|
const n = e.fragmentContext ? 0 : 2;
|
|
6206
6206
|
for (let r = e.openElements.stackTop; r >= n; r--)
|
|
@@ -6498,13 +6498,13 @@ function ql(e, t) {
|
|
|
6498
6498
|
}
|
|
6499
6499
|
function Vl(e, t) {
|
|
6500
6500
|
const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);
|
|
6501
|
-
n && (
|
|
6501
|
+
n && (Lr(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
6502
6502
|
}
|
|
6503
6503
|
function Wl(e, t) {
|
|
6504
6504
|
e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
6505
6505
|
}
|
|
6506
6506
|
function Ql(e, t) {
|
|
6507
|
-
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (
|
|
6507
|
+
e._reconstructActiveFormattingElements(), e.openElements.hasInScope(s.NOBR) && (Lr(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, O.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
|
|
6508
6508
|
}
|
|
6509
6509
|
function Gl(e, t) {
|
|
6510
6510
|
e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
|
|
@@ -6540,7 +6540,7 @@ function tc(e, t) {
|
|
|
6540
6540
|
function nc(e, t) {
|
|
6541
6541
|
e.framesetOk = !1, e._switchToTextParsing(t, ae.RAWTEXT);
|
|
6542
6542
|
}
|
|
6543
|
-
function
|
|
6543
|
+
function _u(e, t) {
|
|
6544
6544
|
e._switchToTextParsing(t, ae.RAWTEXT);
|
|
6545
6545
|
}
|
|
6546
6546
|
function rc(e, t) {
|
|
@@ -6556,12 +6556,12 @@ function ac(e, t) {
|
|
|
6556
6556
|
e.openElements.hasInScope(s.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(s.RTC), e._insertElement(t, O.HTML);
|
|
6557
6557
|
}
|
|
6558
6558
|
function sc(e, t) {
|
|
6559
|
-
e._reconstructActiveFormattingElements(), Wi(t),
|
|
6559
|
+
e._reconstructActiveFormattingElements(), Wi(t), Or(t), t.selfClosing ? e._appendElement(t, O.MATHML) : e._insertElement(t, O.MATHML), t.ackSelfClosing = !0;
|
|
6560
6560
|
}
|
|
6561
6561
|
function oc(e, t) {
|
|
6562
|
-
e._reconstructActiveFormattingElements(), Qi(t),
|
|
6562
|
+
e._reconstructActiveFormattingElements(), Qi(t), Or(t), t.selfClosing ? e._appendElement(t, O.SVG) : e._insertElement(t, O.SVG), t.ackSelfClosing = !0;
|
|
6563
6563
|
}
|
|
6564
|
-
function
|
|
6564
|
+
function Cu(e, t) {
|
|
6565
6565
|
e._reconstructActiveFormattingElements(), e._insertElement(t, O.HTML);
|
|
6566
6566
|
}
|
|
6567
6567
|
function pe(e, t) {
|
|
@@ -6739,7 +6739,7 @@ function pe(e, t) {
|
|
|
6739
6739
|
}
|
|
6740
6740
|
case s.NOEMBED:
|
|
6741
6741
|
case s.NOFRAMES: {
|
|
6742
|
-
|
|
6742
|
+
_u(e, t);
|
|
6743
6743
|
break;
|
|
6744
6744
|
}
|
|
6745
6745
|
case s.FRAMESET: {
|
|
@@ -6751,7 +6751,7 @@ function pe(e, t) {
|
|
|
6751
6751
|
break;
|
|
6752
6752
|
}
|
|
6753
6753
|
case s.NOSCRIPT: {
|
|
6754
|
-
e.options.scriptingEnabled ?
|
|
6754
|
+
e.options.scriptingEnabled ? _u(e, t) : Cu(e, t);
|
|
6755
6755
|
break;
|
|
6756
6756
|
}
|
|
6757
6757
|
case s.PLAINTEXT: {
|
|
@@ -6771,7 +6771,7 @@ function pe(e, t) {
|
|
|
6771
6771
|
case s.COLGROUP:
|
|
6772
6772
|
break;
|
|
6773
6773
|
default:
|
|
6774
|
-
|
|
6774
|
+
Cu(e, t);
|
|
6775
6775
|
}
|
|
6776
6776
|
}
|
|
6777
6777
|
function lc(e, t) {
|
|
@@ -6839,7 +6839,7 @@ function xn(e, t) {
|
|
|
6839
6839
|
case s.SMALL:
|
|
6840
6840
|
case s.STRIKE:
|
|
6841
6841
|
case s.STRONG: {
|
|
6842
|
-
|
|
6842
|
+
Lr(e, t);
|
|
6843
6843
|
break;
|
|
6844
6844
|
}
|
|
6845
6845
|
case s.P: {
|
|
@@ -6925,7 +6925,7 @@ function xn(e, t) {
|
|
|
6925
6925
|
}
|
|
6926
6926
|
}
|
|
6927
6927
|
function ea(e, t) {
|
|
6928
|
-
e.tmplInsertionModeStack.length > 0 ? sa(e, t) :
|
|
6928
|
+
e.tmplInsertionModeStack.length > 0 ? sa(e, t) : Dr(e, t);
|
|
6929
6929
|
}
|
|
6930
6930
|
function bc(e, t) {
|
|
6931
6931
|
var n;
|
|
@@ -6956,7 +6956,7 @@ function Cc(e, t) {
|
|
|
6956
6956
|
e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = T.IN_COLUMN_GROUP;
|
|
6957
6957
|
}
|
|
6958
6958
|
function xc(e, t) {
|
|
6959
|
-
e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = T.IN_COLUMN_GROUP,
|
|
6959
|
+
e.openElements.clearBackToTableContext(), e._insertFakeElement(_.COLGROUP, s.COLGROUP), e.insertionMode = T.IN_COLUMN_GROUP, Rr(e, t);
|
|
6960
6960
|
}
|
|
6961
6961
|
function Ic(e, t) {
|
|
6962
6962
|
e.openElements.clearBackToTableContext(), e._insertElement(t, O.HTML), e.insertionMode = T.IN_TABLE_BODY;
|
|
@@ -7095,7 +7095,7 @@ function Lc(e, t) {
|
|
|
7095
7095
|
xn(e, t);
|
|
7096
7096
|
}
|
|
7097
7097
|
}
|
|
7098
|
-
function
|
|
7098
|
+
function Rr(e, t) {
|
|
7099
7099
|
switch (t.tagID) {
|
|
7100
7100
|
case s.HTML: {
|
|
7101
7101
|
pe(e, t);
|
|
@@ -7347,7 +7347,7 @@ function Bc(e, t) {
|
|
|
7347
7347
|
break;
|
|
7348
7348
|
}
|
|
7349
7349
|
case s.COL: {
|
|
7350
|
-
e.tmplInsertionModeStack[0] = T.IN_COLUMN_GROUP, e.insertionMode = T.IN_COLUMN_GROUP,
|
|
7350
|
+
e.tmplInsertionModeStack[0] = T.IN_COLUMN_GROUP, e.insertionMode = T.IN_COLUMN_GROUP, Rr(e, t);
|
|
7351
7351
|
break;
|
|
7352
7352
|
}
|
|
7353
7353
|
case s.TR: {
|
|
@@ -7367,7 +7367,7 @@ function Fc(e, t) {
|
|
|
7367
7367
|
t.tagID === s.TEMPLATE && ut(e, t);
|
|
7368
7368
|
}
|
|
7369
7369
|
function sa(e, t) {
|
|
7370
|
-
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) :
|
|
7370
|
+
e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : Dr(e, t);
|
|
7371
7371
|
}
|
|
7372
7372
|
function Hc(e, t) {
|
|
7373
7373
|
t.tagID === s.HTML ? pe(e, t) : Tn(e, t);
|
|
@@ -7457,7 +7457,7 @@ function Qc(e, t) {
|
|
|
7457
7457
|
la(e), e._startTagOutsideForeignContent(t);
|
|
7458
7458
|
else {
|
|
7459
7459
|
const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
|
|
7460
|
-
r === O.MATHML ? Wi(t) : r === O.SVG && (ll(t), Qi(t)),
|
|
7460
|
+
r === O.MATHML ? Wi(t) : r === O.SVG && (ll(t), Qi(t)), Or(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
|
|
7461
7461
|
}
|
|
7462
7462
|
}
|
|
7463
7463
|
function Gc(e, t) {
|
|
@@ -7640,13 +7640,13 @@ const u0 = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title
|
|
|
7640
7640
|
"mdxJsxTextElement",
|
|
7641
7641
|
"mdxTextExpression",
|
|
7642
7642
|
"mdxjsEsm"
|
|
7643
|
-
]),
|
|
7643
|
+
]), xu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
|
|
7644
7644
|
function da(e, t) {
|
|
7645
7645
|
const n = p0(e), r = Ri("type", {
|
|
7646
7646
|
handlers: { root: a0, element: s0, text: o0, comment: pa, doctype: l0, raw: f0 },
|
|
7647
7647
|
unknown: h0
|
|
7648
7648
|
}), u = {
|
|
7649
|
-
parser: n ? new
|
|
7649
|
+
parser: n ? new Au(xu) : Au.getFragmentParser(void 0, xu),
|
|
7650
7650
|
handle(o) {
|
|
7651
7651
|
r(o, u);
|
|
7652
7652
|
},
|
|
@@ -7841,7 +7841,7 @@ function T0(e) {
|
|
|
7841
7841
|
);
|
|
7842
7842
|
};
|
|
7843
7843
|
}
|
|
7844
|
-
function
|
|
7844
|
+
function Iu(e, t) {
|
|
7845
7845
|
const n = String(e);
|
|
7846
7846
|
if (typeof t != "string")
|
|
7847
7847
|
throw new TypeError("Expected character");
|
|
@@ -8050,8 +8050,8 @@ function B0(e) {
|
|
|
8050
8050
|
return [e, void 0];
|
|
8051
8051
|
e = e.slice(0, t.index);
|
|
8052
8052
|
let n = t[0], r = n.indexOf(")");
|
|
8053
|
-
const u =
|
|
8054
|
-
let i =
|
|
8053
|
+
const u = Iu(e, "(");
|
|
8054
|
+
let i = Iu(e, ")");
|
|
8055
8055
|
for (; r !== -1 && u > i; )
|
|
8056
8056
|
e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), i++;
|
|
8057
8057
|
return [e, n];
|
|
@@ -8221,9 +8221,9 @@ function nf(e, t) {
|
|
|
8221
8221
|
let f = -1;
|
|
8222
8222
|
if (typeof r == "object" && "length" in r)
|
|
8223
8223
|
for (; ++f < c; )
|
|
8224
|
-
i[f] =
|
|
8224
|
+
i[f] = ku(r[f]);
|
|
8225
8225
|
else {
|
|
8226
|
-
const k =
|
|
8226
|
+
const k = ku(r);
|
|
8227
8227
|
for (; ++f < c; )
|
|
8228
8228
|
i[f] = k;
|
|
8229
8229
|
}
|
|
@@ -8267,7 +8267,7 @@ function nf(e, t) {
|
|
|
8267
8267
|
function rf(e) {
|
|
8268
8268
|
return e == null ? "" : String(e);
|
|
8269
8269
|
}
|
|
8270
|
-
function
|
|
8270
|
+
function ku(e) {
|
|
8271
8271
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
8272
8272
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
8273
8273
|
}
|
|
@@ -8284,9 +8284,9 @@ function af(e, t, n) {
|
|
|
8284
8284
|
return ">" + (n ? "" : " ") + e;
|
|
8285
8285
|
}
|
|
8286
8286
|
function sf(e, t) {
|
|
8287
|
-
return
|
|
8287
|
+
return Su(e, t.inConstruct, !0) && !Su(e, t.notInConstruct, !1);
|
|
8288
8288
|
}
|
|
8289
|
-
function
|
|
8289
|
+
function Su(e, t, n) {
|
|
8290
8290
|
if (typeof t == "string" && (t = [t]), !t || t.length === 0)
|
|
8291
8291
|
return n;
|
|
8292
8292
|
let r = -1;
|
|
@@ -8295,7 +8295,7 @@ function ku(e, t, n) {
|
|
|
8295
8295
|
return !0;
|
|
8296
8296
|
return !1;
|
|
8297
8297
|
}
|
|
8298
|
-
function
|
|
8298
|
+
function yu(e, t, n, r) {
|
|
8299
8299
|
let u = -1;
|
|
8300
8300
|
for (; ++u < n.unsafe.length; )
|
|
8301
8301
|
if (n.unsafe[u].character === `
|
|
@@ -8365,7 +8365,7 @@ function ff(e, t, n, r) {
|
|
|
8365
8365
|
function hf(e, t, n) {
|
|
8366
8366
|
return (n ? "" : " ") + e;
|
|
8367
8367
|
}
|
|
8368
|
-
function
|
|
8368
|
+
function Pr(e) {
|
|
8369
8369
|
const t = e.options.quote || '"';
|
|
8370
8370
|
if (t !== '"' && t !== "'")
|
|
8371
8371
|
throw new Error(
|
|
@@ -8374,7 +8374,7 @@ function Rr(e) {
|
|
|
8374
8374
|
return t;
|
|
8375
8375
|
}
|
|
8376
8376
|
function df(e, t, n, r) {
|
|
8377
|
-
const u =
|
|
8377
|
+
const u = Pr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("definition");
|
|
8378
8378
|
let o = n.enter("label");
|
|
8379
8379
|
const l = n.createTracker(r);
|
|
8380
8380
|
let c = l.move("[");
|
|
@@ -8481,7 +8481,7 @@ function pf(e, t, n) {
|
|
|
8481
8481
|
return n.options.emphasis || "*";
|
|
8482
8482
|
}
|
|
8483
8483
|
const Ef = {};
|
|
8484
|
-
function
|
|
8484
|
+
function wr(e, t) {
|
|
8485
8485
|
const n = Ef, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, u = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
8486
8486
|
return Ca(e, r, u);
|
|
8487
8487
|
}
|
|
@@ -8492,11 +8492,11 @@ function Ca(e, t, n) {
|
|
|
8492
8492
|
if (t && "alt" in e && e.alt)
|
|
8493
8493
|
return e.alt;
|
|
8494
8494
|
if ("children" in e)
|
|
8495
|
-
return
|
|
8495
|
+
return Nu(e.children, t, n);
|
|
8496
8496
|
}
|
|
8497
|
-
return Array.isArray(e) ?
|
|
8497
|
+
return Array.isArray(e) ? Nu(e, t, n) : "";
|
|
8498
8498
|
}
|
|
8499
|
-
function
|
|
8499
|
+
function Nu(e, t, n) {
|
|
8500
8500
|
const r = [];
|
|
8501
8501
|
let u = -1;
|
|
8502
8502
|
for (; ++u < e.length; )
|
|
@@ -8511,7 +8511,7 @@ function gf(e, t) {
|
|
|
8511
8511
|
return Kt(e, function(r) {
|
|
8512
8512
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
8513
8513
|
return n = !0, lr;
|
|
8514
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
8514
|
+
}), !!((!e.depth || e.depth < 3) && wr(e) && (t.options.setext || n));
|
|
8515
8515
|
}
|
|
8516
8516
|
function bf(e, t, n, r) {
|
|
8517
8517
|
const u = Math.max(Math.min(6, e.depth || 1), 1), i = n.createTracker(r);
|
|
@@ -8551,7 +8551,7 @@ function Af() {
|
|
|
8551
8551
|
}
|
|
8552
8552
|
Ia.peek = _f;
|
|
8553
8553
|
function Ia(e, t, n, r) {
|
|
8554
|
-
const u =
|
|
8554
|
+
const u = Pr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.enter("image");
|
|
8555
8555
|
let o = n.enter("label");
|
|
8556
8556
|
const l = n.createTracker(r);
|
|
8557
8557
|
let c = l.move("![");
|
|
@@ -8622,7 +8622,7 @@ function xf() {
|
|
|
8622
8622
|
return "`";
|
|
8623
8623
|
}
|
|
8624
8624
|
function ya(e, t) {
|
|
8625
|
-
const n =
|
|
8625
|
+
const n = wr(e);
|
|
8626
8626
|
return !!(!t.options.resourceLink && // If there’s a url…
|
|
8627
8627
|
e.url && // And there’s a no title…
|
|
8628
8628
|
!e.title && // And the content of `node` is a single text node…
|
|
@@ -8634,7 +8634,7 @@ function ya(e, t) {
|
|
|
8634
8634
|
}
|
|
8635
8635
|
Na.peek = If;
|
|
8636
8636
|
function Na(e, t, n, r) {
|
|
8637
|
-
const u =
|
|
8637
|
+
const u = Pr(n), i = u === '"' ? "Quote" : "Apostrophe", a = n.createTracker(r);
|
|
8638
8638
|
let o, l;
|
|
8639
8639
|
if (ya(e, n)) {
|
|
8640
8640
|
const h = n.stack;
|
|
@@ -8701,7 +8701,7 @@ function Oa(e, t, n, r) {
|
|
|
8701
8701
|
function kf() {
|
|
8702
8702
|
return "[";
|
|
8703
8703
|
}
|
|
8704
|
-
function
|
|
8704
|
+
function Mr(e) {
|
|
8705
8705
|
const t = e.options.bullet || "*";
|
|
8706
8706
|
if (t !== "*" && t !== "+" && t !== "-")
|
|
8707
8707
|
throw new Error(
|
|
@@ -8710,7 +8710,7 @@ function wr(e) {
|
|
|
8710
8710
|
return t;
|
|
8711
8711
|
}
|
|
8712
8712
|
function Sf(e) {
|
|
8713
|
-
const t =
|
|
8713
|
+
const t = Mr(e), n = e.options.bulletOther;
|
|
8714
8714
|
if (!n)
|
|
8715
8715
|
return t === "*" ? "-" : "*";
|
|
8716
8716
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
@@ -8741,7 +8741,7 @@ function La(e) {
|
|
|
8741
8741
|
}
|
|
8742
8742
|
function Nf(e, t, n, r) {
|
|
8743
8743
|
const u = n.enter("list"), i = n.bulletCurrent;
|
|
8744
|
-
let a = e.ordered ? yf(n) :
|
|
8744
|
+
let a = e.ordered ? yf(n) : Mr(n);
|
|
8745
8745
|
const o = e.ordered ? a === "." ? ")" : "." : Sf(n);
|
|
8746
8746
|
let l = t && n.bulletLastUsed ? a === n.bulletLastUsed : !1;
|
|
8747
8747
|
if (!e.ordered) {
|
|
@@ -8777,7 +8777,7 @@ function Of(e) {
|
|
|
8777
8777
|
}
|
|
8778
8778
|
function Lf(e, t, n, r) {
|
|
8779
8779
|
const u = Of(n);
|
|
8780
|
-
let i = n.bulletCurrent ||
|
|
8780
|
+
let i = n.bulletCurrent || Mr(n);
|
|
8781
8781
|
t && t.type === "list" && t.ordered && (i = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + i);
|
|
8782
8782
|
let a = i.length + 1;
|
|
8783
8783
|
(u === "tab" || u === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (a = Math.ceil(a / 4) * 4);
|
|
@@ -8879,11 +8879,11 @@ function Hf(e, t, n) {
|
|
|
8879
8879
|
}
|
|
8880
8880
|
const Ra = {
|
|
8881
8881
|
blockquote: uf,
|
|
8882
|
-
break:
|
|
8882
|
+
break: yu,
|
|
8883
8883
|
code: ff,
|
|
8884
8884
|
definition: df,
|
|
8885
8885
|
emphasis: _a,
|
|
8886
|
-
hardBreak:
|
|
8886
|
+
hardBreak: yu,
|
|
8887
8887
|
heading: bf,
|
|
8888
8888
|
html: xa,
|
|
8889
8889
|
image: Ia,
|
|
@@ -8903,8 +8903,8 @@ function Uf() {
|
|
|
8903
8903
|
return {
|
|
8904
8904
|
enter: {
|
|
8905
8905
|
table: vf,
|
|
8906
|
-
tableData:
|
|
8907
|
-
tableHeader:
|
|
8906
|
+
tableData: Ou,
|
|
8907
|
+
tableHeader: Ou,
|
|
8908
8908
|
tableRow: Yf
|
|
8909
8909
|
},
|
|
8910
8910
|
exit: {
|
|
@@ -8938,7 +8938,7 @@ function Yf(e) {
|
|
|
8938
8938
|
function zn(e) {
|
|
8939
8939
|
this.exit(e);
|
|
8940
8940
|
}
|
|
8941
|
-
function
|
|
8941
|
+
function Ou(e) {
|
|
8942
8942
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
8943
8943
|
}
|
|
8944
8944
|
function jf(e) {
|
|
@@ -9030,8 +9030,8 @@ function Vf(e) {
|
|
|
9030
9030
|
function Wf() {
|
|
9031
9031
|
return {
|
|
9032
9032
|
exit: {
|
|
9033
|
-
taskListCheckValueChecked:
|
|
9034
|
-
taskListCheckValueUnchecked:
|
|
9033
|
+
taskListCheckValueChecked: Lu,
|
|
9034
|
+
taskListCheckValueUnchecked: Lu,
|
|
9035
9035
|
paragraph: Gf
|
|
9036
9036
|
}
|
|
9037
9037
|
};
|
|
@@ -9042,7 +9042,7 @@ function Qf() {
|
|
|
9042
9042
|
handlers: { listItem: Xf }
|
|
9043
9043
|
};
|
|
9044
9044
|
}
|
|
9045
|
-
function
|
|
9045
|
+
function Lu(e) {
|
|
9046
9046
|
const t = this.stack[this.stack.length - 2];
|
|
9047
9047
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
9048
9048
|
}
|
|
@@ -9108,7 +9108,7 @@ function cn(e, t, n, r) {
|
|
|
9108
9108
|
for (n && e.splice(t, n); i < r.length; )
|
|
9109
9109
|
a = r.slice(i, i + 1e4), a.unshift(t, 0), e.splice(...a), i += 1e4, t += 1e4;
|
|
9110
9110
|
}
|
|
9111
|
-
const
|
|
9111
|
+
const Du = {}.hasOwnProperty;
|
|
9112
9112
|
function Jf(e) {
|
|
9113
9113
|
const t = {};
|
|
9114
9114
|
let n = -1;
|
|
@@ -9119,11 +9119,11 @@ function Jf(e) {
|
|
|
9119
9119
|
function Zf(e, t) {
|
|
9120
9120
|
let n;
|
|
9121
9121
|
for (n in t) {
|
|
9122
|
-
const u = (
|
|
9122
|
+
const u = (Du.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n];
|
|
9123
9123
|
let a;
|
|
9124
9124
|
if (i)
|
|
9125
9125
|
for (a in i) {
|
|
9126
|
-
|
|
9126
|
+
Du.call(u, a) || (u[a] = []);
|
|
9127
9127
|
const o = i[a];
|
|
9128
9128
|
eh(
|
|
9129
9129
|
// @ts-expect-error Looks like a list.
|
|
@@ -9189,7 +9189,7 @@ function uh(e, t, n) {
|
|
|
9189
9189
|
let u, i;
|
|
9190
9190
|
return a;
|
|
9191
9191
|
function a(f) {
|
|
9192
|
-
return !fr(f) || !va.call(r, r.previous) ||
|
|
9192
|
+
return !fr(f) || !va.call(r, r.previous) || Br(r.events) ? n(f) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), o(f));
|
|
9193
9193
|
}
|
|
9194
9194
|
function o(f) {
|
|
9195
9195
|
return fr(f) ? (e.consume(f), o) : f === 64 ? (e.consume(f), l) : n(f);
|
|
@@ -9208,7 +9208,7 @@ function ih(e, t, n) {
|
|
|
9208
9208
|
const r = this;
|
|
9209
9209
|
return u;
|
|
9210
9210
|
function u(a) {
|
|
9211
|
-
return a !== 87 && a !== 119 || !Ha.call(r, r.previous) ||
|
|
9211
|
+
return a !== 87 && a !== 119 || !Ha.call(r, r.previous) || Br(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(th, e.attempt(Pa, e.attempt(wa, i), n), n)(a));
|
|
9212
9212
|
}
|
|
9213
9213
|
function i(a) {
|
|
9214
9214
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a);
|
|
@@ -9219,7 +9219,7 @@ function ah(e, t, n) {
|
|
|
9219
9219
|
let u = "", i = !1;
|
|
9220
9220
|
return a;
|
|
9221
9221
|
function a(f) {
|
|
9222
|
-
return (f === 72 || f === 104) && Ua.call(r, r.previous) && !
|
|
9222
|
+
return (f === 72 || f === 104) && Ua.call(r, r.previous) && !Br(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), u += String.fromCodePoint(f), e.consume(f), o) : n(f);
|
|
9223
9223
|
}
|
|
9224
9224
|
function o(f) {
|
|
9225
9225
|
if (Te(f) && u.length < 5)
|
|
@@ -9314,7 +9314,7 @@ function va(e) {
|
|
|
9314
9314
|
function fr(e) {
|
|
9315
9315
|
return e === 43 || e === 45 || e === 46 || e === 95 || me(e);
|
|
9316
9316
|
}
|
|
9317
|
-
function
|
|
9317
|
+
function Br(e) {
|
|
9318
9318
|
let t = e.length, n = !1;
|
|
9319
9319
|
for (; t--; ) {
|
|
9320
9320
|
const r = e[t][1];
|
|
@@ -9789,7 +9789,7 @@ function Lh(e, t) {
|
|
|
9789
9789
|
const E = new kh();
|
|
9790
9790
|
for (; ++n < e.length; ) {
|
|
9791
9791
|
const m = e[n], A = m[1];
|
|
9792
|
-
m[0] === "enter" ? A.type === "tableHead" ? (o = !1, l !== 0 && (
|
|
9792
|
+
m[0] === "enter" ? A.type === "tableHead" ? (o = !1, l !== 0 && (Ru(E, t, l, c, h), h = void 0, l = 0), c = {
|
|
9793
9793
|
type: "table",
|
|
9794
9794
|
start: Object.assign({}, A.start),
|
|
9795
9795
|
// Note: correct end is set later.
|
|
@@ -9801,7 +9801,7 @@ function Lh(e, t) {
|
|
|
9801
9801
|
end: Object.assign({}, A.end)
|
|
9802
9802
|
}, E.add(n, 0, [["enter", h, t]])), u = A.type === "tableDelimiterRow" ? 2 : h ? 3 : 1) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (i[1] !== 0 && (a[0] = a[1], f = rn(E, t, i, u, void 0, f), i = [0, 0, 0, 0]), a[2] = n)) : A.type === "tableCellDivider" && (r ? r = !1 : (i[1] !== 0 && (a[0] = a[1], f = rn(E, t, i, u, void 0, f)), i = a, a = [i[1], n, 0, 0])) : A.type === "tableHead" ? (o = !0, l = n) : A.type === "tableRow" || A.type === "tableDelimiterRow" ? (l = n, i[1] !== 0 ? (a[0] = a[1], f = rn(E, t, i, u, n, f)) : a[1] !== 0 && (f = rn(E, t, a, u, n, f)), u = 0) : u && (A.type === "data" || A.type === "tableDelimiterMarker" || A.type === "tableDelimiterFiller") && (a[3] = n);
|
|
9803
9803
|
}
|
|
9804
|
-
for (l !== 0 &&
|
|
9804
|
+
for (l !== 0 && Ru(E, t, l, c, h), E.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
9805
9805
|
const m = t.events[n];
|
|
9806
9806
|
m[0] === "enter" && m[1].type === "table" && (m[1]._align = yh(t.events, n));
|
|
9807
9807
|
}
|
|
@@ -9833,7 +9833,7 @@ function rn(e, t, n, r, u, i) {
|
|
|
9833
9833
|
}
|
|
9834
9834
|
return u !== void 0 && (i.end = Object.assign({}, ft(t.events, u)), e.add(u, 0, [["exit", i, t]]), i = void 0), i;
|
|
9835
9835
|
}
|
|
9836
|
-
function
|
|
9836
|
+
function Ru(e, t, n, r, u) {
|
|
9837
9837
|
const i = [], a = ft(t.events, n);
|
|
9838
9838
|
u && (u.end = Object.assign({}, a), i.push(["exit", u, t])), r.end = Object.assign({}, a), i.push(["exit", r, t]), e.add(n + 1, 0, i);
|
|
9839
9839
|
}
|
|
@@ -9913,7 +9913,7 @@ const za = Ss(
|
|
|
9913
9913
|
const u = e.current;
|
|
9914
9914
|
if (u)
|
|
9915
9915
|
return t(u), () => n(u);
|
|
9916
|
-
}, [t, n]), { ref:
|
|
9916
|
+
}, [t, n]), { ref: hi((u) => {
|
|
9917
9917
|
u && (e.current = u);
|
|
9918
9918
|
}, []) };
|
|
9919
9919
|
}, sE = ({ children: e }) => {
|
|
@@ -9945,7 +9945,7 @@ const za = Ss(
|
|
|
9945
9945
|
l.clear(), document.removeEventListener("scroll", c);
|
|
9946
9946
|
};
|
|
9947
9947
|
}, []);
|
|
9948
|
-
const a =
|
|
9948
|
+
const a = $r(() => ({
|
|
9949
9949
|
observe: (l) => {
|
|
9950
9950
|
if (l) {
|
|
9951
9951
|
if (!r.current) {
|
|
@@ -9959,7 +9959,7 @@ const za = Ss(
|
|
|
9959
9959
|
var c;
|
|
9960
9960
|
l && (i.current.delete(l), u.current.delete(l), (c = r.current) == null || c.unobserve(l));
|
|
9961
9961
|
}
|
|
9962
|
-
}), []), o =
|
|
9962
|
+
}), []), o = $r(
|
|
9963
9963
|
() => ({ activeAnchor: t, setActiveAnchor: n, ...a }),
|
|
9964
9964
|
[t, n, a]
|
|
9965
9965
|
);
|
|
@@ -9982,7 +9982,7 @@ const za = Ss(
|
|
|
9982
9982
|
indigo: "text-indigo-400 dark:text-indigo-600",
|
|
9983
9983
|
gray: "text-gray-400 dark:text-gray-600",
|
|
9984
9984
|
outline: ""
|
|
9985
|
-
},
|
|
9985
|
+
}, Pu = ({
|
|
9986
9986
|
color: e,
|
|
9987
9987
|
label: t,
|
|
9988
9988
|
className: n,
|
|
@@ -10120,8 +10120,8 @@ const za = Ss(
|
|
|
10120
10120
|
item: e,
|
|
10121
10121
|
onRequestClose: t
|
|
10122
10122
|
}) => {
|
|
10123
|
-
var
|
|
10124
|
-
const { activeAnchor:
|
|
10123
|
+
var i;
|
|
10124
|
+
const n = Ar(), { activeAnchor: r } = Ln(), [u] = Ls();
|
|
10125
10125
|
switch (e.type) {
|
|
10126
10126
|
case "category":
|
|
10127
10127
|
return /* @__PURE__ */ B.jsx(zh, { category: e, onRequestClose: t });
|
|
@@ -10129,7 +10129,7 @@ const za = Ss(
|
|
|
10129
10129
|
return /* @__PURE__ */ B.jsxs(
|
|
10130
10130
|
br,
|
|
10131
10131
|
{
|
|
10132
|
-
className: ({ isActive:
|
|
10132
|
+
className: ({ isActive: a }) => fn({ isActive: a }),
|
|
10133
10133
|
to: mi(e.id),
|
|
10134
10134
|
onClick: t,
|
|
10135
10135
|
end: !0,
|
|
@@ -10137,7 +10137,7 @@ const za = Ss(
|
|
|
10137
10137
|
e.icon && /* @__PURE__ */ B.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
|
|
10138
10138
|
e.badge ? /* @__PURE__ */ B.jsxs(B.Fragment, { children: [
|
|
10139
10139
|
/* @__PURE__ */ B.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
|
|
10140
|
-
/* @__PURE__ */ B.jsx(
|
|
10140
|
+
/* @__PURE__ */ B.jsx(Pu, { ...e.badge })
|
|
10141
10141
|
] }) : e.label
|
|
10142
10142
|
]
|
|
10143
10143
|
}
|
|
@@ -10162,17 +10162,17 @@ const za = Ss(
|
|
|
10162
10162
|
to: {
|
|
10163
10163
|
pathname: e.href.split("#")[0],
|
|
10164
10164
|
hash: e.href.split("#")[1],
|
|
10165
|
-
search:
|
|
10165
|
+
search: u.toString()
|
|
10166
10166
|
},
|
|
10167
10167
|
[Ya]: e.href.split("#")[1],
|
|
10168
10168
|
className: fn({
|
|
10169
|
-
isActive: e.href.
|
|
10170
|
-
className: ((
|
|
10169
|
+
isActive: e.href === [n.pathname, r].join("#"),
|
|
10170
|
+
className: ((i = e.badge) == null ? void 0 : i.placement) !== "start" && "justify-between"
|
|
10171
10171
|
}),
|
|
10172
10172
|
onClick: t,
|
|
10173
10173
|
children: e.badge ? /* @__PURE__ */ B.jsxs(B.Fragment, { children: [
|
|
10174
10174
|
/* @__PURE__ */ B.jsx("span", { className: "truncate", title: e.label, children: e.label }),
|
|
10175
|
-
/* @__PURE__ */ B.jsx(
|
|
10175
|
+
/* @__PURE__ */ B.jsx(Pu, { ...e.badge })
|
|
10176
10176
|
] }) : /* @__PURE__ */ B.jsx("span", { className: "break-all", children: e.label })
|
|
10177
10177
|
}
|
|
10178
10178
|
);
|
|
@@ -10183,7 +10183,7 @@ const za = Ss(
|
|
|
10183
10183
|
n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
|
|
10184
10184
|
}, ja = () => {
|
|
10185
10185
|
const { setActiveAnchor: e } = Ln();
|
|
10186
|
-
return
|
|
10186
|
+
return hi(
|
|
10187
10187
|
(n) => {
|
|
10188
10188
|
const r = n.replace(/^#/, ""), u = r.split("/").at(0), i = document.getElementById(decodeURIComponent(r)), a = document.querySelector(
|
|
10189
10189
|
`[${Ya}="${u}"]`
|
|
@@ -10193,7 +10193,7 @@ const za = Ss(
|
|
|
10193
10193
|
[e]
|
|
10194
10194
|
);
|
|
10195
10195
|
}, oE = () => {
|
|
10196
|
-
const e =
|
|
10196
|
+
const e = Ar(), { setActiveAnchor: t } = Ln(), n = ja();
|
|
10197
10197
|
Yt(() => {
|
|
10198
10198
|
if (e.hash && !n(e.hash)) {
|
|
10199
10199
|
const r = new MutationObserver((u, i) => {
|
|
@@ -10203,11 +10203,11 @@ const za = Ss(
|
|
|
10203
10203
|
}
|
|
10204
10204
|
}, [e.hash, n, t]);
|
|
10205
10205
|
}, qa = (e) => {
|
|
10206
|
-
const t =
|
|
10207
|
-
var
|
|
10208
|
-
(
|
|
10206
|
+
const t = Ar(), n = ja(), r = Ds(e.to), [u, i] = r.split("#"), a = (o) => {
|
|
10207
|
+
var l;
|
|
10208
|
+
(l = e.onClick) == null || l.call(e, o), !(i !== t.hash.slice(1) || u !== t.pathname) && (o.preventDefault(), n(i));
|
|
10209
10209
|
};
|
|
10210
|
-
return /* @__PURE__ */ B.jsx(br, { ...e, onClick:
|
|
10210
|
+
return /* @__PURE__ */ B.jsx(br, { ...e, onClick: a });
|
|
10211
10211
|
}, qh = di("group relative", {
|
|
10212
10212
|
variants: {
|
|
10213
10213
|
level: {
|
|
@@ -10313,7 +10313,7 @@ const za = Ss(
|
|
|
10313
10313
|
a: ({ href: e, node: t, ...n }) => e && !e.startsWith("http") ? /* @__PURE__ */ B.jsx(qa, { to: e, relative: "path", ...n }) : /* @__PURE__ */ B.jsx("a", { href: e, target: "_blank", ...n, rel: "noreferrer" }),
|
|
10314
10314
|
Callout: Je,
|
|
10315
10315
|
Stepper: Bs,
|
|
10316
|
-
SyntaxHighlight:
|
|
10316
|
+
SyntaxHighlight: Jr,
|
|
10317
10317
|
tip: (e) => /* @__PURE__ */ B.jsx(Je, { type: "tip", ...e }),
|
|
10318
10318
|
info: (e) => /* @__PURE__ */ B.jsx(Je, { type: "info", ...e }),
|
|
10319
10319
|
note: (e) => /* @__PURE__ */ B.jsx(Je, { type: "note", ...e }),
|
|
@@ -10327,7 +10327,7 @@ const za = Ss(
|
|
|
10327
10327
|
return /* @__PURE__ */ B.jsx(Qh, { className: e, children: t });
|
|
10328
10328
|
const i = e == null ? void 0 : e.match(/language?-(\w+)/);
|
|
10329
10329
|
return /* @__PURE__ */ B.jsx(
|
|
10330
|
-
|
|
10330
|
+
Jr,
|
|
10331
10331
|
{
|
|
10332
10332
|
language: i == null ? void 0 : i[1],
|
|
10333
10333
|
className: "rounded-xl p-4 border dark:!bg-foreground/10 dark:border-transparent",
|
|
@@ -10338,14 +10338,14 @@ const za = Ss(
|
|
|
10338
10338
|
);
|
|
10339
10339
|
}
|
|
10340
10340
|
}, Xh = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Kh = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, $h = {};
|
|
10341
|
-
function
|
|
10341
|
+
function wu(e, t) {
|
|
10342
10342
|
return ($h.jsx ? Kh : Xh).test(e);
|
|
10343
10343
|
}
|
|
10344
10344
|
const Jh = /[ \t\n\f\r]/g;
|
|
10345
10345
|
function Zh(e) {
|
|
10346
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
10346
|
+
return typeof e == "object" ? e.type === "text" ? Mu(e.value) : !1 : Mu(e);
|
|
10347
10347
|
}
|
|
10348
|
-
function
|
|
10348
|
+
function Mu(e) {
|
|
10349
10349
|
return e.replace(Jh, "") === "";
|
|
10350
10350
|
}
|
|
10351
10351
|
class Zt {
|
|
@@ -10418,7 +10418,7 @@ const dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10418
10418
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
10419
10419
|
Object.keys(dr)
|
|
10420
10420
|
);
|
|
10421
|
-
class
|
|
10421
|
+
class Fr extends Ae {
|
|
10422
10422
|
/**
|
|
10423
10423
|
* @constructor
|
|
10424
10424
|
* @param {string} property
|
|
@@ -10434,21 +10434,21 @@ class Br extends Ae {
|
|
|
10434
10434
|
*/
|
|
10435
10435
|
constructor(t, n, r, u) {
|
|
10436
10436
|
let i = -1;
|
|
10437
|
-
if (super(t, n),
|
|
10437
|
+
if (super(t, n), Bu(this, "space", u), typeof r == "number")
|
|
10438
10438
|
for (; ++i < Yn.length; ) {
|
|
10439
10439
|
const a = Yn[i];
|
|
10440
|
-
|
|
10440
|
+
Bu(this, Yn[i], (r & dr[a]) === dr[a]);
|
|
10441
10441
|
}
|
|
10442
10442
|
}
|
|
10443
10443
|
}
|
|
10444
|
-
|
|
10445
|
-
function
|
|
10444
|
+
Fr.prototype.defined = !0;
|
|
10445
|
+
function Bu(e, t, n) {
|
|
10446
10446
|
n && (e[t] = n);
|
|
10447
10447
|
}
|
|
10448
10448
|
function It(e) {
|
|
10449
10449
|
const t = {}, n = {};
|
|
10450
10450
|
for (const [r, u] of Object.entries(e.properties)) {
|
|
10451
|
-
const i = new
|
|
10451
|
+
const i = new Fr(
|
|
10452
10452
|
r,
|
|
10453
10453
|
e.transform(e.attributes || {}, r),
|
|
10454
10454
|
u,
|
|
@@ -11483,7 +11483,7 @@ const td = It({
|
|
|
11483
11483
|
xLinkTitle: "xlinkTitle",
|
|
11484
11484
|
xLinkType: "xlinkType",
|
|
11485
11485
|
xmlnsXLink: "xmlnsXlink"
|
|
11486
|
-
}, ud = /[A-Z]/g,
|
|
11486
|
+
}, ud = /[A-Z]/g, Fu = /-[a-z]/g, id = /^data[-\w.:]+$/i;
|
|
11487
11487
|
function ad(e, t) {
|
|
11488
11488
|
const n = hr(t);
|
|
11489
11489
|
let r = t, u = Ae;
|
|
@@ -11491,16 +11491,16 @@ function ad(e, t) {
|
|
|
11491
11491
|
return e.property[e.normal[n]];
|
|
11492
11492
|
if (n.length > 4 && n.slice(0, 4) === "data" && id.test(t)) {
|
|
11493
11493
|
if (t.charAt(4) === "-") {
|
|
11494
|
-
const i = t.slice(5).replace(
|
|
11494
|
+
const i = t.slice(5).replace(Fu, od);
|
|
11495
11495
|
r = "data" + i.charAt(0).toUpperCase() + i.slice(1);
|
|
11496
11496
|
} else {
|
|
11497
11497
|
const i = t.slice(4);
|
|
11498
|
-
if (!
|
|
11498
|
+
if (!Fu.test(i)) {
|
|
11499
11499
|
let a = i.replace(ud, sd);
|
|
11500
11500
|
a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a;
|
|
11501
11501
|
}
|
|
11502
11502
|
}
|
|
11503
|
-
u =
|
|
11503
|
+
u = Fr;
|
|
11504
11504
|
}
|
|
11505
11505
|
return new u(r, t);
|
|
11506
11506
|
}
|
|
@@ -11510,11 +11510,11 @@ function sd(e) {
|
|
|
11510
11510
|
function od(e) {
|
|
11511
11511
|
return e.charAt(1).toUpperCase();
|
|
11512
11512
|
}
|
|
11513
|
-
const ld = Va([Qa, td, Ka, $a, Ja], "html"),
|
|
11514
|
-
var ct = {}, jn,
|
|
11513
|
+
const ld = Va([Qa, td, Ka, $a, Ja], "html"), Hr = Va([Qa, nd, Ka, $a, Ja], "svg");
|
|
11514
|
+
var ct = {}, jn, Hu;
|
|
11515
11515
|
function cd() {
|
|
11516
|
-
if (
|
|
11517
|
-
|
|
11516
|
+
if (Hu) return jn;
|
|
11517
|
+
Hu = 1;
|
|
11518
11518
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, u = /^:\s*/, i = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, o = /^\s+|\s+$/g, l = `
|
|
11519
11519
|
`, c = "/", h = "*", f = "", E = "comment", m = "declaration";
|
|
11520
11520
|
jn = function(k, L) {
|
|
@@ -11601,10 +11601,10 @@ function cd() {
|
|
|
11601
11601
|
}
|
|
11602
11602
|
return jn;
|
|
11603
11603
|
}
|
|
11604
|
-
var
|
|
11604
|
+
var Uu;
|
|
11605
11605
|
function fd() {
|
|
11606
|
-
if (
|
|
11607
|
-
|
|
11606
|
+
if (Uu) return ct;
|
|
11607
|
+
Uu = 1;
|
|
11608
11608
|
var e = ct && ct.__importDefault || function(r) {
|
|
11609
11609
|
return r && r.__esModule ? r : { default: r };
|
|
11610
11610
|
};
|
|
@@ -11624,10 +11624,10 @@ function fd() {
|
|
|
11624
11624
|
}
|
|
11625
11625
|
return ct;
|
|
11626
11626
|
}
|
|
11627
|
-
var Rt = {},
|
|
11627
|
+
var Rt = {}, vu;
|
|
11628
11628
|
function hd() {
|
|
11629
|
-
if (
|
|
11630
|
-
|
|
11629
|
+
if (vu) return Rt;
|
|
11630
|
+
vu = 1, Object.defineProperty(Rt, "__esModule", { value: !0 }), Rt.camelCase = void 0;
|
|
11631
11631
|
var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, u = /^-(ms)-/, i = function(c) {
|
|
11632
11632
|
return !c || n.test(c) || e.test(c);
|
|
11633
11633
|
}, a = function(c, h) {
|
|
@@ -11639,10 +11639,10 @@ function hd() {
|
|
|
11639
11639
|
};
|
|
11640
11640
|
return Rt.camelCase = l, Rt;
|
|
11641
11641
|
}
|
|
11642
|
-
var Pt,
|
|
11642
|
+
var Pt, zu;
|
|
11643
11643
|
function dd() {
|
|
11644
|
-
if (
|
|
11645
|
-
|
|
11644
|
+
if (zu) return Pt;
|
|
11645
|
+
zu = 1;
|
|
11646
11646
|
var e = Pt && Pt.__importDefault || function(u) {
|
|
11647
11647
|
return u && u.__esModule ? u : { default: u };
|
|
11648
11648
|
}, t = e(fd()), n = hd();
|
|
@@ -11657,15 +11657,15 @@ function dd() {
|
|
|
11657
11657
|
var md = dd();
|
|
11658
11658
|
const pd = /* @__PURE__ */ pi(md);
|
|
11659
11659
|
function zt(e) {
|
|
11660
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
11660
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Yu(e.position) : "start" in e || "end" in e ? Yu(e) : "line" in e || "column" in e ? mr(e) : "";
|
|
11661
11661
|
}
|
|
11662
11662
|
function mr(e) {
|
|
11663
|
-
return
|
|
11663
|
+
return ju(e && e.line) + ":" + ju(e && e.column);
|
|
11664
11664
|
}
|
|
11665
|
-
function
|
|
11665
|
+
function Yu(e) {
|
|
11666
11666
|
return mr(e && e.start) + "-" + mr(e && e.end);
|
|
11667
11667
|
}
|
|
11668
|
-
function
|
|
11668
|
+
function ju(e) {
|
|
11669
11669
|
return e && typeof e == "number" ? e : 1;
|
|
11670
11670
|
}
|
|
11671
11671
|
class Ee extends Error {
|
|
@@ -11755,7 +11755,7 @@ Ee.prototype.fatal = void 0;
|
|
|
11755
11755
|
Ee.prototype.place = void 0;
|
|
11756
11756
|
Ee.prototype.ruleId = void 0;
|
|
11757
11757
|
Ee.prototype.source = void 0;
|
|
11758
|
-
const
|
|
11758
|
+
const Ur = {}.hasOwnProperty, Ed = /* @__PURE__ */ new Map(), Td = /[A-Z]/g, gd = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), bd = /* @__PURE__ */ new Set(["td", "th"]), Za = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
11759
11759
|
function Ad(e, t) {
|
|
11760
11760
|
if (!t || t.Fragment === void 0)
|
|
11761
11761
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -11785,7 +11785,7 @@ function Ad(e, t) {
|
|
|
11785
11785
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
11786
11786
|
passKeys: t.passKeys !== !1,
|
|
11787
11787
|
passNode: t.passNode || !1,
|
|
11788
|
-
schema: t.space === "svg" ?
|
|
11788
|
+
schema: t.space === "svg" ? Hr : ld,
|
|
11789
11789
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
11790
11790
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
11791
11791
|
}, i = es(u, e, void 0);
|
|
@@ -11813,12 +11813,12 @@ function es(e, t, n) {
|
|
|
11813
11813
|
function _d(e, t, n) {
|
|
11814
11814
|
const r = e.schema;
|
|
11815
11815
|
let u = r;
|
|
11816
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (u =
|
|
11816
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (u = Hr, e.schema = u), e.ancestors.push(t);
|
|
11817
11817
|
const i = ns(e, t.tagName, !1), a = Od(e, t);
|
|
11818
|
-
let o =
|
|
11818
|
+
let o = zr(e, t);
|
|
11819
11819
|
return gd.has(t.tagName) && (o = o.filter(function(l) {
|
|
11820
11820
|
return typeof l == "string" ? !Zh(l) : !0;
|
|
11821
|
-
})), ts(e, a, i, t),
|
|
11821
|
+
})), ts(e, a, i, t), vr(a, o), e.ancestors.pop(), e.schema = r, e.create(t, i, a, n);
|
|
11822
11822
|
}
|
|
11823
11823
|
function Cd(e, t) {
|
|
11824
11824
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -11839,13 +11839,13 @@ function xd(e, t) {
|
|
|
11839
11839
|
function Id(e, t, n) {
|
|
11840
11840
|
const r = e.schema;
|
|
11841
11841
|
let u = r;
|
|
11842
|
-
t.name === "svg" && r.space === "html" && (u =
|
|
11843
|
-
const i = t.name === null ? e.Fragment : ns(e, t.name, !0), a = Ld(e, t), o =
|
|
11844
|
-
return ts(e, a, i, t),
|
|
11842
|
+
t.name === "svg" && r.space === "html" && (u = Hr, e.schema = u), e.ancestors.push(t);
|
|
11843
|
+
const i = t.name === null ? e.Fragment : ns(e, t.name, !0), a = Ld(e, t), o = zr(e, t);
|
|
11844
|
+
return ts(e, a, i, t), vr(a, o), e.ancestors.pop(), e.schema = r, e.create(t, i, a, n);
|
|
11845
11845
|
}
|
|
11846
11846
|
function kd(e, t, n) {
|
|
11847
11847
|
const r = {};
|
|
11848
|
-
return
|
|
11848
|
+
return vr(r, zr(e, t)), e.create(t, e.Fragment, r, n);
|
|
11849
11849
|
}
|
|
11850
11850
|
function Sd(e, t) {
|
|
11851
11851
|
return t.value;
|
|
@@ -11853,7 +11853,7 @@ function Sd(e, t) {
|
|
|
11853
11853
|
function ts(e, t, n, r) {
|
|
11854
11854
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
11855
11855
|
}
|
|
11856
|
-
function
|
|
11856
|
+
function vr(e, t) {
|
|
11857
11857
|
if (t.length > 0) {
|
|
11858
11858
|
const n = t.length > 1 ? t : t[0];
|
|
11859
11859
|
n && (e.children = n);
|
|
@@ -11888,7 +11888,7 @@ function Od(e, t) {
|
|
|
11888
11888
|
const n = {};
|
|
11889
11889
|
let r, u;
|
|
11890
11890
|
for (u in t.properties)
|
|
11891
|
-
if (u !== "children" &&
|
|
11891
|
+
if (u !== "children" && Ur.call(t.properties, u)) {
|
|
11892
11892
|
const i = Dd(e, u, t.properties[u]);
|
|
11893
11893
|
if (i) {
|
|
11894
11894
|
const [a, o] = i;
|
|
@@ -11936,7 +11936,7 @@ function Ld(e, t) {
|
|
|
11936
11936
|
}
|
|
11937
11937
|
return n;
|
|
11938
11938
|
}
|
|
11939
|
-
function
|
|
11939
|
+
function zr(e, t) {
|
|
11940
11940
|
const n = [];
|
|
11941
11941
|
let r = -1;
|
|
11942
11942
|
const u = e.passKeys ? /* @__PURE__ */ new Map() : Ed;
|
|
@@ -11994,7 +11994,7 @@ function ns(e, t, n) {
|
|
|
11994
11994
|
const u = t.split(".");
|
|
11995
11995
|
let i = -1, a;
|
|
11996
11996
|
for (; ++i < u.length; ) {
|
|
11997
|
-
const o =
|
|
11997
|
+
const o = wu(u[i]) ? { type: "Identifier", name: u[i] } : { type: "Literal", value: u[i] };
|
|
11998
11998
|
a = a ? {
|
|
11999
11999
|
type: "MemberExpression",
|
|
12000
12000
|
object: a,
|
|
@@ -12005,13 +12005,13 @@ function ns(e, t, n) {
|
|
|
12005
12005
|
}
|
|
12006
12006
|
r = a;
|
|
12007
12007
|
} else
|
|
12008
|
-
r =
|
|
12008
|
+
r = wu(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
|
|
12009
12009
|
if (r.type === "Literal") {
|
|
12010
12010
|
const u = (
|
|
12011
12011
|
/** @type {string | number} */
|
|
12012
12012
|
r.value
|
|
12013
12013
|
);
|
|
12014
|
-
return
|
|
12014
|
+
return Ur.call(e.components, u) ? e.components[u] : u;
|
|
12015
12015
|
}
|
|
12016
12016
|
if (e.evaluater)
|
|
12017
12017
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -12033,7 +12033,7 @@ function Pd(e) {
|
|
|
12033
12033
|
const t = {};
|
|
12034
12034
|
let n;
|
|
12035
12035
|
for (n in e)
|
|
12036
|
-
|
|
12036
|
+
Ur.call(e, n) && (t[wd(n)] = e[n]);
|
|
12037
12037
|
return t;
|
|
12038
12038
|
}
|
|
12039
12039
|
function wd(e) {
|
|
@@ -12065,11 +12065,11 @@ const qn = {
|
|
|
12065
12065
|
"track",
|
|
12066
12066
|
"video"
|
|
12067
12067
|
]
|
|
12068
|
-
},
|
|
12069
|
-
function
|
|
12068
|
+
}, qu = typeof document < "u" && document.createElement("i");
|
|
12069
|
+
function Yr(e) {
|
|
12070
12070
|
const t = "&" + e + ";";
|
|
12071
|
-
|
|
12072
|
-
const n =
|
|
12071
|
+
qu.innerHTML = t;
|
|
12072
|
+
const n = qu.textContent;
|
|
12073
12073
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
12074
12074
|
}
|
|
12075
12075
|
function we(e, t, n, r) {
|
|
@@ -12084,7 +12084,7 @@ function we(e, t, n, r) {
|
|
|
12084
12084
|
function ke(e, t) {
|
|
12085
12085
|
return e.length > 0 ? (we(e, e.length, 0, t), e) : t;
|
|
12086
12086
|
}
|
|
12087
|
-
const
|
|
12087
|
+
const Vu = {}.hasOwnProperty;
|
|
12088
12088
|
function Bd(e) {
|
|
12089
12089
|
const t = {};
|
|
12090
12090
|
let n = -1;
|
|
@@ -12095,11 +12095,11 @@ function Bd(e) {
|
|
|
12095
12095
|
function Fd(e, t) {
|
|
12096
12096
|
let n;
|
|
12097
12097
|
for (n in t) {
|
|
12098
|
-
const u = (
|
|
12098
|
+
const u = (Vu.call(e, n) ? e[n] : void 0) || (e[n] = {}), i = t[n];
|
|
12099
12099
|
let a;
|
|
12100
12100
|
if (i)
|
|
12101
12101
|
for (a in i) {
|
|
12102
|
-
|
|
12102
|
+
Vu.call(u, a) || (u[a] = []);
|
|
12103
12103
|
const o = i[a];
|
|
12104
12104
|
Hd(
|
|
12105
12105
|
// @ts-expect-error Looks like a list.
|
|
@@ -12189,7 +12189,7 @@ function vd(e) {
|
|
|
12189
12189
|
}
|
|
12190
12190
|
const zd = {
|
|
12191
12191
|
tokenize: Yd
|
|
12192
|
-
},
|
|
12192
|
+
}, Wu = {
|
|
12193
12193
|
tokenize: jd
|
|
12194
12194
|
};
|
|
12195
12195
|
function Yd(e) {
|
|
@@ -12239,7 +12239,7 @@ function Yd(e) {
|
|
|
12239
12239
|
t.interrupt = !!(u.currentConstruct && !u._gfmTableDynamicInterruptHack);
|
|
12240
12240
|
}
|
|
12241
12241
|
return t.containerState = {}, e.check(
|
|
12242
|
-
|
|
12242
|
+
Wu,
|
|
12243
12243
|
h,
|
|
12244
12244
|
f
|
|
12245
12245
|
)(D);
|
|
@@ -12252,7 +12252,7 @@ function Yd(e) {
|
|
|
12252
12252
|
}
|
|
12253
12253
|
function E(D) {
|
|
12254
12254
|
return t.containerState = {}, e.attempt(
|
|
12255
|
-
|
|
12255
|
+
Wu,
|
|
12256
12256
|
m,
|
|
12257
12257
|
A
|
|
12258
12258
|
)(D);
|
|
@@ -12330,7 +12330,7 @@ function jd(e, t, n) {
|
|
|
12330
12330
|
this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
12331
12331
|
);
|
|
12332
12332
|
}
|
|
12333
|
-
function
|
|
12333
|
+
function jr(e, t, n) {
|
|
12334
12334
|
const r = [];
|
|
12335
12335
|
let u = -1;
|
|
12336
12336
|
for (; ++u < e.length; ) {
|
|
@@ -12355,7 +12355,7 @@ function qd(e, t) {
|
|
|
12355
12355
|
continue;
|
|
12356
12356
|
l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
|
|
12357
12357
|
const f = Object.assign({}, e[r][1].end), E = Object.assign({}, e[n][1].start);
|
|
12358
|
-
|
|
12358
|
+
Qu(f, -l), Qu(E, l), a = {
|
|
12359
12359
|
type: l > 1 ? "strongSequence" : "emphasisSequence",
|
|
12360
12360
|
start: f,
|
|
12361
12361
|
end: Object.assign({}, e[r][1].end)
|
|
@@ -12381,7 +12381,7 @@ function qd(e, t) {
|
|
|
12381
12381
|
["enter", i, t]
|
|
12382
12382
|
]), c = ke(
|
|
12383
12383
|
c,
|
|
12384
|
-
|
|
12384
|
+
jr(
|
|
12385
12385
|
t.parser.constructs.insideSpan.null,
|
|
12386
12386
|
e.slice(r + 1, n),
|
|
12387
12387
|
t
|
|
@@ -12416,7 +12416,7 @@ function Vd(e, t) {
|
|
|
12416
12416
|
return c._open = !!(i === 42 ? f : f && (u || !E)), c._close = !!(i === 42 ? E : E && (h || !f)), t(l);
|
|
12417
12417
|
}
|
|
12418
12418
|
}
|
|
12419
|
-
function
|
|
12419
|
+
function Qu(e, t) {
|
|
12420
12420
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
12421
12421
|
}
|
|
12422
12422
|
const Wd = {
|
|
@@ -12546,15 +12546,15 @@ function Zd(e, t, n) {
|
|
|
12546
12546
|
function h(f) {
|
|
12547
12547
|
if (f === 59 && u) {
|
|
12548
12548
|
const E = e.exit("characterReferenceValue");
|
|
12549
|
-
return a === me && !
|
|
12549
|
+
return a === me && !Yr(r.sliceSerialize(E)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
12550
12550
|
}
|
|
12551
12551
|
return a(f) && u++ < i ? (e.consume(f), h) : n(f);
|
|
12552
12552
|
}
|
|
12553
12553
|
}
|
|
12554
|
-
const
|
|
12554
|
+
const Gu = {
|
|
12555
12555
|
tokenize: tm,
|
|
12556
12556
|
partial: !0
|
|
12557
|
-
},
|
|
12557
|
+
}, Xu = {
|
|
12558
12558
|
name: "codeFenced",
|
|
12559
12559
|
tokenize: em,
|
|
12560
12560
|
concrete: !0
|
|
@@ -12577,7 +12577,7 @@ function em(e, t, n) {
|
|
|
12577
12577
|
return S === o ? (a++, e.consume(S), h) : a < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), K(S) ? J(e, f, "whitespace")(S) : f(S));
|
|
12578
12578
|
}
|
|
12579
12579
|
function f(S) {
|
|
12580
|
-
return S === null || z(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(
|
|
12580
|
+
return S === null || z(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Gu, k, Y)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
12581
12581
|
contentType: "string"
|
|
12582
12582
|
}), E(S));
|
|
12583
12583
|
}
|
|
@@ -12607,7 +12607,7 @@ function em(e, t, n) {
|
|
|
12607
12607
|
)(S) : N(S);
|
|
12608
12608
|
}
|
|
12609
12609
|
function N(S) {
|
|
12610
|
-
return S === null || z(S) ? e.check(
|
|
12610
|
+
return S === null || z(S) ? e.check(Gu, k, Y)(S) : (e.enter("codeFlowValue"), D(S));
|
|
12611
12611
|
}
|
|
12612
12612
|
function D(S) {
|
|
12613
12613
|
return S === null || z(S) ? (e.exit("codeFlowValue"), N(S)) : (e.consume(S), D);
|
|
@@ -13090,7 +13090,7 @@ const Im = [
|
|
|
13090
13090
|
"tr",
|
|
13091
13091
|
"track",
|
|
13092
13092
|
"ul"
|
|
13093
|
-
],
|
|
13093
|
+
], Ku = ["pre", "script", "style", "textarea"], km = {
|
|
13094
13094
|
name: "htmlFlow",
|
|
13095
13095
|
tokenize: Om,
|
|
13096
13096
|
resolveTo: Nm,
|
|
@@ -13137,7 +13137,7 @@ function Om(e, t, n) {
|
|
|
13137
13137
|
function L(b) {
|
|
13138
13138
|
if (b === null || b === 47 || b === 62 || ne(b)) {
|
|
13139
13139
|
const Oe = b === 47, Xe = a.toLowerCase();
|
|
13140
|
-
return !Oe && !i &&
|
|
13140
|
+
return !Oe && !i && Ku.includes(Xe) ? (u = 1, r.interrupt ? t(b) : U(b)) : Im.includes(a.toLowerCase()) ? (u = 6, Oe ? (e.consume(b), C) : r.interrupt ? t(b) : U(b)) : (u = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : i ? N(b) : D(b));
|
|
13141
13141
|
}
|
|
13142
13142
|
return b === 45 || me(b) ? (e.consume(b), a += String.fromCharCode(b), L) : n(b);
|
|
13143
13143
|
}
|
|
@@ -13203,7 +13203,7 @@ function Om(e, t, n) {
|
|
|
13203
13203
|
function ye(b) {
|
|
13204
13204
|
if (b === 62) {
|
|
13205
13205
|
const Oe = a.toLowerCase();
|
|
13206
|
-
return
|
|
13206
|
+
return Ku.includes(Oe) ? (e.consume(b), Ne) : U(b);
|
|
13207
13207
|
}
|
|
13208
13208
|
return Te(b) && a.length < 8 ? (e.consume(b), a += String.fromCharCode(b), ye) : U(b);
|
|
13209
13209
|
}
|
|
@@ -13338,7 +13338,7 @@ function Pm(e, t, n) {
|
|
|
13338
13338
|
return e.enter("htmlTextData"), a(g);
|
|
13339
13339
|
}
|
|
13340
13340
|
}
|
|
13341
|
-
const
|
|
13341
|
+
const qr = {
|
|
13342
13342
|
name: "labelEnd",
|
|
13343
13343
|
tokenize: Um,
|
|
13344
13344
|
resolveTo: Hm,
|
|
@@ -13389,7 +13389,7 @@ function Hm(e, t) {
|
|
|
13389
13389
|
["enter", c, t]
|
|
13390
13390
|
], o = ke(o, e.slice(i + 1, i + r + 3)), o = ke(o, [["enter", h, t]]), o = ke(
|
|
13391
13391
|
o,
|
|
13392
|
-
|
|
13392
|
+
jr(
|
|
13393
13393
|
t.parser.constructs.insideSpan.null,
|
|
13394
13394
|
e.slice(i + r + 4, a - 3),
|
|
13395
13395
|
t
|
|
@@ -13526,7 +13526,7 @@ function Ym(e, t, n) {
|
|
|
13526
13526
|
const jm = {
|
|
13527
13527
|
name: "labelStartImage",
|
|
13528
13528
|
tokenize: qm,
|
|
13529
|
-
resolveAll:
|
|
13529
|
+
resolveAll: qr.resolveAll
|
|
13530
13530
|
};
|
|
13531
13531
|
function qm(e, t, n) {
|
|
13532
13532
|
const r = this;
|
|
@@ -13544,7 +13544,7 @@ function qm(e, t, n) {
|
|
|
13544
13544
|
const Vm = {
|
|
13545
13545
|
name: "labelStartLink",
|
|
13546
13546
|
tokenize: Wm,
|
|
13547
|
-
resolveAll:
|
|
13547
|
+
resolveAll: qr.resolveAll
|
|
13548
13548
|
};
|
|
13549
13549
|
function Wm(e, t, n) {
|
|
13550
13550
|
const r = this;
|
|
@@ -13693,7 +13693,7 @@ function tp(e, t, n) {
|
|
|
13693
13693
|
return !K(i) && a && a[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
|
|
13694
13694
|
}
|
|
13695
13695
|
}
|
|
13696
|
-
const
|
|
13696
|
+
const $u = {
|
|
13697
13697
|
name: "setextUnderline",
|
|
13698
13698
|
tokenize: rp,
|
|
13699
13699
|
resolveTo: np
|
|
@@ -13909,7 +13909,7 @@ function cp(e, t, n) {
|
|
|
13909
13909
|
let h = t.tokenize.call(c, l);
|
|
13910
13910
|
return t.resolveAll && i.push(t), c;
|
|
13911
13911
|
function f(H) {
|
|
13912
|
-
return a = ke(a, H), L(), a[a.length - 1] !== null ? [] : (Z(t, 0), c.events =
|
|
13912
|
+
return a = ke(a, H), L(), a[a.length - 1] !== null ? [] : (Z(t, 0), c.events = jr(i, c.events, c), c.events);
|
|
13913
13913
|
}
|
|
13914
13914
|
function E(H, U) {
|
|
13915
13915
|
return hp(m(H), U);
|
|
@@ -14107,12 +14107,12 @@ const dp = {
|
|
|
14107
14107
|
}, Ep = {
|
|
14108
14108
|
35: _m,
|
|
14109
14109
|
42: hn,
|
|
14110
|
-
45: [
|
|
14110
|
+
45: [$u, hn],
|
|
14111
14111
|
60: km,
|
|
14112
|
-
61:
|
|
14112
|
+
61: $u,
|
|
14113
14113
|
95: hn,
|
|
14114
|
-
96:
|
|
14115
|
-
126:
|
|
14114
|
+
96: Xu,
|
|
14115
|
+
126: Xu
|
|
14116
14116
|
}, Tp = {
|
|
14117
14117
|
38: as,
|
|
14118
14118
|
92: is
|
|
@@ -14126,7 +14126,7 @@ const dp = {
|
|
|
14126
14126
|
60: [Wd, Rm],
|
|
14127
14127
|
91: Vm,
|
|
14128
14128
|
92: [bm, is],
|
|
14129
|
-
93:
|
|
14129
|
+
93: qr,
|
|
14130
14130
|
95: pr,
|
|
14131
14131
|
96: im
|
|
14132
14132
|
}, bp = {
|
|
@@ -14174,7 +14174,7 @@ function Ip(e) {
|
|
|
14174
14174
|
;
|
|
14175
14175
|
return e;
|
|
14176
14176
|
}
|
|
14177
|
-
const
|
|
14177
|
+
const Ju = /[\0\t\n\r]/g;
|
|
14178
14178
|
function kp() {
|
|
14179
14179
|
let e = 1, t = "", n = !0, r;
|
|
14180
14180
|
return u;
|
|
@@ -14182,7 +14182,7 @@ function kp() {
|
|
|
14182
14182
|
const l = [];
|
|
14183
14183
|
let c, h, f, E, m;
|
|
14184
14184
|
for (i = t + (typeof i == "string" ? i.toString() : new TextDecoder(a || void 0).decode(i)), f = 0, t = "", n && (i.charCodeAt(0) === 65279 && f++, n = void 0); f < i.length; ) {
|
|
14185
|
-
if (
|
|
14185
|
+
if (Ju.lastIndex = f, c = Ju.exec(i), E = c && c.index !== void 0 ? c.index : i.length, m = i.charCodeAt(E), !c) {
|
|
14186
14186
|
t = i.slice(f);
|
|
14187
14187
|
break;
|
|
14188
14188
|
}
|
|
@@ -14221,7 +14221,7 @@ function Np(e, t, n) {
|
|
|
14221
14221
|
const u = n.charCodeAt(1), i = u === 120 || u === 88;
|
|
14222
14222
|
return rs(n.slice(i ? 2 : 1), i ? 16 : 10);
|
|
14223
14223
|
}
|
|
14224
|
-
return
|
|
14224
|
+
return Yr(n) || e;
|
|
14225
14225
|
}
|
|
14226
14226
|
const ds = {}.hasOwnProperty;
|
|
14227
14227
|
function Op(e, t, n) {
|
|
@@ -14236,10 +14236,10 @@ function Lp(e) {
|
|
|
14236
14236
|
transforms: [],
|
|
14237
14237
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
14238
14238
|
enter: {
|
|
14239
|
-
autolink: i(
|
|
14239
|
+
autolink: i(Xr),
|
|
14240
14240
|
autolinkProtocol: ee,
|
|
14241
14241
|
autolinkEmail: ee,
|
|
14242
|
-
atxHeading: i(
|
|
14242
|
+
atxHeading: i(Wr),
|
|
14243
14243
|
blockQuote: i(at),
|
|
14244
14244
|
characterEscape: ee,
|
|
14245
14245
|
characterReference: ee,
|
|
@@ -14256,25 +14256,25 @@ function Lp(e) {
|
|
|
14256
14256
|
definitionLabelString: a,
|
|
14257
14257
|
definitionTitleString: a,
|
|
14258
14258
|
emphasis: i(bs),
|
|
14259
|
-
hardBreakEscape: i(
|
|
14260
|
-
hardBreakTrailing: i(
|
|
14261
|
-
htmlFlow: i(
|
|
14259
|
+
hardBreakEscape: i(Qr),
|
|
14260
|
+
hardBreakTrailing: i(Qr),
|
|
14261
|
+
htmlFlow: i(Gr, a),
|
|
14262
14262
|
htmlFlowData: ee,
|
|
14263
|
-
htmlText: i(
|
|
14263
|
+
htmlText: i(Gr, a),
|
|
14264
14264
|
htmlTextData: ee,
|
|
14265
14265
|
image: i(As),
|
|
14266
14266
|
label: a,
|
|
14267
|
-
link: i(
|
|
14267
|
+
link: i(Xr),
|
|
14268
14268
|
listItem: i(_s),
|
|
14269
14269
|
listItemValue: E,
|
|
14270
|
-
listOrdered: i(
|
|
14271
|
-
listUnordered: i(
|
|
14270
|
+
listOrdered: i(Kr, f),
|
|
14271
|
+
listUnordered: i(Kr),
|
|
14272
14272
|
paragraph: i(Cs),
|
|
14273
14273
|
reference: b,
|
|
14274
14274
|
referenceString: a,
|
|
14275
14275
|
resourceDestinationString: a,
|
|
14276
14276
|
resourceTitleString: a,
|
|
14277
|
-
setextHeading: i(
|
|
14277
|
+
setextHeading: i(Wr),
|
|
14278
14278
|
strong: i(xs),
|
|
14279
14279
|
thematicBreak: i(ks)
|
|
14280
14280
|
},
|
|
@@ -14370,7 +14370,7 @@ function Lp(e) {
|
|
|
14370
14370
|
}
|
|
14371
14371
|
if (V.tokenStack.length > 0) {
|
|
14372
14372
|
const Le = V.tokenStack[V.tokenStack.length - 1];
|
|
14373
|
-
(Le[1] ||
|
|
14373
|
+
(Le[1] || Zu).call(V, void 0, Le[0]);
|
|
14374
14374
|
}
|
|
14375
14375
|
for (M.position = {
|
|
14376
14376
|
start: qe(
|
|
@@ -14472,7 +14472,7 @@ function Lp(e) {
|
|
|
14472
14472
|
function c(y, M) {
|
|
14473
14473
|
const V = this.stack.pop(), $ = this.tokenStack.pop();
|
|
14474
14474
|
if ($)
|
|
14475
|
-
$[0].type !== y.type && (M ? M.call(this, y, $[0]) : ($[1] ||
|
|
14475
|
+
$[0].type !== y.type && (M ? M.call(this, y, $[0]) : ($[1] || Zu).call(this, y, $[0]));
|
|
14476
14476
|
else throw new Error(
|
|
14477
14477
|
"Cannot close `" + y.type + "` (" + zt({
|
|
14478
14478
|
start: y.start,
|
|
@@ -14482,7 +14482,7 @@ function Lp(e) {
|
|
|
14482
14482
|
V.position.end = qe(y.end);
|
|
14483
14483
|
}
|
|
14484
14484
|
function h() {
|
|
14485
|
-
return
|
|
14485
|
+
return wr(this.stack.pop());
|
|
14486
14486
|
}
|
|
14487
14487
|
function f() {
|
|
14488
14488
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -14639,7 +14639,7 @@ function Lp(e) {
|
|
|
14639
14639
|
V ? ($ = rs(
|
|
14640
14640
|
M,
|
|
14641
14641
|
V === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
14642
|
-
), this.data.characterReferenceType = void 0) : $ =
|
|
14642
|
+
), this.data.characterReferenceType = void 0) : $ = Yr(M);
|
|
14643
14643
|
const te = this.stack.pop();
|
|
14644
14644
|
te.value += $, te.position.end = qe(y.end);
|
|
14645
14645
|
}
|
|
@@ -14688,7 +14688,7 @@ function Lp(e) {
|
|
|
14688
14688
|
children: []
|
|
14689
14689
|
};
|
|
14690
14690
|
}
|
|
14691
|
-
function
|
|
14691
|
+
function Wr() {
|
|
14692
14692
|
return {
|
|
14693
14693
|
type: "heading",
|
|
14694
14694
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -14696,12 +14696,12 @@ function Lp(e) {
|
|
|
14696
14696
|
children: []
|
|
14697
14697
|
};
|
|
14698
14698
|
}
|
|
14699
|
-
function
|
|
14699
|
+
function Qr() {
|
|
14700
14700
|
return {
|
|
14701
14701
|
type: "break"
|
|
14702
14702
|
};
|
|
14703
14703
|
}
|
|
14704
|
-
function
|
|
14704
|
+
function Gr() {
|
|
14705
14705
|
return {
|
|
14706
14706
|
type: "html",
|
|
14707
14707
|
value: ""
|
|
@@ -14715,7 +14715,7 @@ function Lp(e) {
|
|
|
14715
14715
|
alt: null
|
|
14716
14716
|
};
|
|
14717
14717
|
}
|
|
14718
|
-
function
|
|
14718
|
+
function Xr() {
|
|
14719
14719
|
return {
|
|
14720
14720
|
type: "link",
|
|
14721
14721
|
title: null,
|
|
@@ -14723,7 +14723,7 @@ function Lp(e) {
|
|
|
14723
14723
|
children: []
|
|
14724
14724
|
};
|
|
14725
14725
|
}
|
|
14726
|
-
function
|
|
14726
|
+
function Kr(y) {
|
|
14727
14727
|
return {
|
|
14728
14728
|
type: "list",
|
|
14729
14729
|
ordered: y.type === "listOrdered",
|
|
@@ -14801,7 +14801,7 @@ function Dp(e, t) {
|
|
|
14801
14801
|
}
|
|
14802
14802
|
}
|
|
14803
14803
|
}
|
|
14804
|
-
function
|
|
14804
|
+
function Zu(e, t) {
|
|
14805
14805
|
throw e ? new Error(
|
|
14806
14806
|
"Cannot close `" + e.type + "` (" + zt({
|
|
14807
14807
|
start: e.start,
|
|
@@ -15111,28 +15111,28 @@ function e1(e, t) {
|
|
|
15111
15111
|
};
|
|
15112
15112
|
return e.patch(t, n), e.applyData(t, n);
|
|
15113
15113
|
}
|
|
15114
|
-
const
|
|
15114
|
+
const ei = 9, ti = 32;
|
|
15115
15115
|
function t1(e) {
|
|
15116
15116
|
const t = String(e), n = /\r?\n|\r/g;
|
|
15117
15117
|
let r = n.exec(t), u = 0;
|
|
15118
15118
|
const i = [];
|
|
15119
15119
|
for (; r; )
|
|
15120
15120
|
i.push(
|
|
15121
|
-
|
|
15121
|
+
ni(t.slice(u, r.index), u > 0, !0),
|
|
15122
15122
|
r[0]
|
|
15123
15123
|
), u = r.index + r[0].length, r = n.exec(t);
|
|
15124
|
-
return i.push(
|
|
15124
|
+
return i.push(ni(t.slice(u), u > 0, !1)), i.join("");
|
|
15125
15125
|
}
|
|
15126
|
-
function
|
|
15126
|
+
function ni(e, t, n) {
|
|
15127
15127
|
let r = 0, u = e.length;
|
|
15128
15128
|
if (t) {
|
|
15129
15129
|
let i = e.codePointAt(r);
|
|
15130
|
-
for (; i ===
|
|
15130
|
+
for (; i === ei || i === ti; )
|
|
15131
15131
|
r++, i = e.codePointAt(r);
|
|
15132
15132
|
}
|
|
15133
15133
|
if (n) {
|
|
15134
15134
|
let i = e.codePointAt(u - 1);
|
|
15135
|
-
for (; i ===
|
|
15135
|
+
for (; i === ei || i === ti; )
|
|
15136
15136
|
u--, i = e.codePointAt(u - 1);
|
|
15137
15137
|
}
|
|
15138
15138
|
return u > r ? e.slice(r, u) : "";
|
|
@@ -15305,9 +15305,9 @@ function l1(e, t) {
|
|
|
15305
15305
|
for (; ++m < E.length; ) {
|
|
15306
15306
|
const A = o.one(E[m], h);
|
|
15307
15307
|
if (A) {
|
|
15308
|
-
if (m && E[m - 1].type === "break" && (!Array.isArray(A) && A.type === "text" && (A.value =
|
|
15308
|
+
if (m && E[m - 1].type === "break" && (!Array.isArray(A) && A.type === "text" && (A.value = ri(A.value)), !Array.isArray(A) && A.type === "element")) {
|
|
15309
15309
|
const k = A.children[0];
|
|
15310
|
-
k && k.type === "text" && (k.value =
|
|
15310
|
+
k && k.type === "text" && (k.value = ri(k.value));
|
|
15311
15311
|
}
|
|
15312
15312
|
Array.isArray(A) ? f.push(...A) : f.push(A);
|
|
15313
15313
|
}
|
|
@@ -15353,13 +15353,13 @@ function d1(e, t) {
|
|
|
15353
15353
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
|
15354
15354
|
` }), n;
|
|
15355
15355
|
}
|
|
15356
|
-
function
|
|
15356
|
+
function ri(e) {
|
|
15357
15357
|
let t = 0, n = e.charCodeAt(t);
|
|
15358
15358
|
for (; n === 9 || n === 32; )
|
|
15359
15359
|
t++, n = e.charCodeAt(t);
|
|
15360
15360
|
return e.slice(t);
|
|
15361
15361
|
}
|
|
15362
|
-
function
|
|
15362
|
+
function ui(e, t) {
|
|
15363
15363
|
const n = l1(e, t), r = n.one(e, void 0), u = s1(n), i = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
15364
15364
|
return u && i.children.push({ type: "text", value: `
|
|
15365
15365
|
` }, u), i;
|
|
@@ -15368,24 +15368,24 @@ function m1(e, t) {
|
|
|
15368
15368
|
return e && "run" in e ? async function(n, r) {
|
|
15369
15369
|
const u = (
|
|
15370
15370
|
/** @type {HastRoot} */
|
|
15371
|
-
|
|
15371
|
+
ui(n, { file: r, ...t })
|
|
15372
15372
|
);
|
|
15373
15373
|
await e.run(u, r);
|
|
15374
15374
|
} : function(n, r) {
|
|
15375
15375
|
return (
|
|
15376
15376
|
/** @type {HastRoot} */
|
|
15377
|
-
|
|
15377
|
+
ui(n, { file: r, ...e || t })
|
|
15378
15378
|
);
|
|
15379
15379
|
};
|
|
15380
15380
|
}
|
|
15381
|
-
function
|
|
15381
|
+
function ii(e) {
|
|
15382
15382
|
if (e)
|
|
15383
15383
|
throw e;
|
|
15384
15384
|
}
|
|
15385
|
-
var Qn,
|
|
15385
|
+
var Qn, ai;
|
|
15386
15386
|
function p1() {
|
|
15387
|
-
if (
|
|
15388
|
-
|
|
15387
|
+
if (ai) return Qn;
|
|
15388
|
+
ai = 1;
|
|
15389
15389
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, u = function(c) {
|
|
15390
15390
|
return typeof Array.isArray == "function" ? Array.isArray(c) : t.call(c) === "[object Array]";
|
|
15391
15391
|
}, i = function(c) {
|
|
@@ -15729,7 +15729,7 @@ class Ts {
|
|
|
15729
15729
|
* Nothing.
|
|
15730
15730
|
*/
|
|
15731
15731
|
set dirname(t) {
|
|
15732
|
-
|
|
15732
|
+
si(this.basename, "dirname"), this.path = Re.join(t || "", this.basename);
|
|
15733
15733
|
}
|
|
15734
15734
|
/**
|
|
15735
15735
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -15753,7 +15753,7 @@ class Ts {
|
|
|
15753
15753
|
* Nothing.
|
|
15754
15754
|
*/
|
|
15755
15755
|
set extname(t) {
|
|
15756
|
-
if (Kn(t, "extname"),
|
|
15756
|
+
if (Kn(t, "extname"), si(this.dirname, "extname"), t) {
|
|
15757
15757
|
if (t.codePointAt(0) !== 46)
|
|
15758
15758
|
throw new Error("`extname` must start with `.`");
|
|
15759
15759
|
if (t.includes(".", 1))
|
|
@@ -16030,7 +16030,7 @@ function $n(e, t) {
|
|
|
16030
16030
|
if (!e)
|
|
16031
16031
|
throw new Error("`" + t + "` cannot be empty");
|
|
16032
16032
|
}
|
|
16033
|
-
function
|
|
16033
|
+
function si(e, t) {
|
|
16034
16034
|
if (!e)
|
|
16035
16035
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
16036
16036
|
}
|
|
@@ -16059,7 +16059,7 @@ const L1 = (
|
|
|
16059
16059
|
return Object.setPrototypeOf(i, r), i;
|
|
16060
16060
|
}
|
|
16061
16061
|
), D1 = {}.hasOwnProperty;
|
|
16062
|
-
class
|
|
16062
|
+
class Vr extends L1 {
|
|
16063
16063
|
/**
|
|
16064
16064
|
* Create a processor.
|
|
16065
16065
|
*/
|
|
@@ -16080,7 +16080,7 @@ class qr extends L1 {
|
|
|
16080
16080
|
copy() {
|
|
16081
16081
|
const t = (
|
|
16082
16082
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
16083
|
-
new
|
|
16083
|
+
new Vr()
|
|
16084
16084
|
);
|
|
16085
16085
|
let n = -1;
|
|
16086
16086
|
for (; ++n < this.attachers.length; ) {
|
|
@@ -16308,9 +16308,9 @@ class qr extends L1 {
|
|
|
16308
16308
|
*/
|
|
16309
16309
|
processSync(t) {
|
|
16310
16310
|
let n = !1, r;
|
|
16311
|
-
return this.freeze(), Jn("processSync", this.parser || this.Parser), Zn("processSync", this.compiler || this.Compiler), this.process(t, u),
|
|
16311
|
+
return this.freeze(), Jn("processSync", this.parser || this.Parser), Zn("processSync", this.compiler || this.Compiler), this.process(t, u), li("processSync", "process", n), r;
|
|
16312
16312
|
function u(i, a) {
|
|
16313
|
-
n = !0,
|
|
16313
|
+
n = !0, ii(i), r = a;
|
|
16314
16314
|
}
|
|
16315
16315
|
}
|
|
16316
16316
|
/**
|
|
@@ -16352,7 +16352,7 @@ class qr extends L1 {
|
|
|
16352
16352
|
* transformed tree.
|
|
16353
16353
|
*/
|
|
16354
16354
|
run(t, n, r) {
|
|
16355
|
-
|
|
16355
|
+
oi(t), this.freeze();
|
|
16356
16356
|
const u = this.transformers;
|
|
16357
16357
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? i(void 0, r) : new Promise(i);
|
|
16358
16358
|
function i(a, o) {
|
|
@@ -16386,9 +16386,9 @@ class qr extends L1 {
|
|
|
16386
16386
|
*/
|
|
16387
16387
|
runSync(t, n) {
|
|
16388
16388
|
let r = !1, u;
|
|
16389
|
-
return this.run(t, n, i),
|
|
16389
|
+
return this.run(t, n, i), li("runSync", "run", r), u;
|
|
16390
16390
|
function i(a, o) {
|
|
16391
|
-
|
|
16391
|
+
ii(a), u = o, r = !0;
|
|
16392
16392
|
}
|
|
16393
16393
|
}
|
|
16394
16394
|
/**
|
|
@@ -16423,7 +16423,7 @@ class qr extends L1 {
|
|
|
16423
16423
|
stringify(t, n) {
|
|
16424
16424
|
this.freeze();
|
|
16425
16425
|
const r = an(n), u = this.compiler || this.Compiler;
|
|
16426
|
-
return Zn("stringify", u),
|
|
16426
|
+
return Zn("stringify", u), oi(t), u(t, r);
|
|
16427
16427
|
}
|
|
16428
16428
|
/**
|
|
16429
16429
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -16540,7 +16540,7 @@ class qr extends L1 {
|
|
|
16540
16540
|
}
|
|
16541
16541
|
}
|
|
16542
16542
|
}
|
|
16543
|
-
const R1 = new
|
|
16543
|
+
const R1 = new Vr().freeze();
|
|
16544
16544
|
function Jn(e, t) {
|
|
16545
16545
|
if (typeof t != "function")
|
|
16546
16546
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -16555,11 +16555,11 @@ function er(e, t) {
|
|
|
16555
16555
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
16556
16556
|
);
|
|
16557
16557
|
}
|
|
16558
|
-
function
|
|
16558
|
+
function oi(e) {
|
|
16559
16559
|
if (!Tr(e) || typeof e.type != "string")
|
|
16560
16560
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
16561
16561
|
}
|
|
16562
|
-
function
|
|
16562
|
+
function li(e, t, n) {
|
|
16563
16563
|
if (!n)
|
|
16564
16564
|
throw new Error(
|
|
16565
16565
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
@@ -16577,7 +16577,7 @@ function w1(e) {
|
|
|
16577
16577
|
function M1(e) {
|
|
16578
16578
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
16579
16579
|
}
|
|
16580
|
-
const B1 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
16580
|
+
const B1 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", ci = [], fi = {
|
|
16581
16581
|
allowDangerousHtml: !0
|
|
16582
16582
|
}, F1 = /^(https?|ircs?|mailto|xmpp)$/i, H1 = [
|
|
16583
16583
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
@@ -16617,7 +16617,7 @@ const B1 = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
16617
16617
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
16618
16618
|
];
|
|
16619
16619
|
function U1(e) {
|
|
16620
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", u = e.className, i = e.components, a = e.disallowedElements, o = e.rehypePlugins ||
|
|
16620
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", u = e.className, i = e.components, a = e.disallowedElements, o = e.rehypePlugins || ci, l = e.remarkPlugins || ci, c = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...fi } : fi, h = e.skipHtml, f = e.unwrapDisallowed, E = e.urlTransform || v1, m = R1().use(Rp).use(l).use(m1, c).use(o), A = new Ts();
|
|
16621
16621
|
typeof r == "string" && (A.value = r);
|
|
16622
16622
|
for (const N of H1)
|
|
16623
16623
|
Object.prototype.hasOwnProperty.call(e, N.from) && (`Unexpected '${N.from}' prop, ` + (N.to ? `use '${N.to}' instead` : "remove it") + ` (see <${B1}#${N.id}> for more info)`, void 0);
|
|
@@ -16687,4 +16687,4 @@ export {
|
|
|
16687
16687
|
jh as s,
|
|
16688
16688
|
Ln as u
|
|
16689
16689
|
};
|
|
16690
|
-
//# sourceMappingURL=Markdown-
|
|
16690
|
+
//# sourceMappingURL=Markdown-C0eXdzGn.js.map
|