eddyter 1.3.61 → 1.3.63
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/babel-B9hn44Wo.js +7168 -0
- package/dist/estree-CocPn_Md.js +4251 -0
- package/dist/html-CxCicOef.js +2638 -0
- package/dist/{html2pdf.bundle-BP8K5ERw.js → html2pdf.bundle-Bc2h6DHT.js} +1 -1
- package/dist/{html2pdf.bundle.min-BrDn1HSi.js → html2pdf.bundle.min-BvakEXhX.js} +1 -1
- package/dist/{index-CnBHpreC.js → index-B0VTEqfr.js} +1 -1
- package/dist/{index-DnHnFalw.js → index-C2a6-XFM.js} +1 -1
- package/dist/{index-CFq39nnT.js → index-DoJIKSPF.js} +370 -373
- package/dist/index.js +1 -1
- package/dist/markdown-BUjgWFLu.js +3150 -0
- package/dist/postcss-CGIcwj_g.js +4717 -0
- package/dist/standalone-C0qguT38.js +2211 -0
- package/dist/typescript-BM7wk6k-.js +12922 -0
- package/package.json +1 -1
- package/dist/babel-19rkKi7e.js +0 -7157
- package/dist/estree-DmlwiAu4.js +0 -4453
- package/dist/html-DtcgJGeD.js +0 -2760
- package/dist/markdown-C2JcxpgA.js +0 -3163
- package/dist/postcss-Banlrd6S.js +0 -4703
- package/dist/standalone-JqHlnZSs.js +0 -2429
- package/dist/typescript-D_phonMq.js +0 -12929
- /package/dist/assets/{index.css → style.css} +0 -0
|
@@ -0,0 +1,3150 @@
|
|
|
1
|
+
var Qt = Object.create, Ie = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, er = Object.getOwnPropertyNames, tr = Object.getPrototypeOf, rr = Object.prototype.hasOwnProperty, mt = (u) => {
|
|
2
|
+
throw TypeError(u);
|
|
3
|
+
}, N = (u, e) => () => (e || u((e = { exports: {} }).exports, e), e.exports), Et = (u, e) => {
|
|
4
|
+
for (var t in e) Ie(u, t, { get: e[t], enumerable: !0 });
|
|
5
|
+
}, nr = (u, e, t, n) => {
|
|
6
|
+
if (e && typeof e == "object" || typeof e == "function") for (let r of er(e)) !rr.call(u, r) && r !== t && Ie(u, r, { get: () => e[r], enumerable: !(n = ur(e, r)) || n.enumerable });
|
|
7
|
+
return u;
|
|
8
|
+
}, Mu = (u, e, t) => (t = u != null ? Qt(tr(u)) : {}, nr(Ie(t, "default", { value: u, enumerable: !0 }), u)), vt = (u, e, t) => e.has(u) || mt("Cannot " + t), ku = (u, e, t) => (vt(u, e, "read from private field"), e.get(u)), ir = (u, e, t) => e.has(u) ? mt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(u) : e.set(u, t), ar = (u, e, t, n) => (vt(u, e, "write to private field"), e.set(u, t), t), Pe = N((u, e) => {
|
|
9
|
+
e.exports = t;
|
|
10
|
+
function t(n) {
|
|
11
|
+
return String(n).replace(/\s+/g, " ");
|
|
12
|
+
}
|
|
13
|
+
}), or = N((u, e) => {
|
|
14
|
+
e.exports = p;
|
|
15
|
+
var t = 9, n = 10, r = 32, i = 33, o = 58, a = 91, l = 92, D = 93, s = 94, c = 96, f = 4, h = 1024;
|
|
16
|
+
function p(d) {
|
|
17
|
+
var C = this.Parser, g = this.Compiler;
|
|
18
|
+
E(C) && v(C, d), A(g) && F(g);
|
|
19
|
+
}
|
|
20
|
+
function E(d) {
|
|
21
|
+
return !!(d && d.prototype && d.prototype.blockTokenizers);
|
|
22
|
+
}
|
|
23
|
+
function A(d) {
|
|
24
|
+
return !!(d && d.prototype && d.prototype.visitors);
|
|
25
|
+
}
|
|
26
|
+
function v(d, C) {
|
|
27
|
+
for (var g = C || {}, y = d.prototype, w = y.blockTokenizers, T = y.inlineTokenizers, b = y.blockMethods, k = y.inlineMethods, L = w.definition, I = T.reference, x = [], S = -1, M = b.length, z; ++S < M; ) z = b[S], !(z === "newline" || z === "indentedCode" || z === "paragraph" || z === "footnoteDefinition") && x.push([z]);
|
|
28
|
+
x.push(["footnoteDefinition"]), g.inlineNotes && (B(k, "reference", "inlineNote"), T.inlineNote = J), B(b, "definition", "footnoteDefinition"), B(k, "reference", "footnoteCall"), w.definition = O, w.footnoteDefinition = V, T.footnoteCall = q, T.reference = j, y.interruptFootnoteDefinition = x, j.locator = I.locator, q.locator = $, J.locator = U;
|
|
29
|
+
function V(R, P, G) {
|
|
30
|
+
for (var W = this, Y = W.interruptFootnoteDefinition, K = W.offset, eu = P.length + 1, H = 0, Q = [], Du, su, uu, _, X, pu, yu, hu, Fu, nu, du, tu, Z; H < eu && (_ = P.charCodeAt(H), !(_ !== t && _ !== r)); ) H++;
|
|
31
|
+
if (P.charCodeAt(H++) === a && P.charCodeAt(H++) === s) {
|
|
32
|
+
for (su = H; H < eu; ) {
|
|
33
|
+
if (_ = P.charCodeAt(H), _ !== _ || _ === n || _ === t || _ === r) return;
|
|
34
|
+
if (_ === D) {
|
|
35
|
+
uu = H, H++;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
H++;
|
|
39
|
+
}
|
|
40
|
+
if (!(uu === void 0 || su === uu || P.charCodeAt(H++) !== o)) {
|
|
41
|
+
if (G) return !0;
|
|
42
|
+
for (Du = P.slice(su, uu), X = R.now(), Fu = 0, nu = 0, du = H, tu = []; H < eu; ) {
|
|
43
|
+
if (_ = P.charCodeAt(H), _ !== _ || _ === n) Z = { start: Fu, contentStart: du || H, contentEnd: H, end: H }, tu.push(Z), _ === n && (Fu = H + 1, nu = 0, du = void 0, Z.end = Fu);
|
|
44
|
+
else if (nu !== void 0) if (_ === r || _ === t) nu += _ === r ? 1 : f - nu % f, nu > f && (nu = void 0, du = H);
|
|
45
|
+
else {
|
|
46
|
+
if (nu < f && Z && (Z.contentStart === Z.contentEnd || m(Y, w, W, [R, P.slice(H, h), !0]))) break;
|
|
47
|
+
nu = void 0, du = H;
|
|
48
|
+
}
|
|
49
|
+
H++;
|
|
50
|
+
}
|
|
51
|
+
for (H = -1, eu = tu.length; eu > 0 && (Z = tu[eu - 1], Z.contentStart === Z.contentEnd); ) eu--;
|
|
52
|
+
for (pu = R(P.slice(0, Z.contentEnd)); ++H < eu; ) Z = tu[H], K[X.line + H] = (K[X.line + H] || 0) + (Z.contentStart - Z.start), Q.push(P.slice(Z.contentStart, Z.end));
|
|
53
|
+
return yu = W.enterBlock(), hu = W.tokenizeBlock(Q.join(""), X), yu(), pu({ type: "footnoteDefinition", identifier: Du.toLowerCase(), label: Du, children: hu });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function q(R, P, G) {
|
|
58
|
+
var W = P.length + 1, Y = 0, K, eu, H, Q;
|
|
59
|
+
if (P.charCodeAt(Y++) === a && P.charCodeAt(Y++) === s) {
|
|
60
|
+
for (eu = Y; Y < W; ) {
|
|
61
|
+
if (Q = P.charCodeAt(Y), Q !== Q || Q === n || Q === t || Q === r) return;
|
|
62
|
+
if (Q === D) {
|
|
63
|
+
H = Y, Y++;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
Y++;
|
|
67
|
+
}
|
|
68
|
+
if (!(H === void 0 || eu === H)) return G ? !0 : (K = P.slice(eu, H), R(P.slice(0, Y))({ type: "footnoteReference", identifier: K.toLowerCase(), label: K }));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function J(R, P, G) {
|
|
72
|
+
var W = this, Y = P.length + 1, K = 0, eu = 0, H, Q, Du, su, uu, _, X;
|
|
73
|
+
if (P.charCodeAt(K++) === s && P.charCodeAt(K++) === a) {
|
|
74
|
+
for (Du = K; K < Y; ) {
|
|
75
|
+
if (Q = P.charCodeAt(K), Q !== Q) return;
|
|
76
|
+
if (_ === void 0) if (Q === l) K += 2;
|
|
77
|
+
else if (Q === a) eu++, K++;
|
|
78
|
+
else if (Q === D) if (eu === 0) {
|
|
79
|
+
su = K, K++;
|
|
80
|
+
break;
|
|
81
|
+
} else eu--, K++;
|
|
82
|
+
else if (Q === c) {
|
|
83
|
+
for (uu = K, _ = 1; P.charCodeAt(uu + _) === c; ) _++;
|
|
84
|
+
K += _;
|
|
85
|
+
} else K++;
|
|
86
|
+
else if (Q === c) {
|
|
87
|
+
for (uu = K, X = 1; P.charCodeAt(uu + X) === c; ) X++;
|
|
88
|
+
K += X, _ === X && (_ = void 0), X = void 0;
|
|
89
|
+
} else K++;
|
|
90
|
+
}
|
|
91
|
+
if (su !== void 0) return G ? !0 : (H = R.now(), H.column += 2, H.offset += 2, R(P.slice(0, K))({ type: "footnote", children: W.tokenizeInline(P.slice(Du, su), H) }));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
function j(R, P, G) {
|
|
95
|
+
var W = 0;
|
|
96
|
+
if (P.charCodeAt(W) === i && W++, P.charCodeAt(W) === a && P.charCodeAt(W + 1) !== s) return I.call(this, R, P, G);
|
|
97
|
+
}
|
|
98
|
+
function O(R, P, G) {
|
|
99
|
+
for (var W = 0, Y = P.charCodeAt(W); Y === r || Y === t; ) Y = P.charCodeAt(++W);
|
|
100
|
+
if (Y === a && P.charCodeAt(W + 1) !== s) return L.call(this, R, P, G);
|
|
101
|
+
}
|
|
102
|
+
function $(R, P) {
|
|
103
|
+
return R.indexOf("[", P);
|
|
104
|
+
}
|
|
105
|
+
function U(R, P) {
|
|
106
|
+
return R.indexOf("^[", P);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function F(d) {
|
|
110
|
+
var C = d.prototype.visitors, g = " ";
|
|
111
|
+
C.footnote = y, C.footnoteReference = w, C.footnoteDefinition = T;
|
|
112
|
+
function y(b) {
|
|
113
|
+
return "^[" + this.all(b).join("") + "]";
|
|
114
|
+
}
|
|
115
|
+
function w(b) {
|
|
116
|
+
return "[^" + (b.label || b.identifier) + "]";
|
|
117
|
+
}
|
|
118
|
+
function T(b) {
|
|
119
|
+
for (var k = this.all(b).join(`
|
|
120
|
+
|
|
121
|
+
`).split(`
|
|
122
|
+
`), L = 0, I = k.length, x; ++L < I; ) x = k[L], x !== "" && (k[L] = g + x);
|
|
123
|
+
return "[^" + (b.label || b.identifier) + "]: " + k.join(`
|
|
124
|
+
`);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function B(d, C, g) {
|
|
128
|
+
d.splice(d.indexOf(C), 0, g);
|
|
129
|
+
}
|
|
130
|
+
function m(d, C, g, y) {
|
|
131
|
+
for (var w = d.length, T = -1; ++T < w; ) if (C[d[T][0]].apply(g, y)) return !0;
|
|
132
|
+
return !1;
|
|
133
|
+
}
|
|
134
|
+
}), xt = N((u) => {
|
|
135
|
+
u.isRemarkParser = e, u.isRemarkCompiler = t;
|
|
136
|
+
function e(n) {
|
|
137
|
+
return !!(n && n.prototype && n.prototype.blockTokenizers);
|
|
138
|
+
}
|
|
139
|
+
function t(n) {
|
|
140
|
+
return !!(n && n.prototype && n.prototype.visitors);
|
|
141
|
+
}
|
|
142
|
+
}), lr = N((u, e) => {
|
|
143
|
+
var t = xt();
|
|
144
|
+
e.exports = c;
|
|
145
|
+
var n = 9, r = 32, i = 36, o = 48, a = 57, l = 92, D = ["math", "math-inline"], s = "math-display";
|
|
146
|
+
function c(p) {
|
|
147
|
+
let E = this.Parser, A = this.Compiler;
|
|
148
|
+
t.isRemarkParser(E) && f(E, p), t.isRemarkCompiler(A) && h(A);
|
|
149
|
+
}
|
|
150
|
+
function f(p, E) {
|
|
151
|
+
let A = p.prototype, v = A.inlineMethods;
|
|
152
|
+
B.locator = F, A.inlineTokenizers.math = B, v.splice(v.indexOf("text"), 0, "math");
|
|
153
|
+
function F(m, d) {
|
|
154
|
+
return m.indexOf("$", d);
|
|
155
|
+
}
|
|
156
|
+
function B(m, d, C) {
|
|
157
|
+
let g = d.length, y = !1, w = !1, T = 0, b, k, L, I, x, S, M;
|
|
158
|
+
if (d.charCodeAt(T) === l && (w = !0, T++), d.charCodeAt(T) === i) {
|
|
159
|
+
if (T++, w) return C ? !0 : m(d.slice(0, T))({ type: "text", value: "$" });
|
|
160
|
+
if (d.charCodeAt(T) === i && (y = !0, T++), L = d.charCodeAt(T), !(L === r || L === n)) {
|
|
161
|
+
for (I = T; T < g; ) {
|
|
162
|
+
if (k = L, L = d.charCodeAt(T + 1), k === i) {
|
|
163
|
+
if (b = d.charCodeAt(T - 1), b !== r && b !== n && (L !== L || L < o || L > a) && (!y || L === i)) {
|
|
164
|
+
x = T - 1, T++, y && T++, S = T;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
} else k === l && (T++, L = d.charCodeAt(T + 1));
|
|
168
|
+
T++;
|
|
169
|
+
}
|
|
170
|
+
if (S !== void 0) return C ? !0 : (M = d.slice(I, x + 1), m(d.slice(0, S))({ type: "inlineMath", value: M, data: { hName: "span", hProperties: { className: D.concat(y && E.inlineMathDouble ? [s] : []) }, hChildren: [{ type: "text", value: M }] } }));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function h(p) {
|
|
176
|
+
let E = p.prototype;
|
|
177
|
+
E.visitors.inlineMath = A;
|
|
178
|
+
function A(v) {
|
|
179
|
+
let F = "$";
|
|
180
|
+
return (v.data && v.data.hProperties && v.data.hProperties.className || []).includes(s) && (F = "$$"), F + v.value + F;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}), sr = N((u, e) => {
|
|
184
|
+
var t = xt();
|
|
185
|
+
e.exports = s;
|
|
186
|
+
var n = 10, r = 32, i = 36, o = `
|
|
187
|
+
`, a = "$", l = 2, D = ["math", "math-display"];
|
|
188
|
+
function s() {
|
|
189
|
+
let h = this.Parser, p = this.Compiler;
|
|
190
|
+
t.isRemarkParser(h) && c(h), t.isRemarkCompiler(p) && f(p);
|
|
191
|
+
}
|
|
192
|
+
function c(h) {
|
|
193
|
+
let p = h.prototype, E = p.blockMethods, A = p.interruptParagraph, v = p.interruptList, F = p.interruptBlockquote;
|
|
194
|
+
p.blockTokenizers.math = B, E.splice(E.indexOf("fencedCode") + 1, 0, "math"), A.splice(A.indexOf("fencedCode") + 1, 0, ["math"]), v.splice(v.indexOf("fencedCode") + 1, 0, ["math"]), F.splice(F.indexOf("fencedCode") + 1, 0, ["math"]);
|
|
195
|
+
function B(m, d, C) {
|
|
196
|
+
var g = d.length, y = 0;
|
|
197
|
+
let w, T, b, k, L, I, x, S, M, z, V;
|
|
198
|
+
for (; y < g && d.charCodeAt(y) === r; ) y++;
|
|
199
|
+
for (L = y; y < g && d.charCodeAt(y) === i; ) y++;
|
|
200
|
+
if (I = y - L, !(I < l)) {
|
|
201
|
+
for (; y < g && d.charCodeAt(y) === r; ) y++;
|
|
202
|
+
for (x = y; y < g; ) {
|
|
203
|
+
if (w = d.charCodeAt(y), w === i) return;
|
|
204
|
+
if (w === n) break;
|
|
205
|
+
y++;
|
|
206
|
+
}
|
|
207
|
+
if (d.charCodeAt(y) === n) {
|
|
208
|
+
if (C) return !0;
|
|
209
|
+
for (T = [], x !== y && T.push(d.slice(x, y)), y++, b = d.indexOf(o, y + 1), b = b === -1 ? g : b; y < g; ) {
|
|
210
|
+
for (S = !1, z = y, V = b, k = b, M = 0; k > z && d.charCodeAt(k - 1) === r; ) k--;
|
|
211
|
+
for (; k > z && d.charCodeAt(k - 1) === i; ) M++, k--;
|
|
212
|
+
for (I <= M && d.indexOf(a, z) === k && (S = !0, V = k); z <= V && z - y < L && d.charCodeAt(z) === r; ) z++;
|
|
213
|
+
if (S) for (; V > z && d.charCodeAt(V - 1) === r; ) V--;
|
|
214
|
+
if ((!S || z !== V) && T.push(d.slice(z, V)), S) break;
|
|
215
|
+
y = b + 1, b = d.indexOf(o, y + 1), b = b === -1 ? g : b;
|
|
216
|
+
}
|
|
217
|
+
return T = T.join(`
|
|
218
|
+
`), m(d.slice(0, b))({ type: "math", value: T, data: { hName: "div", hProperties: { className: D.concat() }, hChildren: [{ type: "text", value: T }] } });
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function f(h) {
|
|
224
|
+
let p = h.prototype;
|
|
225
|
+
p.visitors.math = E;
|
|
226
|
+
function E(A) {
|
|
227
|
+
return `$$
|
|
228
|
+
` + A.value + `
|
|
229
|
+
$$`;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}), Dr = N((u, e) => {
|
|
233
|
+
var t = lr(), n = sr();
|
|
234
|
+
e.exports = r;
|
|
235
|
+
function r(i) {
|
|
236
|
+
var o = i || {};
|
|
237
|
+
n.call(this, o), t.call(this, o);
|
|
238
|
+
}
|
|
239
|
+
}), Uu = N((u, e) => {
|
|
240
|
+
e.exports = n;
|
|
241
|
+
var t = Object.prototype.hasOwnProperty;
|
|
242
|
+
function n() {
|
|
243
|
+
for (var r = {}, i = 0; i < arguments.length; i++) {
|
|
244
|
+
var o = arguments[i];
|
|
245
|
+
for (var a in o) t.call(o, a) && (r[a] = o[a]);
|
|
246
|
+
}
|
|
247
|
+
return r;
|
|
248
|
+
}
|
|
249
|
+
}), cr = N((u, e) => {
|
|
250
|
+
typeof Object.create == "function" ? e.exports = function(t, n) {
|
|
251
|
+
n && (t.super_ = n, t.prototype = Object.create(n.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }));
|
|
252
|
+
} : e.exports = function(t, n) {
|
|
253
|
+
if (n) {
|
|
254
|
+
t.super_ = n;
|
|
255
|
+
var r = function() {
|
|
256
|
+
};
|
|
257
|
+
r.prototype = n.prototype, t.prototype = new r(), t.prototype.constructor = t;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}), fr = N((u, e) => {
|
|
261
|
+
var t = Uu(), n = cr();
|
|
262
|
+
e.exports = r;
|
|
263
|
+
function r(i) {
|
|
264
|
+
var o, a, l;
|
|
265
|
+
n(s, i), n(D, s), o = s.prototype;
|
|
266
|
+
for (a in o) l = o[a], l && typeof l == "object" && (o[a] = "concat" in l ? l.concat() : t(l));
|
|
267
|
+
return s;
|
|
268
|
+
function D(c) {
|
|
269
|
+
return i.apply(this, c);
|
|
270
|
+
}
|
|
271
|
+
function s() {
|
|
272
|
+
return this instanceof s ? i.apply(this, arguments) : new D(arguments);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}), pr = N((u, e) => {
|
|
276
|
+
e.exports = t;
|
|
277
|
+
function t(n, r, i) {
|
|
278
|
+
return o;
|
|
279
|
+
function o() {
|
|
280
|
+
var a = i || this, l = a[n];
|
|
281
|
+
return a[n] = !r, D;
|
|
282
|
+
function D() {
|
|
283
|
+
a[n] = l;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}), hr = N((u, e) => {
|
|
288
|
+
e.exports = t;
|
|
289
|
+
function t(n) {
|
|
290
|
+
for (var r = String(n), i = [], o = /\r?\n|\r/g; o.exec(r); ) i.push(o.lastIndex);
|
|
291
|
+
return i.push(r.length + 1), { toPoint: a, toPosition: a, toOffset: l };
|
|
292
|
+
function a(D) {
|
|
293
|
+
var s = -1;
|
|
294
|
+
if (D > -1 && D < i[i.length - 1]) {
|
|
295
|
+
for (; ++s < i.length; ) if (i[s] > D) return { line: s + 1, column: D - (i[s - 1] || 0) + 1, offset: D };
|
|
296
|
+
}
|
|
297
|
+
return {};
|
|
298
|
+
}
|
|
299
|
+
function l(D) {
|
|
300
|
+
var s = D && D.line, c = D && D.column, f;
|
|
301
|
+
return !isNaN(s) && !isNaN(c) && s - 1 in i && (f = (i[s - 2] || 0) + c - 1 || 0), f > -1 && f < i[i.length - 1] ? f : -1;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}), dr = N((u, e) => {
|
|
305
|
+
e.exports = n;
|
|
306
|
+
var t = "\\";
|
|
307
|
+
function n(r, i) {
|
|
308
|
+
return o;
|
|
309
|
+
function o(a) {
|
|
310
|
+
for (var l = 0, D = a.indexOf(t), s = r[i], c = [], f; D !== -1; ) c.push(a.slice(l, D)), l = D + 1, f = a.charAt(l), (!f || s.indexOf(f) === -1) && c.push(t), D = a.indexOf(t, l + 1);
|
|
311
|
+
return c.push(a.slice(l)), c.join("");
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}), Fr = N((u, e) => {
|
|
315
|
+
e.exports = { AElig: "Æ", AMP: "&", Aacute: "Á", Acirc: "Â", Agrave: "À", Aring: "Å", Atilde: "Ã", Auml: "Ä", COPY: "©", Ccedil: "Ç", ETH: "Ð", Eacute: "É", Ecirc: "Ê", Egrave: "È", Euml: "Ë", GT: ">", Iacute: "Í", Icirc: "Î", Igrave: "Ì", Iuml: "Ï", LT: "<", Ntilde: "Ñ", Oacute: "Ó", Ocirc: "Ô", Ograve: "Ò", Oslash: "Ø", Otilde: "Õ", Ouml: "Ö", QUOT: '"', REG: "®", THORN: "Þ", Uacute: "Ú", Ucirc: "Û", Ugrave: "Ù", Uuml: "Ü", Yacute: "Ý", aacute: "á", acirc: "â", acute: "´", aelig: "æ", agrave: "à", amp: "&", aring: "å", atilde: "ã", auml: "ä", brvbar: "¦", ccedil: "ç", cedil: "¸", cent: "¢", copy: "©", curren: "¤", deg: "°", divide: "÷", eacute: "é", ecirc: "ê", egrave: "è", eth: "ð", euml: "ë", frac12: "½", frac14: "¼", frac34: "¾", gt: ">", iacute: "í", icirc: "î", iexcl: "¡", igrave: "ì", iquest: "¿", iuml: "ï", laquo: "«", lt: "<", macr: "¯", micro: "µ", middot: "·", nbsp: " ", not: "¬", ntilde: "ñ", oacute: "ó", ocirc: "ô", ograve: "ò", ordf: "ª", ordm: "º", oslash: "ø", otilde: "õ", ouml: "ö", para: "¶", plusmn: "±", pound: "£", quot: '"', raquo: "»", reg: "®", sect: "§", shy: "", sup1: "¹", sup2: "²", sup3: "³", szlig: "ß", thorn: "þ", times: "×", uacute: "ú", ucirc: "û", ugrave: "ù", uml: "¨", uuml: "ü", yacute: "ý", yen: "¥", yuml: "ÿ" };
|
|
316
|
+
}), Cr = N((u, e) => {
|
|
317
|
+
e.exports = { 0: "�", 128: "€", 130: "‚", 131: "ƒ", 132: "„", 133: "…", 134: "†", 135: "‡", 136: "ˆ", 137: "‰", 138: "Š", 139: "‹", 140: "Œ", 142: "Ž", 145: "‘", 146: "’", 147: "“", 148: "”", 149: "•", 150: "–", 151: "—", 152: "˜", 153: "™", 154: "š", 155: "›", 156: "œ", 158: "ž", 159: "Ÿ" };
|
|
318
|
+
}), Vu = N((u, e) => {
|
|
319
|
+
e.exports = t;
|
|
320
|
+
function t(n) {
|
|
321
|
+
var r = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
322
|
+
return r >= 48 && r <= 57;
|
|
323
|
+
}
|
|
324
|
+
}), Ar = N((u, e) => {
|
|
325
|
+
e.exports = t;
|
|
326
|
+
function t(n) {
|
|
327
|
+
var r = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
328
|
+
return r >= 97 && r <= 102 || r >= 65 && r <= 70 || r >= 48 && r <= 57;
|
|
329
|
+
}
|
|
330
|
+
}), ne = N((u, e) => {
|
|
331
|
+
e.exports = t;
|
|
332
|
+
function t(n) {
|
|
333
|
+
var r = typeof n == "string" ? n.charCodeAt(0) : n;
|
|
334
|
+
return r >= 97 && r <= 122 || r >= 65 && r <= 90;
|
|
335
|
+
}
|
|
336
|
+
}), gr = N((u, e) => {
|
|
337
|
+
var t = ne(), n = Vu();
|
|
338
|
+
e.exports = r;
|
|
339
|
+
function r(i) {
|
|
340
|
+
return t(i) || n(i);
|
|
341
|
+
}
|
|
342
|
+
}), mr = N((u, e) => {
|
|
343
|
+
e.exports = { AEli: "Æ", AElig: "Æ", AM: "&", AMP: "&", Aacut: "Á", Aacute: "Á", Abreve: "Ă", Acir: "Â", Acirc: "Â", Acy: "А", Afr: "𝔄", Agrav: "À", Agrave: "À", Alpha: "Α", Amacr: "Ā", And: "⩓", Aogon: "Ą", Aopf: "𝔸", ApplyFunction: "", Arin: "Å", Aring: "Å", Ascr: "𝒜", Assign: "≔", Atild: "Ã", Atilde: "Ã", Aum: "Ä", Auml: "Ä", Backslash: "∖", Barv: "⫧", Barwed: "⌆", Bcy: "Б", Because: "∵", Bernoullis: "ℬ", Beta: "Β", Bfr: "𝔅", Bopf: "𝔹", Breve: "˘", Bscr: "ℬ", Bumpeq: "≎", CHcy: "Ч", COP: "©", COPY: "©", Cacute: "Ć", Cap: "⋒", CapitalDifferentialD: "ⅅ", Cayleys: "ℭ", Ccaron: "Č", Ccedi: "Ç", Ccedil: "Ç", Ccirc: "Ĉ", Cconint: "∰", Cdot: "Ċ", Cedilla: "¸", CenterDot: "·", Cfr: "ℭ", Chi: "Χ", CircleDot: "⊙", CircleMinus: "⊖", CirclePlus: "⊕", CircleTimes: "⊗", ClockwiseContourIntegral: "∲", CloseCurlyDoubleQuote: "”", CloseCurlyQuote: "’", Colon: "∷", Colone: "⩴", Congruent: "≡", Conint: "∯", ContourIntegral: "∮", Copf: "ℂ", Coproduct: "∐", CounterClockwiseContourIntegral: "∳", Cross: "⨯", Cscr: "𝒞", Cup: "⋓", CupCap: "≍", DD: "ⅅ", DDotrahd: "⤑", DJcy: "Ђ", DScy: "Ѕ", DZcy: "Џ", Dagger: "‡", Darr: "↡", Dashv: "⫤", Dcaron: "Ď", Dcy: "Д", Del: "∇", Delta: "Δ", Dfr: "𝔇", DiacriticalAcute: "´", DiacriticalDot: "˙", DiacriticalDoubleAcute: "˝", DiacriticalGrave: "`", DiacriticalTilde: "˜", Diamond: "⋄", DifferentialD: "ⅆ", Dopf: "𝔻", Dot: "¨", DotDot: "⃜", DotEqual: "≐", DoubleContourIntegral: "∯", DoubleDot: "¨", DoubleDownArrow: "⇓", DoubleLeftArrow: "⇐", DoubleLeftRightArrow: "⇔", DoubleLeftTee: "⫤", DoubleLongLeftArrow: "⟸", DoubleLongLeftRightArrow: "⟺", DoubleLongRightArrow: "⟹", DoubleRightArrow: "⇒", DoubleRightTee: "⊨", DoubleUpArrow: "⇑", DoubleUpDownArrow: "⇕", DoubleVerticalBar: "∥", DownArrow: "↓", DownArrowBar: "⤓", DownArrowUpArrow: "⇵", DownBreve: "̑", DownLeftRightVector: "⥐", DownLeftTeeVector: "⥞", DownLeftVector: "↽", DownLeftVectorBar: "⥖", DownRightTeeVector: "⥟", DownRightVector: "⇁", DownRightVectorBar: "⥗", DownTee: "⊤", DownTeeArrow: "↧", Downarrow: "⇓", Dscr: "𝒟", Dstrok: "Đ", ENG: "Ŋ", ET: "Ð", ETH: "Ð", Eacut: "É", Eacute: "É", Ecaron: "Ě", Ecir: "Ê", Ecirc: "Ê", Ecy: "Э", Edot: "Ė", Efr: "𝔈", Egrav: "È", Egrave: "È", Element: "∈", Emacr: "Ē", EmptySmallSquare: "◻", EmptyVerySmallSquare: "▫", Eogon: "Ę", Eopf: "𝔼", Epsilon: "Ε", Equal: "⩵", EqualTilde: "≂", Equilibrium: "⇌", Escr: "ℰ", Esim: "⩳", Eta: "Η", Eum: "Ë", Euml: "Ë", Exists: "∃", ExponentialE: "ⅇ", Fcy: "Ф", Ffr: "𝔉", FilledSmallSquare: "◼", FilledVerySmallSquare: "▪", Fopf: "𝔽", ForAll: "∀", Fouriertrf: "ℱ", Fscr: "ℱ", GJcy: "Ѓ", G: ">", GT: ">", Gamma: "Γ", Gammad: "Ϝ", Gbreve: "Ğ", Gcedil: "Ģ", Gcirc: "Ĝ", Gcy: "Г", Gdot: "Ġ", Gfr: "𝔊", Gg: "⋙", Gopf: "𝔾", GreaterEqual: "≥", GreaterEqualLess: "⋛", GreaterFullEqual: "≧", GreaterGreater: "⪢", GreaterLess: "≷", GreaterSlantEqual: "⩾", GreaterTilde: "≳", Gscr: "𝒢", Gt: "≫", HARDcy: "Ъ", Hacek: "ˇ", Hat: "^", Hcirc: "Ĥ", Hfr: "ℌ", HilbertSpace: "ℋ", Hopf: "ℍ", HorizontalLine: "─", Hscr: "ℋ", Hstrok: "Ħ", HumpDownHump: "≎", HumpEqual: "≏", IEcy: "Е", IJlig: "IJ", IOcy: "Ё", Iacut: "Í", Iacute: "Í", Icir: "Î", Icirc: "Î", Icy: "И", Idot: "İ", Ifr: "ℑ", Igrav: "Ì", Igrave: "Ì", Im: "ℑ", Imacr: "Ī", ImaginaryI: "ⅈ", Implies: "⇒", Int: "∬", Integral: "∫", Intersection: "⋂", InvisibleComma: "", InvisibleTimes: "", Iogon: "Į", Iopf: "𝕀", Iota: "Ι", Iscr: "ℐ", Itilde: "Ĩ", Iukcy: "І", Ium: "Ï", Iuml: "Ï", Jcirc: "Ĵ", Jcy: "Й", Jfr: "𝔍", Jopf: "𝕁", Jscr: "𝒥", Jsercy: "Ј", Jukcy: "Є", KHcy: "Х", KJcy: "Ќ", Kappa: "Κ", Kcedil: "Ķ", Kcy: "К", Kfr: "𝔎", Kopf: "𝕂", Kscr: "𝒦", LJcy: "Љ", L: "<", LT: "<", Lacute: "Ĺ", Lambda: "Λ", Lang: "⟪", Laplacetrf: "ℒ", Larr: "↞", Lcaron: "Ľ", Lcedil: "Ļ", Lcy: "Л", LeftAngleBracket: "⟨", LeftArrow: "←", LeftArrowBar: "⇤", LeftArrowRightArrow: "⇆", LeftCeiling: "⌈", LeftDoubleBracket: "⟦", LeftDownTeeVector: "⥡", LeftDownVector: "⇃", LeftDownVectorBar: "⥙", LeftFloor: "⌊", LeftRightArrow: "↔", LeftRightVector: "⥎", LeftTee: "⊣", LeftTeeArrow: "↤", LeftTeeVector: "⥚", LeftTriangle: "⊲", LeftTriangleBar: "⧏", LeftTriangleEqual: "⊴", LeftUpDownVector: "⥑", LeftUpTeeVector: "⥠", LeftUpVector: "↿", LeftUpVectorBar: "⥘", LeftVector: "↼", LeftVectorBar: "⥒", Leftarrow: "⇐", Leftrightarrow: "⇔", LessEqualGreater: "⋚", LessFullEqual: "≦", LessGreater: "≶", LessLess: "⪡", LessSlantEqual: "⩽", LessTilde: "≲", Lfr: "𝔏", Ll: "⋘", Lleftarrow: "⇚", Lmidot: "Ŀ", LongLeftArrow: "⟵", LongLeftRightArrow: "⟷", LongRightArrow: "⟶", Longleftarrow: "⟸", Longleftrightarrow: "⟺", Longrightarrow: "⟹", Lopf: "𝕃", LowerLeftArrow: "↙", LowerRightArrow: "↘", Lscr: "ℒ", Lsh: "↰", Lstrok: "Ł", Lt: "≪", Map: "⤅", Mcy: "М", MediumSpace: " ", Mellintrf: "ℳ", Mfr: "𝔐", MinusPlus: "∓", Mopf: "𝕄", Mscr: "ℳ", Mu: "Μ", NJcy: "Њ", Nacute: "Ń", Ncaron: "Ň", Ncedil: "Ņ", Ncy: "Н", NegativeMediumSpace: "", NegativeThickSpace: "", NegativeThinSpace: "", NegativeVeryThinSpace: "", NestedGreaterGreater: "≫", NestedLessLess: "≪", NewLine: `
|
|
344
|
+
`, Nfr: "𝔑", NoBreak: "", NonBreakingSpace: " ", Nopf: "ℕ", Not: "⫬", NotCongruent: "≢", NotCupCap: "≭", NotDoubleVerticalBar: "∦", NotElement: "∉", NotEqual: "≠", NotEqualTilde: "≂̸", NotExists: "∄", NotGreater: "≯", NotGreaterEqual: "≱", NotGreaterFullEqual: "≧̸", NotGreaterGreater: "≫̸", NotGreaterLess: "≹", NotGreaterSlantEqual: "⩾̸", NotGreaterTilde: "≵", NotHumpDownHump: "≎̸", NotHumpEqual: "≏̸", NotLeftTriangle: "⋪", NotLeftTriangleBar: "⧏̸", NotLeftTriangleEqual: "⋬", NotLess: "≮", NotLessEqual: "≰", NotLessGreater: "≸", NotLessLess: "≪̸", NotLessSlantEqual: "⩽̸", NotLessTilde: "≴", NotNestedGreaterGreater: "⪢̸", NotNestedLessLess: "⪡̸", NotPrecedes: "⊀", NotPrecedesEqual: "⪯̸", NotPrecedesSlantEqual: "⋠", NotReverseElement: "∌", NotRightTriangle: "⋫", NotRightTriangleBar: "⧐̸", NotRightTriangleEqual: "⋭", NotSquareSubset: "⊏̸", NotSquareSubsetEqual: "⋢", NotSquareSuperset: "⊐̸", NotSquareSupersetEqual: "⋣", NotSubset: "⊂⃒", NotSubsetEqual: "⊈", NotSucceeds: "⊁", NotSucceedsEqual: "⪰̸", NotSucceedsSlantEqual: "⋡", NotSucceedsTilde: "≿̸", NotSuperset: "⊃⃒", NotSupersetEqual: "⊉", NotTilde: "≁", NotTildeEqual: "≄", NotTildeFullEqual: "≇", NotTildeTilde: "≉", NotVerticalBar: "∤", Nscr: "𝒩", Ntild: "Ñ", Ntilde: "Ñ", Nu: "Ν", OElig: "Œ", Oacut: "Ó", Oacute: "Ó", Ocir: "Ô", Ocirc: "Ô", Ocy: "О", Odblac: "Ő", Ofr: "𝔒", Ograv: "Ò", Ograve: "Ò", Omacr: "Ō", Omega: "Ω", Omicron: "Ο", Oopf: "𝕆", OpenCurlyDoubleQuote: "“", OpenCurlyQuote: "‘", Or: "⩔", Oscr: "𝒪", Oslas: "Ø", Oslash: "Ø", Otild: "Õ", Otilde: "Õ", Otimes: "⨷", Oum: "Ö", Ouml: "Ö", OverBar: "‾", OverBrace: "⏞", OverBracket: "⎴", OverParenthesis: "⏜", PartialD: "∂", Pcy: "П", Pfr: "𝔓", Phi: "Φ", Pi: "Π", PlusMinus: "±", Poincareplane: "ℌ", Popf: "ℙ", Pr: "⪻", Precedes: "≺", PrecedesEqual: "⪯", PrecedesSlantEqual: "≼", PrecedesTilde: "≾", Prime: "″", Product: "∏", Proportion: "∷", Proportional: "∝", Pscr: "𝒫", Psi: "Ψ", QUO: '"', QUOT: '"', Qfr: "𝔔", Qopf: "ℚ", Qscr: "𝒬", RBarr: "⤐", RE: "®", REG: "®", Racute: "Ŕ", Rang: "⟫", Rarr: "↠", Rarrtl: "⤖", Rcaron: "Ř", Rcedil: "Ŗ", Rcy: "Р", Re: "ℜ", ReverseElement: "∋", ReverseEquilibrium: "⇋", ReverseUpEquilibrium: "⥯", Rfr: "ℜ", Rho: "Ρ", RightAngleBracket: "⟩", RightArrow: "→", RightArrowBar: "⇥", RightArrowLeftArrow: "⇄", RightCeiling: "⌉", RightDoubleBracket: "⟧", RightDownTeeVector: "⥝", RightDownVector: "⇂", RightDownVectorBar: "⥕", RightFloor: "⌋", RightTee: "⊢", RightTeeArrow: "↦", RightTeeVector: "⥛", RightTriangle: "⊳", RightTriangleBar: "⧐", RightTriangleEqual: "⊵", RightUpDownVector: "⥏", RightUpTeeVector: "⥜", RightUpVector: "↾", RightUpVectorBar: "⥔", RightVector: "⇀", RightVectorBar: "⥓", Rightarrow: "⇒", Ropf: "ℝ", RoundImplies: "⥰", Rrightarrow: "⇛", Rscr: "ℛ", Rsh: "↱", RuleDelayed: "⧴", SHCHcy: "Щ", SHcy: "Ш", SOFTcy: "Ь", Sacute: "Ś", Sc: "⪼", Scaron: "Š", Scedil: "Ş", Scirc: "Ŝ", Scy: "С", Sfr: "𝔖", ShortDownArrow: "↓", ShortLeftArrow: "←", ShortRightArrow: "→", ShortUpArrow: "↑", Sigma: "Σ", SmallCircle: "∘", Sopf: "𝕊", Sqrt: "√", Square: "□", SquareIntersection: "⊓", SquareSubset: "⊏", SquareSubsetEqual: "⊑", SquareSuperset: "⊐", SquareSupersetEqual: "⊒", SquareUnion: "⊔", Sscr: "𝒮", Star: "⋆", Sub: "⋐", Subset: "⋐", SubsetEqual: "⊆", Succeeds: "≻", SucceedsEqual: "⪰", SucceedsSlantEqual: "≽", SucceedsTilde: "≿", SuchThat: "∋", Sum: "∑", Sup: "⋑", Superset: "⊃", SupersetEqual: "⊇", Supset: "⋑", THOR: "Þ", THORN: "Þ", TRADE: "™", TSHcy: "Ћ", TScy: "Ц", Tab: " ", Tau: "Τ", Tcaron: "Ť", Tcedil: "Ţ", Tcy: "Т", Tfr: "𝔗", Therefore: "∴", Theta: "Θ", ThickSpace: " ", ThinSpace: " ", Tilde: "∼", TildeEqual: "≃", TildeFullEqual: "≅", TildeTilde: "≈", Topf: "𝕋", TripleDot: "⃛", Tscr: "𝒯", Tstrok: "Ŧ", Uacut: "Ú", Uacute: "Ú", Uarr: "↟", Uarrocir: "⥉", Ubrcy: "Ў", Ubreve: "Ŭ", Ucir: "Û", Ucirc: "Û", Ucy: "У", Udblac: "Ű", Ufr: "𝔘", Ugrav: "Ù", Ugrave: "Ù", Umacr: "Ū", UnderBar: "_", UnderBrace: "⏟", UnderBracket: "⎵", UnderParenthesis: "⏝", Union: "⋃", UnionPlus: "⊎", Uogon: "Ų", Uopf: "𝕌", UpArrow: "↑", UpArrowBar: "⤒", UpArrowDownArrow: "⇅", UpDownArrow: "↕", UpEquilibrium: "⥮", UpTee: "⊥", UpTeeArrow: "↥", Uparrow: "⇑", Updownarrow: "⇕", UpperLeftArrow: "↖", UpperRightArrow: "↗", Upsi: "ϒ", Upsilon: "Υ", Uring: "Ů", Uscr: "𝒰", Utilde: "Ũ", Uum: "Ü", Uuml: "Ü", VDash: "⊫", Vbar: "⫫", Vcy: "В", Vdash: "⊩", Vdashl: "⫦", Vee: "⋁", Verbar: "‖", Vert: "‖", VerticalBar: "∣", VerticalLine: "|", VerticalSeparator: "❘", VerticalTilde: "≀", VeryThinSpace: " ", Vfr: "𝔙", Vopf: "𝕍", Vscr: "𝒱", Vvdash: "⊪", Wcirc: "Ŵ", Wedge: "⋀", Wfr: "𝔚", Wopf: "𝕎", Wscr: "𝒲", Xfr: "𝔛", Xi: "Ξ", Xopf: "𝕏", Xscr: "𝒳", YAcy: "Я", YIcy: "Ї", YUcy: "Ю", Yacut: "Ý", Yacute: "Ý", Ycirc: "Ŷ", Ycy: "Ы", Yfr: "𝔜", Yopf: "𝕐", Yscr: "𝒴", Yuml: "Ÿ", ZHcy: "Ж", Zacute: "Ź", Zcaron: "Ž", Zcy: "З", Zdot: "Ż", ZeroWidthSpace: "", Zeta: "Ζ", Zfr: "ℨ", Zopf: "ℤ", Zscr: "𝒵", aacut: "á", aacute: "á", abreve: "ă", ac: "∾", acE: "∾̳", acd: "∿", acir: "â", acirc: "â", acut: "´", acute: "´", acy: "а", aeli: "æ", aelig: "æ", af: "", afr: "𝔞", agrav: "à", agrave: "à", alefsym: "ℵ", aleph: "ℵ", alpha: "α", amacr: "ā", amalg: "⨿", am: "&", amp: "&", and: "∧", andand: "⩕", andd: "⩜", andslope: "⩘", andv: "⩚", ang: "∠", ange: "⦤", angle: "∠", angmsd: "∡", angmsdaa: "⦨", angmsdab: "⦩", angmsdac: "⦪", angmsdad: "⦫", angmsdae: "⦬", angmsdaf: "⦭", angmsdag: "⦮", angmsdah: "⦯", angrt: "∟", angrtvb: "⊾", angrtvbd: "⦝", angsph: "∢", angst: "Å", angzarr: "⍼", aogon: "ą", aopf: "𝕒", ap: "≈", apE: "⩰", apacir: "⩯", ape: "≊", apid: "≋", apos: "'", approx: "≈", approxeq: "≊", arin: "å", aring: "å", ascr: "𝒶", ast: "*", asymp: "≈", asympeq: "≍", atild: "ã", atilde: "ã", aum: "ä", auml: "ä", awconint: "∳", awint: "⨑", bNot: "⫭", backcong: "≌", backepsilon: "϶", backprime: "‵", backsim: "∽", backsimeq: "⋍", barvee: "⊽", barwed: "⌅", barwedge: "⌅", bbrk: "⎵", bbrktbrk: "⎶", bcong: "≌", bcy: "б", bdquo: "„", becaus: "∵", because: "∵", bemptyv: "⦰", bepsi: "϶", bernou: "ℬ", beta: "β", beth: "ℶ", between: "≬", bfr: "𝔟", bigcap: "⋂", bigcirc: "◯", bigcup: "⋃", bigodot: "⨀", bigoplus: "⨁", bigotimes: "⨂", bigsqcup: "⨆", bigstar: "★", bigtriangledown: "▽", bigtriangleup: "△", biguplus: "⨄", bigvee: "⋁", bigwedge: "⋀", bkarow: "⤍", blacklozenge: "⧫", blacksquare: "▪", blacktriangle: "▴", blacktriangledown: "▾", blacktriangleleft: "◂", blacktriangleright: "▸", blank: "␣", blk12: "▒", blk14: "░", blk34: "▓", block: "█", bne: "=⃥", bnequiv: "≡⃥", bnot: "⌐", bopf: "𝕓", bot: "⊥", bottom: "⊥", bowtie: "⋈", boxDL: "╗", boxDR: "╔", boxDl: "╖", boxDr: "╓", boxH: "═", boxHD: "╦", boxHU: "╩", boxHd: "╤", boxHu: "╧", boxUL: "╝", boxUR: "╚", boxUl: "╜", boxUr: "╙", boxV: "║", boxVH: "╬", boxVL: "╣", boxVR: "╠", boxVh: "╫", boxVl: "╢", boxVr: "╟", boxbox: "⧉", boxdL: "╕", boxdR: "╒", boxdl: "┐", boxdr: "┌", boxh: "─", boxhD: "╥", boxhU: "╨", boxhd: "┬", boxhu: "┴", boxminus: "⊟", boxplus: "⊞", boxtimes: "⊠", boxuL: "╛", boxuR: "╘", boxul: "┘", boxur: "└", boxv: "│", boxvH: "╪", boxvL: "╡", boxvR: "╞", boxvh: "┼", boxvl: "┤", boxvr: "├", bprime: "‵", breve: "˘", brvba: "¦", brvbar: "¦", bscr: "𝒷", bsemi: "⁏", bsim: "∽", bsime: "⋍", bsol: "\\", bsolb: "⧅", bsolhsub: "⟈", bull: "•", bullet: "•", bump: "≎", bumpE: "⪮", bumpe: "≏", bumpeq: "≏", cacute: "ć", cap: "∩", capand: "⩄", capbrcup: "⩉", capcap: "⩋", capcup: "⩇", capdot: "⩀", caps: "∩︀", caret: "⁁", caron: "ˇ", ccaps: "⩍", ccaron: "č", ccedi: "ç", ccedil: "ç", ccirc: "ĉ", ccups: "⩌", ccupssm: "⩐", cdot: "ċ", cedi: "¸", cedil: "¸", cemptyv: "⦲", cen: "¢", cent: "¢", centerdot: "·", cfr: "𝔠", chcy: "ч", check: "✓", checkmark: "✓", chi: "χ", cir: "○", cirE: "⧃", circ: "ˆ", circeq: "≗", circlearrowleft: "↺", circlearrowright: "↻", circledR: "®", circledS: "Ⓢ", circledast: "⊛", circledcirc: "⊚", circleddash: "⊝", cire: "≗", cirfnint: "⨐", cirmid: "⫯", cirscir: "⧂", clubs: "♣", clubsuit: "♣", colon: ":", colone: "≔", coloneq: "≔", comma: ",", commat: "@", comp: "∁", compfn: "∘", complement: "∁", complexes: "ℂ", cong: "≅", congdot: "⩭", conint: "∮", copf: "𝕔", coprod: "∐", cop: "©", copy: "©", copysr: "℗", crarr: "↵", cross: "✗", cscr: "𝒸", csub: "⫏", csube: "⫑", csup: "⫐", csupe: "⫒", ctdot: "⋯", cudarrl: "⤸", cudarrr: "⤵", cuepr: "⋞", cuesc: "⋟", cularr: "↶", cularrp: "⤽", cup: "∪", cupbrcap: "⩈", cupcap: "⩆", cupcup: "⩊", cupdot: "⊍", cupor: "⩅", cups: "∪︀", curarr: "↷", curarrm: "⤼", curlyeqprec: "⋞", curlyeqsucc: "⋟", curlyvee: "⋎", curlywedge: "⋏", curre: "¤", curren: "¤", curvearrowleft: "↶", curvearrowright: "↷", cuvee: "⋎", cuwed: "⋏", cwconint: "∲", cwint: "∱", cylcty: "⌭", dArr: "⇓", dHar: "⥥", dagger: "†", daleth: "ℸ", darr: "↓", dash: "‐", dashv: "⊣", dbkarow: "⤏", dblac: "˝", dcaron: "ď", dcy: "д", dd: "ⅆ", ddagger: "‡", ddarr: "⇊", ddotseq: "⩷", de: "°", deg: "°", delta: "δ", demptyv: "⦱", dfisht: "⥿", dfr: "𝔡", dharl: "⇃", dharr: "⇂", diam: "⋄", diamond: "⋄", diamondsuit: "♦", diams: "♦", die: "¨", digamma: "ϝ", disin: "⋲", div: "÷", divid: "÷", divide: "÷", divideontimes: "⋇", divonx: "⋇", djcy: "ђ", dlcorn: "⌞", dlcrop: "⌍", dollar: "$", dopf: "𝕕", dot: "˙", doteq: "≐", doteqdot: "≑", dotminus: "∸", dotplus: "∔", dotsquare: "⊡", doublebarwedge: "⌆", downarrow: "↓", downdownarrows: "⇊", downharpoonleft: "⇃", downharpoonright: "⇂", drbkarow: "⤐", drcorn: "⌟", drcrop: "⌌", dscr: "𝒹", dscy: "ѕ", dsol: "⧶", dstrok: "đ", dtdot: "⋱", dtri: "▿", dtrif: "▾", duarr: "⇵", duhar: "⥯", dwangle: "⦦", dzcy: "џ", dzigrarr: "⟿", eDDot: "⩷", eDot: "≑", eacut: "é", eacute: "é", easter: "⩮", ecaron: "ě", ecir: "ê", ecirc: "ê", ecolon: "≕", ecy: "э", edot: "ė", ee: "ⅇ", efDot: "≒", efr: "𝔢", eg: "⪚", egrav: "è", egrave: "è", egs: "⪖", egsdot: "⪘", el: "⪙", elinters: "⏧", ell: "ℓ", els: "⪕", elsdot: "⪗", emacr: "ē", empty: "∅", emptyset: "∅", emptyv: "∅", emsp13: " ", emsp14: " ", emsp: " ", eng: "ŋ", ensp: " ", eogon: "ę", eopf: "𝕖", epar: "⋕", eparsl: "⧣", eplus: "⩱", epsi: "ε", epsilon: "ε", epsiv: "ϵ", eqcirc: "≖", eqcolon: "≕", eqsim: "≂", eqslantgtr: "⪖", eqslantless: "⪕", equals: "=", equest: "≟", equiv: "≡", equivDD: "⩸", eqvparsl: "⧥", erDot: "≓", erarr: "⥱", escr: "ℯ", esdot: "≐", esim: "≂", eta: "η", et: "ð", eth: "ð", eum: "ë", euml: "ë", euro: "€", excl: "!", exist: "∃", expectation: "ℰ", exponentiale: "ⅇ", fallingdotseq: "≒", fcy: "ф", female: "♀", ffilig: "ffi", fflig: "ff", ffllig: "ffl", ffr: "𝔣", filig: "fi", fjlig: "fj", flat: "♭", fllig: "fl", fltns: "▱", fnof: "ƒ", fopf: "𝕗", forall: "∀", fork: "⋔", forkv: "⫙", fpartint: "⨍", frac1: "¼", frac12: "½", frac13: "⅓", frac14: "¼", frac15: "⅕", frac16: "⅙", frac18: "⅛", frac23: "⅔", frac25: "⅖", frac3: "¾", frac34: "¾", frac35: "⅗", frac38: "⅜", frac45: "⅘", frac56: "⅚", frac58: "⅝", frac78: "⅞", frasl: "⁄", frown: "⌢", fscr: "𝒻", gE: "≧", gEl: "⪌", gacute: "ǵ", gamma: "γ", gammad: "ϝ", gap: "⪆", gbreve: "ğ", gcirc: "ĝ", gcy: "г", gdot: "ġ", ge: "≥", gel: "⋛", geq: "≥", geqq: "≧", geqslant: "⩾", ges: "⩾", gescc: "⪩", gesdot: "⪀", gesdoto: "⪂", gesdotol: "⪄", gesl: "⋛︀", gesles: "⪔", gfr: "𝔤", gg: "≫", ggg: "⋙", gimel: "ℷ", gjcy: "ѓ", gl: "≷", glE: "⪒", gla: "⪥", glj: "⪤", gnE: "≩", gnap: "⪊", gnapprox: "⪊", gne: "⪈", gneq: "⪈", gneqq: "≩", gnsim: "⋧", gopf: "𝕘", grave: "`", gscr: "ℊ", gsim: "≳", gsime: "⪎", gsiml: "⪐", g: ">", gt: ">", gtcc: "⪧", gtcir: "⩺", gtdot: "⋗", gtlPar: "⦕", gtquest: "⩼", gtrapprox: "⪆", gtrarr: "⥸", gtrdot: "⋗", gtreqless: "⋛", gtreqqless: "⪌", gtrless: "≷", gtrsim: "≳", gvertneqq: "≩︀", gvnE: "≩︀", hArr: "⇔", hairsp: " ", half: "½", hamilt: "ℋ", hardcy: "ъ", harr: "↔", harrcir: "⥈", harrw: "↭", hbar: "ℏ", hcirc: "ĥ", hearts: "♥", heartsuit: "♥", hellip: "…", hercon: "⊹", hfr: "𝔥", hksearow: "⤥", hkswarow: "⤦", hoarr: "⇿", homtht: "∻", hookleftarrow: "↩", hookrightarrow: "↪", hopf: "𝕙", horbar: "―", hscr: "𝒽", hslash: "ℏ", hstrok: "ħ", hybull: "⁃", hyphen: "‐", iacut: "í", iacute: "í", ic: "", icir: "î", icirc: "î", icy: "и", iecy: "е", iexc: "¡", iexcl: "¡", iff: "⇔", ifr: "𝔦", igrav: "ì", igrave: "ì", ii: "ⅈ", iiiint: "⨌", iiint: "∭", iinfin: "⧜", iiota: "℩", ijlig: "ij", imacr: "ī", image: "ℑ", imagline: "ℐ", imagpart: "ℑ", imath: "ı", imof: "⊷", imped: "Ƶ", in: "∈", incare: "℅", infin: "∞", infintie: "⧝", inodot: "ı", int: "∫", intcal: "⊺", integers: "ℤ", intercal: "⊺", intlarhk: "⨗", intprod: "⨼", iocy: "ё", iogon: "į", iopf: "𝕚", iota: "ι", iprod: "⨼", iques: "¿", iquest: "¿", iscr: "𝒾", isin: "∈", isinE: "⋹", isindot: "⋵", isins: "⋴", isinsv: "⋳", isinv: "∈", it: "", itilde: "ĩ", iukcy: "і", ium: "ï", iuml: "ï", jcirc: "ĵ", jcy: "й", jfr: "𝔧", jmath: "ȷ", jopf: "𝕛", jscr: "𝒿", jsercy: "ј", jukcy: "є", kappa: "κ", kappav: "ϰ", kcedil: "ķ", kcy: "к", kfr: "𝔨", kgreen: "ĸ", khcy: "х", kjcy: "ќ", kopf: "𝕜", kscr: "𝓀", lAarr: "⇚", lArr: "⇐", lAtail: "⤛", lBarr: "⤎", lE: "≦", lEg: "⪋", lHar: "⥢", lacute: "ĺ", laemptyv: "⦴", lagran: "ℒ", lambda: "λ", lang: "⟨", langd: "⦑", langle: "⟨", lap: "⪅", laqu: "«", laquo: "«", larr: "←", larrb: "⇤", larrbfs: "⤟", larrfs: "⤝", larrhk: "↩", larrlp: "↫", larrpl: "⤹", larrsim: "⥳", larrtl: "↢", lat: "⪫", latail: "⤙", late: "⪭", lates: "⪭︀", lbarr: "⤌", lbbrk: "❲", lbrace: "{", lbrack: "[", lbrke: "⦋", lbrksld: "⦏", lbrkslu: "⦍", lcaron: "ľ", lcedil: "ļ", lceil: "⌈", lcub: "{", lcy: "л", ldca: "⤶", ldquo: "“", ldquor: "„", ldrdhar: "⥧", ldrushar: "⥋", ldsh: "↲", le: "≤", leftarrow: "←", leftarrowtail: "↢", leftharpoondown: "↽", leftharpoonup: "↼", leftleftarrows: "⇇", leftrightarrow: "↔", leftrightarrows: "⇆", leftrightharpoons: "⇋", leftrightsquigarrow: "↭", leftthreetimes: "⋋", leg: "⋚", leq: "≤", leqq: "≦", leqslant: "⩽", les: "⩽", lescc: "⪨", lesdot: "⩿", lesdoto: "⪁", lesdotor: "⪃", lesg: "⋚︀", lesges: "⪓", lessapprox: "⪅", lessdot: "⋖", lesseqgtr: "⋚", lesseqqgtr: "⪋", lessgtr: "≶", lesssim: "≲", lfisht: "⥼", lfloor: "⌊", lfr: "𝔩", lg: "≶", lgE: "⪑", lhard: "↽", lharu: "↼", lharul: "⥪", lhblk: "▄", ljcy: "љ", ll: "≪", llarr: "⇇", llcorner: "⌞", llhard: "⥫", lltri: "◺", lmidot: "ŀ", lmoust: "⎰", lmoustache: "⎰", lnE: "≨", lnap: "⪉", lnapprox: "⪉", lne: "⪇", lneq: "⪇", lneqq: "≨", lnsim: "⋦", loang: "⟬", loarr: "⇽", lobrk: "⟦", longleftarrow: "⟵", longleftrightarrow: "⟷", longmapsto: "⟼", longrightarrow: "⟶", looparrowleft: "↫", looparrowright: "↬", lopar: "⦅", lopf: "𝕝", loplus: "⨭", lotimes: "⨴", lowast: "∗", lowbar: "_", loz: "◊", lozenge: "◊", lozf: "⧫", lpar: "(", lparlt: "⦓", lrarr: "⇆", lrcorner: "⌟", lrhar: "⇋", lrhard: "⥭", lrm: "", lrtri: "⊿", lsaquo: "‹", lscr: "𝓁", lsh: "↰", lsim: "≲", lsime: "⪍", lsimg: "⪏", lsqb: "[", lsquo: "‘", lsquor: "‚", lstrok: "ł", l: "<", lt: "<", ltcc: "⪦", ltcir: "⩹", ltdot: "⋖", lthree: "⋋", ltimes: "⋉", ltlarr: "⥶", ltquest: "⩻", ltrPar: "⦖", ltri: "◃", ltrie: "⊴", ltrif: "◂", lurdshar: "⥊", luruhar: "⥦", lvertneqq: "≨︀", lvnE: "≨︀", mDDot: "∺", mac: "¯", macr: "¯", male: "♂", malt: "✠", maltese: "✠", map: "↦", mapsto: "↦", mapstodown: "↧", mapstoleft: "↤", mapstoup: "↥", marker: "▮", mcomma: "⨩", mcy: "м", mdash: "—", measuredangle: "∡", mfr: "𝔪", mho: "℧", micr: "µ", micro: "µ", mid: "∣", midast: "*", midcir: "⫰", middo: "·", middot: "·", minus: "−", minusb: "⊟", minusd: "∸", minusdu: "⨪", mlcp: "⫛", mldr: "…", mnplus: "∓", models: "⊧", mopf: "𝕞", mp: "∓", mscr: "𝓂", mstpos: "∾", mu: "μ", multimap: "⊸", mumap: "⊸", nGg: "⋙̸", nGt: "≫⃒", nGtv: "≫̸", nLeftarrow: "⇍", nLeftrightarrow: "⇎", nLl: "⋘̸", nLt: "≪⃒", nLtv: "≪̸", nRightarrow: "⇏", nVDash: "⊯", nVdash: "⊮", nabla: "∇", nacute: "ń", nang: "∠⃒", nap: "≉", napE: "⩰̸", napid: "≋̸", napos: "ʼn", napprox: "≉", natur: "♮", natural: "♮", naturals: "ℕ", nbs: " ", nbsp: " ", nbump: "≎̸", nbumpe: "≏̸", ncap: "⩃", ncaron: "ň", ncedil: "ņ", ncong: "≇", ncongdot: "⩭̸", ncup: "⩂", ncy: "н", ndash: "–", ne: "≠", neArr: "⇗", nearhk: "⤤", nearr: "↗", nearrow: "↗", nedot: "≐̸", nequiv: "≢", nesear: "⤨", nesim: "≂̸", nexist: "∄", nexists: "∄", nfr: "𝔫", ngE: "≧̸", nge: "≱", ngeq: "≱", ngeqq: "≧̸", ngeqslant: "⩾̸", nges: "⩾̸", ngsim: "≵", ngt: "≯", ngtr: "≯", nhArr: "⇎", nharr: "↮", nhpar: "⫲", ni: "∋", nis: "⋼", nisd: "⋺", niv: "∋", njcy: "њ", nlArr: "⇍", nlE: "≦̸", nlarr: "↚", nldr: "‥", nle: "≰", nleftarrow: "↚", nleftrightarrow: "↮", nleq: "≰", nleqq: "≦̸", nleqslant: "⩽̸", nles: "⩽̸", nless: "≮", nlsim: "≴", nlt: "≮", nltri: "⋪", nltrie: "⋬", nmid: "∤", nopf: "𝕟", no: "¬", not: "¬", notin: "∉", notinE: "⋹̸", notindot: "⋵̸", notinva: "∉", notinvb: "⋷", notinvc: "⋶", notni: "∌", notniva: "∌", notnivb: "⋾", notnivc: "⋽", npar: "∦", nparallel: "∦", nparsl: "⫽⃥", npart: "∂̸", npolint: "⨔", npr: "⊀", nprcue: "⋠", npre: "⪯̸", nprec: "⊀", npreceq: "⪯̸", nrArr: "⇏", nrarr: "↛", nrarrc: "⤳̸", nrarrw: "↝̸", nrightarrow: "↛", nrtri: "⋫", nrtrie: "⋭", nsc: "⊁", nsccue: "⋡", nsce: "⪰̸", nscr: "𝓃", nshortmid: "∤", nshortparallel: "∦", nsim: "≁", nsime: "≄", nsimeq: "≄", nsmid: "∤", nspar: "∦", nsqsube: "⋢", nsqsupe: "⋣", nsub: "⊄", nsubE: "⫅̸", nsube: "⊈", nsubset: "⊂⃒", nsubseteq: "⊈", nsubseteqq: "⫅̸", nsucc: "⊁", nsucceq: "⪰̸", nsup: "⊅", nsupE: "⫆̸", nsupe: "⊉", nsupset: "⊃⃒", nsupseteq: "⊉", nsupseteqq: "⫆̸", ntgl: "≹", ntild: "ñ", ntilde: "ñ", ntlg: "≸", ntriangleleft: "⋪", ntrianglelefteq: "⋬", ntriangleright: "⋫", ntrianglerighteq: "⋭", nu: "ν", num: "#", numero: "№", numsp: " ", nvDash: "⊭", nvHarr: "⤄", nvap: "≍⃒", nvdash: "⊬", nvge: "≥⃒", nvgt: ">⃒", nvinfin: "⧞", nvlArr: "⤂", nvle: "≤⃒", nvlt: "<⃒", nvltrie: "⊴⃒", nvrArr: "⤃", nvrtrie: "⊵⃒", nvsim: "∼⃒", nwArr: "⇖", nwarhk: "⤣", nwarr: "↖", nwarrow: "↖", nwnear: "⤧", oS: "Ⓢ", oacut: "ó", oacute: "ó", oast: "⊛", ocir: "ô", ocirc: "ô", ocy: "о", odash: "⊝", odblac: "ő", odiv: "⨸", odot: "⊙", odsold: "⦼", oelig: "œ", ofcir: "⦿", ofr: "𝔬", ogon: "˛", ograv: "ò", ograve: "ò", ogt: "⧁", ohbar: "⦵", ohm: "Ω", oint: "∮", olarr: "↺", olcir: "⦾", olcross: "⦻", oline: "‾", olt: "⧀", omacr: "ō", omega: "ω", omicron: "ο", omid: "⦶", ominus: "⊖", oopf: "𝕠", opar: "⦷", operp: "⦹", oplus: "⊕", or: "∨", orarr: "↻", ord: "º", order: "ℴ", orderof: "ℴ", ordf: "ª", ordm: "º", origof: "⊶", oror: "⩖", orslope: "⩗", orv: "⩛", oscr: "ℴ", oslas: "ø", oslash: "ø", osol: "⊘", otild: "õ", otilde: "õ", otimes: "⊗", otimesas: "⨶", oum: "ö", ouml: "ö", ovbar: "⌽", par: "¶", para: "¶", parallel: "∥", parsim: "⫳", parsl: "⫽", part: "∂", pcy: "п", percnt: "%", period: ".", permil: "‰", perp: "⊥", pertenk: "‱", pfr: "𝔭", phi: "φ", phiv: "ϕ", phmmat: "ℳ", phone: "☎", pi: "π", pitchfork: "⋔", piv: "ϖ", planck: "ℏ", planckh: "ℎ", plankv: "ℏ", plus: "+", plusacir: "⨣", plusb: "⊞", pluscir: "⨢", plusdo: "∔", plusdu: "⨥", pluse: "⩲", plusm: "±", plusmn: "±", plussim: "⨦", plustwo: "⨧", pm: "±", pointint: "⨕", popf: "𝕡", poun: "£", pound: "£", pr: "≺", prE: "⪳", prap: "⪷", prcue: "≼", pre: "⪯", prec: "≺", precapprox: "⪷", preccurlyeq: "≼", preceq: "⪯", precnapprox: "⪹", precneqq: "⪵", precnsim: "⋨", precsim: "≾", prime: "′", primes: "ℙ", prnE: "⪵", prnap: "⪹", prnsim: "⋨", prod: "∏", profalar: "⌮", profline: "⌒", profsurf: "⌓", prop: "∝", propto: "∝", prsim: "≾", prurel: "⊰", pscr: "𝓅", psi: "ψ", puncsp: " ", qfr: "𝔮", qint: "⨌", qopf: "𝕢", qprime: "⁗", qscr: "𝓆", quaternions: "ℍ", quatint: "⨖", quest: "?", questeq: "≟", quo: '"', quot: '"', rAarr: "⇛", rArr: "⇒", rAtail: "⤜", rBarr: "⤏", rHar: "⥤", race: "∽̱", racute: "ŕ", radic: "√", raemptyv: "⦳", rang: "⟩", rangd: "⦒", range: "⦥", rangle: "⟩", raqu: "»", raquo: "»", rarr: "→", rarrap: "⥵", rarrb: "⇥", rarrbfs: "⤠", rarrc: "⤳", rarrfs: "⤞", rarrhk: "↪", rarrlp: "↬", rarrpl: "⥅", rarrsim: "⥴", rarrtl: "↣", rarrw: "↝", ratail: "⤚", ratio: "∶", rationals: "ℚ", rbarr: "⤍", rbbrk: "❳", rbrace: "}", rbrack: "]", rbrke: "⦌", rbrksld: "⦎", rbrkslu: "⦐", rcaron: "ř", rcedil: "ŗ", rceil: "⌉", rcub: "}", rcy: "р", rdca: "⤷", rdldhar: "⥩", rdquo: "”", rdquor: "”", rdsh: "↳", real: "ℜ", realine: "ℛ", realpart: "ℜ", reals: "ℝ", rect: "▭", re: "®", reg: "®", rfisht: "⥽", rfloor: "⌋", rfr: "𝔯", rhard: "⇁", rharu: "⇀", rharul: "⥬", rho: "ρ", rhov: "ϱ", rightarrow: "→", rightarrowtail: "↣", rightharpoondown: "⇁", rightharpoonup: "⇀", rightleftarrows: "⇄", rightleftharpoons: "⇌", rightrightarrows: "⇉", rightsquigarrow: "↝", rightthreetimes: "⋌", ring: "˚", risingdotseq: "≓", rlarr: "⇄", rlhar: "⇌", rlm: "", rmoust: "⎱", rmoustache: "⎱", rnmid: "⫮", roang: "⟭", roarr: "⇾", robrk: "⟧", ropar: "⦆", ropf: "𝕣", roplus: "⨮", rotimes: "⨵", rpar: ")", rpargt: "⦔", rppolint: "⨒", rrarr: "⇉", rsaquo: "›", rscr: "𝓇", rsh: "↱", rsqb: "]", rsquo: "’", rsquor: "’", rthree: "⋌", rtimes: "⋊", rtri: "▹", rtrie: "⊵", rtrif: "▸", rtriltri: "⧎", ruluhar: "⥨", rx: "℞", sacute: "ś", sbquo: "‚", sc: "≻", scE: "⪴", scap: "⪸", scaron: "š", sccue: "≽", sce: "⪰", scedil: "ş", scirc: "ŝ", scnE: "⪶", scnap: "⪺", scnsim: "⋩", scpolint: "⨓", scsim: "≿", scy: "с", sdot: "⋅", sdotb: "⊡", sdote: "⩦", seArr: "⇘", searhk: "⤥", searr: "↘", searrow: "↘", sec: "§", sect: "§", semi: ";", seswar: "⤩", setminus: "∖", setmn: "∖", sext: "✶", sfr: "𝔰", sfrown: "⌢", sharp: "♯", shchcy: "щ", shcy: "ш", shortmid: "∣", shortparallel: "∥", sh: "", shy: "", sigma: "σ", sigmaf: "ς", sigmav: "ς", sim: "∼", simdot: "⩪", sime: "≃", simeq: "≃", simg: "⪞", simgE: "⪠", siml: "⪝", simlE: "⪟", simne: "≆", simplus: "⨤", simrarr: "⥲", slarr: "←", smallsetminus: "∖", smashp: "⨳", smeparsl: "⧤", smid: "∣", smile: "⌣", smt: "⪪", smte: "⪬", smtes: "⪬︀", softcy: "ь", sol: "/", solb: "⧄", solbar: "⌿", sopf: "𝕤", spades: "♠", spadesuit: "♠", spar: "∥", sqcap: "⊓", sqcaps: "⊓︀", sqcup: "⊔", sqcups: "⊔︀", sqsub: "⊏", sqsube: "⊑", sqsubset: "⊏", sqsubseteq: "⊑", sqsup: "⊐", sqsupe: "⊒", sqsupset: "⊐", sqsupseteq: "⊒", squ: "□", square: "□", squarf: "▪", squf: "▪", srarr: "→", sscr: "𝓈", ssetmn: "∖", ssmile: "⌣", sstarf: "⋆", star: "☆", starf: "★", straightepsilon: "ϵ", straightphi: "ϕ", strns: "¯", sub: "⊂", subE: "⫅", subdot: "⪽", sube: "⊆", subedot: "⫃", submult: "⫁", subnE: "⫋", subne: "⊊", subplus: "⪿", subrarr: "⥹", subset: "⊂", subseteq: "⊆", subseteqq: "⫅", subsetneq: "⊊", subsetneqq: "⫋", subsim: "⫇", subsub: "⫕", subsup: "⫓", succ: "≻", succapprox: "⪸", succcurlyeq: "≽", succeq: "⪰", succnapprox: "⪺", succneqq: "⪶", succnsim: "⋩", succsim: "≿", sum: "∑", sung: "♪", sup: "⊃", sup1: "¹", sup2: "²", sup3: "³", supE: "⫆", supdot: "⪾", supdsub: "⫘", supe: "⊇", supedot: "⫄", suphsol: "⟉", suphsub: "⫗", suplarr: "⥻", supmult: "⫂", supnE: "⫌", supne: "⊋", supplus: "⫀", supset: "⊃", supseteq: "⊇", supseteqq: "⫆", supsetneq: "⊋", supsetneqq: "⫌", supsim: "⫈", supsub: "⫔", supsup: "⫖", swArr: "⇙", swarhk: "⤦", swarr: "↙", swarrow: "↙", swnwar: "⤪", szli: "ß", szlig: "ß", target: "⌖", tau: "τ", tbrk: "⎴", tcaron: "ť", tcedil: "ţ", tcy: "т", tdot: "⃛", telrec: "⌕", tfr: "𝔱", there4: "∴", therefore: "∴", theta: "θ", thetasym: "ϑ", thetav: "ϑ", thickapprox: "≈", thicksim: "∼", thinsp: " ", thkap: "≈", thksim: "∼", thor: "þ", thorn: "þ", tilde: "˜", time: "×", times: "×", timesb: "⊠", timesbar: "⨱", timesd: "⨰", tint: "∭", toea: "⤨", top: "⊤", topbot: "⌶", topcir: "⫱", topf: "𝕥", topfork: "⫚", tosa: "⤩", tprime: "‴", trade: "™", triangle: "▵", triangledown: "▿", triangleleft: "◃", trianglelefteq: "⊴", triangleq: "≜", triangleright: "▹", trianglerighteq: "⊵", tridot: "◬", trie: "≜", triminus: "⨺", triplus: "⨹", trisb: "⧍", tritime: "⨻", trpezium: "⏢", tscr: "𝓉", tscy: "ц", tshcy: "ћ", tstrok: "ŧ", twixt: "≬", twoheadleftarrow: "↞", twoheadrightarrow: "↠", uArr: "⇑", uHar: "⥣", uacut: "ú", uacute: "ú", uarr: "↑", ubrcy: "ў", ubreve: "ŭ", ucir: "û", ucirc: "û", ucy: "у", udarr: "⇅", udblac: "ű", udhar: "⥮", ufisht: "⥾", ufr: "𝔲", ugrav: "ù", ugrave: "ù", uharl: "↿", uharr: "↾", uhblk: "▀", ulcorn: "⌜", ulcorner: "⌜", ulcrop: "⌏", ultri: "◸", umacr: "ū", um: "¨", uml: "¨", uogon: "ų", uopf: "𝕦", uparrow: "↑", updownarrow: "↕", upharpoonleft: "↿", upharpoonright: "↾", uplus: "⊎", upsi: "υ", upsih: "ϒ", upsilon: "υ", upuparrows: "⇈", urcorn: "⌝", urcorner: "⌝", urcrop: "⌎", uring: "ů", urtri: "◹", uscr: "𝓊", utdot: "⋰", utilde: "ũ", utri: "▵", utrif: "▴", uuarr: "⇈", uum: "ü", uuml: "ü", uwangle: "⦧", vArr: "⇕", vBar: "⫨", vBarv: "⫩", vDash: "⊨", vangrt: "⦜", varepsilon: "ϵ", varkappa: "ϰ", varnothing: "∅", varphi: "ϕ", varpi: "ϖ", varpropto: "∝", varr: "↕", varrho: "ϱ", varsigma: "ς", varsubsetneq: "⊊︀", varsubsetneqq: "⫋︀", varsupsetneq: "⊋︀", varsupsetneqq: "⫌︀", vartheta: "ϑ", vartriangleleft: "⊲", vartriangleright: "⊳", vcy: "в", vdash: "⊢", vee: "∨", veebar: "⊻", veeeq: "≚", vellip: "⋮", verbar: "|", vert: "|", vfr: "𝔳", vltri: "⊲", vnsub: "⊂⃒", vnsup: "⊃⃒", vopf: "𝕧", vprop: "∝", vrtri: "⊳", vscr: "𝓋", vsubnE: "⫋︀", vsubne: "⊊︀", vsupnE: "⫌︀", vsupne: "⊋︀", vzigzag: "⦚", wcirc: "ŵ", wedbar: "⩟", wedge: "∧", wedgeq: "≙", weierp: "℘", wfr: "𝔴", wopf: "𝕨", wp: "℘", wr: "≀", wreath: "≀", wscr: "𝓌", xcap: "⋂", xcirc: "◯", xcup: "⋃", xdtri: "▽", xfr: "𝔵", xhArr: "⟺", xharr: "⟷", xi: "ξ", xlArr: "⟸", xlarr: "⟵", xmap: "⟼", xnis: "⋻", xodot: "⨀", xopf: "𝕩", xoplus: "⨁", xotime: "⨂", xrArr: "⟹", xrarr: "⟶", xscr: "𝓍", xsqcup: "⨆", xuplus: "⨄", xutri: "△", xvee: "⋁", xwedge: "⋀", yacut: "ý", yacute: "ý", yacy: "я", ycirc: "ŷ", ycy: "ы", ye: "¥", yen: "¥", yfr: "𝔶", yicy: "ї", yopf: "𝕪", yscr: "𝓎", yucy: "ю", yum: "ÿ", yuml: "ÿ", zacute: "ź", zcaron: "ž", zcy: "з", zdot: "ż", zeetrf: "ℨ", zeta: "ζ", zfr: "𝔷", zhcy: "ж", zigrarr: "⇝", zopf: "𝕫", zscr: "𝓏", zwj: "", zwnj: "" };
|
|
345
|
+
}), Er = N((u, e) => {
|
|
346
|
+
var t = mr();
|
|
347
|
+
e.exports = r;
|
|
348
|
+
var n = {}.hasOwnProperty;
|
|
349
|
+
function r(i) {
|
|
350
|
+
return n.call(t, i) ? t[i] : !1;
|
|
351
|
+
}
|
|
352
|
+
}), ve = N((u, e) => {
|
|
353
|
+
var t = Fr(), n = Cr(), r = Vu(), i = Ar(), o = gr(), a = Er();
|
|
354
|
+
e.exports = J;
|
|
355
|
+
var l = {}.hasOwnProperty, D = String.fromCharCode, s = Function.prototype, c = { warning: null, reference: null, text: null, warningContext: null, referenceContext: null, textContext: null, position: {}, additional: null, attribute: !1, nonTerminated: !0 }, f = 9, h = 10, p = 12, E = 32, A = 38, v = 59, F = 60, B = 61, m = 35, d = 88, C = 120, g = 65533, y = "named", w = "hexadecimal", T = "decimal", b = {};
|
|
356
|
+
b[w] = 16, b[T] = 10;
|
|
357
|
+
var k = {};
|
|
358
|
+
k[y] = o, k[T] = r, k[w] = i;
|
|
359
|
+
var L = 1, I = 2, x = 3, S = 4, M = 5, z = 6, V = 7, q = {};
|
|
360
|
+
q[L] = "Named character references must be terminated by a semicolon", q[I] = "Numeric character references must be terminated by a semicolon", q[x] = "Named character references cannot be empty", q[S] = "Numeric character references cannot be empty", q[M] = "Named character references must be known", q[z] = "Numeric character references cannot be disallowed", q[V] = "Numeric character references cannot be outside the permissible Unicode range";
|
|
361
|
+
function J(U, R) {
|
|
362
|
+
var P = {}, G, W;
|
|
363
|
+
R || (R = {});
|
|
364
|
+
for (W in c) G = R[W], P[W] = G ?? c[W];
|
|
365
|
+
return (P.position.indent || P.position.start) && (P.indent = P.position.indent || [], P.position = P.position.start), j(U, P);
|
|
366
|
+
}
|
|
367
|
+
function j(U, R) {
|
|
368
|
+
var P = R.additional, G = R.nonTerminated, W = R.text, Y = R.reference, K = R.warning, eu = R.textContext, H = R.referenceContext, Q = R.warningContext, Du = R.position, su = R.indent || [], uu = U.length, _ = 0, X = -1, pu = Du.column || 1, yu = Du.line || 1, hu = "", Fu = [], nu, du, tu, Z, wu, au, ru, gu, De, ye, Ou, Yu, Ru, vu, We, Ku, ce, mu, ou;
|
|
369
|
+
for (typeof P == "string" && (P = P.charCodeAt(0)), Ku = Xu(), gu = K ? Zt : s, _--, uu++; ++_ < uu; ) if (wu === h && (pu = su[X] || 1), wu = U.charCodeAt(_), wu === A) {
|
|
370
|
+
if (ru = U.charCodeAt(_ + 1), ru === f || ru === h || ru === p || ru === E || ru === A || ru === F || ru !== ru || P && ru === P) {
|
|
371
|
+
hu += D(wu), pu++;
|
|
372
|
+
continue;
|
|
373
|
+
}
|
|
374
|
+
for (Ru = _ + 1, Yu = Ru, ou = Ru, ru === m ? (ou = ++Yu, ru = U.charCodeAt(ou), ru === d || ru === C ? (vu = w, ou = ++Yu) : vu = T) : vu = y, nu = "", Ou = "", Z = "", We = k[vu], ou--; ++ou < uu && (ru = U.charCodeAt(ou), !!We(ru)); ) Z += D(ru), vu === y && l.call(t, Z) && (nu = Z, Ou = t[Z]);
|
|
375
|
+
tu = U.charCodeAt(ou) === v, tu && (ou++, du = vu === y ? a(Z) : !1, du && (nu = Z, Ou = du)), mu = 1 + ou - Ru, !tu && !G || (Z ? vu === y ? (tu && !Ou ? gu(M, 1) : (nu !== Z && (ou = Yu + nu.length, mu = 1 + ou - Yu, tu = !1), tu || (De = nu ? L : x, R.attribute ? (ru = U.charCodeAt(ou), ru === B ? (gu(De, mu), Ou = null) : o(ru) ? Ou = null : gu(De, mu)) : gu(De, mu))), au = Ou) : (tu || gu(I, mu), au = parseInt(Z, b[vu]), O(au) ? (gu(V, mu), au = D(g)) : au in n ? (gu(z, mu), au = n[au]) : (ye = "", $(au) && gu(z, mu), au > 65535 && (au -= 65536, ye += D(au >>> 10 | 55296), au = 56320 | au & 1023), au = ye + D(au))) : vu !== y && gu(S, mu)), au ? (He(), Ku = Xu(), _ = ou - 1, pu += ou - Ru + 1, Fu.push(au), ce = Xu(), ce.offset++, Y && Y.call(H, au, { start: Ku, end: ce }, U.slice(Ru - 1, ou)), Ku = ce) : (Z = U.slice(Ru - 1, ou), hu += Z, pu += Z.length, _ = ou - 1);
|
|
376
|
+
} else wu === 10 && (yu++, X++, pu = 0), wu === wu ? (hu += D(wu), pu++) : He();
|
|
377
|
+
return Fu.join("");
|
|
378
|
+
function Xu() {
|
|
379
|
+
return { line: yu, column: pu, offset: _ + (Du.offset || 0) };
|
|
380
|
+
}
|
|
381
|
+
function Zt(_e, Je) {
|
|
382
|
+
var we = Xu();
|
|
383
|
+
we.column += Je, we.offset += Je, K.call(Q, q[_e], we, _e);
|
|
384
|
+
}
|
|
385
|
+
function He() {
|
|
386
|
+
hu && (Fu.push(hu), W && W.call(eu, hu, { start: Ku, end: Xu() }), hu = "");
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function O(U) {
|
|
390
|
+
return U >= 55296 && U <= 57343 || U > 1114111;
|
|
391
|
+
}
|
|
392
|
+
function $(U) {
|
|
393
|
+
return U >= 1 && U <= 8 || U === 11 || U >= 13 && U <= 31 || U >= 127 && U <= 159 || U >= 64976 && U <= 65007 || (U & 65535) === 65535 || (U & 65535) === 65534;
|
|
394
|
+
}
|
|
395
|
+
}), vr = N((u, e) => {
|
|
396
|
+
var t = Uu(), n = ve();
|
|
397
|
+
e.exports = r;
|
|
398
|
+
function r(i) {
|
|
399
|
+
return a.raw = l, a;
|
|
400
|
+
function o(s) {
|
|
401
|
+
for (var c = i.offset, f = s.line, h = []; ++f && f in c; ) h.push((c[f] || 0) + 1);
|
|
402
|
+
return { start: s, indent: h };
|
|
403
|
+
}
|
|
404
|
+
function a(s, c, f) {
|
|
405
|
+
n(s, { position: o(c), warning: D, text: f, reference: f, textContext: i, referenceContext: i });
|
|
406
|
+
}
|
|
407
|
+
function l(s, c, f) {
|
|
408
|
+
return n(s, t(f, { position: o(c), warning: D }));
|
|
409
|
+
}
|
|
410
|
+
function D(s, c, f) {
|
|
411
|
+
f !== 3 && i.file.message(s, c);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}), xr = N((u, e) => {
|
|
415
|
+
e.exports = t;
|
|
416
|
+
function t(o) {
|
|
417
|
+
return a;
|
|
418
|
+
function a(l, D) {
|
|
419
|
+
var s = this, c = s.offset, f = [], h = s[o + "Methods"], p = s[o + "Tokenizers"], E = D.line, A = D.column, v, F, B, m, d, C;
|
|
420
|
+
if (!l) return f;
|
|
421
|
+
for (I.now = w, I.file = s.file, g(""); l; ) {
|
|
422
|
+
for (v = -1, F = h.length, d = !1; ++v < F && (m = h[v], B = p[m], !(B && (!B.onlyAtStart || s.atStart) && (!B.notInList || !s.inList) && (!B.notInBlock || !s.inBlock) && (!B.notInLink || !s.inLink) && (C = l.length, B.apply(s, [I, l]), d = C !== l.length, d))); ) ;
|
|
423
|
+
d || s.file.fail(new Error("Infinite loop"), I.now());
|
|
424
|
+
}
|
|
425
|
+
return s.eof = w(), f;
|
|
426
|
+
function g(x) {
|
|
427
|
+
for (var S = -1, M = x.indexOf(`
|
|
428
|
+
`); M !== -1; ) E++, S = M, M = x.indexOf(`
|
|
429
|
+
`, M + 1);
|
|
430
|
+
S === -1 ? A += x.length : A = x.length - S, E in c && (S !== -1 ? A += c[E] : A <= c[E] && (A = c[E] + 1));
|
|
431
|
+
}
|
|
432
|
+
function y() {
|
|
433
|
+
var x = [], S = E + 1;
|
|
434
|
+
return function() {
|
|
435
|
+
for (var M = E + 1; S < M; ) x.push((c[S] || 0) + 1), S++;
|
|
436
|
+
return x;
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
function w() {
|
|
440
|
+
var x = { line: E, column: A };
|
|
441
|
+
return x.offset = s.toOffset(x), x;
|
|
442
|
+
}
|
|
443
|
+
function T(x) {
|
|
444
|
+
this.start = x, this.end = w();
|
|
445
|
+
}
|
|
446
|
+
function b(x) {
|
|
447
|
+
l.slice(0, x.length) !== x && s.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"), w());
|
|
448
|
+
}
|
|
449
|
+
function k() {
|
|
450
|
+
var x = w();
|
|
451
|
+
return S;
|
|
452
|
+
function S(M, z) {
|
|
453
|
+
var V = M.position, q = V ? V.start : x, J = [], j = V && V.end.line, O = x.line;
|
|
454
|
+
if (M.position = new T(q), V && z && V.indent) {
|
|
455
|
+
if (J = V.indent, j < O) {
|
|
456
|
+
for (; ++j < O; ) J.push((c[j] || 0) + 1);
|
|
457
|
+
J.push(x.column);
|
|
458
|
+
}
|
|
459
|
+
z = J.concat(z);
|
|
460
|
+
}
|
|
461
|
+
return M.position.indent = z || [], M;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
function L(x, S) {
|
|
465
|
+
var M = S ? S.children : f, z = M[M.length - 1], V;
|
|
466
|
+
return z && x.type === z.type && (x.type === "text" || x.type === "blockquote") && n(z) && n(x) && (V = x.type === "text" ? r : i, x = V.call(s, z, x)), x !== z && M.push(x), s.atStart && f.length !== 0 && s.exitStart(), x;
|
|
467
|
+
}
|
|
468
|
+
function I(x) {
|
|
469
|
+
var S = y(), M = k(), z = w();
|
|
470
|
+
return b(x), V.reset = q, q.test = J, V.test = J, l = l.slice(x.length), g(x), S = S(), V;
|
|
471
|
+
function V(j, O) {
|
|
472
|
+
return M(L(M(j), O), S);
|
|
473
|
+
}
|
|
474
|
+
function q() {
|
|
475
|
+
var j = V.apply(null, arguments);
|
|
476
|
+
return E = z.line, A = z.column, l = x + l, j;
|
|
477
|
+
}
|
|
478
|
+
function J() {
|
|
479
|
+
var j = M({});
|
|
480
|
+
return E = z.line, A = z.column, l = x + l, j.position;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
function n(o) {
|
|
486
|
+
var a, l;
|
|
487
|
+
return o.type !== "text" || !o.position ? !0 : (a = o.position.start, l = o.position.end, a.line !== l.line || l.column - a.column === o.value.length);
|
|
488
|
+
}
|
|
489
|
+
function r(o, a) {
|
|
490
|
+
return o.value += a.value, o;
|
|
491
|
+
}
|
|
492
|
+
function i(o, a) {
|
|
493
|
+
return this.options.commonmark || this.options.gfm ? a : (o.children = o.children.concat(a.children), o);
|
|
494
|
+
}
|
|
495
|
+
}), Br = N((u, e) => {
|
|
496
|
+
e.exports = i;
|
|
497
|
+
var t = ["\\", "`", "*", "{", "}", "[", "]", "(", ")", "#", "+", "-", ".", "!", "_", ">"], n = t.concat(["~", "|"]), r = n.concat([`
|
|
498
|
+
`, '"', "$", "%", "&", "'", ",", "/", ":", ";", "<", "=", "?", "@", "^"]);
|
|
499
|
+
i.default = t, i.gfm = n, i.commonmark = r;
|
|
500
|
+
function i(o) {
|
|
501
|
+
var a = o || {};
|
|
502
|
+
return a.commonmark ? r : a.gfm ? n : t;
|
|
503
|
+
}
|
|
504
|
+
}), br = N((u, e) => {
|
|
505
|
+
e.exports = ["address", "article", "aside", "base", "basefont", "blockquote", "body", "caption", "center", "col", "colgroup", "dd", "details", "dialog", "dir", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "iframe", "legend", "li", "link", "main", "menu", "menuitem", "meta", "nav", "noframes", "ol", "optgroup", "option", "p", "param", "pre", "section", "source", "title", "summary", "table", "tbody", "td", "tfoot", "th", "thead", "title", "tr", "track", "ul"];
|
|
506
|
+
}), Bt = N((u, e) => {
|
|
507
|
+
e.exports = { position: !0, gfm: !0, commonmark: !1, pedantic: !1, blocks: br() };
|
|
508
|
+
}), yr = N((u, e) => {
|
|
509
|
+
var t = Uu(), n = Br(), r = Bt();
|
|
510
|
+
e.exports = i;
|
|
511
|
+
function i(o) {
|
|
512
|
+
var a = this, l = a.options, D, s;
|
|
513
|
+
if (o == null) o = {};
|
|
514
|
+
else if (typeof o == "object") o = t(o);
|
|
515
|
+
else throw new Error("Invalid value `" + o + "` for setting `options`");
|
|
516
|
+
for (D in r) {
|
|
517
|
+
if (s = o[D], s == null && (s = l[D]), D !== "blocks" && typeof s != "boolean" || D === "blocks" && typeof s != "object") throw new Error("Invalid value `" + s + "` for setting `options." + D + "`");
|
|
518
|
+
o[D] = s;
|
|
519
|
+
}
|
|
520
|
+
return a.options = o, a.escape = n(o), a;
|
|
521
|
+
}
|
|
522
|
+
}), wr = N((u, e) => {
|
|
523
|
+
e.exports = t;
|
|
524
|
+
function t(a) {
|
|
525
|
+
if (a == null) return o;
|
|
526
|
+
if (typeof a == "string") return i(a);
|
|
527
|
+
if (typeof a == "object") return "length" in a ? r(a) : n(a);
|
|
528
|
+
if (typeof a == "function") return a;
|
|
529
|
+
throw new Error("Expected function, string, or object as test");
|
|
530
|
+
}
|
|
531
|
+
function n(a) {
|
|
532
|
+
return l;
|
|
533
|
+
function l(D) {
|
|
534
|
+
var s;
|
|
535
|
+
for (s in a) if (D[s] !== a[s]) return !1;
|
|
536
|
+
return !0;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
function r(a) {
|
|
540
|
+
for (var l = [], D = -1; ++D < a.length; ) l[D] = t(a[D]);
|
|
541
|
+
return s;
|
|
542
|
+
function s() {
|
|
543
|
+
for (var c = -1; ++c < l.length; ) if (l[c].apply(this, arguments)) return !0;
|
|
544
|
+
return !1;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function i(a) {
|
|
548
|
+
return l;
|
|
549
|
+
function l(D) {
|
|
550
|
+
return !!(D && D.type === a);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
function o() {
|
|
554
|
+
return !0;
|
|
555
|
+
}
|
|
556
|
+
}), kr = N((u, e) => {
|
|
557
|
+
e.exports = t;
|
|
558
|
+
function t(n) {
|
|
559
|
+
return n;
|
|
560
|
+
}
|
|
561
|
+
}), qr = N((u, e) => {
|
|
562
|
+
e.exports = a;
|
|
563
|
+
var t = wr(), n = kr(), r = !0, i = "skip", o = !1;
|
|
564
|
+
a.CONTINUE = r, a.SKIP = i, a.EXIT = o;
|
|
565
|
+
function a(D, s, c, f) {
|
|
566
|
+
var h, p;
|
|
567
|
+
typeof s == "function" && typeof c != "function" && (f = c, c = s, s = null), p = t(s), h = f ? -1 : 1, E(D, null, [])();
|
|
568
|
+
function E(A, v, F) {
|
|
569
|
+
var B = typeof A == "object" && A !== null ? A : {}, m;
|
|
570
|
+
return typeof B.type == "string" && (m = typeof B.tagName == "string" ? B.tagName : typeof B.name == "string" ? B.name : void 0, d.displayName = "node (" + n(B.type + (m ? "<" + m + ">" : "")) + ")"), d;
|
|
571
|
+
function d() {
|
|
572
|
+
var C = F.concat(A), g = [], y, w;
|
|
573
|
+
if ((!s || p(A, v, F[F.length - 1] || null)) && (g = l(c(A, F)), g[0] === o)) return g;
|
|
574
|
+
if (A.children && g[0] !== i) for (w = (f ? A.children.length : -1) + h; w > -1 && w < A.children.length; ) {
|
|
575
|
+
if (y = E(A.children[w], w, C)(), y[0] === o) return y;
|
|
576
|
+
w = typeof y[1] == "number" ? y[1] : w + h;
|
|
577
|
+
}
|
|
578
|
+
return g;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
function l(D) {
|
|
583
|
+
return D !== null && typeof D == "object" && "length" in D ? D : typeof D == "number" ? [r, D] : [D];
|
|
584
|
+
}
|
|
585
|
+
}), Sr = N((u, e) => {
|
|
586
|
+
e.exports = o;
|
|
587
|
+
var t = qr(), n = t.CONTINUE, r = t.SKIP, i = t.EXIT;
|
|
588
|
+
o.CONTINUE = n, o.SKIP = r, o.EXIT = i;
|
|
589
|
+
function o(a, l, D, s) {
|
|
590
|
+
typeof l == "function" && typeof D != "function" && (s = D, D = l, l = null), t(a, l, c, s);
|
|
591
|
+
function c(f, h) {
|
|
592
|
+
var p = h[h.length - 1], E = p ? p.children.indexOf(f) : null;
|
|
593
|
+
return D(f, E, p);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}), Lr = N((u, e) => {
|
|
597
|
+
var t = Sr();
|
|
598
|
+
e.exports = n;
|
|
599
|
+
function n(o, a) {
|
|
600
|
+
return t(o, a ? r : i), o;
|
|
601
|
+
}
|
|
602
|
+
function r(o) {
|
|
603
|
+
delete o.position;
|
|
604
|
+
}
|
|
605
|
+
function i(o) {
|
|
606
|
+
o.position = void 0;
|
|
607
|
+
}
|
|
608
|
+
}), Tr = N((u, e) => {
|
|
609
|
+
var t = Uu(), n = Lr();
|
|
610
|
+
e.exports = o;
|
|
611
|
+
var r = `
|
|
612
|
+
`, i = /\r\n|\r/g;
|
|
613
|
+
function o() {
|
|
614
|
+
var a = this, l = String(a.file), D = { line: 1, column: 1, offset: 0 }, s = t(D), c;
|
|
615
|
+
return l = l.replace(i, r), l.charCodeAt(0) === 65279 && (l = l.slice(1), s.column++, s.offset++), c = { type: "root", children: a.tokenizeBlock(l, s), position: { start: D, end: a.eof || t(D) } }, a.options.position || n(c, !0), c;
|
|
616
|
+
}
|
|
617
|
+
}), Or = N((u, e) => {
|
|
618
|
+
var t = /^[ \t]*(\n|$)/;
|
|
619
|
+
e.exports = n;
|
|
620
|
+
function n(r, i, o) {
|
|
621
|
+
for (var a, l = "", D = 0, s = i.length; D < s && (a = t.exec(i.slice(D)), a != null); ) D += a[0].length, l += a[0];
|
|
622
|
+
if (l !== "") {
|
|
623
|
+
if (o) return !0;
|
|
624
|
+
r(l);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}), je = N((u, e) => {
|
|
628
|
+
var t = "", n;
|
|
629
|
+
e.exports = r;
|
|
630
|
+
function r(i, o) {
|
|
631
|
+
if (typeof i != "string") throw new TypeError("expected a string");
|
|
632
|
+
if (o === 1) return i;
|
|
633
|
+
if (o === 2) return i + i;
|
|
634
|
+
var a = i.length * o;
|
|
635
|
+
if (n !== i || typeof n > "u") n = i, t = "";
|
|
636
|
+
else if (t.length >= a) return t.substr(0, a);
|
|
637
|
+
for (; a > t.length && o > 1; ) o & 1 && (t += i), o >>= 1, i += i;
|
|
638
|
+
return t += i, t = t.substr(0, a), t;
|
|
639
|
+
}
|
|
640
|
+
}), bt = N((u, e) => {
|
|
641
|
+
e.exports = t;
|
|
642
|
+
function t(n) {
|
|
643
|
+
return String(n).replace(/\n+$/, "");
|
|
644
|
+
}
|
|
645
|
+
}), Rr = N((u, e) => {
|
|
646
|
+
var t = je(), n = bt();
|
|
647
|
+
e.exports = D;
|
|
648
|
+
var r = `
|
|
649
|
+
`, i = " ", o = " ", a = 4, l = t(o, a);
|
|
650
|
+
function D(s, c, f) {
|
|
651
|
+
for (var h = -1, p = c.length, E = "", A = "", v = "", F = "", B, m, d; ++h < p; ) if (B = c.charAt(h), d) if (d = !1, E += v, A += F, v = "", F = "", B === r) v = B, F = B;
|
|
652
|
+
else for (E += B, A += B; ++h < p; ) {
|
|
653
|
+
if (B = c.charAt(h), !B || B === r) {
|
|
654
|
+
F = B, v = B;
|
|
655
|
+
break;
|
|
656
|
+
}
|
|
657
|
+
E += B, A += B;
|
|
658
|
+
}
|
|
659
|
+
else if (B === o && c.charAt(h + 1) === B && c.charAt(h + 2) === B && c.charAt(h + 3) === B) v += l, h += 3, d = !0;
|
|
660
|
+
else if (B === i) v += B, d = !0;
|
|
661
|
+
else {
|
|
662
|
+
for (m = ""; B === i || B === o; ) m += B, B = c.charAt(++h);
|
|
663
|
+
if (B !== r) break;
|
|
664
|
+
v += m + B, F += B;
|
|
665
|
+
}
|
|
666
|
+
if (A) return f ? !0 : s(E)({ type: "code", lang: null, meta: null, value: n(A) });
|
|
667
|
+
}
|
|
668
|
+
}), Nr = N((u, e) => {
|
|
669
|
+
e.exports = D;
|
|
670
|
+
var t = `
|
|
671
|
+
`, n = " ", r = " ", i = "~", o = "`", a = 3, l = 4;
|
|
672
|
+
function D(s, c, f) {
|
|
673
|
+
var h = this, p = h.options.gfm, E = c.length + 1, A = 0, v = "", F, B, m, d, C, g, y, w, T, b, k, L, I;
|
|
674
|
+
if (p) {
|
|
675
|
+
for (; A < E && (m = c.charAt(A), !(m !== r && m !== n)); ) v += m, A++;
|
|
676
|
+
if (L = A, m = c.charAt(A), !(m !== i && m !== o)) {
|
|
677
|
+
for (A++, B = m, F = 1, v += m; A < E && (m = c.charAt(A), m === B); ) v += m, F++, A++;
|
|
678
|
+
if (!(F < a)) {
|
|
679
|
+
for (; A < E && (m = c.charAt(A), !(m !== r && m !== n)); ) v += m, A++;
|
|
680
|
+
for (d = "", y = ""; A < E && (m = c.charAt(A), !(m === t || B === o && m === B)); ) m === r || m === n ? y += m : (d += y + m, y = ""), A++;
|
|
681
|
+
if (m = c.charAt(A), !(m && m !== t)) {
|
|
682
|
+
if (f) return !0;
|
|
683
|
+
I = s.now(), I.column += v.length, I.offset += v.length, v += d, d = h.decode.raw(h.unescape(d), I), y && (v += y), y = "", b = "", k = "", w = "", T = "";
|
|
684
|
+
for (var x = !0; A < E; ) {
|
|
685
|
+
if (m = c.charAt(A), w += b, T += k, b = "", k = "", m !== t) {
|
|
686
|
+
w += m, k += m, A++;
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
for (x ? (v += m, x = !1) : (b += m, k += m), y = "", A++; A < E && (m = c.charAt(A), m === r); ) y += m, A++;
|
|
690
|
+
if (b += y, k += y.slice(L), !(y.length >= l)) {
|
|
691
|
+
for (y = ""; A < E && (m = c.charAt(A), m === B); ) y += m, A++;
|
|
692
|
+
if (b += y, k += y, !(y.length < F)) {
|
|
693
|
+
for (y = ""; A < E && (m = c.charAt(A), !(m !== r && m !== n)); ) b += m, k += m, A++;
|
|
694
|
+
if (!m || m === t) break;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
for (v += w + b, A = -1, E = d.length; ++A < E; ) if (m = d.charAt(A), m === r || m === n) C || (C = d.slice(0, A));
|
|
699
|
+
else if (C) {
|
|
700
|
+
g = d.slice(A);
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
return s(v)({ type: "code", lang: C || d || null, meta: g || null, value: T });
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}), Gu = N((u, e) => {
|
|
710
|
+
u = e.exports = t;
|
|
711
|
+
function t(n) {
|
|
712
|
+
return n.trim ? n.trim() : u.right(u.left(n));
|
|
713
|
+
}
|
|
714
|
+
u.left = function(n) {
|
|
715
|
+
return n.trimLeft ? n.trimLeft() : n.replace(/^\s\s*/, "");
|
|
716
|
+
}, u.right = function(n) {
|
|
717
|
+
if (n.trimRight) return n.trimRight();
|
|
718
|
+
for (var r = /\s/, i = n.length; r.test(n.charAt(--i)); ) ;
|
|
719
|
+
return n.slice(0, i + 1);
|
|
720
|
+
};
|
|
721
|
+
}), $e = N((u, e) => {
|
|
722
|
+
e.exports = t;
|
|
723
|
+
function t(n, r, i, o) {
|
|
724
|
+
for (var a = n.length, l = -1, D, s; ++l < a; ) if (D = n[l], s = D[1] || {}, !(s.pedantic !== void 0 && s.pedantic !== i.options.pedantic) && !(s.commonmark !== void 0 && s.commonmark !== i.options.commonmark) && r[D[0]].apply(i, o)) return !0;
|
|
725
|
+
return !1;
|
|
726
|
+
}
|
|
727
|
+
}), Ir = N((u, e) => {
|
|
728
|
+
var t = Gu(), n = $e();
|
|
729
|
+
e.exports = l;
|
|
730
|
+
var r = `
|
|
731
|
+
`, i = " ", o = " ", a = ">";
|
|
732
|
+
function l(D, s, c) {
|
|
733
|
+
for (var f = this, h = f.offset, p = f.blockTokenizers, E = f.interruptBlockquote, A = D.now(), v = A.line, F = s.length, B = [], m = [], d = [], C, g = 0, y, w, T, b, k, L, I, x; g < F && (y = s.charAt(g), !(y !== o && y !== i)); ) g++;
|
|
734
|
+
if (s.charAt(g) === a) {
|
|
735
|
+
if (c) return !0;
|
|
736
|
+
for (g = 0; g < F; ) {
|
|
737
|
+
for (T = s.indexOf(r, g), L = g, I = !1, T === -1 && (T = F); g < F && (y = s.charAt(g), !(y !== o && y !== i)); ) g++;
|
|
738
|
+
if (s.charAt(g) === a ? (g++, I = !0, s.charAt(g) === o && g++) : g = L, b = s.slice(g, T), !I && !t(b)) {
|
|
739
|
+
g = L;
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
if (!I && (w = s.slice(g), n(E, p, f, [D, w, !0]))) break;
|
|
743
|
+
k = L === g ? b : s.slice(L, T), d.push(g - L), B.push(k), m.push(b), g = T + 1;
|
|
744
|
+
}
|
|
745
|
+
for (g = -1, F = d.length, C = D(B.join(r)); ++g < F; ) h[v] = (h[v] || 0) + d[g], v++;
|
|
746
|
+
return x = f.enterBlock(), m = f.tokenizeBlock(m.join(r), A), x(), C({ type: "blockquote", children: m });
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}), Pr = N((u, e) => {
|
|
750
|
+
e.exports = a;
|
|
751
|
+
var t = `
|
|
752
|
+
`, n = " ", r = " ", i = "#", o = 6;
|
|
753
|
+
function a(l, D, s) {
|
|
754
|
+
for (var c = this, f = c.options.pedantic, h = D.length + 1, p = -1, E = l.now(), A = "", v = "", F, B, m; ++p < h; ) {
|
|
755
|
+
if (F = D.charAt(p), F !== r && F !== n) {
|
|
756
|
+
p--;
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
A += F;
|
|
760
|
+
}
|
|
761
|
+
for (m = 0; ++p <= h; ) {
|
|
762
|
+
if (F = D.charAt(p), F !== i) {
|
|
763
|
+
p--;
|
|
764
|
+
break;
|
|
765
|
+
}
|
|
766
|
+
A += F, m++;
|
|
767
|
+
}
|
|
768
|
+
if (!(m > o) && !(!m || !f && D.charAt(p + 1) === i)) {
|
|
769
|
+
for (h = D.length + 1, B = ""; ++p < h; ) {
|
|
770
|
+
if (F = D.charAt(p), F !== r && F !== n) {
|
|
771
|
+
p--;
|
|
772
|
+
break;
|
|
773
|
+
}
|
|
774
|
+
B += F;
|
|
775
|
+
}
|
|
776
|
+
if (!(!f && B.length === 0 && F && F !== t)) {
|
|
777
|
+
if (s) return !0;
|
|
778
|
+
for (A += B, B = "", v = ""; ++p < h && (F = D.charAt(p), !(!F || F === t)); ) {
|
|
779
|
+
if (F !== r && F !== n && F !== i) {
|
|
780
|
+
v += B + F, B = "";
|
|
781
|
+
continue;
|
|
782
|
+
}
|
|
783
|
+
for (; F === r || F === n; ) B += F, F = D.charAt(++p);
|
|
784
|
+
if (!f && v && !B && F === i) {
|
|
785
|
+
v += F;
|
|
786
|
+
continue;
|
|
787
|
+
}
|
|
788
|
+
for (; F === i; ) B += F, F = D.charAt(++p);
|
|
789
|
+
for (; F === r || F === n; ) B += F, F = D.charAt(++p);
|
|
790
|
+
p--;
|
|
791
|
+
}
|
|
792
|
+
return E.column += A.length, E.offset += A.length, A += v + B, l(A)({ type: "heading", depth: m, children: c.tokenizeInline(v, E) });
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}), jr = N((u, e) => {
|
|
797
|
+
e.exports = D;
|
|
798
|
+
var t = " ", n = `
|
|
799
|
+
`, r = " ", i = "*", o = "-", a = "_", l = 3;
|
|
800
|
+
function D(s, c, f) {
|
|
801
|
+
for (var h = -1, p = c.length + 1, E = "", A, v, F, B; ++h < p && (A = c.charAt(h), !(A !== t && A !== r)); ) E += A;
|
|
802
|
+
if (!(A !== i && A !== o && A !== a)) for (v = A, E += A, F = 1, B = ""; ++h < p; ) if (A = c.charAt(h), A === v) F++, E += B + v, B = "";
|
|
803
|
+
else if (A === r) B += A;
|
|
804
|
+
else return F >= l && (!A || A === n) ? (E += B, f ? !0 : s(E)({ type: "thematicBreak" })) : void 0;
|
|
805
|
+
}
|
|
806
|
+
}), yt = N((u, e) => {
|
|
807
|
+
e.exports = o;
|
|
808
|
+
var t = " ", n = " ", r = 1, i = 4;
|
|
809
|
+
function o(a) {
|
|
810
|
+
for (var l = 0, D = 0, s = a.charAt(l), c = {}, f, h = 0; s === t || s === n; ) {
|
|
811
|
+
for (f = s === t ? i : r, D += f, f > 1 && (D = Math.floor(D / f) * f); h < D; ) c[++h] = l;
|
|
812
|
+
s = a.charAt(++l);
|
|
813
|
+
}
|
|
814
|
+
return { indent: D, stops: c };
|
|
815
|
+
}
|
|
816
|
+
}), $r = N((u, e) => {
|
|
817
|
+
var t = Gu(), n = je(), r = yt();
|
|
818
|
+
e.exports = l;
|
|
819
|
+
var i = `
|
|
820
|
+
`, o = " ", a = "!";
|
|
821
|
+
function l(D, s) {
|
|
822
|
+
var c = D.split(i), f = c.length + 1, h = 1 / 0, p = [], E, A, v;
|
|
823
|
+
for (c.unshift(n(o, s) + a); f--; ) if (A = r(c[f]), p[f] = A.stops, t(c[f]).length !== 0) if (A.indent) A.indent > 0 && A.indent < h && (h = A.indent);
|
|
824
|
+
else {
|
|
825
|
+
h = 1 / 0;
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
if (h !== 1 / 0) for (f = c.length; f--; ) {
|
|
829
|
+
for (v = p[f], E = h; E && !(E in v); ) E--;
|
|
830
|
+
c[f] = c[f].slice(v[E] + 1);
|
|
831
|
+
}
|
|
832
|
+
return c.shift(), c.join(i);
|
|
833
|
+
}
|
|
834
|
+
}), zr = N((u, e) => {
|
|
835
|
+
var t = Gu(), n = je(), r = Vu(), i = yt(), o = $r(), a = $e();
|
|
836
|
+
e.exports = y;
|
|
837
|
+
var l = "*", D = "_", s = "+", c = "-", f = ".", h = " ", p = `
|
|
838
|
+
`, E = " ", A = ")", v = "x", F = 4, B = /\n\n(?!\s*$)/, m = /^\[([ X\tx])][ \t]/, d = /^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/, C = /^([ \t]*)([*+-]|\d+[.)])([ \t]+)/, g = /^( {1,4}|\t)?/gm;
|
|
839
|
+
function y(k, L, I) {
|
|
840
|
+
for (var x = this, S = x.options.commonmark, M = x.options.pedantic, z = x.blockTokenizers, V = x.interruptList, q = 0, J = L.length, j = null, O, $, U, R, P, G, W, Y, K, eu, H, Q, Du, su, uu, _, X, pu, yu, hu = !1, Fu, nu, du, tu; q < J && (R = L.charAt(q), !(R !== E && R !== h)); ) q++;
|
|
841
|
+
if (R = L.charAt(q), R === l || R === s || R === c) P = R, U = !1;
|
|
842
|
+
else {
|
|
843
|
+
for (U = !0, $ = ""; q < J && (R = L.charAt(q), !!r(R)); ) $ += R, q++;
|
|
844
|
+
if (R = L.charAt(q), !$ || !(R === f || S && R === A) || I && $ !== "1") return;
|
|
845
|
+
j = parseInt($, 10), P = R;
|
|
846
|
+
}
|
|
847
|
+
if (R = L.charAt(++q), !(R !== h && R !== E && (M || R !== p && R !== ""))) {
|
|
848
|
+
if (I) return !0;
|
|
849
|
+
for (q = 0, su = [], uu = [], _ = []; q < J; ) {
|
|
850
|
+
for (G = L.indexOf(p, q), W = q, Y = !1, tu = !1, G === -1 && (G = J), O = 0; q < J; ) {
|
|
851
|
+
if (R = L.charAt(q), R === E) O += F - O % F;
|
|
852
|
+
else if (R === h) O++;
|
|
853
|
+
else break;
|
|
854
|
+
q++;
|
|
855
|
+
}
|
|
856
|
+
if (X && O >= X.indent && (tu = !0), R = L.charAt(q), K = null, !tu) {
|
|
857
|
+
if (R === l || R === s || R === c) K = R, q++, O++;
|
|
858
|
+
else {
|
|
859
|
+
for ($ = ""; q < J && (R = L.charAt(q), !!r(R)); ) $ += R, q++;
|
|
860
|
+
R = L.charAt(q), q++, $ && (R === f || S && R === A) && (K = R, O += $.length + 1);
|
|
861
|
+
}
|
|
862
|
+
if (K) if (R = L.charAt(q), R === E) O += F - O % F, q++;
|
|
863
|
+
else if (R === h) {
|
|
864
|
+
for (du = q + F; q < du && L.charAt(q) === h; ) q++, O++;
|
|
865
|
+
q === du && L.charAt(q) === h && (q -= F - 1, O -= F - 1);
|
|
866
|
+
} else R !== p && R !== "" && (K = null);
|
|
867
|
+
}
|
|
868
|
+
if (K) {
|
|
869
|
+
if (!M && P !== K) break;
|
|
870
|
+
Y = !0;
|
|
871
|
+
} else !S && !tu && L.charAt(W) === h ? tu = !0 : S && X && (tu = O >= X.indent || O > F), Y = !1, q = W;
|
|
872
|
+
if (H = L.slice(W, G), eu = W === q ? H : L.slice(q, G), (K === l || K === D || K === c) && z.thematicBreak.call(x, k, H, !0)) break;
|
|
873
|
+
if (Q = Du, Du = !Y && !t(eu).length, tu && X) X.value = X.value.concat(_, H), uu = uu.concat(_, H), _ = [];
|
|
874
|
+
else if (Y) _.length !== 0 && (hu = !0, X.value.push(""), X.trail = _.concat()), X = { value: [H], indent: O, trail: [] }, su.push(X), uu = uu.concat(_, H), _ = [];
|
|
875
|
+
else if (Du) {
|
|
876
|
+
if (Q && !S) break;
|
|
877
|
+
_.push(H);
|
|
878
|
+
} else {
|
|
879
|
+
if (Q || a(V, z, x, [k, H, !0])) break;
|
|
880
|
+
X.value = X.value.concat(_, H), uu = uu.concat(_, H), _ = [];
|
|
881
|
+
}
|
|
882
|
+
q = G + 1;
|
|
883
|
+
}
|
|
884
|
+
for (Fu = k(uu.join(p)).reset({ type: "list", ordered: U, start: j, spread: hu, children: [] }), pu = x.enterList(), yu = x.enterBlock(), q = -1, J = su.length; ++q < J; ) X = su[q].value.join(p), nu = k.now(), k(X)(w(x, X, nu), Fu), X = su[q].trail.join(p), q !== J - 1 && (X += p), k(X);
|
|
885
|
+
return pu(), yu(), Fu;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
function w(k, L, I) {
|
|
889
|
+
var x = k.offset, S = k.options.pedantic ? T : b, M = null, z, V;
|
|
890
|
+
return L = S.apply(null, arguments), k.options.gfm && (z = L.match(m), z && (V = z[0].length, M = z[1].toLowerCase() === v, x[I.line] += V, L = L.slice(V))), { type: "listItem", spread: B.test(L), checked: M, children: k.tokenizeBlock(L, I) };
|
|
891
|
+
}
|
|
892
|
+
function T(k, L, I) {
|
|
893
|
+
var x = k.offset, S = I.line;
|
|
894
|
+
return L = L.replace(C, M), S = I.line, L.replace(g, M);
|
|
895
|
+
function M(z) {
|
|
896
|
+
return x[S] = (x[S] || 0) + z.length, S++, "";
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
function b(k, L, I) {
|
|
900
|
+
var x = k.offset, S = I.line, M, z, V, q, J, j, O;
|
|
901
|
+
for (L = L.replace(d, $), q = L.split(p), J = o(L, i(M).indent).split(p), J[0] = V, x[S] = (x[S] || 0) + z.length, S++, j = 0, O = q.length; ++j < O; ) x[S] = (x[S] || 0) + q[j].length - J[j].length, S++;
|
|
902
|
+
return J.join(p);
|
|
903
|
+
function $(U, R, P, G, W) {
|
|
904
|
+
return z = R + P + G, V = W, Number(P) < 10 && z.length % 2 === 1 && (P = h + P), M = R + n(h, P.length) + G, M + V;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
}), Mr = N((u, e) => {
|
|
908
|
+
e.exports = s;
|
|
909
|
+
var t = `
|
|
910
|
+
`, n = " ", r = " ", i = "=", o = "-", a = 3, l = 1, D = 2;
|
|
911
|
+
function s(c, f, h) {
|
|
912
|
+
for (var p = this, E = c.now(), A = f.length, v = -1, F = "", B, m, d, C, g; ++v < A; ) {
|
|
913
|
+
if (d = f.charAt(v), d !== r || v >= a) {
|
|
914
|
+
v--;
|
|
915
|
+
break;
|
|
916
|
+
}
|
|
917
|
+
F += d;
|
|
918
|
+
}
|
|
919
|
+
for (B = "", m = ""; ++v < A; ) {
|
|
920
|
+
if (d = f.charAt(v), d === t) {
|
|
921
|
+
v--;
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
d === r || d === n ? m += d : (B += m + d, m = "");
|
|
925
|
+
}
|
|
926
|
+
if (E.column += F.length, E.offset += F.length, F += B + m, d = f.charAt(++v), C = f.charAt(++v), !(d !== t || C !== i && C !== o)) {
|
|
927
|
+
for (F += d, m = C, g = C === i ? l : D; ++v < A; ) {
|
|
928
|
+
if (d = f.charAt(v), d !== C) {
|
|
929
|
+
if (d !== t) return;
|
|
930
|
+
v--;
|
|
931
|
+
break;
|
|
932
|
+
}
|
|
933
|
+
m += d;
|
|
934
|
+
}
|
|
935
|
+
return h ? !0 : c(F + m)({ type: "heading", depth: g, children: p.tokenizeInline(B, E) });
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}), wt = N((u) => {
|
|
939
|
+
var e = "[a-zA-Z_:][a-zA-Z0-9:._-]*", t = "[^\"'=<>`\\u0000-\\u0020]+", n = "'[^']*'", r = '"[^"]*"', i = "(?:" + t + "|" + n + "|" + r + ")", o = "(?:\\s+" + e + "(?:\\s*=\\s*" + i + ")?)", a = "<[A-Za-z][A-Za-z0-9\\-]*" + o + "*\\s*\\/?>", l = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", D = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", s = "<[?].*?[?]>", c = "<![A-Za-z]+\\s+[^>]*>", f = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";
|
|
940
|
+
u.openCloseTag = new RegExp("^(?:" + a + "|" + l + ")"), u.tag = new RegExp("^(?:" + a + "|" + l + "|" + D + "|" + s + "|" + c + "|" + f + ")");
|
|
941
|
+
}), Ur = N((u, e) => {
|
|
942
|
+
var t = wt().openCloseTag;
|
|
943
|
+
e.exports = B;
|
|
944
|
+
var n = " ", r = " ", i = `
|
|
945
|
+
`, o = "<", a = /^<(script|pre|style)(?=(\s|>|$))/i, l = /<\/(script|pre|style)>/i, D = /^<!--/, s = /-->/, c = /^<\?/, f = /\?>/, h = /^<![A-Za-z]/, p = />/, E = /^<!\[CDATA\[/, A = /]]>/, v = /^$/, F = new RegExp(t.source + "\\s*$");
|
|
946
|
+
function B(m, d, C) {
|
|
947
|
+
for (var g = this, y = g.options.blocks.join("|"), w = new RegExp("^</?(" + y + ")(?=(\\s|/?>|$))", "i"), T = d.length, b = 0, k, L, I, x, S, M, z, V = [[a, l, !0], [D, s, !0], [c, f, !0], [h, p, !0], [E, A, !0], [w, v, !0], [F, v, !1]]; b < T && (x = d.charAt(b), !(x !== n && x !== r)); ) b++;
|
|
948
|
+
if (d.charAt(b) === o) {
|
|
949
|
+
for (k = d.indexOf(i, b + 1), k = k === -1 ? T : k, L = d.slice(b, k), I = -1, S = V.length; ++I < S; ) if (V[I][0].test(L)) {
|
|
950
|
+
M = V[I];
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
953
|
+
if (M) {
|
|
954
|
+
if (C) return M[2];
|
|
955
|
+
if (b = k, !M[1].test(L)) for (; b < T; ) {
|
|
956
|
+
if (k = d.indexOf(i, b + 1), k = k === -1 ? T : k, L = d.slice(b + 1, k), M[1].test(L)) {
|
|
957
|
+
L && (b = k);
|
|
958
|
+
break;
|
|
959
|
+
}
|
|
960
|
+
b = k;
|
|
961
|
+
}
|
|
962
|
+
return z = d.slice(0, b), m(z)({ type: "html", value: z });
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}), Bu = N((u, e) => {
|
|
967
|
+
e.exports = r;
|
|
968
|
+
var t = String.fromCharCode, n = /\s/;
|
|
969
|
+
function r(i) {
|
|
970
|
+
return n.test(typeof i == "number" ? t(i) : i.charAt(0));
|
|
971
|
+
}
|
|
972
|
+
}), kt = N((u, e) => {
|
|
973
|
+
var t = Pe();
|
|
974
|
+
e.exports = n;
|
|
975
|
+
function n(r) {
|
|
976
|
+
return t(r).toLowerCase();
|
|
977
|
+
}
|
|
978
|
+
}), Vr = N((u, e) => {
|
|
979
|
+
var t = Bu(), n = kt();
|
|
980
|
+
e.exports = v;
|
|
981
|
+
var r = '"', i = "'", o = "\\", a = `
|
|
982
|
+
`, l = " ", D = " ", s = "[", c = "]", f = "(", h = ")", p = ":", E = "<", A = ">";
|
|
983
|
+
function v(m, d, C) {
|
|
984
|
+
for (var g = this, y = g.options.commonmark, w = 0, T = d.length, b = "", k, L, I, x, S, M, z, V; w < T && (x = d.charAt(w), !(x !== D && x !== l)); ) b += x, w++;
|
|
985
|
+
if (x = d.charAt(w), x === s) {
|
|
986
|
+
for (w++, b += x, I = ""; w < T && (x = d.charAt(w), x !== c); ) x === o && (I += x, w++, x = d.charAt(w)), I += x, w++;
|
|
987
|
+
if (!(!I || d.charAt(w) !== c || d.charAt(w + 1) !== p)) {
|
|
988
|
+
for (M = I, b += I + c + p, w = b.length, I = ""; w < T && (x = d.charAt(w), !(x !== l && x !== D && x !== a)); ) b += x, w++;
|
|
989
|
+
if (x = d.charAt(w), I = "", k = b, x === E) {
|
|
990
|
+
for (w++; w < T && (x = d.charAt(w), !!F(x)); ) I += x, w++;
|
|
991
|
+
if (x = d.charAt(w), x === F.delimiter) b += E + I + x, w++;
|
|
992
|
+
else {
|
|
993
|
+
if (y) return;
|
|
994
|
+
w -= I.length + 1, I = "";
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
if (!I) {
|
|
998
|
+
for (; w < T && (x = d.charAt(w), !!B(x)); ) I += x, w++;
|
|
999
|
+
b += I;
|
|
1000
|
+
}
|
|
1001
|
+
if (I) {
|
|
1002
|
+
for (z = I, I = ""; w < T && (x = d.charAt(w), !(x !== l && x !== D && x !== a)); ) I += x, w++;
|
|
1003
|
+
if (x = d.charAt(w), S = null, x === r ? S = r : x === i ? S = i : x === f && (S = h), !S) I = "", w = b.length;
|
|
1004
|
+
else if (I) {
|
|
1005
|
+
for (b += I + x, w = b.length, I = ""; w < T && (x = d.charAt(w), x !== S); ) {
|
|
1006
|
+
if (x === a) {
|
|
1007
|
+
if (w++, x = d.charAt(w), x === a || x === S) return;
|
|
1008
|
+
I += a;
|
|
1009
|
+
}
|
|
1010
|
+
I += x, w++;
|
|
1011
|
+
}
|
|
1012
|
+
if (x = d.charAt(w), x !== S) return;
|
|
1013
|
+
L = b, b += I + x, w++, V = I, I = "";
|
|
1014
|
+
} else return;
|
|
1015
|
+
for (; w < T && (x = d.charAt(w), !(x !== l && x !== D)); ) b += x, w++;
|
|
1016
|
+
if (x = d.charAt(w), !x || x === a) return C ? !0 : (k = m(k).test().end, z = g.decode.raw(g.unescape(z), k, { nonTerminated: !1 }), V && (L = m(L).test().end, V = g.decode.raw(g.unescape(V), L)), m(b)({ type: "definition", identifier: n(M), label: M, title: V || null, url: z }));
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
function F(m) {
|
|
1022
|
+
return m !== A && m !== s && m !== c;
|
|
1023
|
+
}
|
|
1024
|
+
F.delimiter = A;
|
|
1025
|
+
function B(m) {
|
|
1026
|
+
return m !== s && m !== c && !t(m);
|
|
1027
|
+
}
|
|
1028
|
+
}), Gr = N((u, e) => {
|
|
1029
|
+
var t = Bu();
|
|
1030
|
+
e.exports = E;
|
|
1031
|
+
var n = " ", r = `
|
|
1032
|
+
`, i = " ", o = "-", a = ":", l = "\\", D = "|", s = 1, c = 2, f = "left", h = "center", p = "right";
|
|
1033
|
+
function E(A, v, F) {
|
|
1034
|
+
var B = this, m, d, C, g, y, w, T, b, k, L, I, x, S, M, z, V, q, J, j, O, $, U;
|
|
1035
|
+
if (B.options.gfm) {
|
|
1036
|
+
for (m = 0, V = 0, w = v.length + 1, T = []; m < w; ) {
|
|
1037
|
+
if (O = v.indexOf(r, m), $ = v.indexOf(D, m + 1), O === -1 && (O = v.length), $ === -1 || $ > O) {
|
|
1038
|
+
if (V < c) return;
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
T.push(v.slice(m, O)), V++, m = O + 1;
|
|
1042
|
+
}
|
|
1043
|
+
for (g = T.join(r), d = T.splice(1, 1)[0] || [], m = 0, w = d.length, V--, C = !1, I = []; m < w; ) {
|
|
1044
|
+
if (k = d.charAt(m), k === D) {
|
|
1045
|
+
if (L = null, C === !1) {
|
|
1046
|
+
if (U === !1) return;
|
|
1047
|
+
} else I.push(C), C = !1;
|
|
1048
|
+
U = !1;
|
|
1049
|
+
} else if (k === o) L = !0, C = C || null;
|
|
1050
|
+
else if (k === a) C === f ? C = h : L && C === null ? C = p : C = f;
|
|
1051
|
+
else if (!t(k)) return;
|
|
1052
|
+
m++;
|
|
1053
|
+
}
|
|
1054
|
+
if (C !== !1 && I.push(C), !(I.length < s)) {
|
|
1055
|
+
if (F) return !0;
|
|
1056
|
+
for (z = -1, J = [], j = A(g).reset({ type: "table", align: I, children: J }); ++z < V; ) {
|
|
1057
|
+
for (q = T[z], y = { type: "tableRow", children: [] }, z && A(r), A(q).reset(y, j), w = q.length + 1, m = 0, b = "", x = "", S = !0; m < w; ) {
|
|
1058
|
+
if (k = q.charAt(m), k === n || k === i) {
|
|
1059
|
+
x ? b += k : A(k), m++;
|
|
1060
|
+
continue;
|
|
1061
|
+
}
|
|
1062
|
+
k === "" || k === D ? S ? A(k) : ((x || k) && !S && (g = x, b.length > 1 && (k ? (g += b.slice(0, -1), b = b.charAt(b.length - 1)) : (g += b, b = "")), M = A.now(), A(g)({ type: "tableCell", children: B.tokenizeInline(x, M) }, y)), A(b + k), b = "", x = "") : (b && (x += b, b = ""), x += k, k === l && m !== w - 2 && (x += q.charAt(m + 1), m++)), S = !1, m++;
|
|
1063
|
+
}
|
|
1064
|
+
z || A(r + d);
|
|
1065
|
+
}
|
|
1066
|
+
return j;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}), Wr = N((u, e) => {
|
|
1071
|
+
var t = Gu(), n = bt(), r = $e();
|
|
1072
|
+
e.exports = D;
|
|
1073
|
+
var i = " ", o = `
|
|
1074
|
+
`, a = " ", l = 4;
|
|
1075
|
+
function D(s, c, f) {
|
|
1076
|
+
for (var h = this, p = h.options, E = p.commonmark, A = h.blockTokenizers, v = h.interruptParagraph, F = c.indexOf(o), B = c.length, m, d, C, g, y; F < B; ) {
|
|
1077
|
+
if (F === -1) {
|
|
1078
|
+
F = B;
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
if (c.charAt(F + 1) === o) break;
|
|
1082
|
+
if (E) {
|
|
1083
|
+
for (g = 0, m = F + 1; m < B; ) {
|
|
1084
|
+
if (C = c.charAt(m), C === i) {
|
|
1085
|
+
g = l;
|
|
1086
|
+
break;
|
|
1087
|
+
} else if (C === a) g++;
|
|
1088
|
+
else break;
|
|
1089
|
+
m++;
|
|
1090
|
+
}
|
|
1091
|
+
if (g >= l && C !== o) {
|
|
1092
|
+
F = c.indexOf(o, F + 1);
|
|
1093
|
+
continue;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
if (d = c.slice(F + 1), r(v, A, h, [s, d, !0])) break;
|
|
1097
|
+
if (m = F, F = c.indexOf(o, F + 1), F !== -1 && t(c.slice(m, F)) === "") {
|
|
1098
|
+
F = m;
|
|
1099
|
+
break;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
return d = c.slice(0, F), f ? !0 : (y = s.now(), d = n(d), s(d)({ type: "paragraph", children: h.tokenizeInline(d, y) }));
|
|
1103
|
+
}
|
|
1104
|
+
}), Hr = N((u, e) => {
|
|
1105
|
+
e.exports = t;
|
|
1106
|
+
function t(n, r) {
|
|
1107
|
+
return n.indexOf("\\", r);
|
|
1108
|
+
}
|
|
1109
|
+
}), _r = N((u, e) => {
|
|
1110
|
+
var t = Hr();
|
|
1111
|
+
e.exports = i, i.locator = t;
|
|
1112
|
+
var n = `
|
|
1113
|
+
`, r = "\\";
|
|
1114
|
+
function i(o, a, l) {
|
|
1115
|
+
var D = this, s, c;
|
|
1116
|
+
if (a.charAt(0) === r && (s = a.charAt(1), D.escape.indexOf(s) !== -1)) return l ? !0 : (s === n ? c = { type: "break" } : c = { type: "text", value: s }, o(r + s)(c));
|
|
1117
|
+
}
|
|
1118
|
+
}), qt = N((u, e) => {
|
|
1119
|
+
e.exports = t;
|
|
1120
|
+
function t(n, r) {
|
|
1121
|
+
return n.indexOf("<", r);
|
|
1122
|
+
}
|
|
1123
|
+
}), Jr = N((u, e) => {
|
|
1124
|
+
var t = Bu(), n = ve(), r = qt();
|
|
1125
|
+
e.exports = c, c.locator = r, c.notInLink = !0;
|
|
1126
|
+
var i = "<", o = ">", a = "@", l = "/", D = "mailto:", s = D.length;
|
|
1127
|
+
function c(f, h, p) {
|
|
1128
|
+
var E = this, A = "", v = h.length, F = 0, B = "", m = !1, d = "", C, g, y, w, T;
|
|
1129
|
+
if (h.charAt(0) === i) {
|
|
1130
|
+
for (F++, A = i; F < v && (C = h.charAt(F), !(t(C) || C === o || C === a || C === ":" && h.charAt(F + 1) === l)); ) B += C, F++;
|
|
1131
|
+
if (B) {
|
|
1132
|
+
if (d += B, B = "", C = h.charAt(F), d += C, F++, C === a) m = !0;
|
|
1133
|
+
else {
|
|
1134
|
+
if (C !== ":" || h.charAt(F + 1) !== l) return;
|
|
1135
|
+
d += l, F++;
|
|
1136
|
+
}
|
|
1137
|
+
for (; F < v && (C = h.charAt(F), !(t(C) || C === o)); ) B += C, F++;
|
|
1138
|
+
if (C = h.charAt(F), !(!B || C !== o)) return p ? !0 : (d += B, y = d, A += d + C, g = f.now(), g.column++, g.offset++, m && (d.slice(0, s).toLowerCase() === D ? (y = y.slice(s), g.column += s, g.offset += s) : d = D + d), w = E.inlineTokenizers, E.inlineTokenizers = { text: w.text }, T = E.enterLink(), y = E.tokenizeInline(y, g), E.inlineTokenizers = w, T(), f(A)({ type: "link", title: null, url: n(d, { nonTerminated: !1 }), children: y }));
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
}), Yr = N((u, e) => {
|
|
1143
|
+
e.exports = t;
|
|
1144
|
+
function t(n, r) {
|
|
1145
|
+
var i = String(n), o = 0, a;
|
|
1146
|
+
if (typeof r != "string") throw new Error("Expected character");
|
|
1147
|
+
for (a = i.indexOf(r); a !== -1; ) o++, a = i.indexOf(r, a + r.length);
|
|
1148
|
+
return o;
|
|
1149
|
+
}
|
|
1150
|
+
}), Kr = N((u, e) => {
|
|
1151
|
+
e.exports = n;
|
|
1152
|
+
var t = ["www.", "http://", "https://"];
|
|
1153
|
+
function n(r, i) {
|
|
1154
|
+
var o = -1, a, l, D;
|
|
1155
|
+
if (!this.options.gfm) return o;
|
|
1156
|
+
for (l = t.length, a = -1; ++a < l; ) D = r.indexOf(t[a], i), D !== -1 && (o === -1 || D < o) && (o = D);
|
|
1157
|
+
return o;
|
|
1158
|
+
}
|
|
1159
|
+
}), Xr = N((u, e) => {
|
|
1160
|
+
var t = Yr(), n = ve(), r = Vu(), i = ne(), o = Bu(), a = Kr();
|
|
1161
|
+
e.exports = g, g.locator = a, g.notInLink = !0;
|
|
1162
|
+
var l = 33, D = 38, s = 41, c = 42, f = 44, h = 45, p = 46, E = 58, A = 59, v = 63, F = 60, B = 95, m = 126, d = "(", C = ")";
|
|
1163
|
+
function g(y, w, T) {
|
|
1164
|
+
var b = this, k = b.options.gfm, L = b.inlineTokenizers, I = w.length, x = -1, S = !1, M, z, V, q, J, j, O, $, U, R, P, G, W, Y;
|
|
1165
|
+
if (k) {
|
|
1166
|
+
if (w.slice(0, 4) === "www.") S = !0, q = 4;
|
|
1167
|
+
else if (w.slice(0, 7).toLowerCase() === "http://") q = 7;
|
|
1168
|
+
else if (w.slice(0, 8).toLowerCase() === "https://") q = 8;
|
|
1169
|
+
else return;
|
|
1170
|
+
for (x = q - 1, V = q, M = []; q < I; ) {
|
|
1171
|
+
if (O = w.charCodeAt(q), O === p) {
|
|
1172
|
+
if (x === q - 1) break;
|
|
1173
|
+
M.push(q), x = q, q++;
|
|
1174
|
+
continue;
|
|
1175
|
+
}
|
|
1176
|
+
if (r(O) || i(O) || O === h || O === B) {
|
|
1177
|
+
q++;
|
|
1178
|
+
continue;
|
|
1179
|
+
}
|
|
1180
|
+
break;
|
|
1181
|
+
}
|
|
1182
|
+
if (O === p && (M.pop(), q--), M[0] !== void 0 && (z = M.length < 2 ? V : M[M.length - 2] + 1, w.slice(z, q).indexOf("_") === -1)) {
|
|
1183
|
+
if (T) return !0;
|
|
1184
|
+
for ($ = q, J = q; q < I && (O = w.charCodeAt(q), !(o(O) || O === F)); ) q++, O === l || O === c || O === f || O === p || O === E || O === v || O === B || O === m || ($ = q);
|
|
1185
|
+
if (q = $, w.charCodeAt(q - 1) === s) for (j = w.slice(J, q), U = t(j, d), R = t(j, C); R > U; ) q = J + j.lastIndexOf(C), j = w.slice(J, q), R--;
|
|
1186
|
+
if (w.charCodeAt(q - 1) === A && (q--, i(w.charCodeAt(q - 1)))) {
|
|
1187
|
+
for ($ = q - 2; i(w.charCodeAt($)); ) $--;
|
|
1188
|
+
w.charCodeAt($) === D && (q = $);
|
|
1189
|
+
}
|
|
1190
|
+
return P = w.slice(0, q), W = n(P, { nonTerminated: !1 }), S && (W = "http://" + W), Y = b.enterLink(), b.inlineTokenizers = { text: L.text }, G = b.tokenizeInline(P, y.now()), b.inlineTokenizers = L, Y(), y(P)({ type: "link", title: null, url: W, children: G });
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}), Zr = N((u, e) => {
|
|
1195
|
+
var t = Vu(), n = ne(), r = 43, i = 45, o = 46, a = 95;
|
|
1196
|
+
e.exports = l;
|
|
1197
|
+
function l(s, c) {
|
|
1198
|
+
var f = this, h, p;
|
|
1199
|
+
if (!this.options.gfm || (h = s.indexOf("@", c), h === -1)) return -1;
|
|
1200
|
+
if (p = h, p === c || !D(s.charCodeAt(p - 1))) return l.call(f, s, h + 1);
|
|
1201
|
+
for (; p > c && D(s.charCodeAt(p - 1)); ) p--;
|
|
1202
|
+
return p;
|
|
1203
|
+
}
|
|
1204
|
+
function D(s) {
|
|
1205
|
+
return t(s) || n(s) || s === r || s === i || s === o || s === a;
|
|
1206
|
+
}
|
|
1207
|
+
}), Qr = N((u, e) => {
|
|
1208
|
+
var t = ve(), n = Vu(), r = ne(), i = Zr();
|
|
1209
|
+
e.exports = c, c.locator = i, c.notInLink = !0;
|
|
1210
|
+
var o = 43, a = 45, l = 46, D = 64, s = 95;
|
|
1211
|
+
function c(f, h, p) {
|
|
1212
|
+
var E = this, A = E.options.gfm, v = E.inlineTokenizers, F = 0, B = h.length, m = -1, d, C, g, y;
|
|
1213
|
+
if (A) {
|
|
1214
|
+
for (d = h.charCodeAt(F); n(d) || r(d) || d === o || d === a || d === l || d === s; ) d = h.charCodeAt(++F);
|
|
1215
|
+
if (F !== 0 && d === D) {
|
|
1216
|
+
for (F++; F < B; ) {
|
|
1217
|
+
if (d = h.charCodeAt(F), n(d) || r(d) || d === a || d === l || d === s) {
|
|
1218
|
+
F++, m === -1 && d === l && (m = F);
|
|
1219
|
+
continue;
|
|
1220
|
+
}
|
|
1221
|
+
break;
|
|
1222
|
+
}
|
|
1223
|
+
if (!(m === -1 || m === F || d === a || d === s)) return d === l && F--, C = h.slice(0, F), p ? !0 : (y = E.enterLink(), E.inlineTokenizers = { text: v.text }, g = E.tokenizeInline(C, f.now()), E.inlineTokenizers = v, y(), f(C)({ type: "link", title: null, url: "mailto:" + t(C, { nonTerminated: !1 }), children: g }));
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}), un = N((u, e) => {
|
|
1228
|
+
var t = ne(), n = qt(), r = wt().tag;
|
|
1229
|
+
e.exports = c, c.locator = n;
|
|
1230
|
+
var i = "<", o = "?", a = "!", l = "/", D = /^<a /i, s = /^<\/a>/i;
|
|
1231
|
+
function c(f, h, p) {
|
|
1232
|
+
var E = this, A = h.length, v, F;
|
|
1233
|
+
if (!(h.charAt(0) !== i || A < 3) && (v = h.charAt(1), !(!t(v) && v !== o && v !== a && v !== l) && (F = h.match(r), !!F))) return p ? !0 : (F = F[0], !E.inLink && D.test(F) ? E.inLink = !0 : E.inLink && s.test(F) && (E.inLink = !1), f(F)({ type: "html", value: F }));
|
|
1234
|
+
}
|
|
1235
|
+
}), St = N((u, e) => {
|
|
1236
|
+
e.exports = t;
|
|
1237
|
+
function t(n, r) {
|
|
1238
|
+
var i = n.indexOf("[", r), o = n.indexOf("![", r);
|
|
1239
|
+
return o === -1 || i < o ? i : o;
|
|
1240
|
+
}
|
|
1241
|
+
}), en = N((u, e) => {
|
|
1242
|
+
var t = Bu(), n = St();
|
|
1243
|
+
e.exports = A, A.locator = n;
|
|
1244
|
+
var r = `
|
|
1245
|
+
`, i = "!", o = '"', a = "'", l = "(", D = ")", s = "<", c = ">", f = "[", h = "\\", p = "]", E = "`";
|
|
1246
|
+
function A(v, F, B) {
|
|
1247
|
+
var m = this, d = "", C = 0, g = F.charAt(0), y = m.options.pedantic, w = m.options.commonmark, T = m.options.gfm, b, k, L, I, x, S, M, z, V, q, J, j, O, $, U, R, P, G;
|
|
1248
|
+
if (g === i && (z = !0, d = g, g = F.charAt(++C)), g === f && !(!z && m.inLink)) {
|
|
1249
|
+
for (d += g, $ = "", C++, J = F.length, R = v.now(), O = 0, R.column += C, R.offset += C; C < J; ) {
|
|
1250
|
+
if (g = F.charAt(C), S = g, g === E) {
|
|
1251
|
+
for (k = 1; F.charAt(C + 1) === E; ) S += g, C++, k++;
|
|
1252
|
+
L ? k >= L && (L = 0) : L = k;
|
|
1253
|
+
} else if (g === h) C++, S += F.charAt(C);
|
|
1254
|
+
else if ((!L || T) && g === f) O++;
|
|
1255
|
+
else if ((!L || T) && g === p) if (O) O--;
|
|
1256
|
+
else {
|
|
1257
|
+
if (F.charAt(C + 1) !== l) return;
|
|
1258
|
+
S += l, b = !0, C++;
|
|
1259
|
+
break;
|
|
1260
|
+
}
|
|
1261
|
+
$ += S, S = "", C++;
|
|
1262
|
+
}
|
|
1263
|
+
if (b) {
|
|
1264
|
+
for (V = $, d += $ + S, C++; C < J && (g = F.charAt(C), !!t(g)); ) d += g, C++;
|
|
1265
|
+
if (g = F.charAt(C), $ = "", I = d, g === s) {
|
|
1266
|
+
for (C++, I += s; C < J && (g = F.charAt(C), g !== c); ) {
|
|
1267
|
+
if (w && g === r) return;
|
|
1268
|
+
$ += g, C++;
|
|
1269
|
+
}
|
|
1270
|
+
if (F.charAt(C) !== c) return;
|
|
1271
|
+
d += s + $ + c, U = $, C++;
|
|
1272
|
+
} else {
|
|
1273
|
+
for (g = null, S = ""; C < J && (g = F.charAt(C), !(S && (g === o || g === a || w && g === l))); ) {
|
|
1274
|
+
if (t(g)) {
|
|
1275
|
+
if (!y) break;
|
|
1276
|
+
S += g;
|
|
1277
|
+
} else {
|
|
1278
|
+
if (g === l) O++;
|
|
1279
|
+
else if (g === D) {
|
|
1280
|
+
if (O === 0) break;
|
|
1281
|
+
O--;
|
|
1282
|
+
}
|
|
1283
|
+
$ += S, S = "", g === h && ($ += h, g = F.charAt(++C)), $ += g;
|
|
1284
|
+
}
|
|
1285
|
+
C++;
|
|
1286
|
+
}
|
|
1287
|
+
d += $, U = $, C = d.length;
|
|
1288
|
+
}
|
|
1289
|
+
for ($ = ""; C < J && (g = F.charAt(C), !!t(g)); ) $ += g, C++;
|
|
1290
|
+
if (g = F.charAt(C), d += $, $ && (g === o || g === a || w && g === l)) if (C++, d += g, $ = "", q = g === l ? D : g, x = d, w) {
|
|
1291
|
+
for (; C < J && (g = F.charAt(C), g !== q); ) g === h && ($ += h, g = F.charAt(++C)), C++, $ += g;
|
|
1292
|
+
if (g = F.charAt(C), g !== q) return;
|
|
1293
|
+
for (j = $, d += $ + g, C++; C < J && (g = F.charAt(C), !!t(g)); ) d += g, C++;
|
|
1294
|
+
} else for (S = ""; C < J; ) {
|
|
1295
|
+
if (g = F.charAt(C), g === q) M && ($ += q + S, S = ""), M = !0;
|
|
1296
|
+
else if (!M) $ += g;
|
|
1297
|
+
else if (g === D) {
|
|
1298
|
+
d += $ + q + S, j = $;
|
|
1299
|
+
break;
|
|
1300
|
+
} else t(g) ? S += g : ($ += q + S + g, S = "", M = !1);
|
|
1301
|
+
C++;
|
|
1302
|
+
}
|
|
1303
|
+
if (F.charAt(C) === D) return B ? !0 : (d += D, U = m.decode.raw(m.unescape(U), v(I).test().end, { nonTerminated: !1 }), j && (x = v(x).test().end, j = m.decode.raw(m.unescape(j), x)), G = { type: z ? "image" : "link", title: j || null, url: U }, z ? G.alt = m.decode.raw(m.unescape(V), R) || null : (P = m.enterLink(), G.children = m.tokenizeInline(V, R), P()), v(d)(G));
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}), tn = N((u, e) => {
|
|
1308
|
+
var t = Bu(), n = St(), r = kt();
|
|
1309
|
+
e.exports = p, p.locator = n;
|
|
1310
|
+
var i = "link", o = "image", a = "shortcut", l = "collapsed", D = "full", s = "!", c = "[", f = "\\", h = "]";
|
|
1311
|
+
function p(E, A, v) {
|
|
1312
|
+
var F = this, B = F.options.commonmark, m = A.charAt(0), d = 0, C = A.length, g = "", y = "", w = i, T = a, b, k, L, I, x, S, M, z;
|
|
1313
|
+
if (m === s && (w = o, y = m, m = A.charAt(++d)), m === c) {
|
|
1314
|
+
for (d++, y += m, S = "", z = 0; d < C; ) {
|
|
1315
|
+
if (m = A.charAt(d), m === c) M = !0, z++;
|
|
1316
|
+
else if (m === h) {
|
|
1317
|
+
if (!z) break;
|
|
1318
|
+
z--;
|
|
1319
|
+
}
|
|
1320
|
+
m === f && (S += f, m = A.charAt(++d)), S += m, d++;
|
|
1321
|
+
}
|
|
1322
|
+
if (g = S, b = S, m = A.charAt(d), m === h) {
|
|
1323
|
+
if (d++, g += m, S = "", !B) for (; d < C && (m = A.charAt(d), !!t(m)); ) S += m, d++;
|
|
1324
|
+
if (m = A.charAt(d), m === c) {
|
|
1325
|
+
for (k = "", S += m, d++; d < C && (m = A.charAt(d), !(m === c || m === h)); ) m === f && (k += f, m = A.charAt(++d)), k += m, d++;
|
|
1326
|
+
m = A.charAt(d), m === h ? (T = k ? D : l, S += k + m, d++) : k = "", g += S, S = "";
|
|
1327
|
+
} else {
|
|
1328
|
+
if (!b) return;
|
|
1329
|
+
k = b;
|
|
1330
|
+
}
|
|
1331
|
+
if (!(T !== D && M)) return g = y + g, w === i && F.inLink ? null : v ? !0 : (L = E.now(), L.column += y.length, L.offset += y.length, k = T === D ? k : b, I = { type: w + "Reference", identifier: r(k), label: k, referenceType: T }, w === i ? (x = F.enterLink(), I.children = F.tokenizeInline(b, L), x()) : I.alt = F.decode.raw(F.unescape(b), L) || null, E(g)(I));
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
}), rn = N((u, e) => {
|
|
1336
|
+
e.exports = t;
|
|
1337
|
+
function t(n, r) {
|
|
1338
|
+
var i = n.indexOf("**", r), o = n.indexOf("__", r);
|
|
1339
|
+
return o === -1 ? i : i === -1 || o < i ? o : i;
|
|
1340
|
+
}
|
|
1341
|
+
}), nn = N((u, e) => {
|
|
1342
|
+
var t = Gu(), n = Bu(), r = rn();
|
|
1343
|
+
e.exports = l, l.locator = r;
|
|
1344
|
+
var i = "\\", o = "*", a = "_";
|
|
1345
|
+
function l(D, s, c) {
|
|
1346
|
+
var f = this, h = 0, p = s.charAt(h), E, A, v, F, B, m, d;
|
|
1347
|
+
if (!(p !== o && p !== a || s.charAt(++h) !== p) && (A = f.options.pedantic, v = p, B = v + v, m = s.length, h++, F = "", p = "", !(A && n(s.charAt(h))))) for (; h < m; ) {
|
|
1348
|
+
if (d = p, p = s.charAt(h), p === v && s.charAt(h + 1) === v && (!A || !n(d)) && (p = s.charAt(h + 2), p !== v)) return t(F) ? c ? !0 : (E = D.now(), E.column += 2, E.offset += 2, D(B + F + B)({ type: "strong", children: f.tokenizeInline(F, E) })) : void 0;
|
|
1349
|
+
!A && p === i && (F += p, p = s.charAt(++h)), F += p, h++;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
}), an = N((u, e) => {
|
|
1353
|
+
e.exports = r;
|
|
1354
|
+
var t = String.fromCharCode, n = /\w/;
|
|
1355
|
+
function r(i) {
|
|
1356
|
+
return n.test(typeof i == "number" ? t(i) : i.charAt(0));
|
|
1357
|
+
}
|
|
1358
|
+
}), on = N((u, e) => {
|
|
1359
|
+
e.exports = t;
|
|
1360
|
+
function t(n, r) {
|
|
1361
|
+
var i = n.indexOf("*", r), o = n.indexOf("_", r);
|
|
1362
|
+
return o === -1 ? i : i === -1 || o < i ? o : i;
|
|
1363
|
+
}
|
|
1364
|
+
}), ln = N((u, e) => {
|
|
1365
|
+
var t = Gu(), n = an(), r = Bu(), i = on();
|
|
1366
|
+
e.exports = D, D.locator = i;
|
|
1367
|
+
var o = "*", a = "_", l = "\\";
|
|
1368
|
+
function D(s, c, f) {
|
|
1369
|
+
var h = this, p = 0, E = c.charAt(p), A, v, F, B, m, d, C;
|
|
1370
|
+
if (!(E !== o && E !== a) && (v = h.options.pedantic, m = E, F = E, d = c.length, p++, B = "", E = "", !(v && r(c.charAt(p))))) for (; p < d; ) {
|
|
1371
|
+
if (C = E, E = c.charAt(p), E === F && (!v || !r(C))) {
|
|
1372
|
+
if (E = c.charAt(++p), E !== F) {
|
|
1373
|
+
if (!t(B) || C === F) return;
|
|
1374
|
+
if (!v && F === a && n(E)) {
|
|
1375
|
+
B += F;
|
|
1376
|
+
continue;
|
|
1377
|
+
}
|
|
1378
|
+
return f ? !0 : (A = s.now(), A.column++, A.offset++, s(m + B + F)({ type: "emphasis", children: h.tokenizeInline(B, A) }));
|
|
1379
|
+
}
|
|
1380
|
+
B += F;
|
|
1381
|
+
}
|
|
1382
|
+
!v && E === l && (B += E, E = c.charAt(++p)), B += E, p++;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}), sn = N((u, e) => {
|
|
1386
|
+
e.exports = t;
|
|
1387
|
+
function t(n, r) {
|
|
1388
|
+
return n.indexOf("~~", r);
|
|
1389
|
+
}
|
|
1390
|
+
}), Dn = N((u, e) => {
|
|
1391
|
+
var t = Bu(), n = sn();
|
|
1392
|
+
e.exports = o, o.locator = n;
|
|
1393
|
+
var r = "~", i = "~~";
|
|
1394
|
+
function o(a, l, D) {
|
|
1395
|
+
var s = this, c = "", f = "", h = "", p = "", E, A, v;
|
|
1396
|
+
if (!(!s.options.gfm || l.charAt(0) !== r || l.charAt(1) !== r || t(l.charAt(2)))) for (E = 1, A = l.length, v = a.now(), v.column += 2, v.offset += 2; ++E < A; ) {
|
|
1397
|
+
if (c = l.charAt(E), c === r && f === r && (!h || !t(h))) return D ? !0 : a(i + p + i)({ type: "delete", children: s.tokenizeInline(p, v) });
|
|
1398
|
+
p += f, h = f, f = c;
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
}), cn = N((u, e) => {
|
|
1402
|
+
e.exports = t;
|
|
1403
|
+
function t(n, r) {
|
|
1404
|
+
return n.indexOf("`", r);
|
|
1405
|
+
}
|
|
1406
|
+
}), fn = N((u, e) => {
|
|
1407
|
+
var t = cn();
|
|
1408
|
+
e.exports = o, o.locator = t;
|
|
1409
|
+
var n = 10, r = 32, i = 96;
|
|
1410
|
+
function o(a, l, D) {
|
|
1411
|
+
for (var s = l.length, c = 0, f, h, p, E, A, v; c < s && l.charCodeAt(c) === i; ) c++;
|
|
1412
|
+
if (!(c === 0 || c === s)) {
|
|
1413
|
+
for (f = c, A = l.charCodeAt(c); c < s; ) {
|
|
1414
|
+
if (E = A, A = l.charCodeAt(c + 1), E === i) {
|
|
1415
|
+
if (h === void 0 && (h = c), p = c + 1, A !== i && p - h === f) {
|
|
1416
|
+
v = !0;
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1419
|
+
} else h !== void 0 && (h = void 0, p = void 0);
|
|
1420
|
+
c++;
|
|
1421
|
+
}
|
|
1422
|
+
if (v) {
|
|
1423
|
+
if (D) return !0;
|
|
1424
|
+
if (c = f, s = h, E = l.charCodeAt(c), A = l.charCodeAt(s - 1), v = !1, s - c > 2 && (E === r || E === n) && (A === r || A === n)) {
|
|
1425
|
+
for (c++, s--; c < s; ) {
|
|
1426
|
+
if (E = l.charCodeAt(c), E !== r && E !== n) {
|
|
1427
|
+
v = !0;
|
|
1428
|
+
break;
|
|
1429
|
+
}
|
|
1430
|
+
c++;
|
|
1431
|
+
}
|
|
1432
|
+
v === !0 && (f++, h--);
|
|
1433
|
+
}
|
|
1434
|
+
return a(l.slice(0, p))({ type: "inlineCode", value: l.slice(f, h) });
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
}), pn = N((u, e) => {
|
|
1439
|
+
e.exports = t;
|
|
1440
|
+
function t(n, r) {
|
|
1441
|
+
for (var i = n.indexOf(`
|
|
1442
|
+
`, r); i > r && n.charAt(i - 1) === " "; ) i--;
|
|
1443
|
+
return i;
|
|
1444
|
+
}
|
|
1445
|
+
}), hn = N((u, e) => {
|
|
1446
|
+
var t = pn();
|
|
1447
|
+
e.exports = o, o.locator = t;
|
|
1448
|
+
var n = " ", r = `
|
|
1449
|
+
`, i = 2;
|
|
1450
|
+
function o(a, l, D) {
|
|
1451
|
+
for (var s = l.length, c = -1, f = "", h; ++c < s; ) {
|
|
1452
|
+
if (h = l.charAt(c), h === r) return c < i ? void 0 : D ? !0 : (f += h, a(f)({ type: "break" }));
|
|
1453
|
+
if (h !== n) return;
|
|
1454
|
+
f += h;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}), dn = N((u, e) => {
|
|
1458
|
+
e.exports = t;
|
|
1459
|
+
function t(n, r, i) {
|
|
1460
|
+
var o = this, a, l, D, s, c, f, h, p, E, A;
|
|
1461
|
+
if (i) return !0;
|
|
1462
|
+
for (a = o.inlineMethods, s = a.length, l = o.inlineTokenizers, D = -1, E = r.length; ++D < s; ) p = a[D], !(p === "text" || !l[p]) && (h = l[p].locator, h || n.file.fail("Missing locator: `" + p + "`"), f = h.call(o, r, 1), f !== -1 && f < E && (E = f));
|
|
1463
|
+
c = r.slice(0, E), A = n.now(), o.decode(c, A, v);
|
|
1464
|
+
function v(F, B, m) {
|
|
1465
|
+
n(m || F)({ type: "text", value: F });
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}), Fn = N((u, e) => {
|
|
1469
|
+
var t = Uu(), n = pr(), r = hr(), i = dr(), o = vr(), a = xr();
|
|
1470
|
+
e.exports = l;
|
|
1471
|
+
function l(c, f) {
|
|
1472
|
+
this.file = f, this.offset = {}, this.options = t(this.options), this.setOptions({}), this.inList = !1, this.inBlock = !1, this.inLink = !1, this.atStart = !0, this.toOffset = r(f).toOffset, this.unescape = i(this, "escape"), this.decode = o(this);
|
|
1473
|
+
}
|
|
1474
|
+
var D = l.prototype;
|
|
1475
|
+
D.setOptions = yr(), D.parse = Tr(), D.options = Bt(), D.exitStart = n("atStart", !0), D.enterList = n("inList", !1), D.enterLink = n("inLink", !1), D.enterBlock = n("inBlock", !1), D.interruptParagraph = [["thematicBreak"], ["list"], ["atxHeading"], ["fencedCode"], ["blockquote"], ["html"], ["setextHeading", { commonmark: !1 }], ["definition", { commonmark: !1 }]], D.interruptList = [["atxHeading", { pedantic: !1 }], ["fencedCode", { pedantic: !1 }], ["thematicBreak", { pedantic: !1 }], ["definition", { commonmark: !1 }]], D.interruptBlockquote = [["indentedCode", { commonmark: !0 }], ["fencedCode", { commonmark: !0 }], ["atxHeading", { commonmark: !0 }], ["setextHeading", { commonmark: !0 }], ["thematicBreak", { commonmark: !0 }], ["html", { commonmark: !0 }], ["list", { commonmark: !0 }], ["definition", { commonmark: !1 }]], D.blockTokenizers = { blankLine: Or(), indentedCode: Rr(), fencedCode: Nr(), blockquote: Ir(), atxHeading: Pr(), thematicBreak: jr(), list: zr(), setextHeading: Mr(), html: Ur(), definition: Vr(), table: Gr(), paragraph: Wr() }, D.inlineTokenizers = { escape: _r(), autoLink: Jr(), url: Xr(), email: Qr(), html: un(), link: en(), reference: tn(), strong: nn(), emphasis: ln(), deletion: Dn(), code: fn(), break: hn(), text: dn() }, D.blockMethods = s(D.blockTokenizers), D.inlineMethods = s(D.inlineTokenizers), D.tokenizeBlock = a("block"), D.tokenizeInline = a("inline"), D.tokenizeFactory = a;
|
|
1476
|
+
function s(c) {
|
|
1477
|
+
var f = [], h;
|
|
1478
|
+
for (h in c) f.push(h);
|
|
1479
|
+
return f;
|
|
1480
|
+
}
|
|
1481
|
+
}), Cn = N((u, e) => {
|
|
1482
|
+
var t = fr(), n = Uu(), r = Fn();
|
|
1483
|
+
e.exports = i, i.Parser = r;
|
|
1484
|
+
function i(o) {
|
|
1485
|
+
var a = this.data("settings"), l = t(r);
|
|
1486
|
+
l.prototype.options = n(l.prototype.options, a, o), this.Parser = l;
|
|
1487
|
+
}
|
|
1488
|
+
}), An = N((u, e) => {
|
|
1489
|
+
e.exports = t;
|
|
1490
|
+
function t(n) {
|
|
1491
|
+
if (n) throw n;
|
|
1492
|
+
}
|
|
1493
|
+
}), Lt = N((u, e) => {
|
|
1494
|
+
e.exports = function(t) {
|
|
1495
|
+
return t != null && t.constructor != null && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
1496
|
+
};
|
|
1497
|
+
}), gn = N((u, e) => {
|
|
1498
|
+
var t = Object.prototype.hasOwnProperty, n = Object.prototype.toString, r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, o = function(s) {
|
|
1499
|
+
return typeof Array.isArray == "function" ? Array.isArray(s) : n.call(s) === "[object Array]";
|
|
1500
|
+
}, a = function(s) {
|
|
1501
|
+
if (!s || n.call(s) !== "[object Object]") return !1;
|
|
1502
|
+
var c = t.call(s, "constructor"), f = s.constructor && s.constructor.prototype && t.call(s.constructor.prototype, "isPrototypeOf");
|
|
1503
|
+
if (s.constructor && !c && !f) return !1;
|
|
1504
|
+
var h;
|
|
1505
|
+
for (h in s) ;
|
|
1506
|
+
return typeof h > "u" || t.call(s, h);
|
|
1507
|
+
}, l = function(s, c) {
|
|
1508
|
+
r && c.name === "__proto__" ? r(s, c.name, { enumerable: !0, configurable: !0, value: c.newValue, writable: !0 }) : s[c.name] = c.newValue;
|
|
1509
|
+
}, D = function(s, c) {
|
|
1510
|
+
if (c === "__proto__") if (t.call(s, c)) {
|
|
1511
|
+
if (i) return i(s, c).value;
|
|
1512
|
+
} else return;
|
|
1513
|
+
return s[c];
|
|
1514
|
+
};
|
|
1515
|
+
e.exports = function s() {
|
|
1516
|
+
var c, f, h, p, E, A, v = arguments[0], F = 1, B = arguments.length, m = !1;
|
|
1517
|
+
for (typeof v == "boolean" && (m = v, v = arguments[1] || {}, F = 2), (v == null || typeof v != "object" && typeof v != "function") && (v = {}); F < B; ++F) if (c = arguments[F], c != null) for (f in c) h = D(v, f), p = D(c, f), v !== p && (m && p && (a(p) || (E = o(p))) ? (E ? (E = !1, A = h && o(h) ? h : []) : A = h && a(h) ? h : {}, l(v, { name: f, newValue: s(m, A, p) })) : typeof p < "u" && l(v, { name: f, newValue: p }));
|
|
1518
|
+
return v;
|
|
1519
|
+
};
|
|
1520
|
+
}), mn = N((u, e) => {
|
|
1521
|
+
e.exports = (t) => {
|
|
1522
|
+
if (Object.prototype.toString.call(t) !== "[object Object]") return !1;
|
|
1523
|
+
let n = Object.getPrototypeOf(t);
|
|
1524
|
+
return n === null || n === Object.prototype;
|
|
1525
|
+
};
|
|
1526
|
+
}), En = N((u, e) => {
|
|
1527
|
+
var t = [].slice;
|
|
1528
|
+
e.exports = n;
|
|
1529
|
+
function n(r, i) {
|
|
1530
|
+
var o;
|
|
1531
|
+
return a;
|
|
1532
|
+
function a() {
|
|
1533
|
+
var s = t.call(arguments, 0), c = r.length > s.length, f;
|
|
1534
|
+
c && s.push(l);
|
|
1535
|
+
try {
|
|
1536
|
+
f = r.apply(null, s);
|
|
1537
|
+
} catch (h) {
|
|
1538
|
+
if (c && o) throw h;
|
|
1539
|
+
return l(h);
|
|
1540
|
+
}
|
|
1541
|
+
c || (f && typeof f.then == "function" ? f.then(D, l) : f instanceof Error ? l(f) : D(f));
|
|
1542
|
+
}
|
|
1543
|
+
function l() {
|
|
1544
|
+
o || (o = !0, i.apply(null, arguments));
|
|
1545
|
+
}
|
|
1546
|
+
function D(s) {
|
|
1547
|
+
l(null, s);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
}), vn = N((u, e) => {
|
|
1551
|
+
var t = En();
|
|
1552
|
+
e.exports = r, r.wrap = t;
|
|
1553
|
+
var n = [].slice;
|
|
1554
|
+
function r() {
|
|
1555
|
+
var i = [], o = {};
|
|
1556
|
+
return o.run = a, o.use = l, o;
|
|
1557
|
+
function a() {
|
|
1558
|
+
var D = -1, s = n.call(arguments, 0, -1), c = arguments[arguments.length - 1];
|
|
1559
|
+
if (typeof c != "function") throw new Error("Expected function as last argument, not " + c);
|
|
1560
|
+
f.apply(null, [null].concat(s));
|
|
1561
|
+
function f(h) {
|
|
1562
|
+
var p = i[++D], E = n.call(arguments, 0), A = E.slice(1), v = s.length, F = -1;
|
|
1563
|
+
if (h) {
|
|
1564
|
+
c(h);
|
|
1565
|
+
return;
|
|
1566
|
+
}
|
|
1567
|
+
for (; ++F < v; ) (A[F] === null || A[F] === void 0) && (A[F] = s[F]);
|
|
1568
|
+
s = A, p ? t(p, f).apply(null, s) : c.apply(null, [null].concat(s));
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
function l(D) {
|
|
1572
|
+
if (typeof D != "function") throw new Error("Expected `fn` to be a function, not " + D);
|
|
1573
|
+
return i.push(D), o;
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}), xn = N((u, e) => {
|
|
1577
|
+
var t = {}.hasOwnProperty;
|
|
1578
|
+
e.exports = n;
|
|
1579
|
+
function n(a) {
|
|
1580
|
+
return !a || typeof a != "object" ? "" : t.call(a, "position") || t.call(a, "type") ? i(a.position) : t.call(a, "start") || t.call(a, "end") ? i(a) : t.call(a, "line") || t.call(a, "column") ? r(a) : "";
|
|
1581
|
+
}
|
|
1582
|
+
function r(a) {
|
|
1583
|
+
return (!a || typeof a != "object") && (a = {}), o(a.line) + ":" + o(a.column);
|
|
1584
|
+
}
|
|
1585
|
+
function i(a) {
|
|
1586
|
+
return (!a || typeof a != "object") && (a = {}), r(a.start) + "-" + r(a.end);
|
|
1587
|
+
}
|
|
1588
|
+
function o(a) {
|
|
1589
|
+
return a && typeof a == "number" ? a : 1;
|
|
1590
|
+
}
|
|
1591
|
+
}), Bn = N((u, e) => {
|
|
1592
|
+
var t = xn();
|
|
1593
|
+
e.exports = i;
|
|
1594
|
+
function n() {
|
|
1595
|
+
}
|
|
1596
|
+
n.prototype = Error.prototype, i.prototype = new n();
|
|
1597
|
+
var r = i.prototype;
|
|
1598
|
+
r.file = "", r.name = "", r.reason = "", r.message = "", r.stack = "", r.fatal = null, r.column = null, r.line = null;
|
|
1599
|
+
function i(a, l, D) {
|
|
1600
|
+
var s, c, f;
|
|
1601
|
+
typeof l == "string" && (D = l, l = null), s = o(D), c = t(l) || "1:1", f = { start: { line: null, column: null }, end: { line: null, column: null } }, l && l.position && (l = l.position), l && (l.start ? (f = l, l = l.start) : f.start = l), a.stack && (this.stack = a.stack, a = a.message), this.message = a, this.name = c, this.reason = a, this.line = l ? l.line : null, this.column = l ? l.column : null, this.location = f, this.source = s[0], this.ruleId = s[1];
|
|
1602
|
+
}
|
|
1603
|
+
function o(a) {
|
|
1604
|
+
var l = [null, null], D;
|
|
1605
|
+
return typeof a == "string" && (D = a.indexOf(":"), D === -1 ? l[1] = a : (l[0] = a.slice(0, D), l[1] = a.slice(D + 1))), l;
|
|
1606
|
+
}
|
|
1607
|
+
}), bn = N((u) => {
|
|
1608
|
+
u.basename = e, u.dirname = t, u.extname = n, u.join = r, u.sep = "/";
|
|
1609
|
+
function e(l, D) {
|
|
1610
|
+
var s = 0, c = -1, f, h, p, E;
|
|
1611
|
+
if (D !== void 0 && typeof D != "string") throw new TypeError('"ext" argument must be a string');
|
|
1612
|
+
if (a(l), f = l.length, D === void 0 || !D.length || D.length > l.length) {
|
|
1613
|
+
for (; f--; ) if (l.charCodeAt(f) === 47) {
|
|
1614
|
+
if (p) {
|
|
1615
|
+
s = f + 1;
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
} else c < 0 && (p = !0, c = f + 1);
|
|
1619
|
+
return c < 0 ? "" : l.slice(s, c);
|
|
1620
|
+
}
|
|
1621
|
+
if (D === l) return "";
|
|
1622
|
+
for (h = -1, E = D.length - 1; f--; ) if (l.charCodeAt(f) === 47) {
|
|
1623
|
+
if (p) {
|
|
1624
|
+
s = f + 1;
|
|
1625
|
+
break;
|
|
1626
|
+
}
|
|
1627
|
+
} else h < 0 && (p = !0, h = f + 1), E > -1 && (l.charCodeAt(f) === D.charCodeAt(E--) ? E < 0 && (c = f) : (E = -1, c = h));
|
|
1628
|
+
return s === c ? c = h : c < 0 && (c = l.length), l.slice(s, c);
|
|
1629
|
+
}
|
|
1630
|
+
function t(l) {
|
|
1631
|
+
var D, s, c;
|
|
1632
|
+
if (a(l), !l.length) return ".";
|
|
1633
|
+
for (D = -1, c = l.length; --c; ) if (l.charCodeAt(c) === 47) {
|
|
1634
|
+
if (s) {
|
|
1635
|
+
D = c;
|
|
1636
|
+
break;
|
|
1637
|
+
}
|
|
1638
|
+
} else s || (s = !0);
|
|
1639
|
+
return D < 0 ? l.charCodeAt(0) === 47 ? "/" : "." : D === 1 && l.charCodeAt(0) === 47 ? "//" : l.slice(0, D);
|
|
1640
|
+
}
|
|
1641
|
+
function n(l) {
|
|
1642
|
+
var D = -1, s = 0, c = -1, f = 0, h, p, E;
|
|
1643
|
+
for (a(l), E = l.length; E--; ) {
|
|
1644
|
+
if (p = l.charCodeAt(E), p === 47) {
|
|
1645
|
+
if (h) {
|
|
1646
|
+
s = E + 1;
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
continue;
|
|
1650
|
+
}
|
|
1651
|
+
c < 0 && (h = !0, c = E + 1), p === 46 ? D < 0 ? D = E : f !== 1 && (f = 1) : D > -1 && (f = -1);
|
|
1652
|
+
}
|
|
1653
|
+
return D < 0 || c < 0 || f === 0 || f === 1 && D === c - 1 && D === s + 1 ? "" : l.slice(D, c);
|
|
1654
|
+
}
|
|
1655
|
+
function r() {
|
|
1656
|
+
for (var l = -1, D; ++l < arguments.length; ) a(arguments[l]), arguments[l] && (D = D === void 0 ? arguments[l] : D + "/" + arguments[l]);
|
|
1657
|
+
return D === void 0 ? "." : i(D);
|
|
1658
|
+
}
|
|
1659
|
+
function i(l) {
|
|
1660
|
+
var D, s;
|
|
1661
|
+
return a(l), D = l.charCodeAt(0) === 47, s = o(l, !D), !s.length && !D && (s = "."), s.length && l.charCodeAt(l.length - 1) === 47 && (s += "/"), D ? "/" + s : s;
|
|
1662
|
+
}
|
|
1663
|
+
function o(l, D) {
|
|
1664
|
+
for (var s = "", c = 0, f = -1, h = 0, p = -1, E, A; ++p <= l.length; ) {
|
|
1665
|
+
if (p < l.length) E = l.charCodeAt(p);
|
|
1666
|
+
else {
|
|
1667
|
+
if (E === 47) break;
|
|
1668
|
+
E = 47;
|
|
1669
|
+
}
|
|
1670
|
+
if (E === 47) {
|
|
1671
|
+
if (!(f === p - 1 || h === 1)) if (f !== p - 1 && h === 2) {
|
|
1672
|
+
if (s.length < 2 || c !== 2 || s.charCodeAt(s.length - 1) !== 46 || s.charCodeAt(s.length - 2) !== 46) {
|
|
1673
|
+
if (s.length > 2) {
|
|
1674
|
+
if (A = s.lastIndexOf("/"), A !== s.length - 1) {
|
|
1675
|
+
A < 0 ? (s = "", c = 0) : (s = s.slice(0, A), c = s.length - 1 - s.lastIndexOf("/")), f = p, h = 0;
|
|
1676
|
+
continue;
|
|
1677
|
+
}
|
|
1678
|
+
} else if (s.length) {
|
|
1679
|
+
s = "", c = 0, f = p, h = 0;
|
|
1680
|
+
continue;
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
D && (s = s.length ? s + "/.." : "..", c = 2);
|
|
1684
|
+
} else s.length ? s += "/" + l.slice(f + 1, p) : s = l.slice(f + 1, p), c = p - f - 1;
|
|
1685
|
+
f = p, h = 0;
|
|
1686
|
+
} else E === 46 && h > -1 ? h++ : h = -1;
|
|
1687
|
+
}
|
|
1688
|
+
return s;
|
|
1689
|
+
}
|
|
1690
|
+
function a(l) {
|
|
1691
|
+
if (typeof l != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(l));
|
|
1692
|
+
}
|
|
1693
|
+
}), yn = N((u) => {
|
|
1694
|
+
u.cwd = e;
|
|
1695
|
+
function e() {
|
|
1696
|
+
return "/";
|
|
1697
|
+
}
|
|
1698
|
+
}), wn = N((u, e) => {
|
|
1699
|
+
var t = bn(), n = yn(), r = Lt();
|
|
1700
|
+
e.exports = a;
|
|
1701
|
+
var i = {}.hasOwnProperty, o = ["history", "path", "basename", "stem", "extname", "dirname"];
|
|
1702
|
+
a.prototype.toString = F, Object.defineProperty(a.prototype, "path", { get: l, set: D }), Object.defineProperty(a.prototype, "dirname", { get: s, set: c }), Object.defineProperty(a.prototype, "basename", { get: f, set: h }), Object.defineProperty(a.prototype, "extname", { get: p, set: E }), Object.defineProperty(a.prototype, "stem", { get: A, set: v });
|
|
1703
|
+
function a(C) {
|
|
1704
|
+
var g, y;
|
|
1705
|
+
if (!C) C = {};
|
|
1706
|
+
else if (typeof C == "string" || r(C)) C = { contents: C };
|
|
1707
|
+
else if ("message" in C && "messages" in C) return C;
|
|
1708
|
+
if (!(this instanceof a)) return new a(C);
|
|
1709
|
+
for (this.data = {}, this.messages = [], this.history = [], this.cwd = n.cwd(), y = -1; ++y < o.length; ) g = o[y], i.call(C, g) && (this[g] = C[g]);
|
|
1710
|
+
for (g in C) o.indexOf(g) < 0 && (this[g] = C[g]);
|
|
1711
|
+
}
|
|
1712
|
+
function l() {
|
|
1713
|
+
return this.history[this.history.length - 1];
|
|
1714
|
+
}
|
|
1715
|
+
function D(C) {
|
|
1716
|
+
m(C, "path"), this.path !== C && this.history.push(C);
|
|
1717
|
+
}
|
|
1718
|
+
function s() {
|
|
1719
|
+
return typeof this.path == "string" ? t.dirname(this.path) : void 0;
|
|
1720
|
+
}
|
|
1721
|
+
function c(C) {
|
|
1722
|
+
d(this.path, "dirname"), this.path = t.join(C || "", this.basename);
|
|
1723
|
+
}
|
|
1724
|
+
function f() {
|
|
1725
|
+
return typeof this.path == "string" ? t.basename(this.path) : void 0;
|
|
1726
|
+
}
|
|
1727
|
+
function h(C) {
|
|
1728
|
+
m(C, "basename"), B(C, "basename"), this.path = t.join(this.dirname || "", C);
|
|
1729
|
+
}
|
|
1730
|
+
function p() {
|
|
1731
|
+
return typeof this.path == "string" ? t.extname(this.path) : void 0;
|
|
1732
|
+
}
|
|
1733
|
+
function E(C) {
|
|
1734
|
+
if (B(C, "extname"), d(this.path, "extname"), C) {
|
|
1735
|
+
if (C.charCodeAt(0) !== 46) throw new Error("`extname` must start with `.`");
|
|
1736
|
+
if (C.indexOf(".", 1) > -1) throw new Error("`extname` cannot contain multiple dots");
|
|
1737
|
+
}
|
|
1738
|
+
this.path = t.join(this.dirname, this.stem + (C || ""));
|
|
1739
|
+
}
|
|
1740
|
+
function A() {
|
|
1741
|
+
return typeof this.path == "string" ? t.basename(this.path, this.extname) : void 0;
|
|
1742
|
+
}
|
|
1743
|
+
function v(C) {
|
|
1744
|
+
m(C, "stem"), B(C, "stem"), this.path = t.join(this.dirname || "", C + (this.extname || ""));
|
|
1745
|
+
}
|
|
1746
|
+
function F(C) {
|
|
1747
|
+
return (this.contents || "").toString(C);
|
|
1748
|
+
}
|
|
1749
|
+
function B(C, g) {
|
|
1750
|
+
if (C && C.indexOf(t.sep) > -1) throw new Error("`" + g + "` cannot be a path: did not expect `" + t.sep + "`");
|
|
1751
|
+
}
|
|
1752
|
+
function m(C, g) {
|
|
1753
|
+
if (!C) throw new Error("`" + g + "` cannot be empty");
|
|
1754
|
+
}
|
|
1755
|
+
function d(C, g) {
|
|
1756
|
+
if (!C) throw new Error("Setting `" + g + "` requires `path` to be set too");
|
|
1757
|
+
}
|
|
1758
|
+
}), kn = N((u, e) => {
|
|
1759
|
+
var t = Bn(), n = wn();
|
|
1760
|
+
e.exports = n, n.prototype.message = r, n.prototype.info = o, n.prototype.fail = i;
|
|
1761
|
+
function r(a, l, D) {
|
|
1762
|
+
var s = new t(a, l, D);
|
|
1763
|
+
return this.path && (s.name = this.path + ":" + s.name, s.file = this.path), s.fatal = !1, this.messages.push(s), s;
|
|
1764
|
+
}
|
|
1765
|
+
function i() {
|
|
1766
|
+
var a = this.message.apply(this, arguments);
|
|
1767
|
+
throw a.fatal = !0, a;
|
|
1768
|
+
}
|
|
1769
|
+
function o() {
|
|
1770
|
+
var a = this.message.apply(this, arguments);
|
|
1771
|
+
return a.fatal = null, a;
|
|
1772
|
+
}
|
|
1773
|
+
}), qn = N((u, e) => {
|
|
1774
|
+
e.exports = kn();
|
|
1775
|
+
}), Sn = N((u, e) => {
|
|
1776
|
+
var t = An(), n = Lt(), r = gn(), i = mn(), o = vn(), a = qn();
|
|
1777
|
+
e.exports = p().freeze();
|
|
1778
|
+
var l = [].slice, D = {}.hasOwnProperty, s = o().use(c).use(f).use(h);
|
|
1779
|
+
function c(C, g) {
|
|
1780
|
+
g.tree = C.parse(g.file);
|
|
1781
|
+
}
|
|
1782
|
+
function f(C, g, y) {
|
|
1783
|
+
C.run(g.tree, g.file, w);
|
|
1784
|
+
function w(T, b, k) {
|
|
1785
|
+
T ? y(T) : (g.tree = b, g.file = k, y());
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
function h(C, g) {
|
|
1789
|
+
var y = C.stringify(g.tree, g.file);
|
|
1790
|
+
y == null || (typeof y == "string" || n(y) ? ("value" in g.file && (g.file.value = y), g.file.contents = y) : g.file.result = y);
|
|
1791
|
+
}
|
|
1792
|
+
function p() {
|
|
1793
|
+
var C = [], g = o(), y = {}, w = -1, T;
|
|
1794
|
+
return b.data = L, b.freeze = k, b.attachers = C, b.use = I, b.parse = S, b.stringify = V, b.run = M, b.runSync = z, b.process = q, b.processSync = J, b;
|
|
1795
|
+
function b() {
|
|
1796
|
+
for (var j = p(), O = -1; ++O < C.length; ) j.use.apply(null, C[O]);
|
|
1797
|
+
return j.data(r(!0, {}, y)), j;
|
|
1798
|
+
}
|
|
1799
|
+
function k() {
|
|
1800
|
+
var j, O;
|
|
1801
|
+
if (T) return b;
|
|
1802
|
+
for (; ++w < C.length; ) j = C[w], j[1] !== !1 && (j[1] === !0 && (j[1] = void 0), O = j[0].apply(b, j.slice(1)), typeof O == "function" && g.use(O));
|
|
1803
|
+
return T = !0, w = 1 / 0, b;
|
|
1804
|
+
}
|
|
1805
|
+
function L(j, O) {
|
|
1806
|
+
return typeof j == "string" ? arguments.length === 2 ? (B("data", T), y[j] = O, b) : D.call(y, j) && y[j] || null : j ? (B("data", T), y = j, b) : y;
|
|
1807
|
+
}
|
|
1808
|
+
function I(j) {
|
|
1809
|
+
var O;
|
|
1810
|
+
if (B("use", T), j != null) if (typeof j == "function") P.apply(null, arguments);
|
|
1811
|
+
else if (typeof j == "object") "length" in j ? R(j) : $(j);
|
|
1812
|
+
else throw new Error("Expected usable value, not `" + j + "`");
|
|
1813
|
+
return O && (y.settings = r(y.settings || {}, O)), b;
|
|
1814
|
+
function $(G) {
|
|
1815
|
+
R(G.plugins), G.settings && (O = r(O || {}, G.settings));
|
|
1816
|
+
}
|
|
1817
|
+
function U(G) {
|
|
1818
|
+
if (typeof G == "function") P(G);
|
|
1819
|
+
else if (typeof G == "object") "length" in G ? P.apply(null, G) : $(G);
|
|
1820
|
+
else throw new Error("Expected usable value, not `" + G + "`");
|
|
1821
|
+
}
|
|
1822
|
+
function R(G) {
|
|
1823
|
+
var W = -1;
|
|
1824
|
+
if (G != null) if (typeof G == "object" && "length" in G) for (; ++W < G.length; ) U(G[W]);
|
|
1825
|
+
else throw new Error("Expected a list of plugins, not `" + G + "`");
|
|
1826
|
+
}
|
|
1827
|
+
function P(G, W) {
|
|
1828
|
+
var Y = x(G);
|
|
1829
|
+
Y ? (i(Y[1]) && i(W) && (W = r(!0, Y[1], W)), Y[1] = W) : C.push(l.call(arguments));
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
function x(j) {
|
|
1833
|
+
for (var O = -1; ++O < C.length; ) if (C[O][0] === j) return C[O];
|
|
1834
|
+
}
|
|
1835
|
+
function S(j) {
|
|
1836
|
+
var O = a(j), $;
|
|
1837
|
+
return k(), $ = b.Parser, v("parse", $), E($, "parse") ? new $(String(O), O).parse() : $(String(O), O);
|
|
1838
|
+
}
|
|
1839
|
+
function M(j, O, $) {
|
|
1840
|
+
if (m(j), k(), !$ && typeof O == "function" && ($ = O, O = null), !$) return new Promise(U);
|
|
1841
|
+
U(null, $);
|
|
1842
|
+
function U(R, P) {
|
|
1843
|
+
g.run(j, a(O), G);
|
|
1844
|
+
function G(W, Y, K) {
|
|
1845
|
+
Y = Y || j, W ? P(W) : R ? R(Y) : $(null, Y, K);
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
function z(j, O) {
|
|
1850
|
+
var $, U;
|
|
1851
|
+
return M(j, O, R), d("runSync", "run", U), $;
|
|
1852
|
+
function R(P, G) {
|
|
1853
|
+
U = !0, $ = G, t(P);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
function V(j, O) {
|
|
1857
|
+
var $ = a(O), U;
|
|
1858
|
+
return k(), U = b.Compiler, F("stringify", U), m(j), E(U, "compile") ? new U(j, $).compile() : U(j, $);
|
|
1859
|
+
}
|
|
1860
|
+
function q(j, O) {
|
|
1861
|
+
if (k(), v("process", b.Parser), F("process", b.Compiler), !O) return new Promise($);
|
|
1862
|
+
$(null, O);
|
|
1863
|
+
function $(U, R) {
|
|
1864
|
+
var P = a(j);
|
|
1865
|
+
s.run(b, { file: P }, G);
|
|
1866
|
+
function G(W) {
|
|
1867
|
+
W ? R(W) : U ? U(P) : O(null, P);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
function J(j) {
|
|
1872
|
+
var O, $;
|
|
1873
|
+
return k(), v("processSync", b.Parser), F("processSync", b.Compiler), O = a(j), q(O, U), d("processSync", "process", $), O;
|
|
1874
|
+
function U(R) {
|
|
1875
|
+
$ = !0, t(R);
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
function E(C, g) {
|
|
1880
|
+
return typeof C == "function" && C.prototype && (A(C.prototype) || g in C.prototype);
|
|
1881
|
+
}
|
|
1882
|
+
function A(C) {
|
|
1883
|
+
var g;
|
|
1884
|
+
for (g in C) return !0;
|
|
1885
|
+
return !1;
|
|
1886
|
+
}
|
|
1887
|
+
function v(C, g) {
|
|
1888
|
+
if (typeof g != "function") throw new Error("Cannot `" + C + "` without `Parser`");
|
|
1889
|
+
}
|
|
1890
|
+
function F(C, g) {
|
|
1891
|
+
if (typeof g != "function") throw new Error("Cannot `" + C + "` without `Compiler`");
|
|
1892
|
+
}
|
|
1893
|
+
function B(C, g) {
|
|
1894
|
+
if (g) throw new Error("Cannot invoke `" + C + "` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.");
|
|
1895
|
+
}
|
|
1896
|
+
function m(C) {
|
|
1897
|
+
if (!C || typeof C.type != "string") throw new Error("Expected node, got `" + C + "`");
|
|
1898
|
+
}
|
|
1899
|
+
function d(C, g, y) {
|
|
1900
|
+
if (!y) throw new Error("`" + C + "` finished async. Use `" + g + "` instead");
|
|
1901
|
+
}
|
|
1902
|
+
}), Tt = {};
|
|
1903
|
+
Et(Tt, { languages: () => qa, options: () => La, parsers: () => Ht, printers: () => Za });
|
|
1904
|
+
var Ln = (u, e, t) => {
|
|
1905
|
+
if (!(u && e == null)) return Array.isArray(e) || typeof e == "string" ? e[t < 0 ? e.length + t : t] : e.at(t);
|
|
1906
|
+
}, Au = Ln, Tn = (u, e, t, n) => {
|
|
1907
|
+
if (!(u && e == null)) return e.replaceAll ? e.replaceAll(t, n) : t.global ? e.replace(t, n) : e.split(t).join(n);
|
|
1908
|
+
}, lu = Tn, On = Mu(Pe());
|
|
1909
|
+
function xe(u) {
|
|
1910
|
+
if (typeof u != "string") throw new TypeError("Expected a string");
|
|
1911
|
+
return u.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
1912
|
+
}
|
|
1913
|
+
var Iu = "string", Su = "array", Be = "cursor", Wu = "indent", Hu = "align", ie = "trim", Lu = "group", Pu = "fill", qu = "if-break", ae = "indent-if-break", oe = "line-suffix", le = "line-suffix-boundary", bu = "line", se = "label", _u = "break-parent", Ot = /* @__PURE__ */ new Set([Be, Wu, Hu, ie, Lu, Pu, qu, ae, oe, le, bu, se, _u]);
|
|
1914
|
+
function Rn(u) {
|
|
1915
|
+
if (typeof u == "string") return Iu;
|
|
1916
|
+
if (Array.isArray(u)) return Su;
|
|
1917
|
+
if (!u) return;
|
|
1918
|
+
let { type: e } = u;
|
|
1919
|
+
if (Ot.has(e)) return e;
|
|
1920
|
+
}
|
|
1921
|
+
var Tu = Rn, Nn = (u) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(u);
|
|
1922
|
+
function In(u) {
|
|
1923
|
+
let e = u === null ? "null" : typeof u;
|
|
1924
|
+
if (e !== "string" && e !== "object") return `Unexpected doc '${e}',
|
|
1925
|
+
Expected it to be 'string' or 'object'.`;
|
|
1926
|
+
if (Tu(u)) throw new Error("doc is valid.");
|
|
1927
|
+
let t = Object.prototype.toString.call(u);
|
|
1928
|
+
if (t !== "[object Object]") return `Unexpected doc '${t}'.`;
|
|
1929
|
+
let n = Nn([...Ot].map((r) => `'${r}'`));
|
|
1930
|
+
return `Unexpected doc.type '${u.type}'.
|
|
1931
|
+
Expected it to be ${n}.`;
|
|
1932
|
+
}
|
|
1933
|
+
var Pn = class extends Error {
|
|
1934
|
+
name = "InvalidDocError";
|
|
1935
|
+
constructor(u) {
|
|
1936
|
+
super(In(u)), this.doc = u;
|
|
1937
|
+
}
|
|
1938
|
+
}, Fe = Pn, Ye = {};
|
|
1939
|
+
function jn(u, e, t, n) {
|
|
1940
|
+
let r = [u];
|
|
1941
|
+
for (; r.length > 0; ) {
|
|
1942
|
+
let i = r.pop();
|
|
1943
|
+
if (i === Ye) {
|
|
1944
|
+
t(r.pop());
|
|
1945
|
+
continue;
|
|
1946
|
+
}
|
|
1947
|
+
t && r.push(i, Ye);
|
|
1948
|
+
let o = Tu(i);
|
|
1949
|
+
if (!o) throw new Fe(i);
|
|
1950
|
+
if (e?.(i) !== !1) switch (o) {
|
|
1951
|
+
case Su:
|
|
1952
|
+
case Pu: {
|
|
1953
|
+
let a = o === Su ? i : i.parts;
|
|
1954
|
+
for (let l = a.length, D = l - 1; D >= 0; --D) r.push(a[D]);
|
|
1955
|
+
break;
|
|
1956
|
+
}
|
|
1957
|
+
case qu:
|
|
1958
|
+
r.push(i.flatContents, i.breakContents);
|
|
1959
|
+
break;
|
|
1960
|
+
case Lu:
|
|
1961
|
+
if (n && i.expandedStates) for (let a = i.expandedStates.length, l = a - 1; l >= 0; --l) r.push(i.expandedStates[l]);
|
|
1962
|
+
else r.push(i.contents);
|
|
1963
|
+
break;
|
|
1964
|
+
case Hu:
|
|
1965
|
+
case Wu:
|
|
1966
|
+
case ae:
|
|
1967
|
+
case se:
|
|
1968
|
+
case oe:
|
|
1969
|
+
r.push(i.contents);
|
|
1970
|
+
break;
|
|
1971
|
+
case Iu:
|
|
1972
|
+
case Be:
|
|
1973
|
+
case ie:
|
|
1974
|
+
case le:
|
|
1975
|
+
case bu:
|
|
1976
|
+
case _u:
|
|
1977
|
+
break;
|
|
1978
|
+
default:
|
|
1979
|
+
throw new Fe(i);
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
var $n = jn;
|
|
1984
|
+
function zn(u, e) {
|
|
1985
|
+
if (typeof u == "string") return e(u);
|
|
1986
|
+
let t = /* @__PURE__ */ new Map();
|
|
1987
|
+
return n(u);
|
|
1988
|
+
function n(i) {
|
|
1989
|
+
if (t.has(i)) return t.get(i);
|
|
1990
|
+
let o = r(i);
|
|
1991
|
+
return t.set(i, o), o;
|
|
1992
|
+
}
|
|
1993
|
+
function r(i) {
|
|
1994
|
+
switch (Tu(i)) {
|
|
1995
|
+
case Su:
|
|
1996
|
+
return e(i.map(n));
|
|
1997
|
+
case Pu:
|
|
1998
|
+
return e({ ...i, parts: i.parts.map(n) });
|
|
1999
|
+
case qu:
|
|
2000
|
+
return e({ ...i, breakContents: n(i.breakContents), flatContents: n(i.flatContents) });
|
|
2001
|
+
case Lu: {
|
|
2002
|
+
let { expandedStates: o, contents: a } = i;
|
|
2003
|
+
return o ? (o = o.map(n), a = o[0]) : a = n(a), e({ ...i, contents: a, expandedStates: o });
|
|
2004
|
+
}
|
|
2005
|
+
case Hu:
|
|
2006
|
+
case Wu:
|
|
2007
|
+
case ae:
|
|
2008
|
+
case se:
|
|
2009
|
+
case oe:
|
|
2010
|
+
return e({ ...i, contents: n(i.contents) });
|
|
2011
|
+
case Iu:
|
|
2012
|
+
case Be:
|
|
2013
|
+
case ie:
|
|
2014
|
+
case le:
|
|
2015
|
+
case bu:
|
|
2016
|
+
case _u:
|
|
2017
|
+
return e(i);
|
|
2018
|
+
default:
|
|
2019
|
+
throw new Fe(i);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
function Ke(u) {
|
|
2024
|
+
if (u.length > 0) {
|
|
2025
|
+
let e = Au(!1, u, -1);
|
|
2026
|
+
!e.expandedStates && !e.break && (e.break = "propagated");
|
|
2027
|
+
}
|
|
2028
|
+
return null;
|
|
2029
|
+
}
|
|
2030
|
+
function Mn(u) {
|
|
2031
|
+
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2032
|
+
function n(i) {
|
|
2033
|
+
if (i.type === _u && Ke(t), i.type === Lu) {
|
|
2034
|
+
if (t.push(i), e.has(i)) return !1;
|
|
2035
|
+
e.add(i);
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
function r(i) {
|
|
2039
|
+
i.type === Lu && t.pop().break && Ke(t);
|
|
2040
|
+
}
|
|
2041
|
+
$n(u, n, r, !0);
|
|
2042
|
+
}
|
|
2043
|
+
function ju(u, e = Le) {
|
|
2044
|
+
return zn(u, (t) => typeof t == "string" ? It(e, t.split(`
|
|
2045
|
+
`)) : t);
|
|
2046
|
+
}
|
|
2047
|
+
var Un = () => {
|
|
2048
|
+
}, Vn = Un;
|
|
2049
|
+
function Se(u) {
|
|
2050
|
+
return { type: Wu, contents: u };
|
|
2051
|
+
}
|
|
2052
|
+
function Nu(u, e) {
|
|
2053
|
+
return { type: Hu, contents: e, n: u };
|
|
2054
|
+
}
|
|
2055
|
+
function he(u, e = {}) {
|
|
2056
|
+
return Vn(e.expandedStates), { type: Lu, id: e.id, contents: u, break: !!e.shouldBreak, expandedStates: e.expandedStates };
|
|
2057
|
+
}
|
|
2058
|
+
function Ce(u) {
|
|
2059
|
+
return Nu({ type: "root" }, u);
|
|
2060
|
+
}
|
|
2061
|
+
function ze(u) {
|
|
2062
|
+
return { type: Pu, parts: u };
|
|
2063
|
+
}
|
|
2064
|
+
function Gn(u, e = "", t = {}) {
|
|
2065
|
+
return { type: qu, breakContents: u, flatContents: e, groupId: t.groupId };
|
|
2066
|
+
}
|
|
2067
|
+
var Ae = { type: _u }, Me = { type: bu, hard: !0 }, Wn = { type: bu, hard: !0, literal: !0 }, Rt = { type: bu }, Nt = { type: bu, soft: !0 }, iu = [Me, Ae], Le = [Wn, Ae];
|
|
2068
|
+
function It(u, e) {
|
|
2069
|
+
let t = [];
|
|
2070
|
+
for (let n = 0; n < e.length; n++) n !== 0 && t.push(u), t.push(e[n]);
|
|
2071
|
+
return t;
|
|
2072
|
+
}
|
|
2073
|
+
function Hn(u, e) {
|
|
2074
|
+
let t = u.match(new RegExp(`(${xe(e)})+`, "gu"));
|
|
2075
|
+
return t === null ? 0 : t.reduce((n, r) => Math.max(n, r.length / e.length), 0);
|
|
2076
|
+
}
|
|
2077
|
+
var Pt = Hn;
|
|
2078
|
+
function _n(u, e) {
|
|
2079
|
+
let t = u.match(new RegExp(`(${xe(e)})+`, "gu"));
|
|
2080
|
+
if (t === null) return 0;
|
|
2081
|
+
let n = /* @__PURE__ */ new Map(), r = 0;
|
|
2082
|
+
for (let i of t) {
|
|
2083
|
+
let o = i.length / e.length;
|
|
2084
|
+
n.set(o, !0), o > r && (r = o);
|
|
2085
|
+
}
|
|
2086
|
+
for (let i = 1; i < r; i++) if (!n.get(i)) return i;
|
|
2087
|
+
return r + 1;
|
|
2088
|
+
}
|
|
2089
|
+
var Jn = _n, fe = "'", Xe = '"';
|
|
2090
|
+
function Yn(u, e) {
|
|
2091
|
+
let t = e === !0 || e === fe ? fe : Xe, n = t === fe ? Xe : fe, r = 0, i = 0;
|
|
2092
|
+
for (let o of u) o === t ? r++ : o === n && i++;
|
|
2093
|
+
return r > i ? n : t;
|
|
2094
|
+
}
|
|
2095
|
+
var Kn = Yn, Xn = class extends Error {
|
|
2096
|
+
name = "UnexpectedNodeError";
|
|
2097
|
+
constructor(u, e, t = "type") {
|
|
2098
|
+
super(`Unexpected ${e} node ${t}: ${JSON.stringify(u[t])}.`), this.node = u;
|
|
2099
|
+
}
|
|
2100
|
+
}, Zn = Xn, Qn = Mu(Pe());
|
|
2101
|
+
function ui(u) {
|
|
2102
|
+
return u?.type === "front-matter";
|
|
2103
|
+
}
|
|
2104
|
+
var ei = ui, ti = ["noformat", "noprettier"], jt = ["format", "prettier"], ri = "format", Zu = 3;
|
|
2105
|
+
function ni(u) {
|
|
2106
|
+
let e = u.slice(0, Zu);
|
|
2107
|
+
if (e !== "---" && e !== "+++") return;
|
|
2108
|
+
let t = u.indexOf(`
|
|
2109
|
+
`, Zu);
|
|
2110
|
+
if (t === -1) return;
|
|
2111
|
+
let n = u.slice(Zu, t).trim(), r = u.indexOf(`
|
|
2112
|
+
${e}`, t), i = n;
|
|
2113
|
+
if (i || (i = e === "+++" ? "toml" : "yaml"), r === -1 && e === "---" && i === "yaml" && (r = u.indexOf(`
|
|
2114
|
+
...`, t)), r === -1) return;
|
|
2115
|
+
let o = r + 1 + Zu, a = u.charAt(o + 1);
|
|
2116
|
+
if (!/\s?/u.test(a)) return;
|
|
2117
|
+
let l = u.slice(0, o);
|
|
2118
|
+
return { type: "front-matter", language: i, explicitLanguage: n, value: u.slice(t + 1, r), startDelimiter: e, endDelimiter: l.slice(-Zu), raw: l };
|
|
2119
|
+
}
|
|
2120
|
+
function ii(u) {
|
|
2121
|
+
let e = ni(u);
|
|
2122
|
+
if (!e) return { content: u };
|
|
2123
|
+
let { raw: t } = e;
|
|
2124
|
+
return { frontMatter: e, content: lu(!1, t, /[^\n]/gu, " ") + u.slice(t.length) };
|
|
2125
|
+
}
|
|
2126
|
+
var be = ii;
|
|
2127
|
+
function Ue(u, e) {
|
|
2128
|
+
let t = `@(${e.join("|")})`, n = new RegExp([`<!--\\s*${t}\\s*-->`, `\\{\\s*\\/\\*\\s*${t}\\s*\\*\\/\\s*\\}`, `<!--.*\r?
|
|
2129
|
+
[\\s\\S]*(^|
|
|
2130
|
+
)[^\\S
|
|
2131
|
+
]*${t}[^\\S
|
|
2132
|
+
]*($|
|
|
2133
|
+
)[\\s\\S]*
|
|
2134
|
+
.*-->`].join("|"), "mu"), r = u.match(n);
|
|
2135
|
+
return r?.index === 0;
|
|
2136
|
+
}
|
|
2137
|
+
var ai = (u) => Ue(be(u).content.trimStart(), jt), oi = (u) => Ue(be(u).content.trimStart(), ti), li = (u) => {
|
|
2138
|
+
let e = be(u), t = `<!-- @${ri} -->`;
|
|
2139
|
+
return e.frontMatter ? `${e.frontMatter.raw}
|
|
2140
|
+
|
|
2141
|
+
${t}
|
|
2142
|
+
|
|
2143
|
+
${e.content}` : `${t}
|
|
2144
|
+
|
|
2145
|
+
${e.content}`;
|
|
2146
|
+
}, si = /* @__PURE__ */ new Set(["position", "raw"]);
|
|
2147
|
+
function $t(u, e, t) {
|
|
2148
|
+
if ((u.type === "front-matter" || u.type === "code" || u.type === "yaml" || u.type === "import" || u.type === "export" || u.type === "jsx") && delete e.value, u.type === "list" && delete e.isAligned, (u.type === "list" || u.type === "listItem") && delete e.spread, u.type === "text") return null;
|
|
2149
|
+
if (u.type === "inlineCode" && (e.value = lu(!1, u.value, `
|
|
2150
|
+
`, " ")), u.type === "wikiLink" && (e.value = lu(!1, u.value.trim(), /[\t\n]+/gu, " ")), (u.type === "definition" || u.type === "linkReference" || u.type === "imageReference") && (e.label = (0, Qn.default)(u.label)), (u.type === "link" || u.type === "image") && u.url && u.url.includes("(")) for (let n of "<>") e.url = lu(!1, u.url, n, encodeURIComponent(n));
|
|
2151
|
+
if ((u.type === "definition" || u.type === "link" || u.type === "image") && u.title && (e.title = lu(!1, u.title, /\\(?=["')])/gu, "")), t?.type === "root" && t.children.length > 0 && (t.children[0] === u || ei(t.children[0]) && t.children[1] === u) && u.type === "html" && Ue(u.value, jt)) return null;
|
|
2152
|
+
}
|
|
2153
|
+
$t.ignoredProperties = si;
|
|
2154
|
+
var Di = $t, ci = /(?:[\u{2c7}\u{2c9}-\u{2cb}\u{2d9}\u{2ea}-\u{2eb}\u{305}\u{323}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2ebf0}-\u{2ee5d}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u, ue = new RegExp("(?:[\\u{21}-\\u{2f}\\u{3a}-\\u{40}\\u{5b}-\\u{60}\\u{7b}-\\u{7e}]|\\p{General_Category=Connector_Punctuation}|\\p{General_Category=Dash_Punctuation}|\\p{General_Category=Close_Punctuation}|\\p{General_Category=Final_Punctuation}|\\p{General_Category=Initial_Punctuation}|\\p{General_Category=Other_Punctuation}|\\p{General_Category=Open_Punctuation})", "u");
|
|
2155
|
+
async function fi(u, e) {
|
|
2156
|
+
if (u.language === "yaml") {
|
|
2157
|
+
let t = u.value.trim(), n = t ? await e(t, { parser: "yaml" }) : "";
|
|
2158
|
+
return Ce([u.startDelimiter, u.explicitLanguage, iu, n, n ? iu : "", u.endDelimiter]);
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
var pi = fi, hi = (u, e) => {
|
|
2162
|
+
if (!(u && e == null)) return e.toReversed || !Array.isArray(e) ? e.toReversed() : [...e].reverse();
|
|
2163
|
+
}, di = hi, Ze, Qe, ut, et, tt, Fi = ((Ze = globalThis.Deno) == null ? void 0 : Ze.build.os) === "windows" || ((ut = (Qe = globalThis.navigator) == null ? void 0 : Qe.platform) == null ? void 0 : ut.startsWith("Win")) || ((tt = (et = globalThis.process) == null ? void 0 : et.platform) == null ? void 0 : tt.startsWith("win")) || !1;
|
|
2164
|
+
function zt(u) {
|
|
2165
|
+
if (u = u instanceof URL ? u : new URL(u), u.protocol !== "file:") throw new TypeError(`URL must be a file URL: received "${u.protocol}"`);
|
|
2166
|
+
return u;
|
|
2167
|
+
}
|
|
2168
|
+
function Ci(u) {
|
|
2169
|
+
return u = zt(u), decodeURIComponent(u.pathname.replace(/%(?![0-9A-Fa-f]{2})/g, "%25"));
|
|
2170
|
+
}
|
|
2171
|
+
function Ai(u) {
|
|
2172
|
+
u = zt(u);
|
|
2173
|
+
let e = decodeURIComponent(u.pathname.replace(/\//g, "\\").replace(/%(?![0-9A-Fa-f]{2})/g, "%25")).replace(/^\\*([A-Za-z]:)(\\|$)/, "$1\\");
|
|
2174
|
+
return u.hostname !== "" && (e = `\\\\${u.hostname}${e}`), e;
|
|
2175
|
+
}
|
|
2176
|
+
function gi(u) {
|
|
2177
|
+
return Fi ? Ai(u) : Ci(u);
|
|
2178
|
+
}
|
|
2179
|
+
var mi = gi, Ei = (u) => String(u).split(/[/\\]/u).pop();
|
|
2180
|
+
function rt(u, e) {
|
|
2181
|
+
if (!e) return;
|
|
2182
|
+
let t = Ei(e).toLowerCase();
|
|
2183
|
+
return u.find(({ filenames: n }) => n?.some((r) => r.toLowerCase() === t)) ?? u.find(({ extensions: n }) => n?.some((r) => t.endsWith(r)));
|
|
2184
|
+
}
|
|
2185
|
+
function vi(u, e) {
|
|
2186
|
+
if (e) return u.find(({ name: t }) => t.toLowerCase() === e) ?? u.find(({ aliases: t }) => t?.includes(e)) ?? u.find(({ extensions: t }) => t?.includes(`.${e}`));
|
|
2187
|
+
}
|
|
2188
|
+
function nt(u, e) {
|
|
2189
|
+
if (e) {
|
|
2190
|
+
if (String(e).startsWith("file:")) try {
|
|
2191
|
+
e = mi(e);
|
|
2192
|
+
} catch {
|
|
2193
|
+
return;
|
|
2194
|
+
}
|
|
2195
|
+
if (typeof e == "string") return u.find(({ isSupported: t }) => t?.({ filepath: e }));
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
function xi(u, e) {
|
|
2199
|
+
let t = di(!1, u.plugins).flatMap((r) => r.languages ?? []), n = vi(t, e.language) ?? rt(t, e.physicalFile) ?? rt(t, e.file) ?? nt(t, e.physicalFile) ?? nt(t, e.file) ?? (e.physicalFile, void 0);
|
|
2200
|
+
return n?.parsers[0];
|
|
2201
|
+
}
|
|
2202
|
+
var Bi = xi, bi = new Proxy(() => {
|
|
2203
|
+
}, { get: () => bi });
|
|
2204
|
+
function ge(u) {
|
|
2205
|
+
return u.position.start.offset;
|
|
2206
|
+
}
|
|
2207
|
+
function me(u) {
|
|
2208
|
+
return u.position.end.offset;
|
|
2209
|
+
}
|
|
2210
|
+
var Mt = /* @__PURE__ */ new Set(["liquidNode", "inlineCode", "emphasis", "esComment", "strong", "delete", "wikiLink", "link", "linkReference", "image", "imageReference", "footnote", "footnoteReference", "sentence", "whitespace", "word", "break", "inlineMath"]), Ut = /* @__PURE__ */ new Set([...Mt, "tableCell", "paragraph", "heading"]), re = "non-cjk", xu = "cj-letter", zu = "k-letter", Ee = "cjk-punctuation", yi = new RegExp("\\p{Script_Extensions=Hangul}", "u");
|
|
2211
|
+
function Vt(u) {
|
|
2212
|
+
let e = [], t = u.split(/([\t\n ]+)/u);
|
|
2213
|
+
for (let [r, i] of t.entries()) {
|
|
2214
|
+
if (r % 2 === 1) {
|
|
2215
|
+
e.push({ type: "whitespace", value: /\n/u.test(i) ? `
|
|
2216
|
+
` : " " });
|
|
2217
|
+
continue;
|
|
2218
|
+
}
|
|
2219
|
+
if ((r === 0 || r === t.length - 1) && i === "") continue;
|
|
2220
|
+
let o = i.split(new RegExp(`(${ci.source})`, "u"));
|
|
2221
|
+
for (let [a, l] of o.entries()) if (!((a === 0 || a === o.length - 1) && l === "")) {
|
|
2222
|
+
if (a % 2 === 0) {
|
|
2223
|
+
l !== "" && n({ type: "word", value: l, kind: re, isCJ: !1, hasLeadingPunctuation: ue.test(l[0]), hasTrailingPunctuation: ue.test(Au(!1, l, -1)) });
|
|
2224
|
+
continue;
|
|
2225
|
+
}
|
|
2226
|
+
if (ue.test(l)) {
|
|
2227
|
+
n({ type: "word", value: l, kind: Ee, isCJ: !0, hasLeadingPunctuation: !0, hasTrailingPunctuation: !0 });
|
|
2228
|
+
continue;
|
|
2229
|
+
}
|
|
2230
|
+
if (yi.test(l)) {
|
|
2231
|
+
n({ type: "word", value: l, kind: zu, isCJ: !1, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2232
|
+
continue;
|
|
2233
|
+
}
|
|
2234
|
+
n({ type: "word", value: l, kind: xu, isCJ: !0, hasLeadingPunctuation: !1, hasTrailingPunctuation: !1 });
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
return e;
|
|
2238
|
+
function n(r) {
|
|
2239
|
+
let i = Au(!1, e, -1);
|
|
2240
|
+
i?.type === "word" && !o(re, Ee) && ![i.value, r.value].some((a) => /\u3000/u.test(a)) && e.push({ type: "whitespace", value: "" }), e.push(r);
|
|
2241
|
+
function o(a, l) {
|
|
2242
|
+
return i.kind === a && r.kind === l || i.kind === l && r.kind === a;
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
function ee(u, e) {
|
|
2247
|
+
let t = e.originalText.slice(u.position.start.offset, u.position.end.offset), { numberText: n, leadingSpaces: r } = t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;
|
|
2248
|
+
return { number: Number(n), leadingSpaces: r };
|
|
2249
|
+
}
|
|
2250
|
+
function wi(u, e) {
|
|
2251
|
+
return !u.ordered || u.children.length < 2 || ee(u.children[1], e).number !== 1 ? !1 : ee(u.children[0], e).number !== 0 ? !0 : u.children.length > 2 && ee(u.children[2], e).number === 1;
|
|
2252
|
+
}
|
|
2253
|
+
function Gt(u, e) {
|
|
2254
|
+
let { value: t } = u;
|
|
2255
|
+
return u.position.end.offset === e.length && t.endsWith(`
|
|
2256
|
+
`) && e.endsWith(`
|
|
2257
|
+
`) ? t.slice(0, -1) : t;
|
|
2258
|
+
}
|
|
2259
|
+
function Ju(u, e) {
|
|
2260
|
+
return (function t(n, r, i) {
|
|
2261
|
+
let o = { ...e(n, r, i) };
|
|
2262
|
+
return o.children && (o.children = o.children.map((a, l) => t(a, l, [o, ...i]))), o;
|
|
2263
|
+
})(u, null, []);
|
|
2264
|
+
}
|
|
2265
|
+
function it(u) {
|
|
2266
|
+
if (u?.type !== "link" || u.children.length !== 1) return !1;
|
|
2267
|
+
let [e] = u.children;
|
|
2268
|
+
return ge(u) === ge(e) && me(u) === me(e);
|
|
2269
|
+
}
|
|
2270
|
+
function ki(u, e) {
|
|
2271
|
+
let { node: t } = u;
|
|
2272
|
+
if (t.type === "code" && t.lang !== null) {
|
|
2273
|
+
let n = Bi(e, { language: t.lang });
|
|
2274
|
+
if (n) return async (r) => {
|
|
2275
|
+
let i = e.__inJsTemplate ? "~" : "`", o = i.repeat(Math.max(3, Pt(t.value, i) + 1)), a = { parser: n };
|
|
2276
|
+
t.lang === "ts" || t.lang === "typescript" ? a.filepath = "dummy.ts" : t.lang === "tsx" && (a.filepath = "dummy.tsx");
|
|
2277
|
+
let l = await r(Gt(t, e.originalText), a);
|
|
2278
|
+
return Ce([o, t.lang, t.meta ? " " + t.meta : "", iu, ju(l), iu, o]);
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
switch (t.type) {
|
|
2282
|
+
case "front-matter":
|
|
2283
|
+
return (n) => pi(t, n);
|
|
2284
|
+
case "import":
|
|
2285
|
+
case "export":
|
|
2286
|
+
return (n) => n(t.value, { parser: "babel" });
|
|
2287
|
+
case "jsx":
|
|
2288
|
+
return (n) => n(`<$>${t.value}</$>`, { parser: "__js_expression", rootMarker: "mdx" });
|
|
2289
|
+
}
|
|
2290
|
+
return null;
|
|
2291
|
+
}
|
|
2292
|
+
var qi = ki, Qu = null;
|
|
2293
|
+
function te(u) {
|
|
2294
|
+
if (Qu !== null && typeof Qu.property) {
|
|
2295
|
+
let e = Qu;
|
|
2296
|
+
return Qu = te.prototype = null, e;
|
|
2297
|
+
}
|
|
2298
|
+
return Qu = te.prototype = u ?? /* @__PURE__ */ Object.create(null), new te();
|
|
2299
|
+
}
|
|
2300
|
+
var Si = 10;
|
|
2301
|
+
for (let u = 0; u <= Si; u++) te();
|
|
2302
|
+
function Li(u) {
|
|
2303
|
+
return te(u);
|
|
2304
|
+
}
|
|
2305
|
+
function Ti(u, e = "type") {
|
|
2306
|
+
Li(u);
|
|
2307
|
+
function t(n) {
|
|
2308
|
+
let r = n[e], i = u[r];
|
|
2309
|
+
if (!Array.isArray(i)) throw Object.assign(new Error(`Missing visitor keys for '${r}'.`), { node: n });
|
|
2310
|
+
return i;
|
|
2311
|
+
}
|
|
2312
|
+
return t;
|
|
2313
|
+
}
|
|
2314
|
+
var Oi = Ti, Ri = { "front-matter": [], root: ["children"], paragraph: ["children"], sentence: ["children"], word: [], whitespace: [], emphasis: ["children"], strong: ["children"], delete: ["children"], inlineCode: [], wikiLink: [], link: ["children"], image: [], blockquote: ["children"], heading: ["children"], code: [], html: [], list: ["children"], thematicBreak: [], linkReference: ["children"], imageReference: [], definition: [], footnote: ["children"], footnoteReference: [], footnoteDefinition: ["children"], table: ["children"], tableCell: ["children"], break: [], liquidNode: [], import: [], export: [], esComment: [], jsx: [], math: [], inlineMath: [], tableRow: ["children"], listItem: ["children"], text: [] }, Ni = Ri, Ii = Oi(Ni), Pi = Ii;
|
|
2315
|
+
function ji(u) {
|
|
2316
|
+
switch (u) {
|
|
2317
|
+
case "cr":
|
|
2318
|
+
return "\r";
|
|
2319
|
+
case "crlf":
|
|
2320
|
+
return `\r
|
|
2321
|
+
`;
|
|
2322
|
+
default:
|
|
2323
|
+
return `
|
|
2324
|
+
`;
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
var $i = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
2328
|
+
function zi(u) {
|
|
2329
|
+
return u === 12288 || u >= 65281 && u <= 65376 || u >= 65504 && u <= 65510;
|
|
2330
|
+
}
|
|
2331
|
+
function Mi(u) {
|
|
2332
|
+
return u >= 4352 && u <= 4447 || u === 8986 || u === 8987 || u === 9001 || u === 9002 || u >= 9193 && u <= 9196 || u === 9200 || u === 9203 || u === 9725 || u === 9726 || u === 9748 || u === 9749 || u >= 9776 && u <= 9783 || u >= 9800 && u <= 9811 || u === 9855 || u >= 9866 && u <= 9871 || u === 9875 || u === 9889 || u === 9898 || u === 9899 || u === 9917 || u === 9918 || u === 9924 || u === 9925 || u === 9934 || u === 9940 || u === 9962 || u === 9970 || u === 9971 || u === 9973 || u === 9978 || u === 9981 || u === 9989 || u === 9994 || u === 9995 || u === 10024 || u === 10060 || u === 10062 || u >= 10067 && u <= 10069 || u === 10071 || u >= 10133 && u <= 10135 || u === 10160 || u === 10175 || u === 11035 || u === 11036 || u === 11088 || u === 11093 || u >= 11904 && u <= 11929 || u >= 11931 && u <= 12019 || u >= 12032 && u <= 12245 || u >= 12272 && u <= 12287 || u >= 12289 && u <= 12350 || u >= 12353 && u <= 12438 || u >= 12441 && u <= 12543 || u >= 12549 && u <= 12591 || u >= 12593 && u <= 12686 || u >= 12688 && u <= 12773 || u >= 12783 && u <= 12830 || u >= 12832 && u <= 12871 || u >= 12880 && u <= 42124 || u >= 42128 && u <= 42182 || u >= 43360 && u <= 43388 || u >= 44032 && u <= 55203 || u >= 63744 && u <= 64255 || u >= 65040 && u <= 65049 || u >= 65072 && u <= 65106 || u >= 65108 && u <= 65126 || u >= 65128 && u <= 65131 || u >= 94176 && u <= 94180 || u === 94192 || u === 94193 || u >= 94208 && u <= 100343 || u >= 100352 && u <= 101589 || u >= 101631 && u <= 101640 || u >= 110576 && u <= 110579 || u >= 110581 && u <= 110587 || u === 110589 || u === 110590 || u >= 110592 && u <= 110882 || u === 110898 || u >= 110928 && u <= 110930 || u === 110933 || u >= 110948 && u <= 110951 || u >= 110960 && u <= 111355 || u >= 119552 && u <= 119638 || u >= 119648 && u <= 119670 || u === 126980 || u === 127183 || u === 127374 || u >= 127377 && u <= 127386 || u >= 127488 && u <= 127490 || u >= 127504 && u <= 127547 || u >= 127552 && u <= 127560 || u === 127568 || u === 127569 || u >= 127584 && u <= 127589 || u >= 127744 && u <= 127776 || u >= 127789 && u <= 127797 || u >= 127799 && u <= 127868 || u >= 127870 && u <= 127891 || u >= 127904 && u <= 127946 || u >= 127951 && u <= 127955 || u >= 127968 && u <= 127984 || u === 127988 || u >= 127992 && u <= 128062 || u === 128064 || u >= 128066 && u <= 128252 || u >= 128255 && u <= 128317 || u >= 128331 && u <= 128334 || u >= 128336 && u <= 128359 || u === 128378 || u === 128405 || u === 128406 || u === 128420 || u >= 128507 && u <= 128591 || u >= 128640 && u <= 128709 || u === 128716 || u >= 128720 && u <= 128722 || u >= 128725 && u <= 128727 || u >= 128732 && u <= 128735 || u === 128747 || u === 128748 || u >= 128756 && u <= 128764 || u >= 128992 && u <= 129003 || u === 129008 || u >= 129292 && u <= 129338 || u >= 129340 && u <= 129349 || u >= 129351 && u <= 129535 || u >= 129648 && u <= 129660 || u >= 129664 && u <= 129673 || u >= 129679 && u <= 129734 || u >= 129742 && u <= 129756 || u >= 129759 && u <= 129769 || u >= 129776 && u <= 129784 || u >= 131072 && u <= 196605 || u >= 196608 && u <= 262141;
|
|
2333
|
+
}
|
|
2334
|
+
var Ui = (u) => !(zi(u) || Mi(u)), Vi = /[^\x20-\x7F]/u;
|
|
2335
|
+
function Gi(u) {
|
|
2336
|
+
if (!u) return 0;
|
|
2337
|
+
if (!Vi.test(u)) return u.length;
|
|
2338
|
+
u = u.replace($i(), " ");
|
|
2339
|
+
let e = 0;
|
|
2340
|
+
for (let t of u) {
|
|
2341
|
+
let n = t.codePointAt(0);
|
|
2342
|
+
n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (e += Ui(n) ? 1 : 2);
|
|
2343
|
+
}
|
|
2344
|
+
return e;
|
|
2345
|
+
}
|
|
2346
|
+
var Ve = Gi, fu = /* @__PURE__ */ Symbol("MODE_BREAK"), Eu = /* @__PURE__ */ Symbol("MODE_FLAT"), $u = /* @__PURE__ */ Symbol("cursor"), Te = /* @__PURE__ */ Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
2347
|
+
function Wt() {
|
|
2348
|
+
return { value: "", length: 0, queue: [] };
|
|
2349
|
+
}
|
|
2350
|
+
function Wi(u, e) {
|
|
2351
|
+
return Oe(u, { type: "indent" }, e);
|
|
2352
|
+
}
|
|
2353
|
+
function Hi(u, e, t) {
|
|
2354
|
+
return e === Number.NEGATIVE_INFINITY ? u.root || Wt() : e < 0 ? Oe(u, { type: "dedent" }, t) : e ? e.type === "root" ? { ...u, root: u } : Oe(u, { type: typeof e == "string" ? "stringAlign" : "numberAlign", n: e }, t) : u;
|
|
2355
|
+
}
|
|
2356
|
+
function Oe(u, e, t) {
|
|
2357
|
+
let n = e.type === "dedent" ? u.queue.slice(0, -1) : [...u.queue, e], r = "", i = 0, o = 0, a = 0;
|
|
2358
|
+
for (let p of n) switch (p.type) {
|
|
2359
|
+
case "indent":
|
|
2360
|
+
s(), t.useTabs ? l(1) : D(t.tabWidth);
|
|
2361
|
+
break;
|
|
2362
|
+
case "stringAlign":
|
|
2363
|
+
s(), r += p.n, i += p.n.length;
|
|
2364
|
+
break;
|
|
2365
|
+
case "numberAlign":
|
|
2366
|
+
o += 1, a += p.n;
|
|
2367
|
+
break;
|
|
2368
|
+
default:
|
|
2369
|
+
throw new Error(`Unexpected type '${p.type}'`);
|
|
2370
|
+
}
|
|
2371
|
+
return f(), { ...u, value: r, length: i, queue: n };
|
|
2372
|
+
function l(p) {
|
|
2373
|
+
r += " ".repeat(p), i += t.tabWidth * p;
|
|
2374
|
+
}
|
|
2375
|
+
function D(p) {
|
|
2376
|
+
r += " ".repeat(p), i += p;
|
|
2377
|
+
}
|
|
2378
|
+
function s() {
|
|
2379
|
+
t.useTabs ? c() : f();
|
|
2380
|
+
}
|
|
2381
|
+
function c() {
|
|
2382
|
+
o > 0 && l(o), h();
|
|
2383
|
+
}
|
|
2384
|
+
function f() {
|
|
2385
|
+
a > 0 && D(a), h();
|
|
2386
|
+
}
|
|
2387
|
+
function h() {
|
|
2388
|
+
o = 0, a = 0;
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
2391
|
+
function Re(u) {
|
|
2392
|
+
let e = 0, t = 0, n = u.length;
|
|
2393
|
+
u: for (; n--; ) {
|
|
2394
|
+
let r = u[n];
|
|
2395
|
+
if (r === $u) {
|
|
2396
|
+
t++;
|
|
2397
|
+
continue;
|
|
2398
|
+
}
|
|
2399
|
+
for (let i = r.length - 1; i >= 0; i--) {
|
|
2400
|
+
let o = r[i];
|
|
2401
|
+
if (o === " " || o === " ") e++;
|
|
2402
|
+
else {
|
|
2403
|
+
u[n] = r.slice(0, i + 1);
|
|
2404
|
+
break u;
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
if (e > 0 || t > 0) for (u.length = n + 1; t-- > 0; ) u.push($u);
|
|
2409
|
+
return e;
|
|
2410
|
+
}
|
|
2411
|
+
function pe(u, e, t, n, r, i) {
|
|
2412
|
+
if (t === Number.POSITIVE_INFINITY) return !0;
|
|
2413
|
+
let o = e.length, a = [u], l = [];
|
|
2414
|
+
for (; t >= 0; ) {
|
|
2415
|
+
if (a.length === 0) {
|
|
2416
|
+
if (o === 0) return !0;
|
|
2417
|
+
a.push(e[--o]);
|
|
2418
|
+
continue;
|
|
2419
|
+
}
|
|
2420
|
+
let { mode: D, doc: s } = a.pop(), c = Tu(s);
|
|
2421
|
+
switch (c) {
|
|
2422
|
+
case Iu:
|
|
2423
|
+
l.push(s), t -= Ve(s);
|
|
2424
|
+
break;
|
|
2425
|
+
case Su:
|
|
2426
|
+
case Pu: {
|
|
2427
|
+
let f = c === Su ? s : s.parts, h = s[Te] ?? 0;
|
|
2428
|
+
for (let p = f.length - 1; p >= h; p--) a.push({ mode: D, doc: f[p] });
|
|
2429
|
+
break;
|
|
2430
|
+
}
|
|
2431
|
+
case Wu:
|
|
2432
|
+
case Hu:
|
|
2433
|
+
case ae:
|
|
2434
|
+
case se:
|
|
2435
|
+
a.push({ mode: D, doc: s.contents });
|
|
2436
|
+
break;
|
|
2437
|
+
case ie:
|
|
2438
|
+
t += Re(l);
|
|
2439
|
+
break;
|
|
2440
|
+
case Lu: {
|
|
2441
|
+
if (i && s.break) return !1;
|
|
2442
|
+
let f = s.break ? fu : D, h = s.expandedStates && f === fu ? Au(!1, s.expandedStates, -1) : s.contents;
|
|
2443
|
+
a.push({ mode: f, doc: h });
|
|
2444
|
+
break;
|
|
2445
|
+
}
|
|
2446
|
+
case qu: {
|
|
2447
|
+
let f = (s.groupId ? r[s.groupId] || Eu : D) === fu ? s.breakContents : s.flatContents;
|
|
2448
|
+
f && a.push({ mode: D, doc: f });
|
|
2449
|
+
break;
|
|
2450
|
+
}
|
|
2451
|
+
case bu:
|
|
2452
|
+
if (D === fu || s.hard) return !0;
|
|
2453
|
+
s.soft || (l.push(" "), t--);
|
|
2454
|
+
break;
|
|
2455
|
+
case oe:
|
|
2456
|
+
n = !0;
|
|
2457
|
+
break;
|
|
2458
|
+
case le:
|
|
2459
|
+
if (n) return !1;
|
|
2460
|
+
break;
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
return !1;
|
|
2464
|
+
}
|
|
2465
|
+
function _i(u, e) {
|
|
2466
|
+
let t = {}, n = e.printWidth, r = ji(e.endOfLine), i = 0, o = [{ ind: Wt(), mode: fu, doc: u }], a = [], l = !1, D = [], s = 0;
|
|
2467
|
+
for (Mn(u); o.length > 0; ) {
|
|
2468
|
+
let { ind: f, mode: h, doc: p } = o.pop();
|
|
2469
|
+
switch (Tu(p)) {
|
|
2470
|
+
case Iu: {
|
|
2471
|
+
let E = r !== `
|
|
2472
|
+
` ? lu(!1, p, `
|
|
2473
|
+
`, r) : p;
|
|
2474
|
+
a.push(E), o.length > 0 && (i += Ve(E));
|
|
2475
|
+
break;
|
|
2476
|
+
}
|
|
2477
|
+
case Su:
|
|
2478
|
+
for (let E = p.length - 1; E >= 0; E--) o.push({ ind: f, mode: h, doc: p[E] });
|
|
2479
|
+
break;
|
|
2480
|
+
case Be:
|
|
2481
|
+
if (s >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
2482
|
+
a.push($u), s++;
|
|
2483
|
+
break;
|
|
2484
|
+
case Wu:
|
|
2485
|
+
o.push({ ind: Wi(f, e), mode: h, doc: p.contents });
|
|
2486
|
+
break;
|
|
2487
|
+
case Hu:
|
|
2488
|
+
o.push({ ind: Hi(f, p.n, e), mode: h, doc: p.contents });
|
|
2489
|
+
break;
|
|
2490
|
+
case ie:
|
|
2491
|
+
i -= Re(a);
|
|
2492
|
+
break;
|
|
2493
|
+
case Lu:
|
|
2494
|
+
switch (h) {
|
|
2495
|
+
case Eu:
|
|
2496
|
+
if (!l) {
|
|
2497
|
+
o.push({ ind: f, mode: p.break ? fu : Eu, doc: p.contents });
|
|
2498
|
+
break;
|
|
2499
|
+
}
|
|
2500
|
+
case fu: {
|
|
2501
|
+
l = !1;
|
|
2502
|
+
let E = { ind: f, mode: Eu, doc: p.contents }, A = n - i, v = D.length > 0;
|
|
2503
|
+
if (!p.break && pe(E, o, A, v, t)) o.push(E);
|
|
2504
|
+
else if (p.expandedStates) {
|
|
2505
|
+
let F = Au(!1, p.expandedStates, -1);
|
|
2506
|
+
if (p.break) {
|
|
2507
|
+
o.push({ ind: f, mode: fu, doc: F });
|
|
2508
|
+
break;
|
|
2509
|
+
} else for (let B = 1; B < p.expandedStates.length + 1; B++) if (B >= p.expandedStates.length) {
|
|
2510
|
+
o.push({ ind: f, mode: fu, doc: F });
|
|
2511
|
+
break;
|
|
2512
|
+
} else {
|
|
2513
|
+
let m = p.expandedStates[B], d = { ind: f, mode: Eu, doc: m };
|
|
2514
|
+
if (pe(d, o, A, v, t)) {
|
|
2515
|
+
o.push(d);
|
|
2516
|
+
break;
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
} else o.push({ ind: f, mode: fu, doc: p.contents });
|
|
2520
|
+
break;
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
p.id && (t[p.id] = Au(!1, o, -1).mode);
|
|
2524
|
+
break;
|
|
2525
|
+
case Pu: {
|
|
2526
|
+
let E = n - i, A = p[Te] ?? 0, { parts: v } = p, F = v.length - A;
|
|
2527
|
+
if (F === 0) break;
|
|
2528
|
+
let B = v[A + 0], m = v[A + 1], d = { ind: f, mode: Eu, doc: B }, C = { ind: f, mode: fu, doc: B }, g = pe(d, [], E, D.length > 0, t, !0);
|
|
2529
|
+
if (F === 1) {
|
|
2530
|
+
g ? o.push(d) : o.push(C);
|
|
2531
|
+
break;
|
|
2532
|
+
}
|
|
2533
|
+
let y = { ind: f, mode: Eu, doc: m }, w = { ind: f, mode: fu, doc: m };
|
|
2534
|
+
if (F === 2) {
|
|
2535
|
+
g ? o.push(y, d) : o.push(w, C);
|
|
2536
|
+
break;
|
|
2537
|
+
}
|
|
2538
|
+
let T = v[A + 2], b = { ind: f, mode: h, doc: { ...p, [Te]: A + 2 } };
|
|
2539
|
+
pe({ ind: f, mode: Eu, doc: [B, m, T] }, [], E, D.length > 0, t, !0) ? o.push(b, y, d) : g ? o.push(b, w, d) : o.push(b, w, C);
|
|
2540
|
+
break;
|
|
2541
|
+
}
|
|
2542
|
+
case qu:
|
|
2543
|
+
case ae: {
|
|
2544
|
+
let E = p.groupId ? t[p.groupId] : h;
|
|
2545
|
+
if (E === fu) {
|
|
2546
|
+
let A = p.type === qu ? p.breakContents : p.negate ? p.contents : Se(p.contents);
|
|
2547
|
+
A && o.push({ ind: f, mode: h, doc: A });
|
|
2548
|
+
}
|
|
2549
|
+
if (E === Eu) {
|
|
2550
|
+
let A = p.type === qu ? p.flatContents : p.negate ? Se(p.contents) : p.contents;
|
|
2551
|
+
A && o.push({ ind: f, mode: h, doc: A });
|
|
2552
|
+
}
|
|
2553
|
+
break;
|
|
2554
|
+
}
|
|
2555
|
+
case oe:
|
|
2556
|
+
D.push({ ind: f, mode: h, doc: p.contents });
|
|
2557
|
+
break;
|
|
2558
|
+
case le:
|
|
2559
|
+
D.length > 0 && o.push({ ind: f, mode: h, doc: Me });
|
|
2560
|
+
break;
|
|
2561
|
+
case bu:
|
|
2562
|
+
switch (h) {
|
|
2563
|
+
case Eu:
|
|
2564
|
+
if (p.hard) l = !0;
|
|
2565
|
+
else {
|
|
2566
|
+
p.soft || (a.push(" "), i += 1);
|
|
2567
|
+
break;
|
|
2568
|
+
}
|
|
2569
|
+
case fu:
|
|
2570
|
+
if (D.length > 0) {
|
|
2571
|
+
o.push({ ind: f, mode: h, doc: p }, ...D.reverse()), D.length = 0;
|
|
2572
|
+
break;
|
|
2573
|
+
}
|
|
2574
|
+
p.literal ? f.root ? (a.push(r, f.root.value), i = f.root.length) : (a.push(r), i = 0) : (i -= Re(a), a.push(r + f.value), i = f.length);
|
|
2575
|
+
break;
|
|
2576
|
+
}
|
|
2577
|
+
break;
|
|
2578
|
+
case se:
|
|
2579
|
+
o.push({ ind: f, mode: h, doc: p.contents });
|
|
2580
|
+
break;
|
|
2581
|
+
case _u:
|
|
2582
|
+
break;
|
|
2583
|
+
default:
|
|
2584
|
+
throw new Fe(p);
|
|
2585
|
+
}
|
|
2586
|
+
o.length === 0 && D.length > 0 && (o.push(...D.reverse()), D.length = 0);
|
|
2587
|
+
}
|
|
2588
|
+
let c = a.indexOf($u);
|
|
2589
|
+
if (c !== -1) {
|
|
2590
|
+
let f = a.indexOf($u, c + 1);
|
|
2591
|
+
if (f === -1) return { formatted: a.filter((A) => A !== $u).join("") };
|
|
2592
|
+
let h = a.slice(0, c).join(""), p = a.slice(c + 1, f).join(""), E = a.slice(f + 1).join("");
|
|
2593
|
+
return { formatted: h + p + E, cursorNodeStart: h.length, cursorNodeText: p };
|
|
2594
|
+
}
|
|
2595
|
+
return { formatted: a.join("") };
|
|
2596
|
+
}
|
|
2597
|
+
function Ji(u, e, t) {
|
|
2598
|
+
let { node: n } = u, r = [], i = u.map(() => u.map(({ index: c }) => {
|
|
2599
|
+
let f = _i(t(), e).formatted, h = Ve(f);
|
|
2600
|
+
return r[c] = Math.max(r[c] ?? 3, h), { text: f, width: h };
|
|
2601
|
+
}, "children"), "children"), o = l(!1);
|
|
2602
|
+
if (e.proseWrap !== "never") return [Ae, o];
|
|
2603
|
+
let a = l(!0);
|
|
2604
|
+
return [Ae, he(Gn(a, o))];
|
|
2605
|
+
function l(c) {
|
|
2606
|
+
return It(Me, [s(i[0], c), D(c), ...i.slice(1).map((f) => s(f, c))].map((f) => `| ${f.join(" | ")} |`));
|
|
2607
|
+
}
|
|
2608
|
+
function D(c) {
|
|
2609
|
+
return r.map((f, h) => {
|
|
2610
|
+
let p = n.align[h], E = p === "center" || p === "left" ? ":" : "-", A = p === "center" || p === "right" ? ":" : "-", v = c ? "-" : "-".repeat(f - 2);
|
|
2611
|
+
return `${E}${v}${A}`;
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
function s(c, f) {
|
|
2615
|
+
return c.map(({ text: h, width: p }, E) => {
|
|
2616
|
+
if (f) return h;
|
|
2617
|
+
let A = r[E] - p, v = n.align[E], F = 0;
|
|
2618
|
+
v === "right" ? F = A : v === "center" && (F = Math.floor(A / 2));
|
|
2619
|
+
let B = A - F;
|
|
2620
|
+
return `${" ".repeat(F)}${h}${" ".repeat(B)}`;
|
|
2621
|
+
});
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
function Yi(u, e, t) {
|
|
2625
|
+
let n = u.map(t, "children");
|
|
2626
|
+
return Ki(n);
|
|
2627
|
+
}
|
|
2628
|
+
function Ki(u) {
|
|
2629
|
+
let e = [""];
|
|
2630
|
+
return (function t(n) {
|
|
2631
|
+
for (let r of n) {
|
|
2632
|
+
let i = Tu(r);
|
|
2633
|
+
if (i === Su) {
|
|
2634
|
+
t(r);
|
|
2635
|
+
continue;
|
|
2636
|
+
}
|
|
2637
|
+
let o = r, a = [];
|
|
2638
|
+
i === Pu && ([o, ...a] = r.parts), e.push([e.pop(), o], ...a);
|
|
2639
|
+
}
|
|
2640
|
+
})(u), ze(e);
|
|
2641
|
+
}
|
|
2642
|
+
var Cu, Xi = class {
|
|
2643
|
+
constructor(u) {
|
|
2644
|
+
ir(this, Cu), ar(this, Cu, new Set(u));
|
|
2645
|
+
}
|
|
2646
|
+
getLeadingWhitespaceCount(u) {
|
|
2647
|
+
let e = ku(this, Cu), t = 0;
|
|
2648
|
+
for (let n = 0; n < u.length && e.has(u.charAt(n)); n++) t++;
|
|
2649
|
+
return t;
|
|
2650
|
+
}
|
|
2651
|
+
getTrailingWhitespaceCount(u) {
|
|
2652
|
+
let e = ku(this, Cu), t = 0;
|
|
2653
|
+
for (let n = u.length - 1; n >= 0 && e.has(u.charAt(n)); n--) t++;
|
|
2654
|
+
return t;
|
|
2655
|
+
}
|
|
2656
|
+
getLeadingWhitespace(u) {
|
|
2657
|
+
let e = this.getLeadingWhitespaceCount(u);
|
|
2658
|
+
return u.slice(0, e);
|
|
2659
|
+
}
|
|
2660
|
+
getTrailingWhitespace(u) {
|
|
2661
|
+
let e = this.getTrailingWhitespaceCount(u);
|
|
2662
|
+
return u.slice(u.length - e);
|
|
2663
|
+
}
|
|
2664
|
+
hasLeadingWhitespace(u) {
|
|
2665
|
+
return ku(this, Cu).has(u.charAt(0));
|
|
2666
|
+
}
|
|
2667
|
+
hasTrailingWhitespace(u) {
|
|
2668
|
+
return ku(this, Cu).has(Au(!1, u, -1));
|
|
2669
|
+
}
|
|
2670
|
+
trimStart(u) {
|
|
2671
|
+
let e = this.getLeadingWhitespaceCount(u);
|
|
2672
|
+
return u.slice(e);
|
|
2673
|
+
}
|
|
2674
|
+
trimEnd(u) {
|
|
2675
|
+
let e = this.getTrailingWhitespaceCount(u);
|
|
2676
|
+
return u.slice(0, u.length - e);
|
|
2677
|
+
}
|
|
2678
|
+
trim(u) {
|
|
2679
|
+
return this.trimEnd(this.trimStart(u));
|
|
2680
|
+
}
|
|
2681
|
+
split(u, e = !1) {
|
|
2682
|
+
let t = `[${xe([...ku(this, Cu)].join(""))}]+`, n = new RegExp(e ? `(${t})` : t, "u");
|
|
2683
|
+
return u.split(n);
|
|
2684
|
+
}
|
|
2685
|
+
hasWhitespaceCharacter(u) {
|
|
2686
|
+
let e = ku(this, Cu);
|
|
2687
|
+
return Array.prototype.some.call(u, (t) => e.has(t));
|
|
2688
|
+
}
|
|
2689
|
+
hasNonWhitespaceCharacter(u) {
|
|
2690
|
+
let e = ku(this, Cu);
|
|
2691
|
+
return Array.prototype.some.call(u, (t) => !e.has(t));
|
|
2692
|
+
}
|
|
2693
|
+
isWhitespaceOnly(u) {
|
|
2694
|
+
let e = ku(this, Cu);
|
|
2695
|
+
return Array.prototype.every.call(u, (t) => e.has(t));
|
|
2696
|
+
}
|
|
2697
|
+
};
|
|
2698
|
+
Cu = /* @__PURE__ */ new WeakMap();
|
|
2699
|
+
var Zi = Xi, Qi = [" ", `
|
|
2700
|
+
`, "\f", "\r", " "], ua = new Zi(Qi), at = ua, ea = /^\\?.$/su, ta = /^\n *>[ >]*$/u;
|
|
2701
|
+
function ra(u, e) {
|
|
2702
|
+
return u = na(u, e), u = aa(u), u = la(u, e), u = sa(u, e), u = oa(u), u;
|
|
2703
|
+
}
|
|
2704
|
+
function na(u, e) {
|
|
2705
|
+
return Ju(u, (t) => {
|
|
2706
|
+
if (t.type !== "text") return t;
|
|
2707
|
+
let { value: n } = t;
|
|
2708
|
+
if (n === "*" || n === "_" || !ea.test(n) || t.position.end.offset - t.position.start.offset === n.length) return t;
|
|
2709
|
+
let r = e.originalText.slice(t.position.start.offset, t.position.end.offset);
|
|
2710
|
+
return ta.test(r) ? t : { ...t, value: r };
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2713
|
+
function ia(u, e, t) {
|
|
2714
|
+
return Ju(u, (n) => {
|
|
2715
|
+
if (!n.children) return n;
|
|
2716
|
+
let r = n.children.reduce((i, o) => {
|
|
2717
|
+
let a = Au(!1, i, -1);
|
|
2718
|
+
return a && e(a, o) ? i.splice(-1, 1, t(a, o)) : i.push(o), i;
|
|
2719
|
+
}, []);
|
|
2720
|
+
return { ...n, children: r };
|
|
2721
|
+
});
|
|
2722
|
+
}
|
|
2723
|
+
function aa(u) {
|
|
2724
|
+
return ia(u, (e, t) => e.type === "text" && t.type === "text", (e, t) => ({ type: "text", value: e.value + t.value, position: { start: e.position.start, end: t.position.end } }));
|
|
2725
|
+
}
|
|
2726
|
+
function oa(u) {
|
|
2727
|
+
return Ju(u, (e, t, [n]) => {
|
|
2728
|
+
if (e.type !== "text") return e;
|
|
2729
|
+
let { value: r } = e;
|
|
2730
|
+
return n.type === "paragraph" && (t === 0 && (r = at.trimStart(r)), t === n.children.length - 1 && (r = at.trimEnd(r))), { type: "sentence", position: e.position, children: Vt(r) };
|
|
2731
|
+
});
|
|
2732
|
+
}
|
|
2733
|
+
function la(u, e) {
|
|
2734
|
+
return Ju(u, (t, n, r) => {
|
|
2735
|
+
if (t.type === "code") {
|
|
2736
|
+
let i = /^\n?(?: {4,}|\t)/u.test(e.originalText.slice(t.position.start.offset, t.position.end.offset));
|
|
2737
|
+
if (t.isIndented = i, i) for (let o = 0; o < r.length; o++) {
|
|
2738
|
+
let a = r[o];
|
|
2739
|
+
if (a.hasIndentedCodeblock) break;
|
|
2740
|
+
a.type === "list" && (a.hasIndentedCodeblock = !0);
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
return t;
|
|
2744
|
+
});
|
|
2745
|
+
}
|
|
2746
|
+
function sa(u, e) {
|
|
2747
|
+
return Ju(u, (r, i, o) => {
|
|
2748
|
+
if (r.type === "list" && r.children.length > 0) {
|
|
2749
|
+
for (let a = 0; a < o.length; a++) {
|
|
2750
|
+
let l = o[a];
|
|
2751
|
+
if (l.type === "list" && !l.isAligned) return r.isAligned = !1, r;
|
|
2752
|
+
}
|
|
2753
|
+
r.isAligned = n(r);
|
|
2754
|
+
}
|
|
2755
|
+
return r;
|
|
2756
|
+
});
|
|
2757
|
+
function t(r) {
|
|
2758
|
+
return r.children.length === 0 ? -1 : r.children[0].position.start.column - 1;
|
|
2759
|
+
}
|
|
2760
|
+
function n(r) {
|
|
2761
|
+
if (!r.ordered) return !0;
|
|
2762
|
+
let [i, o] = r.children;
|
|
2763
|
+
if (ee(i, e).leadingSpaces.length > 1) return !0;
|
|
2764
|
+
let a = t(i);
|
|
2765
|
+
if (a === -1) return !1;
|
|
2766
|
+
if (r.children.length === 1) return a % e.tabWidth === 0;
|
|
2767
|
+
let l = t(o);
|
|
2768
|
+
return a !== l ? !1 : a % e.tabWidth === 0 ? !0 : ee(o, e).leadingSpaces.length > 1;
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
var Da = ra;
|
|
2772
|
+
function ca(u, e) {
|
|
2773
|
+
let t = [""];
|
|
2774
|
+
return u.each(() => {
|
|
2775
|
+
let { node: n } = u, r = e();
|
|
2776
|
+
switch (n.type) {
|
|
2777
|
+
case "whitespace":
|
|
2778
|
+
if (Tu(r) !== Iu) {
|
|
2779
|
+
t.push(r, "");
|
|
2780
|
+
break;
|
|
2781
|
+
}
|
|
2782
|
+
default:
|
|
2783
|
+
t.push([t.pop(), r]);
|
|
2784
|
+
}
|
|
2785
|
+
}, "children"), ze(t);
|
|
2786
|
+
}
|
|
2787
|
+
var fa = /* @__PURE__ */ new Set(["heading", "tableCell", "link", "wikiLink"]), ot = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
2788
|
+
function pa({ parent: u }) {
|
|
2789
|
+
if (u.usesCJSpaces === void 0) {
|
|
2790
|
+
let e = { " ": 0, "": 0 }, { children: t } = u;
|
|
2791
|
+
for (let n = 1; n < t.length - 1; ++n) {
|
|
2792
|
+
let r = t[n];
|
|
2793
|
+
if (r.type === "whitespace" && (r.value === " " || r.value === "")) {
|
|
2794
|
+
let i = t[n - 1].kind, o = t[n + 1].kind;
|
|
2795
|
+
(i === xu && o === re || i === re && o === xu) && ++e[r.value];
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
u.usesCJSpaces = e[" "] > e[""];
|
|
2799
|
+
}
|
|
2800
|
+
return u.usesCJSpaces;
|
|
2801
|
+
}
|
|
2802
|
+
function ha(u, e) {
|
|
2803
|
+
if (e) return !0;
|
|
2804
|
+
let { previous: t, next: n } = u;
|
|
2805
|
+
if (!t || !n) return !0;
|
|
2806
|
+
let r = t.kind, i = n.kind;
|
|
2807
|
+
return lt(r) && lt(i) || r === zu && i === xu || i === zu && r === xu ? !0 : r === Ee || i === Ee || r === xu && i === xu ? !1 : ot.has(n.value[0]) || ot.has(Au(!1, t.value, -1)) ? !0 : t.hasTrailingPunctuation || n.hasLeadingPunctuation ? !1 : pa(u);
|
|
2808
|
+
}
|
|
2809
|
+
function lt(u) {
|
|
2810
|
+
return u === re || u === zu;
|
|
2811
|
+
}
|
|
2812
|
+
function da(u, e, t, n) {
|
|
2813
|
+
if (t !== "always" || u.hasAncestor((o) => fa.has(o.type))) return !1;
|
|
2814
|
+
if (n) return e !== "";
|
|
2815
|
+
let { previous: r, next: i } = u;
|
|
2816
|
+
return !r || !i ? !0 : e === "" ? !1 : r.kind === zu && i.kind === xu || i.kind === zu && r.kind === xu ? !0 : !(r.isCJ || i.isCJ);
|
|
2817
|
+
}
|
|
2818
|
+
function st(u, e, t, n) {
|
|
2819
|
+
if (t === "preserve" && e === `
|
|
2820
|
+
`) return iu;
|
|
2821
|
+
let r = e === " " || e === `
|
|
2822
|
+
` && ha(u, n);
|
|
2823
|
+
return da(u, e, t, n) ? r ? Rt : Nt : r ? " " : "";
|
|
2824
|
+
}
|
|
2825
|
+
var Fa = /* @__PURE__ */ new Set(["listItem", "definition"]);
|
|
2826
|
+
function Dt(u) {
|
|
2827
|
+
var e, t;
|
|
2828
|
+
let { previous: n, next: r } = u;
|
|
2829
|
+
return n?.type === "sentence" && ((e = Au(!1, n.children, -1)) == null ? void 0 : e.type) === "word" && !Au(!1, n.children, -1).hasTrailingPunctuation || r?.type === "sentence" && ((t = r.children[0]) == null ? void 0 : t.type) === "word" && !r.children[0].hasLeadingPunctuation;
|
|
2830
|
+
}
|
|
2831
|
+
function Ca(u, e, t) {
|
|
2832
|
+
var n;
|
|
2833
|
+
let { node: r } = u;
|
|
2834
|
+
if (xa(u)) {
|
|
2835
|
+
let i = [""], o = Vt(e.originalText.slice(r.position.start.offset, r.position.end.offset));
|
|
2836
|
+
for (let a of o) {
|
|
2837
|
+
if (a.type === "word") {
|
|
2838
|
+
i.push([i.pop(), a.value]);
|
|
2839
|
+
continue;
|
|
2840
|
+
}
|
|
2841
|
+
let l = st(u, a.value, e.proseWrap, !0);
|
|
2842
|
+
if (Tu(l) === Iu) {
|
|
2843
|
+
i.push([i.pop(), l]);
|
|
2844
|
+
continue;
|
|
2845
|
+
}
|
|
2846
|
+
i.push(l, "");
|
|
2847
|
+
}
|
|
2848
|
+
return ze(i);
|
|
2849
|
+
}
|
|
2850
|
+
switch (r.type) {
|
|
2851
|
+
case "front-matter":
|
|
2852
|
+
return e.originalText.slice(r.position.start.offset, r.position.end.offset);
|
|
2853
|
+
case "root":
|
|
2854
|
+
return r.children.length === 0 ? "" : [ma(u, e, t), iu];
|
|
2855
|
+
case "paragraph":
|
|
2856
|
+
return Yi(u, e, t);
|
|
2857
|
+
case "sentence":
|
|
2858
|
+
return ca(u, t);
|
|
2859
|
+
case "word": {
|
|
2860
|
+
let i = lu(!1, lu(!1, r.value, "*", String.raw`\*`), new RegExp([`(^|${ue.source})(_+)`, `(_+)(${ue.source}|$)`].join("|"), "gu"), (l, D, s, c, f) => lu(!1, s ? `${D}${s}` : `${c}${f}`, "_", String.raw`\_`)), o = (l, D, s) => l.type === "sentence" && s === 0, a = (l, D, s) => it(l.children[s - 1]);
|
|
2861
|
+
return i !== r.value && (u.match(void 0, o, a) || u.match(void 0, o, (l, D, s) => l.type === "emphasis" && s === 0, a)) && (i = i.replace(/^(\\?[*_])+/u, (l) => lu(!1, l, "\\", ""))), i;
|
|
2862
|
+
}
|
|
2863
|
+
case "whitespace": {
|
|
2864
|
+
let { next: i } = u, o = i && /^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value) ? "never" : e.proseWrap;
|
|
2865
|
+
return st(u, r.value, o);
|
|
2866
|
+
}
|
|
2867
|
+
case "emphasis": {
|
|
2868
|
+
let i;
|
|
2869
|
+
if (it(r.children[0])) i = e.originalText[r.position.start.offset];
|
|
2870
|
+
else {
|
|
2871
|
+
let o = Dt(u), a = ((n = u.parent) == null ? void 0 : n.type) === "strong" && Dt(u.ancestors);
|
|
2872
|
+
i = o || a || u.hasAncestor((l) => l.type === "emphasis") ? "*" : "_";
|
|
2873
|
+
}
|
|
2874
|
+
return [i, cu(u, e, t), i];
|
|
2875
|
+
}
|
|
2876
|
+
case "strong":
|
|
2877
|
+
return ["**", cu(u, e, t), "**"];
|
|
2878
|
+
case "delete":
|
|
2879
|
+
return ["~~", cu(u, e, t), "~~"];
|
|
2880
|
+
case "inlineCode": {
|
|
2881
|
+
let i = e.proseWrap === "preserve" ? r.value : lu(!1, r.value, `
|
|
2882
|
+
`, " "), o = Jn(i, "`"), a = "`".repeat(o || 1), l = i.startsWith("`") || i.endsWith("`") || /^[\n ]/u.test(i) && /[\n ]$/u.test(i) && /[^\n ]/u.test(i) ? " " : "";
|
|
2883
|
+
return [a, l, i, l, a];
|
|
2884
|
+
}
|
|
2885
|
+
case "wikiLink": {
|
|
2886
|
+
let i = "";
|
|
2887
|
+
return e.proseWrap === "preserve" ? i = r.value : i = lu(!1, r.value, /[\t\n]+/gu, " "), ["[[", i, "]]"];
|
|
2888
|
+
}
|
|
2889
|
+
case "link":
|
|
2890
|
+
switch (e.originalText[r.position.start.offset]) {
|
|
2891
|
+
case "<": {
|
|
2892
|
+
let i = "mailto:";
|
|
2893
|
+
return ["<", r.url.startsWith(i) && e.originalText.slice(r.position.start.offset + 1, r.position.start.offset + 1 + i.length) !== i ? r.url.slice(i.length) : r.url, ">"];
|
|
2894
|
+
}
|
|
2895
|
+
case "[":
|
|
2896
|
+
return ["[", cu(u, e, t), "](", ke(r.url, ")"), de(r.title, e), ")"];
|
|
2897
|
+
default:
|
|
2898
|
+
return e.originalText.slice(r.position.start.offset, r.position.end.offset);
|
|
2899
|
+
}
|
|
2900
|
+
case "image":
|
|
2901
|
+
return [""), de(r.title, e), ")"];
|
|
2902
|
+
case "blockquote":
|
|
2903
|
+
return ["> ", Nu("> ", cu(u, e, t))];
|
|
2904
|
+
case "heading":
|
|
2905
|
+
return ["#".repeat(r.depth) + " ", cu(u, e, t)];
|
|
2906
|
+
case "code": {
|
|
2907
|
+
if (r.isIndented) {
|
|
2908
|
+
let a = " ".repeat(4);
|
|
2909
|
+
return Nu(a, [a, ju(r.value, iu)]);
|
|
2910
|
+
}
|
|
2911
|
+
let i = e.__inJsTemplate ? "~" : "`", o = i.repeat(Math.max(3, Pt(r.value, i) + 1));
|
|
2912
|
+
return [o, r.lang || "", r.meta ? " " + r.meta : "", iu, ju(Gt(r, e.originalText), iu), iu, o];
|
|
2913
|
+
}
|
|
2914
|
+
case "html": {
|
|
2915
|
+
let { parent: i, isLast: o } = u, a = i.type === "root" && o ? r.value.trimEnd() : r.value, l = /^<!--.*-->$/su.test(a);
|
|
2916
|
+
return ju(a, l ? iu : Ce(Le));
|
|
2917
|
+
}
|
|
2918
|
+
case "list": {
|
|
2919
|
+
let i = ft(r, u.parent), o = wi(r, e);
|
|
2920
|
+
return cu(u, e, t, { processor(a) {
|
|
2921
|
+
let l = s(), D = a.node;
|
|
2922
|
+
if (D.children.length === 2 && D.children[1].type === "html" && D.children[0].position.start.column !== D.children[1].position.start.column) return [l, ct(a, e, t, l)];
|
|
2923
|
+
return [l, Nu(" ".repeat(l.length), ct(a, e, t, l))];
|
|
2924
|
+
function s() {
|
|
2925
|
+
let c = r.ordered ? (a.isFirst ? r.start : o ? 1 : r.start + a.index) + (i % 2 === 0 ? ". " : ") ") : i % 2 === 0 ? "- " : "* ";
|
|
2926
|
+
return (r.isAligned || r.hasIndentedCodeblock) && r.ordered ? Aa(c, e) : c;
|
|
2927
|
+
}
|
|
2928
|
+
} });
|
|
2929
|
+
}
|
|
2930
|
+
case "thematicBreak": {
|
|
2931
|
+
let { ancestors: i } = u, o = i.findIndex((a) => a.type === "list");
|
|
2932
|
+
return o === -1 ? "---" : ft(i[o], i[o + 1]) % 2 === 0 ? "***" : "---";
|
|
2933
|
+
}
|
|
2934
|
+
case "linkReference":
|
|
2935
|
+
return ["[", cu(u, e, t), "]", r.referenceType === "full" ? qe(r) : r.referenceType === "collapsed" ? "[]" : ""];
|
|
2936
|
+
case "imageReference":
|
|
2937
|
+
return r.referenceType === "full" ? ["![", r.alt || "", "]", qe(r)] : ["![", r.alt, "]", r.referenceType === "collapsed" ? "[]" : ""];
|
|
2938
|
+
case "definition": {
|
|
2939
|
+
let i = e.proseWrap === "always" ? Rt : " ";
|
|
2940
|
+
return he([qe(r), ":", Se([i, ke(r.url), r.title === null ? "" : [i, de(r.title, e, !1)]])]);
|
|
2941
|
+
}
|
|
2942
|
+
case "footnote":
|
|
2943
|
+
return ["[^", cu(u, e, t), "]"];
|
|
2944
|
+
case "footnoteReference":
|
|
2945
|
+
return Ft(r);
|
|
2946
|
+
case "footnoteDefinition": {
|
|
2947
|
+
let i = r.children.length === 1 && r.children[0].type === "paragraph" && (e.proseWrap === "never" || e.proseWrap === "preserve" && r.children[0].position.start.line === r.children[0].position.end.line);
|
|
2948
|
+
return [Ft(r), ": ", i ? cu(u, e, t) : he([Nu(" ".repeat(4), cu(u, e, t, { processor: ({ isFirst: o }) => o ? he([Nt, t()]) : t() }))])];
|
|
2949
|
+
}
|
|
2950
|
+
case "table":
|
|
2951
|
+
return Ji(u, e, t);
|
|
2952
|
+
case "tableCell":
|
|
2953
|
+
return cu(u, e, t);
|
|
2954
|
+
case "break":
|
|
2955
|
+
return /\s/u.test(e.originalText[r.position.start.offset]) ? [" ", Ce(Le)] : ["\\", iu];
|
|
2956
|
+
case "liquidNode":
|
|
2957
|
+
return ju(r.value, iu);
|
|
2958
|
+
case "import":
|
|
2959
|
+
case "export":
|
|
2960
|
+
case "jsx":
|
|
2961
|
+
return r.value;
|
|
2962
|
+
case "esComment":
|
|
2963
|
+
return ["{/* ", r.value, " */}"];
|
|
2964
|
+
case "math":
|
|
2965
|
+
return ["$$", iu, r.value ? [ju(r.value, iu), iu] : "", "$$"];
|
|
2966
|
+
case "inlineMath":
|
|
2967
|
+
return e.originalText.slice(ge(r), me(r));
|
|
2968
|
+
default:
|
|
2969
|
+
throw new Zn(r, "Markdown");
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
function ct(u, e, t, n) {
|
|
2973
|
+
let { node: r } = u, i = r.checked === null ? "" : r.checked ? "[x] " : "[ ] ";
|
|
2974
|
+
return [i, cu(u, e, t, { processor({ node: o, isFirst: a }) {
|
|
2975
|
+
if (a && o.type !== "list") return Nu(" ".repeat(i.length), t());
|
|
2976
|
+
let l = " ".repeat(ba(e.tabWidth - n.length, 0, 3));
|
|
2977
|
+
return [l, Nu(l, t())];
|
|
2978
|
+
} })];
|
|
2979
|
+
}
|
|
2980
|
+
function Aa(u, e) {
|
|
2981
|
+
let t = n();
|
|
2982
|
+
return u + " ".repeat(t >= 4 ? 0 : t);
|
|
2983
|
+
function n() {
|
|
2984
|
+
let r = u.length % e.tabWidth;
|
|
2985
|
+
return r === 0 ? 0 : e.tabWidth - r;
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
function ft(u, e) {
|
|
2989
|
+
return ga(u, e, (t) => t.ordered === u.ordered);
|
|
2990
|
+
}
|
|
2991
|
+
function ga(u, e, t) {
|
|
2992
|
+
let n = -1;
|
|
2993
|
+
for (let r of e.children) if (r.type === u.type && t(r) ? n++ : n = -1, r === u) return n;
|
|
2994
|
+
}
|
|
2995
|
+
function ma(u, e, t) {
|
|
2996
|
+
let n = [], r = null, { children: i } = u.node;
|
|
2997
|
+
for (let [o, a] of i.entries()) switch (Ge(a)) {
|
|
2998
|
+
case "start":
|
|
2999
|
+
r === null && (r = { index: o, offset: a.position.end.offset });
|
|
3000
|
+
break;
|
|
3001
|
+
case "end":
|
|
3002
|
+
r !== null && (n.push({ start: r, end: { index: o, offset: a.position.start.offset } }), r = null);
|
|
3003
|
+
break;
|
|
3004
|
+
}
|
|
3005
|
+
return cu(u, e, t, { processor({ index: o }) {
|
|
3006
|
+
if (n.length > 0) {
|
|
3007
|
+
let a = n[0];
|
|
3008
|
+
if (o === a.start.index) return [pt(i[a.start.index]), e.originalText.slice(a.start.offset, a.end.offset), pt(i[a.end.index])];
|
|
3009
|
+
if (a.start.index < o && o < a.end.index) return !1;
|
|
3010
|
+
if (o === a.end.index) return n.shift(), !1;
|
|
3011
|
+
}
|
|
3012
|
+
return t();
|
|
3013
|
+
} });
|
|
3014
|
+
}
|
|
3015
|
+
function cu(u, e, t, n = {}) {
|
|
3016
|
+
let { processor: r = t } = n, i = [];
|
|
3017
|
+
return u.each(() => {
|
|
3018
|
+
let o = r(u);
|
|
3019
|
+
o !== !1 && (i.length > 0 && Ea(u) && (i.push(iu), (va(u, e) || dt(u)) && i.push(iu), dt(u) && i.push(iu)), i.push(o));
|
|
3020
|
+
}, "children"), i;
|
|
3021
|
+
}
|
|
3022
|
+
function pt(u) {
|
|
3023
|
+
if (u.type === "html") return u.value;
|
|
3024
|
+
if (u.type === "paragraph" && Array.isArray(u.children) && u.children.length === 1 && u.children[0].type === "esComment") return ["{/* ", u.children[0].value, " */}"];
|
|
3025
|
+
}
|
|
3026
|
+
function Ge(u) {
|
|
3027
|
+
let e;
|
|
3028
|
+
if (u.type === "html") e = u.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);
|
|
3029
|
+
else {
|
|
3030
|
+
let t;
|
|
3031
|
+
u.type === "esComment" ? t = u : u.type === "paragraph" && u.children.length === 1 && u.children[0].type === "esComment" && (t = u.children[0]), t && (e = t.value.match(/^prettier-ignore(?:-(start|end))?$/u));
|
|
3032
|
+
}
|
|
3033
|
+
return e ? e[1] || "next" : !1;
|
|
3034
|
+
}
|
|
3035
|
+
function Ea({ node: u, parent: e }) {
|
|
3036
|
+
let t = Mt.has(u.type), n = u.type === "html" && Ut.has(e.type);
|
|
3037
|
+
return !t && !n;
|
|
3038
|
+
}
|
|
3039
|
+
function ht(u, e) {
|
|
3040
|
+
return u.type === "listItem" && (u.spread || e.originalText.charAt(u.position.end.offset - 1) === `
|
|
3041
|
+
`);
|
|
3042
|
+
}
|
|
3043
|
+
function va({ node: u, previous: e, parent: t }, n) {
|
|
3044
|
+
if (ht(e, n) || u.type === "list" && t.type === "listItem" && e.type === "code") return !0;
|
|
3045
|
+
let r = e.type === u.type && Fa.has(u.type), i = t.type === "listItem" && (u.type === "list" || !ht(t, n)), o = Ge(e) === "next", a = u.type === "html" && e.type === "html" && e.position.end.line + 1 === u.position.start.line, l = u.type === "html" && t.type === "listItem" && e.type === "paragraph" && e.position.end.line + 1 === u.position.start.line;
|
|
3046
|
+
return !(r || i || o || a || l);
|
|
3047
|
+
}
|
|
3048
|
+
function dt({ node: u, previous: e }) {
|
|
3049
|
+
let t = e.type === "list", n = u.type === "code" && u.isIndented;
|
|
3050
|
+
return t && n;
|
|
3051
|
+
}
|
|
3052
|
+
function xa(u) {
|
|
3053
|
+
let e = u.findAncestor((t) => t.type === "linkReference" || t.type === "imageReference");
|
|
3054
|
+
return e && (e.type !== "linkReference" || e.referenceType !== "full");
|
|
3055
|
+
}
|
|
3056
|
+
var Ba = (u, e) => {
|
|
3057
|
+
for (let t of e) u = lu(!1, u, t, encodeURIComponent(t));
|
|
3058
|
+
return u;
|
|
3059
|
+
};
|
|
3060
|
+
function ke(u, e = []) {
|
|
3061
|
+
let t = [" ", ...Array.isArray(e) ? e : [e]];
|
|
3062
|
+
return new RegExp(t.map((n) => xe(n)).join("|"), "u").test(u) ? `<${Ba(u, "<>")}>` : u;
|
|
3063
|
+
}
|
|
3064
|
+
function de(u, e, t = !0) {
|
|
3065
|
+
if (!u) return "";
|
|
3066
|
+
if (t) return " " + de(u, e, !1);
|
|
3067
|
+
if (u = lu(!1, u, /\\(?=["')])/gu, ""), u.includes('"') && u.includes("'") && !u.includes(")")) return `(${u})`;
|
|
3068
|
+
let n = Kn(u, e.singleQuote);
|
|
3069
|
+
return u = lu(!1, u, "\\", "\\\\"), u = lu(!1, u, n, `\\${n}`), `${n}${u}${n}`;
|
|
3070
|
+
}
|
|
3071
|
+
function ba(u, e, t) {
|
|
3072
|
+
return Math.max(e, Math.min(u, t));
|
|
3073
|
+
}
|
|
3074
|
+
function ya(u) {
|
|
3075
|
+
return u.index > 0 && Ge(u.previous) === "next";
|
|
3076
|
+
}
|
|
3077
|
+
function qe(u) {
|
|
3078
|
+
return `[${(0, On.default)(u.label)}]`;
|
|
3079
|
+
}
|
|
3080
|
+
function Ft(u) {
|
|
3081
|
+
return `[^${u.label}]`;
|
|
3082
|
+
}
|
|
3083
|
+
var wa = { preprocess: Da, print: Ca, embed: qi, massageAstNode: Di, hasPrettierIgnore: ya, insertPragma: li, getVisitorKeys: Pi }, ka = wa, qa = [{ name: "Markdown", type: "prose", extensions: [".md", ".livemd", ".markdown", ".mdown", ".mdwn", ".mkd", ".mkdn", ".mkdown", ".ronn", ".scd", ".workbook"], tmScope: "text.md", aceMode: "markdown", aliases: ["md", "pandoc"], codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", filenames: ["contents.lr", "README"], wrap: !0, parsers: ["markdown"], vscodeLanguageIds: ["markdown"], linguistLanguageId: 222 }, { name: "MDX", type: "prose", extensions: [".mdx"], tmScope: "text.md", aceMode: "markdown", aliases: ["md", "pandoc"], codemirrorMode: "gfm", codemirrorMimeType: "text/x-gfm", filenames: [], wrap: !0, parsers: ["mdx"], vscodeLanguageIds: ["mdx"], linguistLanguageId: 222 }], Ct = { singleQuote: { category: "Common", type: "boolean", default: !1, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] } }, Sa = { proseWrap: Ct.proseWrap, singleQuote: Ct.singleQuote }, La = Sa, Ht = {};
|
|
3084
|
+
Et(Ht, { markdown: () => gt, mdx: () => Xa, remark: () => gt });
|
|
3085
|
+
var Ta = Mu(or()), Oa = Mu(Dr()), Ra = Mu(Cn()), Na = Mu(Sn()), Ia = /^import\s/u, Pa = /^export\s/u, ja = String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`, $a = /<!---->|<!---?[^>-](?:-?[^-])*-->/u, za = /^\{\s*\/\*(.*)\*\/\s*\}/u, Ma = `
|
|
3086
|
+
|
|
3087
|
+
`, _t = (u) => Ia.test(u), Ne = (u) => Pa.test(u), Jt = (u, e) => {
|
|
3088
|
+
let t = e.indexOf(Ma), n = e.slice(0, t);
|
|
3089
|
+
if (Ne(n) || _t(n)) return u(n)({ type: Ne(n) ? "export" : "import", value: n });
|
|
3090
|
+
}, Yt = (u, e) => {
|
|
3091
|
+
let t = za.exec(e);
|
|
3092
|
+
if (t) return u(t[0])({ type: "esComment", value: t[1].trim() });
|
|
3093
|
+
};
|
|
3094
|
+
Jt.locator = (u) => Ne(u) || _t(u) ? -1 : 1;
|
|
3095
|
+
Yt.locator = (u, e) => u.indexOf("{", e);
|
|
3096
|
+
var Ua = function() {
|
|
3097
|
+
let { Parser: u } = this, { blockTokenizers: e, blockMethods: t, inlineTokenizers: n, inlineMethods: r } = u.prototype;
|
|
3098
|
+
e.esSyntax = Jt, n.esComment = Yt, t.splice(t.indexOf("paragraph"), 0, "esSyntax"), r.splice(r.indexOf("text"), 0, "esComment");
|
|
3099
|
+
}, Va = function() {
|
|
3100
|
+
let u = this.Parser.prototype;
|
|
3101
|
+
u.blockMethods = ["frontMatter", ...u.blockMethods], u.blockTokenizers.frontMatter = e;
|
|
3102
|
+
function e(t, n) {
|
|
3103
|
+
let r = be(n);
|
|
3104
|
+
if (r.frontMatter) return t(r.frontMatter.raw)(r.frontMatter);
|
|
3105
|
+
}
|
|
3106
|
+
e.onlyAtStart = !0;
|
|
3107
|
+
}, Ga = Va;
|
|
3108
|
+
function Wa() {
|
|
3109
|
+
return (u) => Ju(u, (e, t, [n]) => e.type !== "html" || $a.test(e.value) || Ut.has(n.type) ? e : { ...e, type: "jsx" });
|
|
3110
|
+
}
|
|
3111
|
+
var Ha = Wa, _a = function() {
|
|
3112
|
+
let u = this.Parser.prototype, e = u.inlineMethods;
|
|
3113
|
+
e.splice(e.indexOf("text"), 0, "liquid"), u.inlineTokenizers.liquid = t;
|
|
3114
|
+
function t(n, r) {
|
|
3115
|
+
let i = r.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);
|
|
3116
|
+
if (i) return n(i[0])({ type: "liquidNode", value: i[0] });
|
|
3117
|
+
}
|
|
3118
|
+
t.locator = function(n, r) {
|
|
3119
|
+
return n.indexOf("{", r);
|
|
3120
|
+
};
|
|
3121
|
+
}, Ja = _a, Ya = function() {
|
|
3122
|
+
let u = "wikiLink", e = /^\[\[(?<linkContents>.+?)\]\]/su, t = this.Parser.prototype, n = t.inlineMethods;
|
|
3123
|
+
n.splice(n.indexOf("link"), 0, u), t.inlineTokenizers.wikiLink = r;
|
|
3124
|
+
function r(i, o) {
|
|
3125
|
+
let a = e.exec(o);
|
|
3126
|
+
if (a) {
|
|
3127
|
+
let l = a.groups.linkContents.trim();
|
|
3128
|
+
return i(a[0])({ type: u, value: l });
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
r.locator = function(i, o) {
|
|
3132
|
+
return i.indexOf("[", o);
|
|
3133
|
+
};
|
|
3134
|
+
}, Ka = Ya;
|
|
3135
|
+
function Kt({ isMDX: u }) {
|
|
3136
|
+
return (e) => {
|
|
3137
|
+
let t = (0, Na.default)().use(Ra.default, { commonmark: !0, ...u && { blocks: [ja] } }).use(Ta.default).use(Ga).use(Oa.default).use(u ? Ua : At).use(Ja).use(u ? Ha : At).use(Ka);
|
|
3138
|
+
return t.run(t.parse(e));
|
|
3139
|
+
};
|
|
3140
|
+
}
|
|
3141
|
+
function At() {
|
|
3142
|
+
}
|
|
3143
|
+
var Xt = { astFormat: "mdast", hasPragma: ai, hasIgnorePragma: oi, locStart: ge, locEnd: me }, gt = { ...Xt, parse: Kt({ isMDX: !1 }) }, Xa = { ...Xt, parse: Kt({ isMDX: !0 }) }, Za = { mdast: ka }, Qa = Tt;
|
|
3144
|
+
export {
|
|
3145
|
+
Qa as default,
|
|
3146
|
+
qa as languages,
|
|
3147
|
+
La as options,
|
|
3148
|
+
Ht as parsers,
|
|
3149
|
+
Za as printers
|
|
3150
|
+
};
|