@versini/sassysaint 8.107.3 → 8.107.4
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.BmMVyf-Q.js → AboutChangelog.DeRcKN5H.js} +2 -2
- package/dist/chunks/{AboutEntry.wD5hG0ON.js → AboutEntry.6mTHwkfb.js} +7 -7
- package/dist/chunks/{App.FyINLNSp.js → App.DTjbiLAP.js} +1746 -1908
- package/dist/chunks/{Bubble.Ci-pu6NI.js → Bubble.ltolxxta.js} +47 -74
- package/dist/chunks/{Chart.DYVf2gst.js → Chart.BzOmOhOW.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CD6bVvcQ.js → ChatBubbleAssistant.lGE_8ao1.js} +199 -208
- package/dist/chunks/{ChatBubbleUser.Cre3cX04.js → ChatBubbleUser.DC661ePq.js} +27 -36
- package/dist/chunks/{ChatHistoryTable.D_kOkWN9.js → ChatHistoryTable.BkRFWpsA.js} +108 -121
- package/dist/chunks/{Table.Dzy9ts3i.js → DeleteButtonIcon.P0LgJDjE.js} +125 -104
- package/dist/chunks/{HistoryEntry.BFNME4Z8.js → HistoryEntry.uUjsDuT0.js} +6 -6
- package/dist/chunks/{LoginEntry.SW7wyEpU.js → LoginEntry.BGZdTDwf.js} +4 -4
- package/dist/chunks/{LogoEntry.BAKpdJEy.js → LogoEntry.Bpddd0yA.js} +304 -385
- package/dist/chunks/{MemoriesEntry.Ztyx_8Wm.js → MemoriesEntry.BYQm9cuU.js} +164 -169
- package/dist/chunks/{ProfileEntry.CjzAusYw.js → ProfileEntry.BqcZXSeT.js} +4 -4
- package/dist/chunks/{SettingsEntry.D4IKmfYP.js → SettingsEntry.BdC5Vyof.js} +5 -5
- package/dist/chunks/{UsageEntry.D7sTPflE.js → UsageEntry._O8Q6TwS.js} +5 -5
- package/dist/chunks/index.Bi0z4EE1.js +90 -0
- package/dist/chunks/{index.BI1_ccPN.js → index.BlviGqw0.js} +3 -3
- package/dist/chunks/{index.BfTDtoYy.js → index.BxbWxVtd.js} +1 -1
- package/dist/chunks/index.C70LcKzU.js +279 -0
- package/dist/chunks/{index.BT3Do9Po.js → index.CYcieK1H.js} +34 -43
- package/dist/chunks/{index.QiLu2wkI.js → index.CaofbEIP.js} +2 -2
- package/dist/chunks/{index.DBovegdE.js → index.D2nN0rC6.js} +1 -1
- package/dist/chunks/{index.uILjvEfo.js → index.DG-VhqKw.js} +1 -1
- package/dist/chunks/{index.16gcBvke.js → index.DuxTgnco.js} +60 -69
- package/dist/chunks/{index.DJlv39cv.js → index.s8Izh8-Q.js} +2 -2
- package/dist/chunks/{useMarkdown.BberHabr.js → useMarkdown.DjEZz9lH.js} +315 -324
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/chunks/index.BjnVQ4X3.js +0 -99
- package/dist/chunks/index.uVDYkuxz.js +0 -297
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import { jsx as Tn, jsxs as Rt, Fragment as
|
|
2
|
-
import { ButtonIcon as
|
|
1
|
+
import { jsx as Tn, jsxs as Rt, Fragment as _r } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIcon as Mr, IconCopied as Nr, IconCopy as vr } from "./LogoEntry.Bpddd0yA.js";
|
|
3
3
|
import Rr, { useState as Dt, useEffect as Ot, useCallback as Ft, useRef as Dn } from "react";
|
|
4
|
-
import { getDefaultExportFromCjs as Bt, unObfuscate as Dr, obfuscate as Or } from "./App.
|
|
5
|
-
import { isTauri as Fr } from "./index.
|
|
6
|
-
try {
|
|
7
|
-
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
8
|
-
version: "11.0.1",
|
|
9
|
-
buildTime: "12/24/2025 09:19 AM EST",
|
|
10
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-button",
|
|
11
|
-
license: "MIT"
|
|
12
|
-
});
|
|
13
|
-
} catch {
|
|
14
|
-
}
|
|
4
|
+
import { getDefaultExportFromCjs as Bt, unObfuscate as Dr, obfuscate as Or } from "./App.DTjbiLAP.js";
|
|
5
|
+
import { isTauri as Fr } from "./index.CaofbEIP.js";
|
|
15
6
|
const Ut = /* @__PURE__ */ Rr.forwardRef(({ copyToClipboard: n, ...e }, t) => {
|
|
16
7
|
const [r, i] = Dt(!1), l = () => {
|
|
17
8
|
typeof n == "string" && (navigator.clipboard.writeText(n), i(!0)), typeof n == "function" && (navigator.clipboard.writeText(n()), i(!0));
|
|
@@ -25,14 +16,14 @@ const Ut = /* @__PURE__ */ Rr.forwardRef(({ copyToClipboard: n, ...e }, t) => {
|
|
|
25
16
|
};
|
|
26
17
|
}, [
|
|
27
18
|
r
|
|
28
|
-
]), /* @__PURE__ */ Tn(
|
|
19
|
+
]), /* @__PURE__ */ Tn(Mr, {
|
|
29
20
|
...e,
|
|
30
21
|
size: "small",
|
|
31
22
|
ref: t,
|
|
32
23
|
label: r ? "Copied to clipboard" : "Copy to clipboard",
|
|
33
24
|
onClick: l,
|
|
34
25
|
disabled: r,
|
|
35
|
-
children: r ? /* @__PURE__ */ Tn(
|
|
26
|
+
children: r ? /* @__PURE__ */ Tn(Nr, {
|
|
36
27
|
size: "size-3"
|
|
37
28
|
}) : /* @__PURE__ */ Tn(vr, {
|
|
38
29
|
size: "size-3"
|
|
@@ -40,7 +31,7 @@ const Ut = /* @__PURE__ */ Rr.forwardRef(({ copyToClipboard: n, ...e }, t) => {
|
|
|
40
31
|
});
|
|
41
32
|
});
|
|
42
33
|
Ut.displayName = "ButtonCopy";
|
|
43
|
-
const jt = -1, te = 0, Hn = 1, ee = 2,
|
|
34
|
+
const jt = -1, te = 0, Hn = 1, ee = 2, ze = 3, _e = 4, Me = 5, Ne = 6, $t = 7, Ht = 8, Qe = typeof self == "object" ? self : globalThis, Br = (n, e) => {
|
|
44
35
|
const t = (i, l) => (n.set(l, i), i), r = (i) => {
|
|
45
36
|
if (n.has(i))
|
|
46
37
|
return n.get(i);
|
|
@@ -61,19 +52,19 @@ const jt = -1, te = 0, Hn = 1, ee = 2, Le = 3, ze = 4, Ne = 5, Me = 6, $t = 7, H
|
|
|
61
52
|
a[r(s)] = r(u);
|
|
62
53
|
return a;
|
|
63
54
|
}
|
|
64
|
-
case
|
|
55
|
+
case ze:
|
|
65
56
|
return t(new Date(o), i);
|
|
66
|
-
case
|
|
57
|
+
case _e: {
|
|
67
58
|
const { source: a, flags: s } = o;
|
|
68
59
|
return t(new RegExp(a, s), i);
|
|
69
60
|
}
|
|
70
|
-
case
|
|
61
|
+
case Me: {
|
|
71
62
|
const a = t(/* @__PURE__ */ new Map(), i);
|
|
72
63
|
for (const [s, u] of o)
|
|
73
64
|
a.set(r(s), r(u));
|
|
74
65
|
return a;
|
|
75
66
|
}
|
|
76
|
-
case
|
|
67
|
+
case Ne: {
|
|
77
68
|
const a = t(/* @__PURE__ */ new Set(), i);
|
|
78
69
|
for (const s of o)
|
|
79
70
|
a.add(r(s));
|
|
@@ -108,13 +99,13 @@ const jt = -1, te = 0, Hn = 1, ee = 2, Le = 3, ze = 4, Ne = 5, Me = 6, $t = 7, H
|
|
|
108
99
|
case "Object":
|
|
109
100
|
return [ee, Pn];
|
|
110
101
|
case "Date":
|
|
111
|
-
return [Le, Pn];
|
|
112
|
-
case "RegExp":
|
|
113
102
|
return [ze, Pn];
|
|
103
|
+
case "RegExp":
|
|
104
|
+
return [_e, Pn];
|
|
114
105
|
case "Map":
|
|
115
|
-
return [Ne, Pn];
|
|
116
|
-
case "Set":
|
|
117
106
|
return [Me, Pn];
|
|
107
|
+
case "Set":
|
|
108
|
+
return [Ne, Pn];
|
|
118
109
|
case "DataView":
|
|
119
110
|
return [Hn, t];
|
|
120
111
|
}
|
|
@@ -172,19 +163,19 @@ const jt = -1, te = 0, Hn = 1, ee = 2, Le = 3, ze = 4, Ne = 5, Me = 6, $t = 7, H
|
|
|
172
163
|
(n || !Kn(On(o[d]))) && c.push([l(d), l(o[d])]);
|
|
173
164
|
return f;
|
|
174
165
|
}
|
|
175
|
-
case
|
|
166
|
+
case ze:
|
|
176
167
|
return i([a, o.toISOString()], o);
|
|
177
|
-
case
|
|
168
|
+
case _e: {
|
|
178
169
|
const { source: c, flags: f } = o;
|
|
179
170
|
return i([a, { source: c, flags: f }], o);
|
|
180
171
|
}
|
|
181
|
-
case
|
|
172
|
+
case Me: {
|
|
182
173
|
const c = [], f = i([a, c], o);
|
|
183
174
|
for (const [d, p] of o)
|
|
184
175
|
(n || !(Kn(On(d)) || Kn(On(p)))) && c.push([l(d), l(p)]);
|
|
185
176
|
return f;
|
|
186
177
|
}
|
|
187
|
-
case
|
|
178
|
+
case Ne: {
|
|
188
179
|
const c = [], f = i([a, c], o);
|
|
189
180
|
for (const d of o)
|
|
190
181
|
(n || !Kn(On(d))) && c.push(l(d));
|
|
@@ -389,7 +380,7 @@ function ri(n, e, t, r) {
|
|
|
389
380
|
}
|
|
390
381
|
return d;
|
|
391
382
|
function d() {
|
|
392
|
-
let p = Wt, w, b,
|
|
383
|
+
let p = Wt, w, b, L;
|
|
393
384
|
if ((!e || l(s, u, c[c.length - 1] || void 0)) && (p = ii(t(s, c)), p[0] === nt))
|
|
394
385
|
return p;
|
|
395
386
|
if ("children" in s && s.children) {
|
|
@@ -398,9 +389,9 @@ function ri(n, e, t, r) {
|
|
|
398
389
|
s
|
|
399
390
|
);
|
|
400
391
|
if (x.children && p[0] !== xe)
|
|
401
|
-
for (b = (r ? x.children.length : -1) + o,
|
|
392
|
+
for (b = (r ? x.children.length : -1) + o, L = c.concat(x); b > -1 && b < x.children.length; ) {
|
|
402
393
|
const T = x.children[b];
|
|
403
|
-
if (w = a(T, b,
|
|
394
|
+
if (w = a(T, b, L)(), w[0] === nt)
|
|
404
395
|
return w;
|
|
405
396
|
b = typeof w[1] == "number" ? w[1] : b + o;
|
|
406
397
|
}
|
|
@@ -650,11 +641,11 @@ J.prototype.property = "";
|
|
|
650
641
|
J.prototype.spaceSeparated = !1;
|
|
651
642
|
J.prototype.space = void 0;
|
|
652
643
|
let bi = 0;
|
|
653
|
-
const
|
|
644
|
+
const N = Sn(), q = Sn(), we = Sn(), k = Sn(), $ = Sn(), Ln = Sn(), nn = Sn();
|
|
654
645
|
function Sn() {
|
|
655
646
|
return 2 ** ++bi;
|
|
656
647
|
}
|
|
657
|
-
const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean:
|
|
648
|
+
const Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, boolean: N, booleanish: q, commaOrSpaceSeparated: nn, commaSeparated: Ln, number: k, overloadedBoolean: we, spaceSeparated: $ }, Symbol.toStringTag, { value: "Module" })), ae = (
|
|
658
649
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
659
650
|
Object.keys(Se)
|
|
660
651
|
);
|
|
@@ -685,7 +676,7 @@ Re.prototype.defined = !0;
|
|
|
685
676
|
function lt(n, e, t) {
|
|
686
677
|
t && (n[e] = t);
|
|
687
678
|
}
|
|
688
|
-
function
|
|
679
|
+
function _n(n) {
|
|
689
680
|
const e = {}, t = {};
|
|
690
681
|
for (const [r, i] of Object.entries(n.properties)) {
|
|
691
682
|
const l = new Re(
|
|
@@ -698,7 +689,7 @@ function zn(n) {
|
|
|
698
689
|
}
|
|
699
690
|
return new Xn(e, t, n.space);
|
|
700
691
|
}
|
|
701
|
-
const Gt =
|
|
692
|
+
const Gt = _n({
|
|
702
693
|
properties: {
|
|
703
694
|
ariaActiveDescendant: null,
|
|
704
695
|
ariaAtomic: q,
|
|
@@ -760,7 +751,7 @@ function Yt(n, e) {
|
|
|
760
751
|
function Kt(n, e) {
|
|
761
752
|
return Yt(n, e.toLowerCase());
|
|
762
753
|
}
|
|
763
|
-
const wi =
|
|
754
|
+
const wi = _n({
|
|
764
755
|
attributes: {
|
|
765
756
|
acceptcharset: "accept-charset",
|
|
766
757
|
classname: "class",
|
|
@@ -771,43 +762,43 @@ const wi = zn({
|
|
|
771
762
|
properties: {
|
|
772
763
|
// Standard Properties.
|
|
773
764
|
abbr: null,
|
|
774
|
-
accept:
|
|
765
|
+
accept: Ln,
|
|
775
766
|
acceptCharset: $,
|
|
776
767
|
accessKey: $,
|
|
777
768
|
action: null,
|
|
778
769
|
allow: null,
|
|
779
|
-
allowFullScreen:
|
|
780
|
-
allowPaymentRequest:
|
|
781
|
-
allowUserMedia:
|
|
770
|
+
allowFullScreen: N,
|
|
771
|
+
allowPaymentRequest: N,
|
|
772
|
+
allowUserMedia: N,
|
|
782
773
|
alt: null,
|
|
783
774
|
as: null,
|
|
784
|
-
async:
|
|
775
|
+
async: N,
|
|
785
776
|
autoCapitalize: null,
|
|
786
777
|
autoComplete: $,
|
|
787
|
-
autoFocus:
|
|
788
|
-
autoPlay:
|
|
778
|
+
autoFocus: N,
|
|
779
|
+
autoPlay: N,
|
|
789
780
|
blocking: $,
|
|
790
781
|
capture: null,
|
|
791
782
|
charSet: null,
|
|
792
|
-
checked:
|
|
783
|
+
checked: N,
|
|
793
784
|
cite: null,
|
|
794
785
|
className: $,
|
|
795
786
|
cols: k,
|
|
796
787
|
colSpan: null,
|
|
797
788
|
content: null,
|
|
798
789
|
contentEditable: q,
|
|
799
|
-
controls:
|
|
790
|
+
controls: N,
|
|
800
791
|
controlsList: $,
|
|
801
|
-
coords: k |
|
|
792
|
+
coords: k | Ln,
|
|
802
793
|
crossOrigin: null,
|
|
803
794
|
data: null,
|
|
804
795
|
dateTime: null,
|
|
805
796
|
decoding: null,
|
|
806
|
-
default:
|
|
807
|
-
defer:
|
|
797
|
+
default: N,
|
|
798
|
+
defer: N,
|
|
808
799
|
dir: null,
|
|
809
800
|
dirName: null,
|
|
810
|
-
disabled:
|
|
801
|
+
disabled: N,
|
|
811
802
|
download: we,
|
|
812
803
|
draggable: q,
|
|
813
804
|
encType: null,
|
|
@@ -817,7 +808,7 @@ const wi = zn({
|
|
|
817
808
|
formAction: null,
|
|
818
809
|
formEncType: null,
|
|
819
810
|
formMethod: null,
|
|
820
|
-
formNoValidate:
|
|
811
|
+
formNoValidate: N,
|
|
821
812
|
formTarget: null,
|
|
822
813
|
headers: $,
|
|
823
814
|
height: k,
|
|
@@ -830,15 +821,15 @@ const wi = zn({
|
|
|
830
821
|
id: null,
|
|
831
822
|
imageSizes: null,
|
|
832
823
|
imageSrcSet: null,
|
|
833
|
-
inert:
|
|
824
|
+
inert: N,
|
|
834
825
|
inputMode: null,
|
|
835
826
|
integrity: null,
|
|
836
827
|
is: null,
|
|
837
|
-
isMap:
|
|
828
|
+
isMap: N,
|
|
838
829
|
itemId: null,
|
|
839
830
|
itemProp: $,
|
|
840
831
|
itemRef: $,
|
|
841
|
-
itemScope:
|
|
832
|
+
itemScope: N,
|
|
842
833
|
itemType: $,
|
|
843
834
|
kind: null,
|
|
844
835
|
label: null,
|
|
@@ -846,7 +837,7 @@ const wi = zn({
|
|
|
846
837
|
language: null,
|
|
847
838
|
list: null,
|
|
848
839
|
loading: null,
|
|
849
|
-
loop:
|
|
840
|
+
loop: N,
|
|
850
841
|
low: k,
|
|
851
842
|
manifest: null,
|
|
852
843
|
max: null,
|
|
@@ -855,12 +846,12 @@ const wi = zn({
|
|
|
855
846
|
method: null,
|
|
856
847
|
min: null,
|
|
857
848
|
minLength: k,
|
|
858
|
-
multiple:
|
|
859
|
-
muted:
|
|
849
|
+
multiple: N,
|
|
850
|
+
muted: N,
|
|
860
851
|
name: null,
|
|
861
852
|
nonce: null,
|
|
862
|
-
noModule:
|
|
863
|
-
noValidate:
|
|
853
|
+
noModule: N,
|
|
854
|
+
noValidate: N,
|
|
864
855
|
onAbort: null,
|
|
865
856
|
onAfterPrint: null,
|
|
866
857
|
onAuxClick: null,
|
|
@@ -949,31 +940,31 @@ const wi = zn({
|
|
|
949
940
|
onVolumeChange: null,
|
|
950
941
|
onWaiting: null,
|
|
951
942
|
onWheel: null,
|
|
952
|
-
open:
|
|
943
|
+
open: N,
|
|
953
944
|
optimum: k,
|
|
954
945
|
pattern: null,
|
|
955
946
|
ping: $,
|
|
956
947
|
placeholder: null,
|
|
957
|
-
playsInline:
|
|
948
|
+
playsInline: N,
|
|
958
949
|
popover: null,
|
|
959
950
|
popoverTarget: null,
|
|
960
951
|
popoverTargetAction: null,
|
|
961
952
|
poster: null,
|
|
962
953
|
preload: null,
|
|
963
|
-
readOnly:
|
|
954
|
+
readOnly: N,
|
|
964
955
|
referrerPolicy: null,
|
|
965
956
|
rel: $,
|
|
966
|
-
required:
|
|
967
|
-
reversed:
|
|
957
|
+
required: N,
|
|
958
|
+
reversed: N,
|
|
968
959
|
rows: k,
|
|
969
960
|
rowSpan: k,
|
|
970
961
|
sandbox: $,
|
|
971
962
|
scope: null,
|
|
972
|
-
scoped:
|
|
973
|
-
seamless:
|
|
974
|
-
selected:
|
|
975
|
-
shadowRootClonable:
|
|
976
|
-
shadowRootDelegatesFocus:
|
|
963
|
+
scoped: N,
|
|
964
|
+
seamless: N,
|
|
965
|
+
selected: N,
|
|
966
|
+
shadowRootClonable: N,
|
|
967
|
+
shadowRootDelegatesFocus: N,
|
|
977
968
|
shadowRootMode: null,
|
|
978
969
|
shape: null,
|
|
979
970
|
size: k,
|
|
@@ -993,7 +984,7 @@ const wi = zn({
|
|
|
993
984
|
title: null,
|
|
994
985
|
translate: null,
|
|
995
986
|
type: null,
|
|
996
|
-
typeMustMatch:
|
|
987
|
+
typeMustMatch: N,
|
|
997
988
|
useMap: null,
|
|
998
989
|
value: q,
|
|
999
990
|
width: k,
|
|
@@ -1039,9 +1030,9 @@ const wi = zn({
|
|
|
1039
1030
|
// `<object>`
|
|
1040
1031
|
color: null,
|
|
1041
1032
|
// `<font>` and `<hr>`. Use CSS instead
|
|
1042
|
-
compact:
|
|
1033
|
+
compact: N,
|
|
1043
1034
|
// Lists. Use CSS to reduce space between items instead
|
|
1044
|
-
declare:
|
|
1035
|
+
declare: N,
|
|
1045
1036
|
// `<object>`
|
|
1046
1037
|
event: null,
|
|
1047
1038
|
// `<script>`
|
|
@@ -1065,13 +1056,13 @@ const wi = zn({
|
|
|
1065
1056
|
// `<body>`
|
|
1066
1057
|
marginWidth: k,
|
|
1067
1058
|
// `<body>`
|
|
1068
|
-
noResize:
|
|
1059
|
+
noResize: N,
|
|
1069
1060
|
// `<frame>`
|
|
1070
|
-
noHref:
|
|
1061
|
+
noHref: N,
|
|
1071
1062
|
// `<area>`. Use no href instead of an explicit `nohref`
|
|
1072
|
-
noShade:
|
|
1063
|
+
noShade: N,
|
|
1073
1064
|
// `<hr>`. Use background-color and height instead of borders
|
|
1074
|
-
noWrap:
|
|
1065
|
+
noWrap: N,
|
|
1075
1066
|
// `<td>` and `<th>`
|
|
1076
1067
|
object: null,
|
|
1077
1068
|
// `<applet>`
|
|
@@ -1111,8 +1102,8 @@ const wi = zn({
|
|
|
1111
1102
|
allowTransparency: null,
|
|
1112
1103
|
autoCorrect: null,
|
|
1113
1104
|
autoSave: null,
|
|
1114
|
-
disablePictureInPicture:
|
|
1115
|
-
disableRemotePlayback:
|
|
1105
|
+
disablePictureInPicture: N,
|
|
1106
|
+
disableRemotePlayback: N,
|
|
1116
1107
|
prefix: null,
|
|
1117
1108
|
property: null,
|
|
1118
1109
|
results: k,
|
|
@@ -1121,7 +1112,7 @@ const wi = zn({
|
|
|
1121
1112
|
},
|
|
1122
1113
|
space: "html",
|
|
1123
1114
|
transform: Kt
|
|
1124
|
-
}), Si =
|
|
1115
|
+
}), Si = _n({
|
|
1125
1116
|
attributes: {
|
|
1126
1117
|
accentHeight: "accent-height",
|
|
1127
1118
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -1347,7 +1338,7 @@ const wi = zn({
|
|
|
1347
1338
|
dur: null,
|
|
1348
1339
|
divisor: k,
|
|
1349
1340
|
dominantBaseline: null,
|
|
1350
|
-
download:
|
|
1341
|
+
download: N,
|
|
1351
1342
|
dx: null,
|
|
1352
1343
|
dy: null,
|
|
1353
1344
|
edgeMode: null,
|
|
@@ -1380,9 +1371,9 @@ const wi = zn({
|
|
|
1380
1371
|
from: null,
|
|
1381
1372
|
fx: null,
|
|
1382
1373
|
fy: null,
|
|
1383
|
-
g1:
|
|
1384
|
-
g2:
|
|
1385
|
-
glyphName:
|
|
1374
|
+
g1: Ln,
|
|
1375
|
+
g2: Ln,
|
|
1376
|
+
glyphName: Ln,
|
|
1386
1377
|
glyphOrientationHorizontal: null,
|
|
1387
1378
|
glyphOrientationVertical: null,
|
|
1388
1379
|
glyphRef: null,
|
|
@@ -1680,7 +1671,7 @@ const wi = zn({
|
|
|
1680
1671
|
},
|
|
1681
1672
|
space: "svg",
|
|
1682
1673
|
transform: Yt
|
|
1683
|
-
}), Qt =
|
|
1674
|
+
}), Qt = _n({
|
|
1684
1675
|
properties: {
|
|
1685
1676
|
xLinkActuate: null,
|
|
1686
1677
|
xLinkArcRole: null,
|
|
@@ -1694,12 +1685,12 @@ const wi = zn({
|
|
|
1694
1685
|
transform(n, e) {
|
|
1695
1686
|
return "xlink:" + e.slice(5).toLowerCase();
|
|
1696
1687
|
}
|
|
1697
|
-
}), Jt =
|
|
1688
|
+
}), Jt = _n({
|
|
1698
1689
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
1699
1690
|
properties: { xmlnsXLink: null, xmlns: null },
|
|
1700
1691
|
space: "xmlns",
|
|
1701
1692
|
transform: Kt
|
|
1702
|
-
}), Zt =
|
|
1693
|
+
}), Zt = _n({
|
|
1703
1694
|
properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
|
|
1704
1695
|
space: "xml",
|
|
1705
1696
|
transform(n, e) {
|
|
@@ -1750,24 +1741,24 @@ function Ai(n) {
|
|
|
1750
1741
|
function Ti(n) {
|
|
1751
1742
|
return n.charAt(1).toUpperCase();
|
|
1752
1743
|
}
|
|
1753
|
-
const
|
|
1744
|
+
const Li = Xt([Gt, wi, Qt, Jt, Zt], "html"), De = Xt([Gt, Si, Qt, Jt, Zt], "svg");
|
|
1754
1745
|
var An = {}, ue, at;
|
|
1755
|
-
function
|
|
1746
|
+
function zi() {
|
|
1756
1747
|
if (at) return ue;
|
|
1757
1748
|
at = 1;
|
|
1758
1749
|
var n = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, t = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, o = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
|
|
1759
1750
|
`, u = "/", c = "*", f = "", d = "comment", p = "declaration";
|
|
1760
|
-
ue = function(b,
|
|
1751
|
+
ue = function(b, L) {
|
|
1761
1752
|
if (typeof b != "string")
|
|
1762
1753
|
throw new TypeError("First argument must be a string");
|
|
1763
1754
|
if (!b) return [];
|
|
1764
|
-
|
|
1755
|
+
L = L || {};
|
|
1765
1756
|
var x = 1, T = 1;
|
|
1766
1757
|
function C(P) {
|
|
1767
1758
|
var I = P.match(e);
|
|
1768
1759
|
I && (x += I.length);
|
|
1769
|
-
var
|
|
1770
|
-
T = ~
|
|
1760
|
+
var _ = P.lastIndexOf(s);
|
|
1761
|
+
T = ~_ ? P.length - _ : T + P.length;
|
|
1771
1762
|
}
|
|
1772
1763
|
function B() {
|
|
1773
1764
|
var P = { line: x, column: T };
|
|
@@ -1776,20 +1767,20 @@ function Li() {
|
|
|
1776
1767
|
};
|
|
1777
1768
|
}
|
|
1778
1769
|
function j(P) {
|
|
1779
|
-
this.start = P, this.end = { line: x, column: T }, this.source =
|
|
1770
|
+
this.start = P, this.end = { line: x, column: T }, this.source = L.source;
|
|
1780
1771
|
}
|
|
1781
1772
|
j.prototype.content = b;
|
|
1782
1773
|
function y(P) {
|
|
1783
1774
|
var I = new Error(
|
|
1784
|
-
|
|
1775
|
+
L.source + ":" + x + ":" + T + ": " + P
|
|
1785
1776
|
);
|
|
1786
|
-
if (I.reason = P, I.filename =
|
|
1777
|
+
if (I.reason = P, I.filename = L.source, I.line = x, I.column = T, I.source = b, !L.silent) throw I;
|
|
1787
1778
|
}
|
|
1788
1779
|
function R(P) {
|
|
1789
1780
|
var I = P.exec(b);
|
|
1790
1781
|
if (I) {
|
|
1791
|
-
var
|
|
1792
|
-
return C(
|
|
1782
|
+
var _ = I[0];
|
|
1783
|
+
return C(_), b = b.slice(_.length), I;
|
|
1793
1784
|
}
|
|
1794
1785
|
}
|
|
1795
1786
|
function V() {
|
|
@@ -1808,10 +1799,10 @@ function Li() {
|
|
|
1808
1799
|
++I;
|
|
1809
1800
|
if (I += 2, f === b.charAt(I - 1))
|
|
1810
1801
|
return y("End of comment missing");
|
|
1811
|
-
var
|
|
1812
|
-
return T += 2, C(
|
|
1802
|
+
var _ = b.slice(2, I - 2);
|
|
1803
|
+
return T += 2, C(_), b = b.slice(I), T += 2, P({
|
|
1813
1804
|
type: d,
|
|
1814
|
-
comment:
|
|
1805
|
+
comment: _
|
|
1815
1806
|
});
|
|
1816
1807
|
}
|
|
1817
1808
|
}
|
|
@@ -1819,10 +1810,10 @@ function Li() {
|
|
|
1819
1810
|
var P = B(), I = R(r);
|
|
1820
1811
|
if (I) {
|
|
1821
1812
|
if (F(), !R(i)) return y("property missing ':'");
|
|
1822
|
-
var
|
|
1813
|
+
var _ = R(l), W = P({
|
|
1823
1814
|
type: p,
|
|
1824
1815
|
property: w(I[0].replace(n, f)),
|
|
1825
|
-
value:
|
|
1816
|
+
value: _ ? w(_[0].replace(n, f)) : f
|
|
1826
1817
|
});
|
|
1827
1818
|
return R(o), W;
|
|
1828
1819
|
}
|
|
@@ -1842,14 +1833,14 @@ function Li() {
|
|
|
1842
1833
|
return ue;
|
|
1843
1834
|
}
|
|
1844
1835
|
var ut;
|
|
1845
|
-
function
|
|
1836
|
+
function _i() {
|
|
1846
1837
|
if (ut) return An;
|
|
1847
1838
|
ut = 1;
|
|
1848
1839
|
var n = An && An.__importDefault || function(r) {
|
|
1849
1840
|
return r && r.__esModule ? r : { default: r };
|
|
1850
1841
|
};
|
|
1851
1842
|
Object.defineProperty(An, "__esModule", { value: !0 }), An.default = t;
|
|
1852
|
-
const e = n(/* @__PURE__ */
|
|
1843
|
+
const e = n(/* @__PURE__ */ zi());
|
|
1853
1844
|
function t(r, i) {
|
|
1854
1845
|
let l = null;
|
|
1855
1846
|
if (!r || typeof r != "string")
|
|
@@ -1865,7 +1856,7 @@ function zi() {
|
|
|
1865
1856
|
return An;
|
|
1866
1857
|
}
|
|
1867
1858
|
var Bn = {}, st;
|
|
1868
|
-
function
|
|
1859
|
+
function Mi() {
|
|
1869
1860
|
if (st) return Bn;
|
|
1870
1861
|
st = 1, Object.defineProperty(Bn, "__esModule", { value: !0 }), Bn.camelCase = void 0;
|
|
1871
1862
|
var n = /^--[a-zA-Z0-9_-]+$/, e = /-([a-z])/g, t = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, l = function(u) {
|
|
@@ -1880,12 +1871,12 @@ function Ni() {
|
|
|
1880
1871
|
return Bn.camelCase = s, Bn;
|
|
1881
1872
|
}
|
|
1882
1873
|
var Un, ct;
|
|
1883
|
-
function
|
|
1874
|
+
function Ni() {
|
|
1884
1875
|
if (ct) return Un;
|
|
1885
1876
|
ct = 1;
|
|
1886
1877
|
var n = Un && Un.__importDefault || function(i) {
|
|
1887
1878
|
return i && i.__esModule ? i : { default: i };
|
|
1888
|
-
}, e = n(/* @__PURE__ */
|
|
1879
|
+
}, e = n(/* @__PURE__ */ _i()), t = /* @__PURE__ */ Mi();
|
|
1889
1880
|
function r(i, l) {
|
|
1890
1881
|
var o = {};
|
|
1891
1882
|
return !i || typeof i != "string" || (0, e.default)(i, function(a, s) {
|
|
@@ -1894,7 +1885,7 @@ function Mi() {
|
|
|
1894
1885
|
}
|
|
1895
1886
|
return r.default = r, Un = r, Un;
|
|
1896
1887
|
}
|
|
1897
|
-
var vi = /* @__PURE__ */
|
|
1888
|
+
var vi = /* @__PURE__ */ Ni();
|
|
1898
1889
|
const Ri = /* @__PURE__ */ Bt(vi), nr = er("end"), Oe = er("start");
|
|
1899
1890
|
function er(n) {
|
|
1900
1891
|
return e;
|
|
@@ -2042,7 +2033,7 @@ function ji(n, e) {
|
|
|
2042
2033
|
ignoreInvalidStyle: e.ignoreInvalidStyle || !1,
|
|
2043
2034
|
passKeys: e.passKeys !== !1,
|
|
2044
2035
|
passNode: e.passNode || !1,
|
|
2045
|
-
schema: e.space === "svg" ? De :
|
|
2036
|
+
schema: e.space === "svg" ? De : Li,
|
|
2046
2037
|
stylePropertyNameCase: e.stylePropertyNameCase || "dom",
|
|
2047
2038
|
tableCellAlignToStyle: e.tableCellAlignToStyle !== !1
|
|
2048
2039
|
}, l = rr(i, n, void 0);
|
|
@@ -2402,7 +2393,7 @@ function ar(n, e) {
|
|
|
2402
2393
|
t > 1114111 ? "�" : String.fromCodePoint(t)
|
|
2403
2394
|
);
|
|
2404
2395
|
}
|
|
2405
|
-
function
|
|
2396
|
+
function zn(n) {
|
|
2406
2397
|
return n.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2407
2398
|
}
|
|
2408
2399
|
const sn = yn(/[A-Za-z]/), en = yn(/[\dA-Za-z]/), cl = yn(/[#-'*+\--9=?A-Z^-~]/);
|
|
@@ -2414,7 +2405,7 @@ function Ie(n) {
|
|
|
2414
2405
|
);
|
|
2415
2406
|
}
|
|
2416
2407
|
const Ee = yn(/\d/), fl = yn(/[\dA-Fa-f]/), pl = yn(/[!-/:-@[-`{-~]/);
|
|
2417
|
-
function
|
|
2408
|
+
function z(n) {
|
|
2418
2409
|
return n !== null && n < -2;
|
|
2419
2410
|
}
|
|
2420
2411
|
function Q(n) {
|
|
@@ -2430,7 +2421,7 @@ function yn(n) {
|
|
|
2430
2421
|
return t !== null && t > -1 && n.test(String.fromCharCode(t));
|
|
2431
2422
|
}
|
|
2432
2423
|
}
|
|
2433
|
-
function
|
|
2424
|
+
function Mn(n) {
|
|
2434
2425
|
const e = [];
|
|
2435
2426
|
let t = -1, r = 0, i = 0;
|
|
2436
2427
|
for (; ++t < n.length; ) {
|
|
@@ -2489,7 +2480,7 @@ function gl(n) {
|
|
|
2489
2480
|
n.exit("chunkText"), n.exit("paragraph"), n.consume(a);
|
|
2490
2481
|
return;
|
|
2491
2482
|
}
|
|
2492
|
-
return
|
|
2483
|
+
return z(a) ? (n.consume(a), n.exit("chunkText"), l) : (n.consume(a), o);
|
|
2493
2484
|
}
|
|
2494
2485
|
}
|
|
2495
2486
|
const yl = {
|
|
@@ -2563,12 +2554,12 @@ function kl(n) {
|
|
|
2563
2554
|
}
|
|
2564
2555
|
function b(C) {
|
|
2565
2556
|
if (C === null) {
|
|
2566
|
-
|
|
2557
|
+
L(n.exit("chunkFlow"), !0), x(0), n.consume(C);
|
|
2567
2558
|
return;
|
|
2568
2559
|
}
|
|
2569
|
-
return
|
|
2560
|
+
return z(C) ? (n.consume(C), L(n.exit("chunkFlow")), r = 0, e.interrupt = void 0, a) : (n.consume(C), b);
|
|
2570
2561
|
}
|
|
2571
|
-
function
|
|
2562
|
+
function L(C, B) {
|
|
2572
2563
|
const j = e.sliceStream(C);
|
|
2573
2564
|
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]) {
|
|
2574
2565
|
let y = i.events.length;
|
|
@@ -2753,7 +2744,7 @@ function Il(n, e, t) {
|
|
|
2753
2744
|
return D(l) ? H(n, i, "linePrefix")(l) : i(l);
|
|
2754
2745
|
}
|
|
2755
2746
|
function i(l) {
|
|
2756
|
-
return l === null ||
|
|
2747
|
+
return l === null || z(l) ? e(l) : t(l);
|
|
2757
2748
|
}
|
|
2758
2749
|
}
|
|
2759
2750
|
const ur = {
|
|
@@ -2808,9 +2799,9 @@ function Tl(n, e, t) {
|
|
|
2808
2799
|
}
|
|
2809
2800
|
const cr = {
|
|
2810
2801
|
name: "characterReference",
|
|
2811
|
-
tokenize:
|
|
2802
|
+
tokenize: Ll
|
|
2812
2803
|
};
|
|
2813
|
-
function
|
|
2804
|
+
function Ll(n, e, t) {
|
|
2814
2805
|
const r = this;
|
|
2815
2806
|
let i = 0, l, o;
|
|
2816
2807
|
return a;
|
|
@@ -2833,13 +2824,13 @@ function _l(n, e, t) {
|
|
|
2833
2824
|
}
|
|
2834
2825
|
const xt = {
|
|
2835
2826
|
partial: !0,
|
|
2836
|
-
tokenize:
|
|
2827
|
+
tokenize: _l
|
|
2837
2828
|
}, bt = {
|
|
2838
2829
|
concrete: !0,
|
|
2839
2830
|
name: "codeFenced",
|
|
2840
|
-
tokenize:
|
|
2831
|
+
tokenize: zl
|
|
2841
2832
|
};
|
|
2842
|
-
function
|
|
2833
|
+
function zl(n, e, t) {
|
|
2843
2834
|
const r = this, i = {
|
|
2844
2835
|
partial: !0,
|
|
2845
2836
|
tokenize: j
|
|
@@ -2857,35 +2848,35 @@ function Ll(n, e, t) {
|
|
|
2857
2848
|
return y === a ? (o++, n.consume(y), c) : o < 3 ? t(y) : (n.exit("codeFencedFenceSequence"), D(y) ? H(n, f, "whitespace")(y) : f(y));
|
|
2858
2849
|
}
|
|
2859
2850
|
function f(y) {
|
|
2860
|
-
return y === null ||
|
|
2851
|
+
return y === null || z(y) ? (n.exit("codeFencedFence"), r.interrupt ? e(y) : n.check(xt, b, B)(y)) : (n.enter("codeFencedFenceInfo"), n.enter("chunkString", {
|
|
2861
2852
|
contentType: "string"
|
|
2862
2853
|
}), d(y));
|
|
2863
2854
|
}
|
|
2864
2855
|
function d(y) {
|
|
2865
|
-
return y === null ||
|
|
2856
|
+
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), f(y)) : D(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceInfo"), H(n, p, "whitespace")(y)) : y === 96 && y === a ? t(y) : (n.consume(y), d);
|
|
2866
2857
|
}
|
|
2867
2858
|
function p(y) {
|
|
2868
|
-
return y === null ||
|
|
2859
|
+
return y === null || z(y) ? f(y) : (n.enter("codeFencedFenceMeta"), n.enter("chunkString", {
|
|
2869
2860
|
contentType: "string"
|
|
2870
2861
|
}), w(y));
|
|
2871
2862
|
}
|
|
2872
2863
|
function w(y) {
|
|
2873
|
-
return y === null ||
|
|
2864
|
+
return y === null || z(y) ? (n.exit("chunkString"), n.exit("codeFencedFenceMeta"), f(y)) : y === 96 && y === a ? t(y) : (n.consume(y), w);
|
|
2874
2865
|
}
|
|
2875
2866
|
function b(y) {
|
|
2876
|
-
return n.attempt(i, B,
|
|
2867
|
+
return n.attempt(i, B, L)(y);
|
|
2877
2868
|
}
|
|
2878
|
-
function
|
|
2869
|
+
function L(y) {
|
|
2879
2870
|
return n.enter("lineEnding"), n.consume(y), n.exit("lineEnding"), x;
|
|
2880
2871
|
}
|
|
2881
2872
|
function x(y) {
|
|
2882
2873
|
return l > 0 && D(y) ? H(n, T, "linePrefix", l + 1)(y) : T(y);
|
|
2883
2874
|
}
|
|
2884
2875
|
function T(y) {
|
|
2885
|
-
return y === null ||
|
|
2876
|
+
return y === null || z(y) ? n.check(xt, b, B)(y) : (n.enter("codeFlowValue"), C(y));
|
|
2886
2877
|
}
|
|
2887
2878
|
function C(y) {
|
|
2888
|
-
return y === null ||
|
|
2879
|
+
return y === null || z(y) ? (n.exit("codeFlowValue"), T(y)) : (n.consume(y), C);
|
|
2889
2880
|
}
|
|
2890
2881
|
function B(y) {
|
|
2891
2882
|
return n.exit("codeFenced"), e(y);
|
|
@@ -2893,24 +2884,24 @@ function Ll(n, e, t) {
|
|
|
2893
2884
|
function j(y, R, V) {
|
|
2894
2885
|
let O = 0;
|
|
2895
2886
|
return F;
|
|
2896
|
-
function F(
|
|
2897
|
-
return y.enter("lineEnding"), y.consume(
|
|
2887
|
+
function F(_) {
|
|
2888
|
+
return y.enter("lineEnding"), y.consume(_), y.exit("lineEnding"), A;
|
|
2898
2889
|
}
|
|
2899
|
-
function A(
|
|
2900
|
-
return y.enter("codeFencedFence"), D(
|
|
2890
|
+
function A(_) {
|
|
2891
|
+
return y.enter("codeFencedFence"), D(_) ? H(y, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(_) : E(_);
|
|
2901
2892
|
}
|
|
2902
|
-
function E(
|
|
2903
|
-
return
|
|
2893
|
+
function E(_) {
|
|
2894
|
+
return _ === a ? (y.enter("codeFencedFenceSequence"), P(_)) : V(_);
|
|
2904
2895
|
}
|
|
2905
|
-
function P(
|
|
2906
|
-
return
|
|
2896
|
+
function P(_) {
|
|
2897
|
+
return _ === a ? (O++, y.consume(_), P) : O >= o ? (y.exit("codeFencedFenceSequence"), D(_) ? H(y, I, "whitespace")(_) : I(_)) : V(_);
|
|
2907
2898
|
}
|
|
2908
|
-
function I(
|
|
2909
|
-
return
|
|
2899
|
+
function I(_) {
|
|
2900
|
+
return _ === null || z(_) ? (y.exit("codeFencedFence"), R(_)) : V(_);
|
|
2910
2901
|
}
|
|
2911
2902
|
}
|
|
2912
2903
|
}
|
|
2913
|
-
function
|
|
2904
|
+
function _l(n, e, t) {
|
|
2914
2905
|
const r = this;
|
|
2915
2906
|
return i;
|
|
2916
2907
|
function i(o) {
|
|
@@ -2922,12 +2913,12 @@ function zl(n, e, t) {
|
|
|
2922
2913
|
}
|
|
2923
2914
|
const se = {
|
|
2924
2915
|
name: "codeIndented",
|
|
2925
|
-
tokenize:
|
|
2926
|
-
},
|
|
2916
|
+
tokenize: Nl
|
|
2917
|
+
}, Ml = {
|
|
2927
2918
|
partial: !0,
|
|
2928
2919
|
tokenize: vl
|
|
2929
2920
|
};
|
|
2930
|
-
function
|
|
2921
|
+
function Nl(n, e, t) {
|
|
2931
2922
|
const r = this;
|
|
2932
2923
|
return i;
|
|
2933
2924
|
function i(u) {
|
|
@@ -2938,10 +2929,10 @@ function Ml(n, e, t) {
|
|
|
2938
2929
|
return c && c[1].type === "linePrefix" && c[2].sliceSerialize(c[1], !0).length >= 4 ? o(u) : t(u);
|
|
2939
2930
|
}
|
|
2940
2931
|
function o(u) {
|
|
2941
|
-
return u === null ? s(u) :
|
|
2932
|
+
return u === null ? s(u) : z(u) ? n.attempt(Ml, o, s)(u) : (n.enter("codeFlowValue"), a(u));
|
|
2942
2933
|
}
|
|
2943
2934
|
function a(u) {
|
|
2944
|
-
return u === null ||
|
|
2935
|
+
return u === null || z(u) ? (n.exit("codeFlowValue"), o(u)) : (n.consume(u), a);
|
|
2945
2936
|
}
|
|
2946
2937
|
function s(u) {
|
|
2947
2938
|
return n.exit("codeIndented"), e(u);
|
|
@@ -2951,11 +2942,11 @@ function vl(n, e, t) {
|
|
|
2951
2942
|
const r = this;
|
|
2952
2943
|
return i;
|
|
2953
2944
|
function i(o) {
|
|
2954
|
-
return r.parser.lazy[r.now().line] ? t(o) :
|
|
2945
|
+
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);
|
|
2955
2946
|
}
|
|
2956
2947
|
function l(o) {
|
|
2957
2948
|
const a = r.events[r.events.length - 1];
|
|
2958
|
-
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? e(o) :
|
|
2949
|
+
return a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? e(o) : z(o) ? i(o) : t(o);
|
|
2959
2950
|
}
|
|
2960
2951
|
}
|
|
2961
2952
|
const Rl = {
|
|
@@ -2990,10 +2981,10 @@ function Fl(n, e, t) {
|
|
|
2990
2981
|
return f === 96 ? (n.consume(f), r++, a) : (n.exit("codeTextSequence"), s(f));
|
|
2991
2982
|
}
|
|
2992
2983
|
function s(f) {
|
|
2993
|
-
return f === null ? t(f) : f === 32 ? (n.enter("space"), n.consume(f), n.exit("space"), s) : f === 96 ? (l = n.enter("codeTextSequence"), i = 0, c(f)) :
|
|
2984
|
+
return f === null ? t(f) : f === 32 ? (n.enter("space"), n.consume(f), n.exit("space"), s) : f === 96 ? (l = n.enter("codeTextSequence"), i = 0, c(f)) : z(f) ? (n.enter("lineEnding"), n.consume(f), n.exit("lineEnding"), s) : (n.enter("codeTextData"), u(f));
|
|
2994
2985
|
}
|
|
2995
2986
|
function u(f) {
|
|
2996
|
-
return f === null || f === 32 || f === 96 ||
|
|
2987
|
+
return f === null || f === 32 || f === 96 || z(f) ? (n.exit("codeTextData"), s(f)) : (n.consume(f), u);
|
|
2997
2988
|
}
|
|
2998
2989
|
function c(f) {
|
|
2999
2990
|
return f === 96 ? (n.consume(f), i++, c) : i === r ? (n.exit("codeTextSequence"), n.exit("codeText"), e(f)) : (l.type = "codeTextData", u(f));
|
|
@@ -3203,7 +3194,7 @@ function Ul(n, e) {
|
|
|
3203
3194
|
o || (o = r.parser[t.contentType](t.start), t._contentTypeTextTrailing && (o._contentTypeTextTrailing = !0));
|
|
3204
3195
|
const a = o.events, s = [], u = {};
|
|
3205
3196
|
let c, f, d = -1, p = t, w = 0, b = 0;
|
|
3206
|
-
const
|
|
3197
|
+
const L = [b];
|
|
3207
3198
|
for (; p; ) {
|
|
3208
3199
|
for (; n.get(++i)[1] !== p; )
|
|
3209
3200
|
;
|
|
@@ -3211,9 +3202,9 @@ function Ul(n, e) {
|
|
|
3211
3202
|
}
|
|
3212
3203
|
for (p = t; ++d < a.length; )
|
|
3213
3204
|
// Find a void token that includes a break.
|
|
3214
|
-
a[d][0] === "exit" && a[d - 1][0] === "enter" && a[d][1].type === a[d - 1][1].type && a[d][1].start.line !== a[d][1].end.line && (b = d + 1,
|
|
3215
|
-
for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) :
|
|
3216
|
-
const x = a.slice(
|
|
3205
|
+
a[d][0] === "exit" && a[d - 1][0] === "enter" && a[d][1].type === a[d - 1][1].type && a[d][1].start.line !== a[d][1].end.line && (b = d + 1, L.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
3206
|
+
for (o.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : L.pop(), d = L.length; d--; ) {
|
|
3207
|
+
const x = a.slice(L[d], L[d + 1]), T = l.pop();
|
|
3217
3208
|
s.push([T, T + x.length - 1]), n.splice(T, 2, x);
|
|
3218
3209
|
}
|
|
3219
3210
|
for (s.reverse(), d = -1; ++d < s.length; )
|
|
@@ -3239,7 +3230,7 @@ function Vl(n, e) {
|
|
|
3239
3230
|
}), i(a);
|
|
3240
3231
|
}
|
|
3241
3232
|
function i(a) {
|
|
3242
|
-
return a === null ? l(a) :
|
|
3233
|
+
return a === null ? l(a) : z(a) ? n.check($l, o, l)(a) : (n.consume(a), i);
|
|
3243
3234
|
}
|
|
3244
3235
|
function l(a) {
|
|
3245
3236
|
return n.exit("chunkContent"), n.exit("content"), e(a);
|
|
@@ -3258,7 +3249,7 @@ function ql(n, e, t) {
|
|
|
3258
3249
|
return n.exit("chunkContent"), n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), H(n, l, "linePrefix");
|
|
3259
3250
|
}
|
|
3260
3251
|
function l(o) {
|
|
3261
|
-
if (o === null ||
|
|
3252
|
+
if (o === null || z(o))
|
|
3262
3253
|
return t(o);
|
|
3263
3254
|
const a = r.events[r.events.length - 1];
|
|
3264
3255
|
return !r.parser.constructs.disable.null.includes("codeIndented") && a && a[1].type === "linePrefix" && a[2].sliceSerialize(a[1], !0).length >= 4 ? e(o) : n.interrupt(r.parser.constructs.flow, t, e)(o);
|
|
@@ -3279,15 +3270,15 @@ function pr(n, e, t, r, i, l, o, a, s) {
|
|
|
3279
3270
|
}), p(x));
|
|
3280
3271
|
}
|
|
3281
3272
|
function p(x) {
|
|
3282
|
-
return x === 62 ? (n.exit("chunkString"), n.exit(a), d(x)) : x === null || x === 60 ||
|
|
3273
|
+
return x === 62 ? (n.exit("chunkString"), n.exit(a), d(x)) : x === null || x === 60 || z(x) ? t(x) : (n.consume(x), x === 92 ? w : p);
|
|
3283
3274
|
}
|
|
3284
3275
|
function w(x) {
|
|
3285
3276
|
return x === 60 || x === 62 || x === 92 ? (n.consume(x), p) : p(x);
|
|
3286
3277
|
}
|
|
3287
3278
|
function b(x) {
|
|
3288
|
-
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 || Ie(x) ? t(x) : (n.consume(x), x === 92 ?
|
|
3279
|
+
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 || Ie(x) ? t(x) : (n.consume(x), x === 92 ? L : b);
|
|
3289
3280
|
}
|
|
3290
|
-
function
|
|
3281
|
+
function L(x) {
|
|
3291
3282
|
return x === 40 || x === 41 || x === 92 ? (n.consume(x), b) : b(x);
|
|
3292
3283
|
}
|
|
3293
3284
|
}
|
|
@@ -3304,12 +3295,12 @@ function hr(n, e, t, r, i, l) {
|
|
|
3304
3295
|
// which doesn’t need this.
|
|
3305
3296
|
// Hidden footnotes hook.
|
|
3306
3297
|
/* c8 ignore next 3 */
|
|
3307
|
-
p === 94 && !a && "_hiddenFootnoteSupport" in o.parser.constructs ? t(p) : p === 93 ? (n.exit(l), n.enter(i), n.consume(p), n.exit(i), n.exit(r), e) :
|
|
3298
|
+
p === 94 && !a && "_hiddenFootnoteSupport" in o.parser.constructs ? t(p) : p === 93 ? (n.exit(l), n.enter(i), n.consume(p), n.exit(i), n.exit(r), e) : z(p) ? (n.enter("lineEnding"), n.consume(p), n.exit("lineEnding"), c) : (n.enter("chunkString", {
|
|
3308
3299
|
contentType: "string"
|
|
3309
3300
|
}), f(p));
|
|
3310
3301
|
}
|
|
3311
3302
|
function f(p) {
|
|
3312
|
-
return p === null || p === 91 || p === 93 ||
|
|
3303
|
+
return p === null || p === 91 || p === 93 || z(p) || a++ > 999 ? (n.exit("chunkString"), c(p)) : (n.consume(p), s || (s = !D(p)), p === 92 ? d : f);
|
|
3313
3304
|
}
|
|
3314
3305
|
function d(p) {
|
|
3315
3306
|
return p === 91 || p === 92 || p === 93 ? (n.consume(p), a++, f) : f(p);
|
|
@@ -3325,12 +3316,12 @@ function mr(n, e, t, r, i, l) {
|
|
|
3325
3316
|
return d === o ? (n.enter(i), n.consume(d), n.exit(i), n.exit(r), e) : (n.enter(l), u(d));
|
|
3326
3317
|
}
|
|
3327
3318
|
function u(d) {
|
|
3328
|
-
return d === o ? (n.exit(l), s(o)) : d === null ? t(d) :
|
|
3319
|
+
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", {
|
|
3329
3320
|
contentType: "string"
|
|
3330
3321
|
}), c(d));
|
|
3331
3322
|
}
|
|
3332
3323
|
function c(d) {
|
|
3333
|
-
return d === o || d === null ||
|
|
3324
|
+
return d === o || d === null || z(d) ? (n.exit("chunkString"), u(d)) : (n.consume(d), d === 92 ? f : c);
|
|
3334
3325
|
}
|
|
3335
3326
|
function f(d) {
|
|
3336
3327
|
return d === o || d === 92 ? (n.consume(d), c) : c(d);
|
|
@@ -3340,7 +3331,7 @@ function qn(n, e) {
|
|
|
3340
3331
|
let t;
|
|
3341
3332
|
return r;
|
|
3342
3333
|
function r(i) {
|
|
3343
|
-
return
|
|
3334
|
+
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);
|
|
3344
3335
|
}
|
|
3345
3336
|
}
|
|
3346
3337
|
const Wl = {
|
|
@@ -3370,7 +3361,7 @@ function Gl(n, e, t) {
|
|
|
3370
3361
|
)(p);
|
|
3371
3362
|
}
|
|
3372
3363
|
function a(p) {
|
|
3373
|
-
return i =
|
|
3364
|
+
return i = zn(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (n.enter("definitionMarker"), n.consume(p), n.exit("definitionMarker"), s) : t(p);
|
|
3374
3365
|
}
|
|
3375
3366
|
function s(p) {
|
|
3376
3367
|
return Q(p) ? qn(n, u)(p) : u(p);
|
|
@@ -3395,7 +3386,7 @@ function Gl(n, e, t) {
|
|
|
3395
3386
|
return D(p) ? H(n, d, "whitespace")(p) : d(p);
|
|
3396
3387
|
}
|
|
3397
3388
|
function d(p) {
|
|
3398
|
-
return p === null ||
|
|
3389
|
+
return p === null || z(p) ? (n.exit("definition"), r.parser.defined.push(i), e(p)) : t(p);
|
|
3399
3390
|
}
|
|
3400
3391
|
}
|
|
3401
3392
|
function Yl(n, e, t) {
|
|
@@ -3410,7 +3401,7 @@ function Yl(n, e, t) {
|
|
|
3410
3401
|
return D(a) ? H(n, o, "whitespace")(a) : o(a);
|
|
3411
3402
|
}
|
|
3412
3403
|
function o(a) {
|
|
3413
|
-
return a === null ||
|
|
3404
|
+
return a === null || z(a) ? e(a) : t(a);
|
|
3414
3405
|
}
|
|
3415
3406
|
}
|
|
3416
3407
|
const Kl = {
|
|
@@ -3423,7 +3414,7 @@ function Ql(n, e, t) {
|
|
|
3423
3414
|
return n.enter("hardBreakEscape"), n.consume(l), i;
|
|
3424
3415
|
}
|
|
3425
3416
|
function i(l) {
|
|
3426
|
-
return
|
|
3417
|
+
return z(l) ? (n.exit("hardBreakEscape"), e(l)) : t(l);
|
|
3427
3418
|
}
|
|
3428
3419
|
}
|
|
3429
3420
|
const Jl = {
|
|
@@ -3457,7 +3448,7 @@ function no(n, e, t) {
|
|
|
3457
3448
|
return c === 35 && r++ < 6 ? (n.consume(c), o) : c === null || Q(c) ? (n.exit("atxHeadingSequence"), a(c)) : t(c);
|
|
3458
3449
|
}
|
|
3459
3450
|
function a(c) {
|
|
3460
|
-
return c === 35 ? (n.enter("atxHeadingSequence"), s(c)) : c === null ||
|
|
3451
|
+
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));
|
|
3461
3452
|
}
|
|
3462
3453
|
function s(c) {
|
|
3463
3454
|
return c === 35 ? (n.consume(c), s) : (n.exit("atxHeadingSequence"), a(c));
|
|
@@ -3558,7 +3549,7 @@ function oo(n, e, t) {
|
|
|
3558
3549
|
return n.enter("htmlFlow"), n.enter("htmlFlowData"), n.consume(m), f;
|
|
3559
3550
|
}
|
|
3560
3551
|
function f(m) {
|
|
3561
|
-
return m === 33 ? (n.consume(m), d) : m === 47 ? (n.consume(m), l = !0, b) : m === 63 ? (n.consume(m), i = 3, r.interrupt ? e : h) : sn(m) ? (n.consume(m), o = String.fromCharCode(m),
|
|
3552
|
+
return m === 33 ? (n.consume(m), d) : m === 47 ? (n.consume(m), l = !0, b) : m === 63 ? (n.consume(m), i = 3, r.interrupt ? e : h) : sn(m) ? (n.consume(m), o = String.fromCharCode(m), L) : t(m);
|
|
3562
3553
|
}
|
|
3563
3554
|
function d(m) {
|
|
3564
3555
|
return m === 45 ? (n.consume(m), i = 2, p) : m === 91 ? (n.consume(m), i = 5, a = 0, w) : sn(m) ? (n.consume(m), i = 4, r.interrupt ? e : h) : t(m);
|
|
@@ -3571,14 +3562,14 @@ function oo(n, e, t) {
|
|
|
3571
3562
|
return m === on.charCodeAt(a++) ? (n.consume(m), a === on.length ? r.interrupt ? e : E : w) : t(m);
|
|
3572
3563
|
}
|
|
3573
3564
|
function b(m) {
|
|
3574
|
-
return sn(m) ? (n.consume(m), o = String.fromCharCode(m),
|
|
3565
|
+
return sn(m) ? (n.consume(m), o = String.fromCharCode(m), L) : t(m);
|
|
3575
3566
|
}
|
|
3576
|
-
function
|
|
3567
|
+
function L(m) {
|
|
3577
3568
|
if (m === null || m === 47 || m === 62 || Q(m)) {
|
|
3578
3569
|
const on = m === 47, kn = o.toLowerCase();
|
|
3579
3570
|
return !on && !l && wt.includes(kn) ? (i = 1, r.interrupt ? e(m) : E(m)) : eo.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));
|
|
3580
3571
|
}
|
|
3581
|
-
return m === 45 || en(m) ? (n.consume(m), o += String.fromCharCode(m),
|
|
3572
|
+
return m === 45 || en(m) ? (n.consume(m), o += String.fromCharCode(m), L) : t(m);
|
|
3582
3573
|
}
|
|
3583
3574
|
function x(m) {
|
|
3584
3575
|
return m === 62 ? (n.consume(m), r.interrupt ? e : E) : t(m);
|
|
@@ -3599,7 +3590,7 @@ function oo(n, e, t) {
|
|
|
3599
3590
|
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (n.consume(m), s = m, R) : D(m) ? (n.consume(m), y) : V(m);
|
|
3600
3591
|
}
|
|
3601
3592
|
function R(m) {
|
|
3602
|
-
return m === s ? (n.consume(m), s = null, O) : m === null ||
|
|
3593
|
+
return m === s ? (n.consume(m), s = null, O) : m === null || z(m) ? t(m) : (n.consume(m), R);
|
|
3603
3594
|
}
|
|
3604
3595
|
function V(m) {
|
|
3605
3596
|
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);
|
|
@@ -3611,19 +3602,19 @@ function oo(n, e, t) {
|
|
|
3611
3602
|
return m === 62 ? (n.consume(m), A) : t(m);
|
|
3612
3603
|
}
|
|
3613
3604
|
function A(m) {
|
|
3614
|
-
return m === null ||
|
|
3605
|
+
return m === null || z(m) ? E(m) : D(m) ? (n.consume(m), A) : t(m);
|
|
3615
3606
|
}
|
|
3616
3607
|
function E(m) {
|
|
3617
|
-
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) :
|
|
3608
|
+
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(ro, pn, P)(m)) : m === null || z(m) ? (n.exit("htmlFlowData"), P(m)) : (n.consume(m), E);
|
|
3618
3609
|
}
|
|
3619
3610
|
function P(m) {
|
|
3620
3611
|
return n.check(io, I, pn)(m);
|
|
3621
3612
|
}
|
|
3622
3613
|
function I(m) {
|
|
3623
|
-
return n.enter("lineEnding"), n.consume(m), n.exit("lineEnding"),
|
|
3614
|
+
return n.enter("lineEnding"), n.consume(m), n.exit("lineEnding"), _;
|
|
3624
3615
|
}
|
|
3625
|
-
function
|
|
3626
|
-
return m === null ||
|
|
3616
|
+
function _(m) {
|
|
3617
|
+
return m === null || z(m) ? P(m) : (n.enter("htmlFlowData"), E(m));
|
|
3627
3618
|
}
|
|
3628
3619
|
function W(m) {
|
|
3629
3620
|
return m === 45 ? (n.consume(m), h) : E(m);
|
|
@@ -3645,7 +3636,7 @@ function oo(n, e, t) {
|
|
|
3645
3636
|
return m === 62 ? (n.consume(m), ln) : m === 45 && i === 2 ? (n.consume(m), h) : E(m);
|
|
3646
3637
|
}
|
|
3647
3638
|
function ln(m) {
|
|
3648
|
-
return m === null ||
|
|
3639
|
+
return m === null || z(m) ? (n.exit("htmlFlowData"), pn(m)) : (n.consume(m), ln);
|
|
3649
3640
|
}
|
|
3650
3641
|
function pn(m) {
|
|
3651
3642
|
return n.exit("htmlFlow"), e(m);
|
|
@@ -3655,7 +3646,7 @@ function ao(n, e, t) {
|
|
|
3655
3646
|
const r = this;
|
|
3656
3647
|
return i;
|
|
3657
3648
|
function i(o) {
|
|
3658
|
-
return
|
|
3649
|
+
return z(o) ? (n.enter("lineEnding"), n.consume(o), n.exit("lineEnding"), l) : t(o);
|
|
3659
3650
|
}
|
|
3660
3651
|
function l(o) {
|
|
3661
3652
|
return r.parser.lazy[r.now().line] ? t(o) : e(o);
|
|
@@ -3688,7 +3679,7 @@ function co(n, e, t) {
|
|
|
3688
3679
|
return h === 45 ? (n.consume(h), p) : t(h);
|
|
3689
3680
|
}
|
|
3690
3681
|
function f(h) {
|
|
3691
|
-
return h === null ? t(h) : h === 45 ? (n.consume(h), d) :
|
|
3682
|
+
return h === null ? t(h) : h === 45 ? (n.consume(h), d) : z(h) ? (o = f, X(h)) : (n.consume(h), f);
|
|
3692
3683
|
}
|
|
3693
3684
|
function d(h) {
|
|
3694
3685
|
return h === 45 ? (n.consume(h), p) : f(h);
|
|
@@ -3701,19 +3692,19 @@ function co(n, e, t) {
|
|
|
3701
3692
|
return h === ln.charCodeAt(l++) ? (n.consume(h), l === ln.length ? b : w) : t(h);
|
|
3702
3693
|
}
|
|
3703
3694
|
function b(h) {
|
|
3704
|
-
return h === null ? t(h) : h === 93 ? (n.consume(h),
|
|
3695
|
+
return h === null ? t(h) : h === 93 ? (n.consume(h), L) : z(h) ? (o = b, X(h)) : (n.consume(h), b);
|
|
3705
3696
|
}
|
|
3706
|
-
function
|
|
3697
|
+
function L(h) {
|
|
3707
3698
|
return h === 93 ? (n.consume(h), x) : b(h);
|
|
3708
3699
|
}
|
|
3709
3700
|
function x(h) {
|
|
3710
3701
|
return h === 62 ? W(h) : h === 93 ? (n.consume(h), x) : b(h);
|
|
3711
3702
|
}
|
|
3712
3703
|
function T(h) {
|
|
3713
|
-
return h === null || h === 62 ? W(h) :
|
|
3704
|
+
return h === null || h === 62 ? W(h) : z(h) ? (o = T, X(h)) : (n.consume(h), T);
|
|
3714
3705
|
}
|
|
3715
3706
|
function C(h) {
|
|
3716
|
-
return h === null ? t(h) : h === 63 ? (n.consume(h), B) :
|
|
3707
|
+
return h === null ? t(h) : h === 63 ? (n.consume(h), B) : z(h) ? (o = C, X(h)) : (n.consume(h), C);
|
|
3717
3708
|
}
|
|
3718
3709
|
function B(h) {
|
|
3719
3710
|
return h === 62 ? W(h) : C(h);
|
|
@@ -3725,30 +3716,30 @@ function co(n, e, t) {
|
|
|
3725
3716
|
return h === 45 || en(h) ? (n.consume(h), y) : R(h);
|
|
3726
3717
|
}
|
|
3727
3718
|
function R(h) {
|
|
3728
|
-
return
|
|
3719
|
+
return z(h) ? (o = R, X(h)) : D(h) ? (n.consume(h), R) : W(h);
|
|
3729
3720
|
}
|
|
3730
3721
|
function V(h) {
|
|
3731
3722
|
return h === 45 || en(h) ? (n.consume(h), V) : h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
3732
3723
|
}
|
|
3733
3724
|
function O(h) {
|
|
3734
|
-
return h === 47 ? (n.consume(h), W) : h === 58 || h === 95 || sn(h) ? (n.consume(h), F) :
|
|
3725
|
+
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);
|
|
3735
3726
|
}
|
|
3736
3727
|
function F(h) {
|
|
3737
3728
|
return h === 45 || h === 46 || h === 58 || h === 95 || en(h) ? (n.consume(h), F) : A(h);
|
|
3738
3729
|
}
|
|
3739
3730
|
function A(h) {
|
|
3740
|
-
return h === 61 ? (n.consume(h), E) :
|
|
3731
|
+
return h === 61 ? (n.consume(h), E) : z(h) ? (o = A, X(h)) : D(h) ? (n.consume(h), A) : O(h);
|
|
3741
3732
|
}
|
|
3742
3733
|
function E(h) {
|
|
3743
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? t(h) : h === 34 || h === 39 ? (n.consume(h), i = h, P) :
|
|
3734
|
+
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);
|
|
3744
3735
|
}
|
|
3745
3736
|
function P(h) {
|
|
3746
|
-
return h === i ? (n.consume(h), i = void 0,
|
|
3737
|
+
return h === i ? (n.consume(h), i = void 0, _) : h === null ? t(h) : z(h) ? (o = P, X(h)) : (n.consume(h), P);
|
|
3747
3738
|
}
|
|
3748
3739
|
function I(h) {
|
|
3749
3740
|
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);
|
|
3750
3741
|
}
|
|
3751
|
-
function
|
|
3742
|
+
function _(h) {
|
|
3752
3743
|
return h === 47 || h === 62 || Q(h) ? O(h) : t(h);
|
|
3753
3744
|
}
|
|
3754
3745
|
function W(h) {
|
|
@@ -3838,7 +3829,7 @@ function yo(n, e, t) {
|
|
|
3838
3829
|
}
|
|
3839
3830
|
return a;
|
|
3840
3831
|
function a(d) {
|
|
3841
|
-
return l ? l._inactive ? f(d) : (o = r.parser.defined.includes(
|
|
3832
|
+
return l ? l._inactive ? f(d) : (o = r.parser.defined.includes(zn(r.sliceSerialize({
|
|
3842
3833
|
start: l.end,
|
|
3843
3834
|
end: r.now()
|
|
3844
3835
|
}))), n.enter("labelEnd"), n.enter("labelMarker"), n.consume(d), n.exit("labelMarker"), n.exit("labelEnd"), s) : t(d);
|
|
@@ -3890,7 +3881,7 @@ function xo(n, e, t) {
|
|
|
3890
3881
|
return hr.call(r, n, l, o, "reference", "referenceMarker", "referenceString")(a);
|
|
3891
3882
|
}
|
|
3892
3883
|
function l(a) {
|
|
3893
|
-
return r.parser.defined.includes(
|
|
3884
|
+
return r.parser.defined.includes(zn(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? e(a) : t(a);
|
|
3894
3885
|
}
|
|
3895
3886
|
function o(a) {
|
|
3896
3887
|
return t(a);
|
|
@@ -3962,7 +3953,7 @@ function Po(n, e, t) {
|
|
|
3962
3953
|
return i = u, a(u);
|
|
3963
3954
|
}
|
|
3964
3955
|
function a(u) {
|
|
3965
|
-
return u === i ? (n.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null ||
|
|
3956
|
+
return u === i ? (n.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || z(u)) ? (n.exit("thematicBreak"), e(u)) : t(u);
|
|
3966
3957
|
}
|
|
3967
3958
|
function s(u) {
|
|
3968
3959
|
return u === i ? (n.consume(u), r++, s) : (n.exit("thematicBreakSequence"), D(u) ? H(n, a, "whitespace")(u) : a(u));
|
|
@@ -3970,19 +3961,19 @@ function Po(n, e, t) {
|
|
|
3970
3961
|
}
|
|
3971
3962
|
const K = {
|
|
3972
3963
|
continuation: {
|
|
3973
|
-
tokenize:
|
|
3964
|
+
tokenize: zo
|
|
3974
3965
|
},
|
|
3975
|
-
exit:
|
|
3966
|
+
exit: Mo,
|
|
3976
3967
|
name: "list",
|
|
3977
|
-
tokenize:
|
|
3968
|
+
tokenize: Lo
|
|
3978
3969
|
}, Ao = {
|
|
3979
3970
|
partial: !0,
|
|
3980
|
-
tokenize:
|
|
3971
|
+
tokenize: No
|
|
3981
3972
|
}, To = {
|
|
3982
3973
|
partial: !0,
|
|
3983
|
-
tokenize:
|
|
3974
|
+
tokenize: _o
|
|
3984
3975
|
};
|
|
3985
|
-
function
|
|
3976
|
+
function Lo(n, e, t) {
|
|
3986
3977
|
const r = this, i = r.events[r.events.length - 1];
|
|
3987
3978
|
let l = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, o = 0;
|
|
3988
3979
|
return a;
|
|
@@ -4019,7 +4010,7 @@ function _o(n, e, t) {
|
|
|
4019
4010
|
return r.containerState.size = l + r.sliceSerialize(n.exit("listItemPrefix"), !0).length, e(p);
|
|
4020
4011
|
}
|
|
4021
4012
|
}
|
|
4022
|
-
function
|
|
4013
|
+
function zo(n, e, t) {
|
|
4023
4014
|
const r = this;
|
|
4024
4015
|
return r.containerState._closeFlow = void 0, n.check(ie, i, l);
|
|
4025
4016
|
function i(a) {
|
|
@@ -4032,7 +4023,7 @@ function Lo(n, e, t) {
|
|
|
4032
4023
|
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);
|
|
4033
4024
|
}
|
|
4034
4025
|
}
|
|
4035
|
-
function
|
|
4026
|
+
function _o(n, e, t) {
|
|
4036
4027
|
const r = this;
|
|
4037
4028
|
return H(n, i, "listItemIndent", r.containerState.size + 1);
|
|
4038
4029
|
function i(l) {
|
|
@@ -4040,10 +4031,10 @@ function zo(n, e, t) {
|
|
|
4040
4031
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? e(l) : t(l);
|
|
4041
4032
|
}
|
|
4042
4033
|
}
|
|
4043
|
-
function
|
|
4034
|
+
function Mo(n) {
|
|
4044
4035
|
n.exit(this.containerState.type);
|
|
4045
4036
|
}
|
|
4046
|
-
function
|
|
4037
|
+
function No(n, e, t) {
|
|
4047
4038
|
const r = this;
|
|
4048
4039
|
return H(n, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4049
4040
|
function i(l) {
|
|
@@ -4100,7 +4091,7 @@ function Ro(n, e, t) {
|
|
|
4100
4091
|
return u === i ? (n.consume(u), a) : (n.exit("setextHeadingLineSequence"), D(u) ? H(n, s, "lineSuffix")(u) : s(u));
|
|
4101
4092
|
}
|
|
4102
4093
|
function s(u) {
|
|
4103
|
-
return u === null ||
|
|
4094
|
+
return u === null || z(u) ? (n.exit("setextHeadingLine"), e(u)) : t(u);
|
|
4104
4095
|
}
|
|
4105
4096
|
}
|
|
4106
4097
|
const Do = {
|
|
@@ -4307,7 +4298,7 @@ function Jo(n, e, t) {
|
|
|
4307
4298
|
let c = e.tokenize.call(u, s);
|
|
4308
4299
|
return e.resolveAll && l.push(e), u;
|
|
4309
4300
|
function f(A) {
|
|
4310
|
-
return o = tn(o, A),
|
|
4301
|
+
return o = tn(o, A), L(), o[o.length - 1] !== null ? [] : (V(e, 0), u.events = $e(l, u.events, u), u.events);
|
|
4311
4302
|
}
|
|
4312
4303
|
function d(A, E) {
|
|
4313
4304
|
return na(p(A), E);
|
|
@@ -4321,20 +4312,20 @@ function Jo(n, e, t) {
|
|
|
4321
4312
|
_index: E,
|
|
4322
4313
|
line: P,
|
|
4323
4314
|
column: I,
|
|
4324
|
-
offset:
|
|
4315
|
+
offset: _
|
|
4325
4316
|
} = r;
|
|
4326
4317
|
return {
|
|
4327
4318
|
_bufferIndex: A,
|
|
4328
4319
|
_index: E,
|
|
4329
4320
|
line: P,
|
|
4330
4321
|
column: I,
|
|
4331
|
-
offset:
|
|
4322
|
+
offset: _
|
|
4332
4323
|
};
|
|
4333
4324
|
}
|
|
4334
4325
|
function b(A) {
|
|
4335
4326
|
i[A.line] = A.column, F();
|
|
4336
4327
|
}
|
|
4337
|
-
function
|
|
4328
|
+
function L() {
|
|
4338
4329
|
let A;
|
|
4339
4330
|
for (; r._index < o.length; ) {
|
|
4340
4331
|
const E = o[r._index];
|
|
@@ -4349,7 +4340,7 @@ function Jo(n, e, t) {
|
|
|
4349
4340
|
c = c(A);
|
|
4350
4341
|
}
|
|
4351
4342
|
function T(A) {
|
|
4352
|
-
|
|
4343
|
+
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
|
|
4353
4344
|
// strings.
|
|
4354
4345
|
/** @type {string} */
|
|
4355
4346
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = A;
|
|
@@ -4370,7 +4361,7 @@ function Jo(n, e, t) {
|
|
|
4370
4361
|
}
|
|
4371
4362
|
function R(A, E) {
|
|
4372
4363
|
return P;
|
|
4373
|
-
function P(I,
|
|
4364
|
+
function P(I, _, W) {
|
|
4374
4365
|
let X, rn, fn, h;
|
|
4375
4366
|
return Array.isArray(I) ? (
|
|
4376
4367
|
/* c8 ignore next 1 */
|
|
@@ -4383,8 +4374,8 @@ function Jo(n, e, t) {
|
|
|
4383
4374
|
])
|
|
4384
4375
|
) : ln(I);
|
|
4385
4376
|
function ln(G) {
|
|
4386
|
-
return
|
|
4387
|
-
function
|
|
4377
|
+
return Nn;
|
|
4378
|
+
function Nn(dn) {
|
|
4388
4379
|
const Cn = dn !== null && G[dn], In = dn !== null && G.null, Yn = [
|
|
4389
4380
|
// To do: add more extension tests.
|
|
4390
4381
|
/* c8 ignore next 2 */
|
|
@@ -4398,8 +4389,8 @@ function Jo(n, e, t) {
|
|
|
4398
4389
|
return X = G, rn = 0, G.length === 0 ? W : m(G[rn]);
|
|
4399
4390
|
}
|
|
4400
4391
|
function m(G) {
|
|
4401
|
-
return
|
|
4402
|
-
function
|
|
4392
|
+
return Nn;
|
|
4393
|
+
function Nn(dn) {
|
|
4403
4394
|
return h = O(), fn = G, G.partial || (u.currentConstruct = G), G.name && u.parser.constructs.disable.null.includes(G.name) ? kn() : G.tokenize.call(
|
|
4404
4395
|
// If we do have fields, create an object w/ `context` as its
|
|
4405
4396
|
// prototype.
|
|
@@ -4412,7 +4403,7 @@ function Jo(n, e, t) {
|
|
|
4412
4403
|
}
|
|
4413
4404
|
}
|
|
4414
4405
|
function on(G) {
|
|
4415
|
-
return A(fn, h),
|
|
4406
|
+
return A(fn, h), _;
|
|
4416
4407
|
}
|
|
4417
4408
|
function kn(G) {
|
|
4418
4409
|
return h.restore(), ++rn < X.length ? m(X[rn]) : W;
|
|
@@ -4423,13 +4414,13 @@ function Jo(n, e, t) {
|
|
|
4423
4414
|
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));
|
|
4424
4415
|
}
|
|
4425
4416
|
function O() {
|
|
4426
|
-
const A = w(), E = u.previous, P = u.currentConstruct, I = u.events.length,
|
|
4417
|
+
const A = w(), E = u.previous, P = u.currentConstruct, I = u.events.length, _ = Array.from(a);
|
|
4427
4418
|
return {
|
|
4428
4419
|
from: I,
|
|
4429
4420
|
restore: W
|
|
4430
4421
|
};
|
|
4431
4422
|
function W() {
|
|
4432
|
-
r = A, u.previous = E, u.currentConstruct = P, u.events.length = I, a =
|
|
4423
|
+
r = A, u.previous = E, u.currentConstruct = P, u.events.length = I, a = _, F();
|
|
4433
4424
|
}
|
|
4434
4425
|
}
|
|
4435
4426
|
function F() {
|
|
@@ -4615,7 +4606,7 @@ function ua(n) {
|
|
|
4615
4606
|
resourceTitleString: o,
|
|
4616
4607
|
setextHeading: l(We),
|
|
4617
4608
|
strong: l(Tr),
|
|
4618
|
-
thematicBreak: l(
|
|
4609
|
+
thematicBreak: l(zr)
|
|
4619
4610
|
},
|
|
4620
4611
|
exit: {
|
|
4621
4612
|
atxHeading: s(),
|
|
@@ -4628,14 +4619,14 @@ function ua(n) {
|
|
|
4628
4619
|
characterReferenceMarkerHexadecimal: kn,
|
|
4629
4620
|
characterReferenceMarkerNumeric: kn,
|
|
4630
4621
|
characterReferenceValue: G,
|
|
4631
|
-
characterReference:
|
|
4632
|
-
codeFenced: s(
|
|
4622
|
+
characterReference: Nn,
|
|
4623
|
+
codeFenced: s(L),
|
|
4633
4624
|
codeFencedFence: b,
|
|
4634
4625
|
codeFencedFenceInfo: p,
|
|
4635
4626
|
codeFencedFenceMeta: w,
|
|
4636
4627
|
codeFlowValue: F,
|
|
4637
4628
|
codeIndented: s(x),
|
|
4638
|
-
codeText: s(
|
|
4629
|
+
codeText: s(_),
|
|
4639
4630
|
codeTextData: F,
|
|
4640
4631
|
data: F,
|
|
4641
4632
|
definition: s(),
|
|
@@ -4677,7 +4668,7 @@ function ua(n) {
|
|
|
4677
4668
|
type: "root",
|
|
4678
4669
|
children: []
|
|
4679
4670
|
};
|
|
4680
|
-
const
|
|
4671
|
+
const M = {
|
|
4681
4672
|
stack: [S],
|
|
4682
4673
|
tokenStack: [],
|
|
4683
4674
|
config: e,
|
|
@@ -4700,11 +4691,11 @@ function ua(n) {
|
|
|
4700
4691
|
const an = e[g[U][0]];
|
|
4701
4692
|
yr.call(an, g[U][1].type) && an[g[U][1].type].call(Object.assign({
|
|
4702
4693
|
sliceSerialize: g[U][2].sliceSerialize
|
|
4703
|
-
},
|
|
4694
|
+
}, M), g[U][1]);
|
|
4704
4695
|
}
|
|
4705
|
-
if (
|
|
4706
|
-
const an =
|
|
4707
|
-
(an[1] || It).call(
|
|
4696
|
+
if (M.tokenStack.length > 0) {
|
|
4697
|
+
const an = M.tokenStack[M.tokenStack.length - 1];
|
|
4698
|
+
(an[1] || It).call(M, void 0, an[0]);
|
|
4708
4699
|
}
|
|
4709
4700
|
for (S.position = {
|
|
4710
4701
|
start: gn(g.length > 0 ? g[0][1].start : {
|
|
@@ -4721,9 +4712,9 @@ function ua(n) {
|
|
|
4721
4712
|
S = e.transforms[U](S) || S;
|
|
4722
4713
|
return S;
|
|
4723
4714
|
}
|
|
4724
|
-
function i(g, S,
|
|
4715
|
+
function i(g, S, M) {
|
|
4725
4716
|
let v = S - 1, U = -1, an = !1, xn, hn, vn, Rn;
|
|
4726
|
-
for (; ++v <=
|
|
4717
|
+
for (; ++v <= M; ) {
|
|
4727
4718
|
const Z = g[v];
|
|
4728
4719
|
switch (Z[1].type) {
|
|
4729
4720
|
case "listUnordered":
|
|
@@ -4755,7 +4746,7 @@ function ua(n) {
|
|
|
4755
4746
|
hn && (g[hn][1].type = "lineEndingBlank", an = !0), mn[1].type = "lineEnding", hn = En;
|
|
4756
4747
|
} else if (!(mn[1].type === "linePrefix" || mn[1].type === "blockQuotePrefix" || mn[1].type === "blockQuotePrefixWhitespace" || mn[1].type === "blockQuoteMarker" || mn[1].type === "listItemIndent")) break;
|
|
4757
4748
|
}
|
|
4758
|
-
vn && (!hn || vn < hn) && (xn._spread = !0), xn.end = Object.assign({}, hn ? g[hn][1].start : Z[1].end), g.splice(hn || v, 0, ["exit", xn, Z[2]]), v++,
|
|
4749
|
+
vn && (!hn || vn < hn) && (xn._spread = !0), xn.end = Object.assign({}, hn ? g[hn][1].start : Z[1].end), g.splice(hn || v, 0, ["exit", xn, Z[2]]), v++, M++;
|
|
4759
4750
|
}
|
|
4760
4751
|
if (Z[1].type === "listItemPrefix") {
|
|
4761
4752
|
const En = {
|
|
@@ -4765,15 +4756,15 @@ function ua(n) {
|
|
|
4765
4756
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
4766
4757
|
end: void 0
|
|
4767
4758
|
};
|
|
4768
|
-
xn = En, g.splice(v, 0, ["enter", En, Z[2]]), v++,
|
|
4759
|
+
xn = En, g.splice(v, 0, ["enter", En, Z[2]]), v++, M++, vn = void 0, Rn = !0;
|
|
4769
4760
|
}
|
|
4770
4761
|
}
|
|
4771
4762
|
}
|
|
4772
|
-
return g[S][1]._spread = an,
|
|
4763
|
+
return g[S][1]._spread = an, M;
|
|
4773
4764
|
}
|
|
4774
4765
|
function l(g, S) {
|
|
4775
|
-
return
|
|
4776
|
-
function
|
|
4766
|
+
return M;
|
|
4767
|
+
function M(v) {
|
|
4777
4768
|
a.call(this, g(v), v), S && S.call(this, v);
|
|
4778
4769
|
}
|
|
4779
4770
|
}
|
|
@@ -4783,8 +4774,8 @@ function ua(n) {
|
|
|
4783
4774
|
children: []
|
|
4784
4775
|
});
|
|
4785
4776
|
}
|
|
4786
|
-
function a(g, S,
|
|
4787
|
-
this.stack[this.stack.length - 1].children.push(g), this.stack.push(g), this.tokenStack.push([S,
|
|
4777
|
+
function a(g, S, M) {
|
|
4778
|
+
this.stack[this.stack.length - 1].children.push(g), this.stack.push(g), this.tokenStack.push([S, M || void 0]), g.position = {
|
|
4788
4779
|
start: gn(S.start),
|
|
4789
4780
|
// @ts-expect-error: `end` will be patched later.
|
|
4790
4781
|
end: void 0
|
|
@@ -4792,19 +4783,19 @@ function ua(n) {
|
|
|
4792
4783
|
}
|
|
4793
4784
|
function s(g) {
|
|
4794
4785
|
return S;
|
|
4795
|
-
function S(
|
|
4796
|
-
g && g.call(this,
|
|
4786
|
+
function S(M) {
|
|
4787
|
+
g && g.call(this, M), u.call(this, M);
|
|
4797
4788
|
}
|
|
4798
4789
|
}
|
|
4799
4790
|
function u(g, S) {
|
|
4800
|
-
const
|
|
4791
|
+
const M = this.stack.pop(), v = this.tokenStack.pop();
|
|
4801
4792
|
if (v)
|
|
4802
4793
|
v[0].type !== g.type && (S ? S.call(this, g, v[0]) : (v[1] || It).call(this, g, v[0]));
|
|
4803
4794
|
else throw new Error("Cannot close `" + g.type + "` (" + Vn({
|
|
4804
4795
|
start: g.start,
|
|
4805
4796
|
end: g.end
|
|
4806
4797
|
}) + "): it’s not open");
|
|
4807
|
-
|
|
4798
|
+
M.position.end = gn(g.end);
|
|
4808
4799
|
}
|
|
4809
4800
|
function c() {
|
|
4810
4801
|
return ll(this.stack.pop());
|
|
@@ -4829,7 +4820,7 @@ function ua(n) {
|
|
|
4829
4820
|
function b() {
|
|
4830
4821
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
4831
4822
|
}
|
|
4832
|
-
function
|
|
4823
|
+
function L() {
|
|
4833
4824
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4834
4825
|
S.value = g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
4835
4826
|
}
|
|
@@ -4838,8 +4829,8 @@ function ua(n) {
|
|
|
4838
4829
|
S.value = g.replace(/(\r?\n|\r)$/g, "");
|
|
4839
4830
|
}
|
|
4840
4831
|
function T(g) {
|
|
4841
|
-
const S = this.resume(),
|
|
4842
|
-
|
|
4832
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
4833
|
+
M.label = S, M.identifier = zn(this.sliceSerialize(g)).toLowerCase();
|
|
4843
4834
|
}
|
|
4844
4835
|
function C() {
|
|
4845
4836
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
@@ -4852,8 +4843,8 @@ function ua(n) {
|
|
|
4852
4843
|
function j(g) {
|
|
4853
4844
|
const S = this.stack[this.stack.length - 1];
|
|
4854
4845
|
if (!S.depth) {
|
|
4855
|
-
const
|
|
4856
|
-
S.depth =
|
|
4846
|
+
const M = this.sliceSerialize(g).length;
|
|
4847
|
+
S.depth = M;
|
|
4857
4848
|
}
|
|
4858
4849
|
}
|
|
4859
4850
|
function y() {
|
|
@@ -4867,13 +4858,13 @@ function ua(n) {
|
|
|
4867
4858
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
4868
4859
|
}
|
|
4869
4860
|
function O(g) {
|
|
4870
|
-
const
|
|
4871
|
-
let v =
|
|
4872
|
-
(!v || v.type !== "text") && (v =
|
|
4861
|
+
const M = this.stack[this.stack.length - 1].children;
|
|
4862
|
+
let v = M[M.length - 1];
|
|
4863
|
+
(!v || v.type !== "text") && (v = Lr(), v.position = {
|
|
4873
4864
|
start: gn(g.start),
|
|
4874
4865
|
// @ts-expect-error: we’ll add `end` later.
|
|
4875
4866
|
end: void 0
|
|
4876
|
-
},
|
|
4867
|
+
}, M.push(v)), this.stack.push(v);
|
|
4877
4868
|
}
|
|
4878
4869
|
function F(g) {
|
|
4879
4870
|
const S = this.stack.pop();
|
|
@@ -4882,8 +4873,8 @@ function ua(n) {
|
|
|
4882
4873
|
function A(g) {
|
|
4883
4874
|
const S = this.stack[this.stack.length - 1];
|
|
4884
4875
|
if (this.data.atHardBreak) {
|
|
4885
|
-
const
|
|
4886
|
-
|
|
4876
|
+
const M = S.children[S.children.length - 1];
|
|
4877
|
+
M.position.end = gn(g.end), this.data.atHardBreak = void 0;
|
|
4887
4878
|
return;
|
|
4888
4879
|
}
|
|
4889
4880
|
!this.data.setextHeadingSlurpLineEnding && e.canContainEols.includes(S.type) && (O.call(this, g), F.call(this, g));
|
|
@@ -4899,7 +4890,7 @@ function ua(n) {
|
|
|
4899
4890
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4900
4891
|
S.value = g;
|
|
4901
4892
|
}
|
|
4902
|
-
function
|
|
4893
|
+
function _() {
|
|
4903
4894
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
4904
4895
|
S.value = g;
|
|
4905
4896
|
}
|
|
@@ -4922,16 +4913,16 @@ function ua(n) {
|
|
|
4922
4913
|
this.data.referenceType = void 0;
|
|
4923
4914
|
}
|
|
4924
4915
|
function rn(g) {
|
|
4925
|
-
const S = this.sliceSerialize(g),
|
|
4926
|
-
|
|
4916
|
+
const S = this.sliceSerialize(g), M = this.stack[this.stack.length - 2];
|
|
4917
|
+
M.label = la(S), M.identifier = zn(S).toLowerCase();
|
|
4927
4918
|
}
|
|
4928
4919
|
function fn() {
|
|
4929
|
-
const g = this.stack[this.stack.length - 1], S = this.resume(),
|
|
4930
|
-
if (this.data.inReference = !0,
|
|
4920
|
+
const g = this.stack[this.stack.length - 1], S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
4921
|
+
if (this.data.inReference = !0, M.type === "link") {
|
|
4931
4922
|
const v = g.children;
|
|
4932
|
-
|
|
4923
|
+
M.children = v;
|
|
4933
4924
|
} else
|
|
4934
|
-
|
|
4925
|
+
M.alt = S;
|
|
4935
4926
|
}
|
|
4936
4927
|
function h() {
|
|
4937
4928
|
const g = this.resume(), S = this.stack[this.stack.length - 1];
|
|
@@ -4948,20 +4939,20 @@ function ua(n) {
|
|
|
4948
4939
|
this.data.referenceType = "collapsed";
|
|
4949
4940
|
}
|
|
4950
4941
|
function on(g) {
|
|
4951
|
-
const S = this.resume(),
|
|
4952
|
-
|
|
4942
|
+
const S = this.resume(), M = this.stack[this.stack.length - 1];
|
|
4943
|
+
M.label = S, M.identifier = zn(this.sliceSerialize(g)).toLowerCase(), this.data.referenceType = "full";
|
|
4953
4944
|
}
|
|
4954
4945
|
function kn(g) {
|
|
4955
4946
|
this.data.characterReferenceType = g.type;
|
|
4956
4947
|
}
|
|
4957
4948
|
function G(g) {
|
|
4958
|
-
const S = this.sliceSerialize(g),
|
|
4949
|
+
const S = this.sliceSerialize(g), M = this.data.characterReferenceType;
|
|
4959
4950
|
let v;
|
|
4960
|
-
|
|
4951
|
+
M ? (v = ar(S, M === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : v = je(S);
|
|
4961
4952
|
const U = this.stack[this.stack.length - 1];
|
|
4962
4953
|
U.value += v;
|
|
4963
4954
|
}
|
|
4964
|
-
function
|
|
4955
|
+
function Nn(g) {
|
|
4965
4956
|
const S = this.stack.pop();
|
|
4966
4957
|
S.position.end = gn(g.end);
|
|
4967
4958
|
}
|
|
@@ -5074,13 +5065,13 @@ function ua(n) {
|
|
|
5074
5065
|
children: []
|
|
5075
5066
|
};
|
|
5076
5067
|
}
|
|
5077
|
-
function
|
|
5068
|
+
function Lr() {
|
|
5078
5069
|
return {
|
|
5079
5070
|
type: "text",
|
|
5080
5071
|
value: ""
|
|
5081
5072
|
};
|
|
5082
5073
|
}
|
|
5083
|
-
function
|
|
5074
|
+
function zr() {
|
|
5084
5075
|
return {
|
|
5085
5076
|
type: "thematicBreak"
|
|
5086
5077
|
};
|
|
@@ -5195,7 +5186,7 @@ function da(n, e) {
|
|
|
5195
5186
|
return n.patch(e, t), n.applyData(e, t);
|
|
5196
5187
|
}
|
|
5197
5188
|
function ga(n, e) {
|
|
5198
|
-
const t = typeof n.options.clobberPrefix == "string" ? n.options.clobberPrefix : "user-content-", r = String(e.identifier).toUpperCase(), i =
|
|
5189
|
+
const t = typeof n.options.clobberPrefix == "string" ? n.options.clobberPrefix : "user-content-", r = String(e.identifier).toUpperCase(), i = Mn(r.toLowerCase()), l = n.footnoteOrder.indexOf(r);
|
|
5199
5190
|
let o, a = n.footnoteCounts.get(r);
|
|
5200
5191
|
a === void 0 ? (a = 0, n.footnoteOrder.push(r), o = n.footnoteOrder.length) : o = l + 1, a += 1, n.footnoteCounts.set(r, a);
|
|
5201
5192
|
const s = {
|
|
@@ -5247,13 +5238,13 @@ function xa(n, e) {
|
|
|
5247
5238
|
const t = String(e.identifier).toUpperCase(), r = n.definitionById.get(t);
|
|
5248
5239
|
if (!r)
|
|
5249
5240
|
return xr(n, e);
|
|
5250
|
-
const i = { src:
|
|
5241
|
+
const i = { src: Mn(r.url || ""), alt: e.alt };
|
|
5251
5242
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5252
5243
|
const l = { type: "element", tagName: "img", properties: i, children: [] };
|
|
5253
5244
|
return n.patch(e, l), n.applyData(e, l);
|
|
5254
5245
|
}
|
|
5255
5246
|
function ba(n, e) {
|
|
5256
|
-
const t = { src:
|
|
5247
|
+
const t = { src: Mn(e.url) };
|
|
5257
5248
|
e.alt !== null && e.alt !== void 0 && (t.alt = e.alt), e.title !== null && e.title !== void 0 && (t.title = e.title);
|
|
5258
5249
|
const r = { type: "element", tagName: "img", properties: t, children: [] };
|
|
5259
5250
|
return n.patch(e, r), n.applyData(e, r);
|
|
@@ -5273,7 +5264,7 @@ function Sa(n, e) {
|
|
|
5273
5264
|
const t = String(e.identifier).toUpperCase(), r = n.definitionById.get(t);
|
|
5274
5265
|
if (!r)
|
|
5275
5266
|
return xr(n, e);
|
|
5276
|
-
const i = { href:
|
|
5267
|
+
const i = { href: Mn(r.url || "") };
|
|
5277
5268
|
r.title !== null && r.title !== void 0 && (i.title = r.title);
|
|
5278
5269
|
const l = {
|
|
5279
5270
|
type: "element",
|
|
@@ -5284,7 +5275,7 @@ function Sa(n, e) {
|
|
|
5284
5275
|
return n.patch(e, l), n.applyData(e, l);
|
|
5285
5276
|
}
|
|
5286
5277
|
function Ca(n, e) {
|
|
5287
|
-
const t = { href:
|
|
5278
|
+
const t = { href: Mn(e.url) };
|
|
5288
5279
|
e.title !== null && e.title !== void 0 && (t.title = e.title);
|
|
5289
5280
|
const r = {
|
|
5290
5281
|
type: "element",
|
|
@@ -5364,7 +5355,7 @@ function Ta(n, e) {
|
|
|
5364
5355
|
const t = { type: "root", children: n.wrap(n.all(e)) };
|
|
5365
5356
|
return n.patch(e, t), n.applyData(e, t);
|
|
5366
5357
|
}
|
|
5367
|
-
function
|
|
5358
|
+
function La(n, e) {
|
|
5368
5359
|
const t = {
|
|
5369
5360
|
type: "element",
|
|
5370
5361
|
tagName: "strong",
|
|
@@ -5373,7 +5364,7 @@ function _a(n, e) {
|
|
|
5373
5364
|
};
|
|
5374
5365
|
return n.patch(e, t), n.applyData(e, t);
|
|
5375
5366
|
}
|
|
5376
|
-
function
|
|
5367
|
+
function za(n, e) {
|
|
5377
5368
|
const t = n.all(e), r = t.shift(), i = [];
|
|
5378
5369
|
if (r) {
|
|
5379
5370
|
const o = {
|
|
@@ -5401,7 +5392,7 @@ function La(n, e) {
|
|
|
5401
5392
|
};
|
|
5402
5393
|
return n.patch(e, l), n.applyData(e, l);
|
|
5403
5394
|
}
|
|
5404
|
-
function
|
|
5395
|
+
function _a(n, e, t) {
|
|
5405
5396
|
const r = t ? t.children : void 0, l = (r ? r.indexOf(e) : 1) === 0 ? "th" : "td", o = t && t.type === "table" ? t.align : void 0, a = o ? o.length : e.children.length;
|
|
5406
5397
|
let s = -1;
|
|
5407
5398
|
const u = [];
|
|
@@ -5419,7 +5410,7 @@ function za(n, e, t) {
|
|
|
5419
5410
|
};
|
|
5420
5411
|
return n.patch(e, c), n.applyData(e, c);
|
|
5421
5412
|
}
|
|
5422
|
-
function
|
|
5413
|
+
function Ma(n, e) {
|
|
5423
5414
|
const t = {
|
|
5424
5415
|
type: "element",
|
|
5425
5416
|
tagName: "td",
|
|
@@ -5430,7 +5421,7 @@ function Na(n, e) {
|
|
|
5430
5421
|
return n.patch(e, t), n.applyData(e, t);
|
|
5431
5422
|
}
|
|
5432
5423
|
const Et = 9, Pt = 32;
|
|
5433
|
-
function
|
|
5424
|
+
function Na(n) {
|
|
5434
5425
|
const e = String(n), t = /\r?\n|\r/g;
|
|
5435
5426
|
let r = t.exec(e), i = 0;
|
|
5436
5427
|
const l = [];
|
|
@@ -5456,7 +5447,7 @@ function At(n, e, t) {
|
|
|
5456
5447
|
return i > r ? n.slice(r, i) : "";
|
|
5457
5448
|
}
|
|
5458
5449
|
function va(n, e) {
|
|
5459
|
-
const t = { type: "text", value:
|
|
5450
|
+
const t = { type: "text", value: Na(String(e.value)) };
|
|
5460
5451
|
return n.patch(e, t), n.applyData(e, t);
|
|
5461
5452
|
}
|
|
5462
5453
|
function Ra(n, e) {
|
|
@@ -5487,10 +5478,10 @@ const Da = {
|
|
|
5487
5478
|
paragraph: Aa,
|
|
5488
5479
|
// @ts-expect-error: root is different, but hard to type.
|
|
5489
5480
|
root: Ta,
|
|
5490
|
-
strong:
|
|
5491
|
-
table:
|
|
5492
|
-
tableCell:
|
|
5493
|
-
tableRow:
|
|
5481
|
+
strong: La,
|
|
5482
|
+
table: za,
|
|
5483
|
+
tableCell: Ma,
|
|
5484
|
+
tableRow: _a,
|
|
5494
5485
|
text: va,
|
|
5495
5486
|
thematicBreak: Ra,
|
|
5496
5487
|
toml: Qn,
|
|
@@ -5523,7 +5514,7 @@ function Ba(n) {
|
|
|
5523
5514
|
);
|
|
5524
5515
|
if (!u)
|
|
5525
5516
|
continue;
|
|
5526
|
-
const c = n.all(u), f = String(u.identifier).toUpperCase(), d =
|
|
5517
|
+
const c = n.all(u), f = String(u.identifier).toUpperCase(), d = Mn(f.toLowerCase());
|
|
5527
5518
|
let p = 0;
|
|
5528
5519
|
const w = [], b = n.footnoteCounts.get(f);
|
|
5529
5520
|
for (; b !== void 0 && ++p <= b; ) {
|
|
@@ -5541,10 +5532,10 @@ function Ba(n) {
|
|
|
5541
5532
|
children: Array.isArray(T) ? T : [T]
|
|
5542
5533
|
});
|
|
5543
5534
|
}
|
|
5544
|
-
const
|
|
5545
|
-
if (
|
|
5546
|
-
const T =
|
|
5547
|
-
T && T.type === "text" ? T.value += " " :
|
|
5535
|
+
const L = c[c.length - 1];
|
|
5536
|
+
if (L && L.type === "element" && L.tagName === "p") {
|
|
5537
|
+
const T = L.children[L.children.length - 1];
|
|
5538
|
+
T && T.type === "text" ? T.value += " " : L.children.push({ type: "text", value: " " }), L.children.push(...w);
|
|
5548
5539
|
} else
|
|
5549
5540
|
c.push(...w);
|
|
5550
5541
|
const x = {
|
|
@@ -5610,7 +5601,7 @@ function ja(n, e) {
|
|
|
5610
5601
|
return p(a, c, f);
|
|
5611
5602
|
if (a.options.passThrough && a.options.passThrough.includes(d)) {
|
|
5612
5603
|
if ("children" in c) {
|
|
5613
|
-
const { children: b, ...
|
|
5604
|
+
const { children: b, ...L } = c, x = bn(L);
|
|
5614
5605
|
return x.children = a.all(c), x;
|
|
5615
5606
|
}
|
|
5616
5607
|
return bn(c);
|
|
@@ -5679,7 +5670,7 @@ function Tt(n) {
|
|
|
5679
5670
|
e++, t = n.charCodeAt(e);
|
|
5680
5671
|
return n.slice(e);
|
|
5681
5672
|
}
|
|
5682
|
-
function
|
|
5673
|
+
function Lt(n, e) {
|
|
5683
5674
|
const t = ja(n, e), r = t.one(n, void 0), i = Ba(t), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
5684
5675
|
return i && l.children.push({ type: "text", value: `
|
|
5685
5676
|
` }, i), l;
|
|
@@ -5688,24 +5679,24 @@ function Wa(n, e) {
|
|
|
5688
5679
|
return n && "run" in n ? async function(t, r) {
|
|
5689
5680
|
const i = (
|
|
5690
5681
|
/** @type {HastRoot} */
|
|
5691
|
-
|
|
5682
|
+
Lt(t, { file: r, ...e })
|
|
5692
5683
|
);
|
|
5693
5684
|
await n.run(i, r);
|
|
5694
5685
|
} : function(t, r) {
|
|
5695
5686
|
return (
|
|
5696
5687
|
/** @type {HastRoot} */
|
|
5697
|
-
|
|
5688
|
+
Lt(t, { file: r, ...n || e })
|
|
5698
5689
|
);
|
|
5699
5690
|
};
|
|
5700
5691
|
}
|
|
5701
|
-
function
|
|
5692
|
+
function zt(n) {
|
|
5702
5693
|
if (n)
|
|
5703
5694
|
throw n;
|
|
5704
5695
|
}
|
|
5705
|
-
var fe,
|
|
5696
|
+
var fe, _t;
|
|
5706
5697
|
function Xa() {
|
|
5707
|
-
if (
|
|
5708
|
-
|
|
5698
|
+
if (_t) return fe;
|
|
5699
|
+
_t = 1;
|
|
5709
5700
|
var n = Object.prototype.hasOwnProperty, e = Object.prototype.toString, t = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(u) {
|
|
5710
5701
|
return typeof Array.isArray == "function" ? Array.isArray(u) : e.call(u) === "[object Array]";
|
|
5711
5702
|
}, l = function(u) {
|
|
@@ -5734,9 +5725,9 @@ function Xa() {
|
|
|
5734
5725
|
return u[c];
|
|
5735
5726
|
};
|
|
5736
5727
|
return fe = function s() {
|
|
5737
|
-
var u, c, f, d, p, w, b = arguments[0],
|
|
5738
|
-
for (typeof b == "boolean" && (T = b, b = arguments[1] || {},
|
|
5739
|
-
if (u = arguments[
|
|
5728
|
+
var u, c, f, d, p, w, b = arguments[0], L = 1, x = arguments.length, T = !1;
|
|
5729
|
+
for (typeof b == "boolean" && (T = b, b = arguments[1] || {}, L = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); L < x; ++L)
|
|
5730
|
+
if (u = arguments[L], u != null)
|
|
5740
5731
|
for (c in u)
|
|
5741
5732
|
f = a(b, c), d = a(u, c), b !== d && (T && d && (l(d) || (p = i(d))) ? (p ? (p = !1, w = f && i(f) ? f : []) : w = f && l(f) ? f : {}, o(b, { name: c, newValue: s(T, w, d) })) : typeof d < "u" && o(b, { name: c, newValue: d }));
|
|
5742
5733
|
return b;
|
|
@@ -5919,14 +5910,14 @@ const ru = { cwd: iu };
|
|
|
5919
5910
|
function iu() {
|
|
5920
5911
|
return "/";
|
|
5921
5912
|
}
|
|
5922
|
-
function
|
|
5913
|
+
function Le(n) {
|
|
5923
5914
|
return !!(n !== null && typeof n == "object" && "href" in n && n.href && "protocol" in n && n.protocol && // @ts-expect-error: indexing is fine.
|
|
5924
5915
|
n.auth === void 0);
|
|
5925
5916
|
}
|
|
5926
5917
|
function lu(n) {
|
|
5927
5918
|
if (typeof n == "string")
|
|
5928
5919
|
n = new URL(n);
|
|
5929
|
-
else if (!
|
|
5920
|
+
else if (!Le(n)) {
|
|
5930
5921
|
const e = new TypeError(
|
|
5931
5922
|
'The "path" argument must be of type string or an instance of URL. Received `' + n + "`"
|
|
5932
5923
|
);
|
|
@@ -5995,7 +5986,7 @@ class au {
|
|
|
5995
5986
|
*/
|
|
5996
5987
|
constructor(e) {
|
|
5997
5988
|
let t;
|
|
5998
|
-
e ?
|
|
5989
|
+
e ? Le(e) ? t = { path: e } : typeof e == "string" || uu(e) ? t = { value: e } : t = e : t = {}, this.cwd = "cwd" in t ? "" : ru.cwd(), this.data = {}, this.history = [], this.messages = [];
|
|
5999
5990
|
let r = -1;
|
|
6000
5991
|
for (; ++r < he.length; ) {
|
|
6001
5992
|
const l = he[r];
|
|
@@ -6049,7 +6040,7 @@ class au {
|
|
|
6049
6040
|
* Nothing.
|
|
6050
6041
|
*/
|
|
6051
6042
|
set dirname(e) {
|
|
6052
|
-
|
|
6043
|
+
Mt(this.basename, "dirname"), this.path = un.join(e || "", this.basename);
|
|
6053
6044
|
}
|
|
6054
6045
|
/**
|
|
6055
6046
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -6073,7 +6064,7 @@ class au {
|
|
|
6073
6064
|
* Nothing.
|
|
6074
6065
|
*/
|
|
6075
6066
|
set extname(e) {
|
|
6076
|
-
if (me(e, "extname"),
|
|
6067
|
+
if (me(e, "extname"), Mt(this.dirname, "extname"), e) {
|
|
6077
6068
|
if (e.codePointAt(0) !== 46)
|
|
6078
6069
|
throw new Error("`extname` must start with `.`");
|
|
6079
6070
|
if (e.includes(".", 1))
|
|
@@ -6103,7 +6094,7 @@ class au {
|
|
|
6103
6094
|
* Nothing.
|
|
6104
6095
|
*/
|
|
6105
6096
|
set path(e) {
|
|
6106
|
-
|
|
6097
|
+
Le(e) && (e = lu(e)), de(e, "path"), this.path !== e && this.history.push(e);
|
|
6107
6098
|
}
|
|
6108
6099
|
/**
|
|
6109
6100
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6350,7 +6341,7 @@ function de(n, e) {
|
|
|
6350
6341
|
if (!n)
|
|
6351
6342
|
throw new Error("`" + e + "` cannot be empty");
|
|
6352
6343
|
}
|
|
6353
|
-
function
|
|
6344
|
+
function Mt(n, e) {
|
|
6354
6345
|
if (!n)
|
|
6355
6346
|
throw new Error("Setting `" + e + "` requires `path` to be set too");
|
|
6356
6347
|
}
|
|
@@ -6630,7 +6621,7 @@ class Ve extends su {
|
|
|
6630
6621
|
let t = !1, r;
|
|
6631
6622
|
return this.freeze(), ge("processSync", this.parser || this.Parser), ye("processSync", this.compiler || this.Compiler), this.process(e, i), vt("processSync", "process", t), r;
|
|
6632
6623
|
function i(l, o) {
|
|
6633
|
-
t = !0,
|
|
6624
|
+
t = !0, zt(l), r = o;
|
|
6634
6625
|
}
|
|
6635
6626
|
}
|
|
6636
6627
|
/**
|
|
@@ -6672,7 +6663,7 @@ class Ve extends su {
|
|
|
6672
6663
|
* transformed tree.
|
|
6673
6664
|
*/
|
|
6674
6665
|
run(e, t, r) {
|
|
6675
|
-
|
|
6666
|
+
Nt(e), this.freeze();
|
|
6676
6667
|
const i = this.transformers;
|
|
6677
6668
|
return !r && typeof t == "function" && (r = t, t = void 0), r ? l(void 0, r) : new Promise(l);
|
|
6678
6669
|
function l(o, a) {
|
|
@@ -6708,7 +6699,7 @@ class Ve extends su {
|
|
|
6708
6699
|
let r = !1, i;
|
|
6709
6700
|
return this.run(e, t, l), vt("runSync", "run", r), i;
|
|
6710
6701
|
function l(o, a) {
|
|
6711
|
-
|
|
6702
|
+
zt(o), i = a, r = !0;
|
|
6712
6703
|
}
|
|
6713
6704
|
}
|
|
6714
6705
|
/**
|
|
@@ -6743,7 +6734,7 @@ class Ve extends su {
|
|
|
6743
6734
|
stringify(e, t) {
|
|
6744
6735
|
this.freeze();
|
|
6745
6736
|
const r = Jn(t), i = this.compiler || this.Compiler;
|
|
6746
|
-
return ye("stringify", i),
|
|
6737
|
+
return ye("stringify", i), Nt(e), i(e, r);
|
|
6747
6738
|
}
|
|
6748
6739
|
/**
|
|
6749
6740
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -6875,7 +6866,7 @@ function ke(n, e) {
|
|
|
6875
6866
|
"Cannot call `" + n + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
6876
6867
|
);
|
|
6877
6868
|
}
|
|
6878
|
-
function
|
|
6869
|
+
function Nt(n) {
|
|
6879
6870
|
if (!Te(n) || typeof n.type != "string")
|
|
6880
6871
|
throw new TypeError("Expected node, got `" + n + "`");
|
|
6881
6872
|
}
|
|
@@ -6952,7 +6943,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
6952
6943
|
return `${n}](placeholder:incomplete-link)`;
|
|
6953
6944
|
}
|
|
6954
6945
|
return n;
|
|
6955
|
-
},
|
|
6946
|
+
}, Lu = (n) => {
|
|
6956
6947
|
const e = n.match(ku);
|
|
6957
6948
|
if (e) {
|
|
6958
6949
|
const t = e[2];
|
|
@@ -6967,7 +6958,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
6967
6958
|
return `${n}**`;
|
|
6968
6959
|
}
|
|
6969
6960
|
return n;
|
|
6970
|
-
},
|
|
6961
|
+
}, zu = (n) => {
|
|
6971
6962
|
const e = n.match(xu);
|
|
6972
6963
|
if (e) {
|
|
6973
6964
|
const t = e[2];
|
|
@@ -6982,7 +6973,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
6982
6973
|
return `${n}__`;
|
|
6983
6974
|
}
|
|
6984
6975
|
return n;
|
|
6985
|
-
},
|
|
6976
|
+
}, _u = (n) => {
|
|
6986
6977
|
let e = 0, t = !1, r = 0;
|
|
6987
6978
|
for (let i = 0; i < n.length; i++) {
|
|
6988
6979
|
const l = n[i];
|
|
@@ -7009,7 +7000,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
7009
7000
|
}
|
|
7010
7001
|
}
|
|
7011
7002
|
return e;
|
|
7012
|
-
},
|
|
7003
|
+
}, Mu = (n) => {
|
|
7013
7004
|
if (qe(n))
|
|
7014
7005
|
return n;
|
|
7015
7006
|
if (n.match(wu)) {
|
|
@@ -7028,11 +7019,11 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
7028
7019
|
);
|
|
7029
7020
|
if (!r || /^[\s_~*`]*$/.test(r))
|
|
7030
7021
|
return n;
|
|
7031
|
-
if (
|
|
7022
|
+
if (_u(n) % 2 === 1)
|
|
7032
7023
|
return `${n}*`;
|
|
7033
7024
|
}
|
|
7034
7025
|
return n;
|
|
7035
|
-
},
|
|
7026
|
+
}, Nu = (n, e) => {
|
|
7036
7027
|
let t = !1, r = !1;
|
|
7037
7028
|
for (let i = 0; i < n.length && i < e; i++) {
|
|
7038
7029
|
if (n[i] === "\\" && n[i + 1] === "$") {
|
|
@@ -7083,7 +7074,7 @@ const yu = /(!?\[)([^\]]*?)$/, ku = /(\*\*)([^*]*?)$/, xu = /(__)([^_]*?)$/, bu
|
|
|
7083
7074
|
if (n.match(Su)) {
|
|
7084
7075
|
let t = -1;
|
|
7085
7076
|
for (let l = 0; l < n.length; l++)
|
|
7086
|
-
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !
|
|
7077
|
+
if (n[l] === "_" && n[l - 1] !== "_" && n[l + 1] !== "_" && n[l - 1] !== "\\" && !Nu(n, l) && !wr(n, l)) {
|
|
7087
7078
|
const o = l > 0 ? n[l - 1] : "", a = l < n.length - 1 ? n[l + 1] : "";
|
|
7088
7079
|
if (o && a && /[\p{L}\p{N}_]/u.test(o) && /[\p{L}\p{N}_]/u.test(a))
|
|
7089
7080
|
continue;
|
|
@@ -7167,7 +7158,7 @@ $$` : `${n}$$`;
|
|
|
7167
7158
|
let e = n;
|
|
7168
7159
|
e = Au(e);
|
|
7169
7160
|
const t = Tu(e);
|
|
7170
|
-
return t.endsWith("](placeholder:incomplete-link)") ? t : (e = t, e = Ou(e), e = ju(e), e =
|
|
7161
|
+
return t.endsWith("](placeholder:incomplete-link)") ? t : (e = t, e = Ou(e), e = ju(e), e = Lu(e), e = zu(e), e = Mu(e), e = Ru(e), e = Fu(e), e = Bu(e), e);
|
|
7171
7162
|
};
|
|
7172
7163
|
class Hu {
|
|
7173
7164
|
remarkGfm = null;
|
|
@@ -7181,7 +7172,7 @@ class Hu {
|
|
|
7181
7172
|
if (!this.remarkGfm) {
|
|
7182
7173
|
const { default: e } = await import(
|
|
7183
7174
|
/* webpackChunkName: "md-remark" */
|
|
7184
|
-
"./index.
|
|
7175
|
+
"./index.BxbWxVtd.js"
|
|
7185
7176
|
);
|
|
7186
7177
|
this.remarkGfm = e;
|
|
7187
7178
|
}
|
|
@@ -7192,7 +7183,7 @@ class Hu {
|
|
|
7192
7183
|
Gu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
|
7193
7184
|
const { default: e } = await import(
|
|
7194
7185
|
/* webpackChunkName: "md-rehype-katex" */
|
|
7195
|
-
"./index.
|
|
7186
|
+
"./index.s8Izh8-Q.js"
|
|
7196
7187
|
);
|
|
7197
7188
|
this.rehypeKatex = e;
|
|
7198
7189
|
}
|
|
@@ -7202,7 +7193,7 @@ class Hu {
|
|
|
7202
7193
|
if (!this.remarkMath) {
|
|
7203
7194
|
const { default: e } = await import(
|
|
7204
7195
|
/* webpackChunkName: "md-remark" */
|
|
7205
|
-
"./index.
|
|
7196
|
+
"./index.DG-VhqKw.js"
|
|
7206
7197
|
);
|
|
7207
7198
|
this.remarkMath = e;
|
|
7208
7199
|
}
|
|
@@ -7212,7 +7203,7 @@ class Hu {
|
|
|
7212
7203
|
if (!this.rehypeHighlight) {
|
|
7213
7204
|
const { default: e } = await import(
|
|
7214
7205
|
/* webpackChunkName: "md-rehype-highlight" */
|
|
7215
|
-
"./index.
|
|
7206
|
+
"./index.BlviGqw0.js"
|
|
7216
7207
|
);
|
|
7217
7208
|
this.rehypeHighlight = e;
|
|
7218
7209
|
}
|
|
@@ -7325,7 +7316,7 @@ const Zn = new Hu(), Vu = ({
|
|
|
7325
7316
|
Ku
|
|
7326
7317
|
];
|
|
7327
7318
|
fu().use(ca).use(o.current.remarkPlugins).use(Wa).use(d).use(rl, {
|
|
7328
|
-
Fragment:
|
|
7319
|
+
Fragment: _r,
|
|
7329
7320
|
jsx: Tn,
|
|
7330
7321
|
jsxs: Rt,
|
|
7331
7322
|
components: {
|
|
@@ -7352,12 +7343,12 @@ export {
|
|
|
7352
7343
|
Vt as convertElement,
|
|
7353
7344
|
H as factorySpace,
|
|
7354
7345
|
Pi as find,
|
|
7355
|
-
|
|
7356
|
-
|
|
7346
|
+
Li as html,
|
|
7347
|
+
z as markdownLineEnding,
|
|
7357
7348
|
Q as markdownLineEndingOrSpace,
|
|
7358
7349
|
D as markdownSpace,
|
|
7359
7350
|
be as normalize,
|
|
7360
|
-
|
|
7351
|
+
zn as normalizeIdentifier,
|
|
7361
7352
|
Kr as parse,
|
|
7362
7353
|
ts as parse$1,
|
|
7363
7354
|
$e as resolveAll,
|