@versini/sassysaint 8.92.0 → 8.92.2
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.BOP3BSrk.js → AboutChangelog.ClrqYOiE.js} +3 -3
- package/dist/chunks/{AboutEntry.Bj8HUsU4.js → AboutEntry.L-3EWXSh.js} +5 -5
- package/dist/chunks/{App.DAQta2pJ.js → App.Bed_fbQv.js} +16 -16
- package/dist/chunks/{Chart.4eKSXUC7.js → Chart.CXU9w0QU.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CSgJfGV8.js → ChatBubbleAssistant.DIGdiWbQ.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.K3_2TN_h.js → ChatBubbleUser.Bi7vtWaU.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BngsfWch.js → ChatHistoryTable.CqgUw1OQ.js} +3 -3
- package/dist/chunks/{HistoryEntry.BXEni06v.js → HistoryEntry.DukEHHSh.js} +3 -3
- package/dist/chunks/{ProfileEntry.B5H9_Q-0.js → ProfileEntry.DwqW02Bc.js} +2 -2
- package/dist/chunks/{SettingsEntry.D5cipDqa.js → SettingsEntry.DMEqY9x4.js} +3 -3
- package/dist/chunks/UsageEntry.B0krRouG.js +213 -0
- package/dist/chunks/{UserMemoriesPanel.CwAnAj0p.js → UserMemoriesPanel.B9hO4KO1.js} +4 -4
- package/dist/chunks/{index.BECvwaM5.js → index.B8CE00US.js} +12 -9
- package/dist/chunks/{index.CzSTlOsu.js → index.BAnjv3Rq.js} +3 -3
- package/dist/chunks/{index.N6iGJtWi.js → index.B_fFXIzN.js} +1 -1
- package/dist/chunks/{index.C9N2vELq.js → index.ClSZM0X3.js} +1 -1
- package/dist/chunks/{index.CGdw9MqW.js → index.Cwy9OBLR.js} +2 -2
- package/dist/chunks/{index.Drx_3ie_.js → index.D17PEaoT.js} +1 -1
- package/dist/chunks/{index.NHQBZNrH.js → index.Daq_IkiG.js} +1 -1
- package/dist/chunks/{index.hL9trLAw.js → index.W35vbF8N.js} +1 -1
- package/dist/chunks/{index.C5Rg3-rY.js → index.v0RCRqNr.js} +1 -1
- package/dist/chunks/{useMarkdown.keqTeXmn.js → useMarkdown.CyMeAmZY.js} +286 -277
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/UsageEntry.DPue9312.js +0 -211
|
@@ -1,8 +1,8 @@
|
|
|
1
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.
|
|
2
|
+
import { isTauri as Lr, ButtonCopy as zr, unObfuscate as _r, obfuscate as Mr } from "./index.B8CE00US.js";
|
|
3
3
|
import { useCallback as Dt, useRef as vn, useState as Nr, useEffect as Rr } from "react";
|
|
4
|
-
import { getDefaultExportFromCjs as Ot } from "./App.
|
|
5
|
-
const Ft = -1, ee = 0,
|
|
4
|
+
import { getDefaultExportFromCjs as Ot } from "./App.Bed_fbQv.js";
|
|
5
|
+
const Ft = -1, ee = 0, $n = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, Ut = 8, Qe = typeof self == "object" ? self : globalThis, vr = (n, e) => {
|
|
6
6
|
const t = (i, l) => (n.set(l, i), i), r = (i) => {
|
|
7
7
|
if (n.has(i))
|
|
8
8
|
return n.get(i);
|
|
@@ -11,7 +11,7 @@ const Ft = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
11
11
|
case ee:
|
|
12
12
|
case Ft:
|
|
13
13
|
return t(o, i);
|
|
14
|
-
case
|
|
14
|
+
case $n: {
|
|
15
15
|
const a = t([], i);
|
|
16
16
|
for (const s of o)
|
|
17
17
|
a.push(r(s));
|
|
@@ -66,7 +66,7 @@ const Ft = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
66
66
|
const t = Dr.call(n).slice(8, -1);
|
|
67
67
|
switch (t) {
|
|
68
68
|
case "Array":
|
|
69
|
-
return [
|
|
69
|
+
return [$n, Pn];
|
|
70
70
|
case "Object":
|
|
71
71
|
return [ne, Pn];
|
|
72
72
|
case "Date":
|
|
@@ -78,9 +78,9 @@ const Ft = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
78
78
|
case "Set":
|
|
79
79
|
return [Ne, Pn];
|
|
80
80
|
case "DataView":
|
|
81
|
-
return [
|
|
81
|
+
return [$n, t];
|
|
82
82
|
}
|
|
83
|
-
return t.includes("Array") ? [
|
|
83
|
+
return t.includes("Array") ? [$n, t] : t.includes("Error") ? [Bt, t] : [ne, t];
|
|
84
84
|
}, Yn = ([n, e]) => n === ee && (e === "function" || e === "symbol"), Fr = (n, e, t, r) => {
|
|
85
85
|
const i = (o, a) => {
|
|
86
86
|
const s = r.push(o) - 1;
|
|
@@ -107,7 +107,7 @@ const Ft = -1, ee = 0, Hn = 1, ne = 2, ze = 3, _e = 4, Me = 5, Ne = 6, Bt = 7, U
|
|
|
107
107
|
}
|
|
108
108
|
return i([a, c], o);
|
|
109
109
|
}
|
|
110
|
-
case
|
|
110
|
+
case $n: {
|
|
111
111
|
if (s) {
|
|
112
112
|
let d = o;
|
|
113
113
|
return s === "DataView" ? d = new Uint8Array(o.buffer) : s === "ArrayBuffer" && (d = new Uint8Array(o)), i([s, [...d]], o);
|
|
@@ -211,7 +211,7 @@ function Ur(n) {
|
|
|
211
211
|
function Re(n) {
|
|
212
212
|
return e;
|
|
213
213
|
function e(t, r, i) {
|
|
214
|
-
return !!(
|
|
214
|
+
return !!($r(t) && n.call(
|
|
215
215
|
this,
|
|
216
216
|
t,
|
|
217
217
|
typeof r == "number" ? r : void 0,
|
|
@@ -222,14 +222,14 @@ function Re(n) {
|
|
|
222
222
|
function jr(n) {
|
|
223
223
|
return !!(n && typeof n == "object" && "type" in n && n.type === "element" && "tagName" in n && typeof n.tagName == "string");
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function $r(n) {
|
|
226
226
|
return n !== null && typeof n == "object" && "type" in n && "tagName" in n;
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const Hr = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, Vr = /^[a-zA-Z]:\\/;
|
|
229
229
|
function qr(n) {
|
|
230
230
|
if (typeof n != "string")
|
|
231
231
|
throw new TypeError(`Expected a \`string\`, got \`${typeof n}\``);
|
|
232
|
-
return Vr.test(n) ? !1 :
|
|
232
|
+
return Vr.test(n) ? !1 : Hr.test(n);
|
|
233
233
|
}
|
|
234
234
|
function Wr(n) {
|
|
235
235
|
const e = String(n || "").trim();
|
|
@@ -238,7 +238,7 @@ function Wr(n) {
|
|
|
238
238
|
function Xr(n) {
|
|
239
239
|
return n.join(" ").trim();
|
|
240
240
|
}
|
|
241
|
-
const
|
|
241
|
+
const $t = (
|
|
242
242
|
// Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
243
243
|
/**
|
|
244
244
|
* @type {(
|
|
@@ -276,7 +276,7 @@ function Gr(n) {
|
|
|
276
276
|
const e = [];
|
|
277
277
|
let t = -1;
|
|
278
278
|
for (; ++t < n.length; )
|
|
279
|
-
e[t] =
|
|
279
|
+
e[t] = $t(n[t]);
|
|
280
280
|
return te(r);
|
|
281
281
|
function r(...i) {
|
|
282
282
|
let l = -1;
|
|
@@ -326,11 +326,11 @@ function Qr() {
|
|
|
326
326
|
function Jr(n) {
|
|
327
327
|
return n !== null && typeof n == "object" && "type" in n;
|
|
328
328
|
}
|
|
329
|
-
const
|
|
329
|
+
const Ht = [], jn = !0, nt = !1, ke = "skip";
|
|
330
330
|
function Zr(n, e, t, r) {
|
|
331
331
|
let i;
|
|
332
332
|
typeof e == "function" && typeof t != "function" ? (r = t, t = e) : i = e;
|
|
333
|
-
const l =
|
|
333
|
+
const l = $t(i), o = r ? -1 : 1;
|
|
334
334
|
a(n, void 0, [])();
|
|
335
335
|
function a(s, u, c) {
|
|
336
336
|
const p = (
|
|
@@ -351,7 +351,7 @@ function Zr(n, e, t, r) {
|
|
|
351
351
|
}
|
|
352
352
|
return d;
|
|
353
353
|
function d() {
|
|
354
|
-
let f =
|
|
354
|
+
let f = Ht, w, b, L;
|
|
355
355
|
if ((!e || l(s, u, c[c.length - 1] || void 0)) && (f = ni(t(s, c)), f[0] === nt))
|
|
356
356
|
return f;
|
|
357
357
|
if ("children" in s && s.children) {
|
|
@@ -372,7 +372,7 @@ function Zr(n, e, t, r) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
function ni(n) {
|
|
375
|
-
return Array.isArray(n) ? n : typeof n == "number" ? [jn, n] : n == null ?
|
|
375
|
+
return Array.isArray(n) ? n : typeof n == "number" ? [jn, n] : n == null ? Ht : [n];
|
|
376
376
|
}
|
|
377
377
|
function wn(n, e, t, r) {
|
|
378
378
|
let i, l, o;
|
|
@@ -508,7 +508,7 @@ const le = Symbol("node-seen"), ui = (n, e, t, r, i, l) => {
|
|
|
508
508
|
};
|
|
509
509
|
return o;
|
|
510
510
|
};
|
|
511
|
-
function
|
|
511
|
+
function Ku(n) {
|
|
512
512
|
const e = [], t = String(n || "");
|
|
513
513
|
let r = t.indexOf(","), i = 0, l = !1;
|
|
514
514
|
for (; !l; ) {
|
|
@@ -588,11 +588,11 @@ J.prototype.property = "";
|
|
|
588
588
|
J.prototype.spaceSeparated = !1;
|
|
589
589
|
J.prototype.space = void 0;
|
|
590
590
|
let di = 0;
|
|
591
|
-
const N = Sn(), q = Sn(), be = Sn(), k = Sn(),
|
|
591
|
+
const N = Sn(), q = Sn(), be = Sn(), k = Sn(), $ = Sn(), Tn = Sn(), nn = Sn();
|
|
592
592
|
function Sn() {
|
|
593
593
|
return 2 ** ++di;
|
|
594
594
|
}
|
|
595
|
-
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: N, booleanish: q, commaOrSpaceSeparated: nn, commaSeparated: Tn, number: k, overloadedBoolean: be, spaceSeparated:
|
|
595
|
+
const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: N, booleanish: q, commaOrSpaceSeparated: nn, commaSeparated: Tn, number: k, overloadedBoolean: be, spaceSeparated: $ }, Symbol.toStringTag, { value: "Module" })), oe = (
|
|
596
596
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
597
597
|
Object.keys(we)
|
|
598
598
|
);
|
|
@@ -646,36 +646,36 @@ const qt = zn({
|
|
|
646
646
|
ariaColCount: k,
|
|
647
647
|
ariaColIndex: k,
|
|
648
648
|
ariaColSpan: k,
|
|
649
|
-
ariaControls:
|
|
649
|
+
ariaControls: $,
|
|
650
650
|
ariaCurrent: null,
|
|
651
|
-
ariaDescribedBy:
|
|
651
|
+
ariaDescribedBy: $,
|
|
652
652
|
ariaDetails: null,
|
|
653
653
|
ariaDisabled: q,
|
|
654
|
-
ariaDropEffect:
|
|
654
|
+
ariaDropEffect: $,
|
|
655
655
|
ariaErrorMessage: null,
|
|
656
656
|
ariaExpanded: q,
|
|
657
|
-
ariaFlowTo:
|
|
657
|
+
ariaFlowTo: $,
|
|
658
658
|
ariaGrabbed: q,
|
|
659
659
|
ariaHasPopup: null,
|
|
660
660
|
ariaHidden: q,
|
|
661
661
|
ariaInvalid: null,
|
|
662
662
|
ariaKeyShortcuts: null,
|
|
663
663
|
ariaLabel: null,
|
|
664
|
-
ariaLabelledBy:
|
|
664
|
+
ariaLabelledBy: $,
|
|
665
665
|
ariaLevel: k,
|
|
666
666
|
ariaLive: null,
|
|
667
667
|
ariaModal: q,
|
|
668
668
|
ariaMultiLine: q,
|
|
669
669
|
ariaMultiSelectable: q,
|
|
670
670
|
ariaOrientation: null,
|
|
671
|
-
ariaOwns:
|
|
671
|
+
ariaOwns: $,
|
|
672
672
|
ariaPlaceholder: null,
|
|
673
673
|
ariaPosInSet: k,
|
|
674
674
|
ariaPressed: q,
|
|
675
675
|
ariaReadOnly: q,
|
|
676
676
|
ariaRelevant: null,
|
|
677
677
|
ariaRequired: q,
|
|
678
|
-
ariaRoleDescription:
|
|
678
|
+
ariaRoleDescription: $,
|
|
679
679
|
ariaRowCount: k,
|
|
680
680
|
ariaRowIndex: k,
|
|
681
681
|
ariaRowSpan: k,
|
|
@@ -710,8 +710,8 @@ const gi = zn({
|
|
|
710
710
|
// Standard Properties.
|
|
711
711
|
abbr: null,
|
|
712
712
|
accept: Tn,
|
|
713
|
-
acceptCharset:
|
|
714
|
-
accessKey:
|
|
713
|
+
acceptCharset: $,
|
|
714
|
+
accessKey: $,
|
|
715
715
|
action: null,
|
|
716
716
|
allow: null,
|
|
717
717
|
allowFullScreen: N,
|
|
@@ -721,21 +721,21 @@ const gi = zn({
|
|
|
721
721
|
as: null,
|
|
722
722
|
async: N,
|
|
723
723
|
autoCapitalize: null,
|
|
724
|
-
autoComplete:
|
|
724
|
+
autoComplete: $,
|
|
725
725
|
autoFocus: N,
|
|
726
726
|
autoPlay: N,
|
|
727
|
-
blocking:
|
|
727
|
+
blocking: $,
|
|
728
728
|
capture: null,
|
|
729
729
|
charSet: null,
|
|
730
730
|
checked: N,
|
|
731
731
|
cite: null,
|
|
732
|
-
className:
|
|
732
|
+
className: $,
|
|
733
733
|
cols: k,
|
|
734
734
|
colSpan: null,
|
|
735
735
|
content: null,
|
|
736
736
|
contentEditable: q,
|
|
737
737
|
controls: N,
|
|
738
|
-
controlsList:
|
|
738
|
+
controlsList: $,
|
|
739
739
|
coords: k | Tn,
|
|
740
740
|
crossOrigin: null,
|
|
741
741
|
data: null,
|
|
@@ -757,14 +757,14 @@ const gi = zn({
|
|
|
757
757
|
formMethod: null,
|
|
758
758
|
formNoValidate: N,
|
|
759
759
|
formTarget: null,
|
|
760
|
-
headers:
|
|
760
|
+
headers: $,
|
|
761
761
|
height: k,
|
|
762
762
|
hidden: be,
|
|
763
763
|
high: k,
|
|
764
764
|
href: null,
|
|
765
765
|
hrefLang: null,
|
|
766
|
-
htmlFor:
|
|
767
|
-
httpEquiv:
|
|
766
|
+
htmlFor: $,
|
|
767
|
+
httpEquiv: $,
|
|
768
768
|
id: null,
|
|
769
769
|
imageSizes: null,
|
|
770
770
|
imageSrcSet: null,
|
|
@@ -774,10 +774,10 @@ const gi = zn({
|
|
|
774
774
|
is: null,
|
|
775
775
|
isMap: N,
|
|
776
776
|
itemId: null,
|
|
777
|
-
itemProp:
|
|
778
|
-
itemRef:
|
|
777
|
+
itemProp: $,
|
|
778
|
+
itemRef: $,
|
|
779
779
|
itemScope: N,
|
|
780
|
-
itemType:
|
|
780
|
+
itemType: $,
|
|
781
781
|
kind: null,
|
|
782
782
|
label: null,
|
|
783
783
|
lang: null,
|
|
@@ -890,7 +890,7 @@ const gi = zn({
|
|
|
890
890
|
open: N,
|
|
891
891
|
optimum: k,
|
|
892
892
|
pattern: null,
|
|
893
|
-
ping:
|
|
893
|
+
ping: $,
|
|
894
894
|
placeholder: null,
|
|
895
895
|
playsInline: N,
|
|
896
896
|
popover: null,
|
|
@@ -900,12 +900,12 @@ const gi = zn({
|
|
|
900
900
|
preload: null,
|
|
901
901
|
readOnly: N,
|
|
902
902
|
referrerPolicy: null,
|
|
903
|
-
rel:
|
|
903
|
+
rel: $,
|
|
904
904
|
required: N,
|
|
905
905
|
reversed: N,
|
|
906
906
|
rows: k,
|
|
907
907
|
rowSpan: k,
|
|
908
|
-
sandbox:
|
|
908
|
+
sandbox: $,
|
|
909
909
|
scope: null,
|
|
910
910
|
scoped: N,
|
|
911
911
|
seamless: N,
|
|
@@ -943,7 +943,7 @@ const gi = zn({
|
|
|
943
943
|
// Several. Use CSS `text-align` instead,
|
|
944
944
|
aLink: null,
|
|
945
945
|
// `<body>`. Use CSS `a:active {color}` instead
|
|
946
|
-
archive:
|
|
946
|
+
archive: $,
|
|
947
947
|
// `<object>`. List of URIs to archives
|
|
948
948
|
axis: null,
|
|
949
949
|
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
@@ -1258,7 +1258,7 @@ const gi = zn({
|
|
|
1258
1258
|
by: null,
|
|
1259
1259
|
calcMode: null,
|
|
1260
1260
|
capHeight: k,
|
|
1261
|
-
className:
|
|
1261
|
+
className: $,
|
|
1262
1262
|
clip: null,
|
|
1263
1263
|
clipPath: null,
|
|
1264
1264
|
clipPathUnits: null,
|
|
@@ -1493,7 +1493,7 @@ const gi = zn({
|
|
|
1493
1493
|
patternTransform: null,
|
|
1494
1494
|
patternUnits: null,
|
|
1495
1495
|
phase: null,
|
|
1496
|
-
ping:
|
|
1496
|
+
ping: $,
|
|
1497
1497
|
pitch: null,
|
|
1498
1498
|
playbackOrder: null,
|
|
1499
1499
|
pointerEvents: null,
|
|
@@ -1688,9 +1688,9 @@ function Si(n) {
|
|
|
1688
1688
|
function Ci(n) {
|
|
1689
1689
|
return n.charAt(1).toUpperCase();
|
|
1690
1690
|
}
|
|
1691
|
-
const
|
|
1691
|
+
const Ii = Vt([qt, gi, Gt, Yt, Kt], "html"), De = Vt([qt, yi, Gt, Yt, Kt], "svg");
|
|
1692
1692
|
var An = {}, ae, at;
|
|
1693
|
-
function
|
|
1693
|
+
function Ei() {
|
|
1694
1694
|
if (at) return ae;
|
|
1695
1695
|
at = 1;
|
|
1696
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 = `
|
|
@@ -1702,15 +1702,15 @@ function Ii() {
|
|
|
1702
1702
|
L = L || {};
|
|
1703
1703
|
var x = 1, T = 1;
|
|
1704
1704
|
function C(P) {
|
|
1705
|
-
var
|
|
1706
|
-
|
|
1705
|
+
var I = P.match(e);
|
|
1706
|
+
I && (x += I.length);
|
|
1707
1707
|
var _ = P.lastIndexOf(s);
|
|
1708
1708
|
T = ~_ ? P.length - _ : T + P.length;
|
|
1709
1709
|
}
|
|
1710
1710
|
function B() {
|
|
1711
1711
|
var P = { line: x, column: T };
|
|
1712
|
-
return function(
|
|
1713
|
-
return
|
|
1712
|
+
return function(I) {
|
|
1713
|
+
return I.position = new j(P), V(), I;
|
|
1714
1714
|
};
|
|
1715
1715
|
}
|
|
1716
1716
|
function j(P) {
|
|
@@ -1718,61 +1718,61 @@ function Ii() {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
j.prototype.content = b;
|
|
1720
1720
|
function y(P) {
|
|
1721
|
-
var
|
|
1721
|
+
var I = new Error(
|
|
1722
1722
|
L.source + ":" + x + ":" + T + ": " + P
|
|
1723
1723
|
);
|
|
1724
|
-
if (
|
|
1724
|
+
if (I.reason = P, I.filename = L.source, I.line = x, I.column = T, I.source = b, !L.silent) throw I;
|
|
1725
1725
|
}
|
|
1726
1726
|
function v(P) {
|
|
1727
|
-
var
|
|
1728
|
-
if (
|
|
1729
|
-
var _ =
|
|
1730
|
-
return C(_), b = b.slice(_.length),
|
|
1727
|
+
var I = P.exec(b);
|
|
1728
|
+
if (I) {
|
|
1729
|
+
var _ = I[0];
|
|
1730
|
+
return C(_), b = b.slice(_.length), I;
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
1733
|
function V() {
|
|
1734
1734
|
v(t);
|
|
1735
1735
|
}
|
|
1736
1736
|
function O(P) {
|
|
1737
|
-
var
|
|
1738
|
-
for (P = P || [];
|
|
1739
|
-
|
|
1737
|
+
var I;
|
|
1738
|
+
for (P = P || []; I = F(); )
|
|
1739
|
+
I !== !1 && P.push(I);
|
|
1740
1740
|
return P;
|
|
1741
1741
|
}
|
|
1742
1742
|
function F() {
|
|
1743
1743
|
var P = B();
|
|
1744
1744
|
if (!(u != b.charAt(0) || c != b.charAt(1))) {
|
|
1745
|
-
for (var
|
|
1746
|
-
++
|
|
1747
|
-
if (
|
|
1745
|
+
for (var I = 2; p != b.charAt(I) && (c != b.charAt(I) || u != b.charAt(I + 1)); )
|
|
1746
|
+
++I;
|
|
1747
|
+
if (I += 2, p === b.charAt(I - 1))
|
|
1748
1748
|
return y("End of comment missing");
|
|
1749
|
-
var _ = b.slice(2,
|
|
1750
|
-
return T += 2, C(_), b = b.slice(
|
|
1749
|
+
var _ = b.slice(2, I - 2);
|
|
1750
|
+
return T += 2, C(_), b = b.slice(I), T += 2, P({
|
|
1751
1751
|
type: d,
|
|
1752
1752
|
comment: _
|
|
1753
1753
|
});
|
|
1754
1754
|
}
|
|
1755
1755
|
}
|
|
1756
1756
|
function A() {
|
|
1757
|
-
var P = B(),
|
|
1758
|
-
if (
|
|
1757
|
+
var P = B(), I = v(r);
|
|
1758
|
+
if (I) {
|
|
1759
1759
|
if (F(), !v(i)) return y("property missing ':'");
|
|
1760
1760
|
var _ = v(l), W = P({
|
|
1761
1761
|
type: f,
|
|
1762
|
-
property: w(
|
|
1762
|
+
property: w(I[0].replace(n, p)),
|
|
1763
1763
|
value: _ ? w(_[0].replace(n, p)) : p
|
|
1764
1764
|
});
|
|
1765
1765
|
return v(o), W;
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function E() {
|
|
1769
1769
|
var P = [];
|
|
1770
1770
|
O(P);
|
|
1771
|
-
for (var
|
|
1772
|
-
|
|
1771
|
+
for (var I; I = A(); )
|
|
1772
|
+
I !== !1 && (P.push(I), O(P));
|
|
1773
1773
|
return P;
|
|
1774
1774
|
}
|
|
1775
|
-
return V(),
|
|
1775
|
+
return V(), E();
|
|
1776
1776
|
};
|
|
1777
1777
|
function w(b) {
|
|
1778
1778
|
return b ? b.replace(a, p) : p;
|
|
@@ -1787,7 +1787,7 @@ function Pi() {
|
|
|
1787
1787
|
return r && r.__esModule ? r : { default: r };
|
|
1788
1788
|
};
|
|
1789
1789
|
Object.defineProperty(An, "__esModule", { value: !0 }), An.default = t;
|
|
1790
|
-
const e = n(/* @__PURE__ */
|
|
1790
|
+
const e = n(/* @__PURE__ */ Ei());
|
|
1791
1791
|
function t(r, i) {
|
|
1792
1792
|
let l = null;
|
|
1793
1793
|
if (!r || typeof r != "string")
|
|
@@ -1851,7 +1851,7 @@ function _i(n) {
|
|
|
1851
1851
|
if (e && t)
|
|
1852
1852
|
return { start: e, end: t };
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function Hn(n) {
|
|
1855
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) : "";
|
|
1856
1856
|
}
|
|
1857
1857
|
function Se(n) {
|
|
@@ -1934,7 +1934,7 @@ class Y extends Error {
|
|
|
1934
1934
|
s && (l.place = s.position);
|
|
1935
1935
|
}
|
|
1936
1936
|
const a = l.place && "start" in l.place ? l.place.start : l.place;
|
|
1937
|
-
this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name =
|
|
1937
|
+
this.ancestors = l.ancestors || void 0, this.cause = l.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = Hn(l.place) || "1:1", this.place = l.place || void 0, this.reason = this.message, this.ruleId = l.ruleId || void 0, this.source = l.source || void 0, this.stack = o && l.cause && typeof l.cause.stack == "string" ? l.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
Y.prototype.file = "";
|
|
@@ -1967,7 +1967,7 @@ function Di(n, e) {
|
|
|
1967
1967
|
throw new TypeError("Expected `jsx` in production options");
|
|
1968
1968
|
if (typeof e.jsxs != "function")
|
|
1969
1969
|
throw new TypeError("Expected `jsxs` in production options");
|
|
1970
|
-
r =
|
|
1970
|
+
r = Hi(t, e.jsx, e.jsxs);
|
|
1971
1971
|
}
|
|
1972
1972
|
const i = {
|
|
1973
1973
|
Fragment: e.Fragment,
|
|
@@ -1980,7 +1980,7 @@ function Di(n, e) {
|
|
|
1980
1980
|
ignoreInvalidStyle: e.ignoreInvalidStyle || !1,
|
|
1981
1981
|
passKeys: e.passKeys !== !1,
|
|
1982
1982
|
passNode: e.passNode || !1,
|
|
1983
|
-
schema: e.space === "svg" ? De :
|
|
1983
|
+
schema: e.space === "svg" ? De : Ii,
|
|
1984
1984
|
stylePropertyNameCase: e.stylePropertyNameCase || "dom",
|
|
1985
1985
|
tableCellAlignToStyle: e.tableCellAlignToStyle !== !1
|
|
1986
1986
|
}, l = nr(i, n, void 0);
|
|
@@ -2003,7 +2003,7 @@ function nr(n, e, t) {
|
|
|
2003
2003
|
if (e.type === "root")
|
|
2004
2004
|
return ji(n, e, t);
|
|
2005
2005
|
if (e.type === "text")
|
|
2006
|
-
return
|
|
2006
|
+
return $i(n, e);
|
|
2007
2007
|
}
|
|
2008
2008
|
function Oi(n, e, t) {
|
|
2009
2009
|
const r = n.schema;
|
|
@@ -2044,7 +2044,7 @@ function ji(n, e, t) {
|
|
|
2044
2044
|
const r = {};
|
|
2045
2045
|
return Be(r, Ue(n, e)), n.create(e, n.Fragment, r, t);
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function $i(n, e) {
|
|
2048
2048
|
return e.value;
|
|
2049
2049
|
}
|
|
2050
2050
|
function er(n, e, t, r) {
|
|
@@ -2056,7 +2056,7 @@ function Be(n, e) {
|
|
|
2056
2056
|
t && (n.children = t);
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function Hi(n, e, t) {
|
|
2060
2060
|
return r;
|
|
2061
2061
|
function r(i, l, o, a) {
|
|
2062
2062
|
const u = Array.isArray(o.children) ? t : e;
|
|
@@ -2351,7 +2351,7 @@ function Ce(n) {
|
|
|
2351
2351
|
n !== null && (n < 32 || n === 127)
|
|
2352
2352
|
);
|
|
2353
2353
|
}
|
|
2354
|
-
const
|
|
2354
|
+
const Ie = yn(/\d/), ol = yn(/[\dA-Fa-f]/), al = yn(/[!-/:-@[-`{-~]/);
|
|
2355
2355
|
function z(n) {
|
|
2356
2356
|
return n !== null && n < -2;
|
|
2357
2357
|
}
|
|
@@ -2387,7 +2387,7 @@ function _n(n) {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
return e.join("") + n.slice(r);
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function H(n, e, t, r) {
|
|
2391
2391
|
const i = r ? r - 1 : Number.POSITIVE_INFINITY;
|
|
2392
2392
|
let l = 0;
|
|
2393
2393
|
return o;
|
|
@@ -2410,7 +2410,7 @@ function fl(n) {
|
|
|
2410
2410
|
n.consume(a);
|
|
2411
2411
|
return;
|
|
2412
2412
|
}
|
|
2413
|
-
return n.enter("lineEnding"), n.consume(a), n.exit("lineEnding"),
|
|
2413
|
+
return n.enter("lineEnding"), n.consume(a), n.exit("lineEnding"), H(n, e, "linePrefix");
|
|
2414
2414
|
}
|
|
2415
2415
|
function i(a) {
|
|
2416
2416
|
return n.enter("paragraph"), l(a);
|
|
@@ -2548,7 +2548,7 @@ function hl(n) {
|
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
2550
|
function ml(n, e, t) {
|
|
2551
|
-
return
|
|
2551
|
+
return H(n, n.attempt(this.parser.constructs.document, e, t), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
2552
2552
|
}
|
|
2553
2553
|
function yt(n) {
|
|
2554
2554
|
if (n === null || Q(n) || sl(n))
|
|
@@ -2556,7 +2556,7 @@ function yt(n) {
|
|
|
2556
2556
|
if (ul(n))
|
|
2557
2557
|
return 2;
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function $e(n, e, t) {
|
|
2560
2560
|
const r = [];
|
|
2561
2561
|
let i = -1;
|
|
2562
2562
|
for (; ++i < n.length; ) {
|
|
@@ -2565,7 +2565,7 @@ function He(n, e, t) {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
return e;
|
|
2567
2567
|
}
|
|
2568
|
-
const
|
|
2568
|
+
const Ee = {
|
|
2569
2569
|
name: "attention",
|
|
2570
2570
|
resolveAll: dl,
|
|
2571
2571
|
tokenize: gl
|
|
@@ -2617,7 +2617,7 @@ function dl(n, e) {
|
|
|
2617
2617
|
...o.start
|
|
2618
2618
|
}, n[t][1].start = {
|
|
2619
2619
|
...a.end
|
|
2620
|
-
}, u = [], n[r][1].end.offset - n[r][1].start.offset && (u = tn(u, [["enter", n[r][1], e], ["exit", n[r][1], e]])), u = tn(u, [["enter", i, e], ["enter", o, e], ["exit", o, e], ["enter", l, e]]), u = tn(u,
|
|
2620
|
+
}, u = [], n[r][1].end.offset - n[r][1].start.offset && (u = tn(u, [["enter", n[r][1], e], ["exit", n[r][1], e]])), u = tn(u, [["enter", i, e], ["enter", o, e], ["exit", o, e], ["enter", l, e]]), u = tn(u, $e(e.parser.constructs.insideSpan.null, n.slice(r + 1, t), e)), u = tn(u, [["exit", l, e], ["enter", a, e], ["exit", a, e], ["exit", i, e]]), n[t][1].end.offset - n[t][1].start.offset ? (c = 2, u = tn(u, [["enter", n[t][1], e], ["exit", n[t][1], e]])) : c = 0, cn(n, r - 1, t - r + 3, u), t = r + u.length - c - 2;
|
|
2621
2621
|
break;
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
@@ -2688,7 +2688,7 @@ const re = {
|
|
|
2688
2688
|
function xl(n, e, t) {
|
|
2689
2689
|
return r;
|
|
2690
2690
|
function r(l) {
|
|
2691
|
-
return D(l) ?
|
|
2691
|
+
return D(l) ? H(n, i, "linePrefix")(l) : i(l);
|
|
2692
2692
|
}
|
|
2693
2693
|
function i(l) {
|
|
2694
2694
|
return l === null || z(l) ? e(l) : t(l);
|
|
@@ -2722,7 +2722,7 @@ function wl(n, e, t) {
|
|
|
2722
2722
|
const r = this;
|
|
2723
2723
|
return i;
|
|
2724
2724
|
function i(o) {
|
|
2725
|
-
return D(o) ?
|
|
2725
|
+
return D(o) ? H(n, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : l(o);
|
|
2726
2726
|
}
|
|
2727
2727
|
function l(o) {
|
|
2728
2728
|
return n.attempt(lr, e, t)(o);
|
|
@@ -2746,9 +2746,9 @@ function Cl(n, e, t) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
const ar = {
|
|
2748
2748
|
name: "characterReference",
|
|
2749
|
-
tokenize:
|
|
2749
|
+
tokenize: Il
|
|
2750
2750
|
};
|
|
2751
|
-
function
|
|
2751
|
+
function Il(n, e, t) {
|
|
2752
2752
|
const r = this;
|
|
2753
2753
|
let i = 0, l, o;
|
|
2754
2754
|
return a;
|
|
@@ -2759,7 +2759,7 @@ function El(n, e, t) {
|
|
|
2759
2759
|
return p === 35 ? (n.enter("characterReferenceMarkerNumeric"), n.consume(p), n.exit("characterReferenceMarkerNumeric"), u) : (n.enter("characterReferenceValue"), l = 31, o = en, c(p));
|
|
2760
2760
|
}
|
|
2761
2761
|
function u(p) {
|
|
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 =
|
|
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 = Ie, c(p));
|
|
2763
2763
|
}
|
|
2764
2764
|
function c(p) {
|
|
2765
2765
|
if (p === 59 && i) {
|
|
@@ -2775,9 +2775,9 @@ const xt = {
|
|
|
2775
2775
|
}, bt = {
|
|
2776
2776
|
concrete: !0,
|
|
2777
2777
|
name: "codeFenced",
|
|
2778
|
-
tokenize:
|
|
2778
|
+
tokenize: El
|
|
2779
2779
|
};
|
|
2780
|
-
function
|
|
2780
|
+
function El(n, e, t) {
|
|
2781
2781
|
const r = this, i = {
|
|
2782
2782
|
partial: !0,
|
|
2783
2783
|
tokenize: j
|
|
@@ -2792,7 +2792,7 @@ function Il(n, e, t) {
|
|
|
2792
2792
|
return l = v && v[1].type === "linePrefix" ? v[2].sliceSerialize(v[1], !0).length : 0, a = y, n.enter("codeFenced"), n.enter("codeFencedFence"), n.enter("codeFencedFenceSequence"), c(y);
|
|
2793
2793
|
}
|
|
2794
2794
|
function c(y) {
|
|
2795
|
-
return y === a ? (o++, n.consume(y), c) : o < 3 ? t(y) : (n.exit("codeFencedFenceSequence"), D(y) ?
|
|
2795
|
+
return y === a ? (o++, n.consume(y), c) : o < 3 ? t(y) : (n.exit("codeFencedFenceSequence"), D(y) ? H(n, p, "whitespace")(y) : p(y));
|
|
2796
2796
|
}
|
|
2797
2797
|
function p(y) {
|
|
2798
2798
|
return y === null || z(y) ? (n.exit("codeFencedFence"), r.interrupt ? e(y) : n.check(xt, b, B)(y)) : (n.enter("codeFencedFenceInfo"), n.enter("chunkString", {
|
|
@@ -2800,7 +2800,7 @@ function Il(n, e, t) {
|
|
|
2800
2800
|
}), d(y));
|
|
2801
2801
|
}
|
|
2802
2802
|
function d(y) {
|
|
2803
|
-
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), p(y)) : D(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"),
|
|
2803
|
+
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), p(y)) : D(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), H(n, f, "whitespace")(y)) : y === 96 && y === a ? t(y) : (n.consume(y), d);
|
|
2804
2804
|
}
|
|
2805
2805
|
function f(y) {
|
|
2806
2806
|
return y === null || z(y) ? p(y) : (n.enter("codeFencedFenceMeta"), n.enter("chunkString", {
|
|
@@ -2817,7 +2817,7 @@ function Il(n, e, t) {
|
|
|
2817
2817
|
return n.enter("lineEnding"), n.consume(y), n.exit("lineEnding"), x;
|
|
2818
2818
|
}
|
|
2819
2819
|
function x(y) {
|
|
2820
|
-
return l > 0 && D(y) ?
|
|
2820
|
+
return l > 0 && D(y) ? H(n, T, "linePrefix", l + 1)(y) : T(y);
|
|
2821
2821
|
}
|
|
2822
2822
|
function T(y) {
|
|
2823
2823
|
return y === null || z(y) ? n.check(xt, b, B)(y) : (n.enter("codeFlowValue"), C(y));
|
|
@@ -2835,15 +2835,15 @@ function Il(n, e, t) {
|
|
|
2835
2835
|
return y.enter("lineEnding"), y.consume(_), y.exit("lineEnding"), A;
|
|
2836
2836
|
}
|
|
2837
2837
|
function A(_) {
|
|
2838
|
-
return y.enter("codeFencedFence"), D(_) ?
|
|
2838
|
+
return y.enter("codeFencedFence"), D(_) ? H(y, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : E(_);
|
|
2839
2839
|
}
|
|
2840
|
-
function
|
|
2840
|
+
function E(_) {
|
|
2841
2841
|
return _ === a ? (y.enter("codeFencedFenceSequence"), P(_)) : V(_);
|
|
2842
2842
|
}
|
|
2843
2843
|
function P(_) {
|
|
2844
|
-
return _ === a ? (O++, y.consume(_), P) : O >= o ? (y.exit("codeFencedFenceSequence"), D(_) ?
|
|
2844
|
+
return _ === a ? (O++, y.consume(_), P) : O >= o ? (y.exit("codeFencedFenceSequence"), D(_) ? H(y, I, "whitespace")(_) : I(_)) : V(_);
|
|
2845
2845
|
}
|
|
2846
|
-
function
|
|
2846
|
+
function I(_) {
|
|
2847
2847
|
return _ === null || z(_) ? (y.exit("codeFencedFence"), v(_)) : V(_);
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
@@ -2869,7 +2869,7 @@ function Tl(n, e, t) {
|
|
|
2869
2869
|
const r = this;
|
|
2870
2870
|
return i;
|
|
2871
2871
|
function i(u) {
|
|
2872
|
-
return n.enter("codeIndented"),
|
|
2872
|
+
return n.enter("codeIndented"), H(n, l, "linePrefix", 5)(u);
|
|
2873
2873
|
}
|
|
2874
2874
|
function l(u) {
|
|
2875
2875
|
const c = r.events[r.events.length - 1];
|
|
@@ -2889,7 +2889,7 @@ function Ll(n, e, t) {
|
|
|
2889
2889
|
const r = this;
|
|
2890
2890
|
return i;
|
|
2891
2891
|
function i(o) {
|
|
2892
|
-
return r.parser.lazy[r.now().line] ? t(o) : z(o) ? (n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), i) :
|
|
2892
|
+
return r.parser.lazy[r.now().line] ? t(o) : z(o) ? (n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), i) : H(n, l, "linePrefix", 5)(o);
|
|
2893
2893
|
}
|
|
2894
2894
|
function l(o) {
|
|
2895
2895
|
const a = r.events[r.events.length - 1];
|
|
@@ -3193,7 +3193,7 @@ function Ul(n, e, t) {
|
|
|
3193
3193
|
const r = this;
|
|
3194
3194
|
return i;
|
|
3195
3195
|
function i(o) {
|
|
3196
|
-
return n.exit("chunkContent"), n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"),
|
|
3196
|
+
return n.exit("chunkContent"), n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), H(n, l, "linePrefix");
|
|
3197
3197
|
}
|
|
3198
3198
|
function l(o) {
|
|
3199
3199
|
if (o === null || z(o))
|
|
@@ -3263,7 +3263,7 @@ function fr(n, e, t, r, i, l) {
|
|
|
3263
3263
|
return d === o ? (n.enter(i), n.consume(d), n.exit(i), n.exit(r), e) : (n.enter(l), u(d));
|
|
3264
3264
|
}
|
|
3265
3265
|
function u(d) {
|
|
3266
|
-
return d === o ? (n.exit(l), s(o)) : d === null ? t(d) : z(d) ? (n.enter("lineEnding"), n.consume(d), n.exit("lineEnding"),
|
|
3266
|
+
return d === o ? (n.exit(l), s(o)) : d === null ? t(d) : z(d) ? (n.enter("lineEnding"), n.consume(d), n.exit("lineEnding"), H(n, u, "linePrefix")) : (n.enter("chunkString", {
|
|
3267
3267
|
contentType: "string"
|
|
3268
3268
|
}), c(d));
|
|
3269
3269
|
}
|
|
@@ -3278,17 +3278,17 @@ function Vn(n, e) {
|
|
|
3278
3278
|
let t;
|
|
3279
3279
|
return r;
|
|
3280
3280
|
function r(i) {
|
|
3281
|
-
return z(i) ? (n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), t = !0, r) : D(i) ?
|
|
3281
|
+
return z(i) ? (n.enter("lineEnding"), n.consume(i), n.exit("lineEnding"), t = !0, r) : D(i) ? H(n, r, t ? "linePrefix" : "lineSuffix")(i) : e(i);
|
|
3282
3282
|
}
|
|
3283
3283
|
}
|
|
3284
3284
|
const jl = {
|
|
3285
3285
|
name: "definition",
|
|
3286
|
-
tokenize:
|
|
3287
|
-
},
|
|
3286
|
+
tokenize: Hl
|
|
3287
|
+
}, $l = {
|
|
3288
3288
|
partial: !0,
|
|
3289
3289
|
tokenize: Vl
|
|
3290
3290
|
};
|
|
3291
|
-
function
|
|
3291
|
+
function Hl(n, e, t) {
|
|
3292
3292
|
const r = this;
|
|
3293
3293
|
let i;
|
|
3294
3294
|
return l;
|
|
@@ -3327,10 +3327,10 @@ function $l(n, e, t) {
|
|
|
3327
3327
|
)(f);
|
|
3328
3328
|
}
|
|
3329
3329
|
function c(f) {
|
|
3330
|
-
return n.attempt(
|
|
3330
|
+
return n.attempt($l, p, p)(f);
|
|
3331
3331
|
}
|
|
3332
3332
|
function p(f) {
|
|
3333
|
-
return D(f) ?
|
|
3333
|
+
return D(f) ? H(n, d, "whitespace")(f) : d(f);
|
|
3334
3334
|
}
|
|
3335
3335
|
function d(f) {
|
|
3336
3336
|
return f === null || z(f) ? (n.exit("definition"), r.parser.defined.push(i), e(f)) : t(f);
|
|
@@ -3345,7 +3345,7 @@ function Vl(n, e, t) {
|
|
|
3345
3345
|
return fr(n, l, t, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
|
|
3346
3346
|
}
|
|
3347
3347
|
function l(a) {
|
|
3348
|
-
return D(a) ?
|
|
3348
|
+
return D(a) ? H(n, o, "whitespace")(a) : o(a);
|
|
3349
3349
|
}
|
|
3350
3350
|
function o(a) {
|
|
3351
3351
|
return a === null || z(a) ? e(a) : t(a);
|
|
@@ -3395,7 +3395,7 @@ function Yl(n, e, t) {
|
|
|
3395
3395
|
return c === 35 && r++ < 6 ? (n.consume(c), o) : c === null || Q(c) ? (n.exit("atxHeadingSequence"), a(c)) : t(c);
|
|
3396
3396
|
}
|
|
3397
3397
|
function a(c) {
|
|
3398
|
-
return c === 35 ? (n.enter("atxHeadingSequence"), s(c)) : c === null || z(c) ? (n.exit("atxHeading"), e(c)) : D(c) ?
|
|
3398
|
+
return c === 35 ? (n.enter("atxHeadingSequence"), s(c)) : c === null || z(c) ? (n.exit("atxHeading"), e(c)) : D(c) ? H(n, a, "whitespace")(c) : (n.enter("atxHeadingText"), u(c));
|
|
3399
3399
|
}
|
|
3400
3400
|
function s(c) {
|
|
3401
3401
|
return c === 35 ? (n.consume(c), s) : (n.exit("atxHeadingSequence"), a(c));
|
|
@@ -3506,7 +3506,7 @@ function eo(n, e, t) {
|
|
|
3506
3506
|
}
|
|
3507
3507
|
function w(m) {
|
|
3508
3508
|
const on = "CDATA[";
|
|
3509
|
-
return m === on.charCodeAt(a++) ? (n.consume(m), a === on.length ? r.interrupt ? e :
|
|
3509
|
+
return m === on.charCodeAt(a++) ? (n.consume(m), a === on.length ? r.interrupt ? e : E : w) : t(m);
|
|
3510
3510
|
}
|
|
3511
3511
|
function b(m) {
|
|
3512
3512
|
return sn(m) ? (n.consume(m), o = String.fromCharCode(m), L) : t(m);
|
|
@@ -3514,12 +3514,12 @@ function eo(n, e, t) {
|
|
|
3514
3514
|
function L(m) {
|
|
3515
3515
|
if (m === null || m === 47 || m === 62 || Q(m)) {
|
|
3516
3516
|
const on = m === 47, kn = o.toLowerCase();
|
|
3517
|
-
return !on && !l && wt.includes(kn) ? (i = 1, r.interrupt ? e(m) :
|
|
3517
|
+
return !on && !l && wt.includes(kn) ? (i = 1, r.interrupt ? e(m) : E(m)) : Kl.includes(o.toLowerCase()) ? (i = 6, on ? (n.consume(m), x) : r.interrupt ? e(m) : E(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(m) : l ? T(m) : C(m));
|
|
3518
3518
|
}
|
|
3519
3519
|
return m === 45 || en(m) ? (n.consume(m), o += String.fromCharCode(m), L) : t(m);
|
|
3520
3520
|
}
|
|
3521
3521
|
function x(m) {
|
|
3522
|
-
return m === 62 ? (n.consume(m), r.interrupt ? e :
|
|
3522
|
+
return m === 62 ? (n.consume(m), r.interrupt ? e : E) : t(m);
|
|
3523
3523
|
}
|
|
3524
3524
|
function T(m) {
|
|
3525
3525
|
return D(m) ? (n.consume(m), T) : F(m);
|
|
@@ -3549,38 +3549,38 @@ function eo(n, e, t) {
|
|
|
3549
3549
|
return m === 62 ? (n.consume(m), A) : t(m);
|
|
3550
3550
|
}
|
|
3551
3551
|
function A(m) {
|
|
3552
|
-
return m === null || z(m) ?
|
|
3552
|
+
return m === null || z(m) ? E(m) : D(m) ? (n.consume(m), A) : t(m);
|
|
3553
3553
|
}
|
|
3554
|
-
function
|
|
3555
|
-
return m === 45 && i === 2 ? (n.consume(m), W) : m === 60 && i === 1 ? (n.consume(m), X) : m === 62 && i === 4 ? (n.consume(m), ln) : m === 63 && i === 3 ? (n.consume(m), h) : m === 93 && i === 5 ? (n.consume(m), fn) : z(m) && (i === 6 || i === 7) ? (n.exit("htmlFlowData"), n.check(Jl, pn, P)(m)) : m === null || z(m) ? (n.exit("htmlFlowData"), P(m)) : (n.consume(m),
|
|
3554
|
+
function E(m) {
|
|
3555
|
+
return m === 45 && i === 2 ? (n.consume(m), W) : m === 60 && i === 1 ? (n.consume(m), X) : m === 62 && i === 4 ? (n.consume(m), ln) : m === 63 && i === 3 ? (n.consume(m), h) : m === 93 && i === 5 ? (n.consume(m), fn) : z(m) && (i === 6 || i === 7) ? (n.exit("htmlFlowData"), n.check(Jl, pn, P)(m)) : m === null || z(m) ? (n.exit("htmlFlowData"), P(m)) : (n.consume(m), E);
|
|
3556
3556
|
}
|
|
3557
3557
|
function P(m) {
|
|
3558
|
-
return n.check(Zl,
|
|
3558
|
+
return n.check(Zl, I, pn)(m);
|
|
3559
3559
|
}
|
|
3560
|
-
function
|
|
3560
|
+
function I(m) {
|
|
3561
3561
|
return n.enter("lineEnding"), n.consume(m), n.exit("lineEnding"), _;
|
|
3562
3562
|
}
|
|
3563
3563
|
function _(m) {
|
|
3564
|
-
return m === null || z(m) ? P(m) : (n.enter("htmlFlowData"),
|
|
3564
|
+
return m === null || z(m) ? P(m) : (n.enter("htmlFlowData"), E(m));
|
|
3565
3565
|
}
|
|
3566
3566
|
function W(m) {
|
|
3567
|
-
return m === 45 ? (n.consume(m), h) :
|
|
3567
|
+
return m === 45 ? (n.consume(m), h) : E(m);
|
|
3568
3568
|
}
|
|
3569
3569
|
function X(m) {
|
|
3570
|
-
return m === 47 ? (n.consume(m), o = "", rn) :
|
|
3570
|
+
return m === 47 ? (n.consume(m), o = "", rn) : E(m);
|
|
3571
3571
|
}
|
|
3572
3572
|
function rn(m) {
|
|
3573
3573
|
if (m === 62) {
|
|
3574
3574
|
const on = o.toLowerCase();
|
|
3575
|
-
return wt.includes(on) ? (n.consume(m), ln) :
|
|
3575
|
+
return wt.includes(on) ? (n.consume(m), ln) : E(m);
|
|
3576
3576
|
}
|
|
3577
|
-
return sn(m) && o.length < 8 ? (n.consume(m), o += String.fromCharCode(m), rn) :
|
|
3577
|
+
return sn(m) && o.length < 8 ? (n.consume(m), o += String.fromCharCode(m), rn) : E(m);
|
|
3578
3578
|
}
|
|
3579
3579
|
function fn(m) {
|
|
3580
|
-
return m === 93 ? (n.consume(m), h) :
|
|
3580
|
+
return m === 93 ? (n.consume(m), h) : E(m);
|
|
3581
3581
|
}
|
|
3582
3582
|
function h(m) {
|
|
3583
|
-
return m === 62 ? (n.consume(m), ln) : m === 45 && i === 2 ? (n.consume(m), h) :
|
|
3583
|
+
return m === 62 ? (n.consume(m), ln) : m === 45 && i === 2 ? (n.consume(m), h) : E(m);
|
|
3584
3584
|
}
|
|
3585
3585
|
function ln(m) {
|
|
3586
3586
|
return m === null || z(m) ? (n.exit("htmlFlowData"), pn(m)) : (n.consume(m), ln);
|
|
@@ -3675,16 +3675,16 @@ function lo(n, e, t) {
|
|
|
3675
3675
|
return h === 45 || h === 46 || h === 58 || h === 95 || en(h) ? (n.consume(h), F) : A(h);
|
|
3676
3676
|
}
|
|
3677
3677
|
function A(h) {
|
|
3678
|
-
return h === 61 ? (n.consume(h),
|
|
3678
|
+
return h === 61 ? (n.consume(h), E) : z(h) ? (o = A, X(h)) : D(h) ? (n.consume(h), A) : O(h);
|
|
3679
3679
|
}
|
|
3680
|
-
function
|
|
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 =
|
|
3680
|
+
function E(h) {
|
|
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 = E, X(h)) : D(h) ? (n.consume(h), E) : (n.consume(h), I);
|
|
3682
3682
|
}
|
|
3683
3683
|
function P(h) {
|
|
3684
3684
|
return h === i ? (n.consume(h), i = void 0, _) : h === null ? t(h) : z(h) ? (o = P, X(h)) : (n.consume(h), P);
|
|
3685
3685
|
}
|
|
3686
|
-
function
|
|
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),
|
|
3686
|
+
function I(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), I);
|
|
3688
3688
|
}
|
|
3689
3689
|
function _(h) {
|
|
3690
3690
|
return h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
@@ -3696,13 +3696,13 @@ function lo(n, e, t) {
|
|
|
3696
3696
|
return n.exit("htmlTextData"), n.enter("lineEnding"), n.consume(h), n.exit("lineEnding"), rn;
|
|
3697
3697
|
}
|
|
3698
3698
|
function rn(h) {
|
|
3699
|
-
return D(h) ?
|
|
3699
|
+
return D(h) ? H(n, fn, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(h) : fn(h);
|
|
3700
3700
|
}
|
|
3701
3701
|
function fn(h) {
|
|
3702
3702
|
return n.enter("htmlTextData"), o(h);
|
|
3703
3703
|
}
|
|
3704
3704
|
}
|
|
3705
|
-
const
|
|
3705
|
+
const He = {
|
|
3706
3706
|
name: "labelEnd",
|
|
3707
3707
|
resolveAll: so,
|
|
3708
3708
|
resolveTo: co,
|
|
@@ -3764,7 +3764,7 @@ function co(n, e) {
|
|
|
3764
3764
|
...n[o - 2][1].start
|
|
3765
3765
|
}
|
|
3766
3766
|
};
|
|
3767
|
-
return a = [["enter", s, e], ["enter", u, e]], a = tn(a, n.slice(l + 1, l + r + 3)), a = tn(a, [["enter", c, e]]), a = tn(a,
|
|
3767
|
+
return a = [["enter", s, e], ["enter", u, e]], a = tn(a, n.slice(l + 1, l + r + 3)), a = tn(a, [["enter", c, e]]), a = tn(a, $e(e.parser.constructs.insideSpan.null, n.slice(l + r + 4, o - 3), e)), a = tn(a, [["exit", c, e], n[o - 2], n[o - 1], ["exit", u, e]]), a = tn(a, n.slice(o + 1)), a = tn(a, [["exit", s, e]]), cn(n, l, n.length, a), n;
|
|
3768
3768
|
}
|
|
3769
3769
|
function fo(n, e, t) {
|
|
3770
3770
|
const r = this;
|
|
@@ -3845,7 +3845,7 @@ function mo(n, e, t) {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
const go = {
|
|
3847
3847
|
name: "labelStartImage",
|
|
3848
|
-
resolveAll:
|
|
3848
|
+
resolveAll: He.resolveAll,
|
|
3849
3849
|
tokenize: yo
|
|
3850
3850
|
};
|
|
3851
3851
|
function yo(n, e, t) {
|
|
@@ -3863,7 +3863,7 @@ function yo(n, e, t) {
|
|
|
3863
3863
|
}
|
|
3864
3864
|
const ko = {
|
|
3865
3865
|
name: "labelStartLink",
|
|
3866
|
-
resolveAll:
|
|
3866
|
+
resolveAll: He.resolveAll,
|
|
3867
3867
|
tokenize: xo
|
|
3868
3868
|
};
|
|
3869
3869
|
function xo(n, e, t) {
|
|
@@ -3883,7 +3883,7 @@ const se = {
|
|
|
3883
3883
|
function bo(n, e) {
|
|
3884
3884
|
return t;
|
|
3885
3885
|
function t(r) {
|
|
3886
|
-
return n.enter("lineEnding"), n.consume(r), n.exit("lineEnding"),
|
|
3886
|
+
return n.enter("lineEnding"), n.consume(r), n.exit("lineEnding"), H(n, e, "linePrefix");
|
|
3887
3887
|
}
|
|
3888
3888
|
}
|
|
3889
3889
|
const Zn = {
|
|
@@ -3903,16 +3903,16 @@ function wo(n, e, t) {
|
|
|
3903
3903
|
return u === i ? (n.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || z(u)) ? (n.exit("thematicBreak"), e(u)) : t(u);
|
|
3904
3904
|
}
|
|
3905
3905
|
function s(u) {
|
|
3906
|
-
return u === i ? (n.consume(u), r++, s) : (n.exit("thematicBreakSequence"), D(u) ?
|
|
3906
|
+
return u === i ? (n.consume(u), r++, s) : (n.exit("thematicBreakSequence"), D(u) ? H(n, a, "whitespace")(u) : a(u));
|
|
3907
3907
|
}
|
|
3908
3908
|
}
|
|
3909
3909
|
const K = {
|
|
3910
3910
|
continuation: {
|
|
3911
|
-
tokenize:
|
|
3911
|
+
tokenize: Eo
|
|
3912
3912
|
},
|
|
3913
3913
|
exit: Ao,
|
|
3914
3914
|
name: "list",
|
|
3915
|
-
tokenize:
|
|
3915
|
+
tokenize: Io
|
|
3916
3916
|
}, So = {
|
|
3917
3917
|
partial: !0,
|
|
3918
3918
|
tokenize: To
|
|
@@ -3920,13 +3920,13 @@ const K = {
|
|
|
3920
3920
|
partial: !0,
|
|
3921
3921
|
tokenize: Po
|
|
3922
3922
|
};
|
|
3923
|
-
function
|
|
3923
|
+
function Io(n, e, t) {
|
|
3924
3924
|
const r = this, i = r.events[r.events.length - 1];
|
|
3925
3925
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
|
3926
3926
|
return a;
|
|
3927
3927
|
function a(f) {
|
|
3928
3928
|
const w = r.containerState.type || (f === 42 || f === 43 || f === 45 ? "listUnordered" : "listOrdered");
|
|
3929
|
-
if (w === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker :
|
|
3929
|
+
if (w === "listUnordered" ? !r.containerState.marker || f === r.containerState.marker : Ie(f)) {
|
|
3930
3930
|
if (r.containerState.type || (r.containerState.type = w, n.enter(w, {
|
|
3931
3931
|
_container: !0
|
|
3932
3932
|
})), w === "listUnordered")
|
|
@@ -3937,7 +3937,7 @@ function Eo(n, e, t) {
|
|
|
3937
3937
|
return t(f);
|
|
3938
3938
|
}
|
|
3939
3939
|
function s(f) {
|
|
3940
|
-
return
|
|
3940
|
+
return Ie(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);
|
|
3941
3941
|
}
|
|
3942
3942
|
function u(f) {
|
|
3943
3943
|
return n.enter("listItemMarker"), n.consume(f), n.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || f, n.check(
|
|
@@ -3957,22 +3957,22 @@ function Eo(n, e, t) {
|
|
|
3957
3957
|
return r.containerState.size = l + r.sliceSerialize(n.exit("listItemPrefix"), !0).length, e(f);
|
|
3958
3958
|
}
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3960
|
+
function Eo(n, e, t) {
|
|
3961
3961
|
const r = this;
|
|
3962
3962
|
return r.containerState._closeFlow = void 0, n.check(re, i, l);
|
|
3963
3963
|
function i(a) {
|
|
3964
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
|
3964
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, H(n, e, "listItemIndent", r.containerState.size + 1)(a);
|
|
3965
3965
|
}
|
|
3966
3966
|
function l(a) {
|
|
3967
3967
|
return r.containerState.furtherBlankLines || !D(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, n.attempt(Co, e, o)(a));
|
|
3968
3968
|
}
|
|
3969
3969
|
function o(a) {
|
|
3970
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
|
3970
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, H(n, n.attempt(K, e, t), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a);
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
|
3973
3973
|
function Po(n, e, t) {
|
|
3974
3974
|
const r = this;
|
|
3975
|
-
return
|
|
3975
|
+
return H(n, i, "listItemIndent", r.containerState.size + 1);
|
|
3976
3976
|
function i(l) {
|
|
3977
3977
|
const o = r.events[r.events.length - 1];
|
|
3978
3978
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? e(l) : t(l);
|
|
@@ -3983,7 +3983,7 @@ function Ao(n) {
|
|
|
3983
3983
|
}
|
|
3984
3984
|
function To(n, e, t) {
|
|
3985
3985
|
const r = this;
|
|
3986
|
-
return
|
|
3986
|
+
return H(n, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
3987
3987
|
function i(l) {
|
|
3988
3988
|
const o = r.events[r.events.length - 1];
|
|
3989
3989
|
return !D(l) && o && o[1].type === "listItemPrefixWhitespace" ? e(l) : t(l);
|
|
@@ -4035,7 +4035,7 @@ function zo(n, e, t) {
|
|
|
4035
4035
|
return n.enter("setextHeadingLineSequence"), a(u);
|
|
4036
4036
|
}
|
|
4037
4037
|
function a(u) {
|
|
4038
|
-
return u === i ? (n.consume(u), a) : (n.exit("setextHeadingLineSequence"), D(u) ?
|
|
4038
|
+
return u === i ? (n.consume(u), a) : (n.exit("setextHeadingLineSequence"), D(u) ? H(n, s, "lineSuffix")(u) : s(u));
|
|
4039
4039
|
}
|
|
4040
4040
|
function s(u) {
|
|
4041
4041
|
return u === null || z(u) ? (n.exit("setextHeadingLine"), e(u)) : t(u);
|
|
@@ -4050,7 +4050,7 @@ function Mo(n) {
|
|
|
4050
4050
|
re,
|
|
4051
4051
|
r,
|
|
4052
4052
|
// Try to parse initial flow (essentially, only code).
|
|
4053
|
-
n.attempt(this.parser.constructs.flowInitial, i,
|
|
4053
|
+
n.attempt(this.parser.constructs.flowInitial, i, H(n, n.attempt(this.parser.constructs.flow, i, n.attempt(Dl, i)), "linePrefix"))
|
|
4054
4054
|
);
|
|
4055
4055
|
return t;
|
|
4056
4056
|
function r(l) {
|
|
@@ -4191,26 +4191,26 @@ const Oo = {
|
|
|
4191
4191
|
}, jo = {
|
|
4192
4192
|
38: ar,
|
|
4193
4193
|
92: or
|
|
4194
|
-
},
|
|
4194
|
+
}, $o = {
|
|
4195
4195
|
[-5]: se,
|
|
4196
4196
|
[-4]: se,
|
|
4197
4197
|
[-3]: se,
|
|
4198
4198
|
33: go,
|
|
4199
4199
|
38: ar,
|
|
4200
|
-
42:
|
|
4200
|
+
42: Ee,
|
|
4201
4201
|
60: [yl, io],
|
|
4202
4202
|
91: ko,
|
|
4203
4203
|
92: [ql, or],
|
|
4204
|
-
93:
|
|
4205
|
-
95:
|
|
4204
|
+
93: He,
|
|
4205
|
+
95: Ee,
|
|
4206
4206
|
96: zl
|
|
4207
|
-
},
|
|
4208
|
-
null: [
|
|
4207
|
+
}, Ho = {
|
|
4208
|
+
null: [Ee, No]
|
|
4209
4209
|
}, Vo = {
|
|
4210
4210
|
null: [42, 95]
|
|
4211
4211
|
}, qo = {
|
|
4212
4212
|
null: []
|
|
4213
|
-
}, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Vo, contentInitial: Fo, disable: qo, document: Oo, flow: Uo, flowInitial: Bo, insideSpan:
|
|
4213
|
+
}, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, attentionMarkers: Vo, contentInitial: Fo, disable: qo, document: Oo, flow: Uo, flowInitial: Bo, insideSpan: Ho, string: jo, text: $o }, Symbol.toStringTag, { value: "Module" }));
|
|
4214
4214
|
function Xo(n, e, t) {
|
|
4215
4215
|
let r = {
|
|
4216
4216
|
_bufferIndex: -1,
|
|
@@ -4245,10 +4245,10 @@ function Xo(n, e, t) {
|
|
|
4245
4245
|
let c = e.tokenize.call(u, s);
|
|
4246
4246
|
return e.resolveAll && l.push(e), u;
|
|
4247
4247
|
function p(A) {
|
|
4248
|
-
return o = tn(o, A), L(), o[o.length - 1] !== null ? [] : (V(e, 0), u.events =
|
|
4248
|
+
return o = tn(o, A), L(), o[o.length - 1] !== null ? [] : (V(e, 0), u.events = $e(l, u.events, u), u.events);
|
|
4249
4249
|
}
|
|
4250
|
-
function d(A,
|
|
4251
|
-
return Yo(f(A),
|
|
4250
|
+
function d(A, E) {
|
|
4251
|
+
return Yo(f(A), E);
|
|
4252
4252
|
}
|
|
4253
4253
|
function f(A) {
|
|
4254
4254
|
return Go(o, A);
|
|
@@ -4256,16 +4256,16 @@ function Xo(n, e, t) {
|
|
|
4256
4256
|
function w() {
|
|
4257
4257
|
const {
|
|
4258
4258
|
_bufferIndex: A,
|
|
4259
|
-
_index:
|
|
4259
|
+
_index: E,
|
|
4260
4260
|
line: P,
|
|
4261
|
-
column:
|
|
4261
|
+
column: I,
|
|
4262
4262
|
offset: _
|
|
4263
4263
|
} = r;
|
|
4264
4264
|
return {
|
|
4265
4265
|
_bufferIndex: A,
|
|
4266
|
-
_index:
|
|
4266
|
+
_index: E,
|
|
4267
4267
|
line: P,
|
|
4268
|
-
column:
|
|
4268
|
+
column: I,
|
|
4269
4269
|
offset: _
|
|
4270
4270
|
};
|
|
4271
4271
|
}
|
|
@@ -4275,12 +4275,12 @@ function Xo(n, e, t) {
|
|
|
4275
4275
|
function L() {
|
|
4276
4276
|
let A;
|
|
4277
4277
|
for (; r._index < o.length; ) {
|
|
4278
|
-
const
|
|
4279
|
-
if (typeof
|
|
4280
|
-
for (A = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === A && r._bufferIndex <
|
|
4281
|
-
x(
|
|
4278
|
+
const E = o[r._index];
|
|
4279
|
+
if (typeof E == "string")
|
|
4280
|
+
for (A = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === A && r._bufferIndex < E.length; )
|
|
4281
|
+
x(E.charCodeAt(r._bufferIndex));
|
|
4282
4282
|
else
|
|
4283
|
-
x(
|
|
4283
|
+
x(E);
|
|
4284
4284
|
}
|
|
4285
4285
|
}
|
|
4286
4286
|
function x(A) {
|
|
@@ -4292,42 +4292,42 @@ function Xo(n, e, t) {
|
|
|
4292
4292
|
/** @type {string} */
|
|
4293
4293
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = A;
|
|
4294
4294
|
}
|
|
4295
|
-
function C(A,
|
|
4296
|
-
const P =
|
|
4295
|
+
function C(A, E) {
|
|
4296
|
+
const P = E || {};
|
|
4297
4297
|
return P.type = A, P.start = w(), u.events.push(["enter", P, u]), a.push(P), P;
|
|
4298
4298
|
}
|
|
4299
4299
|
function B(A) {
|
|
4300
|
-
const
|
|
4301
|
-
return
|
|
4300
|
+
const E = a.pop();
|
|
4301
|
+
return E.end = w(), u.events.push(["exit", E, u]), E;
|
|
4302
4302
|
}
|
|
4303
|
-
function j(A,
|
|
4304
|
-
V(A,
|
|
4303
|
+
function j(A, E) {
|
|
4304
|
+
V(A, E.from);
|
|
4305
4305
|
}
|
|
4306
|
-
function y(A,
|
|
4307
|
-
|
|
4306
|
+
function y(A, E) {
|
|
4307
|
+
E.restore();
|
|
4308
4308
|
}
|
|
4309
|
-
function v(A,
|
|
4309
|
+
function v(A, E) {
|
|
4310
4310
|
return P;
|
|
4311
|
-
function P(
|
|
4311
|
+
function P(I, _, W) {
|
|
4312
4312
|
let X, rn, fn, h;
|
|
4313
|
-
return Array.isArray(
|
|
4313
|
+
return Array.isArray(I) ? (
|
|
4314
4314
|
/* c8 ignore next 1 */
|
|
4315
|
-
pn(
|
|
4316
|
-
) : "tokenize" in
|
|
4315
|
+
pn(I)
|
|
4316
|
+
) : "tokenize" in I ? (
|
|
4317
4317
|
// Looks like a construct.
|
|
4318
4318
|
pn([
|
|
4319
4319
|
/** @type {Construct} */
|
|
4320
|
-
|
|
4320
|
+
I
|
|
4321
4321
|
])
|
|
4322
|
-
) : ln(
|
|
4322
|
+
) : ln(I);
|
|
4323
4323
|
function ln(G) {
|
|
4324
4324
|
return Mn;
|
|
4325
4325
|
function Mn(dn) {
|
|
4326
|
-
const Cn = dn !== null && G[dn],
|
|
4326
|
+
const Cn = dn !== null && G[dn], In = dn !== null && G.null, Gn = [
|
|
4327
4327
|
// To do: add more extension tests.
|
|
4328
4328
|
/* c8 ignore next 2 */
|
|
4329
4329
|
...Array.isArray(Cn) ? Cn : Cn ? [Cn] : [],
|
|
4330
|
-
...Array.isArray(
|
|
4330
|
+
...Array.isArray(In) ? In : In ? [In] : []
|
|
4331
4331
|
];
|
|
4332
4332
|
return pn(Gn)(dn);
|
|
4333
4333
|
}
|
|
@@ -4342,7 +4342,7 @@ function Xo(n, e, t) {
|
|
|
4342
4342
|
// If we do have fields, create an object w/ `context` as its
|
|
4343
4343
|
// prototype.
|
|
4344
4344
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
4345
|
-
|
|
4345
|
+
E ? Object.assign(Object.create(u), E) : u,
|
|
4346
4346
|
s,
|
|
4347
4347
|
on,
|
|
4348
4348
|
kn
|
|
@@ -4357,17 +4357,17 @@ function Xo(n, e, t) {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
}
|
|
4359
4359
|
}
|
|
4360
|
-
function V(A,
|
|
4361
|
-
A.resolveAll && !l.includes(A) && l.push(A), A.resolve && cn(u.events,
|
|
4360
|
+
function V(A, E) {
|
|
4361
|
+
A.resolveAll && !l.includes(A) && l.push(A), A.resolve && cn(u.events, E, u.events.length - E, A.resolve(u.events.slice(E), u)), A.resolveTo && (u.events = A.resolveTo(u.events, u));
|
|
4362
4362
|
}
|
|
4363
4363
|
function O() {
|
|
4364
|
-
const A = w(),
|
|
4364
|
+
const A = w(), E = u.previous, P = u.currentConstruct, I = u.events.length, _ = Array.from(a);
|
|
4365
4365
|
return {
|
|
4366
|
-
from:
|
|
4366
|
+
from: I,
|
|
4367
4367
|
restore: W
|
|
4368
4368
|
};
|
|
4369
4369
|
function W() {
|
|
4370
|
-
r = A, u.previous =
|
|
4370
|
+
r = A, u.previous = E, u.currentConstruct = P, u.events.length = I, a = _, F();
|
|
4371
4371
|
}
|
|
4372
4372
|
}
|
|
4373
4373
|
function F() {
|
|
@@ -4517,7 +4517,7 @@ function ra(n) {
|
|
|
4517
4517
|
autolinkProtocol: O,
|
|
4518
4518
|
autolinkEmail: O,
|
|
4519
4519
|
atxHeading: l(We),
|
|
4520
|
-
blockQuote: l(
|
|
4520
|
+
blockQuote: l(In),
|
|
4521
4521
|
characterEscape: O,
|
|
4522
4522
|
characterReference: O,
|
|
4523
4523
|
codeFenced: l(Gn),
|
|
@@ -4546,13 +4546,13 @@ function ra(n) {
|
|
|
4546
4546
|
listItemValue: d,
|
|
4547
4547
|
listOrdered: l(Ke, p),
|
|
4548
4548
|
listUnordered: l(Ke),
|
|
4549
|
-
paragraph: l(
|
|
4549
|
+
paragraph: l(Ir),
|
|
4550
4550
|
reference: m,
|
|
4551
4551
|
referenceString: o,
|
|
4552
4552
|
resourceDestinationString: o,
|
|
4553
4553
|
resourceTitleString: o,
|
|
4554
4554
|
setextHeading: l(We),
|
|
4555
|
-
strong: l(
|
|
4555
|
+
strong: l(Er),
|
|
4556
4556
|
thematicBreak: l(Ar)
|
|
4557
4557
|
},
|
|
4558
4558
|
exit: {
|
|
@@ -4581,11 +4581,11 @@ function ra(n) {
|
|
|
4581
4581
|
definitionLabelString: T,
|
|
4582
4582
|
definitionTitleString: C,
|
|
4583
4583
|
emphasis: s(),
|
|
4584
|
-
hardBreakEscape: s(
|
|
4585
|
-
hardBreakTrailing: s(
|
|
4584
|
+
hardBreakEscape: s(E),
|
|
4585
|
+
hardBreakTrailing: s(E),
|
|
4586
4586
|
htmlFlow: s(P),
|
|
4587
4587
|
htmlFlowData: F,
|
|
4588
|
-
htmlText: s(
|
|
4588
|
+
htmlText: s(I),
|
|
4589
4589
|
htmlTextData: F,
|
|
4590
4590
|
image: s(X),
|
|
4591
4591
|
label: fn,
|
|
@@ -4642,7 +4642,7 @@ function ra(n) {
|
|
|
4642
4642
|
}
|
|
4643
4643
|
if (M.tokenStack.length > 0) {
|
|
4644
4644
|
const an = M.tokenStack[M.tokenStack.length - 1];
|
|
4645
|
-
(an[1] ||
|
|
4645
|
+
(an[1] || It).call(M, void 0, an[0]);
|
|
4646
4646
|
}
|
|
4647
4647
|
for (S.position = {
|
|
4648
4648
|
start: gn(g.length > 0 ? g[0][1].start : {
|
|
@@ -4685,25 +4685,25 @@ function ra(n) {
|
|
|
4685
4685
|
}
|
|
4686
4686
|
if (!U && Z[0] === "enter" && Z[1].type === "listItemPrefix" || U === -1 && Z[0] === "exit" && (Z[1].type === "listUnordered" || Z[1].type === "listOrdered")) {
|
|
4687
4687
|
if (xn) {
|
|
4688
|
-
let
|
|
4689
|
-
for (hn = void 0;
|
|
4690
|
-
const mn = g[
|
|
4688
|
+
let En = R;
|
|
4689
|
+
for (hn = void 0; En--; ) {
|
|
4690
|
+
const mn = g[En];
|
|
4691
4691
|
if (mn[1].type === "lineEnding" || mn[1].type === "lineEndingBlank") {
|
|
4692
4692
|
if (mn[0] === "exit") continue;
|
|
4693
|
-
hn && (g[hn][1].type = "lineEndingBlank", an = !0), mn[1].type = "lineEnding", hn =
|
|
4693
|
+
hn && (g[hn][1].type = "lineEndingBlank", an = !0), mn[1].type = "lineEnding", hn = En;
|
|
4694
4694
|
} else if (!(mn[1].type === "linePrefix" || mn[1].type === "blockQuotePrefix" || mn[1].type === "blockQuotePrefixWhitespace" || mn[1].type === "blockQuoteMarker" || mn[1].type === "listItemIndent")) break;
|
|
4695
4695
|
}
|
|
4696
4696
|
Nn && (!hn || Nn < hn) && (xn._spread = !0), xn.end = Object.assign({}, hn ? g[hn][1].start : Z[1].end), g.splice(hn || R, 0, ["exit", xn, Z[2]]), R++, M++;
|
|
4697
4697
|
}
|
|
4698
4698
|
if (Z[1].type === "listItemPrefix") {
|
|
4699
|
-
const
|
|
4699
|
+
const En = {
|
|
4700
4700
|
type: "listItem",
|
|
4701
4701
|
_spread: !1,
|
|
4702
4702
|
start: Object.assign({}, Z[1].start),
|
|
4703
4703
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4704
4704
|
end: void 0
|
|
4705
4705
|
};
|
|
4706
|
-
xn =
|
|
4706
|
+
xn = En, g.splice(R, 0, ["enter", En, Z[2]]), R++, M++, Nn = void 0, Rn = !0;
|
|
4707
4707
|
}
|
|
4708
4708
|
}
|
|
4709
4709
|
}
|
|
@@ -4737,8 +4737,8 @@ function ra(n) {
|
|
|
4737
4737
|
function u(g, S) {
|
|
4738
4738
|
const M = this.stack.pop(), R = this.tokenStack.pop();
|
|
4739
4739
|
if (R)
|
|
4740
|
-
R[0].type !== g.type && (S ? S.call(this, g, R[0]) : (R[1] ||
|
|
4741
|
-
else throw new Error("Cannot close `" + g.type + "` (" +
|
|
4740
|
+
R[0].type !== g.type && (S ? S.call(this, g, R[0]) : (R[1] || It).call(this, g, R[0]));
|
|
4741
|
+
else throw new Error("Cannot close `" + g.type + "` (" + Hn({
|
|
4742
4742
|
start: g.start,
|
|
4743
4743
|
end: g.end
|
|
4744
4744
|
}) + "): it’s not open");
|
|
@@ -4826,14 +4826,14 @@ function ra(n) {
|
|
|
4826
4826
|
}
|
|
4827
4827
|
!this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(S.type) && (O.call(this, g), F.call(this, g));
|
|
4828
4828
|
}
|
|
4829
|
-
function
|
|
4829
|
+
function E() {
|
|
4830
4830
|
this.data.atHardBreak = !0;
|
|
4831
4831
|
}
|
|
4832
4832
|
function P() {
|
|
4833
4833
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4834
4834
|
S.value = g;
|
|
4835
4835
|
}
|
|
4836
|
-
function
|
|
4836
|
+
function I() {
|
|
4837
4837
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4838
4838
|
S.value = g;
|
|
4839
4839
|
}
|
|
@@ -4913,7 +4913,7 @@ function ra(n) {
|
|
|
4913
4913
|
const S = this.stack[this.stack.length - 1];
|
|
4914
4914
|
S.url = "mailto:" + this.sliceSerialize(g);
|
|
4915
4915
|
}
|
|
4916
|
-
function
|
|
4916
|
+
function In() {
|
|
4917
4917
|
return {
|
|
4918
4918
|
type: "blockquote",
|
|
4919
4919
|
children: []
|
|
@@ -5000,13 +5000,13 @@ function ra(n) {
|
|
|
5000
5000
|
children: []
|
|
5001
5001
|
};
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5003
|
+
function Ir() {
|
|
5004
5004
|
return {
|
|
5005
5005
|
type: "paragraph",
|
|
5006
5006
|
children: []
|
|
5007
5007
|
};
|
|
5008
5008
|
}
|
|
5009
|
-
function
|
|
5009
|
+
function Er() {
|
|
5010
5010
|
return {
|
|
5011
5011
|
type: "strong",
|
|
5012
5012
|
children: []
|
|
@@ -5061,14 +5061,14 @@ function ia(n, e) {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5065
|
-
throw n ? new Error("Cannot close `" + n.type + "` (" +
|
|
5064
|
+
function It(n, e) {
|
|
5065
|
+
throw n ? new Error("Cannot close `" + n.type + "` (" + Hn({
|
|
5066
5066
|
start: n.start,
|
|
5067
5067
|
end: n.end
|
|
5068
|
-
}) + "): a different token (`" + e.type + "`, " +
|
|
5068
|
+
}) + "): a different token (`" + e.type + "`, " + Hn({
|
|
5069
5069
|
start: e.start,
|
|
5070
5070
|
end: e.end
|
|
5071
|
-
}) + ") is open") : new Error("Cannot close document, a token (`" + e.type + "`, " +
|
|
5071
|
+
}) + ") is open") : new Error("Cannot close document, a token (`" + e.type + "`, " + Hn({
|
|
5072
5072
|
start: e.start,
|
|
5073
5073
|
end: e.end
|
|
5074
5074
|
}) + ") is still open");
|
|
@@ -5302,7 +5302,7 @@ function Ca(n, e) {
|
|
|
5302
5302
|
const t = { type: "root", children: n.wrap(n.all(e)) };
|
|
5303
5303
|
return n.patch(e, t), n.applyData(e, t);
|
|
5304
5304
|
}
|
|
5305
|
-
function
|
|
5305
|
+
function Ia(n, e) {
|
|
5306
5306
|
const t = {
|
|
5307
5307
|
type: "element",
|
|
5308
5308
|
tagName: "strong",
|
|
@@ -5311,7 +5311,7 @@ function Ea(n, e) {
|
|
|
5311
5311
|
};
|
|
5312
5312
|
return n.patch(e, t), n.applyData(e, t);
|
|
5313
5313
|
}
|
|
5314
|
-
function
|
|
5314
|
+
function Ea(n, e) {
|
|
5315
5315
|
const t = n.all(e), r = t.shift(), i = [];
|
|
5316
5316
|
if (r) {
|
|
5317
5317
|
const o = {
|
|
@@ -5367,7 +5367,7 @@ function Aa(n, e) {
|
|
|
5367
5367
|
};
|
|
5368
5368
|
return n.patch(e, t), n.applyData(e, t);
|
|
5369
5369
|
}
|
|
5370
|
-
const
|
|
5370
|
+
const Et = 9, Pt = 32;
|
|
5371
5371
|
function Ta(n) {
|
|
5372
5372
|
const e = String(n), t = /\r?\n|\r/g;
|
|
5373
5373
|
let r = t.exec(e), i = 0;
|
|
@@ -5383,12 +5383,12 @@ function At(n, e, t) {
|
|
|
5383
5383
|
let r = 0, i = n.length;
|
|
5384
5384
|
if (e) {
|
|
5385
5385
|
let l = n.codePointAt(r);
|
|
5386
|
-
for (; l ===
|
|
5386
|
+
for (; l === Et || l === Pt; )
|
|
5387
5387
|
r++, l = n.codePointAt(r);
|
|
5388
5388
|
}
|
|
5389
5389
|
if (t) {
|
|
5390
5390
|
let l = n.codePointAt(i - 1);
|
|
5391
|
-
for (; l ===
|
|
5391
|
+
for (; l === Et || l === Pt; )
|
|
5392
5392
|
i--, l = n.codePointAt(i - 1);
|
|
5393
5393
|
}
|
|
5394
5394
|
return i > r ? n.slice(r, i) : "";
|
|
@@ -5425,8 +5425,8 @@ const _a = {
|
|
|
5425
5425
|
paragraph: Sa,
|
|
5426
5426
|
// @ts-expect-error: root is different, but hard to type.
|
|
5427
5427
|
root: Ca,
|
|
5428
|
-
strong:
|
|
5429
|
-
table:
|
|
5428
|
+
strong: Ia,
|
|
5429
|
+
table: Ea,
|
|
5430
5430
|
tableCell: Aa,
|
|
5431
5431
|
tableRow: Pa,
|
|
5432
5432
|
text: La,
|
|
@@ -5641,7 +5641,7 @@ function zt(n) {
|
|
|
5641
5641
|
throw n;
|
|
5642
5642
|
}
|
|
5643
5643
|
var ce, _t;
|
|
5644
|
-
function
|
|
5644
|
+
function $a() {
|
|
5645
5645
|
if (_t) return ce;
|
|
5646
5646
|
_t = 1;
|
|
5647
5647
|
var n = Object.prototype.hasOwnProperty, e = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
@@ -5680,8 +5680,8 @@ function Ha() {
|
|
|
5680
5680
|
return b;
|
|
5681
5681
|
}, ce;
|
|
5682
5682
|
}
|
|
5683
|
-
var
|
|
5684
|
-
const fe = /* @__PURE__ */ Ot(
|
|
5683
|
+
var Ha = /* @__PURE__ */ $a();
|
|
5684
|
+
const fe = /* @__PURE__ */ Ot(Ha);
|
|
5685
5685
|
function Ae(n) {
|
|
5686
5686
|
if (typeof n != "object" || n === null)
|
|
5687
5687
|
return !1;
|
|
@@ -6868,11 +6868,19 @@ function fu(n) {
|
|
|
6868
6868
|
return !0;
|
|
6869
6869
|
}
|
|
6870
6870
|
}
|
|
6871
|
-
const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du = /(\*\*\*)([^*]*?)$/, gu = /(\*)([^*]*?)$/, yu = /(_)([^_]*?)$/, ku = /(`)([^`]*?)$/, xu = /(~~)([^~]*?)$/,
|
|
6871
|
+
const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du = /(\*\*\*)([^*]*?)$/, gu = /(\*)([^*]*?)$/, yu = /(_)([^_]*?)$/, ku = /(`)([^`]*?)$/, xu = /(~~)([^~]*?)$/, bu = /\n[\t ]*(?:[-*+]|\d+\.)[\t ]+$/, wu = /(\n[\t ]*)([-*+]|\d+\.)([\t ]*)\n([\t ]*[^\s])/g, Su = (n) => {
|
|
6872
|
+
let e = n;
|
|
6873
|
+
e = e.replace(
|
|
6874
|
+
wu,
|
|
6875
|
+
(r, i, l, o, a) => `${i}${l} ${a}`
|
|
6876
|
+
);
|
|
6877
|
+
const t = e.match(bu);
|
|
6878
|
+
return t ? e.substring(0, e.length - t[0].length) : e;
|
|
6879
|
+
}, qe = (n) => {
|
|
6872
6880
|
const e = (n.match(/```/g) || []).length;
|
|
6873
6881
|
return e > 0 && e % 2 === 0 && n.includes(`
|
|
6874
6882
|
`);
|
|
6875
|
-
},
|
|
6883
|
+
}, Cu = (n) => {
|
|
6876
6884
|
const e = n.match(pu);
|
|
6877
6885
|
if (e) {
|
|
6878
6886
|
if (e[1].startsWith("!")) {
|
|
@@ -6882,7 +6890,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6882
6890
|
return `${n}](placeholder:incomplete-link)`;
|
|
6883
6891
|
}
|
|
6884
6892
|
return n;
|
|
6885
|
-
},
|
|
6893
|
+
}, Iu = (n) => {
|
|
6886
6894
|
const e = n.match(hu);
|
|
6887
6895
|
if (e) {
|
|
6888
6896
|
const t = e[2];
|
|
@@ -6897,7 +6905,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6897
6905
|
return `${n}**`;
|
|
6898
6906
|
}
|
|
6899
6907
|
return n;
|
|
6900
|
-
},
|
|
6908
|
+
}, Eu = (n) => {
|
|
6901
6909
|
const e = n.match(mu);
|
|
6902
6910
|
if (e) {
|
|
6903
6911
|
const t = e[2];
|
|
@@ -6912,7 +6920,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6912
6920
|
return `${n}__`;
|
|
6913
6921
|
}
|
|
6914
6922
|
return n;
|
|
6915
|
-
},
|
|
6923
|
+
}, Pu = (n) => {
|
|
6916
6924
|
let e = 0, t = !1, r = 0;
|
|
6917
6925
|
for (let i = 0; i < n.length; i++) {
|
|
6918
6926
|
const l = n[i];
|
|
@@ -6939,7 +6947,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6939
6947
|
}
|
|
6940
6948
|
}
|
|
6941
6949
|
return e;
|
|
6942
|
-
},
|
|
6950
|
+
}, Au = (n) => {
|
|
6943
6951
|
if (qe(n))
|
|
6944
6952
|
return n;
|
|
6945
6953
|
if (n.match(gu)) {
|
|
@@ -6958,11 +6966,11 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6958
6966
|
);
|
|
6959
6967
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
6960
6968
|
return n;
|
|
6961
|
-
if (
|
|
6969
|
+
if (Pu(n) % 2 === 1)
|
|
6962
6970
|
return `${n}*`;
|
|
6963
6971
|
}
|
|
6964
6972
|
return n;
|
|
6965
|
-
},
|
|
6973
|
+
}, Tu = (n, e) => {
|
|
6966
6974
|
let t = !1, r = !1;
|
|
6967
6975
|
for (let i = 0; i < n.length && i < e; i++) {
|
|
6968
6976
|
if (n[i] === "\\" && n[i + 1] === "$") {
|
|
@@ -6984,7 +6992,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
6984
6992
|
t = !t;
|
|
6985
6993
|
}
|
|
6986
6994
|
return t;
|
|
6987
|
-
},
|
|
6995
|
+
}, Lu = (n) => {
|
|
6988
6996
|
let e = 0, t = !1, r = !1, i = !1;
|
|
6989
6997
|
for (let l = 0; l < n.length; l++) {
|
|
6990
6998
|
const o = n[l], a = l > 0 ? n[l - 1] : "", s = l < n.length - 1 ? n[l + 1] : "";
|
|
@@ -7007,13 +7015,13 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7007
7015
|
}
|
|
7008
7016
|
}
|
|
7009
7017
|
return e;
|
|
7010
|
-
},
|
|
7018
|
+
}, zu = (n) => {
|
|
7011
7019
|
if (qe(n))
|
|
7012
7020
|
return n;
|
|
7013
7021
|
if (n.match(yu)) {
|
|
7014
7022
|
let t = -1;
|
|
7015
7023
|
for (let l = 0; l < n.length; l++)
|
|
7016
|
-
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !
|
|
7024
|
+
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !Tu(n, l) && !kr(n, l)) {
|
|
7017
7025
|
const o = l > 0 ? n[l - 1] : "", a = l < n.length - 1 ? n[l + 1] : "";
|
|
7018
7026
|
if (o && a && /[\p{L}\p{N}_]/u.test(o) && /[\p{L}\p{N}_]/u.test(a))
|
|
7019
7027
|
continue;
|
|
@@ -7027,16 +7035,16 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7027
7035
|
);
|
|
7028
7036
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
7029
7037
|
return n;
|
|
7030
|
-
if (
|
|
7038
|
+
if (Lu(n) % 2 === 1)
|
|
7031
7039
|
return `${n}_`;
|
|
7032
7040
|
}
|
|
7033
7041
|
return n;
|
|
7034
|
-
},
|
|
7042
|
+
}, _u = (n) => {
|
|
7035
7043
|
let e = 0;
|
|
7036
7044
|
for (let t = 0; t < n.length; t++)
|
|
7037
7045
|
n[t] === "`" && !ie(n, t) && e++;
|
|
7038
7046
|
return e;
|
|
7039
|
-
},
|
|
7047
|
+
}, Mu = (n) => {
|
|
7040
7048
|
if (n.match(/^```[^`\n]*```?$/) && !n.includes(`
|
|
7041
7049
|
`))
|
|
7042
7050
|
return n.endsWith("``") && !n.endsWith("```") ? `${n}\`` : n;
|
|
@@ -7049,11 +7057,11 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7049
7057
|
const l = i[2];
|
|
7050
7058
|
if (!l || /^[\s_~*`]*$/.test(l))
|
|
7051
7059
|
return n;
|
|
7052
|
-
if (
|
|
7060
|
+
if (_u(n) % 2 === 1)
|
|
7053
7061
|
return `${n}\``;
|
|
7054
7062
|
}
|
|
7055
7063
|
return n;
|
|
7056
|
-
},
|
|
7064
|
+
}, Nu = (n) => {
|
|
7057
7065
|
const e = n.match(xu);
|
|
7058
7066
|
if (e) {
|
|
7059
7067
|
const t = e[2];
|
|
@@ -7063,7 +7071,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7063
7071
|
return `${n}~~`;
|
|
7064
7072
|
}
|
|
7065
7073
|
return n;
|
|
7066
|
-
},
|
|
7074
|
+
}, Ru = (n) => {
|
|
7067
7075
|
if ((n.match(/\$\$/g) || []).length % 2 === 0)
|
|
7068
7076
|
return n;
|
|
7069
7077
|
const t = n.indexOf("$$");
|
|
@@ -7071,7 +7079,7 @@ const pu = /(!?\[)([^\]]*?)$/, hu = /(\*\*)([^*]*?)$/, mu = /(__)([^_]*?)$/, du
|
|
|
7071
7079
|
`, t) !== -1 && !n.endsWith(`
|
|
7072
7080
|
`) ? `${n}
|
|
7073
7081
|
$$` : `${n}$$`;
|
|
7074
|
-
},
|
|
7082
|
+
}, vu = (n) => {
|
|
7075
7083
|
let e = 0;
|
|
7076
7084
|
const t = n.match(/\*+/g) || [];
|
|
7077
7085
|
for (const r of t) {
|
|
@@ -7079,7 +7087,7 @@ $$` : `${n}$$`;
|
|
|
7079
7087
|
i >= 3 && (e += Math.floor(i / 3));
|
|
7080
7088
|
}
|
|
7081
7089
|
return e;
|
|
7082
|
-
},
|
|
7090
|
+
}, Du = (n) => {
|
|
7083
7091
|
if (qe(n) || /^\*{4,}$/.test(n))
|
|
7084
7092
|
return n;
|
|
7085
7093
|
const e = n.match(du);
|
|
@@ -7087,18 +7095,19 @@ $$` : `${n}$$`;
|
|
|
7087
7095
|
const t = e[2];
|
|
7088
7096
|
if (!t || /^[\s_~*`]*$/.test(t))
|
|
7089
7097
|
return n;
|
|
7090
|
-
if (
|
|
7098
|
+
if (vu(n) % 2 === 1)
|
|
7091
7099
|
return `${n}***`;
|
|
7092
7100
|
}
|
|
7093
7101
|
return n;
|
|
7094
|
-
},
|
|
7102
|
+
}, Ou = (n) => {
|
|
7095
7103
|
if (!n || typeof n != "string")
|
|
7096
7104
|
return n;
|
|
7097
7105
|
let e = n;
|
|
7098
|
-
|
|
7099
|
-
|
|
7106
|
+
e = Su(e);
|
|
7107
|
+
const t = Cu(e);
|
|
7108
|
+
return t.endsWith("](placeholder:incomplete-link)") ? t : (e = t, e = Mu(e), e = Du(e), e = Iu(e), e = Eu(e), e = Au(e), e = zu(e), e = Nu(e), e = Ru(e), e);
|
|
7100
7109
|
};
|
|
7101
|
-
class
|
|
7110
|
+
class Fu {
|
|
7102
7111
|
remarkGfm = null;
|
|
7103
7112
|
rehypeKatex = null;
|
|
7104
7113
|
remarkMath = null;
|
|
@@ -7110,7 +7119,7 @@ class vu {
|
|
|
7110
7119
|
if (!this.remarkGfm) {
|
|
7111
7120
|
const { default: e } = await import(
|
|
7112
7121
|
/* webpackChunkName: "md-remark" */
|
|
7113
|
-
"./index.
|
|
7122
|
+
"./index.v0RCRqNr.js"
|
|
7114
7123
|
);
|
|
7115
7124
|
this.remarkGfm = e;
|
|
7116
7125
|
}
|
|
@@ -7118,10 +7127,10 @@ class vu {
|
|
|
7118
7127
|
}
|
|
7119
7128
|
async loadKatex() {
|
|
7120
7129
|
if (!this.rehypeKatex) {
|
|
7121
|
-
|
|
7130
|
+
Hu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
|
7122
7131
|
const { default: e } = await import(
|
|
7123
7132
|
/* webpackChunkName: "md-rehype-katex" */
|
|
7124
|
-
"./index.
|
|
7133
|
+
"./index.Cwy9OBLR.js"
|
|
7125
7134
|
);
|
|
7126
7135
|
this.rehypeKatex = e;
|
|
7127
7136
|
}
|
|
@@ -7131,7 +7140,7 @@ class vu {
|
|
|
7131
7140
|
if (!this.remarkMath) {
|
|
7132
7141
|
const { default: e } = await import(
|
|
7133
7142
|
/* webpackChunkName: "md-remark" */
|
|
7134
|
-
"./index.
|
|
7143
|
+
"./index.D17PEaoT.js"
|
|
7135
7144
|
);
|
|
7136
7145
|
this.remarkMath = e;
|
|
7137
7146
|
}
|
|
@@ -7141,14 +7150,14 @@ class vu {
|
|
|
7141
7150
|
if (!this.rehypeHighlight) {
|
|
7142
7151
|
const { default: e } = await import(
|
|
7143
7152
|
/* webpackChunkName: "md-rehype-highlight" */
|
|
7144
|
-
"./index.
|
|
7153
|
+
"./index.BAnjv3Rq.js"
|
|
7145
7154
|
);
|
|
7146
7155
|
this.rehypeHighlight = e;
|
|
7147
7156
|
}
|
|
7148
7157
|
return this.rehypeHighlight;
|
|
7149
7158
|
}
|
|
7150
7159
|
}
|
|
7151
|
-
const Jn = new
|
|
7160
|
+
const Jn = new Fu(), Bu = ({
|
|
7152
7161
|
children: n,
|
|
7153
7162
|
raw: e,
|
|
7154
7163
|
...t
|
|
@@ -7165,16 +7174,16 @@ const Jn = new vu(), Du = ({
|
|
|
7165
7174
|
className: "mb-2 px-1 absolute top-2 right-2 font-sans font-normal text-xs"
|
|
7166
7175
|
}
|
|
7167
7176
|
)
|
|
7168
|
-
] }),
|
|
7177
|
+
] }), Uu = (n) => n.includes("```"), ju = (n) => n.includes("$$"), $u = (n) => (
|
|
7169
7178
|
// urls.
|
|
7170
7179
|
n.includes("http://") || n.includes("https://") || // table.
|
|
7171
7180
|
n.includes("|") || // strikethrough.
|
|
7172
7181
|
n.includes("~") || n.includes("~~") || // task lists.
|
|
7173
7182
|
n.includes("- [ ]") || n.includes("- [x]")
|
|
7174
|
-
),
|
|
7183
|
+
), Hu = (n) => {
|
|
7175
7184
|
const e = document.createElement("link");
|
|
7176
7185
|
e.href = n, e.type = "text/css", e.rel = "stylesheet", e.id = "dynamic-katex-css", document.head.appendChild(e);
|
|
7177
|
-
},
|
|
7186
|
+
}, Vu = () => (n) => {
|
|
7178
7187
|
wn(n, (e) => {
|
|
7179
7188
|
if (e?.type === "element" && e?.tagName === "pre") {
|
|
7180
7189
|
const [t] = e.children;
|
|
@@ -7183,18 +7192,18 @@ const Jn = new vu(), Du = ({
|
|
|
7183
7192
|
e.raw = Mr(t.children?.[0].value);
|
|
7184
7193
|
}
|
|
7185
7194
|
});
|
|
7186
|
-
},
|
|
7195
|
+
}, qu = () => (n) => {
|
|
7187
7196
|
wn(n, "element", (e) => {
|
|
7188
7197
|
e?.type === "element" && e?.tagName === "pre" && (e.properties.raw = e.raw);
|
|
7189
7198
|
});
|
|
7190
|
-
},
|
|
7199
|
+
}, Qu = ({
|
|
7191
7200
|
onError: n = () => {
|
|
7192
7201
|
},
|
|
7193
7202
|
parseIncomplete: e = !0
|
|
7194
7203
|
} = {}) => {
|
|
7195
7204
|
const t = vn(n), r = vn(null), i = vn(null), l = vn(null), o = vn({
|
|
7196
7205
|
rehypePlugins: [
|
|
7197
|
-
|
|
7206
|
+
Vu,
|
|
7198
7207
|
/**
|
|
7199
7208
|
* Security: Harden against XSS by restricting allowed elements, attributes,
|
|
7200
7209
|
* and URL protocols. Uses safe defaults for AI-generated content.
|
|
@@ -7232,32 +7241,32 @@ const Jn = new vu(), Du = ({
|
|
|
7232
7241
|
const u = Dt(
|
|
7233
7242
|
(c) => {
|
|
7234
7243
|
(async () => {
|
|
7235
|
-
const p = e ?
|
|
7236
|
-
if (!r.current &&
|
|
7244
|
+
const p = e ? Ou(c) : c;
|
|
7245
|
+
if (!r.current && Uu(p)) {
|
|
7237
7246
|
r.current = !0;
|
|
7238
7247
|
const f = await Jn.loadHighlight();
|
|
7239
7248
|
o.current.rehypePlugins.push(f);
|
|
7240
7249
|
}
|
|
7241
|
-
if (!i.current &&
|
|
7250
|
+
if (!i.current && $u(p)) {
|
|
7242
7251
|
i.current = !0;
|
|
7243
7252
|
const f = await Jn.loadGfm();
|
|
7244
7253
|
o.current.remarkPlugins.push(f);
|
|
7245
7254
|
}
|
|
7246
|
-
if (!l.current &&
|
|
7255
|
+
if (!l.current && ju(p)) {
|
|
7247
7256
|
l.current = !0;
|
|
7248
7257
|
const f = await Jn.loadKatex(), w = await Jn.loadMath();
|
|
7249
7258
|
o.current.remarkPlugins.push(w), o.current.rehypePlugins.push(f);
|
|
7250
7259
|
}
|
|
7251
7260
|
const d = [
|
|
7252
7261
|
...o.current.rehypePlugins,
|
|
7253
|
-
|
|
7262
|
+
qu
|
|
7254
7263
|
];
|
|
7255
7264
|
ou().use(la).use(o.current.remarkPlugins).use(ja).use(d).use(Ji, {
|
|
7256
7265
|
Fragment: Tr,
|
|
7257
7266
|
jsx: Le,
|
|
7258
7267
|
jsxs: vt,
|
|
7259
7268
|
components: {
|
|
7260
|
-
pre:
|
|
7269
|
+
pre: Bu,
|
|
7261
7270
|
a: cu
|
|
7262
7271
|
}
|
|
7263
7272
|
}).process(p).then((f) => s(f.result)).catch(t.current);
|
|
@@ -7276,25 +7285,25 @@ export {
|
|
|
7276
7285
|
re as blankLine,
|
|
7277
7286
|
yt as classifyCharacter,
|
|
7278
7287
|
tl as combineExtensions,
|
|
7279
|
-
|
|
7288
|
+
$t as convert,
|
|
7280
7289
|
jt as convertElement,
|
|
7281
|
-
|
|
7290
|
+
H as factorySpace,
|
|
7282
7291
|
wi as find,
|
|
7283
|
-
|
|
7292
|
+
Ii as html,
|
|
7284
7293
|
z as markdownLineEnding,
|
|
7285
7294
|
Q as markdownLineEndingOrSpace,
|
|
7286
7295
|
D as markdownSpace,
|
|
7287
7296
|
xe as normalize,
|
|
7288
7297
|
Ln as normalizeIdentifier,
|
|
7289
7298
|
Wr as parse,
|
|
7290
|
-
|
|
7291
|
-
|
|
7299
|
+
Ku as parse$1,
|
|
7300
|
+
$e as resolveAll,
|
|
7292
7301
|
cn as splice,
|
|
7293
7302
|
De as svg,
|
|
7294
7303
|
nl as toString,
|
|
7295
7304
|
ul as unicodePunctuation,
|
|
7296
7305
|
sl as unicodeWhitespace,
|
|
7297
|
-
|
|
7306
|
+
Qu as useMarkdown,
|
|
7298
7307
|
wn as visit,
|
|
7299
7308
|
Zr as visitParents
|
|
7300
7309
|
};
|