@covalent/components 8.15.0-beta.4 → 8.15.0-beta.6
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/cell/cell.d.ts +1 -0
- package/cell/cell.d.ts.map +1 -1
- package/cell.js +20 -16
- package/cell.mjs +59 -47
- package/code-editor/code-editor.d.ts +28 -6
- package/code-editor/code-editor.d.ts.map +1 -1
- package/code-editor-3a09cbf1.js +732 -0
- package/{code-editor-49ed0cc2.mjs → code-editor-ce557bd5.mjs} +14367 -47248
- package/code-editor.js +1 -1
- package/code-editor.mjs +1 -1
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +1 -1
- package/{html-2b6bfaf8.js → html-4fffc46e.js} +1 -1
- package/{html-8da5188a.mjs → html-783f1e7c.mjs} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{javascript-f014ee80.mjs → javascript-4d09cd3c.mjs} +2 -2
- package/{javascript-4d528a27.js → javascript-90bb18e6.js} +1 -1
- package/notebook/notebook.d.ts +51 -19
- package/notebook/notebook.d.ts.map +1 -1
- package/notebook.js +61 -33
- package/notebook.mjs +890 -779
- package/package.json +1 -1
- package/{python-5e3b4914.mjs → python-562f8e9b.mjs} +1 -1
- package/{python-1c6f39ab.js → python-af3aad7d.js} +1 -1
- package/select.js +1 -1
- package/select.mjs +1 -1
- package/style.css +1 -1
- package/{typescript-6490ca2e.js → typescript-76d039b3.js} +1 -1
- package/{typescript-ba89d39f.mjs → typescript-a2a5d6b2.mjs} +1 -1
- package/{xml-2a05d02d.mjs → xml-89571455.mjs} +1 -1
- package/{xml-ed522294.js → xml-e66929d0.js} +1 -1
- package/{yaml-e520529c.js → yaml-11a91e71.js} +1 -1
- package/{yaml-b1226770.mjs → yaml-4eccd122.mjs} +1 -1
- package/abap-1354785f.mjs +0 -1314
- package/abap-c7187853.js +0 -6
- package/apex-279d4f27.mjs +0 -315
- package/apex-fc5f2b3e.js +0 -6
- package/azcli-ba812c55.mjs +0 -74
- package/azcli-eb191d91.js +0 -6
- package/bat-34d38df4.js +0 -6
- package/bat-4d77495d.mjs +0 -95
- package/bicep-7b240724.mjs +0 -108
- package/bicep-a8264e77.js +0 -7
- package/cameligo-5d2daeb8.mjs +0 -168
- package/cameligo-6e71c8f3.js +0 -6
- package/clojure-355adae1.js +0 -6
- package/clojure-b7ea12a3.mjs +0 -754
- package/code-editor-7e7e4197.js +0 -1200
- package/coffee-1a8cfbf4.mjs +0 -228
- package/coffee-fd8a7421.js +0 -6
- package/csp-54919de0.js +0 -6
- package/csp-96407af0.mjs +0 -57
- package/cssMode-117dc70a.mjs +0 -1450
- package/cssMode-9f32fcf1.js +0 -9
- package/cypher-11e5a4b6.mjs +0 -262
- package/cypher-cc849b67.js +0 -6
- package/dockerfile-2f8684f7.js +0 -6
- package/dockerfile-8739cff7.mjs +0 -132
- package/ecl-68a6f20f.js +0 -6
- package/ecl-a20c5155.mjs +0 -454
- package/elixir-32cc668e.js +0 -6
- package/elixir-8b028584.mjs +0 -467
- package/flow9-0dea2e73.mjs +0 -141
- package/flow9-1d2ab5f6.js +0 -6
- package/freemarker2-22c962f2.js +0 -8
- package/freemarker2-a368c7af.mjs +0 -648
- package/fsharp-49a70fad.mjs +0 -210
- package/fsharp-a22f5013.js +0 -6
- package/graphql-1a14eb34.js +0 -6
- package/graphql-51a577e5.mjs +0 -141
- package/handlebars-8cfb10a2.mjs +0 -396
- package/handlebars-a97e1ef4.js +0 -6
- package/hcl-0833427e.js +0 -6
- package/hcl-56b85754.mjs +0 -177
- package/htmlMode-789c7165.mjs +0 -1460
- package/htmlMode-b3001f86.js +0 -9
- package/ini-1d58d82f.mjs +0 -68
- package/ini-34a929df.js +0 -6
- package/jsonMode-071e521b.mjs +0 -1871
- package/jsonMode-1db13325.js +0 -11
- package/julia-7db1fb9a.js +0 -6
- package/julia-a0caf483.mjs +0 -496
- package/less-5219eae1.js +0 -7
- package/less-718543b4.mjs +0 -168
- package/lexon-5e6e7a44.mjs +0 -151
- package/lexon-dfd683ab.js +0 -6
- package/liquid-7723b12b.js +0 -6
- package/liquid-f8017dc6.mjs +0 -243
- package/m3-87473279.js +0 -6
- package/m3-aadaf771.mjs +0 -210
- package/mips-161e49ce.mjs +0 -194
- package/mips-82a1ce59.js +0 -6
- package/msdax-b3b5017e.js +0 -6
- package/msdax-f65cb1e6.mjs +0 -377
- package/mysql-24549dd1.mjs +0 -875
- package/mysql-69f1c589.js +0 -6
- package/objective-c-c8319b65.js +0 -6
- package/objective-c-e129a5ca.mjs +0 -188
- package/pascal-4ccdf5ce.mjs +0 -245
- package/pascal-e5207a08.js +0 -6
- package/pascaligo-8eb79945.js +0 -6
- package/pascaligo-a9603dcd.mjs +0 -158
- package/perl-ba1fb97a.mjs +0 -599
- package/perl-e8264c91.js +0 -6
- package/pgsql-89978310.mjs +0 -843
- package/pgsql-c8ba6faf.js +0 -6
- package/pla-96c2695d.mjs +0 -131
- package/pla-c85b0e59.js +0 -6
- package/postiats-3c2c478e.js +0 -6
- package/postiats-7b52ebac.mjs +0 -544
- package/powerquery-8954ec26.mjs +0 -890
- package/powerquery-b0d5f9e4.js +0 -6
- package/powershell-cdb88123.js +0 -6
- package/powershell-f00d0274.mjs +0 -233
- package/protobuf-3eb85f80.mjs +0 -422
- package/protobuf-a3b2ca94.js +0 -7
- package/pug-6fab415a.mjs +0 -393
- package/pug-c5df821d.js +0 -6
- package/qsharp-4792f872.mjs +0 -282
- package/qsharp-7eddb7b9.js +0 -6
- package/razor-2ce3ee94.mjs +0 -517
- package/razor-bc0cba40.js +0 -6
- package/redis-0d0a89dd.js +0 -6
- package/redis-276b8288.mjs +0 -298
- package/redshift-520a7359.mjs +0 -806
- package/redshift-b6bdaeca.js +0 -6
- package/restructuredtext-4676a3fc.mjs +0 -162
- package/restructuredtext-c83d56ed.js +0 -6
- package/ruby-764137cd.mjs +0 -444
- package/ruby-96103dcf.js +0 -6
- package/sb-8c22f14c.mjs +0 -110
- package/sb-e2701210.js +0 -6
- package/scheme-b9cbf7cb.js +0 -6
- package/scheme-e6a52cb0.mjs +0 -114
- package/scss-45104c77.mjs +0 -244
- package/scss-d0f4f80e.js +0 -8
- package/solidity-d4979008.mjs +0 -1351
- package/solidity-f1319e8a.js +0 -6
- package/sophia-21995caf.mjs +0 -190
- package/sophia-a1ce907f.js +0 -6
- package/sparql-5088743c.mjs +0 -193
- package/sparql-98d9e092.js +0 -6
- package/st-122893c4.js +0 -6
- package/st-fa9ab362.mjs +0 -414
- package/systemverilog-8139818b.js +0 -6
- package/systemverilog-a4f858ed.mjs +0 -556
- package/tcl-8adf937f.mjs +0 -232
- package/tcl-e49fed0b.js +0 -6
- package/tsMode-a8318df7.mjs +0 -794
- package/tsMode-fc73b7ce.js +0 -16
- package/twig-404eb73e.mjs +0 -323
- package/twig-4bfb5b04.js +0 -6
- package/vb-8dfd000c.js +0 -6
- package/vb-e21e8153.mjs +0 -364
package/notebook.mjs
CHANGED
@@ -1,14 +1,19 @@
|
|
1
|
-
import { i as
|
2
|
-
import { n as
|
1
|
+
import { i as F0, r as v0, s as w0, x as R, e as S0 } from "./query-assigned-elements-4a39219d.mjs";
|
2
|
+
import { n as su } from "./property-9b6ea53b.mjs";
|
3
3
|
import "./cell.mjs";
|
4
4
|
import "./icon.mjs";
|
5
5
|
import "./icon-button.mjs";
|
6
6
|
import "./button.mjs";
|
7
|
+
import "./select.mjs";
|
8
|
+
import "./list-item.mjs";
|
7
9
|
import "./class-map-6e504a9a.mjs";
|
8
10
|
import "./directive-daf4e9b6.mjs";
|
9
|
-
import "./code-editor-
|
11
|
+
import "./code-editor-ce557bd5.mjs";
|
10
12
|
import "./async-directive-99a01ec7.mjs";
|
11
13
|
import "./directive-helpers-e3ea6592.mjs";
|
14
|
+
import "./code-snippet.mjs";
|
15
|
+
import "./query-assigned-nodes-df691e78.mjs";
|
16
|
+
import "./_commonjsHelpers-2f131a27.mjs";
|
12
17
|
import "./typography.mjs";
|
13
18
|
import "./tslib.es6-c4b0f3b1.mjs";
|
14
19
|
import "./ripple-handlers-8883e893.mjs";
|
@@ -21,12 +26,19 @@ import "./aria-property-fa2717fe.mjs";
|
|
21
26
|
import "./event-options-78d6cf94.mjs";
|
22
27
|
import "./if-defined-c367f208.mjs";
|
23
28
|
import "./mwc-icon-5227aec3.mjs";
|
24
|
-
|
29
|
+
import "./mwc-line-ripple-directive-aabd8778.mjs";
|
30
|
+
import "./mwc-menu-base-04586160.mjs";
|
31
|
+
import "./mwc-list-base-402e1d8e.mjs";
|
32
|
+
import "./mwc-list-item-base-3c6a3bfb.mjs";
|
33
|
+
import "./observer-be7b92e2.mjs";
|
34
|
+
import "./form-element-abadd335.mjs";
|
35
|
+
import "./list-item-e628f363.mjs";
|
36
|
+
const Mu = {};
|
25
37
|
function T0(u) {
|
26
|
-
let e =
|
38
|
+
let e = Mu[u];
|
27
39
|
if (e)
|
28
40
|
return e;
|
29
|
-
e =
|
41
|
+
e = Mu[u] = [];
|
30
42
|
for (let t = 0; t < 128; t++) {
|
31
43
|
const n = String.fromCharCode(t);
|
32
44
|
e.push(n);
|
@@ -37,37 +49,37 @@ function T0(u) {
|
|
37
49
|
}
|
38
50
|
return e;
|
39
51
|
}
|
40
|
-
function
|
41
|
-
typeof e != "string" && (e =
|
52
|
+
function V(u, e) {
|
53
|
+
typeof e != "string" && (e = V.defaultChars);
|
42
54
|
const t = T0(e);
|
43
55
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
44
56
|
let r = "";
|
45
|
-
for (let c = 0,
|
46
|
-
const
|
47
|
-
if (
|
48
|
-
r += t[
|
57
|
+
for (let c = 0, i = n.length; c < i; c += 3) {
|
58
|
+
const o = parseInt(n.slice(c + 1, c + 3), 16);
|
59
|
+
if (o < 128) {
|
60
|
+
r += t[o];
|
49
61
|
continue;
|
50
62
|
}
|
51
|
-
if ((
|
63
|
+
if ((o & 224) === 192 && c + 3 < i) {
|
52
64
|
const a = parseInt(n.slice(c + 4, c + 6), 16);
|
53
65
|
if ((a & 192) === 128) {
|
54
|
-
const s =
|
66
|
+
const s = o << 6 & 1984 | a & 63;
|
55
67
|
s < 128 ? r += "��" : r += String.fromCharCode(s), c += 3;
|
56
68
|
continue;
|
57
69
|
}
|
58
70
|
}
|
59
|
-
if ((
|
71
|
+
if ((o & 240) === 224 && c + 6 < i) {
|
60
72
|
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16);
|
61
73
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
62
|
-
const l =
|
74
|
+
const l = o << 12 & 61440 | a << 6 & 4032 | s & 63;
|
63
75
|
l < 2048 || l >= 55296 && l <= 57343 ? r += "���" : r += String.fromCharCode(l), c += 6;
|
64
76
|
continue;
|
65
77
|
}
|
66
78
|
}
|
67
|
-
if ((
|
79
|
+
if ((o & 248) === 240 && c + 9 < i) {
|
68
80
|
const a = parseInt(n.slice(c + 4, c + 6), 16), s = parseInt(n.slice(c + 7, c + 9), 16), l = parseInt(n.slice(c + 10, c + 12), 16);
|
69
81
|
if ((a & 192) === 128 && (s & 192) === 128 && (l & 192) === 128) {
|
70
|
-
let d =
|
82
|
+
let d = o << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | l & 63;
|
71
83
|
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), c += 9;
|
72
84
|
continue;
|
73
85
|
}
|
@@ -77,14 +89,14 @@ function H(u, e) {
|
|
77
89
|
return r;
|
78
90
|
});
|
79
91
|
}
|
80
|
-
|
81
|
-
|
82
|
-
const
|
92
|
+
V.defaultChars = ";/?:@&=+$,#";
|
93
|
+
V.componentChars = "";
|
94
|
+
const qu = {};
|
83
95
|
function I0(u) {
|
84
|
-
let e =
|
96
|
+
let e = qu[u];
|
85
97
|
if (e)
|
86
98
|
return e;
|
87
|
-
e =
|
99
|
+
e = qu[u] = [];
|
88
100
|
for (let t = 0; t < 128; t++) {
|
89
101
|
const n = String.fromCharCode(t);
|
90
102
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
@@ -93,22 +105,22 @@ function I0(u) {
|
|
93
105
|
e[u.charCodeAt(t)] = u[t];
|
94
106
|
return e;
|
95
107
|
}
|
96
|
-
function
|
97
|
-
typeof e != "string" && (t = e, e =
|
108
|
+
function uu(u, e, t) {
|
109
|
+
typeof e != "string" && (t = e, e = uu.defaultChars), typeof t > "u" && (t = !0);
|
98
110
|
const n = I0(e);
|
99
111
|
let r = "";
|
100
|
-
for (let c = 0,
|
101
|
-
const
|
102
|
-
if (t &&
|
112
|
+
for (let c = 0, i = u.length; c < i; c++) {
|
113
|
+
const o = u.charCodeAt(c);
|
114
|
+
if (t && o === 37 && c + 2 < i && /^[0-9a-f]{2}$/i.test(u.slice(c + 1, c + 3))) {
|
103
115
|
r += u.slice(c, c + 3), c += 2;
|
104
116
|
continue;
|
105
117
|
}
|
106
|
-
if (
|
107
|
-
r += n[
|
118
|
+
if (o < 128) {
|
119
|
+
r += n[o];
|
108
120
|
continue;
|
109
121
|
}
|
110
|
-
if (
|
111
|
-
if (
|
122
|
+
if (o >= 55296 && o <= 57343) {
|
123
|
+
if (o >= 55296 && o <= 56319 && c + 1 < i) {
|
112
124
|
const a = u.charCodeAt(c + 1);
|
113
125
|
if (a >= 56320 && a <= 57343) {
|
114
126
|
r += encodeURIComponent(u[c] + u[c + 1]), c++;
|
@@ -122,20 +134,20 @@ function K(u, e, t) {
|
|
122
134
|
}
|
123
135
|
return r;
|
124
136
|
}
|
125
|
-
|
126
|
-
|
127
|
-
function
|
137
|
+
uu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
138
|
+
uu.componentChars = "-_.!~*'()";
|
139
|
+
function Au(u) {
|
128
140
|
let e = "";
|
129
141
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
130
142
|
}
|
131
|
-
function
|
143
|
+
function iu() {
|
132
144
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
133
145
|
}
|
134
146
|
const B0 = /^([a-z0-9.+-]+:)/i, z0 = /:[0-9]*$/, M0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, q0 = ["<", ">", '"', "`", " ", "\r", `
|
135
|
-
`, " "],
|
147
|
+
`, " "], R0 = ["{", "}", "|", "\\", "^", "`"].concat(q0), L0 = ["'"].concat(R0), Ru = ["%", "/", "?", ";", "#"].concat(L0), Lu = ["/", "?", "#"], P0 = 255, Pu = /^[+a-z0-9A-Z_-]{0,63}$/, O0 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ou = {
|
136
148
|
javascript: !0,
|
137
149
|
"javascript:": !0
|
138
|
-
},
|
150
|
+
}, $u = {
|
139
151
|
http: !0,
|
140
152
|
https: !0,
|
141
153
|
ftp: !0,
|
@@ -147,42 +159,42 @@ const B0 = /^([a-z0-9.+-]+:)/i, z0 = /:[0-9]*$/, M0 = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
147
159
|
"gopher:": !0,
|
148
160
|
"file:": !0
|
149
161
|
};
|
150
|
-
function
|
151
|
-
if (u && u instanceof
|
162
|
+
function Fu(u, e) {
|
163
|
+
if (u && u instanceof iu)
|
152
164
|
return u;
|
153
|
-
const t = new
|
165
|
+
const t = new iu();
|
154
166
|
return t.parse(u, e), t;
|
155
167
|
}
|
156
|
-
|
168
|
+
iu.prototype.parse = function(u, e) {
|
157
169
|
let t, n, r, c = u;
|
158
170
|
if (c = c.trim(), !e && u.split("#").length === 1) {
|
159
171
|
const s = M0.exec(c);
|
160
172
|
if (s)
|
161
173
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
162
174
|
}
|
163
|
-
let
|
164
|
-
if (
|
175
|
+
let i = B0.exec(c);
|
176
|
+
if (i && (i = i[0], t = i.toLowerCase(), this.protocol = i, c = c.substr(i.length)), (e || i || c.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = c.substr(0, 2) === "//", r && !(i && Ou[i]) && (c = c.substr(2), this.slashes = !0)), !Ou[i] && (r || i && !$u[i])) {
|
165
177
|
let s = -1;
|
166
178
|
for (let f = 0; f < Lu.length; f++)
|
167
179
|
n = c.indexOf(Lu[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
168
180
|
let l, d;
|
169
181
|
s === -1 ? d = c.lastIndexOf("@") : d = c.lastIndexOf("@", s), d !== -1 && (l = c.slice(0, d), c = c.slice(d + 1), this.auth = l), s = -1;
|
170
|
-
for (let f = 0; f <
|
171
|
-
n = c.indexOf(
|
182
|
+
for (let f = 0; f < Ru.length; f++)
|
183
|
+
n = c.indexOf(Ru[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
172
184
|
s === -1 && (s = c.length), c[s - 1] === ":" && s--;
|
173
185
|
const b = c.slice(0, s);
|
174
186
|
c = c.slice(s), this.parseHost(b), this.hostname = this.hostname || "";
|
175
187
|
const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
176
188
|
if (!h) {
|
177
189
|
const f = this.hostname.split(/\./);
|
178
|
-
for (let
|
179
|
-
const D = f[
|
180
|
-
if (D && !D.match(
|
190
|
+
for (let g = 0, k = f.length; g < k; g++) {
|
191
|
+
const D = f[g];
|
192
|
+
if (D && !D.match(Pu)) {
|
181
193
|
let p = "";
|
182
194
|
for (let _ = 0, x = D.length; _ < x; _++)
|
183
195
|
D.charCodeAt(_) > 127 ? p += "x" : p += D[_];
|
184
|
-
if (!p.match(
|
185
|
-
const _ = f.slice(0,
|
196
|
+
if (!p.match(Pu)) {
|
197
|
+
const _ = f.slice(0, g), x = f.slice(g + 1), m = D.match(O0);
|
186
198
|
m && (_.push(m[1]), x.unshift(m[2])), x.length && (c = x.join(".") + c), this.hostname = _.join(".");
|
187
199
|
break;
|
188
200
|
}
|
@@ -191,38 +203,38 @@ nu.prototype.parse = function(u, e) {
|
|
191
203
|
}
|
192
204
|
this.hostname.length > P0 && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
193
205
|
}
|
194
|
-
const
|
195
|
-
|
206
|
+
const o = c.indexOf("#");
|
207
|
+
o !== -1 && (this.hash = c.substr(o), c = c.slice(0, o));
|
196
208
|
const a = c.indexOf("?");
|
197
|
-
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c),
|
209
|
+
return a !== -1 && (this.search = c.substr(a), c = c.slice(0, a)), c && (this.pathname = c), $u[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
198
210
|
};
|
199
|
-
|
211
|
+
iu.prototype.parseHost = function(u) {
|
200
212
|
let e = z0.exec(u);
|
201
213
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
202
214
|
};
|
203
|
-
const
|
215
|
+
const $0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
204
216
|
__proto__: null,
|
205
|
-
decode:
|
206
|
-
encode:
|
207
|
-
format:
|
208
|
-
parse:
|
209
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
217
|
+
decode: V,
|
218
|
+
encode: uu,
|
219
|
+
format: Au,
|
220
|
+
parse: Fu
|
221
|
+
}, Symbol.toStringTag, { value: "Module" })), Ku = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yu = /[\0-\x1F\x7F-\x9F]/, N0 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, vu = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, u0 = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, e0 = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, j0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
210
222
|
__proto__: null,
|
211
|
-
Any:
|
212
|
-
Cc:
|
213
|
-
Cf:
|
214
|
-
P:
|
223
|
+
Any: Ku,
|
224
|
+
Cc: Yu,
|
225
|
+
Cf: N0,
|
226
|
+
P: vu,
|
215
227
|
S: u0,
|
216
228
|
Z: e0
|
217
229
|
}, Symbol.toStringTag, { value: "Module" })), U0 = new Uint16Array(
|
218
230
|
// prettier-ignore
|
219
231
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
220
|
-
),
|
232
|
+
), Z0 = new Uint16Array(
|
221
233
|
// prettier-ignore
|
222
234
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
223
235
|
);
|
224
|
-
var
|
225
|
-
const
|
236
|
+
var pu;
|
237
|
+
const H0 = /* @__PURE__ */ new Map([
|
226
238
|
[0, 65533],
|
227
239
|
// C1 Unicode control character reference replacements
|
228
240
|
[128, 8364],
|
@@ -254,51 +266,51 @@ const Z0 = /* @__PURE__ */ new Map([
|
|
254
266
|
[159, 376]
|
255
267
|
]), V0 = (
|
256
268
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
257
|
-
(
|
269
|
+
(pu = String.fromCodePoint) !== null && pu !== void 0 ? pu : function(u) {
|
258
270
|
let e = "";
|
259
271
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
260
272
|
}
|
261
273
|
);
|
262
274
|
function G0(u) {
|
263
275
|
var e;
|
264
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
276
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = H0.get(u)) !== null && e !== void 0 ? e : u;
|
265
277
|
}
|
266
|
-
var
|
278
|
+
var A;
|
267
279
|
(function(u) {
|
268
280
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
269
|
-
})(
|
281
|
+
})(A || (A = {}));
|
270
282
|
const W0 = 32;
|
271
|
-
var
|
283
|
+
var $;
|
272
284
|
(function(u) {
|
273
285
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
274
|
-
})(
|
275
|
-
function
|
276
|
-
return u >=
|
286
|
+
})($ || ($ = {}));
|
287
|
+
function Du(u) {
|
288
|
+
return u >= A.ZERO && u <= A.NINE;
|
277
289
|
}
|
278
290
|
function J0(u) {
|
279
|
-
return u >=
|
291
|
+
return u >= A.UPPER_A && u <= A.UPPER_F || u >= A.LOWER_A && u <= A.LOWER_F;
|
280
292
|
}
|
281
293
|
function Q0(u) {
|
282
|
-
return u >=
|
294
|
+
return u >= A.UPPER_A && u <= A.UPPER_Z || u >= A.LOWER_A && u <= A.LOWER_Z || Du(u);
|
283
295
|
}
|
284
296
|
function X0(u) {
|
285
|
-
return u ===
|
297
|
+
return u === A.EQUALS || Q0(u);
|
286
298
|
}
|
287
|
-
var
|
299
|
+
var y;
|
288
300
|
(function(u) {
|
289
301
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
290
|
-
})(
|
291
|
-
var
|
302
|
+
})(y || (y = {}));
|
303
|
+
var O;
|
292
304
|
(function(u) {
|
293
305
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
294
|
-
})(
|
295
|
-
class
|
306
|
+
})(O || (O = {}));
|
307
|
+
class K0 {
|
296
308
|
constructor(e, t, n) {
|
297
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
309
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = y.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = O.Strict;
|
298
310
|
}
|
299
311
|
/** Resets the instance to make it reusable. */
|
300
312
|
startEntity(e) {
|
301
|
-
this.decodeMode = e, this.state =
|
313
|
+
this.decodeMode = e, this.state = y.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
302
314
|
}
|
303
315
|
/**
|
304
316
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
@@ -313,15 +325,15 @@ class Y0 {
|
|
313
325
|
*/
|
314
326
|
write(e, t) {
|
315
327
|
switch (this.state) {
|
316
|
-
case
|
317
|
-
return e.charCodeAt(t) ===
|
318
|
-
case
|
328
|
+
case y.EntityStart:
|
329
|
+
return e.charCodeAt(t) === A.NUM ? (this.state = y.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = y.NamedEntity, this.stateNamedEntity(e, t));
|
330
|
+
case y.NumericStart:
|
319
331
|
return this.stateNumericStart(e, t);
|
320
|
-
case
|
332
|
+
case y.NumericDecimal:
|
321
333
|
return this.stateNumericDecimal(e, t);
|
322
|
-
case
|
334
|
+
case y.NumericHex:
|
323
335
|
return this.stateNumericHex(e, t);
|
324
|
-
case
|
336
|
+
case y.NamedEntity:
|
325
337
|
return this.stateNamedEntity(e, t);
|
326
338
|
}
|
327
339
|
}
|
@@ -335,7 +347,7 @@ class Y0 {
|
|
335
347
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
336
348
|
*/
|
337
349
|
stateNumericStart(e, t) {
|
338
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) | W0) ===
|
350
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | W0) === A.LOWER_X ? (this.state = y.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = y.NumericDecimal, this.stateNumericDecimal(e, t));
|
339
351
|
}
|
340
352
|
addToNumericResult(e, t, n, r) {
|
341
353
|
if (t !== n) {
|
@@ -356,7 +368,7 @@ class Y0 {
|
|
356
368
|
const n = t;
|
357
369
|
for (; t < e.length; ) {
|
358
370
|
const r = e.charCodeAt(t);
|
359
|
-
if (
|
371
|
+
if (Du(r) || J0(r))
|
360
372
|
t += 1;
|
361
373
|
else
|
362
374
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
@@ -376,7 +388,7 @@ class Y0 {
|
|
376
388
|
const n = t;
|
377
389
|
for (; t < e.length; ) {
|
378
390
|
const r = e.charCodeAt(t);
|
379
|
-
if (
|
391
|
+
if (Du(r))
|
380
392
|
t += 1;
|
381
393
|
else
|
382
394
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
@@ -400,11 +412,11 @@ class Y0 {
|
|
400
412
|
var n;
|
401
413
|
if (this.consumed <= t)
|
402
414
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
403
|
-
if (e ===
|
415
|
+
if (e === A.SEMI)
|
404
416
|
this.consumed += 1;
|
405
|
-
else if (this.decodeMode ===
|
417
|
+
else if (this.decodeMode === O.Strict)
|
406
418
|
return 0;
|
407
|
-
return this.emitCodePoint(G0(this.result), this.consumed), this.errors && (e !==
|
419
|
+
return this.emitCodePoint(G0(this.result), this.consumed), this.errors && (e !== A.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
408
420
|
}
|
409
421
|
/**
|
410
422
|
* Parses a named entity.
|
@@ -417,18 +429,18 @@ class Y0 {
|
|
417
429
|
*/
|
418
430
|
stateNamedEntity(e, t) {
|
419
431
|
const { decodeTree: n } = this;
|
420
|
-
let r = n[this.treeIndex], c = (r &
|
432
|
+
let r = n[this.treeIndex], c = (r & $.VALUE_LENGTH) >> 14;
|
421
433
|
for (; t < e.length; t++, this.excess++) {
|
422
|
-
const
|
423
|
-
if (this.treeIndex =
|
434
|
+
const i = e.charCodeAt(t);
|
435
|
+
if (this.treeIndex = Y0(n, r, this.treeIndex + Math.max(1, c), i), this.treeIndex < 0)
|
424
436
|
return this.result === 0 || // If we are parsing an attribute
|
425
|
-
this.decodeMode ===
|
437
|
+
this.decodeMode === O.Attribute && // We shouldn't have consumed any characters after the entity,
|
426
438
|
(c === 0 || // And there should be no invalid characters.
|
427
|
-
X0(
|
428
|
-
if (r = n[this.treeIndex], c = (r &
|
429
|
-
if (
|
439
|
+
X0(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
440
|
+
if (r = n[this.treeIndex], c = (r & $.VALUE_LENGTH) >> 14, c !== 0) {
|
441
|
+
if (i === A.SEMI)
|
430
442
|
return this.emitNamedEntityData(this.treeIndex, c, this.consumed + this.excess);
|
431
|
-
this.decodeMode !==
|
443
|
+
this.decodeMode !== O.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
432
444
|
}
|
433
445
|
}
|
434
446
|
return -1;
|
@@ -440,7 +452,7 @@ class Y0 {
|
|
440
452
|
*/
|
441
453
|
emitNotTerminatedNamedEntity() {
|
442
454
|
var e;
|
443
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
455
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & $.VALUE_LENGTH) >> 14;
|
444
456
|
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
445
457
|
}
|
446
458
|
/**
|
@@ -454,7 +466,7 @@ class Y0 {
|
|
454
466
|
*/
|
455
467
|
emitNamedEntityData(e, t, n) {
|
456
468
|
const { decodeTree: r } = this;
|
457
|
-
return this.emitCodePoint(t === 1 ? r[e] &
|
469
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~$.VALUE_LENGTH : r[e + 1], n), t === 3 && this.emitCodePoint(r[e + 2], n), n;
|
458
470
|
}
|
459
471
|
/**
|
460
472
|
* Signal to the parser that the end of the input was reached.
|
@@ -466,77 +478,77 @@ class Y0 {
|
|
466
478
|
end() {
|
467
479
|
var e;
|
468
480
|
switch (this.state) {
|
469
|
-
case
|
470
|
-
return this.result !== 0 && (this.decodeMode !==
|
471
|
-
case
|
481
|
+
case y.NamedEntity:
|
482
|
+
return this.result !== 0 && (this.decodeMode !== O.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
483
|
+
case y.NumericDecimal:
|
472
484
|
return this.emitNumericEntity(0, 2);
|
473
|
-
case
|
485
|
+
case y.NumericHex:
|
474
486
|
return this.emitNumericEntity(0, 3);
|
475
|
-
case
|
487
|
+
case y.NumericStart:
|
476
488
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
477
|
-
case
|
489
|
+
case y.EntityStart:
|
478
490
|
return 0;
|
479
491
|
}
|
480
492
|
}
|
481
493
|
}
|
482
494
|
function t0(u) {
|
483
495
|
let e = "";
|
484
|
-
const t = new
|
496
|
+
const t = new K0(u, (n) => e += V0(n));
|
485
497
|
return function(r, c) {
|
486
|
-
let
|
487
|
-
for (; (
|
488
|
-
e += r.slice(
|
498
|
+
let i = 0, o = 0;
|
499
|
+
for (; (o = r.indexOf("&", o)) >= 0; ) {
|
500
|
+
e += r.slice(i, o), t.startEntity(c);
|
489
501
|
const s = t.write(
|
490
502
|
r,
|
491
503
|
// Skip the "&"
|
492
|
-
|
504
|
+
o + 1
|
493
505
|
);
|
494
506
|
if (s < 0) {
|
495
|
-
|
507
|
+
i = o + t.end();
|
496
508
|
break;
|
497
509
|
}
|
498
|
-
|
510
|
+
i = o + s, o = s === 0 ? i + 1 : i;
|
499
511
|
}
|
500
|
-
const a = e + r.slice(
|
512
|
+
const a = e + r.slice(i);
|
501
513
|
return e = "", a;
|
502
514
|
};
|
503
515
|
}
|
504
|
-
function
|
505
|
-
const r = (e &
|
516
|
+
function Y0(u, e, t, n) {
|
517
|
+
const r = (e & $.BRANCH_LENGTH) >> 7, c = e & $.JUMP_TABLE;
|
506
518
|
if (r === 0)
|
507
519
|
return c !== 0 && n === c ? t : -1;
|
508
520
|
if (c) {
|
509
521
|
const a = n - c;
|
510
522
|
return a < 0 || a >= r ? -1 : u[t + a] - 1;
|
511
523
|
}
|
512
|
-
let
|
513
|
-
for (;
|
514
|
-
const a =
|
524
|
+
let i = t, o = i + r - 1;
|
525
|
+
for (; i <= o; ) {
|
526
|
+
const a = i + o >>> 1, s = u[a];
|
515
527
|
if (s < n)
|
516
|
-
|
528
|
+
i = a + 1;
|
517
529
|
else if (s > n)
|
518
|
-
|
530
|
+
o = a - 1;
|
519
531
|
else
|
520
532
|
return u[a + r];
|
521
533
|
}
|
522
534
|
return -1;
|
523
535
|
}
|
524
536
|
const ue = t0(U0);
|
525
|
-
t0(
|
526
|
-
function r0(u, e =
|
537
|
+
t0(Z0);
|
538
|
+
function r0(u, e = O.Legacy) {
|
527
539
|
return ue(u, e);
|
528
540
|
}
|
529
541
|
function ee(u) {
|
530
542
|
return Object.prototype.toString.call(u);
|
531
543
|
}
|
532
|
-
function
|
544
|
+
function wu(u) {
|
533
545
|
return ee(u) === "[object String]";
|
534
546
|
}
|
535
547
|
const te = Object.prototype.hasOwnProperty;
|
536
548
|
function re(u, e) {
|
537
549
|
return te.call(u, e);
|
538
550
|
}
|
539
|
-
function
|
551
|
+
function lu(u) {
|
540
552
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
541
553
|
if (t) {
|
542
554
|
if (typeof t != "object")
|
@@ -550,10 +562,10 @@ function ou(u) {
|
|
550
562
|
function n0(u, e, t) {
|
551
563
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
552
564
|
}
|
553
|
-
function
|
565
|
+
function Su(u) {
|
554
566
|
return !(u >= 55296 && u <= 57343 || u >= 64976 && u <= 65007 || (u & 65535) === 65535 || (u & 65535) === 65534 || u >= 0 && u <= 8 || u === 11 || u >= 14 && u <= 31 || u >= 127 && u <= 159 || u > 1114111);
|
555
567
|
}
|
556
|
-
function
|
568
|
+
function ou(u) {
|
557
569
|
if (u > 65535) {
|
558
570
|
u -= 65536;
|
559
571
|
const e = 55296 + (u >> 10), t = 56320 + (u & 1023);
|
@@ -565,7 +577,7 @@ const c0 = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, ne = /&([a-z#][a-z0-9]{
|
|
565
577
|
function oe(u, e) {
|
566
578
|
if (e.charCodeAt(0) === 35 && ie.test(e)) {
|
567
579
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
568
|
-
return
|
580
|
+
return Su(n) ? ou(n) : u;
|
569
581
|
}
|
570
582
|
const t = r0(u);
|
571
583
|
return t !== u ? t : u;
|
@@ -573,7 +585,7 @@ function oe(u, e) {
|
|
573
585
|
function ae(u) {
|
574
586
|
return u.indexOf("\\") < 0 ? u : u.replace(c0, "$1");
|
575
587
|
}
|
576
|
-
function
|
588
|
+
function G(u) {
|
577
589
|
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(ce, function(e, t, n) {
|
578
590
|
return t || oe(e, n);
|
579
591
|
});
|
@@ -602,7 +614,7 @@ function E(u) {
|
|
602
614
|
}
|
603
615
|
return !1;
|
604
616
|
}
|
605
|
-
function
|
617
|
+
function Q(u) {
|
606
618
|
if (u >= 8192 && u <= 8202)
|
607
619
|
return !0;
|
608
620
|
switch (u) {
|
@@ -621,10 +633,10 @@ function J(u) {
|
|
621
633
|
}
|
622
634
|
return !1;
|
623
635
|
}
|
624
|
-
function Q(u) {
|
625
|
-
return Au.test(u) || u0.test(u);
|
626
|
-
}
|
627
636
|
function X(u) {
|
637
|
+
return vu.test(u) || u0.test(u);
|
638
|
+
}
|
639
|
+
function K(u) {
|
628
640
|
switch (u) {
|
629
641
|
case 33:
|
630
642
|
case 34:
|
@@ -663,38 +675,38 @@ function X(u) {
|
|
663
675
|
return !1;
|
664
676
|
}
|
665
677
|
}
|
666
|
-
function
|
678
|
+
function fu(u) {
|
667
679
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
668
680
|
}
|
669
|
-
const pe = { mdurl:
|
681
|
+
const pe = { mdurl: $0, ucmicro: j0 }, xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
670
682
|
__proto__: null,
|
671
683
|
arrayReplaceAt: n0,
|
672
|
-
assign:
|
684
|
+
assign: lu,
|
673
685
|
escapeHtml: N,
|
674
686
|
escapeRE: be,
|
675
|
-
fromCodePoint:
|
687
|
+
fromCodePoint: ou,
|
676
688
|
has: re,
|
677
|
-
isMdAsciiPunct:
|
678
|
-
isPunctChar:
|
689
|
+
isMdAsciiPunct: K,
|
690
|
+
isPunctChar: X,
|
679
691
|
isSpace: E,
|
680
|
-
isString:
|
681
|
-
isValidEntityCode:
|
682
|
-
isWhiteSpace:
|
692
|
+
isString: wu,
|
693
|
+
isValidEntityCode: Su,
|
694
|
+
isWhiteSpace: Q,
|
683
695
|
lib: pe,
|
684
|
-
normalizeReference:
|
685
|
-
unescapeAll:
|
696
|
+
normalizeReference: fu,
|
697
|
+
unescapeAll: G,
|
686
698
|
unescapeMd: ae
|
687
699
|
}, Symbol.toStringTag, { value: "Module" }));
|
688
700
|
function _e(u, e, t) {
|
689
|
-
let n, r, c,
|
690
|
-
const
|
691
|
-
for (u.pos = e + 1, n = 1; u.pos <
|
701
|
+
let n, r, c, i;
|
702
|
+
const o = u.posMax, a = u.pos;
|
703
|
+
for (u.pos = e + 1, n = 1; u.pos < o; ) {
|
692
704
|
if (c = u.src.charCodeAt(u.pos), c === 93 && (n--, n === 0)) {
|
693
705
|
r = !0;
|
694
706
|
break;
|
695
707
|
}
|
696
|
-
if (
|
697
|
-
if (
|
708
|
+
if (i = u.pos, u.md.inline.skipToken(u), c === 91) {
|
709
|
+
if (i === u.pos - 1)
|
698
710
|
n++;
|
699
711
|
else if (t)
|
700
712
|
return u.pos = a, -1;
|
@@ -715,7 +727,7 @@ function me(u, e, t) {
|
|
715
727
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
716
728
|
return c;
|
717
729
|
if (n === 62)
|
718
|
-
return c.pos = r + 1, c.str =
|
730
|
+
return c.pos = r + 1, c.str = G(u.slice(e + 1, r)), c.ok = !0, c;
|
719
731
|
if (n === 92 && r + 1 < t) {
|
720
732
|
r += 2;
|
721
733
|
continue;
|
@@ -724,7 +736,7 @@ function me(u, e, t) {
|
|
724
736
|
}
|
725
737
|
return c;
|
726
738
|
}
|
727
|
-
let
|
739
|
+
let i = 0;
|
728
740
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
729
741
|
if (n === 92 && r + 1 < t) {
|
730
742
|
if (u.charCodeAt(r + 1) === 32)
|
@@ -732,20 +744,20 @@ function me(u, e, t) {
|
|
732
744
|
r += 2;
|
733
745
|
continue;
|
734
746
|
}
|
735
|
-
if (n === 40 && (
|
747
|
+
if (n === 40 && (i++, i > 32))
|
736
748
|
return c;
|
737
749
|
if (n === 41) {
|
738
|
-
if (
|
750
|
+
if (i === 0)
|
739
751
|
break;
|
740
|
-
|
752
|
+
i--;
|
741
753
|
}
|
742
754
|
r++;
|
743
755
|
}
|
744
|
-
return e === r ||
|
756
|
+
return e === r || i !== 0 || (c.str = G(u.slice(e, r)), c.pos = r, c.ok = !0), c;
|
745
757
|
}
|
746
|
-
function
|
758
|
+
function ge(u, e, t, n) {
|
747
759
|
let r, c = e;
|
748
|
-
const
|
760
|
+
const i = {
|
749
761
|
// if `true`, this is a valid link title
|
750
762
|
ok: !1,
|
751
763
|
// if `true`, this link can be continued on the next line
|
@@ -758,29 +770,29 @@ function ke(u, e, t, n) {
|
|
758
770
|
marker: 0
|
759
771
|
};
|
760
772
|
if (n)
|
761
|
-
|
773
|
+
i.str = n.str, i.marker = n.marker;
|
762
774
|
else {
|
763
775
|
if (c >= t)
|
764
|
-
return
|
765
|
-
let
|
766
|
-
if (
|
767
|
-
return
|
768
|
-
e++, c++,
|
776
|
+
return i;
|
777
|
+
let o = u.charCodeAt(c);
|
778
|
+
if (o !== 34 && o !== 39 && o !== 40)
|
779
|
+
return i;
|
780
|
+
e++, c++, o === 40 && (o = 41), i.marker = o;
|
769
781
|
}
|
770
782
|
for (; c < t; ) {
|
771
|
-
if (r = u.charCodeAt(c), r ===
|
772
|
-
return
|
773
|
-
if (r === 40 &&
|
774
|
-
return
|
783
|
+
if (r = u.charCodeAt(c), r === i.marker)
|
784
|
+
return i.pos = c + 1, i.str += G(u.slice(e, c)), i.ok = !0, i;
|
785
|
+
if (r === 40 && i.marker === 41)
|
786
|
+
return i;
|
775
787
|
r === 92 && c + 1 < t && c++, c++;
|
776
788
|
}
|
777
|
-
return
|
789
|
+
return i.can_continue = !0, i.str += G(u.slice(e, c)), i;
|
778
790
|
}
|
779
|
-
const
|
791
|
+
const ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
780
792
|
__proto__: null,
|
781
793
|
parseLinkDestination: me,
|
782
794
|
parseLinkLabel: _e,
|
783
|
-
parseLinkTitle:
|
795
|
+
parseLinkTitle: ge
|
784
796
|
}, Symbol.toStringTag, { value: "Module" })), M = {};
|
785
797
|
M.code_inline = function(u, e, t, n, r) {
|
786
798
|
const c = u[e];
|
@@ -792,19 +804,19 @@ M.code_block = function(u, e, t, n, r) {
|
|
792
804
|
`;
|
793
805
|
};
|
794
806
|
M.fence = function(u, e, t, n, r) {
|
795
|
-
const c = u[e],
|
796
|
-
let
|
797
|
-
if (
|
798
|
-
const l =
|
799
|
-
|
807
|
+
const c = u[e], i = c.info ? G(c.info).trim() : "";
|
808
|
+
let o = "", a = "";
|
809
|
+
if (i) {
|
810
|
+
const l = i.split(/(\s+)/g);
|
811
|
+
o = l[0], a = l.slice(2).join("");
|
800
812
|
}
|
801
813
|
let s;
|
802
|
-
if (t.highlight ? s = t.highlight(c.content,
|
814
|
+
if (t.highlight ? s = t.highlight(c.content, o, a) || N(c.content) : s = N(c.content), s.indexOf("<pre") === 0)
|
803
815
|
return s + `
|
804
816
|
`;
|
805
|
-
if (
|
817
|
+
if (i) {
|
806
818
|
const l = c.attrIndex("class"), d = c.attrs ? c.attrs.slice() : [];
|
807
|
-
l < 0 ? d.push(["class", t.langPrefix +
|
819
|
+
l < 0 ? d.push(["class", t.langPrefix + o]) : (d[l] = d[l].slice(), d[l][1] += " " + t.langPrefix + o);
|
808
820
|
const b = {
|
809
821
|
attrs: d
|
810
822
|
};
|
@@ -838,10 +850,10 @@ M.html_block = function(u, e) {
|
|
838
850
|
M.html_inline = function(u, e) {
|
839
851
|
return u[e].content;
|
840
852
|
};
|
841
|
-
function
|
842
|
-
this.rules =
|
853
|
+
function W() {
|
854
|
+
this.rules = lu({}, M);
|
843
855
|
}
|
844
|
-
|
856
|
+
W.prototype.renderAttrs = function(e) {
|
845
857
|
let t, n, r;
|
846
858
|
if (!e.attrs)
|
847
859
|
return "";
|
@@ -849,31 +861,31 @@ G.prototype.renderAttrs = function(e) {
|
|
849
861
|
r += " " + N(e.attrs[t][0]) + '="' + N(e.attrs[t][1]) + '"';
|
850
862
|
return r;
|
851
863
|
};
|
852
|
-
|
864
|
+
W.prototype.renderToken = function(e, t, n) {
|
853
865
|
const r = e[t];
|
854
866
|
let c = "";
|
855
867
|
if (r.hidden)
|
856
868
|
return "";
|
857
869
|
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (c += `
|
858
870
|
`), c += (r.nesting === -1 ? "</" : "<") + r.tag, c += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (c += " /");
|
859
|
-
let
|
860
|
-
if (r.block && (
|
861
|
-
const
|
862
|
-
(
|
871
|
+
let i = !1;
|
872
|
+
if (r.block && (i = !0, r.nesting === 1 && t + 1 < e.length)) {
|
873
|
+
const o = e[t + 1];
|
874
|
+
(o.type === "inline" || o.hidden || o.nesting === -1 && o.tag === r.tag) && (i = !1);
|
863
875
|
}
|
864
|
-
return c +=
|
876
|
+
return c += i ? `>
|
865
877
|
` : ">", c;
|
866
878
|
};
|
867
|
-
|
879
|
+
W.prototype.renderInline = function(u, e, t) {
|
868
880
|
let n = "";
|
869
881
|
const r = this.rules;
|
870
|
-
for (let c = 0,
|
871
|
-
const
|
872
|
-
typeof r[
|
882
|
+
for (let c = 0, i = u.length; c < i; c++) {
|
883
|
+
const o = u[c].type;
|
884
|
+
typeof r[o] < "u" ? n += r[o](u, c, e, t, this) : n += this.renderToken(u, c, e);
|
873
885
|
}
|
874
886
|
return n;
|
875
887
|
};
|
876
|
-
|
888
|
+
W.prototype.renderInlineAsText = function(u, e, t) {
|
877
889
|
let n = "";
|
878
890
|
for (let r = 0, c = u.length; r < c; r++)
|
879
891
|
switch (u[r].type) {
|
@@ -895,25 +907,25 @@ G.prototype.renderInlineAsText = function(u, e, t) {
|
|
895
907
|
}
|
896
908
|
return n;
|
897
909
|
};
|
898
|
-
|
910
|
+
W.prototype.render = function(u, e, t) {
|
899
911
|
let n = "";
|
900
912
|
const r = this.rules;
|
901
|
-
for (let c = 0,
|
902
|
-
const
|
903
|
-
|
913
|
+
for (let c = 0, i = u.length; c < i; c++) {
|
914
|
+
const o = u[c].type;
|
915
|
+
o === "inline" ? n += this.renderInline(u[c].children, e, t) : typeof r[o] < "u" ? n += r[o](u, c, e, t, this) : n += this.renderToken(u, c, e, t);
|
904
916
|
}
|
905
917
|
return n;
|
906
918
|
};
|
907
|
-
function
|
919
|
+
function v() {
|
908
920
|
this.__rules__ = [], this.__cache__ = null;
|
909
921
|
}
|
910
|
-
|
922
|
+
v.prototype.__find__ = function(u) {
|
911
923
|
for (let e = 0; e < this.__rules__.length; e++)
|
912
924
|
if (this.__rules__[e].name === u)
|
913
925
|
return e;
|
914
926
|
return -1;
|
915
927
|
};
|
916
|
-
|
928
|
+
v.prototype.__compile__ = function() {
|
917
929
|
const u = this, e = [""];
|
918
930
|
u.__rules__.forEach(function(t) {
|
919
931
|
t.enabled && t.alt.forEach(function(n) {
|
@@ -925,13 +937,13 @@ w.prototype.__compile__ = function() {
|
|
925
937
|
});
|
926
938
|
});
|
927
939
|
};
|
928
|
-
|
940
|
+
v.prototype.at = function(u, e, t) {
|
929
941
|
const n = this.__find__(u), r = t || {};
|
930
942
|
if (n === -1)
|
931
943
|
throw new Error("Parser rule not found: " + u);
|
932
944
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
933
945
|
};
|
934
|
-
|
946
|
+
v.prototype.before = function(u, e, t, n) {
|
935
947
|
const r = this.__find__(u), c = n || {};
|
936
948
|
if (r === -1)
|
937
949
|
throw new Error("Parser rule not found: " + u);
|
@@ -942,7 +954,7 @@ w.prototype.before = function(u, e, t, n) {
|
|
942
954
|
alt: c.alt || []
|
943
955
|
}), this.__cache__ = null;
|
944
956
|
};
|
945
|
-
|
957
|
+
v.prototype.after = function(u, e, t, n) {
|
946
958
|
const r = this.__find__(u), c = n || {};
|
947
959
|
if (r === -1)
|
948
960
|
throw new Error("Parser rule not found: " + u);
|
@@ -953,7 +965,7 @@ w.prototype.after = function(u, e, t, n) {
|
|
953
965
|
alt: c.alt || []
|
954
966
|
}), this.__cache__ = null;
|
955
967
|
};
|
956
|
-
|
968
|
+
v.prototype.push = function(u, e, t) {
|
957
969
|
const n = t || {};
|
958
970
|
this.__rules__.push({
|
959
971
|
name: u,
|
@@ -962,7 +974,7 @@ w.prototype.push = function(u, e, t) {
|
|
962
974
|
alt: n.alt || []
|
963
975
|
}), this.__cache__ = null;
|
964
976
|
};
|
965
|
-
|
977
|
+
v.prototype.enable = function(u, e) {
|
966
978
|
Array.isArray(u) || (u = [u]);
|
967
979
|
const t = [];
|
968
980
|
return u.forEach(function(n) {
|
@@ -975,12 +987,12 @@ w.prototype.enable = function(u, e) {
|
|
975
987
|
this.__rules__[r].enabled = !0, t.push(n);
|
976
988
|
}, this), this.__cache__ = null, t;
|
977
989
|
};
|
978
|
-
|
990
|
+
v.prototype.enableOnly = function(u, e) {
|
979
991
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
980
992
|
t.enabled = !1;
|
981
993
|
}), this.enable(u, e);
|
982
994
|
};
|
983
|
-
|
995
|
+
v.prototype.disable = function(u, e) {
|
984
996
|
Array.isArray(u) || (u = [u]);
|
985
997
|
const t = [];
|
986
998
|
return u.forEach(function(n) {
|
@@ -993,7 +1005,7 @@ w.prototype.disable = function(u, e) {
|
|
993
1005
|
this.__rules__[r].enabled = !1, t.push(n);
|
994
1006
|
}, this), this.__cache__ = null, t;
|
995
1007
|
};
|
996
|
-
|
1008
|
+
v.prototype.getRules = function(u) {
|
997
1009
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
998
1010
|
};
|
999
1011
|
function I(u, e, t) {
|
@@ -1034,58 +1046,58 @@ function Ee(u) {
|
|
1034
1046
|
e = u.src.replace(Ce, `
|
1035
1047
|
`), e = e.replace(De, "�"), u.src = e;
|
1036
1048
|
}
|
1037
|
-
function
|
1049
|
+
function ye(u) {
|
1038
1050
|
let e;
|
1039
1051
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
1040
1052
|
}
|
1041
|
-
function
|
1053
|
+
function Ae(u) {
|
1042
1054
|
const e = u.tokens;
|
1043
1055
|
for (let t = 0, n = e.length; t < n; t++) {
|
1044
1056
|
const r = e[t];
|
1045
1057
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
1046
1058
|
}
|
1047
1059
|
}
|
1048
|
-
function
|
1060
|
+
function Fe(u) {
|
1049
1061
|
return /^<a[>\s]/i.test(u);
|
1050
1062
|
}
|
1051
|
-
function
|
1063
|
+
function ve(u) {
|
1052
1064
|
return /^<\/a\s*>/i.test(u);
|
1053
1065
|
}
|
1054
|
-
function
|
1066
|
+
function we(u) {
|
1055
1067
|
const e = u.tokens;
|
1056
1068
|
if (u.md.options.linkify)
|
1057
1069
|
for (let t = 0, n = e.length; t < n; t++) {
|
1058
1070
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
1059
1071
|
continue;
|
1060
1072
|
let r = e[t].children, c = 0;
|
1061
|
-
for (let
|
1062
|
-
const
|
1063
|
-
if (
|
1064
|
-
for (
|
1065
|
-
|
1073
|
+
for (let i = r.length - 1; i >= 0; i--) {
|
1074
|
+
const o = r[i];
|
1075
|
+
if (o.type === "link_close") {
|
1076
|
+
for (i--; r[i].level !== o.level && r[i].type !== "link_open"; )
|
1077
|
+
i--;
|
1066
1078
|
continue;
|
1067
1079
|
}
|
1068
|
-
if (
|
1069
|
-
const a =
|
1080
|
+
if (o.type === "html_inline" && (Fe(o.content) && c > 0 && c--, ve(o.content) && c++), !(c > 0) && o.type === "text" && u.md.linkify.test(o.content)) {
|
1081
|
+
const a = o.content;
|
1070
1082
|
let s = u.md.linkify.match(a);
|
1071
1083
|
const l = [];
|
1072
|
-
let d =
|
1073
|
-
s.length > 0 && s[0].index === 0 &&
|
1084
|
+
let d = o.level, b = 0;
|
1085
|
+
s.length > 0 && s[0].index === 0 && i > 0 && r[i - 1].type === "text_special" && (s = s.slice(1));
|
1074
1086
|
for (let h = 0; h < s.length; h++) {
|
1075
|
-
const f = s[h].url,
|
1076
|
-
if (!u.md.validateLink(
|
1087
|
+
const f = s[h].url, g = u.md.normalizeLink(f);
|
1088
|
+
if (!u.md.validateLink(g))
|
1077
1089
|
continue;
|
1078
|
-
let
|
1079
|
-
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(
|
1090
|
+
let k = s[h].text;
|
1091
|
+
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(k) ? k = u.md.normalizeLinkText("mailto:" + k).replace(/^mailto:/, "") : k = u.md.normalizeLinkText(k) : k = u.md.normalizeLinkText("http://" + k).replace(/^http:\/\//, "");
|
1080
1092
|
const D = s[h].index;
|
1081
1093
|
if (D > b) {
|
1082
1094
|
const m = new u.Token("text", "", 0);
|
1083
1095
|
m.content = a.slice(b, D), m.level = d, l.push(m);
|
1084
1096
|
}
|
1085
1097
|
const p = new u.Token("link_open", "a", 1);
|
1086
|
-
p.attrs = [["href",
|
1098
|
+
p.attrs = [["href", g]], p.level = d++, p.markup = "linkify", p.info = "auto", l.push(p);
|
1087
1099
|
const _ = new u.Token("text", "", 0);
|
1088
|
-
_.content =
|
1100
|
+
_.content = k, _.level = d, l.push(_);
|
1089
1101
|
const x = new u.Token("link_close", "a", -1);
|
1090
1102
|
x.level = --d, x.markup = "linkify", x.info = "auto", l.push(x), b = s[h].lastIndex;
|
1091
1103
|
}
|
@@ -1093,7 +1105,7 @@ function ve(u) {
|
|
1093
1105
|
const h = new u.Token("text", "", 0);
|
1094
1106
|
h.content = a.slice(b), h.level = d, l.push(h);
|
1095
1107
|
}
|
1096
|
-
e[t].children = r = n0(r,
|
1108
|
+
e[t].children = r = n0(r, i, l);
|
1097
1109
|
}
|
1098
1110
|
}
|
1099
1111
|
}
|
@@ -1126,24 +1138,24 @@ function qe(u) {
|
|
1126
1138
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
1127
1139
|
u.tokens[e].type === "inline" && (Se.test(u.tokens[e].content) && ze(u.tokens[e].children), o0.test(u.tokens[e].content) && Me(u.tokens[e].children));
|
1128
1140
|
}
|
1129
|
-
const
|
1130
|
-
function
|
1141
|
+
const Re = /['"]/, Nu = /['"]/g, ju = "’";
|
1142
|
+
function nu(u, e, t) {
|
1131
1143
|
return u.slice(0, e) + t + u.slice(e + 1);
|
1132
1144
|
}
|
1133
|
-
function
|
1145
|
+
function Le(u, e) {
|
1134
1146
|
let t;
|
1135
1147
|
const n = [];
|
1136
1148
|
for (let r = 0; r < u.length; r++) {
|
1137
|
-
const c = u[r],
|
1138
|
-
for (t = n.length - 1; t >= 0 && !(n[t].level <=
|
1149
|
+
const c = u[r], i = u[r].level;
|
1150
|
+
for (t = n.length - 1; t >= 0 && !(n[t].level <= i); t--)
|
1139
1151
|
;
|
1140
1152
|
if (n.length = t + 1, c.type !== "text")
|
1141
1153
|
continue;
|
1142
|
-
let
|
1154
|
+
let o = c.content, a = 0, s = o.length;
|
1143
1155
|
u:
|
1144
1156
|
for (; a < s; ) {
|
1145
1157
|
Nu.lastIndex = a;
|
1146
|
-
const l = Nu.exec(
|
1158
|
+
const l = Nu.exec(o);
|
1147
1159
|
if (!l)
|
1148
1160
|
break;
|
1149
1161
|
let d = !0, b = !0;
|
@@ -1151,40 +1163,40 @@ function Re(u, e) {
|
|
1151
1163
|
const h = l[0] === "'";
|
1152
1164
|
let f = 32;
|
1153
1165
|
if (l.index - 1 >= 0)
|
1154
|
-
f =
|
1166
|
+
f = o.charCodeAt(l.index - 1);
|
1155
1167
|
else
|
1156
1168
|
for (t = r - 1; t >= 0 && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t--)
|
1157
1169
|
if (u[t].content) {
|
1158
1170
|
f = u[t].content.charCodeAt(u[t].content.length - 1);
|
1159
1171
|
break;
|
1160
1172
|
}
|
1161
|
-
let
|
1173
|
+
let g = 32;
|
1162
1174
|
if (a < s)
|
1163
|
-
|
1175
|
+
g = o.charCodeAt(a);
|
1164
1176
|
else
|
1165
1177
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
1166
1178
|
if (u[t].content) {
|
1167
|
-
|
1179
|
+
g = u[t].content.charCodeAt(0);
|
1168
1180
|
break;
|
1169
1181
|
}
|
1170
|
-
const
|
1171
|
-
if (_ ? d = !1 : D && (p ||
|
1172
|
-
h && (c.content =
|
1182
|
+
const k = K(f) || X(String.fromCharCode(f)), D = K(g) || X(String.fromCharCode(g)), p = Q(f), _ = Q(g);
|
1183
|
+
if (_ ? d = !1 : D && (p || k || (d = !1)), p ? b = !1 : k && (_ || D || (b = !1)), g === 34 && l[0] === '"' && f >= 48 && f <= 57 && (b = d = !1), d && b && (d = k, b = D), !d && !b) {
|
1184
|
+
h && (c.content = nu(c.content, l.index, ju));
|
1173
1185
|
continue;
|
1174
1186
|
}
|
1175
1187
|
if (b)
|
1176
1188
|
for (t = n.length - 1; t >= 0; t--) {
|
1177
1189
|
let x = n[t];
|
1178
|
-
if (n[t].level <
|
1190
|
+
if (n[t].level < i)
|
1179
1191
|
break;
|
1180
|
-
if (x.single === h && n[t].level ===
|
1192
|
+
if (x.single === h && n[t].level === i) {
|
1181
1193
|
x = n[t];
|
1182
1194
|
let m, C;
|
1183
|
-
h ? (m = e.md.options.quotes[2], C = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], C = e.md.options.quotes[1]), c.content =
|
1195
|
+
h ? (m = e.md.options.quotes[2], C = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], C = e.md.options.quotes[1]), c.content = nu(c.content, l.index, C), u[x.token].content = nu(
|
1184
1196
|
u[x.token].content,
|
1185
1197
|
x.pos,
|
1186
1198
|
m
|
1187
|
-
), a += C.length - 1, x.token === r && (a += m.length - 1),
|
1199
|
+
), a += C.length - 1, x.token === r && (a += m.length - 1), o = c.content, s = o.length, n.length = t;
|
1188
1200
|
continue u;
|
1189
1201
|
}
|
1190
1202
|
}
|
@@ -1192,15 +1204,15 @@ function Re(u, e) {
|
|
1192
1204
|
token: r,
|
1193
1205
|
pos: l.index,
|
1194
1206
|
single: h,
|
1195
|
-
level:
|
1196
|
-
}) : b && h && (c.content =
|
1207
|
+
level: i
|
1208
|
+
}) : b && h && (c.content = nu(c.content, l.index, ju));
|
1197
1209
|
}
|
1198
1210
|
}
|
1199
1211
|
}
|
1200
1212
|
function Pe(u) {
|
1201
1213
|
if (u.md.options.typographer)
|
1202
1214
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
1203
|
-
u.tokens[e].type !== "inline" || !
|
1215
|
+
u.tokens[e].type !== "inline" || !Re.test(u.tokens[e].content) || Le(u.tokens[e].children, u);
|
1204
1216
|
}
|
1205
1217
|
function Oe(u) {
|
1206
1218
|
let e, t;
|
@@ -1208,48 +1220,48 @@ function Oe(u) {
|
|
1208
1220
|
for (let c = 0; c < r; c++) {
|
1209
1221
|
if (n[c].type !== "inline")
|
1210
1222
|
continue;
|
1211
|
-
const
|
1212
|
-
for (e = 0; e <
|
1213
|
-
|
1214
|
-
for (e = t = 0; e <
|
1215
|
-
|
1216
|
-
e !== t && (
|
1223
|
+
const i = n[c].children, o = i.length;
|
1224
|
+
for (e = 0; e < o; e++)
|
1225
|
+
i[e].type === "text_special" && (i[e].type = "text");
|
1226
|
+
for (e = t = 0; e < o; e++)
|
1227
|
+
i[e].type === "text" && e + 1 < o && i[e + 1].type === "text" ? i[e + 1].content = i[e].content + i[e + 1].content : (e !== t && (i[t] = i[e]), t++);
|
1228
|
+
e !== t && (i.length = t);
|
1217
1229
|
}
|
1218
1230
|
}
|
1219
|
-
const
|
1231
|
+
const xu = [
|
1220
1232
|
["normalize", Ee],
|
1221
|
-
["block",
|
1222
|
-
["inline",
|
1223
|
-
["linkify",
|
1233
|
+
["block", ye],
|
1234
|
+
["inline", Ae],
|
1235
|
+
["linkify", we],
|
1224
1236
|
["replacements", qe],
|
1225
1237
|
["smartquotes", Pe],
|
1226
1238
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
1227
1239
|
// and joins them with the rest of the text
|
1228
1240
|
["text_join", Oe]
|
1229
1241
|
];
|
1230
|
-
function
|
1231
|
-
this.ruler = new
|
1232
|
-
for (let u = 0; u <
|
1233
|
-
this.ruler.push(
|
1242
|
+
function Tu() {
|
1243
|
+
this.ruler = new v();
|
1244
|
+
for (let u = 0; u < xu.length; u++)
|
1245
|
+
this.ruler.push(xu[u][0], xu[u][1]);
|
1234
1246
|
}
|
1235
|
-
|
1247
|
+
Tu.prototype.process = function(u) {
|
1236
1248
|
const e = this.ruler.getRules("");
|
1237
1249
|
for (let t = 0, n = e.length; t < n; t++)
|
1238
1250
|
e[t](u);
|
1239
1251
|
};
|
1240
|
-
|
1252
|
+
Tu.prototype.State = i0;
|
1241
1253
|
function q(u, e, t, n) {
|
1242
1254
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
1243
1255
|
const r = this.src;
|
1244
|
-
for (let c = 0,
|
1245
|
-
const d = r.charCodeAt(
|
1256
|
+
for (let c = 0, i = 0, o = 0, a = 0, s = r.length, l = !1; i < s; i++) {
|
1257
|
+
const d = r.charCodeAt(i);
|
1246
1258
|
if (!l)
|
1247
1259
|
if (E(d)) {
|
1248
|
-
|
1260
|
+
o++, d === 9 ? a += 4 - a % 4 : a++;
|
1249
1261
|
continue;
|
1250
1262
|
} else
|
1251
1263
|
l = !0;
|
1252
|
-
(d === 10 ||
|
1264
|
+
(d === 10 || i === s - 1) && (d !== 10 && i++, this.bMarks.push(c), this.eMarks.push(i), this.tShift.push(o), this.sCount.push(a), this.bsCount.push(0), l = !1, o = 0, a = 0, c = i + 1);
|
1253
1265
|
}
|
1254
1266
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
1255
1267
|
}
|
@@ -1298,38 +1310,38 @@ q.prototype.getLines = function(e, t, n, r) {
|
|
1298
1310
|
if (e >= t)
|
1299
1311
|
return "";
|
1300
1312
|
const c = new Array(t - e);
|
1301
|
-
for (let
|
1313
|
+
for (let i = 0, o = e; o < t; o++, i++) {
|
1302
1314
|
let a = 0;
|
1303
|
-
const s = this.bMarks[
|
1315
|
+
const s = this.bMarks[o];
|
1304
1316
|
let l = s, d;
|
1305
|
-
for (
|
1317
|
+
for (o + 1 < t || r ? d = this.eMarks[o] + 1 : d = this.eMarks[o]; l < d && a < n; ) {
|
1306
1318
|
const b = this.src.charCodeAt(l);
|
1307
1319
|
if (E(b))
|
1308
|
-
b === 9 ? a += 4 - (a + this.bsCount[
|
1309
|
-
else if (l - s < this.tShift[
|
1320
|
+
b === 9 ? a += 4 - (a + this.bsCount[o]) % 4 : a++;
|
1321
|
+
else if (l - s < this.tShift[o])
|
1310
1322
|
a++;
|
1311
1323
|
else
|
1312
1324
|
break;
|
1313
1325
|
l++;
|
1314
1326
|
}
|
1315
|
-
a > n ? c[
|
1327
|
+
a > n ? c[i] = new Array(a - n + 1).join(" ") + this.src.slice(l, d) : c[i] = this.src.slice(l, d);
|
1316
1328
|
}
|
1317
1329
|
return c.join("");
|
1318
1330
|
};
|
1319
1331
|
q.prototype.Token = I;
|
1320
|
-
const
|
1321
|
-
function
|
1332
|
+
const $e = 65536;
|
1333
|
+
function _u(u, e) {
|
1322
1334
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
1323
1335
|
return u.src.slice(t, n);
|
1324
1336
|
}
|
1325
|
-
function
|
1337
|
+
function Uu(u) {
|
1326
1338
|
const e = [], t = u.length;
|
1327
|
-
let n = 0, r = u.charCodeAt(n), c = !1,
|
1339
|
+
let n = 0, r = u.charCodeAt(n), c = !1, i = 0, o = "";
|
1328
1340
|
for (; n < t; )
|
1329
|
-
r === 124 && (c ? (
|
1330
|
-
return e.push(
|
1341
|
+
r === 124 && (c ? (o += u.substring(i, n - 1), i = n) : (e.push(o + u.substring(i, n)), o = "", i = n + 1)), c = r === 92, n++, r = u.charCodeAt(n);
|
1342
|
+
return e.push(o + u.substring(i)), e;
|
1331
1343
|
}
|
1332
|
-
function
|
1344
|
+
function Ne(u, e, t, n) {
|
1333
1345
|
if (e + 2 > t)
|
1334
1346
|
return !1;
|
1335
1347
|
let r = e + 1;
|
@@ -1338,11 +1350,11 @@ function $e(u, e, t, n) {
|
|
1338
1350
|
let c = u.bMarks[r] + u.tShift[r];
|
1339
1351
|
if (c >= u.eMarks[r])
|
1340
1352
|
return !1;
|
1341
|
-
const o = u.src.charCodeAt(c++);
|
1342
|
-
if (o !== 124 && o !== 45 && o !== 58 || c >= u.eMarks[r])
|
1343
|
-
return !1;
|
1344
1353
|
const i = u.src.charCodeAt(c++);
|
1345
|
-
if (i !== 124 && i !== 45 && i !== 58
|
1354
|
+
if (i !== 124 && i !== 45 && i !== 58 || c >= u.eMarks[r])
|
1355
|
+
return !1;
|
1356
|
+
const o = u.src.charCodeAt(c++);
|
1357
|
+
if (o !== 124 && o !== 45 && o !== 58 && !E(o) || i === 45 && E(o))
|
1346
1358
|
return !1;
|
1347
1359
|
for (; c < u.eMarks[r]; ) {
|
1348
1360
|
const x = u.src.charCodeAt(c);
|
@@ -1350,7 +1362,7 @@ function $e(u, e, t, n) {
|
|
1350
1362
|
return !1;
|
1351
1363
|
c++;
|
1352
1364
|
}
|
1353
|
-
let a =
|
1365
|
+
let a = _u(u, e + 1), s = a.split("|");
|
1354
1366
|
const l = [];
|
1355
1367
|
for (let x = 0; x < s.length; x++) {
|
1356
1368
|
const m = s[x].trim();
|
@@ -1363,9 +1375,9 @@ function $e(u, e, t, n) {
|
|
1363
1375
|
return !1;
|
1364
1376
|
m.charCodeAt(m.length - 1) === 58 ? l.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
1365
1377
|
}
|
1366
|
-
if (a =
|
1378
|
+
if (a = _u(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
1367
1379
|
return !1;
|
1368
|
-
s =
|
1380
|
+
s = Uu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
1369
1381
|
const d = s.length;
|
1370
1382
|
if (d === 0 || d !== l.length)
|
1371
1383
|
return !1;
|
@@ -1373,10 +1385,10 @@ function $e(u, e, t, n) {
|
|
1373
1385
|
return !0;
|
1374
1386
|
const b = u.parentType;
|
1375
1387
|
u.parentType = "table";
|
1376
|
-
const h = u.md.block.ruler.getRules("blockquote"), f = u.push("table_open", "table", 1),
|
1377
|
-
f.map =
|
1378
|
-
const
|
1379
|
-
|
1388
|
+
const h = u.md.block.ruler.getRules("blockquote"), f = u.push("table_open", "table", 1), g = [e, 0];
|
1389
|
+
f.map = g;
|
1390
|
+
const k = u.push("thead_open", "thead", 1);
|
1391
|
+
k.map = [e, e + 1];
|
1380
1392
|
const D = u.push("tr_open", "tr", 1);
|
1381
1393
|
D.map = [e, e + 1];
|
1382
1394
|
for (let x = 0; x < s.length; x++) {
|
@@ -1389,12 +1401,12 @@ function $e(u, e, t, n) {
|
|
1389
1401
|
let p, _ = 0;
|
1390
1402
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
1391
1403
|
let x = !1;
|
1392
|
-
for (let C = 0,
|
1404
|
+
for (let C = 0, F = h.length; C < F; C++)
|
1393
1405
|
if (h[C](u, r, t, !0)) {
|
1394
1406
|
x = !0;
|
1395
1407
|
break;
|
1396
1408
|
}
|
1397
|
-
if (x || (a =
|
1409
|
+
if (x || (a = _u(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = Uu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), _ += d - s.length, _ > $e))
|
1398
1410
|
break;
|
1399
1411
|
if (r === e + 2) {
|
1400
1412
|
const C = u.push("tbody_open", "tbody", 1);
|
@@ -1403,14 +1415,14 @@ function $e(u, e, t, n) {
|
|
1403
1415
|
const m = u.push("tr_open", "tr", 1);
|
1404
1416
|
m.map = [r, r + 1];
|
1405
1417
|
for (let C = 0; C < d; C++) {
|
1406
|
-
const
|
1407
|
-
l[C] && (
|
1418
|
+
const F = u.push("td_open", "td", 1);
|
1419
|
+
l[C] && (F.attrs = [["style", "text-align:" + l[C]]]);
|
1408
1420
|
const T = u.push("inline", "", 0);
|
1409
1421
|
T.content = s[C] ? s[C].trim() : "", T.children = [], u.push("td_close", "td", -1);
|
1410
1422
|
}
|
1411
1423
|
u.push("tr_close", "tr", -1);
|
1412
1424
|
}
|
1413
|
-
return p && (u.push("tbody_close", "tbody", -1), p[1] = r), u.push("table_close", "table", -1),
|
1425
|
+
return p && (u.push("tbody_close", "tbody", -1), p[1] = r), u.push("table_close", "table", -1), g[1] = r, u.parentType = b, u.line = r, !0;
|
1414
1426
|
}
|
1415
1427
|
function je(u, e, t) {
|
1416
1428
|
if (u.sCount[e] - u.blkIndent < 4)
|
@@ -1436,22 +1448,22 @@ function Ue(u, e, t, n) {
|
|
1436
1448
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1437
1449
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > c)
|
1438
1450
|
return !1;
|
1439
|
-
const
|
1440
|
-
if (
|
1451
|
+
const i = u.src.charCodeAt(r);
|
1452
|
+
if (i !== 126 && i !== 96)
|
1441
1453
|
return !1;
|
1442
|
-
let
|
1443
|
-
r = u.skipChars(r,
|
1444
|
-
let a = r -
|
1454
|
+
let o = r;
|
1455
|
+
r = u.skipChars(r, i);
|
1456
|
+
let a = r - o;
|
1445
1457
|
if (a < 3)
|
1446
1458
|
return !1;
|
1447
|
-
const s = u.src.slice(
|
1448
|
-
if (
|
1459
|
+
const s = u.src.slice(o, r), l = u.src.slice(r, c);
|
1460
|
+
if (i === 96 && l.indexOf(String.fromCharCode(i)) >= 0)
|
1449
1461
|
return !1;
|
1450
1462
|
if (n)
|
1451
1463
|
return !0;
|
1452
1464
|
let d = e, b = !1;
|
1453
|
-
for (; d++, !(d >= t || (r =
|
1454
|
-
if (u.src.charCodeAt(r) ===
|
1465
|
+
for (; d++, !(d >= t || (r = o = u.bMarks[d] + u.tShift[d], c = u.eMarks[d], r < c && u.sCount[d] < u.blkIndent)); )
|
1466
|
+
if (u.src.charCodeAt(r) === i && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, i), !(r - o < a) && (r = u.skipSpaces(r), !(r < c)))) {
|
1455
1467
|
b = !0;
|
1456
1468
|
break;
|
1457
1469
|
}
|
@@ -1459,14 +1471,14 @@ function Ue(u, e, t, n) {
|
|
1459
1471
|
const h = u.push("fence", "code", 0);
|
1460
1472
|
return h.info = l, h.content = u.getLines(e + 1, d, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
1461
1473
|
}
|
1462
|
-
function
|
1474
|
+
function Ze(u, e, t, n) {
|
1463
1475
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1464
|
-
const
|
1476
|
+
const i = u.lineMax;
|
1465
1477
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
1466
1478
|
return !1;
|
1467
1479
|
if (n)
|
1468
1480
|
return !0;
|
1469
|
-
const
|
1481
|
+
const o = [], a = [], s = [], l = [], d = u.md.block.ruler.getRules("blockquote"), b = u.parentType;
|
1470
1482
|
u.parentType = "blockquote";
|
1471
1483
|
let h = !1, f;
|
1472
1484
|
for (f = e; f < t; f++) {
|
@@ -1474,13 +1486,13 @@ function He(u, e, t, n) {
|
|
1474
1486
|
if (r = u.bMarks[f] + u.tShift[f], c = u.eMarks[f], r >= c)
|
1475
1487
|
break;
|
1476
1488
|
if (u.src.charCodeAt(r++) === 62 && !_) {
|
1477
|
-
let m = u.sCount[f] + 1, C,
|
1478
|
-
u.src.charCodeAt(r) === 32 ? (r++, m++,
|
1489
|
+
let m = u.sCount[f] + 1, C, F;
|
1490
|
+
u.src.charCodeAt(r) === 32 ? (r++, m++, F = !1, C = !0) : u.src.charCodeAt(r) === 9 ? (C = !0, (u.bsCount[f] + m) % 4 === 3 ? (r++, m++, F = !1) : F = !0) : C = !1;
|
1479
1491
|
let T = m;
|
1480
|
-
for (
|
1492
|
+
for (o.push(u.bMarks[f]), u.bMarks[f] = r; r < c; ) {
|
1481
1493
|
const L = u.src.charCodeAt(r);
|
1482
1494
|
if (E(L))
|
1483
|
-
L === 9 ? T += 4 - (T + u.bsCount[f] + (
|
1495
|
+
L === 9 ? T += 4 - (T + u.bsCount[f] + (F ? 1 : 0)) % 4 : T++;
|
1484
1496
|
else
|
1485
1497
|
break;
|
1486
1498
|
r++;
|
@@ -1497,47 +1509,47 @@ function He(u, e, t, n) {
|
|
1497
1509
|
break;
|
1498
1510
|
}
|
1499
1511
|
if (x) {
|
1500
|
-
u.lineMax = f, u.blkIndent !== 0 && (
|
1512
|
+
u.lineMax = f, u.blkIndent !== 0 && (o.push(u.bMarks[f]), a.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] -= u.blkIndent);
|
1501
1513
|
break;
|
1502
1514
|
}
|
1503
|
-
|
1515
|
+
o.push(u.bMarks[f]), a.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] = -1;
|
1504
1516
|
}
|
1505
|
-
const
|
1517
|
+
const g = u.blkIndent;
|
1506
1518
|
u.blkIndent = 0;
|
1507
|
-
const
|
1508
|
-
|
1519
|
+
const k = u.push("blockquote_open", "blockquote", 1);
|
1520
|
+
k.markup = ">";
|
1509
1521
|
const D = [e, 0];
|
1510
|
-
|
1522
|
+
k.map = D, u.md.block.tokenize(u, e, f);
|
1511
1523
|
const p = u.push("blockquote_close", "blockquote", -1);
|
1512
|
-
p.markup = ">", u.lineMax =
|
1524
|
+
p.markup = ">", u.lineMax = i, u.parentType = b, D[1] = u.line;
|
1513
1525
|
for (let _ = 0; _ < l.length; _++)
|
1514
|
-
u.bMarks[_ + e] =
|
1515
|
-
return u.blkIndent =
|
1526
|
+
u.bMarks[_ + e] = o[_], u.tShift[_ + e] = l[_], u.sCount[_ + e] = s[_], u.bsCount[_ + e] = a[_];
|
1527
|
+
return u.blkIndent = g, !0;
|
1516
1528
|
}
|
1517
|
-
function
|
1529
|
+
function He(u, e, t, n) {
|
1518
1530
|
const r = u.eMarks[e];
|
1519
1531
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1520
1532
|
return !1;
|
1521
1533
|
let c = u.bMarks[e] + u.tShift[e];
|
1522
|
-
const
|
1523
|
-
if (
|
1534
|
+
const i = u.src.charCodeAt(c++);
|
1535
|
+
if (i !== 42 && i !== 45 && i !== 95)
|
1524
1536
|
return !1;
|
1525
|
-
let
|
1537
|
+
let o = 1;
|
1526
1538
|
for (; c < r; ) {
|
1527
1539
|
const s = u.src.charCodeAt(c++);
|
1528
|
-
if (s !==
|
1540
|
+
if (s !== i && !E(s))
|
1529
1541
|
return !1;
|
1530
|
-
s ===
|
1542
|
+
s === i && o++;
|
1531
1543
|
}
|
1532
|
-
if (
|
1544
|
+
if (o < 3)
|
1533
1545
|
return !1;
|
1534
1546
|
if (n)
|
1535
1547
|
return !0;
|
1536
1548
|
u.line = e + 1;
|
1537
1549
|
const a = u.push("hr", "hr", 0);
|
1538
|
-
return a.map = [e, u.line], a.markup = Array(
|
1550
|
+
return a.map = [e, u.line], a.markup = Array(o + 1).join(String.fromCharCode(i)), !0;
|
1539
1551
|
}
|
1540
|
-
function
|
1552
|
+
function Zu(u, e) {
|
1541
1553
|
const t = u.eMarks[e];
|
1542
1554
|
let n = u.bMarks[e] + u.tShift[e];
|
1543
1555
|
const r = u.src.charCodeAt(n++);
|
@@ -1578,16 +1590,16 @@ function Ve(u, e) {
|
|
1578
1590
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
1579
1591
|
}
|
1580
1592
|
function Ge(u, e, t, n) {
|
1581
|
-
let r, c,
|
1593
|
+
let r, c, i, o, a = e, s = !0;
|
1582
1594
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
1583
1595
|
return !1;
|
1584
1596
|
let l = !1;
|
1585
1597
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
|
1586
1598
|
let d, b, h;
|
1587
1599
|
if ((h = Hu(u, a)) >= 0) {
|
1588
|
-
if (d = !0,
|
1600
|
+
if (d = !0, i = u.bMarks[a] + u.tShift[a], b = Number(u.src.slice(i, h - 1)), l && b !== 1)
|
1589
1601
|
return !1;
|
1590
|
-
} else if ((h =
|
1602
|
+
} else if ((h = Zu(u, a)) >= 0)
|
1591
1603
|
d = !1;
|
1592
1604
|
else
|
1593
1605
|
return !1;
|
@@ -1595,10 +1607,10 @@ function Ge(u, e, t, n) {
|
|
1595
1607
|
return !1;
|
1596
1608
|
if (n)
|
1597
1609
|
return !0;
|
1598
|
-
const f = u.src.charCodeAt(h - 1),
|
1599
|
-
d ? (
|
1600
|
-
const
|
1601
|
-
|
1610
|
+
const f = u.src.charCodeAt(h - 1), g = u.tokens.length;
|
1611
|
+
d ? (o = u.push("ordered_list_open", "ol", 1), b !== 1 && (o.attrs = [["start", b]])) : o = u.push("bullet_list_open", "ul", 1);
|
1612
|
+
const k = [a, 0];
|
1613
|
+
o.map = k, o.markup = String.fromCharCode(f);
|
1602
1614
|
let D = !1;
|
1603
1615
|
const p = u.md.block.ruler.getRules("list"), _ = u.parentType;
|
1604
1616
|
for (u.parentType = "list"; a < t; ) {
|
@@ -1606,59 +1618,59 @@ function Ge(u, e, t, n) {
|
|
1606
1618
|
const x = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
1607
1619
|
let m = x;
|
1608
1620
|
for (; c < r; ) {
|
1609
|
-
const
|
1610
|
-
if (
|
1621
|
+
const U = u.src.charCodeAt(c);
|
1622
|
+
if (U === 9)
|
1611
1623
|
m += 4 - (m + u.bsCount[a]) % 4;
|
1612
|
-
else if (
|
1624
|
+
else if (U === 32)
|
1613
1625
|
m++;
|
1614
1626
|
else
|
1615
1627
|
break;
|
1616
1628
|
c++;
|
1617
1629
|
}
|
1618
1630
|
const C = c;
|
1619
|
-
let
|
1620
|
-
C >= r ?
|
1621
|
-
const T = x +
|
1622
|
-
|
1631
|
+
let F;
|
1632
|
+
C >= r ? F = 1 : F = m - x, F > 4 && (F = 1);
|
1633
|
+
const T = x + F;
|
1634
|
+
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(f);
|
1623
1635
|
const L = [a, 0];
|
1624
|
-
|
1625
|
-
const
|
1626
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = T, u.tight = !0, u.tShift[a] = C - u.bMarks[a], u.sCount[a] = m, C >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || D) && (s = !1), D = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent =
|
1636
|
+
o.map = L, d && (o.info = u.src.slice(i, h - 1));
|
1637
|
+
const J = u.tight, bu = u.tShift[a], E0 = u.sCount[a], y0 = u.listIndent;
|
1638
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = T, u.tight = !0, u.tShift[a] = C - u.bMarks[a], u.sCount[a] = m, C >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || D) && (s = !1), D = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = y0, u.tShift[a] = bu, u.sCount[a] = E0, u.tight = J, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(f), a = u.line, L[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
1627
1639
|
break;
|
1628
|
-
let
|
1629
|
-
for (let
|
1630
|
-
if (p[
|
1631
|
-
|
1640
|
+
let zu = !1;
|
1641
|
+
for (let U = 0, A0 = p.length; U < A0; U++)
|
1642
|
+
if (p[U](u, a, t, !0)) {
|
1643
|
+
zu = !0;
|
1632
1644
|
break;
|
1633
1645
|
}
|
1634
|
-
if (
|
1646
|
+
if (zu)
|
1635
1647
|
break;
|
1636
1648
|
if (d) {
|
1637
1649
|
if (h = Hu(u, a), h < 0)
|
1638
1650
|
break;
|
1639
|
-
|
1640
|
-
} else if (h =
|
1651
|
+
i = u.bMarks[a] + u.tShift[a];
|
1652
|
+
} else if (h = Zu(u, a), h < 0)
|
1641
1653
|
break;
|
1642
1654
|
if (f !== u.src.charCodeAt(h - 1))
|
1643
1655
|
break;
|
1644
1656
|
}
|
1645
|
-
return d ?
|
1657
|
+
return d ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(f), k[1] = a, u.line = a, u.parentType = _, s && Ve(u, g), !0;
|
1646
1658
|
}
|
1647
1659
|
function We(u, e, t, n) {
|
1648
|
-
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e],
|
1660
|
+
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e], i = e + 1;
|
1649
1661
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
1650
1662
|
return !1;
|
1651
|
-
function
|
1663
|
+
function o(p) {
|
1652
1664
|
const _ = u.lineMax;
|
1653
1665
|
if (p >= _ || u.isEmpty(p))
|
1654
1666
|
return null;
|
1655
1667
|
let x = !1;
|
1656
1668
|
if (u.sCount[p] - u.blkIndent > 3 && (x = !0), u.sCount[p] < 0 && (x = !0), !x) {
|
1657
|
-
const
|
1669
|
+
const F = u.md.block.ruler.getRules("reference"), T = u.parentType;
|
1658
1670
|
u.parentType = "reference";
|
1659
1671
|
let L = !1;
|
1660
|
-
for (let
|
1661
|
-
if (
|
1672
|
+
for (let J = 0, bu = F.length; J < bu; J++)
|
1673
|
+
if (F[J](u, p, _, !0)) {
|
1662
1674
|
L = !0;
|
1663
1675
|
break;
|
1664
1676
|
}
|
@@ -1679,11 +1691,11 @@ function We(u, e, t, n) {
|
|
1679
1691
|
s = r;
|
1680
1692
|
break;
|
1681
1693
|
} else if (p === 10) {
|
1682
|
-
const _ = i
|
1683
|
-
_ !== null && (a += _, c = a.length,
|
1694
|
+
const _ = o(i);
|
1695
|
+
_ !== null && (a += _, c = a.length, i++);
|
1684
1696
|
} else if (p === 92 && (r++, r < c && a.charCodeAt(r) === 10)) {
|
1685
|
-
const _ = i
|
1686
|
-
_ !== null && (a += _, c = a.length,
|
1697
|
+
const _ = o(i);
|
1698
|
+
_ !== null && (a += _, c = a.length, i++);
|
1687
1699
|
}
|
1688
1700
|
}
|
1689
1701
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
@@ -1691,8 +1703,8 @@ function We(u, e, t, n) {
|
|
1691
1703
|
for (r = s + 2; r < c; r++) {
|
1692
1704
|
const p = a.charCodeAt(r);
|
1693
1705
|
if (p === 10) {
|
1694
|
-
const _ = i
|
1695
|
-
_ !== null && (a += _, c = a.length,
|
1706
|
+
const _ = o(i);
|
1707
|
+
_ !== null && (a += _, c = a.length, i++);
|
1696
1708
|
} else if (!E(p))
|
1697
1709
|
break;
|
1698
1710
|
}
|
@@ -1703,31 +1715,31 @@ function We(u, e, t, n) {
|
|
1703
1715
|
if (!u.md.validateLink(d))
|
1704
1716
|
return !1;
|
1705
1717
|
r = l.pos;
|
1706
|
-
const b = r, h =
|
1718
|
+
const b = r, h = i, f = r;
|
1707
1719
|
for (; r < c; r++) {
|
1708
1720
|
const p = a.charCodeAt(r);
|
1709
1721
|
if (p === 10) {
|
1710
|
-
const _ = i
|
1711
|
-
_ !== null && (a += _, c = a.length,
|
1722
|
+
const _ = o(i);
|
1723
|
+
_ !== null && (a += _, c = a.length, i++);
|
1712
1724
|
} else if (!E(p))
|
1713
1725
|
break;
|
1714
1726
|
}
|
1715
|
-
let
|
1716
|
-
for (;
|
1717
|
-
const p = i
|
1727
|
+
let g = u.md.helpers.parseLinkTitle(a, r, c);
|
1728
|
+
for (; g.can_continue; ) {
|
1729
|
+
const p = o(i);
|
1718
1730
|
if (p === null)
|
1719
1731
|
break;
|
1720
|
-
a += p, r = c, c = a.length,
|
1732
|
+
a += p, r = c, c = a.length, i++, g = u.md.helpers.parseLinkTitle(a, r, c, g);
|
1721
1733
|
}
|
1722
|
-
let
|
1723
|
-
for (r < c && f !== r &&
|
1734
|
+
let k;
|
1735
|
+
for (r < c && f !== r && g.ok ? (k = g.str, r = g.pos) : (k = "", r = b, i = h); r < c; ) {
|
1724
1736
|
const p = a.charCodeAt(r);
|
1725
1737
|
if (!E(p))
|
1726
1738
|
break;
|
1727
1739
|
r++;
|
1728
1740
|
}
|
1729
|
-
if (r < c && a.charCodeAt(r) !== 10 &&
|
1730
|
-
for (
|
1741
|
+
if (r < c && a.charCodeAt(r) !== 10 && k)
|
1742
|
+
for (k = "", r = b, i = h; r < c; ) {
|
1731
1743
|
const p = a.charCodeAt(r);
|
1732
1744
|
if (!E(p))
|
1733
1745
|
break;
|
@@ -1735,8 +1747,8 @@ function We(u, e, t, n) {
|
|
1735
1747
|
}
|
1736
1748
|
if (r < c && a.charCodeAt(r) !== 10)
|
1737
1749
|
return !1;
|
1738
|
-
const D =
|
1739
|
-
return D ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[D] > "u" && (u.env.references[D] = { title:
|
1750
|
+
const D = fu(a.slice(1, s));
|
1751
|
+
return D ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[D] > "u" && (u.env.references[D] = { title: k, href: d }), u.line = i), !0) : !1;
|
1740
1752
|
}
|
1741
1753
|
const Je = [
|
1742
1754
|
"address",
|
@@ -1801,7 +1813,7 @@ const Je = [
|
|
1801
1813
|
"tr",
|
1802
1814
|
"track",
|
1803
1815
|
"ul"
|
1804
|
-
], Qe = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Xe = "[^\"'=<>`\\x00-\\x20]+",
|
1816
|
+
], Qe = "[a-zA-Z_:][a-zA-Z0-9:._-]*", Xe = "[^\"'=<>`\\x00-\\x20]+", Ke = "'[^']*'", Ye = '"[^"]*"', ut = "(?:" + Xe + "|" + Ke + "|" + Ye + ")", et = "(?:\\s+" + Qe + "(?:\\s*=\\s*" + ut + ")?)", a0 = "<[A-Za-z][A-Za-z0-9\\-]*" + et + "*\\s*\\/?>", s0 = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", tt = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", rt = "<[?][\\s\\S]*?[?]>", nt = "<![A-Za-z][^>]*>", ct = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", it = new RegExp("^(?:" + a0 + "|" + s0 + "|" + tt + "|" + rt + "|" + nt + "|" + ct + ")"), ot = new RegExp("^(?:" + a0 + "|" + s0 + ")"), Z = [
|
1805
1817
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
1806
1818
|
[/^<!--/, /-->/, !0],
|
1807
1819
|
[/^<\?/, /\?>/, !0],
|
@@ -1814,18 +1826,18 @@ function at(u, e, t, n) {
|
|
1814
1826
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1815
1827
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
1816
1828
|
return !1;
|
1817
|
-
let
|
1818
|
-
for (;
|
1829
|
+
let i = u.src.slice(r, c), o = 0;
|
1830
|
+
for (; o < Z.length && !Z[o][0].test(i); o++)
|
1819
1831
|
;
|
1820
|
-
if (
|
1832
|
+
if (o === Z.length)
|
1821
1833
|
return !1;
|
1822
1834
|
if (n)
|
1823
|
-
return
|
1835
|
+
return Z[o][2];
|
1824
1836
|
let a = e + 1;
|
1825
|
-
if (!
|
1837
|
+
if (!Z[o][1].test(i)) {
|
1826
1838
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
1827
|
-
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a],
|
1828
|
-
|
1839
|
+
if (r = u.bMarks[a] + u.tShift[a], c = u.eMarks[a], i = u.src.slice(r, c), Z[o][1].test(i)) {
|
1840
|
+
i.length !== 0 && a++;
|
1829
1841
|
break;
|
1830
1842
|
}
|
1831
1843
|
}
|
@@ -1837,25 +1849,25 @@ function st(u, e, t, n) {
|
|
1837
1849
|
let r = u.bMarks[e] + u.tShift[e], c = u.eMarks[e];
|
1838
1850
|
if (u.sCount[e] - u.blkIndent >= 4)
|
1839
1851
|
return !1;
|
1840
|
-
let
|
1841
|
-
if (
|
1852
|
+
let i = u.src.charCodeAt(r);
|
1853
|
+
if (i !== 35 || r >= c)
|
1842
1854
|
return !1;
|
1843
|
-
let
|
1844
|
-
for (
|
1845
|
-
|
1846
|
-
if (
|
1855
|
+
let o = 1;
|
1856
|
+
for (i = u.src.charCodeAt(++r); i === 35 && r < c && o <= 6; )
|
1857
|
+
o++, i = u.src.charCodeAt(++r);
|
1858
|
+
if (o > 6 || r < c && !E(i))
|
1847
1859
|
return !1;
|
1848
1860
|
if (n)
|
1849
1861
|
return !0;
|
1850
1862
|
c = u.skipSpacesBack(c, r);
|
1851
1863
|
const a = u.skipCharsBack(c, 35, r);
|
1852
1864
|
a > r && E(u.src.charCodeAt(a - 1)) && (c = a), u.line = e + 1;
|
1853
|
-
const s = u.push("heading_open", "h" + String(
|
1854
|
-
s.markup = "########".slice(0,
|
1865
|
+
const s = u.push("heading_open", "h" + String(o), 1);
|
1866
|
+
s.markup = "########".slice(0, o), s.map = [e, u.line];
|
1855
1867
|
const l = u.push("inline", "", 0);
|
1856
1868
|
l.content = u.src.slice(r, c).trim(), l.map = [e, u.line], l.children = [];
|
1857
|
-
const d = u.push("heading_close", "h" + String(
|
1858
|
-
return d.markup = "########".slice(0,
|
1869
|
+
const d = u.push("heading_close", "h" + String(o), -1);
|
1870
|
+
return d.markup = "########".slice(0, o), !0;
|
1859
1871
|
}
|
1860
1872
|
function lt(u, e, t) {
|
1861
1873
|
const n = u.md.block.ruler.getRules("paragraph");
|
@@ -1863,23 +1875,23 @@ function lt(u, e, t) {
|
|
1863
1875
|
return !1;
|
1864
1876
|
const r = u.parentType;
|
1865
1877
|
u.parentType = "paragraph";
|
1866
|
-
let c = 0,
|
1867
|
-
for (;
|
1868
|
-
if (u.sCount[
|
1878
|
+
let c = 0, i, o = e + 1;
|
1879
|
+
for (; o < t && !u.isEmpty(o); o++) {
|
1880
|
+
if (u.sCount[o] - u.blkIndent > 3)
|
1869
1881
|
continue;
|
1870
|
-
if (u.sCount[
|
1871
|
-
let h = u.bMarks[
|
1872
|
-
const f = u.eMarks[
|
1873
|
-
if (h < f && (
|
1874
|
-
c =
|
1882
|
+
if (u.sCount[o] >= u.blkIndent) {
|
1883
|
+
let h = u.bMarks[o] + u.tShift[o];
|
1884
|
+
const f = u.eMarks[o];
|
1885
|
+
if (h < f && (i = u.src.charCodeAt(h), (i === 45 || i === 61) && (h = u.skipChars(h, i), h = u.skipSpaces(h), h >= f))) {
|
1886
|
+
c = i === 61 ? 1 : 2;
|
1875
1887
|
break;
|
1876
1888
|
}
|
1877
1889
|
}
|
1878
|
-
if (u.sCount[
|
1890
|
+
if (u.sCount[o] < 0)
|
1879
1891
|
continue;
|
1880
1892
|
let b = !1;
|
1881
1893
|
for (let h = 0, f = n.length; h < f; h++)
|
1882
|
-
if (n[h](u,
|
1894
|
+
if (n[h](u, o, t, !0)) {
|
1883
1895
|
b = !0;
|
1884
1896
|
break;
|
1885
1897
|
}
|
@@ -1888,14 +1900,14 @@ function lt(u, e, t) {
|
|
1888
1900
|
}
|
1889
1901
|
if (!c)
|
1890
1902
|
return !1;
|
1891
|
-
const a = u.getLines(e,
|
1892
|
-
u.line =
|
1903
|
+
const a = u.getLines(e, o, u.blkIndent, !1).trim();
|
1904
|
+
u.line = o + 1;
|
1893
1905
|
const s = u.push("heading_open", "h" + String(c), 1);
|
1894
|
-
s.markup = String.fromCharCode(
|
1906
|
+
s.markup = String.fromCharCode(i), s.map = [e, u.line];
|
1895
1907
|
const l = u.push("inline", "", 0);
|
1896
1908
|
l.content = a, l.map = [e, u.line - 1], l.children = [];
|
1897
1909
|
const d = u.push("heading_close", "h" + String(c), -1);
|
1898
|
-
return d.markup = String.fromCharCode(
|
1910
|
+
return d.markup = String.fromCharCode(i), u.parentType = r, !0;
|
1899
1911
|
}
|
1900
1912
|
function ft(u, e, t) {
|
1901
1913
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
@@ -1912,21 +1924,21 @@ function ft(u, e, t) {
|
|
1912
1924
|
if (s)
|
1913
1925
|
break;
|
1914
1926
|
}
|
1915
|
-
const
|
1927
|
+
const i = u.getLines(e, c, u.blkIndent, !1).trim();
|
1916
1928
|
u.line = c;
|
1917
|
-
const
|
1918
|
-
|
1929
|
+
const o = u.push("paragraph_open", "p", 1);
|
1930
|
+
o.map = [e, u.line];
|
1919
1931
|
const a = u.push("inline", "", 0);
|
1920
|
-
return a.content =
|
1932
|
+
return a.content = i, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
1921
1933
|
}
|
1922
|
-
const
|
1934
|
+
const cu = [
|
1923
1935
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
1924
1936
|
// which can be terminated by this one.
|
1925
|
-
["table",
|
1937
|
+
["table", Ne, ["paragraph", "reference"]],
|
1926
1938
|
["code", je],
|
1927
1939
|
["fence", Ue, ["paragraph", "reference", "blockquote", "list"]],
|
1928
|
-
["blockquote",
|
1929
|
-
["hr",
|
1940
|
+
["blockquote", Ze, ["paragraph", "reference", "blockquote", "list"]],
|
1941
|
+
["hr", He, ["paragraph", "reference", "blockquote", "list"]],
|
1930
1942
|
["list", Ge, ["paragraph", "reference", "blockquote"]],
|
1931
1943
|
["reference", We],
|
1932
1944
|
["html_block", at, ["paragraph", "reference", "blockquote"]],
|
@@ -1934,15 +1946,15 @@ const ru = [
|
|
1934
1946
|
["lheading", lt],
|
1935
1947
|
["paragraph", ft]
|
1936
1948
|
];
|
1937
|
-
function
|
1938
|
-
this.ruler = new
|
1939
|
-
for (let u = 0; u <
|
1940
|
-
this.ruler.push(
|
1949
|
+
function du() {
|
1950
|
+
this.ruler = new v();
|
1951
|
+
for (let u = 0; u < cu.length; u++)
|
1952
|
+
this.ruler.push(cu[u][0], cu[u][1], { alt: (cu[u][2] || []).slice() });
|
1941
1953
|
}
|
1942
|
-
|
1954
|
+
du.prototype.tokenize = function(u, e, t) {
|
1943
1955
|
const n = this.ruler.getRules(""), r = n.length, c = u.md.options.maxNesting;
|
1944
|
-
let
|
1945
|
-
for (;
|
1956
|
+
let i = e, o = !1;
|
1957
|
+
for (; i < t && (u.line = i = u.skipEmptyLines(i), !(i >= t || u.sCount[i] < u.blkIndent)); ) {
|
1946
1958
|
if (u.level >= c) {
|
1947
1959
|
u.line = t;
|
1948
1960
|
break;
|
@@ -1950,45 +1962,45 @@ su.prototype.tokenize = function(u, e, t) {
|
|
1950
1962
|
const a = u.line;
|
1951
1963
|
let s = !1;
|
1952
1964
|
for (let l = 0; l < r; l++)
|
1953
|
-
if (s = n[l](u,
|
1965
|
+
if (s = n[l](u, i, t, !1), s) {
|
1954
1966
|
if (a >= u.line)
|
1955
1967
|
throw new Error("block rule didn't increment state.line");
|
1956
1968
|
break;
|
1957
1969
|
}
|
1958
1970
|
if (!s)
|
1959
1971
|
throw new Error("none of the block rules matched");
|
1960
|
-
u.tight = !
|
1972
|
+
u.tight = !o, u.isEmpty(u.line - 1) && (o = !0), i = u.line, i < t && u.isEmpty(i) && (o = !0, i++, u.line = i);
|
1961
1973
|
}
|
1962
1974
|
};
|
1963
|
-
|
1975
|
+
du.prototype.parse = function(u, e, t, n) {
|
1964
1976
|
if (!u)
|
1965
1977
|
return;
|
1966
1978
|
const r = new this.State(u, e, t, n);
|
1967
1979
|
this.tokenize(r, r.line, r.lineMax);
|
1968
1980
|
};
|
1969
|
-
|
1970
|
-
function
|
1981
|
+
du.prototype.State = q;
|
1982
|
+
function eu(u, e, t, n) {
|
1971
1983
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
1972
1984
|
}
|
1973
|
-
|
1985
|
+
eu.prototype.pushPending = function() {
|
1974
1986
|
const u = new I("text", "", 0);
|
1975
1987
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
1976
1988
|
};
|
1977
|
-
|
1989
|
+
eu.prototype.push = function(u, e, t) {
|
1978
1990
|
this.pending && this.pushPending();
|
1979
1991
|
const n = new I(u, e, t);
|
1980
1992
|
let r = null;
|
1981
1993
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
1982
1994
|
};
|
1983
|
-
|
1995
|
+
eu.prototype.scanDelims = function(u, e) {
|
1984
1996
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
1985
1997
|
let c = u;
|
1986
1998
|
for (; c < t && this.src.charCodeAt(c) === n; )
|
1987
1999
|
c++;
|
1988
|
-
const
|
1989
|
-
return { can_open: b && (e || !h || a), can_close: h && (e || !b || s), length:
|
2000
|
+
const i = c - u, o = c < t ? this.src.charCodeAt(c) : 32, a = K(r) || X(String.fromCharCode(r)), s = K(o) || X(String.fromCharCode(o)), l = Q(r), d = Q(o), b = !d && (!s || l || a), h = !l && (!a || d || s);
|
2001
|
+
return { can_open: b && (e || !h || a), can_close: h && (e || !b || s), length: i };
|
1990
2002
|
};
|
1991
|
-
|
2003
|
+
eu.prototype.Token = I;
|
1992
2004
|
function dt(u) {
|
1993
2005
|
switch (u) {
|
1994
2006
|
case 10:
|
@@ -2035,14 +2047,14 @@ function pt(u, e) {
|
|
2035
2047
|
const r = u.pending.match(bt);
|
2036
2048
|
if (!r)
|
2037
2049
|
return !1;
|
2038
|
-
const c = r[1],
|
2039
|
-
if (!
|
2050
|
+
const c = r[1], i = u.md.linkify.matchAtStart(u.src.slice(t - c.length));
|
2051
|
+
if (!i)
|
2040
2052
|
return !1;
|
2041
|
-
let
|
2042
|
-
if (
|
2053
|
+
let o = i.url;
|
2054
|
+
if (o.length <= c.length)
|
2043
2055
|
return !1;
|
2044
|
-
|
2045
|
-
const a = u.md.normalizeLink(
|
2056
|
+
o = o.replace(/\*+$/, "");
|
2057
|
+
const a = u.md.normalizeLink(o);
|
2046
2058
|
if (!u.md.validateLink(a))
|
2047
2059
|
return !1;
|
2048
2060
|
if (!e) {
|
@@ -2050,11 +2062,11 @@ function pt(u, e) {
|
|
2050
2062
|
const s = u.push("link_open", "a", 1);
|
2051
2063
|
s.attrs = [["href", a]], s.markup = "linkify", s.info = "auto";
|
2052
2064
|
const l = u.push("text", "", 0);
|
2053
|
-
l.content = u.md.normalizeLinkText(
|
2065
|
+
l.content = u.md.normalizeLinkText(o);
|
2054
2066
|
const d = u.push("link_close", "a", -1);
|
2055
2067
|
d.markup = "linkify", d.info = "auto";
|
2056
2068
|
}
|
2057
|
-
return u.pos +=
|
2069
|
+
return u.pos += o.length - c.length, !0;
|
2058
2070
|
}
|
2059
2071
|
function xt(u, e) {
|
2060
2072
|
let t = u.pos;
|
@@ -2076,11 +2088,11 @@ function xt(u, e) {
|
|
2076
2088
|
t++;
|
2077
2089
|
return u.pos = t, !0;
|
2078
2090
|
}
|
2079
|
-
const
|
2091
|
+
const Iu = [];
|
2080
2092
|
for (let u = 0; u < 256; u++)
|
2081
|
-
|
2093
|
+
Iu.push(0);
|
2082
2094
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
2083
|
-
|
2095
|
+
Iu[u.charCodeAt(0)] = 1;
|
2084
2096
|
});
|
2085
2097
|
function _t(u, e) {
|
2086
2098
|
let t = u.pos;
|
@@ -2095,13 +2107,13 @@ function _t(u, e) {
|
|
2095
2107
|
}
|
2096
2108
|
let c = u.src[t];
|
2097
2109
|
if (r >= 55296 && r <= 56319 && t + 1 < n) {
|
2098
|
-
const
|
2099
|
-
|
2110
|
+
const o = u.src.charCodeAt(t + 1);
|
2111
|
+
o >= 56320 && o <= 57343 && (c += u.src[t + 1], t++);
|
2100
2112
|
}
|
2101
|
-
const
|
2113
|
+
const i = "\\" + c;
|
2102
2114
|
if (!e) {
|
2103
|
-
const
|
2104
|
-
r < 256 &&
|
2115
|
+
const o = u.push("text_special", "", 0);
|
2116
|
+
r < 256 && Iu[r] !== 0 ? o.content = c : o.content = i, o.markup = i, o.info = "escape";
|
2105
2117
|
}
|
2106
2118
|
return u.pos = t + 1, !0;
|
2107
2119
|
}
|
@@ -2114,38 +2126,38 @@ function mt(u, e) {
|
|
2114
2126
|
const c = u.posMax;
|
2115
2127
|
for (; t < c && u.src.charCodeAt(t) === 96; )
|
2116
2128
|
t++;
|
2117
|
-
const
|
2118
|
-
if (u.backticksScanned && (u.backticks[
|
2119
|
-
return e || (u.pending +=
|
2129
|
+
const i = u.src.slice(r, t), o = i.length;
|
2130
|
+
if (u.backticksScanned && (u.backticks[o] || 0) <= r)
|
2131
|
+
return e || (u.pending += i), u.pos += o, !0;
|
2120
2132
|
let a = t, s;
|
2121
2133
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
2122
2134
|
for (a = s + 1; a < c && u.src.charCodeAt(a) === 96; )
|
2123
2135
|
a++;
|
2124
2136
|
const l = a - s;
|
2125
|
-
if (l ===
|
2137
|
+
if (l === o) {
|
2126
2138
|
if (!e) {
|
2127
2139
|
const d = u.push("code_inline", "code", 0);
|
2128
|
-
d.markup =
|
2140
|
+
d.markup = i, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
2129
2141
|
}
|
2130
2142
|
return u.pos = a, !0;
|
2131
2143
|
}
|
2132
2144
|
u.backticks[l] = s;
|
2133
2145
|
}
|
2134
|
-
return u.backticksScanned = !0, e || (u.pending +=
|
2146
|
+
return u.backticksScanned = !0, e || (u.pending += i), u.pos += o, !0;
|
2135
2147
|
}
|
2136
|
-
function
|
2148
|
+
function gt(u, e) {
|
2137
2149
|
const t = u.pos, n = u.src.charCodeAt(t);
|
2138
2150
|
if (e || n !== 126)
|
2139
2151
|
return !1;
|
2140
2152
|
const r = u.scanDelims(u.pos, !0);
|
2141
2153
|
let c = r.length;
|
2142
|
-
const
|
2154
|
+
const i = String.fromCharCode(n);
|
2143
2155
|
if (c < 2)
|
2144
2156
|
return !1;
|
2145
|
-
let
|
2146
|
-
c % 2 && (
|
2157
|
+
let o;
|
2158
|
+
c % 2 && (o = u.push("text", "", 0), o.content = i, c--);
|
2147
2159
|
for (let a = 0; a < c; a += 2)
|
2148
|
-
|
2160
|
+
o = u.push("text", "", 0), o.content = i + i, u.delimiters.push({
|
2149
2161
|
marker: n,
|
2150
2162
|
length: 0,
|
2151
2163
|
// disable "rule of 3" length checks meant for emphasis
|
@@ -2156,33 +2168,33 @@ function kt(u, e) {
|
|
2156
2168
|
});
|
2157
2169
|
return u.pos += r.length, !0;
|
2158
2170
|
}
|
2159
|
-
function
|
2171
|
+
function Vu(u, e) {
|
2160
2172
|
let t;
|
2161
2173
|
const n = [], r = e.length;
|
2162
2174
|
for (let c = 0; c < r; c++) {
|
2163
|
-
const
|
2164
|
-
if (
|
2175
|
+
const i = e[c];
|
2176
|
+
if (i.marker !== 126 || i.end === -1)
|
2165
2177
|
continue;
|
2166
|
-
const
|
2167
|
-
t = u.tokens[
|
2178
|
+
const o = e[i.end];
|
2179
|
+
t = u.tokens[i.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[o.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[o.token - 1].type === "text" && u.tokens[o.token - 1].content === "~" && n.push(o.token - 1);
|
2168
2180
|
}
|
2169
2181
|
for (; n.length; ) {
|
2170
2182
|
const c = n.pop();
|
2171
|
-
let
|
2172
|
-
for (;
|
2173
|
-
|
2174
|
-
|
2183
|
+
let i = c + 1;
|
2184
|
+
for (; i < u.tokens.length && u.tokens[i].type === "s_close"; )
|
2185
|
+
i++;
|
2186
|
+
i--, c !== i && (t = u.tokens[i], u.tokens[i] = u.tokens[c], u.tokens[c] = t);
|
2175
2187
|
}
|
2176
2188
|
}
|
2177
|
-
function
|
2189
|
+
function kt(u) {
|
2178
2190
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2179
|
-
|
2191
|
+
Vu(u, u.delimiters);
|
2180
2192
|
for (let n = 0; n < t; n++)
|
2181
|
-
e[n] && e[n].delimiters &&
|
2193
|
+
e[n] && e[n].delimiters && Vu(u, e[n].delimiters);
|
2182
2194
|
}
|
2183
2195
|
const l0 = {
|
2184
|
-
tokenize:
|
2185
|
-
postProcess:
|
2196
|
+
tokenize: gt,
|
2197
|
+
postProcess: kt
|
2186
2198
|
};
|
2187
2199
|
function Ct(u, e) {
|
2188
2200
|
const t = u.pos, n = u.src.charCodeAt(t);
|
@@ -2190,8 +2202,8 @@ function Ct(u, e) {
|
|
2190
2202
|
return !1;
|
2191
2203
|
const r = u.scanDelims(u.pos, n === 42);
|
2192
2204
|
for (let c = 0; c < r.length; c++) {
|
2193
|
-
const
|
2194
|
-
|
2205
|
+
const i = u.push("text", "", 0);
|
2206
|
+
i.content = String.fromCharCode(n), u.delimiters.push({
|
2195
2207
|
// Char code of the starting marker (number).
|
2196
2208
|
//
|
2197
2209
|
marker: n,
|
@@ -2214,32 +2226,32 @@ function Ct(u, e) {
|
|
2214
2226
|
}
|
2215
2227
|
return u.pos += r.length, !0;
|
2216
2228
|
}
|
2217
|
-
function
|
2229
|
+
function Gu(u, e) {
|
2218
2230
|
const t = e.length;
|
2219
2231
|
for (let n = t - 1; n >= 0; n--) {
|
2220
2232
|
const r = e[n];
|
2221
2233
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
2222
2234
|
continue;
|
2223
|
-
const c = e[r.end],
|
2235
|
+
const c = e[r.end], i = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
2224
2236
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
2225
|
-
e[r.end + 1].token === c.token + 1,
|
2226
|
-
a.type =
|
2237
|
+
e[r.end + 1].token === c.token + 1, o = String.fromCharCode(r.marker), a = u.tokens[r.token];
|
2238
|
+
a.type = i ? "strong_open" : "em_open", a.tag = i ? "strong" : "em", a.nesting = 1, a.markup = i ? o + o : o, a.content = "";
|
2227
2239
|
const s = u.tokens[c.token];
|
2228
|
-
s.type =
|
2240
|
+
s.type = i ? "strong_close" : "em_close", s.tag = i ? "strong" : "em", s.nesting = -1, s.markup = i ? o + o : o, s.content = "", i && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
2229
2241
|
}
|
2230
2242
|
}
|
2231
2243
|
function Dt(u) {
|
2232
2244
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2233
|
-
|
2245
|
+
Gu(u, u.delimiters);
|
2234
2246
|
for (let n = 0; n < t; n++)
|
2235
|
-
e[n] && e[n].delimiters &&
|
2247
|
+
e[n] && e[n].delimiters && Gu(u, e[n].delimiters);
|
2236
2248
|
}
|
2237
2249
|
const f0 = {
|
2238
2250
|
tokenize: Ct,
|
2239
2251
|
postProcess: Dt
|
2240
2252
|
};
|
2241
2253
|
function Et(u, e) {
|
2242
|
-
let t, n, r, c,
|
2254
|
+
let t, n, r, c, i = "", o = "", a = u.pos, s = !0;
|
2243
2255
|
if (u.src.charCodeAt(u.pos) !== 91)
|
2244
2256
|
return !1;
|
2245
2257
|
const l = u.pos, d = u.posMax, b = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
@@ -2252,10 +2264,10 @@ function Et(u, e) {
|
|
2252
2264
|
if (f >= d)
|
2253
2265
|
return !1;
|
2254
2266
|
if (a = f, r = u.md.helpers.parseLinkDestination(u.src, f, u.posMax), r.ok) {
|
2255
|
-
for (
|
2267
|
+
for (i = u.md.normalizeLink(r.str), u.md.validateLink(i) ? f = r.pos : i = "", a = f; f < d && (t = u.src.charCodeAt(f), !(!E(t) && t !== 10)); f++)
|
2256
2268
|
;
|
2257
2269
|
if (r = u.md.helpers.parseLinkTitle(u.src, f, u.posMax), f < d && a !== f && r.ok)
|
2258
|
-
for (
|
2270
|
+
for (o = r.str, f = r.pos; f < d && (t = u.src.charCodeAt(f), !(!E(t) && t !== 10)); f++)
|
2259
2271
|
;
|
2260
2272
|
}
|
2261
2273
|
(f >= d || u.src.charCodeAt(f) !== 41) && (s = !0), f++;
|
@@ -2263,19 +2275,19 @@ function Et(u, e) {
|
|
2263
2275
|
if (s) {
|
2264
2276
|
if (typeof u.env.references > "u")
|
2265
2277
|
return !1;
|
2266
|
-
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? n = u.src.slice(a, f++) : f = h + 1) : f = h + 1, n || (n = u.src.slice(b, h)), c = u.env.references[
|
2278
|
+
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? n = u.src.slice(a, f++) : f = h + 1) : f = h + 1, n || (n = u.src.slice(b, h)), c = u.env.references[fu(n)], !c)
|
2267
2279
|
return u.pos = l, !1;
|
2268
|
-
|
2280
|
+
i = c.href, o = c.title;
|
2269
2281
|
}
|
2270
2282
|
if (!e) {
|
2271
2283
|
u.pos = b, u.posMax = h;
|
2272
|
-
const
|
2273
|
-
|
2284
|
+
const g = u.push("link_open", "a", 1), k = [["href", i]];
|
2285
|
+
g.attrs = k, o && k.push(["title", o]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
2274
2286
|
}
|
2275
2287
|
return u.pos = f, u.posMax = d, !0;
|
2276
2288
|
}
|
2277
|
-
function
|
2278
|
-
let t, n, r, c,
|
2289
|
+
function yt(u, e) {
|
2290
|
+
let t, n, r, c, i, o, a, s, l = "";
|
2279
2291
|
const d = u.pos, b = u.posMax;
|
2280
2292
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
2281
2293
|
return !1;
|
@@ -2287,10 +2299,10 @@ function At(u, e) {
|
|
2287
2299
|
;
|
2288
2300
|
if (c >= b)
|
2289
2301
|
return !1;
|
2290
|
-
for (s = c,
|
2302
|
+
for (s = c, o = u.md.helpers.parseLinkDestination(u.src, c, u.posMax), o.ok && (l = u.md.normalizeLink(o.str), u.md.validateLink(l) ? c = o.pos : l = ""), s = c; c < b && (t = u.src.charCodeAt(c), !(!E(t) && t !== 10)); c++)
|
2291
2303
|
;
|
2292
|
-
if (
|
2293
|
-
for (a =
|
2304
|
+
if (o = u.md.helpers.parseLinkTitle(u.src, c, u.posMax), c < b && s !== c && o.ok)
|
2305
|
+
for (a = o.str, c = o.pos; c < b && (t = u.src.charCodeAt(c), !(!E(t) && t !== 10)); c++)
|
2294
2306
|
;
|
2295
2307
|
else
|
2296
2308
|
a = "";
|
@@ -2300,26 +2312,26 @@ function At(u, e) {
|
|
2300
2312
|
} else {
|
2301
2313
|
if (typeof u.env.references > "u")
|
2302
2314
|
return !1;
|
2303
|
-
if (c < b && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c = f + 1) : c = f + 1, r || (r = u.src.slice(h, f)),
|
2315
|
+
if (c < b && u.src.charCodeAt(c) === 91 ? (s = c + 1, c = u.md.helpers.parseLinkLabel(u, c), c >= 0 ? r = u.src.slice(s, c++) : c = f + 1) : c = f + 1, r || (r = u.src.slice(h, f)), i = u.env.references[fu(r)], !i)
|
2304
2316
|
return u.pos = d, !1;
|
2305
|
-
l =
|
2317
|
+
l = i.href, a = i.title;
|
2306
2318
|
}
|
2307
2319
|
if (!e) {
|
2308
2320
|
n = u.src.slice(h, f);
|
2309
|
-
const
|
2321
|
+
const g = [];
|
2310
2322
|
u.md.inline.parse(
|
2311
2323
|
n,
|
2312
2324
|
u.md,
|
2313
2325
|
u.env,
|
2314
|
-
|
2326
|
+
g
|
2315
2327
|
);
|
2316
|
-
const
|
2317
|
-
|
2328
|
+
const k = u.push("image", "img", 0), D = [["src", l], ["alt", ""]];
|
2329
|
+
k.attrs = D, k.children = g, k.content = n, a && D.push(["title", a]);
|
2318
2330
|
}
|
2319
2331
|
return u.pos = c, u.posMax = b, !0;
|
2320
2332
|
}
|
2321
|
-
const
|
2322
|
-
function
|
2333
|
+
const At = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Ft = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
2334
|
+
function vt(u, e) {
|
2323
2335
|
let t = u.pos;
|
2324
2336
|
if (u.src.charCodeAt(t) !== 60)
|
2325
2337
|
return !1;
|
@@ -2327,20 +2339,20 @@ function wt(u, e) {
|
|
2327
2339
|
for (; ; ) {
|
2328
2340
|
if (++t >= r)
|
2329
2341
|
return !1;
|
2330
|
-
const
|
2331
|
-
if (
|
2342
|
+
const i = u.src.charCodeAt(t);
|
2343
|
+
if (i === 60)
|
2332
2344
|
return !1;
|
2333
|
-
if (
|
2345
|
+
if (i === 62)
|
2334
2346
|
break;
|
2335
2347
|
}
|
2336
2348
|
const c = u.src.slice(n + 1, t);
|
2337
|
-
if (
|
2338
|
-
const
|
2339
|
-
if (!u.md.validateLink(
|
2349
|
+
if (Ft.test(c)) {
|
2350
|
+
const i = u.md.normalizeLink(c);
|
2351
|
+
if (!u.md.validateLink(i))
|
2340
2352
|
return !1;
|
2341
2353
|
if (!e) {
|
2342
|
-
const
|
2343
|
-
|
2354
|
+
const o = u.push("link_open", "a", 1);
|
2355
|
+
o.attrs = [["href", i]], o.markup = "autolink", o.info = "auto";
|
2344
2356
|
const a = u.push("text", "", 0);
|
2345
2357
|
a.content = u.md.normalizeLinkText(c);
|
2346
2358
|
const s = u.push("link_close", "a", -1);
|
@@ -2348,13 +2360,13 @@ function wt(u, e) {
|
|
2348
2360
|
}
|
2349
2361
|
return u.pos += c.length + 2, !0;
|
2350
2362
|
}
|
2351
|
-
if (
|
2352
|
-
const
|
2353
|
-
if (!u.md.validateLink(
|
2363
|
+
if (At.test(c)) {
|
2364
|
+
const i = u.md.normalizeLink("mailto:" + c);
|
2365
|
+
if (!u.md.validateLink(i))
|
2354
2366
|
return !1;
|
2355
2367
|
if (!e) {
|
2356
|
-
const
|
2357
|
-
|
2368
|
+
const o = u.push("link_open", "a", 1);
|
2369
|
+
o.attrs = [["href", i]], o.markup = "autolink", o.info = "auto";
|
2358
2370
|
const a = u.push("text", "", 0);
|
2359
2371
|
a.content = u.md.normalizeLinkText(c);
|
2360
2372
|
const s = u.push("link_close", "a", -1);
|
@@ -2364,7 +2376,7 @@ function wt(u, e) {
|
|
2364
2376
|
}
|
2365
2377
|
return !1;
|
2366
2378
|
}
|
2367
|
-
function
|
2379
|
+
function wt(u) {
|
2368
2380
|
return /^<a[>\s]/i.test(u);
|
2369
2381
|
}
|
2370
2382
|
function St(u) {
|
@@ -2387,8 +2399,8 @@ function It(u, e) {
|
|
2387
2399
|
if (!c)
|
2388
2400
|
return !1;
|
2389
2401
|
if (!e) {
|
2390
|
-
const
|
2391
|
-
|
2402
|
+
const i = u.push("html_inline", "", 0);
|
2403
|
+
i.content = c[0], wt(i.content) && u.linkLevel++, St(i.content) && u.linkLevel--;
|
2392
2404
|
}
|
2393
2405
|
return u.pos += c[0].length, !0;
|
2394
2406
|
}
|
@@ -2401,19 +2413,19 @@ function Mt(u, e) {
|
|
2401
2413
|
const c = u.src.slice(t).match(Bt);
|
2402
2414
|
if (c) {
|
2403
2415
|
if (!e) {
|
2404
|
-
const
|
2405
|
-
|
2416
|
+
const i = c[1][0].toLowerCase() === "x" ? parseInt(c[1].slice(1), 16) : parseInt(c[1], 10), o = u.push("text_special", "", 0);
|
2417
|
+
o.content = Su(i) ? ou(i) : ou(65533), o.markup = c[0], o.info = "entity";
|
2406
2418
|
}
|
2407
2419
|
return u.pos += c[0].length, !0;
|
2408
2420
|
}
|
2409
2421
|
} else {
|
2410
2422
|
const c = u.src.slice(t).match(zt);
|
2411
2423
|
if (c) {
|
2412
|
-
const
|
2413
|
-
if (
|
2424
|
+
const i = r0(c[0]);
|
2425
|
+
if (i !== c[0]) {
|
2414
2426
|
if (!e) {
|
2415
|
-
const
|
2416
|
-
|
2427
|
+
const o = u.push("text_special", "", 0);
|
2428
|
+
o.content = i, o.markup = c[0], o.info = "entity";
|
2417
2429
|
}
|
2418
2430
|
return u.pos += c[0].length, !0;
|
2419
2431
|
}
|
@@ -2421,47 +2433,47 @@ function Mt(u, e) {
|
|
2421
2433
|
}
|
2422
2434
|
return !1;
|
2423
2435
|
}
|
2424
|
-
function
|
2436
|
+
function Wu(u) {
|
2425
2437
|
const e = {}, t = u.length;
|
2426
2438
|
if (!t)
|
2427
2439
|
return;
|
2428
2440
|
let n = 0, r = -2;
|
2429
2441
|
const c = [];
|
2430
|
-
for (let
|
2431
|
-
const
|
2432
|
-
if (c.push(0), (u[n].marker !==
|
2442
|
+
for (let i = 0; i < t; i++) {
|
2443
|
+
const o = u[i];
|
2444
|
+
if (c.push(0), (u[n].marker !== o.marker || r !== o.token - 1) && (n = i), r = o.token, o.length = o.length || 0, !o.close)
|
2433
2445
|
continue;
|
2434
|
-
e.hasOwnProperty(
|
2435
|
-
const a = e[
|
2446
|
+
e.hasOwnProperty(o.marker) || (e[o.marker] = [-1, -1, -1, -1, -1, -1]);
|
2447
|
+
const a = e[o.marker][(o.open ? 3 : 0) + o.length % 3];
|
2436
2448
|
let s = n - c[n] - 1, l = s;
|
2437
2449
|
for (; s > a; s -= c[s] + 1) {
|
2438
2450
|
const d = u[s];
|
2439
|
-
if (d.marker ===
|
2451
|
+
if (d.marker === o.marker && d.open && d.end < 0) {
|
2440
2452
|
let b = !1;
|
2441
|
-
if ((d.close ||
|
2453
|
+
if ((d.close || o.open) && (d.length + o.length) % 3 === 0 && (d.length % 3 !== 0 || o.length % 3 !== 0) && (b = !0), !b) {
|
2442
2454
|
const h = s > 0 && !u[s - 1].open ? c[s - 1] + 1 : 0;
|
2443
|
-
c[
|
2455
|
+
c[i] = i - s + h, c[s] = h, o.open = !1, d.end = i, d.close = !1, l = -1, r = -2;
|
2444
2456
|
break;
|
2445
2457
|
}
|
2446
2458
|
}
|
2447
2459
|
}
|
2448
|
-
l !== -1 && (e[
|
2460
|
+
l !== -1 && (e[o.marker][(o.open ? 3 : 0) + (o.length || 0) % 3] = l);
|
2449
2461
|
}
|
2450
2462
|
}
|
2451
2463
|
function qt(u) {
|
2452
2464
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
2453
|
-
|
2465
|
+
Wu(u.delimiters);
|
2454
2466
|
for (let n = 0; n < t; n++)
|
2455
|
-
e[n] && e[n].delimiters &&
|
2467
|
+
e[n] && e[n].delimiters && Wu(e[n].delimiters);
|
2456
2468
|
}
|
2457
|
-
function
|
2469
|
+
function Rt(u) {
|
2458
2470
|
let e, t, n = 0;
|
2459
2471
|
const r = u.tokens, c = u.tokens.length;
|
2460
2472
|
for (e = t = 0; e < c; e++)
|
2461
2473
|
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < c && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
2462
2474
|
e !== t && (r.length = t);
|
2463
2475
|
}
|
2464
|
-
const
|
2476
|
+
const mu = [
|
2465
2477
|
["text", ht],
|
2466
2478
|
["linkify", pt],
|
2467
2479
|
["newline", xt],
|
@@ -2470,58 +2482,58 @@ const pu = [
|
|
2470
2482
|
["strikethrough", l0.tokenize],
|
2471
2483
|
["emphasis", f0.tokenize],
|
2472
2484
|
["link", Et],
|
2473
|
-
["image",
|
2474
|
-
["autolink",
|
2485
|
+
["image", yt],
|
2486
|
+
["autolink", vt],
|
2475
2487
|
["html_inline", It],
|
2476
2488
|
["entity", Mt]
|
2477
|
-
],
|
2489
|
+
], gu = [
|
2478
2490
|
["balance_pairs", qt],
|
2479
2491
|
["strikethrough", l0.postProcess],
|
2480
2492
|
["emphasis", f0.postProcess],
|
2481
2493
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
2482
2494
|
// rule below merges unused segments back with the rest of the text
|
2483
|
-
["fragments_join",
|
2495
|
+
["fragments_join", Rt]
|
2484
2496
|
];
|
2485
|
-
function
|
2486
|
-
this.ruler = new
|
2487
|
-
for (let u = 0; u <
|
2488
|
-
this.ruler.push(
|
2489
|
-
this.ruler2 = new
|
2490
|
-
for (let u = 0; u <
|
2491
|
-
this.ruler2.push(
|
2492
|
-
}
|
2493
|
-
|
2497
|
+
function tu() {
|
2498
|
+
this.ruler = new v();
|
2499
|
+
for (let u = 0; u < mu.length; u++)
|
2500
|
+
this.ruler.push(mu[u][0], mu[u][1]);
|
2501
|
+
this.ruler2 = new v();
|
2502
|
+
for (let u = 0; u < gu.length; u++)
|
2503
|
+
this.ruler2.push(gu[u][0], gu[u][1]);
|
2504
|
+
}
|
2505
|
+
tu.prototype.skipToken = function(u) {
|
2494
2506
|
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, c = u.cache;
|
2495
2507
|
if (typeof c[e] < "u") {
|
2496
2508
|
u.pos = c[e];
|
2497
2509
|
return;
|
2498
2510
|
}
|
2499
|
-
let
|
2511
|
+
let i = !1;
|
2500
2512
|
if (u.level < r) {
|
2501
|
-
for (let
|
2502
|
-
if (u.level++,
|
2513
|
+
for (let o = 0; o < n; o++)
|
2514
|
+
if (u.level++, i = t[o](u, !0), u.level--, i) {
|
2503
2515
|
if (e >= u.pos)
|
2504
2516
|
throw new Error("inline rule didn't increment state.pos");
|
2505
2517
|
break;
|
2506
2518
|
}
|
2507
2519
|
} else
|
2508
2520
|
u.pos = u.posMax;
|
2509
|
-
|
2521
|
+
i || u.pos++, c[e] = u.pos;
|
2510
2522
|
};
|
2511
|
-
|
2523
|
+
tu.prototype.tokenize = function(u) {
|
2512
2524
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
2513
2525
|
for (; u.pos < n; ) {
|
2514
2526
|
const c = u.pos;
|
2515
|
-
let
|
2527
|
+
let i = !1;
|
2516
2528
|
if (u.level < r) {
|
2517
|
-
for (let
|
2518
|
-
if (
|
2529
|
+
for (let o = 0; o < t; o++)
|
2530
|
+
if (i = e[o](u, !1), i) {
|
2519
2531
|
if (c >= u.pos)
|
2520
2532
|
throw new Error("inline rule didn't increment state.pos");
|
2521
2533
|
break;
|
2522
2534
|
}
|
2523
2535
|
}
|
2524
|
-
if (
|
2536
|
+
if (i) {
|
2525
2537
|
if (u.pos >= n)
|
2526
2538
|
break;
|
2527
2539
|
continue;
|
@@ -2530,17 +2542,17 @@ eu.prototype.tokenize = function(u) {
|
|
2530
2542
|
}
|
2531
2543
|
u.pending && u.pushPending();
|
2532
2544
|
};
|
2533
|
-
|
2545
|
+
tu.prototype.parse = function(u, e, t, n) {
|
2534
2546
|
const r = new this.State(u, e, t, n);
|
2535
2547
|
this.tokenize(r);
|
2536
|
-
const c = this.ruler2.getRules(""),
|
2537
|
-
for (let
|
2538
|
-
c[
|
2548
|
+
const c = this.ruler2.getRules(""), i = c.length;
|
2549
|
+
for (let o = 0; o < i; o++)
|
2550
|
+
c[o](r);
|
2539
2551
|
};
|
2540
|
-
|
2541
|
-
function
|
2552
|
+
tu.prototype.State = eu;
|
2553
|
+
function Lt(u) {
|
2542
2554
|
const e = {};
|
2543
|
-
u = u || {}, e.src_Any =
|
2555
|
+
u = u || {}, e.src_Any = Ku.source, e.src_Cc = Yu.source, e.src_Z = e0.source, e.src_P = vu.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
2544
2556
|
const t = "[><|]";
|
2545
2557
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
2546
2558
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
@@ -2550,29 +2562,29 @@ function Rt(u) {
|
|
2550
2562
|
// but can start with > (markdown blockquote)
|
2551
2563
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
2552
2564
|
}
|
2553
|
-
function
|
2565
|
+
function Eu(u) {
|
2554
2566
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
2555
2567
|
t && Object.keys(t).forEach(function(n) {
|
2556
2568
|
u[n] = t[n];
|
2557
2569
|
});
|
2558
2570
|
}), u;
|
2559
2571
|
}
|
2560
|
-
function
|
2572
|
+
function hu(u) {
|
2561
2573
|
return Object.prototype.toString.call(u);
|
2562
2574
|
}
|
2563
2575
|
function Pt(u) {
|
2564
|
-
return
|
2576
|
+
return hu(u) === "[object String]";
|
2565
2577
|
}
|
2566
2578
|
function Ot(u) {
|
2567
|
-
return
|
2579
|
+
return hu(u) === "[object Object]";
|
2568
2580
|
}
|
2569
|
-
function
|
2570
|
-
return
|
2581
|
+
function $t(u) {
|
2582
|
+
return hu(u) === "[object RegExp]";
|
2571
2583
|
}
|
2572
|
-
function
|
2573
|
-
return
|
2584
|
+
function Ju(u) {
|
2585
|
+
return hu(u) === "[object Function]";
|
2574
2586
|
}
|
2575
|
-
function
|
2587
|
+
function Nt(u) {
|
2576
2588
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
2577
2589
|
}
|
2578
2590
|
const d0 = {
|
@@ -2617,7 +2629,7 @@ const Ut = {
|
|
2617
2629
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
2618
2630
|
}
|
2619
2631
|
}
|
2620
|
-
},
|
2632
|
+
}, Zt = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", Ht = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
2621
2633
|
function Vt(u) {
|
2622
2634
|
u.__index__ = -1, u.__text_cache__ = "";
|
2623
2635
|
}
|
@@ -2627,44 +2639,44 @@ function Gt(u) {
|
|
2627
2639
|
return u.test(n) ? n.match(u)[0].length : 0;
|
2628
2640
|
};
|
2629
2641
|
}
|
2630
|
-
function
|
2642
|
+
function Qu() {
|
2631
2643
|
return function(u, e) {
|
2632
2644
|
e.normalize(u);
|
2633
2645
|
};
|
2634
2646
|
}
|
2635
|
-
function
|
2636
|
-
const e = u.re =
|
2637
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
2638
|
-
function n(
|
2639
|
-
return
|
2647
|
+
function au(u) {
|
2648
|
+
const e = u.re = Lt(u.__opts__), t = u.__tlds__.slice();
|
2649
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(Zt), t.push(e.src_xn), e.src_tlds = t.join("|");
|
2650
|
+
function n(o) {
|
2651
|
+
return o.replace("%TLDS%", e.src_tlds);
|
2640
2652
|
}
|
2641
2653
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
2642
2654
|
const r = [];
|
2643
2655
|
u.__compiled__ = {};
|
2644
|
-
function c(
|
2645
|
-
throw new Error('(LinkifyIt) Invalid schema "' +
|
2656
|
+
function c(o, a) {
|
2657
|
+
throw new Error('(LinkifyIt) Invalid schema "' + o + '": ' + a);
|
2646
2658
|
}
|
2647
|
-
Object.keys(u.__schemas__).forEach(function(
|
2648
|
-
const a = u.__schemas__[
|
2659
|
+
Object.keys(u.__schemas__).forEach(function(o) {
|
2660
|
+
const a = u.__schemas__[o];
|
2649
2661
|
if (a === null)
|
2650
2662
|
return;
|
2651
2663
|
const s = { validate: null, link: null };
|
2652
|
-
if (u.__compiled__[
|
2653
|
-
|
2664
|
+
if (u.__compiled__[o] = s, Ot(a)) {
|
2665
|
+
$t(a.validate) ? s.validate = Gt(a.validate) : Ju(a.validate) ? s.validate = a.validate : c(o, a), Ju(a.normalize) ? s.normalize = a.normalize : a.normalize ? c(o, a) : s.normalize = Qu();
|
2654
2666
|
return;
|
2655
2667
|
}
|
2656
2668
|
if (Pt(a)) {
|
2657
|
-
r.push(
|
2669
|
+
r.push(o);
|
2658
2670
|
return;
|
2659
2671
|
}
|
2660
|
-
c(
|
2661
|
-
}), r.forEach(function(
|
2662
|
-
u.__compiled__[u.__schemas__[
|
2663
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
2664
|
-
const
|
2665
|
-
return
|
2666
|
-
}).map(
|
2667
|
-
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" +
|
2672
|
+
c(o, a);
|
2673
|
+
}), r.forEach(function(o) {
|
2674
|
+
u.__compiled__[u.__schemas__[o]] && (u.__compiled__[o].validate = u.__compiled__[u.__schemas__[o]].validate, u.__compiled__[o].normalize = u.__compiled__[u.__schemas__[o]].normalize);
|
2675
|
+
}), u.__compiled__[""] = { validate: null, normalize: Qu() };
|
2676
|
+
const i = Object.keys(u.__compiled__).filter(function(o) {
|
2677
|
+
return o.length > 0 && u.__compiled__[o];
|
2678
|
+
}).map(Nt).join("|");
|
2679
|
+
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + i + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
2668
2680
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
2669
2681
|
"i"
|
2670
2682
|
), Vt(u);
|
@@ -2673,25 +2685,25 @@ function Wt(u, e) {
|
|
2673
2685
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
2674
2686
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
2675
2687
|
}
|
2676
|
-
function
|
2688
|
+
function yu(u, e) {
|
2677
2689
|
const t = new Wt(u, e);
|
2678
2690
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
2679
2691
|
}
|
2680
|
-
function
|
2681
|
-
if (!(this instanceof
|
2682
|
-
return new
|
2683
|
-
e || jt(u) && (e = u, u = {}), this.__opts__ =
|
2692
|
+
function w(u, e) {
|
2693
|
+
if (!(this instanceof w))
|
2694
|
+
return new w(u, e);
|
2695
|
+
e || jt(u) && (e = u, u = {}), this.__opts__ = Eu({}, d0, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Eu({}, Ut, u), this.__compiled__ = {}, this.__tlds__ = Ht, this.__tlds_replaced__ = !1, this.re = {}, au(this);
|
2684
2696
|
}
|
2685
|
-
|
2686
|
-
return this.__schemas__[e] = t,
|
2697
|
+
w.prototype.add = function(e, t) {
|
2698
|
+
return this.__schemas__[e] = t, au(this), this;
|
2687
2699
|
};
|
2688
|
-
|
2689
|
-
return this.__opts__ =
|
2700
|
+
w.prototype.set = function(e) {
|
2701
|
+
return this.__opts__ = Eu(this.__opts__, e), this;
|
2690
2702
|
};
|
2691
|
-
|
2703
|
+
w.prototype.test = function(e) {
|
2692
2704
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
2693
2705
|
return !1;
|
2694
|
-
let t, n, r, c,
|
2706
|
+
let t, n, r, c, i, o, a, s, l;
|
2695
2707
|
if (this.re.schema_test.test(e)) {
|
2696
2708
|
for (a = this.re.schema_search, a.lastIndex = 0; (t = a.exec(e)) !== null; )
|
2697
2709
|
if (c = this.testSchemaAt(e, t[2], a.lastIndex), c) {
|
@@ -2699,48 +2711,48 @@ v.prototype.test = function(e) {
|
|
2699
2711
|
break;
|
2700
2712
|
}
|
2701
2713
|
}
|
2702
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (
|
2714
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (i = n.index + n[1].length, (this.__index__ < 0 || i < this.__index__) && (this.__schema__ = "", this.__index__ = i, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (i = r.index + r[1].length, o = r.index + r[0].length, (this.__index__ < 0 || i < this.__index__ || i === this.__index__ && o > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = i, this.__last_index__ = o))), this.__index__ >= 0;
|
2703
2715
|
};
|
2704
|
-
|
2716
|
+
w.prototype.pretest = function(e) {
|
2705
2717
|
return this.re.pretest.test(e);
|
2706
2718
|
};
|
2707
|
-
|
2719
|
+
w.prototype.testSchemaAt = function(e, t, n) {
|
2708
2720
|
return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
|
2709
2721
|
};
|
2710
|
-
|
2722
|
+
w.prototype.match = function(e) {
|
2711
2723
|
const t = [];
|
2712
2724
|
let n = 0;
|
2713
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
2725
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(yu(this, n)), n = this.__last_index__);
|
2714
2726
|
let r = n ? e.slice(n) : e;
|
2715
2727
|
for (; this.test(r); )
|
2716
|
-
t.push(
|
2728
|
+
t.push(yu(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
2717
2729
|
return t.length ? t : null;
|
2718
2730
|
};
|
2719
|
-
|
2731
|
+
w.prototype.matchAtStart = function(e) {
|
2720
2732
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
2721
2733
|
return null;
|
2722
2734
|
const t = this.re.schema_at_start.exec(e);
|
2723
2735
|
if (!t)
|
2724
2736
|
return null;
|
2725
2737
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
2726
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
2738
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, yu(this, 0)) : null;
|
2727
2739
|
};
|
2728
|
-
|
2740
|
+
w.prototype.tlds = function(e, t) {
|
2729
2741
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, c) {
|
2730
2742
|
return n !== c[r - 1];
|
2731
|
-
}).reverse(),
|
2743
|
+
}).reverse(), au(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, au(this), this);
|
2732
2744
|
};
|
2733
|
-
|
2745
|
+
w.prototype.normalize = function(e) {
|
2734
2746
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
2735
2747
|
};
|
2736
|
-
|
2748
|
+
w.prototype.onCompile = function() {
|
2737
2749
|
};
|
2738
|
-
const
|
2750
|
+
const H = 2147483647, B = 36, Bu = 1, Y = 26, Jt = 38, Qt = 700, h0 = 72, b0 = 128, p0 = "-", Xt = /^xn--/, Kt = /[^\0-\x7F]/, Yt = /[\x2E\u3002\uFF0E\uFF61]/g, ur = {
|
2739
2751
|
overflow: "Overflow: input needs wider integers to process",
|
2740
2752
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
2741
2753
|
"invalid-input": "Invalid input"
|
2742
|
-
},
|
2743
|
-
function
|
2754
|
+
}, ku = B - Bu, z = Math.floor, Cu = String.fromCharCode;
|
2755
|
+
function P(u) {
|
2744
2756
|
throw new RangeError(ur[u]);
|
2745
2757
|
}
|
2746
2758
|
function er(u, e) {
|
@@ -2753,7 +2765,7 @@ function er(u, e) {
|
|
2753
2765
|
function x0(u, e) {
|
2754
2766
|
const t = u.split("@");
|
2755
2767
|
let n = "";
|
2756
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
2768
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(Yt, ".");
|
2757
2769
|
const r = u.split("."), c = er(r, e).join(".");
|
2758
2770
|
return n + c;
|
2759
2771
|
}
|
@@ -2773,74 +2785,74 @@ function _0(u) {
|
|
2773
2785
|
}
|
2774
2786
|
const tr = (u) => String.fromCodePoint(...u), rr = function(u) {
|
2775
2787
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : B;
|
2776
|
-
},
|
2788
|
+
}, Xu = function(u, e) {
|
2777
2789
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
2778
2790
|
}, m0 = function(u, e, t) {
|
2779
2791
|
let n = 0;
|
2780
|
-
for (u = t ? z(u / Qt) : u >> 1, u += z(u / e); u >
|
2781
|
-
u = z(u /
|
2782
|
-
return z(n + (
|
2783
|
-
},
|
2792
|
+
for (u = t ? z(u / Qt) : u >> 1, u += z(u / e); u > ku * Y >> 1; n += B)
|
2793
|
+
u = z(u / ku);
|
2794
|
+
return z(n + (ku + 1) * u / (u + Jt));
|
2795
|
+
}, g0 = function(u) {
|
2784
2796
|
const e = [], t = u.length;
|
2785
|
-
let n = 0, r = b0, c = h0,
|
2786
|
-
|
2787
|
-
for (let
|
2788
|
-
u.charCodeAt(
|
2789
|
-
for (let
|
2797
|
+
let n = 0, r = b0, c = h0, i = u.lastIndexOf(p0);
|
2798
|
+
i < 0 && (i = 0);
|
2799
|
+
for (let o = 0; o < i; ++o)
|
2800
|
+
u.charCodeAt(o) >= 128 && P("not-basic"), e.push(u.charCodeAt(o));
|
2801
|
+
for (let o = i > 0 ? i + 1 : 0; o < t; ) {
|
2790
2802
|
const a = n;
|
2791
2803
|
for (let l = 1, d = B; ; d += B) {
|
2792
|
-
|
2793
|
-
const b = rr(u.charCodeAt(
|
2794
|
-
b >= B &&
|
2795
|
-
const h = d <= c ?
|
2804
|
+
o >= t && P("invalid-input");
|
2805
|
+
const b = rr(u.charCodeAt(o++));
|
2806
|
+
b >= B && P("invalid-input"), b > z((H - n) / l) && P("overflow"), n += b * l;
|
2807
|
+
const h = d <= c ? Bu : d >= c + Y ? Y : d - c;
|
2796
2808
|
if (b < h)
|
2797
2809
|
break;
|
2798
2810
|
const f = B - h;
|
2799
|
-
l > z(
|
2811
|
+
l > z(H / f) && P("overflow"), l *= f;
|
2800
2812
|
}
|
2801
2813
|
const s = e.length + 1;
|
2802
|
-
c = m0(n - a, s, a == 0), z(n / s) >
|
2814
|
+
c = m0(n - a, s, a == 0), z(n / s) > H - r && P("overflow"), r += z(n / s), n %= s, e.splice(n++, 0, r);
|
2803
2815
|
}
|
2804
2816
|
return String.fromCodePoint(...e);
|
2805
|
-
},
|
2817
|
+
}, k0 = function(u) {
|
2806
2818
|
const e = [];
|
2807
2819
|
u = _0(u);
|
2808
2820
|
const t = u.length;
|
2809
2821
|
let n = b0, r = 0, c = h0;
|
2810
2822
|
for (const a of u)
|
2811
|
-
a < 128 && e.push(
|
2812
|
-
const
|
2813
|
-
let
|
2814
|
-
for (
|
2815
|
-
let a =
|
2823
|
+
a < 128 && e.push(Cu(a));
|
2824
|
+
const i = e.length;
|
2825
|
+
let o = i;
|
2826
|
+
for (i && e.push(p0); o < t; ) {
|
2827
|
+
let a = H;
|
2816
2828
|
for (const l of u)
|
2817
2829
|
l >= n && l < a && (a = l);
|
2818
|
-
const s =
|
2819
|
-
a - n > z((
|
2830
|
+
const s = o + 1;
|
2831
|
+
a - n > z((H - r) / s) && P("overflow"), r += (a - n) * s, n = a;
|
2820
2832
|
for (const l of u)
|
2821
|
-
if (l < n && ++r >
|
2833
|
+
if (l < n && ++r > H && P("overflow"), l === n) {
|
2822
2834
|
let d = r;
|
2823
2835
|
for (let b = B; ; b += B) {
|
2824
|
-
const h = b <= c ?
|
2836
|
+
const h = b <= c ? Bu : b >= c + Y ? Y : b - c;
|
2825
2837
|
if (d < h)
|
2826
2838
|
break;
|
2827
|
-
const f = d - h,
|
2839
|
+
const f = d - h, g = B - h;
|
2828
2840
|
e.push(
|
2829
|
-
|
2830
|
-
), d = z(f /
|
2841
|
+
Cu(Xu(h + f % g, 0))
|
2842
|
+
), d = z(f / g);
|
2831
2843
|
}
|
2832
|
-
e.push(
|
2844
|
+
e.push(Cu(Xu(d, 0))), c = m0(r, s, o === i), r = 0, ++o;
|
2833
2845
|
}
|
2834
2846
|
++r, ++n;
|
2835
2847
|
}
|
2836
2848
|
return e.join("");
|
2837
2849
|
}, nr = function(u) {
|
2838
2850
|
return x0(u, function(e) {
|
2839
|
-
return Xt.test(e) ?
|
2851
|
+
return Xt.test(e) ? g0(e.slice(4).toLowerCase()) : e;
|
2840
2852
|
});
|
2841
2853
|
}, cr = function(u) {
|
2842
2854
|
return x0(u, function(e) {
|
2843
|
-
return
|
2855
|
+
return Kt.test(e) ? "xn--" + k0(e) : e;
|
2844
2856
|
});
|
2845
2857
|
}, C0 = {
|
2846
2858
|
/**
|
@@ -2860,8 +2872,8 @@ const tr = (u) => String.fromCodePoint(...u), rr = function(u) {
|
|
2860
2872
|
decode: _0,
|
2861
2873
|
encode: tr
|
2862
2874
|
},
|
2863
|
-
decode:
|
2864
|
-
encode:
|
2875
|
+
decode: g0,
|
2876
|
+
encode: k0,
|
2865
2877
|
toASCII: cr,
|
2866
2878
|
toUnicode: nr
|
2867
2879
|
}, ir = {
|
@@ -3040,34 +3052,34 @@ function dr(u) {
|
|
3040
3052
|
}
|
3041
3053
|
const D0 = ["http:", "https:", "mailto:"];
|
3042
3054
|
function hr(u) {
|
3043
|
-
const e =
|
3055
|
+
const e = Fu(u, !0);
|
3044
3056
|
if (e.hostname && (!e.protocol || D0.indexOf(e.protocol) >= 0))
|
3045
3057
|
try {
|
3046
3058
|
e.hostname = C0.toASCII(e.hostname);
|
3047
3059
|
} catch {
|
3048
3060
|
}
|
3049
|
-
return
|
3061
|
+
return uu(Au(e));
|
3050
3062
|
}
|
3051
3063
|
function br(u) {
|
3052
|
-
const e =
|
3064
|
+
const e = Fu(u, !0);
|
3053
3065
|
if (e.hostname && (!e.protocol || D0.indexOf(e.protocol) >= 0))
|
3054
3066
|
try {
|
3055
3067
|
e.hostname = C0.toUnicode(e.hostname);
|
3056
3068
|
} catch {
|
3057
3069
|
}
|
3058
|
-
return
|
3070
|
+
return V(Au(e), V.defaultChars + "%");
|
3059
3071
|
}
|
3060
3072
|
function S(u, e) {
|
3061
3073
|
if (!(this instanceof S))
|
3062
3074
|
return new S(u, e);
|
3063
|
-
e ||
|
3075
|
+
e || wu(u) || (e = u || {}, u = "default"), this.inline = new tu(), this.block = new du(), this.core = new Tu(), this.renderer = new W(), this.linkify = new w(), this.validateLink = dr, this.normalizeLink = hr, this.normalizeLinkText = br, this.utils = xe, this.helpers = lu({}, ke), this.options = {}, this.configure(u), e && this.set(e);
|
3064
3076
|
}
|
3065
3077
|
S.prototype.set = function(u) {
|
3066
|
-
return
|
3078
|
+
return lu(this.options, u), this;
|
3067
3079
|
};
|
3068
3080
|
S.prototype.configure = function(u) {
|
3069
3081
|
const e = this;
|
3070
|
-
if (
|
3082
|
+
if (wu(u)) {
|
3071
3083
|
const t = u;
|
3072
3084
|
if (u = sr[t], !u)
|
3073
3085
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
@@ -3122,16 +3134,67 @@ S.prototype.parseInline = function(u, e) {
|
|
3122
3134
|
S.prototype.renderInline = function(u, e) {
|
3123
3135
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
3124
3136
|
};
|
3125
|
-
const pr = `:host{--cv-notebook-height: 100%;--cv-notebook-width: 100%}:host cv-cell{cursor:move}:host cv-cell.dragged{transform:translateZ(0)}:host cv-icon-button button{font-variation-settings:"FILL" 1}.notebook{display:flex;flex-direction:column;height:100%}.notebookCells{display:flex;flex-direction:column;gap:.5rem;height:calc(100% - 106px);overflow:auto;padding:1rem
|
3137
|
+
const pr = `:host{--cv-notebook-height: 100%;--cv-notebook-width: 100%}:host cv-cell{cursor:move}:host cv-cell.dragged{transform:translateZ(0)}:host cv-icon-button button{font-variation-settings:"FILL" 1}.error{background-color:var(--cv-theme-negative-8);border:1px solid var(--cv-theme-negative-24);box-sizing:border-box;color:var(--cv-theme-on-negative-container-20);margin:.75rem 1px;padding:0 .25rem}.notebook{background-color:var(--cv-theme-surface-container-lowest);box-sizing:border-box;display:flex;flex-direction:column;height:100%}.notebookCells{box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;height:calc(100% - 106px);overflow:auto;padding:1rem;width:100%}.notebookActions{display:flex;gap:1rem;justify-content:center;padding-top:1rem}:host .notebookHeaderActions{--cv-select-height: 2.25rem;--cv-select-label-top-position: -25.25px;--mdc-icon-button-size: 40px;--mdc-icon-size: 22px;align-items:center;border:1px solid var(--cv-theme-outline-variant);box-shadow:0 0 2px 0 var(--cv-theme-on-positive-container-16);box-sizing:border-box;display:flex;gap:.15rem;padding:.5rem .25rem}:host .notebookHeaderActions cv-select{margin-left:.5rem}.drag-over{border-bottom:1.5px solid var(--cv-theme-primary)}.input-container{display:flex;align-items:center;gap:.5rem}
|
3126
3138
|
`;
|
3127
|
-
var xr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor,
|
3128
|
-
for (var r = n > 1 ? void 0 : n ? _r(e, t) : e, c = u.length - 1,
|
3129
|
-
(
|
3139
|
+
var xr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, ru = (u, e, t, n) => {
|
3140
|
+
for (var r = n > 1 ? void 0 : n ? _r(e, t) : e, c = u.length - 1, i; c >= 0; c--)
|
3141
|
+
(i = u[c]) && (r = (n ? i(e, t, r) : i(r)) || r);
|
3130
3142
|
return n && r && xr(e, t, r), r;
|
3131
3143
|
};
|
3132
|
-
let
|
3144
|
+
let j = class extends w0 {
|
3133
3145
|
constructor() {
|
3134
|
-
super(...arguments), this.cells = [], this.
|
3146
|
+
super(...arguments), this.cells = [], this.cellTypes = [], this._clipboardCell = null, this._draggedCellIndex = null, this._selectedCellIndex = null;
|
3147
|
+
}
|
3148
|
+
// Add a cell to the notebook
|
3149
|
+
addCell(u) {
|
3150
|
+
this.cells = [...this.cells, u], this.requestUpdate();
|
3151
|
+
}
|
3152
|
+
// Copy the selected cell
|
3153
|
+
copyCell() {
|
3154
|
+
this._selectedCellIndex !== null && (this._clipboardCell = { ...this.cells[this._selectedCellIndex] });
|
3155
|
+
}
|
3156
|
+
// Cut the selected cell
|
3157
|
+
cutCell() {
|
3158
|
+
this._selectedCellIndex !== null && (this._clipboardCell = this.cells[this._selectedCellIndex], this.cells.splice(this._selectedCellIndex, 1), this._selectedCellIndex = null, this.requestUpdate());
|
3159
|
+
}
|
3160
|
+
// Delete the selected cell
|
3161
|
+
deleteCell() {
|
3162
|
+
this._selectedCellIndex !== null && (this.cells.splice(this._selectedCellIndex, 1), this._selectedCellIndex = null, this.requestUpdate());
|
3163
|
+
}
|
3164
|
+
// Deselect all the cells
|
3165
|
+
deselectAllCells() {
|
3166
|
+
this.cells.forEach((u) => u.selected = !1);
|
3167
|
+
}
|
3168
|
+
// Dispatch a custom cell event
|
3169
|
+
dispatchCustomCellEvent(u, e) {
|
3170
|
+
!e && this._selectedCellIndex && (e = this.cells[this._selectedCellIndex]), e && this.dispatchEvent(
|
3171
|
+
new CustomEvent(u, {
|
3172
|
+
bubbles: !0,
|
3173
|
+
cancelable: !0,
|
3174
|
+
detail: { cell: e, index: this._selectedCellIndex }
|
3175
|
+
})
|
3176
|
+
);
|
3177
|
+
}
|
3178
|
+
firstUpdated() {
|
3179
|
+
this.cells.length && (this.cells.forEach((u) => {
|
3180
|
+
u.showEditor = this.shouldRenderEditor(u);
|
3181
|
+
}), this.selectCell(0), this.requestUpdate()), this.initializeMonaco();
|
3182
|
+
}
|
3183
|
+
// Dispatch an event when the cell type is changed
|
3184
|
+
handleCellTypeChange(u) {
|
3185
|
+
const e = this.cellTypes[u.detail.index];
|
3186
|
+
this.dispatchEvent(
|
3187
|
+
new CustomEvent("cell-type-changed", {
|
3188
|
+
bubbles: !0,
|
3189
|
+
cancelable: !0,
|
3190
|
+
detail: { index: this._selectedCellIndex, cellType: e }
|
3191
|
+
})
|
3192
|
+
);
|
3193
|
+
}
|
3194
|
+
// Called whenever the code changes in the cell editor
|
3195
|
+
handleCodeChange(u, e) {
|
3196
|
+
const t = this.cells[e];
|
3197
|
+
t.code = u.detail.code;
|
3135
3198
|
}
|
3136
3199
|
handleDragStart(u, e) {
|
3137
3200
|
this._draggedCellIndex = e, this.deselectAllCells(), u.dataTransfer && (u.currentTarget.classList.add("dragged"), u.dataTransfer.effectAllowed = "move", u.dataTransfer.setData("text/plain", e.toString()));
|
@@ -3159,56 +3222,24 @@ let V = class extends v0 {
|
|
3159
3222
|
handleDragEnd() {
|
3160
3223
|
this._draggedCellIndex = null, this.removeCSS("drag-over", this.shadowRoot), this.removeCSS("dragged", document);
|
3161
3224
|
}
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
selectCell(u) {
|
3176
|
-
this.deselectAllCells(), this._selectedCellIndex = u;
|
3177
|
-
const e = this.cells[u];
|
3178
|
-
e.selected = !0, this.requestUpdate();
|
3179
|
-
}
|
3180
|
-
runCell() {
|
3181
|
-
if (this._selectedCellIndex !== null) {
|
3182
|
-
const u = this.cells[this._selectedCellIndex];
|
3183
|
-
u.language === "markdown" ? this.convertMarkdowntoHTML(u) : this.dispatchCustomCellEvent("run-cell", u);
|
3184
|
-
}
|
3185
|
-
this.requestUpdate();
|
3186
|
-
}
|
3187
|
-
convertMarkdowntoHTML(u) {
|
3188
|
-
if (u.language === "markdown" && u.code) {
|
3189
|
-
const e = S({ html: !0 });
|
3190
|
-
u.output = e.render(u.code), u.showEditor = !1;
|
3191
|
-
}
|
3192
|
-
}
|
3193
|
-
handleCodeChange(u, e) {
|
3194
|
-
const t = this.cells[e];
|
3195
|
-
t.code = u.detail.code;
|
3225
|
+
// Handle enter key event of cell input
|
3226
|
+
handleInputKeydown(u) {
|
3227
|
+
var t;
|
3228
|
+
const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
3229
|
+
"#cell-input"
|
3230
|
+
);
|
3231
|
+
u.key === "Enter" && e && this.dispatchEvent(
|
3232
|
+
new CustomEvent("input-entered", {
|
3233
|
+
bubbles: !0,
|
3234
|
+
cancelable: !0,
|
3235
|
+
detail: { value: e.value }
|
3236
|
+
})
|
3237
|
+
);
|
3196
3238
|
}
|
3239
|
+
// Shows the cell editor on clicking output for markdown cells
|
3197
3240
|
handleOutputCLick(u) {
|
3198
3241
|
const e = this.cells[u];
|
3199
|
-
e.showEditor = !0;
|
3200
|
-
}
|
3201
|
-
cutCell() {
|
3202
|
-
this._selectedCellIndex !== null && (this._clipboardCell = this.cells[this._selectedCellIndex], this.cells.splice(this._selectedCellIndex, 1), this._selectedCellIndex = null, this.requestUpdate());
|
3203
|
-
}
|
3204
|
-
copyCell() {
|
3205
|
-
this._selectedCellIndex !== null && (this._clipboardCell = { ...this.cells[this._selectedCellIndex] });
|
3206
|
-
}
|
3207
|
-
pasteCell() {
|
3208
|
-
if (this._clipboardCell !== null) {
|
3209
|
-
const u = this._selectedCellIndex !== null ? this._selectedCellIndex + 1 : this.cells.length;
|
3210
|
-
this.cells.splice(u, 0, { ...this._clipboardCell }), this.cells = this.cells.map((e, t) => ({ ...e, index: t })), this._selectedCellIndex = u, this.requestUpdate();
|
3211
|
-
}
|
3242
|
+
e.language === "markdown" && (e.showEditor = !0);
|
3212
3243
|
}
|
3213
3244
|
initializeMonaco() {
|
3214
3245
|
window.MonacoEnvironment = {
|
@@ -3244,23 +3275,37 @@ let V = class extends v0 {
|
|
3244
3275
|
}
|
3245
3276
|
};
|
3246
3277
|
}
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3252
|
-
|
3253
|
-
})
|
3254
|
-
);
|
3255
|
-
}
|
3256
|
-
updated(u) {
|
3257
|
-
u.has("cells") && this.cells.forEach((e) => this.convertMarkdowntoHTML(e));
|
3278
|
+
// Paste the copied/cut cell in the desired position
|
3279
|
+
pasteCell() {
|
3280
|
+
if (this._clipboardCell !== null) {
|
3281
|
+
const u = this._selectedCellIndex !== null ? this._selectedCellIndex + 1 : this.cells.length;
|
3282
|
+
this.cells.splice(u, 0, { ...this._clipboardCell }), this.cells = this.cells.map((e, t) => ({ ...e, index: t })), this._selectedCellIndex = u, this.requestUpdate();
|
3283
|
+
}
|
3258
3284
|
}
|
3259
|
-
|
3260
|
-
|
3285
|
+
renderCellOutput(u) {
|
3286
|
+
var e;
|
3287
|
+
return (e = u.outputs) != null && e.length ? R`${u.outputs.map(
|
3288
|
+
(t) => R`${t.data && Object.keys(t.data).map((n) => {
|
3289
|
+
const r = document.createElement("div"), c = S({ html: !0 });
|
3290
|
+
switch (n) {
|
3291
|
+
case "text/markdown":
|
3292
|
+
r.innerHTML = c.render(t.data[n]);
|
3293
|
+
break;
|
3294
|
+
case "text/html":
|
3295
|
+
break;
|
3296
|
+
case "image/png": {
|
3297
|
+
const i = document.createElement("img");
|
3298
|
+
i.style.maxWidth = "100%", i.src = `data:image/png;base64, ${t.data[n]}`, r.appendChild(i);
|
3299
|
+
break;
|
3300
|
+
}
|
3301
|
+
}
|
3302
|
+
return r;
|
3303
|
+
})}`
|
3304
|
+
)}` : R``;
|
3261
3305
|
}
|
3262
3306
|
render() {
|
3263
|
-
|
3307
|
+
var u;
|
3308
|
+
return R`<div class="notebook">
|
3264
3309
|
<section class="notebookHeaderActions">
|
3265
3310
|
<cv-icon-button class="filledIcon" icon="save"></cv-icon-button>
|
3266
3311
|
<cv-icon-button
|
@@ -3295,31 +3340,66 @@ let V = class extends v0 {
|
|
3295
3340
|
icon="fast_forward"
|
3296
3341
|
@click="${() => this.dispatchCustomCellEvent("refresh-run-all-cell")}"
|
3297
3342
|
></cv-icon-button>
|
3343
|
+
<cv-select
|
3344
|
+
label="Cell type"
|
3345
|
+
outlined
|
3346
|
+
value=${this.cellType}
|
3347
|
+
@selected="${(e) => this.handleCellTypeChange(e)}"
|
3348
|
+
>
|
3349
|
+
${(u = this.cellTypes) == null ? void 0 : u.map(
|
3350
|
+
(e) => R`<cv-list-item value="${e.type}"
|
3351
|
+
>${e.name}</cv-list-item
|
3352
|
+
>`
|
3353
|
+
)}
|
3354
|
+
</cv-select>
|
3298
3355
|
</section>
|
3299
3356
|
<section class="notebookCells">
|
3300
3357
|
${this.cells.map(
|
3301
|
-
(
|
3302
|
-
|
3303
|
-
|
3304
|
-
.
|
3305
|
-
.
|
3306
|
-
|
3358
|
+
(e, t) => {
|
3359
|
+
var n, r;
|
3360
|
+
return R`<cv-cell
|
3361
|
+
.code="${e.code}"
|
3362
|
+
.index="${t}"
|
3363
|
+
.language="${e.language}"
|
3364
|
+
.showEditor="${e.showEditor !== !1}"
|
3365
|
+
.timesExecuted="${e.timesExecuted}"
|
3366
|
+
id="cell-${t}"
|
3307
3367
|
draggable="true"
|
3308
|
-
@dragstart="${(
|
3309
|
-
@dragover="${(
|
3310
|
-
@dragleave="${(
|
3311
|
-
@drop="${(
|
3368
|
+
@dragstart="${(c) => this.handleDragStart(c, t)}"
|
3369
|
+
@dragover="${(c) => this.handleDragOver(c)}"
|
3370
|
+
@dragleave="${(c) => this.handleDragLeave(c)}"
|
3371
|
+
@drop="${(c) => this.handleDrop(c, t)}"
|
3312
3372
|
@dragend="${this.handleDragEnd}"
|
3313
|
-
@click="${() => this.selectCell(
|
3314
|
-
@code-change="${(
|
3315
|
-
.selected="${
|
3373
|
+
@click="${() => this.selectCell(t)}"
|
3374
|
+
@code-change="${(c) => this.handleCodeChange(c, t)}"
|
3375
|
+
.selected="${e.selected}"
|
3316
3376
|
>
|
3317
3377
|
<div
|
3318
3378
|
slot="output"
|
3319
|
-
|
3320
|
-
|
3321
|
-
|
3322
|
-
|
3379
|
+
@click="${() => this.handleOutputCLick(t)}"
|
3380
|
+
>
|
3381
|
+
${this.renderCellOutput(e)}
|
3382
|
+
</div>
|
3383
|
+
${((n = e.inputs) == null ? void 0 : n.length) && e.inputs.map(
|
3384
|
+
(c) => R`
|
3385
|
+
<div class="input-container" slot="input">
|
3386
|
+
<cv-typography scale="body2">
|
3387
|
+
${c.prompt}:
|
3388
|
+
</cv-typography>
|
3389
|
+
<input
|
3390
|
+
id="cell-input"
|
3391
|
+
type="${c.password ? "password" : "text"}"
|
3392
|
+
@keydown="${this.handleInputKeydown}"
|
3393
|
+
placeholder="Press enter"
|
3394
|
+
/>
|
3395
|
+
</div>
|
3396
|
+
`
|
3397
|
+
)}
|
3398
|
+
${((r = e.errors) == null ? void 0 : r.length) && R`<cv-typography class="error" slot="error" scale="body2">
|
3399
|
+
${e.errors && e.errors.map((c) => R`${c}`)}
|
3400
|
+
</cv-typography>`}
|
3401
|
+
</cv-cell>`;
|
3402
|
+
}
|
3323
3403
|
)}
|
3324
3404
|
</section>
|
3325
3405
|
<section class="notebookActions">
|
@@ -3341,23 +3421,54 @@ let V = class extends v0 {
|
|
3341
3421
|
</section>
|
3342
3422
|
</div>`;
|
3343
3423
|
}
|
3424
|
+
removeCSS(u, e) {
|
3425
|
+
const t = e == null ? void 0 : e.querySelectorAll(u);
|
3426
|
+
t == null || t.forEach((n) => n.classList.remove(u));
|
3427
|
+
}
|
3428
|
+
runCell() {
|
3429
|
+
if (this._selectedCellIndex !== null) {
|
3430
|
+
const u = this.cells[this._selectedCellIndex];
|
3431
|
+
this.dispatchCustomCellEvent("run-cell", u);
|
3432
|
+
}
|
3433
|
+
this.requestUpdate();
|
3434
|
+
}
|
3435
|
+
selectCell(u) {
|
3436
|
+
this.deselectAllCells(), this._selectedCellIndex = u;
|
3437
|
+
const e = this.cells[u];
|
3438
|
+
e.selected = !0, this.cellType = e.language === "markdown" ? "markdown" : "code", this.requestUpdate();
|
3439
|
+
}
|
3440
|
+
shouldRenderEditor(u) {
|
3441
|
+
var e;
|
3442
|
+
return u.language !== "markdown" || u.language === "markdown" && !((e = u.outputs) != null && e.length);
|
3443
|
+
}
|
3444
|
+
updated(u) {
|
3445
|
+
u.has("cells") && this.cells.forEach((e) => {
|
3446
|
+
e.showEditor = this.shouldRenderEditor(e);
|
3447
|
+
});
|
3448
|
+
}
|
3344
3449
|
};
|
3345
|
-
|
3346
|
-
|
3347
|
-
${
|
3450
|
+
j.styles = [
|
3451
|
+
F0`
|
3452
|
+
${v0(pr)}
|
3348
3453
|
`
|
3349
3454
|
];
|
3350
|
-
|
3351
|
-
|
3352
|
-
],
|
3353
|
-
|
3354
|
-
|
3355
|
-
],
|
3356
|
-
|
3455
|
+
ru([
|
3456
|
+
su({ type: Array })
|
3457
|
+
], j.prototype, "cells", 2);
|
3458
|
+
ru([
|
3459
|
+
su({ type: Array })
|
3460
|
+
], j.prototype, "cellTypes", 2);
|
3461
|
+
ru([
|
3462
|
+
su({ type: String })
|
3463
|
+
], j.prototype, "cellType", 2);
|
3464
|
+
ru([
|
3465
|
+
su({ type: String })
|
3466
|
+
], j.prototype, "defaultLanguage", 2);
|
3467
|
+
j = ru([
|
3357
3468
|
S0("cv-notebook")
|
3358
|
-
],
|
3359
|
-
const
|
3469
|
+
], j);
|
3470
|
+
const Yr = j;
|
3360
3471
|
export {
|
3361
|
-
|
3362
|
-
|
3472
|
+
j as CovalentNotebook,
|
3473
|
+
Yr as default
|
3363
3474
|
};
|