@versini/sassysaint 7.1.6 → 7.2.0
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/chunks/{App.fUQ6Upmp.js → App.DzDRKvsP.js} +2224 -2159
- package/dist/chunks/{ChatBubbleAssistant.CVd9nqvb.js → ChatBubbleAssistant.DOnx5Cnk.js} +1002 -1050
- package/dist/chunks/{HeaderEntry.DiaiGqp6.js → HeaderEntry.DW42lod9.js} +309 -309
- package/dist/chunks/{MarkdownWithExtra.D22TGTzU.js → MarkdownWithExtra.Cf_oHKOO.js} +2 -2
- package/dist/chunks/{index.B6-d6CvP.js → index.B3-UOQNr.js} +1192 -1152
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,59 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChatContext as gi, E as di, Re as
|
|
3
|
-
import hn from "clsx";
|
|
1
|
+
import { Fragment as mi, jsx as xe, jsxs as Zt } from "react/jsx-runtime";
|
|
2
|
+
import { ChatContext as gi, E as di, Re as ut } from "./App.DzDRKvsP.js";
|
|
4
3
|
import { lazy as yi, useContext as ki, Suspense as xi } from "react";
|
|
5
|
-
import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi,
|
|
6
|
-
function
|
|
4
|
+
import { LOCAL_STORAGE_PREFIX as bi, LOCAL_STORAGE_CHAT_DETAILS as wi, ROLE_INTERNAL as Si, durationFormatter as Ci, numberFormatter as Ei } from "./index.B3-UOQNr.js";
|
|
5
|
+
function er(e) {
|
|
7
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
@versini/ui-spinner v3.0.9
|
|
11
|
-
© 2025 gizmette.com
|
|
12
|
-
*/
|
|
13
|
-
try {
|
|
14
|
-
window.__VERSINI_UI_SPINNER__ || (window.__VERSINI_UI_SPINNER__ = {
|
|
15
|
-
version: "3.0.9",
|
|
16
|
-
buildTime: "01/25/2025 10:55 PM EST",
|
|
17
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
18
|
-
license: "MIT"
|
|
19
|
-
});
|
|
20
|
-
} catch {
|
|
21
|
-
}
|
|
22
|
-
const ft = "av-spinner", Ei = ({
|
|
23
|
-
spinnerRef: e,
|
|
24
|
-
mode: t = "system",
|
|
25
|
-
type: n = "circle",
|
|
26
|
-
className: r
|
|
27
|
-
}) => {
|
|
28
|
-
const i = n === "circle" ? hn(
|
|
29
|
-
ft,
|
|
30
|
-
"h-8 w-8",
|
|
31
|
-
"align-[-0.125em]",
|
|
32
|
-
"border-4",
|
|
33
|
-
"inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]",
|
|
34
|
-
{
|
|
35
|
-
"text-copy-dark": t === "dark",
|
|
36
|
-
"text-copy-accent": t === "light",
|
|
37
|
-
"text-copy-dark dark:text-copy-accent": t === "system",
|
|
38
|
-
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
|
39
|
-
},
|
|
40
|
-
r
|
|
41
|
-
) : hn(ft, r), o = hn("av-spinner__dot", {
|
|
42
|
-
"fill-copy-dark": t === "dark",
|
|
43
|
-
"fill-copy-accent": t === "light",
|
|
44
|
-
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
45
|
-
"fill-copy-accent dark:fill-copy-dark": t === "alt-system"
|
|
46
|
-
});
|
|
47
|
-
return /* @__PURE__ */ en("div", { ref: e, className: i, role: "status", children: [
|
|
48
|
-
n === "dots" && /* @__PURE__ */ en("svg", { className: "h-8 w-8", children: [
|
|
49
|
-
/* @__PURE__ */ re("circle", { className: o, cx: "6", cy: "50%", r: "3" }),
|
|
50
|
-
/* @__PURE__ */ re("circle", { className: o, cx: "50%", cy: "50%", r: "3" }),
|
|
51
|
-
/* @__PURE__ */ re("circle", { className: o, cx: "80%", cy: "50%", r: "3" })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ re("span", { className: "sr-only", children: "Loading..." })
|
|
54
|
-
] });
|
|
55
|
-
};
|
|
56
|
-
function tf(e) {
|
|
8
|
+
function Zc(e) {
|
|
57
9
|
const t = [], n = String(e || "");
|
|
58
10
|
let r = n.indexOf(","), i = 0, o = !1;
|
|
59
11
|
for (; !o; ) {
|
|
@@ -70,15 +22,15 @@ function Ii(e, t) {
|
|
|
70
22
|
).trim();
|
|
71
23
|
}
|
|
72
24
|
const Ai = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ti = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Pi = {};
|
|
73
|
-
function
|
|
25
|
+
function st(e, t) {
|
|
74
26
|
return (Pi.jsx ? Ti : Ai).test(e);
|
|
75
27
|
}
|
|
76
|
-
const
|
|
77
|
-
function
|
|
78
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
28
|
+
const Li = /[ \t\n\f\r]/g;
|
|
29
|
+
function vi(e) {
|
|
30
|
+
return typeof e == "object" ? e.type === "text" ? ct(e.value) : !1 : ct(e);
|
|
79
31
|
}
|
|
80
|
-
function
|
|
81
|
-
return e.replace(
|
|
32
|
+
function ct(e) {
|
|
33
|
+
return e.replace(Li, "") === "";
|
|
82
34
|
}
|
|
83
35
|
class Ve {
|
|
84
36
|
/**
|
|
@@ -94,17 +46,17 @@ class Ve {
|
|
|
94
46
|
Ve.prototype.property = {};
|
|
95
47
|
Ve.prototype.normal = {};
|
|
96
48
|
Ve.prototype.space = null;
|
|
97
|
-
function
|
|
49
|
+
function nr(e, t) {
|
|
98
50
|
const n = {}, r = {};
|
|
99
51
|
let i = -1;
|
|
100
52
|
for (; ++i < e.length; )
|
|
101
53
|
Object.assign(n, e[i].property), Object.assign(r, e[i].normal);
|
|
102
54
|
return new Ve(n, r, t);
|
|
103
55
|
}
|
|
104
|
-
function
|
|
56
|
+
function Ln(e) {
|
|
105
57
|
return e.toLowerCase();
|
|
106
58
|
}
|
|
107
|
-
class
|
|
59
|
+
class ie {
|
|
108
60
|
/**
|
|
109
61
|
* @constructor
|
|
110
62
|
* @param {string} property
|
|
@@ -114,23 +66,23 @@ class le {
|
|
|
114
66
|
this.property = t, this.attribute = n;
|
|
115
67
|
}
|
|
116
68
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
69
|
+
ie.prototype.space = null;
|
|
70
|
+
ie.prototype.boolean = !1;
|
|
71
|
+
ie.prototype.booleanish = !1;
|
|
72
|
+
ie.prototype.overloadedBoolean = !1;
|
|
73
|
+
ie.prototype.number = !1;
|
|
74
|
+
ie.prototype.commaSeparated = !1;
|
|
75
|
+
ie.prototype.spaceSeparated = !1;
|
|
76
|
+
ie.prototype.commaOrSpaceSeparated = !1;
|
|
77
|
+
ie.prototype.mustUseProperty = !1;
|
|
78
|
+
ie.prototype.defined = !1;
|
|
127
79
|
let zi = 0;
|
|
128
|
-
const M = Ie(), W = Ie(),
|
|
80
|
+
const M = Ie(), W = Ie(), tr = Ie(), I = Ie(), V = Ie(), ze = Ie(), ne = Ie();
|
|
129
81
|
function Ie() {
|
|
130
82
|
return 2 ** ++zi;
|
|
131
83
|
}
|
|
132
|
-
const
|
|
133
|
-
class
|
|
84
|
+
const vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: M, booleanish: W, commaOrSpaceSeparated: ne, commaSeparated: ze, number: I, overloadedBoolean: tr, spaceSeparated: V }, Symbol.toStringTag, { value: "Module" })), fn = Object.keys(vn);
|
|
85
|
+
class Bn extends ie {
|
|
134
86
|
/**
|
|
135
87
|
* @constructor
|
|
136
88
|
* @param {string} property
|
|
@@ -140,15 +92,15 @@ class Hn extends le {
|
|
|
140
92
|
*/
|
|
141
93
|
constructor(t, n, r, i) {
|
|
142
94
|
let o = -1;
|
|
143
|
-
if (super(t, n),
|
|
144
|
-
for (; ++o <
|
|
145
|
-
const l =
|
|
146
|
-
|
|
95
|
+
if (super(t, n), ft(this, "space", i), typeof r == "number")
|
|
96
|
+
for (; ++o < fn.length; ) {
|
|
97
|
+
const l = fn[o];
|
|
98
|
+
ft(this, fn[o], (r & vn[l]) === vn[l]);
|
|
147
99
|
}
|
|
148
100
|
}
|
|
149
101
|
}
|
|
150
|
-
|
|
151
|
-
function
|
|
102
|
+
Bn.prototype.defined = !0;
|
|
103
|
+
function ft(e, t, n) {
|
|
152
104
|
n && (e[t] = n);
|
|
153
105
|
}
|
|
154
106
|
const Di = {}.hasOwnProperty;
|
|
@@ -157,17 +109,17 @@ function Fe(e) {
|
|
|
157
109
|
let r;
|
|
158
110
|
for (r in e.properties)
|
|
159
111
|
if (Di.call(e.properties, r)) {
|
|
160
|
-
const i = e.properties[r], o = new
|
|
112
|
+
const i = e.properties[r], o = new Bn(
|
|
161
113
|
r,
|
|
162
114
|
e.transform(e.attributes || {}, r),
|
|
163
115
|
i,
|
|
164
116
|
e.space
|
|
165
117
|
);
|
|
166
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[
|
|
118
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[Ln(r)] = r, n[Ln(o.attribute)] = r;
|
|
167
119
|
}
|
|
168
120
|
return new Ve(t, n, e.space);
|
|
169
121
|
}
|
|
170
|
-
const
|
|
122
|
+
const rr = Fe({
|
|
171
123
|
space: "xlink",
|
|
172
124
|
transform(e, t) {
|
|
173
125
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
@@ -181,25 +133,25 @@ const ir = Fe({
|
|
|
181
133
|
xLinkTitle: null,
|
|
182
134
|
xLinkType: null
|
|
183
135
|
}
|
|
184
|
-
}),
|
|
136
|
+
}), ir = Fe({
|
|
185
137
|
space: "xml",
|
|
186
138
|
transform(e, t) {
|
|
187
139
|
return "xml:" + t.slice(3).toLowerCase();
|
|
188
140
|
},
|
|
189
141
|
properties: { xmlLang: null, xmlBase: null, xmlSpace: null }
|
|
190
142
|
});
|
|
191
|
-
function
|
|
143
|
+
function lr(e, t) {
|
|
192
144
|
return t in e ? e[t] : t;
|
|
193
145
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
146
|
+
function or(e, t) {
|
|
147
|
+
return lr(e, t.toLowerCase());
|
|
196
148
|
}
|
|
197
|
-
const
|
|
149
|
+
const ar = Fe({
|
|
198
150
|
space: "xmlns",
|
|
199
151
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
200
|
-
transform:
|
|
152
|
+
transform: or,
|
|
201
153
|
properties: { xmlns: null, xmlnsXLink: null }
|
|
202
|
-
}),
|
|
154
|
+
}), ur = Fe({
|
|
203
155
|
transform(e, t) {
|
|
204
156
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
205
157
|
},
|
|
@@ -262,7 +214,7 @@ const ur = Fe({
|
|
|
262
214
|
htmlfor: "for",
|
|
263
215
|
httpequiv: "http-equiv"
|
|
264
216
|
},
|
|
265
|
-
transform:
|
|
217
|
+
transform: or,
|
|
266
218
|
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
|
267
219
|
properties: {
|
|
268
220
|
// Standard Properties.
|
|
@@ -304,7 +256,7 @@ const ur = Fe({
|
|
|
304
256
|
dir: null,
|
|
305
257
|
dirName: null,
|
|
306
258
|
disabled: M,
|
|
307
|
-
download:
|
|
259
|
+
download: tr,
|
|
308
260
|
draggable: W,
|
|
309
261
|
encType: null,
|
|
310
262
|
enterKeyHint: null,
|
|
@@ -615,7 +567,7 @@ const ur = Fe({
|
|
|
615
567
|
security: null,
|
|
616
568
|
unselectable: null
|
|
617
569
|
}
|
|
618
|
-
}),
|
|
570
|
+
}), Oi = Fe({
|
|
619
571
|
space: "svg",
|
|
620
572
|
attributes: {
|
|
621
573
|
accentHeight: "accent-height",
|
|
@@ -792,7 +744,7 @@ const ur = Fe({
|
|
|
792
744
|
playbackOrder: "playbackorder",
|
|
793
745
|
timelineBegin: "timelinebegin"
|
|
794
746
|
},
|
|
795
|
-
transform:
|
|
747
|
+
transform: lr,
|
|
796
748
|
properties: {
|
|
797
749
|
about: ne,
|
|
798
750
|
accentHeight: I,
|
|
@@ -1174,24 +1126,24 @@ const ur = Fe({
|
|
|
1174
1126
|
z: null,
|
|
1175
1127
|
zoomAndPan: null
|
|
1176
1128
|
}
|
|
1177
|
-
}), Ri = /^data[-\w.:]+$/i,
|
|
1129
|
+
}), Ri = /^data[-\w.:]+$/i, ht = /-[a-z]/g, _i = /[A-Z]/g;
|
|
1178
1130
|
function Mi(e, t) {
|
|
1179
|
-
const n =
|
|
1180
|
-
let r = t, i =
|
|
1131
|
+
const n = Ln(t);
|
|
1132
|
+
let r = t, i = ie;
|
|
1181
1133
|
if (n in e.normal)
|
|
1182
1134
|
return e.property[e.normal[n]];
|
|
1183
1135
|
if (n.length > 4 && n.slice(0, 4) === "data" && Ri.test(t)) {
|
|
1184
1136
|
if (t.charAt(4) === "-") {
|
|
1185
|
-
const o = t.slice(5).replace(
|
|
1137
|
+
const o = t.slice(5).replace(ht, Bi);
|
|
1186
1138
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
1187
1139
|
} else {
|
|
1188
1140
|
const o = t.slice(4);
|
|
1189
|
-
if (!
|
|
1190
|
-
let l = o.replace(
|
|
1141
|
+
if (!ht.test(o)) {
|
|
1142
|
+
let l = o.replace(_i, Ni);
|
|
1191
1143
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
1192
1144
|
}
|
|
1193
1145
|
}
|
|
1194
|
-
i =
|
|
1146
|
+
i = Bn;
|
|
1195
1147
|
}
|
|
1196
1148
|
return new i(r, t);
|
|
1197
1149
|
}
|
|
@@ -1219,108 +1171,108 @@ const ji = {
|
|
|
1219
1171
|
xLinkTitle: "xlinkTitle",
|
|
1220
1172
|
xLinkType: "xlinkType",
|
|
1221
1173
|
xmlnsXLink: "xmlnsXlink"
|
|
1222
|
-
}, Hi =
|
|
1223
|
-
function
|
|
1174
|
+
}, Hi = nr([ir, rr, ar, ur, Fi], "html"), jn = nr([ir, rr, ar, ur, Oi], "svg");
|
|
1175
|
+
function ef(e) {
|
|
1224
1176
|
const t = String(e || "").trim();
|
|
1225
1177
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
1226
1178
|
}
|
|
1227
1179
|
function Ui(e) {
|
|
1228
1180
|
return e.join(" ").trim();
|
|
1229
1181
|
}
|
|
1230
|
-
var Ne = {},
|
|
1182
|
+
var Ne = {}, hn, pt;
|
|
1231
1183
|
function $i() {
|
|
1232
|
-
if (
|
|
1233
|
-
|
|
1184
|
+
if (pt) return hn;
|
|
1185
|
+
pt = 1;
|
|
1234
1186
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, l = /^[;\s]*/, a = /^\s+|\s+$/g, u = `
|
|
1235
1187
|
`, s = "/", f = "*", c = "", p = "comment", h = "declaration";
|
|
1236
|
-
|
|
1188
|
+
hn = function(x, E) {
|
|
1237
1189
|
if (typeof x != "string")
|
|
1238
1190
|
throw new TypeError("First argument must be a string");
|
|
1239
1191
|
if (!x) return [];
|
|
1240
1192
|
E = E || {};
|
|
1241
1193
|
var y = 1, S = 1;
|
|
1242
|
-
function C(
|
|
1243
|
-
var T =
|
|
1194
|
+
function C(v) {
|
|
1195
|
+
var T = v.match(t);
|
|
1244
1196
|
T && (y += T.length);
|
|
1245
|
-
var
|
|
1246
|
-
S = ~
|
|
1197
|
+
var O = v.lastIndexOf(u);
|
|
1198
|
+
S = ~O ? v.length - O : S + v.length;
|
|
1247
1199
|
}
|
|
1248
1200
|
function F() {
|
|
1249
|
-
var
|
|
1201
|
+
var v = { line: y, column: S };
|
|
1250
1202
|
return function(T) {
|
|
1251
|
-
return T.position = new z(
|
|
1203
|
+
return T.position = new z(v), U(), T;
|
|
1252
1204
|
};
|
|
1253
1205
|
}
|
|
1254
|
-
function z(
|
|
1255
|
-
this.start =
|
|
1206
|
+
function z(v) {
|
|
1207
|
+
this.start = v, this.end = { line: y, column: S }, this.source = E.source;
|
|
1256
1208
|
}
|
|
1257
1209
|
z.prototype.content = x;
|
|
1258
|
-
function w(
|
|
1210
|
+
function w(v) {
|
|
1259
1211
|
var T = new Error(
|
|
1260
|
-
E.source + ":" + y + ":" + S + ": " +
|
|
1212
|
+
E.source + ":" + y + ":" + S + ": " + v
|
|
1261
1213
|
);
|
|
1262
|
-
if (T.reason =
|
|
1214
|
+
if (T.reason = v, T.filename = E.source, T.line = y, T.column = S, T.source = x, !E.silent) throw T;
|
|
1263
1215
|
}
|
|
1264
|
-
function
|
|
1265
|
-
var T =
|
|
1216
|
+
function _(v) {
|
|
1217
|
+
var T = v.exec(x);
|
|
1266
1218
|
if (T) {
|
|
1267
|
-
var
|
|
1268
|
-
return C(
|
|
1219
|
+
var O = T[0];
|
|
1220
|
+
return C(O), x = x.slice(O.length), T;
|
|
1269
1221
|
}
|
|
1270
1222
|
}
|
|
1271
1223
|
function U() {
|
|
1272
|
-
|
|
1224
|
+
_(n);
|
|
1273
1225
|
}
|
|
1274
|
-
function H(
|
|
1226
|
+
function H(v) {
|
|
1275
1227
|
var T;
|
|
1276
|
-
for (
|
|
1277
|
-
T !== !1 &&
|
|
1278
|
-
return
|
|
1228
|
+
for (v = v || []; T = k(); )
|
|
1229
|
+
T !== !1 && v.push(T);
|
|
1230
|
+
return v;
|
|
1279
1231
|
}
|
|
1280
1232
|
function k() {
|
|
1281
|
-
var
|
|
1233
|
+
var v = F();
|
|
1282
1234
|
if (!(s != x.charAt(0) || f != x.charAt(1))) {
|
|
1283
1235
|
for (var T = 2; c != x.charAt(T) && (f != x.charAt(T) || s != x.charAt(T + 1)); )
|
|
1284
1236
|
++T;
|
|
1285
1237
|
if (T += 2, c === x.charAt(T - 1))
|
|
1286
1238
|
return w("End of comment missing");
|
|
1287
|
-
var
|
|
1288
|
-
return S += 2, C(
|
|
1239
|
+
var O = x.slice(2, T - 2);
|
|
1240
|
+
return S += 2, C(O), x = x.slice(T), S += 2, v({
|
|
1289
1241
|
type: p,
|
|
1290
|
-
comment:
|
|
1242
|
+
comment: O
|
|
1291
1243
|
});
|
|
1292
1244
|
}
|
|
1293
1245
|
}
|
|
1294
1246
|
function P() {
|
|
1295
|
-
var
|
|
1247
|
+
var v = F(), T = _(r);
|
|
1296
1248
|
if (T) {
|
|
1297
|
-
if (k(), !
|
|
1298
|
-
var
|
|
1249
|
+
if (k(), !_(i)) return w("property missing ':'");
|
|
1250
|
+
var O = _(o), Q = v({
|
|
1299
1251
|
type: h,
|
|
1300
1252
|
property: d(T[0].replace(e, c)),
|
|
1301
|
-
value:
|
|
1253
|
+
value: O ? d(O[0].replace(e, c)) : c
|
|
1302
1254
|
});
|
|
1303
|
-
return
|
|
1255
|
+
return _(l), Q;
|
|
1304
1256
|
}
|
|
1305
1257
|
}
|
|
1306
|
-
function
|
|
1307
|
-
var
|
|
1308
|
-
H(
|
|
1258
|
+
function L() {
|
|
1259
|
+
var v = [];
|
|
1260
|
+
H(v);
|
|
1309
1261
|
for (var T; T = P(); )
|
|
1310
|
-
T !== !1 && (
|
|
1311
|
-
return
|
|
1262
|
+
T !== !1 && (v.push(T), H(v));
|
|
1263
|
+
return v;
|
|
1312
1264
|
}
|
|
1313
|
-
return U(),
|
|
1265
|
+
return U(), L();
|
|
1314
1266
|
};
|
|
1315
1267
|
function d(x) {
|
|
1316
1268
|
return x ? x.replace(a, c) : c;
|
|
1317
1269
|
}
|
|
1318
|
-
return
|
|
1270
|
+
return hn;
|
|
1319
1271
|
}
|
|
1320
|
-
var
|
|
1272
|
+
var mt;
|
|
1321
1273
|
function qi() {
|
|
1322
|
-
if (
|
|
1323
|
-
|
|
1274
|
+
if (mt) return Ne;
|
|
1275
|
+
mt = 1;
|
|
1324
1276
|
var e = Ne.__importDefault || function(r) {
|
|
1325
1277
|
return r && r.__esModule ? r : { default: r };
|
|
1326
1278
|
};
|
|
@@ -1341,8 +1293,8 @@ function qi() {
|
|
|
1341
1293
|
return Ne;
|
|
1342
1294
|
}
|
|
1343
1295
|
var Vi = /* @__PURE__ */ qi();
|
|
1344
|
-
const
|
|
1345
|
-
function
|
|
1296
|
+
const gt = /* @__PURE__ */ er(Vi), Wi = gt.default || gt, sr = cr("end"), Hn = cr("start");
|
|
1297
|
+
function cr(e) {
|
|
1346
1298
|
return t;
|
|
1347
1299
|
function t(n) {
|
|
1348
1300
|
const r = n && n.position && n.position[e] || {};
|
|
@@ -1355,20 +1307,20 @@ function fr(e) {
|
|
|
1355
1307
|
}
|
|
1356
1308
|
}
|
|
1357
1309
|
function Qi(e) {
|
|
1358
|
-
const t =
|
|
1310
|
+
const t = Hn(e), n = sr(e);
|
|
1359
1311
|
if (t && n)
|
|
1360
1312
|
return { start: t, end: n };
|
|
1361
1313
|
}
|
|
1362
1314
|
function He(e) {
|
|
1363
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
1315
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? dt(e.position) : "start" in e || "end" in e ? dt(e) : "line" in e || "column" in e ? zn(e) : "";
|
|
1364
1316
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1317
|
+
function zn(e) {
|
|
1318
|
+
return yt(e && e.line) + ":" + yt(e && e.column);
|
|
1367
1319
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1320
|
+
function dt(e) {
|
|
1321
|
+
return zn(e && e.start) + "-" + zn(e && e.end);
|
|
1370
1322
|
}
|
|
1371
|
-
function
|
|
1323
|
+
function yt(e) {
|
|
1372
1324
|
return e && typeof e == "number" ? e : 1;
|
|
1373
1325
|
}
|
|
1374
1326
|
class K extends Error {
|
|
@@ -1458,7 +1410,7 @@ K.prototype.fatal = void 0;
|
|
|
1458
1410
|
K.prototype.place = void 0;
|
|
1459
1411
|
K.prototype.ruleId = void 0;
|
|
1460
1412
|
K.prototype.source = void 0;
|
|
1461
|
-
const
|
|
1413
|
+
const Un = {}.hasOwnProperty, Yi = /* @__PURE__ */ new Map(), Gi = /[A-Z]/g, Xi = /-([a-z])/g, Ki = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Ji = /* @__PURE__ */ new Set(["td", "th"]), fr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1462
1414
|
function Zi(e, t) {
|
|
1463
1415
|
if (!t || t.Fragment === void 0)
|
|
1464
1416
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -1488,10 +1440,10 @@ function Zi(e, t) {
|
|
|
1488
1440
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1489
1441
|
passKeys: t.passKeys !== !1,
|
|
1490
1442
|
passNode: t.passNode || !1,
|
|
1491
|
-
schema: t.space === "svg" ?
|
|
1443
|
+
schema: t.space === "svg" ? jn : Hi,
|
|
1492
1444
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1493
1445
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1494
|
-
}, o =
|
|
1446
|
+
}, o = hr(i, e, void 0);
|
|
1495
1447
|
return o && typeof o != "string" ? o : i.create(
|
|
1496
1448
|
e,
|
|
1497
1449
|
i.Fragment,
|
|
@@ -1499,7 +1451,7 @@ function Zi(e, t) {
|
|
|
1499
1451
|
void 0
|
|
1500
1452
|
);
|
|
1501
1453
|
}
|
|
1502
|
-
function
|
|
1454
|
+
function hr(e, t, n) {
|
|
1503
1455
|
if (t.type === "element")
|
|
1504
1456
|
return el(e, t, n);
|
|
1505
1457
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
|
@@ -1516,12 +1468,12 @@ function pr(e, t, n) {
|
|
|
1516
1468
|
function el(e, t, n) {
|
|
1517
1469
|
const r = e.schema;
|
|
1518
1470
|
let i = r;
|
|
1519
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
1520
|
-
const o =
|
|
1521
|
-
let a =
|
|
1471
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = jn, e.schema = i), e.ancestors.push(t);
|
|
1472
|
+
const o = mr(e, t.tagName, !1), l = ul(e, t);
|
|
1473
|
+
let a = qn(e, t);
|
|
1522
1474
|
return Ki.has(t.tagName) && (a = a.filter(function(u) {
|
|
1523
|
-
return typeof u == "string" ? !
|
|
1524
|
-
})),
|
|
1475
|
+
return typeof u == "string" ? !vi(u) : !0;
|
|
1476
|
+
})), pr(e, l, o, t), $n(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1525
1477
|
}
|
|
1526
1478
|
function nl(e, t) {
|
|
1527
1479
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -1544,21 +1496,21 @@ function tl(e, t) {
|
|
|
1544
1496
|
function rl(e, t, n) {
|
|
1545
1497
|
const r = e.schema;
|
|
1546
1498
|
let i = r;
|
|
1547
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
1548
|
-
const o = t.name === null ? e.Fragment :
|
|
1549
|
-
return
|
|
1499
|
+
t.name === "svg" && r.space === "html" && (i = jn, e.schema = i), e.ancestors.push(t);
|
|
1500
|
+
const o = t.name === null ? e.Fragment : mr(e, t.name, !0), l = sl(e, t), a = qn(e, t);
|
|
1501
|
+
return pr(e, l, o, t), $n(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1550
1502
|
}
|
|
1551
1503
|
function il(e, t, n) {
|
|
1552
1504
|
const r = {};
|
|
1553
|
-
return
|
|
1505
|
+
return $n(r, qn(e, t)), e.create(t, e.Fragment, r, n);
|
|
1554
1506
|
}
|
|
1555
1507
|
function ll(e, t) {
|
|
1556
1508
|
return t.value;
|
|
1557
1509
|
}
|
|
1558
|
-
function
|
|
1510
|
+
function pr(e, t, n, r) {
|
|
1559
1511
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
1560
1512
|
}
|
|
1561
|
-
function
|
|
1513
|
+
function $n(e, t) {
|
|
1562
1514
|
if (t.length > 0) {
|
|
1563
1515
|
const n = t.length > 1 ? t : t[0];
|
|
1564
1516
|
n && (e.children = n);
|
|
@@ -1574,7 +1526,7 @@ function ol(e, t, n) {
|
|
|
1574
1526
|
function al(e, t) {
|
|
1575
1527
|
return n;
|
|
1576
1528
|
function n(r, i, o, l) {
|
|
1577
|
-
const a = Array.isArray(o.children), u =
|
|
1529
|
+
const a = Array.isArray(o.children), u = Hn(r);
|
|
1578
1530
|
return t(
|
|
1579
1531
|
i,
|
|
1580
1532
|
o,
|
|
@@ -1593,7 +1545,7 @@ function ul(e, t) {
|
|
|
1593
1545
|
const n = {};
|
|
1594
1546
|
let r, i;
|
|
1595
1547
|
for (i in t.properties)
|
|
1596
|
-
if (i !== "children" &&
|
|
1548
|
+
if (i !== "children" && Un.call(t.properties, i)) {
|
|
1597
1549
|
const o = cl(e, i, t.properties[i]);
|
|
1598
1550
|
if (o) {
|
|
1599
1551
|
const [l, a] = o;
|
|
@@ -1637,7 +1589,7 @@ function sl(e, t) {
|
|
|
1637
1589
|
}
|
|
1638
1590
|
return n;
|
|
1639
1591
|
}
|
|
1640
|
-
function
|
|
1592
|
+
function qn(e, t) {
|
|
1641
1593
|
const n = [];
|
|
1642
1594
|
let r = -1;
|
|
1643
1595
|
const i = e.passKeys ? /* @__PURE__ */ new Map() : Yi;
|
|
@@ -1651,7 +1603,7 @@ function Wn(e, t) {
|
|
|
1651
1603
|
l = u + "-" + s, i.set(u, s + 1);
|
|
1652
1604
|
}
|
|
1653
1605
|
}
|
|
1654
|
-
const a =
|
|
1606
|
+
const a = hr(e, o, l);
|
|
1655
1607
|
a !== void 0 && n.push(a);
|
|
1656
1608
|
}
|
|
1657
1609
|
return n;
|
|
@@ -1684,7 +1636,7 @@ function fl(e, t) {
|
|
|
1684
1636
|
ruleId: "style",
|
|
1685
1637
|
source: "hast-util-to-jsx-runtime"
|
|
1686
1638
|
});
|
|
1687
|
-
throw l.file = e.filePath || void 0, l.url =
|
|
1639
|
+
throw l.file = e.filePath || void 0, l.url = fr + "#cannot-parse-style-attribute", l;
|
|
1688
1640
|
}
|
|
1689
1641
|
}
|
|
1690
1642
|
return n;
|
|
@@ -1693,7 +1645,7 @@ function fl(e, t) {
|
|
|
1693
1645
|
l.slice(0, 2) !== "--" && (l.slice(0, 4) === "-ms-" && (l = "ms-" + l.slice(4)), l = l.replace(Xi, ml)), n[l] = o;
|
|
1694
1646
|
}
|
|
1695
1647
|
}
|
|
1696
|
-
function
|
|
1648
|
+
function mr(e, t, n) {
|
|
1697
1649
|
let r;
|
|
1698
1650
|
if (!n)
|
|
1699
1651
|
r = { type: "Literal", value: t };
|
|
@@ -1701,7 +1653,7 @@ function gr(e, t, n) {
|
|
|
1701
1653
|
const i = t.split(".");
|
|
1702
1654
|
let o = -1, l;
|
|
1703
1655
|
for (; ++o < i.length; ) {
|
|
1704
|
-
const a =
|
|
1656
|
+
const a = st(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] };
|
|
1705
1657
|
l = l ? {
|
|
1706
1658
|
type: "MemberExpression",
|
|
1707
1659
|
object: l,
|
|
@@ -1712,13 +1664,13 @@ function gr(e, t, n) {
|
|
|
1712
1664
|
}
|
|
1713
1665
|
r = l;
|
|
1714
1666
|
} else
|
|
1715
|
-
r =
|
|
1667
|
+
r = st(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
|
|
1716
1668
|
if (r.type === "Literal") {
|
|
1717
1669
|
const i = (
|
|
1718
1670
|
/** @type {keyof JSX.IntrinsicElements} */
|
|
1719
1671
|
r.value
|
|
1720
1672
|
);
|
|
1721
|
-
return
|
|
1673
|
+
return Un.call(e.components, i) ? e.components[i] : i;
|
|
1722
1674
|
}
|
|
1723
1675
|
if (e.evaluater)
|
|
1724
1676
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -1734,13 +1686,13 @@ function $e(e, t) {
|
|
|
1734
1686
|
source: "hast-util-to-jsx-runtime"
|
|
1735
1687
|
}
|
|
1736
1688
|
);
|
|
1737
|
-
throw n.file = e.filePath || void 0, n.url =
|
|
1689
|
+
throw n.file = e.filePath || void 0, n.url = fr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1738
1690
|
}
|
|
1739
1691
|
function hl(e) {
|
|
1740
1692
|
const t = {};
|
|
1741
1693
|
let n;
|
|
1742
1694
|
for (n in e)
|
|
1743
|
-
|
|
1695
|
+
Un.call(e, n) && (t[pl(n)] = e[n]);
|
|
1744
1696
|
return t;
|
|
1745
1697
|
}
|
|
1746
1698
|
function pl(e) {
|
|
@@ -1753,7 +1705,7 @@ function ml(e, t) {
|
|
|
1753
1705
|
function gl(e) {
|
|
1754
1706
|
return "-" + e.toLowerCase();
|
|
1755
1707
|
}
|
|
1756
|
-
const
|
|
1708
|
+
const pn = {
|
|
1757
1709
|
action: ["form"],
|
|
1758
1710
|
cite: ["blockquote", "del", "ins", "q"],
|
|
1759
1711
|
data: ["object"],
|
|
@@ -1776,36 +1728,36 @@ const gn = {
|
|
|
1776
1728
|
"video"
|
|
1777
1729
|
]
|
|
1778
1730
|
}, dl = {};
|
|
1779
|
-
function
|
|
1731
|
+
function Vn(e, t) {
|
|
1780
1732
|
const n = dl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
1781
|
-
return
|
|
1733
|
+
return gr(e, r, i);
|
|
1782
1734
|
}
|
|
1783
|
-
function
|
|
1735
|
+
function gr(e, t, n) {
|
|
1784
1736
|
if (yl(e)) {
|
|
1785
1737
|
if ("value" in e)
|
|
1786
1738
|
return e.type === "html" && !n ? "" : e.value;
|
|
1787
1739
|
if (t && "alt" in e && e.alt)
|
|
1788
1740
|
return e.alt;
|
|
1789
1741
|
if ("children" in e)
|
|
1790
|
-
return
|
|
1742
|
+
return kt(e.children, t, n);
|
|
1791
1743
|
}
|
|
1792
|
-
return Array.isArray(e) ?
|
|
1744
|
+
return Array.isArray(e) ? kt(e, t, n) : "";
|
|
1793
1745
|
}
|
|
1794
|
-
function
|
|
1746
|
+
function kt(e, t, n) {
|
|
1795
1747
|
const r = [];
|
|
1796
1748
|
let i = -1;
|
|
1797
1749
|
for (; ++i < e.length; )
|
|
1798
|
-
r[i] =
|
|
1750
|
+
r[i] = gr(e[i], t, n);
|
|
1799
1751
|
return r.join("");
|
|
1800
1752
|
}
|
|
1801
1753
|
function yl(e) {
|
|
1802
1754
|
return !!(e && typeof e == "object");
|
|
1803
1755
|
}
|
|
1804
|
-
const
|
|
1805
|
-
function
|
|
1756
|
+
const xt = document.createElement("i");
|
|
1757
|
+
function Wn(e) {
|
|
1806
1758
|
const t = "&" + e + ";";
|
|
1807
|
-
|
|
1808
|
-
const n =
|
|
1759
|
+
xt.innerHTML = t;
|
|
1760
|
+
const n = xt.textContent;
|
|
1809
1761
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
1810
1762
|
}
|
|
1811
1763
|
function te(e, t, n, r) {
|
|
@@ -1817,11 +1769,11 @@ function te(e, t, n, r) {
|
|
|
1817
1769
|
for (n && e.splice(t, n); o < r.length; )
|
|
1818
1770
|
l = r.slice(o, o + 1e4), l.unshift(t, 0), e.splice(...l), o += 1e4, t += 1e4;
|
|
1819
1771
|
}
|
|
1820
|
-
function
|
|
1772
|
+
function re(e, t) {
|
|
1821
1773
|
return e.length > 0 ? (te(e, e.length, 0, t), e) : t;
|
|
1822
1774
|
}
|
|
1823
|
-
const
|
|
1824
|
-
function
|
|
1775
|
+
const bt = {}.hasOwnProperty;
|
|
1776
|
+
function dr(e) {
|
|
1825
1777
|
const t = {};
|
|
1826
1778
|
let n = -1;
|
|
1827
1779
|
for (; ++n < e.length; )
|
|
@@ -1831,11 +1783,11 @@ function yr(e) {
|
|
|
1831
1783
|
function kl(e, t) {
|
|
1832
1784
|
let n;
|
|
1833
1785
|
for (n in t) {
|
|
1834
|
-
const i = (
|
|
1786
|
+
const i = (bt.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
1835
1787
|
let l;
|
|
1836
1788
|
if (o)
|
|
1837
1789
|
for (l in o) {
|
|
1838
|
-
|
|
1790
|
+
bt.call(i, l) || (i[l] = []);
|
|
1839
1791
|
const a = o[l];
|
|
1840
1792
|
xl(
|
|
1841
1793
|
// @ts-expect-error Looks like a list.
|
|
@@ -1852,7 +1804,7 @@ function xl(e, t) {
|
|
|
1852
1804
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
1853
1805
|
te(e, 0, 0, r);
|
|
1854
1806
|
}
|
|
1855
|
-
function
|
|
1807
|
+
function yr(e, t) {
|
|
1856
1808
|
const n = Number.parseInt(e, t);
|
|
1857
1809
|
return (
|
|
1858
1810
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -1865,18 +1817,18 @@ function kr(e, t) {
|
|
|
1865
1817
|
n > 1114111 ? "�" : String.fromCodePoint(n)
|
|
1866
1818
|
);
|
|
1867
1819
|
}
|
|
1868
|
-
function
|
|
1820
|
+
function se(e) {
|
|
1869
1821
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1870
1822
|
}
|
|
1871
1823
|
const J = be(/[A-Za-z]/), X = be(/[\dA-Za-z]/), bl = be(/[#-'*+\--9=?A-Z^-~]/);
|
|
1872
|
-
function
|
|
1824
|
+
function en(e) {
|
|
1873
1825
|
return (
|
|
1874
1826
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
1875
1827
|
// character DEL
|
|
1876
1828
|
e !== null && (e < 32 || e === 127)
|
|
1877
1829
|
);
|
|
1878
1830
|
}
|
|
1879
|
-
const
|
|
1831
|
+
const Dn = be(/\d/), wl = be(/[\dA-Fa-f]/), Sl = be(/[!-/:-@[-`{-~]/);
|
|
1880
1832
|
function D(e) {
|
|
1881
1833
|
return e !== null && e < -2;
|
|
1882
1834
|
}
|
|
@@ -1886,14 +1838,14 @@ function q(e) {
|
|
|
1886
1838
|
function N(e) {
|
|
1887
1839
|
return e === -2 || e === -1 || e === 32;
|
|
1888
1840
|
}
|
|
1889
|
-
const
|
|
1841
|
+
const on = be(new RegExp("\\p{P}|\\p{S}", "u")), Ee = be(/\s/);
|
|
1890
1842
|
function be(e) {
|
|
1891
1843
|
return t;
|
|
1892
1844
|
function t(n) {
|
|
1893
1845
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
1894
1846
|
}
|
|
1895
1847
|
}
|
|
1896
|
-
function
|
|
1848
|
+
function Oe(e) {
|
|
1897
1849
|
const t = [];
|
|
1898
1850
|
let n = -1, r = 0, i = 0;
|
|
1899
1851
|
for (; ++n < e.length; ) {
|
|
@@ -1957,7 +1909,7 @@ function El(e) {
|
|
|
1957
1909
|
}
|
|
1958
1910
|
const Il = {
|
|
1959
1911
|
tokenize: Al
|
|
1960
|
-
},
|
|
1912
|
+
}, wt = {
|
|
1961
1913
|
tokenize: Tl
|
|
1962
1914
|
};
|
|
1963
1915
|
function Al(e) {
|
|
@@ -1982,12 +1934,12 @@ function Al(e) {
|
|
|
1982
1934
|
break;
|
|
1983
1935
|
}
|
|
1984
1936
|
y(r);
|
|
1985
|
-
let
|
|
1986
|
-
for (;
|
|
1987
|
-
t.events[
|
|
1937
|
+
let _ = F;
|
|
1938
|
+
for (; _ < t.events.length; )
|
|
1939
|
+
t.events[_][1].end = {
|
|
1988
1940
|
...w
|
|
1989
|
-
},
|
|
1990
|
-
return te(t.events, z + 1, 0, t.events.slice(F)), t.events.length =
|
|
1941
|
+
}, _++;
|
|
1942
|
+
return te(t.events, z + 1, 0, t.events.slice(F)), t.events.length = _, s(C);
|
|
1991
1943
|
}
|
|
1992
1944
|
return a(C);
|
|
1993
1945
|
}
|
|
@@ -1999,7 +1951,7 @@ function Al(e) {
|
|
|
1999
1951
|
return d(C);
|
|
2000
1952
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
2001
1953
|
}
|
|
2002
|
-
return t.containerState = {}, e.check(
|
|
1954
|
+
return t.containerState = {}, e.check(wt, f, c)(C);
|
|
2003
1955
|
}
|
|
2004
1956
|
function f(C) {
|
|
2005
1957
|
return i && S(), y(r), p(C);
|
|
@@ -2008,7 +1960,7 @@ function Al(e) {
|
|
|
2008
1960
|
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, d(C);
|
|
2009
1961
|
}
|
|
2010
1962
|
function p(C) {
|
|
2011
|
-
return t.containerState = {}, e.attempt(
|
|
1963
|
+
return t.containerState = {}, e.attempt(wt, h, d)(C);
|
|
2012
1964
|
}
|
|
2013
1965
|
function h(C) {
|
|
2014
1966
|
return r++, n.push([t.currentConstruct, t.containerState]), p(C);
|
|
@@ -2043,8 +1995,8 @@ function Al(e) {
|
|
|
2043
1995
|
i.events[w][1].end.offset > l)
|
|
2044
1996
|
)
|
|
2045
1997
|
return;
|
|
2046
|
-
const
|
|
2047
|
-
let U =
|
|
1998
|
+
const _ = t.events.length;
|
|
1999
|
+
let U = _, H, k;
|
|
2048
2000
|
for (; U--; )
|
|
2049
2001
|
if (t.events[U][0] === "exit" && t.events[U][1].type === "chunkFlow") {
|
|
2050
2002
|
if (H) {
|
|
@@ -2053,11 +2005,11 @@ function Al(e) {
|
|
|
2053
2005
|
}
|
|
2054
2006
|
H = !0;
|
|
2055
2007
|
}
|
|
2056
|
-
for (y(r), w =
|
|
2008
|
+
for (y(r), w = _; w < t.events.length; )
|
|
2057
2009
|
t.events[w][1].end = {
|
|
2058
2010
|
...k
|
|
2059
2011
|
}, w++;
|
|
2060
|
-
te(t.events, U + 1, 0, t.events.slice(
|
|
2012
|
+
te(t.events, U + 1, 0, t.events.slice(_)), t.events.length = w;
|
|
2061
2013
|
}
|
|
2062
2014
|
}
|
|
2063
2015
|
function y(C) {
|
|
@@ -2078,10 +2030,10 @@ function Tl(e, t, n) {
|
|
|
2078
2030
|
function De(e) {
|
|
2079
2031
|
if (e === null || q(e) || Ee(e))
|
|
2080
2032
|
return 1;
|
|
2081
|
-
if (
|
|
2033
|
+
if (on(e))
|
|
2082
2034
|
return 2;
|
|
2083
2035
|
}
|
|
2084
|
-
function
|
|
2036
|
+
function an(e, t, n) {
|
|
2085
2037
|
const r = [];
|
|
2086
2038
|
let i = -1;
|
|
2087
2039
|
for (; ++i < e.length; ) {
|
|
@@ -2090,10 +2042,10 @@ function un(e, t, n) {
|
|
|
2090
2042
|
}
|
|
2091
2043
|
return t;
|
|
2092
2044
|
}
|
|
2093
|
-
const
|
|
2045
|
+
const Fn = {
|
|
2094
2046
|
name: "attention",
|
|
2095
2047
|
resolveAll: Pl,
|
|
2096
|
-
tokenize:
|
|
2048
|
+
tokenize: Ll
|
|
2097
2049
|
};
|
|
2098
2050
|
function Pl(e, t) {
|
|
2099
2051
|
let n = -1, r, i, o, l, a, u, s, f;
|
|
@@ -2110,7 +2062,7 @@ function Pl(e, t) {
|
|
|
2110
2062
|
}, p = {
|
|
2111
2063
|
...e[n][1].start
|
|
2112
2064
|
};
|
|
2113
|
-
|
|
2065
|
+
St(c, -u), St(p, u), l = {
|
|
2114
2066
|
type: u > 1 ? "strongSequence" : "emphasisSequence",
|
|
2115
2067
|
start: c,
|
|
2116
2068
|
end: {
|
|
@@ -2142,7 +2094,7 @@ function Pl(e, t) {
|
|
|
2142
2094
|
...l.start
|
|
2143
2095
|
}, e[n][1].start = {
|
|
2144
2096
|
...a.end
|
|
2145
|
-
}, s = [], e[r][1].end.offset - e[r][1].start.offset && (s =
|
|
2097
|
+
}, s = [], e[r][1].end.offset - e[r][1].start.offset && (s = re(s, [["enter", e[r][1], t], ["exit", e[r][1], t]])), s = re(s, [["enter", i, t], ["enter", l, t], ["exit", l, t], ["enter", o, t]]), s = re(s, an(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), s = re(s, [["exit", o, t], ["enter", a, t], ["exit", a, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (f = 2, s = re(s, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : f = 0, te(e, r - 1, n - r + 3, s), n = r + s.length - f - 2;
|
|
2146
2098
|
break;
|
|
2147
2099
|
}
|
|
2148
2100
|
}
|
|
@@ -2150,7 +2102,7 @@ function Pl(e, t) {
|
|
|
2150
2102
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
|
2151
2103
|
return e;
|
|
2152
2104
|
}
|
|
2153
|
-
function
|
|
2105
|
+
function Ll(e, t) {
|
|
2154
2106
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = De(r);
|
|
2155
2107
|
let o;
|
|
2156
2108
|
return l;
|
|
@@ -2164,10 +2116,10 @@ function vl(e, t) {
|
|
|
2164
2116
|
return s._open = !!(o === 42 ? c : c && (i || !p)), s._close = !!(o === 42 ? p : p && (f || !c)), t(u);
|
|
2165
2117
|
}
|
|
2166
2118
|
}
|
|
2167
|
-
function
|
|
2119
|
+
function St(e, t) {
|
|
2168
2120
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
2169
2121
|
}
|
|
2170
|
-
const
|
|
2122
|
+
const vl = {
|
|
2171
2123
|
name: "autolink",
|
|
2172
2124
|
tokenize: zl
|
|
2173
2125
|
};
|
|
@@ -2187,7 +2139,7 @@ function zl(e, t, n) {
|
|
|
2187
2139
|
return h === 58 ? (e.consume(h), r = 0, u) : (h === 43 || h === 45 || h === 46 || X(h)) && r++ < 32 ? (e.consume(h), a) : (r = 0, s(h));
|
|
2188
2140
|
}
|
|
2189
2141
|
function u(h) {
|
|
2190
|
-
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 ||
|
|
2142
|
+
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 || en(h) ? n(h) : (e.consume(h), u);
|
|
2191
2143
|
}
|
|
2192
2144
|
function s(h) {
|
|
2193
2145
|
return h === 64 ? (e.consume(h), f) : bl(h) ? (e.consume(h), s) : n(h);
|
|
@@ -2219,9 +2171,9 @@ function Dl(e, t, n) {
|
|
|
2219
2171
|
return o === null || D(o) ? t(o) : n(o);
|
|
2220
2172
|
}
|
|
2221
2173
|
}
|
|
2222
|
-
const
|
|
2174
|
+
const kr = {
|
|
2223
2175
|
continuation: {
|
|
2224
|
-
tokenize:
|
|
2176
|
+
tokenize: Ol
|
|
2225
2177
|
},
|
|
2226
2178
|
exit: Rl,
|
|
2227
2179
|
name: "blockQuote",
|
|
@@ -2243,24 +2195,24 @@ function Fl(e, t, n) {
|
|
|
2243
2195
|
return N(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
|
2244
2196
|
}
|
|
2245
2197
|
}
|
|
2246
|
-
function
|
|
2198
|
+
function Ol(e, t, n) {
|
|
2247
2199
|
const r = this;
|
|
2248
2200
|
return i;
|
|
2249
2201
|
function i(l) {
|
|
2250
2202
|
return N(l) ? j(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
|
|
2251
2203
|
}
|
|
2252
2204
|
function o(l) {
|
|
2253
|
-
return e.attempt(
|
|
2205
|
+
return e.attempt(kr, t, n)(l);
|
|
2254
2206
|
}
|
|
2255
2207
|
}
|
|
2256
2208
|
function Rl(e) {
|
|
2257
2209
|
e.exit("blockQuote");
|
|
2258
2210
|
}
|
|
2259
|
-
const
|
|
2211
|
+
const xr = {
|
|
2260
2212
|
name: "characterEscape",
|
|
2261
|
-
tokenize:
|
|
2213
|
+
tokenize: _l
|
|
2262
2214
|
};
|
|
2263
|
-
function
|
|
2215
|
+
function _l(e, t, n) {
|
|
2264
2216
|
return r;
|
|
2265
2217
|
function r(o) {
|
|
2266
2218
|
return e.enter("characterEscape"), e.enter("escapeMarker"), e.consume(o), e.exit("escapeMarker"), i;
|
|
@@ -2269,7 +2221,7 @@ function Ol(e, t, n) {
|
|
|
2269
2221
|
return Sl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2270
2222
|
}
|
|
2271
2223
|
}
|
|
2272
|
-
const
|
|
2224
|
+
const br = {
|
|
2273
2225
|
name: "characterReference",
|
|
2274
2226
|
tokenize: Ml
|
|
2275
2227
|
};
|
|
@@ -2284,20 +2236,20 @@ function Ml(e, t, n) {
|
|
|
2284
2236
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = X, f(c));
|
|
2285
2237
|
}
|
|
2286
2238
|
function s(c) {
|
|
2287
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = wl, f) : (e.enter("characterReferenceValue"), o = 7, l =
|
|
2239
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), o = 6, l = wl, f) : (e.enter("characterReferenceValue"), o = 7, l = Dn, f(c));
|
|
2288
2240
|
}
|
|
2289
2241
|
function f(c) {
|
|
2290
2242
|
if (c === 59 && i) {
|
|
2291
2243
|
const p = e.exit("characterReferenceValue");
|
|
2292
|
-
return l === X && !
|
|
2244
|
+
return l === X && !Wn(r.sliceSerialize(p)) ? n(c) : (e.enter("characterReferenceMarker"), e.consume(c), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
2293
2245
|
}
|
|
2294
2246
|
return l(c) && i++ < o ? (e.consume(c), f) : n(c);
|
|
2295
2247
|
}
|
|
2296
2248
|
}
|
|
2297
|
-
const
|
|
2249
|
+
const Ct = {
|
|
2298
2250
|
partial: !0,
|
|
2299
2251
|
tokenize: Bl
|
|
2300
|
-
},
|
|
2252
|
+
}, Et = {
|
|
2301
2253
|
concrete: !0,
|
|
2302
2254
|
name: "codeFenced",
|
|
2303
2255
|
tokenize: Nl
|
|
@@ -2313,14 +2265,14 @@ function Nl(e, t, n) {
|
|
|
2313
2265
|
return s(w);
|
|
2314
2266
|
}
|
|
2315
2267
|
function s(w) {
|
|
2316
|
-
const
|
|
2317
|
-
return o =
|
|
2268
|
+
const _ = r.events[r.events.length - 1];
|
|
2269
|
+
return o = _ && _[1].type === "linePrefix" ? _[2].sliceSerialize(_[1], !0).length : 0, a = w, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), f(w);
|
|
2318
2270
|
}
|
|
2319
2271
|
function f(w) {
|
|
2320
2272
|
return w === a ? (l++, e.consume(w), f) : l < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), N(w) ? j(e, c, "whitespace")(w) : c(w));
|
|
2321
2273
|
}
|
|
2322
2274
|
function c(w) {
|
|
2323
|
-
return w === null || D(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(
|
|
2275
|
+
return w === null || D(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(Ct, x, F)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
2324
2276
|
contentType: "string"
|
|
2325
2277
|
}), p(w));
|
|
2326
2278
|
}
|
|
@@ -2345,7 +2297,7 @@ function Nl(e, t, n) {
|
|
|
2345
2297
|
return o > 0 && N(w) ? j(e, S, "linePrefix", o + 1)(w) : S(w);
|
|
2346
2298
|
}
|
|
2347
2299
|
function S(w) {
|
|
2348
|
-
return w === null || D(w) ? e.check(
|
|
2300
|
+
return w === null || D(w) ? e.check(Ct, x, F)(w) : (e.enter("codeFlowValue"), C(w));
|
|
2349
2301
|
}
|
|
2350
2302
|
function C(w) {
|
|
2351
2303
|
return w === null || D(w) ? (e.exit("codeFlowValue"), S(w)) : (e.consume(w), C);
|
|
@@ -2353,23 +2305,23 @@ function Nl(e, t, n) {
|
|
|
2353
2305
|
function F(w) {
|
|
2354
2306
|
return e.exit("codeFenced"), t(w);
|
|
2355
2307
|
}
|
|
2356
|
-
function z(w,
|
|
2308
|
+
function z(w, _, U) {
|
|
2357
2309
|
let H = 0;
|
|
2358
2310
|
return k;
|
|
2359
|
-
function k(
|
|
2360
|
-
return w.enter("lineEnding"), w.consume(
|
|
2311
|
+
function k(O) {
|
|
2312
|
+
return w.enter("lineEnding"), w.consume(O), w.exit("lineEnding"), P;
|
|
2361
2313
|
}
|
|
2362
|
-
function P(
|
|
2363
|
-
return w.enter("codeFencedFence"), N(
|
|
2314
|
+
function P(O) {
|
|
2315
|
+
return w.enter("codeFencedFence"), N(O) ? j(w, L, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : L(O);
|
|
2364
2316
|
}
|
|
2365
|
-
function
|
|
2366
|
-
return
|
|
2317
|
+
function L(O) {
|
|
2318
|
+
return O === a ? (w.enter("codeFencedFenceSequence"), v(O)) : U(O);
|
|
2367
2319
|
}
|
|
2368
|
-
function
|
|
2369
|
-
return
|
|
2320
|
+
function v(O) {
|
|
2321
|
+
return O === a ? (H++, w.consume(O), v) : H >= l ? (w.exit("codeFencedFenceSequence"), N(O) ? j(w, T, "whitespace")(O) : T(O)) : U(O);
|
|
2370
2322
|
}
|
|
2371
|
-
function T(
|
|
2372
|
-
return
|
|
2323
|
+
function T(O) {
|
|
2324
|
+
return O === null || D(O) ? (w.exit("codeFencedFence"), _(O)) : U(O);
|
|
2373
2325
|
}
|
|
2374
2326
|
}
|
|
2375
2327
|
}
|
|
@@ -2383,7 +2335,7 @@ function Bl(e, t, n) {
|
|
|
2383
2335
|
return r.parser.lazy[r.now().line] ? n(l) : t(l);
|
|
2384
2336
|
}
|
|
2385
2337
|
}
|
|
2386
|
-
const
|
|
2338
|
+
const mn = {
|
|
2387
2339
|
name: "codeIndented",
|
|
2388
2340
|
tokenize: Hl
|
|
2389
2341
|
}, jl = {
|
|
@@ -2634,7 +2586,7 @@ function Be(e, t) {
|
|
|
2634
2586
|
for (; n < t.length; )
|
|
2635
2587
|
e.push(...t.slice(n, n + 1e4)), n += 1e4;
|
|
2636
2588
|
}
|
|
2637
|
-
function
|
|
2589
|
+
function wr(e) {
|
|
2638
2590
|
const t = {};
|
|
2639
2591
|
let n = -1, r, i, o, l, a, u, s;
|
|
2640
2592
|
const f = new Ql(e);
|
|
@@ -2686,7 +2638,7 @@ const Gl = {
|
|
|
2686
2638
|
tokenize: Zl
|
|
2687
2639
|
};
|
|
2688
2640
|
function Kl(e) {
|
|
2689
|
-
return
|
|
2641
|
+
return wr(e), e;
|
|
2690
2642
|
}
|
|
2691
2643
|
function Jl(e, t) {
|
|
2692
2644
|
let n;
|
|
@@ -2722,12 +2674,12 @@ function Zl(e, t, n) {
|
|
|
2722
2674
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? t(l) : e.interrupt(r.parser.constructs.flow, n, t)(l);
|
|
2723
2675
|
}
|
|
2724
2676
|
}
|
|
2725
|
-
function
|
|
2677
|
+
function Sr(e, t, n, r, i, o, l, a, u) {
|
|
2726
2678
|
const s = u || Number.POSITIVE_INFINITY;
|
|
2727
2679
|
let f = 0;
|
|
2728
2680
|
return c;
|
|
2729
2681
|
function c(y) {
|
|
2730
|
-
return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o), p) : y === null || y === 32 || y === 41 ||
|
|
2682
|
+
return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o), p) : y === null || y === 32 || y === 41 || en(y) ? n(y) : (e.enter(r), e.enter(l), e.enter(a), e.enter("chunkString", {
|
|
2731
2683
|
contentType: "string"
|
|
2732
2684
|
}), x(y));
|
|
2733
2685
|
}
|
|
@@ -2743,13 +2695,13 @@ function Cr(e, t, n, r, i, o, l, a, u) {
|
|
|
2743
2695
|
return y === 60 || y === 62 || y === 92 ? (e.consume(y), h) : h(y);
|
|
2744
2696
|
}
|
|
2745
2697
|
function x(y) {
|
|
2746
|
-
return !f && (y === null || y === 41 || q(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 ||
|
|
2698
|
+
return !f && (y === null || y === 41 || q(y)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(y)) : f < s && y === 40 ? (e.consume(y), f++, x) : y === 41 ? (e.consume(y), f--, x) : y === null || y === 32 || y === 40 || en(y) ? n(y) : (e.consume(y), y === 92 ? E : x);
|
|
2747
2699
|
}
|
|
2748
2700
|
function E(y) {
|
|
2749
2701
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), x) : x(y);
|
|
2750
2702
|
}
|
|
2751
2703
|
}
|
|
2752
|
-
function
|
|
2704
|
+
function Cr(e, t, n, r, i, o) {
|
|
2753
2705
|
const l = this;
|
|
2754
2706
|
let a = 0, u;
|
|
2755
2707
|
return s;
|
|
@@ -2773,7 +2725,7 @@ function Er(e, t, n, r, i, o) {
|
|
|
2773
2725
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, c) : c(h);
|
|
2774
2726
|
}
|
|
2775
2727
|
}
|
|
2776
|
-
function
|
|
2728
|
+
function Er(e, t, n, r, i, o) {
|
|
2777
2729
|
let l;
|
|
2778
2730
|
return a;
|
|
2779
2731
|
function a(p) {
|
|
@@ -2816,7 +2768,7 @@ function to(e, t, n) {
|
|
|
2816
2768
|
return e.enter("definition"), l(h);
|
|
2817
2769
|
}
|
|
2818
2770
|
function l(h) {
|
|
2819
|
-
return
|
|
2771
|
+
return Cr.call(
|
|
2820
2772
|
r,
|
|
2821
2773
|
e,
|
|
2822
2774
|
a,
|
|
@@ -2828,13 +2780,13 @@ function to(e, t, n) {
|
|
|
2828
2780
|
)(h);
|
|
2829
2781
|
}
|
|
2830
2782
|
function a(h) {
|
|
2831
|
-
return i =
|
|
2783
|
+
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);
|
|
2832
2784
|
}
|
|
2833
2785
|
function u(h) {
|
|
2834
2786
|
return q(h) ? Ue(e, s)(h) : s(h);
|
|
2835
2787
|
}
|
|
2836
2788
|
function s(h) {
|
|
2837
|
-
return
|
|
2789
|
+
return Sr(
|
|
2838
2790
|
e,
|
|
2839
2791
|
f,
|
|
2840
2792
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
|
@@ -2862,7 +2814,7 @@ function ro(e, t, n) {
|
|
|
2862
2814
|
return q(a) ? Ue(e, i)(a) : n(a);
|
|
2863
2815
|
}
|
|
2864
2816
|
function i(a) {
|
|
2865
|
-
return
|
|
2817
|
+
return Er(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
2866
2818
|
}
|
|
2867
2819
|
function o(a) {
|
|
2868
2820
|
return N(a) ? j(e, l, "whitespace")(a) : l(a);
|
|
@@ -2987,7 +2939,7 @@ const so = [
|
|
|
2987
2939
|
"tr",
|
|
2988
2940
|
"track",
|
|
2989
2941
|
"ul"
|
|
2990
|
-
],
|
|
2942
|
+
], It = ["pre", "script", "style", "textarea"], co = {
|
|
2991
2943
|
concrete: !0,
|
|
2992
2944
|
name: "htmlFlow",
|
|
2993
2945
|
resolveTo: po,
|
|
@@ -3025,21 +2977,21 @@ function mo(e, t, n) {
|
|
|
3025
2977
|
return g === 45 ? (e.consume(g), r.interrupt ? t : m) : n(g);
|
|
3026
2978
|
}
|
|
3027
2979
|
function d(g) {
|
|
3028
|
-
const
|
|
3029
|
-
return g ===
|
|
2980
|
+
const ae = "CDATA[";
|
|
2981
|
+
return g === ae.charCodeAt(a++) ? (e.consume(g), a === ae.length ? r.interrupt ? t : L : d) : n(g);
|
|
3030
2982
|
}
|
|
3031
2983
|
function x(g) {
|
|
3032
2984
|
return J(g) ? (e.consume(g), l = String.fromCharCode(g), E) : n(g);
|
|
3033
2985
|
}
|
|
3034
2986
|
function E(g) {
|
|
3035
2987
|
if (g === null || g === 47 || g === 62 || q(g)) {
|
|
3036
|
-
const
|
|
3037
|
-
return !
|
|
2988
|
+
const ae = g === 47, we = l.toLowerCase();
|
|
2989
|
+
return !ae && !o && It.includes(we) ? (i = 1, r.interrupt ? t(g) : L(g)) : so.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), y) : r.interrupt ? t(g) : L(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? S(g) : C(g));
|
|
3038
2990
|
}
|
|
3039
2991
|
return g === 45 || X(g) ? (e.consume(g), l += String.fromCharCode(g), E) : n(g);
|
|
3040
2992
|
}
|
|
3041
2993
|
function y(g) {
|
|
3042
|
-
return g === 62 ? (e.consume(g), r.interrupt ? t :
|
|
2994
|
+
return g === 62 ? (e.consume(g), r.interrupt ? t : L) : n(g);
|
|
3043
2995
|
}
|
|
3044
2996
|
function S(g) {
|
|
3045
2997
|
return N(g) ? (e.consume(g), S) : k(g);
|
|
@@ -3054,10 +3006,10 @@ function mo(e, t, n) {
|
|
|
3054
3006
|
return g === 61 ? (e.consume(g), w) : N(g) ? (e.consume(g), z) : C(g);
|
|
3055
3007
|
}
|
|
3056
3008
|
function w(g) {
|
|
3057
|
-
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g,
|
|
3009
|
+
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g, _) : N(g) ? (e.consume(g), w) : U(g);
|
|
3058
3010
|
}
|
|
3059
|
-
function
|
|
3060
|
-
return g === u ? (e.consume(g), u = null, H) : g === null || D(g) ? n(g) : (e.consume(g),
|
|
3011
|
+
function _(g) {
|
|
3012
|
+
return g === u ? (e.consume(g), u = null, H) : g === null || D(g) ? n(g) : (e.consume(g), _);
|
|
3061
3013
|
}
|
|
3062
3014
|
function U(g) {
|
|
3063
3015
|
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || q(g) ? z(g) : (e.consume(g), U);
|
|
@@ -3069,43 +3021,43 @@ function mo(e, t, n) {
|
|
|
3069
3021
|
return g === 62 ? (e.consume(g), P) : n(g);
|
|
3070
3022
|
}
|
|
3071
3023
|
function P(g) {
|
|
3072
|
-
return g === null || D(g) ?
|
|
3073
|
-
}
|
|
3074
|
-
function v(g) {
|
|
3075
|
-
return g === 45 && i === 2 ? (e.consume(g), Q) : g === 60 && i === 1 ? (e.consume(g), Y) : g === 62 && i === 4 ? (e.consume(g), ae) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), pe) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(fo, me, L)(g)) : g === null || D(g) ? (e.exit("htmlFlowData"), L(g)) : (e.consume(g), v);
|
|
3024
|
+
return g === null || D(g) ? L(g) : N(g) ? (e.consume(g), P) : n(g);
|
|
3076
3025
|
}
|
|
3077
3026
|
function L(g) {
|
|
3078
|
-
return e.check(
|
|
3027
|
+
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) : D(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(fo, pe, v)(g)) : g === null || D(g) ? (e.exit("htmlFlowData"), v(g)) : (e.consume(g), L);
|
|
3028
|
+
}
|
|
3029
|
+
function v(g) {
|
|
3030
|
+
return e.check(ho, T, pe)(g);
|
|
3079
3031
|
}
|
|
3080
3032
|
function T(g) {
|
|
3081
|
-
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"),
|
|
3033
|
+
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), O;
|
|
3082
3034
|
}
|
|
3083
|
-
function
|
|
3084
|
-
return g === null || D(g) ?
|
|
3035
|
+
function O(g) {
|
|
3036
|
+
return g === null || D(g) ? v(g) : (e.enter("htmlFlowData"), L(g));
|
|
3085
3037
|
}
|
|
3086
3038
|
function Q(g) {
|
|
3087
|
-
return g === 45 ? (e.consume(g), m) :
|
|
3039
|
+
return g === 45 ? (e.consume(g), m) : L(g);
|
|
3088
3040
|
}
|
|
3089
3041
|
function Y(g) {
|
|
3090
|
-
return g === 47 ? (e.consume(g), l = "",
|
|
3042
|
+
return g === 47 ? (e.consume(g), l = "", le) : L(g);
|
|
3091
3043
|
}
|
|
3092
|
-
function
|
|
3044
|
+
function le(g) {
|
|
3093
3045
|
if (g === 62) {
|
|
3094
|
-
const
|
|
3095
|
-
return
|
|
3046
|
+
const ae = l.toLowerCase();
|
|
3047
|
+
return It.includes(ae) ? (e.consume(g), oe) : L(g);
|
|
3096
3048
|
}
|
|
3097
|
-
return J(g) && l.length < 8 ? (e.consume(g), l += String.fromCharCode(g),
|
|
3049
|
+
return J(g) && l.length < 8 ? (e.consume(g), l += String.fromCharCode(g), le) : L(g);
|
|
3098
3050
|
}
|
|
3099
|
-
function
|
|
3100
|
-
return g === 93 ? (e.consume(g), m) :
|
|
3051
|
+
function he(g) {
|
|
3052
|
+
return g === 93 ? (e.consume(g), m) : L(g);
|
|
3101
3053
|
}
|
|
3102
3054
|
function m(g) {
|
|
3103
|
-
return g === 62 ? (e.consume(g),
|
|
3055
|
+
return g === 62 ? (e.consume(g), oe) : g === 45 && i === 2 ? (e.consume(g), m) : L(g);
|
|
3104
3056
|
}
|
|
3105
|
-
function
|
|
3106
|
-
return g === null || D(g) ? (e.exit("htmlFlowData"),
|
|
3057
|
+
function oe(g) {
|
|
3058
|
+
return g === null || D(g) ? (e.exit("htmlFlowData"), pe(g)) : (e.consume(g), oe);
|
|
3107
3059
|
}
|
|
3108
|
-
function
|
|
3060
|
+
function pe(g) {
|
|
3109
3061
|
return e.exit("htmlFlow"), t(g);
|
|
3110
3062
|
}
|
|
3111
3063
|
}
|
|
@@ -3155,8 +3107,8 @@ function xo(e, t, n) {
|
|
|
3155
3107
|
return m === 62 ? Q(m) : m === 45 ? p(m) : c(m);
|
|
3156
3108
|
}
|
|
3157
3109
|
function d(m) {
|
|
3158
|
-
const
|
|
3159
|
-
return m ===
|
|
3110
|
+
const oe = "CDATA[";
|
|
3111
|
+
return m === oe.charCodeAt(o++) ? (e.consume(m), o === oe.length ? x : d) : n(m);
|
|
3160
3112
|
}
|
|
3161
3113
|
function x(m) {
|
|
3162
3114
|
return m === null ? n(m) : m === 93 ? (e.consume(m), E) : D(m) ? (l = x, Y(m)) : (e.consume(m), x);
|
|
@@ -3180,10 +3132,10 @@ function xo(e, t, n) {
|
|
|
3180
3132
|
return J(m) ? (e.consume(m), w) : n(m);
|
|
3181
3133
|
}
|
|
3182
3134
|
function w(m) {
|
|
3183
|
-
return m === 45 || X(m) ? (e.consume(m), w) :
|
|
3135
|
+
return m === 45 || X(m) ? (e.consume(m), w) : _(m);
|
|
3184
3136
|
}
|
|
3185
|
-
function
|
|
3186
|
-
return D(m) ? (l =
|
|
3137
|
+
function _(m) {
|
|
3138
|
+
return D(m) ? (l = _, Y(m)) : N(m) ? (e.consume(m), _) : Q(m);
|
|
3187
3139
|
}
|
|
3188
3140
|
function U(m) {
|
|
3189
3141
|
return m === 45 || X(m) ? (e.consume(m), U) : m === 47 || m === 62 || q(m) ? H(m) : n(m);
|
|
@@ -3195,34 +3147,34 @@ function xo(e, t, n) {
|
|
|
3195
3147
|
return m === 45 || m === 46 || m === 58 || m === 95 || X(m) ? (e.consume(m), k) : P(m);
|
|
3196
3148
|
}
|
|
3197
3149
|
function P(m) {
|
|
3198
|
-
return m === 61 ? (e.consume(m),
|
|
3199
|
-
}
|
|
3200
|
-
function v(m) {
|
|
3201
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, L) : D(m) ? (l = v, Y(m)) : N(m) ? (e.consume(m), v) : (e.consume(m), T);
|
|
3150
|
+
return m === 61 ? (e.consume(m), L) : D(m) ? (l = P, Y(m)) : N(m) ? (e.consume(m), P) : H(m);
|
|
3202
3151
|
}
|
|
3203
3152
|
function L(m) {
|
|
3204
|
-
return m ===
|
|
3153
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, v) : D(m) ? (l = L, Y(m)) : N(m) ? (e.consume(m), L) : (e.consume(m), T);
|
|
3154
|
+
}
|
|
3155
|
+
function v(m) {
|
|
3156
|
+
return m === i ? (e.consume(m), i = void 0, O) : m === null ? n(m) : D(m) ? (l = v, Y(m)) : (e.consume(m), v);
|
|
3205
3157
|
}
|
|
3206
3158
|
function T(m) {
|
|
3207
3159
|
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || q(m) ? H(m) : (e.consume(m), T);
|
|
3208
3160
|
}
|
|
3209
|
-
function
|
|
3161
|
+
function O(m) {
|
|
3210
3162
|
return m === 47 || m === 62 || q(m) ? H(m) : n(m);
|
|
3211
3163
|
}
|
|
3212
3164
|
function Q(m) {
|
|
3213
3165
|
return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
|
|
3214
3166
|
}
|
|
3215
3167
|
function Y(m) {
|
|
3216
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"),
|
|
3168
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), le;
|
|
3217
3169
|
}
|
|
3218
|
-
function
|
|
3219
|
-
return N(m) ? j(e,
|
|
3170
|
+
function le(m) {
|
|
3171
|
+
return N(m) ? j(e, he, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(m) : he(m);
|
|
3220
3172
|
}
|
|
3221
|
-
function
|
|
3173
|
+
function he(m) {
|
|
3222
3174
|
return e.enter("htmlTextData"), l(m);
|
|
3223
3175
|
}
|
|
3224
3176
|
}
|
|
3225
|
-
const
|
|
3177
|
+
const Qn = {
|
|
3226
3178
|
name: "labelEnd",
|
|
3227
3179
|
resolveAll: Co,
|
|
3228
3180
|
resolveTo: Eo,
|
|
@@ -3284,7 +3236,7 @@ function Eo(e, t) {
|
|
|
3284
3236
|
...e[l - 2][1].start
|
|
3285
3237
|
}
|
|
3286
3238
|
};
|
|
3287
|
-
return a = [["enter", u, t], ["enter", s, t]], a =
|
|
3239
|
+
return a = [["enter", u, t], ["enter", s, t]], a = re(a, e.slice(o + 1, o + r + 3)), a = re(a, [["enter", f, t]]), a = re(a, an(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, l - 3), t)), a = re(a, [["exit", f, t], e[l - 2], e[l - 1], ["exit", s, t]]), a = re(a, e.slice(l + 1)), a = re(a, [["exit", u, t]]), te(e, o, e.length, a), e;
|
|
3288
3240
|
}
|
|
3289
3241
|
function Io(e, t, n) {
|
|
3290
3242
|
const r = this;
|
|
@@ -3296,7 +3248,7 @@ function Io(e, t, n) {
|
|
|
3296
3248
|
}
|
|
3297
3249
|
return a;
|
|
3298
3250
|
function a(p) {
|
|
3299
|
-
return o ? o._inactive ? c(p) : (l = r.parser.defined.includes(
|
|
3251
|
+
return o ? o._inactive ? c(p) : (l = r.parser.defined.includes(se(r.sliceSerialize({
|
|
3300
3252
|
start: o.end,
|
|
3301
3253
|
end: r.now()
|
|
3302
3254
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(p), e.exit("labelMarker"), e.exit("labelEnd"), u) : n(p);
|
|
@@ -3323,7 +3275,7 @@ function Ao(e, t, n) {
|
|
|
3323
3275
|
return q(c) ? Ue(e, o)(c) : o(c);
|
|
3324
3276
|
}
|
|
3325
3277
|
function o(c) {
|
|
3326
|
-
return c === 41 ? f(c) :
|
|
3278
|
+
return c === 41 ? f(c) : Sr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
|
|
3327
3279
|
}
|
|
3328
3280
|
function l(c) {
|
|
3329
3281
|
return q(c) ? Ue(e, u)(c) : f(c);
|
|
@@ -3332,7 +3284,7 @@ function Ao(e, t, n) {
|
|
|
3332
3284
|
return n(c);
|
|
3333
3285
|
}
|
|
3334
3286
|
function u(c) {
|
|
3335
|
-
return c === 34 || c === 39 || c === 40 ?
|
|
3287
|
+
return c === 34 || c === 39 || c === 40 ? Er(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
|
|
3336
3288
|
}
|
|
3337
3289
|
function s(c) {
|
|
3338
3290
|
return q(c) ? Ue(e, f)(c) : f(c);
|
|
@@ -3345,10 +3297,10 @@ function To(e, t, n) {
|
|
|
3345
3297
|
const r = this;
|
|
3346
3298
|
return i;
|
|
3347
3299
|
function i(a) {
|
|
3348
|
-
return
|
|
3300
|
+
return Cr.call(r, e, o, l, "reference", "referenceMarker", "referenceString")(a);
|
|
3349
3301
|
}
|
|
3350
3302
|
function o(a) {
|
|
3351
|
-
return r.parser.defined.includes(
|
|
3303
|
+
return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(a) : n(a);
|
|
3352
3304
|
}
|
|
3353
3305
|
function l(a) {
|
|
3354
3306
|
return n(a);
|
|
@@ -3363,12 +3315,12 @@ function Po(e, t, n) {
|
|
|
3363
3315
|
return o === 93 ? (e.enter("referenceMarker"), e.consume(o), e.exit("referenceMarker"), e.exit("reference"), t) : n(o);
|
|
3364
3316
|
}
|
|
3365
3317
|
}
|
|
3366
|
-
const
|
|
3318
|
+
const Lo = {
|
|
3367
3319
|
name: "labelStartImage",
|
|
3368
|
-
resolveAll:
|
|
3369
|
-
tokenize:
|
|
3320
|
+
resolveAll: Qn.resolveAll,
|
|
3321
|
+
tokenize: vo
|
|
3370
3322
|
};
|
|
3371
|
-
function
|
|
3323
|
+
function vo(e, t, n) {
|
|
3372
3324
|
const r = this;
|
|
3373
3325
|
return i;
|
|
3374
3326
|
function i(a) {
|
|
@@ -3383,7 +3335,7 @@ function Lo(e, t, n) {
|
|
|
3383
3335
|
}
|
|
3384
3336
|
const zo = {
|
|
3385
3337
|
name: "labelStartLink",
|
|
3386
|
-
resolveAll:
|
|
3338
|
+
resolveAll: Qn.resolveAll,
|
|
3387
3339
|
tokenize: Do
|
|
3388
3340
|
};
|
|
3389
3341
|
function Do(e, t, n) {
|
|
@@ -3396,7 +3348,7 @@ function Do(e, t, n) {
|
|
|
3396
3348
|
return l === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(l) : t(l);
|
|
3397
3349
|
}
|
|
3398
3350
|
}
|
|
3399
|
-
const
|
|
3351
|
+
const gn = {
|
|
3400
3352
|
name: "lineEnding",
|
|
3401
3353
|
tokenize: Fo
|
|
3402
3354
|
};
|
|
@@ -3408,9 +3360,9 @@ function Fo(e, t) {
|
|
|
3408
3360
|
}
|
|
3409
3361
|
const Ze = {
|
|
3410
3362
|
name: "thematicBreak",
|
|
3411
|
-
tokenize:
|
|
3363
|
+
tokenize: Oo
|
|
3412
3364
|
};
|
|
3413
|
-
function
|
|
3365
|
+
function Oo(e, t, n) {
|
|
3414
3366
|
let r = 0, i;
|
|
3415
3367
|
return o;
|
|
3416
3368
|
function o(s) {
|
|
@@ -3436,7 +3388,7 @@ const Z = {
|
|
|
3436
3388
|
}, Ro = {
|
|
3437
3389
|
partial: !0,
|
|
3438
3390
|
tokenize: Ho
|
|
3439
|
-
},
|
|
3391
|
+
}, _o = {
|
|
3440
3392
|
partial: !0,
|
|
3441
3393
|
tokenize: Bo
|
|
3442
3394
|
};
|
|
@@ -3446,7 +3398,7 @@ function Mo(e, t, n) {
|
|
|
3446
3398
|
return a;
|
|
3447
3399
|
function a(h) {
|
|
3448
3400
|
const d = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
|
3449
|
-
if (d === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker :
|
|
3401
|
+
if (d === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Dn(h)) {
|
|
3450
3402
|
if (r.containerState.type || (r.containerState.type = d, e.enter(d, {
|
|
3451
3403
|
_container: !0
|
|
3452
3404
|
})), d === "listUnordered")
|
|
@@ -3457,7 +3409,7 @@ function Mo(e, t, n) {
|
|
|
3457
3409
|
return n(h);
|
|
3458
3410
|
}
|
|
3459
3411
|
function u(h) {
|
|
3460
|
-
return
|
|
3412
|
+
return Dn(h) && ++l < 10 ? (e.consume(h), u) : (!r.interrupt || l < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), s(h)) : n(h);
|
|
3461
3413
|
}
|
|
3462
3414
|
function s(h) {
|
|
3463
3415
|
return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
|
|
@@ -3484,7 +3436,7 @@ function No(e, t, n) {
|
|
|
3484
3436
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, j(e, t, "listItemIndent", r.containerState.size + 1)(a);
|
|
3485
3437
|
}
|
|
3486
3438
|
function o(a) {
|
|
3487
|
-
return r.containerState.furtherBlankLines || !N(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(
|
|
3439
|
+
return r.containerState.furtherBlankLines || !N(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(_o, t, l)(a));
|
|
3488
3440
|
}
|
|
3489
3441
|
function l(a) {
|
|
3490
3442
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, j(e, e.attempt(Z, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
@@ -3509,7 +3461,7 @@ function Ho(e, t, n) {
|
|
|
3509
3461
|
return !N(o) && l && l[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
|
|
3510
3462
|
}
|
|
3511
3463
|
}
|
|
3512
|
-
const
|
|
3464
|
+
const At = {
|
|
3513
3465
|
name: "setextUnderline",
|
|
3514
3466
|
resolveTo: Uo,
|
|
3515
3467
|
tokenize: $o
|
|
@@ -3589,11 +3541,11 @@ function Vo(e) {
|
|
|
3589
3541
|
}
|
|
3590
3542
|
}
|
|
3591
3543
|
const Wo = {
|
|
3592
|
-
resolveAll:
|
|
3593
|
-
}, Qo =
|
|
3594
|
-
function
|
|
3544
|
+
resolveAll: Ar()
|
|
3545
|
+
}, Qo = Ir("string"), Yo = Ir("text");
|
|
3546
|
+
function Ir(e) {
|
|
3595
3547
|
return {
|
|
3596
|
-
resolveAll:
|
|
3548
|
+
resolveAll: Ar(e === "text" ? Go : void 0),
|
|
3597
3549
|
tokenize: t
|
|
3598
3550
|
};
|
|
3599
3551
|
function t(n) {
|
|
@@ -3627,7 +3579,7 @@ function Ar(e) {
|
|
|
3627
3579
|
}
|
|
3628
3580
|
}
|
|
3629
3581
|
}
|
|
3630
|
-
function
|
|
3582
|
+
function Ar(e) {
|
|
3631
3583
|
return t;
|
|
3632
3584
|
function t(n, r) {
|
|
3633
3585
|
let i = -1, o;
|
|
@@ -3692,40 +3644,40 @@ const Xo = {
|
|
|
3692
3644
|
55: Z,
|
|
3693
3645
|
56: Z,
|
|
3694
3646
|
57: Z,
|
|
3695
|
-
62:
|
|
3647
|
+
62: kr
|
|
3696
3648
|
}, Ko = {
|
|
3697
3649
|
91: eo
|
|
3698
3650
|
}, Jo = {
|
|
3699
|
-
[-2]:
|
|
3700
|
-
[-1]:
|
|
3701
|
-
32:
|
|
3651
|
+
[-2]: mn,
|
|
3652
|
+
[-1]: mn,
|
|
3653
|
+
32: mn
|
|
3702
3654
|
}, Zo = {
|
|
3703
3655
|
35: oo,
|
|
3704
3656
|
42: Ze,
|
|
3705
|
-
45: [
|
|
3657
|
+
45: [At, Ze],
|
|
3706
3658
|
60: co,
|
|
3707
|
-
61:
|
|
3659
|
+
61: At,
|
|
3708
3660
|
95: Ze,
|
|
3709
|
-
96:
|
|
3710
|
-
126:
|
|
3661
|
+
96: Et,
|
|
3662
|
+
126: Et
|
|
3711
3663
|
}, ea = {
|
|
3712
|
-
38:
|
|
3713
|
-
92:
|
|
3664
|
+
38: br,
|
|
3665
|
+
92: xr
|
|
3714
3666
|
}, na = {
|
|
3715
|
-
[-5]:
|
|
3716
|
-
[-4]:
|
|
3717
|
-
[-3]:
|
|
3718
|
-
33:
|
|
3719
|
-
38:
|
|
3720
|
-
42:
|
|
3721
|
-
60: [
|
|
3667
|
+
[-5]: gn,
|
|
3668
|
+
[-4]: gn,
|
|
3669
|
+
[-3]: gn,
|
|
3670
|
+
33: Lo,
|
|
3671
|
+
38: br,
|
|
3672
|
+
42: Fn,
|
|
3673
|
+
60: [vl, ko],
|
|
3722
3674
|
91: zo,
|
|
3723
|
-
92: [io,
|
|
3724
|
-
93:
|
|
3725
|
-
95:
|
|
3675
|
+
92: [io, xr],
|
|
3676
|
+
93: Qn,
|
|
3677
|
+
95: Fn,
|
|
3726
3678
|
96: $l
|
|
3727
3679
|
}, ta = {
|
|
3728
|
-
null: [
|
|
3680
|
+
null: [Fn, Wo]
|
|
3729
3681
|
}, ra = {
|
|
3730
3682
|
null: [42, 95]
|
|
3731
3683
|
}, ia = {
|
|
@@ -3742,12 +3694,12 @@ function oa(e, t, n) {
|
|
|
3742
3694
|
const i = {}, o = [];
|
|
3743
3695
|
let l = [], a = [];
|
|
3744
3696
|
const u = {
|
|
3745
|
-
attempt:
|
|
3746
|
-
check:
|
|
3697
|
+
attempt: _(z),
|
|
3698
|
+
check: _(w),
|
|
3747
3699
|
consume: S,
|
|
3748
3700
|
enter: C,
|
|
3749
3701
|
exit: F,
|
|
3750
|
-
interrupt:
|
|
3702
|
+
interrupt: _(w, {
|
|
3751
3703
|
interrupt: !0
|
|
3752
3704
|
})
|
|
3753
3705
|
}, s = {
|
|
@@ -3765,10 +3717,10 @@ function oa(e, t, n) {
|
|
|
3765
3717
|
let f = t.tokenize.call(s, u);
|
|
3766
3718
|
return t.resolveAll && o.push(t), s;
|
|
3767
3719
|
function c(P) {
|
|
3768
|
-
return l =
|
|
3720
|
+
return l = re(l, P), E(), l[l.length - 1] !== null ? [] : (U(t, 0), s.events = an(o, s.events, s), s.events);
|
|
3769
3721
|
}
|
|
3770
|
-
function p(P,
|
|
3771
|
-
return ua(h(P),
|
|
3722
|
+
function p(P, L) {
|
|
3723
|
+
return ua(h(P), L);
|
|
3772
3724
|
}
|
|
3773
3725
|
function h(P) {
|
|
3774
3726
|
return aa(l, P);
|
|
@@ -3776,17 +3728,17 @@ function oa(e, t, n) {
|
|
|
3776
3728
|
function d() {
|
|
3777
3729
|
const {
|
|
3778
3730
|
_bufferIndex: P,
|
|
3779
|
-
_index:
|
|
3780
|
-
line:
|
|
3731
|
+
_index: L,
|
|
3732
|
+
line: v,
|
|
3781
3733
|
column: T,
|
|
3782
|
-
offset:
|
|
3734
|
+
offset: O
|
|
3783
3735
|
} = r;
|
|
3784
3736
|
return {
|
|
3785
3737
|
_bufferIndex: P,
|
|
3786
|
-
_index:
|
|
3787
|
-
line:
|
|
3738
|
+
_index: L,
|
|
3739
|
+
line: v,
|
|
3788
3740
|
column: T,
|
|
3789
|
-
offset:
|
|
3741
|
+
offset: O
|
|
3790
3742
|
};
|
|
3791
3743
|
}
|
|
3792
3744
|
function x(P) {
|
|
@@ -3795,12 +3747,12 @@ function oa(e, t, n) {
|
|
|
3795
3747
|
function E() {
|
|
3796
3748
|
let P;
|
|
3797
3749
|
for (; r._index < l.length; ) {
|
|
3798
|
-
const
|
|
3799
|
-
if (typeof
|
|
3800
|
-
for (P = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === P && r._bufferIndex <
|
|
3801
|
-
y(
|
|
3750
|
+
const L = l[r._index];
|
|
3751
|
+
if (typeof L == "string")
|
|
3752
|
+
for (P = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === P && r._bufferIndex < L.length; )
|
|
3753
|
+
y(L.charCodeAt(r._bufferIndex));
|
|
3802
3754
|
else
|
|
3803
|
-
y(
|
|
3755
|
+
y(L);
|
|
3804
3756
|
}
|
|
3805
3757
|
}
|
|
3806
3758
|
function y(P) {
|
|
@@ -3812,82 +3764,82 @@ function oa(e, t, n) {
|
|
|
3812
3764
|
/** @type {string} */
|
|
3813
3765
|
l[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = P;
|
|
3814
3766
|
}
|
|
3815
|
-
function C(P,
|
|
3816
|
-
const
|
|
3817
|
-
return
|
|
3767
|
+
function C(P, L) {
|
|
3768
|
+
const v = L || {};
|
|
3769
|
+
return v.type = P, v.start = d(), s.events.push(["enter", v, s]), a.push(v), v;
|
|
3818
3770
|
}
|
|
3819
3771
|
function F(P) {
|
|
3820
|
-
const
|
|
3821
|
-
return
|
|
3772
|
+
const L = a.pop();
|
|
3773
|
+
return L.end = d(), s.events.push(["exit", L, s]), L;
|
|
3822
3774
|
}
|
|
3823
|
-
function z(P,
|
|
3824
|
-
U(P,
|
|
3775
|
+
function z(P, L) {
|
|
3776
|
+
U(P, L.from);
|
|
3825
3777
|
}
|
|
3826
|
-
function w(P,
|
|
3827
|
-
|
|
3778
|
+
function w(P, L) {
|
|
3779
|
+
L.restore();
|
|
3828
3780
|
}
|
|
3829
|
-
function
|
|
3830
|
-
return
|
|
3831
|
-
function
|
|
3832
|
-
let Y,
|
|
3781
|
+
function _(P, L) {
|
|
3782
|
+
return v;
|
|
3783
|
+
function v(T, O, Q) {
|
|
3784
|
+
let Y, le, he, m;
|
|
3833
3785
|
return Array.isArray(T) ? (
|
|
3834
3786
|
/* c8 ignore next 1 */
|
|
3835
|
-
|
|
3787
|
+
pe(T)
|
|
3836
3788
|
) : "tokenize" in T ? (
|
|
3837
3789
|
// Looks like a construct.
|
|
3838
|
-
|
|
3790
|
+
pe([
|
|
3839
3791
|
/** @type {Construct} */
|
|
3840
3792
|
T
|
|
3841
3793
|
])
|
|
3842
|
-
) :
|
|
3843
|
-
function
|
|
3794
|
+
) : oe(T);
|
|
3795
|
+
function oe(G) {
|
|
3844
3796
|
return Re;
|
|
3845
|
-
function Re(
|
|
3846
|
-
const Ae =
|
|
3797
|
+
function Re(ye) {
|
|
3798
|
+
const Ae = ye !== null && G[ye], Te = ye !== null && G.null, Ye = [
|
|
3847
3799
|
// To do: add more extension tests.
|
|
3848
3800
|
/* c8 ignore next 2 */
|
|
3849
3801
|
...Array.isArray(Ae) ? Ae : Ae ? [Ae] : [],
|
|
3850
3802
|
...Array.isArray(Te) ? Te : Te ? [Te] : []
|
|
3851
3803
|
];
|
|
3852
|
-
return
|
|
3804
|
+
return pe(Ye)(ye);
|
|
3853
3805
|
}
|
|
3854
3806
|
}
|
|
3855
|
-
function
|
|
3856
|
-
return Y = G,
|
|
3807
|
+
function pe(G) {
|
|
3808
|
+
return Y = G, le = 0, G.length === 0 ? Q : g(G[le]);
|
|
3857
3809
|
}
|
|
3858
3810
|
function g(G) {
|
|
3859
3811
|
return Re;
|
|
3860
|
-
function Re(
|
|
3861
|
-
return m = H(),
|
|
3812
|
+
function Re(ye) {
|
|
3813
|
+
return m = H(), he = G, G.partial || (s.currentConstruct = G), G.name && s.parser.constructs.disable.null.includes(G.name) ? we() : G.tokenize.call(
|
|
3862
3814
|
// If we do have fields, create an object w/ `context` as its
|
|
3863
3815
|
// prototype.
|
|
3864
3816
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
3865
|
-
|
|
3817
|
+
L ? Object.assign(Object.create(s), L) : s,
|
|
3866
3818
|
u,
|
|
3867
|
-
|
|
3819
|
+
ae,
|
|
3868
3820
|
we
|
|
3869
|
-
)(
|
|
3821
|
+
)(ye);
|
|
3870
3822
|
}
|
|
3871
3823
|
}
|
|
3872
|
-
function
|
|
3873
|
-
return P(
|
|
3824
|
+
function ae(G) {
|
|
3825
|
+
return P(he, m), O;
|
|
3874
3826
|
}
|
|
3875
3827
|
function we(G) {
|
|
3876
|
-
return m.restore(), ++
|
|
3828
|
+
return m.restore(), ++le < Y.length ? g(Y[le]) : Q;
|
|
3877
3829
|
}
|
|
3878
3830
|
}
|
|
3879
3831
|
}
|
|
3880
|
-
function U(P,
|
|
3881
|
-
P.resolveAll && !o.includes(P) && o.push(P), P.resolve && te(s.events,
|
|
3832
|
+
function U(P, L) {
|
|
3833
|
+
P.resolveAll && !o.includes(P) && o.push(P), P.resolve && te(s.events, L, s.events.length - L, P.resolve(s.events.slice(L), s)), P.resolveTo && (s.events = P.resolveTo(s.events, s));
|
|
3882
3834
|
}
|
|
3883
3835
|
function H() {
|
|
3884
|
-
const P = d(),
|
|
3836
|
+
const P = d(), L = s.previous, v = s.currentConstruct, T = s.events.length, O = Array.from(a);
|
|
3885
3837
|
return {
|
|
3886
3838
|
from: T,
|
|
3887
3839
|
restore: Q
|
|
3888
3840
|
};
|
|
3889
3841
|
function Q() {
|
|
3890
|
-
r = P, s.previous =
|
|
3842
|
+
r = P, s.previous = L, s.currentConstruct = v, s.events.length = T, a = O, k();
|
|
3891
3843
|
}
|
|
3892
3844
|
}
|
|
3893
3845
|
function k() {
|
|
@@ -3952,7 +3904,7 @@ function sa(e) {
|
|
|
3952
3904
|
const r = {
|
|
3953
3905
|
constructs: (
|
|
3954
3906
|
/** @type {FullNormalizedExtension} */
|
|
3955
|
-
|
|
3907
|
+
dr([la, ...(e || {}).extensions || []])
|
|
3956
3908
|
),
|
|
3957
3909
|
content: i(Cl),
|
|
3958
3910
|
defined: [],
|
|
@@ -3971,11 +3923,11 @@ function sa(e) {
|
|
|
3971
3923
|
}
|
|
3972
3924
|
}
|
|
3973
3925
|
function ca(e) {
|
|
3974
|
-
for (; !
|
|
3926
|
+
for (; !wr(e); )
|
|
3975
3927
|
;
|
|
3976
3928
|
return e;
|
|
3977
3929
|
}
|
|
3978
|
-
const
|
|
3930
|
+
const Tt = /[\0\t\n\r]/g;
|
|
3979
3931
|
function fa() {
|
|
3980
3932
|
let e = 1, t = "", n = !0, r;
|
|
3981
3933
|
return i;
|
|
@@ -3983,7 +3935,7 @@ function fa() {
|
|
|
3983
3935
|
const u = [];
|
|
3984
3936
|
let s, f, c, p, h;
|
|
3985
3937
|
for (o = t + (typeof o == "string" ? o.toString() : new TextDecoder(l || void 0).decode(o)), c = 0, t = "", n && (o.charCodeAt(0) === 65279 && c++, n = void 0); c < o.length; ) {
|
|
3986
|
-
if (
|
|
3938
|
+
if (Tt.lastIndex = c, s = Tt.exec(o), p = s && s.index !== void 0 ? s.index : o.length, h = o.charCodeAt(p), !s) {
|
|
3987
3939
|
t = o.slice(c);
|
|
3988
3940
|
break;
|
|
3989
3941
|
}
|
|
@@ -4020,11 +3972,11 @@ function ma(e, t, n) {
|
|
|
4020
3972
|
return t;
|
|
4021
3973
|
if (n.charCodeAt(0) === 35) {
|
|
4022
3974
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
|
4023
|
-
return
|
|
3975
|
+
return yr(n.slice(o ? 2 : 1), o ? 16 : 10);
|
|
4024
3976
|
}
|
|
4025
|
-
return
|
|
3977
|
+
return Wn(n) || e;
|
|
4026
3978
|
}
|
|
4027
|
-
const
|
|
3979
|
+
const Tr = {}.hasOwnProperty;
|
|
4028
3980
|
function ga(e, t, n) {
|
|
4029
3981
|
return typeof t != "string" && (n = t, t = void 0), da(n)(ca(sa(n).document().write(fa()(e, t, !0))));
|
|
4030
3982
|
}
|
|
@@ -4033,10 +3985,10 @@ function da(e) {
|
|
|
4033
3985
|
transforms: [],
|
|
4034
3986
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
4035
3987
|
enter: {
|
|
4036
|
-
autolink: o(
|
|
3988
|
+
autolink: o(ot),
|
|
4037
3989
|
autolinkProtocol: H,
|
|
4038
3990
|
autolinkEmail: H,
|
|
4039
|
-
atxHeading: o(
|
|
3991
|
+
atxHeading: o(rt),
|
|
4040
3992
|
blockQuote: o(Te),
|
|
4041
3993
|
characterEscape: H,
|
|
4042
3994
|
characterReference: H,
|
|
@@ -4044,43 +3996,43 @@ function da(e) {
|
|
|
4044
3996
|
codeFencedFenceInfo: l,
|
|
4045
3997
|
codeFencedFenceMeta: l,
|
|
4046
3998
|
codeIndented: o(Ye, l),
|
|
4047
|
-
codeText: o(
|
|
3999
|
+
codeText: o(li, l),
|
|
4048
4000
|
codeTextData: H,
|
|
4049
4001
|
data: H,
|
|
4050
4002
|
codeFlowValue: H,
|
|
4051
|
-
definition: o(
|
|
4003
|
+
definition: o(oi),
|
|
4052
4004
|
definitionDestinationString: l,
|
|
4053
4005
|
definitionLabelString: l,
|
|
4054
4006
|
definitionTitleString: l,
|
|
4055
|
-
emphasis: o(
|
|
4056
|
-
hardBreakEscape: o(
|
|
4057
|
-
hardBreakTrailing: o(
|
|
4058
|
-
htmlFlow: o(
|
|
4007
|
+
emphasis: o(ai),
|
|
4008
|
+
hardBreakEscape: o(it),
|
|
4009
|
+
hardBreakTrailing: o(it),
|
|
4010
|
+
htmlFlow: o(lt, l),
|
|
4059
4011
|
htmlFlowData: H,
|
|
4060
|
-
htmlText: o(
|
|
4012
|
+
htmlText: o(lt, l),
|
|
4061
4013
|
htmlTextData: H,
|
|
4062
|
-
image: o(
|
|
4014
|
+
image: o(ui),
|
|
4063
4015
|
label: l,
|
|
4064
|
-
link: o(
|
|
4065
|
-
listItem: o(
|
|
4016
|
+
link: o(ot),
|
|
4017
|
+
listItem: o(si),
|
|
4066
4018
|
listItemValue: p,
|
|
4067
|
-
listOrdered: o(
|
|
4068
|
-
listUnordered: o(
|
|
4069
|
-
paragraph: o(
|
|
4019
|
+
listOrdered: o(at, c),
|
|
4020
|
+
listUnordered: o(at),
|
|
4021
|
+
paragraph: o(ci),
|
|
4070
4022
|
reference: g,
|
|
4071
4023
|
referenceString: l,
|
|
4072
4024
|
resourceDestinationString: l,
|
|
4073
4025
|
resourceTitleString: l,
|
|
4074
|
-
setextHeading: o(
|
|
4075
|
-
strong: o(
|
|
4076
|
-
thematicBreak: o(
|
|
4026
|
+
setextHeading: o(rt),
|
|
4027
|
+
strong: o(fi),
|
|
4028
|
+
thematicBreak: o(pi)
|
|
4077
4029
|
},
|
|
4078
4030
|
exit: {
|
|
4079
4031
|
atxHeading: u(),
|
|
4080
4032
|
atxHeadingSequence: z,
|
|
4081
4033
|
autolink: u(),
|
|
4082
4034
|
autolinkEmail: Ae,
|
|
4083
|
-
autolinkProtocol:
|
|
4035
|
+
autolinkProtocol: ye,
|
|
4084
4036
|
blockQuote: u(),
|
|
4085
4037
|
characterEscapeValue: k,
|
|
4086
4038
|
characterReferenceMarkerHexadecimal: we,
|
|
@@ -4093,7 +4045,7 @@ function da(e) {
|
|
|
4093
4045
|
codeFencedFenceMeta: d,
|
|
4094
4046
|
codeFlowValue: k,
|
|
4095
4047
|
codeIndented: u(y),
|
|
4096
|
-
codeText: u(
|
|
4048
|
+
codeText: u(O),
|
|
4097
4049
|
codeTextData: k,
|
|
4098
4050
|
data: k,
|
|
4099
4051
|
definition: u(),
|
|
@@ -4101,33 +4053,33 @@ function da(e) {
|
|
|
4101
4053
|
definitionLabelString: S,
|
|
4102
4054
|
definitionTitleString: C,
|
|
4103
4055
|
emphasis: u(),
|
|
4104
|
-
hardBreakEscape: u(
|
|
4105
|
-
hardBreakTrailing: u(
|
|
4106
|
-
htmlFlow: u(
|
|
4056
|
+
hardBreakEscape: u(L),
|
|
4057
|
+
hardBreakTrailing: u(L),
|
|
4058
|
+
htmlFlow: u(v),
|
|
4107
4059
|
htmlFlowData: k,
|
|
4108
4060
|
htmlText: u(T),
|
|
4109
4061
|
htmlTextData: k,
|
|
4110
4062
|
image: u(Y),
|
|
4111
|
-
label:
|
|
4112
|
-
labelText:
|
|
4063
|
+
label: he,
|
|
4064
|
+
labelText: le,
|
|
4113
4065
|
lineEnding: P,
|
|
4114
4066
|
link: u(Q),
|
|
4115
4067
|
listItem: u(),
|
|
4116
4068
|
listOrdered: u(),
|
|
4117
4069
|
listUnordered: u(),
|
|
4118
4070
|
paragraph: u(),
|
|
4119
|
-
referenceString:
|
|
4071
|
+
referenceString: ae,
|
|
4120
4072
|
resourceDestinationString: m,
|
|
4121
|
-
resourceTitleString:
|
|
4122
|
-
resource:
|
|
4073
|
+
resourceTitleString: oe,
|
|
4074
|
+
resource: pe,
|
|
4123
4075
|
setextHeading: u(U),
|
|
4124
|
-
setextHeadingLineSequence:
|
|
4076
|
+
setextHeadingLineSequence: _,
|
|
4125
4077
|
setextHeadingText: w,
|
|
4126
4078
|
strong: u(),
|
|
4127
4079
|
thematicBreak: u()
|
|
4128
4080
|
}
|
|
4129
4081
|
};
|
|
4130
|
-
|
|
4082
|
+
Pr(t, (e || {}).mdastExtensions || []);
|
|
4131
4083
|
const n = {};
|
|
4132
4084
|
return r;
|
|
4133
4085
|
function r(b) {
|
|
@@ -4151,26 +4103,26 @@ function da(e) {
|
|
|
4151
4103
|
if (b[$][0] === "enter")
|
|
4152
4104
|
B.push($);
|
|
4153
4105
|
else {
|
|
4154
|
-
const
|
|
4155
|
-
$ = i(b,
|
|
4106
|
+
const ue = B.pop();
|
|
4107
|
+
$ = i(b, ue, $);
|
|
4156
4108
|
}
|
|
4157
4109
|
for ($ = -1; ++$ < b.length; ) {
|
|
4158
|
-
const
|
|
4159
|
-
|
|
4110
|
+
const ue = t[b[$][0]];
|
|
4111
|
+
Tr.call(ue, b[$][1].type) && ue[b[$][1].type].call(Object.assign({
|
|
4160
4112
|
sliceSerialize: b[$][2].sliceSerialize
|
|
4161
4113
|
}, R), b[$][1]);
|
|
4162
4114
|
}
|
|
4163
4115
|
if (R.tokenStack.length > 0) {
|
|
4164
|
-
const
|
|
4165
|
-
(
|
|
4116
|
+
const ue = R.tokenStack[R.tokenStack.length - 1];
|
|
4117
|
+
(ue[1] || Pt).call(R, void 0, ue[0]);
|
|
4166
4118
|
}
|
|
4167
4119
|
for (A.position = {
|
|
4168
|
-
start:
|
|
4120
|
+
start: ke(b.length > 0 ? b[0][1].start : {
|
|
4169
4121
|
line: 1,
|
|
4170
4122
|
column: 1,
|
|
4171
4123
|
offset: 0
|
|
4172
4124
|
}),
|
|
4173
|
-
end:
|
|
4125
|
+
end: ke(b.length > 0 ? b[b.length - 2][1].end : {
|
|
4174
4126
|
line: 1,
|
|
4175
4127
|
column: 1,
|
|
4176
4128
|
offset: 0
|
|
@@ -4180,7 +4132,7 @@ function da(e) {
|
|
|
4180
4132
|
return A;
|
|
4181
4133
|
}
|
|
4182
4134
|
function i(b, A, R) {
|
|
4183
|
-
let B = A - 1, $ = -1,
|
|
4135
|
+
let B = A - 1, $ = -1, ue = !1, Se, me, _e, Me;
|
|
4184
4136
|
for (; ++B <= R; ) {
|
|
4185
4137
|
const ee = b[B];
|
|
4186
4138
|
switch (ee[1].type) {
|
|
@@ -4191,7 +4143,7 @@ function da(e) {
|
|
|
4191
4143
|
break;
|
|
4192
4144
|
}
|
|
4193
4145
|
case "lineEndingBlank": {
|
|
4194
|
-
ee[0] === "enter" && (Se && !Me && !$ && !
|
|
4146
|
+
ee[0] === "enter" && (Se && !Me && !$ && !_e && (_e = B), Me = void 0);
|
|
4195
4147
|
break;
|
|
4196
4148
|
}
|
|
4197
4149
|
case "linePrefix":
|
|
@@ -4206,14 +4158,14 @@ function da(e) {
|
|
|
4206
4158
|
if (!$ && ee[0] === "enter" && ee[1].type === "listItemPrefix" || $ === -1 && ee[0] === "exit" && (ee[1].type === "listUnordered" || ee[1].type === "listOrdered")) {
|
|
4207
4159
|
if (Se) {
|
|
4208
4160
|
let Pe = B;
|
|
4209
|
-
for (
|
|
4210
|
-
const
|
|
4211
|
-
if (
|
|
4212
|
-
if (
|
|
4213
|
-
|
|
4214
|
-
} else if (!(
|
|
4161
|
+
for (me = void 0; Pe--; ) {
|
|
4162
|
+
const ge = b[Pe];
|
|
4163
|
+
if (ge[1].type === "lineEnding" || ge[1].type === "lineEndingBlank") {
|
|
4164
|
+
if (ge[0] === "exit") continue;
|
|
4165
|
+
me && (b[me][1].type = "lineEndingBlank", ue = !0), ge[1].type = "lineEnding", me = Pe;
|
|
4166
|
+
} else if (!(ge[1].type === "linePrefix" || ge[1].type === "blockQuotePrefix" || ge[1].type === "blockQuotePrefixWhitespace" || ge[1].type === "blockQuoteMarker" || ge[1].type === "listItemIndent")) break;
|
|
4215
4167
|
}
|
|
4216
|
-
|
|
4168
|
+
_e && (!me || _e < me) && (Se._spread = !0), Se.end = Object.assign({}, me ? b[me][1].start : ee[1].end), b.splice(me || B, 0, ["exit", Se, ee[2]]), B++, R++;
|
|
4217
4169
|
}
|
|
4218
4170
|
if (ee[1].type === "listItemPrefix") {
|
|
4219
4171
|
const Pe = {
|
|
@@ -4223,11 +4175,11 @@ function da(e) {
|
|
|
4223
4175
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4224
4176
|
end: void 0
|
|
4225
4177
|
};
|
|
4226
|
-
Se = Pe, b.splice(B, 0, ["enter", Pe, ee[2]]), B++, R++,
|
|
4178
|
+
Se = Pe, b.splice(B, 0, ["enter", Pe, ee[2]]), B++, R++, _e = void 0, Me = !0;
|
|
4227
4179
|
}
|
|
4228
4180
|
}
|
|
4229
4181
|
}
|
|
4230
|
-
return b[A][1]._spread =
|
|
4182
|
+
return b[A][1]._spread = ue, R;
|
|
4231
4183
|
}
|
|
4232
4184
|
function o(b, A) {
|
|
4233
4185
|
return R;
|
|
@@ -4243,7 +4195,7 @@ function da(e) {
|
|
|
4243
4195
|
}
|
|
4244
4196
|
function a(b, A, R) {
|
|
4245
4197
|
this.stack[this.stack.length - 1].children.push(b), this.stack.push(b), this.tokenStack.push([A, R || void 0]), b.position = {
|
|
4246
|
-
start:
|
|
4198
|
+
start: ke(A.start),
|
|
4247
4199
|
// @ts-expect-error: `end` will be patched later.
|
|
4248
4200
|
end: void 0
|
|
4249
4201
|
};
|
|
@@ -4257,15 +4209,15 @@ function da(e) {
|
|
|
4257
4209
|
function s(b, A) {
|
|
4258
4210
|
const R = this.stack.pop(), B = this.tokenStack.pop();
|
|
4259
4211
|
if (B)
|
|
4260
|
-
B[0].type !== b.type && (A ? A.call(this, b, B[0]) : (B[1] ||
|
|
4212
|
+
B[0].type !== b.type && (A ? A.call(this, b, B[0]) : (B[1] || Pt).call(this, b, B[0]));
|
|
4261
4213
|
else throw new Error("Cannot close `" + b.type + "` (" + He({
|
|
4262
4214
|
start: b.start,
|
|
4263
4215
|
end: b.end
|
|
4264
4216
|
}) + "): it’s not open");
|
|
4265
|
-
R.position.end =
|
|
4217
|
+
R.position.end = ke(b.end);
|
|
4266
4218
|
}
|
|
4267
4219
|
function f() {
|
|
4268
|
-
return
|
|
4220
|
+
return Vn(this.stack.pop());
|
|
4269
4221
|
}
|
|
4270
4222
|
function c() {
|
|
4271
4223
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -4297,7 +4249,7 @@ function da(e) {
|
|
|
4297
4249
|
}
|
|
4298
4250
|
function S(b) {
|
|
4299
4251
|
const A = this.resume(), R = this.stack[this.stack.length - 1];
|
|
4300
|
-
R.label = A, R.identifier =
|
|
4252
|
+
R.label = A, R.identifier = se(this.sliceSerialize(b)).toLowerCase();
|
|
4301
4253
|
}
|
|
4302
4254
|
function C() {
|
|
4303
4255
|
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
@@ -4317,7 +4269,7 @@ function da(e) {
|
|
|
4317
4269
|
function w() {
|
|
4318
4270
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
4319
4271
|
}
|
|
4320
|
-
function
|
|
4272
|
+
function _(b) {
|
|
4321
4273
|
const A = this.stack[this.stack.length - 1];
|
|
4322
4274
|
A.depth = this.sliceSerialize(b).codePointAt(0) === 61 ? 1 : 2;
|
|
4323
4275
|
}
|
|
@@ -4327,29 +4279,29 @@ function da(e) {
|
|
|
4327
4279
|
function H(b) {
|
|
4328
4280
|
const R = this.stack[this.stack.length - 1].children;
|
|
4329
4281
|
let B = R[R.length - 1];
|
|
4330
|
-
(!B || B.type !== "text") && (B =
|
|
4331
|
-
start:
|
|
4282
|
+
(!B || B.type !== "text") && (B = hi(), B.position = {
|
|
4283
|
+
start: ke(b.start),
|
|
4332
4284
|
// @ts-expect-error: we’ll add `end` later.
|
|
4333
4285
|
end: void 0
|
|
4334
4286
|
}, R.push(B)), this.stack.push(B);
|
|
4335
4287
|
}
|
|
4336
4288
|
function k(b) {
|
|
4337
4289
|
const A = this.stack.pop();
|
|
4338
|
-
A.value += this.sliceSerialize(b), A.position.end =
|
|
4290
|
+
A.value += this.sliceSerialize(b), A.position.end = ke(b.end);
|
|
4339
4291
|
}
|
|
4340
4292
|
function P(b) {
|
|
4341
4293
|
const A = this.stack[this.stack.length - 1];
|
|
4342
4294
|
if (this.data.atHardBreak) {
|
|
4343
4295
|
const R = A.children[A.children.length - 1];
|
|
4344
|
-
R.position.end =
|
|
4296
|
+
R.position.end = ke(b.end), this.data.atHardBreak = void 0;
|
|
4345
4297
|
return;
|
|
4346
4298
|
}
|
|
4347
4299
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(A.type) && (H.call(this, b), k.call(this, b));
|
|
4348
4300
|
}
|
|
4349
|
-
function
|
|
4301
|
+
function L() {
|
|
4350
4302
|
this.data.atHardBreak = !0;
|
|
4351
4303
|
}
|
|
4352
|
-
function
|
|
4304
|
+
function v() {
|
|
4353
4305
|
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4354
4306
|
A.value = b;
|
|
4355
4307
|
}
|
|
@@ -4357,7 +4309,7 @@ function da(e) {
|
|
|
4357
4309
|
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4358
4310
|
A.value = b;
|
|
4359
4311
|
}
|
|
4360
|
-
function
|
|
4312
|
+
function O() {
|
|
4361
4313
|
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4362
4314
|
A.value = b;
|
|
4363
4315
|
}
|
|
@@ -4379,11 +4331,11 @@ function da(e) {
|
|
|
4379
4331
|
delete b.identifier, delete b.label;
|
|
4380
4332
|
this.data.referenceType = void 0;
|
|
4381
4333
|
}
|
|
4382
|
-
function
|
|
4334
|
+
function le(b) {
|
|
4383
4335
|
const A = this.sliceSerialize(b), R = this.stack[this.stack.length - 2];
|
|
4384
|
-
R.label = pa(A), R.identifier =
|
|
4336
|
+
R.label = pa(A), R.identifier = se(A).toLowerCase();
|
|
4385
4337
|
}
|
|
4386
|
-
function
|
|
4338
|
+
function he() {
|
|
4387
4339
|
const b = this.stack[this.stack.length - 1], A = this.resume(), R = this.stack[this.stack.length - 1];
|
|
4388
4340
|
if (this.data.inReference = !0, R.type === "link") {
|
|
4389
4341
|
const B = b.children;
|
|
@@ -4395,19 +4347,19 @@ function da(e) {
|
|
|
4395
4347
|
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4396
4348
|
A.url = b;
|
|
4397
4349
|
}
|
|
4398
|
-
function
|
|
4350
|
+
function oe() {
|
|
4399
4351
|
const b = this.resume(), A = this.stack[this.stack.length - 1];
|
|
4400
4352
|
A.title = b;
|
|
4401
4353
|
}
|
|
4402
|
-
function
|
|
4354
|
+
function pe() {
|
|
4403
4355
|
this.data.inReference = void 0;
|
|
4404
4356
|
}
|
|
4405
4357
|
function g() {
|
|
4406
4358
|
this.data.referenceType = "collapsed";
|
|
4407
4359
|
}
|
|
4408
|
-
function
|
|
4360
|
+
function ae(b) {
|
|
4409
4361
|
const A = this.resume(), R = this.stack[this.stack.length - 1];
|
|
4410
|
-
R.label = A, R.identifier =
|
|
4362
|
+
R.label = A, R.identifier = se(this.sliceSerialize(b)).toLowerCase(), this.data.referenceType = "full";
|
|
4411
4363
|
}
|
|
4412
4364
|
function we(b) {
|
|
4413
4365
|
this.data.characterReferenceType = b.type;
|
|
@@ -4415,15 +4367,15 @@ function da(e) {
|
|
|
4415
4367
|
function G(b) {
|
|
4416
4368
|
const A = this.sliceSerialize(b), R = this.data.characterReferenceType;
|
|
4417
4369
|
let B;
|
|
4418
|
-
R ? (B =
|
|
4370
|
+
R ? (B = yr(A, R === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : B = Wn(A);
|
|
4419
4371
|
const $ = this.stack[this.stack.length - 1];
|
|
4420
4372
|
$.value += B;
|
|
4421
4373
|
}
|
|
4422
4374
|
function Re(b) {
|
|
4423
4375
|
const A = this.stack.pop();
|
|
4424
|
-
A.position.end =
|
|
4376
|
+
A.position.end = ke(b.end);
|
|
4425
4377
|
}
|
|
4426
|
-
function
|
|
4378
|
+
function ye(b) {
|
|
4427
4379
|
k.call(this, b);
|
|
4428
4380
|
const A = this.stack[this.stack.length - 1];
|
|
4429
4381
|
A.url = this.sliceSerialize(b);
|
|
@@ -4447,13 +4399,13 @@ function da(e) {
|
|
|
4447
4399
|
value: ""
|
|
4448
4400
|
};
|
|
4449
4401
|
}
|
|
4450
|
-
function
|
|
4402
|
+
function li() {
|
|
4451
4403
|
return {
|
|
4452
4404
|
type: "inlineCode",
|
|
4453
4405
|
value: ""
|
|
4454
4406
|
};
|
|
4455
4407
|
}
|
|
4456
|
-
function
|
|
4408
|
+
function oi() {
|
|
4457
4409
|
return {
|
|
4458
4410
|
type: "definition",
|
|
4459
4411
|
identifier: "",
|
|
@@ -4462,13 +4414,13 @@ function da(e) {
|
|
|
4462
4414
|
url: ""
|
|
4463
4415
|
};
|
|
4464
4416
|
}
|
|
4465
|
-
function
|
|
4417
|
+
function ai() {
|
|
4466
4418
|
return {
|
|
4467
4419
|
type: "emphasis",
|
|
4468
4420
|
children: []
|
|
4469
4421
|
};
|
|
4470
4422
|
}
|
|
4471
|
-
function
|
|
4423
|
+
function rt() {
|
|
4472
4424
|
return {
|
|
4473
4425
|
type: "heading",
|
|
4474
4426
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -4476,18 +4428,18 @@ function da(e) {
|
|
|
4476
4428
|
children: []
|
|
4477
4429
|
};
|
|
4478
4430
|
}
|
|
4479
|
-
function
|
|
4431
|
+
function it() {
|
|
4480
4432
|
return {
|
|
4481
4433
|
type: "break"
|
|
4482
4434
|
};
|
|
4483
4435
|
}
|
|
4484
|
-
function
|
|
4436
|
+
function lt() {
|
|
4485
4437
|
return {
|
|
4486
4438
|
type: "html",
|
|
4487
4439
|
value: ""
|
|
4488
4440
|
};
|
|
4489
4441
|
}
|
|
4490
|
-
function
|
|
4442
|
+
function ui() {
|
|
4491
4443
|
return {
|
|
4492
4444
|
type: "image",
|
|
4493
4445
|
title: null,
|
|
@@ -4495,7 +4447,7 @@ function da(e) {
|
|
|
4495
4447
|
alt: null
|
|
4496
4448
|
};
|
|
4497
4449
|
}
|
|
4498
|
-
function
|
|
4450
|
+
function ot() {
|
|
4499
4451
|
return {
|
|
4500
4452
|
type: "link",
|
|
4501
4453
|
title: null,
|
|
@@ -4503,7 +4455,7 @@ function da(e) {
|
|
|
4503
4455
|
children: []
|
|
4504
4456
|
};
|
|
4505
4457
|
}
|
|
4506
|
-
function
|
|
4458
|
+
function at(b) {
|
|
4507
4459
|
return {
|
|
4508
4460
|
type: "list",
|
|
4509
4461
|
ordered: b.type === "listOrdered",
|
|
@@ -4512,7 +4464,7 @@ function da(e) {
|
|
|
4512
4464
|
children: []
|
|
4513
4465
|
};
|
|
4514
4466
|
}
|
|
4515
|
-
function
|
|
4467
|
+
function si(b) {
|
|
4516
4468
|
return {
|
|
4517
4469
|
type: "listItem",
|
|
4518
4470
|
spread: b._spread,
|
|
@@ -4520,48 +4472,48 @@ function da(e) {
|
|
|
4520
4472
|
children: []
|
|
4521
4473
|
};
|
|
4522
4474
|
}
|
|
4523
|
-
function
|
|
4475
|
+
function ci() {
|
|
4524
4476
|
return {
|
|
4525
4477
|
type: "paragraph",
|
|
4526
4478
|
children: []
|
|
4527
4479
|
};
|
|
4528
4480
|
}
|
|
4529
|
-
function
|
|
4481
|
+
function fi() {
|
|
4530
4482
|
return {
|
|
4531
4483
|
type: "strong",
|
|
4532
4484
|
children: []
|
|
4533
4485
|
};
|
|
4534
4486
|
}
|
|
4535
|
-
function
|
|
4487
|
+
function hi() {
|
|
4536
4488
|
return {
|
|
4537
4489
|
type: "text",
|
|
4538
4490
|
value: ""
|
|
4539
4491
|
};
|
|
4540
4492
|
}
|
|
4541
|
-
function
|
|
4493
|
+
function pi() {
|
|
4542
4494
|
return {
|
|
4543
4495
|
type: "thematicBreak"
|
|
4544
4496
|
};
|
|
4545
4497
|
}
|
|
4546
4498
|
}
|
|
4547
|
-
function
|
|
4499
|
+
function ke(e) {
|
|
4548
4500
|
return {
|
|
4549
4501
|
line: e.line,
|
|
4550
4502
|
column: e.column,
|
|
4551
4503
|
offset: e.offset
|
|
4552
4504
|
};
|
|
4553
4505
|
}
|
|
4554
|
-
function
|
|
4506
|
+
function Pr(e, t) {
|
|
4555
4507
|
let n = -1;
|
|
4556
4508
|
for (; ++n < t.length; ) {
|
|
4557
4509
|
const r = t[n];
|
|
4558
|
-
Array.isArray(r) ?
|
|
4510
|
+
Array.isArray(r) ? Pr(e, r) : ya(e, r);
|
|
4559
4511
|
}
|
|
4560
4512
|
}
|
|
4561
4513
|
function ya(e, t) {
|
|
4562
4514
|
let n;
|
|
4563
4515
|
for (n in t)
|
|
4564
|
-
if (
|
|
4516
|
+
if (Tr.call(t, n))
|
|
4565
4517
|
switch (n) {
|
|
4566
4518
|
case "canContainEols": {
|
|
4567
4519
|
const r = t[n];
|
|
@@ -4581,7 +4533,7 @@ function ya(e, t) {
|
|
|
4581
4533
|
}
|
|
4582
4534
|
}
|
|
4583
4535
|
}
|
|
4584
|
-
function
|
|
4536
|
+
function Pt(e, t) {
|
|
4585
4537
|
throw e ? new Error("Cannot close `" + e.type + "` (" + He({
|
|
4586
4538
|
start: e.start,
|
|
4587
4539
|
end: e.end
|
|
@@ -4653,7 +4605,7 @@ function Ca(e, t) {
|
|
|
4653
4605
|
return e.patch(t, n), e.applyData(t, n);
|
|
4654
4606
|
}
|
|
4655
4607
|
function Ea(e, t) {
|
|
4656
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i =
|
|
4608
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = Oe(r.toLowerCase()), o = e.footnoteOrder.indexOf(r);
|
|
4657
4609
|
let l, a = e.footnoteCounts.get(r);
|
|
4658
4610
|
a === void 0 ? (a = 0, e.footnoteOrder.push(r), l = e.footnoteOrder.length) : l = o + 1, a += 1, e.footnoteCounts.set(r, a);
|
|
4659
4611
|
const u = {
|
|
@@ -4705,18 +4657,18 @@ function Ta(e, t) {
|
|
|
4705
4657
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4706
4658
|
if (!r)
|
|
4707
4659
|
return Lr(e, t);
|
|
4708
|
-
const i = { src:
|
|
4660
|
+
const i = { src: Oe(r.url || ""), alt: t.alt };
|
|
4709
4661
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4710
4662
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
4711
4663
|
return e.patch(t, o), e.applyData(t, o);
|
|
4712
4664
|
}
|
|
4713
4665
|
function Pa(e, t) {
|
|
4714
|
-
const n = { src:
|
|
4666
|
+
const n = { src: Oe(t.url) };
|
|
4715
4667
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4716
4668
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
4717
4669
|
return e.patch(t, r), e.applyData(t, r);
|
|
4718
4670
|
}
|
|
4719
|
-
function
|
|
4671
|
+
function La(e, t) {
|
|
4720
4672
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
|
4721
4673
|
e.patch(t, n);
|
|
4722
4674
|
const r = {
|
|
@@ -4727,11 +4679,11 @@ function va(e, t) {
|
|
|
4727
4679
|
};
|
|
4728
4680
|
return e.patch(t, r), e.applyData(t, r);
|
|
4729
4681
|
}
|
|
4730
|
-
function
|
|
4682
|
+
function va(e, t) {
|
|
4731
4683
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4732
4684
|
if (!r)
|
|
4733
4685
|
return Lr(e, t);
|
|
4734
|
-
const i = { href:
|
|
4686
|
+
const i = { href: Oe(r.url || "") };
|
|
4735
4687
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4736
4688
|
const o = {
|
|
4737
4689
|
type: "element",
|
|
@@ -4742,7 +4694,7 @@ function La(e, t) {
|
|
|
4742
4694
|
return e.patch(t, o), e.applyData(t, o);
|
|
4743
4695
|
}
|
|
4744
4696
|
function za(e, t) {
|
|
4745
|
-
const n = { href:
|
|
4697
|
+
const n = { href: Oe(t.url) };
|
|
4746
4698
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
4747
4699
|
const r = {
|
|
4748
4700
|
type: "element",
|
|
@@ -4753,7 +4705,7 @@ function za(e, t) {
|
|
|
4753
4705
|
return e.patch(t, r), e.applyData(t, r);
|
|
4754
4706
|
}
|
|
4755
4707
|
function Da(e, t, n) {
|
|
4756
|
-
const r = e.all(t), i = n ? Fa(n) :
|
|
4708
|
+
const r = e.all(t), i = n ? Fa(n) : vr(t), o = {}, l = [];
|
|
4757
4709
|
if (typeof t.checked == "boolean") {
|
|
4758
4710
|
const f = r[0];
|
|
4759
4711
|
let c;
|
|
@@ -4783,15 +4735,15 @@ function Fa(e) {
|
|
|
4783
4735
|
const n = e.children;
|
|
4784
4736
|
let r = -1;
|
|
4785
4737
|
for (; !t && ++r < n.length; )
|
|
4786
|
-
t =
|
|
4738
|
+
t = vr(n[r]);
|
|
4787
4739
|
}
|
|
4788
4740
|
return t;
|
|
4789
4741
|
}
|
|
4790
|
-
function
|
|
4742
|
+
function vr(e) {
|
|
4791
4743
|
const t = e.spread;
|
|
4792
4744
|
return t ?? e.children.length > 1;
|
|
4793
4745
|
}
|
|
4794
|
-
function
|
|
4746
|
+
function Oa(e, t) {
|
|
4795
4747
|
const n = {}, r = e.all(t);
|
|
4796
4748
|
let i = -1;
|
|
4797
4749
|
for (typeof t.start == "number" && t.start !== 1 && (n.start = t.start); ++i < r.length; ) {
|
|
@@ -4818,7 +4770,7 @@ function Ra(e, t) {
|
|
|
4818
4770
|
};
|
|
4819
4771
|
return e.patch(t, n), e.applyData(t, n);
|
|
4820
4772
|
}
|
|
4821
|
-
function
|
|
4773
|
+
function _a(e, t) {
|
|
4822
4774
|
const n = { type: "root", children: e.wrap(e.all(t)) };
|
|
4823
4775
|
return e.patch(t, n), e.applyData(t, n);
|
|
4824
4776
|
}
|
|
@@ -4848,7 +4800,7 @@ function Na(e, t) {
|
|
|
4848
4800
|
tagName: "tbody",
|
|
4849
4801
|
properties: {},
|
|
4850
4802
|
children: e.wrap(n, !0)
|
|
4851
|
-
}, a =
|
|
4803
|
+
}, a = Hn(t.children[1]), u = sr(t.children[t.children.length - 1]);
|
|
4852
4804
|
a && u && (l.position = { start: a, end: u }), i.push(l);
|
|
4853
4805
|
}
|
|
4854
4806
|
const o = {
|
|
@@ -4887,28 +4839,28 @@ function ja(e, t) {
|
|
|
4887
4839
|
};
|
|
4888
4840
|
return e.patch(t, n), e.applyData(t, n);
|
|
4889
4841
|
}
|
|
4890
|
-
const
|
|
4842
|
+
const Lt = 9, vt = 32;
|
|
4891
4843
|
function Ha(e) {
|
|
4892
4844
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4893
4845
|
let r = n.exec(t), i = 0;
|
|
4894
4846
|
const o = [];
|
|
4895
4847
|
for (; r; )
|
|
4896
4848
|
o.push(
|
|
4897
|
-
|
|
4849
|
+
zt(t.slice(i, r.index), i > 0, !0),
|
|
4898
4850
|
r[0]
|
|
4899
4851
|
), i = r.index + r[0].length, r = n.exec(t);
|
|
4900
|
-
return o.push(
|
|
4852
|
+
return o.push(zt(t.slice(i), i > 0, !1)), o.join("");
|
|
4901
4853
|
}
|
|
4902
|
-
function
|
|
4854
|
+
function zt(e, t, n) {
|
|
4903
4855
|
let r = 0, i = e.length;
|
|
4904
4856
|
if (t) {
|
|
4905
4857
|
let o = e.codePointAt(r);
|
|
4906
|
-
for (; o ===
|
|
4858
|
+
for (; o === Lt || o === vt; )
|
|
4907
4859
|
r++, o = e.codePointAt(r);
|
|
4908
4860
|
}
|
|
4909
4861
|
if (n) {
|
|
4910
4862
|
let o = e.codePointAt(i - 1);
|
|
4911
|
-
for (; o ===
|
|
4863
|
+
for (; o === Lt || o === vt; )
|
|
4912
4864
|
i--, o = e.codePointAt(i - 1);
|
|
4913
4865
|
}
|
|
4914
4866
|
return i > r ? e.slice(r, i) : "";
|
|
@@ -4937,14 +4889,14 @@ const qa = {
|
|
|
4937
4889
|
html: Aa,
|
|
4938
4890
|
imageReference: Ta,
|
|
4939
4891
|
image: Pa,
|
|
4940
|
-
inlineCode:
|
|
4941
|
-
linkReference:
|
|
4892
|
+
inlineCode: La,
|
|
4893
|
+
linkReference: va,
|
|
4942
4894
|
link: za,
|
|
4943
4895
|
listItem: Da,
|
|
4944
|
-
list:
|
|
4896
|
+
list: Oa,
|
|
4945
4897
|
paragraph: Ra,
|
|
4946
4898
|
// @ts-expect-error: root is different, but hard to type.
|
|
4947
|
-
root:
|
|
4899
|
+
root: _a,
|
|
4948
4900
|
strong: Ma,
|
|
4949
4901
|
table: Na,
|
|
4950
4902
|
tableCell: ja,
|
|
@@ -4958,78 +4910,78 @@ const qa = {
|
|
|
4958
4910
|
};
|
|
4959
4911
|
function Ge() {
|
|
4960
4912
|
}
|
|
4961
|
-
const
|
|
4913
|
+
const zr = -1, un = 0, nn = 1, tn = 2, Yn = 3, Gn = 4, Xn = 5, Kn = 6, Dr = 7, Fr = 8, Dt = typeof self == "object" ? self : globalThis, Va = (e, t) => {
|
|
4962
4914
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4963
4915
|
if (e.has(i))
|
|
4964
4916
|
return e.get(i);
|
|
4965
4917
|
const [o, l] = t[i];
|
|
4966
4918
|
switch (o) {
|
|
4967
|
-
case
|
|
4968
|
-
case
|
|
4919
|
+
case un:
|
|
4920
|
+
case zr:
|
|
4969
4921
|
return n(l, i);
|
|
4970
|
-
case
|
|
4922
|
+
case nn: {
|
|
4971
4923
|
const a = n([], i);
|
|
4972
4924
|
for (const u of l)
|
|
4973
4925
|
a.push(r(u));
|
|
4974
4926
|
return a;
|
|
4975
4927
|
}
|
|
4976
|
-
case
|
|
4928
|
+
case tn: {
|
|
4977
4929
|
const a = n({}, i);
|
|
4978
4930
|
for (const [u, s] of l)
|
|
4979
4931
|
a[r(u)] = r(s);
|
|
4980
4932
|
return a;
|
|
4981
4933
|
}
|
|
4982
|
-
case
|
|
4934
|
+
case Yn:
|
|
4983
4935
|
return n(new Date(l), i);
|
|
4984
|
-
case
|
|
4936
|
+
case Gn: {
|
|
4985
4937
|
const { source: a, flags: u } = l;
|
|
4986
4938
|
return n(new RegExp(a, u), i);
|
|
4987
4939
|
}
|
|
4988
|
-
case
|
|
4940
|
+
case Xn: {
|
|
4989
4941
|
const a = n(/* @__PURE__ */ new Map(), i);
|
|
4990
4942
|
for (const [u, s] of l)
|
|
4991
4943
|
a.set(r(u), r(s));
|
|
4992
4944
|
return a;
|
|
4993
4945
|
}
|
|
4994
|
-
case
|
|
4946
|
+
case Kn: {
|
|
4995
4947
|
const a = n(/* @__PURE__ */ new Set(), i);
|
|
4996
4948
|
for (const u of l)
|
|
4997
4949
|
a.add(r(u));
|
|
4998
4950
|
return a;
|
|
4999
4951
|
}
|
|
5000
|
-
case
|
|
4952
|
+
case Dr: {
|
|
5001
4953
|
const { name: a, message: u } = l;
|
|
5002
|
-
return n(new
|
|
4954
|
+
return n(new Dt[a](u), i);
|
|
5003
4955
|
}
|
|
5004
|
-
case
|
|
4956
|
+
case Fr:
|
|
5005
4957
|
return n(BigInt(l), i);
|
|
5006
4958
|
case "BigInt":
|
|
5007
4959
|
return n(Object(BigInt(l)), i);
|
|
5008
4960
|
}
|
|
5009
|
-
return n(new
|
|
4961
|
+
return n(new Dt[o](l), i);
|
|
5010
4962
|
};
|
|
5011
4963
|
return r;
|
|
5012
|
-
},
|
|
4964
|
+
}, Ft = (e) => Va(/* @__PURE__ */ new Map(), e)(0), Le = "", { toString: Wa } = {}, { keys: Qa } = Object, je = (e) => {
|
|
5013
4965
|
const t = typeof e;
|
|
5014
4966
|
if (t !== "object" || !e)
|
|
5015
|
-
return [
|
|
4967
|
+
return [un, t];
|
|
5016
4968
|
const n = Wa.call(e).slice(8, -1);
|
|
5017
4969
|
switch (n) {
|
|
5018
4970
|
case "Array":
|
|
5019
|
-
return [
|
|
4971
|
+
return [nn, Le];
|
|
5020
4972
|
case "Object":
|
|
5021
|
-
return [
|
|
4973
|
+
return [tn, Le];
|
|
5022
4974
|
case "Date":
|
|
5023
|
-
return [
|
|
4975
|
+
return [Yn, Le];
|
|
5024
4976
|
case "RegExp":
|
|
5025
|
-
return [
|
|
4977
|
+
return [Gn, Le];
|
|
5026
4978
|
case "Map":
|
|
5027
|
-
return [
|
|
4979
|
+
return [Xn, Le];
|
|
5028
4980
|
case "Set":
|
|
5029
|
-
return [
|
|
4981
|
+
return [Kn, Le];
|
|
5030
4982
|
}
|
|
5031
|
-
return n.includes("Array") ? [
|
|
5032
|
-
}, Xe = ([e, t]) => e ===
|
|
4983
|
+
return n.includes("Array") ? [nn, n] : n.includes("Error") ? [Dr, n] : [tn, n];
|
|
4984
|
+
}, Xe = ([e, t]) => e === un && (t === "function" || t === "symbol"), Ya = (e, t, n, r) => {
|
|
5033
4985
|
const i = (l, a) => {
|
|
5034
4986
|
const u = r.push(l) - 1;
|
|
5035
4987
|
return n.set(a, u), u;
|
|
@@ -5038,11 +4990,11 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5038
4990
|
return n.get(l);
|
|
5039
4991
|
let [a, u] = je(l);
|
|
5040
4992
|
switch (a) {
|
|
5041
|
-
case
|
|
4993
|
+
case un: {
|
|
5042
4994
|
let f = l;
|
|
5043
4995
|
switch (u) {
|
|
5044
4996
|
case "bigint":
|
|
5045
|
-
a =
|
|
4997
|
+
a = Fr, f = l.toString();
|
|
5046
4998
|
break;
|
|
5047
4999
|
case "function":
|
|
5048
5000
|
case "symbol":
|
|
@@ -5051,11 +5003,11 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5051
5003
|
f = null;
|
|
5052
5004
|
break;
|
|
5053
5005
|
case "undefined":
|
|
5054
|
-
return i([
|
|
5006
|
+
return i([zr], l);
|
|
5055
5007
|
}
|
|
5056
5008
|
return i([a, f], l);
|
|
5057
5009
|
}
|
|
5058
|
-
case
|
|
5010
|
+
case nn: {
|
|
5059
5011
|
if (u)
|
|
5060
5012
|
return i([u, [...l]], l);
|
|
5061
5013
|
const f = [], c = i([a, f], l);
|
|
@@ -5063,7 +5015,7 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5063
5015
|
f.push(o(p));
|
|
5064
5016
|
return c;
|
|
5065
5017
|
}
|
|
5066
|
-
case
|
|
5018
|
+
case tn: {
|
|
5067
5019
|
if (u)
|
|
5068
5020
|
switch (u) {
|
|
5069
5021
|
case "BigInt":
|
|
@@ -5080,19 +5032,19 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5080
5032
|
(e || !Xe(je(l[p]))) && f.push([o(p), o(l[p])]);
|
|
5081
5033
|
return c;
|
|
5082
5034
|
}
|
|
5083
|
-
case
|
|
5035
|
+
case Yn:
|
|
5084
5036
|
return i([a, l.toISOString()], l);
|
|
5085
|
-
case
|
|
5037
|
+
case Gn: {
|
|
5086
5038
|
const { source: f, flags: c } = l;
|
|
5087
5039
|
return i([a, { source: f, flags: c }], l);
|
|
5088
5040
|
}
|
|
5089
|
-
case
|
|
5041
|
+
case Xn: {
|
|
5090
5042
|
const f = [], c = i([a, f], l);
|
|
5091
5043
|
for (const [p, h] of l)
|
|
5092
5044
|
(e || !(Xe(je(p)) || Xe(je(h)))) && f.push([o(p), o(h)]);
|
|
5093
5045
|
return c;
|
|
5094
5046
|
}
|
|
5095
|
-
case
|
|
5047
|
+
case Kn: {
|
|
5096
5048
|
const f = [], c = i([a, f], l);
|
|
5097
5049
|
for (const p of l)
|
|
5098
5050
|
(e || !Xe(je(p))) && f.push(o(p));
|
|
@@ -5103,13 +5055,13 @@ const Dr = -1, sn = 0, tn = 1, rn = 2, Xn = 3, Kn = 4, Jn = 5, Zn = 6, Fr = 7, _
|
|
|
5103
5055
|
return i([a, { name: u, message: s }], l);
|
|
5104
5056
|
};
|
|
5105
5057
|
return o;
|
|
5106
|
-
},
|
|
5058
|
+
}, Ot = (e, { json: t, lossy: n } = {}) => {
|
|
5107
5059
|
const r = [];
|
|
5108
5060
|
return Ya(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5109
|
-
},
|
|
5061
|
+
}, rn = typeof structuredClone == "function" ? (
|
|
5110
5062
|
/* c8 ignore start */
|
|
5111
|
-
(e, t) => t && ("json" in t || "lossy" in t) ? Ot(
|
|
5112
|
-
) : (e, t) => Ot(
|
|
5063
|
+
(e, t) => t && ("json" in t || "lossy" in t) ? Ft(Ot(e, t)) : structuredClone(e)
|
|
5064
|
+
) : (e, t) => Ft(Ot(e, t));
|
|
5113
5065
|
function Ga(e, t) {
|
|
5114
5066
|
const n = [{ type: "text", value: "↩" }];
|
|
5115
5067
|
return t > 1 && n.push({
|
|
@@ -5133,7 +5085,7 @@ function Ka(e) {
|
|
|
5133
5085
|
);
|
|
5134
5086
|
if (!s)
|
|
5135
5087
|
continue;
|
|
5136
|
-
const f = e.all(s), c = String(s.identifier).toUpperCase(), p =
|
|
5088
|
+
const f = e.all(s), c = String(s.identifier).toUpperCase(), p = Oe(c.toLowerCase());
|
|
5137
5089
|
let h = 0;
|
|
5138
5090
|
const d = [], x = e.footnoteCounts.get(c);
|
|
5139
5091
|
for (; x !== void 0 && ++h <= x; ) {
|
|
@@ -5175,7 +5127,7 @@ function Ka(e) {
|
|
|
5175
5127
|
type: "element",
|
|
5176
5128
|
tagName: o,
|
|
5177
5129
|
properties: {
|
|
5178
|
-
...
|
|
5130
|
+
...rn(l),
|
|
5179
5131
|
id: "footnote-label"
|
|
5180
5132
|
},
|
|
5181
5133
|
children: [{ type: "text", value: i }]
|
|
@@ -5193,7 +5145,7 @@ function Ka(e) {
|
|
|
5193
5145
|
]
|
|
5194
5146
|
};
|
|
5195
5147
|
}
|
|
5196
|
-
const
|
|
5148
|
+
const sn = (
|
|
5197
5149
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
5198
5150
|
/**
|
|
5199
5151
|
* @type {(
|
|
@@ -5212,7 +5164,7 @@ const cn = (
|
|
|
5212
5164
|
if (e == null)
|
|
5213
5165
|
return nu;
|
|
5214
5166
|
if (typeof e == "function")
|
|
5215
|
-
return
|
|
5167
|
+
return cn(e);
|
|
5216
5168
|
if (typeof e == "object")
|
|
5217
5169
|
return Array.isArray(e) ? Ja(e) : Za(e);
|
|
5218
5170
|
if (typeof e == "string")
|
|
@@ -5224,8 +5176,8 @@ function Ja(e) {
|
|
|
5224
5176
|
const t = [];
|
|
5225
5177
|
let n = -1;
|
|
5226
5178
|
for (; ++n < e.length; )
|
|
5227
|
-
t[n] =
|
|
5228
|
-
return
|
|
5179
|
+
t[n] = sn(e[n]);
|
|
5180
|
+
return cn(r);
|
|
5229
5181
|
function r(...i) {
|
|
5230
5182
|
let o = -1;
|
|
5231
5183
|
for (; ++o < t.length; )
|
|
@@ -5238,7 +5190,7 @@ function Za(e) {
|
|
|
5238
5190
|
/** @type {Record<string, unknown>} */
|
|
5239
5191
|
e
|
|
5240
5192
|
);
|
|
5241
|
-
return
|
|
5193
|
+
return cn(n);
|
|
5242
5194
|
function n(r) {
|
|
5243
5195
|
const i = (
|
|
5244
5196
|
/** @type {Record<string, unknown>} */
|
|
@@ -5252,12 +5204,12 @@ function Za(e) {
|
|
|
5252
5204
|
}
|
|
5253
5205
|
}
|
|
5254
5206
|
function eu(e) {
|
|
5255
|
-
return
|
|
5207
|
+
return cn(t);
|
|
5256
5208
|
function t(n) {
|
|
5257
5209
|
return n && n.type === e;
|
|
5258
5210
|
}
|
|
5259
5211
|
}
|
|
5260
|
-
function
|
|
5212
|
+
function cn(e) {
|
|
5261
5213
|
return t;
|
|
5262
5214
|
function t(n, r, i) {
|
|
5263
5215
|
return !!(tu(n) && e.call(
|
|
@@ -5274,11 +5226,11 @@ function nu() {
|
|
|
5274
5226
|
function tu(e) {
|
|
5275
5227
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5276
5228
|
}
|
|
5277
|
-
const
|
|
5278
|
-
function
|
|
5229
|
+
const Or = [], ru = !0, On = !1, iu = "skip";
|
|
5230
|
+
function Rr(e, t, n, r) {
|
|
5279
5231
|
let i;
|
|
5280
5232
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
5281
|
-
const o =
|
|
5233
|
+
const o = sn(i), l = r ? -1 : 1;
|
|
5282
5234
|
a(e, void 0, [])();
|
|
5283
5235
|
function a(u, s, f) {
|
|
5284
5236
|
const c = (
|
|
@@ -5299,7 +5251,7 @@ function Or(e, t, n, r) {
|
|
|
5299
5251
|
}
|
|
5300
5252
|
return p;
|
|
5301
5253
|
function p() {
|
|
5302
|
-
let h =
|
|
5254
|
+
let h = Or, d, x, E;
|
|
5303
5255
|
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = lu(n(u, f)), h[0] === On))
|
|
5304
5256
|
return h;
|
|
5305
5257
|
if ("children" in u && u.children) {
|
|
@@ -5320,17 +5272,17 @@ function Or(e, t, n, r) {
|
|
|
5320
5272
|
}
|
|
5321
5273
|
}
|
|
5322
5274
|
function lu(e) {
|
|
5323
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [ru, e] : e == null ?
|
|
5275
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [ru, e] : e == null ? Or : [e];
|
|
5324
5276
|
}
|
|
5325
|
-
function
|
|
5277
|
+
function Jn(e, t, n, r) {
|
|
5326
5278
|
let i, o, l;
|
|
5327
|
-
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r),
|
|
5279
|
+
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r), Rr(e, o, a, i);
|
|
5328
5280
|
function a(u, s) {
|
|
5329
5281
|
const f = s[s.length - 1], c = f ? f.children.indexOf(u) : void 0;
|
|
5330
5282
|
return l(u, c, f);
|
|
5331
5283
|
}
|
|
5332
5284
|
}
|
|
5333
|
-
const
|
|
5285
|
+
const Rn = {}.hasOwnProperty, ou = {};
|
|
5334
5286
|
function au(e, t) {
|
|
5335
5287
|
const n = t || ou, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...qa, ...n.handlers }, a = {
|
|
5336
5288
|
all: s,
|
|
@@ -5345,7 +5297,7 @@ function au(e, t) {
|
|
|
5345
5297
|
patch: uu,
|
|
5346
5298
|
wrap: fu
|
|
5347
5299
|
};
|
|
5348
|
-
return
|
|
5300
|
+
return Jn(e, function(f) {
|
|
5349
5301
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
5350
5302
|
const c = f.type === "definition" ? r : i, p = String(f.identifier).toUpperCase();
|
|
5351
5303
|
c.has(p) || c.set(p, f);
|
|
@@ -5353,14 +5305,14 @@ function au(e, t) {
|
|
|
5353
5305
|
}), a;
|
|
5354
5306
|
function u(f, c) {
|
|
5355
5307
|
const p = f.type, h = a.handlers[p];
|
|
5356
|
-
if (
|
|
5308
|
+
if (Rn.call(a.handlers, p) && h)
|
|
5357
5309
|
return h(a, f, c);
|
|
5358
5310
|
if (a.options.passThrough && a.options.passThrough.includes(p)) {
|
|
5359
5311
|
if ("children" in f) {
|
|
5360
|
-
const { children: x, ...E } = f, y =
|
|
5312
|
+
const { children: x, ...E } = f, y = rn(E);
|
|
5361
5313
|
return y.children = a.all(f), y;
|
|
5362
5314
|
}
|
|
5363
|
-
return
|
|
5315
|
+
return rn(f);
|
|
5364
5316
|
}
|
|
5365
5317
|
return (a.options.unknownHandler || cu)(a, f, c);
|
|
5366
5318
|
}
|
|
@@ -5372,9 +5324,9 @@ function au(e, t) {
|
|
|
5372
5324
|
for (; ++h < p.length; ) {
|
|
5373
5325
|
const d = a.one(p[h], f);
|
|
5374
5326
|
if (d) {
|
|
5375
|
-
if (h && p[h - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value =
|
|
5327
|
+
if (h && p[h - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value = Rt(d.value)), !Array.isArray(d) && d.type === "element")) {
|
|
5376
5328
|
const x = d.children[0];
|
|
5377
|
-
x && x.type === "text" && (x.value =
|
|
5329
|
+
x && x.type === "text" && (x.value = Rt(x.value));
|
|
5378
5330
|
}
|
|
5379
5331
|
Array.isArray(d) ? c.push(...d) : c.push(d);
|
|
5380
5332
|
}
|
|
@@ -5397,12 +5349,12 @@ function su(e, t) {
|
|
|
5397
5349
|
const l = "children" in n ? n.children : [n];
|
|
5398
5350
|
n = { type: "element", tagName: r, properties: {}, children: l };
|
|
5399
5351
|
}
|
|
5400
|
-
n.type === "element" && o && Object.assign(n.properties,
|
|
5352
|
+
n.type === "element" && o && Object.assign(n.properties, rn(o)), "children" in n && n.children && i !== null && i !== void 0 && (n.children = i);
|
|
5401
5353
|
}
|
|
5402
5354
|
return n;
|
|
5403
5355
|
}
|
|
5404
5356
|
function cu(e, t) {
|
|
5405
|
-
const n = t.data || {}, r = "value" in t && !(
|
|
5357
|
+
const n = t.data || {}, r = "value" in t && !(Rn.call(n, "hProperties") || Rn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5406
5358
|
type: "element",
|
|
5407
5359
|
tagName: "div",
|
|
5408
5360
|
properties: {},
|
|
@@ -5420,13 +5372,13 @@ function fu(e, t) {
|
|
|
5420
5372
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
|
5421
5373
|
` }), n;
|
|
5422
5374
|
}
|
|
5423
|
-
function
|
|
5375
|
+
function Rt(e) {
|
|
5424
5376
|
let t = 0, n = e.charCodeAt(t);
|
|
5425
5377
|
for (; n === 9 || n === 32; )
|
|
5426
5378
|
t++, n = e.charCodeAt(t);
|
|
5427
5379
|
return e.slice(t);
|
|
5428
5380
|
}
|
|
5429
|
-
function
|
|
5381
|
+
function _t(e, t) {
|
|
5430
5382
|
const n = au(e, t), r = n.one(e, void 0), i = Ka(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5431
5383
|
return i && o.children.push({ type: "text", value: `
|
|
5432
5384
|
` }, i), o;
|
|
@@ -5435,24 +5387,24 @@ function hu(e, t) {
|
|
|
5435
5387
|
return e && "run" in e ? async function(n, r) {
|
|
5436
5388
|
const i = (
|
|
5437
5389
|
/** @type {HastRoot} */
|
|
5438
|
-
|
|
5390
|
+
_t(n, { file: r, ...t })
|
|
5439
5391
|
);
|
|
5440
5392
|
await e.run(i, r);
|
|
5441
5393
|
} : function(n, r) {
|
|
5442
5394
|
return (
|
|
5443
5395
|
/** @type {HastRoot} */
|
|
5444
|
-
|
|
5396
|
+
_t(n, { file: r, ...e || t })
|
|
5445
5397
|
);
|
|
5446
5398
|
};
|
|
5447
5399
|
}
|
|
5448
|
-
function
|
|
5400
|
+
function Mt(e) {
|
|
5449
5401
|
if (e)
|
|
5450
5402
|
throw e;
|
|
5451
5403
|
}
|
|
5452
|
-
var
|
|
5404
|
+
var dn, Nt;
|
|
5453
5405
|
function pu() {
|
|
5454
|
-
if (
|
|
5455
|
-
|
|
5406
|
+
if (Nt) return dn;
|
|
5407
|
+
Nt = 1;
|
|
5456
5408
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(s) {
|
|
5457
5409
|
return typeof Array.isArray == "function" ? Array.isArray(s) : t.call(s) === "[object Array]";
|
|
5458
5410
|
}, o = function(s) {
|
|
@@ -5480,18 +5432,18 @@ function pu() {
|
|
|
5480
5432
|
} else return;
|
|
5481
5433
|
return s[f];
|
|
5482
5434
|
};
|
|
5483
|
-
return
|
|
5435
|
+
return dn = function u() {
|
|
5484
5436
|
var s, f, c, p, h, d, x = arguments[0], E = 1, y = arguments.length, S = !1;
|
|
5485
5437
|
for (typeof x == "boolean" && (S = x, x = arguments[1] || {}, E = 2), (x == null || typeof x != "object" && typeof x != "function") && (x = {}); E < y; ++E)
|
|
5486
5438
|
if (s = arguments[E], s != null)
|
|
5487
5439
|
for (f in s)
|
|
5488
5440
|
c = a(x, f), p = a(s, f), x !== p && (S && p && (o(p) || (h = i(p))) ? (h ? (h = !1, d = c && i(c) ? c : []) : d = c && o(c) ? c : {}, l(x, { name: f, newValue: u(S, d, p) })) : typeof p < "u" && l(x, { name: f, newValue: p }));
|
|
5489
5441
|
return x;
|
|
5490
|
-
},
|
|
5442
|
+
}, dn;
|
|
5491
5443
|
}
|
|
5492
5444
|
var mu = /* @__PURE__ */ pu();
|
|
5493
|
-
const
|
|
5494
|
-
function
|
|
5445
|
+
const yn = /* @__PURE__ */ er(mu);
|
|
5446
|
+
function _n(e) {
|
|
5495
5447
|
if (typeof e != "object" || e === null)
|
|
5496
5448
|
return !1;
|
|
5497
5449
|
const t = Object.getPrototypeOf(e);
|
|
@@ -5553,7 +5505,7 @@ function du(e, t) {
|
|
|
5553
5505
|
i(null, l);
|
|
5554
5506
|
}
|
|
5555
5507
|
}
|
|
5556
|
-
const
|
|
5508
|
+
const ce = { basename: yu, dirname: ku, extname: xu, join: bu, sep: "/" };
|
|
5557
5509
|
function yu(e, t) {
|
|
5558
5510
|
if (t !== void 0 && typeof t != "string")
|
|
5559
5511
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -5666,14 +5618,14 @@ const Cu = { cwd: Eu };
|
|
|
5666
5618
|
function Eu() {
|
|
5667
5619
|
return "/";
|
|
5668
5620
|
}
|
|
5669
|
-
function
|
|
5621
|
+
function Mn(e) {
|
|
5670
5622
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5671
5623
|
e.auth === void 0);
|
|
5672
5624
|
}
|
|
5673
5625
|
function Iu(e) {
|
|
5674
5626
|
if (typeof e == "string")
|
|
5675
5627
|
e = new URL(e);
|
|
5676
|
-
else if (!
|
|
5628
|
+
else if (!Mn(e)) {
|
|
5677
5629
|
const t = new TypeError(
|
|
5678
5630
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
5679
5631
|
);
|
|
@@ -5706,7 +5658,7 @@ function Au(e) {
|
|
|
5706
5658
|
}
|
|
5707
5659
|
return decodeURIComponent(t);
|
|
5708
5660
|
}
|
|
5709
|
-
const
|
|
5661
|
+
const kn = (
|
|
5710
5662
|
/** @type {const} */
|
|
5711
5663
|
[
|
|
5712
5664
|
"history",
|
|
@@ -5717,7 +5669,7 @@ const bn = (
|
|
|
5717
5669
|
"dirname"
|
|
5718
5670
|
]
|
|
5719
5671
|
);
|
|
5720
|
-
class
|
|
5672
|
+
class _r {
|
|
5721
5673
|
/**
|
|
5722
5674
|
* Create a new virtual file.
|
|
5723
5675
|
*
|
|
@@ -5742,15 +5694,15 @@ class Mr {
|
|
|
5742
5694
|
*/
|
|
5743
5695
|
constructor(t) {
|
|
5744
5696
|
let n;
|
|
5745
|
-
t ?
|
|
5697
|
+
t ? Mn(t) ? n = { path: t } : typeof t == "string" || Tu(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Cu.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5746
5698
|
let r = -1;
|
|
5747
|
-
for (; ++r <
|
|
5748
|
-
const o =
|
|
5699
|
+
for (; ++r < kn.length; ) {
|
|
5700
|
+
const o = kn[r];
|
|
5749
5701
|
o in n && n[o] !== void 0 && n[o] !== null && (this[o] = o === "history" ? [...n[o]] : n[o]);
|
|
5750
5702
|
}
|
|
5751
5703
|
let i;
|
|
5752
5704
|
for (i in n)
|
|
5753
|
-
|
|
5705
|
+
kn.includes(i) || (this[i] = n[i]);
|
|
5754
5706
|
}
|
|
5755
5707
|
/**
|
|
5756
5708
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -5759,7 +5711,7 @@ class Mr {
|
|
|
5759
5711
|
* Basename.
|
|
5760
5712
|
*/
|
|
5761
5713
|
get basename() {
|
|
5762
|
-
return typeof this.path == "string" ?
|
|
5714
|
+
return typeof this.path == "string" ? ce.basename(this.path) : void 0;
|
|
5763
5715
|
}
|
|
5764
5716
|
/**
|
|
5765
5717
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -5774,7 +5726,7 @@ class Mr {
|
|
|
5774
5726
|
* Nothing.
|
|
5775
5727
|
*/
|
|
5776
5728
|
set basename(t) {
|
|
5777
|
-
|
|
5729
|
+
bn(t, "basename"), xn(t, "basename"), this.path = ce.join(this.dirname || "", t);
|
|
5778
5730
|
}
|
|
5779
5731
|
/**
|
|
5780
5732
|
* Get the parent path (example: `'~'`).
|
|
@@ -5783,7 +5735,7 @@ class Mr {
|
|
|
5783
5735
|
* Dirname.
|
|
5784
5736
|
*/
|
|
5785
5737
|
get dirname() {
|
|
5786
|
-
return typeof this.path == "string" ?
|
|
5738
|
+
return typeof this.path == "string" ? ce.dirname(this.path) : void 0;
|
|
5787
5739
|
}
|
|
5788
5740
|
/**
|
|
5789
5741
|
* Set the parent path (example: `'~'`).
|
|
@@ -5796,7 +5748,7 @@ class Mr {
|
|
|
5796
5748
|
* Nothing.
|
|
5797
5749
|
*/
|
|
5798
5750
|
set dirname(t) {
|
|
5799
|
-
|
|
5751
|
+
Bt(this.basename, "dirname"), this.path = ce.join(t || "", this.basename);
|
|
5800
5752
|
}
|
|
5801
5753
|
/**
|
|
5802
5754
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -5805,7 +5757,7 @@ class Mr {
|
|
|
5805
5757
|
* Extname.
|
|
5806
5758
|
*/
|
|
5807
5759
|
get extname() {
|
|
5808
|
-
return typeof this.path == "string" ?
|
|
5760
|
+
return typeof this.path == "string" ? ce.extname(this.path) : void 0;
|
|
5809
5761
|
}
|
|
5810
5762
|
/**
|
|
5811
5763
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -5820,13 +5772,13 @@ class Mr {
|
|
|
5820
5772
|
* Nothing.
|
|
5821
5773
|
*/
|
|
5822
5774
|
set extname(t) {
|
|
5823
|
-
if (
|
|
5775
|
+
if (xn(t, "extname"), Bt(this.dirname, "extname"), t) {
|
|
5824
5776
|
if (t.codePointAt(0) !== 46)
|
|
5825
5777
|
throw new Error("`extname` must start with `.`");
|
|
5826
5778
|
if (t.includes(".", 1))
|
|
5827
5779
|
throw new Error("`extname` cannot contain multiple dots");
|
|
5828
5780
|
}
|
|
5829
|
-
this.path =
|
|
5781
|
+
this.path = ce.join(this.dirname, this.stem + (t || ""));
|
|
5830
5782
|
}
|
|
5831
5783
|
/**
|
|
5832
5784
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -5850,7 +5802,7 @@ class Mr {
|
|
|
5850
5802
|
* Nothing.
|
|
5851
5803
|
*/
|
|
5852
5804
|
set path(t) {
|
|
5853
|
-
|
|
5805
|
+
Mn(t) && (t = Iu(t)), bn(t, "path"), this.path !== t && this.history.push(t);
|
|
5854
5806
|
}
|
|
5855
5807
|
/**
|
|
5856
5808
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -5859,7 +5811,7 @@ class Mr {
|
|
|
5859
5811
|
* Stem.
|
|
5860
5812
|
*/
|
|
5861
5813
|
get stem() {
|
|
5862
|
-
return typeof this.path == "string" ?
|
|
5814
|
+
return typeof this.path == "string" ? ce.basename(this.path, this.extname) : void 0;
|
|
5863
5815
|
}
|
|
5864
5816
|
/**
|
|
5865
5817
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -5874,7 +5826,7 @@ class Mr {
|
|
|
5874
5826
|
* Nothing.
|
|
5875
5827
|
*/
|
|
5876
5828
|
set stem(t) {
|
|
5877
|
-
|
|
5829
|
+
bn(t, "stem"), xn(t, "stem"), this.path = ce.join(this.dirname || "", t + (this.extname || ""));
|
|
5878
5830
|
}
|
|
5879
5831
|
// Normal prototypal methods.
|
|
5880
5832
|
/**
|
|
@@ -6087,17 +6039,17 @@ class Mr {
|
|
|
6087
6039
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
6088
6040
|
}
|
|
6089
6041
|
}
|
|
6090
|
-
function
|
|
6091
|
-
if (e && e.includes(
|
|
6042
|
+
function xn(e, t) {
|
|
6043
|
+
if (e && e.includes(ce.sep))
|
|
6092
6044
|
throw new Error(
|
|
6093
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
|
6045
|
+
"`" + t + "` cannot be a path: did not expect `" + ce.sep + "`"
|
|
6094
6046
|
);
|
|
6095
6047
|
}
|
|
6096
|
-
function
|
|
6048
|
+
function bn(e, t) {
|
|
6097
6049
|
if (!e)
|
|
6098
6050
|
throw new Error("`" + t + "` cannot be empty");
|
|
6099
6051
|
}
|
|
6100
|
-
function
|
|
6052
|
+
function Bt(e, t) {
|
|
6101
6053
|
if (!e)
|
|
6102
6054
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6103
6055
|
}
|
|
@@ -6125,8 +6077,8 @@ const Pu = (
|
|
|
6125
6077
|
};
|
|
6126
6078
|
return Object.setPrototypeOf(o, r), o;
|
|
6127
6079
|
}
|
|
6128
|
-
),
|
|
6129
|
-
class
|
|
6080
|
+
), Lu = {}.hasOwnProperty;
|
|
6081
|
+
class Zn extends Pu {
|
|
6130
6082
|
/**
|
|
6131
6083
|
* Create a processor.
|
|
6132
6084
|
*/
|
|
@@ -6147,14 +6099,14 @@ class nt extends Pu {
|
|
|
6147
6099
|
copy() {
|
|
6148
6100
|
const t = (
|
|
6149
6101
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
6150
|
-
new
|
|
6102
|
+
new Zn()
|
|
6151
6103
|
);
|
|
6152
6104
|
let n = -1;
|
|
6153
6105
|
for (; ++n < this.attachers.length; ) {
|
|
6154
6106
|
const r = this.attachers[n];
|
|
6155
6107
|
t.use(...r);
|
|
6156
6108
|
}
|
|
6157
|
-
return t.data(
|
|
6109
|
+
return t.data(yn(!0, {}, this.namespace)), t;
|
|
6158
6110
|
}
|
|
6159
6111
|
/**
|
|
6160
6112
|
* Configure the processor with info available to all plugins.
|
|
@@ -6216,7 +6168,7 @@ class nt extends Pu {
|
|
|
6216
6168
|
* the entire dataset when getting without key.
|
|
6217
6169
|
*/
|
|
6218
6170
|
data(t, n) {
|
|
6219
|
-
return typeof t == "string" ? arguments.length === 2 ? (
|
|
6171
|
+
return typeof t == "string" ? arguments.length === 2 ? (Cn("data", this.frozen), this.namespace[t] = n, this) : Lu.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (Cn("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
6220
6172
|
}
|
|
6221
6173
|
/**
|
|
6222
6174
|
* Freeze a processor.
|
|
@@ -6270,7 +6222,7 @@ class nt extends Pu {
|
|
|
6270
6222
|
parse(t) {
|
|
6271
6223
|
this.freeze();
|
|
6272
6224
|
const n = Ke(t), r = this.parser || this.Parser;
|
|
6273
|
-
return
|
|
6225
|
+
return wn("parse", r), r(String(n), n);
|
|
6274
6226
|
}
|
|
6275
6227
|
/**
|
|
6276
6228
|
* Process the given file as configured on the processor.
|
|
@@ -6316,7 +6268,7 @@ class nt extends Pu {
|
|
|
6316
6268
|
*/
|
|
6317
6269
|
process(t, n) {
|
|
6318
6270
|
const r = this;
|
|
6319
|
-
return this.freeze(),
|
|
6271
|
+
return this.freeze(), wn("process", this.parser || this.Parser), Sn("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
|
|
6320
6272
|
function i(o, l) {
|
|
6321
6273
|
const a = Ke(t), u = (
|
|
6322
6274
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -6375,9 +6327,9 @@ class nt extends Pu {
|
|
|
6375
6327
|
*/
|
|
6376
6328
|
processSync(t) {
|
|
6377
6329
|
let n = !1, r;
|
|
6378
|
-
return this.freeze(),
|
|
6330
|
+
return this.freeze(), wn("processSync", this.parser || this.Parser), Sn("processSync", this.compiler || this.Compiler), this.process(t, i), Ht("processSync", "process", n), r;
|
|
6379
6331
|
function i(o, l) {
|
|
6380
|
-
n = !0,
|
|
6332
|
+
n = !0, Mt(o), r = l;
|
|
6381
6333
|
}
|
|
6382
6334
|
}
|
|
6383
6335
|
/**
|
|
@@ -6419,7 +6371,7 @@ class nt extends Pu {
|
|
|
6419
6371
|
* transformed tree.
|
|
6420
6372
|
*/
|
|
6421
6373
|
run(t, n, r) {
|
|
6422
|
-
|
|
6374
|
+
jt(t), this.freeze();
|
|
6423
6375
|
const i = this.transformers;
|
|
6424
6376
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
|
|
6425
6377
|
function o(l, a) {
|
|
@@ -6453,9 +6405,9 @@ class nt extends Pu {
|
|
|
6453
6405
|
*/
|
|
6454
6406
|
runSync(t, n) {
|
|
6455
6407
|
let r = !1, i;
|
|
6456
|
-
return this.run(t, n, o),
|
|
6408
|
+
return this.run(t, n, o), Ht("runSync", "run", r), i;
|
|
6457
6409
|
function o(l, a) {
|
|
6458
|
-
|
|
6410
|
+
Mt(l), i = a, r = !0;
|
|
6459
6411
|
}
|
|
6460
6412
|
}
|
|
6461
6413
|
/**
|
|
@@ -6490,7 +6442,7 @@ class nt extends Pu {
|
|
|
6490
6442
|
stringify(t, n) {
|
|
6491
6443
|
this.freeze();
|
|
6492
6444
|
const r = Ke(n), i = this.compiler || this.Compiler;
|
|
6493
|
-
return
|
|
6445
|
+
return Sn("stringify", i), jt(t), i(t, r);
|
|
6494
6446
|
}
|
|
6495
6447
|
/**
|
|
6496
6448
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6551,7 +6503,7 @@ class nt extends Pu {
|
|
|
6551
6503
|
*/
|
|
6552
6504
|
use(t, ...n) {
|
|
6553
6505
|
const r = this.attachers, i = this.namespace;
|
|
6554
|
-
if (
|
|
6506
|
+
if (Cn("use", this.frozen), t != null) if (typeof t == "function")
|
|
6555
6507
|
u(t, n);
|
|
6556
6508
|
else if (typeof t == "object")
|
|
6557
6509
|
Array.isArray(t) ? a(t) : l(t);
|
|
@@ -6578,7 +6530,7 @@ class nt extends Pu {
|
|
|
6578
6530
|
throw new Error(
|
|
6579
6531
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
6580
6532
|
);
|
|
6581
|
-
a(s.plugins), s.settings && (i.settings =
|
|
6533
|
+
a(s.plugins), s.settings && (i.settings = yn(!0, i.settings, s.settings));
|
|
6582
6534
|
}
|
|
6583
6535
|
function a(s) {
|
|
6584
6536
|
let f = -1;
|
|
@@ -6602,38 +6554,38 @@ class nt extends Pu {
|
|
|
6602
6554
|
else if (f.length > 0) {
|
|
6603
6555
|
let [h, ...d] = f;
|
|
6604
6556
|
const x = r[p][1];
|
|
6605
|
-
|
|
6557
|
+
_n(x) && _n(h) && (h = yn(!0, x, h)), r[p] = [s, h, ...d];
|
|
6606
6558
|
}
|
|
6607
6559
|
}
|
|
6608
6560
|
}
|
|
6609
6561
|
}
|
|
6610
|
-
const
|
|
6611
|
-
function
|
|
6562
|
+
const vu = new Zn().freeze();
|
|
6563
|
+
function wn(e, t) {
|
|
6612
6564
|
if (typeof t != "function")
|
|
6613
6565
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
6614
6566
|
}
|
|
6615
|
-
function
|
|
6567
|
+
function Sn(e, t) {
|
|
6616
6568
|
if (typeof t != "function")
|
|
6617
6569
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
6618
6570
|
}
|
|
6619
|
-
function
|
|
6571
|
+
function Cn(e, t) {
|
|
6620
6572
|
if (t)
|
|
6621
6573
|
throw new Error(
|
|
6622
6574
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6623
6575
|
);
|
|
6624
6576
|
}
|
|
6625
|
-
function
|
|
6626
|
-
if (!
|
|
6577
|
+
function jt(e) {
|
|
6578
|
+
if (!_n(e) || typeof e.type != "string")
|
|
6627
6579
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
6628
6580
|
}
|
|
6629
|
-
function
|
|
6581
|
+
function Ht(e, t, n) {
|
|
6630
6582
|
if (!n)
|
|
6631
6583
|
throw new Error(
|
|
6632
6584
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
6633
6585
|
);
|
|
6634
6586
|
}
|
|
6635
6587
|
function Ke(e) {
|
|
6636
|
-
return zu(e) ? e : new
|
|
6588
|
+
return zu(e) ? e : new _r(e);
|
|
6637
6589
|
}
|
|
6638
6590
|
function zu(e) {
|
|
6639
6591
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
@@ -6644,7 +6596,7 @@ function Du(e) {
|
|
|
6644
6596
|
function Fu(e) {
|
|
6645
6597
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6646
6598
|
}
|
|
6647
|
-
const
|
|
6599
|
+
const Ut = [], $t = { allowDangerousHtml: !0 }, Ou = /^(https?|ircs?|mailto|xmpp)$/i, Ru = [
|
|
6648
6600
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
6649
6601
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
6650
6602
|
{
|
|
@@ -6677,8 +6629,8 @@ const Vt = [], Wt = { allowDangerousHtml: !0 }, _u = /^(https?|ircs?|mailto|xmpp
|
|
|
6677
6629
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
6678
6630
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
6679
6631
|
];
|
|
6680
|
-
function
|
|
6681
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins ||
|
|
6632
|
+
function qt(e) {
|
|
6633
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, l = e.disallowedElements, a = e.rehypePlugins || Ut, u = e.remarkPlugins || Ut, s = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...$t } : $t, f = e.skipHtml, c = e.unwrapDisallowed, p = e.urlTransform || _u, h = vu().use(ka).use(u).use(hu, s).use(a), d = new _r();
|
|
6682
6634
|
typeof r == "string" && (d.value = r);
|
|
6683
6635
|
for (const S of Ru)
|
|
6684
6636
|
;
|
|
@@ -6693,15 +6645,15 @@ function Ou(e) {
|
|
|
6693
6645
|
/** @type {Array<ElementContent>} */
|
|
6694
6646
|
E.type === "root" ? E.children : [E]
|
|
6695
6647
|
)
|
|
6696
|
-
}),
|
|
6697
|
-
Fragment:
|
|
6648
|
+
}), Jn(E, y), Zi(E, {
|
|
6649
|
+
Fragment: mi,
|
|
6698
6650
|
// @ts-expect-error
|
|
6699
6651
|
// React components are allowed to return numbers,
|
|
6700
6652
|
// but not according to the types in hast-util-to-jsx-runtime
|
|
6701
6653
|
components: o,
|
|
6702
6654
|
ignoreInvalidStyle: !0,
|
|
6703
|
-
jsx:
|
|
6704
|
-
jsxs:
|
|
6655
|
+
jsx: xe,
|
|
6656
|
+
jsxs: Zt,
|
|
6705
6657
|
passKeys: !0,
|
|
6706
6658
|
passNode: !0
|
|
6707
6659
|
});
|
|
@@ -6710,10 +6662,10 @@ function Ou(e) {
|
|
|
6710
6662
|
return f ? F.children.splice(C, 1) : F.children[C] = { type: "text", value: S.value }, C;
|
|
6711
6663
|
if (S.type === "element") {
|
|
6712
6664
|
let z;
|
|
6713
|
-
for (z in
|
|
6714
|
-
if (Object.hasOwn(
|
|
6715
|
-
const w = S.properties[z],
|
|
6716
|
-
(
|
|
6665
|
+
for (z in pn)
|
|
6666
|
+
if (Object.hasOwn(pn, z) && Object.hasOwn(S.properties, z)) {
|
|
6667
|
+
const w = S.properties[z], _ = pn[z];
|
|
6668
|
+
(_ === null || _.includes(S.tagName)) && (S.properties[z] = p(String(w || ""), z, S));
|
|
6717
6669
|
}
|
|
6718
6670
|
}
|
|
6719
6671
|
if (S.type === "element") {
|
|
@@ -6723,16 +6675,16 @@ function Ou(e) {
|
|
|
6723
6675
|
}
|
|
6724
6676
|
}
|
|
6725
6677
|
}
|
|
6726
|
-
function
|
|
6678
|
+
function _u(e) {
|
|
6727
6679
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
6728
6680
|
return (
|
|
6729
6681
|
// If there is no protocol, it’s relative.
|
|
6730
6682
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
6731
6683
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
|
6732
|
-
|
|
6684
|
+
Ou.test(e.slice(0, t)) ? e : ""
|
|
6733
6685
|
);
|
|
6734
6686
|
}
|
|
6735
|
-
function
|
|
6687
|
+
function Vt(e, t) {
|
|
6736
6688
|
const n = String(e);
|
|
6737
6689
|
if (typeof t != "string")
|
|
6738
6690
|
throw new TypeError("Expected character");
|
|
@@ -6741,16 +6693,16 @@ function Qt(e, t) {
|
|
|
6741
6693
|
r++, i = n.indexOf(t, i + t.length);
|
|
6742
6694
|
return r;
|
|
6743
6695
|
}
|
|
6744
|
-
function
|
|
6696
|
+
function Mu(e) {
|
|
6745
6697
|
if (typeof e != "string")
|
|
6746
6698
|
throw new TypeError("Expected a string");
|
|
6747
6699
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
6748
6700
|
}
|
|
6749
|
-
function
|
|
6750
|
-
const i =
|
|
6701
|
+
function Nu(e, t, n) {
|
|
6702
|
+
const i = sn(n.ignore || []), o = Bu(t);
|
|
6751
6703
|
let l = -1;
|
|
6752
6704
|
for (; ++l < o.length; )
|
|
6753
|
-
|
|
6705
|
+
Rr(e, "text", a);
|
|
6754
6706
|
function a(s, f) {
|
|
6755
6707
|
let c = -1, p;
|
|
6756
6708
|
for (; ++c < f.length; ) {
|
|
@@ -6790,7 +6742,7 @@ function Bu(e, t, n) {
|
|
|
6790
6742
|
return y ? (d < s.value.length && S.push({ type: "text", value: s.value.slice(d) }), c.children.splice(E, 1, ...S)) : S = [s], E + S.length;
|
|
6791
6743
|
}
|
|
6792
6744
|
}
|
|
6793
|
-
function
|
|
6745
|
+
function Bu(e) {
|
|
6794
6746
|
const t = [];
|
|
6795
6747
|
if (!Array.isArray(e))
|
|
6796
6748
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -6798,98 +6750,98 @@ function ju(e) {
|
|
|
6798
6750
|
let r = -1;
|
|
6799
6751
|
for (; ++r < n.length; ) {
|
|
6800
6752
|
const i = n[r];
|
|
6801
|
-
t.push([
|
|
6753
|
+
t.push([ju(i[0]), Hu(i[1])]);
|
|
6802
6754
|
}
|
|
6803
6755
|
return t;
|
|
6804
6756
|
}
|
|
6805
|
-
function
|
|
6806
|
-
return typeof e == "string" ? new RegExp(
|
|
6757
|
+
function ju(e) {
|
|
6758
|
+
return typeof e == "string" ? new RegExp(Mu(e), "g") : e;
|
|
6807
6759
|
}
|
|
6808
|
-
function
|
|
6760
|
+
function Hu(e) {
|
|
6809
6761
|
return typeof e == "function" ? e : function() {
|
|
6810
6762
|
return e;
|
|
6811
6763
|
};
|
|
6812
6764
|
}
|
|
6813
|
-
const
|
|
6814
|
-
function
|
|
6765
|
+
const En = "phrasing", In = ["autolink", "link", "image", "label"];
|
|
6766
|
+
function Uu() {
|
|
6815
6767
|
return {
|
|
6816
|
-
transforms: [
|
|
6768
|
+
transforms: [Gu],
|
|
6817
6769
|
enter: {
|
|
6818
|
-
literalAutolink:
|
|
6819
|
-
literalAutolinkEmail:
|
|
6820
|
-
literalAutolinkHttp:
|
|
6821
|
-
literalAutolinkWww:
|
|
6770
|
+
literalAutolink: qu,
|
|
6771
|
+
literalAutolinkEmail: An,
|
|
6772
|
+
literalAutolinkHttp: An,
|
|
6773
|
+
literalAutolinkWww: An
|
|
6822
6774
|
},
|
|
6823
6775
|
exit: {
|
|
6824
|
-
literalAutolink:
|
|
6825
|
-
literalAutolinkEmail:
|
|
6826
|
-
literalAutolinkHttp:
|
|
6827
|
-
literalAutolinkWww:
|
|
6776
|
+
literalAutolink: Yu,
|
|
6777
|
+
literalAutolinkEmail: Qu,
|
|
6778
|
+
literalAutolinkHttp: Vu,
|
|
6779
|
+
literalAutolinkWww: Wu
|
|
6828
6780
|
}
|
|
6829
6781
|
};
|
|
6830
6782
|
}
|
|
6831
|
-
function
|
|
6783
|
+
function $u() {
|
|
6832
6784
|
return {
|
|
6833
6785
|
unsafe: [
|
|
6834
6786
|
{
|
|
6835
6787
|
character: "@",
|
|
6836
6788
|
before: "[+\\-.\\w]",
|
|
6837
6789
|
after: "[\\-.\\w]",
|
|
6838
|
-
inConstruct:
|
|
6839
|
-
notInConstruct:
|
|
6790
|
+
inConstruct: En,
|
|
6791
|
+
notInConstruct: In
|
|
6840
6792
|
},
|
|
6841
6793
|
{
|
|
6842
6794
|
character: ".",
|
|
6843
6795
|
before: "[Ww]",
|
|
6844
6796
|
after: "[\\-.\\w]",
|
|
6845
|
-
inConstruct:
|
|
6846
|
-
notInConstruct:
|
|
6797
|
+
inConstruct: En,
|
|
6798
|
+
notInConstruct: In
|
|
6847
6799
|
},
|
|
6848
6800
|
{
|
|
6849
6801
|
character: ":",
|
|
6850
6802
|
before: "[ps]",
|
|
6851
6803
|
after: "\\/",
|
|
6852
|
-
inConstruct:
|
|
6853
|
-
notInConstruct:
|
|
6804
|
+
inConstruct: En,
|
|
6805
|
+
notInConstruct: In
|
|
6854
6806
|
}
|
|
6855
6807
|
]
|
|
6856
6808
|
};
|
|
6857
6809
|
}
|
|
6858
|
-
function
|
|
6810
|
+
function qu(e) {
|
|
6859
6811
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
6860
6812
|
}
|
|
6861
|
-
function
|
|
6813
|
+
function An(e) {
|
|
6862
6814
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
6863
6815
|
}
|
|
6864
|
-
function
|
|
6816
|
+
function Vu(e) {
|
|
6865
6817
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
6866
6818
|
}
|
|
6867
|
-
function
|
|
6819
|
+
function Wu(e) {
|
|
6868
6820
|
this.config.exit.data.call(this, e);
|
|
6869
6821
|
const t = this.stack[this.stack.length - 1];
|
|
6870
6822
|
t.url = "http://" + this.sliceSerialize(e);
|
|
6871
6823
|
}
|
|
6872
|
-
function
|
|
6824
|
+
function Qu(e) {
|
|
6873
6825
|
this.config.exit.autolinkEmail.call(this, e);
|
|
6874
6826
|
}
|
|
6875
|
-
function
|
|
6827
|
+
function Yu(e) {
|
|
6876
6828
|
this.exit(e);
|
|
6877
6829
|
}
|
|
6878
|
-
function
|
|
6879
|
-
|
|
6830
|
+
function Gu(e) {
|
|
6831
|
+
Nu(
|
|
6880
6832
|
e,
|
|
6881
6833
|
[
|
|
6882
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
6883
|
-
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"),
|
|
6834
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Xu],
|
|
6835
|
+
[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)", "gu"), Ku]
|
|
6884
6836
|
],
|
|
6885
6837
|
{ ignore: ["link", "linkReference"] }
|
|
6886
6838
|
);
|
|
6887
6839
|
}
|
|
6888
|
-
function
|
|
6840
|
+
function Xu(e, t, n, r, i) {
|
|
6889
6841
|
let o = "";
|
|
6890
|
-
if (!
|
|
6842
|
+
if (!Mr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Ju(n)))
|
|
6891
6843
|
return !1;
|
|
6892
|
-
const l =
|
|
6844
|
+
const l = Zu(n + r);
|
|
6893
6845
|
if (!l[0]) return !1;
|
|
6894
6846
|
const a = {
|
|
6895
6847
|
type: "link",
|
|
@@ -6899,10 +6851,10 @@ function Ku(e, t, n, r, i) {
|
|
|
6899
6851
|
};
|
|
6900
6852
|
return l[1] ? [a, { type: "text", value: l[1] }] : a;
|
|
6901
6853
|
}
|
|
6902
|
-
function
|
|
6854
|
+
function Ku(e, t, n, r) {
|
|
6903
6855
|
return (
|
|
6904
6856
|
// Not an expected previous character.
|
|
6905
|
-
!
|
|
6857
|
+
!Mr(r, !0) || // Label ends in not allowed character.
|
|
6906
6858
|
/[-\d_]$/.test(n) ? !1 : {
|
|
6907
6859
|
type: "link",
|
|
6908
6860
|
title: null,
|
|
@@ -6911,85 +6863,85 @@ function Ju(e, t, n, r) {
|
|
|
6911
6863
|
}
|
|
6912
6864
|
);
|
|
6913
6865
|
}
|
|
6914
|
-
function
|
|
6866
|
+
function Ju(e) {
|
|
6915
6867
|
const t = e.split(".");
|
|
6916
6868
|
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])));
|
|
6917
6869
|
}
|
|
6918
|
-
function
|
|
6870
|
+
function Zu(e) {
|
|
6919
6871
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
6920
6872
|
if (!t)
|
|
6921
6873
|
return [e, void 0];
|
|
6922
6874
|
e = e.slice(0, t.index);
|
|
6923
6875
|
let n = t[0], r = n.indexOf(")");
|
|
6924
|
-
const i =
|
|
6925
|
-
let o =
|
|
6876
|
+
const i = Vt(e, "(");
|
|
6877
|
+
let o = Vt(e, ")");
|
|
6926
6878
|
for (; r !== -1 && i > o; )
|
|
6927
6879
|
e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), o++;
|
|
6928
6880
|
return [e, n];
|
|
6929
6881
|
}
|
|
6930
|
-
function
|
|
6882
|
+
function Mr(e, t) {
|
|
6931
6883
|
const n = e.input.charCodeAt(e.index - 1);
|
|
6932
|
-
return (e.index === 0 || Ee(n) ||
|
|
6884
|
+
return (e.index === 0 || Ee(n) || on(n)) && // If it’s an email, the previous character should not be a slash.
|
|
6933
6885
|
(!t || n !== 47);
|
|
6934
6886
|
}
|
|
6935
|
-
|
|
6936
|
-
function
|
|
6887
|
+
Nr.peek = cs;
|
|
6888
|
+
function es() {
|
|
6937
6889
|
return {
|
|
6938
6890
|
enter: {
|
|
6939
|
-
gfmFootnoteDefinition:
|
|
6940
|
-
gfmFootnoteDefinitionLabelString:
|
|
6941
|
-
gfmFootnoteCall:
|
|
6942
|
-
gfmFootnoteCallString:
|
|
6891
|
+
gfmFootnoteDefinition: ts,
|
|
6892
|
+
gfmFootnoteDefinitionLabelString: rs,
|
|
6893
|
+
gfmFootnoteCall: os,
|
|
6894
|
+
gfmFootnoteCallString: as
|
|
6943
6895
|
},
|
|
6944
6896
|
exit: {
|
|
6945
|
-
gfmFootnoteDefinition:
|
|
6946
|
-
gfmFootnoteDefinitionLabelString:
|
|
6947
|
-
gfmFootnoteCall:
|
|
6948
|
-
gfmFootnoteCallString:
|
|
6897
|
+
gfmFootnoteDefinition: ls,
|
|
6898
|
+
gfmFootnoteDefinitionLabelString: is,
|
|
6899
|
+
gfmFootnoteCall: ss,
|
|
6900
|
+
gfmFootnoteCallString: us
|
|
6949
6901
|
}
|
|
6950
6902
|
};
|
|
6951
6903
|
}
|
|
6952
|
-
function
|
|
6904
|
+
function ns() {
|
|
6953
6905
|
return {
|
|
6954
6906
|
// This is on by default already.
|
|
6955
6907
|
unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
|
|
6956
|
-
handlers: { footnoteDefinition:
|
|
6908
|
+
handlers: { footnoteDefinition: fs, footnoteReference: Nr }
|
|
6957
6909
|
};
|
|
6958
6910
|
}
|
|
6959
|
-
function
|
|
6911
|
+
function ts(e) {
|
|
6960
6912
|
this.enter(
|
|
6961
6913
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
6962
6914
|
e
|
|
6963
6915
|
);
|
|
6964
6916
|
}
|
|
6965
|
-
function
|
|
6917
|
+
function rs() {
|
|
6966
6918
|
this.buffer();
|
|
6967
6919
|
}
|
|
6968
|
-
function
|
|
6920
|
+
function is(e) {
|
|
6969
6921
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6970
|
-
n.label = t, n.identifier =
|
|
6922
|
+
n.label = t, n.identifier = se(
|
|
6971
6923
|
this.sliceSerialize(e)
|
|
6972
6924
|
).toLowerCase();
|
|
6973
6925
|
}
|
|
6974
|
-
function
|
|
6926
|
+
function ls(e) {
|
|
6975
6927
|
this.exit(e);
|
|
6976
6928
|
}
|
|
6977
|
-
function
|
|
6929
|
+
function os(e) {
|
|
6978
6930
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
6979
6931
|
}
|
|
6980
|
-
function
|
|
6932
|
+
function as() {
|
|
6981
6933
|
this.buffer();
|
|
6982
6934
|
}
|
|
6983
|
-
function
|
|
6935
|
+
function us(e) {
|
|
6984
6936
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
6985
|
-
n.label = t, n.identifier =
|
|
6937
|
+
n.label = t, n.identifier = se(
|
|
6986
6938
|
this.sliceSerialize(e)
|
|
6987
6939
|
).toLowerCase();
|
|
6988
6940
|
}
|
|
6989
|
-
function
|
|
6941
|
+
function ss(e) {
|
|
6990
6942
|
this.exit(e);
|
|
6991
6943
|
}
|
|
6992
|
-
function
|
|
6944
|
+
function Nr(e, t, n, r) {
|
|
6993
6945
|
const i = n.createTracker(r);
|
|
6994
6946
|
let o = i.move("[^");
|
|
6995
6947
|
const l = n.enter("footnoteReference"), a = n.enter("reference");
|
|
@@ -7001,10 +6953,10 @@ function Br(e, t, n, r) {
|
|
|
7001
6953
|
})
|
|
7002
6954
|
), a(), l(), o += i.move("]"), o;
|
|
7003
6955
|
}
|
|
7004
|
-
function
|
|
6956
|
+
function cs() {
|
|
7005
6957
|
return "[";
|
|
7006
6958
|
}
|
|
7007
|
-
function
|
|
6959
|
+
function fs(e, t, n, r) {
|
|
7008
6960
|
const i = n.createTracker(r);
|
|
7009
6961
|
let o = i.move("[^");
|
|
7010
6962
|
const l = n.enter("footnoteDefinition"), a = n.enter("label");
|
|
@@ -7017,13 +6969,13 @@ function hs(e, t, n, r) {
|
|
|
7017
6969
|
), a(), o += i.move(
|
|
7018
6970
|
"]:" + (e.children && e.children.length > 0 ? " " : "")
|
|
7019
6971
|
), i.shift(4), o += i.move(
|
|
7020
|
-
n.indentLines(n.containerFlow(e, i.current()),
|
|
6972
|
+
n.indentLines(n.containerFlow(e, i.current()), hs)
|
|
7021
6973
|
), l(), o;
|
|
7022
6974
|
}
|
|
7023
|
-
function
|
|
6975
|
+
function hs(e, t, n) {
|
|
7024
6976
|
return t === 0 ? e : (n ? "" : " ") + e;
|
|
7025
6977
|
}
|
|
7026
|
-
const
|
|
6978
|
+
const ps = [
|
|
7027
6979
|
"autolink",
|
|
7028
6980
|
"destinationLiteral",
|
|
7029
6981
|
"destinationRaw",
|
|
@@ -7031,33 +6983,33 @@ const ms = [
|
|
|
7031
6983
|
"titleQuote",
|
|
7032
6984
|
"titleApostrophe"
|
|
7033
6985
|
];
|
|
7034
|
-
|
|
7035
|
-
function
|
|
6986
|
+
Br.peek = ks;
|
|
6987
|
+
function ms() {
|
|
7036
6988
|
return {
|
|
7037
6989
|
canContainEols: ["delete"],
|
|
7038
|
-
enter: { strikethrough:
|
|
7039
|
-
exit: { strikethrough:
|
|
6990
|
+
enter: { strikethrough: ds },
|
|
6991
|
+
exit: { strikethrough: ys }
|
|
7040
6992
|
};
|
|
7041
6993
|
}
|
|
7042
|
-
function
|
|
6994
|
+
function gs() {
|
|
7043
6995
|
return {
|
|
7044
6996
|
unsafe: [
|
|
7045
6997
|
{
|
|
7046
6998
|
character: "~",
|
|
7047
6999
|
inConstruct: "phrasing",
|
|
7048
|
-
notInConstruct:
|
|
7000
|
+
notInConstruct: ps
|
|
7049
7001
|
}
|
|
7050
7002
|
],
|
|
7051
|
-
handlers: { delete:
|
|
7003
|
+
handlers: { delete: Br }
|
|
7052
7004
|
};
|
|
7053
7005
|
}
|
|
7054
|
-
function
|
|
7006
|
+
function ds(e) {
|
|
7055
7007
|
this.enter({ type: "delete", children: [] }, e);
|
|
7056
7008
|
}
|
|
7057
|
-
function
|
|
7009
|
+
function ys(e) {
|
|
7058
7010
|
this.exit(e);
|
|
7059
7011
|
}
|
|
7060
|
-
function
|
|
7012
|
+
function Br(e, t, n, r) {
|
|
7061
7013
|
const i = n.createTracker(r), o = n.enter("strikethrough");
|
|
7062
7014
|
let l = i.move("~~");
|
|
7063
7015
|
return l += n.containerPhrasing(e, {
|
|
@@ -7066,20 +7018,20 @@ function jr(e, t, n, r) {
|
|
|
7066
7018
|
after: "~"
|
|
7067
7019
|
}), l += i.move("~~"), o(), l;
|
|
7068
7020
|
}
|
|
7069
|
-
function
|
|
7021
|
+
function ks() {
|
|
7070
7022
|
return "~";
|
|
7071
7023
|
}
|
|
7072
|
-
function
|
|
7024
|
+
function xs(e) {
|
|
7073
7025
|
return e.length;
|
|
7074
7026
|
}
|
|
7075
|
-
function
|
|
7076
|
-
const n = t, r = (n.align || []).concat(), i = n.stringLength ||
|
|
7027
|
+
function bs(e, t) {
|
|
7028
|
+
const n = t, r = (n.align || []).concat(), i = n.stringLength || xs, o = [], l = [], a = [], u = [];
|
|
7077
7029
|
let s = 0, f = -1;
|
|
7078
7030
|
for (; ++f < e.length; ) {
|
|
7079
7031
|
const x = [], E = [];
|
|
7080
7032
|
let y = -1;
|
|
7081
7033
|
for (e[f].length > s && (s = e[f].length); ++y < e[f].length; ) {
|
|
7082
|
-
const S =
|
|
7034
|
+
const S = ws(e[f][y]);
|
|
7083
7035
|
if (n.alignDelimiters !== !1) {
|
|
7084
7036
|
const C = i(S);
|
|
7085
7037
|
E[y] = C, (u[y] === void 0 || C > u[y]) && (u[y] = C);
|
|
@@ -7091,9 +7043,9 @@ function ws(e, t) {
|
|
|
7091
7043
|
let c = -1;
|
|
7092
7044
|
if (typeof r == "object" && "length" in r)
|
|
7093
7045
|
for (; ++c < s; )
|
|
7094
|
-
o[c] =
|
|
7046
|
+
o[c] = Wt(r[c]);
|
|
7095
7047
|
else {
|
|
7096
|
-
const x =
|
|
7048
|
+
const x = Wt(r);
|
|
7097
7049
|
for (; ++c < s; )
|
|
7098
7050
|
o[c] = x;
|
|
7099
7051
|
}
|
|
@@ -7134,29 +7086,29 @@ function ws(e, t) {
|
|
|
7134
7086
|
return d.join(`
|
|
7135
7087
|
`);
|
|
7136
7088
|
}
|
|
7137
|
-
function
|
|
7089
|
+
function ws(e) {
|
|
7138
7090
|
return e == null ? "" : String(e);
|
|
7139
7091
|
}
|
|
7140
|
-
function
|
|
7092
|
+
function Wt(e) {
|
|
7141
7093
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7142
7094
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7143
7095
|
}
|
|
7144
|
-
function
|
|
7096
|
+
function Ss(e, t, n, r) {
|
|
7145
7097
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
7146
7098
|
o.move("> "), o.shift(2);
|
|
7147
7099
|
const l = n.indentLines(
|
|
7148
7100
|
n.containerFlow(e, o.current()),
|
|
7149
|
-
|
|
7101
|
+
Cs
|
|
7150
7102
|
);
|
|
7151
7103
|
return i(), l;
|
|
7152
7104
|
}
|
|
7153
|
-
function
|
|
7105
|
+
function Cs(e, t, n) {
|
|
7154
7106
|
return ">" + (n ? "" : " ") + e;
|
|
7155
7107
|
}
|
|
7156
|
-
function
|
|
7157
|
-
return
|
|
7108
|
+
function Es(e, t) {
|
|
7109
|
+
return Qt(e, t.inConstruct, !0) && !Qt(e, t.notInConstruct, !1);
|
|
7158
7110
|
}
|
|
7159
|
-
function
|
|
7111
|
+
function Qt(e, t, n) {
|
|
7160
7112
|
if (typeof t == "string" && (t = [t]), !t || t.length === 0)
|
|
7161
7113
|
return n;
|
|
7162
7114
|
let r = -1;
|
|
@@ -7165,16 +7117,16 @@ function Gt(e, t, n) {
|
|
|
7165
7117
|
return !0;
|
|
7166
7118
|
return !1;
|
|
7167
7119
|
}
|
|
7168
|
-
function
|
|
7120
|
+
function Yt(e, t, n, r) {
|
|
7169
7121
|
let i = -1;
|
|
7170
7122
|
for (; ++i < n.unsafe.length; )
|
|
7171
7123
|
if (n.unsafe[i].character === `
|
|
7172
|
-
` &&
|
|
7124
|
+
` && Es(n.stack, n.unsafe[i]))
|
|
7173
7125
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
7174
7126
|
return `\\
|
|
7175
7127
|
`;
|
|
7176
7128
|
}
|
|
7177
|
-
function
|
|
7129
|
+
function Is(e, t) {
|
|
7178
7130
|
const n = String(e);
|
|
7179
7131
|
let r = n.indexOf(t), i = r, o = 0, l = 0;
|
|
7180
7132
|
if (typeof t != "string")
|
|
@@ -7183,13 +7135,13 @@ function As(e, t) {
|
|
|
7183
7135
|
r === i ? ++o > l && (l = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
7184
7136
|
return l;
|
|
7185
7137
|
}
|
|
7186
|
-
function
|
|
7138
|
+
function As(e, t) {
|
|
7187
7139
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
7188
7140
|
!e.lang && // And there’s a non-whitespace character…
|
|
7189
7141
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
7190
7142
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
7191
7143
|
}
|
|
7192
|
-
function
|
|
7144
|
+
function Ts(e) {
|
|
7193
7145
|
const t = e.options.fence || "`";
|
|
7194
7146
|
if (t !== "`" && t !== "~")
|
|
7195
7147
|
throw new Error(
|
|
@@ -7197,13 +7149,13 @@ function Ps(e) {
|
|
|
7197
7149
|
);
|
|
7198
7150
|
return t;
|
|
7199
7151
|
}
|
|
7200
|
-
function
|
|
7201
|
-
const i =
|
|
7202
|
-
if (
|
|
7152
|
+
function Ps(e, t, n, r) {
|
|
7153
|
+
const i = Ts(n), o = e.value || "", l = i === "`" ? "GraveAccent" : "Tilde";
|
|
7154
|
+
if (As(e, n)) {
|
|
7203
7155
|
const c = n.enter("codeIndented"), p = n.indentLines(o, Ls);
|
|
7204
7156
|
return c(), p;
|
|
7205
7157
|
}
|
|
7206
|
-
const a = n.createTracker(r), u = i.repeat(Math.max(
|
|
7158
|
+
const a = n.createTracker(r), u = i.repeat(Math.max(Is(o, i) + 1, 3)), s = n.enter("codeFenced");
|
|
7207
7159
|
let f = a.move(u);
|
|
7208
7160
|
if (e.lang) {
|
|
7209
7161
|
const c = n.enter(`codeFencedLang${l}`);
|
|
@@ -7235,7 +7187,7 @@ function vs(e, t, n, r) {
|
|
|
7235
7187
|
function Ls(e, t, n) {
|
|
7236
7188
|
return (n ? "" : " ") + e;
|
|
7237
7189
|
}
|
|
7238
|
-
function
|
|
7190
|
+
function et(e) {
|
|
7239
7191
|
const t = e.options.quote || '"';
|
|
7240
7192
|
if (t !== '"' && t !== "'")
|
|
7241
7193
|
throw new Error(
|
|
@@ -7243,8 +7195,8 @@ function tt(e) {
|
|
|
7243
7195
|
);
|
|
7244
7196
|
return t;
|
|
7245
7197
|
}
|
|
7246
|
-
function
|
|
7247
|
-
const i =
|
|
7198
|
+
function vs(e, t, n, r) {
|
|
7199
|
+
const i = et(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
|
|
7248
7200
|
let a = n.enter("label");
|
|
7249
7201
|
const u = n.createTracker(r);
|
|
7250
7202
|
let s = u.move("[");
|
|
@@ -7273,7 +7225,7 @@ function zs(e, t, n, r) {
|
|
|
7273
7225
|
})
|
|
7274
7226
|
), s += u.move(i), a()), l(), s;
|
|
7275
7227
|
}
|
|
7276
|
-
function
|
|
7228
|
+
function zs(e) {
|
|
7277
7229
|
const t = e.options.emphasis || "*";
|
|
7278
7230
|
if (t !== "*" && t !== "_")
|
|
7279
7231
|
throw new Error(
|
|
@@ -7284,7 +7236,7 @@ function Ds(e) {
|
|
|
7284
7236
|
function qe(e) {
|
|
7285
7237
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
7286
7238
|
}
|
|
7287
|
-
function
|
|
7239
|
+
function ln(e, t, n) {
|
|
7288
7240
|
const r = De(e), i = De(t);
|
|
7289
7241
|
return r === void 0 ? i === void 0 ? (
|
|
7290
7242
|
// Letter inside:
|
|
@@ -7317,9 +7269,9 @@ function on(e, t, n) {
|
|
|
7317
7269
|
{ inside: !1, outside: !1 }
|
|
7318
7270
|
);
|
|
7319
7271
|
}
|
|
7320
|
-
|
|
7321
|
-
function
|
|
7322
|
-
const i =
|
|
7272
|
+
jr.peek = Ds;
|
|
7273
|
+
function jr(e, t, n, r) {
|
|
7274
|
+
const i = zs(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
|
|
7323
7275
|
let u = l.move(
|
|
7324
7276
|
n.containerPhrasing(e, {
|
|
7325
7277
|
after: i,
|
|
@@ -7327,13 +7279,13 @@ function Hr(e, t, n, r) {
|
|
|
7327
7279
|
...l.current()
|
|
7328
7280
|
})
|
|
7329
7281
|
);
|
|
7330
|
-
const s = u.charCodeAt(0), f =
|
|
7282
|
+
const s = u.charCodeAt(0), f = ln(
|
|
7331
7283
|
r.before.charCodeAt(r.before.length - 1),
|
|
7332
7284
|
s,
|
|
7333
7285
|
i
|
|
7334
7286
|
);
|
|
7335
7287
|
f.inside && (u = qe(s) + u.slice(1));
|
|
7336
|
-
const c = u.charCodeAt(u.length - 1), p =
|
|
7288
|
+
const c = u.charCodeAt(u.length - 1), p = ln(r.after.charCodeAt(0), c, i);
|
|
7337
7289
|
p.inside && (u = u.slice(0, -1) + qe(c));
|
|
7338
7290
|
const h = l.move(i);
|
|
7339
7291
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
@@ -7341,19 +7293,19 @@ function Hr(e, t, n, r) {
|
|
|
7341
7293
|
before: f.outside
|
|
7342
7294
|
}, a + u + h;
|
|
7343
7295
|
}
|
|
7344
|
-
function
|
|
7296
|
+
function Ds(e, t, n) {
|
|
7345
7297
|
return n.options.emphasis || "*";
|
|
7346
7298
|
}
|
|
7347
|
-
function
|
|
7299
|
+
function Fs(e, t) {
|
|
7348
7300
|
let n = !1;
|
|
7349
|
-
return
|
|
7301
|
+
return Jn(e, function(r) {
|
|
7350
7302
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7351
7303
|
return n = !0, On;
|
|
7352
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
7304
|
+
}), !!((!e.depth || e.depth < 3) && Vn(e) && (t.options.setext || n));
|
|
7353
7305
|
}
|
|
7354
|
-
function
|
|
7306
|
+
function Os(e, t, n, r) {
|
|
7355
7307
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
7356
|
-
if (
|
|
7308
|
+
if (Fs(e, n)) {
|
|
7357
7309
|
const f = n.enter("headingSetext"), c = n.enter("phrasing"), p = n.containerPhrasing(e, {
|
|
7358
7310
|
...o.current(),
|
|
7359
7311
|
before: `
|
|
@@ -7380,16 +7332,16 @@ function Rs(e, t, n, r) {
|
|
|
7380
7332
|
});
|
|
7381
7333
|
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;
|
|
7382
7334
|
}
|
|
7383
|
-
|
|
7384
|
-
function
|
|
7335
|
+
Hr.peek = Rs;
|
|
7336
|
+
function Hr(e) {
|
|
7385
7337
|
return e.value || "";
|
|
7386
7338
|
}
|
|
7387
|
-
function
|
|
7339
|
+
function Rs() {
|
|
7388
7340
|
return "<";
|
|
7389
7341
|
}
|
|
7390
|
-
|
|
7391
|
-
function
|
|
7392
|
-
const i =
|
|
7342
|
+
Ur.peek = _s;
|
|
7343
|
+
function Ur(e, t, n, r) {
|
|
7344
|
+
const i = et(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
|
|
7393
7345
|
let a = n.enter("label");
|
|
7394
7346
|
const u = n.createTracker(r);
|
|
7395
7347
|
let s = u.move("![");
|
|
@@ -7413,11 +7365,11 @@ function $r(e, t, n, r) {
|
|
|
7413
7365
|
})
|
|
7414
7366
|
), s += u.move(i), a()), s += u.move(")"), l(), s;
|
|
7415
7367
|
}
|
|
7416
|
-
function
|
|
7368
|
+
function _s() {
|
|
7417
7369
|
return "!";
|
|
7418
7370
|
}
|
|
7419
|
-
|
|
7420
|
-
function
|
|
7371
|
+
$r.peek = Ms;
|
|
7372
|
+
function $r(e, t, n, r) {
|
|
7421
7373
|
const i = e.referenceType, o = n.enter("imageReference");
|
|
7422
7374
|
let l = n.enter("label");
|
|
7423
7375
|
const a = n.createTracker(r);
|
|
@@ -7437,11 +7389,11 @@ function qr(e, t, n, r) {
|
|
|
7437
7389
|
});
|
|
7438
7390
|
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;
|
|
7439
7391
|
}
|
|
7440
|
-
function
|
|
7392
|
+
function Ms() {
|
|
7441
7393
|
return "!";
|
|
7442
7394
|
}
|
|
7443
|
-
|
|
7444
|
-
function
|
|
7395
|
+
qr.peek = Ns;
|
|
7396
|
+
function qr(e, t, n) {
|
|
7445
7397
|
let r = e.value || "", i = "`", o = -1;
|
|
7446
7398
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
7447
7399
|
i += "`";
|
|
@@ -7456,11 +7408,11 @@ function Vr(e, t, n) {
|
|
|
7456
7408
|
}
|
|
7457
7409
|
return i + r + i;
|
|
7458
7410
|
}
|
|
7459
|
-
function
|
|
7411
|
+
function Ns() {
|
|
7460
7412
|
return "`";
|
|
7461
7413
|
}
|
|
7462
|
-
function
|
|
7463
|
-
const n =
|
|
7414
|
+
function Vr(e, t) {
|
|
7415
|
+
const n = Vn(e);
|
|
7464
7416
|
return !!(!t.options.resourceLink && // If there’s a url…
|
|
7465
7417
|
e.url && // And there’s a no title…
|
|
7466
7418
|
!e.title && // And the content of `node` is a single text node…
|
|
@@ -7470,11 +7422,11 @@ function Wr(e, t) {
|
|
|
7470
7422
|
// references don’t work), space, or angle brackets…
|
|
7471
7423
|
!/[\0- <>\u007F]/.test(e.url));
|
|
7472
7424
|
}
|
|
7473
|
-
|
|
7474
|
-
function
|
|
7475
|
-
const i =
|
|
7425
|
+
Wr.peek = Bs;
|
|
7426
|
+
function Wr(e, t, n, r) {
|
|
7427
|
+
const i = et(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
|
|
7476
7428
|
let a, u;
|
|
7477
|
-
if (
|
|
7429
|
+
if (Vr(e, n)) {
|
|
7478
7430
|
const f = n.stack;
|
|
7479
7431
|
n.stack = [], a = n.enter("autolink");
|
|
7480
7432
|
let c = l.move("<");
|
|
@@ -7512,11 +7464,11 @@ function Qr(e, t, n, r) {
|
|
|
7512
7464
|
})
|
|
7513
7465
|
), s += l.move(i), u()), s += l.move(")"), a(), s;
|
|
7514
7466
|
}
|
|
7515
|
-
function
|
|
7516
|
-
return
|
|
7467
|
+
function Bs(e, t, n) {
|
|
7468
|
+
return Vr(e, n) ? "<" : "[";
|
|
7517
7469
|
}
|
|
7518
|
-
|
|
7519
|
-
function
|
|
7470
|
+
Qr.peek = js;
|
|
7471
|
+
function Qr(e, t, n, r) {
|
|
7520
7472
|
const i = e.referenceType, o = n.enter("linkReference");
|
|
7521
7473
|
let l = n.enter("label");
|
|
7522
7474
|
const a = n.createTracker(r);
|
|
@@ -7536,10 +7488,10 @@ function Yr(e, t, n, r) {
|
|
|
7536
7488
|
});
|
|
7537
7489
|
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;
|
|
7538
7490
|
}
|
|
7539
|
-
function
|
|
7491
|
+
function js() {
|
|
7540
7492
|
return "[";
|
|
7541
7493
|
}
|
|
7542
|
-
function
|
|
7494
|
+
function nt(e) {
|
|
7543
7495
|
const t = e.options.bullet || "*";
|
|
7544
7496
|
if (t !== "*" && t !== "+" && t !== "-")
|
|
7545
7497
|
throw new Error(
|
|
@@ -7547,8 +7499,8 @@ function rt(e) {
|
|
|
7547
7499
|
);
|
|
7548
7500
|
return t;
|
|
7549
7501
|
}
|
|
7550
|
-
function
|
|
7551
|
-
const t =
|
|
7502
|
+
function Hs(e) {
|
|
7503
|
+
const t = nt(e), n = e.options.bulletOther;
|
|
7552
7504
|
if (!n)
|
|
7553
7505
|
return t === "*" ? "-" : "*";
|
|
7554
7506
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
@@ -7561,7 +7513,7 @@ function Us(e) {
|
|
|
7561
7513
|
);
|
|
7562
7514
|
return n;
|
|
7563
7515
|
}
|
|
7564
|
-
function
|
|
7516
|
+
function Us(e) {
|
|
7565
7517
|
const t = e.options.bulletOrdered || ".";
|
|
7566
7518
|
if (t !== "." && t !== ")")
|
|
7567
7519
|
throw new Error(
|
|
@@ -7569,7 +7521,7 @@ function $s(e) {
|
|
|
7569
7521
|
);
|
|
7570
7522
|
return t;
|
|
7571
7523
|
}
|
|
7572
|
-
function
|
|
7524
|
+
function Yr(e) {
|
|
7573
7525
|
const t = e.options.rule || "*";
|
|
7574
7526
|
if (t !== "*" && t !== "-" && t !== "_")
|
|
7575
7527
|
throw new Error(
|
|
@@ -7577,10 +7529,10 @@ function Gr(e) {
|
|
|
7577
7529
|
);
|
|
7578
7530
|
return t;
|
|
7579
7531
|
}
|
|
7580
|
-
function
|
|
7532
|
+
function $s(e, t, n, r) {
|
|
7581
7533
|
const i = n.enter("list"), o = n.bulletCurrent;
|
|
7582
|
-
let l = e.ordered ?
|
|
7583
|
-
const a = e.ordered ? l === "." ? ")" : "." :
|
|
7534
|
+
let l = e.ordered ? Us(n) : nt(n);
|
|
7535
|
+
const a = e.ordered ? l === "." ? ")" : "." : Hs(n);
|
|
7584
7536
|
let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
|
|
7585
7537
|
if (!e.ordered) {
|
|
7586
7538
|
const f = e.children ? e.children[0] : void 0;
|
|
@@ -7589,7 +7541,7 @@ function qs(e, t, n, r) {
|
|
|
7589
7541
|
(l === "*" || l === "-") && // Empty first list item:
|
|
7590
7542
|
f && (!f.children || !f.children[0]) && // Directly in two other list items:
|
|
7591
7543
|
n.stack[n.stack.length - 1] === "list" && n.stack[n.stack.length - 2] === "listItem" && n.stack[n.stack.length - 3] === "list" && n.stack[n.stack.length - 4] === "listItem" && // That are each the first child.
|
|
7592
|
-
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (u = !0),
|
|
7544
|
+
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (u = !0), Yr(n) === l && f
|
|
7593
7545
|
) {
|
|
7594
7546
|
let c = -1;
|
|
7595
7547
|
for (; ++c < e.children.length; ) {
|
|
@@ -7605,7 +7557,7 @@ function qs(e, t, n, r) {
|
|
|
7605
7557
|
const s = n.containerFlow(e, r);
|
|
7606
7558
|
return n.bulletLastUsed = l, n.bulletCurrent = o, i(), s;
|
|
7607
7559
|
}
|
|
7608
|
-
function
|
|
7560
|
+
function qs(e) {
|
|
7609
7561
|
const t = e.options.listItemIndent || "one";
|
|
7610
7562
|
if (t !== "tab" && t !== "one" && t !== "mixed")
|
|
7611
7563
|
throw new Error(
|
|
@@ -7613,9 +7565,9 @@ function Vs(e) {
|
|
|
7613
7565
|
);
|
|
7614
7566
|
return t;
|
|
7615
7567
|
}
|
|
7616
|
-
function
|
|
7617
|
-
const i =
|
|
7618
|
-
let o = n.bulletCurrent ||
|
|
7568
|
+
function Vs(e, t, n, r) {
|
|
7569
|
+
const i = qs(n);
|
|
7570
|
+
let o = n.bulletCurrent || nt(n);
|
|
7619
7571
|
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);
|
|
7620
7572
|
let l = o.length + 1;
|
|
7621
7573
|
(i === "tab" || i === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (l = Math.ceil(l / 4) * 4);
|
|
@@ -7630,13 +7582,13 @@ function Ws(e, t, n, r) {
|
|
|
7630
7582
|
return p ? (h ? "" : " ".repeat(l)) + c : (h ? o : o + " ".repeat(l - o.length)) + c;
|
|
7631
7583
|
}
|
|
7632
7584
|
}
|
|
7633
|
-
function
|
|
7585
|
+
function Ws(e, t, n, r) {
|
|
7634
7586
|
const i = n.enter("paragraph"), o = n.enter("phrasing"), l = n.containerPhrasing(e, r);
|
|
7635
7587
|
return o(), i(), l;
|
|
7636
7588
|
}
|
|
7637
|
-
const
|
|
7589
|
+
const Qs = (
|
|
7638
7590
|
/** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
|
|
7639
|
-
|
|
7591
|
+
sn([
|
|
7640
7592
|
"break",
|
|
7641
7593
|
"delete",
|
|
7642
7594
|
"emphasis",
|
|
@@ -7660,12 +7612,12 @@ const Ys = (
|
|
|
7660
7612
|
"textDirective"
|
|
7661
7613
|
])
|
|
7662
7614
|
);
|
|
7663
|
-
function
|
|
7615
|
+
function Ys(e, t, n, r) {
|
|
7664
7616
|
return (e.children.some(function(l) {
|
|
7665
|
-
return
|
|
7617
|
+
return Qs(l);
|
|
7666
7618
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
7667
7619
|
}
|
|
7668
|
-
function
|
|
7620
|
+
function Gs(e) {
|
|
7669
7621
|
const t = e.options.strong || "*";
|
|
7670
7622
|
if (t !== "*" && t !== "_")
|
|
7671
7623
|
throw new Error(
|
|
@@ -7673,9 +7625,9 @@ function Xs(e) {
|
|
|
7673
7625
|
);
|
|
7674
7626
|
return t;
|
|
7675
7627
|
}
|
|
7676
|
-
|
|
7677
|
-
function
|
|
7678
|
-
const i =
|
|
7628
|
+
Gr.peek = Xs;
|
|
7629
|
+
function Gr(e, t, n, r) {
|
|
7630
|
+
const i = Gs(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
|
|
7679
7631
|
let u = l.move(
|
|
7680
7632
|
n.containerPhrasing(e, {
|
|
7681
7633
|
after: i,
|
|
@@ -7683,13 +7635,13 @@ function Xr(e, t, n, r) {
|
|
|
7683
7635
|
...l.current()
|
|
7684
7636
|
})
|
|
7685
7637
|
);
|
|
7686
|
-
const s = u.charCodeAt(0), f =
|
|
7638
|
+
const s = u.charCodeAt(0), f = ln(
|
|
7687
7639
|
r.before.charCodeAt(r.before.length - 1),
|
|
7688
7640
|
s,
|
|
7689
7641
|
i
|
|
7690
7642
|
);
|
|
7691
7643
|
f.inside && (u = qe(s) + u.slice(1));
|
|
7692
|
-
const c = u.charCodeAt(u.length - 1), p =
|
|
7644
|
+
const c = u.charCodeAt(u.length - 1), p = ln(r.after.charCodeAt(0), c, i);
|
|
7693
7645
|
p.inside && (u = u.slice(0, -1) + qe(c));
|
|
7694
7646
|
const h = l.move(i + i);
|
|
7695
7647
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
@@ -7697,13 +7649,13 @@ function Xr(e, t, n, r) {
|
|
|
7697
7649
|
before: f.outside
|
|
7698
7650
|
}, a + u + h;
|
|
7699
7651
|
}
|
|
7700
|
-
function
|
|
7652
|
+
function Xs(e, t, n) {
|
|
7701
7653
|
return n.options.strong || "*";
|
|
7702
7654
|
}
|
|
7703
|
-
function
|
|
7655
|
+
function Ks(e, t, n, r) {
|
|
7704
7656
|
return n.safe(e.value, r);
|
|
7705
7657
|
}
|
|
7706
|
-
function
|
|
7658
|
+
function Js(e) {
|
|
7707
7659
|
const t = e.options.ruleRepetition || 3;
|
|
7708
7660
|
if (t < 3)
|
|
7709
7661
|
throw new Error(
|
|
@@ -7711,50 +7663,50 @@ function Zs(e) {
|
|
|
7711
7663
|
);
|
|
7712
7664
|
return t;
|
|
7713
7665
|
}
|
|
7714
|
-
function
|
|
7715
|
-
const r = (
|
|
7666
|
+
function Zs(e, t, n) {
|
|
7667
|
+
const r = (Yr(n) + (n.options.ruleSpaces ? " " : "")).repeat(Js(n));
|
|
7716
7668
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7717
7669
|
}
|
|
7718
|
-
const
|
|
7719
|
-
blockquote:
|
|
7720
|
-
break:
|
|
7721
|
-
code:
|
|
7722
|
-
definition:
|
|
7723
|
-
emphasis:
|
|
7724
|
-
hardBreak:
|
|
7725
|
-
heading:
|
|
7726
|
-
html:
|
|
7727
|
-
image:
|
|
7728
|
-
imageReference:
|
|
7729
|
-
inlineCode:
|
|
7730
|
-
link:
|
|
7731
|
-
linkReference:
|
|
7732
|
-
list:
|
|
7733
|
-
listItem:
|
|
7734
|
-
paragraph:
|
|
7735
|
-
root:
|
|
7736
|
-
strong:
|
|
7737
|
-
text:
|
|
7738
|
-
thematicBreak:
|
|
7670
|
+
const Xr = {
|
|
7671
|
+
blockquote: Ss,
|
|
7672
|
+
break: Yt,
|
|
7673
|
+
code: Ps,
|
|
7674
|
+
definition: vs,
|
|
7675
|
+
emphasis: jr,
|
|
7676
|
+
hardBreak: Yt,
|
|
7677
|
+
heading: Os,
|
|
7678
|
+
html: Hr,
|
|
7679
|
+
image: Ur,
|
|
7680
|
+
imageReference: $r,
|
|
7681
|
+
inlineCode: qr,
|
|
7682
|
+
link: Wr,
|
|
7683
|
+
linkReference: Qr,
|
|
7684
|
+
list: $s,
|
|
7685
|
+
listItem: Vs,
|
|
7686
|
+
paragraph: Ws,
|
|
7687
|
+
root: Ys,
|
|
7688
|
+
strong: Gr,
|
|
7689
|
+
text: Ks,
|
|
7690
|
+
thematicBreak: Zs
|
|
7739
7691
|
};
|
|
7740
|
-
function
|
|
7692
|
+
function ec() {
|
|
7741
7693
|
return {
|
|
7742
7694
|
enter: {
|
|
7743
|
-
table:
|
|
7744
|
-
tableData:
|
|
7745
|
-
tableHeader:
|
|
7746
|
-
tableRow:
|
|
7695
|
+
table: nc,
|
|
7696
|
+
tableData: Gt,
|
|
7697
|
+
tableHeader: Gt,
|
|
7698
|
+
tableRow: rc
|
|
7747
7699
|
},
|
|
7748
7700
|
exit: {
|
|
7749
|
-
codeText:
|
|
7750
|
-
table:
|
|
7751
|
-
tableData:
|
|
7752
|
-
tableHeader:
|
|
7753
|
-
tableRow:
|
|
7701
|
+
codeText: ic,
|
|
7702
|
+
table: tc,
|
|
7703
|
+
tableData: Tn,
|
|
7704
|
+
tableHeader: Tn,
|
|
7705
|
+
tableRow: Tn
|
|
7754
7706
|
}
|
|
7755
7707
|
};
|
|
7756
7708
|
}
|
|
7757
|
-
function
|
|
7709
|
+
function nc(e) {
|
|
7758
7710
|
const t = e._align;
|
|
7759
7711
|
this.enter(
|
|
7760
7712
|
{
|
|
@@ -7767,28 +7719,28 @@ function tc(e) {
|
|
|
7767
7719
|
e
|
|
7768
7720
|
), this.data.inTable = !0;
|
|
7769
7721
|
}
|
|
7770
|
-
function
|
|
7722
|
+
function tc(e) {
|
|
7771
7723
|
this.exit(e), this.data.inTable = void 0;
|
|
7772
7724
|
}
|
|
7773
|
-
function
|
|
7725
|
+
function rc(e) {
|
|
7774
7726
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
7775
7727
|
}
|
|
7776
|
-
function
|
|
7728
|
+
function Tn(e) {
|
|
7777
7729
|
this.exit(e);
|
|
7778
7730
|
}
|
|
7779
|
-
function
|
|
7731
|
+
function Gt(e) {
|
|
7780
7732
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
7781
7733
|
}
|
|
7782
|
-
function
|
|
7734
|
+
function ic(e) {
|
|
7783
7735
|
let t = this.resume();
|
|
7784
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
7736
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, lc));
|
|
7785
7737
|
const n = this.stack[this.stack.length - 1];
|
|
7786
7738
|
n.value = t, this.exit(e);
|
|
7787
7739
|
}
|
|
7788
|
-
function
|
|
7740
|
+
function lc(e, t) {
|
|
7789
7741
|
return t === "|" ? t : e;
|
|
7790
7742
|
}
|
|
7791
|
-
function
|
|
7743
|
+
function oc(e) {
|
|
7792
7744
|
const t = e, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, o = n ? " " : "|";
|
|
7793
7745
|
return {
|
|
7794
7746
|
unsafe: [
|
|
@@ -7834,7 +7786,7 @@ function ac(e) {
|
|
|
7834
7786
|
return S(), y(), C;
|
|
7835
7787
|
}
|
|
7836
7788
|
function s(h, d) {
|
|
7837
|
-
return
|
|
7789
|
+
return bs(h, {
|
|
7838
7790
|
align: d,
|
|
7839
7791
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
7840
7792
|
alignDelimiters: r,
|
|
@@ -7861,30 +7813,30 @@ function ac(e) {
|
|
|
7861
7813
|
return C(), S;
|
|
7862
7814
|
}
|
|
7863
7815
|
function p(h, d, x) {
|
|
7864
|
-
let E =
|
|
7816
|
+
let E = Xr.inlineCode(h, d, x);
|
|
7865
7817
|
return x.stack.includes("tableCell") && (E = E.replace(/\|/g, "\\$&")), E;
|
|
7866
7818
|
}
|
|
7867
7819
|
}
|
|
7868
|
-
function
|
|
7820
|
+
function ac() {
|
|
7869
7821
|
return {
|
|
7870
7822
|
exit: {
|
|
7871
|
-
taskListCheckValueChecked:
|
|
7872
|
-
taskListCheckValueUnchecked:
|
|
7873
|
-
paragraph:
|
|
7823
|
+
taskListCheckValueChecked: Xt,
|
|
7824
|
+
taskListCheckValueUnchecked: Xt,
|
|
7825
|
+
paragraph: sc
|
|
7874
7826
|
}
|
|
7875
7827
|
};
|
|
7876
7828
|
}
|
|
7877
|
-
function
|
|
7829
|
+
function uc() {
|
|
7878
7830
|
return {
|
|
7879
7831
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
7880
|
-
handlers: { listItem:
|
|
7832
|
+
handlers: { listItem: cc }
|
|
7881
7833
|
};
|
|
7882
7834
|
}
|
|
7883
|
-
function
|
|
7835
|
+
function Xt(e) {
|
|
7884
7836
|
const t = this.stack[this.stack.length - 2];
|
|
7885
7837
|
t.checked = e.type === "taskListCheckValueChecked";
|
|
7886
7838
|
}
|
|
7887
|
-
function
|
|
7839
|
+
function sc(e) {
|
|
7888
7840
|
const t = this.stack[this.stack.length - 2];
|
|
7889
7841
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
7890
7842
|
const n = this.stack[this.stack.length - 1], r = n.children[0];
|
|
@@ -7903,10 +7855,10 @@ function cc(e) {
|
|
|
7903
7855
|
}
|
|
7904
7856
|
this.exit(e);
|
|
7905
7857
|
}
|
|
7906
|
-
function
|
|
7858
|
+
function cc(e, t, n, r) {
|
|
7907
7859
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
7908
7860
|
o && a.move(l);
|
|
7909
|
-
let u =
|
|
7861
|
+
let u = Xr.listItem(e, t, n, {
|
|
7910
7862
|
...r,
|
|
7911
7863
|
...a.current()
|
|
7912
7864
|
});
|
|
@@ -7915,27 +7867,30 @@ function fc(e, t, n, r) {
|
|
|
7915
7867
|
return f + l;
|
|
7916
7868
|
}
|
|
7917
7869
|
}
|
|
7918
|
-
function
|
|
7870
|
+
function fc() {
|
|
7919
7871
|
return [
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7872
|
+
Uu(),
|
|
7873
|
+
es(),
|
|
7874
|
+
ms(),
|
|
7875
|
+
ec(),
|
|
7876
|
+
ac()
|
|
7925
7877
|
];
|
|
7926
7878
|
}
|
|
7927
|
-
function
|
|
7879
|
+
function hc(e) {
|
|
7928
7880
|
return {
|
|
7929
7881
|
extensions: [
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7882
|
+
$u(),
|
|
7883
|
+
ns(),
|
|
7884
|
+
gs(),
|
|
7885
|
+
oc(e),
|
|
7886
|
+
uc()
|
|
7935
7887
|
]
|
|
7936
7888
|
};
|
|
7937
7889
|
}
|
|
7938
|
-
const
|
|
7890
|
+
const pc = {
|
|
7891
|
+
tokenize: xc,
|
|
7892
|
+
partial: !0
|
|
7893
|
+
}, Kr = {
|
|
7939
7894
|
tokenize: bc,
|
|
7940
7895
|
partial: !0
|
|
7941
7896
|
}, Jr = {
|
|
@@ -7944,53 +7899,50 @@ const mc = {
|
|
|
7944
7899
|
}, Zr = {
|
|
7945
7900
|
tokenize: Sc,
|
|
7946
7901
|
partial: !0
|
|
7947
|
-
},
|
|
7902
|
+
}, mc = {
|
|
7948
7903
|
tokenize: Cc,
|
|
7949
7904
|
partial: !0
|
|
7950
|
-
},
|
|
7951
|
-
tokenize: Ec,
|
|
7952
|
-
partial: !0
|
|
7953
|
-
}, ni = {
|
|
7905
|
+
}, ei = {
|
|
7954
7906
|
name: "wwwAutolink",
|
|
7907
|
+
tokenize: yc,
|
|
7908
|
+
previous: ti
|
|
7909
|
+
}, ni = {
|
|
7910
|
+
name: "protocolAutolink",
|
|
7955
7911
|
tokenize: kc,
|
|
7956
7912
|
previous: ri
|
|
7957
|
-
},
|
|
7958
|
-
name: "protocolAutolink",
|
|
7959
|
-
tokenize: xc,
|
|
7960
|
-
previous: ii
|
|
7961
|
-
}, ye = {
|
|
7913
|
+
}, de = {
|
|
7962
7914
|
name: "emailAutolink",
|
|
7963
|
-
tokenize:
|
|
7964
|
-
previous:
|
|
7965
|
-
},
|
|
7966
|
-
function
|
|
7915
|
+
tokenize: dc,
|
|
7916
|
+
previous: ii
|
|
7917
|
+
}, fe = {};
|
|
7918
|
+
function gc() {
|
|
7967
7919
|
return {
|
|
7968
|
-
text:
|
|
7920
|
+
text: fe
|
|
7969
7921
|
};
|
|
7970
7922
|
}
|
|
7971
7923
|
let Ce = 48;
|
|
7972
7924
|
for (; Ce < 123; )
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
function
|
|
7925
|
+
fe[Ce] = de, Ce++, Ce === 58 ? Ce = 65 : Ce === 91 && (Ce = 97);
|
|
7926
|
+
fe[43] = de;
|
|
7927
|
+
fe[45] = de;
|
|
7928
|
+
fe[46] = de;
|
|
7929
|
+
fe[95] = de;
|
|
7930
|
+
fe[72] = [de, ni];
|
|
7931
|
+
fe[104] = [de, ni];
|
|
7932
|
+
fe[87] = [de, ei];
|
|
7933
|
+
fe[119] = [de, ei];
|
|
7934
|
+
function dc(e, t, n) {
|
|
7983
7935
|
const r = this;
|
|
7984
7936
|
let i, o;
|
|
7985
7937
|
return l;
|
|
7986
7938
|
function l(c) {
|
|
7987
|
-
return !
|
|
7939
|
+
return !Nn(c) || !ii.call(r, r.previous) || tt(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
|
|
7988
7940
|
}
|
|
7989
7941
|
function a(c) {
|
|
7990
|
-
return
|
|
7942
|
+
return Nn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7991
7943
|
}
|
|
7992
7944
|
function u(c) {
|
|
7993
|
-
return c === 46 ? e.check(
|
|
7945
|
+
return c === 46 ? e.check(mc, f, s)(c) : c === 45 || c === 95 || X(c) ? (o = !0, e.consume(c), u) : f(c);
|
|
7994
7946
|
}
|
|
7995
7947
|
function s(c) {
|
|
7996
7948
|
return e.consume(c), i = !0, u;
|
|
@@ -7999,22 +7951,22 @@ function yc(e, t, n) {
|
|
|
7999
7951
|
return o && i && J(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
|
|
8000
7952
|
}
|
|
8001
7953
|
}
|
|
8002
|
-
function
|
|
7954
|
+
function yc(e, t, n) {
|
|
8003
7955
|
const r = this;
|
|
8004
7956
|
return i;
|
|
8005
7957
|
function i(l) {
|
|
8006
|
-
return l !== 87 && l !== 119 || !
|
|
7958
|
+
return l !== 87 && l !== 119 || !ti.call(r, r.previous) || tt(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(pc, e.attempt(Kr, e.attempt(Jr, o), n), n)(l));
|
|
8007
7959
|
}
|
|
8008
7960
|
function o(l) {
|
|
8009
7961
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
|
8010
7962
|
}
|
|
8011
7963
|
}
|
|
8012
|
-
function
|
|
7964
|
+
function kc(e, t, n) {
|
|
8013
7965
|
const r = this;
|
|
8014
7966
|
let i = "", o = !1;
|
|
8015
7967
|
return l;
|
|
8016
7968
|
function l(c) {
|
|
8017
|
-
return (c === 72 || c === 104) &&
|
|
7969
|
+
return (c === 72 || c === 104) && ri.call(r, r.previous) && !tt(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : n(c);
|
|
8018
7970
|
}
|
|
8019
7971
|
function a(c) {
|
|
8020
7972
|
if (J(c) && i.length < 5)
|
|
@@ -8030,13 +7982,13 @@ function xc(e, t, n) {
|
|
|
8030
7982
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
|
|
8031
7983
|
}
|
|
8032
7984
|
function s(c) {
|
|
8033
|
-
return c === null ||
|
|
7985
|
+
return c === null || en(c) || q(c) || Ee(c) || on(c) ? n(c) : e.attempt(Kr, e.attempt(Jr, f), n)(c);
|
|
8034
7986
|
}
|
|
8035
7987
|
function f(c) {
|
|
8036
7988
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
8037
7989
|
}
|
|
8038
7990
|
}
|
|
8039
|
-
function
|
|
7991
|
+
function xc(e, t, n) {
|
|
8040
7992
|
let r = 0;
|
|
8041
7993
|
return i;
|
|
8042
7994
|
function i(l) {
|
|
@@ -8046,11 +7998,11 @@ function bc(e, t, n) {
|
|
|
8046
7998
|
return l === null ? n(l) : t(l);
|
|
8047
7999
|
}
|
|
8048
8000
|
}
|
|
8049
|
-
function
|
|
8001
|
+
function bc(e, t, n) {
|
|
8050
8002
|
let r, i, o;
|
|
8051
8003
|
return l;
|
|
8052
8004
|
function l(s) {
|
|
8053
|
-
return s === 46 || s === 95 ? e.check(
|
|
8005
|
+
return s === 46 || s === 95 ? e.check(Zr, u, a)(s) : s === null || q(s) || Ee(s) || s !== 45 && on(s) ? u(s) : (o = !0, e.consume(s), l);
|
|
8054
8006
|
}
|
|
8055
8007
|
function a(s) {
|
|
8056
8008
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
|
@@ -8059,17 +8011,17 @@ function wc(e, t, n) {
|
|
|
8059
8011
|
return i || r || !o ? n(s) : t(s);
|
|
8060
8012
|
}
|
|
8061
8013
|
}
|
|
8062
|
-
function
|
|
8014
|
+
function wc(e, t) {
|
|
8063
8015
|
let n = 0, r = 0;
|
|
8064
8016
|
return i;
|
|
8065
8017
|
function i(l) {
|
|
8066
|
-
return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(
|
|
8018
|
+
return l === 40 ? (n++, e.consume(l), i) : l === 41 && r < n ? o(l) : l === 33 || l === 34 || l === 38 || l === 39 || l === 41 || l === 42 || l === 44 || l === 46 || l === 58 || l === 59 || l === 60 || l === 63 || l === 93 || l === 95 || l === 126 ? e.check(Zr, t, o)(l) : l === null || q(l) || Ee(l) ? t(l) : (e.consume(l), i);
|
|
8067
8019
|
}
|
|
8068
8020
|
function o(l) {
|
|
8069
8021
|
return l === 41 && r++, e.consume(l), i;
|
|
8070
8022
|
}
|
|
8071
8023
|
}
|
|
8072
|
-
function
|
|
8024
|
+
function Sc(e, t, n) {
|
|
8073
8025
|
return r;
|
|
8074
8026
|
function r(a) {
|
|
8075
8027
|
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) : (
|
|
@@ -8088,7 +8040,7 @@ function Cc(e, t, n) {
|
|
|
8088
8040
|
return a === 59 ? (e.consume(a), r) : J(a) ? (e.consume(a), l) : n(a);
|
|
8089
8041
|
}
|
|
8090
8042
|
}
|
|
8091
|
-
function
|
|
8043
|
+
function Cc(e, t, n) {
|
|
8092
8044
|
return r;
|
|
8093
8045
|
function r(o) {
|
|
8094
8046
|
return e.consume(o), i;
|
|
@@ -8097,19 +8049,19 @@ function Ec(e, t, n) {
|
|
|
8097
8049
|
return X(o) ? n(o) : t(o);
|
|
8098
8050
|
}
|
|
8099
8051
|
}
|
|
8100
|
-
function
|
|
8052
|
+
function ti(e) {
|
|
8101
8053
|
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || q(e);
|
|
8102
8054
|
}
|
|
8103
|
-
function
|
|
8055
|
+
function ri(e) {
|
|
8104
8056
|
return !J(e);
|
|
8105
8057
|
}
|
|
8106
|
-
function
|
|
8107
|
-
return !(e === 47 ||
|
|
8058
|
+
function ii(e) {
|
|
8059
|
+
return !(e === 47 || Nn(e));
|
|
8108
8060
|
}
|
|
8109
|
-
function
|
|
8061
|
+
function Nn(e) {
|
|
8110
8062
|
return e === 43 || e === 45 || e === 46 || e === 95 || X(e);
|
|
8111
8063
|
}
|
|
8112
|
-
function
|
|
8064
|
+
function tt(e) {
|
|
8113
8065
|
let t = e.length, n = !1;
|
|
8114
8066
|
for (; t--; ) {
|
|
8115
8067
|
const r = e[t][1];
|
|
@@ -8124,37 +8076,37 @@ function it(e) {
|
|
|
8124
8076
|
}
|
|
8125
8077
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
8126
8078
|
}
|
|
8127
|
-
const
|
|
8128
|
-
tokenize:
|
|
8079
|
+
const Ec = {
|
|
8080
|
+
tokenize: Dc,
|
|
8129
8081
|
partial: !0
|
|
8130
8082
|
};
|
|
8131
|
-
function
|
|
8083
|
+
function Ic() {
|
|
8132
8084
|
return {
|
|
8133
8085
|
document: {
|
|
8134
8086
|
91: {
|
|
8135
8087
|
name: "gfmFootnoteDefinition",
|
|
8136
8088
|
tokenize: Lc,
|
|
8137
8089
|
continuation: {
|
|
8138
|
-
tokenize:
|
|
8090
|
+
tokenize: vc
|
|
8139
8091
|
},
|
|
8140
|
-
exit:
|
|
8092
|
+
exit: zc
|
|
8141
8093
|
}
|
|
8142
8094
|
},
|
|
8143
8095
|
text: {
|
|
8144
8096
|
91: {
|
|
8145
8097
|
name: "gfmFootnoteCall",
|
|
8146
|
-
tokenize:
|
|
8098
|
+
tokenize: Pc
|
|
8147
8099
|
},
|
|
8148
8100
|
93: {
|
|
8149
8101
|
name: "gfmPotentialFootnoteCall",
|
|
8150
8102
|
add: "after",
|
|
8151
|
-
tokenize:
|
|
8152
|
-
resolveTo:
|
|
8103
|
+
tokenize: Ac,
|
|
8104
|
+
resolveTo: Tc
|
|
8153
8105
|
}
|
|
8154
8106
|
}
|
|
8155
8107
|
};
|
|
8156
8108
|
}
|
|
8157
|
-
function
|
|
8109
|
+
function Ac(e, t, n) {
|
|
8158
8110
|
const r = this;
|
|
8159
8111
|
let i = r.events.length;
|
|
8160
8112
|
const o = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
@@ -8172,14 +8124,14 @@ function Tc(e, t, n) {
|
|
|
8172
8124
|
function a(u) {
|
|
8173
8125
|
if (!l || !l._balanced)
|
|
8174
8126
|
return n(u);
|
|
8175
|
-
const s =
|
|
8127
|
+
const s = se(r.sliceSerialize({
|
|
8176
8128
|
start: l.end,
|
|
8177
8129
|
end: r.now()
|
|
8178
8130
|
}));
|
|
8179
8131
|
return s.codePointAt(0) !== 94 || !o.includes(s.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
|
|
8180
8132
|
}
|
|
8181
8133
|
}
|
|
8182
|
-
function
|
|
8134
|
+
function Tc(e, t) {
|
|
8183
8135
|
let n = e.length;
|
|
8184
8136
|
for (; n-- && !(e[n][1].type === "labelImage" && e[n][0] === "enter"); )
|
|
8185
8137
|
;
|
|
@@ -8226,7 +8178,7 @@ function Pc(e, t) {
|
|
|
8226
8178
|
];
|
|
8227
8179
|
return e.splice(n, e.length - n + 1, ...a), e;
|
|
8228
8180
|
}
|
|
8229
|
-
function
|
|
8181
|
+
function Pc(e, t, n) {
|
|
8230
8182
|
const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
|
|
8231
8183
|
let o = 0, l;
|
|
8232
8184
|
return a;
|
|
@@ -8248,7 +8200,7 @@ function vc(e, t, n) {
|
|
|
8248
8200
|
if (c === 93) {
|
|
8249
8201
|
e.exit("chunkString");
|
|
8250
8202
|
const p = e.exit("gfmFootnoteCallString");
|
|
8251
|
-
return i.includes(
|
|
8203
|
+
return i.includes(se(r.sliceSerialize(p))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(c), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(c);
|
|
8252
8204
|
}
|
|
8253
8205
|
return q(c) || (l = !0), o++, e.consume(c), c === 92 ? f : s;
|
|
8254
8206
|
}
|
|
@@ -8278,7 +8230,7 @@ function Lc(e, t, n) {
|
|
|
8278
8230
|
if (d === 93) {
|
|
8279
8231
|
e.exit("chunkString");
|
|
8280
8232
|
const x = e.exit("gfmFootnoteDefinitionLabelString");
|
|
8281
|
-
return o =
|
|
8233
|
+
return o = se(r.sliceSerialize(x)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(d), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), p;
|
|
8282
8234
|
}
|
|
8283
8235
|
return q(d) || (a = !0), l++, e.consume(d), d === 92 ? c : f;
|
|
8284
8236
|
}
|
|
@@ -8292,13 +8244,13 @@ function Lc(e, t, n) {
|
|
|
8292
8244
|
return t(d);
|
|
8293
8245
|
}
|
|
8294
8246
|
}
|
|
8295
|
-
function
|
|
8296
|
-
return e.check(We, t, e.attempt(
|
|
8247
|
+
function vc(e, t, n) {
|
|
8248
|
+
return e.check(We, t, e.attempt(Ec, t, n));
|
|
8297
8249
|
}
|
|
8298
|
-
function
|
|
8250
|
+
function zc(e) {
|
|
8299
8251
|
e.exit("gfmFootnoteDefinition");
|
|
8300
8252
|
}
|
|
8301
|
-
function
|
|
8253
|
+
function Dc(e, t, n) {
|
|
8302
8254
|
const r = this;
|
|
8303
8255
|
return j(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
8304
8256
|
function i(o) {
|
|
@@ -8306,7 +8258,7 @@ function Fc(e, t, n) {
|
|
|
8306
8258
|
return l && l[1].type === "gfmFootnoteDefinitionIndent" && l[2].sliceSerialize(l[1], !0).length === 4 ? t(o) : n(o);
|
|
8307
8259
|
}
|
|
8308
8260
|
}
|
|
8309
|
-
function
|
|
8261
|
+
function Fc(e) {
|
|
8310
8262
|
let n = e.singleTilde;
|
|
8311
8263
|
const r = {
|
|
8312
8264
|
name: "strikethrough",
|
|
@@ -8342,7 +8294,7 @@ function _c(e) {
|
|
|
8342
8294
|
start: Object.assign({}, l[s][1].end),
|
|
8343
8295
|
end: Object.assign({}, l[u][1].start)
|
|
8344
8296
|
}, p = [["enter", f, a], ["enter", l[s][1], a], ["exit", l[s][1], a], ["enter", c, a]], h = a.parser.constructs.insideSpan.null;
|
|
8345
|
-
h && te(p, p.length, 0,
|
|
8297
|
+
h && te(p, p.length, 0, an(h, l.slice(s + 1, u), a)), te(p, p.length, 0, [["exit", c, a], ["enter", l[u][1], a], ["exit", l[u][1], a], ["exit", f, a]]), te(l, s - 1, u - s + 3, p), u = s + p.length - 2;
|
|
8346
8298
|
break;
|
|
8347
8299
|
}
|
|
8348
8300
|
}
|
|
@@ -8367,7 +8319,7 @@ function _c(e) {
|
|
|
8367
8319
|
}
|
|
8368
8320
|
}
|
|
8369
8321
|
}
|
|
8370
|
-
class
|
|
8322
|
+
class Oc {
|
|
8371
8323
|
/**
|
|
8372
8324
|
* Create a new edit map.
|
|
8373
8325
|
*/
|
|
@@ -8383,7 +8335,7 @@ class Rc {
|
|
|
8383
8335
|
* @returns {undefined}
|
|
8384
8336
|
*/
|
|
8385
8337
|
add(t, n, r) {
|
|
8386
|
-
|
|
8338
|
+
Rc(this, t, n, r);
|
|
8387
8339
|
}
|
|
8388
8340
|
// To do: add this when moving to `micromark`.
|
|
8389
8341
|
// /**
|
|
@@ -8422,7 +8374,7 @@ class Rc {
|
|
|
8422
8374
|
this.map.length = 0;
|
|
8423
8375
|
}
|
|
8424
8376
|
}
|
|
8425
|
-
function
|
|
8377
|
+
function Rc(e, t, n, r) {
|
|
8426
8378
|
let i = 0;
|
|
8427
8379
|
if (!(n === 0 && r.length === 0)) {
|
|
8428
8380
|
for (; i < e.map.length; ) {
|
|
@@ -8435,7 +8387,7 @@ function Oc(e, t, n, r) {
|
|
|
8435
8387
|
e.map.push([t, n, r]);
|
|
8436
8388
|
}
|
|
8437
8389
|
}
|
|
8438
|
-
function
|
|
8390
|
+
function _c(e, t) {
|
|
8439
8391
|
let n = !1;
|
|
8440
8392
|
const r = [];
|
|
8441
8393
|
for (; t < e.length; ) {
|
|
@@ -8455,18 +8407,18 @@ function Mc(e, t) {
|
|
|
8455
8407
|
}
|
|
8456
8408
|
return r;
|
|
8457
8409
|
}
|
|
8458
|
-
function
|
|
8410
|
+
function Mc() {
|
|
8459
8411
|
return {
|
|
8460
8412
|
flow: {
|
|
8461
8413
|
null: {
|
|
8462
8414
|
name: "table",
|
|
8463
|
-
tokenize:
|
|
8464
|
-
resolveAll:
|
|
8415
|
+
tokenize: Nc,
|
|
8416
|
+
resolveAll: Bc
|
|
8465
8417
|
}
|
|
8466
8418
|
}
|
|
8467
8419
|
};
|
|
8468
8420
|
}
|
|
8469
|
-
function
|
|
8421
|
+
function Nc(e, t, n) {
|
|
8470
8422
|
const r = this;
|
|
8471
8423
|
let i = 0, o = 0, l;
|
|
8472
8424
|
return a;
|
|
@@ -8478,8 +8430,8 @@ function Bc(e, t, n) {
|
|
|
8478
8430
|
T === "linePrefix") P--;
|
|
8479
8431
|
else break;
|
|
8480
8432
|
}
|
|
8481
|
-
const
|
|
8482
|
-
return
|
|
8433
|
+
const L = P > -1 ? r.events[P][1].type : null, v = L === "tableHead" || L === "tableRow" ? w : u;
|
|
8434
|
+
return v === w && r.parser.lazy[r.now().line] ? n(k) : v(k);
|
|
8483
8435
|
}
|
|
8484
8436
|
function u(k) {
|
|
8485
8437
|
return e.enter("tableHead"), e.enter("tableRow"), s(k);
|
|
@@ -8524,24 +8476,24 @@ function Bc(e, t, n) {
|
|
|
8524
8476
|
return n(k);
|
|
8525
8477
|
}
|
|
8526
8478
|
function w(k) {
|
|
8527
|
-
return e.enter("tableRow"),
|
|
8479
|
+
return e.enter("tableRow"), _(k);
|
|
8528
8480
|
}
|
|
8529
|
-
function
|
|
8530
|
-
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"),
|
|
8481
|
+
function _(k) {
|
|
8482
|
+
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), _) : k === null || D(k) ? (e.exit("tableRow"), t(k)) : N(k) ? j(e, _, "whitespace")(k) : (e.enter("data"), U(k));
|
|
8531
8483
|
}
|
|
8532
8484
|
function U(k) {
|
|
8533
|
-
return k === null || k === 124 || q(k) ? (e.exit("data"),
|
|
8485
|
+
return k === null || k === 124 || q(k) ? (e.exit("data"), _(k)) : (e.consume(k), k === 92 ? H : U);
|
|
8534
8486
|
}
|
|
8535
8487
|
function H(k) {
|
|
8536
8488
|
return k === 92 || k === 124 ? (e.consume(k), U) : U(k);
|
|
8537
8489
|
}
|
|
8538
8490
|
}
|
|
8539
|
-
function
|
|
8491
|
+
function Bc(e, t) {
|
|
8540
8492
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], l = [0, 0, 0, 0], a = !1, u = 0, s, f, c;
|
|
8541
|
-
const p = new
|
|
8493
|
+
const p = new Oc();
|
|
8542
8494
|
for (; ++n < e.length; ) {
|
|
8543
8495
|
const h = e[n], d = h[1];
|
|
8544
|
-
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (
|
|
8496
|
+
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (Kt(p, t, u, s, f), f = void 0, u = 0), s = {
|
|
8545
8497
|
type: "table",
|
|
8546
8498
|
start: Object.assign({}, d.start),
|
|
8547
8499
|
// Note: correct end is set later.
|
|
@@ -8553,23 +8505,23 @@ function jc(e, t) {
|
|
|
8553
8505
|
end: Object.assign({}, d.end)
|
|
8554
8506
|
}, 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 = Je(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 = Je(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 = Je(p, t, o, i, n, c)) : l[1] !== 0 && (c = Je(p, t, l, i, n, c)), i = 0) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") && (l[3] = n);
|
|
8555
8507
|
}
|
|
8556
|
-
for (u !== 0 &&
|
|
8508
|
+
for (u !== 0 && Kt(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
8557
8509
|
const h = t.events[n];
|
|
8558
|
-
h[0] === "enter" && h[1].type === "table" && (h[1]._align =
|
|
8510
|
+
h[0] === "enter" && h[1].type === "table" && (h[1]._align = _c(t.events, n));
|
|
8559
8511
|
}
|
|
8560
8512
|
return e;
|
|
8561
8513
|
}
|
|
8562
8514
|
function Je(e, t, n, r, i, o) {
|
|
8563
8515
|
const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
8564
|
-
n[0] !== 0 && (o.end = Object.assign({},
|
|
8565
|
-
const u =
|
|
8516
|
+
n[0] !== 0 && (o.end = Object.assign({}, ve(t.events, n[0])), e.add(n[0], 0, [["exit", o, t]]));
|
|
8517
|
+
const u = ve(t.events, n[1]);
|
|
8566
8518
|
if (o = {
|
|
8567
8519
|
type: l,
|
|
8568
8520
|
start: Object.assign({}, u),
|
|
8569
8521
|
// Note: correct end is set later.
|
|
8570
8522
|
end: Object.assign({}, u)
|
|
8571
8523
|
}, e.add(n[1], 0, [["enter", o, t]]), n[2] !== 0) {
|
|
8572
|
-
const s =
|
|
8524
|
+
const s = ve(t.events, n[2]), f = ve(t.events, n[3]), c = {
|
|
8573
8525
|
type: a,
|
|
8574
8526
|
start: Object.assign({}, s),
|
|
8575
8527
|
end: Object.assign({}, f)
|
|
@@ -8583,28 +8535,28 @@ function Je(e, t, n, r, i, o) {
|
|
|
8583
8535
|
}
|
|
8584
8536
|
e.add(n[3] + 1, 0, [["exit", c, t]]);
|
|
8585
8537
|
}
|
|
8586
|
-
return i !== void 0 && (o.end = Object.assign({},
|
|
8538
|
+
return i !== void 0 && (o.end = Object.assign({}, ve(t.events, i)), e.add(i, 0, [["exit", o, t]]), o = void 0), o;
|
|
8587
8539
|
}
|
|
8588
|
-
function
|
|
8589
|
-
const o = [], l =
|
|
8540
|
+
function Kt(e, t, n, r, i) {
|
|
8541
|
+
const o = [], l = ve(t.events, n);
|
|
8590
8542
|
i && (i.end = Object.assign({}, l), o.push(["exit", i, t])), r.end = Object.assign({}, l), o.push(["exit", r, t]), e.add(n + 1, 0, o);
|
|
8591
8543
|
}
|
|
8592
|
-
function
|
|
8544
|
+
function ve(e, t) {
|
|
8593
8545
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8594
8546
|
return n[1][r];
|
|
8595
8547
|
}
|
|
8596
|
-
const
|
|
8548
|
+
const jc = {
|
|
8597
8549
|
name: "tasklistCheck",
|
|
8598
|
-
tokenize:
|
|
8550
|
+
tokenize: Uc
|
|
8599
8551
|
};
|
|
8600
|
-
function
|
|
8552
|
+
function Hc() {
|
|
8601
8553
|
return {
|
|
8602
8554
|
text: {
|
|
8603
|
-
91:
|
|
8555
|
+
91: jc
|
|
8604
8556
|
}
|
|
8605
8557
|
};
|
|
8606
8558
|
}
|
|
8607
|
-
function
|
|
8559
|
+
function Uc(e, t, n) {
|
|
8608
8560
|
const r = this;
|
|
8609
8561
|
return i;
|
|
8610
8562
|
function i(u) {
|
|
@@ -8623,54 +8575,54 @@ function $c(e, t, n) {
|
|
|
8623
8575
|
}
|
|
8624
8576
|
function a(u) {
|
|
8625
8577
|
return D(u) ? t(u) : N(u) ? e.check({
|
|
8626
|
-
tokenize:
|
|
8578
|
+
tokenize: $c
|
|
8627
8579
|
}, t, n)(u) : n(u);
|
|
8628
8580
|
}
|
|
8629
8581
|
}
|
|
8630
|
-
function
|
|
8582
|
+
function $c(e, t, n) {
|
|
8631
8583
|
return j(e, r, "whitespace");
|
|
8632
8584
|
function r(i) {
|
|
8633
8585
|
return i === null ? n(i) : t(i);
|
|
8634
8586
|
}
|
|
8635
8587
|
}
|
|
8636
|
-
function
|
|
8637
|
-
return
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8641
|
-
|
|
8642
|
-
|
|
8588
|
+
function qc(e) {
|
|
8589
|
+
return dr([
|
|
8590
|
+
gc(),
|
|
8591
|
+
Ic(),
|
|
8592
|
+
Fc(e),
|
|
8593
|
+
Mc(),
|
|
8594
|
+
Hc()
|
|
8643
8595
|
]);
|
|
8644
8596
|
}
|
|
8645
|
-
const
|
|
8646
|
-
function
|
|
8597
|
+
const Vc = {};
|
|
8598
|
+
function Jt(e) {
|
|
8647
8599
|
const t = (
|
|
8648
8600
|
/** @type {Processor} */
|
|
8649
8601
|
this
|
|
8650
|
-
), n = e ||
|
|
8651
|
-
i.push(
|
|
8602
|
+
), n = e || Vc, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
8603
|
+
i.push(qc(n)), o.push(fc()), l.push(hc(n));
|
|
8652
8604
|
}
|
|
8653
|
-
const
|
|
8605
|
+
const Wc = yi(
|
|
8654
8606
|
() => import(
|
|
8655
8607
|
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8656
|
-
"./MarkdownWithExtra.
|
|
8608
|
+
"./MarkdownWithExtra.Cf_oHKOO.js"
|
|
8657
8609
|
)
|
|
8658
|
-
),
|
|
8610
|
+
), Pn = {
|
|
8659
8611
|
MODEL: "Model",
|
|
8660
8612
|
PLUGIN: "Plugin",
|
|
8661
8613
|
PROCESSING_TIME: "Processing time"
|
|
8662
|
-
},
|
|
8614
|
+
}, Qc = (e, t) => {
|
|
8663
8615
|
if (e) {
|
|
8664
|
-
const n =
|
|
8665
|
-
return t ? `${n} (${
|
|
8616
|
+
const n = Ci(e);
|
|
8617
|
+
return t ? `${n} (${Ei.format(t)} tokens)` : `${n}`;
|
|
8666
8618
|
}
|
|
8667
8619
|
return null;
|
|
8668
|
-
},
|
|
8620
|
+
}, Yc = ({
|
|
8669
8621
|
content: e,
|
|
8670
8622
|
name: t,
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8623
|
+
processingTime: n,
|
|
8624
|
+
usage: r,
|
|
8625
|
+
role: i
|
|
8674
8626
|
}) => {
|
|
8675
8627
|
const {
|
|
8676
8628
|
state: { streaming: o, model: l }
|
|
@@ -8678,15 +8630,15 @@ const Yc = yi(
|
|
|
8678
8630
|
key: bi + wi,
|
|
8679
8631
|
initialValue: !1
|
|
8680
8632
|
}), u = a && {
|
|
8681
|
-
[
|
|
8682
|
-
[
|
|
8683
|
-
[
|
|
8684
|
-
|
|
8685
|
-
|
|
8633
|
+
[Pn.MODEL]: l || null,
|
|
8634
|
+
[Pn.PLUGIN]: t || null,
|
|
8635
|
+
[Pn.PROCESSING_TIME]: Qc(
|
|
8636
|
+
n,
|
|
8637
|
+
r
|
|
8686
8638
|
)
|
|
8687
8639
|
};
|
|
8688
|
-
return /* @__PURE__ */
|
|
8689
|
-
|
|
8640
|
+
return i === Si ? /* @__PURE__ */ xe(ut, { className: "mt-3", children: /* @__PURE__ */ xe("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ xe(qt, { remarkPlugins: [Jt], children: e }) }) }) : /* @__PURE__ */ Zt(
|
|
8641
|
+
ut,
|
|
8690
8642
|
{
|
|
8691
8643
|
copyToClipboard: o ? "loading..." : e,
|
|
8692
8644
|
copyToClipboardFocusMode: "light",
|
|
@@ -8694,28 +8646,28 @@ const Yc = yi(
|
|
|
8694
8646
|
noMaxWidth: !0,
|
|
8695
8647
|
className: "max-w-[95cqw] @container mt-3",
|
|
8696
8648
|
children: [
|
|
8697
|
-
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */
|
|
8698
|
-
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */
|
|
8649
|
+
e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ xe(xi, { fallback: /* @__PURE__ */ xe("div", {}), children: /* @__PURE__ */ xe(Wc, { content: e }) }),
|
|
8650
|
+
e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ xe(qt, { remarkPlugins: [Jt], children: e })
|
|
8699
8651
|
]
|
|
8700
8652
|
}
|
|
8701
|
-
)
|
|
8702
|
-
},
|
|
8653
|
+
);
|
|
8654
|
+
}, nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Yc }, Symbol.toStringTag, { value: "Module" }));
|
|
8703
8655
|
export {
|
|
8704
|
-
|
|
8705
|
-
|
|
8656
|
+
nf as ChatBubbleAssistant,
|
|
8657
|
+
qt as Markdown,
|
|
8706
8658
|
iu as SKIP,
|
|
8707
|
-
|
|
8659
|
+
sn as convert,
|
|
8708
8660
|
j as factorySpace,
|
|
8709
8661
|
Mi as find,
|
|
8710
|
-
|
|
8662
|
+
er as getDefaultExportFromCjs,
|
|
8711
8663
|
Hi as html,
|
|
8712
|
-
|
|
8664
|
+
Is as longestStreak,
|
|
8713
8665
|
D as markdownLineEnding,
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8666
|
+
Ln as normalize,
|
|
8667
|
+
ef as parse,
|
|
8668
|
+
Zc as parse$1,
|
|
8669
|
+
Jt as remarkGfm,
|
|
8670
|
+
jn as svg,
|
|
8671
|
+
Jn as visit,
|
|
8672
|
+
Rr as visitParents
|
|
8721
8673
|
};
|