@versini/sassysaint 8.87.0 → 8.87.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.DkbFYL2t.js → AboutChangelog.o0RrePDe.js} +3 -3
- package/dist/chunks/{AboutEntry.DendBA43.js → AboutEntry.B-jI9DmU.js} +5 -5
- package/dist/chunks/{App.QSOXgzIH.js → App.Cw4x07xc.js} +16 -16
- package/dist/chunks/{Chart.C9bHvy2K.js → Chart.Cnr0zcD_.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Btz9UWKo.js → ChatBubbleAssistant.Dov1Kdlx.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.DS4Vvpe1.js → ChatBubbleUser.BpJ-IsSf.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.FldPAY_P.js → ChatHistoryTable.BjqwKZJO.js} +3 -3
- package/dist/chunks/{HistoryEntry.BvKANXld.js → HistoryEntry.CYnHVo3I.js} +3 -3
- package/dist/chunks/{ProfileEntry.ShOqkzsc.js → ProfileEntry.U3mHnYGY.js} +2 -2
- package/dist/chunks/{SettingsEntry.CN-udzD7.js → SettingsEntry.2ursSi4P.js} +3 -3
- package/dist/chunks/{UsageEntry.DQM0kwWT.js → UsageEntry.BOr75SBT.js} +3 -3
- package/dist/chunks/UserMemoriesPanel.BBBhJt3_.js +756 -0
- package/dist/chunks/{index.rTT6Fa2A.js → index.BUPcQvlr.js} +1 -1
- package/dist/chunks/{index.CwcDgCgg.js → index.Bfo9JTHh.js} +1 -1
- package/dist/chunks/{index.CoKtiw-a.js → index.BrE3_o6F.js} +2 -2
- package/dist/chunks/{index.Cw_qwY4i.js → index.CFqFrOCp.js} +1 -1
- package/dist/chunks/{index.tCwYhDIF.js → index.CpMnKe5v.js} +3 -3
- package/dist/chunks/{index.BOTqIliq.js → index.DoR-38mQ.js} +1 -1
- package/dist/chunks/{index.C2dcBo5d.js → index.euuiion4.js} +1 -1
- package/dist/chunks/{index.s8wrxGpV.js → index.nlBBvIGH.js} +1 -1
- package/dist/chunks/{index.DXPR93d9.js → index.o7M2h5Kz.js} +1 -1
- package/dist/chunks/{useMarkdown.BkKfGoyx.js → useMarkdown.Cwmhcac2.js} +279 -280
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/UserMemoriesPanel.a4D47pAN.js +0 -745
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { isTauri as Lr, ButtonCopy as zr, unObfuscate as _r, obfuscate as Mr } from "./index.BOTqIliq.js";
|
|
1
|
+
import { jsx as Le, jsxs as vt, Fragment as Tr } from "react/jsx-runtime";
|
|
2
|
+
import { isTauri as Lr, ButtonCopy as zr, unObfuscate as _r, obfuscate as Mr } from "./index.DoR-38mQ.js";
|
|
4
3
|
import { useCallback as Dt, useRef as vn, useState as Nr, useEffect as Rr } from "react";
|
|
5
|
-
import { getDefaultExportFromCjs as
|
|
6
|
-
const
|
|
4
|
+
import { getDefaultExportFromCjs as Ot } from "./App.Cw4x07xc.js";
|
|
5
|
+
const Ft = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, Ut = 8, Qe = typeof self == "object" ? self : globalThis, vr = (n, e) => {
|
|
7
6
|
const t = (i, l) => (n.set(l, i), i), r = (i) => {
|
|
8
7
|
if (n.has(i))
|
|
9
8
|
return n.get(i);
|
|
10
9
|
const [l, o] = e[i];
|
|
11
10
|
switch (l) {
|
|
12
11
|
case ee:
|
|
13
|
-
case
|
|
12
|
+
case Ft:
|
|
14
13
|
return t(o, i);
|
|
15
14
|
case Hn: {
|
|
16
15
|
const a = t([], i);
|
|
@@ -46,7 +45,7 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
46
45
|
const { name: a, message: s } = o;
|
|
47
46
|
return t(new Qe[a](s), i);
|
|
48
47
|
}
|
|
49
|
-
case
|
|
48
|
+
case Ut:
|
|
50
49
|
return t(BigInt(o), i);
|
|
51
50
|
case "BigInt":
|
|
52
51
|
return t(Object(BigInt(o)), i);
|
|
@@ -60,7 +59,7 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
60
59
|
return t(new Qe[l](o), i);
|
|
61
60
|
};
|
|
62
61
|
return r;
|
|
63
|
-
}, Je = (n) => vr(/* @__PURE__ */ new Map(), n)(0), Pn = "", { toString: Dr } = {}, { keys:
|
|
62
|
+
}, Je = (n) => vr(/* @__PURE__ */ new Map(), n)(0), Pn = "", { toString: Dr } = {}, { keys: Or } = Object, Dn = (n) => {
|
|
64
63
|
const e = typeof n;
|
|
65
64
|
if (e !== "object" || !n)
|
|
66
65
|
return [ee, e];
|
|
@@ -82,7 +81,7 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
82
81
|
return [Hn, t];
|
|
83
82
|
}
|
|
84
83
|
return t.includes("Array") ? [Hn, t] : t.includes("Error") ? [Bt, t] : [ne, t];
|
|
85
|
-
}, Yn = ([n, e]) => n === ee && (e === "function" || e === "symbol"),
|
|
84
|
+
}, Yn = ([n, e]) => n === ee && (e === "function" || e === "symbol"), Fr = (n, e, t, r) => {
|
|
86
85
|
const i = (o, a) => {
|
|
87
86
|
const s = r.push(o) - 1;
|
|
88
87
|
return t.set(a, s), s;
|
|
@@ -95,7 +94,7 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
95
94
|
let c = o;
|
|
96
95
|
switch (s) {
|
|
97
96
|
case "bigint":
|
|
98
|
-
a =
|
|
97
|
+
a = Ut, c = o.toString();
|
|
99
98
|
break;
|
|
100
99
|
case "function":
|
|
101
100
|
case "symbol":
|
|
@@ -104,7 +103,7 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
104
103
|
c = null;
|
|
105
104
|
break;
|
|
106
105
|
case "undefined":
|
|
107
|
-
return i([
|
|
106
|
+
return i([Ft], o);
|
|
108
107
|
}
|
|
109
108
|
return i([a, c], o);
|
|
110
109
|
}
|
|
@@ -131,7 +130,7 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
131
130
|
if (e && "toJSON" in o)
|
|
132
131
|
return l(o.toJSON());
|
|
133
132
|
const c = [], p = i([a, c], o);
|
|
134
|
-
for (const d of
|
|
133
|
+
for (const d of Or(o))
|
|
135
134
|
(n || !Yn(Dn(o[d]))) && c.push([l(d), l(o[d])]);
|
|
136
135
|
return p;
|
|
137
136
|
}
|
|
@@ -160,11 +159,11 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
160
159
|
return l;
|
|
161
160
|
}, Ze = (n, { json: e, lossy: t } = {}) => {
|
|
162
161
|
const r = [];
|
|
163
|
-
return
|
|
162
|
+
return Fr(!(e || t), !!e, /* @__PURE__ */ new Map(), r)(n), r;
|
|
164
163
|
}, bn = typeof structuredClone == "function" ? (
|
|
165
164
|
/* c8 ignore start */
|
|
166
165
|
(n, e) => e && ("json" in e || "lossy" in e) ? Je(Ze(n, e)) : structuredClone(n)
|
|
167
|
-
) : (n, e) => Je(Ze(n, e)),
|
|
166
|
+
) : (n, e) => Je(Ze(n, e)), jt = (
|
|
168
167
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
169
168
|
/**
|
|
170
169
|
* @type {(
|
|
@@ -180,9 +179,9 @@ const Ot = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, j
|
|
|
180
179
|
*/
|
|
181
180
|
(function(n) {
|
|
182
181
|
if (n == null)
|
|
183
|
-
return
|
|
182
|
+
return jr;
|
|
184
183
|
if (typeof n == "string")
|
|
185
|
-
return
|
|
184
|
+
return Ur(n);
|
|
186
185
|
if (typeof n == "object")
|
|
187
186
|
return Br(n);
|
|
188
187
|
if (typeof n == "function")
|
|
@@ -194,7 +193,7 @@ function Br(n) {
|
|
|
194
193
|
const e = [];
|
|
195
194
|
let t = -1;
|
|
196
195
|
for (; ++t < n.length; )
|
|
197
|
-
e[t] =
|
|
196
|
+
e[t] = jt(n[t]);
|
|
198
197
|
return Re(r);
|
|
199
198
|
function r(...i) {
|
|
200
199
|
let l = -1;
|
|
@@ -203,7 +202,7 @@ function Br(n) {
|
|
|
203
202
|
return !1;
|
|
204
203
|
}
|
|
205
204
|
}
|
|
206
|
-
function
|
|
205
|
+
function Ur(n) {
|
|
207
206
|
return Re(e);
|
|
208
207
|
function e(t) {
|
|
209
208
|
return t.tagName === n;
|
|
@@ -220,7 +219,7 @@ function Re(n) {
|
|
|
220
219
|
));
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
|
-
function
|
|
222
|
+
function jr(n) {
|
|
224
223
|
return !!(n && typeof n == "object" && "type" in n && n.type === "element" && "tagName" in n && typeof n.tagName == "string");
|
|
225
224
|
}
|
|
226
225
|
function Hr(n) {
|
|
@@ -327,7 +326,7 @@ function Qr() {
|
|
|
327
326
|
function Jr(n) {
|
|
328
327
|
return n !== null && typeof n == "object" && "type" in n;
|
|
329
328
|
}
|
|
330
|
-
const $t = [],
|
|
329
|
+
const $t = [], jn = !0, nt = !1, ke = "skip";
|
|
331
330
|
function Zr(n, e, t, r) {
|
|
332
331
|
let i;
|
|
333
332
|
typeof e == "function" && typeof t != "function" ? (r = t, t = e) : i = e;
|
|
@@ -360,7 +359,7 @@ function Zr(n, e, t, r) {
|
|
|
360
359
|
/** @type {UnistParent} */
|
|
361
360
|
s
|
|
362
361
|
);
|
|
363
|
-
if (x.children && f[0] !==
|
|
362
|
+
if (x.children && f[0] !== ke)
|
|
364
363
|
for (b = (r ? x.children.length : -1) + o, L = c.concat(x); b > -1 && b < x.children.length; ) {
|
|
365
364
|
const T = x.children[b];
|
|
366
365
|
if (w = a(T, b, L)(), w[0] === nt)
|
|
@@ -373,7 +372,7 @@ function Zr(n, e, t, r) {
|
|
|
373
372
|
}
|
|
374
373
|
}
|
|
375
374
|
function ni(n) {
|
|
376
|
-
return Array.isArray(n) ? n : typeof n == "number" ? [
|
|
375
|
+
return Array.isArray(n) ? n : typeof n == "number" ? [jn, n] : n == null ? $t : [n];
|
|
377
376
|
}
|
|
378
377
|
function wn(n, e, t, r) {
|
|
379
378
|
let i, l, o;
|
|
@@ -385,15 +384,15 @@ function wn(n, e, t, r) {
|
|
|
385
384
|
}
|
|
386
385
|
const ei = ["http", "https"], ti = ["nofollow"], ri = {};
|
|
387
386
|
function ii(n) {
|
|
388
|
-
const e = n || ri, t = e.protocols || ei, r =
|
|
387
|
+
const e = n || ri, t = e.protocols || ei, r = jt(e.test);
|
|
389
388
|
return function(i) {
|
|
390
389
|
wn(i, "element", function(l, o, a) {
|
|
391
390
|
if (l.tagName === "a" && typeof l.properties.href == "string" && r(l, o, a)) {
|
|
392
391
|
const s = l.properties.href;
|
|
393
392
|
if (qr(s) ? t.includes(s.slice(0, s.indexOf(":"))) : s.startsWith("//")) {
|
|
394
|
-
const u =
|
|
393
|
+
const u = On(e.content, l), c = u && !Array.isArray(u) ? [u] : u, p = On(e.rel, l) || ti, d = typeof p == "string" ? Wr(p) : p, f = On(e.target, l), w = On(e.properties, l);
|
|
395
394
|
if (w && Object.assign(l.properties, bn(w)), d.length > 0 && (l.properties.rel = [...d]), f && (l.properties.target = f), c) {
|
|
396
|
-
const b =
|
|
395
|
+
const b = On(e.contentProperties, l) || {};
|
|
397
396
|
l.children.push({
|
|
398
397
|
type: "element",
|
|
399
398
|
tagName: "span",
|
|
@@ -406,7 +405,7 @@ function ii(n) {
|
|
|
406
405
|
});
|
|
407
406
|
};
|
|
408
407
|
}
|
|
409
|
-
function
|
|
408
|
+
function On(n, e) {
|
|
410
409
|
return typeof n == "function" ? n(e) : n;
|
|
411
410
|
}
|
|
412
411
|
function li({ defaultOrigin: n = "", allowedLinkPrefixes: e = [], allowedImagePrefixes: t = [], allowDataImages: r = !1, blockedImageClass: i = "inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm", blockedLinkClass: l = "text-gray-500" }) {
|
|
@@ -466,14 +465,14 @@ function tt(n, e, t, r = !1, i = !1) {
|
|
|
466
465
|
return !s || s.origin !== l.origin ? !1 : l.href.startsWith(s.href);
|
|
467
466
|
}) ? o ? l.pathname + l.search + l.hash : l.href : e.includes("*") ? l.protocol !== "https:" && l.protocol !== "http:" ? null : o ? l.pathname + l.search + l.hash : l.href : null;
|
|
468
467
|
}
|
|
469
|
-
const
|
|
468
|
+
const le = Symbol("node-seen"), ui = (n, e, t, r, i, l) => {
|
|
470
469
|
const o = (a, s, u) => {
|
|
471
470
|
if (a.type !== "element" || // @ts-expect-error
|
|
472
|
-
a[
|
|
473
|
-
return
|
|
471
|
+
a[le])
|
|
472
|
+
return jn;
|
|
474
473
|
if (a.tagName === "a") {
|
|
475
474
|
const c = tt(a.properties.href, e, n, !1, !1);
|
|
476
|
-
return c === null ? (a[
|
|
475
|
+
return c === null ? (a[le] = !0, wn(a, o), u && typeof s == "number" && (u.children[s] = {
|
|
477
476
|
type: "element",
|
|
478
477
|
tagName: "span",
|
|
479
478
|
properties: {
|
|
@@ -487,11 +486,11 @@ const oe = Symbol("node-seen"), ui = (n, e, t, r, i, l) => {
|
|
|
487
486
|
value: " [blocked]"
|
|
488
487
|
}
|
|
489
488
|
]
|
|
490
|
-
}),
|
|
489
|
+
}), ke) : (a.properties.href = c, a.properties.target = "_blank", a.properties.rel = "noopener noreferrer", jn);
|
|
491
490
|
}
|
|
492
491
|
if (a.tagName === "img") {
|
|
493
492
|
const c = tt(a.properties.src, t, n, r, !0);
|
|
494
|
-
return c === null ? (a[
|
|
493
|
+
return c === null ? (a[le] = !0, wn(a, o), u && typeof s == "number" && (u.children[s] = {
|
|
495
494
|
type: "element",
|
|
496
495
|
tagName: "span",
|
|
497
496
|
properties: {
|
|
@@ -503,9 +502,9 @@ const oe = Symbol("node-seen"), ui = (n, e, t, r, i, l) => {
|
|
|
503
502
|
value: "[Image blocked: " + String(a.properties.alt || "No description") + "]"
|
|
504
503
|
}
|
|
505
504
|
]
|
|
506
|
-
}),
|
|
505
|
+
}), ke) : (a.properties.src = c, jn);
|
|
507
506
|
}
|
|
508
|
-
return
|
|
507
|
+
return jn;
|
|
509
508
|
};
|
|
510
509
|
return o;
|
|
511
510
|
};
|
|
@@ -560,7 +559,7 @@ function Vt(n, e) {
|
|
|
560
559
|
Object.assign(t, i.property), Object.assign(r, i.normal);
|
|
561
560
|
return new Wn(t, r, e);
|
|
562
561
|
}
|
|
563
|
-
function
|
|
562
|
+
function xe(n) {
|
|
564
563
|
return n.toLowerCase();
|
|
565
564
|
}
|
|
566
565
|
class J {
|
|
@@ -589,13 +588,13 @@ J.prototype.property = "";
|
|
|
589
588
|
J.prototype.spaceSeparated = !1;
|
|
590
589
|
J.prototype.space = void 0;
|
|
591
590
|
let di = 0;
|
|
592
|
-
const N = Sn(), q = Sn(),
|
|
591
|
+
const N = Sn(), q = Sn(), be = Sn(), k = Sn(), H = Sn(), Tn = Sn(), nn = Sn();
|
|
593
592
|
function Sn() {
|
|
594
593
|
return 2 ** ++di;
|
|
595
594
|
}
|
|
596
|
-
const
|
|
595
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: N, booleanish: q, commaOrSpaceSeparated: nn, commaSeparated: Tn, number: k, overloadedBoolean: be, spaceSeparated: H }, Symbol.toStringTag, { value: "Module" })), oe = (
|
|
597
596
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
598
|
-
Object.keys(
|
|
597
|
+
Object.keys(we)
|
|
599
598
|
);
|
|
600
599
|
class ve extends J {
|
|
601
600
|
/**
|
|
@@ -614,9 +613,9 @@ class ve extends J {
|
|
|
614
613
|
constructor(e, t, r, i) {
|
|
615
614
|
let l = -1;
|
|
616
615
|
if (super(e, t), lt(this, "space", i), typeof r == "number")
|
|
617
|
-
for (; ++l <
|
|
618
|
-
const o =
|
|
619
|
-
lt(this,
|
|
616
|
+
for (; ++l < oe.length; ) {
|
|
617
|
+
const o = oe[l];
|
|
618
|
+
lt(this, oe[l], (r & we[o]) === we[o]);
|
|
620
619
|
}
|
|
621
620
|
}
|
|
622
621
|
}
|
|
@@ -633,7 +632,7 @@ function zn(n) {
|
|
|
633
632
|
i,
|
|
634
633
|
n.space
|
|
635
634
|
);
|
|
636
|
-
n.mustUseProperty && n.mustUseProperty.includes(r) && (l.mustUseProperty = !0), e[r] = l, t[
|
|
635
|
+
n.mustUseProperty && n.mustUseProperty.includes(r) && (l.mustUseProperty = !0), e[r] = l, t[xe(r)] = r, t[xe(l.attribute)] = r;
|
|
637
636
|
}
|
|
638
637
|
return new Wn(e, t, n.space);
|
|
639
638
|
}
|
|
@@ -747,7 +746,7 @@ const gi = zn({
|
|
|
747
746
|
dir: null,
|
|
748
747
|
dirName: null,
|
|
749
748
|
disabled: N,
|
|
750
|
-
download:
|
|
749
|
+
download: be,
|
|
751
750
|
draggable: q,
|
|
752
751
|
encType: null,
|
|
753
752
|
enterKeyHint: null,
|
|
@@ -760,7 +759,7 @@ const gi = zn({
|
|
|
760
759
|
formTarget: null,
|
|
761
760
|
headers: H,
|
|
762
761
|
height: k,
|
|
763
|
-
hidden:
|
|
762
|
+
hidden: be,
|
|
764
763
|
high: k,
|
|
765
764
|
href: null,
|
|
766
765
|
hrefLang: null,
|
|
@@ -1664,7 +1663,7 @@ const gi = zn({
|
|
|
1664
1663
|
xmlnsXLink: "xmlnsXlink"
|
|
1665
1664
|
}, xi = /[A-Z]/g, ot = /-[a-z]/g, bi = /^data[-\w.:]+$/i;
|
|
1666
1665
|
function wi(n, e) {
|
|
1667
|
-
const t =
|
|
1666
|
+
const t = xe(e);
|
|
1668
1667
|
let r = e, i = J;
|
|
1669
1668
|
if (t in n.normal)
|
|
1670
1669
|
return n.property[n.normal[t]];
|
|
@@ -1690,13 +1689,13 @@ function Ci(n) {
|
|
|
1690
1689
|
return n.charAt(1).toUpperCase();
|
|
1691
1690
|
}
|
|
1692
1691
|
const Ei = Vt([qt, gi, Gt, Yt, Kt], "html"), De = Vt([qt, yi, Gt, Yt, Kt], "svg");
|
|
1693
|
-
var An = {},
|
|
1692
|
+
var An = {}, ae, at;
|
|
1694
1693
|
function Ii() {
|
|
1695
|
-
if (at) return
|
|
1694
|
+
if (at) return ae;
|
|
1696
1695
|
at = 1;
|
|
1697
1696
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
|
1698
1697
|
`, u = "/", c = "*", p = "", d = "comment", f = "declaration";
|
|
1699
|
-
|
|
1698
|
+
ae = function(b, L) {
|
|
1700
1699
|
if (typeof b != "string")
|
|
1701
1700
|
throw new TypeError("First argument must be a string");
|
|
1702
1701
|
if (!b) return [];
|
|
@@ -1711,13 +1710,13 @@ function Ii() {
|
|
|
1711
1710
|
function B() {
|
|
1712
1711
|
var P = { line: x, column: T };
|
|
1713
1712
|
return function(E) {
|
|
1714
|
-
return E.position = new
|
|
1713
|
+
return E.position = new j(P), V(), E;
|
|
1715
1714
|
};
|
|
1716
1715
|
}
|
|
1717
|
-
function
|
|
1716
|
+
function j(P) {
|
|
1718
1717
|
this.start = P, this.end = { line: x, column: T }, this.source = L.source;
|
|
1719
1718
|
}
|
|
1720
|
-
|
|
1719
|
+
j.prototype.content = b;
|
|
1721
1720
|
function y(P) {
|
|
1722
1721
|
var E = new Error(
|
|
1723
1722
|
L.source + ":" + x + ":" + T + ": " + P
|
|
@@ -1734,13 +1733,13 @@ function Ii() {
|
|
|
1734
1733
|
function V() {
|
|
1735
1734
|
v(t);
|
|
1736
1735
|
}
|
|
1737
|
-
function
|
|
1736
|
+
function O(P) {
|
|
1738
1737
|
var E;
|
|
1739
|
-
for (P = P || []; E =
|
|
1738
|
+
for (P = P || []; E = F(); )
|
|
1740
1739
|
E !== !1 && P.push(E);
|
|
1741
1740
|
return P;
|
|
1742
1741
|
}
|
|
1743
|
-
function
|
|
1742
|
+
function F() {
|
|
1744
1743
|
var P = B();
|
|
1745
1744
|
if (!(u != b.charAt(0) || c != b.charAt(1))) {
|
|
1746
1745
|
for (var E = 2; p != b.charAt(E) && (c != b.charAt(E) || u != b.charAt(E + 1)); )
|
|
@@ -1757,7 +1756,7 @@ function Ii() {
|
|
|
1757
1756
|
function A() {
|
|
1758
1757
|
var P = B(), E = v(r);
|
|
1759
1758
|
if (E) {
|
|
1760
|
-
if (
|
|
1759
|
+
if (F(), !v(i)) return y("property missing ':'");
|
|
1761
1760
|
var _ = v(l), W = P({
|
|
1762
1761
|
type: f,
|
|
1763
1762
|
property: w(E[0].replace(n, p)),
|
|
@@ -1768,9 +1767,9 @@ function Ii() {
|
|
|
1768
1767
|
}
|
|
1769
1768
|
function I() {
|
|
1770
1769
|
var P = [];
|
|
1771
|
-
|
|
1770
|
+
O(P);
|
|
1772
1771
|
for (var E; E = A(); )
|
|
1773
|
-
E !== !1 && (P.push(E),
|
|
1772
|
+
E !== !1 && (P.push(E), O(P));
|
|
1774
1773
|
return P;
|
|
1775
1774
|
}
|
|
1776
1775
|
return V(), I();
|
|
@@ -1778,7 +1777,7 @@ function Ii() {
|
|
|
1778
1777
|
function w(b) {
|
|
1779
1778
|
return b ? b.replace(a, p) : p;
|
|
1780
1779
|
}
|
|
1781
|
-
return
|
|
1780
|
+
return ae;
|
|
1782
1781
|
}
|
|
1783
1782
|
var ut;
|
|
1784
1783
|
function Pi() {
|
|
@@ -1803,10 +1802,10 @@ function Pi() {
|
|
|
1803
1802
|
}
|
|
1804
1803
|
return An;
|
|
1805
1804
|
}
|
|
1806
|
-
var
|
|
1805
|
+
var Fn = {}, st;
|
|
1807
1806
|
function Ai() {
|
|
1808
|
-
if (st) return
|
|
1809
|
-
st = 1, Object.defineProperty(
|
|
1807
|
+
if (st) return Fn;
|
|
1808
|
+
st = 1, Object.defineProperty(Fn, "__esModule", { value: !0 }), Fn.camelCase = void 0;
|
|
1810
1809
|
var n = /^--[a-zA-Z0-9_-]+$/, e = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, l = function(u) {
|
|
1811
1810
|
return !u || t.test(u) || n.test(u);
|
|
1812
1811
|
}, o = function(u, c) {
|
|
@@ -1816,7 +1815,7 @@ function Ai() {
|
|
|
1816
1815
|
}, s = function(u, c) {
|
|
1817
1816
|
return c === void 0 && (c = {}), l(u) ? u : (u = u.toLowerCase(), c.reactCompat ? u = u.replace(i, a) : u = u.replace(r, a), u.replace(e, o));
|
|
1818
1817
|
};
|
|
1819
|
-
return
|
|
1818
|
+
return Fn.camelCase = s, Fn;
|
|
1820
1819
|
}
|
|
1821
1820
|
var Bn, ct;
|
|
1822
1821
|
function Ti() {
|
|
@@ -1834,7 +1833,7 @@ function Ti() {
|
|
|
1834
1833
|
return r.default = r, Bn = r, Bn;
|
|
1835
1834
|
}
|
|
1836
1835
|
var Li = /* @__PURE__ */ Ti();
|
|
1837
|
-
const zi = /* @__PURE__ */
|
|
1836
|
+
const zi = /* @__PURE__ */ Ot(Li), Qt = Jt("end"), Oe = Jt("start");
|
|
1838
1837
|
function Jt(n) {
|
|
1839
1838
|
return e;
|
|
1840
1839
|
function e(t) {
|
|
@@ -1848,18 +1847,18 @@ function Jt(n) {
|
|
|
1848
1847
|
}
|
|
1849
1848
|
}
|
|
1850
1849
|
function _i(n) {
|
|
1851
|
-
const e =
|
|
1850
|
+
const e = Oe(n), t = Qt(n);
|
|
1852
1851
|
if (e && t)
|
|
1853
1852
|
return { start: e, end: t };
|
|
1854
1853
|
}
|
|
1855
1854
|
function $n(n) {
|
|
1856
|
-
return !n || typeof n != "object" ? "" : "position" in n || "type" in n ? ft(n.position) : "start" in n || "end" in n ? ft(n) : "line" in n || "column" in n ?
|
|
1855
|
+
return !n || typeof n != "object" ? "" : "position" in n || "type" in n ? ft(n.position) : "start" in n || "end" in n ? ft(n) : "line" in n || "column" in n ? Se(n) : "";
|
|
1857
1856
|
}
|
|
1858
|
-
function
|
|
1857
|
+
function Se(n) {
|
|
1859
1858
|
return pt(n && n.line) + ":" + pt(n && n.column);
|
|
1860
1859
|
}
|
|
1861
1860
|
function ft(n) {
|
|
1862
|
-
return
|
|
1861
|
+
return Se(n && n.start) + "-" + Se(n && n.end);
|
|
1863
1862
|
}
|
|
1864
1863
|
function pt(n) {
|
|
1865
1864
|
return n && typeof n == "number" ? n : 1;
|
|
@@ -1951,7 +1950,7 @@ Y.prototype.fatal = void 0;
|
|
|
1951
1950
|
Y.prototype.place = void 0;
|
|
1952
1951
|
Y.prototype.ruleId = void 0;
|
|
1953
1952
|
Y.prototype.source = void 0;
|
|
1954
|
-
const
|
|
1953
|
+
const Fe = {}.hasOwnProperty, Mi = /* @__PURE__ */ new Map(), Ni = /[A-Z]/g, Ri = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), vi = /* @__PURE__ */ new Set(["td", "th"]), Zt = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
1955
1954
|
function Di(n, e) {
|
|
1956
1955
|
if (!e || e.Fragment === void 0)
|
|
1957
1956
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -1994,29 +1993,29 @@ function Di(n, e) {
|
|
|
1994
1993
|
}
|
|
1995
1994
|
function nr(n, e, t) {
|
|
1996
1995
|
if (e.type === "element")
|
|
1997
|
-
return
|
|
1996
|
+
return Oi(n, e, t);
|
|
1998
1997
|
if (e.type === "mdxFlowExpression" || e.type === "mdxTextExpression")
|
|
1999
|
-
return
|
|
1998
|
+
return Fi(n, e);
|
|
2000
1999
|
if (e.type === "mdxJsxFlowElement" || e.type === "mdxJsxTextElement")
|
|
2001
|
-
return
|
|
2000
|
+
return Ui(n, e, t);
|
|
2002
2001
|
if (e.type === "mdxjsEsm")
|
|
2003
2002
|
return Bi(n, e);
|
|
2004
2003
|
if (e.type === "root")
|
|
2005
|
-
return
|
|
2004
|
+
return ji(n, e, t);
|
|
2006
2005
|
if (e.type === "text")
|
|
2007
2006
|
return Hi(n, e);
|
|
2008
2007
|
}
|
|
2009
|
-
function
|
|
2008
|
+
function Oi(n, e, t) {
|
|
2010
2009
|
const r = n.schema;
|
|
2011
2010
|
let i = r;
|
|
2012
2011
|
e.tagName.toLowerCase() === "svg" && r.space === "html" && (i = De, n.schema = i), n.ancestors.push(e);
|
|
2013
2012
|
const l = tr(n, e.tagName, !1), o = qi(n, e);
|
|
2014
|
-
let a =
|
|
2013
|
+
let a = Ue(n, e);
|
|
2015
2014
|
return Ri.has(e.tagName) && (a = a.filter(function(s) {
|
|
2016
2015
|
return typeof s == "string" ? !mi(s) : !0;
|
|
2017
2016
|
})), er(n, o, l, e), Be(o, a), n.ancestors.pop(), n.schema = r, n.create(e, l, o, t);
|
|
2018
2017
|
}
|
|
2019
|
-
function
|
|
2018
|
+
function Fi(n, e) {
|
|
2020
2019
|
if (e.data && e.data.estree && n.evaluater) {
|
|
2021
2020
|
const r = e.data.estree.body[0];
|
|
2022
2021
|
return (
|
|
@@ -2034,16 +2033,16 @@ function Bi(n, e) {
|
|
|
2034
2033
|
);
|
|
2035
2034
|
qn(n, e.position);
|
|
2036
2035
|
}
|
|
2037
|
-
function
|
|
2036
|
+
function Ui(n, e, t) {
|
|
2038
2037
|
const r = n.schema;
|
|
2039
2038
|
let i = r;
|
|
2040
2039
|
e.name === "svg" && r.space === "html" && (i = De, n.schema = i), n.ancestors.push(e);
|
|
2041
|
-
const l = e.name === null ? n.Fragment : tr(n, e.name, !0), o = Wi(n, e), a =
|
|
2040
|
+
const l = e.name === null ? n.Fragment : tr(n, e.name, !0), o = Wi(n, e), a = Ue(n, e);
|
|
2042
2041
|
return er(n, o, l, e), Be(o, a), n.ancestors.pop(), n.schema = r, n.create(e, l, o, t);
|
|
2043
2042
|
}
|
|
2044
|
-
function
|
|
2043
|
+
function ji(n, e, t) {
|
|
2045
2044
|
const r = {};
|
|
2046
|
-
return Be(r,
|
|
2045
|
+
return Be(r, Ue(n, e)), n.create(e, n.Fragment, r, t);
|
|
2047
2046
|
}
|
|
2048
2047
|
function Hi(n, e) {
|
|
2049
2048
|
return e.value;
|
|
@@ -2067,7 +2066,7 @@ function $i(n, e, t) {
|
|
|
2067
2066
|
function Vi(n, e) {
|
|
2068
2067
|
return t;
|
|
2069
2068
|
function t(r, i, l, o) {
|
|
2070
|
-
const a = Array.isArray(l.children), s =
|
|
2069
|
+
const a = Array.isArray(l.children), s = Oe(r);
|
|
2071
2070
|
return e(
|
|
2072
2071
|
i,
|
|
2073
2072
|
l,
|
|
@@ -2086,7 +2085,7 @@ function qi(n, e) {
|
|
|
2086
2085
|
const t = {};
|
|
2087
2086
|
let r, i;
|
|
2088
2087
|
for (i in e.properties)
|
|
2089
|
-
if (i !== "children" &&
|
|
2088
|
+
if (i !== "children" && Fe.call(e.properties, i)) {
|
|
2090
2089
|
const l = Xi(n, i, e.properties[i]);
|
|
2091
2090
|
if (l) {
|
|
2092
2091
|
const [o, a] = l;
|
|
@@ -2130,7 +2129,7 @@ function Wi(n, e) {
|
|
|
2130
2129
|
}
|
|
2131
2130
|
return t;
|
|
2132
2131
|
}
|
|
2133
|
-
function
|
|
2132
|
+
function Ue(n, e) {
|
|
2134
2133
|
const t = [];
|
|
2135
2134
|
let r = -1;
|
|
2136
2135
|
const i = n.passKeys ? /* @__PURE__ */ new Map() : Mi;
|
|
@@ -2205,7 +2204,7 @@ function tr(n, e, t) {
|
|
|
2205
2204
|
/** @type {string | number} */
|
|
2206
2205
|
r.value
|
|
2207
2206
|
);
|
|
2208
|
-
return
|
|
2207
|
+
return Fe.call(n.components, i) ? n.components[i] : i;
|
|
2209
2208
|
}
|
|
2210
2209
|
if (n.evaluater)
|
|
2211
2210
|
return n.evaluater.evaluateExpression(r);
|
|
@@ -2227,7 +2226,7 @@ function Yi(n) {
|
|
|
2227
2226
|
const e = {};
|
|
2228
2227
|
let t;
|
|
2229
2228
|
for (t in n)
|
|
2230
|
-
|
|
2229
|
+
Fe.call(n, t) && (e[Ki(t)] = n[t]);
|
|
2231
2230
|
return e;
|
|
2232
2231
|
}
|
|
2233
2232
|
function Ki(n) {
|
|
@@ -2274,7 +2273,7 @@ function el(n) {
|
|
|
2274
2273
|
return !!(n && typeof n == "object");
|
|
2275
2274
|
}
|
|
2276
2275
|
const mt = document.createElement("i");
|
|
2277
|
-
function
|
|
2276
|
+
function je(n) {
|
|
2278
2277
|
const e = "&" + n + ";";
|
|
2279
2278
|
mt.innerHTML = e;
|
|
2280
2279
|
const t = mt.textContent;
|
|
@@ -2345,14 +2344,14 @@ function Ln(n) {
|
|
|
2345
2344
|
return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2346
2345
|
}
|
|
2347
2346
|
const sn = yn(/[A-Za-z]/), en = yn(/[\dA-Za-z]/), ll = yn(/[#-'*+\--9=?A-Z^-~]/);
|
|
2348
|
-
function
|
|
2347
|
+
function Ce(n) {
|
|
2349
2348
|
return (
|
|
2350
2349
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
2351
2350
|
// character DEL
|
|
2352
2351
|
n !== null && (n < 32 || n === 127)
|
|
2353
2352
|
);
|
|
2354
2353
|
}
|
|
2355
|
-
const
|
|
2354
|
+
const Ee = yn(/\d/), ol = yn(/[\dA-Fa-f]/), al = yn(/[!-/:-@[-`{-~]/);
|
|
2356
2355
|
function z(n) {
|
|
2357
2356
|
return n !== null && n < -2;
|
|
2358
2357
|
}
|
|
@@ -2451,10 +2450,10 @@ function hl(n) {
|
|
|
2451
2450
|
if (r++, e.containerState._closeFlow) {
|
|
2452
2451
|
e.containerState._closeFlow = void 0, i && T();
|
|
2453
2452
|
const B = e.events.length;
|
|
2454
|
-
let
|
|
2455
|
-
for (;
|
|
2456
|
-
if (e.events[
|
|
2457
|
-
y = e.events[
|
|
2453
|
+
let j = B, y;
|
|
2454
|
+
for (; j--; )
|
|
2455
|
+
if (e.events[j][0] === "exit" && e.events[j][1].type === "chunkFlow") {
|
|
2456
|
+
y = e.events[j][1].end;
|
|
2458
2457
|
break;
|
|
2459
2458
|
}
|
|
2460
2459
|
x(r);
|
|
@@ -2463,7 +2462,7 @@ function hl(n) {
|
|
|
2463
2462
|
e.events[v][1].end = {
|
|
2464
2463
|
...y
|
|
2465
2464
|
}, v++;
|
|
2466
|
-
return cn(e.events,
|
|
2465
|
+
return cn(e.events, j + 1, 0, e.events.slice(B)), e.events.length = v, u(C);
|
|
2467
2466
|
}
|
|
2468
2467
|
return a(C);
|
|
2469
2468
|
}
|
|
@@ -2508,8 +2507,8 @@ function hl(n) {
|
|
|
2508
2507
|
return z(C) ? (n.consume(C), L(n.exit("chunkFlow")), r = 0, e.interrupt = void 0, a) : (n.consume(C), b);
|
|
2509
2508
|
}
|
|
2510
2509
|
function L(C, B) {
|
|
2511
|
-
const
|
|
2512
|
-
if (B &&
|
|
2510
|
+
const j = e.sliceStream(C);
|
|
2511
|
+
if (B && j.push(null), C.previous = l, l && (l.next = C), l = C, i.defineSkip(C.start), i.write(j), e.parser.lazy[C.start.line]) {
|
|
2513
2512
|
let y = i.events.length;
|
|
2514
2513
|
for (; y--; )
|
|
2515
2514
|
if (
|
|
@@ -2520,18 +2519,18 @@ function hl(n) {
|
|
|
2520
2519
|
)
|
|
2521
2520
|
return;
|
|
2522
2521
|
const v = e.events.length;
|
|
2523
|
-
let V = v,
|
|
2522
|
+
let V = v, O, F;
|
|
2524
2523
|
for (; V--; )
|
|
2525
2524
|
if (e.events[V][0] === "exit" && e.events[V][1].type === "chunkFlow") {
|
|
2526
|
-
if (
|
|
2527
|
-
|
|
2525
|
+
if (O) {
|
|
2526
|
+
F = e.events[V][1].end;
|
|
2528
2527
|
break;
|
|
2529
2528
|
}
|
|
2530
|
-
|
|
2529
|
+
O = !0;
|
|
2531
2530
|
}
|
|
2532
2531
|
for (x(r), y = v; y < e.events.length; )
|
|
2533
2532
|
e.events[y][1].end = {
|
|
2534
|
-
...
|
|
2533
|
+
...F
|
|
2535
2534
|
}, y++;
|
|
2536
2535
|
cn(e.events, V + 1, 0, e.events.slice(v)), e.events.length = y;
|
|
2537
2536
|
}
|
|
@@ -2539,8 +2538,8 @@ function hl(n) {
|
|
|
2539
2538
|
function x(C) {
|
|
2540
2539
|
let B = t.length;
|
|
2541
2540
|
for (; B-- > C; ) {
|
|
2542
|
-
const
|
|
2543
|
-
e.containerState =
|
|
2541
|
+
const j = t[B];
|
|
2542
|
+
e.containerState = j[1], j[0].exit.call(e, n);
|
|
2544
2543
|
}
|
|
2545
2544
|
t.length = C;
|
|
2546
2545
|
}
|
|
@@ -2566,7 +2565,7 @@ function He(n, e, t) {
|
|
|
2566
2565
|
}
|
|
2567
2566
|
return e;
|
|
2568
2567
|
}
|
|
2569
|
-
const
|
|
2568
|
+
const Ie = {
|
|
2570
2569
|
name: "attention",
|
|
2571
2570
|
resolveAll: dl,
|
|
2572
2571
|
tokenize: gl
|
|
@@ -2663,7 +2662,7 @@ function kl(n, e, t) {
|
|
|
2663
2662
|
return f === 58 ? (n.consume(f), r = 0, s) : (f === 43 || f === 45 || f === 46 || en(f)) && r++ < 32 ? (n.consume(f), a) : (r = 0, u(f));
|
|
2664
2663
|
}
|
|
2665
2664
|
function s(f) {
|
|
2666
|
-
return f === 62 ? (n.exit("autolinkProtocol"), n.enter("autolinkMarker"), n.consume(f), n.exit("autolinkMarker"), n.exit("autolink"), e) : f === null || f === 32 || f === 60 ||
|
|
2665
|
+
return f === 62 ? (n.exit("autolinkProtocol"), n.enter("autolinkMarker"), n.consume(f), n.exit("autolinkMarker"), n.exit("autolink"), e) : f === null || f === 32 || f === 60 || Ce(f) ? t(f) : (n.consume(f), s);
|
|
2667
2666
|
}
|
|
2668
2667
|
function u(f) {
|
|
2669
2668
|
return f === 64 ? (n.consume(f), c) : ll(f) ? (n.consume(f), u) : t(f);
|
|
@@ -2760,12 +2759,12 @@ function El(n, e, t) {
|
|
|
2760
2759
|
return p === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(p), n.exit("characterReferenceMarkerNumeric"), u) : (n.enter("characterReferenceValue"), l = 31, o = en, c(p));
|
|
2761
2760
|
}
|
|
2762
2761
|
function u(p) {
|
|
2763
|
-
return p === 88 || p === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(p), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), l = 6, o = ol, c) : (n.enter("characterReferenceValue"), l = 7, o =
|
|
2762
|
+
return p === 88 || p === 120 ? (n.enter("characterReferenceMarkerHexadecimal"), n.consume(p), n.exit("characterReferenceMarkerHexadecimal"), n.enter("characterReferenceValue"), l = 6, o = ol, c) : (n.enter("characterReferenceValue"), l = 7, o = Ee, c(p));
|
|
2764
2763
|
}
|
|
2765
2764
|
function c(p) {
|
|
2766
2765
|
if (p === 59 && i) {
|
|
2767
2766
|
const d = n.exit("characterReferenceValue");
|
|
2768
|
-
return o === en && !
|
|
2767
|
+
return o === en && !je(r.sliceSerialize(d)) ? t(p) : (n.enter("characterReferenceMarker"), n.consume(p), n.exit("characterReferenceMarker"), n.exit("characterReference"), e);
|
|
2769
2768
|
}
|
|
2770
2769
|
return o(p) && i++ < l ? (n.consume(p), c) : t(p);
|
|
2771
2770
|
}
|
|
@@ -2781,7 +2780,7 @@ const xt = {
|
|
|
2781
2780
|
function Il(n, e, t) {
|
|
2782
2781
|
const r = this, i = {
|
|
2783
2782
|
partial: !0,
|
|
2784
|
-
tokenize:
|
|
2783
|
+
tokenize: j
|
|
2785
2784
|
};
|
|
2786
2785
|
let l = 0, o = 0, a;
|
|
2787
2786
|
return s;
|
|
@@ -2829,10 +2828,10 @@ function Il(n, e, t) {
|
|
|
2829
2828
|
function B(y) {
|
|
2830
2829
|
return n.exit("codeFenced"), e(y);
|
|
2831
2830
|
}
|
|
2832
|
-
function
|
|
2833
|
-
let
|
|
2834
|
-
return
|
|
2835
|
-
function
|
|
2831
|
+
function j(y, v, V) {
|
|
2832
|
+
let O = 0;
|
|
2833
|
+
return F;
|
|
2834
|
+
function F(_) {
|
|
2836
2835
|
return y.enter("lineEnding"), y.consume(_), y.exit("lineEnding"), A;
|
|
2837
2836
|
}
|
|
2838
2837
|
function A(_) {
|
|
@@ -2842,7 +2841,7 @@ function Il(n, e, t) {
|
|
|
2842
2841
|
return _ === a ? (y.enter("codeFencedFenceSequence"), P(_)) : V(_);
|
|
2843
2842
|
}
|
|
2844
2843
|
function P(_) {
|
|
2845
|
-
return _ === a ? (
|
|
2844
|
+
return _ === a ? (O++, y.consume(_), P) : O >= o ? (y.exit("codeFencedFenceSequence"), D(_) ? $(y, E, "whitespace")(_) : E(_)) : V(_);
|
|
2846
2845
|
}
|
|
2847
2846
|
function E(_) {
|
|
2848
2847
|
return _ === null || z(_) ? (y.exit("codeFencedFence"), v(_)) : V(_);
|
|
@@ -2859,7 +2858,7 @@ function Pl(n, e, t) {
|
|
|
2859
2858
|
return r.parser.lazy[r.now().line] ? t(o) : e(o);
|
|
2860
2859
|
}
|
|
2861
2860
|
}
|
|
2862
|
-
const
|
|
2861
|
+
const ue = {
|
|
2863
2862
|
name: "codeIndented",
|
|
2864
2863
|
tokenize: Tl
|
|
2865
2864
|
}, Al = {
|
|
@@ -3018,7 +3017,7 @@ class Rl {
|
|
|
3018
3017
|
const i = t || 0;
|
|
3019
3018
|
this.setCursor(Math.trunc(e));
|
|
3020
3019
|
const l = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
|
|
3021
|
-
return r &&
|
|
3020
|
+
return r && Un(this.left, r), l.reverse();
|
|
3022
3021
|
}
|
|
3023
3022
|
/**
|
|
3024
3023
|
* Remove and return the highest-numbered item in the array, so
|
|
@@ -3053,7 +3052,7 @@ class Rl {
|
|
|
3053
3052
|
* Nothing.
|
|
3054
3053
|
*/
|
|
3055
3054
|
pushMany(e) {
|
|
3056
|
-
this.setCursor(Number.POSITIVE_INFINITY),
|
|
3055
|
+
this.setCursor(Number.POSITIVE_INFINITY), Un(this.left, e);
|
|
3057
3056
|
}
|
|
3058
3057
|
/**
|
|
3059
3058
|
* Inserts a single item to the low-numbered side of the array;
|
|
@@ -3077,7 +3076,7 @@ class Rl {
|
|
|
3077
3076
|
* Nothing.
|
|
3078
3077
|
*/
|
|
3079
3078
|
unshiftMany(e) {
|
|
3080
|
-
this.setCursor(0),
|
|
3079
|
+
this.setCursor(0), Un(this.right, e.reverse());
|
|
3081
3080
|
}
|
|
3082
3081
|
/**
|
|
3083
3082
|
* Move the cursor to a specific position in the array. Requires
|
|
@@ -3095,14 +3094,14 @@ class Rl {
|
|
|
3095
3094
|
if (!(e === this.left.length || e > this.left.length && this.right.length === 0 || e < 0 && this.left.length === 0))
|
|
3096
3095
|
if (e < this.left.length) {
|
|
3097
3096
|
const t = this.left.splice(e, Number.POSITIVE_INFINITY);
|
|
3098
|
-
|
|
3097
|
+
Un(this.right, t.reverse());
|
|
3099
3098
|
} else {
|
|
3100
3099
|
const t = this.right.splice(this.left.length + this.right.length - e, Number.POSITIVE_INFINITY);
|
|
3101
|
-
|
|
3100
|
+
Un(this.left, t.reverse());
|
|
3102
3101
|
}
|
|
3103
3102
|
}
|
|
3104
3103
|
}
|
|
3105
|
-
function
|
|
3104
|
+
function Un(n, e) {
|
|
3106
3105
|
let t = 0;
|
|
3107
3106
|
if (e.length < 1e4)
|
|
3108
3107
|
n.push(...e);
|
|
@@ -3160,13 +3159,13 @@ function vl(n, e) {
|
|
|
3160
3159
|
return u;
|
|
3161
3160
|
}
|
|
3162
3161
|
const Dl = {
|
|
3163
|
-
resolve:
|
|
3162
|
+
resolve: Fl,
|
|
3164
3163
|
tokenize: Bl
|
|
3165
|
-
},
|
|
3164
|
+
}, Ol = {
|
|
3166
3165
|
partial: !0,
|
|
3167
|
-
tokenize:
|
|
3166
|
+
tokenize: Ul
|
|
3168
3167
|
};
|
|
3169
|
-
function
|
|
3168
|
+
function Fl(n) {
|
|
3170
3169
|
return ur(n), n;
|
|
3171
3170
|
}
|
|
3172
3171
|
function Bl(n, e) {
|
|
@@ -3178,7 +3177,7 @@ function Bl(n, e) {
|
|
|
3178
3177
|
}), i(a);
|
|
3179
3178
|
}
|
|
3180
3179
|
function i(a) {
|
|
3181
|
-
return a === null ? l(a) : z(a) ? n.check(
|
|
3180
|
+
return a === null ? l(a) : z(a) ? n.check(Ol, o, l)(a) : (n.consume(a), i);
|
|
3182
3181
|
}
|
|
3183
3182
|
function l(a) {
|
|
3184
3183
|
return n.exit("chunkContent"), n.exit("content"), e(a);
|
|
@@ -3190,7 +3189,7 @@ function Bl(n, e) {
|
|
|
3190
3189
|
}), t = t.next, i;
|
|
3191
3190
|
}
|
|
3192
3191
|
}
|
|
3193
|
-
function
|
|
3192
|
+
function Ul(n, e, t) {
|
|
3194
3193
|
const r = this;
|
|
3195
3194
|
return i;
|
|
3196
3195
|
function i(o) {
|
|
@@ -3208,7 +3207,7 @@ function sr(n, e, t, r, i, l, o, a, s) {
|
|
|
3208
3207
|
let c = 0;
|
|
3209
3208
|
return p;
|
|
3210
3209
|
function p(x) {
|
|
3211
|
-
return x === 60 ? (n.enter(r), n.enter(i), n.enter(l), n.consume(x), n.exit(l), d) : x === null || x === 32 || x === 41 ||
|
|
3210
|
+
return x === 60 ? (n.enter(r), n.enter(i), n.enter(l), n.consume(x), n.exit(l), d) : x === null || x === 32 || x === 41 || Ce(x) ? t(x) : (n.enter(r), n.enter(o), n.enter(a), n.enter("chunkString", {
|
|
3212
3211
|
contentType: "string"
|
|
3213
3212
|
}), b(x));
|
|
3214
3213
|
}
|
|
@@ -3224,7 +3223,7 @@ function sr(n, e, t, r, i, l, o, a, s) {
|
|
|
3224
3223
|
return x === 60 || x === 62 || x === 92 ? (n.consume(x), f) : f(x);
|
|
3225
3224
|
}
|
|
3226
3225
|
function b(x) {
|
|
3227
|
-
return !c && (x === null || x === 41 || Q(x)) ? (n.exit("chunkString"), n.exit(a), n.exit(o), n.exit(r), e(x)) : c < u && x === 40 ? (n.consume(x), c++, b) : x === 41 ? (n.consume(x), c--, b) : x === null || x === 32 || x === 40 ||
|
|
3226
|
+
return !c && (x === null || x === 41 || Q(x)) ? (n.exit("chunkString"), n.exit(a), n.exit(o), n.exit(r), e(x)) : c < u && x === 40 ? (n.consume(x), c++, b) : x === 41 ? (n.consume(x), c--, b) : x === null || x === 32 || x === 40 || Ce(x) ? t(x) : (n.consume(x), x === 92 ? L : b);
|
|
3228
3227
|
}
|
|
3229
3228
|
function L(x) {
|
|
3230
3229
|
return x === 40 || x === 41 || x === 92 ? (n.consume(x), b) : b(x);
|
|
@@ -3282,7 +3281,7 @@ function Vn(n, e) {
|
|
|
3282
3281
|
return z(i) ? (n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), t = !0, r) : D(i) ? $(n, r, t ? "linePrefix" : "lineSuffix")(i) : e(i);
|
|
3283
3282
|
}
|
|
3284
3283
|
}
|
|
3285
|
-
const
|
|
3284
|
+
const jl = {
|
|
3286
3285
|
name: "definition",
|
|
3287
3286
|
tokenize: $l
|
|
3288
3287
|
}, Hl = {
|
|
@@ -3523,30 +3522,30 @@ function eo(n, e, t) {
|
|
|
3523
3522
|
return m === 62 ? (n.consume(m), r.interrupt ? e : I) : t(m);
|
|
3524
3523
|
}
|
|
3525
3524
|
function T(m) {
|
|
3526
|
-
return D(m) ? (n.consume(m), T) :
|
|
3525
|
+
return D(m) ? (n.consume(m), T) : F(m);
|
|
3527
3526
|
}
|
|
3528
3527
|
function C(m) {
|
|
3529
|
-
return m === 47 ? (n.consume(m),
|
|
3528
|
+
return m === 47 ? (n.consume(m), F) : m === 58 || m === 95 || sn(m) ? (n.consume(m), B) : D(m) ? (n.consume(m), C) : F(m);
|
|
3530
3529
|
}
|
|
3531
3530
|
function B(m) {
|
|
3532
|
-
return m === 45 || m === 46 || m === 58 || m === 95 || en(m) ? (n.consume(m), B) :
|
|
3531
|
+
return m === 45 || m === 46 || m === 58 || m === 95 || en(m) ? (n.consume(m), B) : j(m);
|
|
3533
3532
|
}
|
|
3534
|
-
function
|
|
3535
|
-
return m === 61 ? (n.consume(m), y) : D(m) ? (n.consume(m),
|
|
3533
|
+
function j(m) {
|
|
3534
|
+
return m === 61 ? (n.consume(m), y) : D(m) ? (n.consume(m), j) : C(m);
|
|
3536
3535
|
}
|
|
3537
3536
|
function y(m) {
|
|
3538
3537
|
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (n.consume(m), s = m, v) : D(m) ? (n.consume(m), y) : V(m);
|
|
3539
3538
|
}
|
|
3540
3539
|
function v(m) {
|
|
3541
|
-
return m === s ? (n.consume(m), s = null,
|
|
3540
|
+
return m === s ? (n.consume(m), s = null, O) : m === null || z(m) ? t(m) : (n.consume(m), v);
|
|
3542
3541
|
}
|
|
3543
3542
|
function V(m) {
|
|
3544
|
-
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Q(m) ?
|
|
3543
|
+
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Q(m) ? j(m) : (n.consume(m), V);
|
|
3545
3544
|
}
|
|
3546
|
-
function
|
|
3545
|
+
function O(m) {
|
|
3547
3546
|
return m === 47 || m === 62 || D(m) ? C(m) : t(m);
|
|
3548
3547
|
}
|
|
3549
|
-
function
|
|
3548
|
+
function F(m) {
|
|
3550
3549
|
return m === 62 ? (n.consume(m), A) : t(m);
|
|
3551
3550
|
}
|
|
3552
3551
|
function A(m) {
|
|
@@ -3618,7 +3617,7 @@ function lo(n, e, t) {
|
|
|
3618
3617
|
return n.enter("htmlText"), n.enter("htmlTextData"), n.consume(h), s;
|
|
3619
3618
|
}
|
|
3620
3619
|
function s(h) {
|
|
3621
|
-
return h === 33 ? (n.consume(h), u) : h === 47 ? (n.consume(h),
|
|
3620
|
+
return h === 33 ? (n.consume(h), u) : h === 47 ? (n.consume(h), j) : h === 63 ? (n.consume(h), C) : sn(h) ? (n.consume(h), V) : t(h);
|
|
3622
3621
|
}
|
|
3623
3622
|
function u(h) {
|
|
3624
3623
|
return h === 45 ? (n.consume(h), c) : h === 91 ? (n.consume(h), l = 0, w) : sn(h) ? (n.consume(h), T) : t(h);
|
|
@@ -3657,7 +3656,7 @@ function lo(n, e, t) {
|
|
|
3657
3656
|
function B(h) {
|
|
3658
3657
|
return h === 62 ? W(h) : C(h);
|
|
3659
3658
|
}
|
|
3660
|
-
function
|
|
3659
|
+
function j(h) {
|
|
3661
3660
|
return sn(h) ? (n.consume(h), y) : t(h);
|
|
3662
3661
|
}
|
|
3663
3662
|
function y(h) {
|
|
@@ -3667,16 +3666,16 @@ function lo(n, e, t) {
|
|
|
3667
3666
|
return z(h) ? (o = v, X(h)) : D(h) ? (n.consume(h), v) : W(h);
|
|
3668
3667
|
}
|
|
3669
3668
|
function V(h) {
|
|
3670
|
-
return h === 45 || en(h) ? (n.consume(h), V) : h === 47 || h === 62 || Q(h) ?
|
|
3671
|
-
}
|
|
3672
|
-
function F(h) {
|
|
3673
|
-
return h === 47 ? (n.consume(h), W) : h === 58 || h === 95 || sn(h) ? (n.consume(h), O) : z(h) ? (o = F, X(h)) : D(h) ? (n.consume(h), F) : W(h);
|
|
3669
|
+
return h === 45 || en(h) ? (n.consume(h), V) : h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
3674
3670
|
}
|
|
3675
3671
|
function O(h) {
|
|
3676
|
-
return h ===
|
|
3672
|
+
return h === 47 ? (n.consume(h), W) : h === 58 || h === 95 || sn(h) ? (n.consume(h), F) : z(h) ? (o = O, X(h)) : D(h) ? (n.consume(h), O) : W(h);
|
|
3673
|
+
}
|
|
3674
|
+
function F(h) {
|
|
3675
|
+
return h === 45 || h === 46 || h === 58 || h === 95 || en(h) ? (n.consume(h), F) : A(h);
|
|
3677
3676
|
}
|
|
3678
3677
|
function A(h) {
|
|
3679
|
-
return h === 61 ? (n.consume(h), I) : z(h) ? (o = A, X(h)) : D(h) ? (n.consume(h), A) :
|
|
3678
|
+
return h === 61 ? (n.consume(h), I) : z(h) ? (o = A, X(h)) : D(h) ? (n.consume(h), A) : O(h);
|
|
3680
3679
|
}
|
|
3681
3680
|
function I(h) {
|
|
3682
3681
|
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (n.consume(h), i = h, P) : z(h) ? (o = I, X(h)) : D(h) ? (n.consume(h), I) : (n.consume(h), E);
|
|
@@ -3685,10 +3684,10 @@ function lo(n, e, t) {
|
|
|
3685
3684
|
return h === i ? (n.consume(h), i = void 0, _) : h === null ? t(h) : z(h) ? (o = P, X(h)) : (n.consume(h), P);
|
|
3686
3685
|
}
|
|
3687
3686
|
function E(h) {
|
|
3688
|
-
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? t(h) : h === 47 || h === 62 || Q(h) ?
|
|
3687
|
+
return h === null || h === 34 || h === 39 || h === 60 || h === 61 || h === 96 ? t(h) : h === 47 || h === 62 || Q(h) ? O(h) : (n.consume(h), E);
|
|
3689
3688
|
}
|
|
3690
3689
|
function _(h) {
|
|
3691
|
-
return h === 47 || h === 62 || Q(h) ?
|
|
3690
|
+
return h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
3692
3691
|
}
|
|
3693
3692
|
function W(h) {
|
|
3694
3693
|
return h === 62 ? (n.consume(h), n.exit("htmlTextData"), n.exit("htmlText"), e) : t(h);
|
|
@@ -3877,7 +3876,7 @@ function xo(n, e, t) {
|
|
|
3877
3876
|
return o === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? t(o) : e(o);
|
|
3878
3877
|
}
|
|
3879
3878
|
}
|
|
3880
|
-
const
|
|
3879
|
+
const se = {
|
|
3881
3880
|
name: "lineEnding",
|
|
3882
3881
|
tokenize: bo
|
|
3883
3882
|
};
|
|
@@ -3927,7 +3926,7 @@ function Eo(n, e, t) {
|
|
|
3927
3926
|
return a;
|
|
3928
3927
|
function a(f) {
|
|
3929
3928
|
const w = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
|
|
3930
|
-
if (w === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker :
|
|
3929
|
+
if (w === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : Ee(f)) {
|
|
3931
3930
|
if (r.containerState.type || (r.containerState.type = w, n.enter(w, {
|
|
3932
3931
|
_container: !0
|
|
3933
3932
|
})), w === "listUnordered")
|
|
@@ -3938,7 +3937,7 @@ function Eo(n, e, t) {
|
|
|
3938
3937
|
return t(f);
|
|
3939
3938
|
}
|
|
3940
3939
|
function s(f) {
|
|
3941
|
-
return
|
|
3940
|
+
return Ee(f) && ++o < 10 ? (n.consume(f), s) : (!r.interrupt || o < 2) && (r.containerState.marker ? f === r.containerState.marker : f === 41 || f === 46) ? (n.exit("listItemValue"), u(f)) : t(f);
|
|
3942
3941
|
}
|
|
3943
3942
|
function u(f) {
|
|
3944
3943
|
return n.enter("listItemMarker"), n.consume(f), n.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, n.check(
|
|
@@ -4159,7 +4158,7 @@ function Do(n, e) {
|
|
|
4159
4158
|
}
|
|
4160
4159
|
return n;
|
|
4161
4160
|
}
|
|
4162
|
-
const
|
|
4161
|
+
const Oo = {
|
|
4163
4162
|
42: K,
|
|
4164
4163
|
43: K,
|
|
4165
4164
|
45: K,
|
|
@@ -4174,13 +4173,13 @@ const Fo = {
|
|
|
4174
4173
|
56: K,
|
|
4175
4174
|
57: K,
|
|
4176
4175
|
62: lr
|
|
4177
|
-
},
|
|
4178
|
-
91:
|
|
4176
|
+
}, Fo = {
|
|
4177
|
+
91: jl
|
|
4179
4178
|
}, Bo = {
|
|
4180
|
-
[-2]:
|
|
4181
|
-
[-1]:
|
|
4182
|
-
32:
|
|
4183
|
-
},
|
|
4179
|
+
[-2]: ue,
|
|
4180
|
+
[-1]: ue,
|
|
4181
|
+
32: ue
|
|
4182
|
+
}, Uo = {
|
|
4184
4183
|
35: Xl,
|
|
4185
4184
|
42: Zn,
|
|
4186
4185
|
45: [St, Zn],
|
|
@@ -4189,29 +4188,29 @@ const Fo = {
|
|
|
4189
4188
|
95: Zn,
|
|
4190
4189
|
96: bt,
|
|
4191
4190
|
126: bt
|
|
4192
|
-
},
|
|
4191
|
+
}, jo = {
|
|
4193
4192
|
38: ar,
|
|
4194
4193
|
92: or
|
|
4195
4194
|
}, Ho = {
|
|
4196
|
-
[-5]:
|
|
4197
|
-
[-4]:
|
|
4198
|
-
[-3]:
|
|
4195
|
+
[-5]: se,
|
|
4196
|
+
[-4]: se,
|
|
4197
|
+
[-3]: se,
|
|
4199
4198
|
33: go,
|
|
4200
4199
|
38: ar,
|
|
4201
|
-
42:
|
|
4200
|
+
42: Ie,
|
|
4202
4201
|
60: [yl, io],
|
|
4203
4202
|
91: ko,
|
|
4204
4203
|
92: [ql, or],
|
|
4205
4204
|
93: $e,
|
|
4206
|
-
95:
|
|
4205
|
+
95: Ie,
|
|
4207
4206
|
96: zl
|
|
4208
4207
|
}, $o = {
|
|
4209
|
-
null: [
|
|
4208
|
+
null: [Ie, No]
|
|
4210
4209
|
}, Vo = {
|
|
4211
4210
|
null: [42, 95]
|
|
4212
4211
|
}, qo = {
|
|
4213
4212
|
null: []
|
|
4214
|
-
}, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Vo, contentInitial:
|
|
4213
|
+
}, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Vo, contentInitial: Fo, disable: qo, document: Oo, flow: Uo, flowInitial: Bo, insideSpan: $o, string: jo, text: Ho }, Symbol.toStringTag, { value: "Module" }));
|
|
4215
4214
|
function Xo(n, e, t) {
|
|
4216
4215
|
let r = {
|
|
4217
4216
|
_bufferIndex: -1,
|
|
@@ -4223,7 +4222,7 @@ function Xo(n, e, t) {
|
|
|
4223
4222
|
const i = {}, l = [];
|
|
4224
4223
|
let o = [], a = [];
|
|
4225
4224
|
const s = {
|
|
4226
|
-
attempt: v(
|
|
4225
|
+
attempt: v(j),
|
|
4227
4226
|
check: v(y),
|
|
4228
4227
|
consume: T,
|
|
4229
4228
|
enter: C,
|
|
@@ -4271,7 +4270,7 @@ function Xo(n, e, t) {
|
|
|
4271
4270
|
};
|
|
4272
4271
|
}
|
|
4273
4272
|
function b(A) {
|
|
4274
|
-
i[A.line] = A.column,
|
|
4273
|
+
i[A.line] = A.column, F();
|
|
4275
4274
|
}
|
|
4276
4275
|
function L() {
|
|
4277
4276
|
let A;
|
|
@@ -4288,7 +4287,7 @@ function Xo(n, e, t) {
|
|
|
4288
4287
|
c = c(A);
|
|
4289
4288
|
}
|
|
4290
4289
|
function T(A) {
|
|
4291
|
-
z(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1,
|
|
4290
|
+
z(A) ? (r.line++, r.column = 1, r.offset += A === -3 ? 2 : 1, F()) : A !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
4292
4291
|
// strings.
|
|
4293
4292
|
/** @type {string} */
|
|
4294
4293
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = A;
|
|
@@ -4301,7 +4300,7 @@ function Xo(n, e, t) {
|
|
|
4301
4300
|
const I = a.pop();
|
|
4302
4301
|
return I.end = w(), u.events.push(["exit", I, u]), I;
|
|
4303
4302
|
}
|
|
4304
|
-
function
|
|
4303
|
+
function j(A, I) {
|
|
4305
4304
|
V(A, I.from);
|
|
4306
4305
|
}
|
|
4307
4306
|
function y(A, I) {
|
|
@@ -4339,7 +4338,7 @@ function Xo(n, e, t) {
|
|
|
4339
4338
|
function m(G) {
|
|
4340
4339
|
return Mn;
|
|
4341
4340
|
function Mn(dn) {
|
|
4342
|
-
return h =
|
|
4341
|
+
return h = O(), fn = G, G.partial || (u.currentConstruct = G), G.name && u.parser.constructs.disable.null.includes(G.name) ? kn() : G.tokenize.call(
|
|
4343
4342
|
// If we do have fields, create an object w/ `context` as its
|
|
4344
4343
|
// prototype.
|
|
4345
4344
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -4361,17 +4360,17 @@ function Xo(n, e, t) {
|
|
|
4361
4360
|
function V(A, I) {
|
|
4362
4361
|
A.resolveAll && !l.includes(A) && l.push(A), A.resolve && cn(u.events, I, u.events.length - I, A.resolve(u.events.slice(I), u)), A.resolveTo && (u.events = A.resolveTo(u.events, u));
|
|
4363
4362
|
}
|
|
4364
|
-
function
|
|
4363
|
+
function O() {
|
|
4365
4364
|
const A = w(), I = u.previous, P = u.currentConstruct, E = u.events.length, _ = Array.from(a);
|
|
4366
4365
|
return {
|
|
4367
4366
|
from: E,
|
|
4368
4367
|
restore: W
|
|
4369
4368
|
};
|
|
4370
4369
|
function W() {
|
|
4371
|
-
r = A, u.previous = I, u.currentConstruct = P, u.events.length = E, a = _,
|
|
4370
|
+
r = A, u.previous = I, u.currentConstruct = P, u.events.length = E, a = _, F();
|
|
4372
4371
|
}
|
|
4373
4372
|
}
|
|
4374
|
-
function
|
|
4373
|
+
function F() {
|
|
4375
4374
|
r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
|
|
4376
4375
|
}
|
|
4377
4376
|
}
|
|
@@ -4503,7 +4502,7 @@ function ea(n, e, t) {
|
|
|
4503
4502
|
const i = t.charCodeAt(1), l = i === 120 || i === 88;
|
|
4504
4503
|
return ir(t.slice(l ? 2 : 1), l ? 16 : 10);
|
|
4505
4504
|
}
|
|
4506
|
-
return
|
|
4505
|
+
return je(t) || n;
|
|
4507
4506
|
}
|
|
4508
4507
|
const mr = {}.hasOwnProperty;
|
|
4509
4508
|
function ta(n, e, t) {
|
|
@@ -4515,20 +4514,20 @@ function ra(n) {
|
|
|
4515
4514
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
4516
4515
|
enter: {
|
|
4517
4516
|
autolink: l(Ye),
|
|
4518
|
-
autolinkProtocol:
|
|
4519
|
-
autolinkEmail:
|
|
4517
|
+
autolinkProtocol: O,
|
|
4518
|
+
autolinkEmail: O,
|
|
4520
4519
|
atxHeading: l(We),
|
|
4521
4520
|
blockQuote: l(En),
|
|
4522
|
-
characterEscape:
|
|
4523
|
-
characterReference:
|
|
4521
|
+
characterEscape: O,
|
|
4522
|
+
characterReference: O,
|
|
4524
4523
|
codeFenced: l(Gn),
|
|
4525
4524
|
codeFencedFenceInfo: o,
|
|
4526
4525
|
codeFencedFenceMeta: o,
|
|
4527
4526
|
codeIndented: l(Gn, o),
|
|
4528
4527
|
codeText: l(xr, o),
|
|
4529
|
-
codeTextData:
|
|
4530
|
-
data:
|
|
4531
|
-
codeFlowValue:
|
|
4528
|
+
codeTextData: O,
|
|
4529
|
+
data: O,
|
|
4530
|
+
codeFlowValue: O,
|
|
4532
4531
|
definition: l(br),
|
|
4533
4532
|
definitionDestinationString: o,
|
|
4534
4533
|
definitionLabelString: o,
|
|
@@ -4537,9 +4536,9 @@ function ra(n) {
|
|
|
4537
4536
|
hardBreakEscape: l(Xe),
|
|
4538
4537
|
hardBreakTrailing: l(Xe),
|
|
4539
4538
|
htmlFlow: l(Ge, o),
|
|
4540
|
-
htmlFlowData:
|
|
4539
|
+
htmlFlowData: O,
|
|
4541
4540
|
htmlText: l(Ge, o),
|
|
4542
|
-
htmlTextData:
|
|
4541
|
+
htmlTextData: O,
|
|
4543
4542
|
image: l(Sr),
|
|
4544
4543
|
label: o,
|
|
4545
4544
|
link: l(Ye),
|
|
@@ -4558,12 +4557,12 @@ function ra(n) {
|
|
|
4558
4557
|
},
|
|
4559
4558
|
exit: {
|
|
4560
4559
|
atxHeading: s(),
|
|
4561
|
-
atxHeadingSequence:
|
|
4560
|
+
atxHeadingSequence: j,
|
|
4562
4561
|
autolink: s(),
|
|
4563
4562
|
autolinkEmail: Cn,
|
|
4564
4563
|
autolinkProtocol: dn,
|
|
4565
4564
|
blockQuote: s(),
|
|
4566
|
-
characterEscapeValue:
|
|
4565
|
+
characterEscapeValue: F,
|
|
4567
4566
|
characterReferenceMarkerHexadecimal: kn,
|
|
4568
4567
|
characterReferenceMarkerNumeric: kn,
|
|
4569
4568
|
characterReferenceValue: G,
|
|
@@ -4572,11 +4571,11 @@ function ra(n) {
|
|
|
4572
4571
|
codeFencedFence: b,
|
|
4573
4572
|
codeFencedFenceInfo: f,
|
|
4574
4573
|
codeFencedFenceMeta: w,
|
|
4575
|
-
codeFlowValue:
|
|
4574
|
+
codeFlowValue: F,
|
|
4576
4575
|
codeIndented: s(x),
|
|
4577
4576
|
codeText: s(_),
|
|
4578
|
-
codeTextData:
|
|
4579
|
-
data:
|
|
4577
|
+
codeTextData: F,
|
|
4578
|
+
data: F,
|
|
4580
4579
|
definition: s(),
|
|
4581
4580
|
definitionDestinationString: B,
|
|
4582
4581
|
definitionLabelString: T,
|
|
@@ -4585,9 +4584,9 @@ function ra(n) {
|
|
|
4585
4584
|
hardBreakEscape: s(I),
|
|
4586
4585
|
hardBreakTrailing: s(I),
|
|
4587
4586
|
htmlFlow: s(P),
|
|
4588
|
-
htmlFlowData:
|
|
4587
|
+
htmlFlowData: F,
|
|
4589
4588
|
htmlText: s(E),
|
|
4590
|
-
htmlTextData:
|
|
4589
|
+
htmlTextData: F,
|
|
4591
4590
|
image: s(X),
|
|
4592
4591
|
label: fn,
|
|
4593
4592
|
labelText: rn,
|
|
@@ -4626,20 +4625,20 @@ function ra(n) {
|
|
|
4626
4625
|
resume: c,
|
|
4627
4626
|
data: t
|
|
4628
4627
|
}, R = [];
|
|
4629
|
-
let
|
|
4630
|
-
for (; ++
|
|
4631
|
-
if (g[
|
|
4632
|
-
if (g[
|
|
4633
|
-
R.push(
|
|
4628
|
+
let U = -1;
|
|
4629
|
+
for (; ++U < g.length; )
|
|
4630
|
+
if (g[U][1].type === "listOrdered" || g[U][1].type === "listUnordered")
|
|
4631
|
+
if (g[U][0] === "enter")
|
|
4632
|
+
R.push(U);
|
|
4634
4633
|
else {
|
|
4635
4634
|
const an = R.pop();
|
|
4636
|
-
|
|
4635
|
+
U = i(g, an, U);
|
|
4637
4636
|
}
|
|
4638
|
-
for (
|
|
4639
|
-
const an = e[g[
|
|
4640
|
-
mr.call(an, g[
|
|
4641
|
-
sliceSerialize: g[
|
|
4642
|
-
}, M), g[
|
|
4637
|
+
for (U = -1; ++U < g.length; ) {
|
|
4638
|
+
const an = e[g[U][0]];
|
|
4639
|
+
mr.call(an, g[U][1].type) && an[g[U][1].type].call(Object.assign({
|
|
4640
|
+
sliceSerialize: g[U][2].sliceSerialize
|
|
4641
|
+
}, M), g[U][1]);
|
|
4643
4642
|
}
|
|
4644
4643
|
if (M.tokenStack.length > 0) {
|
|
4645
4644
|
const an = M.tokenStack[M.tokenStack.length - 1];
|
|
@@ -4656,23 +4655,23 @@ function ra(n) {
|
|
|
4656
4655
|
column: 1,
|
|
4657
4656
|
offset: 0
|
|
4658
4657
|
})
|
|
4659
|
-
},
|
|
4660
|
-
S = e.transforms[
|
|
4658
|
+
}, U = -1; ++U < e.transforms.length; )
|
|
4659
|
+
S = e.transforms[U](S) || S;
|
|
4661
4660
|
return S;
|
|
4662
4661
|
}
|
|
4663
4662
|
function i(g, S, M) {
|
|
4664
|
-
let R = S - 1,
|
|
4663
|
+
let R = S - 1, U = -1, an = !1, xn, hn, Nn, Rn;
|
|
4665
4664
|
for (; ++R <= M; ) {
|
|
4666
4665
|
const Z = g[R];
|
|
4667
4666
|
switch (Z[1].type) {
|
|
4668
4667
|
case "listUnordered":
|
|
4669
4668
|
case "listOrdered":
|
|
4670
4669
|
case "blockQuote": {
|
|
4671
|
-
Z[0] === "enter" ?
|
|
4670
|
+
Z[0] === "enter" ? U++ : U--, Rn = void 0;
|
|
4672
4671
|
break;
|
|
4673
4672
|
}
|
|
4674
4673
|
case "lineEndingBlank": {
|
|
4675
|
-
Z[0] === "enter" && (xn && !Rn && !
|
|
4674
|
+
Z[0] === "enter" && (xn && !Rn && !U && !Nn && (Nn = R), Rn = void 0);
|
|
4676
4675
|
break;
|
|
4677
4676
|
}
|
|
4678
4677
|
case "linePrefix":
|
|
@@ -4684,7 +4683,7 @@ function ra(n) {
|
|
|
4684
4683
|
default:
|
|
4685
4684
|
Rn = void 0;
|
|
4686
4685
|
}
|
|
4687
|
-
if (!
|
|
4686
|
+
if (!U && Z[0] === "enter" && Z[1].type === "listItemPrefix" || U === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
|
|
4688
4687
|
if (xn) {
|
|
4689
4688
|
let In = R;
|
|
4690
4689
|
for (hn = void 0; In--; ) {
|
|
@@ -4788,7 +4787,7 @@ function ra(n) {
|
|
|
4788
4787
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4789
4788
|
S.url = g;
|
|
4790
4789
|
}
|
|
4791
|
-
function
|
|
4790
|
+
function j(g) {
|
|
4792
4791
|
const S = this.stack[this.stack.length - 1];
|
|
4793
4792
|
if (!S.depth) {
|
|
4794
4793
|
const M = this.sliceSerialize(g).length;
|
|
@@ -4805,7 +4804,7 @@ function ra(n) {
|
|
|
4805
4804
|
function V() {
|
|
4806
4805
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
4807
4806
|
}
|
|
4808
|
-
function
|
|
4807
|
+
function O(g) {
|
|
4809
4808
|
const M = this.stack[this.stack.length - 1].children;
|
|
4810
4809
|
let R = M[M.length - 1];
|
|
4811
4810
|
(!R || R.type !== "text") && (R = Pr(), R.position = {
|
|
@@ -4814,7 +4813,7 @@ function ra(n) {
|
|
|
4814
4813
|
end: void 0
|
|
4815
4814
|
}, M.push(R)), this.stack.push(R);
|
|
4816
4815
|
}
|
|
4817
|
-
function
|
|
4816
|
+
function F(g) {
|
|
4818
4817
|
const S = this.stack.pop();
|
|
4819
4818
|
S.value += this.sliceSerialize(g), S.position.end = gn(g.end);
|
|
4820
4819
|
}
|
|
@@ -4825,7 +4824,7 @@ function ra(n) {
|
|
|
4825
4824
|
M.position.end = gn(g.end), this.data.atHardBreak = void 0;
|
|
4826
4825
|
return;
|
|
4827
4826
|
}
|
|
4828
|
-
!this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(S.type) && (
|
|
4827
|
+
!this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(S.type) && (O.call(this, g), F.call(this, g));
|
|
4829
4828
|
}
|
|
4830
4829
|
function I() {
|
|
4831
4830
|
this.data.atHardBreak = !0;
|
|
@@ -4896,21 +4895,21 @@ function ra(n) {
|
|
|
4896
4895
|
function G(g) {
|
|
4897
4896
|
const S = this.sliceSerialize(g), M = this.data.characterReferenceType;
|
|
4898
4897
|
let R;
|
|
4899
|
-
M ? (R = ir(S, M === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : R =
|
|
4900
|
-
const
|
|
4901
|
-
|
|
4898
|
+
M ? (R = ir(S, M === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : R = je(S);
|
|
4899
|
+
const U = this.stack[this.stack.length - 1];
|
|
4900
|
+
U.value += R;
|
|
4902
4901
|
}
|
|
4903
4902
|
function Mn(g) {
|
|
4904
4903
|
const S = this.stack.pop();
|
|
4905
4904
|
S.position.end = gn(g.end);
|
|
4906
4905
|
}
|
|
4907
4906
|
function dn(g) {
|
|
4908
|
-
|
|
4907
|
+
F.call(this, g);
|
|
4909
4908
|
const S = this.stack[this.stack.length - 1];
|
|
4910
4909
|
S.url = this.sliceSerialize(g);
|
|
4911
4910
|
}
|
|
4912
4911
|
function Cn(g) {
|
|
4913
|
-
|
|
4912
|
+
F.call(this, g);
|
|
4914
4913
|
const S = this.stack[this.stack.length - 1];
|
|
4915
4914
|
S.url = "mailto:" + this.sliceSerialize(g);
|
|
4916
4915
|
}
|
|
@@ -5329,7 +5328,7 @@ function Ia(n, e) {
|
|
|
5329
5328
|
tagName: "tbody",
|
|
5330
5329
|
properties: {},
|
|
5331
5330
|
children: n.wrap(t, !0)
|
|
5332
|
-
}, a =
|
|
5331
|
+
}, a = Oe(e.children[1]), s = Qt(e.children[e.children.length - 1]);
|
|
5333
5332
|
a && s && (o.position = { start: a, end: s }), i.push(o);
|
|
5334
5333
|
}
|
|
5335
5334
|
const l = {
|
|
@@ -5522,11 +5521,11 @@ function Ra(n) {
|
|
|
5522
5521
|
]
|
|
5523
5522
|
};
|
|
5524
5523
|
}
|
|
5525
|
-
const
|
|
5524
|
+
const Pe = {}.hasOwnProperty, va = {};
|
|
5526
5525
|
function Da(n, e) {
|
|
5527
5526
|
const t = e || va, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), o = { ..._a, ...t.handlers }, a = {
|
|
5528
5527
|
all: u,
|
|
5529
|
-
applyData:
|
|
5528
|
+
applyData: Fa,
|
|
5530
5529
|
definitionById: r,
|
|
5531
5530
|
footnoteById: i,
|
|
5532
5531
|
footnoteCounts: l,
|
|
@@ -5534,8 +5533,8 @@ function Da(n, e) {
|
|
|
5534
5533
|
handlers: o,
|
|
5535
5534
|
one: s,
|
|
5536
5535
|
options: t,
|
|
5537
|
-
patch:
|
|
5538
|
-
wrap:
|
|
5536
|
+
patch: Oa,
|
|
5537
|
+
wrap: Ua
|
|
5539
5538
|
};
|
|
5540
5539
|
return wn(n, function(c) {
|
|
5541
5540
|
if (c.type === "definition" || c.type === "footnoteDefinition") {
|
|
@@ -5545,7 +5544,7 @@ function Da(n, e) {
|
|
|
5545
5544
|
}), a;
|
|
5546
5545
|
function s(c, p) {
|
|
5547
5546
|
const d = c.type, f = a.handlers[d];
|
|
5548
|
-
if (
|
|
5547
|
+
if (Pe.call(a.handlers, d) && f)
|
|
5549
5548
|
return f(a, c, p);
|
|
5550
5549
|
if (a.options.passThrough && a.options.passThrough.includes(d)) {
|
|
5551
5550
|
if ("children" in c) {
|
|
@@ -5575,10 +5574,10 @@ function Da(n, e) {
|
|
|
5575
5574
|
return p;
|
|
5576
5575
|
}
|
|
5577
5576
|
}
|
|
5578
|
-
function
|
|
5577
|
+
function Oa(n, e) {
|
|
5579
5578
|
n.position && (e.position = _i(n));
|
|
5580
5579
|
}
|
|
5581
|
-
function
|
|
5580
|
+
function Fa(n, e) {
|
|
5582
5581
|
let t = e;
|
|
5583
5582
|
if (n && n.data) {
|
|
5584
5583
|
const r = n.data.hName, i = n.data.hChildren, l = n.data.hProperties;
|
|
@@ -5594,7 +5593,7 @@ function Oa(n, e) {
|
|
|
5594
5593
|
return t;
|
|
5595
5594
|
}
|
|
5596
5595
|
function Ba(n, e) {
|
|
5597
|
-
const t = e.data || {}, r = "value" in e && !(
|
|
5596
|
+
const t = e.data || {}, r = "value" in e && !(Pe.call(t, "hProperties") || Pe.call(t, "hChildren")) ? { type: "text", value: e.value } : {
|
|
5598
5597
|
type: "element",
|
|
5599
5598
|
tagName: "div",
|
|
5600
5599
|
properties: {},
|
|
@@ -5602,7 +5601,7 @@ function Ba(n, e) {
|
|
|
5602
5601
|
};
|
|
5603
5602
|
return n.patch(e, r), n.applyData(e, r);
|
|
5604
5603
|
}
|
|
5605
|
-
function
|
|
5604
|
+
function Ua(n, e) {
|
|
5606
5605
|
const t = [];
|
|
5607
5606
|
let r = -1;
|
|
5608
5607
|
for (e && t.push({ type: "text", value: `
|
|
@@ -5623,7 +5622,7 @@ function Lt(n, e) {
|
|
|
5623
5622
|
return i && l.children.push({ type: "text", value: `
|
|
5624
5623
|
` }, i), l;
|
|
5625
5624
|
}
|
|
5626
|
-
function
|
|
5625
|
+
function ja(n, e) {
|
|
5627
5626
|
return n && "run" in n ? async function(t, r) {
|
|
5628
5627
|
const i = (
|
|
5629
5628
|
/** @type {HastRoot} */
|
|
@@ -5641,9 +5640,9 @@ function zt(n) {
|
|
|
5641
5640
|
if (n)
|
|
5642
5641
|
throw n;
|
|
5643
5642
|
}
|
|
5644
|
-
var
|
|
5643
|
+
var ce, _t;
|
|
5645
5644
|
function Ha() {
|
|
5646
|
-
if (_t) return
|
|
5645
|
+
if (_t) return ce;
|
|
5647
5646
|
_t = 1;
|
|
5648
5647
|
var n = Object.prototype.hasOwnProperty, e = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
5649
5648
|
return typeof Array.isArray == "function" ? Array.isArray(u) : e.call(u) === "[object Array]";
|
|
@@ -5672,18 +5671,18 @@ function Ha() {
|
|
|
5672
5671
|
} else return;
|
|
5673
5672
|
return u[c];
|
|
5674
5673
|
};
|
|
5675
|
-
return
|
|
5674
|
+
return ce = function s() {
|
|
5676
5675
|
var u, c, p, d, f, w, b = arguments[0], L = 1, x = arguments.length, T = !1;
|
|
5677
5676
|
for (typeof b == "boolean" && (T = b, b = arguments[1] || {}, L = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); L < x; ++L)
|
|
5678
5677
|
if (u = arguments[L], u != null)
|
|
5679
5678
|
for (c in u)
|
|
5680
5679
|
p = a(b, c), d = a(u, c), b !== d && (T && d && (l(d) || (f = i(d))) ? (f ? (f = !1, w = p && i(p) ? p : []) : w = p && l(p) ? p : {}, o(b, { name: c, newValue: s(T, w, d) })) : typeof d < "u" && o(b, { name: c, newValue: d }));
|
|
5681
5680
|
return b;
|
|
5682
|
-
},
|
|
5681
|
+
}, ce;
|
|
5683
5682
|
}
|
|
5684
5683
|
var $a = /* @__PURE__ */ Ha();
|
|
5685
|
-
const
|
|
5686
|
-
function
|
|
5684
|
+
const fe = /* @__PURE__ */ Ot($a);
|
|
5685
|
+
function Ae(n) {
|
|
5687
5686
|
if (typeof n != "object" || n === null)
|
|
5688
5687
|
return !1;
|
|
5689
5688
|
const e = Object.getPrototypeOf(n);
|
|
@@ -5858,14 +5857,14 @@ const Ja = { cwd: Za };
|
|
|
5858
5857
|
function Za() {
|
|
5859
5858
|
return "/";
|
|
5860
5859
|
}
|
|
5861
|
-
function
|
|
5860
|
+
function Te(n) {
|
|
5862
5861
|
return !!(n !== null && typeof n == "object" && "href" in n && n.href && "protocol" in n && n.protocol && // @ts-expect-error: indexing is fine.
|
|
5863
5862
|
n.auth === void 0);
|
|
5864
5863
|
}
|
|
5865
5864
|
function nu(n) {
|
|
5866
5865
|
if (typeof n == "string")
|
|
5867
5866
|
n = new URL(n);
|
|
5868
|
-
else if (!
|
|
5867
|
+
else if (!Te(n)) {
|
|
5869
5868
|
const e = new TypeError(
|
|
5870
5869
|
'The "path" argument must be of type string or an instance of URL. Received `' + n + "`"
|
|
5871
5870
|
);
|
|
@@ -5898,7 +5897,7 @@ function eu(n) {
|
|
|
5898
5897
|
}
|
|
5899
5898
|
return decodeURIComponent(e);
|
|
5900
5899
|
}
|
|
5901
|
-
const
|
|
5900
|
+
const pe = (
|
|
5902
5901
|
/** @type {const} */
|
|
5903
5902
|
[
|
|
5904
5903
|
"history",
|
|
@@ -5934,15 +5933,15 @@ class tu {
|
|
|
5934
5933
|
*/
|
|
5935
5934
|
constructor(e) {
|
|
5936
5935
|
let t;
|
|
5937
|
-
e ?
|
|
5936
|
+
e ? Te(e) ? t = { path: e } : typeof e == "string" || ru(e) ? t = { value: e } : t = e : t = {}, this.cwd = "cwd" in t ? "" : Ja.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5938
5937
|
let r = -1;
|
|
5939
|
-
for (; ++r <
|
|
5940
|
-
const l =
|
|
5938
|
+
for (; ++r < pe.length; ) {
|
|
5939
|
+
const l = pe[r];
|
|
5941
5940
|
l in t && t[l] !== void 0 && t[l] !== null && (this[l] = l === "history" ? [...t[l]] : t[l]);
|
|
5942
5941
|
}
|
|
5943
5942
|
let i;
|
|
5944
5943
|
for (i in t)
|
|
5945
|
-
|
|
5944
|
+
pe.includes(i) || (this[i] = t[i]);
|
|
5946
5945
|
}
|
|
5947
5946
|
/**
|
|
5948
5947
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -5966,7 +5965,7 @@ class tu {
|
|
|
5966
5965
|
* Nothing.
|
|
5967
5966
|
*/
|
|
5968
5967
|
set basename(e) {
|
|
5969
|
-
|
|
5968
|
+
me(e, "basename"), he(e, "basename"), this.path = un.join(this.dirname || "", e);
|
|
5970
5969
|
}
|
|
5971
5970
|
/**
|
|
5972
5971
|
* Get the parent path (example: `'~'`).
|
|
@@ -6012,7 +6011,7 @@ class tu {
|
|
|
6012
6011
|
* Nothing.
|
|
6013
6012
|
*/
|
|
6014
6013
|
set extname(e) {
|
|
6015
|
-
if (
|
|
6014
|
+
if (he(e, "extname"), Mt(this.dirname, "extname"), e) {
|
|
6016
6015
|
if (e.codePointAt(0) !== 46)
|
|
6017
6016
|
throw new Error("`extname` must start with `.`");
|
|
6018
6017
|
if (e.includes(".", 1))
|
|
@@ -6042,7 +6041,7 @@ class tu {
|
|
|
6042
6041
|
* Nothing.
|
|
6043
6042
|
*/
|
|
6044
6043
|
set path(e) {
|
|
6045
|
-
|
|
6044
|
+
Te(e) && (e = nu(e)), me(e, "path"), this.path !== e && this.history.push(e);
|
|
6046
6045
|
}
|
|
6047
6046
|
/**
|
|
6048
6047
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6066,7 +6065,7 @@ class tu {
|
|
|
6066
6065
|
* Nothing.
|
|
6067
6066
|
*/
|
|
6068
6067
|
set stem(e) {
|
|
6069
|
-
|
|
6068
|
+
me(e, "stem"), he(e, "stem"), this.path = un.join(this.dirname || "", e + (this.extname || ""));
|
|
6070
6069
|
}
|
|
6071
6070
|
// Normal prototypal methods.
|
|
6072
6071
|
/**
|
|
@@ -6279,13 +6278,13 @@ class tu {
|
|
|
6279
6278
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
|
|
6280
6279
|
}
|
|
6281
6280
|
}
|
|
6282
|
-
function
|
|
6281
|
+
function he(n, e) {
|
|
6283
6282
|
if (n && n.includes(un.sep))
|
|
6284
6283
|
throw new Error(
|
|
6285
6284
|
"`" + e + "` cannot be a path: did not expect `" + un.sep + "`"
|
|
6286
6285
|
);
|
|
6287
6286
|
}
|
|
6288
|
-
function
|
|
6287
|
+
function me(n, e) {
|
|
6289
6288
|
if (!n)
|
|
6290
6289
|
throw new Error("`" + e + "` cannot be empty");
|
|
6291
6290
|
}
|
|
@@ -6346,7 +6345,7 @@ class Ve extends iu {
|
|
|
6346
6345
|
const r = this.attachers[t];
|
|
6347
6346
|
e.use(...r);
|
|
6348
6347
|
}
|
|
6349
|
-
return e.data(
|
|
6348
|
+
return e.data(fe(!0, {}, this.namespace)), e;
|
|
6350
6349
|
}
|
|
6351
6350
|
/**
|
|
6352
6351
|
* Configure the processor with info available to all plugins.
|
|
@@ -6408,7 +6407,7 @@ class Ve extends iu {
|
|
|
6408
6407
|
* the entire dataset when getting without key.
|
|
6409
6408
|
*/
|
|
6410
6409
|
data(e, t) {
|
|
6411
|
-
return typeof e == "string" ? arguments.length === 2 ? (
|
|
6410
|
+
return typeof e == "string" ? arguments.length === 2 ? (ye("data", this.frozen), this.namespace[e] = t, this) : lu.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (ye("data", this.frozen), this.namespace = e, this) : this.namespace;
|
|
6412
6411
|
}
|
|
6413
6412
|
/**
|
|
6414
6413
|
* Freeze a processor.
|
|
@@ -6462,7 +6461,7 @@ class Ve extends iu {
|
|
|
6462
6461
|
parse(e) {
|
|
6463
6462
|
this.freeze();
|
|
6464
6463
|
const t = Qn(e), r = this.parser || this.Parser;
|
|
6465
|
-
return
|
|
6464
|
+
return de("parse", r), r(String(t), t);
|
|
6466
6465
|
}
|
|
6467
6466
|
/**
|
|
6468
6467
|
* Process the given file as configured on the processor.
|
|
@@ -6508,7 +6507,7 @@ class Ve extends iu {
|
|
|
6508
6507
|
*/
|
|
6509
6508
|
process(e, t) {
|
|
6510
6509
|
const r = this;
|
|
6511
|
-
return this.freeze(),
|
|
6510
|
+
return this.freeze(), de("process", this.parser || this.Parser), ge("process", this.compiler || this.Compiler), t ? i(void 0, t) : new Promise(i);
|
|
6512
6511
|
function i(l, o) {
|
|
6513
6512
|
const a = Qn(e), s = (
|
|
6514
6513
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -6567,7 +6566,7 @@ class Ve extends iu {
|
|
|
6567
6566
|
*/
|
|
6568
6567
|
processSync(e) {
|
|
6569
6568
|
let t = !1, r;
|
|
6570
|
-
return this.freeze(),
|
|
6569
|
+
return this.freeze(), de("processSync", this.parser || this.Parser), ge("processSync", this.compiler || this.Compiler), this.process(e, i), Rt("processSync", "process", t), r;
|
|
6571
6570
|
function i(l, o) {
|
|
6572
6571
|
t = !0, zt(l), r = o;
|
|
6573
6572
|
}
|
|
@@ -6682,7 +6681,7 @@ class Ve extends iu {
|
|
|
6682
6681
|
stringify(e, t) {
|
|
6683
6682
|
this.freeze();
|
|
6684
6683
|
const r = Qn(t), i = this.compiler || this.Compiler;
|
|
6685
|
-
return
|
|
6684
|
+
return ge("stringify", i), Nt(e), i(e, r);
|
|
6686
6685
|
}
|
|
6687
6686
|
/**
|
|
6688
6687
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6743,7 +6742,7 @@ class Ve extends iu {
|
|
|
6743
6742
|
*/
|
|
6744
6743
|
use(e, ...t) {
|
|
6745
6744
|
const r = this.attachers, i = this.namespace;
|
|
6746
|
-
if (
|
|
6745
|
+
if (ye("use", this.frozen), e != null) if (typeof e == "function")
|
|
6747
6746
|
s(e, t);
|
|
6748
6747
|
else if (typeof e == "object")
|
|
6749
6748
|
Array.isArray(e) ? a(e) : o(e);
|
|
@@ -6770,7 +6769,7 @@ class Ve extends iu {
|
|
|
6770
6769
|
throw new Error(
|
|
6771
6770
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
6772
6771
|
);
|
|
6773
|
-
a(u.plugins), u.settings && (i.settings =
|
|
6772
|
+
a(u.plugins), u.settings && (i.settings = fe(!0, i.settings, u.settings));
|
|
6774
6773
|
}
|
|
6775
6774
|
function a(u) {
|
|
6776
6775
|
let c = -1;
|
|
@@ -6794,28 +6793,28 @@ class Ve extends iu {
|
|
|
6794
6793
|
else if (c.length > 0) {
|
|
6795
6794
|
let [f, ...w] = c;
|
|
6796
6795
|
const b = r[d][1];
|
|
6797
|
-
|
|
6796
|
+
Ae(b) && Ae(f) && (f = fe(!0, b, f)), r[d] = [u, f, ...w];
|
|
6798
6797
|
}
|
|
6799
6798
|
}
|
|
6800
6799
|
}
|
|
6801
6800
|
}
|
|
6802
6801
|
const ou = new Ve().freeze();
|
|
6803
|
-
function
|
|
6802
|
+
function de(n, e) {
|
|
6804
6803
|
if (typeof e != "function")
|
|
6805
6804
|
throw new TypeError("Cannot `" + n + "` without `parser`");
|
|
6806
6805
|
}
|
|
6807
|
-
function
|
|
6806
|
+
function ge(n, e) {
|
|
6808
6807
|
if (typeof e != "function")
|
|
6809
6808
|
throw new TypeError("Cannot `" + n + "` without `compiler`");
|
|
6810
6809
|
}
|
|
6811
|
-
function
|
|
6810
|
+
function ye(n, e) {
|
|
6812
6811
|
if (e)
|
|
6813
6812
|
throw new Error(
|
|
6814
6813
|
"Cannot call `" + n + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6815
6814
|
);
|
|
6816
6815
|
}
|
|
6817
6816
|
function Nt(n) {
|
|
6818
|
-
if (!
|
|
6817
|
+
if (!Ae(n) || typeof n.type != "string")
|
|
6819
6818
|
throw new TypeError("Expected node, got `" + n + "`");
|
|
6820
6819
|
}
|
|
6821
6820
|
function Rt(n, e, t) {
|
|
@@ -6860,7 +6859,7 @@ const cu = ({
|
|
|
6860
6859
|
},
|
|
6861
6860
|
[n, e]
|
|
6862
6861
|
);
|
|
6863
|
-
return /* @__PURE__ */
|
|
6862
|
+
return /* @__PURE__ */ Le("a", { href: n, target: e, rel: t, onClick: l, ...i, children: r });
|
|
6864
6863
|
};
|
|
6865
6864
|
function fu(n) {
|
|
6866
6865
|
try {
|
|
@@ -7111,7 +7110,7 @@ class vu {
|
|
|
7111
7110
|
if (!this.remarkGfm) {
|
|
7112
7111
|
const { default: e } = await import(
|
|
7113
7112
|
/* webpackChunkName: "md-remark" */
|
|
7114
|
-
"./index.
|
|
7113
|
+
"./index.BUPcQvlr.js"
|
|
7115
7114
|
);
|
|
7116
7115
|
this.remarkGfm = e;
|
|
7117
7116
|
}
|
|
@@ -7119,10 +7118,10 @@ class vu {
|
|
|
7119
7118
|
}
|
|
7120
7119
|
async loadKatex() {
|
|
7121
7120
|
if (!this.rehypeKatex) {
|
|
7122
|
-
|
|
7121
|
+
Uu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
|
7123
7122
|
const { default: e } = await import(
|
|
7124
7123
|
/* webpackChunkName: "md-rehype-katex" */
|
|
7125
|
-
"./index.
|
|
7124
|
+
"./index.BrE3_o6F.js"
|
|
7126
7125
|
);
|
|
7127
7126
|
this.rehypeKatex = e;
|
|
7128
7127
|
}
|
|
@@ -7132,7 +7131,7 @@ class vu {
|
|
|
7132
7131
|
if (!this.remarkMath) {
|
|
7133
7132
|
const { default: e } = await import(
|
|
7134
7133
|
/* webpackChunkName: "md-remark" */
|
|
7135
|
-
"./index.
|
|
7134
|
+
"./index.o7M2h5Kz.js"
|
|
7136
7135
|
);
|
|
7137
7136
|
this.remarkMath = e;
|
|
7138
7137
|
}
|
|
@@ -7142,7 +7141,7 @@ class vu {
|
|
|
7142
7141
|
if (!this.rehypeHighlight) {
|
|
7143
7142
|
const { default: e } = await import(
|
|
7144
7143
|
/* webpackChunkName: "md-rehype-highlight" */
|
|
7145
|
-
"./index.
|
|
7144
|
+
"./index.CpMnKe5v.js"
|
|
7146
7145
|
);
|
|
7147
7146
|
this.rehypeHighlight = e;
|
|
7148
7147
|
}
|
|
@@ -7153,9 +7152,9 @@ const Jn = new vu(), Du = ({
|
|
|
7153
7152
|
children: n,
|
|
7154
7153
|
raw: e,
|
|
7155
7154
|
...t
|
|
7156
|
-
}) => /* @__PURE__ */
|
|
7155
|
+
}) => /* @__PURE__ */ vt("pre", { className: "relative pt-7 sm:pt-2 ps-0 sm:ps-3", ...t, children: [
|
|
7157
7156
|
n,
|
|
7158
|
-
/* @__PURE__ */
|
|
7157
|
+
/* @__PURE__ */ Le(
|
|
7159
7158
|
zr,
|
|
7160
7159
|
{
|
|
7161
7160
|
mode: "light",
|
|
@@ -7166,16 +7165,16 @@ const Jn = new vu(), Du = ({
|
|
|
7166
7165
|
className: "mb-2 px-1 absolute top-2 right-2 font-sans font-normal text-xs"
|
|
7167
7166
|
}
|
|
7168
7167
|
)
|
|
7169
|
-
] }),
|
|
7168
|
+
] }), Ou = (n) => n.includes("```"), Fu = (n) => n.includes("$$"), Bu = (n) => (
|
|
7170
7169
|
// urls.
|
|
7171
7170
|
n.includes("http://") || n.includes("https://") || // table.
|
|
7172
7171
|
n.includes("|") || // strikethrough.
|
|
7173
7172
|
n.includes("~") || n.includes("~~") || // task lists.
|
|
7174
7173
|
n.includes("- [ ]") || n.includes("- [x]")
|
|
7175
|
-
),
|
|
7174
|
+
), Uu = (n) => {
|
|
7176
7175
|
const e = document.createElement("link");
|
|
7177
7176
|
e.href = n, e.type = "text/css", e.rel = "stylesheet", e.id = "dynamic-katex-css", document.head.appendChild(e);
|
|
7178
|
-
},
|
|
7177
|
+
}, ju = () => (n) => {
|
|
7179
7178
|
wn(n, (e) => {
|
|
7180
7179
|
if (e?.type === "element" && e?.tagName === "pre") {
|
|
7181
7180
|
const [t] = e.children;
|
|
@@ -7195,7 +7194,7 @@ const Jn = new vu(), Du = ({
|
|
|
7195
7194
|
} = {}) => {
|
|
7196
7195
|
const t = vn(n), r = vn(null), i = vn(null), l = vn(null), o = vn({
|
|
7197
7196
|
rehypePlugins: [
|
|
7198
|
-
|
|
7197
|
+
ju,
|
|
7199
7198
|
/**
|
|
7200
7199
|
* Security: Harden against XSS by restricting allowed elements, attributes,
|
|
7201
7200
|
* and URL protocols. Uses safe defaults for AI-generated content.
|
|
@@ -7234,7 +7233,7 @@ const Jn = new vu(), Du = ({
|
|
|
7234
7233
|
(c) => {
|
|
7235
7234
|
(async () => {
|
|
7236
7235
|
const p = e ? Ru(c) : c;
|
|
7237
|
-
if (!r.current &&
|
|
7236
|
+
if (!r.current && Ou(p)) {
|
|
7238
7237
|
r.current = !0;
|
|
7239
7238
|
const f = await Jn.loadHighlight();
|
|
7240
7239
|
o.current.rehypePlugins.push(f);
|
|
@@ -7244,7 +7243,7 @@ const Jn = new vu(), Du = ({
|
|
|
7244
7243
|
const f = await Jn.loadGfm();
|
|
7245
7244
|
o.current.remarkPlugins.push(f);
|
|
7246
7245
|
}
|
|
7247
|
-
if (!l.current &&
|
|
7246
|
+
if (!l.current && Fu(p)) {
|
|
7248
7247
|
l.current = !0;
|
|
7249
7248
|
const f = await Jn.loadKatex(), w = await Jn.loadMath();
|
|
7250
7249
|
o.current.remarkPlugins.push(w), o.current.rehypePlugins.push(f);
|
|
@@ -7253,10 +7252,10 @@ const Jn = new vu(), Du = ({
|
|
|
7253
7252
|
...o.current.rehypePlugins,
|
|
7254
7253
|
Hu
|
|
7255
7254
|
];
|
|
7256
|
-
ou().use(la).use(o.current.remarkPlugins).use(
|
|
7257
|
-
Fragment:
|
|
7258
|
-
jsx:
|
|
7259
|
-
jsxs:
|
|
7255
|
+
ou().use(la).use(o.current.remarkPlugins).use(ja).use(d).use(Ji, {
|
|
7256
|
+
Fragment: Tr,
|
|
7257
|
+
jsx: Le,
|
|
7258
|
+
jsxs: vt,
|
|
7260
7259
|
components: {
|
|
7261
7260
|
pre: Du,
|
|
7262
7261
|
a: cu
|
|
@@ -7270,22 +7269,22 @@ const Jn = new vu(), Du = ({
|
|
|
7270
7269
|
};
|
|
7271
7270
|
export {
|
|
7272
7271
|
nt as EXIT,
|
|
7273
|
-
|
|
7272
|
+
ke as SKIP,
|
|
7274
7273
|
sn as asciiAlpha,
|
|
7275
7274
|
en as asciiAlphanumeric,
|
|
7276
|
-
|
|
7275
|
+
Ce as asciiControl,
|
|
7277
7276
|
re as blankLine,
|
|
7278
7277
|
yt as classifyCharacter,
|
|
7279
7278
|
tl as combineExtensions,
|
|
7280
7279
|
Ht as convert,
|
|
7281
|
-
|
|
7280
|
+
jt as convertElement,
|
|
7282
7281
|
$ as factorySpace,
|
|
7283
7282
|
wi as find,
|
|
7284
7283
|
Ei as html,
|
|
7285
7284
|
z as markdownLineEnding,
|
|
7286
7285
|
Q as markdownLineEndingOrSpace,
|
|
7287
7286
|
D as markdownSpace,
|
|
7288
|
-
|
|
7287
|
+
xe as normalize,
|
|
7289
7288
|
Ln as normalizeIdentifier,
|
|
7290
7289
|
Wr as parse,
|
|
7291
7290
|
Xu as parse$1,
|