@caseparts-org/caseblocks 0.0.275 → 0.0.277
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/assets/CardLink.css +1 -1
- package/dist/assets/ProgressTracker.css +1 -0
- package/dist/main-client.d.ts +2 -0
- package/dist/main-client.js +42 -40
- package/dist/molecules/CardLink/CardLink.d.ts +4 -1
- package/dist/molecules/CardLink/CardLink.js +57 -29
- package/dist/molecules/Markdown/Markdown.js +661 -652
- package/dist/molecules/ProgressTracker/ProgressTracker.d.ts +13 -0
- package/dist/molecules/ProgressTracker/ProgressTracker.js +66 -0
- package/dist/molecules/ProgressTracker/ProgressTracker.stories.d.ts +14 -0
- package/dist/molecules/ProgressTracker/ProgressTracker.stories.js +65 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as Ei, jsx as xe, Fragment as vn } from "react/jsx-runtime";
|
|
2
2
|
import { remarkAdmonition as Ii } from "./remarkAdmonition.js";
|
|
3
3
|
import { Admonition as Ai } from "../Admonition/Admonition.js";
|
|
4
4
|
import { Upsell as Ti } from "../Upsell/Upsell.js";
|
|
5
5
|
import { usePreprocessedMarkdown as Pi } from "./usePreprocessedMarkdown.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import '../../assets/Markdown.css';var tn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
|
-
function
|
|
8
|
+
function ur(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
10
|
}
|
|
11
11
|
function vi(e, t) {
|
|
@@ -15,14 +15,14 @@ function vi(e, t) {
|
|
|
15
15
|
).trim();
|
|
16
16
|
}
|
|
17
17
|
const zi = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Li = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Di = {};
|
|
18
|
-
function
|
|
18
|
+
function ht(e, t) {
|
|
19
19
|
return (Di.jsx ? Li : zi).test(e);
|
|
20
20
|
}
|
|
21
21
|
const Fi = /[ \t\n\f\r]/g;
|
|
22
22
|
function _i(e) {
|
|
23
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
23
|
+
return typeof e == "object" ? e.type === "text" ? pt(e.value) : !1 : pt(e);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function pt(e) {
|
|
26
26
|
return e.replace(Fi, "") === "";
|
|
27
27
|
}
|
|
28
28
|
class We {
|
|
@@ -43,13 +43,13 @@ class We {
|
|
|
43
43
|
We.prototype.normal = {};
|
|
44
44
|
We.prototype.property = {};
|
|
45
45
|
We.prototype.space = void 0;
|
|
46
|
-
function
|
|
46
|
+
function sr(e, t) {
|
|
47
47
|
const n = {}, r = {};
|
|
48
48
|
for (const i of e)
|
|
49
49
|
Object.assign(n, i.property), Object.assign(r, i.normal);
|
|
50
50
|
return new We(n, r, t);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function zn(e) {
|
|
53
53
|
return e.toLowerCase();
|
|
54
54
|
}
|
|
55
55
|
class ee {
|
|
@@ -78,24 +78,24 @@ ee.prototype.property = "";
|
|
|
78
78
|
ee.prototype.spaceSeparated = !1;
|
|
79
79
|
ee.prototype.space = void 0;
|
|
80
80
|
let Ri = 0;
|
|
81
|
-
const
|
|
82
|
-
function
|
|
81
|
+
const D = Ae(), W = Ae(), Ln = Ae(), S = Ae(), V = Ae(), De = Ae(), te = Ae();
|
|
82
|
+
function Ae() {
|
|
83
83
|
return 2 ** ++Ri;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
86
|
__proto__: null,
|
|
87
|
-
boolean:
|
|
87
|
+
boolean: D,
|
|
88
88
|
booleanish: W,
|
|
89
89
|
commaOrSpaceSeparated: te,
|
|
90
90
|
commaSeparated: De,
|
|
91
91
|
number: S,
|
|
92
|
-
overloadedBoolean:
|
|
92
|
+
overloadedBoolean: Ln,
|
|
93
93
|
spaceSeparated: V
|
|
94
94
|
}, Symbol.toStringTag, { value: "Module" })), mn = (
|
|
95
95
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
96
|
-
Object.keys(
|
|
96
|
+
Object.keys(Dn)
|
|
97
97
|
);
|
|
98
|
-
class
|
|
98
|
+
class Un extends ee {
|
|
99
99
|
/**
|
|
100
100
|
* @constructor
|
|
101
101
|
* @param {string} property
|
|
@@ -111,31 +111,31 @@ class Hn extends ee {
|
|
|
111
111
|
*/
|
|
112
112
|
constructor(t, n, r, i) {
|
|
113
113
|
let o = -1;
|
|
114
|
-
if (super(t, n),
|
|
114
|
+
if (super(t, n), mt(this, "space", i), typeof r == "number")
|
|
115
115
|
for (; ++o < mn.length; ) {
|
|
116
116
|
const l = mn[o];
|
|
117
|
-
|
|
117
|
+
mt(this, mn[o], (r & Dn[l]) === Dn[l]);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
|
|
122
|
-
function
|
|
121
|
+
Un.prototype.defined = !0;
|
|
122
|
+
function mt(e, t, n) {
|
|
123
123
|
n && (e[t] = n);
|
|
124
124
|
}
|
|
125
125
|
function _e(e) {
|
|
126
126
|
const t = {}, n = {};
|
|
127
127
|
for (const [r, i] of Object.entries(e.properties)) {
|
|
128
|
-
const o = new
|
|
128
|
+
const o = new Un(
|
|
129
129
|
r,
|
|
130
130
|
e.transform(e.attributes || {}, r),
|
|
131
131
|
i,
|
|
132
132
|
e.space
|
|
133
133
|
);
|
|
134
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[
|
|
134
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (o.mustUseProperty = !0), t[r] = o, n[zn(r)] = r, n[zn(o.attribute)] = r;
|
|
135
135
|
}
|
|
136
136
|
return new We(t, n, e.space);
|
|
137
137
|
}
|
|
138
|
-
const
|
|
138
|
+
const cr = _e({
|
|
139
139
|
properties: {
|
|
140
140
|
ariaActiveDescendant: null,
|
|
141
141
|
ariaAtomic: W,
|
|
@@ -191,11 +191,11 @@ const sr = _e({
|
|
|
191
191
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
|
-
function
|
|
194
|
+
function fr(e, t) {
|
|
195
195
|
return t in e ? e[t] : t;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
return
|
|
197
|
+
function hr(e, t) {
|
|
198
|
+
return fr(e, t.toLowerCase());
|
|
199
199
|
}
|
|
200
200
|
const Oi = _e({
|
|
201
201
|
attributes: {
|
|
@@ -213,39 +213,39 @@ const Oi = _e({
|
|
|
213
213
|
accessKey: V,
|
|
214
214
|
action: null,
|
|
215
215
|
allow: null,
|
|
216
|
-
allowFullScreen:
|
|
217
|
-
allowPaymentRequest:
|
|
218
|
-
allowUserMedia:
|
|
216
|
+
allowFullScreen: D,
|
|
217
|
+
allowPaymentRequest: D,
|
|
218
|
+
allowUserMedia: D,
|
|
219
219
|
alt: null,
|
|
220
220
|
as: null,
|
|
221
|
-
async:
|
|
221
|
+
async: D,
|
|
222
222
|
autoCapitalize: null,
|
|
223
223
|
autoComplete: V,
|
|
224
|
-
autoFocus:
|
|
225
|
-
autoPlay:
|
|
224
|
+
autoFocus: D,
|
|
225
|
+
autoPlay: D,
|
|
226
226
|
blocking: V,
|
|
227
227
|
capture: null,
|
|
228
228
|
charSet: null,
|
|
229
|
-
checked:
|
|
229
|
+
checked: D,
|
|
230
230
|
cite: null,
|
|
231
231
|
className: V,
|
|
232
232
|
cols: S,
|
|
233
233
|
colSpan: null,
|
|
234
234
|
content: null,
|
|
235
235
|
contentEditable: W,
|
|
236
|
-
controls:
|
|
236
|
+
controls: D,
|
|
237
237
|
controlsList: V,
|
|
238
238
|
coords: S | De,
|
|
239
239
|
crossOrigin: null,
|
|
240
240
|
data: null,
|
|
241
241
|
dateTime: null,
|
|
242
242
|
decoding: null,
|
|
243
|
-
default:
|
|
244
|
-
defer:
|
|
243
|
+
default: D,
|
|
244
|
+
defer: D,
|
|
245
245
|
dir: null,
|
|
246
246
|
dirName: null,
|
|
247
|
-
disabled:
|
|
248
|
-
download:
|
|
247
|
+
disabled: D,
|
|
248
|
+
download: Ln,
|
|
249
249
|
draggable: W,
|
|
250
250
|
encType: null,
|
|
251
251
|
enterKeyHint: null,
|
|
@@ -254,11 +254,11 @@ const Oi = _e({
|
|
|
254
254
|
formAction: null,
|
|
255
255
|
formEncType: null,
|
|
256
256
|
formMethod: null,
|
|
257
|
-
formNoValidate:
|
|
257
|
+
formNoValidate: D,
|
|
258
258
|
formTarget: null,
|
|
259
259
|
headers: V,
|
|
260
260
|
height: S,
|
|
261
|
-
hidden:
|
|
261
|
+
hidden: Ln,
|
|
262
262
|
high: S,
|
|
263
263
|
href: null,
|
|
264
264
|
hrefLang: null,
|
|
@@ -267,15 +267,15 @@ const Oi = _e({
|
|
|
267
267
|
id: null,
|
|
268
268
|
imageSizes: null,
|
|
269
269
|
imageSrcSet: null,
|
|
270
|
-
inert:
|
|
270
|
+
inert: D,
|
|
271
271
|
inputMode: null,
|
|
272
272
|
integrity: null,
|
|
273
273
|
is: null,
|
|
274
|
-
isMap:
|
|
274
|
+
isMap: D,
|
|
275
275
|
itemId: null,
|
|
276
276
|
itemProp: V,
|
|
277
277
|
itemRef: V,
|
|
278
|
-
itemScope:
|
|
278
|
+
itemScope: D,
|
|
279
279
|
itemType: V,
|
|
280
280
|
kind: null,
|
|
281
281
|
label: null,
|
|
@@ -283,7 +283,7 @@ const Oi = _e({
|
|
|
283
283
|
language: null,
|
|
284
284
|
list: null,
|
|
285
285
|
loading: null,
|
|
286
|
-
loop:
|
|
286
|
+
loop: D,
|
|
287
287
|
low: S,
|
|
288
288
|
manifest: null,
|
|
289
289
|
max: null,
|
|
@@ -292,12 +292,12 @@ const Oi = _e({
|
|
|
292
292
|
method: null,
|
|
293
293
|
min: null,
|
|
294
294
|
minLength: S,
|
|
295
|
-
multiple:
|
|
296
|
-
muted:
|
|
295
|
+
multiple: D,
|
|
296
|
+
muted: D,
|
|
297
297
|
name: null,
|
|
298
298
|
nonce: null,
|
|
299
|
-
noModule:
|
|
300
|
-
noValidate:
|
|
299
|
+
noModule: D,
|
|
300
|
+
noValidate: D,
|
|
301
301
|
onAbort: null,
|
|
302
302
|
onAfterPrint: null,
|
|
303
303
|
onAuxClick: null,
|
|
@@ -386,31 +386,31 @@ const Oi = _e({
|
|
|
386
386
|
onVolumeChange: null,
|
|
387
387
|
onWaiting: null,
|
|
388
388
|
onWheel: null,
|
|
389
|
-
open:
|
|
389
|
+
open: D,
|
|
390
390
|
optimum: S,
|
|
391
391
|
pattern: null,
|
|
392
392
|
ping: V,
|
|
393
393
|
placeholder: null,
|
|
394
|
-
playsInline:
|
|
394
|
+
playsInline: D,
|
|
395
395
|
popover: null,
|
|
396
396
|
popoverTarget: null,
|
|
397
397
|
popoverTargetAction: null,
|
|
398
398
|
poster: null,
|
|
399
399
|
preload: null,
|
|
400
|
-
readOnly:
|
|
400
|
+
readOnly: D,
|
|
401
401
|
referrerPolicy: null,
|
|
402
402
|
rel: V,
|
|
403
|
-
required:
|
|
404
|
-
reversed:
|
|
403
|
+
required: D,
|
|
404
|
+
reversed: D,
|
|
405
405
|
rows: S,
|
|
406
406
|
rowSpan: S,
|
|
407
407
|
sandbox: V,
|
|
408
408
|
scope: null,
|
|
409
|
-
scoped:
|
|
410
|
-
seamless:
|
|
411
|
-
selected:
|
|
412
|
-
shadowRootClonable:
|
|
413
|
-
shadowRootDelegatesFocus:
|
|
409
|
+
scoped: D,
|
|
410
|
+
seamless: D,
|
|
411
|
+
selected: D,
|
|
412
|
+
shadowRootClonable: D,
|
|
413
|
+
shadowRootDelegatesFocus: D,
|
|
414
414
|
shadowRootMode: null,
|
|
415
415
|
shape: null,
|
|
416
416
|
size: S,
|
|
@@ -430,7 +430,7 @@ const Oi = _e({
|
|
|
430
430
|
title: null,
|
|
431
431
|
translate: null,
|
|
432
432
|
type: null,
|
|
433
|
-
typeMustMatch:
|
|
433
|
+
typeMustMatch: D,
|
|
434
434
|
useMap: null,
|
|
435
435
|
value: W,
|
|
436
436
|
width: S,
|
|
@@ -476,9 +476,9 @@ const Oi = _e({
|
|
|
476
476
|
// `<object>`
|
|
477
477
|
color: null,
|
|
478
478
|
// `<font>` and `<hr>`. Use CSS instead
|
|
479
|
-
compact:
|
|
479
|
+
compact: D,
|
|
480
480
|
// Lists. Use CSS to reduce space between items instead
|
|
481
|
-
declare:
|
|
481
|
+
declare: D,
|
|
482
482
|
// `<object>`
|
|
483
483
|
event: null,
|
|
484
484
|
// `<script>`
|
|
@@ -502,13 +502,13 @@ const Oi = _e({
|
|
|
502
502
|
// `<body>`
|
|
503
503
|
marginWidth: S,
|
|
504
504
|
// `<body>`
|
|
505
|
-
noResize:
|
|
505
|
+
noResize: D,
|
|
506
506
|
// `<frame>`
|
|
507
|
-
noHref:
|
|
507
|
+
noHref: D,
|
|
508
508
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
509
|
-
noShade:
|
|
509
|
+
noShade: D,
|
|
510
510
|
// `<hr>`. Use background-color and height instead of borders
|
|
511
|
-
noWrap:
|
|
511
|
+
noWrap: D,
|
|
512
512
|
// `<td>` and `<th>`
|
|
513
513
|
object: null,
|
|
514
514
|
// `<applet>`
|
|
@@ -548,8 +548,8 @@ const Oi = _e({
|
|
|
548
548
|
allowTransparency: null,
|
|
549
549
|
autoCorrect: null,
|
|
550
550
|
autoSave: null,
|
|
551
|
-
disablePictureInPicture:
|
|
552
|
-
disableRemotePlayback:
|
|
551
|
+
disablePictureInPicture: D,
|
|
552
|
+
disableRemotePlayback: D,
|
|
553
553
|
prefix: null,
|
|
554
554
|
property: null,
|
|
555
555
|
results: S,
|
|
@@ -557,7 +557,7 @@ const Oi = _e({
|
|
|
557
557
|
unselectable: null
|
|
558
558
|
},
|
|
559
559
|
space: "html",
|
|
560
|
-
transform:
|
|
560
|
+
transform: hr
|
|
561
561
|
}), Mi = _e({
|
|
562
562
|
attributes: {
|
|
563
563
|
accentHeight: "accent-height",
|
|
@@ -784,7 +784,7 @@ const Oi = _e({
|
|
|
784
784
|
dur: null,
|
|
785
785
|
divisor: S,
|
|
786
786
|
dominantBaseline: null,
|
|
787
|
-
download:
|
|
787
|
+
download: D,
|
|
788
788
|
dx: null,
|
|
789
789
|
dy: null,
|
|
790
790
|
edgeMode: null,
|
|
@@ -1116,8 +1116,8 @@ const Oi = _e({
|
|
|
1116
1116
|
zoomAndPan: null
|
|
1117
1117
|
},
|
|
1118
1118
|
space: "svg",
|
|
1119
|
-
transform:
|
|
1120
|
-
}),
|
|
1119
|
+
transform: fr
|
|
1120
|
+
}), pr = _e({
|
|
1121
1121
|
properties: {
|
|
1122
1122
|
xLinkActuate: null,
|
|
1123
1123
|
xLinkArcRole: null,
|
|
@@ -1131,12 +1131,12 @@ const Oi = _e({
|
|
|
1131
1131
|
transform(e, t) {
|
|
1132
1132
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
1133
1133
|
}
|
|
1134
|
-
}),
|
|
1134
|
+
}), mr = _e({
|
|
1135
1135
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1136
1136
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1137
1137
|
space: "xmlns",
|
|
1138
|
-
transform:
|
|
1139
|
-
}),
|
|
1138
|
+
transform: hr
|
|
1139
|
+
}), gr = _e({
|
|
1140
1140
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1141
1141
|
space: "xml",
|
|
1142
1142
|
transform(e, t) {
|
|
@@ -1160,24 +1160,24 @@ const Oi = _e({
|
|
|
1160
1160
|
xLinkTitle: "xlinkTitle",
|
|
1161
1161
|
xLinkType: "xlinkType",
|
|
1162
1162
|
xmlnsXLink: "xmlnsXlink"
|
|
1163
|
-
}, Bi = /[A-Z]/g,
|
|
1163
|
+
}, Bi = /[A-Z]/g, gt = /-[a-z]/g, ji = /^data[-\w.:]+$/i;
|
|
1164
1164
|
function Hi(e, t) {
|
|
1165
|
-
const n =
|
|
1165
|
+
const n = zn(t);
|
|
1166
1166
|
let r = t, i = ee;
|
|
1167
1167
|
if (n in e.normal)
|
|
1168
1168
|
return e.property[e.normal[n]];
|
|
1169
1169
|
if (n.length > 4 && n.slice(0, 4) === "data" && ji.test(t)) {
|
|
1170
1170
|
if (t.charAt(4) === "-") {
|
|
1171
|
-
const o = t.slice(5).replace(
|
|
1171
|
+
const o = t.slice(5).replace(gt, Vi);
|
|
1172
1172
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
1173
1173
|
} else {
|
|
1174
1174
|
const o = t.slice(4);
|
|
1175
|
-
if (!
|
|
1175
|
+
if (!gt.test(o)) {
|
|
1176
1176
|
let l = o.replace(Bi, Ui);
|
|
1177
1177
|
l.charAt(0) !== "-" && (l = "-" + l), t = "data" + l;
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
i =
|
|
1180
|
+
i = Un;
|
|
1181
1181
|
}
|
|
1182
1182
|
return new i(r, t);
|
|
1183
1183
|
}
|
|
@@ -1187,12 +1187,12 @@ function Ui(e) {
|
|
|
1187
1187
|
function Vi(e) {
|
|
1188
1188
|
return e.charAt(1).toUpperCase();
|
|
1189
1189
|
}
|
|
1190
|
-
const $i =
|
|
1190
|
+
const $i = sr([cr, Oi, pr, mr, gr], "html"), Vn = sr([cr, Mi, pr, mr, gr], "svg");
|
|
1191
1191
|
function qi(e) {
|
|
1192
1192
|
return e.join(" ").trim();
|
|
1193
1193
|
}
|
|
1194
|
-
var
|
|
1195
|
-
`,
|
|
1194
|
+
var $n = {}, dt = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Wi = /\n/g, Yi = /^\s*/, Xi = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Qi = /^:\s*/, Gi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Ki = /^[;\s]*/, Ji = /^\s+|\s+$/g, Zi = `
|
|
1195
|
+
`, yt = "/", kt = "*", Ee = "", el = "comment", nl = "declaration";
|
|
1196
1196
|
function tl(e, t) {
|
|
1197
1197
|
if (typeof e != "string")
|
|
1198
1198
|
throw new TypeError("First argument must be a string");
|
|
@@ -1202,8 +1202,8 @@ function tl(e, t) {
|
|
|
1202
1202
|
function i(d) {
|
|
1203
1203
|
var y = d.match(Wi);
|
|
1204
1204
|
y && (n += y.length);
|
|
1205
|
-
var
|
|
1206
|
-
r = ~
|
|
1205
|
+
var C = d.lastIndexOf(Zi);
|
|
1206
|
+
r = ~C ? d.length - C : r + d.length;
|
|
1207
1207
|
}
|
|
1208
1208
|
function o() {
|
|
1209
1209
|
var d = { line: n, column: r };
|
|
@@ -1224,8 +1224,8 @@ function tl(e, t) {
|
|
|
1224
1224
|
function u(d) {
|
|
1225
1225
|
var y = d.exec(e);
|
|
1226
1226
|
if (y) {
|
|
1227
|
-
var
|
|
1228
|
-
return i(
|
|
1227
|
+
var C = y[0];
|
|
1228
|
+
return i(C), e = e.slice(C.length), y;
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
function s() {
|
|
@@ -1239,15 +1239,15 @@ function tl(e, t) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
function c() {
|
|
1241
1241
|
var d = o();
|
|
1242
|
-
if (!(
|
|
1243
|
-
for (var y = 2;
|
|
1242
|
+
if (!(yt != e.charAt(0) || kt != e.charAt(1))) {
|
|
1243
|
+
for (var y = 2; Ee != e.charAt(y) && (kt != e.charAt(y) || yt != e.charAt(y + 1)); )
|
|
1244
1244
|
++y;
|
|
1245
|
-
if (y += 2,
|
|
1245
|
+
if (y += 2, Ee === e.charAt(y - 1))
|
|
1246
1246
|
return a("End of comment missing");
|
|
1247
|
-
var
|
|
1248
|
-
return r += 2, i(
|
|
1247
|
+
var C = e.slice(2, y - 2);
|
|
1248
|
+
return r += 2, i(C), e = e.slice(y), r += 2, d({
|
|
1249
1249
|
type: el,
|
|
1250
|
-
comment:
|
|
1250
|
+
comment: C
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
@@ -1255,10 +1255,10 @@ function tl(e, t) {
|
|
|
1255
1255
|
var d = o(), y = u(Xi);
|
|
1256
1256
|
if (y) {
|
|
1257
1257
|
if (c(), !u(Qi)) return a("property missing ':'");
|
|
1258
|
-
var
|
|
1258
|
+
var C = u(Gi), k = d({
|
|
1259
1259
|
type: nl,
|
|
1260
|
-
property:
|
|
1261
|
-
value:
|
|
1260
|
+
property: xt(y[0].replace(dt, Ee)),
|
|
1261
|
+
value: C ? xt(C[0].replace(dt, Ee)) : Ee
|
|
1262
1262
|
});
|
|
1263
1263
|
return u(Ki), k;
|
|
1264
1264
|
}
|
|
@@ -1272,14 +1272,14 @@ function tl(e, t) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
return s(), h();
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return e ? e.replace(Ji,
|
|
1275
|
+
function xt(e) {
|
|
1276
|
+
return e ? e.replace(Ji, Ee) : Ee;
|
|
1277
1277
|
}
|
|
1278
1278
|
var rl = tl, il = tn && tn.__importDefault || function(e) {
|
|
1279
1279
|
return e && e.__esModule ? e : { default: e };
|
|
1280
1280
|
};
|
|
1281
|
-
Object.defineProperty(
|
|
1282
|
-
|
|
1281
|
+
Object.defineProperty($n, "__esModule", { value: !0 });
|
|
1282
|
+
$n.default = ol;
|
|
1283
1283
|
const ll = il(rl);
|
|
1284
1284
|
function ol(e, t) {
|
|
1285
1285
|
let n = null;
|
|
@@ -1300,25 +1300,25 @@ var al = /^--[a-zA-Z0-9_-]+$/, ul = /-([a-z])/g, sl = /^[^-]+$/, cl = /^-(webkit
|
|
|
1300
1300
|
return !e || sl.test(e) || al.test(e);
|
|
1301
1301
|
}, pl = function(e, t) {
|
|
1302
1302
|
return t.toUpperCase();
|
|
1303
|
-
},
|
|
1303
|
+
}, bt = function(e, t) {
|
|
1304
1304
|
return "".concat(t, "-");
|
|
1305
1305
|
}, ml = function(e, t) {
|
|
1306
|
-
return t === void 0 && (t = {}), hl(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(fl,
|
|
1306
|
+
return t === void 0 && (t = {}), hl(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(fl, bt) : e = e.replace(cl, bt), e.replace(ul, pl));
|
|
1307
1307
|
};
|
|
1308
1308
|
un.camelCase = ml;
|
|
1309
1309
|
var gl = tn && tn.__importDefault || function(e) {
|
|
1310
1310
|
return e && e.__esModule ? e : { default: e };
|
|
1311
|
-
}, dl = gl(
|
|
1312
|
-
function
|
|
1311
|
+
}, dl = gl($n), yl = un;
|
|
1312
|
+
function Fn(e, t) {
|
|
1313
1313
|
var n = {};
|
|
1314
1314
|
return !e || typeof e != "string" || (0, dl.default)(e, function(r, i) {
|
|
1315
1315
|
r && i && (n[(0, yl.camelCase)(r, t)] = i);
|
|
1316
1316
|
}), n;
|
|
1317
1317
|
}
|
|
1318
|
-
|
|
1319
|
-
var kl =
|
|
1320
|
-
const xl = /* @__PURE__ */
|
|
1321
|
-
function
|
|
1318
|
+
Fn.default = Fn;
|
|
1319
|
+
var kl = Fn;
|
|
1320
|
+
const xl = /* @__PURE__ */ ur(kl), dr = yr("end"), qn = yr("start");
|
|
1321
|
+
function yr(e) {
|
|
1322
1322
|
return t;
|
|
1323
1323
|
function t(n) {
|
|
1324
1324
|
const r = n && n.position && n.position[e] || {};
|
|
@@ -1331,20 +1331,20 @@ function dr(e) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
1333
|
function bl(e) {
|
|
1334
|
-
const t =
|
|
1334
|
+
const t = qn(e), n = dr(e);
|
|
1335
1335
|
if (t && n)
|
|
1336
1336
|
return { start: t, end: n };
|
|
1337
1337
|
}
|
|
1338
1338
|
function He(e) {
|
|
1339
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
1339
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? wt(e.position) : "start" in e || "end" in e ? wt(e) : "line" in e || "column" in e ? _n(e) : "";
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1342
|
-
return
|
|
1343
|
-
}
|
|
1344
|
-
function bt(e) {
|
|
1345
|
-
return Fn(e && e.start) + "-" + Fn(e && e.end);
|
|
1341
|
+
function _n(e) {
|
|
1342
|
+
return St(e && e.line) + ":" + St(e && e.column);
|
|
1346
1343
|
}
|
|
1347
1344
|
function wt(e) {
|
|
1345
|
+
return _n(e && e.start) + "-" + _n(e && e.end);
|
|
1346
|
+
}
|
|
1347
|
+
function St(e) {
|
|
1348
1348
|
return e && typeof e == "number" ? e : 1;
|
|
1349
1349
|
}
|
|
1350
1350
|
class K extends Error {
|
|
@@ -1434,7 +1434,7 @@ K.prototype.fatal = void 0;
|
|
|
1434
1434
|
K.prototype.place = void 0;
|
|
1435
1435
|
K.prototype.ruleId = void 0;
|
|
1436
1436
|
K.prototype.source = void 0;
|
|
1437
|
-
const
|
|
1437
|
+
const Wn = {}.hasOwnProperty, wl = /* @__PURE__ */ new Map(), Sl = /[A-Z]/g, Cl = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), El = /* @__PURE__ */ new Set(["td", "th"]), kr = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1438
1438
|
function Il(e, t) {
|
|
1439
1439
|
if (!t || t.Fragment === void 0)
|
|
1440
1440
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -1464,10 +1464,10 @@ function Il(e, t) {
|
|
|
1464
1464
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
1465
1465
|
passKeys: t.passKeys !== !1,
|
|
1466
1466
|
passNode: t.passNode || !1,
|
|
1467
|
-
schema: t.space === "svg" ?
|
|
1467
|
+
schema: t.space === "svg" ? Vn : $i,
|
|
1468
1468
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
1469
1469
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
1470
|
-
}, o =
|
|
1470
|
+
}, o = xr(i, e, void 0);
|
|
1471
1471
|
return o && typeof o != "string" ? o : i.create(
|
|
1472
1472
|
e,
|
|
1473
1473
|
i.Fragment,
|
|
@@ -1475,7 +1475,7 @@ function Il(e, t) {
|
|
|
1475
1475
|
void 0
|
|
1476
1476
|
);
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function xr(e, t, n) {
|
|
1479
1479
|
if (t.type === "element")
|
|
1480
1480
|
return Al(e, t, n);
|
|
1481
1481
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
|
@@ -1492,12 +1492,12 @@ function kr(e, t, n) {
|
|
|
1492
1492
|
function Al(e, t, n) {
|
|
1493
1493
|
const r = e.schema;
|
|
1494
1494
|
let i = r;
|
|
1495
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
1496
|
-
const o =
|
|
1497
|
-
let a =
|
|
1495
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = Vn, e.schema = i), e.ancestors.push(t);
|
|
1496
|
+
const o = wr(e, t.tagName, !1), l = _l(e, t);
|
|
1497
|
+
let a = Xn(e, t);
|
|
1498
1498
|
return Cl.has(t.tagName) && (a = a.filter(function(u) {
|
|
1499
1499
|
return typeof u == "string" ? !_i(u) : !0;
|
|
1500
|
-
})),
|
|
1500
|
+
})), br(e, l, o, t), Yn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1501
1501
|
}
|
|
1502
1502
|
function Tl(e, t) {
|
|
1503
1503
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -1518,21 +1518,21 @@ function Pl(e, t) {
|
|
|
1518
1518
|
function vl(e, t, n) {
|
|
1519
1519
|
const r = e.schema;
|
|
1520
1520
|
let i = r;
|
|
1521
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
1522
|
-
const o = t.name === null ? e.Fragment :
|
|
1523
|
-
return
|
|
1521
|
+
t.name === "svg" && r.space === "html" && (i = Vn, e.schema = i), e.ancestors.push(t);
|
|
1522
|
+
const o = t.name === null ? e.Fragment : wr(e, t.name, !0), l = Rl(e, t), a = Xn(e, t);
|
|
1523
|
+
return br(e, l, o, t), Yn(l, a), e.ancestors.pop(), e.schema = r, e.create(t, o, l, n);
|
|
1524
1524
|
}
|
|
1525
1525
|
function zl(e, t, n) {
|
|
1526
1526
|
const r = {};
|
|
1527
|
-
return
|
|
1527
|
+
return Yn(r, Xn(e, t)), e.create(t, e.Fragment, r, n);
|
|
1528
1528
|
}
|
|
1529
1529
|
function Ll(e, t) {
|
|
1530
1530
|
return t.value;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function br(e, t, n, r) {
|
|
1533
1533
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function Yn(e, t) {
|
|
1536
1536
|
if (t.length > 0) {
|
|
1537
1537
|
const n = t.length > 1 ? t : t[0];
|
|
1538
1538
|
n && (e.children = n);
|
|
@@ -1548,7 +1548,7 @@ function Dl(e, t, n) {
|
|
|
1548
1548
|
function Fl(e, t) {
|
|
1549
1549
|
return n;
|
|
1550
1550
|
function n(r, i, o, l) {
|
|
1551
|
-
const a = Array.isArray(o.children), u =
|
|
1551
|
+
const a = Array.isArray(o.children), u = qn(r);
|
|
1552
1552
|
return t(
|
|
1553
1553
|
i,
|
|
1554
1554
|
o,
|
|
@@ -1567,7 +1567,7 @@ function _l(e, t) {
|
|
|
1567
1567
|
const n = {};
|
|
1568
1568
|
let r, i;
|
|
1569
1569
|
for (i in t.properties)
|
|
1570
|
-
if (i !== "children" &&
|
|
1570
|
+
if (i !== "children" && Wn.call(t.properties, i)) {
|
|
1571
1571
|
const o = Ol(e, i, t.properties[i]);
|
|
1572
1572
|
if (o) {
|
|
1573
1573
|
const [l, a] = o;
|
|
@@ -1615,7 +1615,7 @@ function Rl(e, t) {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
return n;
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function Xn(e, t) {
|
|
1619
1619
|
const n = [];
|
|
1620
1620
|
let r = -1;
|
|
1621
1621
|
const i = e.passKeys ? /* @__PURE__ */ new Map() : wl;
|
|
@@ -1629,7 +1629,7 @@ function Yn(e, t) {
|
|
|
1629
1629
|
l = u + "-" + s, i.set(u, s + 1);
|
|
1630
1630
|
}
|
|
1631
1631
|
}
|
|
1632
|
-
const a =
|
|
1632
|
+
const a = xr(e, o, l);
|
|
1633
1633
|
a !== void 0 && n.push(a);
|
|
1634
1634
|
}
|
|
1635
1635
|
return n;
|
|
@@ -1662,10 +1662,10 @@ function Ml(e, t) {
|
|
|
1662
1662
|
ruleId: "style",
|
|
1663
1663
|
source: "hast-util-to-jsx-runtime"
|
|
1664
1664
|
});
|
|
1665
|
-
throw i.file = e.filePath || void 0, i.url =
|
|
1665
|
+
throw i.file = e.filePath || void 0, i.url = kr + "#cannot-parse-style-attribute", i;
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function wr(e, t, n) {
|
|
1669
1669
|
let r;
|
|
1670
1670
|
if (!n)
|
|
1671
1671
|
r = { type: "Literal", value: t };
|
|
@@ -1673,7 +1673,7 @@ function br(e, t, n) {
|
|
|
1673
1673
|
const i = t.split(".");
|
|
1674
1674
|
let o = -1, l;
|
|
1675
1675
|
for (; ++o < i.length; ) {
|
|
1676
|
-
const a =
|
|
1676
|
+
const a = ht(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] };
|
|
1677
1677
|
l = l ? {
|
|
1678
1678
|
type: "MemberExpression",
|
|
1679
1679
|
object: l,
|
|
@@ -1684,13 +1684,13 @@ function br(e, t, n) {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
r = l;
|
|
1686
1686
|
} else
|
|
1687
|
-
r =
|
|
1687
|
+
r = ht(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
|
|
1688
1688
|
if (r.type === "Literal") {
|
|
1689
1689
|
const i = (
|
|
1690
1690
|
/** @type {string | number} */
|
|
1691
1691
|
r.value
|
|
1692
1692
|
);
|
|
1693
|
-
return
|
|
1693
|
+
return Wn.call(e.components, i) ? e.components[i] : i;
|
|
1694
1694
|
}
|
|
1695
1695
|
if (e.evaluater)
|
|
1696
1696
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -1706,13 +1706,13 @@ function $e(e, t) {
|
|
|
1706
1706
|
source: "hast-util-to-jsx-runtime"
|
|
1707
1707
|
}
|
|
1708
1708
|
);
|
|
1709
|
-
throw n.file = e.filePath || void 0, n.url =
|
|
1709
|
+
throw n.file = e.filePath || void 0, n.url = kr + "#cannot-handle-mdx-estrees-without-createevaluater", n;
|
|
1710
1710
|
}
|
|
1711
1711
|
function Nl(e) {
|
|
1712
1712
|
const t = {};
|
|
1713
1713
|
let n;
|
|
1714
1714
|
for (n in e)
|
|
1715
|
-
|
|
1715
|
+
Wn.call(e, n) && (t[Bl(n)] = e[n]);
|
|
1716
1716
|
return t;
|
|
1717
1717
|
}
|
|
1718
1718
|
function Bl(e) {
|
|
@@ -1745,36 +1745,36 @@ const gn = {
|
|
|
1745
1745
|
"video"
|
|
1746
1746
|
]
|
|
1747
1747
|
}, Hl = {};
|
|
1748
|
-
function
|
|
1748
|
+
function Qn(e, t) {
|
|
1749
1749
|
const n = Hl, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
1750
|
-
return
|
|
1750
|
+
return Sr(e, r, i);
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function Sr(e, t, n) {
|
|
1753
1753
|
if (Ul(e)) {
|
|
1754
1754
|
if ("value" in e)
|
|
1755
1755
|
return e.type === "html" && !n ? "" : e.value;
|
|
1756
1756
|
if (t && "alt" in e && e.alt)
|
|
1757
1757
|
return e.alt;
|
|
1758
1758
|
if ("children" in e)
|
|
1759
|
-
return
|
|
1759
|
+
return Ct(e.children, t, n);
|
|
1760
1760
|
}
|
|
1761
|
-
return Array.isArray(e) ?
|
|
1761
|
+
return Array.isArray(e) ? Ct(e, t, n) : "";
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function Ct(e, t, n) {
|
|
1764
1764
|
const r = [];
|
|
1765
1765
|
let i = -1;
|
|
1766
1766
|
for (; ++i < e.length; )
|
|
1767
|
-
r[i] =
|
|
1767
|
+
r[i] = Sr(e[i], t, n);
|
|
1768
1768
|
return r.join("");
|
|
1769
1769
|
}
|
|
1770
1770
|
function Ul(e) {
|
|
1771
1771
|
return !!(e && typeof e == "object");
|
|
1772
1772
|
}
|
|
1773
|
-
const
|
|
1774
|
-
function
|
|
1773
|
+
const Et = document.createElement("i");
|
|
1774
|
+
function Gn(e) {
|
|
1775
1775
|
const t = "&" + e + ";";
|
|
1776
|
-
|
|
1777
|
-
const n =
|
|
1776
|
+
Et.innerHTML = t;
|
|
1777
|
+
const n = Et.textContent;
|
|
1778
1778
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
1779
1779
|
}
|
|
1780
1780
|
function re(e, t, n, r) {
|
|
@@ -1789,8 +1789,8 @@ function re(e, t, n, r) {
|
|
|
1789
1789
|
function ie(e, t) {
|
|
1790
1790
|
return e.length > 0 ? (re(e, e.length, 0, t), e) : t;
|
|
1791
1791
|
}
|
|
1792
|
-
const
|
|
1793
|
-
function
|
|
1792
|
+
const It = {}.hasOwnProperty;
|
|
1793
|
+
function Cr(e) {
|
|
1794
1794
|
const t = {};
|
|
1795
1795
|
let n = -1;
|
|
1796
1796
|
for (; ++n < e.length; )
|
|
@@ -1800,11 +1800,11 @@ function Sr(e) {
|
|
|
1800
1800
|
function Vl(e, t) {
|
|
1801
1801
|
let n;
|
|
1802
1802
|
for (n in t) {
|
|
1803
|
-
const i = (
|
|
1803
|
+
const i = (It.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
1804
1804
|
let l;
|
|
1805
1805
|
if (o)
|
|
1806
1806
|
for (l in o) {
|
|
1807
|
-
|
|
1807
|
+
It.call(i, l) || (i[l] = []);
|
|
1808
1808
|
const a = o[l];
|
|
1809
1809
|
$l(
|
|
1810
1810
|
// @ts-expect-error Looks like a list.
|
|
@@ -1821,7 +1821,7 @@ function $l(e, t) {
|
|
|
1821
1821
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
1822
1822
|
re(e, 0, 0, r);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function Er(e, t) {
|
|
1825
1825
|
const n = Number.parseInt(e, t);
|
|
1826
1826
|
return (
|
|
1827
1827
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -1837,7 +1837,7 @@ function Cr(e, t) {
|
|
|
1837
1837
|
function se(e) {
|
|
1838
1838
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
1839
1839
|
}
|
|
1840
|
-
const J =
|
|
1840
|
+
const J = be(/[A-Za-z]/), G = be(/[\dA-Za-z]/), ql = be(/[#-'*+\--9=?A-Z^-~]/);
|
|
1841
1841
|
function rn(e) {
|
|
1842
1842
|
return (
|
|
1843
1843
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -1845,7 +1845,7 @@ function rn(e) {
|
|
|
1845
1845
|
e !== null && (e < 32 || e === 127)
|
|
1846
1846
|
);
|
|
1847
1847
|
}
|
|
1848
|
-
const
|
|
1848
|
+
const Rn = be(/\d/), Wl = be(/[\dA-Fa-f]/), Yl = be(/[!-/:-@[-`{-~]/);
|
|
1849
1849
|
function v(e) {
|
|
1850
1850
|
return e !== null && e < -2;
|
|
1851
1851
|
}
|
|
@@ -1855,8 +1855,8 @@ function U(e) {
|
|
|
1855
1855
|
function _(e) {
|
|
1856
1856
|
return e === -2 || e === -1 || e === 32;
|
|
1857
1857
|
}
|
|
1858
|
-
const sn =
|
|
1859
|
-
function
|
|
1858
|
+
const sn = be(new RegExp("\\p{P}|\\p{S}", "u")), Ie = be(/\s/);
|
|
1859
|
+
function be(e) {
|
|
1860
1860
|
return t;
|
|
1861
1861
|
function t(n) {
|
|
1862
1862
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
@@ -1926,83 +1926,83 @@ function Ql(e) {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
const Gl = {
|
|
1928
1928
|
tokenize: Kl
|
|
1929
|
-
},
|
|
1929
|
+
}, At = {
|
|
1930
1930
|
tokenize: Jl
|
|
1931
1931
|
};
|
|
1932
1932
|
function Kl(e) {
|
|
1933
1933
|
const t = this, n = [];
|
|
1934
1934
|
let r = 0, i, o, l;
|
|
1935
1935
|
return a;
|
|
1936
|
-
function a(
|
|
1936
|
+
function a(E) {
|
|
1937
1937
|
if (r < n.length) {
|
|
1938
|
-
const
|
|
1939
|
-
return t.containerState =
|
|
1938
|
+
const L = n[r];
|
|
1939
|
+
return t.containerState = L[1], e.attempt(L[0].continuation, u, s)(E);
|
|
1940
1940
|
}
|
|
1941
|
-
return s(
|
|
1941
|
+
return s(E);
|
|
1942
1942
|
}
|
|
1943
|
-
function u(
|
|
1943
|
+
function u(E) {
|
|
1944
1944
|
if (r++, t.containerState._closeFlow) {
|
|
1945
1945
|
t.containerState._closeFlow = void 0, i && A();
|
|
1946
|
-
const
|
|
1947
|
-
let F =
|
|
1946
|
+
const L = t.events.length;
|
|
1947
|
+
let F = L, w;
|
|
1948
1948
|
for (; F--; )
|
|
1949
1949
|
if (t.events[F][0] === "exit" && t.events[F][1].type === "chunkFlow") {
|
|
1950
1950
|
w = t.events[F][1].end;
|
|
1951
1951
|
break;
|
|
1952
1952
|
}
|
|
1953
1953
|
k(r);
|
|
1954
|
-
let M =
|
|
1954
|
+
let M = L;
|
|
1955
1955
|
for (; M < t.events.length; )
|
|
1956
1956
|
t.events[M][1].end = {
|
|
1957
1957
|
...w
|
|
1958
1958
|
}, M++;
|
|
1959
|
-
return re(t.events, F + 1, 0, t.events.slice(
|
|
1959
|
+
return re(t.events, F + 1, 0, t.events.slice(L)), t.events.length = M, s(E);
|
|
1960
1960
|
}
|
|
1961
|
-
return a(
|
|
1961
|
+
return a(E);
|
|
1962
1962
|
}
|
|
1963
|
-
function s(
|
|
1963
|
+
function s(E) {
|
|
1964
1964
|
if (r === n.length) {
|
|
1965
1965
|
if (!i)
|
|
1966
|
-
return p(
|
|
1966
|
+
return p(E);
|
|
1967
1967
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
1968
|
-
return d(
|
|
1968
|
+
return d(E);
|
|
1969
1969
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
1970
1970
|
}
|
|
1971
|
-
return t.containerState = {}, e.check(
|
|
1971
|
+
return t.containerState = {}, e.check(At, f, c)(E);
|
|
1972
1972
|
}
|
|
1973
|
-
function f(
|
|
1974
|
-
return i && A(), k(r), p(
|
|
1973
|
+
function f(E) {
|
|
1974
|
+
return i && A(), k(r), p(E);
|
|
1975
1975
|
}
|
|
1976
|
-
function c(
|
|
1977
|
-
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, d(
|
|
1976
|
+
function c(E) {
|
|
1977
|
+
return t.parser.lazy[t.now().line] = r !== n.length, l = t.now().offset, d(E);
|
|
1978
1978
|
}
|
|
1979
|
-
function p(
|
|
1980
|
-
return t.containerState = {}, e.attempt(
|
|
1979
|
+
function p(E) {
|
|
1980
|
+
return t.containerState = {}, e.attempt(At, h, d)(E);
|
|
1981
1981
|
}
|
|
1982
|
-
function h(
|
|
1983
|
-
return r++, n.push([t.currentConstruct, t.containerState]), p(
|
|
1982
|
+
function h(E) {
|
|
1983
|
+
return r++, n.push([t.currentConstruct, t.containerState]), p(E);
|
|
1984
1984
|
}
|
|
1985
|
-
function d(
|
|
1986
|
-
if (
|
|
1987
|
-
i && A(), k(0), e.consume(
|
|
1985
|
+
function d(E) {
|
|
1986
|
+
if (E === null) {
|
|
1987
|
+
i && A(), k(0), e.consume(E);
|
|
1988
1988
|
return;
|
|
1989
1989
|
}
|
|
1990
1990
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
1991
1991
|
_tokenizer: i,
|
|
1992
1992
|
contentType: "flow",
|
|
1993
1993
|
previous: o
|
|
1994
|
-
}), y(
|
|
1994
|
+
}), y(E);
|
|
1995
1995
|
}
|
|
1996
|
-
function y(
|
|
1997
|
-
if (
|
|
1998
|
-
|
|
1996
|
+
function y(E) {
|
|
1997
|
+
if (E === null) {
|
|
1998
|
+
C(e.exit("chunkFlow"), !0), k(0), e.consume(E);
|
|
1999
1999
|
return;
|
|
2000
2000
|
}
|
|
2001
|
-
return v(
|
|
2001
|
+
return v(E) ? (e.consume(E), C(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(E), y);
|
|
2002
2002
|
}
|
|
2003
|
-
function E
|
|
2004
|
-
const F = t.sliceStream(
|
|
2005
|
-
if (
|
|
2003
|
+
function C(E, L) {
|
|
2004
|
+
const F = t.sliceStream(E);
|
|
2005
|
+
if (L && F.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(F), t.parser.lazy[E.start.line]) {
|
|
2006
2006
|
let w = i.events.length;
|
|
2007
2007
|
for (; w--; )
|
|
2008
2008
|
if (
|
|
@@ -2029,13 +2029,13 @@ function Kl(e) {
|
|
|
2029
2029
|
re(t.events, $ + 1, 0, t.events.slice(M)), t.events.length = w;
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
|
-
function k(
|
|
2033
|
-
let
|
|
2034
|
-
for (;
|
|
2035
|
-
const F = n[
|
|
2032
|
+
function k(E) {
|
|
2033
|
+
let L = n.length;
|
|
2034
|
+
for (; L-- > E; ) {
|
|
2035
|
+
const F = n[L];
|
|
2036
2036
|
t.containerState = F[1], F[0].exit.call(t, e);
|
|
2037
2037
|
}
|
|
2038
|
-
n.length =
|
|
2038
|
+
n.length = E;
|
|
2039
2039
|
}
|
|
2040
2040
|
function A() {
|
|
2041
2041
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
@@ -2045,7 +2045,7 @@ function Jl(e, t, n) {
|
|
|
2045
2045
|
return O(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2046
2046
|
}
|
|
2047
2047
|
function Fe(e) {
|
|
2048
|
-
if (e === null || U(e) ||
|
|
2048
|
+
if (e === null || U(e) || Ie(e))
|
|
2049
2049
|
return 1;
|
|
2050
2050
|
if (sn(e))
|
|
2051
2051
|
return 2;
|
|
@@ -2059,7 +2059,7 @@ function cn(e, t, n) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
return t;
|
|
2061
2061
|
}
|
|
2062
|
-
const
|
|
2062
|
+
const On = {
|
|
2063
2063
|
name: "attention",
|
|
2064
2064
|
resolveAll: Zl,
|
|
2065
2065
|
tokenize: eo
|
|
@@ -2079,7 +2079,7 @@ function Zl(e, t) {
|
|
|
2079
2079
|
}, p = {
|
|
2080
2080
|
...e[n][1].start
|
|
2081
2081
|
};
|
|
2082
|
-
|
|
2082
|
+
Tt(c, -u), Tt(p, u), l = {
|
|
2083
2083
|
type: u > 1 ? "strongSequence" : "emphasisSequence",
|
|
2084
2084
|
start: c,
|
|
2085
2085
|
end: {
|
|
@@ -2133,7 +2133,7 @@ function eo(e, t) {
|
|
|
2133
2133
|
return s._open = !!(o === 42 ? c : c && (i || !p)), s._close = !!(o === 42 ? p : p && (f || !c)), t(u);
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function Tt(e, t) {
|
|
2137
2137
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
2138
2138
|
}
|
|
2139
2139
|
const no = {
|
|
@@ -2188,7 +2188,7 @@ function ro(e, t, n) {
|
|
|
2188
2188
|
return o === null || v(o) ? t(o) : n(o);
|
|
2189
2189
|
}
|
|
2190
2190
|
}
|
|
2191
|
-
const
|
|
2191
|
+
const Ir = {
|
|
2192
2192
|
continuation: {
|
|
2193
2193
|
tokenize: lo
|
|
2194
2194
|
},
|
|
@@ -2219,13 +2219,13 @@ function lo(e, t, n) {
|
|
|
2219
2219
|
return _(l) ? O(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(l) : o(l);
|
|
2220
2220
|
}
|
|
2221
2221
|
function o(l) {
|
|
2222
|
-
return e.attempt(
|
|
2222
|
+
return e.attempt(Ir, t, n)(l);
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
2225
|
function oo(e) {
|
|
2226
2226
|
e.exit("blockQuote");
|
|
2227
2227
|
}
|
|
2228
|
-
const
|
|
2228
|
+
const Ar = {
|
|
2229
2229
|
name: "characterEscape",
|
|
2230
2230
|
tokenize: ao
|
|
2231
2231
|
};
|
|
@@ -2238,7 +2238,7 @@ function ao(e, t, n) {
|
|
|
2238
2238
|
return Yl(o) ? (e.enter("characterEscapeValue"), e.consume(o), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(o);
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
|
-
const
|
|
2241
|
+
const Tr = {
|
|
2242
2242
|
name: "characterReference",
|
|
2243
2243
|
tokenize: uo
|
|
2244
2244
|
};
|
|
@@ -2253,20 +2253,20 @@ function uo(e, t, n) {
|
|
|
2253
2253
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), s) : (e.enter("characterReferenceValue"), o = 31, l = G, f(c));
|
|
2254
2254
|
}
|
|
2255
2255
|
function s(c) {
|
|
2256
|
-
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 =
|
|
2256
|
+
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 = Rn, f(c));
|
|
2257
2257
|
}
|
|
2258
2258
|
function f(c) {
|
|
2259
2259
|
if (c === 59 && i) {
|
|
2260
2260
|
const p = e.exit("characterReferenceValue");
|
|
2261
|
-
return l === G && !
|
|
2261
|
+
return l === G && !Gn(r.sliceSerialize(p)) ? n(c) : (e.enter("characterReferenceMarker"), e.consume(c), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
2262
2262
|
}
|
|
2263
2263
|
return l(c) && i++ < o ? (e.consume(c), f) : n(c);
|
|
2264
2264
|
}
|
|
2265
2265
|
}
|
|
2266
|
-
const
|
|
2266
|
+
const Pt = {
|
|
2267
2267
|
partial: !0,
|
|
2268
2268
|
tokenize: co
|
|
2269
|
-
},
|
|
2269
|
+
}, vt = {
|
|
2270
2270
|
concrete: !0,
|
|
2271
2271
|
name: "codeFenced",
|
|
2272
2272
|
tokenize: so
|
|
@@ -2289,7 +2289,7 @@ function so(e, t, n) {
|
|
|
2289
2289
|
return w === a ? (l++, e.consume(w), f) : l < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), _(w) ? O(e, c, "whitespace")(w) : c(w));
|
|
2290
2290
|
}
|
|
2291
2291
|
function c(w) {
|
|
2292
|
-
return w === null || v(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(
|
|
2292
|
+
return w === null || v(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(Pt, y, L)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
2293
2293
|
contentType: "string"
|
|
2294
2294
|
}), p(w));
|
|
2295
2295
|
}
|
|
@@ -2305,21 +2305,21 @@ function so(e, t, n) {
|
|
|
2305
2305
|
return w === null || v(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(w)) : w === 96 && w === a ? n(w) : (e.consume(w), d);
|
|
2306
2306
|
}
|
|
2307
2307
|
function y(w) {
|
|
2308
|
-
return e.attempt(i,
|
|
2308
|
+
return e.attempt(i, L, C)(w);
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function C(w) {
|
|
2311
2311
|
return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), k;
|
|
2312
2312
|
}
|
|
2313
2313
|
function k(w) {
|
|
2314
2314
|
return o > 0 && _(w) ? O(e, A, "linePrefix", o + 1)(w) : A(w);
|
|
2315
2315
|
}
|
|
2316
2316
|
function A(w) {
|
|
2317
|
-
return w === null || v(w) ? e.check(
|
|
2317
|
+
return w === null || v(w) ? e.check(Pt, y, L)(w) : (e.enter("codeFlowValue"), E(w));
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2320
|
-
return w === null || v(w) ? (e.exit("codeFlowValue"), A(w)) : (e.consume(w),
|
|
2319
|
+
function E(w) {
|
|
2320
|
+
return w === null || v(w) ? (e.exit("codeFlowValue"), A(w)) : (e.consume(w), E);
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function L(w) {
|
|
2323
2323
|
return e.exit("codeFenced"), t(w);
|
|
2324
2324
|
}
|
|
2325
2325
|
function F(w, M, $) {
|
|
@@ -2603,7 +2603,7 @@ function Be(e, t) {
|
|
|
2603
2603
|
for (; n < t.length; )
|
|
2604
2604
|
e.push(...t.slice(n, n + 1e4)), n += 1e4;
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function Pr(e) {
|
|
2607
2607
|
const t = {};
|
|
2608
2608
|
let n = -1, r, i, o, l, a, u, s;
|
|
2609
2609
|
const f = new xo(e);
|
|
@@ -2635,7 +2635,7 @@ function bo(e, t) {
|
|
|
2635
2635
|
l || (l = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (l._contentTypeTextTrailing = !0));
|
|
2636
2636
|
const a = l.events, u = [], s = {};
|
|
2637
2637
|
let f, c, p = -1, h = n, d = 0, y = 0;
|
|
2638
|
-
const
|
|
2638
|
+
const C = [y];
|
|
2639
2639
|
for (; h; ) {
|
|
2640
2640
|
for (; e.get(++i)[1] !== h; )
|
|
2641
2641
|
;
|
|
@@ -2643,9 +2643,9 @@ function bo(e, t) {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
for (h = n; ++p < a.length; )
|
|
2645
2645
|
// Find a void token that includes a break.
|
|
2646
|
-
a[p][0] === "exit" && a[p - 1][0] === "enter" && a[p][1].type === a[p - 1][1].type && a[p][1].start.line !== a[p][1].end.line && (y = p + 1,
|
|
2647
|
-
for (l.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) :
|
|
2648
|
-
const k = a.slice(
|
|
2646
|
+
a[p][0] === "exit" && a[p - 1][0] === "enter" && a[p][1].type === a[p - 1][1].type && a[p][1].start.line !== a[p][1].end.line && (y = p + 1, C.push(y), h._tokenizer = void 0, h.previous = void 0, h = h.next);
|
|
2647
|
+
for (l.events = [], h ? (h._tokenizer = void 0, h.previous = void 0) : C.pop(), p = C.length; p--; ) {
|
|
2648
|
+
const k = a.slice(C[p], C[p + 1]), A = o.pop();
|
|
2649
2649
|
u.push([A, A + k.length - 1]), e.splice(A, 2, k);
|
|
2650
2650
|
}
|
|
2651
2651
|
for (u.reverse(), p = -1; ++p < u.length; )
|
|
@@ -2660,7 +2660,7 @@ const wo = {
|
|
|
2660
2660
|
tokenize: Io
|
|
2661
2661
|
};
|
|
2662
2662
|
function Co(e) {
|
|
2663
|
-
return
|
|
2663
|
+
return Pr(e), e;
|
|
2664
2664
|
}
|
|
2665
2665
|
function Eo(e, t) {
|
|
2666
2666
|
let n;
|
|
@@ -2696,7 +2696,7 @@ function Io(e, t, n) {
|
|
|
2696
2696
|
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);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function vr(e, t, n, r, i, o, l, a, u) {
|
|
2700
2700
|
const s = u || Number.POSITIVE_INFINITY;
|
|
2701
2701
|
let f = 0;
|
|
2702
2702
|
return c;
|
|
@@ -2717,13 +2717,13 @@ function Pr(e, t, n, r, i, o, l, a, u) {
|
|
|
2717
2717
|
return k === 60 || k === 62 || k === 92 ? (e.consume(k), h) : h(k);
|
|
2718
2718
|
}
|
|
2719
2719
|
function y(k) {
|
|
2720
|
-
return !f && (k === null || k === 41 || U(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(k)) : f < s && k === 40 ? (e.consume(k), f++, y) : k === 41 ? (e.consume(k), f--, y) : k === null || k === 32 || k === 40 || rn(k) ? n(k) : (e.consume(k), k === 92 ?
|
|
2720
|
+
return !f && (k === null || k === 41 || U(k)) ? (e.exit("chunkString"), e.exit(a), e.exit(l), e.exit(r), t(k)) : f < s && k === 40 ? (e.consume(k), f++, y) : k === 41 ? (e.consume(k), f--, y) : k === null || k === 32 || k === 40 || rn(k) ? n(k) : (e.consume(k), k === 92 ? C : y);
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2722
|
+
function C(k) {
|
|
2723
2723
|
return k === 40 || k === 41 || k === 92 ? (e.consume(k), y) : y(k);
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function zr(e, t, n, r, i, o) {
|
|
2727
2727
|
const l = this;
|
|
2728
2728
|
let a = 0, u;
|
|
2729
2729
|
return s;
|
|
@@ -2747,7 +2747,7 @@ function vr(e, t, n, r, i, o) {
|
|
|
2747
2747
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, c) : c(h);
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function Lr(e, t, n, r, i, o) {
|
|
2751
2751
|
let l;
|
|
2752
2752
|
return a;
|
|
2753
2753
|
function a(p) {
|
|
@@ -2790,7 +2790,7 @@ function Po(e, t, n) {
|
|
|
2790
2790
|
return e.enter("definition"), l(h);
|
|
2791
2791
|
}
|
|
2792
2792
|
function l(h) {
|
|
2793
|
-
return
|
|
2793
|
+
return zr.call(
|
|
2794
2794
|
r,
|
|
2795
2795
|
e,
|
|
2796
2796
|
a,
|
|
@@ -2808,7 +2808,7 @@ function Po(e, t, n) {
|
|
|
2808
2808
|
return U(h) ? Ue(e, s)(h) : s(h);
|
|
2809
2809
|
}
|
|
2810
2810
|
function s(h) {
|
|
2811
|
-
return
|
|
2811
|
+
return vr(
|
|
2812
2812
|
e,
|
|
2813
2813
|
f,
|
|
2814
2814
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
|
@@ -2836,7 +2836,7 @@ function vo(e, t, n) {
|
|
|
2836
2836
|
return U(a) ? Ue(e, i)(a) : n(a);
|
|
2837
2837
|
}
|
|
2838
2838
|
function i(a) {
|
|
2839
|
-
return
|
|
2839
|
+
return Lr(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
2840
2840
|
}
|
|
2841
2841
|
function o(a) {
|
|
2842
2842
|
return _(a) ? O(e, l, "whitespace")(a) : l(a);
|
|
@@ -2961,7 +2961,7 @@ const Ro = [
|
|
|
2961
2961
|
"tr",
|
|
2962
2962
|
"track",
|
|
2963
2963
|
"ul"
|
|
2964
|
-
],
|
|
2964
|
+
], zt = ["pre", "script", "style", "textarea"], Oo = {
|
|
2965
2965
|
concrete: !0,
|
|
2966
2966
|
name: "htmlFlow",
|
|
2967
2967
|
resolveTo: Bo,
|
|
@@ -2990,7 +2990,7 @@ function jo(e, t, n) {
|
|
|
2990
2990
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(g), c;
|
|
2991
2991
|
}
|
|
2992
2992
|
function c(g) {
|
|
2993
|
-
return g === 33 ? (e.consume(g), p) : g === 47 ? (e.consume(g), o = !0, y) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : m) : J(g) ? (e.consume(g), l = String.fromCharCode(g),
|
|
2993
|
+
return g === 33 ? (e.consume(g), p) : g === 47 ? (e.consume(g), o = !0, y) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : m) : J(g) ? (e.consume(g), l = String.fromCharCode(g), C) : n(g);
|
|
2994
2994
|
}
|
|
2995
2995
|
function p(g) {
|
|
2996
2996
|
return g === 45 ? (e.consume(g), i = 2, h) : g === 91 ? (e.consume(g), i = 5, a = 0, d) : J(g) ? (e.consume(g), i = 4, r.interrupt ? t : m) : n(g);
|
|
@@ -3003,14 +3003,14 @@ function jo(e, t, n) {
|
|
|
3003
3003
|
return g === ae.charCodeAt(a++) ? (e.consume(g), a === ae.length ? r.interrupt ? t : P : d) : n(g);
|
|
3004
3004
|
}
|
|
3005
3005
|
function y(g) {
|
|
3006
|
-
return J(g) ? (e.consume(g), l = String.fromCharCode(g),
|
|
3006
|
+
return J(g) ? (e.consume(g), l = String.fromCharCode(g), C) : n(g);
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function C(g) {
|
|
3009
3009
|
if (g === null || g === 47 || g === 62 || U(g)) {
|
|
3010
|
-
const ae = g === 47,
|
|
3011
|
-
return !ae && !o &&
|
|
3010
|
+
const ae = g === 47, we = l.toLowerCase();
|
|
3011
|
+
return !ae && !o && zt.includes(we) ? (i = 1, r.interrupt ? t(g) : P(g)) : Ro.includes(l.toLowerCase()) ? (i = 6, ae ? (e.consume(g), k) : r.interrupt ? t(g) : P(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? A(g) : E(g));
|
|
3012
3012
|
}
|
|
3013
|
-
return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g),
|
|
3013
|
+
return g === 45 || G(g) ? (e.consume(g), l += String.fromCharCode(g), C) : n(g);
|
|
3014
3014
|
}
|
|
3015
3015
|
function k(g) {
|
|
3016
3016
|
return g === 62 ? (e.consume(g), r.interrupt ? t : P) : n(g);
|
|
@@ -3018,14 +3018,14 @@ function jo(e, t, n) {
|
|
|
3018
3018
|
function A(g) {
|
|
3019
3019
|
return _(g) ? (e.consume(g), A) : x(g);
|
|
3020
3020
|
}
|
|
3021
|
-
function
|
|
3022
|
-
return g === 47 ? (e.consume(g), x) : g === 58 || g === 95 || J(g) ? (e.consume(g),
|
|
3021
|
+
function E(g) {
|
|
3022
|
+
return g === 47 ? (e.consume(g), x) : g === 58 || g === 95 || J(g) ? (e.consume(g), L) : _(g) ? (e.consume(g), E) : x(g);
|
|
3023
3023
|
}
|
|
3024
|
-
function
|
|
3025
|
-
return g === 45 || g === 46 || g === 58 || g === 95 || G(g) ? (e.consume(g),
|
|
3024
|
+
function L(g) {
|
|
3025
|
+
return g === 45 || g === 46 || g === 58 || g === 95 || G(g) ? (e.consume(g), L) : F(g);
|
|
3026
3026
|
}
|
|
3027
3027
|
function F(g) {
|
|
3028
|
-
return g === 61 ? (e.consume(g), w) : _(g) ? (e.consume(g), F) :
|
|
3028
|
+
return g === 61 ? (e.consume(g), w) : _(g) ? (e.consume(g), F) : E(g);
|
|
3029
3029
|
}
|
|
3030
3030
|
function w(g) {
|
|
3031
3031
|
return g === null || g === 60 || g === 61 || g === 62 || g === 96 ? n(g) : g === 34 || g === 39 ? (e.consume(g), u = g, M) : _(g) ? (e.consume(g), w) : $(g);
|
|
@@ -3037,7 +3037,7 @@ function jo(e, t, n) {
|
|
|
3037
3037
|
return g === null || g === 34 || g === 39 || g === 47 || g === 60 || g === 61 || g === 62 || g === 96 || U(g) ? F(g) : (e.consume(g), $);
|
|
3038
3038
|
}
|
|
3039
3039
|
function B(g) {
|
|
3040
|
-
return g === 47 || g === 62 || _(g) ?
|
|
3040
|
+
return g === 47 || g === 62 || _(g) ? E(g) : n(g);
|
|
3041
3041
|
}
|
|
3042
3042
|
function x(g) {
|
|
3043
3043
|
return g === 62 ? (e.consume(g), T) : n(g);
|
|
@@ -3066,7 +3066,7 @@ function jo(e, t, n) {
|
|
|
3066
3066
|
function le(g) {
|
|
3067
3067
|
if (g === 62) {
|
|
3068
3068
|
const ae = l.toLowerCase();
|
|
3069
|
-
return
|
|
3069
|
+
return zt.includes(ae) ? (e.consume(g), oe) : P(g);
|
|
3070
3070
|
}
|
|
3071
3071
|
return J(g) && l.length < 8 ? (e.consume(g), l += String.fromCharCode(g), le) : P(g);
|
|
3072
3072
|
}
|
|
@@ -3111,7 +3111,7 @@ function $o(e, t, n) {
|
|
|
3111
3111
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), u;
|
|
3112
3112
|
}
|
|
3113
3113
|
function u(m) {
|
|
3114
|
-
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m),
|
|
3114
|
+
return m === 33 ? (e.consume(m), s) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), E) : J(m) ? (e.consume(m), $) : n(m);
|
|
3115
3115
|
}
|
|
3116
3116
|
function s(m) {
|
|
3117
3117
|
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), o = 0, d) : J(m) ? (e.consume(m), A) : n(m);
|
|
@@ -3133,9 +3133,9 @@ function $o(e, t, n) {
|
|
|
3133
3133
|
return m === oe.charCodeAt(o++) ? (e.consume(m), o === oe.length ? y : d) : n(m);
|
|
3134
3134
|
}
|
|
3135
3135
|
function y(m) {
|
|
3136
|
-
return m === null ? n(m) : m === 93 ? (e.consume(m),
|
|
3136
|
+
return m === null ? n(m) : m === 93 ? (e.consume(m), C) : v(m) ? (l = y, Y(m)) : (e.consume(m), y);
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function C(m) {
|
|
3139
3139
|
return m === 93 ? (e.consume(m), k) : y(m);
|
|
3140
3140
|
}
|
|
3141
3141
|
function k(m) {
|
|
@@ -3144,11 +3144,11 @@ function $o(e, t, n) {
|
|
|
3144
3144
|
function A(m) {
|
|
3145
3145
|
return m === null || m === 62 ? Q(m) : v(m) ? (l = A, Y(m)) : (e.consume(m), A);
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3148
|
-
return m === null ? n(m) : m === 63 ? (e.consume(m),
|
|
3147
|
+
function E(m) {
|
|
3148
|
+
return m === null ? n(m) : m === 63 ? (e.consume(m), L) : v(m) ? (l = E, Y(m)) : (e.consume(m), E);
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3151
|
-
return m === 62 ? Q(m) :
|
|
3150
|
+
function L(m) {
|
|
3151
|
+
return m === 62 ? Q(m) : E(m);
|
|
3152
3152
|
}
|
|
3153
3153
|
function F(m) {
|
|
3154
3154
|
return J(m) ? (e.consume(m), w) : n(m);
|
|
@@ -3196,7 +3196,7 @@ function $o(e, t, n) {
|
|
|
3196
3196
|
return e.enter("htmlTextData"), l(m);
|
|
3197
3197
|
}
|
|
3198
3198
|
}
|
|
3199
|
-
const
|
|
3199
|
+
const Kn = {
|
|
3200
3200
|
name: "labelEnd",
|
|
3201
3201
|
resolveAll: Xo,
|
|
3202
3202
|
resolveTo: Qo,
|
|
@@ -3297,7 +3297,7 @@ function Ko(e, t, n) {
|
|
|
3297
3297
|
return U(c) ? Ue(e, o)(c) : o(c);
|
|
3298
3298
|
}
|
|
3299
3299
|
function o(c) {
|
|
3300
|
-
return c === 41 ? f(c) :
|
|
3300
|
+
return c === 41 ? f(c) : vr(e, l, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(c);
|
|
3301
3301
|
}
|
|
3302
3302
|
function l(c) {
|
|
3303
3303
|
return U(c) ? Ue(e, u)(c) : f(c);
|
|
@@ -3306,7 +3306,7 @@ function Ko(e, t, n) {
|
|
|
3306
3306
|
return n(c);
|
|
3307
3307
|
}
|
|
3308
3308
|
function u(c) {
|
|
3309
|
-
return c === 34 || c === 39 || c === 40 ?
|
|
3309
|
+
return c === 34 || c === 39 || c === 40 ? Lr(e, s, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(c) : f(c);
|
|
3310
3310
|
}
|
|
3311
3311
|
function s(c) {
|
|
3312
3312
|
return U(c) ? Ue(e, f)(c) : f(c);
|
|
@@ -3319,7 +3319,7 @@ function Jo(e, t, n) {
|
|
|
3319
3319
|
const r = this;
|
|
3320
3320
|
return i;
|
|
3321
3321
|
function i(a) {
|
|
3322
|
-
return
|
|
3322
|
+
return zr.call(r, e, o, l, "reference", "referenceMarker", "referenceString")(a);
|
|
3323
3323
|
}
|
|
3324
3324
|
function o(a) {
|
|
3325
3325
|
return r.parser.defined.includes(se(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(a) : n(a);
|
|
@@ -3339,7 +3339,7 @@ function Zo(e, t, n) {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
const ea = {
|
|
3341
3341
|
name: "labelStartImage",
|
|
3342
|
-
resolveAll:
|
|
3342
|
+
resolveAll: Kn.resolveAll,
|
|
3343
3343
|
tokenize: na
|
|
3344
3344
|
};
|
|
3345
3345
|
function na(e, t, n) {
|
|
@@ -3357,7 +3357,7 @@ function na(e, t, n) {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
const ta = {
|
|
3359
3359
|
name: "labelStartLink",
|
|
3360
|
-
resolveAll:
|
|
3360
|
+
resolveAll: Kn.resolveAll,
|
|
3361
3361
|
tokenize: ra
|
|
3362
3362
|
};
|
|
3363
3363
|
function ra(e, t, n) {
|
|
@@ -3420,7 +3420,7 @@ function ua(e, t, n) {
|
|
|
3420
3420
|
return a;
|
|
3421
3421
|
function a(h) {
|
|
3422
3422
|
const d = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
|
|
3423
|
-
if (d === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker :
|
|
3423
|
+
if (d === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : Rn(h)) {
|
|
3424
3424
|
if (r.containerState.type || (r.containerState.type = d, e.enter(d, {
|
|
3425
3425
|
_container: !0
|
|
3426
3426
|
})), d === "listUnordered")
|
|
@@ -3431,7 +3431,7 @@ function ua(e, t, n) {
|
|
|
3431
3431
|
return n(h);
|
|
3432
3432
|
}
|
|
3433
3433
|
function u(h) {
|
|
3434
|
-
return
|
|
3434
|
+
return Rn(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);
|
|
3435
3435
|
}
|
|
3436
3436
|
function s(h) {
|
|
3437
3437
|
return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
|
|
@@ -3483,7 +3483,7 @@ function ha(e, t, n) {
|
|
|
3483
3483
|
return !_(o) && l && l[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
|
|
3484
3484
|
}
|
|
3485
3485
|
}
|
|
3486
|
-
const
|
|
3486
|
+
const Lt = {
|
|
3487
3487
|
name: "setextUnderline",
|
|
3488
3488
|
resolveTo: pa,
|
|
3489
3489
|
tokenize: ma
|
|
@@ -3563,11 +3563,11 @@ function da(e) {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
}
|
|
3565
3565
|
const ya = {
|
|
3566
|
-
resolveAll:
|
|
3567
|
-
}, ka =
|
|
3568
|
-
function
|
|
3566
|
+
resolveAll: Fr()
|
|
3567
|
+
}, ka = Dr("string"), xa = Dr("text");
|
|
3568
|
+
function Dr(e) {
|
|
3569
3569
|
return {
|
|
3570
|
-
resolveAll:
|
|
3570
|
+
resolveAll: Fr(e === "text" ? ba : void 0),
|
|
3571
3571
|
tokenize: t
|
|
3572
3572
|
};
|
|
3573
3573
|
function t(n) {
|
|
@@ -3601,7 +3601,7 @@ function Lr(e) {
|
|
|
3601
3601
|
}
|
|
3602
3602
|
}
|
|
3603
3603
|
}
|
|
3604
|
-
function
|
|
3604
|
+
function Fr(e) {
|
|
3605
3605
|
return t;
|
|
3606
3606
|
function t(n, r) {
|
|
3607
3607
|
let i = -1, o;
|
|
@@ -3666,7 +3666,7 @@ const wa = {
|
|
|
3666
3666
|
55: Z,
|
|
3667
3667
|
56: Z,
|
|
3668
3668
|
57: Z,
|
|
3669
|
-
62:
|
|
3669
|
+
62: Ir
|
|
3670
3670
|
}, Sa = {
|
|
3671
3671
|
91: Ao
|
|
3672
3672
|
}, Ca = {
|
|
@@ -3676,30 +3676,30 @@ const wa = {
|
|
|
3676
3676
|
}, Ea = {
|
|
3677
3677
|
35: Do,
|
|
3678
3678
|
42: en,
|
|
3679
|
-
45: [
|
|
3679
|
+
45: [Lt, en],
|
|
3680
3680
|
60: Oo,
|
|
3681
|
-
61:
|
|
3681
|
+
61: Lt,
|
|
3682
3682
|
95: en,
|
|
3683
|
-
96:
|
|
3684
|
-
126:
|
|
3683
|
+
96: vt,
|
|
3684
|
+
126: vt
|
|
3685
3685
|
}, Ia = {
|
|
3686
|
-
38:
|
|
3687
|
-
92:
|
|
3686
|
+
38: Tr,
|
|
3687
|
+
92: Ar
|
|
3688
3688
|
}, Aa = {
|
|
3689
3689
|
[-5]: yn,
|
|
3690
3690
|
[-4]: yn,
|
|
3691
3691
|
[-3]: yn,
|
|
3692
3692
|
33: ea,
|
|
3693
|
-
38:
|
|
3694
|
-
42:
|
|
3693
|
+
38: Tr,
|
|
3694
|
+
42: On,
|
|
3695
3695
|
60: [no, Vo],
|
|
3696
3696
|
91: ta,
|
|
3697
|
-
92: [zo,
|
|
3698
|
-
93:
|
|
3699
|
-
95:
|
|
3697
|
+
92: [zo, Ar],
|
|
3698
|
+
93: Kn,
|
|
3699
|
+
95: On,
|
|
3700
3700
|
96: mo
|
|
3701
3701
|
}, Ta = {
|
|
3702
|
-
null: [
|
|
3702
|
+
null: [On, ya]
|
|
3703
3703
|
}, Pa = {
|
|
3704
3704
|
null: [42, 95]
|
|
3705
3705
|
}, va = {
|
|
@@ -3730,8 +3730,8 @@ function La(e, t, n) {
|
|
|
3730
3730
|
attempt: M(F),
|
|
3731
3731
|
check: M(w),
|
|
3732
3732
|
consume: A,
|
|
3733
|
-
enter:
|
|
3734
|
-
exit:
|
|
3733
|
+
enter: E,
|
|
3734
|
+
exit: L,
|
|
3735
3735
|
interrupt: M(w, {
|
|
3736
3736
|
interrupt: !0
|
|
3737
3737
|
})
|
|
@@ -3750,7 +3750,7 @@ function La(e, t, n) {
|
|
|
3750
3750
|
let f = t.tokenize.call(s, u);
|
|
3751
3751
|
return t.resolveAll && o.push(t), s;
|
|
3752
3752
|
function c(T) {
|
|
3753
|
-
return l = ie(l, T),
|
|
3753
|
+
return l = ie(l, T), C(), l[l.length - 1] !== null ? [] : ($(t, 0), s.events = cn(o, s.events, s), s.events);
|
|
3754
3754
|
}
|
|
3755
3755
|
function p(T, P) {
|
|
3756
3756
|
return Fa(h(T), P);
|
|
@@ -3777,7 +3777,7 @@ function La(e, t, n) {
|
|
|
3777
3777
|
function y(T) {
|
|
3778
3778
|
i[T.line] = T.column, x();
|
|
3779
3779
|
}
|
|
3780
|
-
function
|
|
3780
|
+
function C() {
|
|
3781
3781
|
let T;
|
|
3782
3782
|
for (; r._index < l.length; ) {
|
|
3783
3783
|
const P = l[r._index];
|
|
@@ -3797,11 +3797,11 @@ function La(e, t, n) {
|
|
|
3797
3797
|
/** @type {string} */
|
|
3798
3798
|
l[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = T;
|
|
3799
3799
|
}
|
|
3800
|
-
function
|
|
3800
|
+
function E(T, P) {
|
|
3801
3801
|
const j = P || {};
|
|
3802
3802
|
return j.type = T, j.start = d(), s.events.push(["enter", j, s]), a.push(j), j;
|
|
3803
3803
|
}
|
|
3804
|
-
function
|
|
3804
|
+
function L(T) {
|
|
3805
3805
|
const P = a.pop();
|
|
3806
3806
|
return P.end = d(), s.events.push(["exit", P, s]), P;
|
|
3807
3807
|
}
|
|
@@ -3828,11 +3828,11 @@ function La(e, t, n) {
|
|
|
3828
3828
|
function oe(X) {
|
|
3829
3829
|
return Oe;
|
|
3830
3830
|
function Oe(ye) {
|
|
3831
|
-
const
|
|
3831
|
+
const Te = ye !== null && X[ye], Pe = ye !== null && X.null, Qe = [
|
|
3832
3832
|
// To do: add more extension tests.
|
|
3833
3833
|
/* c8 ignore next 2 */
|
|
3834
|
-
...Array.isArray(
|
|
3835
|
-
...Array.isArray(
|
|
3834
|
+
...Array.isArray(Te) ? Te : Te ? [Te] : [],
|
|
3835
|
+
...Array.isArray(Pe) ? Pe : Pe ? [Pe] : []
|
|
3836
3836
|
];
|
|
3837
3837
|
return pe(Qe)(ye);
|
|
3838
3838
|
}
|
|
@@ -3843,21 +3843,21 @@ function La(e, t, n) {
|
|
|
3843
3843
|
function g(X) {
|
|
3844
3844
|
return Oe;
|
|
3845
3845
|
function Oe(ye) {
|
|
3846
|
-
return m = B(), he = X, X.partial || (s.currentConstruct = X), X.name && s.parser.constructs.disable.null.includes(X.name) ?
|
|
3846
|
+
return m = B(), he = X, X.partial || (s.currentConstruct = X), X.name && s.parser.constructs.disable.null.includes(X.name) ? we() : X.tokenize.call(
|
|
3847
3847
|
// If we do have fields, create an object w/ `context` as its
|
|
3848
3848
|
// prototype.
|
|
3849
3849
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
3850
3850
|
P ? Object.assign(Object.create(s), P) : s,
|
|
3851
3851
|
u,
|
|
3852
3852
|
ae,
|
|
3853
|
-
|
|
3853
|
+
we
|
|
3854
3854
|
)(ye);
|
|
3855
3855
|
}
|
|
3856
3856
|
}
|
|
3857
3857
|
function ae(X) {
|
|
3858
3858
|
return T(he, m), N;
|
|
3859
3859
|
}
|
|
3860
|
-
function
|
|
3860
|
+
function we(X) {
|
|
3861
3861
|
return m.restore(), ++le < Y.length ? g(Y[le]) : Q;
|
|
3862
3862
|
}
|
|
3863
3863
|
}
|
|
@@ -3937,7 +3937,7 @@ function _a(e) {
|
|
|
3937
3937
|
const r = {
|
|
3938
3938
|
constructs: (
|
|
3939
3939
|
/** @type {FullNormalizedExtension} */
|
|
3940
|
-
|
|
3940
|
+
Cr([za, ...(e || {}).extensions || []])
|
|
3941
3941
|
),
|
|
3942
3942
|
content: i(Xl),
|
|
3943
3943
|
defined: [],
|
|
@@ -3956,11 +3956,11 @@ function _a(e) {
|
|
|
3956
3956
|
}
|
|
3957
3957
|
}
|
|
3958
3958
|
function Ra(e) {
|
|
3959
|
-
for (; !
|
|
3959
|
+
for (; !Pr(e); )
|
|
3960
3960
|
;
|
|
3961
3961
|
return e;
|
|
3962
3962
|
}
|
|
3963
|
-
const
|
|
3963
|
+
const Dt = /[\0\t\n\r]/g;
|
|
3964
3964
|
function Oa() {
|
|
3965
3965
|
let e = 1, t = "", n = !0, r;
|
|
3966
3966
|
return i;
|
|
@@ -3968,7 +3968,7 @@ function Oa() {
|
|
|
3968
3968
|
const u = [];
|
|
3969
3969
|
let s, f, c, p, h;
|
|
3970
3970
|
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; ) {
|
|
3971
|
-
if (
|
|
3971
|
+
if (Dt.lastIndex = c, s = Dt.exec(o), p = s && s.index !== void 0 ? s.index : o.length, h = o.charCodeAt(p), !s) {
|
|
3972
3972
|
t = o.slice(c);
|
|
3973
3973
|
break;
|
|
3974
3974
|
}
|
|
@@ -4005,11 +4005,11 @@ function Ba(e, t, n) {
|
|
|
4005
4005
|
return t;
|
|
4006
4006
|
if (n.charCodeAt(0) === 35) {
|
|
4007
4007
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
|
4008
|
-
return
|
|
4008
|
+
return Er(n.slice(o ? 2 : 1), o ? 16 : 10);
|
|
4009
4009
|
}
|
|
4010
|
-
return
|
|
4010
|
+
return Gn(n) || e;
|
|
4011
4011
|
}
|
|
4012
|
-
const
|
|
4012
|
+
const _r = {}.hasOwnProperty;
|
|
4013
4013
|
function ja(e, t, n) {
|
|
4014
4014
|
return typeof t != "string" && (n = t, t = void 0), Ha(n)(Ra(_a(n).document().write(Oa()(e, t, !0))));
|
|
4015
4015
|
}
|
|
@@ -4018,61 +4018,61 @@ function Ha(e) {
|
|
|
4018
4018
|
transforms: [],
|
|
4019
4019
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
4020
4020
|
enter: {
|
|
4021
|
-
autolink: o(
|
|
4021
|
+
autolink: o(ct),
|
|
4022
4022
|
autolinkProtocol: B,
|
|
4023
4023
|
autolinkEmail: B,
|
|
4024
|
-
atxHeading: o(
|
|
4025
|
-
blockQuote: o(
|
|
4024
|
+
atxHeading: o(at),
|
|
4025
|
+
blockQuote: o(Pe),
|
|
4026
4026
|
characterEscape: B,
|
|
4027
4027
|
characterReference: B,
|
|
4028
4028
|
codeFenced: o(Qe),
|
|
4029
4029
|
codeFencedFenceInfo: l,
|
|
4030
4030
|
codeFencedFenceMeta: l,
|
|
4031
4031
|
codeIndented: o(Qe, l),
|
|
4032
|
-
codeText: o(
|
|
4032
|
+
codeText: o(gi, l),
|
|
4033
4033
|
codeTextData: B,
|
|
4034
4034
|
data: B,
|
|
4035
4035
|
codeFlowValue: B,
|
|
4036
|
-
definition: o(
|
|
4036
|
+
definition: o(di),
|
|
4037
4037
|
definitionDestinationString: l,
|
|
4038
4038
|
definitionLabelString: l,
|
|
4039
4039
|
definitionTitleString: l,
|
|
4040
|
-
emphasis: o(
|
|
4041
|
-
hardBreakEscape: o(
|
|
4042
|
-
hardBreakTrailing: o(
|
|
4043
|
-
htmlFlow: o(
|
|
4040
|
+
emphasis: o(yi),
|
|
4041
|
+
hardBreakEscape: o(ut),
|
|
4042
|
+
hardBreakTrailing: o(ut),
|
|
4043
|
+
htmlFlow: o(st, l),
|
|
4044
4044
|
htmlFlowData: B,
|
|
4045
|
-
htmlText: o(
|
|
4045
|
+
htmlText: o(st, l),
|
|
4046
4046
|
htmlTextData: B,
|
|
4047
|
-
image: o(
|
|
4047
|
+
image: o(ki),
|
|
4048
4048
|
label: l,
|
|
4049
|
-
link: o(
|
|
4050
|
-
listItem: o(
|
|
4049
|
+
link: o(ct),
|
|
4050
|
+
listItem: o(xi),
|
|
4051
4051
|
listItemValue: p,
|
|
4052
|
-
listOrdered: o(
|
|
4053
|
-
listUnordered: o(
|
|
4054
|
-
paragraph: o(
|
|
4052
|
+
listOrdered: o(ft, c),
|
|
4053
|
+
listUnordered: o(ft),
|
|
4054
|
+
paragraph: o(bi),
|
|
4055
4055
|
reference: g,
|
|
4056
4056
|
referenceString: l,
|
|
4057
4057
|
resourceDestinationString: l,
|
|
4058
4058
|
resourceTitleString: l,
|
|
4059
|
-
setextHeading: o(
|
|
4060
|
-
strong: o(
|
|
4061
|
-
thematicBreak: o(
|
|
4059
|
+
setextHeading: o(at),
|
|
4060
|
+
strong: o(wi),
|
|
4061
|
+
thematicBreak: o(Ci)
|
|
4062
4062
|
},
|
|
4063
4063
|
exit: {
|
|
4064
4064
|
atxHeading: u(),
|
|
4065
4065
|
atxHeadingSequence: F,
|
|
4066
4066
|
autolink: u(),
|
|
4067
|
-
autolinkEmail:
|
|
4067
|
+
autolinkEmail: Te,
|
|
4068
4068
|
autolinkProtocol: ye,
|
|
4069
4069
|
blockQuote: u(),
|
|
4070
4070
|
characterEscapeValue: x,
|
|
4071
|
-
characterReferenceMarkerHexadecimal:
|
|
4072
|
-
characterReferenceMarkerNumeric:
|
|
4071
|
+
characterReferenceMarkerHexadecimal: we,
|
|
4072
|
+
characterReferenceMarkerNumeric: we,
|
|
4073
4073
|
characterReferenceValue: X,
|
|
4074
4074
|
characterReference: Oe,
|
|
4075
|
-
codeFenced: u(
|
|
4075
|
+
codeFenced: u(C),
|
|
4076
4076
|
codeFencedFence: y,
|
|
4077
4077
|
codeFencedFenceInfo: h,
|
|
4078
4078
|
codeFencedFenceMeta: d,
|
|
@@ -4082,9 +4082,9 @@ function Ha(e) {
|
|
|
4082
4082
|
codeTextData: x,
|
|
4083
4083
|
data: x,
|
|
4084
4084
|
definition: u(),
|
|
4085
|
-
definitionDestinationString:
|
|
4085
|
+
definitionDestinationString: L,
|
|
4086
4086
|
definitionLabelString: A,
|
|
4087
|
-
definitionTitleString:
|
|
4087
|
+
definitionTitleString: E,
|
|
4088
4088
|
emphasis: u(),
|
|
4089
4089
|
hardBreakEscape: u(P),
|
|
4090
4090
|
hardBreakTrailing: u(P),
|
|
@@ -4112,7 +4112,7 @@ function Ha(e) {
|
|
|
4112
4112
|
thematicBreak: u()
|
|
4113
4113
|
}
|
|
4114
4114
|
};
|
|
4115
|
-
|
|
4115
|
+
Rr(t, (e || {}).mdastExtensions || []);
|
|
4116
4116
|
const n = {};
|
|
4117
4117
|
return r;
|
|
4118
4118
|
function r(b) {
|
|
@@ -4141,13 +4141,13 @@ function Ha(e) {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
for (H = -1; ++H < b.length; ) {
|
|
4143
4143
|
const ue = t[b[H][0]];
|
|
4144
|
-
|
|
4144
|
+
_r.call(ue, b[H][1].type) && ue[b[H][1].type].call(Object.assign({
|
|
4145
4145
|
sliceSerialize: b[H][2].sliceSerialize
|
|
4146
4146
|
}, z), b[H][1]);
|
|
4147
4147
|
}
|
|
4148
4148
|
if (z.tokenStack.length > 0) {
|
|
4149
4149
|
const ue = z.tokenStack[z.tokenStack.length - 1];
|
|
4150
|
-
(ue[1] ||
|
|
4150
|
+
(ue[1] || Ft).call(z, void 0, ue[0]);
|
|
4151
4151
|
}
|
|
4152
4152
|
for (I.position = {
|
|
4153
4153
|
start: ke(b.length > 0 ? b[0][1].start : {
|
|
@@ -4165,7 +4165,7 @@ function Ha(e) {
|
|
|
4165
4165
|
return I;
|
|
4166
4166
|
}
|
|
4167
4167
|
function i(b, I, z) {
|
|
4168
|
-
let R = I - 1, H = -1, ue = !1,
|
|
4168
|
+
let R = I - 1, H = -1, ue = !1, Se, me, Me, Ne;
|
|
4169
4169
|
for (; ++R <= z; ) {
|
|
4170
4170
|
const ne = b[R];
|
|
4171
4171
|
switch (ne[1].type) {
|
|
@@ -4176,7 +4176,7 @@ function Ha(e) {
|
|
|
4176
4176
|
break;
|
|
4177
4177
|
}
|
|
4178
4178
|
case "lineEndingBlank": {
|
|
4179
|
-
ne[0] === "enter" && (
|
|
4179
|
+
ne[0] === "enter" && (Se && !Ne && !H && !Me && (Me = R), Ne = void 0);
|
|
4180
4180
|
break;
|
|
4181
4181
|
}
|
|
4182
4182
|
case "linePrefix":
|
|
@@ -4189,26 +4189,26 @@ function Ha(e) {
|
|
|
4189
4189
|
Ne = void 0;
|
|
4190
4190
|
}
|
|
4191
4191
|
if (!H && ne[0] === "enter" && ne[1].type === "listItemPrefix" || H === -1 && ne[0] === "exit" && (ne[1].type === "listUnordered" || ne[1].type === "listOrdered")) {
|
|
4192
|
-
if (
|
|
4193
|
-
let
|
|
4194
|
-
for (me = void 0;
|
|
4195
|
-
const ge = b[
|
|
4192
|
+
if (Se) {
|
|
4193
|
+
let ve = R;
|
|
4194
|
+
for (me = void 0; ve--; ) {
|
|
4195
|
+
const ge = b[ve];
|
|
4196
4196
|
if (ge[1].type === "lineEnding" || ge[1].type === "lineEndingBlank") {
|
|
4197
4197
|
if (ge[0] === "exit") continue;
|
|
4198
|
-
me && (b[me][1].type = "lineEndingBlank", ue = !0), ge[1].type = "lineEnding", me =
|
|
4198
|
+
me && (b[me][1].type = "lineEndingBlank", ue = !0), ge[1].type = "lineEnding", me = ve;
|
|
4199
4199
|
} else if (!(ge[1].type === "linePrefix" || ge[1].type === "blockQuotePrefix" || ge[1].type === "blockQuotePrefixWhitespace" || ge[1].type === "blockQuoteMarker" || ge[1].type === "listItemIndent")) break;
|
|
4200
4200
|
}
|
|
4201
|
-
Me && (!me || Me < me) && (
|
|
4201
|
+
Me && (!me || Me < me) && (Se._spread = !0), Se.end = Object.assign({}, me ? b[me][1].start : ne[1].end), b.splice(me || R, 0, ["exit", Se, ne[2]]), R++, z++;
|
|
4202
4202
|
}
|
|
4203
4203
|
if (ne[1].type === "listItemPrefix") {
|
|
4204
|
-
const
|
|
4204
|
+
const ve = {
|
|
4205
4205
|
type: "listItem",
|
|
4206
4206
|
_spread: !1,
|
|
4207
4207
|
start: Object.assign({}, ne[1].start),
|
|
4208
4208
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4209
4209
|
end: void 0
|
|
4210
4210
|
};
|
|
4211
|
-
|
|
4211
|
+
Se = ve, b.splice(R, 0, ["enter", ve, ne[2]]), R++, z++, Me = void 0, Ne = !0;
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
4214
|
}
|
|
@@ -4242,7 +4242,7 @@ function Ha(e) {
|
|
|
4242
4242
|
function s(b, I) {
|
|
4243
4243
|
const z = this.stack.pop(), R = this.tokenStack.pop();
|
|
4244
4244
|
if (R)
|
|
4245
|
-
R[0].type !== b.type && (I ? I.call(this, b, R[0]) : (R[1] ||
|
|
4245
|
+
R[0].type !== b.type && (I ? I.call(this, b, R[0]) : (R[1] || Ft).call(this, b, R[0]));
|
|
4246
4246
|
else throw new Error("Cannot close `" + b.type + "` (" + He({
|
|
4247
4247
|
start: b.start,
|
|
4248
4248
|
end: b.end
|
|
@@ -4250,7 +4250,7 @@ function Ha(e) {
|
|
|
4250
4250
|
z.position.end = ke(b.end);
|
|
4251
4251
|
}
|
|
4252
4252
|
function f() {
|
|
4253
|
-
return
|
|
4253
|
+
return Qn(this.stack.pop());
|
|
4254
4254
|
}
|
|
4255
4255
|
function c() {
|
|
4256
4256
|
this.data.expectingFirstListItemValue = !0;
|
|
@@ -4272,7 +4272,7 @@ function Ha(e) {
|
|
|
4272
4272
|
function y() {
|
|
4273
4273
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
4274
4274
|
}
|
|
4275
|
-
function
|
|
4275
|
+
function C() {
|
|
4276
4276
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4277
4277
|
I.value = b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
4278
4278
|
}
|
|
@@ -4284,11 +4284,11 @@ function Ha(e) {
|
|
|
4284
4284
|
const I = this.resume(), z = this.stack[this.stack.length - 1];
|
|
4285
4285
|
z.label = I, z.identifier = se(this.sliceSerialize(b)).toLowerCase();
|
|
4286
4286
|
}
|
|
4287
|
-
function
|
|
4287
|
+
function E() {
|
|
4288
4288
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4289
4289
|
I.title = b;
|
|
4290
4290
|
}
|
|
4291
|
-
function
|
|
4291
|
+
function L() {
|
|
4292
4292
|
const b = this.resume(), I = this.stack[this.stack.length - 1];
|
|
4293
4293
|
I.url = b;
|
|
4294
4294
|
}
|
|
@@ -4312,7 +4312,7 @@ function Ha(e) {
|
|
|
4312
4312
|
function B(b) {
|
|
4313
4313
|
const z = this.stack[this.stack.length - 1].children;
|
|
4314
4314
|
let R = z[z.length - 1];
|
|
4315
|
-
(!R || R.type !== "text") && (R =
|
|
4315
|
+
(!R || R.type !== "text") && (R = Si(), R.position = {
|
|
4316
4316
|
start: ke(b.start),
|
|
4317
4317
|
// @ts-expect-error: we’ll add `end` later.
|
|
4318
4318
|
end: void 0
|
|
@@ -4394,13 +4394,13 @@ function Ha(e) {
|
|
|
4394
4394
|
const I = this.resume(), z = this.stack[this.stack.length - 1];
|
|
4395
4395
|
z.label = I, z.identifier = se(this.sliceSerialize(b)).toLowerCase(), this.data.referenceType = "full";
|
|
4396
4396
|
}
|
|
4397
|
-
function
|
|
4397
|
+
function we(b) {
|
|
4398
4398
|
this.data.characterReferenceType = b.type;
|
|
4399
4399
|
}
|
|
4400
4400
|
function X(b) {
|
|
4401
4401
|
const I = this.sliceSerialize(b), z = this.data.characterReferenceType;
|
|
4402
4402
|
let R;
|
|
4403
|
-
z ? (R =
|
|
4403
|
+
z ? (R = Er(I, z === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : R = Gn(I);
|
|
4404
4404
|
const H = this.stack[this.stack.length - 1];
|
|
4405
4405
|
H.value += R;
|
|
4406
4406
|
}
|
|
@@ -4413,12 +4413,12 @@ function Ha(e) {
|
|
|
4413
4413
|
const I = this.stack[this.stack.length - 1];
|
|
4414
4414
|
I.url = this.sliceSerialize(b);
|
|
4415
4415
|
}
|
|
4416
|
-
function
|
|
4416
|
+
function Te(b) {
|
|
4417
4417
|
x.call(this, b);
|
|
4418
4418
|
const I = this.stack[this.stack.length - 1];
|
|
4419
4419
|
I.url = "mailto:" + this.sliceSerialize(b);
|
|
4420
4420
|
}
|
|
4421
|
-
function
|
|
4421
|
+
function Pe() {
|
|
4422
4422
|
return {
|
|
4423
4423
|
type: "blockquote",
|
|
4424
4424
|
children: []
|
|
@@ -4432,13 +4432,13 @@ function Ha(e) {
|
|
|
4432
4432
|
value: ""
|
|
4433
4433
|
};
|
|
4434
4434
|
}
|
|
4435
|
-
function
|
|
4435
|
+
function gi() {
|
|
4436
4436
|
return {
|
|
4437
4437
|
type: "inlineCode",
|
|
4438
4438
|
value: ""
|
|
4439
4439
|
};
|
|
4440
4440
|
}
|
|
4441
|
-
function
|
|
4441
|
+
function di() {
|
|
4442
4442
|
return {
|
|
4443
4443
|
type: "definition",
|
|
4444
4444
|
identifier: "",
|
|
@@ -4447,13 +4447,13 @@ function Ha(e) {
|
|
|
4447
4447
|
url: ""
|
|
4448
4448
|
};
|
|
4449
4449
|
}
|
|
4450
|
-
function
|
|
4450
|
+
function yi() {
|
|
4451
4451
|
return {
|
|
4452
4452
|
type: "emphasis",
|
|
4453
4453
|
children: []
|
|
4454
4454
|
};
|
|
4455
4455
|
}
|
|
4456
|
-
function
|
|
4456
|
+
function at() {
|
|
4457
4457
|
return {
|
|
4458
4458
|
type: "heading",
|
|
4459
4459
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -4461,18 +4461,18 @@ function Ha(e) {
|
|
|
4461
4461
|
children: []
|
|
4462
4462
|
};
|
|
4463
4463
|
}
|
|
4464
|
-
function
|
|
4464
|
+
function ut() {
|
|
4465
4465
|
return {
|
|
4466
4466
|
type: "break"
|
|
4467
4467
|
};
|
|
4468
4468
|
}
|
|
4469
|
-
function
|
|
4469
|
+
function st() {
|
|
4470
4470
|
return {
|
|
4471
4471
|
type: "html",
|
|
4472
4472
|
value: ""
|
|
4473
4473
|
};
|
|
4474
4474
|
}
|
|
4475
|
-
function
|
|
4475
|
+
function ki() {
|
|
4476
4476
|
return {
|
|
4477
4477
|
type: "image",
|
|
4478
4478
|
title: null,
|
|
@@ -4480,7 +4480,7 @@ function Ha(e) {
|
|
|
4480
4480
|
alt: null
|
|
4481
4481
|
};
|
|
4482
4482
|
}
|
|
4483
|
-
function
|
|
4483
|
+
function ct() {
|
|
4484
4484
|
return {
|
|
4485
4485
|
type: "link",
|
|
4486
4486
|
title: null,
|
|
@@ -4488,7 +4488,7 @@ function Ha(e) {
|
|
|
4488
4488
|
children: []
|
|
4489
4489
|
};
|
|
4490
4490
|
}
|
|
4491
|
-
function
|
|
4491
|
+
function ft(b) {
|
|
4492
4492
|
return {
|
|
4493
4493
|
type: "list",
|
|
4494
4494
|
ordered: b.type === "listOrdered",
|
|
@@ -4497,7 +4497,7 @@ function Ha(e) {
|
|
|
4497
4497
|
children: []
|
|
4498
4498
|
};
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4500
|
+
function xi(b) {
|
|
4501
4501
|
return {
|
|
4502
4502
|
type: "listItem",
|
|
4503
4503
|
spread: b._spread,
|
|
@@ -4505,25 +4505,25 @@ function Ha(e) {
|
|
|
4505
4505
|
children: []
|
|
4506
4506
|
};
|
|
4507
4507
|
}
|
|
4508
|
-
function
|
|
4508
|
+
function bi() {
|
|
4509
4509
|
return {
|
|
4510
4510
|
type: "paragraph",
|
|
4511
4511
|
children: []
|
|
4512
4512
|
};
|
|
4513
4513
|
}
|
|
4514
|
-
function
|
|
4514
|
+
function wi() {
|
|
4515
4515
|
return {
|
|
4516
4516
|
type: "strong",
|
|
4517
4517
|
children: []
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4520
|
+
function Si() {
|
|
4521
4521
|
return {
|
|
4522
4522
|
type: "text",
|
|
4523
4523
|
value: ""
|
|
4524
4524
|
};
|
|
4525
4525
|
}
|
|
4526
|
-
function
|
|
4526
|
+
function Ci() {
|
|
4527
4527
|
return {
|
|
4528
4528
|
type: "thematicBreak"
|
|
4529
4529
|
};
|
|
@@ -4536,17 +4536,17 @@ function ke(e) {
|
|
|
4536
4536
|
offset: e.offset
|
|
4537
4537
|
};
|
|
4538
4538
|
}
|
|
4539
|
-
function
|
|
4539
|
+
function Rr(e, t) {
|
|
4540
4540
|
let n = -1;
|
|
4541
4541
|
for (; ++n < t.length; ) {
|
|
4542
4542
|
const r = t[n];
|
|
4543
|
-
Array.isArray(r) ?
|
|
4543
|
+
Array.isArray(r) ? Rr(e, r) : Ua(e, r);
|
|
4544
4544
|
}
|
|
4545
4545
|
}
|
|
4546
4546
|
function Ua(e, t) {
|
|
4547
4547
|
let n;
|
|
4548
4548
|
for (n in t)
|
|
4549
|
-
if (
|
|
4549
|
+
if (_r.call(t, n))
|
|
4550
4550
|
switch (n) {
|
|
4551
4551
|
case "canContainEols": {
|
|
4552
4552
|
const r = t[n];
|
|
@@ -4566,7 +4566,7 @@ function Ua(e, t) {
|
|
|
4566
4566
|
}
|
|
4567
4567
|
}
|
|
4568
4568
|
}
|
|
4569
|
-
function
|
|
4569
|
+
function Ft(e, t) {
|
|
4570
4570
|
throw e ? new Error("Cannot close `" + e.type + "` (" + He({
|
|
4571
4571
|
start: e.start,
|
|
4572
4572
|
end: e.end
|
|
@@ -4676,7 +4676,7 @@ function Ka(e, t) {
|
|
|
4676
4676
|
return e.patch(t, n), e.applyData(t, n);
|
|
4677
4677
|
}
|
|
4678
4678
|
}
|
|
4679
|
-
function
|
|
4679
|
+
function Or(e, t) {
|
|
4680
4680
|
const n = t.referenceType;
|
|
4681
4681
|
let r = "]";
|
|
4682
4682
|
if (n === "collapsed" ? r += "[]" : n === "full" && (r += "[" + (t.label || t.identifier) + "]"), t.type === "imageReference")
|
|
@@ -4689,7 +4689,7 @@ function Rr(e, t) {
|
|
|
4689
4689
|
function Ja(e, t) {
|
|
4690
4690
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4691
4691
|
if (!r)
|
|
4692
|
-
return
|
|
4692
|
+
return Or(e, t);
|
|
4693
4693
|
const i = { src: Re(r.url || ""), alt: t.alt };
|
|
4694
4694
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4695
4695
|
const o = { type: "element", tagName: "img", properties: i, children: [] };
|
|
@@ -4715,7 +4715,7 @@ function eu(e, t) {
|
|
|
4715
4715
|
function nu(e, t) {
|
|
4716
4716
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
4717
4717
|
if (!r)
|
|
4718
|
-
return
|
|
4718
|
+
return Or(e, t);
|
|
4719
4719
|
const i = { href: Re(r.url || "") };
|
|
4720
4720
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
4721
4721
|
const o = {
|
|
@@ -4738,7 +4738,7 @@ function tu(e, t) {
|
|
|
4738
4738
|
return e.patch(t, r), e.applyData(t, r);
|
|
4739
4739
|
}
|
|
4740
4740
|
function ru(e, t, n) {
|
|
4741
|
-
const r = e.all(t), i = n ? iu(n) :
|
|
4741
|
+
const r = e.all(t), i = n ? iu(n) : Mr(t), o = {}, l = [];
|
|
4742
4742
|
if (typeof t.checked == "boolean") {
|
|
4743
4743
|
const f = r[0];
|
|
4744
4744
|
let c;
|
|
@@ -4768,11 +4768,11 @@ function iu(e) {
|
|
|
4768
4768
|
const n = e.children;
|
|
4769
4769
|
let r = -1;
|
|
4770
4770
|
for (; !t && ++r < n.length; )
|
|
4771
|
-
t =
|
|
4771
|
+
t = Mr(n[r]);
|
|
4772
4772
|
}
|
|
4773
4773
|
return t;
|
|
4774
4774
|
}
|
|
4775
|
-
function
|
|
4775
|
+
function Mr(e) {
|
|
4776
4776
|
const t = e.spread;
|
|
4777
4777
|
return t ?? e.children.length > 1;
|
|
4778
4778
|
}
|
|
@@ -4833,7 +4833,7 @@ function su(e, t) {
|
|
|
4833
4833
|
tagName: "tbody",
|
|
4834
4834
|
properties: {},
|
|
4835
4835
|
children: e.wrap(n, !0)
|
|
4836
|
-
}, a =
|
|
4836
|
+
}, a = qn(t.children[1]), u = dr(t.children[t.children.length - 1]);
|
|
4837
4837
|
a && u && (l.position = { start: a, end: u }), i.push(l);
|
|
4838
4838
|
}
|
|
4839
4839
|
const o = {
|
|
@@ -4872,28 +4872,28 @@ function fu(e, t) {
|
|
|
4872
4872
|
};
|
|
4873
4873
|
return e.patch(t, n), e.applyData(t, n);
|
|
4874
4874
|
}
|
|
4875
|
-
const
|
|
4875
|
+
const _t = 9, Rt = 32;
|
|
4876
4876
|
function hu(e) {
|
|
4877
4877
|
const t = String(e), n = /\r?\n|\r/g;
|
|
4878
4878
|
let r = n.exec(t), i = 0;
|
|
4879
4879
|
const o = [];
|
|
4880
4880
|
for (; r; )
|
|
4881
4881
|
o.push(
|
|
4882
|
-
|
|
4882
|
+
Ot(t.slice(i, r.index), i > 0, !0),
|
|
4883
4883
|
r[0]
|
|
4884
4884
|
), i = r.index + r[0].length, r = n.exec(t);
|
|
4885
|
-
return o.push(
|
|
4885
|
+
return o.push(Ot(t.slice(i), i > 0, !1)), o.join("");
|
|
4886
4886
|
}
|
|
4887
|
-
function
|
|
4887
|
+
function Ot(e, t, n) {
|
|
4888
4888
|
let r = 0, i = e.length;
|
|
4889
4889
|
if (t) {
|
|
4890
4890
|
let o = e.codePointAt(r);
|
|
4891
|
-
for (; o ===
|
|
4891
|
+
for (; o === _t || o === Rt; )
|
|
4892
4892
|
r++, o = e.codePointAt(r);
|
|
4893
4893
|
}
|
|
4894
4894
|
if (n) {
|
|
4895
4895
|
let o = e.codePointAt(i - 1);
|
|
4896
|
-
for (; o ===
|
|
4896
|
+
for (; o === _t || o === Rt; )
|
|
4897
4897
|
i--, o = e.codePointAt(i - 1);
|
|
4898
4898
|
}
|
|
4899
4899
|
return i > r ? e.slice(r, i) : "";
|
|
@@ -4943,14 +4943,14 @@ const gu = {
|
|
|
4943
4943
|
};
|
|
4944
4944
|
function Ge() {
|
|
4945
4945
|
}
|
|
4946
|
-
const
|
|
4946
|
+
const Nr = -1, fn = 0, Ve = 1, ln = 2, Jn = 3, Zn = 4, et = 5, nt = 6, Br = 7, jr = 8, Mt = typeof self == "object" ? self : globalThis, du = (e, t) => {
|
|
4947
4947
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
4948
4948
|
if (e.has(i))
|
|
4949
4949
|
return e.get(i);
|
|
4950
4950
|
const [o, l] = t[i];
|
|
4951
4951
|
switch (o) {
|
|
4952
4952
|
case fn:
|
|
4953
|
-
case
|
|
4953
|
+
case Nr:
|
|
4954
4954
|
return n(l, i);
|
|
4955
4955
|
case Ve: {
|
|
4956
4956
|
const a = n([], i);
|
|
@@ -4964,29 +4964,29 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
4964
4964
|
a[r(u)] = r(s);
|
|
4965
4965
|
return a;
|
|
4966
4966
|
}
|
|
4967
|
-
case
|
|
4967
|
+
case Jn:
|
|
4968
4968
|
return n(new Date(l), i);
|
|
4969
|
-
case
|
|
4969
|
+
case Zn: {
|
|
4970
4970
|
const { source: a, flags: u } = l;
|
|
4971
4971
|
return n(new RegExp(a, u), i);
|
|
4972
4972
|
}
|
|
4973
|
-
case
|
|
4973
|
+
case et: {
|
|
4974
4974
|
const a = n(/* @__PURE__ */ new Map(), i);
|
|
4975
4975
|
for (const [u, s] of l)
|
|
4976
4976
|
a.set(r(u), r(s));
|
|
4977
4977
|
return a;
|
|
4978
4978
|
}
|
|
4979
|
-
case
|
|
4979
|
+
case nt: {
|
|
4980
4980
|
const a = n(/* @__PURE__ */ new Set(), i);
|
|
4981
4981
|
for (const u of l)
|
|
4982
4982
|
a.add(r(u));
|
|
4983
4983
|
return a;
|
|
4984
4984
|
}
|
|
4985
|
-
case
|
|
4985
|
+
case Br: {
|
|
4986
4986
|
const { name: a, message: u } = l;
|
|
4987
|
-
return n(new
|
|
4987
|
+
return n(new Mt[a](u), i);
|
|
4988
4988
|
}
|
|
4989
|
-
case
|
|
4989
|
+
case jr:
|
|
4990
4990
|
return n(BigInt(l), i);
|
|
4991
4991
|
case "BigInt":
|
|
4992
4992
|
return n(Object(BigInt(l)), i);
|
|
@@ -4997,31 +4997,31 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
4997
4997
|
return n(new DataView(a), l);
|
|
4998
4998
|
}
|
|
4999
4999
|
}
|
|
5000
|
-
return n(new
|
|
5000
|
+
return n(new Mt[o](l), i);
|
|
5001
5001
|
};
|
|
5002
5002
|
return r;
|
|
5003
|
-
},
|
|
5003
|
+
}, Nt = (e) => du(/* @__PURE__ */ new Map(), e)(0), ze = "", { toString: yu } = {}, { keys: ku } = Object, je = (e) => {
|
|
5004
5004
|
const t = typeof e;
|
|
5005
5005
|
if (t !== "object" || !e)
|
|
5006
5006
|
return [fn, t];
|
|
5007
5007
|
const n = yu.call(e).slice(8, -1);
|
|
5008
5008
|
switch (n) {
|
|
5009
5009
|
case "Array":
|
|
5010
|
-
return [Ve,
|
|
5010
|
+
return [Ve, ze];
|
|
5011
5011
|
case "Object":
|
|
5012
|
-
return [ln,
|
|
5012
|
+
return [ln, ze];
|
|
5013
5013
|
case "Date":
|
|
5014
|
-
return [
|
|
5014
|
+
return [Jn, ze];
|
|
5015
5015
|
case "RegExp":
|
|
5016
|
-
return [
|
|
5016
|
+
return [Zn, ze];
|
|
5017
5017
|
case "Map":
|
|
5018
|
-
return [
|
|
5018
|
+
return [et, ze];
|
|
5019
5019
|
case "Set":
|
|
5020
|
-
return [
|
|
5020
|
+
return [nt, ze];
|
|
5021
5021
|
case "DataView":
|
|
5022
5022
|
return [Ve, n];
|
|
5023
5023
|
}
|
|
5024
|
-
return n.includes("Array") ? [Ve, n] : n.includes("Error") ? [
|
|
5024
|
+
return n.includes("Array") ? [Ve, n] : n.includes("Error") ? [Br, n] : [ln, n];
|
|
5025
5025
|
}, Ke = ([e, t]) => e === fn && (t === "function" || t === "symbol"), xu = (e, t, n, r) => {
|
|
5026
5026
|
const i = (l, a) => {
|
|
5027
5027
|
const u = r.push(l) - 1;
|
|
@@ -5035,7 +5035,7 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5035
5035
|
let f = l;
|
|
5036
5036
|
switch (u) {
|
|
5037
5037
|
case "bigint":
|
|
5038
|
-
a =
|
|
5038
|
+
a = jr, f = l.toString();
|
|
5039
5039
|
break;
|
|
5040
5040
|
case "function":
|
|
5041
5041
|
case "symbol":
|
|
@@ -5044,7 +5044,7 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5044
5044
|
f = null;
|
|
5045
5045
|
break;
|
|
5046
5046
|
case "undefined":
|
|
5047
|
-
return i([
|
|
5047
|
+
return i([Nr], l);
|
|
5048
5048
|
}
|
|
5049
5049
|
return i([a, f], l);
|
|
5050
5050
|
}
|
|
@@ -5075,19 +5075,19 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5075
5075
|
(e || !Ke(je(l[p]))) && f.push([o(p), o(l[p])]);
|
|
5076
5076
|
return c;
|
|
5077
5077
|
}
|
|
5078
|
-
case
|
|
5078
|
+
case Jn:
|
|
5079
5079
|
return i([a, l.toISOString()], l);
|
|
5080
|
-
case
|
|
5080
|
+
case Zn: {
|
|
5081
5081
|
const { source: f, flags: c } = l;
|
|
5082
5082
|
return i([a, { source: f, flags: c }], l);
|
|
5083
5083
|
}
|
|
5084
|
-
case
|
|
5084
|
+
case et: {
|
|
5085
5085
|
const f = [], c = i([a, f], l);
|
|
5086
5086
|
for (const [p, h] of l)
|
|
5087
5087
|
(e || !(Ke(je(p)) || Ke(je(h)))) && f.push([o(p), o(h)]);
|
|
5088
5088
|
return c;
|
|
5089
5089
|
}
|
|
5090
|
-
case
|
|
5090
|
+
case nt: {
|
|
5091
5091
|
const f = [], c = i([a, f], l);
|
|
5092
5092
|
for (const p of l)
|
|
5093
5093
|
(e || !Ke(je(p))) && f.push(o(p));
|
|
@@ -5098,13 +5098,13 @@ const Mr = -1, fn = 0, Ve = 1, ln = 2, Kn = 3, Jn = 4, Zn = 5, et = 6, Nr = 7, B
|
|
|
5098
5098
|
return i([a, { name: u, message: s }], l);
|
|
5099
5099
|
};
|
|
5100
5100
|
return o;
|
|
5101
|
-
},
|
|
5101
|
+
}, Bt = (e, { json: t, lossy: n } = {}) => {
|
|
5102
5102
|
const r = [];
|
|
5103
5103
|
return xu(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
5104
5104
|
}, on = typeof structuredClone == "function" ? (
|
|
5105
5105
|
/* c8 ignore start */
|
|
5106
|
-
(e, t) => t && ("json" in t || "lossy" in t) ?
|
|
5107
|
-
) : (e, t) =>
|
|
5106
|
+
(e, t) => t && ("json" in t || "lossy" in t) ? Nt(Bt(e, t)) : structuredClone(e)
|
|
5107
|
+
) : (e, t) => Nt(Bt(e, t));
|
|
5108
5108
|
function bu(e, t) {
|
|
5109
5109
|
const n = [{ type: "text", value: "↩" }];
|
|
5110
5110
|
return t > 1 && n.push({
|
|
@@ -5146,10 +5146,10 @@ function Su(e) {
|
|
|
5146
5146
|
children: Array.isArray(A) ? A : [A]
|
|
5147
5147
|
});
|
|
5148
5148
|
}
|
|
5149
|
-
const
|
|
5150
|
-
if (
|
|
5151
|
-
const A =
|
|
5152
|
-
A && A.type === "text" ? A.value += " " :
|
|
5149
|
+
const C = f[f.length - 1];
|
|
5150
|
+
if (C && C.type === "element" && C.tagName === "p") {
|
|
5151
|
+
const A = C.children[C.children.length - 1];
|
|
5152
|
+
A && A.type === "text" ? A.value += " " : C.children.push({ type: "text", value: " " }), C.children.push(...d);
|
|
5153
5153
|
} else
|
|
5154
5154
|
f.push(...d);
|
|
5155
5155
|
const k = {
|
|
@@ -5276,8 +5276,8 @@ function Au() {
|
|
|
5276
5276
|
function Tu(e) {
|
|
5277
5277
|
return e !== null && typeof e == "object" && "type" in e;
|
|
5278
5278
|
}
|
|
5279
|
-
const
|
|
5280
|
-
function
|
|
5279
|
+
const Hr = [], Pu = !0, Mn = !1, vu = "skip";
|
|
5280
|
+
function Ur(e, t, n, r) {
|
|
5281
5281
|
let i;
|
|
5282
5282
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
5283
5283
|
const o = hn(i), l = r ? -1 : 1;
|
|
@@ -5301,8 +5301,8 @@ function Hr(e, t, n, r) {
|
|
|
5301
5301
|
}
|
|
5302
5302
|
return p;
|
|
5303
5303
|
function p() {
|
|
5304
|
-
let h =
|
|
5305
|
-
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = zu(n(u, f)), h[0] ===
|
|
5304
|
+
let h = Hr, d, y, C;
|
|
5305
|
+
if ((!t || o(u, s, f[f.length - 1] || void 0)) && (h = zu(n(u, f)), h[0] === Mn))
|
|
5306
5306
|
return h;
|
|
5307
5307
|
if ("children" in u && u.children) {
|
|
5308
5308
|
const k = (
|
|
@@ -5310,9 +5310,9 @@ function Hr(e, t, n, r) {
|
|
|
5310
5310
|
u
|
|
5311
5311
|
);
|
|
5312
5312
|
if (k.children && h[0] !== vu)
|
|
5313
|
-
for (y = (r ? k.children.length : -1) + l,
|
|
5313
|
+
for (y = (r ? k.children.length : -1) + l, C = f.concat(k); y > -1 && y < k.children.length; ) {
|
|
5314
5314
|
const A = k.children[y];
|
|
5315
|
-
if (d = a(A, y,
|
|
5315
|
+
if (d = a(A, y, C)(), d[0] === Mn)
|
|
5316
5316
|
return d;
|
|
5317
5317
|
y = typeof d[1] == "number" ? d[1] : y + l;
|
|
5318
5318
|
}
|
|
@@ -5322,17 +5322,17 @@ function Hr(e, t, n, r) {
|
|
|
5322
5322
|
}
|
|
5323
5323
|
}
|
|
5324
5324
|
function zu(e) {
|
|
5325
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [Pu, e] : e == null ?
|
|
5325
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [Pu, e] : e == null ? Hr : [e];
|
|
5326
5326
|
}
|
|
5327
|
-
function
|
|
5327
|
+
function tt(e, t, n, r) {
|
|
5328
5328
|
let i, o, l;
|
|
5329
|
-
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r),
|
|
5329
|
+
typeof t == "function" && typeof n != "function" ? (o = void 0, l = t, i = n) : (o = t, l = n, i = r), Ur(e, o, a, i);
|
|
5330
5330
|
function a(u, s) {
|
|
5331
5331
|
const f = s[s.length - 1], c = f ? f.children.indexOf(u) : void 0;
|
|
5332
5332
|
return l(u, c, f);
|
|
5333
5333
|
}
|
|
5334
5334
|
}
|
|
5335
|
-
const
|
|
5335
|
+
const Nn = {}.hasOwnProperty, Lu = {};
|
|
5336
5336
|
function Du(e, t) {
|
|
5337
5337
|
const n = t || Lu, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = { ...gu, ...n.handlers }, a = {
|
|
5338
5338
|
all: s,
|
|
@@ -5347,7 +5347,7 @@ function Du(e, t) {
|
|
|
5347
5347
|
patch: Fu,
|
|
5348
5348
|
wrap: Ou
|
|
5349
5349
|
};
|
|
5350
|
-
return
|
|
5350
|
+
return tt(e, function(f) {
|
|
5351
5351
|
if (f.type === "definition" || f.type === "footnoteDefinition") {
|
|
5352
5352
|
const c = f.type === "definition" ? r : i, p = String(f.identifier).toUpperCase();
|
|
5353
5353
|
c.has(p) || c.set(p, f);
|
|
@@ -5355,11 +5355,11 @@ function Du(e, t) {
|
|
|
5355
5355
|
}), a;
|
|
5356
5356
|
function u(f, c) {
|
|
5357
5357
|
const p = f.type, h = a.handlers[p];
|
|
5358
|
-
if (
|
|
5358
|
+
if (Nn.call(a.handlers, p) && h)
|
|
5359
5359
|
return h(a, f, c);
|
|
5360
5360
|
if (a.options.passThrough && a.options.passThrough.includes(p)) {
|
|
5361
5361
|
if ("children" in f) {
|
|
5362
|
-
const { children: y, ...
|
|
5362
|
+
const { children: y, ...C } = f, k = on(C);
|
|
5363
5363
|
return k.children = a.all(f), k;
|
|
5364
5364
|
}
|
|
5365
5365
|
return on(f);
|
|
@@ -5374,9 +5374,9 @@ function Du(e, t) {
|
|
|
5374
5374
|
for (; ++h < p.length; ) {
|
|
5375
5375
|
const d = a.one(p[h], f);
|
|
5376
5376
|
if (d) {
|
|
5377
|
-
if (h && p[h - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value =
|
|
5377
|
+
if (h && p[h - 1].type === "break" && (!Array.isArray(d) && d.type === "text" && (d.value = jt(d.value)), !Array.isArray(d) && d.type === "element")) {
|
|
5378
5378
|
const y = d.children[0];
|
|
5379
|
-
y && y.type === "text" && (y.value =
|
|
5379
|
+
y && y.type === "text" && (y.value = jt(y.value));
|
|
5380
5380
|
}
|
|
5381
5381
|
Array.isArray(d) ? c.push(...d) : c.push(d);
|
|
5382
5382
|
}
|
|
@@ -5404,7 +5404,7 @@ function _u(e, t) {
|
|
|
5404
5404
|
return n;
|
|
5405
5405
|
}
|
|
5406
5406
|
function Ru(e, t) {
|
|
5407
|
-
const n = t.data || {}, r = "value" in t && !(
|
|
5407
|
+
const n = t.data || {}, r = "value" in t && !(Nn.call(n, "hProperties") || Nn.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
5408
5408
|
type: "element",
|
|
5409
5409
|
tagName: "div",
|
|
5410
5410
|
properties: {},
|
|
@@ -5422,13 +5422,13 @@ function Ou(e, t) {
|
|
|
5422
5422
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
|
5423
5423
|
` }), n;
|
|
5424
5424
|
}
|
|
5425
|
-
function
|
|
5425
|
+
function jt(e) {
|
|
5426
5426
|
let t = 0, n = e.charCodeAt(t);
|
|
5427
5427
|
for (; n === 9 || n === 32; )
|
|
5428
5428
|
t++, n = e.charCodeAt(t);
|
|
5429
5429
|
return e.slice(t);
|
|
5430
5430
|
}
|
|
5431
|
-
function
|
|
5431
|
+
function Ht(e, t) {
|
|
5432
5432
|
const n = Du(e, t), r = n.one(e, void 0), i = Su(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5433
5433
|
return i && o.children.push({ type: "text", value: `
|
|
5434
5434
|
` }, i), o;
|
|
@@ -5437,24 +5437,24 @@ function Mu(e, t) {
|
|
|
5437
5437
|
return e && "run" in e ? async function(n, r) {
|
|
5438
5438
|
const i = (
|
|
5439
5439
|
/** @type {HastRoot} */
|
|
5440
|
-
|
|
5440
|
+
Ht(n, { file: r, ...t })
|
|
5441
5441
|
);
|
|
5442
5442
|
await e.run(i, r);
|
|
5443
5443
|
} : function(n, r) {
|
|
5444
5444
|
return (
|
|
5445
5445
|
/** @type {HastRoot} */
|
|
5446
|
-
|
|
5446
|
+
Ht(n, { file: r, ...e || t })
|
|
5447
5447
|
);
|
|
5448
5448
|
};
|
|
5449
5449
|
}
|
|
5450
|
-
function
|
|
5450
|
+
function Ut(e) {
|
|
5451
5451
|
if (e)
|
|
5452
5452
|
throw e;
|
|
5453
5453
|
}
|
|
5454
|
-
var nn = Object.prototype.hasOwnProperty,
|
|
5455
|
-
return typeof Array.isArray == "function" ? Array.isArray(t) :
|
|
5456
|
-
},
|
|
5457
|
-
if (!t ||
|
|
5454
|
+
var nn = Object.prototype.hasOwnProperty, Vr = Object.prototype.toString, Vt = Object.defineProperty, $t = Object.getOwnPropertyDescriptor, qt = function(t) {
|
|
5455
|
+
return typeof Array.isArray == "function" ? Array.isArray(t) : Vr.call(t) === "[object Array]";
|
|
5456
|
+
}, Wt = function(t) {
|
|
5457
|
+
if (!t || Vr.call(t) !== "[object Object]")
|
|
5458
5458
|
return !1;
|
|
5459
5459
|
var n = nn.call(t, "constructor"), r = t.constructor && t.constructor.prototype && nn.call(t.constructor.prototype, "isPrototypeOf");
|
|
5460
5460
|
if (t.constructor && !n && !r)
|
|
@@ -5463,18 +5463,18 @@ var nn = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
|
|
|
5463
5463
|
for (i in t)
|
|
5464
5464
|
;
|
|
5465
5465
|
return typeof i > "u" || nn.call(t, i);
|
|
5466
|
-
},
|
|
5467
|
-
|
|
5466
|
+
}, Yt = function(t, n) {
|
|
5467
|
+
Vt && n.name === "__proto__" ? Vt(t, n.name, {
|
|
5468
5468
|
enumerable: !0,
|
|
5469
5469
|
configurable: !0,
|
|
5470
5470
|
value: n.newValue,
|
|
5471
5471
|
writable: !0
|
|
5472
5472
|
}) : t[n.name] = n.newValue;
|
|
5473
|
-
},
|
|
5473
|
+
}, Xt = function(t, n) {
|
|
5474
5474
|
if (n === "__proto__")
|
|
5475
5475
|
if (nn.call(t, n)) {
|
|
5476
|
-
if (
|
|
5477
|
-
return
|
|
5476
|
+
if ($t)
|
|
5477
|
+
return $t(t, n).value;
|
|
5478
5478
|
} else return;
|
|
5479
5479
|
return t[n];
|
|
5480
5480
|
}, Nu = function e() {
|
|
@@ -5482,11 +5482,11 @@ var nn = Object.prototype.hasOwnProperty, Ur = Object.prototype.toString, Ut = O
|
|
|
5482
5482
|
for (typeof a == "boolean" && (f = a, a = arguments[1] || {}, u = 2), (a == null || typeof a != "object" && typeof a != "function") && (a = {}); u < s; ++u)
|
|
5483
5483
|
if (t = arguments[u], t != null)
|
|
5484
5484
|
for (n in t)
|
|
5485
|
-
r =
|
|
5485
|
+
r = Xt(a, n), i = Xt(t, n), a !== i && (f && i && (Wt(i) || (o = qt(i))) ? (o ? (o = !1, l = r && qt(r) ? r : []) : l = r && Wt(r) ? r : {}, Yt(a, { name: n, newValue: e(f, l, i) })) : typeof i < "u" && Yt(a, { name: n, newValue: i }));
|
|
5486
5486
|
return a;
|
|
5487
5487
|
};
|
|
5488
|
-
const kn = /* @__PURE__ */
|
|
5489
|
-
function
|
|
5488
|
+
const kn = /* @__PURE__ */ ur(Nu);
|
|
5489
|
+
function Bn(e) {
|
|
5490
5490
|
if (typeof e != "object" || e === null)
|
|
5491
5491
|
return !1;
|
|
5492
5492
|
const t = Object.getPrototypeOf(e);
|
|
@@ -5661,14 +5661,14 @@ const Yu = { cwd: Xu };
|
|
|
5661
5661
|
function Xu() {
|
|
5662
5662
|
return "/";
|
|
5663
5663
|
}
|
|
5664
|
-
function
|
|
5664
|
+
function jn(e) {
|
|
5665
5665
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
5666
5666
|
e.auth === void 0);
|
|
5667
5667
|
}
|
|
5668
5668
|
function Qu(e) {
|
|
5669
5669
|
if (typeof e == "string")
|
|
5670
5670
|
e = new URL(e);
|
|
5671
|
-
else if (!
|
|
5671
|
+
else if (!jn(e)) {
|
|
5672
5672
|
const t = new TypeError(
|
|
5673
5673
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
5674
5674
|
);
|
|
@@ -5712,7 +5712,7 @@ const xn = (
|
|
|
5712
5712
|
"dirname"
|
|
5713
5713
|
]
|
|
5714
5714
|
);
|
|
5715
|
-
class
|
|
5715
|
+
class $r {
|
|
5716
5716
|
/**
|
|
5717
5717
|
* Create a new virtual file.
|
|
5718
5718
|
*
|
|
@@ -5737,7 +5737,7 @@ class Vr {
|
|
|
5737
5737
|
*/
|
|
5738
5738
|
constructor(t) {
|
|
5739
5739
|
let n;
|
|
5740
|
-
t ?
|
|
5740
|
+
t ? jn(t) ? n = { path: t } : typeof t == "string" || Ku(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Yu.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
5741
5741
|
let r = -1;
|
|
5742
5742
|
for (; ++r < xn.length; ) {
|
|
5743
5743
|
const o = xn[r];
|
|
@@ -5791,7 +5791,7 @@ class Vr {
|
|
|
5791
5791
|
* Nothing.
|
|
5792
5792
|
*/
|
|
5793
5793
|
set dirname(t) {
|
|
5794
|
-
|
|
5794
|
+
Qt(this.basename, "dirname"), this.path = ce.join(t || "", this.basename);
|
|
5795
5795
|
}
|
|
5796
5796
|
/**
|
|
5797
5797
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -5815,7 +5815,7 @@ class Vr {
|
|
|
5815
5815
|
* Nothing.
|
|
5816
5816
|
*/
|
|
5817
5817
|
set extname(t) {
|
|
5818
|
-
if (bn(t, "extname"),
|
|
5818
|
+
if (bn(t, "extname"), Qt(this.dirname, "extname"), t) {
|
|
5819
5819
|
if (t.codePointAt(0) !== 46)
|
|
5820
5820
|
throw new Error("`extname` must start with `.`");
|
|
5821
5821
|
if (t.includes(".", 1))
|
|
@@ -5845,7 +5845,7 @@ class Vr {
|
|
|
5845
5845
|
* Nothing.
|
|
5846
5846
|
*/
|
|
5847
5847
|
set path(t) {
|
|
5848
|
-
|
|
5848
|
+
jn(t) && (t = Qu(t)), wn(t, "path"), this.path !== t && this.history.push(t);
|
|
5849
5849
|
}
|
|
5850
5850
|
/**
|
|
5851
5851
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6092,7 +6092,7 @@ function wn(e, t) {
|
|
|
6092
6092
|
if (!e)
|
|
6093
6093
|
throw new Error("`" + t + "` cannot be empty");
|
|
6094
6094
|
}
|
|
6095
|
-
function
|
|
6095
|
+
function Qt(e, t) {
|
|
6096
6096
|
if (!e)
|
|
6097
6097
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
6098
6098
|
}
|
|
@@ -6121,7 +6121,7 @@ const Ju = (
|
|
|
6121
6121
|
return Object.setPrototypeOf(o, r), o;
|
|
6122
6122
|
}
|
|
6123
6123
|
), Zu = {}.hasOwnProperty;
|
|
6124
|
-
class
|
|
6124
|
+
class rt extends Ju {
|
|
6125
6125
|
/**
|
|
6126
6126
|
* Create a processor.
|
|
6127
6127
|
*/
|
|
@@ -6142,7 +6142,7 @@ class tt extends Ju {
|
|
|
6142
6142
|
copy() {
|
|
6143
6143
|
const t = (
|
|
6144
6144
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
6145
|
-
new
|
|
6145
|
+
new rt()
|
|
6146
6146
|
);
|
|
6147
6147
|
let n = -1;
|
|
6148
6148
|
for (; ++n < this.attachers.length; ) {
|
|
@@ -6370,9 +6370,9 @@ class tt extends Ju {
|
|
|
6370
6370
|
*/
|
|
6371
6371
|
processSync(t) {
|
|
6372
6372
|
let n = !1, r;
|
|
6373
|
-
return this.freeze(), Sn("processSync", this.parser || this.Parser), Cn("processSync", this.compiler || this.Compiler), this.process(t, i),
|
|
6373
|
+
return this.freeze(), Sn("processSync", this.parser || this.Parser), Cn("processSync", this.compiler || this.Compiler), this.process(t, i), Kt("processSync", "process", n), r;
|
|
6374
6374
|
function i(o, l) {
|
|
6375
|
-
n = !0,
|
|
6375
|
+
n = !0, Ut(o), r = l;
|
|
6376
6376
|
}
|
|
6377
6377
|
}
|
|
6378
6378
|
/**
|
|
@@ -6414,7 +6414,7 @@ class tt extends Ju {
|
|
|
6414
6414
|
* transformed tree.
|
|
6415
6415
|
*/
|
|
6416
6416
|
run(t, n, r) {
|
|
6417
|
-
|
|
6417
|
+
Gt(t), this.freeze();
|
|
6418
6418
|
const i = this.transformers;
|
|
6419
6419
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
|
|
6420
6420
|
function o(l, a) {
|
|
@@ -6448,9 +6448,9 @@ class tt extends Ju {
|
|
|
6448
6448
|
*/
|
|
6449
6449
|
runSync(t, n) {
|
|
6450
6450
|
let r = !1, i;
|
|
6451
|
-
return this.run(t, n, o),
|
|
6451
|
+
return this.run(t, n, o), Kt("runSync", "run", r), i;
|
|
6452
6452
|
function o(l, a) {
|
|
6453
|
-
|
|
6453
|
+
Ut(l), i = a, r = !0;
|
|
6454
6454
|
}
|
|
6455
6455
|
}
|
|
6456
6456
|
/**
|
|
@@ -6485,7 +6485,7 @@ class tt extends Ju {
|
|
|
6485
6485
|
stringify(t, n) {
|
|
6486
6486
|
this.freeze();
|
|
6487
6487
|
const r = Je(n), i = this.compiler || this.Compiler;
|
|
6488
|
-
return Cn("stringify", i),
|
|
6488
|
+
return Cn("stringify", i), Gt(t), i(t, r);
|
|
6489
6489
|
}
|
|
6490
6490
|
/**
|
|
6491
6491
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6597,12 +6597,12 @@ class tt extends Ju {
|
|
|
6597
6597
|
else if (f.length > 0) {
|
|
6598
6598
|
let [h, ...d] = f;
|
|
6599
6599
|
const y = r[p][1];
|
|
6600
|
-
|
|
6600
|
+
Bn(y) && Bn(h) && (h = kn(!0, y, h)), r[p] = [s, h, ...d];
|
|
6601
6601
|
}
|
|
6602
6602
|
}
|
|
6603
6603
|
}
|
|
6604
6604
|
}
|
|
6605
|
-
const es = new
|
|
6605
|
+
const es = new rt().freeze();
|
|
6606
6606
|
function Sn(e, t) {
|
|
6607
6607
|
if (typeof t != "function")
|
|
6608
6608
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -6617,18 +6617,18 @@ function En(e, t) {
|
|
|
6617
6617
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6618
6618
|
);
|
|
6619
6619
|
}
|
|
6620
|
-
function
|
|
6621
|
-
if (!
|
|
6620
|
+
function Gt(e) {
|
|
6621
|
+
if (!Bn(e) || typeof e.type != "string")
|
|
6622
6622
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
6623
6623
|
}
|
|
6624
|
-
function
|
|
6624
|
+
function Kt(e, t, n) {
|
|
6625
6625
|
if (!n)
|
|
6626
6626
|
throw new Error(
|
|
6627
6627
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
6628
6628
|
);
|
|
6629
6629
|
}
|
|
6630
6630
|
function Je(e) {
|
|
6631
|
-
return ns(e) ? e : new
|
|
6631
|
+
return ns(e) ? e : new $r(e);
|
|
6632
6632
|
}
|
|
6633
6633
|
function ns(e) {
|
|
6634
6634
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
@@ -6639,7 +6639,7 @@ function ts(e) {
|
|
|
6639
6639
|
function rs(e) {
|
|
6640
6640
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
6641
6641
|
}
|
|
6642
|
-
const is = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
6642
|
+
const is = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Jt = [], Zt = { allowDangerousHtml: !0 }, ls = /^(https?|ircs?|mailto|xmpp)$/i, os = [
|
|
6643
6643
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
6644
6644
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
6645
6645
|
{
|
|
@@ -6678,23 +6678,23 @@ function as(e) {
|
|
|
6678
6678
|
return cs(t.runSync(t.parse(n), n), e);
|
|
6679
6679
|
}
|
|
6680
6680
|
function us(e) {
|
|
6681
|
-
const t = e.rehypePlugins ||
|
|
6681
|
+
const t = e.rehypePlugins || Jt, n = e.remarkPlugins || Jt, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Zt } : Zt;
|
|
6682
6682
|
return es().use(Va).use(n).use(Mu, r).use(t);
|
|
6683
6683
|
}
|
|
6684
6684
|
function ss(e) {
|
|
6685
|
-
const t = e.children || "", n = new
|
|
6685
|
+
const t = e.children || "", n = new $r();
|
|
6686
6686
|
return typeof t == "string" && (n.value = t), n;
|
|
6687
6687
|
}
|
|
6688
6688
|
function cs(e, t) {
|
|
6689
6689
|
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, l = t.skipHtml, a = t.unwrapDisallowed, u = t.urlTransform || fs;
|
|
6690
6690
|
for (const f of os)
|
|
6691
6691
|
Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + is + f.id, void 0);
|
|
6692
|
-
return
|
|
6693
|
-
Fragment:
|
|
6692
|
+
return tt(e, s), Il(e, {
|
|
6693
|
+
Fragment: vn,
|
|
6694
6694
|
components: i,
|
|
6695
6695
|
ignoreInvalidStyle: !0,
|
|
6696
|
-
jsx:
|
|
6697
|
-
jsxs:
|
|
6696
|
+
jsx: xe,
|
|
6697
|
+
jsxs: Ei,
|
|
6698
6698
|
passKeys: !0,
|
|
6699
6699
|
passNode: !0
|
|
6700
6700
|
});
|
|
@@ -6725,7 +6725,7 @@ function fs(e) {
|
|
|
6725
6725
|
ls.test(e.slice(0, t)) ? e : ""
|
|
6726
6726
|
);
|
|
6727
6727
|
}
|
|
6728
|
-
function
|
|
6728
|
+
function er(e, t) {
|
|
6729
6729
|
const n = String(e);
|
|
6730
6730
|
if (typeof t != "string")
|
|
6731
6731
|
throw new TypeError("Expected character");
|
|
@@ -6739,11 +6739,11 @@ function hs(e) {
|
|
|
6739
6739
|
throw new TypeError("Expected a string");
|
|
6740
6740
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
6741
6741
|
}
|
|
6742
|
-
function
|
|
6742
|
+
function qr(e, t, n) {
|
|
6743
6743
|
const i = hn((n || {}).ignore || []), o = ps(t);
|
|
6744
6744
|
let l = -1;
|
|
6745
6745
|
for (; ++l < o.length; )
|
|
6746
|
-
|
|
6746
|
+
Ur(e, "text", a);
|
|
6747
6747
|
function a(s, f) {
|
|
6748
6748
|
let c = -1, p;
|
|
6749
6749
|
for (; ++c < f.length; ) {
|
|
@@ -6762,25 +6762,25 @@ function $r(e, t, n) {
|
|
|
6762
6762
|
function u(s, f) {
|
|
6763
6763
|
const c = f[f.length - 1], p = o[l][0], h = o[l][1];
|
|
6764
6764
|
let d = 0;
|
|
6765
|
-
const
|
|
6765
|
+
const C = c.children.indexOf(s);
|
|
6766
6766
|
let k = !1, A = [];
|
|
6767
6767
|
p.lastIndex = 0;
|
|
6768
|
-
let
|
|
6769
|
-
for (;
|
|
6770
|
-
const
|
|
6771
|
-
index:
|
|
6772
|
-
input:
|
|
6768
|
+
let E = p.exec(s.value);
|
|
6769
|
+
for (; E; ) {
|
|
6770
|
+
const L = E.index, F = {
|
|
6771
|
+
index: E.index,
|
|
6772
|
+
input: E.input,
|
|
6773
6773
|
stack: [...f, s]
|
|
6774
6774
|
};
|
|
6775
|
-
let w = h(...
|
|
6776
|
-
if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? p.lastIndex =
|
|
6775
|
+
let w = h(...E, F);
|
|
6776
|
+
if (typeof w == "string" && (w = w.length > 0 ? { type: "text", value: w } : void 0), w === !1 ? p.lastIndex = L + 1 : (d !== L && A.push({
|
|
6777
6777
|
type: "text",
|
|
6778
|
-
value: s.value.slice(d,
|
|
6779
|
-
}), Array.isArray(w) ? A.push(...w) : w && A.push(w), d =
|
|
6778
|
+
value: s.value.slice(d, L)
|
|
6779
|
+
}), Array.isArray(w) ? A.push(...w) : w && A.push(w), d = L + E[0].length, k = !0), !p.global)
|
|
6780
6780
|
break;
|
|
6781
|
-
|
|
6781
|
+
E = p.exec(s.value);
|
|
6782
6782
|
}
|
|
6783
|
-
return k ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(
|
|
6783
|
+
return k ? (d < s.value.length && A.push({ type: "text", value: s.value.slice(d) }), c.children.splice(C, 1, ...A)) : A = [s], C + A.length;
|
|
6784
6784
|
}
|
|
6785
6785
|
}
|
|
6786
6786
|
function ps(e) {
|
|
@@ -6869,7 +6869,7 @@ function Ss(e) {
|
|
|
6869
6869
|
this.exit(e);
|
|
6870
6870
|
}
|
|
6871
6871
|
function Cs(e) {
|
|
6872
|
-
|
|
6872
|
+
qr(
|
|
6873
6873
|
e,
|
|
6874
6874
|
[
|
|
6875
6875
|
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, Es],
|
|
@@ -6880,7 +6880,7 @@ function Cs(e) {
|
|
|
6880
6880
|
}
|
|
6881
6881
|
function Es(e, t, n, r, i) {
|
|
6882
6882
|
let o = "";
|
|
6883
|
-
if (!
|
|
6883
|
+
if (!Wr(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !As(n)))
|
|
6884
6884
|
return !1;
|
|
6885
6885
|
const l = Ts(n + r);
|
|
6886
6886
|
if (!l[0]) return !1;
|
|
@@ -6895,7 +6895,7 @@ function Es(e, t, n, r, i) {
|
|
|
6895
6895
|
function Is(e, t, n, r) {
|
|
6896
6896
|
return (
|
|
6897
6897
|
// Not an expected previous character.
|
|
6898
|
-
!
|
|
6898
|
+
!Wr(r, !0) || // Label ends in not allowed character.
|
|
6899
6899
|
/[-\d_]$/.test(n) ? !1 : {
|
|
6900
6900
|
type: "link",
|
|
6901
6901
|
title: null,
|
|
@@ -6914,18 +6914,18 @@ function Ts(e) {
|
|
|
6914
6914
|
return [e, void 0];
|
|
6915
6915
|
e = e.slice(0, t.index);
|
|
6916
6916
|
let n = t[0], r = n.indexOf(")");
|
|
6917
|
-
const i =
|
|
6918
|
-
let o =
|
|
6917
|
+
const i = er(e, "(");
|
|
6918
|
+
let o = er(e, ")");
|
|
6919
6919
|
for (; r !== -1 && i > o; )
|
|
6920
6920
|
e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), o++;
|
|
6921
6921
|
return [e, n];
|
|
6922
6922
|
}
|
|
6923
|
-
function
|
|
6923
|
+
function Wr(e, t) {
|
|
6924
6924
|
const n = e.input.charCodeAt(e.index - 1);
|
|
6925
|
-
return (e.index === 0 ||
|
|
6925
|
+
return (e.index === 0 || Ie(n) || sn(n)) && // If it’s an email, the previous character should not be a slash.
|
|
6926
6926
|
(!t || n !== 47);
|
|
6927
6927
|
}
|
|
6928
|
-
|
|
6928
|
+
Yr.peek = Os;
|
|
6929
6929
|
function Ps() {
|
|
6930
6930
|
this.buffer();
|
|
6931
6931
|
}
|
|
@@ -6962,7 +6962,7 @@ function Rs(e) {
|
|
|
6962
6962
|
function Os() {
|
|
6963
6963
|
return "[";
|
|
6964
6964
|
}
|
|
6965
|
-
function
|
|
6965
|
+
function Yr(e, t, n, r) {
|
|
6966
6966
|
const i = n.createTracker(r);
|
|
6967
6967
|
let o = i.move("[^");
|
|
6968
6968
|
const l = n.enter("footnoteReference"), a = n.enter("reference");
|
|
@@ -6989,7 +6989,7 @@ function Ms() {
|
|
|
6989
6989
|
function Ns(e) {
|
|
6990
6990
|
let t = !1;
|
|
6991
6991
|
return e && e.firstLineBlank && (t = !0), {
|
|
6992
|
-
handlers: { footnoteDefinition: n, footnoteReference:
|
|
6992
|
+
handlers: { footnoteDefinition: n, footnoteReference: Yr },
|
|
6993
6993
|
// This is on by default already.
|
|
6994
6994
|
unsafe: [{ character: "[", inConstruct: ["label", "phrasing", "reference"] }]
|
|
6995
6995
|
};
|
|
@@ -7003,15 +7003,15 @@ function Ns(e) {
|
|
|
7003
7003
|
(t ? `
|
|
7004
7004
|
` : " ") + o.indentLines(
|
|
7005
7005
|
o.containerFlow(r, a.current()),
|
|
7006
|
-
t ?
|
|
7006
|
+
t ? Xr : Bs
|
|
7007
7007
|
)
|
|
7008
7008
|
)), s(), u;
|
|
7009
7009
|
}
|
|
7010
7010
|
}
|
|
7011
7011
|
function Bs(e, t, n) {
|
|
7012
|
-
return t === 0 ? e :
|
|
7012
|
+
return t === 0 ? e : Xr(e, t, n);
|
|
7013
7013
|
}
|
|
7014
|
-
function
|
|
7014
|
+
function Xr(e, t, n) {
|
|
7015
7015
|
return (n ? "" : " ") + e;
|
|
7016
7016
|
}
|
|
7017
7017
|
const js = [
|
|
@@ -7022,7 +7022,7 @@ const js = [
|
|
|
7022
7022
|
"titleQuote",
|
|
7023
7023
|
"titleApostrophe"
|
|
7024
7024
|
];
|
|
7025
|
-
|
|
7025
|
+
Qr.peek = qs;
|
|
7026
7026
|
function Hs() {
|
|
7027
7027
|
return {
|
|
7028
7028
|
canContainEols: ["delete"],
|
|
@@ -7039,7 +7039,7 @@ function Us() {
|
|
|
7039
7039
|
notInConstruct: js
|
|
7040
7040
|
}
|
|
7041
7041
|
],
|
|
7042
|
-
handlers: { delete:
|
|
7042
|
+
handlers: { delete: Qr }
|
|
7043
7043
|
};
|
|
7044
7044
|
}
|
|
7045
7045
|
function Vs(e) {
|
|
@@ -7048,7 +7048,7 @@ function Vs(e) {
|
|
|
7048
7048
|
function $s(e) {
|
|
7049
7049
|
this.exit(e);
|
|
7050
7050
|
}
|
|
7051
|
-
function
|
|
7051
|
+
function Qr(e, t, n, r) {
|
|
7052
7052
|
const i = n.createTracker(r), o = n.enter("strikethrough");
|
|
7053
7053
|
let l = i.move("~~");
|
|
7054
7054
|
return l += n.containerPhrasing(e, {
|
|
@@ -7067,24 +7067,24 @@ function Ys(e, t) {
|
|
|
7067
7067
|
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Ws, o = [], l = [], a = [], u = [];
|
|
7068
7068
|
let s = 0, f = -1;
|
|
7069
7069
|
for (; ++f < e.length; ) {
|
|
7070
|
-
const y = [],
|
|
7070
|
+
const y = [], C = [];
|
|
7071
7071
|
let k = -1;
|
|
7072
7072
|
for (e[f].length > s && (s = e[f].length); ++k < e[f].length; ) {
|
|
7073
7073
|
const A = Xs(e[f][k]);
|
|
7074
7074
|
if (n.alignDelimiters !== !1) {
|
|
7075
|
-
const
|
|
7076
|
-
|
|
7075
|
+
const E = i(A);
|
|
7076
|
+
C[k] = E, (u[k] === void 0 || E > u[k]) && (u[k] = E);
|
|
7077
7077
|
}
|
|
7078
7078
|
y.push(A);
|
|
7079
7079
|
}
|
|
7080
|
-
l[f] = y, a[f] =
|
|
7080
|
+
l[f] = y, a[f] = C;
|
|
7081
7081
|
}
|
|
7082
7082
|
let c = -1;
|
|
7083
7083
|
if (typeof r == "object" && "length" in r)
|
|
7084
7084
|
for (; ++c < s; )
|
|
7085
|
-
o[c] =
|
|
7085
|
+
o[c] = nr(r[c]);
|
|
7086
7086
|
else {
|
|
7087
|
-
const y =
|
|
7087
|
+
const y = nr(r);
|
|
7088
7088
|
for (; ++c < s; )
|
|
7089
7089
|
o[c] = y;
|
|
7090
7090
|
}
|
|
@@ -7092,31 +7092,31 @@ function Ys(e, t) {
|
|
|
7092
7092
|
const p = [], h = [];
|
|
7093
7093
|
for (; ++c < s; ) {
|
|
7094
7094
|
const y = o[c];
|
|
7095
|
-
let
|
|
7096
|
-
y === 99 ? (
|
|
7095
|
+
let C = "", k = "";
|
|
7096
|
+
y === 99 ? (C = ":", k = ":") : y === 108 ? C = ":" : y === 114 && (k = ":");
|
|
7097
7097
|
let A = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
7098
7098
|
1,
|
|
7099
|
-
u[c] -
|
|
7099
|
+
u[c] - C.length - k.length
|
|
7100
7100
|
);
|
|
7101
|
-
const
|
|
7102
|
-
n.alignDelimiters !== !1 && (A =
|
|
7101
|
+
const E = C + "-".repeat(A) + k;
|
|
7102
|
+
n.alignDelimiters !== !1 && (A = C.length + A + k.length, A > u[c] && (u[c] = A), h[c] = A), p[c] = E;
|
|
7103
7103
|
}
|
|
7104
7104
|
l.splice(1, 0, p), a.splice(1, 0, h), f = -1;
|
|
7105
7105
|
const d = [];
|
|
7106
7106
|
for (; ++f < l.length; ) {
|
|
7107
|
-
const y = l[f],
|
|
7107
|
+
const y = l[f], C = a[f];
|
|
7108
7108
|
c = -1;
|
|
7109
7109
|
const k = [];
|
|
7110
7110
|
for (; ++c < s; ) {
|
|
7111
7111
|
const A = y[c] || "";
|
|
7112
|
-
let
|
|
7112
|
+
let E = "", L = "";
|
|
7113
7113
|
if (n.alignDelimiters !== !1) {
|
|
7114
|
-
const F = u[c] - (
|
|
7115
|
-
w === 114 ?
|
|
7114
|
+
const F = u[c] - (C[c] || 0), w = o[c];
|
|
7115
|
+
w === 114 ? E = " ".repeat(F) : w === 99 ? F % 2 ? (E = " ".repeat(F / 2 + 0.5), L = " ".repeat(F / 2 - 0.5)) : (E = " ".repeat(F / 2), L = E) : L = " ".repeat(F);
|
|
7116
7116
|
}
|
|
7117
7117
|
n.delimiterStart !== !1 && !c && k.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
7118
7118
|
// empty: there will be a closing space.
|
|
7119
|
-
!(n.alignDelimiters === !1 && A === "") && (n.delimiterStart !== !1 || c) && k.push(" "), n.alignDelimiters !== !1 && k.push(
|
|
7119
|
+
!(n.alignDelimiters === !1 && A === "") && (n.delimiterStart !== !1 || c) && k.push(" "), n.alignDelimiters !== !1 && k.push(E), k.push(A), n.alignDelimiters !== !1 && k.push(L), n.padding !== !1 && k.push(" "), (n.delimiterEnd !== !1 || c !== s - 1) && k.push("|");
|
|
7120
7120
|
}
|
|
7121
7121
|
d.push(
|
|
7122
7122
|
n.delimiterEnd === !1 ? k.join("").replace(/ +$/, "") : k.join("")
|
|
@@ -7128,7 +7128,7 @@ function Ys(e, t) {
|
|
|
7128
7128
|
function Xs(e) {
|
|
7129
7129
|
return e == null ? "" : String(e);
|
|
7130
7130
|
}
|
|
7131
|
-
function
|
|
7131
|
+
function nr(e) {
|
|
7132
7132
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
7133
7133
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
7134
7134
|
}
|
|
@@ -7145,9 +7145,9 @@ function Gs(e, t, n) {
|
|
|
7145
7145
|
return ">" + (n ? "" : " ") + e;
|
|
7146
7146
|
}
|
|
7147
7147
|
function Ks(e, t) {
|
|
7148
|
-
return
|
|
7148
|
+
return tr(e, t.inConstruct, !0) && !tr(e, t.notInConstruct, !1);
|
|
7149
7149
|
}
|
|
7150
|
-
function
|
|
7150
|
+
function tr(e, t, n) {
|
|
7151
7151
|
if (typeof t == "string" && (t = [t]), !t || t.length === 0)
|
|
7152
7152
|
return n;
|
|
7153
7153
|
let r = -1;
|
|
@@ -7156,7 +7156,7 @@ function nr(e, t, n) {
|
|
|
7156
7156
|
return !0;
|
|
7157
7157
|
return !1;
|
|
7158
7158
|
}
|
|
7159
|
-
function
|
|
7159
|
+
function rr(e, t, n, r) {
|
|
7160
7160
|
let i = -1;
|
|
7161
7161
|
for (; ++i < n.unsafe.length; )
|
|
7162
7162
|
if (n.unsafe[i].character === `
|
|
@@ -7226,7 +7226,7 @@ function nc(e, t, n, r) {
|
|
|
7226
7226
|
function tc(e, t, n) {
|
|
7227
7227
|
return (n ? "" : " ") + e;
|
|
7228
7228
|
}
|
|
7229
|
-
function
|
|
7229
|
+
function it(e) {
|
|
7230
7230
|
const t = e.options.quote || '"';
|
|
7231
7231
|
if (t !== '"' && t !== "'")
|
|
7232
7232
|
throw new Error(
|
|
@@ -7235,7 +7235,7 @@ function rt(e) {
|
|
|
7235
7235
|
return t;
|
|
7236
7236
|
}
|
|
7237
7237
|
function rc(e, t, n, r) {
|
|
7238
|
-
const i =
|
|
7238
|
+
const i = it(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("definition");
|
|
7239
7239
|
let a = n.enter("label");
|
|
7240
7240
|
const u = n.createTracker(r);
|
|
7241
7241
|
let s = u.move("[");
|
|
@@ -7308,8 +7308,8 @@ function an(e, t, n) {
|
|
|
7308
7308
|
{ inside: !1, outside: !1 }
|
|
7309
7309
|
);
|
|
7310
7310
|
}
|
|
7311
|
-
|
|
7312
|
-
function
|
|
7311
|
+
Gr.peek = lc;
|
|
7312
|
+
function Gr(e, t, n, r) {
|
|
7313
7313
|
const i = ic(n), o = n.enter("emphasis"), l = n.createTracker(r), a = l.move(i);
|
|
7314
7314
|
let u = l.move(
|
|
7315
7315
|
n.containerPhrasing(e, {
|
|
@@ -7337,10 +7337,10 @@ function lc(e, t, n) {
|
|
|
7337
7337
|
}
|
|
7338
7338
|
function oc(e, t) {
|
|
7339
7339
|
let n = !1;
|
|
7340
|
-
return
|
|
7340
|
+
return tt(e, function(r) {
|
|
7341
7341
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
7342
|
-
return n = !0,
|
|
7343
|
-
}), !!((!e.depth || e.depth < 3) &&
|
|
7342
|
+
return n = !0, Mn;
|
|
7343
|
+
}), !!((!e.depth || e.depth < 3) && Qn(e) && (t.options.setext || n));
|
|
7344
7344
|
}
|
|
7345
7345
|
function ac(e, t, n, r) {
|
|
7346
7346
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
@@ -7371,16 +7371,16 @@ function ac(e, t, n, r) {
|
|
|
7371
7371
|
});
|
|
7372
7372
|
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;
|
|
7373
7373
|
}
|
|
7374
|
-
|
|
7375
|
-
function
|
|
7374
|
+
Kr.peek = uc;
|
|
7375
|
+
function Kr(e) {
|
|
7376
7376
|
return e.value || "";
|
|
7377
7377
|
}
|
|
7378
7378
|
function uc() {
|
|
7379
7379
|
return "<";
|
|
7380
7380
|
}
|
|
7381
|
-
|
|
7382
|
-
function
|
|
7383
|
-
const i =
|
|
7381
|
+
Jr.peek = sc;
|
|
7382
|
+
function Jr(e, t, n, r) {
|
|
7383
|
+
const i = it(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.enter("image");
|
|
7384
7384
|
let a = n.enter("label");
|
|
7385
7385
|
const u = n.createTracker(r);
|
|
7386
7386
|
let s = u.move("![");
|
|
@@ -7407,8 +7407,8 @@ function Kr(e, t, n, r) {
|
|
|
7407
7407
|
function sc() {
|
|
7408
7408
|
return "!";
|
|
7409
7409
|
}
|
|
7410
|
-
|
|
7411
|
-
function
|
|
7410
|
+
Zr.peek = cc;
|
|
7411
|
+
function Zr(e, t, n, r) {
|
|
7412
7412
|
const i = e.referenceType, o = n.enter("imageReference");
|
|
7413
7413
|
let l = n.enter("label");
|
|
7414
7414
|
const a = n.createTracker(r);
|
|
@@ -7431,8 +7431,8 @@ function Jr(e, t, n, r) {
|
|
|
7431
7431
|
function cc() {
|
|
7432
7432
|
return "!";
|
|
7433
7433
|
}
|
|
7434
|
-
|
|
7435
|
-
function
|
|
7434
|
+
ei.peek = fc;
|
|
7435
|
+
function ei(e, t, n) {
|
|
7436
7436
|
let r = e.value || "", i = "`", o = -1;
|
|
7437
7437
|
for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
|
|
7438
7438
|
i += "`";
|
|
@@ -7450,8 +7450,8 @@ function Zr(e, t, n) {
|
|
|
7450
7450
|
function fc() {
|
|
7451
7451
|
return "`";
|
|
7452
7452
|
}
|
|
7453
|
-
function
|
|
7454
|
-
const n =
|
|
7453
|
+
function ni(e, t) {
|
|
7454
|
+
const n = Qn(e);
|
|
7455
7455
|
return !!(!t.options.resourceLink && // If there’s a url…
|
|
7456
7456
|
e.url && // And there’s a no title…
|
|
7457
7457
|
!e.title && // And the content of `node` is a single text node…
|
|
@@ -7461,11 +7461,11 @@ function ei(e, t) {
|
|
|
7461
7461
|
// references don’t work), space, or angle brackets…
|
|
7462
7462
|
!/[\0- <>\u007F]/.test(e.url));
|
|
7463
7463
|
}
|
|
7464
|
-
|
|
7465
|
-
function
|
|
7466
|
-
const i =
|
|
7464
|
+
ti.peek = hc;
|
|
7465
|
+
function ti(e, t, n, r) {
|
|
7466
|
+
const i = it(n), o = i === '"' ? "Quote" : "Apostrophe", l = n.createTracker(r);
|
|
7467
7467
|
let a, u;
|
|
7468
|
-
if (
|
|
7468
|
+
if (ni(e, n)) {
|
|
7469
7469
|
const f = n.stack;
|
|
7470
7470
|
n.stack = [], a = n.enter("autolink");
|
|
7471
7471
|
let c = l.move("<");
|
|
@@ -7504,10 +7504,10 @@ function ni(e, t, n, r) {
|
|
|
7504
7504
|
), s += l.move(i), u()), s += l.move(")"), a(), s;
|
|
7505
7505
|
}
|
|
7506
7506
|
function hc(e, t, n) {
|
|
7507
|
-
return
|
|
7507
|
+
return ni(e, n) ? "<" : "[";
|
|
7508
7508
|
}
|
|
7509
|
-
|
|
7510
|
-
function
|
|
7509
|
+
ri.peek = pc;
|
|
7510
|
+
function ri(e, t, n, r) {
|
|
7511
7511
|
const i = e.referenceType, o = n.enter("linkReference");
|
|
7512
7512
|
let l = n.enter("label");
|
|
7513
7513
|
const a = n.createTracker(r);
|
|
@@ -7530,7 +7530,7 @@ function ti(e, t, n, r) {
|
|
|
7530
7530
|
function pc() {
|
|
7531
7531
|
return "[";
|
|
7532
7532
|
}
|
|
7533
|
-
function
|
|
7533
|
+
function lt(e) {
|
|
7534
7534
|
const t = e.options.bullet || "*";
|
|
7535
7535
|
if (t !== "*" && t !== "+" && t !== "-")
|
|
7536
7536
|
throw new Error(
|
|
@@ -7539,7 +7539,7 @@ function it(e) {
|
|
|
7539
7539
|
return t;
|
|
7540
7540
|
}
|
|
7541
7541
|
function mc(e) {
|
|
7542
|
-
const t =
|
|
7542
|
+
const t = lt(e), n = e.options.bulletOther;
|
|
7543
7543
|
if (!n)
|
|
7544
7544
|
return t === "*" ? "-" : "*";
|
|
7545
7545
|
if (n !== "*" && n !== "+" && n !== "-")
|
|
@@ -7560,7 +7560,7 @@ function gc(e) {
|
|
|
7560
7560
|
);
|
|
7561
7561
|
return t;
|
|
7562
7562
|
}
|
|
7563
|
-
function
|
|
7563
|
+
function ii(e) {
|
|
7564
7564
|
const t = e.options.rule || "*";
|
|
7565
7565
|
if (t !== "*" && t !== "-" && t !== "_")
|
|
7566
7566
|
throw new Error(
|
|
@@ -7570,7 +7570,7 @@ function ri(e) {
|
|
|
7570
7570
|
}
|
|
7571
7571
|
function dc(e, t, n, r) {
|
|
7572
7572
|
const i = n.enter("list"), o = n.bulletCurrent;
|
|
7573
|
-
let l = e.ordered ? gc(n) :
|
|
7573
|
+
let l = e.ordered ? gc(n) : lt(n);
|
|
7574
7574
|
const a = e.ordered ? l === "." ? ")" : "." : mc(n);
|
|
7575
7575
|
let u = t && n.bulletLastUsed ? l === n.bulletLastUsed : !1;
|
|
7576
7576
|
if (!e.ordered) {
|
|
@@ -7580,7 +7580,7 @@ function dc(e, t, n, r) {
|
|
|
7580
7580
|
(l === "*" || l === "-") && // Empty first list item:
|
|
7581
7581
|
f && (!f.children || !f.children[0]) && // Directly in two other list items:
|
|
7582
7582
|
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.
|
|
7583
|
-
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (u = !0),
|
|
7583
|
+
n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (u = !0), ii(n) === l && f
|
|
7584
7584
|
) {
|
|
7585
7585
|
let c = -1;
|
|
7586
7586
|
for (; ++c < e.children.length; ) {
|
|
@@ -7606,7 +7606,7 @@ function yc(e) {
|
|
|
7606
7606
|
}
|
|
7607
7607
|
function kc(e, t, n, r) {
|
|
7608
7608
|
const i = yc(n);
|
|
7609
|
-
let o = n.bulletCurrent ||
|
|
7609
|
+
let o = n.bulletCurrent || lt(n);
|
|
7610
7610
|
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);
|
|
7611
7611
|
let l = o.length + 1;
|
|
7612
7612
|
(i === "tab" || i === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (l = Math.ceil(l / 4) * 4);
|
|
@@ -7664,8 +7664,8 @@ function Sc(e) {
|
|
|
7664
7664
|
);
|
|
7665
7665
|
return t;
|
|
7666
7666
|
}
|
|
7667
|
-
|
|
7668
|
-
function
|
|
7667
|
+
li.peek = Cc;
|
|
7668
|
+
function li(e, t, n, r) {
|
|
7669
7669
|
const i = Sc(n), o = n.enter("strong"), l = n.createTracker(r), a = l.move(i + i);
|
|
7670
7670
|
let u = l.move(
|
|
7671
7671
|
n.containerPhrasing(e, {
|
|
@@ -7703,28 +7703,28 @@ function Ic(e) {
|
|
|
7703
7703
|
return t;
|
|
7704
7704
|
}
|
|
7705
7705
|
function Ac(e, t, n) {
|
|
7706
|
-
const r = (
|
|
7706
|
+
const r = (ii(n) + (n.options.ruleSpaces ? " " : "")).repeat(Ic(n));
|
|
7707
7707
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
7708
7708
|
}
|
|
7709
|
-
const
|
|
7709
|
+
const oi = {
|
|
7710
7710
|
blockquote: Qs,
|
|
7711
|
-
break:
|
|
7711
|
+
break: rr,
|
|
7712
7712
|
code: nc,
|
|
7713
7713
|
definition: rc,
|
|
7714
|
-
emphasis:
|
|
7715
|
-
hardBreak:
|
|
7714
|
+
emphasis: Gr,
|
|
7715
|
+
hardBreak: rr,
|
|
7716
7716
|
heading: ac,
|
|
7717
|
-
html:
|
|
7718
|
-
image:
|
|
7719
|
-
imageReference:
|
|
7720
|
-
inlineCode:
|
|
7721
|
-
link:
|
|
7722
|
-
linkReference:
|
|
7717
|
+
html: Kr,
|
|
7718
|
+
image: Jr,
|
|
7719
|
+
imageReference: Zr,
|
|
7720
|
+
inlineCode: ei,
|
|
7721
|
+
link: ti,
|
|
7722
|
+
linkReference: ri,
|
|
7723
7723
|
list: dc,
|
|
7724
7724
|
listItem: kc,
|
|
7725
7725
|
paragraph: xc,
|
|
7726
7726
|
root: wc,
|
|
7727
|
-
strong:
|
|
7727
|
+
strong: li,
|
|
7728
7728
|
text: Ec,
|
|
7729
7729
|
thematicBreak: Ac
|
|
7730
7730
|
};
|
|
@@ -7732,8 +7732,8 @@ function Tc() {
|
|
|
7732
7732
|
return {
|
|
7733
7733
|
enter: {
|
|
7734
7734
|
table: Pc,
|
|
7735
|
-
tableData:
|
|
7736
|
-
tableHeader:
|
|
7735
|
+
tableData: ir,
|
|
7736
|
+
tableHeader: ir,
|
|
7737
7737
|
tableRow: zc
|
|
7738
7738
|
},
|
|
7739
7739
|
exit: {
|
|
@@ -7767,7 +7767,7 @@ function zc(e) {
|
|
|
7767
7767
|
function Pn(e) {
|
|
7768
7768
|
this.exit(e);
|
|
7769
7769
|
}
|
|
7770
|
-
function
|
|
7770
|
+
function ir(e) {
|
|
7771
7771
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
7772
7772
|
}
|
|
7773
7773
|
function Lc(e) {
|
|
@@ -7808,21 +7808,21 @@ function Fc(e) {
|
|
|
7808
7808
|
tableRow: a
|
|
7809
7809
|
}
|
|
7810
7810
|
};
|
|
7811
|
-
function l(h, d, y,
|
|
7812
|
-
return s(f(h, y,
|
|
7811
|
+
function l(h, d, y, C) {
|
|
7812
|
+
return s(f(h, y, C), h.align);
|
|
7813
7813
|
}
|
|
7814
|
-
function a(h, d, y,
|
|
7815
|
-
const k = c(h, y,
|
|
7814
|
+
function a(h, d, y, C) {
|
|
7815
|
+
const k = c(h, y, C), A = s([k]);
|
|
7816
7816
|
return A.slice(0, A.indexOf(`
|
|
7817
7817
|
`));
|
|
7818
7818
|
}
|
|
7819
|
-
function u(h, d, y,
|
|
7820
|
-
const k = y.enter("tableCell"), A = y.enter("phrasing"),
|
|
7821
|
-
...
|
|
7819
|
+
function u(h, d, y, C) {
|
|
7820
|
+
const k = y.enter("tableCell"), A = y.enter("phrasing"), E = y.containerPhrasing(h, {
|
|
7821
|
+
...C,
|
|
7822
7822
|
before: o,
|
|
7823
7823
|
after: o
|
|
7824
7824
|
});
|
|
7825
|
-
return A(), k(),
|
|
7825
|
+
return A(), k(), E;
|
|
7826
7826
|
}
|
|
7827
7827
|
function s(h, d) {
|
|
7828
7828
|
return Ys(h, {
|
|
@@ -7836,31 +7836,31 @@ function Fc(e) {
|
|
|
7836
7836
|
});
|
|
7837
7837
|
}
|
|
7838
7838
|
function f(h, d, y) {
|
|
7839
|
-
const
|
|
7839
|
+
const C = h.children;
|
|
7840
7840
|
let k = -1;
|
|
7841
|
-
const A = [],
|
|
7842
|
-
for (; ++k <
|
|
7843
|
-
A[k] = c(
|
|
7844
|
-
return
|
|
7841
|
+
const A = [], E = d.enter("table");
|
|
7842
|
+
for (; ++k < C.length; )
|
|
7843
|
+
A[k] = c(C[k], d, y);
|
|
7844
|
+
return E(), A;
|
|
7845
7845
|
}
|
|
7846
7846
|
function c(h, d, y) {
|
|
7847
|
-
const
|
|
7847
|
+
const C = h.children;
|
|
7848
7848
|
let k = -1;
|
|
7849
|
-
const A = [],
|
|
7850
|
-
for (; ++k <
|
|
7851
|
-
A[k] = u(
|
|
7852
|
-
return
|
|
7849
|
+
const A = [], E = d.enter("tableRow");
|
|
7850
|
+
for (; ++k < C.length; )
|
|
7851
|
+
A[k] = u(C[k], h, d, y);
|
|
7852
|
+
return E(), A;
|
|
7853
7853
|
}
|
|
7854
7854
|
function p(h, d, y) {
|
|
7855
|
-
let
|
|
7856
|
-
return y.stack.includes("tableCell") && (
|
|
7855
|
+
let C = oi.inlineCode(h, d, y);
|
|
7856
|
+
return y.stack.includes("tableCell") && (C = C.replace(/\|/g, "\\$&")), C;
|
|
7857
7857
|
}
|
|
7858
7858
|
}
|
|
7859
7859
|
function _c() {
|
|
7860
7860
|
return {
|
|
7861
7861
|
exit: {
|
|
7862
|
-
taskListCheckValueChecked:
|
|
7863
|
-
taskListCheckValueUnchecked:
|
|
7862
|
+
taskListCheckValueChecked: lr,
|
|
7863
|
+
taskListCheckValueUnchecked: lr,
|
|
7864
7864
|
paragraph: Oc
|
|
7865
7865
|
}
|
|
7866
7866
|
};
|
|
@@ -7871,7 +7871,7 @@ function Rc() {
|
|
|
7871
7871
|
handlers: { listItem: Mc }
|
|
7872
7872
|
};
|
|
7873
7873
|
}
|
|
7874
|
-
function
|
|
7874
|
+
function lr(e) {
|
|
7875
7875
|
const t = this.stack[this.stack.length - 2];
|
|
7876
7876
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
7877
7877
|
}
|
|
@@ -7899,7 +7899,7 @@ function Oc(e) {
|
|
|
7899
7899
|
function Mc(e, t, n, r) {
|
|
7900
7900
|
const i = e.children[0], o = typeof e.checked == "boolean" && i && i.type === "paragraph", l = "[" + (e.checked ? "x" : " ") + "] ", a = n.createTracker(r);
|
|
7901
7901
|
o && a.move(l);
|
|
7902
|
-
let u =
|
|
7902
|
+
let u = oi.listItem(e, t, n, {
|
|
7903
7903
|
...r,
|
|
7904
7904
|
...a.current()
|
|
7905
7905
|
});
|
|
@@ -7931,56 +7931,56 @@ function Bc(e) {
|
|
|
7931
7931
|
const jc = {
|
|
7932
7932
|
tokenize: Wc,
|
|
7933
7933
|
partial: !0
|
|
7934
|
-
},
|
|
7934
|
+
}, ai = {
|
|
7935
7935
|
tokenize: Yc,
|
|
7936
7936
|
partial: !0
|
|
7937
|
-
},
|
|
7937
|
+
}, ui = {
|
|
7938
7938
|
tokenize: Xc,
|
|
7939
7939
|
partial: !0
|
|
7940
|
-
},
|
|
7940
|
+
}, si = {
|
|
7941
7941
|
tokenize: Qc,
|
|
7942
7942
|
partial: !0
|
|
7943
7943
|
}, Hc = {
|
|
7944
7944
|
tokenize: Gc,
|
|
7945
7945
|
partial: !0
|
|
7946
|
-
},
|
|
7946
|
+
}, ci = {
|
|
7947
7947
|
name: "wwwAutolink",
|
|
7948
7948
|
tokenize: $c,
|
|
7949
|
-
previous:
|
|
7950
|
-
},
|
|
7949
|
+
previous: hi
|
|
7950
|
+
}, fi = {
|
|
7951
7951
|
name: "protocolAutolink",
|
|
7952
7952
|
tokenize: qc,
|
|
7953
|
-
previous:
|
|
7953
|
+
previous: pi
|
|
7954
7954
|
}, de = {
|
|
7955
7955
|
name: "emailAutolink",
|
|
7956
7956
|
tokenize: Vc,
|
|
7957
|
-
previous:
|
|
7957
|
+
previous: mi
|
|
7958
7958
|
}, fe = {};
|
|
7959
7959
|
function Uc() {
|
|
7960
7960
|
return {
|
|
7961
7961
|
text: fe
|
|
7962
7962
|
};
|
|
7963
7963
|
}
|
|
7964
|
-
let
|
|
7965
|
-
for (;
|
|
7966
|
-
fe[
|
|
7964
|
+
let Ce = 48;
|
|
7965
|
+
for (; Ce < 123; )
|
|
7966
|
+
fe[Ce] = de, Ce++, Ce === 58 ? Ce = 65 : Ce === 91 && (Ce = 97);
|
|
7967
7967
|
fe[43] = de;
|
|
7968
7968
|
fe[45] = de;
|
|
7969
7969
|
fe[46] = de;
|
|
7970
7970
|
fe[95] = de;
|
|
7971
|
-
fe[72] = [de,
|
|
7972
|
-
fe[104] = [de,
|
|
7973
|
-
fe[87] = [de,
|
|
7974
|
-
fe[119] = [de,
|
|
7971
|
+
fe[72] = [de, fi];
|
|
7972
|
+
fe[104] = [de, fi];
|
|
7973
|
+
fe[87] = [de, ci];
|
|
7974
|
+
fe[119] = [de, ci];
|
|
7975
7975
|
function Vc(e, t, n) {
|
|
7976
7976
|
const r = this;
|
|
7977
7977
|
let i, o;
|
|
7978
7978
|
return l;
|
|
7979
7979
|
function l(c) {
|
|
7980
|
-
return !
|
|
7980
|
+
return !Hn(c) || !mi.call(r, r.previous) || ot(r.events) ? n(c) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(c));
|
|
7981
7981
|
}
|
|
7982
7982
|
function a(c) {
|
|
7983
|
-
return
|
|
7983
|
+
return Hn(c) ? (e.consume(c), a) : c === 64 ? (e.consume(c), u) : n(c);
|
|
7984
7984
|
}
|
|
7985
7985
|
function u(c) {
|
|
7986
7986
|
return c === 46 ? e.check(Hc, f, s)(c) : c === 45 || c === 95 || G(c) ? (o = !0, e.consume(c), u) : f(c);
|
|
@@ -7996,7 +7996,7 @@ function $c(e, t, n) {
|
|
|
7996
7996
|
const r = this;
|
|
7997
7997
|
return i;
|
|
7998
7998
|
function i(l) {
|
|
7999
|
-
return l !== 87 && l !== 119 || !
|
|
7999
|
+
return l !== 87 && l !== 119 || !hi.call(r, r.previous) || ot(r.events) ? n(l) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(jc, e.attempt(ai, e.attempt(ui, o), n), n)(l));
|
|
8000
8000
|
}
|
|
8001
8001
|
function o(l) {
|
|
8002
8002
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(l);
|
|
@@ -8007,7 +8007,7 @@ function qc(e, t, n) {
|
|
|
8007
8007
|
let i = "", o = !1;
|
|
8008
8008
|
return l;
|
|
8009
8009
|
function l(c) {
|
|
8010
|
-
return (c === 72 || c === 104) &&
|
|
8010
|
+
return (c === 72 || c === 104) && pi.call(r, r.previous) && !ot(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(c), e.consume(c), a) : n(c);
|
|
8011
8011
|
}
|
|
8012
8012
|
function a(c) {
|
|
8013
8013
|
if (J(c) && i.length < 5)
|
|
@@ -8023,7 +8023,7 @@ function qc(e, t, n) {
|
|
|
8023
8023
|
return c === 47 ? (e.consume(c), o ? s : (o = !0, u)) : n(c);
|
|
8024
8024
|
}
|
|
8025
8025
|
function s(c) {
|
|
8026
|
-
return c === null || rn(c) || U(c) ||
|
|
8026
|
+
return c === null || rn(c) || U(c) || Ie(c) || sn(c) ? n(c) : e.attempt(ai, e.attempt(ui, f), n)(c);
|
|
8027
8027
|
}
|
|
8028
8028
|
function f(c) {
|
|
8029
8029
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(c);
|
|
@@ -8043,7 +8043,7 @@ function Yc(e, t, n) {
|
|
|
8043
8043
|
let r, i, o;
|
|
8044
8044
|
return l;
|
|
8045
8045
|
function l(s) {
|
|
8046
|
-
return s === 46 || s === 95 ? e.check(
|
|
8046
|
+
return s === 46 || s === 95 ? e.check(si, u, a)(s) : s === null || U(s) || Ie(s) || s !== 45 && sn(s) ? u(s) : (o = !0, e.consume(s), l);
|
|
8047
8047
|
}
|
|
8048
8048
|
function a(s) {
|
|
8049
8049
|
return s === 95 ? r = !0 : (i = r, r = void 0), e.consume(s), l;
|
|
@@ -8056,7 +8056,7 @@ function Xc(e, t) {
|
|
|
8056
8056
|
let n = 0, r = 0;
|
|
8057
8057
|
return i;
|
|
8058
8058
|
function i(l) {
|
|
8059
|
-
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(
|
|
8059
|
+
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(si, t, o)(l) : l === null || U(l) || Ie(l) ? t(l) : (e.consume(l), i);
|
|
8060
8060
|
}
|
|
8061
8061
|
function o(l) {
|
|
8062
8062
|
return l === 41 && r++, e.consume(l), i;
|
|
@@ -8068,11 +8068,11 @@ function Qc(e, t, n) {
|
|
|
8068
8068
|
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) : (
|
|
8069
8069
|
// `<` is an end.
|
|
8070
8070
|
a === 60 || // So is whitespace.
|
|
8071
|
-
a === null || U(a) ||
|
|
8071
|
+
a === null || U(a) || Ie(a) ? t(a) : n(a)
|
|
8072
8072
|
);
|
|
8073
8073
|
}
|
|
8074
8074
|
function i(a) {
|
|
8075
|
-
return a === null || a === 40 || a === 91 || U(a) ||
|
|
8075
|
+
return a === null || a === 40 || a === 91 || U(a) || Ie(a) ? t(a) : r(a);
|
|
8076
8076
|
}
|
|
8077
8077
|
function o(a) {
|
|
8078
8078
|
return J(a) ? l(a) : n(a);
|
|
@@ -8090,19 +8090,19 @@ function Gc(e, t, n) {
|
|
|
8090
8090
|
return G(o) ? n(o) : t(o);
|
|
8091
8091
|
}
|
|
8092
8092
|
}
|
|
8093
|
-
function
|
|
8093
|
+
function hi(e) {
|
|
8094
8094
|
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || U(e);
|
|
8095
8095
|
}
|
|
8096
|
-
function
|
|
8096
|
+
function pi(e) {
|
|
8097
8097
|
return !J(e);
|
|
8098
8098
|
}
|
|
8099
|
-
function
|
|
8100
|
-
return !(e === 47 ||
|
|
8099
|
+
function mi(e) {
|
|
8100
|
+
return !(e === 47 || Hn(e));
|
|
8101
8101
|
}
|
|
8102
|
-
function
|
|
8102
|
+
function Hn(e) {
|
|
8103
8103
|
return e === 43 || e === 45 || e === 46 || e === 95 || G(e);
|
|
8104
8104
|
}
|
|
8105
|
-
function
|
|
8105
|
+
function ot(e) {
|
|
8106
8106
|
let t = e.length, n = !1;
|
|
8107
8107
|
for (; t--; ) {
|
|
8108
8108
|
const r = e[t][1];
|
|
@@ -8358,8 +8358,8 @@ function af(e) {
|
|
|
8358
8358
|
if (d === 126)
|
|
8359
8359
|
return c > 1 ? u(d) : (l.consume(d), c++, h);
|
|
8360
8360
|
if (c < 2 && !n) return u(d);
|
|
8361
|
-
const
|
|
8362
|
-
return
|
|
8361
|
+
const C = l.exit("strikethroughSequenceTemporary"), k = Fe(d);
|
|
8362
|
+
return C._open = !k || k === 2 && !!y, C._close = !y || y === 2 && !!k, a(d);
|
|
8363
8363
|
}
|
|
8364
8364
|
}
|
|
8365
8365
|
}
|
|
@@ -8496,24 +8496,24 @@ function hf(e, t, n) {
|
|
|
8496
8496
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(x) : (e.enter("tableDelimiterRow"), l = !1, _(x) ? O(e, d, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(x) : d(x));
|
|
8497
8497
|
}
|
|
8498
8498
|
function d(x) {
|
|
8499
|
-
return x === 45 || x === 58 ?
|
|
8499
|
+
return x === 45 || x === 58 ? C(x) : x === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(x), e.exit("tableCellDivider"), y) : F(x);
|
|
8500
8500
|
}
|
|
8501
8501
|
function y(x) {
|
|
8502
|
-
return _(x) ? O(e,
|
|
8502
|
+
return _(x) ? O(e, C, "whitespace")(x) : C(x);
|
|
8503
8503
|
}
|
|
8504
|
-
function
|
|
8505
|
-
return x === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), k) : x === 45 ? (o += 1, k(x)) : x === null || v(x) ?
|
|
8504
|
+
function C(x) {
|
|
8505
|
+
return x === 58 ? (o += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), k) : x === 45 ? (o += 1, k(x)) : x === null || v(x) ? L(x) : F(x);
|
|
8506
8506
|
}
|
|
8507
8507
|
function k(x) {
|
|
8508
8508
|
return x === 45 ? (e.enter("tableDelimiterFiller"), A(x)) : F(x);
|
|
8509
8509
|
}
|
|
8510
8510
|
function A(x) {
|
|
8511
|
-
return x === 45 ? (e.consume(x), A) : x === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"),
|
|
8511
|
+
return x === 45 ? (e.consume(x), A) : x === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(x), e.exit("tableDelimiterMarker"), E) : (e.exit("tableDelimiterFiller"), E(x));
|
|
8512
8512
|
}
|
|
8513
|
-
function
|
|
8514
|
-
return _(x) ? O(e,
|
|
8513
|
+
function E(x) {
|
|
8514
|
+
return _(x) ? O(e, L, "whitespace")(x) : L(x);
|
|
8515
8515
|
}
|
|
8516
|
-
function
|
|
8516
|
+
function L(x) {
|
|
8517
8517
|
return x === 124 ? d(x) : x === null || v(x) ? !l || i !== o ? F(x) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(x)) : F(x);
|
|
8518
8518
|
}
|
|
8519
8519
|
function F(x) {
|
|
@@ -8537,7 +8537,7 @@ function pf(e, t) {
|
|
|
8537
8537
|
const p = new uf();
|
|
8538
8538
|
for (; ++n < e.length; ) {
|
|
8539
8539
|
const h = e[n], d = h[1];
|
|
8540
|
-
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (
|
|
8540
|
+
h[0] === "enter" ? d.type === "tableHead" ? (a = !1, u !== 0 && (or(p, t, u, s, f), f = void 0, u = 0), s = {
|
|
8541
8541
|
type: "table",
|
|
8542
8542
|
start: Object.assign({}, d.start),
|
|
8543
8543
|
// Note: correct end is set later.
|
|
@@ -8549,7 +8549,7 @@ function pf(e, t) {
|
|
|
8549
8549
|
end: Object.assign({}, d.end)
|
|
8550
8550
|
}, p.add(n, 0, [["enter", f, t]])), i = d.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") ? (r = !1, l[2] === 0 && (o[1] !== 0 && (l[0] = l[1], c = Ze(p, t, o, i, void 0, c), o = [0, 0, 0, 0]), l[2] = n)) : d.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (l[0] = l[1], c = Ze(p, t, o, i, void 0, c)), o = l, l = [o[1], n, 0, 0])) : d.type === "tableHead" ? (a = !0, u = n) : d.type === "tableRow" || d.type === "tableDelimiterRow" ? (u = n, o[1] !== 0 ? (l[0] = l[1], c = Ze(p, t, o, i, n, c)) : l[1] !== 0 && (c = Ze(p, t, l, i, n, c)), i = 0) : i && (d.type === "data" || d.type === "tableDelimiterMarker" || d.type === "tableDelimiterFiller") && (l[3] = n);
|
|
8551
8551
|
}
|
|
8552
|
-
for (u !== 0 &&
|
|
8552
|
+
for (u !== 0 && or(p, t, u, s, f), p.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
8553
8553
|
const h = t.events[n];
|
|
8554
8554
|
h[0] === "enter" && h[1].type === "table" && (h[1]._align = cf(t.events, n));
|
|
8555
8555
|
}
|
|
@@ -8557,15 +8557,15 @@ function pf(e, t) {
|
|
|
8557
8557
|
}
|
|
8558
8558
|
function Ze(e, t, n, r, i, o) {
|
|
8559
8559
|
const l = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData", a = "tableContent";
|
|
8560
|
-
n[0] !== 0 && (o.end = Object.assign({},
|
|
8561
|
-
const u =
|
|
8560
|
+
n[0] !== 0 && (o.end = Object.assign({}, Le(t.events, n[0])), e.add(n[0], 0, [["exit", o, t]]));
|
|
8561
|
+
const u = Le(t.events, n[1]);
|
|
8562
8562
|
if (o = {
|
|
8563
8563
|
type: l,
|
|
8564
8564
|
start: Object.assign({}, u),
|
|
8565
8565
|
// Note: correct end is set later.
|
|
8566
8566
|
end: Object.assign({}, u)
|
|
8567
8567
|
}, e.add(n[1], 0, [["enter", o, t]]), n[2] !== 0) {
|
|
8568
|
-
const s =
|
|
8568
|
+
const s = Le(t.events, n[2]), f = Le(t.events, n[3]), c = {
|
|
8569
8569
|
type: a,
|
|
8570
8570
|
start: Object.assign({}, s),
|
|
8571
8571
|
end: Object.assign({}, f)
|
|
@@ -8579,13 +8579,13 @@ function Ze(e, t, n, r, i, o) {
|
|
|
8579
8579
|
}
|
|
8580
8580
|
e.add(n[3] + 1, 0, [["exit", c, t]]);
|
|
8581
8581
|
}
|
|
8582
|
-
return i !== void 0 && (o.end = Object.assign({},
|
|
8582
|
+
return i !== void 0 && (o.end = Object.assign({}, Le(t.events, i)), e.add(i, 0, [["exit", o, t]]), o = void 0), o;
|
|
8583
8583
|
}
|
|
8584
|
-
function
|
|
8585
|
-
const o = [], l =
|
|
8584
|
+
function or(e, t, n, r, i) {
|
|
8585
|
+
const o = [], l = Le(t.events, n);
|
|
8586
8586
|
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);
|
|
8587
8587
|
}
|
|
8588
|
-
function
|
|
8588
|
+
function Le(e, t) {
|
|
8589
8589
|
const n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
8590
8590
|
return n[1][r];
|
|
8591
8591
|
}
|
|
@@ -8630,7 +8630,7 @@ function yf(e, t, n) {
|
|
|
8630
8630
|
}
|
|
8631
8631
|
}
|
|
8632
8632
|
function kf(e) {
|
|
8633
|
-
return
|
|
8633
|
+
return Cr([
|
|
8634
8634
|
Uc(),
|
|
8635
8635
|
Jc(),
|
|
8636
8636
|
af(e),
|
|
@@ -8647,7 +8647,7 @@ function bf(e) {
|
|
|
8647
8647
|
i.push(kf(n)), o.push(Nc()), l.push(Bc(n));
|
|
8648
8648
|
}
|
|
8649
8649
|
function wf(e) {
|
|
8650
|
-
|
|
8650
|
+
qr(e, [/\r?\n|\r/g, Sf]);
|
|
8651
8651
|
}
|
|
8652
8652
|
function Sf() {
|
|
8653
8653
|
return { type: "break" };
|
|
@@ -8657,12 +8657,12 @@ function Cf() {
|
|
|
8657
8657
|
wf(e);
|
|
8658
8658
|
};
|
|
8659
8659
|
}
|
|
8660
|
-
const Ef = "_markdown_1kgcy_1",
|
|
8660
|
+
const Ef = "_markdown_1kgcy_1", ar = {
|
|
8661
8661
|
markdown: Ef
|
|
8662
8662
|
}, If = {
|
|
8663
8663
|
aside: ({ node: e, className: t, children: n, ...r }) => {
|
|
8664
8664
|
const i = (e == null ? void 0 : e.properties) ?? {}, o = typeof i["data-admonition"] == "string" ? i["data-admonition"] : "note", l = typeof i["data-admonition-variant"] == "string" ? i["data-admonition-variant"] : "unknown", a = typeof i["data-admonition-icon"] == "string" ? i["data-admonition-icon"] : void 0, u = typeof i["data-admonition-title"] == "string" ? i["data-admonition-title"] : void 0;
|
|
8665
|
-
return o === "upsell" ? /* @__PURE__ */
|
|
8665
|
+
return o === "upsell" ? /* @__PURE__ */ xe(
|
|
8666
8666
|
Ti,
|
|
8667
8667
|
{
|
|
8668
8668
|
...r,
|
|
@@ -8671,7 +8671,7 @@ const Ef = "_markdown_1kgcy_1", or = {
|
|
|
8671
8671
|
title: u ?? "Upsell",
|
|
8672
8672
|
subtext: n
|
|
8673
8673
|
}
|
|
8674
|
-
) : /* @__PURE__ */
|
|
8674
|
+
) : /* @__PURE__ */ xe(
|
|
8675
8675
|
Ai,
|
|
8676
8676
|
{
|
|
8677
8677
|
...r,
|
|
@@ -8707,22 +8707,31 @@ function Df({
|
|
|
8707
8707
|
);
|
|
8708
8708
|
if (!s) return null;
|
|
8709
8709
|
const c = r || i ? {
|
|
8710
|
-
a: ({ node: d, href: y, ...
|
|
8711
|
-
const
|
|
8712
|
-
|
|
8710
|
+
a: ({ node: d, href: y, children: C, ...k }) => {
|
|
8711
|
+
const A = [r, i].filter((L) => typeof L == "string").map((L) => new URL(L).origin);
|
|
8712
|
+
let E = !y || y.startsWith("/") || y.startsWith("#");
|
|
8713
|
+
if (!E) {
|
|
8714
|
+
if (!y) return /* @__PURE__ */ xe(vn, { children: C });
|
|
8715
|
+
try {
|
|
8716
|
+
E = A.includes(new URL(y).origin);
|
|
8717
|
+
} catch {
|
|
8718
|
+
return /* @__PURE__ */ xe(vn, { children: C });
|
|
8719
|
+
}
|
|
8720
|
+
}
|
|
8721
|
+
return /* @__PURE__ */ xe(
|
|
8713
8722
|
"a",
|
|
8714
8723
|
{
|
|
8715
|
-
...
|
|
8724
|
+
...k,
|
|
8716
8725
|
href: y,
|
|
8717
|
-
...!
|
|
8726
|
+
...!E && {
|
|
8718
8727
|
target: "_blank",
|
|
8719
8728
|
rel: "noopener noreferrer"
|
|
8720
8729
|
}
|
|
8721
8730
|
}
|
|
8722
8731
|
);
|
|
8723
8732
|
}
|
|
8724
|
-
} : {}, p = t ? `${
|
|
8725
|
-
return /* @__PURE__ */
|
|
8733
|
+
} : {}, p = t ? `${ar.markdown} ${t}` : ar.markdown, h = { ...If, ...c, ...n };
|
|
8734
|
+
return /* @__PURE__ */ xe("div", { className: p, children: /* @__PURE__ */ xe(
|
|
8726
8735
|
as,
|
|
8727
8736
|
{
|
|
8728
8737
|
remarkPlugins: [bf, Cf, Ii],
|