@caseparts-org/caseblocks 0.0.195 → 0.0.196
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/main-browser.d.ts +4 -6
- package/dist/main-browser.js +3 -5
- package/dist/molecules/Markdown/Markdown.d.ts +12 -0
- package/dist/{atoms → molecules}/Markdown/Markdown.js +776 -758
- package/dist/molecules/Markdown/Markdown.stories.js +148 -0
- package/dist/{atoms → molecules}/Markdown/usePreprocessedMarkdown.d.ts +1 -1
- package/dist/molecules/Markdown/usePreprocessedMarkdown.js +86 -0
- package/package.json +1 -1
- package/dist/atoms/Markdown/Markdown.d.ts +0 -7
- package/dist/atoms/Markdown/Markdown.stories.js +0 -139
- package/dist/atoms/Markdown/PreprocessedMarkdown.d.ts +0 -10
- package/dist/atoms/Markdown/PreprocessedMarkdown.js +0 -39
- package/dist/atoms/Markdown/PreprocessedMarkdown.stories.d.ts +0 -8
- package/dist/atoms/Markdown/PreprocessedMarkdown.stories.js +0 -73
- package/dist/atoms/Markdown/usePreprocessedMarkdown.js +0 -74
- package/dist/{atoms → molecules}/Markdown/Markdown.stories.d.ts +1 -1
- /package/dist/{atoms → molecules}/Markdown/remarkAdmonition.d.ts +0 -0
- /package/dist/{atoms → molecules}/Markdown/remarkAdmonition.js +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsxs as Ci, jsx as
|
|
1
|
+
import { jsxs as Ci, jsx as je, Fragment as Ei } from "react/jsx-runtime";
|
|
2
2
|
import { remarkAdmonition as Ii } from "./remarkAdmonition.js";
|
|
3
|
-
import { Admonition as Ai } from "
|
|
3
|
+
import { Admonition as Ai } from "../Admonition/Admonition.js";
|
|
4
|
+
import { usePreprocessedMarkdown as Ti } from "./usePreprocessedMarkdown.js";
|
|
4
5
|
import "react";
|
|
5
6
|
import '../../assets/Markdown.css';var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6
7
|
function ar(e) {
|
|
7
8
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
+
function Pi(e, t) {
|
|
10
11
|
const n = {};
|
|
11
12
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join(
|
|
12
13
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
13
14
|
).trim();
|
|
14
15
|
}
|
|
15
|
-
const
|
|
16
|
+
const vi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, zi = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Di = {};
|
|
16
17
|
function ft(e, t) {
|
|
17
|
-
return (
|
|
18
|
+
return (Di.jsx ? zi : vi).test(e);
|
|
18
19
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
20
|
+
const Li = /[ \t\n\f\r]/g;
|
|
21
|
+
function Fi(e) {
|
|
21
22
|
return typeof e == "object" ? e.type === "text" ? ht(e.value) : !1 : ht(e);
|
|
22
23
|
}
|
|
23
24
|
function ht(e) {
|
|
24
|
-
return e.replace(
|
|
25
|
+
return e.replace(Li, "") === "";
|
|
25
26
|
}
|
|
26
|
-
class
|
|
27
|
+
class We {
|
|
27
28
|
/**
|
|
28
29
|
* @param {SchemaType['property']} property
|
|
29
30
|
* Property.
|
|
@@ -38,14 +39,14 @@ class qe {
|
|
|
38
39
|
this.normal = n, this.property = t, r && (this.space = r);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
We.prototype.normal = {};
|
|
43
|
+
We.prototype.property = {};
|
|
44
|
+
We.prototype.space = void 0;
|
|
44
45
|
function ur(e, t) {
|
|
45
46
|
const n = {}, r = {};
|
|
46
47
|
for (const i of e)
|
|
47
48
|
Object.assign(n, i.property), Object.assign(r, i.normal);
|
|
48
|
-
return new
|
|
49
|
+
return new We(n, r, t);
|
|
49
50
|
}
|
|
50
51
|
function vn(e) {
|
|
51
52
|
return e.toLowerCase();
|
|
@@ -75,10 +76,10 @@ ee.prototype.overloadedBoolean = !1;
|
|
|
75
76
|
ee.prototype.property = "";
|
|
76
77
|
ee.prototype.spaceSeparated = !1;
|
|
77
78
|
ee.prototype.space = void 0;
|
|
78
|
-
let
|
|
79
|
+
let _i = 0;
|
|
79
80
|
const D = Ie(), W = Ie(), zn = Ie(), S = Ie(), V = Ie(), De = Ie(), te = Ie();
|
|
80
81
|
function Ie() {
|
|
81
|
-
return 2 ** ++
|
|
82
|
+
return 2 ** ++_i;
|
|
82
83
|
}
|
|
83
84
|
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
84
85
|
__proto__: null,
|
|
@@ -131,7 +132,7 @@ function Fe(e) {
|
|
|
131
132
|
);
|
|
132
133
|
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[vn(r)] = r, n[vn(o.attribute)] = r;
|
|
133
134
|
}
|
|
134
|
-
return new
|
|
135
|
+
return new We(t, n, e.space);
|
|
135
136
|
}
|
|
136
137
|
const sr = Fe({
|
|
137
138
|
properties: {
|
|
@@ -195,7 +196,7 @@ function cr(e, t) {
|
|
|
195
196
|
function fr(e, t) {
|
|
196
197
|
return cr(e, t.toLowerCase());
|
|
197
198
|
}
|
|
198
|
-
const
|
|
199
|
+
const Ri = Fe({
|
|
199
200
|
attributes: {
|
|
200
201
|
acceptcharset: "accept-charset",
|
|
201
202
|
classname: "class",
|
|
@@ -556,7 +557,7 @@ const _i = Fe({
|
|
|
556
557
|
},
|
|
557
558
|
space: "html",
|
|
558
559
|
transform: fr
|
|
559
|
-
}),
|
|
560
|
+
}), Oi = Fe({
|
|
560
561
|
attributes: {
|
|
561
562
|
accentHeight: "accent-height",
|
|
562
563
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1140,7 +1141,7 @@ const _i = Fe({
|
|
|
1140
1141
|
transform(e, t) {
|
|
1141
1142
|
return "xml:" + t.slice(3).toLowerCase();
|
|
1142
1143
|
}
|
|
1143
|
-
}),
|
|
1144
|
+
}), Mi = {
|
|
1144
1145
|
classId: "classID",
|
|
1145
1146
|
dataType: "datatype",
|
|
1146
1147
|
itemId: "itemID",
|
|
@@ -1158,20 +1159,20 @@ const _i = Fe({
|
|
|
1158
1159
|
xLinkTitle: "xlinkTitle",
|
|
1159
1160
|
xLinkType: "xlinkType",
|
|
1160
1161
|
xmlnsXLink: "xmlnsXlink"
|
|
1161
|
-
},
|
|
1162
|
-
function
|
|
1162
|
+
}, Ni = /[A-Z]/g, mt = /-[a-z]/g, Bi = /^data[-\w.:]+$/i;
|
|
1163
|
+
function ji(e, t) {
|
|
1163
1164
|
const n = vn(t);
|
|
1164
1165
|
let r = t, i = ee;
|
|
1165
1166
|
if (n in e.normal)
|
|
1166
1167
|
return e.property[e.normal[n]];
|
|
1167
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
1168
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Bi.test(t)) {
|
|
1168
1169
|
if (t.charAt(4) === "-") {
|
|
1169
|
-
const o = t.slice(5).replace(mt,
|
|
1170
|
+
const o = t.slice(5).replace(mt, Ui);
|
|
1170
1171
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
1171
1172
|
} else {
|
|
1172
1173
|
const o = t.slice(4);
|
|
1173
1174
|
if (!mt.test(o)) {
|
|
1174
|
-
let l = o.replace(
|
|
1175
|
+
let l = o.replace(Ni, Hi);
|
|
1175
1176
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
1176
1177
|
}
|
|
1177
1178
|
}
|
|
@@ -1179,28 +1180,28 @@ function Bi(e, t) {
|
|
|
1179
1180
|
}
|
|
1180
1181
|
return new i(r, t);
|
|
1181
1182
|
}
|
|
1182
|
-
function
|
|
1183
|
+
function Hi(e) {
|
|
1183
1184
|
return "-" + e.toLowerCase();
|
|
1184
1185
|
}
|
|
1185
|
-
function
|
|
1186
|
+
function Ui(e) {
|
|
1186
1187
|
return e.charAt(1).toUpperCase();
|
|
1187
1188
|
}
|
|
1188
|
-
const
|
|
1189
|
-
function
|
|
1189
|
+
const Vi = ur([sr, Ri, hr, pr, mr], "html"), Un = ur([sr, Oi, hr, pr, mr], "svg");
|
|
1190
|
+
function $i(e) {
|
|
1190
1191
|
return e.join(" ").trim();
|
|
1191
1192
|
}
|
|
1192
|
-
var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,
|
|
1193
|
-
`, dt = "/", yt = "*", Ce = "",
|
|
1194
|
-
function
|
|
1193
|
+
var Vn = {}, gt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, qi = /\n/g, Wi = /^\s*/, Yi = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Xi = /^:\s*/, Qi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Gi = /^[;\s]*/, Ki = /^\s+|\s+$/g, Ji = `
|
|
1194
|
+
`, dt = "/", yt = "*", Ce = "", Zi = "comment", el = "declaration";
|
|
1195
|
+
function nl(e, t) {
|
|
1195
1196
|
if (typeof e != "string")
|
|
1196
1197
|
throw new TypeError("First argument must be a string");
|
|
1197
1198
|
if (!e) return [];
|
|
1198
1199
|
t = t || {};
|
|
1199
1200
|
var n = 1, r = 1;
|
|
1200
1201
|
function i(d) {
|
|
1201
|
-
var x = d.match(
|
|
1202
|
+
var x = d.match(qi);
|
|
1202
1203
|
x && (n += x.length);
|
|
1203
|
-
var C = d.lastIndexOf(
|
|
1204
|
+
var C = d.lastIndexOf(Ji);
|
|
1204
1205
|
r = ~C ? d.length - C : r + d.length;
|
|
1205
1206
|
}
|
|
1206
1207
|
function o() {
|
|
@@ -1227,7 +1228,7 @@ function el(e, t) {
|
|
|
1227
1228
|
}
|
|
1228
1229
|
}
|
|
1229
1230
|
function s() {
|
|
1230
|
-
u(
|
|
1231
|
+
u(Wi);
|
|
1231
1232
|
}
|
|
1232
1233
|
function f(d) {
|
|
1233
1234
|
var x;
|
|
@@ -1244,21 +1245,21 @@ function el(e, t) {
|
|
|
1244
1245
|
return a("End of comment missing");
|
|
1245
1246
|
var C = e.slice(2, x - 2);
|
|
1246
1247
|
return r += 2, i(C), e = e.slice(x), r += 2, d({
|
|
1247
|
-
type:
|
|
1248
|
+
type: Zi,
|
|
1248
1249
|
comment: C
|
|
1249
1250
|
});
|
|
1250
1251
|
}
|
|
1251
1252
|
}
|
|
1252
1253
|
function p() {
|
|
1253
|
-
var d = o(), x = u(
|
|
1254
|
+
var d = o(), x = u(Yi);
|
|
1254
1255
|
if (x) {
|
|
1255
|
-
if (c(), !u(
|
|
1256
|
-
var C = u(
|
|
1257
|
-
type:
|
|
1256
|
+
if (c(), !u(Xi)) return a("property missing ':'");
|
|
1257
|
+
var C = u(Qi), y = d({
|
|
1258
|
+
type: el,
|
|
1258
1259
|
property: kt(x[0].replace(gt, Ce)),
|
|
1259
1260
|
value: C ? kt(C[0].replace(gt, Ce)) : Ce
|
|
1260
1261
|
});
|
|
1261
|
-
return u(
|
|
1262
|
+
return u(Gi), y;
|
|
1262
1263
|
}
|
|
1263
1264
|
}
|
|
1264
1265
|
function h() {
|
|
@@ -1271,19 +1272,19 @@ function el(e, t) {
|
|
|
1271
1272
|
return s(), h();
|
|
1272
1273
|
}
|
|
1273
1274
|
function kt(e) {
|
|
1274
|
-
return e ? e.replace(
|
|
1275
|
+
return e ? e.replace(Ki, Ce) : Ce;
|
|
1275
1276
|
}
|
|
1276
|
-
var
|
|
1277
|
+
var tl = nl, rl = tn && tn.__importDefault || function(e) {
|
|
1277
1278
|
return e && e.__esModule ? e : { default: e };
|
|
1278
1279
|
};
|
|
1279
1280
|
Object.defineProperty(Vn, "__esModule", { value: !0 });
|
|
1280
|
-
Vn.default =
|
|
1281
|
-
const
|
|
1282
|
-
function
|
|
1281
|
+
Vn.default = ll;
|
|
1282
|
+
const il = rl(tl);
|
|
1283
|
+
function ll(e, t) {
|
|
1283
1284
|
let n = null;
|
|
1284
1285
|
if (!e || typeof e != "string")
|
|
1285
1286
|
return n;
|
|
1286
|
-
const r = (0,
|
|
1287
|
+
const r = (0, il.default)(e), i = typeof t == "function";
|
|
1287
1288
|
return r.forEach((o) => {
|
|
1288
1289
|
if (o.type !== "declaration")
|
|
1289
1290
|
return;
|
|
@@ -1294,28 +1295,28 @@ function il(e, t) {
|
|
|
1294
1295
|
var un = {};
|
|
1295
1296
|
Object.defineProperty(un, "__esModule", { value: !0 });
|
|
1296
1297
|
un.camelCase = void 0;
|
|
1297
|
-
var
|
|
1298
|
-
return !e ||
|
|
1299
|
-
},
|
|
1298
|
+
var ol = /^--[a-zA-Z0-9_-]+$/, al = /-([a-z])/g, ul = /^[^-]+$/, sl = /^-(webkit|moz|ms|o|khtml)-/, cl = /^-(ms)-/, fl = function(e) {
|
|
1299
|
+
return !e || ul.test(e) || ol.test(e);
|
|
1300
|
+
}, hl = function(e, t) {
|
|
1300
1301
|
return t.toUpperCase();
|
|
1301
1302
|
}, xt = function(e, t) {
|
|
1302
1303
|
return "".concat(t, "-");
|
|
1303
|
-
},
|
|
1304
|
-
return t === void 0 && (t = {}),
|
|
1304
|
+
}, pl = function(e, t) {
|
|
1305
|
+
return t === void 0 && (t = {}), fl(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(cl, xt) : e = e.replace(sl, xt), e.replace(al, hl));
|
|
1305
1306
|
};
|
|
1306
|
-
un.camelCase =
|
|
1307
|
-
var
|
|
1307
|
+
un.camelCase = pl;
|
|
1308
|
+
var ml = tn && tn.__importDefault || function(e) {
|
|
1308
1309
|
return e && e.__esModule ? e : { default: e };
|
|
1309
|
-
},
|
|
1310
|
+
}, gl = ml(Vn), dl = un;
|
|
1310
1311
|
function Ln(e, t) {
|
|
1311
1312
|
var n = {};
|
|
1312
|
-
return !e || typeof e != "string" || (0,
|
|
1313
|
-
r && i && (n[(0,
|
|
1313
|
+
return !e || typeof e != "string" || (0, gl.default)(e, function(r, i) {
|
|
1314
|
+
r && i && (n[(0, dl.camelCase)(r, t)] = i);
|
|
1314
1315
|
}), n;
|
|
1315
1316
|
}
|
|
1316
1317
|
Ln.default = Ln;
|
|
1317
|
-
var
|
|
1318
|
-
const
|
|
1318
|
+
var yl = Ln;
|
|
1319
|
+
const kl = /* @__PURE__ */ ar(yl), gr = dr("end"), $n = dr("start");
|
|
1319
1320
|
function dr(e) {
|
|
1320
1321
|
return t;
|
|
1321
1322
|
function t(n) {
|
|
@@ -1328,12 +1329,12 @@ function dr(e) {
|
|
|
1328
1329
|
};
|
|
1329
1330
|
}
|
|
1330
1331
|
}
|
|
1331
|
-
function
|
|
1332
|
+
function xl(e) {
|
|
1332
1333
|
const t = $n(e), n = gr(e);
|
|
1333
1334
|
if (t && n)
|
|
1334
1335
|
return { start: t, end: n };
|
|
1335
1336
|
}
|
|
1336
|
-
function
|
|
1337
|
+
function He(e) {
|
|
1337
1338
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? bt(e.position) : "start" in e || "end" in e ? bt(e) : "line" in e || "column" in e ? Fn(e) : "";
|
|
1338
1339
|
}
|
|
1339
1340
|
function Fn(e) {
|
|
@@ -1416,7 +1417,7 @@ class K extends Error {
|
|
|
1416
1417
|
u && (o.place = u.position);
|
|
1417
1418
|
}
|
|
1418
1419
|
const a = o.place && "start" in o.place ? o.place.start : o.place;
|
|
1419
|
-
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name =
|
|
1420
|
+
this.ancestors = o.ancestors || void 0, this.cause = o.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = He(o.place) || "1:1", this.place = o.place || void 0, this.reason = this.message, this.ruleId = o.ruleId || void 0, this.source = o.source || void 0, this.stack = l && o.cause && typeof o.cause.stack == "string" ? o.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
1420
1421
|
}
|
|
1421
1422
|
}
|
|
1422
1423
|
K.prototype.file = "";
|
|
@@ -1432,8 +1433,8 @@ K.prototype.fatal = void 0;
|
|
|
1432
1433
|
K.prototype.place = void 0;
|
|
1433
1434
|
K.prototype.ruleId = void 0;
|
|
1434
1435
|
K.prototype.source = void 0;
|
|
1435
|
-
const qn = {}.hasOwnProperty,
|
|
1436
|
-
function
|
|
1436
|
+
const qn = {}.hasOwnProperty, bl = /* @__PURE__ */ new Map(), wl = /[A-Z]/g, Sl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Cl = /* @__PURE__ */ new Set(["td", "th"]), yr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1437
|
+
function El(e, t) {
|
|
1437
1438
|
if (!t || t.Fragment === void 0)
|
|
1438
1439
|
throw new TypeError("Expected `Fragment` in options");
|
|
1439
1440
|
const n = t.filePath || void 0;
|
|
@@ -1443,13 +1444,13 @@ function Cl(e, t) {
|
|
|
1443
1444
|
throw new TypeError(
|
|
1444
1445
|
"Expected `jsxDEV` in options when `development: true`"
|
|
1445
1446
|
);
|
|
1446
|
-
r =
|
|
1447
|
+
r = Ll(n, t.jsxDEV);
|
|
1447
1448
|
} else {
|
|
1448
1449
|
if (typeof t.jsx != "function")
|
|
1449
1450
|
throw new TypeError("Expected `jsx` in production options");
|
|
1450
1451
|
if (typeof t.jsxs != "function")
|
|
1451
1452
|
throw new TypeError("Expected `jsxs` in production options");
|
|
1452
|
-
r =
|
|
1453
|
+
r = Dl(n, t.jsx, t.jsxs);
|
|
1453
1454
|
}
|
|
1454
1455
|
const i = {
|
|
1455
1456
|
Fragment: t.Fragment,
|
|
@@ -1462,7 +1463,7 @@ function Cl(e, t) {
|
|
|
1462
1463
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1463
1464
|
passKeys: t.passKeys !== !1,
|
|
1464
1465
|
passNode: t.passNode || !1,
|
|
1465
|
-
schema: t.space === "svg" ? Un :
|
|
1466
|
+
schema: t.space === "svg" ? Un : Vi,
|
|
1466
1467
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1467
1468
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1468
1469
|
}, o = kr(i, e, void 0);
|
|
@@ -1475,56 +1476,56 @@ function Cl(e, t) {
|
|
|
1475
1476
|
}
|
|
1476
1477
|
function kr(e, t, n) {
|
|
1477
1478
|
if (t.type === "element")
|
|
1478
|
-
return
|
|
1479
|
+
return Il(e, t, n);
|
|
1479
1480
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
|
1480
|
-
return
|
|
1481
|
+
return Al(e, t);
|
|
1481
1482
|
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
|
|
1482
|
-
return
|
|
1483
|
+
return Pl(e, t, n);
|
|
1483
1484
|
if (t.type === "mdxjsEsm")
|
|
1484
|
-
return
|
|
1485
|
+
return Tl(e, t);
|
|
1485
1486
|
if (t.type === "root")
|
|
1486
|
-
return
|
|
1487
|
+
return vl(e, t, n);
|
|
1487
1488
|
if (t.type === "text")
|
|
1488
|
-
return
|
|
1489
|
+
return zl(e, t);
|
|
1489
1490
|
}
|
|
1490
|
-
function
|
|
1491
|
+
function Il(e, t, n) {
|
|
1491
1492
|
const r = e.schema;
|
|
1492
1493
|
let i = r;
|
|
1493
1494
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1494
|
-
const o = br(e, t.tagName, !1), l =
|
|
1495
|
+
const o = br(e, t.tagName, !1), l = Fl(e, t);
|
|
1495
1496
|
let a = Yn(e, t);
|
|
1496
|
-
return
|
|
1497
|
-
return typeof u == "string" ? !
|
|
1497
|
+
return Sl.has(t.tagName) && (a = a.filter(function(u) {
|
|
1498
|
+
return typeof u == "string" ? !Fi(u) : !0;
|
|
1498
1499
|
})), xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1499
1500
|
}
|
|
1500
|
-
function
|
|
1501
|
+
function Al(e, t) {
|
|
1501
1502
|
if (t.data && t.data.estree && e.evaluater) {
|
|
1502
1503
|
const r = t.data.estree.body[0];
|
|
1503
1504
|
return r.type, /** @type {Child | undefined} */
|
|
1504
1505
|
e.evaluater.evaluateExpression(r.expression);
|
|
1505
1506
|
}
|
|
1506
|
-
|
|
1507
|
+
$e(e, t.position);
|
|
1507
1508
|
}
|
|
1508
|
-
function
|
|
1509
|
+
function Tl(e, t) {
|
|
1509
1510
|
if (t.data && t.data.estree && e.evaluater)
|
|
1510
1511
|
return (
|
|
1511
1512
|
/** @type {Child | undefined} */
|
|
1512
1513
|
e.evaluater.evaluateProgram(t.data.estree)
|
|
1513
1514
|
);
|
|
1514
|
-
|
|
1515
|
+
$e(e, t.position);
|
|
1515
1516
|
}
|
|
1516
|
-
function
|
|
1517
|
+
function Pl(e, t, n) {
|
|
1517
1518
|
const r = e.schema;
|
|
1518
1519
|
let i = r;
|
|
1519
1520
|
t.name === "svg" && r.space === "html" && (i = Un, e.schema = i), e.ancestors.push(t);
|
|
1520
|
-
const o = t.name === null ? e.Fragment : br(e, t.name, !0), l =
|
|
1521
|
+
const o = t.name === null ? e.Fragment : br(e, t.name, !0), l = _l(e, t), a = Yn(e, t);
|
|
1521
1522
|
return xr(e, l, o, t), Wn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1522
1523
|
}
|
|
1523
|
-
function
|
|
1524
|
+
function vl(e, t, n) {
|
|
1524
1525
|
const r = {};
|
|
1525
1526
|
return Wn(r, Yn(e, t)), e.create(t, e.Fragment, r, n);
|
|
1526
1527
|
}
|
|
1527
|
-
function
|
|
1528
|
+
function zl(e, t) {
|
|
1528
1529
|
return t.value;
|
|
1529
1530
|
}
|
|
1530
1531
|
function xr(e, t, n, r) {
|
|
@@ -1536,14 +1537,14 @@ function Wn(e, t) {
|
|
|
1536
1537
|
n && (e.children = n);
|
|
1537
1538
|
}
|
|
1538
1539
|
}
|
|
1539
|
-
function
|
|
1540
|
+
function Dl(e, t, n) {
|
|
1540
1541
|
return r;
|
|
1541
1542
|
function r(i, o, l, a) {
|
|
1542
1543
|
const s = Array.isArray(l.children) ? n : t;
|
|
1543
1544
|
return a ? s(o, l, a) : s(o, l);
|
|
1544
1545
|
}
|
|
1545
1546
|
}
|
|
1546
|
-
function
|
|
1547
|
+
function Ll(e, t) {
|
|
1547
1548
|
return n;
|
|
1548
1549
|
function n(r, i, o, l) {
|
|
1549
1550
|
const a = Array.isArray(o.children), u = $n(r);
|
|
@@ -1561,15 +1562,15 @@ function Dl(e, t) {
|
|
|
1561
1562
|
);
|
|
1562
1563
|
}
|
|
1563
1564
|
}
|
|
1564
|
-
function
|
|
1565
|
+
function Fl(e, t) {
|
|
1565
1566
|
const n = {};
|
|
1566
1567
|
let r, i;
|
|
1567
1568
|
for (i in t.properties)
|
|
1568
1569
|
if (i !== "children" && qn.call(t.properties, i)) {
|
|
1569
|
-
const o =
|
|
1570
|
+
const o = Rl(e, i, t.properties[i]);
|
|
1570
1571
|
if (o) {
|
|
1571
1572
|
const [l, a] = o;
|
|
1572
|
-
e.tableCellAlignToStyle && l === "align" && typeof a == "string" &&
|
|
1573
|
+
e.tableCellAlignToStyle && l === "align" && typeof a == "string" && Cl.has(t.tagName) ? r = a : n[l] = a;
|
|
1573
1574
|
}
|
|
1574
1575
|
}
|
|
1575
1576
|
if (r) {
|
|
@@ -1581,7 +1582,7 @@ function Ll(e, t) {
|
|
|
1581
1582
|
}
|
|
1582
1583
|
return n;
|
|
1583
1584
|
}
|
|
1584
|
-
function
|
|
1585
|
+
function _l(e, t) {
|
|
1585
1586
|
const n = {};
|
|
1586
1587
|
for (const r of t.attributes)
|
|
1587
1588
|
if (r.type === "mdxJsxExpressionAttribute")
|
|
@@ -1596,7 +1597,7 @@ function Fl(e, t) {
|
|
|
1596
1597
|
e.evaluater.evaluateExpression(a.argument)
|
|
1597
1598
|
);
|
|
1598
1599
|
} else
|
|
1599
|
-
|
|
1600
|
+
$e(e, t.position);
|
|
1600
1601
|
else {
|
|
1601
1602
|
const i = r.name;
|
|
1602
1603
|
let o;
|
|
@@ -1605,7 +1606,7 @@ function Fl(e, t) {
|
|
|
1605
1606
|
const a = r.value.data.estree.body[0];
|
|
1606
1607
|
a.type, o = e.evaluater.evaluateExpression(a.expression);
|
|
1607
1608
|
} else
|
|
1608
|
-
|
|
1609
|
+
$e(e, t.position);
|
|
1609
1610
|
else
|
|
1610
1611
|
o = r.value === null ? !0 : r.value;
|
|
1611
1612
|
n[i] = /** @type {Props[keyof Props]} */
|
|
@@ -1616,7 +1617,7 @@ function Fl(e, t) {
|
|
|
1616
1617
|
function Yn(e, t) {
|
|
1617
1618
|
const n = [];
|
|
1618
1619
|
let r = -1;
|
|
1619
|
-
const i = e.passKeys ? /* @__PURE__ */ new Map() :
|
|
1620
|
+
const i = e.passKeys ? /* @__PURE__ */ new Map() : bl;
|
|
1620
1621
|
for (; ++r < t.children.length; ) {
|
|
1621
1622
|
const o = t.children[r];
|
|
1622
1623
|
let l;
|
|
@@ -1632,22 +1633,22 @@ function Yn(e, t) {
|
|
|
1632
1633
|
}
|
|
1633
1634
|
return n;
|
|
1634
1635
|
}
|
|
1635
|
-
function
|
|
1636
|
-
const r =
|
|
1636
|
+
function Rl(e, t, n) {
|
|
1637
|
+
const r = ji(e.schema, t);
|
|
1637
1638
|
if (!(n == null || typeof n == "number" && Number.isNaN(n))) {
|
|
1638
|
-
if (Array.isArray(n) && (n = r.commaSeparated ?
|
|
1639
|
-
let i = typeof n == "object" ? n :
|
|
1640
|
-
return e.stylePropertyNameCase === "css" && (i =
|
|
1639
|
+
if (Array.isArray(n) && (n = r.commaSeparated ? Pi(n) : $i(n)), r.property === "style") {
|
|
1640
|
+
let i = typeof n == "object" ? n : Ol(e, String(n));
|
|
1641
|
+
return e.stylePropertyNameCase === "css" && (i = Ml(i)), ["style", i];
|
|
1641
1642
|
}
|
|
1642
1643
|
return [
|
|
1643
|
-
e.elementAttributeNameCase === "react" && r.space ?
|
|
1644
|
+
e.elementAttributeNameCase === "react" && r.space ? Mi[r.property] || r.property : r.attribute,
|
|
1644
1645
|
n
|
|
1645
1646
|
];
|
|
1646
1647
|
}
|
|
1647
1648
|
}
|
|
1648
|
-
function
|
|
1649
|
+
function Ol(e, t) {
|
|
1649
1650
|
try {
|
|
1650
|
-
return
|
|
1651
|
+
return kl(t, { reactCompat: !0 });
|
|
1651
1652
|
} catch (n) {
|
|
1652
1653
|
if (e.ignoreInvalidStyle)
|
|
1653
1654
|
return {};
|
|
@@ -1692,9 +1693,9 @@ function br(e, t, n) {
|
|
|
1692
1693
|
}
|
|
1693
1694
|
if (e.evaluater)
|
|
1694
1695
|
return e.evaluater.evaluateExpression(r);
|
|
1695
|
-
|
|
1696
|
+
$e(e);
|
|
1696
1697
|
}
|
|
1697
|
-
function
|
|
1698
|
+
function $e(e, t) {
|
|
1698
1699
|
const n = new K(
|
|
1699
1700
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
1700
1701
|
{
|
|
@@ -1706,18 +1707,18 @@ function Ve(e, t) {
|
|
|
1706
1707
|
);
|
|
1707
1708
|
throw n.file = e.filePath || void 0, n.url = yr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1708
1709
|
}
|
|
1709
|
-
function
|
|
1710
|
+
function Ml(e) {
|
|
1710
1711
|
const t = {};
|
|
1711
1712
|
let n;
|
|
1712
1713
|
for (n in e)
|
|
1713
|
-
qn.call(e, n) && (t[
|
|
1714
|
+
qn.call(e, n) && (t[Nl(n)] = e[n]);
|
|
1714
1715
|
return t;
|
|
1715
1716
|
}
|
|
1716
|
-
function
|
|
1717
|
-
let t = e.replace(
|
|
1717
|
+
function Nl(e) {
|
|
1718
|
+
let t = e.replace(wl, Bl);
|
|
1718
1719
|
return t.slice(0, 3) === "ms-" && (t = "-" + t), t;
|
|
1719
1720
|
}
|
|
1720
|
-
function
|
|
1721
|
+
function Bl(e) {
|
|
1721
1722
|
return "-" + e.toLowerCase();
|
|
1722
1723
|
}
|
|
1723
1724
|
const gn = {
|
|
@@ -1742,13 +1743,13 @@ const gn = {
|
|
|
1742
1743
|
"track",
|
|
1743
1744
|
"video"
|
|
1744
1745
|
]
|
|
1745
|
-
},
|
|
1746
|
+
}, jl = {};
|
|
1746
1747
|
function Xn(e, t) {
|
|
1747
|
-
const n =
|
|
1748
|
+
const n = jl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
1748
1749
|
return wr(e, r, i);
|
|
1749
1750
|
}
|
|
1750
1751
|
function wr(e, t, n) {
|
|
1751
|
-
if (
|
|
1752
|
+
if (Hl(e)) {
|
|
1752
1753
|
if ("value" in e)
|
|
1753
1754
|
return e.type === "html" && !n ? "" : e.value;
|
|
1754
1755
|
if (t && "alt" in e && e.alt)
|
|
@@ -1765,7 +1766,7 @@ function St(e, t, n) {
|
|
|
1765
1766
|
r[i] = wr(e[i], t, n);
|
|
1766
1767
|
return r.join("");
|
|
1767
1768
|
}
|
|
1768
|
-
function
|
|
1769
|
+
function Hl(e) {
|
|
1769
1770
|
return !!(e && typeof e == "object");
|
|
1770
1771
|
}
|
|
1771
1772
|
const Ct = document.createElement("i");
|
|
@@ -1792,10 +1793,10 @@ function Sr(e) {
|
|
|
1792
1793
|
const t = {};
|
|
1793
1794
|
let n = -1;
|
|
1794
1795
|
for (; ++n < e.length; )
|
|
1795
|
-
|
|
1796
|
+
Ul(t, e[n]);
|
|
1796
1797
|
return t;
|
|
1797
1798
|
}
|
|
1798
|
-
function
|
|
1799
|
+
function Ul(e, t) {
|
|
1799
1800
|
let n;
|
|
1800
1801
|
for (n in t) {
|
|
1801
1802
|
const i = (Et.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
@@ -1804,7 +1805,7 @@ function Hl(e, t) {
|
|
|
1804
1805
|
for (l in o) {
|
|
1805
1806
|
Et.call(i, l) || (i[l] = []);
|
|
1806
1807
|
const a = o[l];
|
|
1807
|
-
|
|
1808
|
+
Vl(
|
|
1808
1809
|
// @ts-expect-error Looks like a list.
|
|
1809
1810
|
i[l],
|
|
1810
1811
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -1812,7 +1813,7 @@ function Hl(e, t) {
|
|
|
1812
1813
|
}
|
|
1813
1814
|
}
|
|
1814
1815
|
}
|
|
1815
|
-
function
|
|
1816
|
+
function Vl(e, t) {
|
|
1816
1817
|
let n = -1;
|
|
1817
1818
|
const r = [];
|
|
1818
1819
|
for (; ++n < t.length; )
|
|
@@ -1835,7 +1836,7 @@ function Cr(e, t) {
|
|
|
1835
1836
|
function se(e) {
|
|
1836
1837
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1837
1838
|
}
|
|
1838
|
-
const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/),
|
|
1839
|
+
const J = xe(/[A-Za-z]/), G = xe(/[\dA-Za-z]/), $l = xe(/[#-'*+\--9=?A-Z^-~]/);
|
|
1839
1840
|
function rn(e) {
|
|
1840
1841
|
return (
|
|
1841
1842
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -1843,7 +1844,7 @@ function rn(e) {
|
|
|
1843
1844
|
e !== null && (e < 32 || e === 127)
|
|
1844
1845
|
);
|
|
1845
1846
|
}
|
|
1846
|
-
const _n = xe(/\d/),
|
|
1847
|
+
const _n = xe(/\d/), ql = xe(/[\dA-Fa-f]/), Wl = xe(/[!-/:-@[-`{-~]/);
|
|
1847
1848
|
function v(e) {
|
|
1848
1849
|
return e !== null && e < -2;
|
|
1849
1850
|
}
|
|
@@ -1890,10 +1891,10 @@ function O(e, t, n, r) {
|
|
|
1890
1891
|
return _(u) && o++ < i ? (e.consume(u), a) : (e.exit(n), t(u));
|
|
1891
1892
|
}
|
|
1892
1893
|
}
|
|
1893
|
-
const
|
|
1894
|
-
tokenize:
|
|
1894
|
+
const Yl = {
|
|
1895
|
+
tokenize: Xl
|
|
1895
1896
|
};
|
|
1896
|
-
function
|
|
1897
|
+
function Xl(e) {
|
|
1897
1898
|
const t = e.attempt(this.parser.constructs.contentInitial, r, i);
|
|
1898
1899
|
let n;
|
|
1899
1900
|
return t;
|
|
@@ -1922,12 +1923,12 @@ function Yl(e) {
|
|
|
1922
1923
|
return v(a) ? (e.consume(a), e.exit("chunkText"), o) : (e.consume(a), l);
|
|
1923
1924
|
}
|
|
1924
1925
|
}
|
|
1925
|
-
const
|
|
1926
|
-
tokenize: Ql
|
|
1927
|
-
}, It = {
|
|
1926
|
+
const Ql = {
|
|
1928
1927
|
tokenize: Gl
|
|
1928
|
+
}, It = {
|
|
1929
|
+
tokenize: Kl
|
|
1929
1930
|
};
|
|
1930
|
-
function
|
|
1931
|
+
function Gl(e) {
|
|
1931
1932
|
const t = this, n = [];
|
|
1932
1933
|
let r = 0, i, o, l;
|
|
1933
1934
|
return a;
|
|
@@ -2039,7 +2040,7 @@ function Ql(e) {
|
|
|
2039
2040
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
2040
2041
|
}
|
|
2041
2042
|
}
|
|
2042
|
-
function
|
|
2043
|
+
function Kl(e, t, n) {
|
|
2043
2044
|
return O(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2044
2045
|
}
|
|
2045
2046
|
function Le(e) {
|
|
@@ -2059,10 +2060,10 @@ function cn(e, t, n) {
|
|
|
2059
2060
|
}
|
|
2060
2061
|
const Rn = {
|
|
2061
2062
|
name: "attention",
|
|
2062
|
-
resolveAll:
|
|
2063
|
-
tokenize:
|
|
2063
|
+
resolveAll: Jl,
|
|
2064
|
+
tokenize: Zl
|
|
2064
2065
|
};
|
|
2065
|
-
function
|
|
2066
|
+
function Jl(e, t) {
|
|
2066
2067
|
let n = -1, r, i, o, l, a, u, s, f;
|
|
2067
2068
|
for (; ++n < e.length; )
|
|
2068
2069
|
if (e[n][0] === "enter" && e[n][1].type === "attentionSequence" && e[n][1]._close) {
|
|
@@ -2117,7 +2118,7 @@ function Kl(e, t) {
|
|
|
2117
2118
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
|
2118
2119
|
return e;
|
|
2119
2120
|
}
|
|
2120
|
-
function
|
|
2121
|
+
function Zl(e, t) {
|
|
2121
2122
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Le(r);
|
|
2122
2123
|
let o;
|
|
2123
2124
|
return l;
|
|
@@ -2134,11 +2135,11 @@ function Jl(e, t) {
|
|
|
2134
2135
|
function At(e, t) {
|
|
2135
2136
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
2136
2137
|
}
|
|
2137
|
-
const
|
|
2138
|
+
const eo = {
|
|
2138
2139
|
name: "autolink",
|
|
2139
|
-
tokenize:
|
|
2140
|
+
tokenize: no
|
|
2140
2141
|
};
|
|
2141
|
-
function
|
|
2142
|
+
function no(e, t, n) {
|
|
2142
2143
|
let r = 0;
|
|
2143
2144
|
return i;
|
|
2144
2145
|
function i(h) {
|
|
@@ -2157,7 +2158,7 @@ function eo(e, t, n) {
|
|
|
2157
2158
|
return h === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(h), e.exit("autolinkMarker"), e.exit("autolink"), t) : h === null || h === 32 || h === 60 || rn(h) ? n(h) : (e.consume(h), u);
|
|
2158
2159
|
}
|
|
2159
2160
|
function s(h) {
|
|
2160
|
-
return h === 64 ? (e.consume(h), f) :
|
|
2161
|
+
return h === 64 ? (e.consume(h), f) : $l(h) ? (e.consume(h), s) : n(h);
|
|
2161
2162
|
}
|
|
2162
2163
|
function f(h) {
|
|
2163
2164
|
return G(h) ? c(h) : n(h);
|
|
@@ -2173,11 +2174,11 @@ function eo(e, t, n) {
|
|
|
2173
2174
|
return n(h);
|
|
2174
2175
|
}
|
|
2175
2176
|
}
|
|
2176
|
-
const
|
|
2177
|
+
const Ye = {
|
|
2177
2178
|
partial: !0,
|
|
2178
|
-
tokenize:
|
|
2179
|
+
tokenize: to
|
|
2179
2180
|
};
|
|
2180
|
-
function
|
|
2181
|
+
function to(e, t, n) {
|
|
2181
2182
|
return r;
|
|
2182
2183
|
function r(o) {
|
|
2183
2184
|
return _(o) ? O(e, i, "linePrefix")(o) : i(o);
|
|
@@ -2188,13 +2189,13 @@ function no(e, t, n) {
|
|
|
2188
2189
|
}
|
|
2189
2190
|
const Er = {
|
|
2190
2191
|
continuation: {
|
|
2191
|
-
tokenize:
|
|
2192
|
+
tokenize: io
|
|
2192
2193
|
},
|
|
2193
|
-
exit:
|
|
2194
|
+
exit: lo,
|
|
2194
2195
|
name: "blockQuote",
|
|
2195
|
-
tokenize:
|
|
2196
|
+
tokenize: ro
|
|
2196
2197
|
};
|
|
2197
|
-
function
|
|
2198
|
+
function ro(e, t, n) {
|
|
2198
2199
|
const r = this;
|
|
2199
2200
|
return i;
|
|
2200
2201
|
function i(l) {
|
|
@@ -2210,7 +2211,7 @@ function to(e, t, n) {
|
|
|
2210
2211
|
return _(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
|
2211
2212
|
}
|
|
2212
2213
|
}
|
|
2213
|
-
function
|
|
2214
|
+
function io(e, t, n) {
|
|
2214
2215
|
const r = this;
|
|
2215
2216
|
return i;
|
|
2216
2217
|
function i(l) {
|
|
@@ -2220,27 +2221,27 @@ function ro(e, t, n) {
|
|
|
2220
2221
|
return e.attempt(Er, t, n)(l);
|
|
2221
2222
|
}
|
|
2222
2223
|
}
|
|
2223
|
-
function
|
|
2224
|
+
function lo(e) {
|
|
2224
2225
|
e.exit("blockQuote");
|
|
2225
2226
|
}
|
|
2226
2227
|
const Ir = {
|
|
2227
2228
|
name: "characterEscape",
|
|
2228
|
-
tokenize:
|
|
2229
|
+
tokenize: oo
|
|
2229
2230
|
};
|
|
2230
|
-
function
|
|
2231
|
+
function oo(e, t, n) {
|
|
2231
2232
|
return r;
|
|
2232
2233
|
function r(o) {
|
|
2233
2234
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
2234
2235
|
}
|
|
2235
2236
|
function i(o) {
|
|
2236
|
-
return
|
|
2237
|
+
return Wl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2237
2238
|
}
|
|
2238
2239
|
}
|
|
2239
2240
|
const Ar = {
|
|
2240
2241
|
name: "characterReference",
|
|
2241
|
-
tokenize:
|
|
2242
|
+
tokenize: ao
|
|
2242
2243
|
};
|
|
2243
|
-
function
|
|
2244
|
+
function ao(e, t, n) {
|
|
2244
2245
|
const r = this;
|
|
2245
2246
|
let i = 0, o, l;
|
|
2246
2247
|
return a;
|
|
@@ -2251,7 +2252,7 @@ function oo(e, t, n) {
|
|
|
2251
2252
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = G, f(c));
|
|
2252
2253
|
}
|
|
2253
2254
|
function s(c) {
|
|
2254
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l =
|
|
2255
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = ql, f) : (e.enter("characterReferenceValue"), o = 7, l = _n, f(c));
|
|
2255
2256
|
}
|
|
2256
2257
|
function f(c) {
|
|
2257
2258
|
if (c === 59 && i) {
|
|
@@ -2263,13 +2264,13 @@ function oo(e, t, n) {
|
|
|
2263
2264
|
}
|
|
2264
2265
|
const Tt = {
|
|
2265
2266
|
partial: !0,
|
|
2266
|
-
tokenize:
|
|
2267
|
+
tokenize: so
|
|
2267
2268
|
}, Pt = {
|
|
2268
2269
|
concrete: !0,
|
|
2269
2270
|
name: "codeFenced",
|
|
2270
|
-
tokenize:
|
|
2271
|
+
tokenize: uo
|
|
2271
2272
|
};
|
|
2272
|
-
function
|
|
2273
|
+
function uo(e, t, n) {
|
|
2273
2274
|
const r = this, i = {
|
|
2274
2275
|
partial: !0,
|
|
2275
2276
|
tokenize: F
|
|
@@ -2340,7 +2341,7 @@ function ao(e, t, n) {
|
|
|
2340
2341
|
}
|
|
2341
2342
|
}
|
|
2342
2343
|
}
|
|
2343
|
-
function
|
|
2344
|
+
function so(e, t, n) {
|
|
2344
2345
|
const r = this;
|
|
2345
2346
|
return i;
|
|
2346
2347
|
function i(l) {
|
|
@@ -2352,12 +2353,12 @@ function uo(e, t, n) {
|
|
|
2352
2353
|
}
|
|
2353
2354
|
const dn = {
|
|
2354
2355
|
name: "codeIndented",
|
|
2355
|
-
tokenize: co
|
|
2356
|
-
}, so = {
|
|
2357
|
-
partial: !0,
|
|
2358
2356
|
tokenize: fo
|
|
2357
|
+
}, co = {
|
|
2358
|
+
partial: !0,
|
|
2359
|
+
tokenize: ho
|
|
2359
2360
|
};
|
|
2360
|
-
function
|
|
2361
|
+
function fo(e, t, n) {
|
|
2361
2362
|
const r = this;
|
|
2362
2363
|
return i;
|
|
2363
2364
|
function i(s) {
|
|
@@ -2368,7 +2369,7 @@ function co(e, t, n) {
|
|
|
2368
2369
|
return f && f[1].type === "linePrefix" && f[2].sliceSerialize(f[1], !0).length >= 4 ? l(s) : n(s);
|
|
2369
2370
|
}
|
|
2370
2371
|
function l(s) {
|
|
2371
|
-
return s === null ? u(s) : v(s) ? e.attempt(
|
|
2372
|
+
return s === null ? u(s) : v(s) ? e.attempt(co, l, u)(s) : (e.enter("codeFlowValue"), a(s));
|
|
2372
2373
|
}
|
|
2373
2374
|
function a(s) {
|
|
2374
2375
|
return s === null || v(s) ? (e.exit("codeFlowValue"), l(s)) : (e.consume(s), a);
|
|
@@ -2377,7 +2378,7 @@ function co(e, t, n) {
|
|
|
2377
2378
|
return e.exit("codeIndented"), t(s);
|
|
2378
2379
|
}
|
|
2379
2380
|
}
|
|
2380
|
-
function
|
|
2381
|
+
function ho(e, t, n) {
|
|
2381
2382
|
const r = this;
|
|
2382
2383
|
return i;
|
|
2383
2384
|
function i(l) {
|
|
@@ -2388,13 +2389,13 @@ function fo(e, t, n) {
|
|
|
2388
2389
|
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : v(l) ? i(l) : n(l);
|
|
2389
2390
|
}
|
|
2390
2391
|
}
|
|
2391
|
-
const
|
|
2392
|
+
const po = {
|
|
2392
2393
|
name: "codeText",
|
|
2393
|
-
previous:
|
|
2394
|
-
resolve:
|
|
2395
|
-
tokenize:
|
|
2394
|
+
previous: go,
|
|
2395
|
+
resolve: mo,
|
|
2396
|
+
tokenize: yo
|
|
2396
2397
|
};
|
|
2397
|
-
function
|
|
2398
|
+
function mo(e) {
|
|
2398
2399
|
let t = e.length - 4, n = 3, r, i;
|
|
2399
2400
|
if ((e[n][1].type === "lineEnding" || e[n][1].type === "space") && (e[t][1].type === "lineEnding" || e[t][1].type === "space")) {
|
|
2400
2401
|
for (r = n; ++r < t; )
|
|
@@ -2407,10 +2408,10 @@ function po(e) {
|
|
|
2407
2408
|
i === void 0 ? r !== t && e[r][1].type !== "lineEnding" && (i = r) : (r === t || e[r][1].type === "lineEnding") && (e[i][1].type = "codeTextData", r !== i + 2 && (e[i][1].end = e[r - 1][1].end, e.splice(i + 2, r - i - 2), t -= r - i - 2, r = i + 2), i = void 0);
|
|
2408
2409
|
return e;
|
|
2409
2410
|
}
|
|
2410
|
-
function
|
|
2411
|
+
function go(e) {
|
|
2411
2412
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2412
2413
|
}
|
|
2413
|
-
function
|
|
2414
|
+
function yo(e, t, n) {
|
|
2414
2415
|
let r = 0, i, o;
|
|
2415
2416
|
return l;
|
|
2416
2417
|
function l(c) {
|
|
@@ -2429,7 +2430,7 @@ function go(e, t, n) {
|
|
|
2429
2430
|
return c === 96 ? (e.consume(c), i++, f) : i === r ? (e.exit("codeTextSequence"), e.exit("codeText"), t(c)) : (o.type = "codeTextData", s(c));
|
|
2430
2431
|
}
|
|
2431
2432
|
}
|
|
2432
|
-
class
|
|
2433
|
+
class ko {
|
|
2433
2434
|
/**
|
|
2434
2435
|
* @param {ReadonlyArray<T> | null | undefined} [initial]
|
|
2435
2436
|
* Initial items (optional).
|
|
@@ -2604,7 +2605,7 @@ function Ne(e, t) {
|
|
|
2604
2605
|
function Tr(e) {
|
|
2605
2606
|
const t = {};
|
|
2606
2607
|
let n = -1, r, i, o, l, a, u, s;
|
|
2607
|
-
const f = new
|
|
2608
|
+
const f = new ko(e);
|
|
2608
2609
|
for (; ++n < f.length; ) {
|
|
2609
2610
|
for (; n in t; )
|
|
2610
2611
|
n = t[n];
|
|
@@ -2612,7 +2613,7 @@ function Tr(e) {
|
|
|
2612
2613
|
for (; ++o < u.length && u[o][1].type !== "content"; )
|
|
2613
2614
|
u[o][1].type === "chunkText" && (u[o][1]._isInFirstContentOfListItem = !0, o++);
|
|
2614
2615
|
if (r[0] === "enter")
|
|
2615
|
-
r[1].contentType && (Object.assign(t,
|
|
2616
|
+
r[1].contentType && (Object.assign(t, xo(f, n)), n = t[n], s = !0);
|
|
2616
2617
|
else if (r[1]._container) {
|
|
2617
2618
|
for (o = n, i = void 0; o--; )
|
|
2618
2619
|
if (l = f.get(o), l[1].type === "lineEnding" || l[1].type === "lineEndingBlank")
|
|
@@ -2625,7 +2626,7 @@ function Tr(e) {
|
|
|
2625
2626
|
}
|
|
2626
2627
|
return re(e, 0, Number.POSITIVE_INFINITY, f.slice(0)), !s;
|
|
2627
2628
|
}
|
|
2628
|
-
function
|
|
2629
|
+
function xo(e, t) {
|
|
2629
2630
|
const n = e.get(t)[1], r = e.get(t)[2];
|
|
2630
2631
|
let i = t - 1;
|
|
2631
2632
|
const o = [];
|
|
@@ -2650,17 +2651,17 @@ function ko(e, t) {
|
|
|
2650
2651
|
s[d + u[p][0]] = d + u[p][1], d += u[p][1] - u[p][0] - 1;
|
|
2651
2652
|
return s;
|
|
2652
2653
|
}
|
|
2653
|
-
const
|
|
2654
|
-
resolve:
|
|
2655
|
-
tokenize: So
|
|
2656
|
-
}, bo = {
|
|
2657
|
-
partial: !0,
|
|
2654
|
+
const bo = {
|
|
2655
|
+
resolve: So,
|
|
2658
2656
|
tokenize: Co
|
|
2657
|
+
}, wo = {
|
|
2658
|
+
partial: !0,
|
|
2659
|
+
tokenize: Eo
|
|
2659
2660
|
};
|
|
2660
|
-
function
|
|
2661
|
+
function So(e) {
|
|
2661
2662
|
return Tr(e), e;
|
|
2662
2663
|
}
|
|
2663
|
-
function
|
|
2664
|
+
function Co(e, t) {
|
|
2664
2665
|
let n;
|
|
2665
2666
|
return r;
|
|
2666
2667
|
function r(a) {
|
|
@@ -2669,7 +2670,7 @@ function So(e, t) {
|
|
|
2669
2670
|
}), i(a);
|
|
2670
2671
|
}
|
|
2671
2672
|
function i(a) {
|
|
2672
|
-
return a === null ? o(a) : v(a) ? e.check(
|
|
2673
|
+
return a === null ? o(a) : v(a) ? e.check(wo, l, o)(a) : (e.consume(a), i);
|
|
2673
2674
|
}
|
|
2674
2675
|
function o(a) {
|
|
2675
2676
|
return e.exit("chunkContent"), e.exit("content"), t(a);
|
|
@@ -2681,7 +2682,7 @@ function So(e, t) {
|
|
|
2681
2682
|
}), n = n.next, i;
|
|
2682
2683
|
}
|
|
2683
2684
|
}
|
|
2684
|
-
function
|
|
2685
|
+
function Eo(e, t, n) {
|
|
2685
2686
|
const r = this;
|
|
2686
2687
|
return i;
|
|
2687
2688
|
function i(l) {
|
|
@@ -2766,21 +2767,21 @@ function zr(e, t, n, r, i, o) {
|
|
|
2766
2767
|
return p === l || p === 92 ? (e.consume(p), f) : f(p);
|
|
2767
2768
|
}
|
|
2768
2769
|
}
|
|
2769
|
-
function
|
|
2770
|
+
function Ue(e, t) {
|
|
2770
2771
|
let n;
|
|
2771
2772
|
return r;
|
|
2772
2773
|
function r(i) {
|
|
2773
2774
|
return v(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : _(i) ? O(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
|
|
2774
2775
|
}
|
|
2775
2776
|
}
|
|
2776
|
-
const
|
|
2777
|
+
const Io = {
|
|
2777
2778
|
name: "definition",
|
|
2778
|
-
tokenize: Ao
|
|
2779
|
-
}, Io = {
|
|
2780
|
-
partial: !0,
|
|
2781
2779
|
tokenize: To
|
|
2780
|
+
}, Ao = {
|
|
2781
|
+
partial: !0,
|
|
2782
|
+
tokenize: Po
|
|
2782
2783
|
};
|
|
2783
|
-
function
|
|
2784
|
+
function To(e, t, n) {
|
|
2784
2785
|
const r = this;
|
|
2785
2786
|
let i;
|
|
2786
2787
|
return o;
|
|
@@ -2803,7 +2804,7 @@ function Ao(e, t, n) {
|
|
|
2803
2804
|
return i = se(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), u) : n(h);
|
|
2804
2805
|
}
|
|
2805
2806
|
function u(h) {
|
|
2806
|
-
return U(h) ?
|
|
2807
|
+
return U(h) ? Ue(e, s)(h) : s(h);
|
|
2807
2808
|
}
|
|
2808
2809
|
function s(h) {
|
|
2809
2810
|
return Pr(
|
|
@@ -2819,7 +2820,7 @@ function Ao(e, t, n) {
|
|
|
2819
2820
|
)(h);
|
|
2820
2821
|
}
|
|
2821
2822
|
function f(h) {
|
|
2822
|
-
return e.attempt(
|
|
2823
|
+
return e.attempt(Ao, c, c)(h);
|
|
2823
2824
|
}
|
|
2824
2825
|
function c(h) {
|
|
2825
2826
|
return _(h) ? O(e, p, "whitespace")(h) : p(h);
|
|
@@ -2828,10 +2829,10 @@ function Ao(e, t, n) {
|
|
|
2828
2829
|
return h === null || v(h) ? (e.exit("definition"), r.parser.defined.push(i), t(h)) : n(h);
|
|
2829
2830
|
}
|
|
2830
2831
|
}
|
|
2831
|
-
function
|
|
2832
|
+
function Po(e, t, n) {
|
|
2832
2833
|
return r;
|
|
2833
2834
|
function r(a) {
|
|
2834
|
-
return U(a) ?
|
|
2835
|
+
return U(a) ? Ue(e, i)(a) : n(a);
|
|
2835
2836
|
}
|
|
2836
2837
|
function i(a) {
|
|
2837
2838
|
return zr(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
@@ -2843,11 +2844,11 @@ function To(e, t, n) {
|
|
|
2843
2844
|
return a === null || v(a) ? t(a) : n(a);
|
|
2844
2845
|
}
|
|
2845
2846
|
}
|
|
2846
|
-
const
|
|
2847
|
+
const vo = {
|
|
2847
2848
|
name: "hardBreakEscape",
|
|
2848
|
-
tokenize:
|
|
2849
|
+
tokenize: zo
|
|
2849
2850
|
};
|
|
2850
|
-
function
|
|
2851
|
+
function zo(e, t, n) {
|
|
2851
2852
|
return r;
|
|
2852
2853
|
function r(o) {
|
|
2853
2854
|
return e.enter("hardBreakEscape"), e.consume(o), i;
|
|
@@ -2856,12 +2857,12 @@ function vo(e, t, n) {
|
|
|
2856
2857
|
return v(o) ? (e.exit("hardBreakEscape"), t(o)) : n(o);
|
|
2857
2858
|
}
|
|
2858
2859
|
}
|
|
2859
|
-
const
|
|
2860
|
+
const Do = {
|
|
2860
2861
|
name: "headingAtx",
|
|
2861
|
-
resolve:
|
|
2862
|
-
tokenize:
|
|
2862
|
+
resolve: Lo,
|
|
2863
|
+
tokenize: Fo
|
|
2863
2864
|
};
|
|
2864
|
-
function
|
|
2865
|
+
function Lo(e, t) {
|
|
2865
2866
|
let n = e.length - 2, r = 3, i, o;
|
|
2866
2867
|
return e[r][1].type === "whitespace" && (r += 2), n - 2 > r && e[n][1].type === "whitespace" && (n -= 2), e[n][1].type === "atxHeadingSequence" && (r === n - 1 || n - 4 > r && e[n - 2][1].type === "whitespace") && (n -= r + 1 === n ? 2 : 4), n > r && (i = {
|
|
2867
2868
|
type: "atxHeadingText",
|
|
@@ -2874,7 +2875,7 @@ function Do(e, t) {
|
|
|
2874
2875
|
contentType: "text"
|
|
2875
2876
|
}, re(e, r, n - r + 1, [["enter", i, t], ["enter", o, t], ["exit", o, t], ["exit", i, t]])), e;
|
|
2876
2877
|
}
|
|
2877
|
-
function
|
|
2878
|
+
function Fo(e, t, n) {
|
|
2878
2879
|
let r = 0;
|
|
2879
2880
|
return i;
|
|
2880
2881
|
function i(f) {
|
|
@@ -2896,7 +2897,7 @@ function Lo(e, t, n) {
|
|
|
2896
2897
|
return f === null || f === 35 || U(f) ? (e.exit("atxHeadingText"), a(f)) : (e.consume(f), s);
|
|
2897
2898
|
}
|
|
2898
2899
|
}
|
|
2899
|
-
const
|
|
2900
|
+
const _o = [
|
|
2900
2901
|
"address",
|
|
2901
2902
|
"article",
|
|
2902
2903
|
"aside",
|
|
@@ -2959,25 +2960,25 @@ const Fo = [
|
|
|
2959
2960
|
"tr",
|
|
2960
2961
|
"track",
|
|
2961
2962
|
"ul"
|
|
2962
|
-
], vt = ["pre", "script", "style", "textarea"],
|
|
2963
|
+
], vt = ["pre", "script", "style", "textarea"], Ro = {
|
|
2963
2964
|
concrete: !0,
|
|
2964
2965
|
name: "htmlFlow",
|
|
2965
|
-
resolveTo:
|
|
2966
|
-
tokenize:
|
|
2967
|
-
}, Ro = {
|
|
2968
|
-
partial: !0,
|
|
2969
|
-
tokenize: jo
|
|
2966
|
+
resolveTo: No,
|
|
2967
|
+
tokenize: Bo
|
|
2970
2968
|
}, Oo = {
|
|
2971
2969
|
partial: !0,
|
|
2972
|
-
tokenize:
|
|
2970
|
+
tokenize: Ho
|
|
2971
|
+
}, Mo = {
|
|
2972
|
+
partial: !0,
|
|
2973
|
+
tokenize: jo
|
|
2973
2974
|
};
|
|
2974
|
-
function
|
|
2975
|
+
function No(e) {
|
|
2975
2976
|
let t = e.length;
|
|
2976
2977
|
for (; t-- && !(e[t][0] === "enter" && e[t][1].type === "htmlFlow"); )
|
|
2977
2978
|
;
|
|
2978
2979
|
return t > 1 && e[t - 2][1].type === "linePrefix" && (e[t][1].start = e[t - 2][1].start, e[t + 1][1].start = e[t - 2][1].start, e.splice(t - 2, 2)), e;
|
|
2979
2980
|
}
|
|
2980
|
-
function
|
|
2981
|
+
function Bo(e, t, n) {
|
|
2981
2982
|
const r = this;
|
|
2982
2983
|
let i, o, l, a, u;
|
|
2983
2984
|
return s;
|
|
@@ -3006,7 +3007,7 @@ function No(e, t, n) {
|
|
|
3006
3007
|
function C(g) {
|
|
3007
3008
|
if (g === null || g === 47 || g === 62 || U(g)) {
|
|
3008
3009
|
const ae = g === 47, be = l.toLowerCase();
|
|
3009
|
-
return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) :
|
|
3010
|
+
return !ae && !o && vt.includes(be) ? (i = 1, r.interrupt ? t(g) : P(g)) : _o.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
|
|
3010
3011
|
}
|
|
3011
3012
|
return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g), C) : n(g);
|
|
3012
3013
|
}
|
|
@@ -3044,10 +3045,10 @@ function No(e, t, n) {
|
|
|
3044
3045
|
return g === null || v(g) ? P(g) : _(g) ? (e.consume(g), T) : n(g);
|
|
3045
3046
|
}
|
|
3046
3047
|
function P(g) {
|
|
3047
|
-
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
3048
|
+
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), oe) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), he) : v(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(Oo, pe, j)(g)) : g === null || v(g) ? (e.exit("htmlFlowData"), j(g)) : (e.consume(g), P);
|
|
3048
3049
|
}
|
|
3049
3050
|
function j(g) {
|
|
3050
|
-
return e.check(
|
|
3051
|
+
return e.check(Mo, q, pe)(g);
|
|
3051
3052
|
}
|
|
3052
3053
|
function q(g) {
|
|
3053
3054
|
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), N;
|
|
@@ -3081,7 +3082,7 @@ function No(e, t, n) {
|
|
|
3081
3082
|
return e.exit("htmlFlow"), t(g);
|
|
3082
3083
|
}
|
|
3083
3084
|
}
|
|
3084
|
-
function
|
|
3085
|
+
function jo(e, t, n) {
|
|
3085
3086
|
const r = this;
|
|
3086
3087
|
return i;
|
|
3087
3088
|
function i(l) {
|
|
@@ -3091,17 +3092,17 @@ function Bo(e, t, n) {
|
|
|
3091
3092
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
|
3092
3093
|
}
|
|
3093
3094
|
}
|
|
3094
|
-
function
|
|
3095
|
+
function Ho(e, t, n) {
|
|
3095
3096
|
return r;
|
|
3096
3097
|
function r(i) {
|
|
3097
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
|
3098
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ye, t, n);
|
|
3098
3099
|
}
|
|
3099
3100
|
}
|
|
3100
|
-
const
|
|
3101
|
+
const Uo = {
|
|
3101
3102
|
name: "htmlText",
|
|
3102
|
-
tokenize:
|
|
3103
|
+
tokenize: Vo
|
|
3103
3104
|
};
|
|
3104
|
-
function
|
|
3105
|
+
function Vo(e, t, n) {
|
|
3105
3106
|
const r = this;
|
|
3106
3107
|
let i, o, l;
|
|
3107
3108
|
return a;
|
|
@@ -3196,17 +3197,17 @@ function Uo(e, t, n) {
|
|
|
3196
3197
|
}
|
|
3197
3198
|
const Gn = {
|
|
3198
3199
|
name: "labelEnd",
|
|
3199
|
-
resolveAll:
|
|
3200
|
-
resolveTo:
|
|
3201
|
-
tokenize: Xo
|
|
3202
|
-
}, Vo = {
|
|
3200
|
+
resolveAll: Yo,
|
|
3201
|
+
resolveTo: Xo,
|
|
3203
3202
|
tokenize: Qo
|
|
3204
3203
|
}, $o = {
|
|
3205
3204
|
tokenize: Go
|
|
3206
3205
|
}, qo = {
|
|
3207
3206
|
tokenize: Ko
|
|
3207
|
+
}, Wo = {
|
|
3208
|
+
tokenize: Jo
|
|
3208
3209
|
};
|
|
3209
|
-
function
|
|
3210
|
+
function Yo(e) {
|
|
3210
3211
|
let t = -1;
|
|
3211
3212
|
const n = [];
|
|
3212
3213
|
for (; ++t < e.length; ) {
|
|
@@ -3218,7 +3219,7 @@ function Wo(e) {
|
|
|
3218
3219
|
}
|
|
3219
3220
|
return e.length !== n.length && re(e, 0, e.length, n), e;
|
|
3220
3221
|
}
|
|
3221
|
-
function
|
|
3222
|
+
function Xo(e, t) {
|
|
3222
3223
|
let n = e.length, r = 0, i, o, l, a;
|
|
3223
3224
|
for (; n--; )
|
|
3224
3225
|
if (i = e[n][1], o) {
|
|
@@ -3258,7 +3259,7 @@ function Yo(e, t) {
|
|
|
3258
3259
|
};
|
|
3259
3260
|
return a = [["enter", u, t], ["enter", s, t]], a = ie(a, e.slice(o + 1, o + r + 3)), a = ie(a, [["enter", f, t]]), a = ie(a, cn(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = ie(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = ie(a, e.slice(l + 1)), a = ie(a, [["exit", u, t]]), re(e, o, e.length, a), e;
|
|
3260
3261
|
}
|
|
3261
|
-
function
|
|
3262
|
+
function Qo(e, t, n) {
|
|
3262
3263
|
const r = this;
|
|
3263
3264
|
let i = r.events.length, o, l;
|
|
3264
3265
|
for (; i--; )
|
|
@@ -3274,10 +3275,10 @@ function Xo(e, t, n) {
|
|
|
3274
3275
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
|
|
3275
3276
|
}
|
|
3276
3277
|
function u(p) {
|
|
3277
|
-
return p === 40 ? e.attempt(
|
|
3278
|
+
return p === 40 ? e.attempt($o, f, l ? f : c)(p) : p === 91 ? e.attempt(qo, f, l ? s : c)(p) : l ? f(p) : c(p);
|
|
3278
3279
|
}
|
|
3279
3280
|
function s(p) {
|
|
3280
|
-
return e.attempt(
|
|
3281
|
+
return e.attempt(Wo, f, c)(p);
|
|
3281
3282
|
}
|
|
3282
3283
|
function f(p) {
|
|
3283
3284
|
return t(p);
|
|
@@ -3286,19 +3287,19 @@ function Xo(e, t, n) {
|
|
|
3286
3287
|
return o._balanced = !0, n(p);
|
|
3287
3288
|
}
|
|
3288
3289
|
}
|
|
3289
|
-
function
|
|
3290
|
+
function Go(e, t, n) {
|
|
3290
3291
|
return r;
|
|
3291
3292
|
function r(c) {
|
|
3292
3293
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), i;
|
|
3293
3294
|
}
|
|
3294
3295
|
function i(c) {
|
|
3295
|
-
return U(c) ?
|
|
3296
|
+
return U(c) ? Ue(e, o)(c) : o(c);
|
|
3296
3297
|
}
|
|
3297
3298
|
function o(c) {
|
|
3298
3299
|
return c === 41 ? f(c) : Pr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
|
|
3299
3300
|
}
|
|
3300
3301
|
function l(c) {
|
|
3301
|
-
return U(c) ?
|
|
3302
|
+
return U(c) ? Ue(e, u)(c) : f(c);
|
|
3302
3303
|
}
|
|
3303
3304
|
function a(c) {
|
|
3304
3305
|
return n(c);
|
|
@@ -3307,13 +3308,13 @@ function Qo(e, t, n) {
|
|
|
3307
3308
|
return c === 34 || c === 39 || c === 40 ? zr(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
|
|
3308
3309
|
}
|
|
3309
3310
|
function s(c) {
|
|
3310
|
-
return U(c) ?
|
|
3311
|
+
return U(c) ? Ue(e, f)(c) : f(c);
|
|
3311
3312
|
}
|
|
3312
3313
|
function f(c) {
|
|
3313
3314
|
return c === 41 ? (e.enter("resourceMarker"), e.consume(c), e.exit("resourceMarker"), e.exit("resource"), t) : n(c);
|
|
3314
3315
|
}
|
|
3315
3316
|
}
|
|
3316
|
-
function
|
|
3317
|
+
function Ko(e, t, n) {
|
|
3317
3318
|
const r = this;
|
|
3318
3319
|
return i;
|
|
3319
3320
|
function i(a) {
|
|
@@ -3326,7 +3327,7 @@ function Go(e, t, n) {
|
|
|
3326
3327
|
return n(a);
|
|
3327
3328
|
}
|
|
3328
3329
|
}
|
|
3329
|
-
function
|
|
3330
|
+
function Jo(e, t, n) {
|
|
3330
3331
|
return r;
|
|
3331
3332
|
function r(o) {
|
|
3332
3333
|
return e.enter("reference"), e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), i;
|
|
@@ -3335,12 +3336,12 @@ function Ko(e, t, n) {
|
|
|
3335
3336
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
|
|
3336
3337
|
}
|
|
3337
3338
|
}
|
|
3338
|
-
const
|
|
3339
|
+
const Zo = {
|
|
3339
3340
|
name: "labelStartImage",
|
|
3340
3341
|
resolveAll: Gn.resolveAll,
|
|
3341
|
-
tokenize:
|
|
3342
|
+
tokenize: ea
|
|
3342
3343
|
};
|
|
3343
|
-
function
|
|
3344
|
+
function ea(e, t, n) {
|
|
3344
3345
|
const r = this;
|
|
3345
3346
|
return i;
|
|
3346
3347
|
function i(a) {
|
|
@@ -3353,12 +3354,12 @@ function Zo(e, t, n) {
|
|
|
3353
3354
|
return a === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(a) : t(a);
|
|
3354
3355
|
}
|
|
3355
3356
|
}
|
|
3356
|
-
const
|
|
3357
|
+
const na = {
|
|
3357
3358
|
name: "labelStartLink",
|
|
3358
3359
|
resolveAll: Gn.resolveAll,
|
|
3359
|
-
tokenize:
|
|
3360
|
+
tokenize: ta
|
|
3360
3361
|
};
|
|
3361
|
-
function
|
|
3362
|
+
function ta(e, t, n) {
|
|
3362
3363
|
const r = this;
|
|
3363
3364
|
return i;
|
|
3364
3365
|
function i(l) {
|
|
@@ -3370,19 +3371,19 @@ function na(e, t, n) {
|
|
|
3370
3371
|
}
|
|
3371
3372
|
const yn = {
|
|
3372
3373
|
name: "lineEnding",
|
|
3373
|
-
tokenize:
|
|
3374
|
+
tokenize: ra
|
|
3374
3375
|
};
|
|
3375
|
-
function
|
|
3376
|
+
function ra(e, t) {
|
|
3376
3377
|
return n;
|
|
3377
3378
|
function n(r) {
|
|
3378
3379
|
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), O(e, t, "linePrefix");
|
|
3379
3380
|
}
|
|
3380
3381
|
}
|
|
3381
|
-
const
|
|
3382
|
+
const en = {
|
|
3382
3383
|
name: "thematicBreak",
|
|
3383
|
-
tokenize:
|
|
3384
|
+
tokenize: ia
|
|
3384
3385
|
};
|
|
3385
|
-
function
|
|
3386
|
+
function ia(e, t, n) {
|
|
3386
3387
|
let r = 0, i;
|
|
3387
3388
|
return o;
|
|
3388
3389
|
function o(s) {
|
|
@@ -3400,19 +3401,19 @@ function ra(e, t, n) {
|
|
|
3400
3401
|
}
|
|
3401
3402
|
const Z = {
|
|
3402
3403
|
continuation: {
|
|
3403
|
-
tokenize:
|
|
3404
|
+
tokenize: ua
|
|
3404
3405
|
},
|
|
3405
|
-
exit:
|
|
3406
|
+
exit: ca,
|
|
3406
3407
|
name: "list",
|
|
3407
|
-
tokenize:
|
|
3408
|
-
}, ia = {
|
|
3409
|
-
partial: !0,
|
|
3410
|
-
tokenize: ca
|
|
3408
|
+
tokenize: aa
|
|
3411
3409
|
}, la = {
|
|
3412
3410
|
partial: !0,
|
|
3413
|
-
tokenize:
|
|
3411
|
+
tokenize: fa
|
|
3412
|
+
}, oa = {
|
|
3413
|
+
partial: !0,
|
|
3414
|
+
tokenize: sa
|
|
3414
3415
|
};
|
|
3415
|
-
function
|
|
3416
|
+
function aa(e, t, n) {
|
|
3416
3417
|
const r = this, i = r.events[r.events.length - 1];
|
|
3417
3418
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, l = 0;
|
|
3418
3419
|
return a;
|
|
@@ -3422,7 +3423,7 @@ function oa(e, t, n) {
|
|
|
3422
3423
|
if (r.containerState.type || (r.containerState.type = d, e.enter(d, {
|
|
3423
3424
|
_container: !0
|
|
3424
3425
|
})), d === "listUnordered")
|
|
3425
|
-
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(
|
|
3426
|
+
return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(en, n, s)(h) : s(h);
|
|
3426
3427
|
if (!r.interrupt || h === 49)
|
|
3427
3428
|
return e.enter("listItemPrefix"), e.enter("listItemValue"), u(h);
|
|
3428
3429
|
}
|
|
@@ -3433,10 +3434,10 @@ function oa(e, t, n) {
|
|
|
3433
3434
|
}
|
|
3434
3435
|
function s(h) {
|
|
3435
3436
|
return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
|
|
3436
|
-
|
|
3437
|
+
Ye,
|
|
3437
3438
|
// Can’t be empty when interrupting.
|
|
3438
3439
|
r.interrupt ? n : f,
|
|
3439
|
-
e.attempt(
|
|
3440
|
+
e.attempt(la, p, c)
|
|
3440
3441
|
);
|
|
3441
3442
|
}
|
|
3442
3443
|
function f(h) {
|
|
@@ -3449,20 +3450,20 @@ function oa(e, t, n) {
|
|
|
3449
3450
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(h);
|
|
3450
3451
|
}
|
|
3451
3452
|
}
|
|
3452
|
-
function
|
|
3453
|
+
function ua(e, t, n) {
|
|
3453
3454
|
const r = this;
|
|
3454
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
3455
|
+
return r.containerState._closeFlow = void 0, e.check(Ye, i, o);
|
|
3455
3456
|
function i(a) {
|
|
3456
3457
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, O(e, t, "listItemIndent", r.containerState.size + 1)(a);
|
|
3457
3458
|
}
|
|
3458
3459
|
function o(a) {
|
|
3459
|
-
return r.containerState.furtherBlankLines || !_(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(
|
|
3460
|
+
return r.containerState.furtherBlankLines || !_(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(oa, t, l)(a));
|
|
3460
3461
|
}
|
|
3461
3462
|
function l(a) {
|
|
3462
3463
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, O(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3463
3464
|
}
|
|
3464
3465
|
}
|
|
3465
|
-
function
|
|
3466
|
+
function sa(e, t, n) {
|
|
3466
3467
|
const r = this;
|
|
3467
3468
|
return O(e, i, "listItemIndent", r.containerState.size + 1);
|
|
3468
3469
|
function i(o) {
|
|
@@ -3470,10 +3471,10 @@ function ua(e, t, n) {
|
|
|
3470
3471
|
return l && l[1].type === "listItemIndent" && l[2].sliceSerialize(l[1], !0).length === r.containerState.size ? t(o) : n(o);
|
|
3471
3472
|
}
|
|
3472
3473
|
}
|
|
3473
|
-
function
|
|
3474
|
+
function ca(e) {
|
|
3474
3475
|
e.exit(this.containerState.type);
|
|
3475
3476
|
}
|
|
3476
|
-
function
|
|
3477
|
+
function fa(e, t, n) {
|
|
3477
3478
|
const r = this;
|
|
3478
3479
|
return O(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3479
3480
|
function i(o) {
|
|
@@ -3483,10 +3484,10 @@ function ca(e, t, n) {
|
|
|
3483
3484
|
}
|
|
3484
3485
|
const zt = {
|
|
3485
3486
|
name: "setextUnderline",
|
|
3486
|
-
resolveTo:
|
|
3487
|
-
tokenize:
|
|
3487
|
+
resolveTo: ha,
|
|
3488
|
+
tokenize: pa
|
|
3488
3489
|
};
|
|
3489
|
-
function
|
|
3490
|
+
function ha(e, t) {
|
|
3490
3491
|
let n = e.length, r, i, o;
|
|
3491
3492
|
for (; n--; )
|
|
3492
3493
|
if (e[n][0] === "enter") {
|
|
@@ -3510,7 +3511,7 @@ function fa(e, t) {
|
|
|
3510
3511
|
...e[o][1].end
|
|
3511
3512
|
}) : e[r][1] = l, e.push(["exit", l, t]), e;
|
|
3512
3513
|
}
|
|
3513
|
-
function
|
|
3514
|
+
function pa(e, t, n) {
|
|
3514
3515
|
const r = this;
|
|
3515
3516
|
let i;
|
|
3516
3517
|
return o;
|
|
@@ -3533,16 +3534,16 @@ function ha(e, t, n) {
|
|
|
3533
3534
|
return s === null || v(s) ? (e.exit("setextHeadingLine"), t(s)) : n(s);
|
|
3534
3535
|
}
|
|
3535
3536
|
}
|
|
3536
|
-
const
|
|
3537
|
-
tokenize:
|
|
3537
|
+
const ma = {
|
|
3538
|
+
tokenize: ga
|
|
3538
3539
|
};
|
|
3539
|
-
function
|
|
3540
|
+
function ga(e) {
|
|
3540
3541
|
const t = this, n = e.attempt(
|
|
3541
3542
|
// Try to parse a blank line.
|
|
3542
|
-
|
|
3543
|
+
Ye,
|
|
3543
3544
|
r,
|
|
3544
3545
|
// Try to parse initial flow (essentially, only code).
|
|
3545
|
-
e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(
|
|
3546
|
+
e.attempt(this.parser.constructs.flowInitial, i, O(e, e.attempt(this.parser.constructs.flow, i, e.attempt(bo, i)), "linePrefix"))
|
|
3546
3547
|
);
|
|
3547
3548
|
return n;
|
|
3548
3549
|
function r(o) {
|
|
@@ -3560,12 +3561,12 @@ function ma(e) {
|
|
|
3560
3561
|
return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), t.currentConstruct = void 0, n;
|
|
3561
3562
|
}
|
|
3562
3563
|
}
|
|
3563
|
-
const
|
|
3564
|
+
const da = {
|
|
3564
3565
|
resolveAll: Lr()
|
|
3565
|
-
},
|
|
3566
|
+
}, ya = Dr("string"), ka = Dr("text");
|
|
3566
3567
|
function Dr(e) {
|
|
3567
3568
|
return {
|
|
3568
|
-
resolveAll: Lr(e === "text" ?
|
|
3569
|
+
resolveAll: Lr(e === "text" ? xa : void 0),
|
|
3569
3570
|
tokenize: t
|
|
3570
3571
|
};
|
|
3571
3572
|
function t(n) {
|
|
@@ -3608,7 +3609,7 @@ function Lr(e) {
|
|
|
3608
3609
|
return e ? e(n, r) : n;
|
|
3609
3610
|
}
|
|
3610
3611
|
}
|
|
3611
|
-
function
|
|
3612
|
+
function xa(e, t) {
|
|
3612
3613
|
let n = 0;
|
|
3613
3614
|
for (; ++n <= e.length; )
|
|
3614
3615
|
if ((n === e.length || e[n][1].type === "lineEnding") && e[n - 1][1].type === "data") {
|
|
@@ -3650,7 +3651,7 @@ function ka(e, t) {
|
|
|
3650
3651
|
}
|
|
3651
3652
|
return e;
|
|
3652
3653
|
}
|
|
3653
|
-
const
|
|
3654
|
+
const ba = {
|
|
3654
3655
|
42: Z,
|
|
3655
3656
|
43: Z,
|
|
3656
3657
|
45: Z,
|
|
@@ -3665,56 +3666,56 @@ const xa = {
|
|
|
3665
3666
|
56: Z,
|
|
3666
3667
|
57: Z,
|
|
3667
3668
|
62: Er
|
|
3668
|
-
}, ba = {
|
|
3669
|
-
91: Eo
|
|
3670
3669
|
}, wa = {
|
|
3670
|
+
91: Io
|
|
3671
|
+
}, Sa = {
|
|
3671
3672
|
[-2]: dn,
|
|
3672
3673
|
[-1]: dn,
|
|
3673
3674
|
32: dn
|
|
3674
|
-
},
|
|
3675
|
-
35:
|
|
3676
|
-
42:
|
|
3677
|
-
45: [zt,
|
|
3678
|
-
60:
|
|
3675
|
+
}, Ca = {
|
|
3676
|
+
35: Do,
|
|
3677
|
+
42: en,
|
|
3678
|
+
45: [zt, en],
|
|
3679
|
+
60: Ro,
|
|
3679
3680
|
61: zt,
|
|
3680
|
-
95:
|
|
3681
|
+
95: en,
|
|
3681
3682
|
96: Pt,
|
|
3682
3683
|
126: Pt
|
|
3683
|
-
},
|
|
3684
|
+
}, Ea = {
|
|
3684
3685
|
38: Ar,
|
|
3685
3686
|
92: Ir
|
|
3686
|
-
},
|
|
3687
|
+
}, Ia = {
|
|
3687
3688
|
[-5]: yn,
|
|
3688
3689
|
[-4]: yn,
|
|
3689
3690
|
[-3]: yn,
|
|
3690
|
-
33:
|
|
3691
|
+
33: Zo,
|
|
3691
3692
|
38: Ar,
|
|
3692
3693
|
42: Rn,
|
|
3693
|
-
60: [
|
|
3694
|
-
91:
|
|
3695
|
-
92: [
|
|
3694
|
+
60: [eo, Uo],
|
|
3695
|
+
91: na,
|
|
3696
|
+
92: [vo, Ir],
|
|
3696
3697
|
93: Gn,
|
|
3697
3698
|
95: Rn,
|
|
3698
|
-
96:
|
|
3699
|
-
}, Ia = {
|
|
3700
|
-
null: [Rn, ga]
|
|
3699
|
+
96: po
|
|
3701
3700
|
}, Aa = {
|
|
3702
|
-
null: [
|
|
3701
|
+
null: [Rn, da]
|
|
3703
3702
|
}, Ta = {
|
|
3703
|
+
null: [42, 95]
|
|
3704
|
+
}, Pa = {
|
|
3704
3705
|
null: []
|
|
3705
|
-
},
|
|
3706
|
+
}, va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3706
3707
|
__proto__: null,
|
|
3707
|
-
attentionMarkers:
|
|
3708
|
-
contentInitial:
|
|
3709
|
-
disable:
|
|
3710
|
-
document:
|
|
3711
|
-
flow:
|
|
3712
|
-
flowInitial:
|
|
3713
|
-
insideSpan:
|
|
3714
|
-
string:
|
|
3715
|
-
text:
|
|
3708
|
+
attentionMarkers: Ta,
|
|
3709
|
+
contentInitial: wa,
|
|
3710
|
+
disable: Pa,
|
|
3711
|
+
document: ba,
|
|
3712
|
+
flow: Ca,
|
|
3713
|
+
flowInitial: Sa,
|
|
3714
|
+
insideSpan: Aa,
|
|
3715
|
+
string: Ea,
|
|
3716
|
+
text: Ia
|
|
3716
3717
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3717
|
-
function
|
|
3718
|
+
function za(e, t, n) {
|
|
3718
3719
|
let r = {
|
|
3719
3720
|
_bufferIndex: -1,
|
|
3720
3721
|
_index: 0,
|
|
@@ -3751,10 +3752,10 @@ function va(e, t, n) {
|
|
|
3751
3752
|
return l = ie(l, T), C(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events = cn(o, s.events, s), s.events);
|
|
3752
3753
|
}
|
|
3753
3754
|
function p(T, P) {
|
|
3754
|
-
return
|
|
3755
|
+
return La(h(T), P);
|
|
3755
3756
|
}
|
|
3756
3757
|
function h(T) {
|
|
3757
|
-
return
|
|
3758
|
+
return Da(l, T);
|
|
3758
3759
|
}
|
|
3759
3760
|
function d() {
|
|
3760
3761
|
const {
|
|
@@ -3826,13 +3827,13 @@ function va(e, t, n) {
|
|
|
3826
3827
|
function oe(X) {
|
|
3827
3828
|
return Re;
|
|
3828
3829
|
function Re(ye) {
|
|
3829
|
-
const Ae = ye !== null && X[ye], Te = ye !== null && X.null,
|
|
3830
|
+
const Ae = ye !== null && X[ye], Te = ye !== null && X.null, Qe = [
|
|
3830
3831
|
// To do: add more extension tests.
|
|
3831
3832
|
/* c8 ignore next 2 */
|
|
3832
3833
|
...Array.isArray(Ae) ? Ae : Ae ? [Ae] : [],
|
|
3833
3834
|
...Array.isArray(Te) ? Te : Te ? [Te] : []
|
|
3834
3835
|
];
|
|
3835
|
-
return pe(
|
|
3836
|
+
return pe(Qe)(ye);
|
|
3836
3837
|
}
|
|
3837
3838
|
}
|
|
3838
3839
|
function pe(X) {
|
|
@@ -3877,7 +3878,7 @@ function va(e, t, n) {
|
|
|
3877
3878
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
3878
3879
|
}
|
|
3879
3880
|
}
|
|
3880
|
-
function
|
|
3881
|
+
function Da(e, t) {
|
|
3881
3882
|
const n = t.start._index, r = t.start._bufferIndex, i = t.end._index, o = t.end._bufferIndex;
|
|
3882
3883
|
let l;
|
|
3883
3884
|
if (n === i)
|
|
@@ -3891,7 +3892,7 @@ function za(e, t) {
|
|
|
3891
3892
|
}
|
|
3892
3893
|
return l;
|
|
3893
3894
|
}
|
|
3894
|
-
function
|
|
3895
|
+
function La(e, t) {
|
|
3895
3896
|
let n = -1;
|
|
3896
3897
|
const r = [];
|
|
3897
3898
|
let i;
|
|
@@ -3931,35 +3932,35 @@ function Da(e, t) {
|
|
|
3931
3932
|
}
|
|
3932
3933
|
return r.join("");
|
|
3933
3934
|
}
|
|
3934
|
-
function
|
|
3935
|
+
function Fa(e) {
|
|
3935
3936
|
const r = {
|
|
3936
3937
|
constructs: (
|
|
3937
3938
|
/** @type {FullNormalizedExtension} */
|
|
3938
|
-
Sr([
|
|
3939
|
+
Sr([va, ...(e || {}).extensions || []])
|
|
3939
3940
|
),
|
|
3940
|
-
content: i(
|
|
3941
|
+
content: i(Yl),
|
|
3941
3942
|
defined: [],
|
|
3942
|
-
document: i(
|
|
3943
|
-
flow: i(
|
|
3943
|
+
document: i(Ql),
|
|
3944
|
+
flow: i(ma),
|
|
3944
3945
|
lazy: {},
|
|
3945
|
-
string: i(
|
|
3946
|
-
text: i(
|
|
3946
|
+
string: i(ya),
|
|
3947
|
+
text: i(ka)
|
|
3947
3948
|
};
|
|
3948
3949
|
return r;
|
|
3949
3950
|
function i(o) {
|
|
3950
3951
|
return l;
|
|
3951
3952
|
function l(a) {
|
|
3952
|
-
return
|
|
3953
|
+
return za(r, o, a);
|
|
3953
3954
|
}
|
|
3954
3955
|
}
|
|
3955
3956
|
}
|
|
3956
|
-
function
|
|
3957
|
+
function _a(e) {
|
|
3957
3958
|
for (; !Tr(e); )
|
|
3958
3959
|
;
|
|
3959
3960
|
return e;
|
|
3960
3961
|
}
|
|
3961
3962
|
const Dt = /[\0\t\n\r]/g;
|
|
3962
|
-
function
|
|
3963
|
+
function Ra() {
|
|
3963
3964
|
let e = 1, t = "", n = !0, r;
|
|
3964
3965
|
return i;
|
|
3965
3966
|
function i(o, l, a) {
|
|
@@ -3994,11 +3995,11 @@ function _a() {
|
|
|
3994
3995
|
return a && (r && u.push(-5), t && u.push(t), u.push(null)), u;
|
|
3995
3996
|
}
|
|
3996
3997
|
}
|
|
3997
|
-
const
|
|
3998
|
-
function
|
|
3999
|
-
return e.replace(
|
|
3998
|
+
const Oa = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
3999
|
+
function Ma(e) {
|
|
4000
|
+
return e.replace(Oa, Na);
|
|
4000
4001
|
}
|
|
4001
|
-
function
|
|
4002
|
+
function Na(e, t, n) {
|
|
4002
4003
|
if (t)
|
|
4003
4004
|
return t;
|
|
4004
4005
|
if (n.charCodeAt(0) === 35) {
|
|
@@ -4008,10 +4009,10 @@ function Ma(e, t, n) {
|
|
|
4008
4009
|
return Qn(n) || e;
|
|
4009
4010
|
}
|
|
4010
4011
|
const Fr = {}.hasOwnProperty;
|
|
4011
|
-
function
|
|
4012
|
-
return typeof t != "string" && (n = t, t = void 0),
|
|
4012
|
+
function Ba(e, t, n) {
|
|
4013
|
+
return typeof t != "string" && (n = t, t = void 0), ja(n)(_a(Fa(n).document().write(Ra()(e, t, !0))));
|
|
4013
4014
|
}
|
|
4014
|
-
function
|
|
4015
|
+
function ja(e) {
|
|
4015
4016
|
const t = {
|
|
4016
4017
|
transforms: [],
|
|
4017
4018
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
@@ -4023,10 +4024,10 @@ function Ba(e) {
|
|
|
4023
4024
|
blockQuote: o(Te),
|
|
4024
4025
|
characterEscape: B,
|
|
4025
4026
|
characterReference: B,
|
|
4026
|
-
codeFenced: o(
|
|
4027
|
+
codeFenced: o(Qe),
|
|
4027
4028
|
codeFencedFenceInfo: l,
|
|
4028
4029
|
codeFencedFenceMeta: l,
|
|
4029
|
-
codeIndented: o(
|
|
4030
|
+
codeIndented: o(Qe, l),
|
|
4030
4031
|
codeText: o(mi, l),
|
|
4031
4032
|
codeTextData: B,
|
|
4032
4033
|
data: B,
|
|
@@ -4241,7 +4242,7 @@ function Ba(e) {
|
|
|
4241
4242
|
const z = this.stack.pop(), R = this.tokenStack.pop();
|
|
4242
4243
|
if (R)
|
|
4243
4244
|
R[0].type !== b.type && (I ? I.call(this, b, R[0]) : (R[1] || Lt).call(this, b, R[0]));
|
|
4244
|
-
else throw new Error("Cannot close `" + b.type + "` (" +
|
|
4245
|
+
else throw new Error("Cannot close `" + b.type + "` (" + He({
|
|
4245
4246
|
start: b.start,
|
|
4246
4247
|
end: b.end
|
|
4247
4248
|
}) + "): it’s not open");
|
|
@@ -4364,7 +4365,7 @@ function Ba(e) {
|
|
|
4364
4365
|
}
|
|
4365
4366
|
function le(b) {
|
|
4366
4367
|
const I = this.sliceSerialize(b), z = this.stack[this.stack.length - 2];
|
|
4367
|
-
z.label =
|
|
4368
|
+
z.label = Ma(I), z.identifier = se(I).toLowerCase();
|
|
4368
4369
|
}
|
|
4369
4370
|
function he() {
|
|
4370
4371
|
const b = this.stack[this.stack.length - 1], I = this.resume(), z = this.stack[this.stack.length - 1];
|
|
@@ -4422,7 +4423,7 @@ function Ba(e) {
|
|
|
4422
4423
|
children: []
|
|
4423
4424
|
};
|
|
4424
4425
|
}
|
|
4425
|
-
function
|
|
4426
|
+
function Qe() {
|
|
4426
4427
|
return {
|
|
4427
4428
|
type: "code",
|
|
4428
4429
|
lang: null,
|
|
@@ -4538,10 +4539,10 @@ function _r(e, t) {
|
|
|
4538
4539
|
let n = -1;
|
|
4539
4540
|
for (; ++n < t.length; ) {
|
|
4540
4541
|
const r = t[n];
|
|
4541
|
-
Array.isArray(r) ? _r(e, r) :
|
|
4542
|
+
Array.isArray(r) ? _r(e, r) : Ha(e, r);
|
|
4542
4543
|
}
|
|
4543
4544
|
}
|
|
4544
|
-
function
|
|
4545
|
+
function Ha(e, t) {
|
|
4545
4546
|
let n;
|
|
4546
4547
|
for (n in t)
|
|
4547
4548
|
if (Fr.call(t, n))
|
|
@@ -4565,22 +4566,22 @@ function ja(e, t) {
|
|
|
4565
4566
|
}
|
|
4566
4567
|
}
|
|
4567
4568
|
function Lt(e, t) {
|
|
4568
|
-
throw e ? new Error("Cannot close `" + e.type + "` (" +
|
|
4569
|
+
throw e ? new Error("Cannot close `" + e.type + "` (" + He({
|
|
4569
4570
|
start: e.start,
|
|
4570
4571
|
end: e.end
|
|
4571
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
4572
|
+
}) + "): a different token (`" + t.type + "`, " + He({
|
|
4572
4573
|
start: t.start,
|
|
4573
4574
|
end: t.end
|
|
4574
|
-
}) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " +
|
|
4575
|
+
}) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + He({
|
|
4575
4576
|
start: t.start,
|
|
4576
4577
|
end: t.end
|
|
4577
4578
|
}) + ") is still open");
|
|
4578
4579
|
}
|
|
4579
|
-
function
|
|
4580
|
+
function Ua(e) {
|
|
4580
4581
|
const t = this;
|
|
4581
4582
|
t.parser = n;
|
|
4582
4583
|
function n(r) {
|
|
4583
|
-
return
|
|
4584
|
+
return Ba(r, {
|
|
4584
4585
|
...t.data("settings"),
|
|
4585
4586
|
...e,
|
|
4586
4587
|
// Note: these options are not in the readme.
|
|
@@ -4591,7 +4592,7 @@ function Ha(e) {
|
|
|
4591
4592
|
});
|
|
4592
4593
|
}
|
|
4593
4594
|
}
|
|
4594
|
-
function
|
|
4595
|
+
function Va(e, t) {
|
|
4595
4596
|
const n = {
|
|
4596
4597
|
type: "element",
|
|
4597
4598
|
tagName: "blockquote",
|
|
@@ -4600,12 +4601,12 @@ function Ua(e, t) {
|
|
|
4600
4601
|
};
|
|
4601
4602
|
return e.patch(t, n), e.applyData(t, n);
|
|
4602
4603
|
}
|
|
4603
|
-
function
|
|
4604
|
+
function $a(e, t) {
|
|
4604
4605
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
4605
4606
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
4606
4607
|
` }];
|
|
4607
4608
|
}
|
|
4608
|
-
function
|
|
4609
|
+
function qa(e, t) {
|
|
4609
4610
|
const n = t.value ? t.value + `
|
|
4610
4611
|
` : "", r = {}, i = t.lang ? t.lang.split(/\s+/) : [];
|
|
4611
4612
|
i.length > 0 && (r.className = ["language-" + i[0]]);
|
|
@@ -4617,7 +4618,7 @@ function $a(e, t) {
|
|
|
4617
4618
|
};
|
|
4618
4619
|
return t.meta && (o.data = { meta: t.meta }), e.patch(t, o), o = e.applyData(t, o), o = { type: "element", tagName: "pre", properties: {}, children: [o] }, e.patch(t, o), o;
|
|
4619
4620
|
}
|
|
4620
|
-
function
|
|
4621
|
+
function Wa(e, t) {
|
|
4621
4622
|
const n = {
|
|
4622
4623
|
type: "element",
|
|
4623
4624
|
tagName: "del",
|
|
@@ -4626,7 +4627,7 @@ function qa(e, t) {
|
|
|
4626
4627
|
};
|
|
4627
4628
|
return e.patch(t, n), e.applyData(t, n);
|
|
4628
4629
|
}
|
|
4629
|
-
function
|
|
4630
|
+
function Ya(e, t) {
|
|
4630
4631
|
const n = {
|
|
4631
4632
|
type: "element",
|
|
4632
4633
|
tagName: "em",
|
|
@@ -4635,7 +4636,7 @@ function Wa(e, t) {
|
|
|
4635
4636
|
};
|
|
4636
4637
|
return e.patch(t, n), e.applyData(t, n);
|
|
4637
4638
|
}
|
|
4638
|
-
function
|
|
4639
|
+
function Xa(e, t) {
|
|
4639
4640
|
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = _e(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
4640
4641
|
let l, a = e.footnoteCounts.get(r);
|
|
4641
4642
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
@@ -4659,7 +4660,7 @@ function Ya(e, t) {
|
|
|
4659
4660
|
};
|
|
4660
4661
|
return e.patch(t, s), e.applyData(t, s);
|
|
4661
4662
|
}
|
|
4662
|
-
function
|
|
4663
|
+
function Qa(e, t) {
|
|
4663
4664
|
const n = {
|
|
4664
4665
|
type: "element",
|
|
4665
4666
|
tagName: "h" + t.depth,
|
|
@@ -4668,7 +4669,7 @@ function Xa(e, t) {
|
|
|
4668
4669
|
};
|
|
4669
4670
|
return e.patch(t, n), e.applyData(t, n);
|
|
4670
4671
|
}
|
|
4671
|
-
function
|
|
4672
|
+
function Ga(e, t) {
|
|
4672
4673
|
if (e.options.allowDangerousHtml) {
|
|
4673
4674
|
const n = { type: "raw", value: t.value };
|
|
4674
4675
|
return e.patch(t, n), e.applyData(t, n);
|
|
@@ -4684,7 +4685,7 @@ function Rr(e, t) {
|
|
|
4684
4685
|
const l = i[i.length - 1];
|
|
4685
4686
|
return l && l.type === "text" ? l.value += r : i.push({ type: "text", value: r }), i;
|
|
4686
4687
|
}
|
|
4687
|
-
function
|
|
4688
|
+
function Ka(e, t) {
|
|
4688
4689
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4689
4690
|
if (!r)
|
|
4690
4691
|
return Rr(e, t);
|
|
@@ -4693,13 +4694,13 @@ function Ga(e, t) {
|
|
|
4693
4694
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
4694
4695
|
return e.patch(t, o), e.applyData(t, o);
|
|
4695
4696
|
}
|
|
4696
|
-
function
|
|
4697
|
+
function Ja(e, t) {
|
|
4697
4698
|
const n = { src: _e(t.url) };
|
|
4698
4699
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4699
4700
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
4700
4701
|
return e.patch(t, r), e.applyData(t, r);
|
|
4701
4702
|
}
|
|
4702
|
-
function
|
|
4703
|
+
function Za(e, t) {
|
|
4703
4704
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
|
4704
4705
|
e.patch(t, n);
|
|
4705
4706
|
const r = {
|
|
@@ -4710,7 +4711,7 @@ function Ja(e, t) {
|
|
|
4710
4711
|
};
|
|
4711
4712
|
return e.patch(t, r), e.applyData(t, r);
|
|
4712
4713
|
}
|
|
4713
|
-
function
|
|
4714
|
+
function eu(e, t) {
|
|
4714
4715
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4715
4716
|
if (!r)
|
|
4716
4717
|
return Rr(e, t);
|
|
@@ -4724,7 +4725,7 @@ function Za(e, t) {
|
|
|
4724
4725
|
};
|
|
4725
4726
|
return e.patch(t, o), e.applyData(t, o);
|
|
4726
4727
|
}
|
|
4727
|
-
function
|
|
4728
|
+
function nu(e, t) {
|
|
4728
4729
|
const n = { href: _e(t.url) };
|
|
4729
4730
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4730
4731
|
const r = {
|
|
@@ -4735,8 +4736,8 @@ function eu(e, t) {
|
|
|
4735
4736
|
};
|
|
4736
4737
|
return e.patch(t, r), e.applyData(t, r);
|
|
4737
4738
|
}
|
|
4738
|
-
function
|
|
4739
|
-
const r = e.all(t), i = n ?
|
|
4739
|
+
function tu(e, t, n) {
|
|
4740
|
+
const r = e.all(t), i = n ? ru(n) : Or(t), o = {}, l = [];
|
|
4740
4741
|
if (typeof t.checked == "boolean") {
|
|
4741
4742
|
const f = r[0];
|
|
4742
4743
|
let c;
|
|
@@ -4759,7 +4760,7 @@ function nu(e, t, n) {
|
|
|
4759
4760
|
const s = { type: "element", tagName: "li", properties: o, children: l };
|
|
4760
4761
|
return e.patch(t, s), e.applyData(t, s);
|
|
4761
4762
|
}
|
|
4762
|
-
function
|
|
4763
|
+
function ru(e) {
|
|
4763
4764
|
let t = !1;
|
|
4764
4765
|
if (e.type === "list") {
|
|
4765
4766
|
t = e.spread || !1;
|
|
@@ -4774,7 +4775,7 @@ function Or(e) {
|
|
|
4774
4775
|
const t = e.spread;
|
|
4775
4776
|
return t ?? e.children.length > 1;
|
|
4776
4777
|
}
|
|
4777
|
-
function
|
|
4778
|
+
function iu(e, t) {
|
|
4778
4779
|
const n = {}, r = e.all(t);
|
|
4779
4780
|
let i = -1;
|
|
4780
4781
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
|
@@ -4792,7 +4793,7 @@ function ru(e, t) {
|
|
|
4792
4793
|
};
|
|
4793
4794
|
return e.patch(t, o), e.applyData(t, o);
|
|
4794
4795
|
}
|
|
4795
|
-
function
|
|
4796
|
+
function lu(e, t) {
|
|
4796
4797
|
const n = {
|
|
4797
4798
|
type: "element",
|
|
4798
4799
|
tagName: "p",
|
|
@@ -4801,11 +4802,11 @@ function iu(e, t) {
|
|
|
4801
4802
|
};
|
|
4802
4803
|
return e.patch(t, n), e.applyData(t, n);
|
|
4803
4804
|
}
|
|
4804
|
-
function
|
|
4805
|
+
function ou(e, t) {
|
|
4805
4806
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
|
4806
4807
|
return e.patch(t, n), e.applyData(t, n);
|
|
4807
4808
|
}
|
|
4808
|
-
function
|
|
4809
|
+
function au(e, t) {
|
|
4809
4810
|
const n = {
|
|
4810
4811
|
type: "element",
|
|
4811
4812
|
tagName: "strong",
|
|
@@ -4814,7 +4815,7 @@ function ou(e, t) {
|
|
|
4814
4815
|
};
|
|
4815
4816
|
return e.patch(t, n), e.applyData(t, n);
|
|
4816
4817
|
}
|
|
4817
|
-
function
|
|
4818
|
+
function uu(e, t) {
|
|
4818
4819
|
const n = e.all(t), r = n.shift(), i = [];
|
|
4819
4820
|
if (r) {
|
|
4820
4821
|
const l = {
|
|
@@ -4842,7 +4843,7 @@ function au(e, t) {
|
|
|
4842
4843
|
};
|
|
4843
4844
|
return e.patch(t, o), e.applyData(t, o);
|
|
4844
4845
|
}
|
|
4845
|
-
function
|
|
4846
|
+
function su(e, t, n) {
|
|
4846
4847
|
const r = n ? n.children : void 0, o = (r ? r.indexOf(t) : 1) === 0 ? "th" : "td", l = n && n.type === "table" ? n.align : void 0, a = l ? l.length : t.children.length;
|
|
4847
4848
|
let u = -1;
|
|
4848
4849
|
const s = [];
|
|
@@ -4860,7 +4861,7 @@ function uu(e, t, n) {
|
|
|
4860
4861
|
};
|
|
4861
4862
|
return e.patch(t, f), e.applyData(t, f);
|
|
4862
4863
|
}
|
|
4863
|
-
function
|
|
4864
|
+
function cu(e, t) {
|
|
4864
4865
|
const n = {
|
|
4865
4866
|
type: "element",
|
|
4866
4867
|
tagName: "td",
|
|
@@ -4871,7 +4872,7 @@ function su(e, t) {
|
|
|
4871
4872
|
return e.patch(t, n), e.applyData(t, n);
|
|
4872
4873
|
}
|
|
4873
4874
|
const Ft = 9, _t = 32;
|
|
4874
|
-
function
|
|
4875
|
+
function fu(e) {
|
|
4875
4876
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4876
4877
|
let r = n.exec(t), i = 0;
|
|
4877
4878
|
const o = [];
|
|
@@ -4896,11 +4897,11 @@ function Rt(e, t, n) {
|
|
|
4896
4897
|
}
|
|
4897
4898
|
return i > r ? e.slice(r, i) : "";
|
|
4898
4899
|
}
|
|
4899
|
-
function
|
|
4900
|
-
const n = { type: "text", value:
|
|
4900
|
+
function hu(e, t) {
|
|
4901
|
+
const n = { type: "text", value: fu(String(t.value)) };
|
|
4901
4902
|
return e.patch(t, n), e.applyData(t, n);
|
|
4902
4903
|
}
|
|
4903
|
-
function
|
|
4904
|
+
function pu(e, t) {
|
|
4904
4905
|
const n = {
|
|
4905
4906
|
type: "element",
|
|
4906
4907
|
tagName: "hr",
|
|
@@ -4909,39 +4910,39 @@ function hu(e, t) {
|
|
|
4909
4910
|
};
|
|
4910
4911
|
return e.patch(t, n), e.applyData(t, n);
|
|
4911
4912
|
}
|
|
4912
|
-
const
|
|
4913
|
-
blockquote:
|
|
4914
|
-
break:
|
|
4915
|
-
code:
|
|
4916
|
-
delete:
|
|
4917
|
-
emphasis:
|
|
4918
|
-
footnoteReference:
|
|
4919
|
-
heading:
|
|
4920
|
-
html:
|
|
4921
|
-
imageReference:
|
|
4922
|
-
image:
|
|
4923
|
-
inlineCode:
|
|
4924
|
-
linkReference:
|
|
4925
|
-
link:
|
|
4926
|
-
listItem:
|
|
4927
|
-
list:
|
|
4928
|
-
paragraph:
|
|
4913
|
+
const mu = {
|
|
4914
|
+
blockquote: Va,
|
|
4915
|
+
break: $a,
|
|
4916
|
+
code: qa,
|
|
4917
|
+
delete: Wa,
|
|
4918
|
+
emphasis: Ya,
|
|
4919
|
+
footnoteReference: Xa,
|
|
4920
|
+
heading: Qa,
|
|
4921
|
+
html: Ga,
|
|
4922
|
+
imageReference: Ka,
|
|
4923
|
+
image: Ja,
|
|
4924
|
+
inlineCode: Za,
|
|
4925
|
+
linkReference: eu,
|
|
4926
|
+
link: nu,
|
|
4927
|
+
listItem: tu,
|
|
4928
|
+
list: iu,
|
|
4929
|
+
paragraph: lu,
|
|
4929
4930
|
// @ts-expect-error: root is different, but hard to type.
|
|
4930
|
-
root:
|
|
4931
|
-
strong:
|
|
4932
|
-
table:
|
|
4933
|
-
tableCell:
|
|
4934
|
-
tableRow:
|
|
4935
|
-
text:
|
|
4936
|
-
thematicBreak:
|
|
4937
|
-
toml:
|
|
4938
|
-
yaml:
|
|
4939
|
-
definition:
|
|
4940
|
-
footnoteDefinition:
|
|
4931
|
+
root: ou,
|
|
4932
|
+
strong: au,
|
|
4933
|
+
table: uu,
|
|
4934
|
+
tableCell: cu,
|
|
4935
|
+
tableRow: su,
|
|
4936
|
+
text: hu,
|
|
4937
|
+
thematicBreak: pu,
|
|
4938
|
+
toml: Ge,
|
|
4939
|
+
yaml: Ge,
|
|
4940
|
+
definition: Ge,
|
|
4941
|
+
footnoteDefinition: Ge
|
|
4941
4942
|
};
|
|
4942
|
-
function
|
|
4943
|
+
function Ge() {
|
|
4943
4944
|
}
|
|
4944
|
-
const Mr = -1, fn = 0,
|
|
4945
|
+
const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, Br = 8, Ot = typeof self == "object" ? self : globalThis, gu = (e, t) => {
|
|
4945
4946
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4946
4947
|
if (e.has(i))
|
|
4947
4948
|
return e.get(i);
|
|
@@ -4950,7 +4951,7 @@ const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
4950
4951
|
case fn:
|
|
4951
4952
|
case Mr:
|
|
4952
4953
|
return n(l, i);
|
|
4953
|
-
case
|
|
4954
|
+
case Ve: {
|
|
4954
4955
|
const a = n([], i);
|
|
4955
4956
|
for (const u of l)
|
|
4956
4957
|
a.push(r(u));
|
|
@@ -4998,14 +4999,14 @@ const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
4998
4999
|
return n(new Ot[o](l), i);
|
|
4999
5000
|
};
|
|
5000
5001
|
return r;
|
|
5001
|
-
}, Mt = (e) =>
|
|
5002
|
+
}, Mt = (e) => gu(/* @__PURE__ */ new Map(), e)(0), ve = "", { toString: du } = {}, { keys: yu } = Object, Be = (e) => {
|
|
5002
5003
|
const t = typeof e;
|
|
5003
5004
|
if (t !== "object" || !e)
|
|
5004
5005
|
return [fn, t];
|
|
5005
|
-
const n =
|
|
5006
|
+
const n = du.call(e).slice(8, -1);
|
|
5006
5007
|
switch (n) {
|
|
5007
5008
|
case "Array":
|
|
5008
|
-
return [
|
|
5009
|
+
return [Ve, ve];
|
|
5009
5010
|
case "Object":
|
|
5010
5011
|
return [ln, ve];
|
|
5011
5012
|
case "Date":
|
|
@@ -5017,10 +5018,10 @@ const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5017
5018
|
case "Set":
|
|
5018
5019
|
return [et, ve];
|
|
5019
5020
|
case "DataView":
|
|
5020
|
-
return [
|
|
5021
|
+
return [Ve, n];
|
|
5021
5022
|
}
|
|
5022
|
-
return n.includes("Array") ? [
|
|
5023
|
-
},
|
|
5023
|
+
return n.includes("Array") ? [Ve, n] : n.includes("Error") ? [Nr, n] : [ln, n];
|
|
5024
|
+
}, Ke = ([e, t]) => e === fn && (t === "function" || t === "symbol"), ku = (e, t, n, r) => {
|
|
5024
5025
|
const i = (l, a) => {
|
|
5025
5026
|
const u = r.push(l) - 1;
|
|
5026
5027
|
return n.set(a, u), u;
|
|
@@ -5046,7 +5047,7 @@ const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5046
5047
|
}
|
|
5047
5048
|
return i([a, f], l);
|
|
5048
5049
|
}
|
|
5049
|
-
case
|
|
5050
|
+
case Ve: {
|
|
5050
5051
|
if (u) {
|
|
5051
5052
|
let p = l;
|
|
5052
5053
|
return u === "DataView" ? p = new Uint8Array(l.buffer) : u === "ArrayBuffer" && (p = new Uint8Array(l)), i([u, [...p]], l);
|
|
@@ -5069,8 +5070,8 @@ const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5069
5070
|
if (t && "toJSON" in l)
|
|
5070
5071
|
return o(l.toJSON());
|
|
5071
5072
|
const f = [], c = i([a, f], l);
|
|
5072
|
-
for (const p of
|
|
5073
|
-
(e || !
|
|
5073
|
+
for (const p of yu(l))
|
|
5074
|
+
(e || !Ke(Be(l[p]))) && f.push([o(p), o(l[p])]);
|
|
5074
5075
|
return c;
|
|
5075
5076
|
}
|
|
5076
5077
|
case Kn:
|
|
@@ -5082,13 +5083,13 @@ const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5082
5083
|
case Zn: {
|
|
5083
5084
|
const f = [], c = i([a, f], l);
|
|
5084
5085
|
for (const [p, h] of l)
|
|
5085
|
-
(e || !(
|
|
5086
|
+
(e || !(Ke(Be(p)) || Ke(Be(h)))) && f.push([o(p), o(h)]);
|
|
5086
5087
|
return c;
|
|
5087
5088
|
}
|
|
5088
5089
|
case et: {
|
|
5089
5090
|
const f = [], c = i([a, f], l);
|
|
5090
5091
|
for (const p of l)
|
|
5091
|
-
(e || !
|
|
5092
|
+
(e || !Ke(Be(p))) && f.push(o(p));
|
|
5092
5093
|
return c;
|
|
5093
5094
|
}
|
|
5094
5095
|
}
|
|
@@ -5098,12 +5099,12 @@ const Mr = -1, fn = 0, Ue = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5098
5099
|
return o;
|
|
5099
5100
|
}, Nt = (e, { json: t, lossy: n } = {}) => {
|
|
5100
5101
|
const r = [];
|
|
5101
|
-
return
|
|
5102
|
+
return ku(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5102
5103
|
}, on = typeof structuredClone == "function" ? (
|
|
5103
5104
|
/* c8 ignore start */
|
|
5104
5105
|
(e, t) => t && ("json" in t || "lossy" in t) ? Mt(Nt(e, t)) : structuredClone(e)
|
|
5105
5106
|
) : (e, t) => Mt(Nt(e, t));
|
|
5106
|
-
function
|
|
5107
|
+
function xu(e, t) {
|
|
5107
5108
|
const n = [{ type: "text", value: "↩" }];
|
|
5108
5109
|
return t > 1 && n.push({
|
|
5109
5110
|
type: "element",
|
|
@@ -5112,11 +5113,11 @@ function ku(e, t) {
|
|
|
5112
5113
|
children: [{ type: "text", value: String(t) }]
|
|
5113
5114
|
}), n;
|
|
5114
5115
|
}
|
|
5115
|
-
function
|
|
5116
|
+
function bu(e, t) {
|
|
5116
5117
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
5117
5118
|
}
|
|
5118
|
-
function
|
|
5119
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
5119
|
+
function wu(e) {
|
|
5120
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || xu, r = e.options.footnoteBackLabel || bu, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", l = e.options.footnoteLabelProperties || {
|
|
5120
5121
|
className: ["sr-only"]
|
|
5121
5122
|
}, a = [];
|
|
5122
5123
|
let u = -1;
|
|
@@ -5203,24 +5204,24 @@ const hn = (
|
|
|
5203
5204
|
*/
|
|
5204
5205
|
function(e) {
|
|
5205
5206
|
if (e == null)
|
|
5206
|
-
return
|
|
5207
|
+
return Iu;
|
|
5207
5208
|
if (typeof e == "function")
|
|
5208
5209
|
return pn(e);
|
|
5209
5210
|
if (typeof e == "object")
|
|
5210
|
-
return Array.isArray(e) ?
|
|
5211
|
+
return Array.isArray(e) ? Su(e) : (
|
|
5211
5212
|
// Cast because `ReadonlyArray` goes into the above but `isArray`
|
|
5212
5213
|
// narrows to `Array`.
|
|
5213
|
-
|
|
5214
|
+
Cu(
|
|
5214
5215
|
/** @type {Props} */
|
|
5215
5216
|
e
|
|
5216
5217
|
)
|
|
5217
5218
|
);
|
|
5218
5219
|
if (typeof e == "string")
|
|
5219
|
-
return
|
|
5220
|
+
return Eu(e);
|
|
5220
5221
|
throw new Error("Expected function, string, or object as test");
|
|
5221
5222
|
}
|
|
5222
5223
|
);
|
|
5223
|
-
function
|
|
5224
|
+
function Su(e) {
|
|
5224
5225
|
const t = [];
|
|
5225
5226
|
let n = -1;
|
|
5226
5227
|
for (; ++n < e.length; )
|
|
@@ -5233,7 +5234,7 @@ function wu(e) {
|
|
|
5233
5234
|
return !1;
|
|
5234
5235
|
}
|
|
5235
5236
|
}
|
|
5236
|
-
function
|
|
5237
|
+
function Cu(e) {
|
|
5237
5238
|
const t = (
|
|
5238
5239
|
/** @type {Record<string, unknown>} */
|
|
5239
5240
|
e
|
|
@@ -5251,7 +5252,7 @@ function Su(e) {
|
|
|
5251
5252
|
return !0;
|
|
5252
5253
|
}
|
|
5253
5254
|
}
|
|
5254
|
-
function
|
|
5255
|
+
function Eu(e) {
|
|
5255
5256
|
return pn(t);
|
|
5256
5257
|
function t(n) {
|
|
5257
5258
|
return n && n.type === e;
|
|
@@ -5260,7 +5261,7 @@ function Cu(e) {
|
|
|
5260
5261
|
function pn(e) {
|
|
5261
5262
|
return t;
|
|
5262
5263
|
function t(n, r, i) {
|
|
5263
|
-
return !!(
|
|
5264
|
+
return !!(Au(n) && e.call(
|
|
5264
5265
|
this,
|
|
5265
5266
|
n,
|
|
5266
5267
|
typeof r == "number" ? r : void 0,
|
|
@@ -5268,13 +5269,13 @@ function pn(e) {
|
|
|
5268
5269
|
));
|
|
5269
5270
|
}
|
|
5270
5271
|
}
|
|
5271
|
-
function
|
|
5272
|
+
function Iu() {
|
|
5272
5273
|
return !0;
|
|
5273
5274
|
}
|
|
5274
|
-
function
|
|
5275
|
+
function Au(e) {
|
|
5275
5276
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5276
5277
|
}
|
|
5277
|
-
const jr = [],
|
|
5278
|
+
const jr = [], Tu = !0, On = !1, Pu = "skip";
|
|
5278
5279
|
function Hr(e, t, n, r) {
|
|
5279
5280
|
let i;
|
|
5280
5281
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
@@ -5300,14 +5301,14 @@ function Hr(e, t, n, r) {
|
|
|
5300
5301
|
return p;
|
|
5301
5302
|
function p() {
|
|
5302
5303
|
let h = jr, d, x, C;
|
|
5303
|
-
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h =
|
|
5304
|
+
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = vu(n(u, f)), h[0] === On))
|
|
5304
5305
|
return h;
|
|
5305
5306
|
if ("children" in u && u.children) {
|
|
5306
5307
|
const y = (
|
|
5307
5308
|
/** @type {UnistParent} */
|
|
5308
5309
|
u
|
|
5309
5310
|
);
|
|
5310
|
-
if (y.children && h[0] !==
|
|
5311
|
+
if (y.children && h[0] !== Pu)
|
|
5311
5312
|
for (x = (r ? y.children.length : -1) + l, C = f.concat(y); x > -1 && x < y.children.length; ) {
|
|
5312
5313
|
const A = y.children[x];
|
|
5313
5314
|
if (d = a(A, x, C)(), d[0] === On)
|
|
@@ -5319,8 +5320,8 @@ function Hr(e, t, n, r) {
|
|
|
5319
5320
|
}
|
|
5320
5321
|
}
|
|
5321
5322
|
}
|
|
5322
|
-
function
|
|
5323
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
5323
|
+
function vu(e) {
|
|
5324
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [Tu, e] : e == null ? jr : [e];
|
|
5324
5325
|
}
|
|
5325
5326
|
function nt(e, t, n, r) {
|
|
5326
5327
|
let i, o, l;
|
|
@@ -5330,11 +5331,11 @@ function nt(e, t, n, r) {
|
|
|
5330
5331
|
return l(u, c, f);
|
|
5331
5332
|
}
|
|
5332
5333
|
}
|
|
5333
|
-
const Mn = {}.hasOwnProperty,
|
|
5334
|
-
function
|
|
5335
|
-
const n = t ||
|
|
5334
|
+
const Mn = {}.hasOwnProperty, zu = {};
|
|
5335
|
+
function Du(e, t) {
|
|
5336
|
+
const n = t || zu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...mu, ...n.handlers }, a = {
|
|
5336
5337
|
all: s,
|
|
5337
|
-
applyData:
|
|
5338
|
+
applyData: Fu,
|
|
5338
5339
|
definitionById: r,
|
|
5339
5340
|
footnoteById: i,
|
|
5340
5341
|
footnoteCounts: o,
|
|
@@ -5342,8 +5343,8 @@ function zu(e, t) {
|
|
|
5342
5343
|
handlers: l,
|
|
5343
5344
|
one: u,
|
|
5344
5345
|
options: n,
|
|
5345
|
-
patch:
|
|
5346
|
-
wrap:
|
|
5346
|
+
patch: Lu,
|
|
5347
|
+
wrap: Ru
|
|
5347
5348
|
};
|
|
5348
5349
|
return nt(e, function(f) {
|
|
5349
5350
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
@@ -5362,7 +5363,7 @@ function zu(e, t) {
|
|
|
5362
5363
|
}
|
|
5363
5364
|
return on(f);
|
|
5364
5365
|
}
|
|
5365
|
-
return (a.options.unknownHandler ||
|
|
5366
|
+
return (a.options.unknownHandler || _u)(a, f, c);
|
|
5366
5367
|
}
|
|
5367
5368
|
function s(f) {
|
|
5368
5369
|
const c = [];
|
|
@@ -5383,10 +5384,10 @@ function zu(e, t) {
|
|
|
5383
5384
|
return c;
|
|
5384
5385
|
}
|
|
5385
5386
|
}
|
|
5386
|
-
function Du(e, t) {
|
|
5387
|
-
e.position && (t.position = kl(e));
|
|
5388
|
-
}
|
|
5389
5387
|
function Lu(e, t) {
|
|
5388
|
+
e.position && (t.position = xl(e));
|
|
5389
|
+
}
|
|
5390
|
+
function Fu(e, t) {
|
|
5390
5391
|
let n = t;
|
|
5391
5392
|
if (e && e.data) {
|
|
5392
5393
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -5401,7 +5402,7 @@ function Lu(e, t) {
|
|
|
5401
5402
|
}
|
|
5402
5403
|
return n;
|
|
5403
5404
|
}
|
|
5404
|
-
function
|
|
5405
|
+
function _u(e, t) {
|
|
5405
5406
|
const n = t.data || {}, r = "value" in t && !(Mn.call(n, "hProperties") || Mn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5406
5407
|
type: "element",
|
|
5407
5408
|
tagName: "div",
|
|
@@ -5410,7 +5411,7 @@ function Fu(e, t) {
|
|
|
5410
5411
|
};
|
|
5411
5412
|
return e.patch(t, r), e.applyData(t, r);
|
|
5412
5413
|
}
|
|
5413
|
-
function
|
|
5414
|
+
function Ru(e, t) {
|
|
5414
5415
|
const n = [];
|
|
5415
5416
|
let r = -1;
|
|
5416
5417
|
for (t && n.push({ type: "text", value: `
|
|
@@ -5427,11 +5428,11 @@ function Bt(e) {
|
|
|
5427
5428
|
return e.slice(t);
|
|
5428
5429
|
}
|
|
5429
5430
|
function jt(e, t) {
|
|
5430
|
-
const n =
|
|
5431
|
+
const n = Du(e, t), r = n.one(e, void 0), i = wu(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5431
5432
|
return i && o.children.push({ type: "text", value: `
|
|
5432
5433
|
` }, i), o;
|
|
5433
5434
|
}
|
|
5434
|
-
function
|
|
5435
|
+
function Ou(e, t) {
|
|
5435
5436
|
return e && "run" in e ? async function(n, r) {
|
|
5436
5437
|
const i = (
|
|
5437
5438
|
/** @type {HastRoot} */
|
|
@@ -5449,18 +5450,18 @@ function Ht(e) {
|
|
|
5449
5450
|
if (e)
|
|
5450
5451
|
throw e;
|
|
5451
5452
|
}
|
|
5452
|
-
var
|
|
5453
|
+
var nn = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, $t = function(t) {
|
|
5453
5454
|
return typeof Array.isArray == "function" ? Array.isArray(t) : Ur.call(t) === "[object Array]";
|
|
5454
5455
|
}, qt = function(t) {
|
|
5455
5456
|
if (!t || Ur.call(t) !== "[object Object]")
|
|
5456
5457
|
return !1;
|
|
5457
|
-
var n =
|
|
5458
|
+
var n = nn.call(t, "constructor"), r = t.constructor && t.constructor.prototype && nn.call(t.constructor.prototype, "isPrototypeOf");
|
|
5458
5459
|
if (t.constructor && !n && !r)
|
|
5459
5460
|
return !1;
|
|
5460
5461
|
var i;
|
|
5461
5462
|
for (i in t)
|
|
5462
5463
|
;
|
|
5463
|
-
return typeof i > "u" ||
|
|
5464
|
+
return typeof i > "u" || nn.call(t, i);
|
|
5464
5465
|
}, Wt = function(t, n) {
|
|
5465
5466
|
Ut && n.name === "__proto__" ? Ut(t, n.name, {
|
|
5466
5467
|
enumerable: !0,
|
|
@@ -5470,12 +5471,12 @@ var en = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
|
|
|
5470
5471
|
}) : t[n.name] = n.newValue;
|
|
5471
5472
|
}, Yt = function(t, n) {
|
|
5472
5473
|
if (n === "__proto__")
|
|
5473
|
-
if (
|
|
5474
|
+
if (nn.call(t, n)) {
|
|
5474
5475
|
if (Vt)
|
|
5475
5476
|
return Vt(t, n).value;
|
|
5476
5477
|
} else return;
|
|
5477
5478
|
return t[n];
|
|
5478
|
-
},
|
|
5479
|
+
}, Mu = function e() {
|
|
5479
5480
|
var t, n, r, i, o, l, a = arguments[0], u = 1, s = arguments.length, f = !1;
|
|
5480
5481
|
for (typeof a == "boolean" && (f = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < s; ++u)
|
|
5481
5482
|
if (t = arguments[u], t != null)
|
|
@@ -5483,14 +5484,14 @@ var en = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
|
|
|
5483
5484
|
r = Yt(a, n), i = Yt(t, n), a !== i && (f && i && (qt(i) || (o = $t(i))) ? (o ? (o = !1, l = r && $t(r) ? r : []) : l = r && qt(r) ? r : {}, Wt(a, { name: n, newValue: e(f, l, i) })) : typeof i < "u" && Wt(a, { name: n, newValue: i }));
|
|
5484
5485
|
return a;
|
|
5485
5486
|
};
|
|
5486
|
-
const kn = /* @__PURE__ */ ar(
|
|
5487
|
+
const kn = /* @__PURE__ */ ar(Mu);
|
|
5487
5488
|
function Nn(e) {
|
|
5488
5489
|
if (typeof e != "object" || e === null)
|
|
5489
5490
|
return !1;
|
|
5490
5491
|
const t = Object.getPrototypeOf(e);
|
|
5491
5492
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5492
5493
|
}
|
|
5493
|
-
function
|
|
5494
|
+
function Nu() {
|
|
5494
5495
|
const e = [], t = { run: n, use: r };
|
|
5495
5496
|
return t;
|
|
5496
5497
|
function n(...i) {
|
|
@@ -5508,7 +5509,7 @@ function Mu() {
|
|
|
5508
5509
|
}
|
|
5509
5510
|
for (; ++c < i.length; )
|
|
5510
5511
|
(s[c] === null || s[c] === void 0) && (s[c] = i[c]);
|
|
5511
|
-
i = s, f ?
|
|
5512
|
+
i = s, f ? Bu(f, a)(...s) : l(null, ...s);
|
|
5512
5513
|
}
|
|
5513
5514
|
}
|
|
5514
5515
|
function r(i) {
|
|
@@ -5519,7 +5520,7 @@ function Mu() {
|
|
|
5519
5520
|
return e.push(i), t;
|
|
5520
5521
|
}
|
|
5521
5522
|
}
|
|
5522
|
-
function
|
|
5523
|
+
function Bu(e, t) {
|
|
5523
5524
|
let n;
|
|
5524
5525
|
return r;
|
|
5525
5526
|
function r(...l) {
|
|
@@ -5546,11 +5547,11 @@ function Nu(e, t) {
|
|
|
5546
5547
|
i(null, l);
|
|
5547
5548
|
}
|
|
5548
5549
|
}
|
|
5549
|
-
const ce = { basename:
|
|
5550
|
-
function
|
|
5550
|
+
const ce = { basename: ju, dirname: Hu, extname: Uu, join: Vu, sep: "/" };
|
|
5551
|
+
function ju(e, t) {
|
|
5551
5552
|
if (t !== void 0 && typeof t != "string")
|
|
5552
5553
|
throw new TypeError('"ext" argument must be a string');
|
|
5553
|
-
|
|
5554
|
+
Xe(e);
|
|
5554
5555
|
let n = 0, r = -1, i = e.length, o;
|
|
5555
5556
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
5556
5557
|
for (; i--; )
|
|
@@ -5575,8 +5576,8 @@ function Bu(e, t) {
|
|
|
5575
5576
|
l < 0 && (o = !0, l = i + 1), a > -1 && (e.codePointAt(i) === t.codePointAt(a--) ? a < 0 && (r = i) : (a = -1, r = l));
|
|
5576
5577
|
return n === r ? r = l : r < 0 && (r = e.length), e.slice(n, r);
|
|
5577
5578
|
}
|
|
5578
|
-
function
|
|
5579
|
-
if (
|
|
5579
|
+
function Hu(e) {
|
|
5580
|
+
if (Xe(e), e.length === 0)
|
|
5580
5581
|
return ".";
|
|
5581
5582
|
let t = -1, n = e.length, r;
|
|
5582
5583
|
for (; --n; )
|
|
@@ -5588,8 +5589,8 @@ function ju(e) {
|
|
|
5588
5589
|
} else r || (r = !0);
|
|
5589
5590
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
5590
5591
|
}
|
|
5591
|
-
function
|
|
5592
|
-
|
|
5592
|
+
function Uu(e) {
|
|
5593
|
+
Xe(e);
|
|
5593
5594
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, l;
|
|
5594
5595
|
for (; t--; ) {
|
|
5595
5596
|
const a = e.codePointAt(t);
|
|
@@ -5606,19 +5607,19 @@ function Hu(e) {
|
|
|
5606
5607
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
5607
5608
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
5608
5609
|
}
|
|
5609
|
-
function
|
|
5610
|
+
function Vu(...e) {
|
|
5610
5611
|
let t = -1, n;
|
|
5611
5612
|
for (; ++t < e.length; )
|
|
5612
|
-
|
|
5613
|
-
return n === void 0 ? "." :
|
|
5613
|
+
Xe(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
5614
|
+
return n === void 0 ? "." : $u(n);
|
|
5614
5615
|
}
|
|
5615
|
-
function
|
|
5616
|
-
|
|
5616
|
+
function $u(e) {
|
|
5617
|
+
Xe(e);
|
|
5617
5618
|
const t = e.codePointAt(0) === 47;
|
|
5618
|
-
let n =
|
|
5619
|
+
let n = qu(e, !t);
|
|
5619
5620
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
5620
5621
|
}
|
|
5621
|
-
function
|
|
5622
|
+
function qu(e, t) {
|
|
5622
5623
|
let n = "", r = 0, i = -1, o = 0, l = -1, a, u;
|
|
5623
5624
|
for (; ++l <= e.length; ) {
|
|
5624
5625
|
if (l < e.length)
|
|
@@ -5649,21 +5650,21 @@ function $u(e, t) {
|
|
|
5649
5650
|
}
|
|
5650
5651
|
return n;
|
|
5651
5652
|
}
|
|
5652
|
-
function
|
|
5653
|
+
function Xe(e) {
|
|
5653
5654
|
if (typeof e != "string")
|
|
5654
5655
|
throw new TypeError(
|
|
5655
5656
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
5656
5657
|
);
|
|
5657
5658
|
}
|
|
5658
|
-
const
|
|
5659
|
-
function
|
|
5659
|
+
const Wu = { cwd: Yu };
|
|
5660
|
+
function Yu() {
|
|
5660
5661
|
return "/";
|
|
5661
5662
|
}
|
|
5662
5663
|
function Bn(e) {
|
|
5663
5664
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5664
5665
|
e.auth === void 0);
|
|
5665
5666
|
}
|
|
5666
|
-
function
|
|
5667
|
+
function Xu(e) {
|
|
5667
5668
|
if (typeof e == "string")
|
|
5668
5669
|
e = new URL(e);
|
|
5669
5670
|
else if (!Bn(e)) {
|
|
@@ -5676,9 +5677,9 @@ function Yu(e) {
|
|
|
5676
5677
|
const t = new TypeError("The URL must be of scheme file");
|
|
5677
5678
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
5678
5679
|
}
|
|
5679
|
-
return
|
|
5680
|
+
return Qu(e);
|
|
5680
5681
|
}
|
|
5681
|
-
function
|
|
5682
|
+
function Qu(e) {
|
|
5682
5683
|
if (e.hostname !== "") {
|
|
5683
5684
|
const r = new TypeError(
|
|
5684
5685
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -5735,7 +5736,7 @@ class Vr {
|
|
|
5735
5736
|
*/
|
|
5736
5737
|
constructor(t) {
|
|
5737
5738
|
let n;
|
|
5738
|
-
t ? Bn(t) ? n = { path: t } : typeof t == "string" ||
|
|
5739
|
+
t ? Bn(t) ? n = { path: t } : typeof t == "string" || Gu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Wu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
5739
5740
|
let r = -1;
|
|
5740
5741
|
for (; ++r < xn.length; ) {
|
|
5741
5742
|
const o = xn[r];
|
|
@@ -5843,7 +5844,7 @@ class Vr {
|
|
|
5843
5844
|
* Nothing.
|
|
5844
5845
|
*/
|
|
5845
5846
|
set path(t) {
|
|
5846
|
-
Bn(t) && (t =
|
|
5847
|
+
Bn(t) && (t = Xu(t)), wn(t, "path"), this.path !== t && this.history.push(t);
|
|
5847
5848
|
}
|
|
5848
5849
|
/**
|
|
5849
5850
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6094,10 +6095,10 @@ function Xt(e, t) {
|
|
|
6094
6095
|
if (!e)
|
|
6095
6096
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6096
6097
|
}
|
|
6097
|
-
function
|
|
6098
|
+
function Gu(e) {
|
|
6098
6099
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6099
6100
|
}
|
|
6100
|
-
const
|
|
6101
|
+
const Ku = (
|
|
6101
6102
|
/**
|
|
6102
6103
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
6103
6104
|
*/
|
|
@@ -6118,13 +6119,13 @@ const Gu = (
|
|
|
6118
6119
|
};
|
|
6119
6120
|
return Object.setPrototypeOf(o, r), o;
|
|
6120
6121
|
}
|
|
6121
|
-
),
|
|
6122
|
-
class tt extends
|
|
6122
|
+
), Ju = {}.hasOwnProperty;
|
|
6123
|
+
class tt extends Ku {
|
|
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 = Nu();
|
|
6128
6129
|
}
|
|
6129
6130
|
/**
|
|
6130
6131
|
* Copy a processor.
|
|
@@ -6209,7 +6210,7 @@ class tt extends Gu {
|
|
|
6209
6210
|
* the entire dataset when getting without key.
|
|
6210
6211
|
*/
|
|
6211
6212
|
data(t, n) {
|
|
6212
|
-
return typeof t == "string" ? arguments.length === 2 ? (En("data", this.frozen), this.namespace[t] = n, this) :
|
|
6213
|
+
return typeof t == "string" ? arguments.length === 2 ? (En("data", this.frozen), this.namespace[t] = n, this) : Ju.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (En("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
6213
6214
|
}
|
|
6214
6215
|
/**
|
|
6215
6216
|
* Freeze a processor.
|
|
@@ -6262,7 +6263,7 @@ class tt extends Gu {
|
|
|
6262
6263
|
*/
|
|
6263
6264
|
parse(t) {
|
|
6264
6265
|
this.freeze();
|
|
6265
|
-
const n =
|
|
6266
|
+
const n = Je(t), r = this.parser || this.Parser;
|
|
6266
6267
|
return Sn("parse", r), r(String(n), n);
|
|
6267
6268
|
}
|
|
6268
6269
|
/**
|
|
@@ -6311,7 +6312,7 @@ class tt extends Gu {
|
|
|
6311
6312
|
const r = this;
|
|
6312
6313
|
return this.freeze(), Sn("process", this.parser || this.Parser), Cn("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
|
|
6313
6314
|
function i(o, l) {
|
|
6314
|
-
const a =
|
|
6315
|
+
const a = Je(t), u = (
|
|
6315
6316
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
6316
6317
|
/** @type {unknown} */
|
|
6317
6318
|
r.parse(a)
|
|
@@ -6324,7 +6325,7 @@ class tt extends Gu {
|
|
|
6324
6325
|
/** @type {unknown} */
|
|
6325
6326
|
c
|
|
6326
6327
|
), d = r.stringify(h, p);
|
|
6327
|
-
|
|
6328
|
+
ns(d) ? p.value = d : p.result = d, s(
|
|
6328
6329
|
f,
|
|
6329
6330
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
6330
6331
|
p
|
|
@@ -6416,7 +6417,7 @@ class tt extends Gu {
|
|
|
6416
6417
|
const i = this.transformers;
|
|
6417
6418
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
|
|
6418
6419
|
function o(l, a) {
|
|
6419
|
-
const u =
|
|
6420
|
+
const u = Je(n);
|
|
6420
6421
|
i.run(t, u, s);
|
|
6421
6422
|
function s(f, c, p) {
|
|
6422
6423
|
const h = (
|
|
@@ -6482,7 +6483,7 @@ class tt extends Gu {
|
|
|
6482
6483
|
*/
|
|
6483
6484
|
stringify(t, n) {
|
|
6484
6485
|
this.freeze();
|
|
6485
|
-
const r =
|
|
6486
|
+
const r = Je(n), i = this.compiler || this.Compiler;
|
|
6486
6487
|
return Cn("stringify", i), Qt(t), i(t, r);
|
|
6487
6488
|
}
|
|
6488
6489
|
/**
|
|
@@ -6600,7 +6601,7 @@ class tt extends Gu {
|
|
|
6600
6601
|
}
|
|
6601
6602
|
}
|
|
6602
6603
|
}
|
|
6603
|
-
const
|
|
6604
|
+
const Zu = new tt().freeze();
|
|
6604
6605
|
function Sn(e, t) {
|
|
6605
6606
|
if (typeof t != "function")
|
|
6606
6607
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -6625,19 +6626,19 @@ function Gt(e, t, n) {
|
|
|
6625
6626
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
6626
6627
|
);
|
|
6627
6628
|
}
|
|
6628
|
-
function
|
|
6629
|
-
return
|
|
6630
|
-
}
|
|
6631
|
-
function Zu(e) {
|
|
6632
|
-
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6629
|
+
function Je(e) {
|
|
6630
|
+
return es(e) ? e : new Vr(e);
|
|
6633
6631
|
}
|
|
6634
6632
|
function es(e) {
|
|
6635
|
-
return typeof e == "
|
|
6633
|
+
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
6636
6634
|
}
|
|
6637
6635
|
function ns(e) {
|
|
6636
|
+
return typeof e == "string" || ts(e);
|
|
6637
|
+
}
|
|
6638
|
+
function ts(e) {
|
|
6638
6639
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6639
6640
|
}
|
|
6640
|
-
const
|
|
6641
|
+
const rs = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Kt = [], Jt = { allowDangerousHtml: !0 }, is = /^(https?|ircs?|mailto|xmpp)$/i, ls = [
|
|
6641
6642
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
6642
6643
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
6643
6644
|
{
|
|
@@ -6671,27 +6672,27 @@ const ts = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
6671
6672
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
6672
6673
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
6673
6674
|
];
|
|
6674
|
-
function ls(e) {
|
|
6675
|
-
const t = os(e), n = as(e);
|
|
6676
|
-
return us(t.runSync(t.parse(n), n), e);
|
|
6677
|
-
}
|
|
6678
6675
|
function os(e) {
|
|
6679
|
-
const t = e
|
|
6680
|
-
return
|
|
6676
|
+
const t = as(e), n = us(e);
|
|
6677
|
+
return ss(t.runSync(t.parse(n), n), e);
|
|
6681
6678
|
}
|
|
6682
6679
|
function as(e) {
|
|
6680
|
+
const t = e.rehypePlugins || Kt, n = e.remarkPlugins || Kt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Jt } : Jt;
|
|
6681
|
+
return Zu().use(Ua).use(n).use(Ou, r).use(t);
|
|
6682
|
+
}
|
|
6683
|
+
function us(e) {
|
|
6683
6684
|
const t = e.children || "", n = new Vr();
|
|
6684
6685
|
return typeof t == "string" && (n.value = t), n;
|
|
6685
6686
|
}
|
|
6686
|
-
function
|
|
6687
|
-
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform ||
|
|
6688
|
-
for (const f of
|
|
6689
|
-
Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") +
|
|
6690
|
-
return nt(e, s),
|
|
6687
|
+
function ss(e, t) {
|
|
6688
|
+
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform || cs;
|
|
6689
|
+
for (const f of ls)
|
|
6690
|
+
Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + rs + f.id, void 0);
|
|
6691
|
+
return nt(e, s), El(e, {
|
|
6691
6692
|
Fragment: Ei,
|
|
6692
6693
|
components: i,
|
|
6693
6694
|
ignoreInvalidStyle: !0,
|
|
6694
|
-
jsx:
|
|
6695
|
+
jsx: je,
|
|
6695
6696
|
jsxs: Ci,
|
|
6696
6697
|
passKeys: !0,
|
|
6697
6698
|
passNode: !0
|
|
@@ -6714,13 +6715,13 @@ function us(e, t) {
|
|
|
6714
6715
|
}
|
|
6715
6716
|
}
|
|
6716
6717
|
}
|
|
6717
|
-
function
|
|
6718
|
+
function cs(e) {
|
|
6718
6719
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
6719
6720
|
return (
|
|
6720
6721
|
// If there is no protocol, it’s relative.
|
|
6721
6722
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
6722
6723
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
|
6723
|
-
|
|
6724
|
+
is.test(e.slice(0, t)) ? e : ""
|
|
6724
6725
|
);
|
|
6725
6726
|
}
|
|
6726
6727
|
function Zt(e, t) {
|
|
@@ -6732,13 +6733,13 @@ function Zt(e, t) {
|
|
|
6732
6733
|
r++, i = n.indexOf(t, i + t.length);
|
|
6733
6734
|
return r;
|
|
6734
6735
|
}
|
|
6735
|
-
function
|
|
6736
|
+
function fs(e) {
|
|
6736
6737
|
if (typeof e != "string")
|
|
6737
6738
|
throw new TypeError("Expected a string");
|
|
6738
6739
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
6739
6740
|
}
|
|
6740
6741
|
function $r(e, t, n) {
|
|
6741
|
-
const i = hn((n || {}).ignore || []), o =
|
|
6742
|
+
const i = hn((n || {}).ignore || []), o = hs(t);
|
|
6742
6743
|
let l = -1;
|
|
6743
6744
|
for (; ++l < o.length; )
|
|
6744
6745
|
Hr(e, "text", a);
|
|
@@ -6781,7 +6782,7 @@ function $r(e, t, n) {
|
|
|
6781
6782
|
return y ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(C, 1, ...A)) : A = [s], C + A.length;
|
|
6782
6783
|
}
|
|
6783
6784
|
}
|
|
6784
|
-
function
|
|
6785
|
+
function hs(e) {
|
|
6785
6786
|
const t = [];
|
|
6786
6787
|
if (!Array.isArray(e))
|
|
6787
6788
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -6789,37 +6790,37 @@ function fs(e) {
|
|
|
6789
6790
|
let r = -1;
|
|
6790
6791
|
for (; ++r < n.length; ) {
|
|
6791
6792
|
const i = n[r];
|
|
6792
|
-
t.push([
|
|
6793
|
+
t.push([ps(i[0]), ms(i[1])]);
|
|
6793
6794
|
}
|
|
6794
6795
|
return t;
|
|
6795
6796
|
}
|
|
6796
|
-
function hs(e) {
|
|
6797
|
-
return typeof e == "string" ? new RegExp(cs(e), "g") : e;
|
|
6798
|
-
}
|
|
6799
6797
|
function ps(e) {
|
|
6798
|
+
return typeof e == "string" ? new RegExp(fs(e), "g") : e;
|
|
6799
|
+
}
|
|
6800
|
+
function ms(e) {
|
|
6800
6801
|
return typeof e == "function" ? e : function() {
|
|
6801
6802
|
return e;
|
|
6802
6803
|
};
|
|
6803
6804
|
}
|
|
6804
6805
|
const In = "phrasing", An = ["autolink", "link", "image", "label"];
|
|
6805
|
-
function
|
|
6806
|
+
function gs() {
|
|
6806
6807
|
return {
|
|
6807
|
-
transforms: [
|
|
6808
|
+
transforms: [Ss],
|
|
6808
6809
|
enter: {
|
|
6809
|
-
literalAutolink:
|
|
6810
|
+
literalAutolink: ys,
|
|
6810
6811
|
literalAutolinkEmail: Tn,
|
|
6811
6812
|
literalAutolinkHttp: Tn,
|
|
6812
6813
|
literalAutolinkWww: Tn
|
|
6813
6814
|
},
|
|
6814
6815
|
exit: {
|
|
6815
|
-
literalAutolink:
|
|
6816
|
-
literalAutolinkEmail:
|
|
6817
|
-
literalAutolinkHttp:
|
|
6818
|
-
literalAutolinkWww:
|
|
6816
|
+
literalAutolink: ws,
|
|
6817
|
+
literalAutolinkEmail: bs,
|
|
6818
|
+
literalAutolinkHttp: ks,
|
|
6819
|
+
literalAutolinkWww: xs
|
|
6819
6820
|
}
|
|
6820
6821
|
};
|
|
6821
6822
|
}
|
|
6822
|
-
function
|
|
6823
|
+
function ds() {
|
|
6823
6824
|
return {
|
|
6824
6825
|
unsafe: [
|
|
6825
6826
|
{
|
|
@@ -6846,41 +6847,41 @@ function gs() {
|
|
|
6846
6847
|
]
|
|
6847
6848
|
};
|
|
6848
6849
|
}
|
|
6849
|
-
function
|
|
6850
|
+
function ys(e) {
|
|
6850
6851
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
6851
6852
|
}
|
|
6852
6853
|
function Tn(e) {
|
|
6853
6854
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
6854
6855
|
}
|
|
6855
|
-
function
|
|
6856
|
+
function ks(e) {
|
|
6856
6857
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
6857
6858
|
}
|
|
6858
|
-
function
|
|
6859
|
+
function xs(e) {
|
|
6859
6860
|
this.config.exit.data.call(this, e);
|
|
6860
6861
|
const t = this.stack[this.stack.length - 1];
|
|
6861
6862
|
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
6862
6863
|
}
|
|
6863
|
-
function
|
|
6864
|
+
function bs(e) {
|
|
6864
6865
|
this.config.exit.autolinkEmail.call(this, e);
|
|
6865
6866
|
}
|
|
6866
|
-
function
|
|
6867
|
+
function ws(e) {
|
|
6867
6868
|
this.exit(e);
|
|
6868
6869
|
}
|
|
6869
|
-
function
|
|
6870
|
+
function Ss(e) {
|
|
6870
6871
|
$r(
|
|
6871
6872
|
e,
|
|
6872
6873
|
[
|
|
6873
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
6874
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
|
6874
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Cs],
|
|
6875
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Es]
|
|
6875
6876
|
],
|
|
6876
6877
|
{ ignore: ["link", "linkReference"] }
|
|
6877
6878
|
);
|
|
6878
6879
|
}
|
|
6879
|
-
function
|
|
6880
|
+
function Cs(e, t, n, r, i) {
|
|
6880
6881
|
let o = "";
|
|
6881
|
-
if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !
|
|
6882
|
+
if (!qr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Is(n)))
|
|
6882
6883
|
return !1;
|
|
6883
|
-
const l =
|
|
6884
|
+
const l = As(n + r);
|
|
6884
6885
|
if (!l[0]) return !1;
|
|
6885
6886
|
const a = {
|
|
6886
6887
|
type: "link",
|
|
@@ -6890,7 +6891,7 @@ function Ss(e, t, n, r, i) {
|
|
|
6890
6891
|
};
|
|
6891
6892
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
6892
6893
|
}
|
|
6893
|
-
function
|
|
6894
|
+
function Es(e, t, n, r) {
|
|
6894
6895
|
return (
|
|
6895
6896
|
// Not an expected previous character.
|
|
6896
6897
|
!qr(r, !0) || // Label ends in not allowed character.
|
|
@@ -6902,11 +6903,11 @@ function Cs(e, t, n, r) {
|
|
|
6902
6903
|
}
|
|
6903
6904
|
);
|
|
6904
6905
|
}
|
|
6905
|
-
function
|
|
6906
|
+
function Is(e) {
|
|
6906
6907
|
const t = e.split(".");
|
|
6907
6908
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
6908
6909
|
}
|
|
6909
|
-
function
|
|
6910
|
+
function As(e) {
|
|
6910
6911
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
6911
6912
|
if (!t)
|
|
6912
6913
|
return [e, void 0];
|
|
@@ -6923,41 +6924,41 @@ function qr(e, t) {
|
|
|
6923
6924
|
return (e.index === 0 || Ee(n) || sn(n)) && // If it’s an email, the previous character should not be a slash.
|
|
6924
6925
|
(!t || n !== 47);
|
|
6925
6926
|
}
|
|
6926
|
-
Wr.peek =
|
|
6927
|
-
function
|
|
6927
|
+
Wr.peek = Rs;
|
|
6928
|
+
function Ts() {
|
|
6928
6929
|
this.buffer();
|
|
6929
6930
|
}
|
|
6930
|
-
function
|
|
6931
|
+
function Ps(e) {
|
|
6931
6932
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
6932
6933
|
}
|
|
6933
|
-
function
|
|
6934
|
+
function vs() {
|
|
6934
6935
|
this.buffer();
|
|
6935
6936
|
}
|
|
6936
|
-
function
|
|
6937
|
+
function zs(e) {
|
|
6937
6938
|
this.enter(
|
|
6938
6939
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
6939
6940
|
e
|
|
6940
6941
|
);
|
|
6941
6942
|
}
|
|
6942
|
-
function
|
|
6943
|
+
function Ds(e) {
|
|
6943
6944
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6944
6945
|
n.type, n.identifier = se(
|
|
6945
6946
|
this.sliceSerialize(e)
|
|
6946
6947
|
).toLowerCase(), n.label = t;
|
|
6947
6948
|
}
|
|
6948
|
-
function
|
|
6949
|
+
function Ls(e) {
|
|
6949
6950
|
this.exit(e);
|
|
6950
6951
|
}
|
|
6951
|
-
function
|
|
6952
|
+
function Fs(e) {
|
|
6952
6953
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6953
6954
|
n.type, n.identifier = se(
|
|
6954
6955
|
this.sliceSerialize(e)
|
|
6955
6956
|
).toLowerCase(), n.label = t;
|
|
6956
6957
|
}
|
|
6957
|
-
function
|
|
6958
|
+
function _s(e) {
|
|
6958
6959
|
this.exit(e);
|
|
6959
6960
|
}
|
|
6960
|
-
function
|
|
6961
|
+
function Rs() {
|
|
6961
6962
|
return "[";
|
|
6962
6963
|
}
|
|
6963
6964
|
function Wr(e, t, n, r) {
|
|
@@ -6968,23 +6969,23 @@ function Wr(e, t, n, r) {
|
|
|
6968
6969
|
n.safe(n.associationId(e), { after: "]", before: o })
|
|
6969
6970
|
), a(), l(), o += i.move("]"), o;
|
|
6970
6971
|
}
|
|
6971
|
-
function
|
|
6972
|
+
function Os() {
|
|
6972
6973
|
return {
|
|
6973
6974
|
enter: {
|
|
6974
|
-
gfmFootnoteCallString:
|
|
6975
|
-
gfmFootnoteCall:
|
|
6976
|
-
gfmFootnoteDefinitionLabelString:
|
|
6977
|
-
gfmFootnoteDefinition:
|
|
6975
|
+
gfmFootnoteCallString: Ts,
|
|
6976
|
+
gfmFootnoteCall: Ps,
|
|
6977
|
+
gfmFootnoteDefinitionLabelString: vs,
|
|
6978
|
+
gfmFootnoteDefinition: zs
|
|
6978
6979
|
},
|
|
6979
6980
|
exit: {
|
|
6980
|
-
gfmFootnoteCallString:
|
|
6981
|
-
gfmFootnoteCall:
|
|
6982
|
-
gfmFootnoteDefinitionLabelString:
|
|
6983
|
-
gfmFootnoteDefinition:
|
|
6981
|
+
gfmFootnoteCallString: Ds,
|
|
6982
|
+
gfmFootnoteCall: Ls,
|
|
6983
|
+
gfmFootnoteDefinitionLabelString: Fs,
|
|
6984
|
+
gfmFootnoteDefinition: _s
|
|
6984
6985
|
}
|
|
6985
6986
|
};
|
|
6986
6987
|
}
|
|
6987
|
-
function
|
|
6988
|
+
function Ms(e) {
|
|
6988
6989
|
let t = !1;
|
|
6989
6990
|
return e && e.firstLineBlank && (t = !0), {
|
|
6990
6991
|
handlers: { footnoteDefinition: n, footnoteReference: Wr },
|
|
@@ -7001,18 +7002,18 @@ function Os(e) {
|
|
|
7001
7002
|
(t ? `
|
|
7002
7003
|
` : " ") + o.indentLines(
|
|
7003
7004
|
o.containerFlow(r, a.current()),
|
|
7004
|
-
t ? Yr :
|
|
7005
|
+
t ? Yr : Ns
|
|
7005
7006
|
)
|
|
7006
7007
|
)), s(), u;
|
|
7007
7008
|
}
|
|
7008
7009
|
}
|
|
7009
|
-
function
|
|
7010
|
+
function Ns(e, t, n) {
|
|
7010
7011
|
return t === 0 ? e : Yr(e, t, n);
|
|
7011
7012
|
}
|
|
7012
7013
|
function Yr(e, t, n) {
|
|
7013
7014
|
return (n ? "" : " ") + e;
|
|
7014
7015
|
}
|
|
7015
|
-
const
|
|
7016
|
+
const Bs = [
|
|
7016
7017
|
"autolink",
|
|
7017
7018
|
"destinationLiteral",
|
|
7018
7019
|
"destinationRaw",
|
|
@@ -7020,30 +7021,30 @@ const Ns = [
|
|
|
7020
7021
|
"titleQuote",
|
|
7021
7022
|
"titleApostrophe"
|
|
7022
7023
|
];
|
|
7023
|
-
Xr.peek =
|
|
7024
|
-
function
|
|
7024
|
+
Xr.peek = $s;
|
|
7025
|
+
function js() {
|
|
7025
7026
|
return {
|
|
7026
7027
|
canContainEols: ["delete"],
|
|
7027
|
-
enter: { strikethrough:
|
|
7028
|
-
exit: { strikethrough:
|
|
7028
|
+
enter: { strikethrough: Us },
|
|
7029
|
+
exit: { strikethrough: Vs }
|
|
7029
7030
|
};
|
|
7030
7031
|
}
|
|
7031
|
-
function
|
|
7032
|
+
function Hs() {
|
|
7032
7033
|
return {
|
|
7033
7034
|
unsafe: [
|
|
7034
7035
|
{
|
|
7035
7036
|
character: "~",
|
|
7036
7037
|
inConstruct: "phrasing",
|
|
7037
|
-
notInConstruct:
|
|
7038
|
+
notInConstruct: Bs
|
|
7038
7039
|
}
|
|
7039
7040
|
],
|
|
7040
7041
|
handlers: { delete: Xr }
|
|
7041
7042
|
};
|
|
7042
7043
|
}
|
|
7043
|
-
function
|
|
7044
|
+
function Us(e) {
|
|
7044
7045
|
this.enter({ type: "delete", children: [] }, e);
|
|
7045
7046
|
}
|
|
7046
|
-
function
|
|
7047
|
+
function Vs(e) {
|
|
7047
7048
|
this.exit(e);
|
|
7048
7049
|
}
|
|
7049
7050
|
function Xr(e, t, n, r) {
|
|
@@ -7055,20 +7056,20 @@ function Xr(e, t, n, r) {
|
|
|
7055
7056
|
after: "~"
|
|
7056
7057
|
}), l += i.move("~~"), o(), l;
|
|
7057
7058
|
}
|
|
7058
|
-
function
|
|
7059
|
+
function $s() {
|
|
7059
7060
|
return "~";
|
|
7060
7061
|
}
|
|
7061
|
-
function
|
|
7062
|
+
function qs(e) {
|
|
7062
7063
|
return e.length;
|
|
7063
7064
|
}
|
|
7064
|
-
function
|
|
7065
|
-
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength ||
|
|
7065
|
+
function Ws(e, t) {
|
|
7066
|
+
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || qs, o = [], l = [], a = [], u = [];
|
|
7066
7067
|
let s = 0, f = -1;
|
|
7067
7068
|
for (; ++f < e.length; ) {
|
|
7068
7069
|
const x = [], C = [];
|
|
7069
7070
|
let y = -1;
|
|
7070
7071
|
for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
|
|
7071
|
-
const A =
|
|
7072
|
+
const A = Ys(e[f][y]);
|
|
7072
7073
|
if (n.alignDelimiters !== !1) {
|
|
7073
7074
|
const E = i(A);
|
|
7074
7075
|
C[y] = E, (u[y] === void 0 || E > u[y]) && (u[y] = E);
|
|
@@ -7123,26 +7124,26 @@ function qs(e, t) {
|
|
|
7123
7124
|
return d.join(`
|
|
7124
7125
|
`);
|
|
7125
7126
|
}
|
|
7126
|
-
function
|
|
7127
|
+
function Ys(e) {
|
|
7127
7128
|
return e == null ? "" : String(e);
|
|
7128
7129
|
}
|
|
7129
7130
|
function er(e) {
|
|
7130
7131
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7131
7132
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7132
7133
|
}
|
|
7133
|
-
function
|
|
7134
|
+
function Xs(e, t, n, r) {
|
|
7134
7135
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
7135
7136
|
o.move("> "), o.shift(2);
|
|
7136
7137
|
const l = n.indentLines(
|
|
7137
7138
|
n.containerFlow(e, o.current()),
|
|
7138
|
-
|
|
7139
|
+
Qs
|
|
7139
7140
|
);
|
|
7140
7141
|
return i(), l;
|
|
7141
7142
|
}
|
|
7142
|
-
function
|
|
7143
|
+
function Qs(e, t, n) {
|
|
7143
7144
|
return ">" + (n ? "" : " ") + e;
|
|
7144
7145
|
}
|
|
7145
|
-
function
|
|
7146
|
+
function Gs(e, t) {
|
|
7146
7147
|
return nr(e, t.inConstruct, !0) && !nr(e, t.notInConstruct, !1);
|
|
7147
7148
|
}
|
|
7148
7149
|
function nr(e, t, n) {
|
|
@@ -7158,12 +7159,12 @@ function tr(e, t, n, r) {
|
|
|
7158
7159
|
let i = -1;
|
|
7159
7160
|
for (; ++i < n.unsafe.length; )
|
|
7160
7161
|
if (n.unsafe[i].character === `
|
|
7161
|
-
` &&
|
|
7162
|
+
` && Gs(n.stack, n.unsafe[i]))
|
|
7162
7163
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
7163
7164
|
return `\\
|
|
7164
7165
|
`;
|
|
7165
7166
|
}
|
|
7166
|
-
function
|
|
7167
|
+
function Ks(e, t) {
|
|
7167
7168
|
const n = String(e);
|
|
7168
7169
|
let r = n.indexOf(t), i = r, o = 0, l = 0;
|
|
7169
7170
|
if (typeof t != "string")
|
|
@@ -7172,13 +7173,13 @@ function Gs(e, t) {
|
|
|
7172
7173
|
r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
7173
7174
|
return l;
|
|
7174
7175
|
}
|
|
7175
|
-
function
|
|
7176
|
+
function Js(e, t) {
|
|
7176
7177
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
7177
7178
|
!e.lang && // And there’s a non-whitespace character…
|
|
7178
7179
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
7179
7180
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
7180
7181
|
}
|
|
7181
|
-
function
|
|
7182
|
+
function Zs(e) {
|
|
7182
7183
|
const t = e.options.fence || "`";
|
|
7183
7184
|
if (t !== "`" && t !== "~")
|
|
7184
7185
|
throw new Error(
|
|
@@ -7186,13 +7187,13 @@ function Js(e) {
|
|
|
7186
7187
|
);
|
|
7187
7188
|
return t;
|
|
7188
7189
|
}
|
|
7189
|
-
function
|
|
7190
|
-
const i =
|
|
7191
|
-
if (
|
|
7192
|
-
const c = n.enter("codeIndented"), p = n.indentLines(o,
|
|
7190
|
+
function ec(e, t, n, r) {
|
|
7191
|
+
const i = Zs(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
7192
|
+
if (Js(e, n)) {
|
|
7193
|
+
const c = n.enter("codeIndented"), p = n.indentLines(o, nc);
|
|
7193
7194
|
return c(), p;
|
|
7194
7195
|
}
|
|
7195
|
-
const a = n.createTracker(r), u = i.repeat(Math.max(
|
|
7196
|
+
const a = n.createTracker(r), u = i.repeat(Math.max(Ks(o, i) + 1, 3)), s = n.enter("codeFenced");
|
|
7196
7197
|
let f = a.move(u);
|
|
7197
7198
|
if (e.lang) {
|
|
7198
7199
|
const c = n.enter(`codeFencedLang${l}`);
|
|
@@ -7221,7 +7222,7 @@ function Zs(e, t, n, r) {
|
|
|
7221
7222
|
`), o && (f += a.move(o + `
|
|
7222
7223
|
`)), f += a.move(u), s(), f;
|
|
7223
7224
|
}
|
|
7224
|
-
function
|
|
7225
|
+
function nc(e, t, n) {
|
|
7225
7226
|
return (n ? "" : " ") + e;
|
|
7226
7227
|
}
|
|
7227
7228
|
function rt(e) {
|
|
@@ -7232,7 +7233,7 @@ function rt(e) {
|
|
|
7232
7233
|
);
|
|
7233
7234
|
return t;
|
|
7234
7235
|
}
|
|
7235
|
-
function
|
|
7236
|
+
function tc(e, t, n, r) {
|
|
7236
7237
|
const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
|
|
7237
7238
|
let a = n.enter("label");
|
|
7238
7239
|
const u = n.createTracker(r);
|
|
@@ -7262,7 +7263,7 @@ function nc(e, t, n, r) {
|
|
|
7262
7263
|
})
|
|
7263
7264
|
), s += u.move(i), a()), l(), s;
|
|
7264
7265
|
}
|
|
7265
|
-
function
|
|
7266
|
+
function rc(e) {
|
|
7266
7267
|
const t = e.options.emphasis || "*";
|
|
7267
7268
|
if (t !== "*" && t !== "_")
|
|
7268
7269
|
throw new Error(
|
|
@@ -7270,7 +7271,7 @@ function tc(e) {
|
|
|
7270
7271
|
);
|
|
7271
7272
|
return t;
|
|
7272
7273
|
}
|
|
7273
|
-
function
|
|
7274
|
+
function qe(e) {
|
|
7274
7275
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
7275
7276
|
}
|
|
7276
7277
|
function an(e, t, n) {
|
|
@@ -7306,9 +7307,9 @@ function an(e, t, n) {
|
|
|
7306
7307
|
{ inside: !1, outside: !1 }
|
|
7307
7308
|
);
|
|
7308
7309
|
}
|
|
7309
|
-
Qr.peek =
|
|
7310
|
+
Qr.peek = ic;
|
|
7310
7311
|
function Qr(e, t, n, r) {
|
|
7311
|
-
const i =
|
|
7312
|
+
const i = rc(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
|
|
7312
7313
|
let u = l.move(
|
|
7313
7314
|
n.containerPhrasing(e, {
|
|
7314
7315
|
after: i,
|
|
@@ -7321,28 +7322,28 @@ function Qr(e, t, n, r) {
|
|
|
7321
7322
|
s,
|
|
7322
7323
|
i
|
|
7323
7324
|
);
|
|
7324
|
-
f.inside && (u =
|
|
7325
|
+
f.inside && (u = qe(s) + u.slice(1));
|
|
7325
7326
|
const c = u.charCodeAt(u.length - 1), p = an(r.after.charCodeAt(0), c, i);
|
|
7326
|
-
p.inside && (u = u.slice(0, -1) +
|
|
7327
|
+
p.inside && (u = u.slice(0, -1) + qe(c));
|
|
7327
7328
|
const h = l.move(i);
|
|
7328
7329
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
7329
7330
|
after: p.outside,
|
|
7330
7331
|
before: f.outside
|
|
7331
7332
|
}, a + u + h;
|
|
7332
7333
|
}
|
|
7333
|
-
function
|
|
7334
|
+
function ic(e, t, n) {
|
|
7334
7335
|
return n.options.emphasis || "*";
|
|
7335
7336
|
}
|
|
7336
|
-
function
|
|
7337
|
+
function lc(e, t) {
|
|
7337
7338
|
let n = !1;
|
|
7338
7339
|
return nt(e, function(r) {
|
|
7339
7340
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7340
7341
|
return n = !0, On;
|
|
7341
7342
|
}), !!((!e.depth || e.depth < 3) && Xn(e) && (t.options.setext || n));
|
|
7342
7343
|
}
|
|
7343
|
-
function
|
|
7344
|
+
function oc(e, t, n, r) {
|
|
7344
7345
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
7345
|
-
if (
|
|
7346
|
+
if (lc(e, n)) {
|
|
7346
7347
|
const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
|
|
7347
7348
|
...o.current(),
|
|
7348
7349
|
before: `
|
|
@@ -7367,16 +7368,16 @@ function lc(e, t, n, r) {
|
|
|
7367
7368
|
`,
|
|
7368
7369
|
...o.current()
|
|
7369
7370
|
});
|
|
7370
|
-
return /^[\t ]/.test(s) && (s =
|
|
7371
|
+
return /^[\t ]/.test(s) && (s = qe(s.charCodeAt(0)) + s.slice(1)), s = s ? l + " " + s : l, n.options.closeAtx && (s += " " + l), u(), a(), s;
|
|
7371
7372
|
}
|
|
7372
|
-
Gr.peek =
|
|
7373
|
+
Gr.peek = ac;
|
|
7373
7374
|
function Gr(e) {
|
|
7374
7375
|
return e.value || "";
|
|
7375
7376
|
}
|
|
7376
|
-
function
|
|
7377
|
+
function ac() {
|
|
7377
7378
|
return "<";
|
|
7378
7379
|
}
|
|
7379
|
-
Kr.peek =
|
|
7380
|
+
Kr.peek = uc;
|
|
7380
7381
|
function Kr(e, t, n, r) {
|
|
7381
7382
|
const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
|
|
7382
7383
|
let a = n.enter("label");
|
|
@@ -7402,10 +7403,10 @@ function Kr(e, t, n, r) {
|
|
|
7402
7403
|
})
|
|
7403
7404
|
), s += u.move(i), a()), s += u.move(")"), l(), s;
|
|
7404
7405
|
}
|
|
7405
|
-
function
|
|
7406
|
+
function uc() {
|
|
7406
7407
|
return "!";
|
|
7407
7408
|
}
|
|
7408
|
-
Jr.peek =
|
|
7409
|
+
Jr.peek = sc;
|
|
7409
7410
|
function Jr(e, t, n, r) {
|
|
7410
7411
|
const i = e.referenceType, o = n.enter("imageReference");
|
|
7411
7412
|
let l = n.enter("label");
|
|
@@ -7426,10 +7427,10 @@ function Jr(e, t, n, r) {
|
|
|
7426
7427
|
});
|
|
7427
7428
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
7428
7429
|
}
|
|
7429
|
-
function
|
|
7430
|
+
function sc() {
|
|
7430
7431
|
return "!";
|
|
7431
7432
|
}
|
|
7432
|
-
Zr.peek =
|
|
7433
|
+
Zr.peek = cc;
|
|
7433
7434
|
function Zr(e, t, n) {
|
|
7434
7435
|
let r = e.value || "", i = "`", o = -1;
|
|
7435
7436
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
@@ -7445,7 +7446,7 @@ function Zr(e, t, n) {
|
|
|
7445
7446
|
}
|
|
7446
7447
|
return i + r + i;
|
|
7447
7448
|
}
|
|
7448
|
-
function
|
|
7449
|
+
function cc() {
|
|
7449
7450
|
return "`";
|
|
7450
7451
|
}
|
|
7451
7452
|
function ei(e, t) {
|
|
@@ -7459,7 +7460,7 @@ function ei(e, t) {
|
|
|
7459
7460
|
// references don’t work), space, or angle brackets…
|
|
7460
7461
|
!/[\0- <>\u007F]/.test(e.url));
|
|
7461
7462
|
}
|
|
7462
|
-
ni.peek =
|
|
7463
|
+
ni.peek = fc;
|
|
7463
7464
|
function ni(e, t, n, r) {
|
|
7464
7465
|
const i = rt(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
|
|
7465
7466
|
let a, u;
|
|
@@ -7501,10 +7502,10 @@ function ni(e, t, n, r) {
|
|
|
7501
7502
|
})
|
|
7502
7503
|
), s += l.move(i), u()), s += l.move(")"), a(), s;
|
|
7503
7504
|
}
|
|
7504
|
-
function
|
|
7505
|
+
function fc(e, t, n) {
|
|
7505
7506
|
return ei(e, n) ? "<" : "[";
|
|
7506
7507
|
}
|
|
7507
|
-
ti.peek =
|
|
7508
|
+
ti.peek = hc;
|
|
7508
7509
|
function ti(e, t, n, r) {
|
|
7509
7510
|
const i = e.referenceType, o = n.enter("linkReference");
|
|
7510
7511
|
let l = n.enter("label");
|
|
@@ -7525,7 +7526,7 @@ function ti(e, t, n, r) {
|
|
|
7525
7526
|
});
|
|
7526
7527
|
return l(), n.stack = f, o(), i === "full" || !s || s !== c ? u += a.move(c + "]") : i === "shortcut" ? u = u.slice(0, -1) : u += a.move("]"), u;
|
|
7527
7528
|
}
|
|
7528
|
-
function
|
|
7529
|
+
function hc() {
|
|
7529
7530
|
return "[";
|
|
7530
7531
|
}
|
|
7531
7532
|
function it(e) {
|
|
@@ -7536,7 +7537,7 @@ function it(e) {
|
|
|
7536
7537
|
);
|
|
7537
7538
|
return t;
|
|
7538
7539
|
}
|
|
7539
|
-
function
|
|
7540
|
+
function pc(e) {
|
|
7540
7541
|
const t = it(e), n = e.options.bulletOther;
|
|
7541
7542
|
if (!n)
|
|
7542
7543
|
return t === "*" ? "-" : "*";
|
|
@@ -7550,7 +7551,7 @@ function hc(e) {
|
|
|
7550
7551
|
);
|
|
7551
7552
|
return n;
|
|
7552
7553
|
}
|
|
7553
|
-
function
|
|
7554
|
+
function mc(e) {
|
|
7554
7555
|
const t = e.options.bulletOrdered || ".";
|
|
7555
7556
|
if (t !== "." && t !== ")")
|
|
7556
7557
|
throw new Error(
|
|
@@ -7566,10 +7567,10 @@ function ri(e) {
|
|
|
7566
7567
|
);
|
|
7567
7568
|
return t;
|
|
7568
7569
|
}
|
|
7569
|
-
function
|
|
7570
|
+
function gc(e, t, n, r) {
|
|
7570
7571
|
const i = n.enter("list"), o = n.bulletCurrent;
|
|
7571
|
-
let l = e.ordered ?
|
|
7572
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
7572
|
+
let l = e.ordered ? mc(n) : it(n);
|
|
7573
|
+
const a = e.ordered ? l === "." ? ")" : "." : pc(n);
|
|
7573
7574
|
let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
|
|
7574
7575
|
if (!e.ordered) {
|
|
7575
7576
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -7594,7 +7595,7 @@ function mc(e, t, n, r) {
|
|
|
7594
7595
|
const s = n.containerFlow(e, r);
|
|
7595
7596
|
return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
|
|
7596
7597
|
}
|
|
7597
|
-
function
|
|
7598
|
+
function dc(e) {
|
|
7598
7599
|
const t = e.options.listItemIndent || "one";
|
|
7599
7600
|
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
7600
7601
|
throw new Error(
|
|
@@ -7602,8 +7603,8 @@ function gc(e) {
|
|
|
7602
7603
|
);
|
|
7603
7604
|
return t;
|
|
7604
7605
|
}
|
|
7605
|
-
function
|
|
7606
|
-
const i =
|
|
7606
|
+
function yc(e, t, n, r) {
|
|
7607
|
+
const i = dc(n);
|
|
7607
7608
|
let o = n.bulletCurrent || it(n);
|
|
7608
7609
|
t && t.type === "list" && t.ordered && (o = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + o);
|
|
7609
7610
|
let l = o.length + 1;
|
|
@@ -7619,11 +7620,11 @@ function dc(e, t, n, r) {
|
|
|
7619
7620
|
return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
|
|
7620
7621
|
}
|
|
7621
7622
|
}
|
|
7622
|
-
function
|
|
7623
|
+
function kc(e, t, n, r) {
|
|
7623
7624
|
const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
|
|
7624
7625
|
return o(), i(), l;
|
|
7625
7626
|
}
|
|
7626
|
-
const
|
|
7627
|
+
const xc = (
|
|
7627
7628
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
7628
7629
|
hn([
|
|
7629
7630
|
"break",
|
|
@@ -7649,12 +7650,12 @@ const kc = (
|
|
|
7649
7650
|
"textDirective"
|
|
7650
7651
|
])
|
|
7651
7652
|
);
|
|
7652
|
-
function
|
|
7653
|
+
function bc(e, t, n, r) {
|
|
7653
7654
|
return (e.children.some(function(l) {
|
|
7654
|
-
return
|
|
7655
|
+
return xc(l);
|
|
7655
7656
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
7656
7657
|
}
|
|
7657
|
-
function
|
|
7658
|
+
function wc(e) {
|
|
7658
7659
|
const t = e.options.strong || "*";
|
|
7659
7660
|
if (t !== "*" && t !== "_")
|
|
7660
7661
|
throw new Error(
|
|
@@ -7662,9 +7663,9 @@ function bc(e) {
|
|
|
7662
7663
|
);
|
|
7663
7664
|
return t;
|
|
7664
7665
|
}
|
|
7665
|
-
ii.peek =
|
|
7666
|
+
ii.peek = Sc;
|
|
7666
7667
|
function ii(e, t, n, r) {
|
|
7667
|
-
const i =
|
|
7668
|
+
const i = wc(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
|
|
7668
7669
|
let u = l.move(
|
|
7669
7670
|
n.containerPhrasing(e, {
|
|
7670
7671
|
after: i,
|
|
@@ -7677,22 +7678,22 @@ function ii(e, t, n, r) {
|
|
|
7677
7678
|
s,
|
|
7678
7679
|
i
|
|
7679
7680
|
);
|
|
7680
|
-
f.inside && (u =
|
|
7681
|
+
f.inside && (u = qe(s) + u.slice(1));
|
|
7681
7682
|
const c = u.charCodeAt(u.length - 1), p = an(r.after.charCodeAt(0), c, i);
|
|
7682
|
-
p.inside && (u = u.slice(0, -1) +
|
|
7683
|
+
p.inside && (u = u.slice(0, -1) + qe(c));
|
|
7683
7684
|
const h = l.move(i + i);
|
|
7684
7685
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
7685
7686
|
after: p.outside,
|
|
7686
7687
|
before: f.outside
|
|
7687
7688
|
}, a + u + h;
|
|
7688
7689
|
}
|
|
7689
|
-
function
|
|
7690
|
+
function Sc(e, t, n) {
|
|
7690
7691
|
return n.options.strong || "*";
|
|
7691
7692
|
}
|
|
7692
|
-
function
|
|
7693
|
+
function Cc(e, t, n, r) {
|
|
7693
7694
|
return n.safe(e.value, r);
|
|
7694
7695
|
}
|
|
7695
|
-
function
|
|
7696
|
+
function Ec(e) {
|
|
7696
7697
|
const t = e.options.ruleRepetition || 3;
|
|
7697
7698
|
if (t < 3)
|
|
7698
7699
|
throw new Error(
|
|
@@ -7700,50 +7701,50 @@ function Cc(e) {
|
|
|
7700
7701
|
);
|
|
7701
7702
|
return t;
|
|
7702
7703
|
}
|
|
7703
|
-
function
|
|
7704
|
-
const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(
|
|
7704
|
+
function Ic(e, t, n) {
|
|
7705
|
+
const r = (ri(n) + (n.options.ruleSpaces ? " " : "")).repeat(Ec(n));
|
|
7705
7706
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7706
7707
|
}
|
|
7707
7708
|
const li = {
|
|
7708
|
-
blockquote:
|
|
7709
|
+
blockquote: Xs,
|
|
7709
7710
|
break: tr,
|
|
7710
|
-
code:
|
|
7711
|
-
definition:
|
|
7711
|
+
code: ec,
|
|
7712
|
+
definition: tc,
|
|
7712
7713
|
emphasis: Qr,
|
|
7713
7714
|
hardBreak: tr,
|
|
7714
|
-
heading:
|
|
7715
|
+
heading: oc,
|
|
7715
7716
|
html: Gr,
|
|
7716
7717
|
image: Kr,
|
|
7717
7718
|
imageReference: Jr,
|
|
7718
7719
|
inlineCode: Zr,
|
|
7719
7720
|
link: ni,
|
|
7720
7721
|
linkReference: ti,
|
|
7721
|
-
list:
|
|
7722
|
-
listItem:
|
|
7723
|
-
paragraph:
|
|
7724
|
-
root:
|
|
7722
|
+
list: gc,
|
|
7723
|
+
listItem: yc,
|
|
7724
|
+
paragraph: kc,
|
|
7725
|
+
root: bc,
|
|
7725
7726
|
strong: ii,
|
|
7726
|
-
text:
|
|
7727
|
-
thematicBreak:
|
|
7727
|
+
text: Cc,
|
|
7728
|
+
thematicBreak: Ic
|
|
7728
7729
|
};
|
|
7729
|
-
function
|
|
7730
|
+
function Ac() {
|
|
7730
7731
|
return {
|
|
7731
7732
|
enter: {
|
|
7732
|
-
table:
|
|
7733
|
+
table: Tc,
|
|
7733
7734
|
tableData: rr,
|
|
7734
7735
|
tableHeader: rr,
|
|
7735
|
-
tableRow:
|
|
7736
|
+
tableRow: vc
|
|
7736
7737
|
},
|
|
7737
7738
|
exit: {
|
|
7738
|
-
codeText:
|
|
7739
|
-
table:
|
|
7739
|
+
codeText: zc,
|
|
7740
|
+
table: Pc,
|
|
7740
7741
|
tableData: Pn,
|
|
7741
7742
|
tableHeader: Pn,
|
|
7742
7743
|
tableRow: Pn
|
|
7743
7744
|
}
|
|
7744
7745
|
};
|
|
7745
7746
|
}
|
|
7746
|
-
function
|
|
7747
|
+
function Tc(e) {
|
|
7747
7748
|
const t = e._align;
|
|
7748
7749
|
this.enter(
|
|
7749
7750
|
{
|
|
@@ -7756,10 +7757,10 @@ function Ac(e) {
|
|
|
7756
7757
|
e
|
|
7757
7758
|
), this.data.inTable = !0;
|
|
7758
7759
|
}
|
|
7759
|
-
function
|
|
7760
|
+
function Pc(e) {
|
|
7760
7761
|
this.exit(e), this.data.inTable = void 0;
|
|
7761
7762
|
}
|
|
7762
|
-
function
|
|
7763
|
+
function vc(e) {
|
|
7763
7764
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
7764
7765
|
}
|
|
7765
7766
|
function Pn(e) {
|
|
@@ -7768,16 +7769,16 @@ function Pn(e) {
|
|
|
7768
7769
|
function rr(e) {
|
|
7769
7770
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
7770
7771
|
}
|
|
7771
|
-
function
|
|
7772
|
+
function zc(e) {
|
|
7772
7773
|
let t = this.resume();
|
|
7773
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
7774
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, Dc));
|
|
7774
7775
|
const n = this.stack[this.stack.length - 1];
|
|
7775
7776
|
n.type, n.value = t, this.exit(e);
|
|
7776
7777
|
}
|
|
7777
|
-
function
|
|
7778
|
+
function Dc(e, t) {
|
|
7778
7779
|
return t === "|" ? t : e;
|
|
7779
7780
|
}
|
|
7780
|
-
function
|
|
7781
|
+
function Lc(e) {
|
|
7781
7782
|
const t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
|
|
7782
7783
|
return {
|
|
7783
7784
|
unsafe: [
|
|
@@ -7823,7 +7824,7 @@ function Dc(e) {
|
|
|
7823
7824
|
return A(), y(), E;
|
|
7824
7825
|
}
|
|
7825
7826
|
function s(h, d) {
|
|
7826
|
-
return
|
|
7827
|
+
return Ws(h, {
|
|
7827
7828
|
align: d,
|
|
7828
7829
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
7829
7830
|
alignDelimiters: r,
|
|
@@ -7854,26 +7855,26 @@ function Dc(e) {
|
|
|
7854
7855
|
return x.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
7855
7856
|
}
|
|
7856
7857
|
}
|
|
7857
|
-
function
|
|
7858
|
+
function Fc() {
|
|
7858
7859
|
return {
|
|
7859
7860
|
exit: {
|
|
7860
7861
|
taskListCheckValueChecked: ir,
|
|
7861
7862
|
taskListCheckValueUnchecked: ir,
|
|
7862
|
-
paragraph:
|
|
7863
|
+
paragraph: Rc
|
|
7863
7864
|
}
|
|
7864
7865
|
};
|
|
7865
7866
|
}
|
|
7866
|
-
function
|
|
7867
|
+
function _c() {
|
|
7867
7868
|
return {
|
|
7868
7869
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
7869
|
-
handlers: { listItem:
|
|
7870
|
+
handlers: { listItem: Oc }
|
|
7870
7871
|
};
|
|
7871
7872
|
}
|
|
7872
7873
|
function ir(e) {
|
|
7873
7874
|
const t = this.stack[this.stack.length - 2];
|
|
7874
7875
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
7875
7876
|
}
|
|
7876
|
-
function
|
|
7877
|
+
function Rc(e) {
|
|
7877
7878
|
const t = this.stack[this.stack.length - 2];
|
|
7878
7879
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
7879
7880
|
const n = this.stack[this.stack.length - 1];
|
|
@@ -7894,7 +7895,7 @@ function _c(e) {
|
|
|
7894
7895
|
}
|
|
7895
7896
|
this.exit(e);
|
|
7896
7897
|
}
|
|
7897
|
-
function
|
|
7898
|
+
function Oc(e, t, n, r) {
|
|
7898
7899
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
7899
7900
|
o && a.move(l);
|
|
7900
7901
|
let u = li.listItem(e, t, n, {
|
|
@@ -7906,55 +7907,55 @@ function Rc(e, t, n, r) {
|
|
|
7906
7907
|
return f + l;
|
|
7907
7908
|
}
|
|
7908
7909
|
}
|
|
7909
|
-
function
|
|
7910
|
+
function Mc() {
|
|
7910
7911
|
return [
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7912
|
+
gs(),
|
|
7913
|
+
Os(),
|
|
7914
|
+
js(),
|
|
7915
|
+
Ac(),
|
|
7916
|
+
Fc()
|
|
7916
7917
|
];
|
|
7917
7918
|
}
|
|
7918
|
-
function
|
|
7919
|
+
function Nc(e) {
|
|
7919
7920
|
return {
|
|
7920
7921
|
extensions: [
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7922
|
+
ds(),
|
|
7923
|
+
Ms(e),
|
|
7924
|
+
Hs(),
|
|
7925
|
+
Lc(e),
|
|
7926
|
+
_c()
|
|
7926
7927
|
]
|
|
7927
7928
|
};
|
|
7928
7929
|
}
|
|
7929
|
-
const
|
|
7930
|
-
tokenize: $c,
|
|
7931
|
-
partial: !0
|
|
7932
|
-
}, oi = {
|
|
7930
|
+
const Bc = {
|
|
7933
7931
|
tokenize: qc,
|
|
7934
7932
|
partial: !0
|
|
7935
|
-
},
|
|
7933
|
+
}, oi = {
|
|
7936
7934
|
tokenize: Wc,
|
|
7937
7935
|
partial: !0
|
|
7938
|
-
},
|
|
7936
|
+
}, ai = {
|
|
7939
7937
|
tokenize: Yc,
|
|
7940
7938
|
partial: !0
|
|
7941
|
-
},
|
|
7939
|
+
}, ui = {
|
|
7942
7940
|
tokenize: Xc,
|
|
7943
7941
|
partial: !0
|
|
7942
|
+
}, jc = {
|
|
7943
|
+
tokenize: Qc,
|
|
7944
|
+
partial: !0
|
|
7944
7945
|
}, si = {
|
|
7945
7946
|
name: "wwwAutolink",
|
|
7946
|
-
tokenize:
|
|
7947
|
+
tokenize: Vc,
|
|
7947
7948
|
previous: fi
|
|
7948
7949
|
}, ci = {
|
|
7949
7950
|
name: "protocolAutolink",
|
|
7950
|
-
tokenize:
|
|
7951
|
+
tokenize: $c,
|
|
7951
7952
|
previous: hi
|
|
7952
7953
|
}, de = {
|
|
7953
7954
|
name: "emailAutolink",
|
|
7954
|
-
tokenize:
|
|
7955
|
+
tokenize: Uc,
|
|
7955
7956
|
previous: pi
|
|
7956
7957
|
}, fe = {};
|
|
7957
|
-
function
|
|
7958
|
+
function Hc() {
|
|
7958
7959
|
return {
|
|
7959
7960
|
text: fe
|
|
7960
7961
|
};
|
|
@@ -7970,7 +7971,7 @@ fe[72] = [de, ci];
|
|
|
7970
7971
|
fe[104] = [de, ci];
|
|
7971
7972
|
fe[87] = [de, si];
|
|
7972
7973
|
fe[119] = [de, si];
|
|
7973
|
-
function
|
|
7974
|
+
function Uc(e, t, n) {
|
|
7974
7975
|
const r = this;
|
|
7975
7976
|
let i, o;
|
|
7976
7977
|
return l;
|
|
@@ -7981,7 +7982,7 @@ function Hc(e, t, n) {
|
|
|
7981
7982
|
return jn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7982
7983
|
}
|
|
7983
7984
|
function u(c) {
|
|
7984
|
-
return c === 46 ? e.check(
|
|
7985
|
+
return c === 46 ? e.check(jc, f, s)(c) : c === 45 || c === 95 || G(c) ? (o = !0, e.consume(c), u) : f(c);
|
|
7985
7986
|
}
|
|
7986
7987
|
function s(c) {
|
|
7987
7988
|
return e.consume(c), i = !0, u;
|
|
@@ -7990,17 +7991,17 @@ function Hc(e, t, n) {
|
|
|
7990
7991
|
return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
|
|
7991
7992
|
}
|
|
7992
7993
|
}
|
|
7993
|
-
function
|
|
7994
|
+
function Vc(e, t, n) {
|
|
7994
7995
|
const r = this;
|
|
7995
7996
|
return i;
|
|
7996
7997
|
function i(l) {
|
|
7997
|
-
return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(
|
|
7998
|
+
return l !== 87 && l !== 119 || !fi.call(r, r.previous) || lt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(Bc, e.attempt(oi, e.attempt(ai, o), n), n)(l));
|
|
7998
7999
|
}
|
|
7999
8000
|
function o(l) {
|
|
8000
8001
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
|
8001
8002
|
}
|
|
8002
8003
|
}
|
|
8003
|
-
function
|
|
8004
|
+
function $c(e, t, n) {
|
|
8004
8005
|
const r = this;
|
|
8005
8006
|
let i = "", o = !1;
|
|
8006
8007
|
return l;
|
|
@@ -8027,7 +8028,7 @@ function Vc(e, t, n) {
|
|
|
8027
8028
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
8028
8029
|
}
|
|
8029
8030
|
}
|
|
8030
|
-
function
|
|
8031
|
+
function qc(e, t, n) {
|
|
8031
8032
|
let r = 0;
|
|
8032
8033
|
return i;
|
|
8033
8034
|
function i(l) {
|
|
@@ -8037,7 +8038,7 @@ function $c(e, t, n) {
|
|
|
8037
8038
|
return l === null ? n(l) : t(l);
|
|
8038
8039
|
}
|
|
8039
8040
|
}
|
|
8040
|
-
function
|
|
8041
|
+
function Wc(e, t, n) {
|
|
8041
8042
|
let r, i, o;
|
|
8042
8043
|
return l;
|
|
8043
8044
|
function l(s) {
|
|
@@ -8050,7 +8051,7 @@ function qc(e, t, n) {
|
|
|
8050
8051
|
return i || r || !o ? n(s) : t(s);
|
|
8051
8052
|
}
|
|
8052
8053
|
}
|
|
8053
|
-
function
|
|
8054
|
+
function Yc(e, t) {
|
|
8054
8055
|
let n = 0, r = 0;
|
|
8055
8056
|
return i;
|
|
8056
8057
|
function i(l) {
|
|
@@ -8060,7 +8061,7 @@ function Wc(e, t) {
|
|
|
8060
8061
|
return l === 41 && r++, e.consume(l), i;
|
|
8061
8062
|
}
|
|
8062
8063
|
}
|
|
8063
|
-
function
|
|
8064
|
+
function Xc(e, t, n) {
|
|
8064
8065
|
return r;
|
|
8065
8066
|
function r(a) {
|
|
8066
8067
|
return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), o) : a === 93 ? (e.consume(a), i) : (
|
|
@@ -8079,7 +8080,7 @@ function Yc(e, t, n) {
|
|
|
8079
8080
|
return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
|
|
8080
8081
|
}
|
|
8081
8082
|
}
|
|
8082
|
-
function
|
|
8083
|
+
function Qc(e, t, n) {
|
|
8083
8084
|
return r;
|
|
8084
8085
|
function r(o) {
|
|
8085
8086
|
return e.consume(o), i;
|
|
@@ -8115,37 +8116,37 @@ function lt(e) {
|
|
|
8115
8116
|
}
|
|
8116
8117
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
8117
8118
|
}
|
|
8118
|
-
const
|
|
8119
|
-
tokenize:
|
|
8119
|
+
const Gc = {
|
|
8120
|
+
tokenize: lf,
|
|
8120
8121
|
partial: !0
|
|
8121
8122
|
};
|
|
8122
|
-
function
|
|
8123
|
+
function Kc() {
|
|
8123
8124
|
return {
|
|
8124
8125
|
document: {
|
|
8125
8126
|
91: {
|
|
8126
8127
|
name: "gfmFootnoteDefinition",
|
|
8127
|
-
tokenize:
|
|
8128
|
+
tokenize: nf,
|
|
8128
8129
|
continuation: {
|
|
8129
|
-
tokenize:
|
|
8130
|
+
tokenize: tf
|
|
8130
8131
|
},
|
|
8131
|
-
exit:
|
|
8132
|
+
exit: rf
|
|
8132
8133
|
}
|
|
8133
8134
|
},
|
|
8134
8135
|
text: {
|
|
8135
8136
|
91: {
|
|
8136
8137
|
name: "gfmFootnoteCall",
|
|
8137
|
-
tokenize:
|
|
8138
|
+
tokenize: ef
|
|
8138
8139
|
},
|
|
8139
8140
|
93: {
|
|
8140
8141
|
name: "gfmPotentialFootnoteCall",
|
|
8141
8142
|
add: "after",
|
|
8142
|
-
tokenize:
|
|
8143
|
-
resolveTo:
|
|
8143
|
+
tokenize: Jc,
|
|
8144
|
+
resolveTo: Zc
|
|
8144
8145
|
}
|
|
8145
8146
|
}
|
|
8146
8147
|
};
|
|
8147
8148
|
}
|
|
8148
|
-
function
|
|
8149
|
+
function Jc(e, t, n) {
|
|
8149
8150
|
const r = this;
|
|
8150
8151
|
let i = r.events.length;
|
|
8151
8152
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -8170,7 +8171,7 @@ function Kc(e, t, n) {
|
|
|
8170
8171
|
return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
|
|
8171
8172
|
}
|
|
8172
8173
|
}
|
|
8173
|
-
function
|
|
8174
|
+
function Zc(e, t) {
|
|
8174
8175
|
let n = e.length;
|
|
8175
8176
|
for (; n--; )
|
|
8176
8177
|
if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
@@ -8220,7 +8221,7 @@ function Jc(e, t) {
|
|
|
8220
8221
|
];
|
|
8221
8222
|
return e.splice(n, e.length - n + 1, ...a), e;
|
|
8222
8223
|
}
|
|
8223
|
-
function
|
|
8224
|
+
function ef(e, t, n) {
|
|
8224
8225
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8225
8226
|
let o = 0, l;
|
|
8226
8227
|
return a;
|
|
@@ -8250,7 +8251,7 @@ function Zc(e, t, n) {
|
|
|
8250
8251
|
return c === 91 || c === 92 || c === 93 ? (e.consume(c), o++, s) : s(c);
|
|
8251
8252
|
}
|
|
8252
8253
|
}
|
|
8253
|
-
function
|
|
8254
|
+
function nf(e, t, n) {
|
|
8254
8255
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8255
8256
|
let o, l = 0, a;
|
|
8256
8257
|
return u;
|
|
@@ -8286,13 +8287,13 @@ function ef(e, t, n) {
|
|
|
8286
8287
|
return t(d);
|
|
8287
8288
|
}
|
|
8288
8289
|
}
|
|
8289
|
-
function
|
|
8290
|
-
return e.check(
|
|
8290
|
+
function tf(e, t, n) {
|
|
8291
|
+
return e.check(Ye, t, e.attempt(Gc, t, n));
|
|
8291
8292
|
}
|
|
8292
|
-
function
|
|
8293
|
+
function rf(e) {
|
|
8293
8294
|
e.exit("gfmFootnoteDefinition");
|
|
8294
8295
|
}
|
|
8295
|
-
function
|
|
8296
|
+
function lf(e, t, n) {
|
|
8296
8297
|
const r = this;
|
|
8297
8298
|
return O(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
8298
8299
|
function i(o) {
|
|
@@ -8300,7 +8301,7 @@ function rf(e, t, n) {
|
|
|
8300
8301
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
|
|
8301
8302
|
}
|
|
8302
8303
|
}
|
|
8303
|
-
function
|
|
8304
|
+
function of(e) {
|
|
8304
8305
|
let n = (e || {}).singleTilde;
|
|
8305
8306
|
const r = {
|
|
8306
8307
|
name: "strikethrough",
|
|
@@ -8361,7 +8362,7 @@ function lf(e) {
|
|
|
8361
8362
|
}
|
|
8362
8363
|
}
|
|
8363
8364
|
}
|
|
8364
|
-
class
|
|
8365
|
+
class af {
|
|
8365
8366
|
/**
|
|
8366
8367
|
* Create a new edit map.
|
|
8367
8368
|
*/
|
|
@@ -8377,7 +8378,7 @@ class of {
|
|
|
8377
8378
|
* @returns {undefined}
|
|
8378
8379
|
*/
|
|
8379
8380
|
add(t, n, r) {
|
|
8380
|
-
|
|
8381
|
+
uf(this, t, n, r);
|
|
8381
8382
|
}
|
|
8382
8383
|
// To do: add this when moving to `micromark`.
|
|
8383
8384
|
// /**
|
|
@@ -8416,7 +8417,7 @@ class of {
|
|
|
8416
8417
|
this.map.length = 0;
|
|
8417
8418
|
}
|
|
8418
8419
|
}
|
|
8419
|
-
function
|
|
8420
|
+
function uf(e, t, n, r) {
|
|
8420
8421
|
let i = 0;
|
|
8421
8422
|
if (!(n === 0 && r.length === 0)) {
|
|
8422
8423
|
for (; i < e.map.length; ) {
|
|
@@ -8429,7 +8430,7 @@ function af(e, t, n, r) {
|
|
|
8429
8430
|
e.map.push([t, n, r]);
|
|
8430
8431
|
}
|
|
8431
8432
|
}
|
|
8432
|
-
function
|
|
8433
|
+
function sf(e, t) {
|
|
8433
8434
|
let n = !1;
|
|
8434
8435
|
const r = [];
|
|
8435
8436
|
for (; t < e.length; ) {
|
|
@@ -8449,18 +8450,18 @@ function uf(e, t) {
|
|
|
8449
8450
|
}
|
|
8450
8451
|
return r;
|
|
8451
8452
|
}
|
|
8452
|
-
function
|
|
8453
|
+
function cf() {
|
|
8453
8454
|
return {
|
|
8454
8455
|
flow: {
|
|
8455
8456
|
null: {
|
|
8456
8457
|
name: "table",
|
|
8457
|
-
tokenize:
|
|
8458
|
-
resolveAll:
|
|
8458
|
+
tokenize: ff,
|
|
8459
|
+
resolveAll: hf
|
|
8459
8460
|
}
|
|
8460
8461
|
}
|
|
8461
8462
|
};
|
|
8462
8463
|
}
|
|
8463
|
-
function
|
|
8464
|
+
function ff(e, t, n) {
|
|
8464
8465
|
const r = this;
|
|
8465
8466
|
let i = 0, o = 0, l;
|
|
8466
8467
|
return a;
|
|
@@ -8530,9 +8531,9 @@ function cf(e, t, n) {
|
|
|
8530
8531
|
return k === 92 || k === 124 ? (e.consume(k), $) : $(k);
|
|
8531
8532
|
}
|
|
8532
8533
|
}
|
|
8533
|
-
function
|
|
8534
|
+
function hf(e, t) {
|
|
8534
8535
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
|
|
8535
|
-
const p = new
|
|
8536
|
+
const p = new af();
|
|
8536
8537
|
for (; ++n < e.length; ) {
|
|
8537
8538
|
const h = e[n], d = h[1];
|
|
8538
8539
|
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (lr(p, t, u, s, f), f = void 0, u = 0), s = {
|
|
@@ -8545,15 +8546,15 @@ function ff(e, t) {
|
|
|
8545
8546
|
start: Object.assign({}, d.start),
|
|
8546
8547
|
// Note: correct end is set later.
|
|
8547
8548
|
end: Object.assign({}, d.end)
|
|
8548
|
-
}, p.add(n, 0, [["enter", f, t]])), i = d.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c =
|
|
8549
|
+
}, p.add(n, 0, [["enter", f, t]])), i = d.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c = Ze(p, t, o, i, void 0, c), o = [0, 0, 0, 0]), l[2] = n)) : d.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (l[0] = l[1], c = Ze(p, t, o, i, void 0, c)), o = l, l = [o[1], n, 0, 0])) : d.type === "tableHead" ? (a = !0, u = n) : d.type === "tableRow" || d.type === "tableDelimiterRow" ? (u = n, o[1] !== 0 ? (l[0] = l[1], c = Ze(p, t, o, i, n, c)) : l[1] !== 0 && (c = Ze(p, t, l, i, n, c)), i = 0) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") && (l[3] = n);
|
|
8549
8550
|
}
|
|
8550
8551
|
for (u !== 0 && lr(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
8551
8552
|
const h = t.events[n];
|
|
8552
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
8553
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = sf(t.events, n));
|
|
8553
8554
|
}
|
|
8554
8555
|
return e;
|
|
8555
8556
|
}
|
|
8556
|
-
function
|
|
8557
|
+
function Ze(e, t, n, r, i, o) {
|
|
8557
8558
|
const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
8558
8559
|
n[0] !== 0 && (o.end = Object.assign({}, ze(t.events, n[0])), e.add(n[0], 0, [["exit", o, t]]));
|
|
8559
8560
|
const u = ze(t.events, n[1]);
|
|
@@ -8587,18 +8588,18 @@ function ze(e, t) {
|
|
|
8587
8588
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8588
8589
|
return n[1][r];
|
|
8589
8590
|
}
|
|
8590
|
-
const
|
|
8591
|
+
const pf = {
|
|
8591
8592
|
name: "tasklistCheck",
|
|
8592
|
-
tokenize:
|
|
8593
|
+
tokenize: gf
|
|
8593
8594
|
};
|
|
8594
|
-
function
|
|
8595
|
+
function mf() {
|
|
8595
8596
|
return {
|
|
8596
8597
|
text: {
|
|
8597
|
-
91:
|
|
8598
|
+
91: pf
|
|
8598
8599
|
}
|
|
8599
8600
|
};
|
|
8600
8601
|
}
|
|
8601
|
-
function
|
|
8602
|
+
function gf(e, t, n) {
|
|
8602
8603
|
const r = this;
|
|
8603
8604
|
return i;
|
|
8604
8605
|
function i(u) {
|
|
@@ -8617,50 +8618,50 @@ function mf(e, t, n) {
|
|
|
8617
8618
|
}
|
|
8618
8619
|
function a(u) {
|
|
8619
8620
|
return v(u) ? t(u) : _(u) ? e.check({
|
|
8620
|
-
tokenize:
|
|
8621
|
+
tokenize: df
|
|
8621
8622
|
}, t, n)(u) : n(u);
|
|
8622
8623
|
}
|
|
8623
8624
|
}
|
|
8624
|
-
function
|
|
8625
|
+
function df(e, t, n) {
|
|
8625
8626
|
return O(e, r, "whitespace");
|
|
8626
8627
|
function r(i) {
|
|
8627
8628
|
return i === null ? n(i) : t(i);
|
|
8628
8629
|
}
|
|
8629
8630
|
}
|
|
8630
|
-
function
|
|
8631
|
+
function yf(e) {
|
|
8631
8632
|
return Sr([
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8633
|
+
Hc(),
|
|
8634
|
+
Kc(),
|
|
8635
|
+
of(e),
|
|
8636
|
+
cf(),
|
|
8637
|
+
mf()
|
|
8637
8638
|
]);
|
|
8638
8639
|
}
|
|
8639
|
-
const
|
|
8640
|
-
function
|
|
8640
|
+
const kf = {};
|
|
8641
|
+
function xf(e) {
|
|
8641
8642
|
const t = (
|
|
8642
8643
|
/** @type {Processor<Root>} */
|
|
8643
8644
|
this
|
|
8644
|
-
), n = e ||
|
|
8645
|
-
i.push(
|
|
8645
|
+
), n = e || kf, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
8646
|
+
i.push(yf(n)), o.push(Mc()), l.push(Nc(n));
|
|
8646
8647
|
}
|
|
8647
|
-
function
|
|
8648
|
-
$r(e, [/\r?\n|\r/g,
|
|
8648
|
+
function bf(e) {
|
|
8649
|
+
$r(e, [/\r?\n|\r/g, wf]);
|
|
8649
8650
|
}
|
|
8650
|
-
function
|
|
8651
|
+
function wf() {
|
|
8651
8652
|
return { type: "break" };
|
|
8652
8653
|
}
|
|
8653
|
-
function
|
|
8654
|
+
function Sf() {
|
|
8654
8655
|
return function(e) {
|
|
8655
|
-
|
|
8656
|
+
bf(e);
|
|
8656
8657
|
};
|
|
8657
8658
|
}
|
|
8658
|
-
const
|
|
8659
|
-
markdown:
|
|
8660
|
-
},
|
|
8659
|
+
const Cf = "_markdown_33sn4_1", or = {
|
|
8660
|
+
markdown: Cf
|
|
8661
|
+
}, Ef = {
|
|
8661
8662
|
aside: ({ node: e, className: t, children: n, ...r }) => {
|
|
8662
8663
|
const i = (e == null ? void 0 : e.properties) ?? {}, o = typeof i["data-admonition"] == "string" ? i["data-admonition"] : "note", l = typeof i["data-admonition-variant"] == "string" ? i["data-admonition-variant"] : "unknown", a = typeof i["data-admonition-icon"] == "string" ? i["data-admonition-icon"] : void 0, u = typeof i["data-admonition-title"] == "string" ? i["data-admonition-title"] : void 0;
|
|
8663
|
-
return /* @__PURE__ */
|
|
8664
|
+
return /* @__PURE__ */ je(
|
|
8664
8665
|
Ai,
|
|
8665
8666
|
{
|
|
8666
8667
|
...r,
|
|
@@ -8674,18 +8675,35 @@ const Sf = "_markdown_33sn4_1", or = {
|
|
|
8674
8675
|
);
|
|
8675
8676
|
}
|
|
8676
8677
|
};
|
|
8677
|
-
function
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8678
|
+
function zf({
|
|
8679
|
+
children: e,
|
|
8680
|
+
className: t,
|
|
8681
|
+
components: n,
|
|
8682
|
+
url: r,
|
|
8683
|
+
validate: i,
|
|
8684
|
+
batchValidate: o,
|
|
8685
|
+
debug: l = !1
|
|
8686
|
+
}) {
|
|
8687
|
+
const a = e ?? "", { output: u } = Ti(
|
|
8688
|
+
a,
|
|
8689
|
+
r,
|
|
8690
|
+
i,
|
|
8691
|
+
l,
|
|
8692
|
+
o
|
|
8693
|
+
);
|
|
8694
|
+
if (!a) return null;
|
|
8695
|
+
const s = r ? {
|
|
8696
|
+
a: ({ node: p, ...h }) => /* @__PURE__ */ je("a", { ...h, target: "_blank", rel: "noopener noreferrer" })
|
|
8697
|
+
} : {}, f = t ? `${or.markdown} ${t}` : or.markdown, c = { ...Ef, ...s, ...n };
|
|
8698
|
+
return /* @__PURE__ */ je("div", { className: f, children: /* @__PURE__ */ je(
|
|
8699
|
+
os,
|
|
8682
8700
|
{
|
|
8683
|
-
remarkPlugins: [
|
|
8684
|
-
components:
|
|
8685
|
-
children:
|
|
8701
|
+
remarkPlugins: [xf, Sf, Ii],
|
|
8702
|
+
components: c,
|
|
8703
|
+
children: u
|
|
8686
8704
|
}
|
|
8687
8705
|
) });
|
|
8688
8706
|
}
|
|
8689
8707
|
export {
|
|
8690
|
-
|
|
8708
|
+
zf as Markdown
|
|
8691
8709
|
};
|