@yext/pages-components 1.2.0 → 1.2.1
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/debugger-CD3UTvmC.js +317 -0
- package/dist/{index-DpqXrf_z.js → index-BUePx8h0.js} +836 -835
- package/dist/{index-sidm05Eh.js → index-GeO8DZvj.js} +3530 -3805
- package/dist/pages-components.js +11 -11
- package/package.json +1 -1
- package/dist/debugger-o-hgjM54.js +0 -316
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as Er, jsx as Ir, Fragment as Tr } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { a as We, b as vt } from "./index-GeO8DZvj.js";
|
|
4
|
+
const Un = 9, Vn = 32;
|
|
5
|
+
function Pr(e) {
|
|
5
6
|
const n = String(e), t = /\r?\n|\r/g;
|
|
6
7
|
let r = t.exec(n), i = 0;
|
|
7
8
|
const l = [];
|
|
8
9
|
for (; r; )
|
|
9
10
|
l.push(
|
|
10
|
-
|
|
11
|
+
qn(n.slice(i, r.index), i > 0, !0),
|
|
11
12
|
r[0]
|
|
12
13
|
), i = r.index + r[0].length, r = t.exec(n);
|
|
13
|
-
return l.push(
|
|
14
|
+
return l.push(qn(n.slice(i), i > 0, !1)), l.join("");
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function qn(e, n, t) {
|
|
16
17
|
let r = 0, i = e.length;
|
|
17
18
|
if (n) {
|
|
18
19
|
let l = e.codePointAt(r);
|
|
19
|
-
for (; l ===
|
|
20
|
+
for (; l === Un || l === Vn; )
|
|
20
21
|
r++, l = e.codePointAt(r);
|
|
21
22
|
}
|
|
22
23
|
if (t) {
|
|
23
24
|
let l = e.codePointAt(i - 1);
|
|
24
|
-
for (; l ===
|
|
25
|
+
for (; l === Un || l === Vn; )
|
|
25
26
|
i--, l = e.codePointAt(i - 1);
|
|
26
27
|
}
|
|
27
28
|
return i > r ? e.slice(r, i) : "";
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function Ar(e, n) {
|
|
30
31
|
const t = {};
|
|
31
32
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
32
33
|
(t.padRight ? " " : "") + "," + (t.padLeft === !1 ? "" : " ")
|
|
33
34
|
).trim();
|
|
34
35
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
return (
|
|
36
|
+
const zr = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Lr = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Or = {};
|
|
37
|
+
function $n(e, n) {
|
|
38
|
+
return (Or.jsx ? Lr : zr).test(e);
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
40
|
+
const vr = /[ \t\n\f\r]/g;
|
|
41
|
+
function Dr(e) {
|
|
42
|
+
return typeof e == "object" ? e.type === "text" ? Wn(e.value) : !1 : Wn(e);
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
-
return e.replace(
|
|
44
|
+
function Wn(e) {
|
|
45
|
+
return e.replace(vr, "") === "";
|
|
45
46
|
}
|
|
46
47
|
class Me {
|
|
47
48
|
/**
|
|
@@ -61,13 +62,13 @@ class Me {
|
|
|
61
62
|
Me.prototype.normal = {};
|
|
62
63
|
Me.prototype.property = {};
|
|
63
64
|
Me.prototype.space = void 0;
|
|
64
|
-
function
|
|
65
|
+
function Dt(e, n) {
|
|
65
66
|
const t = {}, r = {};
|
|
66
67
|
for (const i of e)
|
|
67
68
|
Object.assign(t, i.property), Object.assign(r, i.normal);
|
|
68
69
|
return new Me(t, r, n);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function pn(e) {
|
|
71
72
|
return e.toLowerCase();
|
|
72
73
|
}
|
|
73
74
|
class J {
|
|
@@ -95,25 +96,25 @@ J.prototype.overloadedBoolean = !1;
|
|
|
95
96
|
J.prototype.property = "";
|
|
96
97
|
J.prototype.spaceSeparated = !1;
|
|
97
98
|
J.prototype.space = void 0;
|
|
98
|
-
let
|
|
99
|
-
const z = be(), $ = be(),
|
|
99
|
+
let Nr = 0;
|
|
100
|
+
const z = be(), $ = be(), fn = be(), k = be(), R = be(), Ie = be(), ee = be();
|
|
100
101
|
function be() {
|
|
101
|
-
return 2 ** ++
|
|
102
|
+
return 2 ** ++Nr;
|
|
102
103
|
}
|
|
103
|
-
const
|
|
104
|
+
const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
104
105
|
__proto__: null,
|
|
105
106
|
boolean: z,
|
|
106
107
|
booleanish: $,
|
|
107
108
|
commaOrSpaceSeparated: ee,
|
|
108
109
|
commaSeparated: Ie,
|
|
109
110
|
number: k,
|
|
110
|
-
overloadedBoolean:
|
|
111
|
+
overloadedBoolean: fn,
|
|
111
112
|
spaceSeparated: R
|
|
112
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
113
|
+
}, Symbol.toStringTag, { value: "Module" })), Ze = (
|
|
113
114
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
114
|
-
Object.keys(
|
|
115
|
+
Object.keys(hn)
|
|
115
116
|
);
|
|
116
|
-
class
|
|
117
|
+
class Sn extends J {
|
|
117
118
|
/**
|
|
118
119
|
* @constructor
|
|
119
120
|
* @param {string} property
|
|
@@ -129,31 +130,31 @@ class En extends J {
|
|
|
129
130
|
*/
|
|
130
131
|
constructor(n, t, r, i) {
|
|
131
132
|
let l = -1;
|
|
132
|
-
if (super(n, t),
|
|
133
|
-
for (; ++l <
|
|
134
|
-
const o =
|
|
135
|
-
|
|
133
|
+
if (super(n, t), Yn(this, "space", i), typeof r == "number")
|
|
134
|
+
for (; ++l < Ze.length; ) {
|
|
135
|
+
const o = Ze[l];
|
|
136
|
+
Yn(this, Ze[l], (r & hn[o]) === hn[o]);
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
140
|
+
Sn.prototype.defined = !0;
|
|
141
|
+
function Yn(e, n, t) {
|
|
141
142
|
t && (e[n] = t);
|
|
142
143
|
}
|
|
143
144
|
function Pe(e) {
|
|
144
145
|
const n = {}, t = {};
|
|
145
146
|
for (const [r, i] of Object.entries(e.properties)) {
|
|
146
|
-
const l = new
|
|
147
|
+
const l = new Sn(
|
|
147
148
|
r,
|
|
148
149
|
e.transform(e.attributes || {}, r),
|
|
149
150
|
i,
|
|
150
151
|
e.space
|
|
151
152
|
);
|
|
152
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[
|
|
153
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (l.mustUseProperty = !0), n[r] = l, t[pn(r)] = r, t[pn(l.attribute)] = r;
|
|
153
154
|
}
|
|
154
155
|
return new Me(n, t, e.space);
|
|
155
156
|
}
|
|
156
|
-
const
|
|
157
|
+
const Nt = Pe({
|
|
157
158
|
properties: {
|
|
158
159
|
ariaActiveDescendant: null,
|
|
159
160
|
ariaAtomic: $,
|
|
@@ -209,13 +210,13 @@ const _t = Pe({
|
|
|
209
210
|
return n === "role" ? n : "aria-" + n.slice(4).toLowerCase();
|
|
210
211
|
}
|
|
211
212
|
});
|
|
212
|
-
function
|
|
213
|
+
function _t(e, n) {
|
|
213
214
|
return n in e ? e[n] : n;
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
-
return
|
|
216
|
+
function Ft(e, n) {
|
|
217
|
+
return _t(e, n.toLowerCase());
|
|
217
218
|
}
|
|
218
|
-
const
|
|
219
|
+
const _r = Pe({
|
|
219
220
|
attributes: {
|
|
220
221
|
acceptcharset: "accept-charset",
|
|
221
222
|
classname: "class",
|
|
@@ -263,7 +264,7 @@ const Dr = Pe({
|
|
|
263
264
|
dir: null,
|
|
264
265
|
dirName: null,
|
|
265
266
|
disabled: z,
|
|
266
|
-
download:
|
|
267
|
+
download: fn,
|
|
267
268
|
draggable: $,
|
|
268
269
|
encType: null,
|
|
269
270
|
enterKeyHint: null,
|
|
@@ -276,7 +277,7 @@ const Dr = Pe({
|
|
|
276
277
|
formTarget: null,
|
|
277
278
|
headers: R,
|
|
278
279
|
height: k,
|
|
279
|
-
hidden:
|
|
280
|
+
hidden: fn,
|
|
280
281
|
high: k,
|
|
281
282
|
href: null,
|
|
282
283
|
hrefLang: null,
|
|
@@ -575,8 +576,8 @@ const Dr = Pe({
|
|
|
575
576
|
unselectable: null
|
|
576
577
|
},
|
|
577
578
|
space: "html",
|
|
578
|
-
transform:
|
|
579
|
-
}),
|
|
579
|
+
transform: Ft
|
|
580
|
+
}), Fr = Pe({
|
|
580
581
|
attributes: {
|
|
581
582
|
accentHeight: "accent-height",
|
|
582
583
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1134,8 +1135,8 @@ const Dr = Pe({
|
|
|
1134
1135
|
zoomAndPan: null
|
|
1135
1136
|
},
|
|
1136
1137
|
space: "svg",
|
|
1137
|
-
transform:
|
|
1138
|
-
}),
|
|
1138
|
+
transform: _t
|
|
1139
|
+
}), Rt = Pe({
|
|
1139
1140
|
properties: {
|
|
1140
1141
|
xLinkActuate: null,
|
|
1141
1142
|
xLinkArcRole: null,
|
|
@@ -1149,18 +1150,18 @@ const Dr = Pe({
|
|
|
1149
1150
|
transform(e, n) {
|
|
1150
1151
|
return "xlink:" + n.slice(5).toLowerCase();
|
|
1151
1152
|
}
|
|
1152
|
-
}),
|
|
1153
|
+
}), Mt = Pe({
|
|
1153
1154
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1154
1155
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1155
1156
|
space: "xmlns",
|
|
1156
|
-
transform:
|
|
1157
|
-
}),
|
|
1157
|
+
transform: Ft
|
|
1158
|
+
}), Bt = Pe({
|
|
1158
1159
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1159
1160
|
space: "xml",
|
|
1160
1161
|
transform(e, n) {
|
|
1161
1162
|
return "xml:" + n.slice(3).toLowerCase();
|
|
1162
1163
|
}
|
|
1163
|
-
}),
|
|
1164
|
+
}), Rr = {
|
|
1164
1165
|
classId: "classID",
|
|
1165
1166
|
dataType: "datatype",
|
|
1166
1167
|
itemId: "itemID",
|
|
@@ -1178,49 +1179,49 @@ const Dr = Pe({
|
|
|
1178
1179
|
xLinkTitle: "xlinkTitle",
|
|
1179
1180
|
xLinkType: "xlinkType",
|
|
1180
1181
|
xmlnsXLink: "xmlnsXlink"
|
|
1181
|
-
},
|
|
1182
|
-
function
|
|
1183
|
-
const t =
|
|
1182
|
+
}, Mr = /[A-Z]/g, Xn = /-[a-z]/g, Br = /^data[-\w.:]+$/i;
|
|
1183
|
+
function jr(e, n) {
|
|
1184
|
+
const t = pn(n);
|
|
1184
1185
|
let r = n, i = J;
|
|
1185
1186
|
if (t in e.normal)
|
|
1186
1187
|
return e.property[e.normal[t]];
|
|
1187
|
-
if (t.length > 4 && t.slice(0, 4) === "data" &&
|
|
1188
|
+
if (t.length > 4 && t.slice(0, 4) === "data" && Br.test(n)) {
|
|
1188
1189
|
if (n.charAt(4) === "-") {
|
|
1189
|
-
const l = n.slice(5).replace(
|
|
1190
|
+
const l = n.slice(5).replace(Xn, Ur);
|
|
1190
1191
|
r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
|
|
1191
1192
|
} else {
|
|
1192
1193
|
const l = n.slice(4);
|
|
1193
|
-
if (!
|
|
1194
|
-
let o = l.replace(
|
|
1194
|
+
if (!Xn.test(l)) {
|
|
1195
|
+
let o = l.replace(Mr, Hr);
|
|
1195
1196
|
o.charAt(0) !== "-" && (o = "-" + o), n = "data" + o;
|
|
1196
1197
|
}
|
|
1197
1198
|
}
|
|
1198
|
-
i =
|
|
1199
|
+
i = Sn;
|
|
1199
1200
|
}
|
|
1200
1201
|
return new i(r, n);
|
|
1201
1202
|
}
|
|
1202
|
-
function
|
|
1203
|
+
function Hr(e) {
|
|
1203
1204
|
return "-" + e.toLowerCase();
|
|
1204
1205
|
}
|
|
1205
|
-
function
|
|
1206
|
+
function Ur(e) {
|
|
1206
1207
|
return e.charAt(1).toUpperCase();
|
|
1207
1208
|
}
|
|
1208
|
-
const
|
|
1209
|
-
function
|
|
1209
|
+
const Vr = Dt([Nt, _r, Rt, Mt, Bt], "html"), Cn = Dt([Nt, Fr, Rt, Mt, Bt], "svg");
|
|
1210
|
+
function qr(e) {
|
|
1210
1211
|
return e.join(" ").trim();
|
|
1211
1212
|
}
|
|
1212
|
-
var
|
|
1213
|
-
`,
|
|
1214
|
-
function
|
|
1213
|
+
var En = {}, Qn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, $r = /\n/g, Wr = /^\s*/, Yr = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Xr = /^:\s*/, Qr = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Gr = /^[;\s]*/, Kr = /^\s+|\s+$/g, Jr = `
|
|
1214
|
+
`, Gn = "/", Kn = "*", ke = "", Zr = "comment", ei = "declaration";
|
|
1215
|
+
function ni(e, n) {
|
|
1215
1216
|
if (typeof e != "string")
|
|
1216
1217
|
throw new TypeError("First argument must be a string");
|
|
1217
1218
|
if (!e) return [];
|
|
1218
1219
|
n = n || {};
|
|
1219
1220
|
var t = 1, r = 1;
|
|
1220
1221
|
function i(y) {
|
|
1221
|
-
var b = y.match(
|
|
1222
|
+
var b = y.match($r);
|
|
1222
1223
|
b && (t += b.length);
|
|
1223
|
-
var T = y.lastIndexOf(
|
|
1224
|
+
var T = y.lastIndexOf(Jr);
|
|
1224
1225
|
r = ~T ? y.length - T : r + y.length;
|
|
1225
1226
|
}
|
|
1226
1227
|
function l() {
|
|
@@ -1247,7 +1248,7 @@ function Zr(e, n) {
|
|
|
1247
1248
|
}
|
|
1248
1249
|
}
|
|
1249
1250
|
function c() {
|
|
1250
|
-
u(
|
|
1251
|
+
u(Wr);
|
|
1251
1252
|
}
|
|
1252
1253
|
function s(y) {
|
|
1253
1254
|
var b;
|
|
@@ -1257,28 +1258,28 @@ function Zr(e, n) {
|
|
|
1257
1258
|
}
|
|
1258
1259
|
function f() {
|
|
1259
1260
|
var y = l();
|
|
1260
|
-
if (!(
|
|
1261
|
-
for (var b = 2; ke != e.charAt(b) && (
|
|
1261
|
+
if (!(Gn != e.charAt(0) || Kn != e.charAt(1))) {
|
|
1262
|
+
for (var b = 2; ke != e.charAt(b) && (Kn != e.charAt(b) || Gn != e.charAt(b + 1)); )
|
|
1262
1263
|
++b;
|
|
1263
1264
|
if (b += 2, ke === e.charAt(b - 1))
|
|
1264
1265
|
return a("End of comment missing");
|
|
1265
1266
|
var T = e.slice(2, b - 2);
|
|
1266
1267
|
return r += 2, i(T), e = e.slice(b), r += 2, y({
|
|
1267
|
-
type:
|
|
1268
|
+
type: Zr,
|
|
1268
1269
|
comment: T
|
|
1269
1270
|
});
|
|
1270
1271
|
}
|
|
1271
1272
|
}
|
|
1272
1273
|
function d() {
|
|
1273
|
-
var y = l(), b = u(
|
|
1274
|
+
var y = l(), b = u(Yr);
|
|
1274
1275
|
if (b) {
|
|
1275
|
-
if (f(), !u(
|
|
1276
|
-
var T = u(
|
|
1277
|
-
type:
|
|
1278
|
-
property:
|
|
1279
|
-
value: T ?
|
|
1276
|
+
if (f(), !u(Xr)) return a("property missing ':'");
|
|
1277
|
+
var T = u(Qr), w = y({
|
|
1278
|
+
type: ei,
|
|
1279
|
+
property: Jn(b[0].replace(Qn, ke)),
|
|
1280
|
+
value: T ? Jn(T[0].replace(Qn, ke)) : ke
|
|
1280
1281
|
});
|
|
1281
|
-
return u(
|
|
1282
|
+
return u(Gr), w;
|
|
1282
1283
|
}
|
|
1283
1284
|
}
|
|
1284
1285
|
function p() {
|
|
@@ -1290,20 +1291,20 @@ function Zr(e, n) {
|
|
|
1290
1291
|
}
|
|
1291
1292
|
return c(), p();
|
|
1292
1293
|
}
|
|
1293
|
-
function
|
|
1294
|
-
return e ? e.replace(
|
|
1294
|
+
function Jn(e) {
|
|
1295
|
+
return e ? e.replace(Kr, ke) : ke;
|
|
1295
1296
|
}
|
|
1296
|
-
var
|
|
1297
|
+
var ti = ni, ri = We && We.__importDefault || function(e) {
|
|
1297
1298
|
return e && e.__esModule ? e : { default: e };
|
|
1298
1299
|
};
|
|
1299
|
-
Object.defineProperty(
|
|
1300
|
-
|
|
1301
|
-
const
|
|
1302
|
-
function
|
|
1300
|
+
Object.defineProperty(En, "__esModule", { value: !0 });
|
|
1301
|
+
En.default = li;
|
|
1302
|
+
const ii = ri(ti);
|
|
1303
|
+
function li(e, n) {
|
|
1303
1304
|
let t = null;
|
|
1304
1305
|
if (!e || typeof e != "string")
|
|
1305
1306
|
return t;
|
|
1306
|
-
const r = (0,
|
|
1307
|
+
const r = (0, ii.default)(e), i = typeof n == "function";
|
|
1307
1308
|
return r.forEach((l) => {
|
|
1308
1309
|
if (l.type !== "declaration")
|
|
1309
1310
|
return;
|
|
@@ -1314,29 +1315,29 @@ function ri(e, n) {
|
|
|
1314
1315
|
var Qe = {};
|
|
1315
1316
|
Object.defineProperty(Qe, "__esModule", { value: !0 });
|
|
1316
1317
|
Qe.camelCase = void 0;
|
|
1317
|
-
var
|
|
1318
|
-
return !e ||
|
|
1319
|
-
},
|
|
1318
|
+
var oi = /^--[a-zA-Z0-9_-]+$/, ai = /-([a-z])/g, ui = /^[^-]+$/, si = /^-(webkit|moz|ms|o|khtml)-/, ci = /^-(ms)-/, pi = function(e) {
|
|
1319
|
+
return !e || ui.test(e) || oi.test(e);
|
|
1320
|
+
}, fi = function(e, n) {
|
|
1320
1321
|
return n.toUpperCase();
|
|
1321
|
-
},
|
|
1322
|
+
}, Zn = function(e, n) {
|
|
1322
1323
|
return "".concat(n, "-");
|
|
1323
|
-
},
|
|
1324
|
-
return n === void 0 && (n = {}),
|
|
1324
|
+
}, hi = function(e, n) {
|
|
1325
|
+
return n === void 0 && (n = {}), pi(e) ? e : (e = e.toLowerCase(), n.reactCompat ? e = e.replace(ci, Zn) : e = e.replace(si, Zn), e.replace(ai, fi));
|
|
1325
1326
|
};
|
|
1326
|
-
Qe.camelCase =
|
|
1327
|
-
var
|
|
1327
|
+
Qe.camelCase = hi;
|
|
1328
|
+
var mi = We && We.__importDefault || function(e) {
|
|
1328
1329
|
return e && e.__esModule ? e : { default: e };
|
|
1329
|
-
},
|
|
1330
|
-
function
|
|
1330
|
+
}, di = mi(En), gi = Qe;
|
|
1331
|
+
function mn(e, n) {
|
|
1331
1332
|
var t = {};
|
|
1332
|
-
return !e || typeof e != "string" || (0,
|
|
1333
|
-
r && i && (t[(0,
|
|
1333
|
+
return !e || typeof e != "string" || (0, di.default)(e, function(r, i) {
|
|
1334
|
+
r && i && (t[(0, gi.camelCase)(r, n)] = i);
|
|
1334
1335
|
}), t;
|
|
1335
1336
|
}
|
|
1336
|
-
|
|
1337
|
-
var
|
|
1338
|
-
const
|
|
1339
|
-
function
|
|
1337
|
+
mn.default = mn;
|
|
1338
|
+
var yi = mn;
|
|
1339
|
+
const xi = /* @__PURE__ */ vt(yi), jt = Ht("end"), In = Ht("start");
|
|
1340
|
+
function Ht(e) {
|
|
1340
1341
|
return n;
|
|
1341
1342
|
function n(t) {
|
|
1342
1343
|
const r = t && t.position && t.position[e] || {};
|
|
@@ -1348,21 +1349,21 @@ function Ut(e) {
|
|
|
1348
1349
|
};
|
|
1349
1350
|
}
|
|
1350
1351
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const n =
|
|
1352
|
+
function ki(e) {
|
|
1353
|
+
const n = In(e), t = jt(e);
|
|
1353
1354
|
if (n && t)
|
|
1354
1355
|
return { start: n, end: t };
|
|
1355
1356
|
}
|
|
1356
1357
|
function Ne(e) {
|
|
1357
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
1358
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? et(e.position) : "start" in e || "end" in e ? et(e) : "line" in e || "column" in e ? dn(e) : "";
|
|
1358
1359
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return
|
|
1360
|
+
function dn(e) {
|
|
1361
|
+
return nt(e && e.line) + ":" + nt(e && e.column);
|
|
1361
1362
|
}
|
|
1362
|
-
function
|
|
1363
|
-
return
|
|
1363
|
+
function et(e) {
|
|
1364
|
+
return dn(e && e.start) + "-" + dn(e && e.end);
|
|
1364
1365
|
}
|
|
1365
|
-
function
|
|
1366
|
+
function nt(e) {
|
|
1366
1367
|
return e && typeof e == "number" ? e : 1;
|
|
1367
1368
|
}
|
|
1368
1369
|
class Q extends Error {
|
|
@@ -1452,8 +1453,8 @@ Q.prototype.fatal = void 0;
|
|
|
1452
1453
|
Q.prototype.place = void 0;
|
|
1453
1454
|
Q.prototype.ruleId = void 0;
|
|
1454
1455
|
Q.prototype.source = void 0;
|
|
1455
|
-
const
|
|
1456
|
-
function
|
|
1456
|
+
const Tn = {}.hasOwnProperty, bi = /* @__PURE__ */ new Map(), wi = /[A-Z]/g, Si = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ci = /* @__PURE__ */ new Set(["td", "th"]), Ut = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1457
|
+
function Ei(e, n) {
|
|
1457
1458
|
if (!n || n.Fragment === void 0)
|
|
1458
1459
|
throw new TypeError("Expected `Fragment` in options");
|
|
1459
1460
|
const t = n.filePath || void 0;
|
|
@@ -1463,13 +1464,13 @@ function Si(e, n) {
|
|
|
1463
1464
|
throw new TypeError(
|
|
1464
1465
|
"Expected `jsxDEV` in options when `development: true`"
|
|
1465
1466
|
);
|
|
1466
|
-
r =
|
|
1467
|
+
r = vi(t, n.jsxDEV);
|
|
1467
1468
|
} else {
|
|
1468
1469
|
if (typeof n.jsx != "function")
|
|
1469
1470
|
throw new TypeError("Expected `jsx` in production options");
|
|
1470
1471
|
if (typeof n.jsxs != "function")
|
|
1471
1472
|
throw new TypeError("Expected `jsxs` in production options");
|
|
1472
|
-
r =
|
|
1473
|
+
r = Oi(t, n.jsx, n.jsxs);
|
|
1473
1474
|
}
|
|
1474
1475
|
const i = {
|
|
1475
1476
|
Fragment: n.Fragment,
|
|
@@ -1482,10 +1483,10 @@ function Si(e, n) {
|
|
|
1482
1483
|
ignoreInvalidStyle: n.ignoreInvalidStyle || !1,
|
|
1483
1484
|
passKeys: n.passKeys !== !1,
|
|
1484
1485
|
passNode: n.passNode || !1,
|
|
1485
|
-
schema: n.space === "svg" ? Cn :
|
|
1486
|
+
schema: n.space === "svg" ? Cn : Vr,
|
|
1486
1487
|
stylePropertyNameCase: n.stylePropertyNameCase || "dom",
|
|
1487
1488
|
tableCellAlignToStyle: n.tableCellAlignToStyle !== !1
|
|
1488
|
-
}, l =
|
|
1489
|
+
}, l = Vt(i, e, void 0);
|
|
1489
1490
|
return l && typeof l != "string" ? l : i.create(
|
|
1490
1491
|
e,
|
|
1491
1492
|
i.Fragment,
|
|
@@ -1493,31 +1494,31 @@ function Si(e, n) {
|
|
|
1493
1494
|
void 0
|
|
1494
1495
|
);
|
|
1495
1496
|
}
|
|
1496
|
-
function
|
|
1497
|
+
function Vt(e, n, t) {
|
|
1497
1498
|
if (n.type === "element")
|
|
1498
|
-
return
|
|
1499
|
+
return Ii(e, n, t);
|
|
1499
1500
|
if (n.type === "mdxFlowExpression" || n.type === "mdxTextExpression")
|
|
1500
|
-
return
|
|
1501
|
+
return Ti(e, n);
|
|
1501
1502
|
if (n.type === "mdxJsxFlowElement" || n.type === "mdxJsxTextElement")
|
|
1502
|
-
return
|
|
1503
|
+
return Ai(e, n, t);
|
|
1503
1504
|
if (n.type === "mdxjsEsm")
|
|
1504
|
-
return
|
|
1505
|
+
return Pi(e, n);
|
|
1505
1506
|
if (n.type === "root")
|
|
1506
|
-
return
|
|
1507
|
+
return zi(e, n, t);
|
|
1507
1508
|
if (n.type === "text")
|
|
1508
|
-
return
|
|
1509
|
+
return Li(e, n);
|
|
1509
1510
|
}
|
|
1510
|
-
function
|
|
1511
|
+
function Ii(e, n, t) {
|
|
1511
1512
|
const r = e.schema;
|
|
1512
1513
|
let i = r;
|
|
1513
1514
|
n.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n);
|
|
1514
|
-
const l =
|
|
1515
|
-
let a =
|
|
1516
|
-
return
|
|
1517
|
-
return typeof u == "string" ? !
|
|
1518
|
-
})),
|
|
1515
|
+
const l = $t(e, n.tagName, !1), o = Di(e, n);
|
|
1516
|
+
let a = An(e, n);
|
|
1517
|
+
return Si.has(n.tagName) && (a = a.filter(function(u) {
|
|
1518
|
+
return typeof u == "string" ? !Dr(u) : !0;
|
|
1519
|
+
})), qt(e, o, l, n), Pn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
|
1519
1520
|
}
|
|
1520
|
-
function
|
|
1521
|
+
function Ti(e, n) {
|
|
1521
1522
|
if (n.data && n.data.estree && e.evaluater) {
|
|
1522
1523
|
const r = n.data.estree.body[0];
|
|
1523
1524
|
return r.type, /** @type {Child | undefined} */
|
|
@@ -1525,7 +1526,7 @@ function Ci(e, n) {
|
|
|
1525
1526
|
}
|
|
1526
1527
|
Re(e, n.position);
|
|
1527
1528
|
}
|
|
1528
|
-
function
|
|
1529
|
+
function Pi(e, n) {
|
|
1529
1530
|
if (n.data && n.data.estree && e.evaluater)
|
|
1530
1531
|
return (
|
|
1531
1532
|
/** @type {Child | undefined} */
|
|
@@ -1533,40 +1534,40 @@ function Ii(e, n) {
|
|
|
1533
1534
|
);
|
|
1534
1535
|
Re(e, n.position);
|
|
1535
1536
|
}
|
|
1536
|
-
function
|
|
1537
|
+
function Ai(e, n, t) {
|
|
1537
1538
|
const r = e.schema;
|
|
1538
1539
|
let i = r;
|
|
1539
1540
|
n.name === "svg" && r.space === "html" && (i = Cn, e.schema = i), e.ancestors.push(n);
|
|
1540
|
-
const l = n.name === null ? e.Fragment :
|
|
1541
|
-
return
|
|
1541
|
+
const l = n.name === null ? e.Fragment : $t(e, n.name, !0), o = Ni(e, n), a = An(e, n);
|
|
1542
|
+
return qt(e, o, l, n), Pn(o, a), e.ancestors.pop(), e.schema = r, e.create(n, l, o, t);
|
|
1542
1543
|
}
|
|
1543
|
-
function
|
|
1544
|
+
function zi(e, n, t) {
|
|
1544
1545
|
const r = {};
|
|
1545
|
-
return
|
|
1546
|
+
return Pn(r, An(e, n)), e.create(n, e.Fragment, r, t);
|
|
1546
1547
|
}
|
|
1547
|
-
function
|
|
1548
|
+
function Li(e, n) {
|
|
1548
1549
|
return n.value;
|
|
1549
1550
|
}
|
|
1550
|
-
function
|
|
1551
|
+
function qt(e, n, t, r) {
|
|
1551
1552
|
typeof t != "string" && t !== e.Fragment && e.passNode && (n.node = r);
|
|
1552
1553
|
}
|
|
1553
|
-
function
|
|
1554
|
+
function Pn(e, n) {
|
|
1554
1555
|
if (n.length > 0) {
|
|
1555
1556
|
const t = n.length > 1 ? n : n[0];
|
|
1556
1557
|
t && (e.children = t);
|
|
1557
1558
|
}
|
|
1558
1559
|
}
|
|
1559
|
-
function
|
|
1560
|
+
function Oi(e, n, t) {
|
|
1560
1561
|
return r;
|
|
1561
1562
|
function r(i, l, o, a) {
|
|
1562
1563
|
const c = Array.isArray(o.children) ? t : n;
|
|
1563
1564
|
return a ? c(l, o, a) : c(l, o);
|
|
1564
1565
|
}
|
|
1565
1566
|
}
|
|
1566
|
-
function
|
|
1567
|
+
function vi(e, n) {
|
|
1567
1568
|
return t;
|
|
1568
1569
|
function t(r, i, l, o) {
|
|
1569
|
-
const a = Array.isArray(l.children), u =
|
|
1570
|
+
const a = Array.isArray(l.children), u = In(r);
|
|
1570
1571
|
return n(
|
|
1571
1572
|
i,
|
|
1572
1573
|
l,
|
|
@@ -1581,15 +1582,15 @@ function Li(e, n) {
|
|
|
1581
1582
|
);
|
|
1582
1583
|
}
|
|
1583
1584
|
}
|
|
1584
|
-
function
|
|
1585
|
+
function Di(e, n) {
|
|
1585
1586
|
const t = {};
|
|
1586
1587
|
let r, i;
|
|
1587
1588
|
for (i in n.properties)
|
|
1588
|
-
if (i !== "children" &&
|
|
1589
|
-
const l =
|
|
1589
|
+
if (i !== "children" && Tn.call(n.properties, i)) {
|
|
1590
|
+
const l = _i(e, i, n.properties[i]);
|
|
1590
1591
|
if (l) {
|
|
1591
1592
|
const [o, a] = l;
|
|
1592
|
-
e.tableCellAlignToStyle && o === "align" && typeof a == "string" &&
|
|
1593
|
+
e.tableCellAlignToStyle && o === "align" && typeof a == "string" && Ci.has(n.tagName) ? r = a : t[o] = a;
|
|
1593
1594
|
}
|
|
1594
1595
|
}
|
|
1595
1596
|
if (r) {
|
|
@@ -1601,7 +1602,7 @@ function Oi(e, n) {
|
|
|
1601
1602
|
}
|
|
1602
1603
|
return t;
|
|
1603
1604
|
}
|
|
1604
|
-
function
|
|
1605
|
+
function Ni(e, n) {
|
|
1605
1606
|
const t = {};
|
|
1606
1607
|
for (const r of n.attributes)
|
|
1607
1608
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -1633,10 +1634,10 @@ function vi(e, n) {
|
|
|
1633
1634
|
}
|
|
1634
1635
|
return t;
|
|
1635
1636
|
}
|
|
1636
|
-
function
|
|
1637
|
+
function An(e, n) {
|
|
1637
1638
|
const t = [];
|
|
1638
1639
|
let r = -1;
|
|
1639
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1640
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : bi;
|
|
1640
1641
|
for (; ++r < n.children.length; ) {
|
|
1641
1642
|
const l = n.children[r];
|
|
1642
1643
|
let o;
|
|
@@ -1647,27 +1648,27 @@ function zn(e, n) {
|
|
|
1647
1648
|
o = u + "-" + c, i.set(u, c + 1);
|
|
1648
1649
|
}
|
|
1649
1650
|
}
|
|
1650
|
-
const a =
|
|
1651
|
+
const a = Vt(e, l, o);
|
|
1651
1652
|
a !== void 0 && t.push(a);
|
|
1652
1653
|
}
|
|
1653
1654
|
return t;
|
|
1654
1655
|
}
|
|
1655
|
-
function
|
|
1656
|
-
const r =
|
|
1656
|
+
function _i(e, n, t) {
|
|
1657
|
+
const r = jr(e.schema, n);
|
|
1657
1658
|
if (!(t == null || typeof t == "number" && Number.isNaN(t))) {
|
|
1658
|
-
if (Array.isArray(t) && (t = r.commaSeparated ?
|
|
1659
|
-
let i = typeof t == "object" ? t :
|
|
1660
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
1659
|
+
if (Array.isArray(t) && (t = r.commaSeparated ? Ar(t) : qr(t)), r.property === "style") {
|
|
1660
|
+
let i = typeof t == "object" ? t : Fi(e, String(t));
|
|
1661
|
+
return e.stylePropertyNameCase === "css" && (i = Ri(i)), ["style", i];
|
|
1661
1662
|
}
|
|
1662
1663
|
return [
|
|
1663
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
1664
|
+
e.elementAttributeNameCase === "react" && r.space ? Rr[r.property] || r.property : r.attribute,
|
|
1664
1665
|
t
|
|
1665
1666
|
];
|
|
1666
1667
|
}
|
|
1667
1668
|
}
|
|
1668
|
-
function
|
|
1669
|
+
function Fi(e, n) {
|
|
1669
1670
|
try {
|
|
1670
|
-
return
|
|
1671
|
+
return xi(n, { reactCompat: !0 });
|
|
1671
1672
|
} catch (t) {
|
|
1672
1673
|
if (e.ignoreInvalidStyle)
|
|
1673
1674
|
return {};
|
|
@@ -1680,10 +1681,10 @@ function Ni(e, n) {
|
|
|
1680
1681
|
ruleId: "style",
|
|
1681
1682
|
source: "hast-util-to-jsx-runtime"
|
|
1682
1683
|
});
|
|
1683
|
-
throw i.file = e.filePath || void 0, i.url =
|
|
1684
|
+
throw i.file = e.filePath || void 0, i.url = Ut + "#cannot-parse-style-attribute", i;
|
|
1684
1685
|
}
|
|
1685
1686
|
}
|
|
1686
|
-
function
|
|
1687
|
+
function $t(e, n, t) {
|
|
1687
1688
|
let r;
|
|
1688
1689
|
if (!t)
|
|
1689
1690
|
r = { type: "Literal", value: n };
|
|
@@ -1691,7 +1692,7 @@ function Wt(e, n, t) {
|
|
|
1691
1692
|
const i = n.split(".");
|
|
1692
1693
|
let l = -1, o;
|
|
1693
1694
|
for (; ++l < i.length; ) {
|
|
1694
|
-
const a =
|
|
1695
|
+
const a = $n(i[l]) ? { type: "Identifier", name: i[l] } : { type: "Literal", value: i[l] };
|
|
1695
1696
|
o = o ? {
|
|
1696
1697
|
type: "MemberExpression",
|
|
1697
1698
|
object: o,
|
|
@@ -1702,13 +1703,13 @@ function Wt(e, n, t) {
|
|
|
1702
1703
|
}
|
|
1703
1704
|
r = o;
|
|
1704
1705
|
} else
|
|
1705
|
-
r =
|
|
1706
|
+
r = $n(n) && !/^[a-z]/.test(n) ? { type: "Identifier", name: n } : { type: "Literal", value: n };
|
|
1706
1707
|
if (r.type === "Literal") {
|
|
1707
1708
|
const i = (
|
|
1708
1709
|
/** @type {string | number} */
|
|
1709
1710
|
r.value
|
|
1710
1711
|
);
|
|
1711
|
-
return
|
|
1712
|
+
return Tn.call(e.components, i) ? e.components[i] : i;
|
|
1712
1713
|
}
|
|
1713
1714
|
if (e.evaluater)
|
|
1714
1715
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -1724,23 +1725,23 @@ function Re(e, n) {
|
|
|
1724
1725
|
source: "hast-util-to-jsx-runtime"
|
|
1725
1726
|
}
|
|
1726
1727
|
);
|
|
1727
|
-
throw t.file = e.filePath || void 0, t.url =
|
|
1728
|
+
throw t.file = e.filePath || void 0, t.url = Ut + "#cannot-handle-mdx-estrees-without-createevaluater", t;
|
|
1728
1729
|
}
|
|
1729
|
-
function
|
|
1730
|
+
function Ri(e) {
|
|
1730
1731
|
const n = {};
|
|
1731
1732
|
let t;
|
|
1732
1733
|
for (t in e)
|
|
1733
|
-
|
|
1734
|
+
Tn.call(e, t) && (n[Mi(t)] = e[t]);
|
|
1734
1735
|
return n;
|
|
1735
1736
|
}
|
|
1736
|
-
function
|
|
1737
|
-
let n = e.replace(
|
|
1737
|
+
function Mi(e) {
|
|
1738
|
+
let n = e.replace(wi, Bi);
|
|
1738
1739
|
return n.slice(0, 3) === "ms-" && (n = "-" + n), n;
|
|
1739
1740
|
}
|
|
1740
|
-
function
|
|
1741
|
+
function Bi(e) {
|
|
1741
1742
|
return "-" + e.toLowerCase();
|
|
1742
1743
|
}
|
|
1743
|
-
const
|
|
1744
|
+
const en = {
|
|
1744
1745
|
action: ["form"],
|
|
1745
1746
|
cite: ["blockquote", "del", "ins", "q"],
|
|
1746
1747
|
data: ["object"],
|
|
@@ -1762,37 +1763,37 @@ const nn = {
|
|
|
1762
1763
|
"track",
|
|
1763
1764
|
"video"
|
|
1764
1765
|
]
|
|
1765
|
-
},
|
|
1766
|
-
function
|
|
1767
|
-
const t =
|
|
1768
|
-
return
|
|
1766
|
+
}, ji = {};
|
|
1767
|
+
function Hi(e, n) {
|
|
1768
|
+
const t = ji, r = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, i = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
|
|
1769
|
+
return Wt(e, r, i);
|
|
1769
1770
|
}
|
|
1770
|
-
function
|
|
1771
|
-
if (
|
|
1771
|
+
function Wt(e, n, t) {
|
|
1772
|
+
if (Ui(e)) {
|
|
1772
1773
|
if ("value" in e)
|
|
1773
1774
|
return e.type === "html" && !t ? "" : e.value;
|
|
1774
1775
|
if (n && "alt" in e && e.alt)
|
|
1775
1776
|
return e.alt;
|
|
1776
1777
|
if ("children" in e)
|
|
1777
|
-
return
|
|
1778
|
+
return tt(e.children, n, t);
|
|
1778
1779
|
}
|
|
1779
|
-
return Array.isArray(e) ?
|
|
1780
|
+
return Array.isArray(e) ? tt(e, n, t) : "";
|
|
1780
1781
|
}
|
|
1781
|
-
function
|
|
1782
|
+
function tt(e, n, t) {
|
|
1782
1783
|
const r = [];
|
|
1783
1784
|
let i = -1;
|
|
1784
1785
|
for (; ++i < e.length; )
|
|
1785
|
-
r[i] =
|
|
1786
|
+
r[i] = Wt(e[i], n, t);
|
|
1786
1787
|
return r.join("");
|
|
1787
1788
|
}
|
|
1788
|
-
function
|
|
1789
|
+
function Ui(e) {
|
|
1789
1790
|
return !!(e && typeof e == "object");
|
|
1790
1791
|
}
|
|
1791
|
-
const
|
|
1792
|
-
function
|
|
1792
|
+
const rt = document.createElement("i");
|
|
1793
|
+
function zn(e) {
|
|
1793
1794
|
const n = "&" + e + ";";
|
|
1794
|
-
|
|
1795
|
-
const t =
|
|
1795
|
+
rt.innerHTML = n;
|
|
1796
|
+
const t = rt.textContent;
|
|
1796
1797
|
return t.charCodeAt(t.length - 1) === 59 && e !== "semi" || t === n ? !1 : t;
|
|
1797
1798
|
}
|
|
1798
1799
|
function se(e, n, t, r) {
|
|
@@ -1807,24 +1808,24 @@ function se(e, n, t, r) {
|
|
|
1807
1808
|
function te(e, n) {
|
|
1808
1809
|
return e.length > 0 ? (se(e, e.length, 0, n), e) : n;
|
|
1809
1810
|
}
|
|
1810
|
-
const
|
|
1811
|
-
function
|
|
1811
|
+
const it = {}.hasOwnProperty;
|
|
1812
|
+
function Vi(e) {
|
|
1812
1813
|
const n = {};
|
|
1813
1814
|
let t = -1;
|
|
1814
1815
|
for (; ++t < e.length; )
|
|
1815
|
-
|
|
1816
|
+
qi(n, e[t]);
|
|
1816
1817
|
return n;
|
|
1817
1818
|
}
|
|
1818
|
-
function
|
|
1819
|
+
function qi(e, n) {
|
|
1819
1820
|
let t;
|
|
1820
1821
|
for (t in n) {
|
|
1821
|
-
const i = (
|
|
1822
|
+
const i = (it.call(e, t) ? e[t] : void 0) || (e[t] = {}), l = n[t];
|
|
1822
1823
|
let o;
|
|
1823
1824
|
if (l)
|
|
1824
1825
|
for (o in l) {
|
|
1825
|
-
|
|
1826
|
+
it.call(i, o) || (i[o] = []);
|
|
1826
1827
|
const a = l[o];
|
|
1827
|
-
|
|
1828
|
+
$i(
|
|
1828
1829
|
// @ts-expect-error Looks like a list.
|
|
1829
1830
|
i[o],
|
|
1830
1831
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -1832,14 +1833,14 @@ function Ui(e, n) {
|
|
|
1832
1833
|
}
|
|
1833
1834
|
}
|
|
1834
1835
|
}
|
|
1835
|
-
function
|
|
1836
|
+
function $i(e, n) {
|
|
1836
1837
|
let t = -1;
|
|
1837
1838
|
const r = [];
|
|
1838
1839
|
for (; ++t < n.length; )
|
|
1839
1840
|
(n[t].add === "after" ? e : r).push(n[t]);
|
|
1840
1841
|
se(e, 0, 0, r);
|
|
1841
1842
|
}
|
|
1842
|
-
function
|
|
1843
|
+
function Yt(e, n) {
|
|
1843
1844
|
const t = Number.parseInt(e, n);
|
|
1844
1845
|
return (
|
|
1845
1846
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -1855,15 +1856,15 @@ function Xt(e, n) {
|
|
|
1855
1856
|
function Te(e) {
|
|
1856
1857
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1857
1858
|
}
|
|
1858
|
-
const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/),
|
|
1859
|
-
function
|
|
1859
|
+
const ue = ge(/[A-Za-z]/), ne = ge(/[\dA-Za-z]/), Wi = ge(/[#-'*+\--9=?A-Z^-~]/);
|
|
1860
|
+
function gn(e) {
|
|
1860
1861
|
return (
|
|
1861
1862
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
1862
1863
|
// character DEL
|
|
1863
1864
|
e !== null && (e < 32 || e === 127)
|
|
1864
1865
|
);
|
|
1865
1866
|
}
|
|
1866
|
-
const
|
|
1867
|
+
const yn = ge(/\d/), Yi = ge(/[\dA-Fa-f]/), Xi = ge(/[!-/:-@[-`{-~]/);
|
|
1867
1868
|
function P(e) {
|
|
1868
1869
|
return e !== null && e < -2;
|
|
1869
1870
|
}
|
|
@@ -1873,7 +1874,7 @@ function K(e) {
|
|
|
1873
1874
|
function D(e) {
|
|
1874
1875
|
return e === -2 || e === -1 || e === 32;
|
|
1875
1876
|
}
|
|
1876
|
-
const
|
|
1877
|
+
const Qi = ge(new RegExp("\\p{P}|\\p{S}", "u")), Gi = ge(/\s/);
|
|
1877
1878
|
function ge(e) {
|
|
1878
1879
|
return n;
|
|
1879
1880
|
function n(t) {
|
|
@@ -1910,10 +1911,10 @@ function M(e, n, t, r) {
|
|
|
1910
1911
|
return D(u) && l++ < i ? (e.consume(u), a) : (e.exit(t), n(u));
|
|
1911
1912
|
}
|
|
1912
1913
|
}
|
|
1913
|
-
const
|
|
1914
|
-
tokenize:
|
|
1914
|
+
const Ki = {
|
|
1915
|
+
tokenize: Ji
|
|
1915
1916
|
};
|
|
1916
|
-
function
|
|
1917
|
+
function Ji(e) {
|
|
1917
1918
|
const n = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
1918
1919
|
let t;
|
|
1919
1920
|
return n;
|
|
@@ -1942,23 +1943,23 @@ function Gi(e) {
|
|
|
1942
1943
|
return P(a) ? (e.consume(a), e.exit("chunkText"), l) : (e.consume(a), o);
|
|
1943
1944
|
}
|
|
1944
1945
|
}
|
|
1945
|
-
const
|
|
1946
|
-
tokenize:
|
|
1947
|
-
},
|
|
1948
|
-
tokenize:
|
|
1946
|
+
const Zi = {
|
|
1947
|
+
tokenize: el
|
|
1948
|
+
}, lt = {
|
|
1949
|
+
tokenize: nl
|
|
1949
1950
|
};
|
|
1950
|
-
function
|
|
1951
|
+
function el(e) {
|
|
1951
1952
|
const n = this, t = [];
|
|
1952
1953
|
let r = 0, i, l, o;
|
|
1953
1954
|
return a;
|
|
1954
|
-
function a(
|
|
1955
|
+
function a(C) {
|
|
1955
1956
|
if (r < t.length) {
|
|
1956
1957
|
const j = t[r];
|
|
1957
|
-
return n.containerState = j[1], e.attempt(j[0].continuation, u, c)(
|
|
1958
|
+
return n.containerState = j[1], e.attempt(j[0].continuation, u, c)(C);
|
|
1958
1959
|
}
|
|
1959
|
-
return c(
|
|
1960
|
+
return c(C);
|
|
1960
1961
|
}
|
|
1961
|
-
function u(
|
|
1962
|
+
function u(C) {
|
|
1962
1963
|
if (r++, n.containerState._closeFlow) {
|
|
1963
1964
|
n.containerState._closeFlow = void 0, i && L();
|
|
1964
1965
|
const j = n.events.length;
|
|
@@ -1974,53 +1975,53 @@ function Ji(e) {
|
|
|
1974
1975
|
n.events[N][1].end = {
|
|
1975
1976
|
...x
|
|
1976
1977
|
}, N++;
|
|
1977
|
-
return se(n.events, U + 1, 0, n.events.slice(j)), n.events.length = N, c(
|
|
1978
|
+
return se(n.events, U + 1, 0, n.events.slice(j)), n.events.length = N, c(C);
|
|
1978
1979
|
}
|
|
1979
|
-
return a(
|
|
1980
|
+
return a(C);
|
|
1980
1981
|
}
|
|
1981
|
-
function c(
|
|
1982
|
+
function c(C) {
|
|
1982
1983
|
if (r === t.length) {
|
|
1983
1984
|
if (!i)
|
|
1984
|
-
return d(
|
|
1985
|
+
return d(C);
|
|
1985
1986
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
1986
|
-
return y(
|
|
1987
|
+
return y(C);
|
|
1987
1988
|
n.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
1988
1989
|
}
|
|
1989
|
-
return n.containerState = {}, e.check(
|
|
1990
|
+
return n.containerState = {}, e.check(lt, s, f)(C);
|
|
1990
1991
|
}
|
|
1991
|
-
function s(
|
|
1992
|
-
return i && L(), w(r), d(
|
|
1992
|
+
function s(C) {
|
|
1993
|
+
return i && L(), w(r), d(C);
|
|
1993
1994
|
}
|
|
1994
|
-
function f(
|
|
1995
|
-
return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, y(
|
|
1995
|
+
function f(C) {
|
|
1996
|
+
return n.parser.lazy[n.now().line] = r !== t.length, o = n.now().offset, y(C);
|
|
1996
1997
|
}
|
|
1997
|
-
function d(
|
|
1998
|
-
return n.containerState = {}, e.attempt(
|
|
1998
|
+
function d(C) {
|
|
1999
|
+
return n.containerState = {}, e.attempt(lt, p, y)(C);
|
|
1999
2000
|
}
|
|
2000
|
-
function p(
|
|
2001
|
-
return r++, t.push([n.currentConstruct, n.containerState]), d(
|
|
2001
|
+
function p(C) {
|
|
2002
|
+
return r++, t.push([n.currentConstruct, n.containerState]), d(C);
|
|
2002
2003
|
}
|
|
2003
|
-
function y(
|
|
2004
|
-
if (
|
|
2005
|
-
i && L(), w(0), e.consume(
|
|
2004
|
+
function y(C) {
|
|
2005
|
+
if (C === null) {
|
|
2006
|
+
i && L(), w(0), e.consume(C);
|
|
2006
2007
|
return;
|
|
2007
2008
|
}
|
|
2008
2009
|
return i = i || n.parser.flow(n.now()), e.enter("chunkFlow", {
|
|
2009
2010
|
_tokenizer: i,
|
|
2010
2011
|
contentType: "flow",
|
|
2011
2012
|
previous: l
|
|
2012
|
-
}), b(
|
|
2013
|
+
}), b(C);
|
|
2013
2014
|
}
|
|
2014
|
-
function b(
|
|
2015
|
-
if (
|
|
2016
|
-
T(e.exit("chunkFlow"), !0), w(0), e.consume(
|
|
2015
|
+
function b(C) {
|
|
2016
|
+
if (C === null) {
|
|
2017
|
+
T(e.exit("chunkFlow"), !0), w(0), e.consume(C);
|
|
2017
2018
|
return;
|
|
2018
2019
|
}
|
|
2019
|
-
return P(
|
|
2020
|
+
return P(C) ? (e.consume(C), T(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, a) : (e.consume(C), b);
|
|
2020
2021
|
}
|
|
2021
|
-
function T(
|
|
2022
|
-
const U = n.sliceStream(
|
|
2023
|
-
if (j && U.push(null),
|
|
2022
|
+
function T(C, j) {
|
|
2023
|
+
const U = n.sliceStream(C);
|
|
2024
|
+
if (j && U.push(null), C.previous = l, l && (l.next = C), l = C, i.defineSkip(C.start), i.write(U), n.parser.lazy[C.start.line]) {
|
|
2024
2025
|
let x = i.events.length;
|
|
2025
2026
|
for (; x--; )
|
|
2026
2027
|
if (
|
|
@@ -2047,28 +2048,28 @@ function Ji(e) {
|
|
|
2047
2048
|
se(n.events, V + 1, 0, n.events.slice(N)), n.events.length = x;
|
|
2048
2049
|
}
|
|
2049
2050
|
}
|
|
2050
|
-
function w(
|
|
2051
|
+
function w(C) {
|
|
2051
2052
|
let j = t.length;
|
|
2052
|
-
for (; j-- >
|
|
2053
|
+
for (; j-- > C; ) {
|
|
2053
2054
|
const U = t[j];
|
|
2054
2055
|
n.containerState = U[1], U[0].exit.call(n, e);
|
|
2055
2056
|
}
|
|
2056
|
-
t.length =
|
|
2057
|
+
t.length = C;
|
|
2057
2058
|
}
|
|
2058
2059
|
function L() {
|
|
2059
2060
|
i.write([null]), l = void 0, i = void 0, n.containerState._closeFlow = void 0;
|
|
2060
2061
|
}
|
|
2061
2062
|
}
|
|
2062
|
-
function
|
|
2063
|
+
function nl(e, n, t) {
|
|
2063
2064
|
return M(e, e.attempt(this.parser.constructs.document, n, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2064
2065
|
}
|
|
2065
|
-
function
|
|
2066
|
-
if (e === null || K(e) ||
|
|
2066
|
+
function ot(e) {
|
|
2067
|
+
if (e === null || K(e) || Gi(e))
|
|
2067
2068
|
return 1;
|
|
2068
|
-
if (
|
|
2069
|
+
if (Qi(e))
|
|
2069
2070
|
return 2;
|
|
2070
2071
|
}
|
|
2071
|
-
function
|
|
2072
|
+
function Ln(e, n, t) {
|
|
2072
2073
|
const r = [];
|
|
2073
2074
|
let i = -1;
|
|
2074
2075
|
for (; ++i < e.length; ) {
|
|
@@ -2077,12 +2078,12 @@ function On(e, n, t) {
|
|
|
2077
2078
|
}
|
|
2078
2079
|
return n;
|
|
2079
2080
|
}
|
|
2080
|
-
const
|
|
2081
|
+
const xn = {
|
|
2081
2082
|
name: "attention",
|
|
2082
|
-
resolveAll:
|
|
2083
|
-
tokenize:
|
|
2083
|
+
resolveAll: tl,
|
|
2084
|
+
tokenize: rl
|
|
2084
2085
|
};
|
|
2085
|
-
function
|
|
2086
|
+
function tl(e, n) {
|
|
2086
2087
|
let t = -1, r, i, l, o, a, u, c, s;
|
|
2087
2088
|
for (; ++t < e.length; )
|
|
2088
2089
|
if (e[t][0] === "enter" && e[t][1].type === "attentionSequence" && e[t][1]._close) {
|
|
@@ -2097,7 +2098,7 @@ function el(e, n) {
|
|
|
2097
2098
|
}, d = {
|
|
2098
2099
|
...e[t][1].start
|
|
2099
2100
|
};
|
|
2100
|
-
|
|
2101
|
+
at(f, -u), at(d, u), o = {
|
|
2101
2102
|
type: u > 1 ? "strongSequence" : "emphasisSequence",
|
|
2102
2103
|
start: f,
|
|
2103
2104
|
end: {
|
|
@@ -2129,7 +2130,7 @@ function el(e, n) {
|
|
|
2129
2130
|
...o.start
|
|
2130
2131
|
}, e[t][1].start = {
|
|
2131
2132
|
...a.end
|
|
2132
|
-
}, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = te(c, [["enter", e[r][1], n], ["exit", e[r][1], n]])), c = te(c, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), c = te(c,
|
|
2133
|
+
}, c = [], e[r][1].end.offset - e[r][1].start.offset && (c = te(c, [["enter", e[r][1], n], ["exit", e[r][1], n]])), c = te(c, [["enter", i, n], ["enter", o, n], ["exit", o, n], ["enter", l, n]]), c = te(c, Ln(n.parser.constructs.insideSpan.null, e.slice(r + 1, t), n)), c = te(c, [["exit", l, n], ["enter", a, n], ["exit", a, n], ["exit", i, n]]), e[t][1].end.offset - e[t][1].start.offset ? (s = 2, c = te(c, [["enter", e[t][1], n], ["exit", e[t][1], n]])) : s = 0, se(e, r - 1, t - r + 3, c), t = r + c.length - s - 2;
|
|
2133
2134
|
break;
|
|
2134
2135
|
}
|
|
2135
2136
|
}
|
|
@@ -2137,8 +2138,8 @@ function el(e, n) {
|
|
|
2137
2138
|
e[t][1].type === "attentionSequence" && (e[t][1].type = "data");
|
|
2138
2139
|
return e;
|
|
2139
2140
|
}
|
|
2140
|
-
function
|
|
2141
|
-
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i =
|
|
2141
|
+
function rl(e, n) {
|
|
2142
|
+
const t = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ot(r);
|
|
2142
2143
|
let l;
|
|
2143
2144
|
return o;
|
|
2144
2145
|
function o(u) {
|
|
@@ -2147,18 +2148,18 @@ function nl(e, n) {
|
|
|
2147
2148
|
function a(u) {
|
|
2148
2149
|
if (u === l)
|
|
2149
2150
|
return e.consume(u), a;
|
|
2150
|
-
const c = e.exit("attentionSequence"), s =
|
|
2151
|
+
const c = e.exit("attentionSequence"), s = ot(u), f = !s || s === 2 && i || t.includes(u), d = !i || i === 2 && s || t.includes(r);
|
|
2151
2152
|
return c._open = !!(l === 42 ? f : f && (i || !d)), c._close = !!(l === 42 ? d : d && (s || !f)), n(u);
|
|
2152
2153
|
}
|
|
2153
2154
|
}
|
|
2154
|
-
function
|
|
2155
|
+
function at(e, n) {
|
|
2155
2156
|
e.column += n, e.offset += n, e._bufferIndex += n;
|
|
2156
2157
|
}
|
|
2157
|
-
const
|
|
2158
|
+
const il = {
|
|
2158
2159
|
name: "autolink",
|
|
2159
|
-
tokenize:
|
|
2160
|
+
tokenize: ll
|
|
2160
2161
|
};
|
|
2161
|
-
function
|
|
2162
|
+
function ll(e, n, t) {
|
|
2162
2163
|
let r = 0;
|
|
2163
2164
|
return i;
|
|
2164
2165
|
function i(p) {
|
|
@@ -2174,10 +2175,10 @@ function rl(e, n, t) {
|
|
|
2174
2175
|
return p === 58 ? (e.consume(p), r = 0, u) : (p === 43 || p === 45 || p === 46 || ne(p)) && r++ < 32 ? (e.consume(p), a) : (r = 0, c(p));
|
|
2175
2176
|
}
|
|
2176
2177
|
function u(p) {
|
|
2177
|
-
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 ||
|
|
2178
|
+
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), n) : p === null || p === 32 || p === 60 || gn(p) ? t(p) : (e.consume(p), u);
|
|
2178
2179
|
}
|
|
2179
2180
|
function c(p) {
|
|
2180
|
-
return p === 64 ? (e.consume(p), s) :
|
|
2181
|
+
return p === 64 ? (e.consume(p), s) : Wi(p) ? (e.consume(p), c) : t(p);
|
|
2181
2182
|
}
|
|
2182
2183
|
function s(p) {
|
|
2183
2184
|
return ne(p) ? f(p) : t(p);
|
|
@@ -2195,9 +2196,9 @@ function rl(e, n, t) {
|
|
|
2195
2196
|
}
|
|
2196
2197
|
const Ge = {
|
|
2197
2198
|
partial: !0,
|
|
2198
|
-
tokenize:
|
|
2199
|
+
tokenize: ol
|
|
2199
2200
|
};
|
|
2200
|
-
function
|
|
2201
|
+
function ol(e, n, t) {
|
|
2201
2202
|
return r;
|
|
2202
2203
|
function r(l) {
|
|
2203
2204
|
return D(l) ? M(e, i, "linePrefix")(l) : i(l);
|
|
@@ -2206,15 +2207,15 @@ function il(e, n, t) {
|
|
|
2206
2207
|
return l === null || P(l) ? n(l) : t(l);
|
|
2207
2208
|
}
|
|
2208
2209
|
}
|
|
2209
|
-
const
|
|
2210
|
+
const Xt = {
|
|
2210
2211
|
continuation: {
|
|
2211
|
-
tokenize:
|
|
2212
|
+
tokenize: ul
|
|
2212
2213
|
},
|
|
2213
|
-
exit:
|
|
2214
|
+
exit: sl,
|
|
2214
2215
|
name: "blockQuote",
|
|
2215
|
-
tokenize:
|
|
2216
|
+
tokenize: al
|
|
2216
2217
|
};
|
|
2217
|
-
function
|
|
2218
|
+
function al(e, n, t) {
|
|
2218
2219
|
const r = this;
|
|
2219
2220
|
return i;
|
|
2220
2221
|
function i(o) {
|
|
@@ -2230,37 +2231,37 @@ function ll(e, n, t) {
|
|
|
2230
2231
|
return D(o) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(o), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(o));
|
|
2231
2232
|
}
|
|
2232
2233
|
}
|
|
2233
|
-
function
|
|
2234
|
+
function ul(e, n, t) {
|
|
2234
2235
|
const r = this;
|
|
2235
2236
|
return i;
|
|
2236
2237
|
function i(o) {
|
|
2237
2238
|
return D(o) ? M(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
|
|
2238
2239
|
}
|
|
2239
2240
|
function l(o) {
|
|
2240
|
-
return e.attempt(
|
|
2241
|
+
return e.attempt(Xt, n, t)(o);
|
|
2241
2242
|
}
|
|
2242
2243
|
}
|
|
2243
|
-
function
|
|
2244
|
+
function sl(e) {
|
|
2244
2245
|
e.exit("blockQuote");
|
|
2245
2246
|
}
|
|
2246
|
-
const
|
|
2247
|
+
const Qt = {
|
|
2247
2248
|
name: "characterEscape",
|
|
2248
|
-
tokenize:
|
|
2249
|
+
tokenize: cl
|
|
2249
2250
|
};
|
|
2250
|
-
function
|
|
2251
|
+
function cl(e, n, t) {
|
|
2251
2252
|
return r;
|
|
2252
2253
|
function r(l) {
|
|
2253
2254
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(l), e.exit("escapeMarker"), i;
|
|
2254
2255
|
}
|
|
2255
2256
|
function i(l) {
|
|
2256
|
-
return
|
|
2257
|
+
return Xi(l) ? (e.enter("characterEscapeValue"), e.consume(l), e.exit("characterEscapeValue"), e.exit("characterEscape"), n) : t(l);
|
|
2257
2258
|
}
|
|
2258
2259
|
}
|
|
2259
|
-
const
|
|
2260
|
+
const Gt = {
|
|
2260
2261
|
name: "characterReference",
|
|
2261
|
-
tokenize:
|
|
2262
|
+
tokenize: pl
|
|
2262
2263
|
};
|
|
2263
|
-
function
|
|
2264
|
+
function pl(e, n, t) {
|
|
2264
2265
|
const r = this;
|
|
2265
2266
|
let i = 0, l, o;
|
|
2266
2267
|
return a;
|
|
@@ -2271,25 +2272,25 @@ function sl(e, n, t) {
|
|
|
2271
2272
|
return f === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(f), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), l = 31, o = ne, s(f));
|
|
2272
2273
|
}
|
|
2273
2274
|
function c(f) {
|
|
2274
|
-
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o =
|
|
2275
|
+
return f === 88 || f === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(f), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, o = Yi, s) : (e.enter("characterReferenceValue"), l = 7, o = yn, s(f));
|
|
2275
2276
|
}
|
|
2276
2277
|
function s(f) {
|
|
2277
2278
|
if (f === 59 && i) {
|
|
2278
2279
|
const d = e.exit("characterReferenceValue");
|
|
2279
|
-
return o === ne && !
|
|
2280
|
+
return o === ne && !zn(r.sliceSerialize(d)) ? t(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), n);
|
|
2280
2281
|
}
|
|
2281
2282
|
return o(f) && i++ < l ? (e.consume(f), s) : t(f);
|
|
2282
2283
|
}
|
|
2283
2284
|
}
|
|
2284
|
-
const
|
|
2285
|
+
const ut = {
|
|
2285
2286
|
partial: !0,
|
|
2286
|
-
tokenize:
|
|
2287
|
-
},
|
|
2287
|
+
tokenize: hl
|
|
2288
|
+
}, st = {
|
|
2288
2289
|
concrete: !0,
|
|
2289
2290
|
name: "codeFenced",
|
|
2290
|
-
tokenize:
|
|
2291
|
+
tokenize: fl
|
|
2291
2292
|
};
|
|
2292
|
-
function
|
|
2293
|
+
function fl(e, n, t) {
|
|
2293
2294
|
const r = this, i = {
|
|
2294
2295
|
partial: !0,
|
|
2295
2296
|
tokenize: U
|
|
@@ -2307,7 +2308,7 @@ function cl(e, n, t) {
|
|
|
2307
2308
|
return x === a ? (o++, e.consume(x), s) : o < 3 ? t(x) : (e.exit("codeFencedFenceSequence"), D(x) ? M(e, f, "whitespace")(x) : f(x));
|
|
2308
2309
|
}
|
|
2309
2310
|
function f(x) {
|
|
2310
|
-
return x === null || P(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(
|
|
2311
|
+
return x === null || P(x) ? (e.exit("codeFencedFence"), r.interrupt ? n(x) : e.check(ut, b, j)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
2311
2312
|
contentType: "string"
|
|
2312
2313
|
}), d(x));
|
|
2313
2314
|
}
|
|
@@ -2332,10 +2333,10 @@ function cl(e, n, t) {
|
|
|
2332
2333
|
return l > 0 && D(x) ? M(e, L, "linePrefix", l + 1)(x) : L(x);
|
|
2333
2334
|
}
|
|
2334
2335
|
function L(x) {
|
|
2335
|
-
return x === null || P(x) ? e.check(
|
|
2336
|
+
return x === null || P(x) ? e.check(ut, b, j)(x) : (e.enter("codeFlowValue"), C(x));
|
|
2336
2337
|
}
|
|
2337
|
-
function
|
|
2338
|
-
return x === null || P(x) ? (e.exit("codeFlowValue"), L(x)) : (e.consume(x),
|
|
2338
|
+
function C(x) {
|
|
2339
|
+
return x === null || P(x) ? (e.exit("codeFlowValue"), L(x)) : (e.consume(x), C);
|
|
2339
2340
|
}
|
|
2340
2341
|
function j(x) {
|
|
2341
2342
|
return e.exit("codeFenced"), n(x);
|
|
@@ -2347,9 +2348,9 @@ function cl(e, n, t) {
|
|
|
2347
2348
|
return x.enter("lineEnding"), x.consume(v), x.exit("lineEnding"), I;
|
|
2348
2349
|
}
|
|
2349
2350
|
function I(v) {
|
|
2350
|
-
return x.enter("codeFencedFence"), D(v) ? M(x,
|
|
2351
|
+
return x.enter("codeFencedFence"), D(v) ? M(x, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(v) : E(v);
|
|
2351
2352
|
}
|
|
2352
|
-
function
|
|
2353
|
+
function E(v) {
|
|
2353
2354
|
return v === a ? (x.enter("codeFencedFenceSequence"), H(v)) : V(v);
|
|
2354
2355
|
}
|
|
2355
2356
|
function H(v) {
|
|
@@ -2360,7 +2361,7 @@ function cl(e, n, t) {
|
|
|
2360
2361
|
}
|
|
2361
2362
|
}
|
|
2362
2363
|
}
|
|
2363
|
-
function
|
|
2364
|
+
function hl(e, n, t) {
|
|
2364
2365
|
const r = this;
|
|
2365
2366
|
return i;
|
|
2366
2367
|
function i(o) {
|
|
@@ -2370,14 +2371,14 @@ function pl(e, n, t) {
|
|
|
2370
2371
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
|
2371
2372
|
}
|
|
2372
2373
|
}
|
|
2373
|
-
const
|
|
2374
|
+
const nn = {
|
|
2374
2375
|
name: "codeIndented",
|
|
2375
|
-
tokenize:
|
|
2376
|
-
},
|
|
2376
|
+
tokenize: dl
|
|
2377
|
+
}, ml = {
|
|
2377
2378
|
partial: !0,
|
|
2378
|
-
tokenize:
|
|
2379
|
+
tokenize: gl
|
|
2379
2380
|
};
|
|
2380
|
-
function
|
|
2381
|
+
function dl(e, n, t) {
|
|
2381
2382
|
const r = this;
|
|
2382
2383
|
return i;
|
|
2383
2384
|
function i(c) {
|
|
@@ -2388,7 +2389,7 @@ function hl(e, n, t) {
|
|
|
2388
2389
|
return s && s[1].type === "linePrefix" && s[2].sliceSerialize(s[1], !0).length >= 4 ? o(c) : t(c);
|
|
2389
2390
|
}
|
|
2390
2391
|
function o(c) {
|
|
2391
|
-
return c === null ? u(c) : P(c) ? e.attempt(
|
|
2392
|
+
return c === null ? u(c) : P(c) ? e.attempt(ml, o, u)(c) : (e.enter("codeFlowValue"), a(c));
|
|
2392
2393
|
}
|
|
2393
2394
|
function a(c) {
|
|
2394
2395
|
return c === null || P(c) ? (e.exit("codeFlowValue"), o(c)) : (e.consume(c), a);
|
|
@@ -2397,7 +2398,7 @@ function hl(e, n, t) {
|
|
|
2397
2398
|
return e.exit("codeIndented"), n(c);
|
|
2398
2399
|
}
|
|
2399
2400
|
}
|
|
2400
|
-
function
|
|
2401
|
+
function gl(e, n, t) {
|
|
2401
2402
|
const r = this;
|
|
2402
2403
|
return i;
|
|
2403
2404
|
function i(o) {
|
|
@@ -2408,13 +2409,13 @@ function ml(e, n, t) {
|
|
|
2408
2409
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : P(o) ? i(o) : t(o);
|
|
2409
2410
|
}
|
|
2410
2411
|
}
|
|
2411
|
-
const
|
|
2412
|
+
const yl = {
|
|
2412
2413
|
name: "codeText",
|
|
2413
|
-
previous:
|
|
2414
|
-
resolve:
|
|
2415
|
-
tokenize:
|
|
2414
|
+
previous: kl,
|
|
2415
|
+
resolve: xl,
|
|
2416
|
+
tokenize: bl
|
|
2416
2417
|
};
|
|
2417
|
-
function
|
|
2418
|
+
function xl(e) {
|
|
2418
2419
|
let n = e.length - 4, t = 3, r, i;
|
|
2419
2420
|
if ((e[t][1].type === "lineEnding" || e[t][1].type === "space") && (e[n][1].type === "lineEnding" || e[n][1].type === "space")) {
|
|
2420
2421
|
for (r = t; ++r < n; )
|
|
@@ -2427,10 +2428,10 @@ function gl(e) {
|
|
|
2427
2428
|
i === void 0 ? r !== n && e[r][1].type !== "lineEnding" && (i = r) : (r === n || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), n -= r - i - 2, r = i + 2), i = void 0);
|
|
2428
2429
|
return e;
|
|
2429
2430
|
}
|
|
2430
|
-
function
|
|
2431
|
+
function kl(e) {
|
|
2431
2432
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2432
2433
|
}
|
|
2433
|
-
function
|
|
2434
|
+
function bl(e, n, t) {
|
|
2434
2435
|
let r = 0, i, l;
|
|
2435
2436
|
return o;
|
|
2436
2437
|
function o(f) {
|
|
@@ -2449,7 +2450,7 @@ function xl(e, n, t) {
|
|
|
2449
2450
|
return f === 96 ? (e.consume(f), i++, s) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), n(f)) : (l.type = "codeTextData", c(f));
|
|
2450
2451
|
}
|
|
2451
2452
|
}
|
|
2452
|
-
class
|
|
2453
|
+
class wl {
|
|
2453
2454
|
/**
|
|
2454
2455
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
2455
2456
|
* Initial items (optional).
|
|
@@ -2621,10 +2622,10 @@ function ve(e, n) {
|
|
|
2621
2622
|
for (; t < n.length; )
|
|
2622
2623
|
e.push(...n.slice(t, t + 1e4)), t += 1e4;
|
|
2623
2624
|
}
|
|
2624
|
-
function
|
|
2625
|
+
function Kt(e) {
|
|
2625
2626
|
const n = {};
|
|
2626
2627
|
let t = -1, r, i, l, o, a, u, c;
|
|
2627
|
-
const s = new
|
|
2628
|
+
const s = new wl(e);
|
|
2628
2629
|
for (; ++t < s.length; ) {
|
|
2629
2630
|
for (; t in n; )
|
|
2630
2631
|
t = n[t];
|
|
@@ -2632,7 +2633,7 @@ function Jt(e) {
|
|
|
2632
2633
|
for (; ++l < u.length && u[l][1].type !== "content"; )
|
|
2633
2634
|
u[l][1].type === "chunkText" && (u[l][1]._isInFirstContentOfListItem = !0, l++);
|
|
2634
2635
|
if (r[0] === "enter")
|
|
2635
|
-
r[1].contentType && (Object.assign(n,
|
|
2636
|
+
r[1].contentType && (Object.assign(n, Sl(s, t)), t = n[t], c = !0);
|
|
2636
2637
|
else if (r[1]._container) {
|
|
2637
2638
|
for (l = t, i = void 0; l--; )
|
|
2638
2639
|
if (o = s.get(l), o[1].type === "lineEnding" || o[1].type === "lineEndingBlank")
|
|
@@ -2645,7 +2646,7 @@ function Jt(e) {
|
|
|
2645
2646
|
}
|
|
2646
2647
|
return se(e, 0, Number.POSITIVE_INFINITY, s.slice(0)), !c;
|
|
2647
2648
|
}
|
|
2648
|
-
function
|
|
2649
|
+
function Sl(e, n) {
|
|
2649
2650
|
const t = e.get(n)[1], r = e.get(n)[2];
|
|
2650
2651
|
let i = n - 1;
|
|
2651
2652
|
const l = [];
|
|
@@ -2670,17 +2671,17 @@ function bl(e, n) {
|
|
|
2670
2671
|
c[y + u[d][0]] = y + u[d][1], y += u[d][1] - u[d][0] - 1;
|
|
2671
2672
|
return c;
|
|
2672
2673
|
}
|
|
2673
|
-
const
|
|
2674
|
-
resolve:
|
|
2675
|
-
tokenize:
|
|
2676
|
-
},
|
|
2674
|
+
const Cl = {
|
|
2675
|
+
resolve: Il,
|
|
2676
|
+
tokenize: Tl
|
|
2677
|
+
}, El = {
|
|
2677
2678
|
partial: !0,
|
|
2678
|
-
tokenize:
|
|
2679
|
+
tokenize: Pl
|
|
2679
2680
|
};
|
|
2680
|
-
function
|
|
2681
|
-
return
|
|
2681
|
+
function Il(e) {
|
|
2682
|
+
return Kt(e), e;
|
|
2682
2683
|
}
|
|
2683
|
-
function
|
|
2684
|
+
function Tl(e, n) {
|
|
2684
2685
|
let t;
|
|
2685
2686
|
return r;
|
|
2686
2687
|
function r(a) {
|
|
@@ -2689,7 +2690,7 @@ function Cl(e, n) {
|
|
|
2689
2690
|
}), i(a);
|
|
2690
2691
|
}
|
|
2691
2692
|
function i(a) {
|
|
2692
|
-
return a === null ? l(a) : P(a) ? e.check(
|
|
2693
|
+
return a === null ? l(a) : P(a) ? e.check(El, o, l)(a) : (e.consume(a), i);
|
|
2693
2694
|
}
|
|
2694
2695
|
function l(a) {
|
|
2695
2696
|
return e.exit("chunkContent"), e.exit("content"), n(a);
|
|
@@ -2701,7 +2702,7 @@ function Cl(e, n) {
|
|
|
2701
2702
|
}), t = t.next, i;
|
|
2702
2703
|
}
|
|
2703
2704
|
}
|
|
2704
|
-
function
|
|
2705
|
+
function Pl(e, n, t) {
|
|
2705
2706
|
const r = this;
|
|
2706
2707
|
return i;
|
|
2707
2708
|
function i(o) {
|
|
@@ -2714,12 +2715,12 @@ function Il(e, n, t) {
|
|
|
2714
2715
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? n(o) : e.interrupt(r.parser.constructs.flow, t, n)(o);
|
|
2715
2716
|
}
|
|
2716
2717
|
}
|
|
2717
|
-
function
|
|
2718
|
+
function Jt(e, n, t, r, i, l, o, a, u) {
|
|
2718
2719
|
const c = u || Number.POSITIVE_INFINITY;
|
|
2719
2720
|
let s = 0;
|
|
2720
2721
|
return f;
|
|
2721
2722
|
function f(w) {
|
|
2722
|
-
return w === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(w), e.exit(l), d) : w === null || w === 32 || w === 41 ||
|
|
2723
|
+
return w === 60 ? (e.enter(r), e.enter(i), e.enter(l), e.consume(w), e.exit(l), d) : w === null || w === 32 || w === 41 || gn(w) ? t(w) : (e.enter(r), e.enter(o), e.enter(a), e.enter("chunkString", {
|
|
2723
2724
|
contentType: "string"
|
|
2724
2725
|
}), b(w));
|
|
2725
2726
|
}
|
|
@@ -2735,13 +2736,13 @@ function Zt(e, n, t, r, i, l, o, a, u) {
|
|
|
2735
2736
|
return w === 60 || w === 62 || w === 92 ? (e.consume(w), p) : p(w);
|
|
2736
2737
|
}
|
|
2737
2738
|
function b(w) {
|
|
2738
|
-
return !s && (w === null || w === 41 || K(w)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(w)) : s < c && w === 40 ? (e.consume(w), s++, b) : w === 41 ? (e.consume(w), s--, b) : w === null || w === 32 || w === 40 ||
|
|
2739
|
+
return !s && (w === null || w === 41 || K(w)) ? (e.exit("chunkString"), e.exit(a), e.exit(o), e.exit(r), n(w)) : s < c && w === 40 ? (e.consume(w), s++, b) : w === 41 ? (e.consume(w), s--, b) : w === null || w === 32 || w === 40 || gn(w) ? t(w) : (e.consume(w), w === 92 ? T : b);
|
|
2739
2740
|
}
|
|
2740
2741
|
function T(w) {
|
|
2741
2742
|
return w === 40 || w === 41 || w === 92 ? (e.consume(w), b) : b(w);
|
|
2742
2743
|
}
|
|
2743
2744
|
}
|
|
2744
|
-
function
|
|
2745
|
+
function Zt(e, n, t, r, i, l) {
|
|
2745
2746
|
const o = this;
|
|
2746
2747
|
let a = 0, u;
|
|
2747
2748
|
return c;
|
|
@@ -2765,7 +2766,7 @@ function er(e, n, t, r, i, l) {
|
|
|
2765
2766
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), a++, f) : f(p);
|
|
2766
2767
|
}
|
|
2767
2768
|
}
|
|
2768
|
-
function
|
|
2769
|
+
function er(e, n, t, r, i, l) {
|
|
2769
2770
|
let o;
|
|
2770
2771
|
return a;
|
|
2771
2772
|
function a(d) {
|
|
@@ -2793,14 +2794,14 @@ function _e(e, n) {
|
|
|
2793
2794
|
return P(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), t = !0, r) : D(i) ? M(e, r, t ? "linePrefix" : "lineSuffix")(i) : n(i);
|
|
2794
2795
|
}
|
|
2795
2796
|
}
|
|
2796
|
-
const
|
|
2797
|
+
const Al = {
|
|
2797
2798
|
name: "definition",
|
|
2798
|
-
tokenize:
|
|
2799
|
-
},
|
|
2799
|
+
tokenize: Ll
|
|
2800
|
+
}, zl = {
|
|
2800
2801
|
partial: !0,
|
|
2801
|
-
tokenize:
|
|
2802
|
+
tokenize: Ol
|
|
2802
2803
|
};
|
|
2803
|
-
function
|
|
2804
|
+
function Ll(e, n, t) {
|
|
2804
2805
|
const r = this;
|
|
2805
2806
|
let i;
|
|
2806
2807
|
return l;
|
|
@@ -2808,7 +2809,7 @@ function Al(e, n, t) {
|
|
|
2808
2809
|
return e.enter("definition"), o(p);
|
|
2809
2810
|
}
|
|
2810
2811
|
function o(p) {
|
|
2811
|
-
return
|
|
2812
|
+
return Zt.call(
|
|
2812
2813
|
r,
|
|
2813
2814
|
e,
|
|
2814
2815
|
a,
|
|
@@ -2826,7 +2827,7 @@ function Al(e, n, t) {
|
|
|
2826
2827
|
return K(p) ? _e(e, c)(p) : c(p);
|
|
2827
2828
|
}
|
|
2828
2829
|
function c(p) {
|
|
2829
|
-
return
|
|
2830
|
+
return Jt(
|
|
2830
2831
|
e,
|
|
2831
2832
|
s,
|
|
2832
2833
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
|
@@ -2839,7 +2840,7 @@ function Al(e, n, t) {
|
|
|
2839
2840
|
)(p);
|
|
2840
2841
|
}
|
|
2841
2842
|
function s(p) {
|
|
2842
|
-
return e.attempt(
|
|
2843
|
+
return e.attempt(zl, f, f)(p);
|
|
2843
2844
|
}
|
|
2844
2845
|
function f(p) {
|
|
2845
2846
|
return D(p) ? M(e, d, "whitespace")(p) : d(p);
|
|
@@ -2848,13 +2849,13 @@ function Al(e, n, t) {
|
|
|
2848
2849
|
return p === null || P(p) ? (e.exit("definition"), r.parser.defined.push(i), n(p)) : t(p);
|
|
2849
2850
|
}
|
|
2850
2851
|
}
|
|
2851
|
-
function
|
|
2852
|
+
function Ol(e, n, t) {
|
|
2852
2853
|
return r;
|
|
2853
2854
|
function r(a) {
|
|
2854
2855
|
return K(a) ? _e(e, i)(a) : t(a);
|
|
2855
2856
|
}
|
|
2856
2857
|
function i(a) {
|
|
2857
|
-
return
|
|
2858
|
+
return er(e, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
2858
2859
|
}
|
|
2859
2860
|
function l(a) {
|
|
2860
2861
|
return D(a) ? M(e, o, "whitespace")(a) : o(a);
|
|
@@ -2863,11 +2864,11 @@ function zl(e, n, t) {
|
|
|
2863
2864
|
return a === null || P(a) ? n(a) : t(a);
|
|
2864
2865
|
}
|
|
2865
2866
|
}
|
|
2866
|
-
const
|
|
2867
|
+
const vl = {
|
|
2867
2868
|
name: "hardBreakEscape",
|
|
2868
|
-
tokenize:
|
|
2869
|
+
tokenize: Dl
|
|
2869
2870
|
};
|
|
2870
|
-
function
|
|
2871
|
+
function Dl(e, n, t) {
|
|
2871
2872
|
return r;
|
|
2872
2873
|
function r(l) {
|
|
2873
2874
|
return e.enter("hardBreakEscape"), e.consume(l), i;
|
|
@@ -2876,12 +2877,12 @@ function Ol(e, n, t) {
|
|
|
2876
2877
|
return P(l) ? (e.exit("hardBreakEscape"), n(l)) : t(l);
|
|
2877
2878
|
}
|
|
2878
2879
|
}
|
|
2879
|
-
const
|
|
2880
|
+
const Nl = {
|
|
2880
2881
|
name: "headingAtx",
|
|
2881
|
-
resolve:
|
|
2882
|
-
tokenize:
|
|
2882
|
+
resolve: _l,
|
|
2883
|
+
tokenize: Fl
|
|
2883
2884
|
};
|
|
2884
|
-
function
|
|
2885
|
+
function _l(e, n) {
|
|
2885
2886
|
let t = e.length - 2, r = 3, i, l;
|
|
2886
2887
|
return e[r][1].type === "whitespace" && (r += 2), t - 2 > r && e[t][1].type === "whitespace" && (t -= 2), e[t][1].type === "atxHeadingSequence" && (r === t - 1 || t - 4 > r && e[t - 2][1].type === "whitespace") && (t -= r + 1 === t ? 2 : 4), t > r && (i = {
|
|
2887
2888
|
type: "atxHeadingText",
|
|
@@ -2894,7 +2895,7 @@ function Dl(e, n) {
|
|
|
2894
2895
|
contentType: "text"
|
|
2895
2896
|
}, se(e, r, t - r + 1, [["enter", i, n], ["enter", l, n], ["exit", l, n], ["exit", i, n]])), e;
|
|
2896
2897
|
}
|
|
2897
|
-
function
|
|
2898
|
+
function Fl(e, n, t) {
|
|
2898
2899
|
let r = 0;
|
|
2899
2900
|
return i;
|
|
2900
2901
|
function i(s) {
|
|
@@ -2916,7 +2917,7 @@ function Nl(e, n, t) {
|
|
|
2916
2917
|
return s === null || s === 35 || K(s) ? (e.exit("atxHeadingText"), a(s)) : (e.consume(s), c);
|
|
2917
2918
|
}
|
|
2918
2919
|
}
|
|
2919
|
-
const
|
|
2920
|
+
const Rl = [
|
|
2920
2921
|
"address",
|
|
2921
2922
|
"article",
|
|
2922
2923
|
"aside",
|
|
@@ -2979,25 +2980,25 @@ const _l = [
|
|
|
2979
2980
|
"tr",
|
|
2980
2981
|
"track",
|
|
2981
2982
|
"ul"
|
|
2982
|
-
],
|
|
2983
|
+
], ct = ["pre", "script", "style", "textarea"], Ml = {
|
|
2983
2984
|
concrete: !0,
|
|
2984
2985
|
name: "htmlFlow",
|
|
2985
|
-
resolveTo:
|
|
2986
|
-
tokenize: jl
|
|
2987
|
-
}, Rl = {
|
|
2988
|
-
partial: !0,
|
|
2986
|
+
resolveTo: Hl,
|
|
2989
2987
|
tokenize: Ul
|
|
2990
|
-
},
|
|
2988
|
+
}, Bl = {
|
|
2989
|
+
partial: !0,
|
|
2990
|
+
tokenize: ql
|
|
2991
|
+
}, jl = {
|
|
2991
2992
|
partial: !0,
|
|
2992
|
-
tokenize:
|
|
2993
|
+
tokenize: Vl
|
|
2993
2994
|
};
|
|
2994
|
-
function
|
|
2995
|
+
function Hl(e) {
|
|
2995
2996
|
let n = e.length;
|
|
2996
2997
|
for (; n-- && !(e[n][0] === "enter" && e[n][1].type === "htmlFlow"); )
|
|
2997
2998
|
;
|
|
2998
2999
|
return n > 1 && e[n - 2][1].type === "linePrefix" && (e[n][1].start = e[n - 2][1].start, e[n + 1][1].start = e[n - 2][1].start, e.splice(n - 2, 2)), e;
|
|
2999
3000
|
}
|
|
3000
|
-
function
|
|
3001
|
+
function Ul(e, n, t) {
|
|
3001
3002
|
const r = this;
|
|
3002
3003
|
let i, l, o, a, u;
|
|
3003
3004
|
return c;
|
|
@@ -3018,7 +3019,7 @@ function jl(e, n, t) {
|
|
|
3018
3019
|
}
|
|
3019
3020
|
function y(m) {
|
|
3020
3021
|
const le = "CDATA[";
|
|
3021
|
-
return m === le.charCodeAt(a++) ? (e.consume(m), a === le.length ? r.interrupt ? n :
|
|
3022
|
+
return m === le.charCodeAt(a++) ? (e.consume(m), a === le.length ? r.interrupt ? n : E : y) : t(m);
|
|
3022
3023
|
}
|
|
3023
3024
|
function b(m) {
|
|
3024
3025
|
return ue(m) ? (e.consume(m), o = String.fromCharCode(m), T) : t(m);
|
|
@@ -3026,24 +3027,24 @@ function jl(e, n, t) {
|
|
|
3026
3027
|
function T(m) {
|
|
3027
3028
|
if (m === null || m === 47 || m === 62 || K(m)) {
|
|
3028
3029
|
const le = m === 47, ye = o.toLowerCase();
|
|
3029
|
-
return !le && !l &&
|
|
3030
|
+
return !le && !l && ct.includes(ye) ? (i = 1, r.interrupt ? n(m) : E(m)) : Rl.includes(o.toLowerCase()) ? (i = 6, le ? (e.consume(m), w) : r.interrupt ? n(m) : E(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? L(m) : C(m));
|
|
3030
3031
|
}
|
|
3031
3032
|
return m === 45 || ne(m) ? (e.consume(m), o += String.fromCharCode(m), T) : t(m);
|
|
3032
3033
|
}
|
|
3033
3034
|
function w(m) {
|
|
3034
|
-
return m === 62 ? (e.consume(m), r.interrupt ? n :
|
|
3035
|
+
return m === 62 ? (e.consume(m), r.interrupt ? n : E) : t(m);
|
|
3035
3036
|
}
|
|
3036
3037
|
function L(m) {
|
|
3037
3038
|
return D(m) ? (e.consume(m), L) : B(m);
|
|
3038
3039
|
}
|
|
3039
|
-
function
|
|
3040
|
-
return m === 47 ? (e.consume(m), B) : m === 58 || m === 95 || ue(m) ? (e.consume(m), j) : D(m) ? (e.consume(m),
|
|
3040
|
+
function C(m) {
|
|
3041
|
+
return m === 47 ? (e.consume(m), B) : m === 58 || m === 95 || ue(m) ? (e.consume(m), j) : D(m) ? (e.consume(m), C) : B(m);
|
|
3041
3042
|
}
|
|
3042
3043
|
function j(m) {
|
|
3043
3044
|
return m === 45 || m === 46 || m === 58 || m === 95 || ne(m) ? (e.consume(m), j) : U(m);
|
|
3044
3045
|
}
|
|
3045
3046
|
function U(m) {
|
|
3046
|
-
return m === 61 ? (e.consume(m), x) : D(m) ? (e.consume(m), U) :
|
|
3047
|
+
return m === 61 ? (e.consume(m), x) : D(m) ? (e.consume(m), U) : C(m);
|
|
3047
3048
|
}
|
|
3048
3049
|
function x(m) {
|
|
3049
3050
|
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), u = m, N) : D(m) ? (e.consume(m), x) : V(m);
|
|
@@ -3055,44 +3056,44 @@ function jl(e, n, t) {
|
|
|
3055
3056
|
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || K(m) ? U(m) : (e.consume(m), V);
|
|
3056
3057
|
}
|
|
3057
3058
|
function _(m) {
|
|
3058
|
-
return m === 47 || m === 62 || D(m) ?
|
|
3059
|
+
return m === 47 || m === 62 || D(m) ? C(m) : t(m);
|
|
3059
3060
|
}
|
|
3060
3061
|
function B(m) {
|
|
3061
3062
|
return m === 62 ? (e.consume(m), I) : t(m);
|
|
3062
3063
|
}
|
|
3063
3064
|
function I(m) {
|
|
3064
|
-
return m === null || P(m) ?
|
|
3065
|
+
return m === null || P(m) ? E(m) : D(m) ? (e.consume(m), I) : t(m);
|
|
3065
3066
|
}
|
|
3066
|
-
function
|
|
3067
|
-
return m === 45 && i === 2 ? (e.consume(m), X) : m === 60 && i === 1 ? (e.consume(m), W) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), ce) : P(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
3067
|
+
function E(m) {
|
|
3068
|
+
return m === 45 && i === 2 ? (e.consume(m), X) : m === 60 && i === 1 ? (e.consume(m), W) : m === 62 && i === 4 ? (e.consume(m), ie) : m === 63 && i === 3 ? (e.consume(m), h) : m === 93 && i === 5 ? (e.consume(m), ce) : P(m) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Bl, pe, H)(m)) : m === null || P(m) ? (e.exit("htmlFlowData"), H(m)) : (e.consume(m), E);
|
|
3068
3069
|
}
|
|
3069
3070
|
function H(m) {
|
|
3070
|
-
return e.check(
|
|
3071
|
+
return e.check(jl, q, pe)(m);
|
|
3071
3072
|
}
|
|
3072
3073
|
function q(m) {
|
|
3073
3074
|
return e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), v;
|
|
3074
3075
|
}
|
|
3075
3076
|
function v(m) {
|
|
3076
|
-
return m === null || P(m) ? H(m) : (e.enter("htmlFlowData"),
|
|
3077
|
+
return m === null || P(m) ? H(m) : (e.enter("htmlFlowData"), E(m));
|
|
3077
3078
|
}
|
|
3078
3079
|
function X(m) {
|
|
3079
|
-
return m === 45 ? (e.consume(m), h) :
|
|
3080
|
+
return m === 45 ? (e.consume(m), h) : E(m);
|
|
3080
3081
|
}
|
|
3081
3082
|
function W(m) {
|
|
3082
|
-
return m === 47 ? (e.consume(m), o = "", re) :
|
|
3083
|
+
return m === 47 ? (e.consume(m), o = "", re) : E(m);
|
|
3083
3084
|
}
|
|
3084
3085
|
function re(m) {
|
|
3085
3086
|
if (m === 62) {
|
|
3086
3087
|
const le = o.toLowerCase();
|
|
3087
|
-
return
|
|
3088
|
+
return ct.includes(le) ? (e.consume(m), ie) : E(m);
|
|
3088
3089
|
}
|
|
3089
|
-
return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) :
|
|
3090
|
+
return ue(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), re) : E(m);
|
|
3090
3091
|
}
|
|
3091
3092
|
function ce(m) {
|
|
3092
|
-
return m === 93 ? (e.consume(m), h) :
|
|
3093
|
+
return m === 93 ? (e.consume(m), h) : E(m);
|
|
3093
3094
|
}
|
|
3094
3095
|
function h(m) {
|
|
3095
|
-
return m === 62 ? (e.consume(m), ie) : m === 45 && i === 2 ? (e.consume(m), h) :
|
|
3096
|
+
return m === 62 ? (e.consume(m), ie) : m === 45 && i === 2 ? (e.consume(m), h) : E(m);
|
|
3096
3097
|
}
|
|
3097
3098
|
function ie(m) {
|
|
3098
3099
|
return m === null || P(m) ? (e.exit("htmlFlowData"), pe(m)) : (e.consume(m), ie);
|
|
@@ -3101,7 +3102,7 @@ function jl(e, n, t) {
|
|
|
3101
3102
|
return e.exit("htmlFlow"), n(m);
|
|
3102
3103
|
}
|
|
3103
3104
|
}
|
|
3104
|
-
function
|
|
3105
|
+
function Vl(e, n, t) {
|
|
3105
3106
|
const r = this;
|
|
3106
3107
|
return i;
|
|
3107
3108
|
function i(o) {
|
|
@@ -3111,17 +3112,17 @@ function Hl(e, n, t) {
|
|
|
3111
3112
|
return r.parser.lazy[r.now().line] ? t(o) : n(o);
|
|
3112
3113
|
}
|
|
3113
3114
|
}
|
|
3114
|
-
function
|
|
3115
|
+
function ql(e, n, t) {
|
|
3115
3116
|
return r;
|
|
3116
3117
|
function r(i) {
|
|
3117
3118
|
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ge, n, t);
|
|
3118
3119
|
}
|
|
3119
3120
|
}
|
|
3120
|
-
const
|
|
3121
|
+
const $l = {
|
|
3121
3122
|
name: "htmlText",
|
|
3122
|
-
tokenize:
|
|
3123
|
+
tokenize: Wl
|
|
3123
3124
|
};
|
|
3124
|
-
function
|
|
3125
|
+
function Wl(e, n, t) {
|
|
3125
3126
|
const r = this;
|
|
3126
3127
|
let i, l, o;
|
|
3127
3128
|
return a;
|
|
@@ -3129,7 +3130,7 @@ function ql(e, n, t) {
|
|
|
3129
3130
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(h), u;
|
|
3130
3131
|
}
|
|
3131
3132
|
function u(h) {
|
|
3132
|
-
return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), U) : h === 63 ? (e.consume(h),
|
|
3133
|
+
return h === 33 ? (e.consume(h), c) : h === 47 ? (e.consume(h), U) : h === 63 ? (e.consume(h), C) : ue(h) ? (e.consume(h), V) : t(h);
|
|
3133
3134
|
}
|
|
3134
3135
|
function c(h) {
|
|
3135
3136
|
return h === 45 ? (e.consume(h), s) : h === 91 ? (e.consume(h), l = 0, y) : ue(h) ? (e.consume(h), L) : t(h);
|
|
@@ -3162,11 +3163,11 @@ function ql(e, n, t) {
|
|
|
3162
3163
|
function L(h) {
|
|
3163
3164
|
return h === null || h === 62 ? X(h) : P(h) ? (o = L, W(h)) : (e.consume(h), L);
|
|
3164
3165
|
}
|
|
3165
|
-
function
|
|
3166
|
-
return h === null ? t(h) : h === 63 ? (e.consume(h), j) : P(h) ? (o =
|
|
3166
|
+
function C(h) {
|
|
3167
|
+
return h === null ? t(h) : h === 63 ? (e.consume(h), j) : P(h) ? (o = C, W(h)) : (e.consume(h), C);
|
|
3167
3168
|
}
|
|
3168
3169
|
function j(h) {
|
|
3169
|
-
return h === 62 ? X(h) :
|
|
3170
|
+
return h === 62 ? X(h) : C(h);
|
|
3170
3171
|
}
|
|
3171
3172
|
function U(h) {
|
|
3172
3173
|
return ue(h) ? (e.consume(h), x) : t(h);
|
|
@@ -3187,10 +3188,10 @@ function ql(e, n, t) {
|
|
|
3187
3188
|
return h === 45 || h === 46 || h === 58 || h === 95 || ne(h) ? (e.consume(h), B) : I(h);
|
|
3188
3189
|
}
|
|
3189
3190
|
function I(h) {
|
|
3190
|
-
return h === 61 ? (e.consume(h),
|
|
3191
|
+
return h === 61 ? (e.consume(h), E) : P(h) ? (o = I, W(h)) : D(h) ? (e.consume(h), I) : _(h);
|
|
3191
3192
|
}
|
|
3192
|
-
function
|
|
3193
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, H) : P(h) ? (o =
|
|
3193
|
+
function E(h) {
|
|
3194
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (e.consume(h), i = h, H) : P(h) ? (o = E, W(h)) : D(h) ? (e.consume(h), E) : (e.consume(h), q);
|
|
3194
3195
|
}
|
|
3195
3196
|
function H(h) {
|
|
3196
3197
|
return h === i ? (e.consume(h), i = void 0, v) : h === null ? t(h) : P(h) ? (o = H, W(h)) : (e.consume(h), H);
|
|
@@ -3214,19 +3215,19 @@ function ql(e, n, t) {
|
|
|
3214
3215
|
return e.enter("htmlTextData"), o(h);
|
|
3215
3216
|
}
|
|
3216
3217
|
}
|
|
3217
|
-
const
|
|
3218
|
+
const On = {
|
|
3218
3219
|
name: "labelEnd",
|
|
3219
|
-
resolveAll:
|
|
3220
|
-
resolveTo:
|
|
3221
|
-
tokenize: Gl
|
|
3222
|
-
}, $l = {
|
|
3223
|
-
tokenize: Kl
|
|
3224
|
-
}, Wl = {
|
|
3220
|
+
resolveAll: Gl,
|
|
3221
|
+
resolveTo: Kl,
|
|
3225
3222
|
tokenize: Jl
|
|
3226
3223
|
}, Yl = {
|
|
3227
3224
|
tokenize: Zl
|
|
3225
|
+
}, Xl = {
|
|
3226
|
+
tokenize: eo
|
|
3227
|
+
}, Ql = {
|
|
3228
|
+
tokenize: no
|
|
3228
3229
|
};
|
|
3229
|
-
function
|
|
3230
|
+
function Gl(e) {
|
|
3230
3231
|
let n = -1;
|
|
3231
3232
|
const t = [];
|
|
3232
3233
|
for (; ++n < e.length; ) {
|
|
@@ -3238,7 +3239,7 @@ function Xl(e) {
|
|
|
3238
3239
|
}
|
|
3239
3240
|
return e.length !== t.length && se(e, 0, e.length, t), e;
|
|
3240
3241
|
}
|
|
3241
|
-
function
|
|
3242
|
+
function Kl(e, n) {
|
|
3242
3243
|
let t = e.length, r = 0, i, l, o, a;
|
|
3243
3244
|
for (; t--; )
|
|
3244
3245
|
if (i = e[t][1], l) {
|
|
@@ -3276,9 +3277,9 @@ function Ql(e, n) {
|
|
|
3276
3277
|
...e[o - 2][1].start
|
|
3277
3278
|
}
|
|
3278
3279
|
};
|
|
3279
|
-
return a = [["enter", u, n], ["enter", c, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", s, n]]), a = te(a,
|
|
3280
|
+
return a = [["enter", u, n], ["enter", c, n]], a = te(a, e.slice(l + 1, l + r + 3)), a = te(a, [["enter", s, n]]), a = te(a, Ln(n.parser.constructs.insideSpan.null, e.slice(l + r + 4, o - 3), n)), a = te(a, [["exit", s, n], e[o - 2], e[o - 1], ["exit", c, n]]), a = te(a, e.slice(o + 1)), a = te(a, [["exit", u, n]]), se(e, l, e.length, a), e;
|
|
3280
3281
|
}
|
|
3281
|
-
function
|
|
3282
|
+
function Jl(e, n, t) {
|
|
3282
3283
|
const r = this;
|
|
3283
3284
|
let i = r.events.length, l, o;
|
|
3284
3285
|
for (; i--; )
|
|
@@ -3294,10 +3295,10 @@ function Gl(e, n, t) {
|
|
|
3294
3295
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), u) : t(d);
|
|
3295
3296
|
}
|
|
3296
3297
|
function u(d) {
|
|
3297
|
-
return d === 40 ? e.attempt(
|
|
3298
|
+
return d === 40 ? e.attempt(Yl, s, o ? s : f)(d) : d === 91 ? e.attempt(Xl, s, o ? c : f)(d) : o ? s(d) : f(d);
|
|
3298
3299
|
}
|
|
3299
3300
|
function c(d) {
|
|
3300
|
-
return e.attempt(
|
|
3301
|
+
return e.attempt(Ql, s, f)(d);
|
|
3301
3302
|
}
|
|
3302
3303
|
function s(d) {
|
|
3303
3304
|
return n(d);
|
|
@@ -3306,7 +3307,7 @@ function Gl(e, n, t) {
|
|
|
3306
3307
|
return l._balanced = !0, t(d);
|
|
3307
3308
|
}
|
|
3308
3309
|
}
|
|
3309
|
-
function
|
|
3310
|
+
function Zl(e, n, t) {
|
|
3310
3311
|
return r;
|
|
3311
3312
|
function r(f) {
|
|
3312
3313
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), i;
|
|
@@ -3315,7 +3316,7 @@ function Kl(e, n, t) {
|
|
|
3315
3316
|
return K(f) ? _e(e, l)(f) : l(f);
|
|
3316
3317
|
}
|
|
3317
3318
|
function l(f) {
|
|
3318
|
-
return f === 41 ? s(f) :
|
|
3319
|
+
return f === 41 ? s(f) : Jt(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(f);
|
|
3319
3320
|
}
|
|
3320
3321
|
function o(f) {
|
|
3321
3322
|
return K(f) ? _e(e, u)(f) : s(f);
|
|
@@ -3324,7 +3325,7 @@ function Kl(e, n, t) {
|
|
|
3324
3325
|
return t(f);
|
|
3325
3326
|
}
|
|
3326
3327
|
function u(f) {
|
|
3327
|
-
return f === 34 || f === 39 || f === 40 ?
|
|
3328
|
+
return f === 34 || f === 39 || f === 40 ? er(e, c, t, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(f) : s(f);
|
|
3328
3329
|
}
|
|
3329
3330
|
function c(f) {
|
|
3330
3331
|
return K(f) ? _e(e, s)(f) : s(f);
|
|
@@ -3333,11 +3334,11 @@ function Kl(e, n, t) {
|
|
|
3333
3334
|
return f === 41 ? (e.enter("resourceMarker"), e.consume(f), e.exit("resourceMarker"), e.exit("resource"), n) : t(f);
|
|
3334
3335
|
}
|
|
3335
3336
|
}
|
|
3336
|
-
function
|
|
3337
|
+
function eo(e, n, t) {
|
|
3337
3338
|
const r = this;
|
|
3338
3339
|
return i;
|
|
3339
3340
|
function i(a) {
|
|
3340
|
-
return
|
|
3341
|
+
return Zt.call(r, e, l, o, "reference", "referenceMarker", "referenceString")(a);
|
|
3341
3342
|
}
|
|
3342
3343
|
function l(a) {
|
|
3343
3344
|
return r.parser.defined.includes(Te(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? n(a) : t(a);
|
|
@@ -3346,7 +3347,7 @@ function Jl(e, n, t) {
|
|
|
3346
3347
|
return t(a);
|
|
3347
3348
|
}
|
|
3348
3349
|
}
|
|
3349
|
-
function
|
|
3350
|
+
function no(e, n, t) {
|
|
3350
3351
|
return r;
|
|
3351
3352
|
function r(l) {
|
|
3352
3353
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), i;
|
|
@@ -3355,12 +3356,12 @@ function Zl(e, n, t) {
|
|
|
3355
3356
|
return l === 93 ? (e.enter("referenceMarker"), e.consume(l), e.exit("referenceMarker"), e.exit("reference"), n) : t(l);
|
|
3356
3357
|
}
|
|
3357
3358
|
}
|
|
3358
|
-
const
|
|
3359
|
+
const to = {
|
|
3359
3360
|
name: "labelStartImage",
|
|
3360
|
-
resolveAll:
|
|
3361
|
-
tokenize:
|
|
3361
|
+
resolveAll: On.resolveAll,
|
|
3362
|
+
tokenize: ro
|
|
3362
3363
|
};
|
|
3363
|
-
function
|
|
3364
|
+
function ro(e, n, t) {
|
|
3364
3365
|
const r = this;
|
|
3365
3366
|
return i;
|
|
3366
3367
|
function i(a) {
|
|
@@ -3373,12 +3374,12 @@ function no(e, n, t) {
|
|
|
3373
3374
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(a) : n(a);
|
|
3374
3375
|
}
|
|
3375
3376
|
}
|
|
3376
|
-
const
|
|
3377
|
+
const io = {
|
|
3377
3378
|
name: "labelStartLink",
|
|
3378
|
-
resolveAll:
|
|
3379
|
-
tokenize:
|
|
3379
|
+
resolveAll: On.resolveAll,
|
|
3380
|
+
tokenize: lo
|
|
3380
3381
|
};
|
|
3381
|
-
function
|
|
3382
|
+
function lo(e, n, t) {
|
|
3382
3383
|
const r = this;
|
|
3383
3384
|
return i;
|
|
3384
3385
|
function i(o) {
|
|
@@ -3388,11 +3389,11 @@ function ro(e, n, t) {
|
|
|
3388
3389
|
return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : n(o);
|
|
3389
3390
|
}
|
|
3390
3391
|
}
|
|
3391
|
-
const
|
|
3392
|
+
const tn = {
|
|
3392
3393
|
name: "lineEnding",
|
|
3393
|
-
tokenize:
|
|
3394
|
+
tokenize: oo
|
|
3394
3395
|
};
|
|
3395
|
-
function
|
|
3396
|
+
function oo(e, n) {
|
|
3396
3397
|
return t;
|
|
3397
3398
|
function t(r) {
|
|
3398
3399
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), M(e, n, "linePrefix");
|
|
@@ -3400,9 +3401,9 @@ function io(e, n) {
|
|
|
3400
3401
|
}
|
|
3401
3402
|
const qe = {
|
|
3402
3403
|
name: "thematicBreak",
|
|
3403
|
-
tokenize:
|
|
3404
|
+
tokenize: ao
|
|
3404
3405
|
};
|
|
3405
|
-
function
|
|
3406
|
+
function ao(e, n, t) {
|
|
3406
3407
|
let r = 0, i;
|
|
3407
3408
|
return l;
|
|
3408
3409
|
function l(c) {
|
|
@@ -3420,25 +3421,25 @@ function lo(e, n, t) {
|
|
|
3420
3421
|
}
|
|
3421
3422
|
const G = {
|
|
3422
3423
|
continuation: {
|
|
3423
|
-
tokenize:
|
|
3424
|
+
tokenize: po
|
|
3424
3425
|
},
|
|
3425
|
-
exit:
|
|
3426
|
+
exit: ho,
|
|
3426
3427
|
name: "list",
|
|
3427
|
-
tokenize:
|
|
3428
|
-
},
|
|
3428
|
+
tokenize: co
|
|
3429
|
+
}, uo = {
|
|
3429
3430
|
partial: !0,
|
|
3430
|
-
tokenize:
|
|
3431
|
-
},
|
|
3431
|
+
tokenize: mo
|
|
3432
|
+
}, so = {
|
|
3432
3433
|
partial: !0,
|
|
3433
|
-
tokenize:
|
|
3434
|
+
tokenize: fo
|
|
3434
3435
|
};
|
|
3435
|
-
function
|
|
3436
|
+
function co(e, n, t) {
|
|
3436
3437
|
const r = this, i = r.events[r.events.length - 1];
|
|
3437
3438
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
|
3438
3439
|
return a;
|
|
3439
3440
|
function a(p) {
|
|
3440
3441
|
const y = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
|
3441
|
-
if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker :
|
|
3442
|
+
if (y === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : yn(p)) {
|
|
3442
3443
|
if (r.containerState.type || (r.containerState.type = y, e.enter(y, {
|
|
3443
3444
|
_container: !0
|
|
3444
3445
|
})), y === "listUnordered")
|
|
@@ -3449,14 +3450,14 @@ function uo(e, n, t) {
|
|
|
3449
3450
|
return t(p);
|
|
3450
3451
|
}
|
|
3451
3452
|
function u(p) {
|
|
3452
|
-
return
|
|
3453
|
+
return yn(p) && ++o < 10 ? (e.consume(p), u) : (!r.interrupt || o < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : t(p);
|
|
3453
3454
|
}
|
|
3454
3455
|
function c(p) {
|
|
3455
3456
|
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
|
|
3456
3457
|
Ge,
|
|
3457
3458
|
// Can’t be empty when interrupting.
|
|
3458
3459
|
r.interrupt ? t : s,
|
|
3459
|
-
e.attempt(
|
|
3460
|
+
e.attempt(uo, d, f)
|
|
3460
3461
|
);
|
|
3461
3462
|
}
|
|
3462
3463
|
function s(p) {
|
|
@@ -3469,20 +3470,20 @@ function uo(e, n, t) {
|
|
|
3469
3470
|
return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
|
|
3470
3471
|
}
|
|
3471
3472
|
}
|
|
3472
|
-
function
|
|
3473
|
+
function po(e, n, t) {
|
|
3473
3474
|
const r = this;
|
|
3474
3475
|
return r.containerState._closeFlow = void 0, e.check(Ge, i, l);
|
|
3475
3476
|
function i(a) {
|
|
3476
3477
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, M(e, n, "listItemIndent", r.containerState.size + 1)(a);
|
|
3477
3478
|
}
|
|
3478
3479
|
function l(a) {
|
|
3479
|
-
return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
|
3480
|
+
return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(so, n, o)(a));
|
|
3480
3481
|
}
|
|
3481
3482
|
function o(a) {
|
|
3482
3483
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, M(e, e.attempt(G, n, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3483
3484
|
}
|
|
3484
3485
|
}
|
|
3485
|
-
function
|
|
3486
|
+
function fo(e, n, t) {
|
|
3486
3487
|
const r = this;
|
|
3487
3488
|
return M(e, i, "listItemIndent", r.containerState.size + 1);
|
|
3488
3489
|
function i(l) {
|
|
@@ -3490,10 +3491,10 @@ function co(e, n, t) {
|
|
|
3490
3491
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? n(l) : t(l);
|
|
3491
3492
|
}
|
|
3492
3493
|
}
|
|
3493
|
-
function
|
|
3494
|
+
function ho(e) {
|
|
3494
3495
|
e.exit(this.containerState.type);
|
|
3495
3496
|
}
|
|
3496
|
-
function
|
|
3497
|
+
function mo(e, n, t) {
|
|
3497
3498
|
const r = this;
|
|
3498
3499
|
return M(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3499
3500
|
function i(l) {
|
|
@@ -3501,12 +3502,12 @@ function fo(e, n, t) {
|
|
|
3501
3502
|
return !D(l) && o && o[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
|
|
3502
3503
|
}
|
|
3503
3504
|
}
|
|
3504
|
-
const
|
|
3505
|
+
const pt = {
|
|
3505
3506
|
name: "setextUnderline",
|
|
3506
|
-
resolveTo:
|
|
3507
|
-
tokenize:
|
|
3507
|
+
resolveTo: go,
|
|
3508
|
+
tokenize: yo
|
|
3508
3509
|
};
|
|
3509
|
-
function
|
|
3510
|
+
function go(e, n) {
|
|
3510
3511
|
let t = e.length, r, i, l;
|
|
3511
3512
|
for (; t--; )
|
|
3512
3513
|
if (e[t][0] === "enter") {
|
|
@@ -3530,7 +3531,7 @@ function ho(e, n) {
|
|
|
3530
3531
|
...e[l][1].end
|
|
3531
3532
|
}) : e[r][1] = o, e.push(["exit", o, n]), e;
|
|
3532
3533
|
}
|
|
3533
|
-
function
|
|
3534
|
+
function yo(e, n, t) {
|
|
3534
3535
|
const r = this;
|
|
3535
3536
|
let i;
|
|
3536
3537
|
return l;
|
|
@@ -3553,16 +3554,16 @@ function mo(e, n, t) {
|
|
|
3553
3554
|
return c === null || P(c) ? (e.exit("setextHeadingLine"), n(c)) : t(c);
|
|
3554
3555
|
}
|
|
3555
3556
|
}
|
|
3556
|
-
const
|
|
3557
|
-
tokenize:
|
|
3557
|
+
const xo = {
|
|
3558
|
+
tokenize: ko
|
|
3558
3559
|
};
|
|
3559
|
-
function
|
|
3560
|
+
function ko(e) {
|
|
3560
3561
|
const n = this, t = e.attempt(
|
|
3561
3562
|
// Try to parse a blank line.
|
|
3562
3563
|
Ge,
|
|
3563
3564
|
r,
|
|
3564
3565
|
// Try to parse initial flow (essentially, only code).
|
|
3565
|
-
e.attempt(this.parser.constructs.flowInitial, i, M(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
|
3566
|
+
e.attempt(this.parser.constructs.flowInitial, i, M(e, e.attempt(this.parser.constructs.flow, i, e.attempt(Cl, i)), "linePrefix"))
|
|
3566
3567
|
);
|
|
3567
3568
|
return t;
|
|
3568
3569
|
function r(l) {
|
|
@@ -3580,12 +3581,12 @@ function yo(e) {
|
|
|
3580
3581
|
return e.enter("lineEnding"), e.consume(l), e.exit("lineEnding"), n.currentConstruct = void 0, t;
|
|
3581
3582
|
}
|
|
3582
3583
|
}
|
|
3583
|
-
const
|
|
3584
|
-
resolveAll:
|
|
3585
|
-
},
|
|
3586
|
-
function
|
|
3584
|
+
const bo = {
|
|
3585
|
+
resolveAll: tr()
|
|
3586
|
+
}, wo = nr("string"), So = nr("text");
|
|
3587
|
+
function nr(e) {
|
|
3587
3588
|
return {
|
|
3588
|
-
resolveAll:
|
|
3589
|
+
resolveAll: tr(e === "text" ? Co : void 0),
|
|
3589
3590
|
tokenize: n
|
|
3590
3591
|
};
|
|
3591
3592
|
function n(t) {
|
|
@@ -3619,7 +3620,7 @@ function tr(e) {
|
|
|
3619
3620
|
}
|
|
3620
3621
|
}
|
|
3621
3622
|
}
|
|
3622
|
-
function
|
|
3623
|
+
function tr(e) {
|
|
3623
3624
|
return n;
|
|
3624
3625
|
function n(t, r) {
|
|
3625
3626
|
let i = -1, l;
|
|
@@ -3628,7 +3629,7 @@ function rr(e) {
|
|
|
3628
3629
|
return e ? e(t, r) : t;
|
|
3629
3630
|
}
|
|
3630
3631
|
}
|
|
3631
|
-
function
|
|
3632
|
+
function Co(e, n) {
|
|
3632
3633
|
let t = 0;
|
|
3633
3634
|
for (; ++t <= e.length; )
|
|
3634
3635
|
if ((t === e.length || e[t][1].type === "lineEnding") && e[t - 1][1].type === "data") {
|
|
@@ -3670,7 +3671,7 @@ function wo(e, n) {
|
|
|
3670
3671
|
}
|
|
3671
3672
|
return e;
|
|
3672
3673
|
}
|
|
3673
|
-
const
|
|
3674
|
+
const Eo = {
|
|
3674
3675
|
42: G,
|
|
3675
3676
|
43: G,
|
|
3676
3677
|
45: G,
|
|
@@ -3684,57 +3685,57 @@ const So = {
|
|
|
3684
3685
|
55: G,
|
|
3685
3686
|
56: G,
|
|
3686
3687
|
57: G,
|
|
3687
|
-
62:
|
|
3688
|
-
}, Eo = {
|
|
3689
|
-
91: Tl
|
|
3690
|
-
}, Co = {
|
|
3691
|
-
[-2]: tn,
|
|
3692
|
-
[-1]: tn,
|
|
3693
|
-
32: tn
|
|
3688
|
+
62: Xt
|
|
3694
3689
|
}, Io = {
|
|
3695
|
-
|
|
3696
|
-
42: qe,
|
|
3697
|
-
45: [ft, qe],
|
|
3698
|
-
60: Fl,
|
|
3699
|
-
61: ft,
|
|
3700
|
-
95: qe,
|
|
3701
|
-
96: ct,
|
|
3702
|
-
126: ct
|
|
3690
|
+
91: Al
|
|
3703
3691
|
}, To = {
|
|
3704
|
-
|
|
3705
|
-
|
|
3692
|
+
[-2]: nn,
|
|
3693
|
+
[-1]: nn,
|
|
3694
|
+
32: nn
|
|
3706
3695
|
}, Po = {
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
92: [Ll, Gt],
|
|
3716
|
-
93: vn,
|
|
3717
|
-
95: kn,
|
|
3718
|
-
96: dl
|
|
3696
|
+
35: Nl,
|
|
3697
|
+
42: qe,
|
|
3698
|
+
45: [pt, qe],
|
|
3699
|
+
60: Ml,
|
|
3700
|
+
61: pt,
|
|
3701
|
+
95: qe,
|
|
3702
|
+
96: st,
|
|
3703
|
+
126: st
|
|
3719
3704
|
}, Ao = {
|
|
3720
|
-
|
|
3705
|
+
38: Gt,
|
|
3706
|
+
92: Qt
|
|
3721
3707
|
}, zo = {
|
|
3722
|
-
|
|
3708
|
+
[-5]: tn,
|
|
3709
|
+
[-4]: tn,
|
|
3710
|
+
[-3]: tn,
|
|
3711
|
+
33: to,
|
|
3712
|
+
38: Gt,
|
|
3713
|
+
42: xn,
|
|
3714
|
+
60: [il, $l],
|
|
3715
|
+
91: io,
|
|
3716
|
+
92: [vl, Qt],
|
|
3717
|
+
93: On,
|
|
3718
|
+
95: xn,
|
|
3719
|
+
96: yl
|
|
3723
3720
|
}, Lo = {
|
|
3721
|
+
null: [xn, bo]
|
|
3722
|
+
}, Oo = {
|
|
3723
|
+
null: [42, 95]
|
|
3724
|
+
}, vo = {
|
|
3724
3725
|
null: []
|
|
3725
|
-
},
|
|
3726
|
+
}, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3726
3727
|
__proto__: null,
|
|
3727
|
-
attentionMarkers:
|
|
3728
|
-
contentInitial:
|
|
3729
|
-
disable:
|
|
3730
|
-
document:
|
|
3731
|
-
flow:
|
|
3732
|
-
flowInitial:
|
|
3733
|
-
insideSpan:
|
|
3734
|
-
string:
|
|
3735
|
-
text:
|
|
3728
|
+
attentionMarkers: Oo,
|
|
3729
|
+
contentInitial: Io,
|
|
3730
|
+
disable: vo,
|
|
3731
|
+
document: Eo,
|
|
3732
|
+
flow: Po,
|
|
3733
|
+
flowInitial: To,
|
|
3734
|
+
insideSpan: Lo,
|
|
3735
|
+
string: Ao,
|
|
3736
|
+
text: zo
|
|
3736
3737
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3737
|
-
function
|
|
3738
|
+
function No(e, n, t) {
|
|
3738
3739
|
let r = {
|
|
3739
3740
|
_bufferIndex: -1,
|
|
3740
3741
|
_index: 0,
|
|
@@ -3748,7 +3749,7 @@ function vo(e, n, t) {
|
|
|
3748
3749
|
attempt: N(U),
|
|
3749
3750
|
check: N(x),
|
|
3750
3751
|
consume: L,
|
|
3751
|
-
enter:
|
|
3752
|
+
enter: C,
|
|
3752
3753
|
exit: j,
|
|
3753
3754
|
interrupt: N(x, {
|
|
3754
3755
|
interrupt: !0
|
|
@@ -3768,25 +3769,25 @@ function vo(e, n, t) {
|
|
|
3768
3769
|
let s = n.tokenize.call(c, u);
|
|
3769
3770
|
return n.resolveAll && l.push(n), c;
|
|
3770
3771
|
function f(I) {
|
|
3771
|
-
return o = te(o, I), T(), o[o.length - 1] !== null ? [] : (V(n, 0), c.events =
|
|
3772
|
+
return o = te(o, I), T(), o[o.length - 1] !== null ? [] : (V(n, 0), c.events = Ln(l, c.events, c), c.events);
|
|
3772
3773
|
}
|
|
3773
|
-
function d(I,
|
|
3774
|
-
return
|
|
3774
|
+
function d(I, E) {
|
|
3775
|
+
return Fo(p(I), E);
|
|
3775
3776
|
}
|
|
3776
3777
|
function p(I) {
|
|
3777
|
-
return
|
|
3778
|
+
return _o(o, I);
|
|
3778
3779
|
}
|
|
3779
3780
|
function y() {
|
|
3780
3781
|
const {
|
|
3781
3782
|
_bufferIndex: I,
|
|
3782
|
-
_index:
|
|
3783
|
+
_index: E,
|
|
3783
3784
|
line: H,
|
|
3784
3785
|
column: q,
|
|
3785
3786
|
offset: v
|
|
3786
3787
|
} = r;
|
|
3787
3788
|
return {
|
|
3788
3789
|
_bufferIndex: I,
|
|
3789
|
-
_index:
|
|
3790
|
+
_index: E,
|
|
3790
3791
|
line: H,
|
|
3791
3792
|
column: q,
|
|
3792
3793
|
offset: v
|
|
@@ -3798,12 +3799,12 @@ function vo(e, n, t) {
|
|
|
3798
3799
|
function T() {
|
|
3799
3800
|
let I;
|
|
3800
3801
|
for (; r._index < o.length; ) {
|
|
3801
|
-
const
|
|
3802
|
-
if (typeof
|
|
3803
|
-
for (I = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === I && r._bufferIndex <
|
|
3804
|
-
w(
|
|
3802
|
+
const E = o[r._index];
|
|
3803
|
+
if (typeof E == "string")
|
|
3804
|
+
for (I = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === I && r._bufferIndex < E.length; )
|
|
3805
|
+
w(E.charCodeAt(r._bufferIndex));
|
|
3805
3806
|
else
|
|
3806
|
-
w(
|
|
3807
|
+
w(E);
|
|
3807
3808
|
}
|
|
3808
3809
|
}
|
|
3809
3810
|
function w(I) {
|
|
@@ -3815,21 +3816,21 @@ function vo(e, n, t) {
|
|
|
3815
3816
|
/** @type {string} */
|
|
3816
3817
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = I;
|
|
3817
3818
|
}
|
|
3818
|
-
function
|
|
3819
|
-
const H =
|
|
3819
|
+
function C(I, E) {
|
|
3820
|
+
const H = E || {};
|
|
3820
3821
|
return H.type = I, H.start = y(), c.events.push(["enter", H, c]), a.push(H), H;
|
|
3821
3822
|
}
|
|
3822
3823
|
function j(I) {
|
|
3823
|
-
const
|
|
3824
|
-
return
|
|
3824
|
+
const E = a.pop();
|
|
3825
|
+
return E.end = y(), c.events.push(["exit", E, c]), E;
|
|
3825
3826
|
}
|
|
3826
|
-
function U(I,
|
|
3827
|
-
V(I,
|
|
3827
|
+
function U(I, E) {
|
|
3828
|
+
V(I, E.from);
|
|
3828
3829
|
}
|
|
3829
|
-
function x(I,
|
|
3830
|
-
|
|
3830
|
+
function x(I, E) {
|
|
3831
|
+
E.restore();
|
|
3831
3832
|
}
|
|
3832
|
-
function N(I,
|
|
3833
|
+
function N(I, E) {
|
|
3833
3834
|
return H;
|
|
3834
3835
|
function H(q, v, X) {
|
|
3835
3836
|
let W, re, ce, h;
|
|
@@ -3865,7 +3866,7 @@ function vo(e, n, t) {
|
|
|
3865
3866
|
// If we do have fields, create an object w/ `context` as its
|
|
3866
3867
|
// prototype.
|
|
3867
3868
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
3868
|
-
|
|
3869
|
+
E ? Object.assign(Object.create(c), E) : c,
|
|
3869
3870
|
u,
|
|
3870
3871
|
le,
|
|
3871
3872
|
ye
|
|
@@ -3880,24 +3881,24 @@ function vo(e, n, t) {
|
|
|
3880
3881
|
}
|
|
3881
3882
|
}
|
|
3882
3883
|
}
|
|
3883
|
-
function V(I,
|
|
3884
|
-
I.resolveAll && !l.includes(I) && l.push(I), I.resolve && se(c.events,
|
|
3884
|
+
function V(I, E) {
|
|
3885
|
+
I.resolveAll && !l.includes(I) && l.push(I), I.resolve && se(c.events, E, c.events.length - E, I.resolve(c.events.slice(E), c)), I.resolveTo && (c.events = I.resolveTo(c.events, c));
|
|
3885
3886
|
}
|
|
3886
3887
|
function _() {
|
|
3887
|
-
const I = y(),
|
|
3888
|
+
const I = y(), E = c.previous, H = c.currentConstruct, q = c.events.length, v = Array.from(a);
|
|
3888
3889
|
return {
|
|
3889
3890
|
from: q,
|
|
3890
3891
|
restore: X
|
|
3891
3892
|
};
|
|
3892
3893
|
function X() {
|
|
3893
|
-
r = I, c.previous =
|
|
3894
|
+
r = I, c.previous = E, c.currentConstruct = H, c.events.length = q, a = v, B();
|
|
3894
3895
|
}
|
|
3895
3896
|
}
|
|
3896
3897
|
function B() {
|
|
3897
3898
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
3898
3899
|
}
|
|
3899
3900
|
}
|
|
3900
|
-
function
|
|
3901
|
+
function _o(e, n) {
|
|
3901
3902
|
const t = n.start._index, r = n.start._bufferIndex, i = n.end._index, l = n.end._bufferIndex;
|
|
3902
3903
|
let o;
|
|
3903
3904
|
if (t === i)
|
|
@@ -3911,7 +3912,7 @@ function Do(e, n) {
|
|
|
3911
3912
|
}
|
|
3912
3913
|
return o;
|
|
3913
3914
|
}
|
|
3914
|
-
function
|
|
3915
|
+
function Fo(e, n) {
|
|
3915
3916
|
let t = -1;
|
|
3916
3917
|
const r = [];
|
|
3917
3918
|
let i;
|
|
@@ -3951,42 +3952,42 @@ function No(e, n) {
|
|
|
3951
3952
|
}
|
|
3952
3953
|
return r.join("");
|
|
3953
3954
|
}
|
|
3954
|
-
function
|
|
3955
|
+
function Ro(e) {
|
|
3955
3956
|
const r = {
|
|
3956
3957
|
constructs: (
|
|
3957
3958
|
/** @type {FullNormalizedExtension} */
|
|
3958
|
-
|
|
3959
|
+
Vi([Do, ...(e || {}).extensions || []])
|
|
3959
3960
|
),
|
|
3960
|
-
content: i(
|
|
3961
|
+
content: i(Ki),
|
|
3961
3962
|
defined: [],
|
|
3962
|
-
document: i(
|
|
3963
|
-
flow: i(
|
|
3963
|
+
document: i(Zi),
|
|
3964
|
+
flow: i(xo),
|
|
3964
3965
|
lazy: {},
|
|
3965
|
-
string: i(
|
|
3966
|
-
text: i(
|
|
3966
|
+
string: i(wo),
|
|
3967
|
+
text: i(So)
|
|
3967
3968
|
};
|
|
3968
3969
|
return r;
|
|
3969
3970
|
function i(l) {
|
|
3970
3971
|
return o;
|
|
3971
3972
|
function o(a) {
|
|
3972
|
-
return
|
|
3973
|
+
return No(r, l, a);
|
|
3973
3974
|
}
|
|
3974
3975
|
}
|
|
3975
3976
|
}
|
|
3976
|
-
function
|
|
3977
|
-
for (; !
|
|
3977
|
+
function Mo(e) {
|
|
3978
|
+
for (; !Kt(e); )
|
|
3978
3979
|
;
|
|
3979
3980
|
return e;
|
|
3980
3981
|
}
|
|
3981
|
-
const
|
|
3982
|
-
function
|
|
3982
|
+
const ft = /[\0\t\n\r]/g;
|
|
3983
|
+
function Bo() {
|
|
3983
3984
|
let e = 1, n = "", t = !0, r;
|
|
3984
3985
|
return i;
|
|
3985
3986
|
function i(l, o, a) {
|
|
3986
3987
|
const u = [];
|
|
3987
3988
|
let c, s, f, d, p;
|
|
3988
3989
|
for (l = n + (typeof l == "string" ? l.toString() : new TextDecoder(o || void 0).decode(l)), f = 0, n = "", t && (l.charCodeAt(0) === 65279 && f++, t = void 0); f < l.length; ) {
|
|
3989
|
-
if (
|
|
3990
|
+
if (ft.lastIndex = f, c = ft.exec(l), d = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(d), !c) {
|
|
3990
3991
|
n = l.slice(f);
|
|
3991
3992
|
break;
|
|
3992
3993
|
}
|
|
@@ -4014,32 +4015,32 @@ function Ro() {
|
|
|
4014
4015
|
return a && (r && u.push(-5), n && u.push(n), u.push(null)), u;
|
|
4015
4016
|
}
|
|
4016
4017
|
}
|
|
4017
|
-
const
|
|
4018
|
-
function
|
|
4019
|
-
return e.replace(
|
|
4018
|
+
const jo = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
4019
|
+
function Ho(e) {
|
|
4020
|
+
return e.replace(jo, Uo);
|
|
4020
4021
|
}
|
|
4021
|
-
function
|
|
4022
|
+
function Uo(e, n, t) {
|
|
4022
4023
|
if (n)
|
|
4023
4024
|
return n;
|
|
4024
4025
|
if (t.charCodeAt(0) === 35) {
|
|
4025
4026
|
const i = t.charCodeAt(1), l = i === 120 || i === 88;
|
|
4026
|
-
return
|
|
4027
|
+
return Yt(t.slice(l ? 2 : 1), l ? 16 : 10);
|
|
4027
4028
|
}
|
|
4028
|
-
return
|
|
4029
|
+
return zn(t) || e;
|
|
4029
4030
|
}
|
|
4030
|
-
const
|
|
4031
|
-
function
|
|
4032
|
-
return typeof n != "string" && (t = n, n = void 0),
|
|
4031
|
+
const rr = {}.hasOwnProperty;
|
|
4032
|
+
function Vo(e, n, t) {
|
|
4033
|
+
return typeof n != "string" && (t = n, n = void 0), qo(t)(Mo(Ro(t).document().write(Bo()(e, n, !0))));
|
|
4033
4034
|
}
|
|
4034
|
-
function
|
|
4035
|
+
function qo(e) {
|
|
4035
4036
|
const n = {
|
|
4036
4037
|
transforms: [],
|
|
4037
4038
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
4038
4039
|
enter: {
|
|
4039
|
-
autolink: l(
|
|
4040
|
+
autolink: l(jn),
|
|
4040
4041
|
autolinkProtocol: _,
|
|
4041
4042
|
autolinkEmail: _,
|
|
4042
|
-
atxHeading: l(
|
|
4043
|
+
atxHeading: l(Rn),
|
|
4043
4044
|
blockQuote: l(Se),
|
|
4044
4045
|
characterEscape: _,
|
|
4045
4046
|
characterReference: _,
|
|
@@ -4047,35 +4048,35 @@ function Uo(e) {
|
|
|
4047
4048
|
codeFencedFenceInfo: o,
|
|
4048
4049
|
codeFencedFenceMeta: o,
|
|
4049
4050
|
codeIndented: l(je, o),
|
|
4050
|
-
codeText: l(
|
|
4051
|
+
codeText: l(dr, o),
|
|
4051
4052
|
codeTextData: _,
|
|
4052
4053
|
data: _,
|
|
4053
4054
|
codeFlowValue: _,
|
|
4054
|
-
definition: l(
|
|
4055
|
+
definition: l(gr),
|
|
4055
4056
|
definitionDestinationString: o,
|
|
4056
4057
|
definitionLabelString: o,
|
|
4057
4058
|
definitionTitleString: o,
|
|
4058
|
-
emphasis: l(
|
|
4059
|
-
hardBreakEscape: l(
|
|
4060
|
-
hardBreakTrailing: l(
|
|
4061
|
-
htmlFlow: l(
|
|
4059
|
+
emphasis: l(yr),
|
|
4060
|
+
hardBreakEscape: l(Mn),
|
|
4061
|
+
hardBreakTrailing: l(Mn),
|
|
4062
|
+
htmlFlow: l(Bn, o),
|
|
4062
4063
|
htmlFlowData: _,
|
|
4063
|
-
htmlText: l(
|
|
4064
|
+
htmlText: l(Bn, o),
|
|
4064
4065
|
htmlTextData: _,
|
|
4065
|
-
image: l(
|
|
4066
|
+
image: l(xr),
|
|
4066
4067
|
label: o,
|
|
4067
|
-
link: l(
|
|
4068
|
-
listItem: l(
|
|
4068
|
+
link: l(jn),
|
|
4069
|
+
listItem: l(kr),
|
|
4069
4070
|
listItemValue: d,
|
|
4070
|
-
listOrdered: l(
|
|
4071
|
-
listUnordered: l(
|
|
4072
|
-
paragraph: l(
|
|
4071
|
+
listOrdered: l(Hn, f),
|
|
4072
|
+
listUnordered: l(Hn),
|
|
4073
|
+
paragraph: l(br),
|
|
4073
4074
|
reference: m,
|
|
4074
4075
|
referenceString: o,
|
|
4075
4076
|
resourceDestinationString: o,
|
|
4076
4077
|
resourceTitleString: o,
|
|
4077
|
-
setextHeading: l(
|
|
4078
|
-
strong: l(
|
|
4078
|
+
setextHeading: l(Rn),
|
|
4079
|
+
strong: l(wr),
|
|
4079
4080
|
thematicBreak: l(Cr)
|
|
4080
4081
|
},
|
|
4081
4082
|
exit: {
|
|
@@ -4102,10 +4103,10 @@ function Uo(e) {
|
|
|
4102
4103
|
definition: u(),
|
|
4103
4104
|
definitionDestinationString: j,
|
|
4104
4105
|
definitionLabelString: L,
|
|
4105
|
-
definitionTitleString:
|
|
4106
|
+
definitionTitleString: C,
|
|
4106
4107
|
emphasis: u(),
|
|
4107
|
-
hardBreakEscape: u(
|
|
4108
|
-
hardBreakTrailing: u(
|
|
4108
|
+
hardBreakEscape: u(E),
|
|
4109
|
+
hardBreakTrailing: u(E),
|
|
4109
4110
|
htmlFlow: u(H),
|
|
4110
4111
|
htmlFlowData: B,
|
|
4111
4112
|
htmlText: u(q),
|
|
@@ -4130,7 +4131,7 @@ function Uo(e) {
|
|
|
4130
4131
|
thematicBreak: u()
|
|
4131
4132
|
}
|
|
4132
4133
|
};
|
|
4133
|
-
|
|
4134
|
+
ir(n, (e || {}).mdastExtensions || []);
|
|
4134
4135
|
const t = {};
|
|
4135
4136
|
return r;
|
|
4136
4137
|
function r(g) {
|
|
@@ -4159,13 +4160,13 @@ function Uo(e) {
|
|
|
4159
4160
|
}
|
|
4160
4161
|
for (F = -1; ++F < g.length; ) {
|
|
4161
4162
|
const oe = n[g[F][0]];
|
|
4162
|
-
|
|
4163
|
+
rr.call(oe, g[F][1].type) && oe[g[F][1].type].call(Object.assign({
|
|
4163
4164
|
sliceSerialize: g[F][2].sliceSerialize
|
|
4164
4165
|
}, A), g[F][1]);
|
|
4165
4166
|
}
|
|
4166
4167
|
if (A.tokenStack.length > 0) {
|
|
4167
4168
|
const oe = A.tokenStack[A.tokenStack.length - 1];
|
|
4168
|
-
(oe[1] ||
|
|
4169
|
+
(oe[1] || ht).call(A, void 0, oe[0]);
|
|
4169
4170
|
}
|
|
4170
4171
|
for (S.position = {
|
|
4171
4172
|
start: de(g.length > 0 ? g[0][1].start : {
|
|
@@ -4208,25 +4209,25 @@ function Uo(e) {
|
|
|
4208
4209
|
}
|
|
4209
4210
|
if (!F && Z[0] === "enter" && Z[1].type === "listItemPrefix" || F === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
|
|
4210
4211
|
if (xe) {
|
|
4211
|
-
let
|
|
4212
|
-
for (fe = void 0;
|
|
4213
|
-
const he = g[
|
|
4212
|
+
let Ce = O;
|
|
4213
|
+
for (fe = void 0; Ce--; ) {
|
|
4214
|
+
const he = g[Ce];
|
|
4214
4215
|
if (he[1].type === "lineEnding" || he[1].type === "lineEndingBlank") {
|
|
4215
4216
|
if (he[0] === "exit") continue;
|
|
4216
|
-
fe && (g[fe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", fe =
|
|
4217
|
+
fe && (g[fe][1].type = "lineEndingBlank", oe = !0), he[1].type = "lineEnding", fe = Ce;
|
|
4217
4218
|
} else if (!(he[1].type === "linePrefix" || he[1].type === "blockQuotePrefix" || he[1].type === "blockQuotePrefixWhitespace" || he[1].type === "blockQuoteMarker" || he[1].type === "listItemIndent")) break;
|
|
4218
4219
|
}
|
|
4219
4220
|
Le && (!fe || Le < fe) && (xe._spread = !0), xe.end = Object.assign({}, fe ? g[fe][1].start : Z[1].end), g.splice(fe || O, 0, ["exit", xe, Z[2]]), O++, A++;
|
|
4220
4221
|
}
|
|
4221
4222
|
if (Z[1].type === "listItemPrefix") {
|
|
4222
|
-
const
|
|
4223
|
+
const Ce = {
|
|
4223
4224
|
type: "listItem",
|
|
4224
4225
|
_spread: !1,
|
|
4225
4226
|
start: Object.assign({}, Z[1].start),
|
|
4226
4227
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4227
4228
|
end: void 0
|
|
4228
4229
|
};
|
|
4229
|
-
xe =
|
|
4230
|
+
xe = Ce, g.splice(O, 0, ["enter", Ce, Z[2]]), O++, A++, Le = void 0, Oe = !0;
|
|
4230
4231
|
}
|
|
4231
4232
|
}
|
|
4232
4233
|
}
|
|
@@ -4260,7 +4261,7 @@ function Uo(e) {
|
|
|
4260
4261
|
function c(g, S) {
|
|
4261
4262
|
const A = this.stack.pop(), O = this.tokenStack.pop();
|
|
4262
4263
|
if (O)
|
|
4263
|
-
O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] ||
|
|
4264
|
+
O[0].type !== g.type && (S ? S.call(this, g, O[0]) : (O[1] || ht).call(this, g, O[0]));
|
|
4264
4265
|
else throw new Error("Cannot close `" + g.type + "` (" + Ne({
|
|
4265
4266
|
start: g.start,
|
|
4266
4267
|
end: g.end
|
|
@@ -4268,7 +4269,7 @@ function Uo(e) {
|
|
|
4268
4269
|
A.position.end = de(g.end);
|
|
4269
4270
|
}
|
|
4270
4271
|
function s() {
|
|
4271
|
-
return
|
|
4272
|
+
return Hi(this.stack.pop());
|
|
4272
4273
|
}
|
|
4273
4274
|
function f() {
|
|
4274
4275
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -4302,7 +4303,7 @@ function Uo(e) {
|
|
|
4302
4303
|
const S = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4303
4304
|
A.label = S, A.identifier = Te(this.sliceSerialize(g)).toLowerCase();
|
|
4304
4305
|
}
|
|
4305
|
-
function
|
|
4306
|
+
function C() {
|
|
4306
4307
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4307
4308
|
S.title = g;
|
|
4308
4309
|
}
|
|
@@ -4330,7 +4331,7 @@ function Uo(e) {
|
|
|
4330
4331
|
function _(g) {
|
|
4331
4332
|
const A = this.stack[this.stack.length - 1].children;
|
|
4332
4333
|
let O = A[A.length - 1];
|
|
4333
|
-
(!O || O.type !== "text") && (O =
|
|
4334
|
+
(!O || O.type !== "text") && (O = Sr(), O.position = {
|
|
4334
4335
|
start: de(g.start),
|
|
4335
4336
|
// @ts-expect-error: we’ll add `end` later.
|
|
4336
4337
|
end: void 0
|
|
@@ -4349,7 +4350,7 @@ function Uo(e) {
|
|
|
4349
4350
|
}
|
|
4350
4351
|
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(S.type) && (_.call(this, g), B.call(this, g));
|
|
4351
4352
|
}
|
|
4352
|
-
function
|
|
4353
|
+
function E() {
|
|
4353
4354
|
this.data.atHardBreak = !0;
|
|
4354
4355
|
}
|
|
4355
4356
|
function H() {
|
|
@@ -4384,7 +4385,7 @@ function Uo(e) {
|
|
|
4384
4385
|
}
|
|
4385
4386
|
function re(g) {
|
|
4386
4387
|
const S = this.sliceSerialize(g), A = this.stack[this.stack.length - 2];
|
|
4387
|
-
A.label =
|
|
4388
|
+
A.label = Ho(S), A.identifier = Te(S).toLowerCase();
|
|
4388
4389
|
}
|
|
4389
4390
|
function ce() {
|
|
4390
4391
|
const g = this.stack[this.stack.length - 1], S = this.resume(), A = this.stack[this.stack.length - 1];
|
|
@@ -4418,7 +4419,7 @@ function Uo(e) {
|
|
|
4418
4419
|
function Y(g) {
|
|
4419
4420
|
const S = this.sliceSerialize(g), A = this.data.characterReferenceType;
|
|
4420
4421
|
let O;
|
|
4421
|
-
A ? (O =
|
|
4422
|
+
A ? (O = Yt(S, A === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : O = zn(S);
|
|
4422
4423
|
const F = this.stack[this.stack.length - 1];
|
|
4423
4424
|
F.value += O;
|
|
4424
4425
|
}
|
|
@@ -4450,13 +4451,13 @@ function Uo(e) {
|
|
|
4450
4451
|
value: ""
|
|
4451
4452
|
};
|
|
4452
4453
|
}
|
|
4453
|
-
function
|
|
4454
|
+
function dr() {
|
|
4454
4455
|
return {
|
|
4455
4456
|
type: "inlineCode",
|
|
4456
4457
|
value: ""
|
|
4457
4458
|
};
|
|
4458
4459
|
}
|
|
4459
|
-
function
|
|
4460
|
+
function gr() {
|
|
4460
4461
|
return {
|
|
4461
4462
|
type: "definition",
|
|
4462
4463
|
identifier: "",
|
|
@@ -4465,13 +4466,13 @@ function Uo(e) {
|
|
|
4465
4466
|
url: ""
|
|
4466
4467
|
};
|
|
4467
4468
|
}
|
|
4468
|
-
function
|
|
4469
|
+
function yr() {
|
|
4469
4470
|
return {
|
|
4470
4471
|
type: "emphasis",
|
|
4471
4472
|
children: []
|
|
4472
4473
|
};
|
|
4473
4474
|
}
|
|
4474
|
-
function
|
|
4475
|
+
function Rn() {
|
|
4475
4476
|
return {
|
|
4476
4477
|
type: "heading",
|
|
4477
4478
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -4479,18 +4480,18 @@ function Uo(e) {
|
|
|
4479
4480
|
children: []
|
|
4480
4481
|
};
|
|
4481
4482
|
}
|
|
4482
|
-
function
|
|
4483
|
+
function Mn() {
|
|
4483
4484
|
return {
|
|
4484
4485
|
type: "break"
|
|
4485
4486
|
};
|
|
4486
4487
|
}
|
|
4487
|
-
function
|
|
4488
|
+
function Bn() {
|
|
4488
4489
|
return {
|
|
4489
4490
|
type: "html",
|
|
4490
4491
|
value: ""
|
|
4491
4492
|
};
|
|
4492
4493
|
}
|
|
4493
|
-
function
|
|
4494
|
+
function xr() {
|
|
4494
4495
|
return {
|
|
4495
4496
|
type: "image",
|
|
4496
4497
|
title: null,
|
|
@@ -4498,7 +4499,7 @@ function Uo(e) {
|
|
|
4498
4499
|
alt: null
|
|
4499
4500
|
};
|
|
4500
4501
|
}
|
|
4501
|
-
function
|
|
4502
|
+
function jn() {
|
|
4502
4503
|
return {
|
|
4503
4504
|
type: "link",
|
|
4504
4505
|
title: null,
|
|
@@ -4506,7 +4507,7 @@ function Uo(e) {
|
|
|
4506
4507
|
children: []
|
|
4507
4508
|
};
|
|
4508
4509
|
}
|
|
4509
|
-
function
|
|
4510
|
+
function Hn(g) {
|
|
4510
4511
|
return {
|
|
4511
4512
|
type: "list",
|
|
4512
4513
|
ordered: g.type === "listOrdered",
|
|
@@ -4515,7 +4516,7 @@ function Uo(e) {
|
|
|
4515
4516
|
children: []
|
|
4516
4517
|
};
|
|
4517
4518
|
}
|
|
4518
|
-
function
|
|
4519
|
+
function kr(g) {
|
|
4519
4520
|
return {
|
|
4520
4521
|
type: "listItem",
|
|
4521
4522
|
spread: g._spread,
|
|
@@ -4523,19 +4524,19 @@ function Uo(e) {
|
|
|
4523
4524
|
children: []
|
|
4524
4525
|
};
|
|
4525
4526
|
}
|
|
4526
|
-
function
|
|
4527
|
+
function br() {
|
|
4527
4528
|
return {
|
|
4528
4529
|
type: "paragraph",
|
|
4529
4530
|
children: []
|
|
4530
4531
|
};
|
|
4531
4532
|
}
|
|
4532
|
-
function
|
|
4533
|
+
function wr() {
|
|
4533
4534
|
return {
|
|
4534
4535
|
type: "strong",
|
|
4535
4536
|
children: []
|
|
4536
4537
|
};
|
|
4537
4538
|
}
|
|
4538
|
-
function
|
|
4539
|
+
function Sr() {
|
|
4539
4540
|
return {
|
|
4540
4541
|
type: "text",
|
|
4541
4542
|
value: ""
|
|
@@ -4554,17 +4555,17 @@ function de(e) {
|
|
|
4554
4555
|
offset: e.offset
|
|
4555
4556
|
};
|
|
4556
4557
|
}
|
|
4557
|
-
function
|
|
4558
|
+
function ir(e, n) {
|
|
4558
4559
|
let t = -1;
|
|
4559
4560
|
for (; ++t < n.length; ) {
|
|
4560
4561
|
const r = n[t];
|
|
4561
|
-
Array.isArray(r) ?
|
|
4562
|
+
Array.isArray(r) ? ir(e, r) : $o(e, r);
|
|
4562
4563
|
}
|
|
4563
4564
|
}
|
|
4564
|
-
function
|
|
4565
|
+
function $o(e, n) {
|
|
4565
4566
|
let t;
|
|
4566
4567
|
for (t in n)
|
|
4567
|
-
if (
|
|
4568
|
+
if (rr.call(n, t))
|
|
4568
4569
|
switch (t) {
|
|
4569
4570
|
case "canContainEols": {
|
|
4570
4571
|
const r = n[t];
|
|
@@ -4584,7 +4585,7 @@ function Vo(e, n) {
|
|
|
4584
4585
|
}
|
|
4585
4586
|
}
|
|
4586
4587
|
}
|
|
4587
|
-
function
|
|
4588
|
+
function ht(e, n) {
|
|
4588
4589
|
throw e ? new Error("Cannot close `" + e.type + "` (" + Ne({
|
|
4589
4590
|
start: e.start,
|
|
4590
4591
|
end: e.end
|
|
@@ -4596,11 +4597,11 @@ function mt(e, n) {
|
|
|
4596
4597
|
end: n.end
|
|
4597
4598
|
}) + ") is still open");
|
|
4598
4599
|
}
|
|
4599
|
-
function
|
|
4600
|
+
function Wo(e) {
|
|
4600
4601
|
const n = this;
|
|
4601
4602
|
n.parser = t;
|
|
4602
4603
|
function t(r) {
|
|
4603
|
-
return
|
|
4604
|
+
return Vo(r, {
|
|
4604
4605
|
...n.data("settings"),
|
|
4605
4606
|
...e,
|
|
4606
4607
|
// Note: these options are not in the readme.
|
|
@@ -4611,7 +4612,7 @@ function qo(e) {
|
|
|
4611
4612
|
});
|
|
4612
4613
|
}
|
|
4613
4614
|
}
|
|
4614
|
-
function
|
|
4615
|
+
function Yo(e, n) {
|
|
4615
4616
|
const t = {
|
|
4616
4617
|
type: "element",
|
|
4617
4618
|
tagName: "blockquote",
|
|
@@ -4620,12 +4621,12 @@ function $o(e, n) {
|
|
|
4620
4621
|
};
|
|
4621
4622
|
return e.patch(n, t), e.applyData(n, t);
|
|
4622
4623
|
}
|
|
4623
|
-
function
|
|
4624
|
+
function Xo(e, n) {
|
|
4624
4625
|
const t = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4625
4626
|
return e.patch(n, t), [e.applyData(n, t), { type: "text", value: `
|
|
4626
4627
|
` }];
|
|
4627
4628
|
}
|
|
4628
|
-
function
|
|
4629
|
+
function Qo(e, n) {
|
|
4629
4630
|
const t = n.value ? n.value + `
|
|
4630
4631
|
` : "", r = {};
|
|
4631
4632
|
n.lang && (r.className = ["language-" + n.lang]);
|
|
@@ -4637,7 +4638,7 @@ function Yo(e, n) {
|
|
|
4637
4638
|
};
|
|
4638
4639
|
return n.meta && (i.data = { meta: n.meta }), e.patch(n, i), i = e.applyData(n, i), i = { type: "element", tagName: "pre", properties: {}, children: [i] }, e.patch(n, i), i;
|
|
4639
4640
|
}
|
|
4640
|
-
function
|
|
4641
|
+
function Go(e, n) {
|
|
4641
4642
|
const t = {
|
|
4642
4643
|
type: "element",
|
|
4643
4644
|
tagName: "del",
|
|
@@ -4646,7 +4647,7 @@ function Xo(e, n) {
|
|
|
4646
4647
|
};
|
|
4647
4648
|
return e.patch(n, t), e.applyData(n, t);
|
|
4648
4649
|
}
|
|
4649
|
-
function
|
|
4650
|
+
function Ko(e, n) {
|
|
4650
4651
|
const t = {
|
|
4651
4652
|
type: "element",
|
|
4652
4653
|
tagName: "em",
|
|
@@ -4655,7 +4656,7 @@ function Qo(e, n) {
|
|
|
4655
4656
|
};
|
|
4656
4657
|
return e.patch(n, t), e.applyData(n, t);
|
|
4657
4658
|
}
|
|
4658
|
-
function
|
|
4659
|
+
function Jo(e, n) {
|
|
4659
4660
|
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(n.identifier).toUpperCase(), i = Ae(r.toLowerCase()), l = e.footnoteOrder.indexOf(r);
|
|
4660
4661
|
let o, a = e.footnoteCounts.get(r);
|
|
4661
4662
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = l + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -4679,7 +4680,7 @@ function Go(e, n) {
|
|
|
4679
4680
|
};
|
|
4680
4681
|
return e.patch(n, c), e.applyData(n, c);
|
|
4681
4682
|
}
|
|
4682
|
-
function
|
|
4683
|
+
function Zo(e, n) {
|
|
4683
4684
|
const t = {
|
|
4684
4685
|
type: "element",
|
|
4685
4686
|
tagName: "h" + n.depth,
|
|
@@ -4688,13 +4689,13 @@ function Ko(e, n) {
|
|
|
4688
4689
|
};
|
|
4689
4690
|
return e.patch(n, t), e.applyData(n, t);
|
|
4690
4691
|
}
|
|
4691
|
-
function
|
|
4692
|
+
function ea(e, n) {
|
|
4692
4693
|
if (e.options.allowDangerousHtml) {
|
|
4693
4694
|
const t = { type: "raw", value: n.value };
|
|
4694
4695
|
return e.patch(n, t), e.applyData(n, t);
|
|
4695
4696
|
}
|
|
4696
4697
|
}
|
|
4697
|
-
function
|
|
4698
|
+
function lr(e, n) {
|
|
4698
4699
|
const t = n.referenceType;
|
|
4699
4700
|
let r = "]";
|
|
4700
4701
|
if (t === "collapsed" ? r += "[]" : t === "full" && (r += "[" + (n.label || n.identifier) + "]"), n.type === "imageReference")
|
|
@@ -4704,22 +4705,22 @@ function or(e, n) {
|
|
|
4704
4705
|
const o = i[i.length - 1];
|
|
4705
4706
|
return o && o.type === "text" ? o.value += r : i.push({ type: "text", value: r }), i;
|
|
4706
4707
|
}
|
|
4707
|
-
function
|
|
4708
|
+
function na(e, n) {
|
|
4708
4709
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
4709
4710
|
if (!r)
|
|
4710
|
-
return
|
|
4711
|
+
return lr(e, n);
|
|
4711
4712
|
const i = { src: Ae(r.url || ""), alt: n.alt };
|
|
4712
4713
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4713
4714
|
const l = { type: "element", tagName: "img", properties: i, children: [] };
|
|
4714
4715
|
return e.patch(n, l), e.applyData(n, l);
|
|
4715
4716
|
}
|
|
4716
|
-
function
|
|
4717
|
+
function ta(e, n) {
|
|
4717
4718
|
const t = { src: Ae(n.url) };
|
|
4718
4719
|
n.alt !== null && n.alt !== void 0 && (t.alt = n.alt), n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
4719
4720
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
4720
4721
|
return e.patch(n, r), e.applyData(n, r);
|
|
4721
4722
|
}
|
|
4722
|
-
function
|
|
4723
|
+
function ra(e, n) {
|
|
4723
4724
|
const t = { type: "text", value: n.value.replace(/\r?\n|\r/g, " ") };
|
|
4724
4725
|
e.patch(n, t);
|
|
4725
4726
|
const r = {
|
|
@@ -4730,10 +4731,10 @@ function na(e, n) {
|
|
|
4730
4731
|
};
|
|
4731
4732
|
return e.patch(n, r), e.applyData(n, r);
|
|
4732
4733
|
}
|
|
4733
|
-
function
|
|
4734
|
+
function ia(e, n) {
|
|
4734
4735
|
const t = String(n.identifier).toUpperCase(), r = e.definitionById.get(t);
|
|
4735
4736
|
if (!r)
|
|
4736
|
-
return
|
|
4737
|
+
return lr(e, n);
|
|
4737
4738
|
const i = { href: Ae(r.url || "") };
|
|
4738
4739
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4739
4740
|
const l = {
|
|
@@ -4744,7 +4745,7 @@ function ta(e, n) {
|
|
|
4744
4745
|
};
|
|
4745
4746
|
return e.patch(n, l), e.applyData(n, l);
|
|
4746
4747
|
}
|
|
4747
|
-
function
|
|
4748
|
+
function la(e, n) {
|
|
4748
4749
|
const t = { href: Ae(n.url) };
|
|
4749
4750
|
n.title !== null && n.title !== void 0 && (t.title = n.title);
|
|
4750
4751
|
const r = {
|
|
@@ -4755,8 +4756,8 @@ function ra(e, n) {
|
|
|
4755
4756
|
};
|
|
4756
4757
|
return e.patch(n, r), e.applyData(n, r);
|
|
4757
4758
|
}
|
|
4758
|
-
function
|
|
4759
|
-
const r = e.all(n), i = t ?
|
|
4759
|
+
function oa(e, n, t) {
|
|
4760
|
+
const r = e.all(n), i = t ? aa(t) : or(n), l = {}, o = [];
|
|
4760
4761
|
if (typeof n.checked == "boolean") {
|
|
4761
4762
|
const s = r[0];
|
|
4762
4763
|
let f;
|
|
@@ -4779,22 +4780,22 @@ function ia(e, n, t) {
|
|
|
4779
4780
|
const c = { type: "element", tagName: "li", properties: l, children: o };
|
|
4780
4781
|
return e.patch(n, c), e.applyData(n, c);
|
|
4781
4782
|
}
|
|
4782
|
-
function
|
|
4783
|
+
function aa(e) {
|
|
4783
4784
|
let n = !1;
|
|
4784
4785
|
if (e.type === "list") {
|
|
4785
4786
|
n = e.spread || !1;
|
|
4786
4787
|
const t = e.children;
|
|
4787
4788
|
let r = -1;
|
|
4788
4789
|
for (; !n && ++r < t.length; )
|
|
4789
|
-
n =
|
|
4790
|
+
n = or(t[r]);
|
|
4790
4791
|
}
|
|
4791
4792
|
return n;
|
|
4792
4793
|
}
|
|
4793
|
-
function
|
|
4794
|
+
function or(e) {
|
|
4794
4795
|
const n = e.spread;
|
|
4795
4796
|
return n ?? e.children.length > 1;
|
|
4796
4797
|
}
|
|
4797
|
-
function
|
|
4798
|
+
function ua(e, n) {
|
|
4798
4799
|
const t = {}, r = e.all(n);
|
|
4799
4800
|
let i = -1;
|
|
4800
4801
|
for (typeof n.start == "number" && n.start !== 1 && (t.start = n.start); ++i < r.length; ) {
|
|
@@ -4812,7 +4813,7 @@ function oa(e, n) {
|
|
|
4812
4813
|
};
|
|
4813
4814
|
return e.patch(n, l), e.applyData(n, l);
|
|
4814
4815
|
}
|
|
4815
|
-
function
|
|
4816
|
+
function sa(e, n) {
|
|
4816
4817
|
const t = {
|
|
4817
4818
|
type: "element",
|
|
4818
4819
|
tagName: "p",
|
|
@@ -4821,11 +4822,11 @@ function aa(e, n) {
|
|
|
4821
4822
|
};
|
|
4822
4823
|
return e.patch(n, t), e.applyData(n, t);
|
|
4823
4824
|
}
|
|
4824
|
-
function
|
|
4825
|
+
function ca(e, n) {
|
|
4825
4826
|
const t = { type: "root", children: e.wrap(e.all(n)) };
|
|
4826
4827
|
return e.patch(n, t), e.applyData(n, t);
|
|
4827
4828
|
}
|
|
4828
|
-
function
|
|
4829
|
+
function pa(e, n) {
|
|
4829
4830
|
const t = {
|
|
4830
4831
|
type: "element",
|
|
4831
4832
|
tagName: "strong",
|
|
@@ -4834,7 +4835,7 @@ function sa(e, n) {
|
|
|
4834
4835
|
};
|
|
4835
4836
|
return e.patch(n, t), e.applyData(n, t);
|
|
4836
4837
|
}
|
|
4837
|
-
function
|
|
4838
|
+
function fa(e, n) {
|
|
4838
4839
|
const t = e.all(n), r = t.shift(), i = [];
|
|
4839
4840
|
if (r) {
|
|
4840
4841
|
const o = {
|
|
@@ -4851,7 +4852,7 @@ function ca(e, n) {
|
|
|
4851
4852
|
tagName: "tbody",
|
|
4852
4853
|
properties: {},
|
|
4853
4854
|
children: e.wrap(t, !0)
|
|
4854
|
-
}, a =
|
|
4855
|
+
}, a = In(n.children[1]), u = jt(n.children[n.children.length - 1]);
|
|
4855
4856
|
a && u && (o.position = { start: a, end: u }), i.push(o);
|
|
4856
4857
|
}
|
|
4857
4858
|
const l = {
|
|
@@ -4862,7 +4863,7 @@ function ca(e, n) {
|
|
|
4862
4863
|
};
|
|
4863
4864
|
return e.patch(n, l), e.applyData(n, l);
|
|
4864
4865
|
}
|
|
4865
|
-
function
|
|
4866
|
+
function ha(e, n, t) {
|
|
4866
4867
|
const r = t ? t.children : void 0, l = (r ? r.indexOf(n) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, a = o ? o.length : n.children.length;
|
|
4867
4868
|
let u = -1;
|
|
4868
4869
|
const c = [];
|
|
@@ -4880,7 +4881,7 @@ function pa(e, n, t) {
|
|
|
4880
4881
|
};
|
|
4881
4882
|
return e.patch(n, s), e.applyData(n, s);
|
|
4882
4883
|
}
|
|
4883
|
-
function
|
|
4884
|
+
function ma(e, n) {
|
|
4884
4885
|
const t = {
|
|
4885
4886
|
type: "element",
|
|
4886
4887
|
tagName: "td",
|
|
@@ -4890,11 +4891,11 @@ function fa(e, n) {
|
|
|
4890
4891
|
};
|
|
4891
4892
|
return e.patch(n, t), e.applyData(n, t);
|
|
4892
4893
|
}
|
|
4893
|
-
function
|
|
4894
|
-
const t = { type: "text", value:
|
|
4894
|
+
function da(e, n) {
|
|
4895
|
+
const t = { type: "text", value: Pr(String(n.value)) };
|
|
4895
4896
|
return e.patch(n, t), e.applyData(n, t);
|
|
4896
4897
|
}
|
|
4897
|
-
function
|
|
4898
|
+
function ga(e, n) {
|
|
4898
4899
|
const t = {
|
|
4899
4900
|
type: "element",
|
|
4900
4901
|
tagName: "hr",
|
|
@@ -4903,31 +4904,31 @@ function ma(e, n) {
|
|
|
4903
4904
|
};
|
|
4904
4905
|
return e.patch(n, t), e.applyData(n, t);
|
|
4905
4906
|
}
|
|
4906
|
-
const
|
|
4907
|
-
blockquote:
|
|
4908
|
-
break:
|
|
4909
|
-
code:
|
|
4910
|
-
delete:
|
|
4911
|
-
emphasis:
|
|
4912
|
-
footnoteReference:
|
|
4913
|
-
heading:
|
|
4914
|
-
html:
|
|
4915
|
-
imageReference:
|
|
4916
|
-
image:
|
|
4917
|
-
inlineCode:
|
|
4918
|
-
linkReference:
|
|
4919
|
-
link:
|
|
4920
|
-
listItem:
|
|
4921
|
-
list:
|
|
4922
|
-
paragraph:
|
|
4907
|
+
const ya = {
|
|
4908
|
+
blockquote: Yo,
|
|
4909
|
+
break: Xo,
|
|
4910
|
+
code: Qo,
|
|
4911
|
+
delete: Go,
|
|
4912
|
+
emphasis: Ko,
|
|
4913
|
+
footnoteReference: Jo,
|
|
4914
|
+
heading: Zo,
|
|
4915
|
+
html: ea,
|
|
4916
|
+
imageReference: na,
|
|
4917
|
+
image: ta,
|
|
4918
|
+
inlineCode: ra,
|
|
4919
|
+
linkReference: ia,
|
|
4920
|
+
link: la,
|
|
4921
|
+
listItem: oa,
|
|
4922
|
+
list: ua,
|
|
4923
|
+
paragraph: sa,
|
|
4923
4924
|
// @ts-expect-error: root is different, but hard to type.
|
|
4924
|
-
root:
|
|
4925
|
-
strong:
|
|
4926
|
-
table:
|
|
4927
|
-
tableCell:
|
|
4928
|
-
tableRow:
|
|
4929
|
-
text:
|
|
4930
|
-
thematicBreak:
|
|
4925
|
+
root: ca,
|
|
4926
|
+
strong: pa,
|
|
4927
|
+
table: fa,
|
|
4928
|
+
tableCell: ma,
|
|
4929
|
+
tableRow: ha,
|
|
4930
|
+
text: da,
|
|
4931
|
+
thematicBreak: ga,
|
|
4931
4932
|
toml: He,
|
|
4932
4933
|
yaml: He,
|
|
4933
4934
|
definition: He,
|
|
@@ -4935,14 +4936,14 @@ const da = {
|
|
|
4935
4936
|
};
|
|
4936
4937
|
function He() {
|
|
4937
4938
|
}
|
|
4938
|
-
const
|
|
4939
|
+
const ar = -1, Ke = 0, Fe = 1, Ye = 2, vn = 3, Dn = 4, Nn = 5, _n = 6, ur = 7, sr = 8, mt = typeof self == "object" ? self : globalThis, xa = (e, n) => {
|
|
4939
4940
|
const t = (i, l) => (e.set(l, i), i), r = (i) => {
|
|
4940
4941
|
if (e.has(i))
|
|
4941
4942
|
return e.get(i);
|
|
4942
4943
|
const [l, o] = n[i];
|
|
4943
4944
|
switch (l) {
|
|
4944
4945
|
case Ke:
|
|
4945
|
-
case
|
|
4946
|
+
case ar:
|
|
4946
4947
|
return t(o, i);
|
|
4947
4948
|
case Fe: {
|
|
4948
4949
|
const a = t([], i);
|
|
@@ -4956,29 +4957,29 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
|
|
|
4956
4957
|
a[r(u)] = r(c);
|
|
4957
4958
|
return a;
|
|
4958
4959
|
}
|
|
4959
|
-
case
|
|
4960
|
+
case vn:
|
|
4960
4961
|
return t(new Date(o), i);
|
|
4961
|
-
case
|
|
4962
|
+
case Dn: {
|
|
4962
4963
|
const { source: a, flags: u } = o;
|
|
4963
4964
|
return t(new RegExp(a, u), i);
|
|
4964
4965
|
}
|
|
4965
|
-
case
|
|
4966
|
+
case Nn: {
|
|
4966
4967
|
const a = t(/* @__PURE__ */ new Map(), i);
|
|
4967
4968
|
for (const [u, c] of o)
|
|
4968
4969
|
a.set(r(u), r(c));
|
|
4969
4970
|
return a;
|
|
4970
4971
|
}
|
|
4971
|
-
case
|
|
4972
|
+
case _n: {
|
|
4972
4973
|
const a = t(/* @__PURE__ */ new Set(), i);
|
|
4973
4974
|
for (const u of o)
|
|
4974
4975
|
a.add(r(u));
|
|
4975
4976
|
return a;
|
|
4976
4977
|
}
|
|
4977
|
-
case
|
|
4978
|
+
case ur: {
|
|
4978
4979
|
const { name: a, message: u } = o;
|
|
4979
|
-
return t(new
|
|
4980
|
+
return t(new mt[a](u), i);
|
|
4980
4981
|
}
|
|
4981
|
-
case
|
|
4982
|
+
case sr:
|
|
4982
4983
|
return t(BigInt(o), i);
|
|
4983
4984
|
case "BigInt":
|
|
4984
4985
|
return t(Object(BigInt(o)), i);
|
|
@@ -4989,32 +4990,32 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
|
|
|
4989
4990
|
return t(new DataView(a), o);
|
|
4990
4991
|
}
|
|
4991
4992
|
}
|
|
4992
|
-
return t(new
|
|
4993
|
+
return t(new mt[l](o), i);
|
|
4993
4994
|
};
|
|
4994
4995
|
return r;
|
|
4995
|
-
},
|
|
4996
|
+
}, dt = (e) => xa(/* @__PURE__ */ new Map(), e)(0), Ee = "", { toString: ka } = {}, { keys: ba } = Object, De = (e) => {
|
|
4996
4997
|
const n = typeof e;
|
|
4997
4998
|
if (n !== "object" || !e)
|
|
4998
4999
|
return [Ke, n];
|
|
4999
|
-
const t =
|
|
5000
|
+
const t = ka.call(e).slice(8, -1);
|
|
5000
5001
|
switch (t) {
|
|
5001
5002
|
case "Array":
|
|
5002
|
-
return [Fe,
|
|
5003
|
+
return [Fe, Ee];
|
|
5003
5004
|
case "Object":
|
|
5004
|
-
return [Ye,
|
|
5005
|
+
return [Ye, Ee];
|
|
5005
5006
|
case "Date":
|
|
5006
|
-
return [
|
|
5007
|
+
return [vn, Ee];
|
|
5007
5008
|
case "RegExp":
|
|
5008
|
-
return [
|
|
5009
|
+
return [Dn, Ee];
|
|
5009
5010
|
case "Map":
|
|
5010
|
-
return [
|
|
5011
|
+
return [Nn, Ee];
|
|
5011
5012
|
case "Set":
|
|
5012
|
-
return [
|
|
5013
|
+
return [_n, Ee];
|
|
5013
5014
|
case "DataView":
|
|
5014
5015
|
return [Fe, t];
|
|
5015
5016
|
}
|
|
5016
|
-
return t.includes("Array") ? [Fe, t] : t.includes("Error") ? [
|
|
5017
|
-
}, Ue = ([e, n]) => e === Ke && (n === "function" || n === "symbol"),
|
|
5017
|
+
return t.includes("Array") ? [Fe, t] : t.includes("Error") ? [ur, t] : [Ye, t];
|
|
5018
|
+
}, Ue = ([e, n]) => e === Ke && (n === "function" || n === "symbol"), wa = (e, n, t, r) => {
|
|
5018
5019
|
const i = (o, a) => {
|
|
5019
5020
|
const u = r.push(o) - 1;
|
|
5020
5021
|
return t.set(a, u), u;
|
|
@@ -5027,7 +5028,7 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
|
|
|
5027
5028
|
let s = o;
|
|
5028
5029
|
switch (u) {
|
|
5029
5030
|
case "bigint":
|
|
5030
|
-
a =
|
|
5031
|
+
a = sr, s = o.toString();
|
|
5031
5032
|
break;
|
|
5032
5033
|
case "function":
|
|
5033
5034
|
case "symbol":
|
|
@@ -5036,7 +5037,7 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
|
|
|
5036
5037
|
s = null;
|
|
5037
5038
|
break;
|
|
5038
5039
|
case "undefined":
|
|
5039
|
-
return i([
|
|
5040
|
+
return i([ar], o);
|
|
5040
5041
|
}
|
|
5041
5042
|
return i([a, s], o);
|
|
5042
5043
|
}
|
|
@@ -5063,23 +5064,23 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
|
|
|
5063
5064
|
if (n && "toJSON" in o)
|
|
5064
5065
|
return l(o.toJSON());
|
|
5065
5066
|
const s = [], f = i([a, s], o);
|
|
5066
|
-
for (const d of
|
|
5067
|
+
for (const d of ba(o))
|
|
5067
5068
|
(e || !Ue(De(o[d]))) && s.push([l(d), l(o[d])]);
|
|
5068
5069
|
return f;
|
|
5069
5070
|
}
|
|
5070
|
-
case
|
|
5071
|
+
case vn:
|
|
5071
5072
|
return i([a, o.toISOString()], o);
|
|
5072
|
-
case
|
|
5073
|
+
case Dn: {
|
|
5073
5074
|
const { source: s, flags: f } = o;
|
|
5074
5075
|
return i([a, { source: s, flags: f }], o);
|
|
5075
5076
|
}
|
|
5076
|
-
case
|
|
5077
|
+
case Nn: {
|
|
5077
5078
|
const s = [], f = i([a, s], o);
|
|
5078
5079
|
for (const [d, p] of o)
|
|
5079
5080
|
(e || !(Ue(De(d)) || Ue(De(p)))) && s.push([l(d), l(p)]);
|
|
5080
5081
|
return f;
|
|
5081
5082
|
}
|
|
5082
|
-
case
|
|
5083
|
+
case _n: {
|
|
5083
5084
|
const s = [], f = i([a, s], o);
|
|
5084
5085
|
for (const d of o)
|
|
5085
5086
|
(e || !Ue(De(d))) && s.push(l(d));
|
|
@@ -5090,14 +5091,14 @@ const ur = -1, Ke = 0, Fe = 1, Ye = 2, Dn = 3, Nn = 4, _n = 5, Fn = 6, sr = 7, c
|
|
|
5090
5091
|
return i([a, { name: u, message: c }], o);
|
|
5091
5092
|
};
|
|
5092
5093
|
return l;
|
|
5093
|
-
},
|
|
5094
|
+
}, gt = (e, { json: n, lossy: t } = {}) => {
|
|
5094
5095
|
const r = [];
|
|
5095
|
-
return
|
|
5096
|
+
return wa(!(n || t), !!n, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5096
5097
|
}, Xe = typeof structuredClone == "function" ? (
|
|
5097
5098
|
/* c8 ignore start */
|
|
5098
|
-
(e, n) => n && ("json" in n || "lossy" in n) ? gt(
|
|
5099
|
-
) : (e, n) => gt(
|
|
5100
|
-
function
|
|
5099
|
+
(e, n) => n && ("json" in n || "lossy" in n) ? dt(gt(e, n)) : structuredClone(e)
|
|
5100
|
+
) : (e, n) => dt(gt(e, n));
|
|
5101
|
+
function Sa(e, n) {
|
|
5101
5102
|
const t = [{ type: "text", value: "↩" }];
|
|
5102
5103
|
return n > 1 && t.push({
|
|
5103
5104
|
type: "element",
|
|
@@ -5106,11 +5107,11 @@ function ba(e, n) {
|
|
|
5106
5107
|
children: [{ type: "text", value: String(n) }]
|
|
5107
5108
|
}), t;
|
|
5108
5109
|
}
|
|
5109
|
-
function
|
|
5110
|
+
function Ca(e, n) {
|
|
5110
5111
|
return "Back to reference " + (e + 1) + (n > 1 ? "-" + n : "");
|
|
5111
5112
|
}
|
|
5112
|
-
function
|
|
5113
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent ||
|
|
5113
|
+
function Ea(e) {
|
|
5114
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", t = e.options.footnoteBackContent || Sa, r = e.options.footnoteBackLabel || Ca, i = e.options.footnoteLabel || "Footnotes", l = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || {
|
|
5114
5115
|
className: ["sr-only"]
|
|
5115
5116
|
}, a = [];
|
|
5116
5117
|
let u = -1;
|
|
@@ -5180,7 +5181,7 @@ function Sa(e) {
|
|
|
5180
5181
|
]
|
|
5181
5182
|
};
|
|
5182
5183
|
}
|
|
5183
|
-
const
|
|
5184
|
+
const cr = (
|
|
5184
5185
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
5185
5186
|
/**
|
|
5186
5187
|
* @type {(
|
|
@@ -5197,28 +5198,28 @@ const pr = (
|
|
|
5197
5198
|
*/
|
|
5198
5199
|
function(e) {
|
|
5199
5200
|
if (e == null)
|
|
5200
|
-
return
|
|
5201
|
+
return Aa;
|
|
5201
5202
|
if (typeof e == "function")
|
|
5202
5203
|
return Je(e);
|
|
5203
5204
|
if (typeof e == "object")
|
|
5204
|
-
return Array.isArray(e) ?
|
|
5205
|
+
return Array.isArray(e) ? Ia(e) : (
|
|
5205
5206
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
5206
5207
|
// narrows to `Array`.
|
|
5207
|
-
|
|
5208
|
+
Ta(
|
|
5208
5209
|
/** @type {Props} */
|
|
5209
5210
|
e
|
|
5210
5211
|
)
|
|
5211
5212
|
);
|
|
5212
5213
|
if (typeof e == "string")
|
|
5213
|
-
return
|
|
5214
|
+
return Pa(e);
|
|
5214
5215
|
throw new Error("Expected function, string, or object as test");
|
|
5215
5216
|
}
|
|
5216
5217
|
);
|
|
5217
|
-
function
|
|
5218
|
+
function Ia(e) {
|
|
5218
5219
|
const n = [];
|
|
5219
5220
|
let t = -1;
|
|
5220
5221
|
for (; ++t < e.length; )
|
|
5221
|
-
n[t] =
|
|
5222
|
+
n[t] = cr(e[t]);
|
|
5222
5223
|
return Je(r);
|
|
5223
5224
|
function r(...i) {
|
|
5224
5225
|
let l = -1;
|
|
@@ -5227,7 +5228,7 @@ function Ea(e) {
|
|
|
5227
5228
|
return !1;
|
|
5228
5229
|
}
|
|
5229
5230
|
}
|
|
5230
|
-
function
|
|
5231
|
+
function Ta(e) {
|
|
5231
5232
|
const n = (
|
|
5232
5233
|
/** @type {Record<string, unknown>} */
|
|
5233
5234
|
e
|
|
@@ -5245,7 +5246,7 @@ function Ca(e) {
|
|
|
5245
5246
|
return !0;
|
|
5246
5247
|
}
|
|
5247
5248
|
}
|
|
5248
|
-
function
|
|
5249
|
+
function Pa(e) {
|
|
5249
5250
|
return Je(n);
|
|
5250
5251
|
function n(t) {
|
|
5251
5252
|
return t && t.type === e;
|
|
@@ -5254,7 +5255,7 @@ function Ia(e) {
|
|
|
5254
5255
|
function Je(e) {
|
|
5255
5256
|
return n;
|
|
5256
5257
|
function n(t, r, i) {
|
|
5257
|
-
return !!(
|
|
5258
|
+
return !!(za(t) && e.call(
|
|
5258
5259
|
this,
|
|
5259
5260
|
t,
|
|
5260
5261
|
typeof r == "number" ? r : void 0,
|
|
@@ -5262,17 +5263,17 @@ function Je(e) {
|
|
|
5262
5263
|
));
|
|
5263
5264
|
}
|
|
5264
5265
|
}
|
|
5265
|
-
function
|
|
5266
|
+
function Aa() {
|
|
5266
5267
|
return !0;
|
|
5267
5268
|
}
|
|
5268
|
-
function
|
|
5269
|
+
function za(e) {
|
|
5269
5270
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5270
5271
|
}
|
|
5271
|
-
const
|
|
5272
|
-
function
|
|
5272
|
+
const pr = [], La = !0, yt = !1, Oa = "skip";
|
|
5273
|
+
function va(e, n, t, r) {
|
|
5273
5274
|
let i;
|
|
5274
5275
|
typeof n == "function" && typeof t != "function" ? (r = t, t = n) : i = n;
|
|
5275
|
-
const l =
|
|
5276
|
+
const l = cr(i), o = r ? -1 : 1;
|
|
5276
5277
|
a(e, void 0, [])();
|
|
5277
5278
|
function a(u, c, s) {
|
|
5278
5279
|
const f = (
|
|
@@ -5293,18 +5294,18 @@ function La(e, n, t, r) {
|
|
|
5293
5294
|
}
|
|
5294
5295
|
return d;
|
|
5295
5296
|
function d() {
|
|
5296
|
-
let p =
|
|
5297
|
-
if ((!n || l(u, c, s[s.length - 1] || void 0)) && (p =
|
|
5297
|
+
let p = pr, y, b, T;
|
|
5298
|
+
if ((!n || l(u, c, s[s.length - 1] || void 0)) && (p = Da(t(u, s)), p[0] === yt))
|
|
5298
5299
|
return p;
|
|
5299
5300
|
if ("children" in u && u.children) {
|
|
5300
5301
|
const w = (
|
|
5301
5302
|
/** @type {UnistParent} */
|
|
5302
5303
|
u
|
|
5303
5304
|
);
|
|
5304
|
-
if (w.children && p[0] !==
|
|
5305
|
+
if (w.children && p[0] !== Oa)
|
|
5305
5306
|
for (b = (r ? w.children.length : -1) + o, T = s.concat(w); b > -1 && b < w.children.length; ) {
|
|
5306
5307
|
const L = w.children[b];
|
|
5307
|
-
if (y = a(L, b, T)(), y[0] ===
|
|
5308
|
+
if (y = a(L, b, T)(), y[0] === yt)
|
|
5308
5309
|
return y;
|
|
5309
5310
|
b = typeof y[1] == "number" ? y[1] : b + o;
|
|
5310
5311
|
}
|
|
@@ -5313,22 +5314,22 @@ function La(e, n, t, r) {
|
|
|
5313
5314
|
}
|
|
5314
5315
|
}
|
|
5315
5316
|
}
|
|
5316
|
-
function
|
|
5317
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
5317
|
+
function Da(e) {
|
|
5318
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [La, e] : e == null ? pr : [e];
|
|
5318
5319
|
}
|
|
5319
|
-
function
|
|
5320
|
+
function fr(e, n, t, r) {
|
|
5320
5321
|
let i, l, o;
|
|
5321
|
-
typeof n == "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r),
|
|
5322
|
+
typeof n == "function" ? (l = void 0, o = n, i = t) : (l = n, o = t, i = r), va(e, l, a, i);
|
|
5322
5323
|
function a(u, c) {
|
|
5323
5324
|
const s = c[c.length - 1], f = s ? s.children.indexOf(u) : void 0;
|
|
5324
5325
|
return o(u, f, s);
|
|
5325
5326
|
}
|
|
5326
5327
|
}
|
|
5327
|
-
const
|
|
5328
|
-
function
|
|
5329
|
-
const t = n ||
|
|
5328
|
+
const kn = {}.hasOwnProperty, Na = {};
|
|
5329
|
+
function _a(e, n) {
|
|
5330
|
+
const t = n || Na, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ...ya, ...t.handlers }, a = {
|
|
5330
5331
|
all: c,
|
|
5331
|
-
applyData:
|
|
5332
|
+
applyData: Ra,
|
|
5332
5333
|
definitionById: r,
|
|
5333
5334
|
footnoteById: i,
|
|
5334
5335
|
footnoteCounts: l,
|
|
@@ -5336,10 +5337,10 @@ function Da(e, n) {
|
|
|
5336
5337
|
handlers: o,
|
|
5337
5338
|
one: u,
|
|
5338
5339
|
options: t,
|
|
5339
|
-
patch:
|
|
5340
|
-
wrap:
|
|
5340
|
+
patch: Fa,
|
|
5341
|
+
wrap: Ba
|
|
5341
5342
|
};
|
|
5342
|
-
return
|
|
5343
|
+
return fr(e, function(s) {
|
|
5343
5344
|
if (s.type === "definition" || s.type === "footnoteDefinition") {
|
|
5344
5345
|
const f = s.type === "definition" ? r : i, d = String(s.identifier).toUpperCase();
|
|
5345
5346
|
f.has(d) || f.set(d, s);
|
|
@@ -5347,7 +5348,7 @@ function Da(e, n) {
|
|
|
5347
5348
|
}), a;
|
|
5348
5349
|
function u(s, f) {
|
|
5349
5350
|
const d = s.type, p = a.handlers[d];
|
|
5350
|
-
if (
|
|
5351
|
+
if (kn.call(a.handlers, d) && p)
|
|
5351
5352
|
return p(a, s, f);
|
|
5352
5353
|
if (a.options.passThrough && a.options.passThrough.includes(d)) {
|
|
5353
5354
|
if ("children" in s) {
|
|
@@ -5356,7 +5357,7 @@ function Da(e, n) {
|
|
|
5356
5357
|
}
|
|
5357
5358
|
return Xe(s);
|
|
5358
5359
|
}
|
|
5359
|
-
return (a.options.unknownHandler ||
|
|
5360
|
+
return (a.options.unknownHandler || Ma)(a, s, f);
|
|
5360
5361
|
}
|
|
5361
5362
|
function c(s) {
|
|
5362
5363
|
const f = [];
|
|
@@ -5366,9 +5367,9 @@ function Da(e, n) {
|
|
|
5366
5367
|
for (; ++p < d.length; ) {
|
|
5367
5368
|
const y = a.one(d[p], s);
|
|
5368
5369
|
if (y) {
|
|
5369
|
-
if (p && d[p - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value =
|
|
5370
|
+
if (p && d[p - 1].type === "break" && (!Array.isArray(y) && y.type === "text" && (y.value = xt(y.value)), !Array.isArray(y) && y.type === "element")) {
|
|
5370
5371
|
const b = y.children[0];
|
|
5371
|
-
b && b.type === "text" && (b.value =
|
|
5372
|
+
b && b.type === "text" && (b.value = xt(b.value));
|
|
5372
5373
|
}
|
|
5373
5374
|
Array.isArray(y) ? f.push(...y) : f.push(y);
|
|
5374
5375
|
}
|
|
@@ -5377,10 +5378,10 @@ function Da(e, n) {
|
|
|
5377
5378
|
return f;
|
|
5378
5379
|
}
|
|
5379
5380
|
}
|
|
5380
|
-
function
|
|
5381
|
-
e.position && (n.position =
|
|
5381
|
+
function Fa(e, n) {
|
|
5382
|
+
e.position && (n.position = ki(e));
|
|
5382
5383
|
}
|
|
5383
|
-
function
|
|
5384
|
+
function Ra(e, n) {
|
|
5384
5385
|
let t = n;
|
|
5385
5386
|
if (e && e.data) {
|
|
5386
5387
|
const r = e.data.hName, i = e.data.hChildren, l = e.data.hProperties;
|
|
@@ -5395,8 +5396,8 @@ function _a(e, n) {
|
|
|
5395
5396
|
}
|
|
5396
5397
|
return t;
|
|
5397
5398
|
}
|
|
5398
|
-
function
|
|
5399
|
-
const t = n.data || {}, r = "value" in n && !(
|
|
5399
|
+
function Ma(e, n) {
|
|
5400
|
+
const t = n.data || {}, r = "value" in n && !(kn.call(t, "hProperties") || kn.call(t, "hChildren")) ? { type: "text", value: n.value } : {
|
|
5400
5401
|
type: "element",
|
|
5401
5402
|
tagName: "div",
|
|
5402
5403
|
properties: {},
|
|
@@ -5404,7 +5405,7 @@ function Fa(e, n) {
|
|
|
5404
5405
|
};
|
|
5405
5406
|
return e.patch(n, r), e.applyData(n, r);
|
|
5406
5407
|
}
|
|
5407
|
-
function
|
|
5408
|
+
function Ba(e, n) {
|
|
5408
5409
|
const t = [];
|
|
5409
5410
|
let r = -1;
|
|
5410
5411
|
for (n && t.push({ type: "text", value: `
|
|
@@ -5414,39 +5415,39 @@ function Ra(e, n) {
|
|
|
5414
5415
|
return n && e.length > 0 && t.push({ type: "text", value: `
|
|
5415
5416
|
` }), t;
|
|
5416
5417
|
}
|
|
5417
|
-
function
|
|
5418
|
+
function xt(e) {
|
|
5418
5419
|
let n = 0, t = e.charCodeAt(n);
|
|
5419
5420
|
for (; t === 9 || t === 32; )
|
|
5420
5421
|
n++, t = e.charCodeAt(n);
|
|
5421
5422
|
return e.slice(n);
|
|
5422
5423
|
}
|
|
5423
|
-
function
|
|
5424
|
-
const t =
|
|
5424
|
+
function kt(e, n) {
|
|
5425
|
+
const t = _a(e, n), r = t.one(e, void 0), i = Ea(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5425
5426
|
return i && l.children.push({ type: "text", value: `
|
|
5426
5427
|
` }, i), l;
|
|
5427
5428
|
}
|
|
5428
|
-
function
|
|
5429
|
+
function ja(e, n) {
|
|
5429
5430
|
return e && "run" in e ? async function(t, r) {
|
|
5430
5431
|
const i = (
|
|
5431
5432
|
/** @type {HastRoot} */
|
|
5432
|
-
|
|
5433
|
+
kt(t, { file: r, ...n })
|
|
5433
5434
|
);
|
|
5434
5435
|
await e.run(i, r);
|
|
5435
5436
|
} : function(t, r) {
|
|
5436
5437
|
return (
|
|
5437
5438
|
/** @type {HastRoot} */
|
|
5438
|
-
|
|
5439
|
+
kt(t, { file: r, ...e || n })
|
|
5439
5440
|
);
|
|
5440
5441
|
};
|
|
5441
5442
|
}
|
|
5442
|
-
function
|
|
5443
|
+
function bt(e) {
|
|
5443
5444
|
if (e)
|
|
5444
5445
|
throw e;
|
|
5445
5446
|
}
|
|
5446
|
-
var $e = Object.prototype.hasOwnProperty,
|
|
5447
|
-
return typeof Array.isArray == "function" ? Array.isArray(n) :
|
|
5448
|
-
},
|
|
5449
|
-
if (!n ||
|
|
5447
|
+
var $e = Object.prototype.hasOwnProperty, hr = Object.prototype.toString, wt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Ct = function(n) {
|
|
5448
|
+
return typeof Array.isArray == "function" ? Array.isArray(n) : hr.call(n) === "[object Array]";
|
|
5449
|
+
}, Et = function(n) {
|
|
5450
|
+
if (!n || hr.call(n) !== "[object Object]")
|
|
5450
5451
|
return !1;
|
|
5451
5452
|
var t = $e.call(n, "constructor"), r = n.constructor && n.constructor.prototype && $e.call(n.constructor.prototype, "isPrototypeOf");
|
|
5452
5453
|
if (n.constructor && !t && !r)
|
|
@@ -5455,36 +5456,36 @@ var $e = Object.prototype.hasOwnProperty, mr = Object.prototype.toString, St = O
|
|
|
5455
5456
|
for (i in n)
|
|
5456
5457
|
;
|
|
5457
5458
|
return typeof i > "u" || $e.call(n, i);
|
|
5458
|
-
},
|
|
5459
|
-
|
|
5459
|
+
}, It = function(n, t) {
|
|
5460
|
+
wt && t.name === "__proto__" ? wt(n, t.name, {
|
|
5460
5461
|
enumerable: !0,
|
|
5461
5462
|
configurable: !0,
|
|
5462
5463
|
value: t.newValue,
|
|
5463
5464
|
writable: !0
|
|
5464
5465
|
}) : n[t.name] = t.newValue;
|
|
5465
|
-
},
|
|
5466
|
+
}, Tt = function(n, t) {
|
|
5466
5467
|
if (t === "__proto__")
|
|
5467
5468
|
if ($e.call(n, t)) {
|
|
5468
|
-
if (
|
|
5469
|
-
return
|
|
5469
|
+
if (St)
|
|
5470
|
+
return St(n, t).value;
|
|
5470
5471
|
} else return;
|
|
5471
5472
|
return n[t];
|
|
5472
|
-
},
|
|
5473
|
+
}, Ha = function e() {
|
|
5473
5474
|
var n, t, r, i, l, o, a = arguments[0], u = 1, c = arguments.length, s = !1;
|
|
5474
5475
|
for (typeof a == "boolean" && (s = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < c; ++u)
|
|
5475
5476
|
if (n = arguments[u], n != null)
|
|
5476
5477
|
for (t in n)
|
|
5477
|
-
r =
|
|
5478
|
+
r = Tt(a, t), i = Tt(n, t), a !== i && (s && i && (Et(i) || (l = Ct(i))) ? (l ? (l = !1, o = r && Ct(r) ? r : []) : o = r && Et(r) ? r : {}, It(a, { name: t, newValue: e(s, o, i) })) : typeof i < "u" && It(a, { name: t, newValue: i }));
|
|
5478
5479
|
return a;
|
|
5479
5480
|
};
|
|
5480
|
-
const
|
|
5481
|
-
function
|
|
5481
|
+
const rn = /* @__PURE__ */ vt(Ha);
|
|
5482
|
+
function bn(e) {
|
|
5482
5483
|
if (typeof e != "object" || e === null)
|
|
5483
5484
|
return !1;
|
|
5484
5485
|
const n = Object.getPrototypeOf(e);
|
|
5485
5486
|
return (n === null || n === Object.prototype || Object.getPrototypeOf(n) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5486
5487
|
}
|
|
5487
|
-
function
|
|
5488
|
+
function Ua() {
|
|
5488
5489
|
const e = [], n = { run: t, use: r };
|
|
5489
5490
|
return n;
|
|
5490
5491
|
function t(...i) {
|
|
@@ -5502,7 +5503,7 @@ function ja() {
|
|
|
5502
5503
|
}
|
|
5503
5504
|
for (; ++f < i.length; )
|
|
5504
5505
|
(c[f] === null || c[f] === void 0) && (c[f] = i[f]);
|
|
5505
|
-
i = c, s ?
|
|
5506
|
+
i = c, s ? Va(s, a)(...c) : o(null, ...c);
|
|
5506
5507
|
}
|
|
5507
5508
|
}
|
|
5508
5509
|
function r(i) {
|
|
@@ -5513,7 +5514,7 @@ function ja() {
|
|
|
5513
5514
|
return e.push(i), n;
|
|
5514
5515
|
}
|
|
5515
5516
|
}
|
|
5516
|
-
function
|
|
5517
|
+
function Va(e, n) {
|
|
5517
5518
|
let t;
|
|
5518
5519
|
return r;
|
|
5519
5520
|
function r(...o) {
|
|
@@ -5540,8 +5541,8 @@ function Ha(e, n) {
|
|
|
5540
5541
|
i(null, o);
|
|
5541
5542
|
}
|
|
5542
5543
|
}
|
|
5543
|
-
const ae = { basename:
|
|
5544
|
-
function
|
|
5544
|
+
const ae = { basename: qa, dirname: $a, extname: Wa, join: Ya, sep: "/" };
|
|
5545
|
+
function qa(e, n) {
|
|
5545
5546
|
if (n !== void 0 && typeof n != "string")
|
|
5546
5547
|
throw new TypeError('"ext" argument must be a string');
|
|
5547
5548
|
Be(e);
|
|
@@ -5569,7 +5570,7 @@ function Ua(e, n) {
|
|
|
5569
5570
|
o < 0 && (l = !0, o = i + 1), a > -1 && (e.codePointAt(i) === n.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = o));
|
|
5570
5571
|
return t === r ? r = o : r < 0 && (r = e.length), e.slice(t, r);
|
|
5571
5572
|
}
|
|
5572
|
-
function
|
|
5573
|
+
function $a(e) {
|
|
5573
5574
|
if (Be(e), e.length === 0)
|
|
5574
5575
|
return ".";
|
|
5575
5576
|
let n = -1, t = e.length, r;
|
|
@@ -5582,7 +5583,7 @@ function Va(e) {
|
|
|
5582
5583
|
} else r || (r = !0);
|
|
5583
5584
|
return n < 0 ? e.codePointAt(0) === 47 ? "/" : "." : n === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, n);
|
|
5584
5585
|
}
|
|
5585
|
-
function
|
|
5586
|
+
function Wa(e) {
|
|
5586
5587
|
Be(e);
|
|
5587
5588
|
let n = e.length, t = -1, r = 0, i = -1, l = 0, o;
|
|
5588
5589
|
for (; n--; ) {
|
|
@@ -5600,19 +5601,19 @@ function qa(e) {
|
|
|
5600
5601
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5601
5602
|
l === 1 && i === t - 1 && i === r + 1 ? "" : e.slice(i, t);
|
|
5602
5603
|
}
|
|
5603
|
-
function
|
|
5604
|
+
function Ya(...e) {
|
|
5604
5605
|
let n = -1, t;
|
|
5605
5606
|
for (; ++n < e.length; )
|
|
5606
5607
|
Be(e[n]), e[n] && (t = t === void 0 ? e[n] : t + "/" + e[n]);
|
|
5607
|
-
return t === void 0 ? "." :
|
|
5608
|
+
return t === void 0 ? "." : Xa(t);
|
|
5608
5609
|
}
|
|
5609
|
-
function
|
|
5610
|
+
function Xa(e) {
|
|
5610
5611
|
Be(e);
|
|
5611
5612
|
const n = e.codePointAt(0) === 47;
|
|
5612
|
-
let t =
|
|
5613
|
+
let t = Qa(e, !n);
|
|
5613
5614
|
return t.length === 0 && !n && (t = "."), t.length > 0 && e.codePointAt(e.length - 1) === 47 && (t += "/"), n ? "/" + t : t;
|
|
5614
5615
|
}
|
|
5615
|
-
function
|
|
5616
|
+
function Qa(e, n) {
|
|
5616
5617
|
let t = "", r = 0, i = -1, l = 0, o = -1, a, u;
|
|
5617
5618
|
for (; ++o <= e.length; ) {
|
|
5618
5619
|
if (o < e.length)
|
|
@@ -5649,18 +5650,18 @@ function Be(e) {
|
|
|
5649
5650
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5650
5651
|
);
|
|
5651
5652
|
}
|
|
5652
|
-
const
|
|
5653
|
-
function
|
|
5653
|
+
const Ga = { cwd: Ka };
|
|
5654
|
+
function Ka() {
|
|
5654
5655
|
return "/";
|
|
5655
5656
|
}
|
|
5656
|
-
function
|
|
5657
|
+
function wn(e) {
|
|
5657
5658
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5658
5659
|
e.auth === void 0);
|
|
5659
5660
|
}
|
|
5660
|
-
function
|
|
5661
|
+
function Ja(e) {
|
|
5661
5662
|
if (typeof e == "string")
|
|
5662
5663
|
e = new URL(e);
|
|
5663
|
-
else if (!
|
|
5664
|
+
else if (!wn(e)) {
|
|
5664
5665
|
const n = new TypeError(
|
|
5665
5666
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
5666
5667
|
);
|
|
@@ -5670,9 +5671,9 @@ function Ga(e) {
|
|
|
5670
5671
|
const n = new TypeError("The URL must be of scheme file");
|
|
5671
5672
|
throw n.code = "ERR_INVALID_URL_SCHEME", n;
|
|
5672
5673
|
}
|
|
5673
|
-
return
|
|
5674
|
+
return Za(e);
|
|
5674
5675
|
}
|
|
5675
|
-
function
|
|
5676
|
+
function Za(e) {
|
|
5676
5677
|
if (e.hostname !== "") {
|
|
5677
5678
|
const r = new TypeError(
|
|
5678
5679
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5693,7 +5694,7 @@ function Ka(e) {
|
|
|
5693
5694
|
}
|
|
5694
5695
|
return decodeURIComponent(n);
|
|
5695
5696
|
}
|
|
5696
|
-
const
|
|
5697
|
+
const ln = (
|
|
5697
5698
|
/** @type {const} */
|
|
5698
5699
|
[
|
|
5699
5700
|
"history",
|
|
@@ -5704,7 +5705,7 @@ const on = (
|
|
|
5704
5705
|
"dirname"
|
|
5705
5706
|
]
|
|
5706
5707
|
);
|
|
5707
|
-
class
|
|
5708
|
+
class mr {
|
|
5708
5709
|
/**
|
|
5709
5710
|
* Create a new virtual file.
|
|
5710
5711
|
*
|
|
@@ -5729,15 +5730,15 @@ class dr {
|
|
|
5729
5730
|
*/
|
|
5730
5731
|
constructor(n) {
|
|
5731
5732
|
let t;
|
|
5732
|
-
n ?
|
|
5733
|
+
n ? wn(n) ? t = { path: n } : typeof n == "string" || eu(n) ? t = { value: n } : t = n : t = {}, this.cwd = "cwd" in t ? "" : Ga.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
5733
5734
|
let r = -1;
|
|
5734
|
-
for (; ++r <
|
|
5735
|
-
const l =
|
|
5735
|
+
for (; ++r < ln.length; ) {
|
|
5736
|
+
const l = ln[r];
|
|
5736
5737
|
l in t && t[l] !== void 0 && t[l] !== null && (this[l] = l === "history" ? [...t[l]] : t[l]);
|
|
5737
5738
|
}
|
|
5738
5739
|
let i;
|
|
5739
5740
|
for (i in t)
|
|
5740
|
-
|
|
5741
|
+
ln.includes(i) || (this[i] = t[i]);
|
|
5741
5742
|
}
|
|
5742
5743
|
/**
|
|
5743
5744
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -5761,7 +5762,7 @@ class dr {
|
|
|
5761
5762
|
* Nothing.
|
|
5762
5763
|
*/
|
|
5763
5764
|
set basename(n) {
|
|
5764
|
-
|
|
5765
|
+
an(n, "basename"), on(n, "basename"), this.path = ae.join(this.dirname || "", n);
|
|
5765
5766
|
}
|
|
5766
5767
|
/**
|
|
5767
5768
|
* Get the parent path (example: `'~'`).
|
|
@@ -5783,7 +5784,7 @@ class dr {
|
|
|
5783
5784
|
* Nothing.
|
|
5784
5785
|
*/
|
|
5785
5786
|
set dirname(n) {
|
|
5786
|
-
|
|
5787
|
+
Pt(this.basename, "dirname"), this.path = ae.join(n || "", this.basename);
|
|
5787
5788
|
}
|
|
5788
5789
|
/**
|
|
5789
5790
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -5807,7 +5808,7 @@ class dr {
|
|
|
5807
5808
|
* Nothing.
|
|
5808
5809
|
*/
|
|
5809
5810
|
set extname(n) {
|
|
5810
|
-
if (
|
|
5811
|
+
if (on(n, "extname"), Pt(this.dirname, "extname"), n) {
|
|
5811
5812
|
if (n.codePointAt(0) !== 46)
|
|
5812
5813
|
throw new Error("`extname` must start with `.`");
|
|
5813
5814
|
if (n.includes(".", 1))
|
|
@@ -5837,7 +5838,7 @@ class dr {
|
|
|
5837
5838
|
* Nothing.
|
|
5838
5839
|
*/
|
|
5839
5840
|
set path(n) {
|
|
5840
|
-
|
|
5841
|
+
wn(n) && (n = Ja(n)), an(n, "path"), this.path !== n && this.history.push(n);
|
|
5841
5842
|
}
|
|
5842
5843
|
/**
|
|
5843
5844
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -5861,7 +5862,7 @@ class dr {
|
|
|
5861
5862
|
* Nothing.
|
|
5862
5863
|
*/
|
|
5863
5864
|
set stem(n) {
|
|
5864
|
-
|
|
5865
|
+
an(n, "stem"), on(n, "stem"), this.path = ae.join(this.dirname || "", n + (this.extname || ""));
|
|
5865
5866
|
}
|
|
5866
5867
|
// Normal prototypal methods.
|
|
5867
5868
|
/**
|
|
@@ -6074,24 +6075,24 @@ class dr {
|
|
|
6074
6075
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(n || void 0).decode(this.value);
|
|
6075
6076
|
}
|
|
6076
6077
|
}
|
|
6077
|
-
function
|
|
6078
|
+
function on(e, n) {
|
|
6078
6079
|
if (e && e.includes(ae.sep))
|
|
6079
6080
|
throw new Error(
|
|
6080
6081
|
"`" + n + "` cannot be a path: did not expect `" + ae.sep + "`"
|
|
6081
6082
|
);
|
|
6082
6083
|
}
|
|
6083
|
-
function
|
|
6084
|
+
function an(e, n) {
|
|
6084
6085
|
if (!e)
|
|
6085
6086
|
throw new Error("`" + n + "` cannot be empty");
|
|
6086
6087
|
}
|
|
6087
|
-
function
|
|
6088
|
+
function Pt(e, n) {
|
|
6088
6089
|
if (!e)
|
|
6089
6090
|
throw new Error("Setting `" + n + "` requires `path` to be set too");
|
|
6090
6091
|
}
|
|
6091
|
-
function
|
|
6092
|
+
function eu(e) {
|
|
6092
6093
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6093
6094
|
}
|
|
6094
|
-
const
|
|
6095
|
+
const nu = (
|
|
6095
6096
|
/**
|
|
6096
6097
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6097
6098
|
*/
|
|
@@ -6118,13 +6119,13 @@ const Za = (
|
|
|
6118
6119
|
}
|
|
6119
6120
|
return l;
|
|
6120
6121
|
}
|
|
6121
|
-
),
|
|
6122
|
-
class
|
|
6122
|
+
), tu = {}.hasOwnProperty;
|
|
6123
|
+
class Fn extends nu {
|
|
6123
6124
|
/**
|
|
6124
6125
|
* Create a processor.
|
|
6125
6126
|
*/
|
|
6126
6127
|
constructor() {
|
|
6127
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
6128
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Ua();
|
|
6128
6129
|
}
|
|
6129
6130
|
/**
|
|
6130
6131
|
* Copy a processor.
|
|
@@ -6140,14 +6141,14 @@ class Rn extends Za {
|
|
|
6140
6141
|
copy() {
|
|
6141
6142
|
const n = (
|
|
6142
6143
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
6143
|
-
new
|
|
6144
|
+
new Fn()
|
|
6144
6145
|
);
|
|
6145
6146
|
let t = -1;
|
|
6146
6147
|
for (; ++t < this.attachers.length; ) {
|
|
6147
6148
|
const r = this.attachers[t];
|
|
6148
6149
|
n.use(...r);
|
|
6149
6150
|
}
|
|
6150
|
-
return n.data(
|
|
6151
|
+
return n.data(rn(!0, {}, this.namespace)), n;
|
|
6151
6152
|
}
|
|
6152
6153
|
/**
|
|
6153
6154
|
* Configure the processor with info available to all plugins.
|
|
@@ -6209,7 +6210,7 @@ class Rn extends Za {
|
|
|
6209
6210
|
* the entire dataset when getting without key.
|
|
6210
6211
|
*/
|
|
6211
6212
|
data(n, t) {
|
|
6212
|
-
return typeof n == "string" ? arguments.length === 2 ? (
|
|
6213
|
+
return typeof n == "string" ? arguments.length === 2 ? (cn("data", this.frozen), this.namespace[n] = t, this) : tu.call(this.namespace, n) && this.namespace[n] || void 0 : n ? (cn("data", this.frozen), this.namespace = n, this) : this.namespace;
|
|
6213
6214
|
}
|
|
6214
6215
|
/**
|
|
6215
6216
|
* Freeze a processor.
|
|
@@ -6263,7 +6264,7 @@ class Rn extends Za {
|
|
|
6263
6264
|
parse(n) {
|
|
6264
6265
|
this.freeze();
|
|
6265
6266
|
const t = Ve(n), r = this.parser || this.Parser;
|
|
6266
|
-
return
|
|
6267
|
+
return un("parse", r), r(String(t), t);
|
|
6267
6268
|
}
|
|
6268
6269
|
/**
|
|
6269
6270
|
* Process the given file as configured on the processor.
|
|
@@ -6309,7 +6310,7 @@ class Rn extends Za {
|
|
|
6309
6310
|
*/
|
|
6310
6311
|
process(n, t) {
|
|
6311
6312
|
const r = this;
|
|
6312
|
-
return this.freeze(),
|
|
6313
|
+
return this.freeze(), un("process", this.parser || this.Parser), sn("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
|
|
6313
6314
|
function i(l, o) {
|
|
6314
6315
|
const a = Ve(n), u = (
|
|
6315
6316
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -6324,7 +6325,7 @@ class Rn extends Za {
|
|
|
6324
6325
|
/** @type {unknown} */
|
|
6325
6326
|
f
|
|
6326
6327
|
), y = r.stringify(p, d);
|
|
6327
|
-
|
|
6328
|
+
lu(y) ? d.value = y : d.result = y, c(
|
|
6328
6329
|
s,
|
|
6329
6330
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6330
6331
|
d
|
|
@@ -6368,9 +6369,9 @@ class Rn extends Za {
|
|
|
6368
6369
|
*/
|
|
6369
6370
|
processSync(n) {
|
|
6370
6371
|
let t = !1, r;
|
|
6371
|
-
return this.freeze(),
|
|
6372
|
+
return this.freeze(), un("processSync", this.parser || this.Parser), sn("processSync", this.compiler || this.Compiler), this.process(n, i), zt("processSync", "process", t), r;
|
|
6372
6373
|
function i(l, o) {
|
|
6373
|
-
t = !0,
|
|
6374
|
+
t = !0, bt(l), r = o;
|
|
6374
6375
|
}
|
|
6375
6376
|
}
|
|
6376
6377
|
/**
|
|
@@ -6412,7 +6413,7 @@ class Rn extends Za {
|
|
|
6412
6413
|
* transformed tree.
|
|
6413
6414
|
*/
|
|
6414
6415
|
run(n, t, r) {
|
|
6415
|
-
|
|
6416
|
+
At(n), this.freeze();
|
|
6416
6417
|
const i = this.transformers;
|
|
6417
6418
|
return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
|
|
6418
6419
|
function l(o, a) {
|
|
@@ -6446,9 +6447,9 @@ class Rn extends Za {
|
|
|
6446
6447
|
*/
|
|
6447
6448
|
runSync(n, t) {
|
|
6448
6449
|
let r = !1, i;
|
|
6449
|
-
return this.run(n, t, l),
|
|
6450
|
+
return this.run(n, t, l), zt("runSync", "run", r), i;
|
|
6450
6451
|
function l(o, a) {
|
|
6451
|
-
|
|
6452
|
+
bt(o), i = a, r = !0;
|
|
6452
6453
|
}
|
|
6453
6454
|
}
|
|
6454
6455
|
/**
|
|
@@ -6483,7 +6484,7 @@ class Rn extends Za {
|
|
|
6483
6484
|
stringify(n, t) {
|
|
6484
6485
|
this.freeze();
|
|
6485
6486
|
const r = Ve(t), i = this.compiler || this.Compiler;
|
|
6486
|
-
return
|
|
6487
|
+
return sn("stringify", i), At(n), i(n, r);
|
|
6487
6488
|
}
|
|
6488
6489
|
/**
|
|
6489
6490
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6544,7 +6545,7 @@ class Rn extends Za {
|
|
|
6544
6545
|
*/
|
|
6545
6546
|
use(n, ...t) {
|
|
6546
6547
|
const r = this.attachers, i = this.namespace;
|
|
6547
|
-
if (
|
|
6548
|
+
if (cn("use", this.frozen), n != null) if (typeof n == "function")
|
|
6548
6549
|
u(n, t);
|
|
6549
6550
|
else if (typeof n == "object")
|
|
6550
6551
|
Array.isArray(n) ? a(n) : o(n);
|
|
@@ -6571,7 +6572,7 @@ class Rn extends Za {
|
|
|
6571
6572
|
throw new Error(
|
|
6572
6573
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
6573
6574
|
);
|
|
6574
|
-
a(c.plugins), c.settings && (i.settings =
|
|
6575
|
+
a(c.plugins), c.settings && (i.settings = rn(!0, i.settings, c.settings));
|
|
6575
6576
|
}
|
|
6576
6577
|
function a(c) {
|
|
6577
6578
|
let s = -1;
|
|
@@ -6595,49 +6596,49 @@ class Rn extends Za {
|
|
|
6595
6596
|
else if (s.length > 0) {
|
|
6596
6597
|
let [p, ...y] = s;
|
|
6597
6598
|
const b = r[d][1];
|
|
6598
|
-
|
|
6599
|
+
bn(b) && bn(p) && (p = rn(!0, b, p)), r[d] = [c, p, ...y];
|
|
6599
6600
|
}
|
|
6600
6601
|
}
|
|
6601
6602
|
}
|
|
6602
6603
|
}
|
|
6603
|
-
const
|
|
6604
|
-
function
|
|
6604
|
+
const ru = new Fn().freeze();
|
|
6605
|
+
function un(e, n) {
|
|
6605
6606
|
if (typeof n != "function")
|
|
6606
6607
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
6607
6608
|
}
|
|
6608
|
-
function
|
|
6609
|
+
function sn(e, n) {
|
|
6609
6610
|
if (typeof n != "function")
|
|
6610
6611
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
6611
6612
|
}
|
|
6612
|
-
function
|
|
6613
|
+
function cn(e, n) {
|
|
6613
6614
|
if (n)
|
|
6614
6615
|
throw new Error(
|
|
6615
6616
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6616
6617
|
);
|
|
6617
6618
|
}
|
|
6618
|
-
function
|
|
6619
|
-
if (!
|
|
6619
|
+
function At(e) {
|
|
6620
|
+
if (!bn(e) || typeof e.type != "string")
|
|
6620
6621
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
6621
6622
|
}
|
|
6622
|
-
function
|
|
6623
|
+
function zt(e, n, t) {
|
|
6623
6624
|
if (!t)
|
|
6624
6625
|
throw new Error(
|
|
6625
6626
|
"`" + e + "` finished async. Use `" + n + "` instead"
|
|
6626
6627
|
);
|
|
6627
6628
|
}
|
|
6628
6629
|
function Ve(e) {
|
|
6629
|
-
return
|
|
6630
|
+
return iu(e) ? e : new mr(e);
|
|
6630
6631
|
}
|
|
6631
|
-
function
|
|
6632
|
+
function iu(e) {
|
|
6632
6633
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6633
6634
|
}
|
|
6634
|
-
function
|
|
6635
|
-
return typeof e == "string" ||
|
|
6635
|
+
function lu(e) {
|
|
6636
|
+
return typeof e == "string" || ou(e);
|
|
6636
6637
|
}
|
|
6637
|
-
function
|
|
6638
|
+
function ou(e) {
|
|
6638
6639
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6639
6640
|
}
|
|
6640
|
-
const
|
|
6641
|
+
const au = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Lt = [], Ot = { allowDangerousHtml: !0 }, uu = /^(https?|ircs?|mailto|xmpp)$/i, su = [
|
|
6641
6642
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
6642
6643
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
6643
6644
|
{
|
|
@@ -6670,22 +6671,22 @@ const lu = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
6670
6671
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
6671
6672
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
6672
6673
|
];
|
|
6673
|
-
function
|
|
6674
|
-
const n =
|
|
6675
|
-
return
|
|
6674
|
+
function yu(e) {
|
|
6675
|
+
const n = cu(e), t = pu(e);
|
|
6676
|
+
return fu(n.runSync(n.parse(t), t), e);
|
|
6676
6677
|
}
|
|
6677
|
-
function
|
|
6678
|
-
const n = e.rehypePlugins ||
|
|
6679
|
-
return
|
|
6678
|
+
function cu(e) {
|
|
6679
|
+
const n = e.rehypePlugins || Lt, t = e.remarkPlugins || Lt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ot } : Ot;
|
|
6680
|
+
return ru().use(Wo).use(t).use(ja, r).use(n);
|
|
6680
6681
|
}
|
|
6681
|
-
function
|
|
6682
|
-
const n = e.children || "", t = new
|
|
6682
|
+
function pu(e) {
|
|
6683
|
+
const n = e.children || "", t = new mr();
|
|
6683
6684
|
return typeof n == "string" && (t.value = n), t;
|
|
6684
6685
|
}
|
|
6685
|
-
function
|
|
6686
|
-
const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform ||
|
|
6687
|
-
for (const s of
|
|
6688
|
-
Object.hasOwn(n, s.from) && ("" + s.from + (s.to ? "use `" + s.to + "` instead" : "remove it") +
|
|
6686
|
+
function fu(e, n) {
|
|
6687
|
+
const t = n.allowedElements, r = n.allowElement, i = n.components, l = n.disallowedElements, o = n.skipHtml, a = n.unwrapDisallowed, u = n.urlTransform || hu;
|
|
6688
|
+
for (const s of su)
|
|
6689
|
+
Object.hasOwn(n, s.from) && ("" + s.from + (s.to ? "use `" + s.to + "` instead" : "remove it") + au + s.id, void 0);
|
|
6689
6690
|
return n.className && (e = {
|
|
6690
6691
|
type: "element",
|
|
6691
6692
|
tagName: "div",
|
|
@@ -6695,15 +6696,15 @@ function cu(e, n) {
|
|
|
6695
6696
|
/** @type {Array<ElementContent>} */
|
|
6696
6697
|
e.type === "root" ? e.children : [e]
|
|
6697
6698
|
)
|
|
6698
|
-
}),
|
|
6699
|
-
Fragment:
|
|
6699
|
+
}), fr(e, c), Ei(e, {
|
|
6700
|
+
Fragment: Tr,
|
|
6700
6701
|
// @ts-expect-error
|
|
6701
6702
|
// React components are allowed to return numbers,
|
|
6702
6703
|
// but not according to the types in hast-util-to-jsx-runtime
|
|
6703
6704
|
components: i,
|
|
6704
6705
|
ignoreInvalidStyle: !0,
|
|
6705
|
-
jsx:
|
|
6706
|
-
jsxs:
|
|
6706
|
+
jsx: Ir,
|
|
6707
|
+
jsxs: Er,
|
|
6707
6708
|
passKeys: !0,
|
|
6708
6709
|
passNode: !0
|
|
6709
6710
|
});
|
|
@@ -6712,9 +6713,9 @@ function cu(e, n) {
|
|
|
6712
6713
|
return o ? d.children.splice(f, 1) : d.children[f] = { type: "text", value: s.value }, f;
|
|
6713
6714
|
if (s.type === "element") {
|
|
6714
6715
|
let p;
|
|
6715
|
-
for (p in
|
|
6716
|
-
if (Object.hasOwn(
|
|
6717
|
-
const y = s.properties[p], b =
|
|
6716
|
+
for (p in en)
|
|
6717
|
+
if (Object.hasOwn(en, p) && Object.hasOwn(s.properties, p)) {
|
|
6718
|
+
const y = s.properties[p], b = en[p];
|
|
6718
6719
|
(b === null || b.includes(s.tagName)) && (s.properties[p] = u(String(y || ""), p, s));
|
|
6719
6720
|
}
|
|
6720
6721
|
}
|
|
@@ -6725,16 +6726,16 @@ function cu(e, n) {
|
|
|
6725
6726
|
}
|
|
6726
6727
|
}
|
|
6727
6728
|
}
|
|
6728
|
-
function
|
|
6729
|
+
function hu(e) {
|
|
6729
6730
|
const n = e.indexOf(":"), t = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
6730
6731
|
return (
|
|
6731
6732
|
// If there is no protocol, it’s relative.
|
|
6732
6733
|
n === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
6733
6734
|
i !== -1 && n > i || t !== -1 && n > t || r !== -1 && n > r || // It is a protocol, it should be allowed.
|
|
6734
|
-
|
|
6735
|
+
uu.test(e.slice(0, n)) ? e : ""
|
|
6735
6736
|
);
|
|
6736
6737
|
}
|
|
6737
6738
|
export {
|
|
6738
|
-
|
|
6739
|
-
|
|
6739
|
+
yu as default,
|
|
6740
|
+
hu as defaultUrlTransform
|
|
6740
6741
|
};
|