hexagon-editor 0.1.8 → 0.1.10
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/README.md +145 -118
- package/dist/MarkdownEditor.vue.d.ts +21 -883
- package/dist/MarkdownEditor.vue.d.ts.map +1 -1
- package/dist/{MarkdownEditorLinkForm-nx1gDLpK.js → MarkdownEditorLinkForm-BAIb4QJp.js} +95 -92
- package/dist/background-color-DJ1tENTK.js +80 -0
- package/dist/{base-BOV5nzwj.js → base-B5Cf0K33.js} +9 -6
- package/dist/classname.d.ts.map +1 -1
- package/dist/{color-7y9Yd6c7.js → color-DYgeN76h.js} +268 -267
- package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts +14 -17
- package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts.map +1 -1
- package/dist/components/MarkdownEditorImageActions.vue.d.ts +8 -9
- package/dist/components/MarkdownEditorImageActions.vue.d.ts.map +1 -1
- package/dist/components/MarkdownEditorToolbar.vue.d.ts +27 -22
- package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
- package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts +2 -1
- package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts.map +1 -1
- package/dist/composables/useFloatingPanel.d.ts +2 -2
- package/dist/composables/useFloatingPanel.d.ts.map +1 -1
- package/dist/composables/useMarkdownEditorValue.d.ts +1 -1
- package/dist/composables/useMarkdownEditorValue.d.ts.map +1 -1
- package/dist/configure.d.ts.map +1 -1
- package/dist/core/actions.d.ts.map +1 -1
- package/dist/core/basic-editor-atomic-source.d.ts +1 -1
- package/dist/core/basic-editor-atomic-source.d.ts.map +1 -1
- package/dist/core/basic-editor-command-helpers.d.ts +8 -6
- package/dist/core/basic-editor-command-helpers.d.ts.map +1 -1
- package/dist/core/basic-editor-markdown.d.ts +4 -2
- package/dist/core/basic-editor-markdown.d.ts.map +1 -1
- package/dist/core/basic-editor-renderers.d.ts +2 -2
- package/dist/core/basic-editor-renderers.d.ts.map +1 -1
- package/dist/core/basic-editor-runtime-plugins.d.ts +3 -3
- package/dist/core/basic-editor-runtime-plugins.d.ts.map +1 -1
- package/dist/core/basic-editor-selection.d.ts +3 -3
- package/dist/core/basic-editor-selection.d.ts.map +1 -1
- package/dist/core/basic-editor-types.d.ts +10 -8
- package/dist/core/basic-editor-types.d.ts.map +1 -1
- package/dist/core/basic-editor.d.ts +7 -4
- package/dist/core/basic-editor.d.ts.map +1 -1
- package/dist/core/content-handler.d.ts +2 -2
- package/dist/core/content-handler.d.ts.map +1 -1
- package/dist/core/editor-instance.d.ts +2 -2
- package/dist/core/editor-instance.d.ts.map +1 -1
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/extension-builder.d.ts +4 -4
- package/dist/core/extension-builder.d.ts.map +1 -1
- package/dist/core/extensions-manager.d.ts +7 -5
- package/dist/core/extensions-manager.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/lists.d.ts +3 -2
- package/dist/core/lists.d.ts.map +1 -1
- package/dist/core/logger.d.ts +1 -1
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/markdown-parser.d.ts +3 -3
- package/dist/core/markdown-parser.d.ts.map +1 -1
- package/dist/core/markdown.d.ts +3 -2
- package/dist/core/markdown.d.ts.map +1 -1
- package/dist/core/markup-commands.d.ts +1 -1
- package/dist/core/markup-commands.d.ts.map +1 -1
- package/dist/core/markup-editor.d.ts +1 -1
- package/dist/core/markup-editor.d.ts.map +1 -1
- package/dist/core/registries.d.ts +6 -3
- package/dist/core/registries.d.ts.map +1 -1
- package/dist/core/schema-dynamic-modifier.d.ts +1 -1
- package/dist/core/schema-dynamic-modifier.d.ts.map +1 -1
- package/dist/core/vue-renderer.d.ts +6 -4
- package/dist/core/vue-renderer.d.ts.map +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +17 -16
- package/dist/directives-CqalziGj.js +11 -0
- package/dist/directives.d.ts +23 -4
- package/dist/directives.d.ts.map +1 -1
- package/dist/extensions/additional/folding-heading.d.ts +3 -2
- package/dist/extensions/additional/folding-heading.d.ts.map +1 -1
- package/dist/extensions/additional/math.d.ts +7 -5
- package/dist/extensions/additional/math.d.ts.map +1 -1
- package/dist/extensions/additional/mermaid.d.ts +7 -5
- package/dist/extensions/additional/mermaid.d.ts.map +1 -1
- package/dist/extensions/additional/quote-link.d.ts +7 -5
- package/dist/extensions/additional/quote-link.d.ts.map +1 -1
- package/dist/extensions/additional/yfm-html-block.d.ts +7 -5
- package/dist/extensions/additional/yfm-html-block.d.ts.map +1 -1
- package/dist/extensions/base.d.ts +1 -1
- package/dist/extensions/base.d.ts.map +1 -1
- package/dist/extensions/behavior/clicks-on-edges.d.ts +2 -2
- package/dist/extensions/behavior/clicks-on-edges.d.ts.map +1 -1
- package/dist/extensions/behavior/clipboard.d.ts +2 -2
- package/dist/extensions/behavior/cursor.d.ts +4 -3
- package/dist/extensions/behavior/cursor.d.ts.map +1 -1
- package/dist/extensions/behavior/editor-mode-keymap.d.ts +1 -1
- package/dist/extensions/behavior/editor-mode-keymap.d.ts.map +1 -1
- package/dist/extensions/behavior/history.d.ts +2 -2
- package/dist/extensions/behavior/history.d.ts.map +1 -1
- package/dist/extensions/behavior/placeholder.d.ts +1 -1
- package/dist/extensions/behavior/placeholder.d.ts.map +1 -1
- package/dist/extensions/behavior/resizable.d.ts +1 -1
- package/dist/extensions/behavior/selection-commands.d.ts +3 -2
- package/dist/extensions/behavior/selection-commands.d.ts.map +1 -1
- package/dist/extensions/behavior/selection-context.d.ts +3 -3
- package/dist/extensions/behavior/selection-context.d.ts.map +1 -1
- package/dist/extensions/behavior/selection.d.ts +1 -1
- package/dist/extensions/behavior/selection.d.ts.map +1 -1
- package/dist/extensions/index.d.ts +1 -0
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/markdown/background-color.d.ts +17 -0
- package/dist/extensions/markdown/background-color.d.ts.map +1 -0
- package/dist/extensions/markdown/blockquote-specs.d.ts +4 -3
- package/dist/extensions/markdown/blockquote-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/blockquote.d.ts +3 -3
- package/dist/extensions/markdown/blockquote.d.ts.map +1 -1
- package/dist/extensions/markdown/bold-specs.d.ts +4 -3
- package/dist/extensions/markdown/bold.d.ts +3 -3
- package/dist/extensions/markdown/bold.d.ts.map +1 -1
- package/dist/extensions/markdown/breaks-specs.d.ts +4 -3
- package/dist/extensions/markdown/breaks-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/breaks.d.ts +2 -2
- package/dist/extensions/markdown/breaks.d.ts.map +1 -1
- package/dist/extensions/markdown/code-block-specs.d.ts +4 -3
- package/dist/extensions/markdown/code-block.d.ts +3 -3
- package/dist/extensions/markdown/code-block.d.ts.map +1 -1
- package/dist/extensions/markdown/code-specs.d.ts +4 -3
- package/dist/extensions/markdown/code.d.ts +4 -3
- package/dist/extensions/markdown/code.d.ts.map +1 -1
- package/dist/extensions/markdown/color.d.ts +9 -7
- package/dist/extensions/markdown/color.d.ts.map +1 -1
- package/dist/extensions/markdown/deflist-specs.d.ts +4 -3
- package/dist/extensions/markdown/deflist-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/deflist.d.ts +5 -5
- package/dist/extensions/markdown/deflist.d.ts.map +1 -1
- package/dist/extensions/markdown/heading-specs.d.ts +4 -3
- package/dist/extensions/markdown/heading.d.ts +3 -3
- package/dist/extensions/markdown/heading.d.ts.map +1 -1
- package/dist/extensions/markdown/horizontal-rule-specs.d.ts +4 -3
- package/dist/extensions/markdown/horizontal-rule.d.ts +3 -3
- package/dist/extensions/markdown/horizontal-rule.d.ts.map +1 -1
- package/dist/extensions/markdown/html.d.ts +4 -3
- package/dist/extensions/markdown/html.d.ts.map +1 -1
- package/dist/extensions/markdown/image.d.ts +7 -6
- package/dist/extensions/markdown/image.d.ts.map +1 -1
- package/dist/extensions/markdown/italic-specs.d.ts +4 -3
- package/dist/extensions/markdown/italic.d.ts +3 -3
- package/dist/extensions/markdown/italic.d.ts.map +1 -1
- package/dist/extensions/markdown/link-specs.d.ts +5 -4
- package/dist/extensions/markdown/link.d.ts +3 -3
- package/dist/extensions/markdown/link.d.ts.map +1 -1
- package/dist/extensions/markdown/list-specs.d.ts +3 -2
- package/dist/extensions/markdown/list-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/lists.d.ts +3 -3
- package/dist/extensions/markdown/lists.d.ts.map +1 -1
- package/dist/extensions/markdown/mark.d.ts +5 -4
- package/dist/extensions/markdown/mark.d.ts.map +1 -1
- package/dist/extensions/markdown/strike.d.ts +5 -4
- package/dist/extensions/markdown/strike.d.ts.map +1 -1
- package/dist/extensions/markdown/subscript.d.ts +5 -4
- package/dist/extensions/markdown/subscript.d.ts.map +1 -1
- package/dist/extensions/markdown/table-actions.d.ts +2 -2
- package/dist/extensions/markdown/table-actions.d.ts.map +1 -1
- package/dist/extensions/markdown/table-specs.d.ts +4 -3
- package/dist/extensions/markdown/table-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/table.d.ts +1 -1
- package/dist/extensions/markdown/table.d.ts.map +1 -1
- package/dist/extensions/markdown/underline.d.ts +5 -4
- package/dist/extensions/markdown/underline.d.ts.map +1 -1
- package/dist/extensions.d.ts +1 -0
- package/dist/extensions.js +121 -111
- package/dist/forms/MarkdownEditorForm.vue.d.ts +14 -21
- package/dist/forms/MarkdownEditorForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorImageForm.vue.d.ts +13 -81
- package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +9 -79
- package/dist/forms/MarkdownEditorLinkForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorTextInput.vue.d.ts +8 -9
- package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
- package/dist/forms.d.ts +1 -0
- package/dist/forms.js +1 -1
- package/dist/{full-s-sYdwp2.js → full-DakJ7Z5o.js} +1 -1
- package/dist/{full-specs-Cm3QffD5.js → full-specs-CE16SWE6.js} +1 -1
- package/dist/i18n/index.d.ts +11 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n.d.ts +1 -0
- package/dist/i18n.js +24 -4
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +963 -862
- package/dist/{markup-commands-uq7LBcNQ.js → markup-commands-C-IL6Ajf.js} +2340 -2268
- package/dist/presets/commonmark-specs.d.ts +2 -2
- package/dist/presets/commonmark.d.ts +11 -11
- package/dist/presets/commonmark.d.ts.map +1 -1
- package/dist/presets/default.d.ts +2 -2
- package/dist/presets/full-specs.d.ts +2 -2
- package/dist/presets/full.d.ts +7 -7
- package/dist/presets/full.d.ts.map +1 -1
- package/dist/presets/zero.d.ts +2 -2
- package/dist/presets/zero.d.ts.map +1 -1
- package/dist/presets.d.ts +1 -0
- package/dist/presets.js +2 -2
- package/dist/public-types.d.ts +1 -1
- package/dist/public-types.d.ts.map +1 -1
- package/dist/renderer/MarkdownRenderer.vue.d.ts +11 -9
- package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/renderer/index.d.ts +1 -1
- package/dist/renderer/index.d.ts.map +1 -1
- package/dist/renderer/markdown.d.ts +3 -2
- package/dist/renderer/markdown.d.ts.map +1 -1
- package/dist/renderer.css +1 -1
- package/dist/renderer.d.ts +1 -0
- package/dist/renderer.js +872 -800
- package/dist/toolbar/config.d.ts +3 -3
- package/dist/toolbar/config.d.ts.map +1 -1
- package/dist/toolbar/index.d.ts.map +1 -1
- package/dist/toolbar.d.ts +1 -0
- package/dist/toolbar.js +21 -20
- package/dist/use-markdown-editor.d.ts +3 -3
- package/dist/use-markdown-editor.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +104 -105
package/dist/renderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Re, ref as qe, getCurrentInstance as Pe, computed as Iu, watch as Le, onMounted as Oe, onBeforeUnmount as Ne, openBlock as je, createElementBlock as He, unref as Ue, render as Ru, h as Ze } from "vue";
|
|
2
2
|
const qu = {};
|
|
3
|
-
function
|
|
3
|
+
function Ve(u) {
|
|
4
4
|
let e = qu[u];
|
|
5
5
|
if (e)
|
|
6
6
|
return e;
|
|
@@ -17,7 +17,7 @@ function U0(u) {
|
|
|
17
17
|
}
|
|
18
18
|
function V(u, e) {
|
|
19
19
|
typeof e != "string" && (e = V.defaultChars);
|
|
20
|
-
const n =
|
|
20
|
+
const n = Ve(e);
|
|
21
21
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(t) {
|
|
22
22
|
let c = "";
|
|
23
23
|
for (let r = 0, i = t.length; r < i; r += 3) {
|
|
@@ -37,16 +37,16 @@ function V(u, e) {
|
|
|
37
37
|
if ((o & 240) === 224 && r + 6 < i) {
|
|
38
38
|
const a = parseInt(t.slice(r + 4, r + 6), 16), s = parseInt(t.slice(r + 7, r + 9), 16);
|
|
39
39
|
if ((a & 192) === 128 && (s & 192) === 128) {
|
|
40
|
-
const
|
|
41
|
-
|
|
40
|
+
const l = o << 12 & 61440 | a << 6 & 4032 | s & 63;
|
|
41
|
+
l < 2048 || l >= 55296 && l <= 57343 ? c += "���" : c += String.fromCharCode(l), r += 6;
|
|
42
42
|
continue;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
if ((o & 248) === 240 && r + 9 < i) {
|
|
46
|
-
const a = parseInt(t.slice(r + 4, r + 6), 16), s = parseInt(t.slice(r + 7, r + 9), 16),
|
|
47
|
-
if ((a & 192) === 128 && (s & 192) === 128 && (
|
|
48
|
-
let
|
|
49
|
-
|
|
46
|
+
const a = parseInt(t.slice(r + 4, r + 6), 16), s = parseInt(t.slice(r + 7, r + 9), 16), l = parseInt(t.slice(r + 10, r + 12), 16);
|
|
47
|
+
if ((a & 192) === 128 && (s & 192) === 128 && (l & 192) === 128) {
|
|
48
|
+
let f = o << 18 & 1835008 | a << 12 & 258048 | s << 6 & 4032 | l & 63;
|
|
49
|
+
f < 65536 || f > 1114111 ? c += "����" : (f -= 65536, c += String.fromCharCode(55296 + (f >> 10), 56320 + (f & 1023))), r += 9;
|
|
50
50
|
continue;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -57,12 +57,12 @@ function V(u, e) {
|
|
|
57
57
|
}
|
|
58
58
|
V.defaultChars = ";/?:@&=+$,#";
|
|
59
59
|
V.componentChars = "";
|
|
60
|
-
const
|
|
61
|
-
function
|
|
62
|
-
let e =
|
|
60
|
+
const Pu = {};
|
|
61
|
+
function Ge(u) {
|
|
62
|
+
let e = Pu[u];
|
|
63
63
|
if (e)
|
|
64
64
|
return e;
|
|
65
|
-
e =
|
|
65
|
+
e = Pu[u] = [];
|
|
66
66
|
for (let n = 0; n < 128; n++) {
|
|
67
67
|
const t = String.fromCharCode(n);
|
|
68
68
|
/^[0-9a-z]$/i.test(t) ? e.push(t) : e.push("%" + ("0" + n.toString(16).toUpperCase()).slice(-2));
|
|
@@ -73,7 +73,7 @@ function Z0(u) {
|
|
|
73
73
|
}
|
|
74
74
|
function nu(u, e, n) {
|
|
75
75
|
typeof e != "string" && (n = e, e = nu.defaultChars), typeof n > "u" && (n = !0);
|
|
76
|
-
const t =
|
|
76
|
+
const t = Ge(e);
|
|
77
77
|
let c = "";
|
|
78
78
|
for (let r = 0, i = u.length; r < i; r++) {
|
|
79
79
|
const o = u.charCodeAt(r);
|
|
@@ -109,11 +109,11 @@ function wu(u) {
|
|
|
109
109
|
function au() {
|
|
110
110
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
`, " "],
|
|
112
|
+
const We = /^([a-z0-9.+-]+:)/i, Je = /:[0-9]*$/, Qe = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Xe = ["<", ">", '"', "`", " ", "\r", `
|
|
113
|
+
`, " "], Ke = ["{", "}", "|", "\\", "^", "`"].concat(Xe), Ye = ["'"].concat(Ke), Lu = ["%", "/", "?", ";", "#"].concat(Ye), Ou = ["/", "?", "#"], u0 = 255, Nu = /^[+a-z0-9A-Z_-]{0,63}$/, e0 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, ju = {
|
|
114
114
|
javascript: !0,
|
|
115
115
|
"javascript:": !0
|
|
116
|
-
},
|
|
116
|
+
}, Hu = {
|
|
117
117
|
http: !0,
|
|
118
118
|
https: !0,
|
|
119
119
|
ftp: !0,
|
|
@@ -133,73 +133,73 @@ function vu(u, e) {
|
|
|
133
133
|
au.prototype.parse = function(u, e) {
|
|
134
134
|
let n, t, c, r = u;
|
|
135
135
|
if (r = r.trim(), !e && u.split("#").length === 1) {
|
|
136
|
-
const s =
|
|
136
|
+
const s = Qe.exec(r);
|
|
137
137
|
if (s)
|
|
138
138
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
139
139
|
}
|
|
140
|
-
let i =
|
|
141
|
-
if (i && (i = i[0], n = i.toLowerCase(), this.protocol = i, r = r.substr(i.length)), (e || i || r.match(/^\/\/[^@\/]+@[^@\/]+/)) && (c = r.substr(0, 2) === "//", c && !(i &&
|
|
140
|
+
let i = We.exec(r);
|
|
141
|
+
if (i && (i = i[0], n = i.toLowerCase(), this.protocol = i, r = r.substr(i.length)), (e || i || r.match(/^\/\/[^@\/]+@[^@\/]+/)) && (c = r.substr(0, 2) === "//", c && !(i && ju[i]) && (r = r.substr(2), this.slashes = !0)), !ju[i] && (c || i && !Hu[i])) {
|
|
142
142
|
let s = -1;
|
|
143
|
+
for (let d = 0; d < Ou.length; d++)
|
|
144
|
+
t = r.indexOf(Ou[d]), t !== -1 && (s === -1 || t < s) && (s = t);
|
|
145
|
+
let l, f;
|
|
146
|
+
s === -1 ? f = r.lastIndexOf("@") : f = r.lastIndexOf("@", s), f !== -1 && (l = r.slice(0, f), r = r.slice(f + 1), this.auth = l), s = -1;
|
|
143
147
|
for (let d = 0; d < Lu.length; d++)
|
|
144
148
|
t = r.indexOf(Lu[d]), t !== -1 && (s === -1 || t < s) && (s = t);
|
|
145
|
-
let f, l;
|
|
146
|
-
s === -1 ? l = r.lastIndexOf("@") : l = r.lastIndexOf("@", s), l !== -1 && (f = r.slice(0, l), r = r.slice(l + 1), this.auth = f), s = -1;
|
|
147
|
-
for (let d = 0; d < Pu.length; d++)
|
|
148
|
-
t = r.indexOf(Pu[d]), t !== -1 && (s === -1 || t < s) && (s = t);
|
|
149
149
|
s === -1 && (s = r.length), r[s - 1] === ":" && s--;
|
|
150
150
|
const b = r.slice(0, s);
|
|
151
151
|
r = r.slice(s), this.parseHost(b), this.hostname = this.hostname || "";
|
|
152
152
|
const h = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
153
153
|
if (!h) {
|
|
154
154
|
const d = this.hostname.split(/\./);
|
|
155
|
-
for (let p = 0,
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
158
|
-
let
|
|
159
|
-
for (let _ = 0, k =
|
|
160
|
-
|
|
161
|
-
if (!
|
|
162
|
-
const _ = d.slice(0, p), k = d.slice(p + 1), g =
|
|
155
|
+
for (let p = 0, m = d.length; p < m; p++) {
|
|
156
|
+
const C = d[p];
|
|
157
|
+
if (C && !C.match(Nu)) {
|
|
158
|
+
let x = "";
|
|
159
|
+
for (let _ = 0, k = C.length; _ < k; _++)
|
|
160
|
+
C.charCodeAt(_) > 127 ? x += "x" : x += C[_];
|
|
161
|
+
if (!x.match(Nu)) {
|
|
162
|
+
const _ = d.slice(0, p), k = d.slice(p + 1), g = C.match(e0);
|
|
163
163
|
g && (_.push(g[1]), k.unshift(g[2])), k.length && (r = k.join(".") + r), this.hostname = _.join(".");
|
|
164
164
|
break;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
this.hostname.length >
|
|
169
|
+
this.hostname.length > u0 && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
170
170
|
}
|
|
171
171
|
const o = r.indexOf("#");
|
|
172
172
|
o !== -1 && (this.hash = r.substr(o), r = r.slice(0, o));
|
|
173
173
|
const a = r.indexOf("?");
|
|
174
|
-
return a !== -1 && (this.search = r.substr(a), r = r.slice(0, a)), r && (this.pathname = r),
|
|
174
|
+
return a !== -1 && (this.search = r.substr(a), r = r.slice(0, a)), r && (this.pathname = r), Hu[n] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
175
175
|
};
|
|
176
176
|
au.prototype.parseHost = function(u) {
|
|
177
|
-
let e =
|
|
177
|
+
let e = Je.exec(u);
|
|
178
178
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
179
179
|
};
|
|
180
|
-
const
|
|
180
|
+
const n0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
181
181
|
__proto__: null,
|
|
182
182
|
decode: V,
|
|
183
183
|
encode: nu,
|
|
184
184
|
format: wu,
|
|
185
185
|
parse: vu
|
|
186
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
186
|
+
}, Symbol.toStringTag, { value: "Module" })), te = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ce = /[\0-\x1F\x7F-\x9F]/, r0 = /[\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]/, Su = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/, oe = /[\$\+<->\^`\|~\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]/, ie = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, t0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
187
187
|
__proto__: null,
|
|
188
|
-
Any:
|
|
189
|
-
Cc:
|
|
190
|
-
Cf:
|
|
188
|
+
Any: te,
|
|
189
|
+
Cc: ce,
|
|
190
|
+
Cf: r0,
|
|
191
191
|
P: Su,
|
|
192
|
-
S:
|
|
193
|
-
Z:
|
|
194
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
192
|
+
S: oe,
|
|
193
|
+
Z: ie
|
|
194
|
+
}, Symbol.toStringTag, { value: "Module" })), c0 = new Uint16Array(
|
|
195
195
|
// prettier-ignore
|
|
196
196
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\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))
|
|
197
|
-
),
|
|
197
|
+
), o0 = new Uint16Array(
|
|
198
198
|
// prettier-ignore
|
|
199
199
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
200
200
|
);
|
|
201
201
|
var mu;
|
|
202
|
-
const
|
|
202
|
+
const i0 = /* @__PURE__ */ new Map([
|
|
203
203
|
[0, 65533],
|
|
204
204
|
// C1 Unicode control character reference replacements
|
|
205
205
|
[128, 8364],
|
|
@@ -229,53 +229,53 @@ const ce = /* @__PURE__ */ new Map([
|
|
|
229
229
|
[156, 339],
|
|
230
230
|
[158, 382],
|
|
231
231
|
[159, 376]
|
|
232
|
-
]),
|
|
232
|
+
]), a0 = (
|
|
233
233
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
234
234
|
(mu = String.fromCodePoint) !== null && mu !== void 0 ? mu : function(u) {
|
|
235
235
|
let e = "";
|
|
236
236
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
|
-
function
|
|
239
|
+
function s0(u) {
|
|
240
240
|
var e;
|
|
241
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
241
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = i0.get(u)) !== null && e !== void 0 ? e : u;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var F;
|
|
244
244
|
(function(u) {
|
|
245
245
|
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";
|
|
246
|
-
})(
|
|
247
|
-
const
|
|
246
|
+
})(F || (F = {}));
|
|
247
|
+
const l0 = 32;
|
|
248
248
|
var O;
|
|
249
249
|
(function(u) {
|
|
250
250
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
251
251
|
})(O || (O = {}));
|
|
252
|
-
function
|
|
253
|
-
return u >=
|
|
252
|
+
function Au(u) {
|
|
253
|
+
return u >= F.ZERO && u <= F.NINE;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
return u >=
|
|
255
|
+
function f0(u) {
|
|
256
|
+
return u >= F.UPPER_A && u <= F.UPPER_F || u >= F.LOWER_A && u <= F.LOWER_F;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
return u >=
|
|
258
|
+
function d0(u) {
|
|
259
|
+
return u >= F.UPPER_A && u <= F.UPPER_Z || u >= F.LOWER_A && u <= F.LOWER_Z || Au(u);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
return u ===
|
|
261
|
+
function h0(u) {
|
|
262
|
+
return u === F.EQUALS || d0(u);
|
|
263
263
|
}
|
|
264
|
-
var
|
|
264
|
+
var A;
|
|
265
265
|
(function(u) {
|
|
266
266
|
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";
|
|
267
|
-
})(
|
|
268
|
-
var
|
|
267
|
+
})(A || (A = {}));
|
|
268
|
+
var P;
|
|
269
269
|
(function(u) {
|
|
270
270
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
271
|
-
})(
|
|
272
|
-
class
|
|
271
|
+
})(P || (P = {}));
|
|
272
|
+
class b0 {
|
|
273
273
|
constructor(e, n, t) {
|
|
274
|
-
this.decodeTree = e, this.emitCodePoint = n, this.errors = t, this.state =
|
|
274
|
+
this.decodeTree = e, this.emitCodePoint = n, this.errors = t, this.state = A.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = P.Strict;
|
|
275
275
|
}
|
|
276
276
|
/** Resets the instance to make it reusable. */
|
|
277
277
|
startEntity(e) {
|
|
278
|
-
this.decodeMode = e, this.state =
|
|
278
|
+
this.decodeMode = e, this.state = A.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
281
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -290,15 +290,15 @@ class de {
|
|
|
290
290
|
*/
|
|
291
291
|
write(e, n) {
|
|
292
292
|
switch (this.state) {
|
|
293
|
-
case
|
|
294
|
-
return e.charCodeAt(n) ===
|
|
295
|
-
case
|
|
293
|
+
case A.EntityStart:
|
|
294
|
+
return e.charCodeAt(n) === F.NUM ? (this.state = A.NumericStart, this.consumed += 1, this.stateNumericStart(e, n + 1)) : (this.state = A.NamedEntity, this.stateNamedEntity(e, n));
|
|
295
|
+
case A.NumericStart:
|
|
296
296
|
return this.stateNumericStart(e, n);
|
|
297
|
-
case
|
|
297
|
+
case A.NumericDecimal:
|
|
298
298
|
return this.stateNumericDecimal(e, n);
|
|
299
|
-
case
|
|
299
|
+
case A.NumericHex:
|
|
300
300
|
return this.stateNumericHex(e, n);
|
|
301
|
-
case
|
|
301
|
+
case A.NamedEntity:
|
|
302
302
|
return this.stateNamedEntity(e, n);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
@@ -312,7 +312,7 @@ class de {
|
|
|
312
312
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
313
313
|
*/
|
|
314
314
|
stateNumericStart(e, n) {
|
|
315
|
-
return n >= e.length ? -1 : (e.charCodeAt(n) |
|
|
315
|
+
return n >= e.length ? -1 : (e.charCodeAt(n) | l0) === F.LOWER_X ? (this.state = A.NumericHex, this.consumed += 1, this.stateNumericHex(e, n + 1)) : (this.state = A.NumericDecimal, this.stateNumericDecimal(e, n));
|
|
316
316
|
}
|
|
317
317
|
addToNumericResult(e, n, t, c) {
|
|
318
318
|
if (n !== t) {
|
|
@@ -333,7 +333,7 @@ class de {
|
|
|
333
333
|
const t = n;
|
|
334
334
|
for (; n < e.length; ) {
|
|
335
335
|
const c = e.charCodeAt(n);
|
|
336
|
-
if (
|
|
336
|
+
if (Au(c) || f0(c))
|
|
337
337
|
n += 1;
|
|
338
338
|
else
|
|
339
339
|
return this.addToNumericResult(e, t, n, 16), this.emitNumericEntity(c, 3);
|
|
@@ -353,7 +353,7 @@ class de {
|
|
|
353
353
|
const t = n;
|
|
354
354
|
for (; n < e.length; ) {
|
|
355
355
|
const c = e.charCodeAt(n);
|
|
356
|
-
if (
|
|
356
|
+
if (Au(c))
|
|
357
357
|
n += 1;
|
|
358
358
|
else
|
|
359
359
|
return this.addToNumericResult(e, t, n, 10), this.emitNumericEntity(c, 2);
|
|
@@ -377,11 +377,11 @@ class de {
|
|
|
377
377
|
var t;
|
|
378
378
|
if (this.consumed <= n)
|
|
379
379
|
return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
380
|
-
if (e ===
|
|
380
|
+
if (e === F.SEMI)
|
|
381
381
|
this.consumed += 1;
|
|
382
|
-
else if (this.decodeMode ===
|
|
382
|
+
else if (this.decodeMode === P.Strict)
|
|
383
383
|
return 0;
|
|
384
|
-
return this.emitCodePoint(
|
|
384
|
+
return this.emitCodePoint(s0(this.result), this.consumed), this.errors && (e !== F.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
387
|
* Parses a named entity.
|
|
@@ -397,15 +397,15 @@ class de {
|
|
|
397
397
|
let c = t[this.treeIndex], r = (c & O.VALUE_LENGTH) >> 14;
|
|
398
398
|
for (; n < e.length; n++, this.excess++) {
|
|
399
399
|
const i = e.charCodeAt(n);
|
|
400
|
-
if (this.treeIndex =
|
|
400
|
+
if (this.treeIndex = p0(t, c, this.treeIndex + Math.max(1, r), i), this.treeIndex < 0)
|
|
401
401
|
return this.result === 0 || // If we are parsing an attribute
|
|
402
|
-
this.decodeMode ===
|
|
402
|
+
this.decodeMode === P.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
403
403
|
(r === 0 || // And there should be no invalid characters.
|
|
404
|
-
|
|
404
|
+
h0(i)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
405
405
|
if (c = t[this.treeIndex], r = (c & O.VALUE_LENGTH) >> 14, r !== 0) {
|
|
406
|
-
if (i ===
|
|
406
|
+
if (i === F.SEMI)
|
|
407
407
|
return this.emitNamedEntityData(this.treeIndex, r, this.consumed + this.excess);
|
|
408
|
-
this.decodeMode !==
|
|
408
|
+
this.decodeMode !== P.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
return -1;
|
|
@@ -443,23 +443,23 @@ class de {
|
|
|
443
443
|
end() {
|
|
444
444
|
var e;
|
|
445
445
|
switch (this.state) {
|
|
446
|
-
case
|
|
447
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
446
|
+
case A.NamedEntity:
|
|
447
|
+
return this.result !== 0 && (this.decodeMode !== P.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
448
448
|
// Otherwise, emit a numeric entity if we have one.
|
|
449
|
-
case
|
|
449
|
+
case A.NumericDecimal:
|
|
450
450
|
return this.emitNumericEntity(0, 2);
|
|
451
|
-
case
|
|
451
|
+
case A.NumericHex:
|
|
452
452
|
return this.emitNumericEntity(0, 3);
|
|
453
|
-
case
|
|
453
|
+
case A.NumericStart:
|
|
454
454
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
455
|
-
case
|
|
455
|
+
case A.EntityStart:
|
|
456
456
|
return 0;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function ae(u) {
|
|
461
461
|
let e = "";
|
|
462
|
-
const n = new
|
|
462
|
+
const n = new b0(u, (t) => e += a0(t));
|
|
463
463
|
return function(c, r) {
|
|
464
464
|
let i = 0, o = 0;
|
|
465
465
|
for (; (o = c.indexOf("&", o)) >= 0; ) {
|
|
@@ -479,7 +479,7 @@ function i0(u) {
|
|
|
479
479
|
return e = "", a;
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function p0(u, e, n, t) {
|
|
483
483
|
const c = (e & O.BRANCH_LENGTH) >> 7, r = e & O.JUMP_TABLE;
|
|
484
484
|
if (c === 0)
|
|
485
485
|
return r !== 0 && t === r ? n : -1;
|
|
@@ -499,25 +499,25 @@ function he(u, e, n, t) {
|
|
|
499
499
|
}
|
|
500
500
|
return -1;
|
|
501
501
|
}
|
|
502
|
-
const
|
|
503
|
-
|
|
504
|
-
function
|
|
505
|
-
return
|
|
502
|
+
const se = ae(c0);
|
|
503
|
+
ae(o0);
|
|
504
|
+
function x0(u, e = P.Legacy) {
|
|
505
|
+
return se(u, e);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return
|
|
507
|
+
function m0(u) {
|
|
508
|
+
return se(u, P.Strict);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function _0(u) {
|
|
511
511
|
return Object.prototype.toString.call(u);
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
return
|
|
513
|
+
function Tu(u) {
|
|
514
|
+
return _0(u) === "[object String]";
|
|
515
515
|
}
|
|
516
|
-
const
|
|
517
|
-
function
|
|
518
|
-
return
|
|
516
|
+
const k0 = Object.prototype.hasOwnProperty;
|
|
517
|
+
function g0(u, e) {
|
|
518
|
+
return k0.call(u, e);
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function lu(u) {
|
|
521
521
|
return Array.prototype.slice.call(arguments, 1).forEach(function(n) {
|
|
522
522
|
if (n) {
|
|
523
523
|
if (typeof n != "object")
|
|
@@ -528,10 +528,10 @@ function fu(u) {
|
|
|
528
528
|
}
|
|
529
529
|
}), u;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function le(u, e, n) {
|
|
532
532
|
return [].concat(u.slice(0, e), n, u.slice(e + 1));
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function zu(u) {
|
|
535
535
|
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);
|
|
536
536
|
}
|
|
537
537
|
function X(u) {
|
|
@@ -542,38 +542,38 @@ function X(u) {
|
|
|
542
542
|
}
|
|
543
543
|
return String.fromCharCode(u);
|
|
544
544
|
}
|
|
545
|
-
const
|
|
546
|
-
function
|
|
547
|
-
if (e.charCodeAt(0) === 35 &&
|
|
545
|
+
const fe = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, C0 = /&([a-z#][a-z0-9]{1,31});/gi, D0 = new RegExp(fe.source + "|" + C0.source, "gi"), E0 = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
546
|
+
function y0(u, e) {
|
|
547
|
+
if (e.charCodeAt(0) === 35 && E0.test(e)) {
|
|
548
548
|
const t = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
549
|
-
return
|
|
549
|
+
return zu(t) ? X(t) : u;
|
|
550
550
|
}
|
|
551
|
-
const n =
|
|
551
|
+
const n = x0(u);
|
|
552
552
|
return n !== u ? n : u;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
555
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
554
|
+
function A0(u) {
|
|
555
|
+
return u.indexOf("\\") < 0 ? u : u.replace(fe, "$1");
|
|
556
556
|
}
|
|
557
557
|
function G(u) {
|
|
558
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
559
|
-
return n ||
|
|
558
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(D0, function(e, n, t) {
|
|
559
|
+
return n || y0(e, t);
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const F0 = /[&<>"]/, w0 = /[&<>"]/g, v0 = {
|
|
563
563
|
"&": "&",
|
|
564
564
|
"<": "<",
|
|
565
565
|
">": ">",
|
|
566
566
|
'"': """
|
|
567
567
|
};
|
|
568
|
-
function
|
|
569
|
-
return
|
|
568
|
+
function S0(u) {
|
|
569
|
+
return v0[u];
|
|
570
570
|
}
|
|
571
571
|
function N(u) {
|
|
572
|
-
return
|
|
572
|
+
return F0.test(u) ? u.replace(w0, S0) : u;
|
|
573
573
|
}
|
|
574
|
-
const
|
|
575
|
-
function
|
|
576
|
-
return u.replace(
|
|
574
|
+
const T0 = /[.?*+^$[\]\\(){}|-]/g;
|
|
575
|
+
function z0(u) {
|
|
576
|
+
return u.replace(T0, "\\$&");
|
|
577
577
|
}
|
|
578
578
|
function E(u) {
|
|
579
579
|
switch (u) {
|
|
@@ -607,11 +607,11 @@ function K(u) {
|
|
|
607
607
|
}
|
|
608
608
|
return !1;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return Su.test(u) ||
|
|
610
|
+
function de(u) {
|
|
611
|
+
return Su.test(u) || oe.test(u);
|
|
612
612
|
}
|
|
613
613
|
function Y(u) {
|
|
614
|
-
return
|
|
614
|
+
return de(X(u));
|
|
615
615
|
}
|
|
616
616
|
function uu(u) {
|
|
617
617
|
switch (u) {
|
|
@@ -652,43 +652,43 @@ function uu(u) {
|
|
|
652
652
|
return !1;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function fu(u) {
|
|
656
656
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Uu(u) {
|
|
659
659
|
return u === 32 || u === 9 || u === 10 || u === 13;
|
|
660
660
|
}
|
|
661
661
|
function du(u) {
|
|
662
662
|
let e = 0;
|
|
663
|
-
for (; e < u.length &&
|
|
663
|
+
for (; e < u.length && Uu(u.charCodeAt(e)); e++)
|
|
664
664
|
;
|
|
665
665
|
let n = u.length - 1;
|
|
666
|
-
for (; n >= e &&
|
|
666
|
+
for (; n >= e && Uu(u.charCodeAt(n)); n--)
|
|
667
667
|
;
|
|
668
668
|
return u.slice(e, n + 1);
|
|
669
669
|
}
|
|
670
|
-
const
|
|
670
|
+
const $0 = { mdurl: n0, ucmicro: t0 }, M0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
671
671
|
__proto__: null,
|
|
672
|
-
arrayReplaceAt:
|
|
672
|
+
arrayReplaceAt: le,
|
|
673
673
|
asciiTrim: du,
|
|
674
|
-
assign:
|
|
674
|
+
assign: lu,
|
|
675
675
|
escapeHtml: N,
|
|
676
|
-
escapeRE:
|
|
676
|
+
escapeRE: z0,
|
|
677
677
|
fromCodePoint: X,
|
|
678
|
-
has:
|
|
678
|
+
has: g0,
|
|
679
679
|
isMdAsciiPunct: uu,
|
|
680
|
-
isPunctChar:
|
|
680
|
+
isPunctChar: de,
|
|
681
681
|
isPunctCharCode: Y,
|
|
682
682
|
isSpace: E,
|
|
683
|
-
isString:
|
|
684
|
-
isValidEntityCode:
|
|
683
|
+
isString: Tu,
|
|
684
|
+
isValidEntityCode: zu,
|
|
685
685
|
isWhiteSpace: K,
|
|
686
|
-
lib:
|
|
687
|
-
normalizeReference:
|
|
686
|
+
lib: $0,
|
|
687
|
+
normalizeReference: fu,
|
|
688
688
|
unescapeAll: G,
|
|
689
|
-
unescapeMd:
|
|
689
|
+
unescapeMd: A0
|
|
690
690
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
691
|
-
function
|
|
691
|
+
function B0(u, e, n) {
|
|
692
692
|
let t, c, r, i;
|
|
693
693
|
const o = u.posMax, a = u.pos;
|
|
694
694
|
for (u.pos = e + 1, t = 1; u.pos < o; ) {
|
|
@@ -706,7 +706,7 @@ function $e(u, e, n) {
|
|
|
706
706
|
let s = -1;
|
|
707
707
|
return c && (s = u.pos), u.pos = a, s;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function I0(u, e, n) {
|
|
710
710
|
let t, c = e;
|
|
711
711
|
const r = {
|
|
712
712
|
ok: !1,
|
|
@@ -746,7 +746,7 @@ function Be(u, e, n) {
|
|
|
746
746
|
}
|
|
747
747
|
return e === c || i !== 0 || (r.str = G(u.slice(e, c)), r.pos = c, r.ok = !0), r;
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function R0(u, e, n, t) {
|
|
750
750
|
let c, r = e;
|
|
751
751
|
const i = {
|
|
752
752
|
// if `true`, this is a valid link title
|
|
@@ -779,37 +779,37 @@ function Ie(u, e, n, t) {
|
|
|
779
779
|
}
|
|
780
780
|
return i.can_continue = !0, i.str += G(u.slice(e, r)), i;
|
|
781
781
|
}
|
|
782
|
-
const
|
|
782
|
+
const q0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
783
783
|
__proto__: null,
|
|
784
|
-
parseLinkDestination:
|
|
785
|
-
parseLinkLabel:
|
|
786
|
-
parseLinkTitle:
|
|
787
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
788
|
-
|
|
784
|
+
parseLinkDestination: I0,
|
|
785
|
+
parseLinkLabel: B0,
|
|
786
|
+
parseLinkTitle: R0
|
|
787
|
+
}, Symbol.toStringTag, { value: "Module" })), R = {};
|
|
788
|
+
R.code_inline = function(u, e, n, t, c) {
|
|
789
789
|
const r = u[e];
|
|
790
790
|
return "<code" + c.renderAttrs(r) + ">" + N(r.content) + "</code>";
|
|
791
791
|
};
|
|
792
|
-
|
|
792
|
+
R.code_block = function(u, e, n, t, c) {
|
|
793
793
|
const r = u[e];
|
|
794
794
|
return "<pre" + c.renderAttrs(r) + "><code>" + N(u[e].content) + `</code></pre>
|
|
795
795
|
`;
|
|
796
796
|
};
|
|
797
|
-
|
|
797
|
+
R.fence = function(u, e, n, t, c) {
|
|
798
798
|
const r = u[e], i = r.info ? G(r.info).trim() : "";
|
|
799
799
|
let o = "", a = "";
|
|
800
800
|
if (i) {
|
|
801
|
-
const
|
|
802
|
-
o =
|
|
801
|
+
const l = i.split(/(\s+)/g);
|
|
802
|
+
o = l[0], a = l.slice(2).join("");
|
|
803
803
|
}
|
|
804
804
|
let s;
|
|
805
805
|
if (n.highlight ? s = n.highlight(r.content, o, a) || N(r.content) : s = N(r.content), s.indexOf("<pre") === 0)
|
|
806
806
|
return s + `
|
|
807
807
|
`;
|
|
808
808
|
if (i) {
|
|
809
|
-
const
|
|
810
|
-
|
|
809
|
+
const l = r.attrIndex("class"), f = r.attrs ? r.attrs.slice() : [];
|
|
810
|
+
l < 0 ? f.push(["class", n.langPrefix + o]) : (f[l] = f[l].slice(), f[l][1] += " " + n.langPrefix + o);
|
|
811
811
|
const b = {
|
|
812
|
-
attrs:
|
|
812
|
+
attrs: f
|
|
813
813
|
};
|
|
814
814
|
return `<pre><code${c.renderAttrs(b)}>${s}</code></pre>
|
|
815
815
|
`;
|
|
@@ -817,32 +817,32 @@ M.fence = function(u, e, n, t, c) {
|
|
|
817
817
|
return `<pre><code${c.renderAttrs(r)}>${s}</code></pre>
|
|
818
818
|
`;
|
|
819
819
|
};
|
|
820
|
-
|
|
820
|
+
R.image = function(u, e, n, t, c) {
|
|
821
821
|
const r = u[e];
|
|
822
822
|
return r.attrs[r.attrIndex("alt")][1] = c.renderInlineAsText(r.children, n, t), c.renderToken(u, e, n);
|
|
823
823
|
};
|
|
824
|
-
|
|
824
|
+
R.hardbreak = function(u, e, n) {
|
|
825
825
|
return n.xhtmlOut ? `<br />
|
|
826
826
|
` : `<br>
|
|
827
827
|
`;
|
|
828
828
|
};
|
|
829
|
-
|
|
829
|
+
R.softbreak = function(u, e, n) {
|
|
830
830
|
return n.breaks ? n.xhtmlOut ? `<br />
|
|
831
831
|
` : `<br>
|
|
832
832
|
` : `
|
|
833
833
|
`;
|
|
834
834
|
};
|
|
835
|
-
|
|
835
|
+
R.text = function(u, e) {
|
|
836
836
|
return N(u[e].content);
|
|
837
837
|
};
|
|
838
|
-
|
|
838
|
+
R.html_block = function(u, e) {
|
|
839
839
|
return u[e].content;
|
|
840
840
|
};
|
|
841
|
-
|
|
841
|
+
R.html_inline = function(u, e) {
|
|
842
842
|
return u[e].content;
|
|
843
843
|
};
|
|
844
844
|
function W() {
|
|
845
|
-
this.rules =
|
|
845
|
+
this.rules = lu({}, R);
|
|
846
846
|
}
|
|
847
847
|
W.prototype.renderAttrs = function(e) {
|
|
848
848
|
let n, t, c;
|
|
@@ -999,10 +999,10 @@ v.prototype.disable = function(u, e) {
|
|
|
999
999
|
v.prototype.getRules = function(u) {
|
|
1000
1000
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1001
1001
|
};
|
|
1002
|
-
function
|
|
1002
|
+
function z(u, e, n) {
|
|
1003
1003
|
this.type = u, this.tag = e, this.attrs = null, this.map = null, this.nesting = n, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
1004
1004
|
}
|
|
1005
|
-
|
|
1005
|
+
z.prototype.attrIndex = function(e) {
|
|
1006
1006
|
if (!this.attrs)
|
|
1007
1007
|
return -1;
|
|
1008
1008
|
const n = this.attrs;
|
|
@@ -1011,50 +1011,50 @@ T.prototype.attrIndex = function(e) {
|
|
|
1011
1011
|
return t;
|
|
1012
1012
|
return -1;
|
|
1013
1013
|
};
|
|
1014
|
-
|
|
1014
|
+
z.prototype.attrPush = function(e) {
|
|
1015
1015
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
1016
1016
|
};
|
|
1017
|
-
|
|
1017
|
+
z.prototype.attrSet = function(e, n) {
|
|
1018
1018
|
const t = this.attrIndex(e), c = [e, n];
|
|
1019
1019
|
t < 0 ? this.attrPush(c) : this.attrs[t] = c;
|
|
1020
1020
|
};
|
|
1021
|
-
|
|
1021
|
+
z.prototype.attrGet = function(e) {
|
|
1022
1022
|
const n = this.attrIndex(e);
|
|
1023
1023
|
let t = null;
|
|
1024
1024
|
return n >= 0 && (t = this.attrs[n][1]), t;
|
|
1025
1025
|
};
|
|
1026
|
-
|
|
1026
|
+
z.prototype.attrJoin = function(e, n) {
|
|
1027
1027
|
const t = this.attrIndex(e);
|
|
1028
1028
|
t < 0 ? this.attrPush([e, n]) : this.attrs[t][1] = this.attrs[t][1] + " " + n;
|
|
1029
1029
|
};
|
|
1030
|
-
function
|
|
1030
|
+
function he(u, e, n) {
|
|
1031
1031
|
this.src = u, this.env = n, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1032
1032
|
}
|
|
1033
|
-
|
|
1034
|
-
const
|
|
1035
|
-
function
|
|
1033
|
+
he.prototype.Token = z;
|
|
1034
|
+
const P0 = /\r\n?|\n/g, L0 = /\0/g;
|
|
1035
|
+
function O0(u) {
|
|
1036
1036
|
let e;
|
|
1037
|
-
e = u.src.replace(
|
|
1038
|
-
`), e = e.replace(
|
|
1037
|
+
e = u.src.replace(P0, `
|
|
1038
|
+
`), e = e.replace(L0, "�"), u.src = e;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function N0(u) {
|
|
1041
1041
|
let e;
|
|
1042
1042
|
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);
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1044
|
+
function j0(u) {
|
|
1045
1045
|
const e = u.tokens;
|
|
1046
1046
|
for (let n = 0, t = e.length; n < t; n++) {
|
|
1047
1047
|
const c = e[n];
|
|
1048
1048
|
c.type === "inline" && u.md.inline.parse(c.content, u.md, u.env, c.children);
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function H0(u) {
|
|
1052
1052
|
return /^<a[>\s]/i.test(u);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function U0(u) {
|
|
1055
1055
|
return /^<\/a\s*>/i.test(u);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function Z0(u) {
|
|
1058
1058
|
const e = u.tokens;
|
|
1059
1059
|
if (u.md.options.linkify)
|
|
1060
1060
|
for (let n = 0, t = e.length; n < t; n++) {
|
|
@@ -1068,72 +1068,72 @@ function He(u) {
|
|
|
1068
1068
|
i--;
|
|
1069
1069
|
continue;
|
|
1070
1070
|
}
|
|
1071
|
-
if (o.type === "html_inline" && (
|
|
1071
|
+
if (o.type === "html_inline" && (H0(o.content) && r > 0 && r--, U0(o.content) && r++), !(r > 0) && o.type === "text" && u.md.linkify.test(o.content)) {
|
|
1072
1072
|
const a = o.content;
|
|
1073
1073
|
let s = u.md.linkify.match(a);
|
|
1074
|
-
const
|
|
1075
|
-
let
|
|
1074
|
+
const l = [];
|
|
1075
|
+
let f = o.level, b = 0;
|
|
1076
1076
|
s.length > 0 && s[0].index === 0 && i > 0 && c[i - 1].type === "text_special" && (s = s.slice(1));
|
|
1077
1077
|
for (let h = 0; h < s.length; h++) {
|
|
1078
1078
|
const d = s[h].url, p = u.md.normalizeLink(d);
|
|
1079
1079
|
if (!u.md.validateLink(p))
|
|
1080
1080
|
continue;
|
|
1081
|
-
let
|
|
1082
|
-
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(
|
|
1083
|
-
const
|
|
1084
|
-
if (
|
|
1081
|
+
let m = s[h].text;
|
|
1082
|
+
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(m) ? m = u.md.normalizeLinkText("mailto:" + m).replace(/^mailto:/, "") : m = u.md.normalizeLinkText(m) : m = u.md.normalizeLinkText("http://" + m).replace(/^http:\/\//, "");
|
|
1083
|
+
const C = s[h].index;
|
|
1084
|
+
if (C > b) {
|
|
1085
1085
|
const g = new u.Token("text", "", 0);
|
|
1086
|
-
g.content = a.slice(b,
|
|
1086
|
+
g.content = a.slice(b, C), g.level = f, l.push(g);
|
|
1087
1087
|
}
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1088
|
+
const x = new u.Token("link_open", "a", 1);
|
|
1089
|
+
x.attrs = [["href", p]], x.level = f++, x.markup = "linkify", x.info = "auto", l.push(x);
|
|
1090
1090
|
const _ = new u.Token("text", "", 0);
|
|
1091
|
-
_.content =
|
|
1091
|
+
_.content = m, _.level = f, l.push(_);
|
|
1092
1092
|
const k = new u.Token("link_close", "a", -1);
|
|
1093
|
-
k.level = --
|
|
1093
|
+
k.level = --f, k.markup = "linkify", k.info = "auto", l.push(k), b = s[h].lastIndex;
|
|
1094
1094
|
}
|
|
1095
1095
|
if (b < a.length) {
|
|
1096
1096
|
const h = new u.Token("text", "", 0);
|
|
1097
|
-
h.content = a.slice(b), h.level =
|
|
1097
|
+
h.content = a.slice(b), h.level = f, l.push(h);
|
|
1098
1098
|
}
|
|
1099
|
-
e[n].children = c =
|
|
1099
|
+
e[n].children = c = le(c, i, l);
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
const
|
|
1104
|
+
const be = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, V0 = /\((c|tm|r)\)/i, G0 = /\((c|tm|r)\)/ig, W0 = {
|
|
1105
1105
|
c: "©",
|
|
1106
1106
|
r: "®",
|
|
1107
1107
|
tm: "™"
|
|
1108
1108
|
};
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
1109
|
+
function J0(u, e) {
|
|
1110
|
+
return W0[e.toLowerCase()];
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Q0(u) {
|
|
1113
1113
|
let e = 0;
|
|
1114
1114
|
for (let n = u.length - 1; n >= 0; n--) {
|
|
1115
1115
|
const t = u[n];
|
|
1116
|
-
t.type === "text" && !e && (t.content = t.content.replace(
|
|
1116
|
+
t.type === "text" && !e && (t.content = t.content.replace(G0, J0)), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function X0(u) {
|
|
1120
1120
|
let e = 0;
|
|
1121
1121
|
for (let n = u.length - 1; n >= 0; n--) {
|
|
1122
1122
|
const t = u[n];
|
|
1123
|
-
t.type === "text" && !e &&
|
|
1123
|
+
t.type === "text" && !e && be.test(t.content) && (t.content = t.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), t.type === "link_open" && t.info === "auto" && e--, t.type === "link_close" && t.info === "auto" && e++;
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function K0(u) {
|
|
1127
1127
|
let e;
|
|
1128
1128
|
if (u.md.options.typographer)
|
|
1129
1129
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1130
|
-
u.tokens[e].type === "inline" && (
|
|
1130
|
+
u.tokens[e].type === "inline" && (V0.test(u.tokens[e].content) && Q0(u.tokens[e].children), be.test(u.tokens[e].content) && X0(u.tokens[e].children));
|
|
1131
1131
|
}
|
|
1132
|
-
const
|
|
1132
|
+
const Y0 = /['"]/, Zu = /['"]/g, Vu = "’";
|
|
1133
1133
|
function cu(u, e, n, t) {
|
|
1134
1134
|
u[e] || (u[e] = []), u[e].push({ pos: n, ch: t });
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function un(u, e) {
|
|
1137
1137
|
let n = "", t = 0;
|
|
1138
1138
|
e.sort((c, r) => c.pos - r.pos);
|
|
1139
1139
|
for (let c = 0; c < e.length; c++) {
|
|
@@ -1142,7 +1142,7 @@ function Ke(u, e) {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
return n + u.slice(t);
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function en(u, e) {
|
|
1146
1146
|
let n;
|
|
1147
1147
|
const t = [], c = {};
|
|
1148
1148
|
for (let r = 0; r < u.length; r++) {
|
|
@@ -1153,37 +1153,37 @@ function Ye(u, e) {
|
|
|
1153
1153
|
continue;
|
|
1154
1154
|
const a = i.content;
|
|
1155
1155
|
let s = 0;
|
|
1156
|
-
const
|
|
1156
|
+
const l = a.length;
|
|
1157
1157
|
u:
|
|
1158
|
-
for (; s <
|
|
1159
|
-
|
|
1160
|
-
const
|
|
1161
|
-
if (!
|
|
1158
|
+
for (; s < l; ) {
|
|
1159
|
+
Zu.lastIndex = s;
|
|
1160
|
+
const f = Zu.exec(a);
|
|
1161
|
+
if (!f)
|
|
1162
1162
|
break;
|
|
1163
1163
|
let b = !0, h = !0;
|
|
1164
|
-
s =
|
|
1165
|
-
const d =
|
|
1164
|
+
s = f.index + 1;
|
|
1165
|
+
const d = f[0] === "'";
|
|
1166
1166
|
let p = 32;
|
|
1167
|
-
if (
|
|
1168
|
-
p = a.charCodeAt(
|
|
1167
|
+
if (f.index - 1 >= 0)
|
|
1168
|
+
p = a.charCodeAt(f.index - 1);
|
|
1169
1169
|
else
|
|
1170
1170
|
for (n = r - 1; n >= 0 && !(u[n].type === "softbreak" || u[n].type === "hardbreak"); n--)
|
|
1171
1171
|
if (u[n].content) {
|
|
1172
1172
|
p = u[n].content.charCodeAt(u[n].content.length - 1);
|
|
1173
1173
|
break;
|
|
1174
1174
|
}
|
|
1175
|
-
let
|
|
1176
|
-
if (s <
|
|
1177
|
-
|
|
1175
|
+
let m = 32;
|
|
1176
|
+
if (s < l)
|
|
1177
|
+
m = a.charCodeAt(s);
|
|
1178
1178
|
else
|
|
1179
1179
|
for (n = r + 1; n < u.length && !(u[n].type === "softbreak" || u[n].type === "hardbreak"); n++)
|
|
1180
1180
|
if (u[n].content) {
|
|
1181
|
-
|
|
1181
|
+
m = u[n].content.charCodeAt(0);
|
|
1182
1182
|
break;
|
|
1183
1183
|
}
|
|
1184
|
-
const
|
|
1185
|
-
if (k ? b = !1 :
|
|
1186
|
-
d && cu(c, r,
|
|
1184
|
+
const C = uu(p) || Y(p), x = uu(m) || Y(m), _ = K(p), k = K(m);
|
|
1185
|
+
if (k ? b = !1 : x && (_ || C || (b = !1)), _ ? h = !1 : C && (k || x || (h = !1)), m === 34 && f[0] === '"' && p >= 48 && p <= 57 && (h = b = !1), b && h && (b = C, h = x), !b && !h) {
|
|
1186
|
+
d && cu(c, r, f.index, Vu);
|
|
1187
1187
|
continue;
|
|
1188
1188
|
}
|
|
1189
1189
|
if (h)
|
|
@@ -1193,29 +1193,29 @@ function Ye(u, e) {
|
|
|
1193
1193
|
break;
|
|
1194
1194
|
if (g.single === d && t[n].level === o) {
|
|
1195
1195
|
g = t[n];
|
|
1196
|
-
let
|
|
1197
|
-
d ? (
|
|
1196
|
+
let D, y;
|
|
1197
|
+
d ? (D = e.md.options.quotes[2], y = e.md.options.quotes[3]) : (D = e.md.options.quotes[0], y = e.md.options.quotes[1]), cu(c, r, f.index, y), cu(c, g.token, g.pos, D), t.length = n;
|
|
1198
1198
|
continue u;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
b ? t.push({
|
|
1202
1202
|
token: r,
|
|
1203
|
-
pos:
|
|
1203
|
+
pos: f.index,
|
|
1204
1204
|
single: d,
|
|
1205
1205
|
level: o
|
|
1206
|
-
}) : h && d && cu(c, r,
|
|
1206
|
+
}) : h && d && cu(c, r, f.index, Vu);
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
1209
|
Object.keys(c).forEach(function(r) {
|
|
1210
|
-
u[r].content =
|
|
1210
|
+
u[r].content = un(u[r].content, c[r]);
|
|
1211
1211
|
});
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1213
|
+
function nn(u) {
|
|
1214
1214
|
if (u.md.options.typographer)
|
|
1215
1215
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
1216
|
-
u.tokens[e].type !== "inline" || !
|
|
1216
|
+
u.tokens[e].type !== "inline" || !Y0.test(u.tokens[e].content) || en(u.tokens[e].children, u);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function rn(u) {
|
|
1219
1219
|
let e, n;
|
|
1220
1220
|
const t = u.tokens, c = t.length;
|
|
1221
1221
|
for (let r = 0; r < c; r++) {
|
|
@@ -1229,15 +1229,15 @@ function en(u) {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
const _u = [
|
|
1232
|
-
["normalize",
|
|
1233
|
-
["block",
|
|
1234
|
-
["inline",
|
|
1235
|
-
["linkify",
|
|
1236
|
-
["replacements",
|
|
1237
|
-
["smartquotes",
|
|
1232
|
+
["normalize", O0],
|
|
1233
|
+
["block", N0],
|
|
1234
|
+
["inline", j0],
|
|
1235
|
+
["linkify", Z0],
|
|
1236
|
+
["replacements", K0],
|
|
1237
|
+
["smartquotes", nn],
|
|
1238
1238
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
1239
1239
|
// and joins them with the rest of the text
|
|
1240
|
-
["text_join",
|
|
1240
|
+
["text_join", rn]
|
|
1241
1241
|
];
|
|
1242
1242
|
function $u() {
|
|
1243
1243
|
this.ruler = new v();
|
|
@@ -1249,24 +1249,24 @@ $u.prototype.process = function(u) {
|
|
|
1249
1249
|
for (let n = 0, t = e.length; n < t; n++)
|
|
1250
1250
|
e[n](u);
|
|
1251
1251
|
};
|
|
1252
|
-
$u.prototype.State =
|
|
1252
|
+
$u.prototype.State = he;
|
|
1253
1253
|
function q(u, e, n, t) {
|
|
1254
1254
|
this.src = u, this.md = e, this.env = n, this.tokens = t, 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;
|
|
1255
1255
|
const c = this.src;
|
|
1256
|
-
for (let r = 0, i = 0, o = 0, a = 0, s = c.length,
|
|
1257
|
-
const
|
|
1258
|
-
if (!
|
|
1259
|
-
if (E(
|
|
1260
|
-
o++,
|
|
1256
|
+
for (let r = 0, i = 0, o = 0, a = 0, s = c.length, l = !1; i < s; i++) {
|
|
1257
|
+
const f = c.charCodeAt(i);
|
|
1258
|
+
if (!l)
|
|
1259
|
+
if (E(f)) {
|
|
1260
|
+
o++, f === 9 ? a += 4 - a % 4 : a++;
|
|
1261
1261
|
continue;
|
|
1262
1262
|
} else
|
|
1263
|
-
|
|
1264
|
-
(
|
|
1263
|
+
l = !0;
|
|
1264
|
+
(f === 10 || i === s - 1) && (f !== 10 && i++, this.bMarks.push(r), this.eMarks.push(i), this.tShift.push(o), this.sCount.push(a), this.bsCount.push(0), l = !1, o = 0, a = 0, r = i + 1);
|
|
1265
1265
|
}
|
|
1266
1266
|
this.bMarks.push(c.length), this.eMarks.push(c.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
1267
1267
|
}
|
|
1268
1268
|
q.prototype.push = function(u, e, n) {
|
|
1269
|
-
const t = new
|
|
1269
|
+
const t = new z(u, e, n);
|
|
1270
1270
|
return t.block = !0, n < 0 && this.level--, t.level = this.level, n > 0 && this.level++, this.tokens.push(t), t;
|
|
1271
1271
|
};
|
|
1272
1272
|
q.prototype.isEmpty = function(e) {
|
|
@@ -1313,35 +1313,35 @@ q.prototype.getLines = function(e, n, t, c) {
|
|
|
1313
1313
|
for (let i = 0, o = e; o < n; o++, i++) {
|
|
1314
1314
|
let a = 0;
|
|
1315
1315
|
const s = this.bMarks[o];
|
|
1316
|
-
let
|
|
1317
|
-
for (o + 1 < n || c ?
|
|
1318
|
-
const b = this.src.charCodeAt(
|
|
1316
|
+
let l = s, f;
|
|
1317
|
+
for (o + 1 < n || c ? f = this.eMarks[o] + 1 : f = this.eMarks[o]; l < f && a < t; ) {
|
|
1318
|
+
const b = this.src.charCodeAt(l);
|
|
1319
1319
|
if (E(b))
|
|
1320
1320
|
b === 9 ? a += 4 - (a + this.bsCount[o]) % 4 : a++;
|
|
1321
|
-
else if (
|
|
1321
|
+
else if (l - s < this.tShift[o])
|
|
1322
1322
|
a++;
|
|
1323
1323
|
else
|
|
1324
1324
|
break;
|
|
1325
|
-
|
|
1325
|
+
l++;
|
|
1326
1326
|
}
|
|
1327
|
-
a > t ? r[i] = new Array(a - t + 1).join(" ") + this.src.slice(
|
|
1327
|
+
a > t ? r[i] = new Array(a - t + 1).join(" ") + this.src.slice(l, f) : r[i] = this.src.slice(l, f);
|
|
1328
1328
|
}
|
|
1329
1329
|
return r.join("");
|
|
1330
1330
|
};
|
|
1331
|
-
q.prototype.Token =
|
|
1332
|
-
const
|
|
1331
|
+
q.prototype.Token = z;
|
|
1332
|
+
const tn = 65536;
|
|
1333
1333
|
function ku(u, e) {
|
|
1334
1334
|
const n = u.bMarks[e] + u.tShift[e], t = u.eMarks[e];
|
|
1335
1335
|
return u.src.slice(n, t);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function Gu(u) {
|
|
1338
1338
|
const e = [], n = u.length;
|
|
1339
1339
|
let t = 0, c = u.charCodeAt(t), r = !1, i = 0, o = "";
|
|
1340
1340
|
for (; t < n; )
|
|
1341
1341
|
c === 124 && (r ? (o += u.substring(i, t - 1), i = t) : (e.push(o + u.substring(i, t)), o = "", i = t + 1)), r = c === 92, t++, c = u.charCodeAt(t);
|
|
1342
1342
|
return e.push(o + u.substring(i)), e;
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function cn(u, e, n, t) {
|
|
1345
1345
|
if (e + 2 > n)
|
|
1346
1346
|
return !1;
|
|
1347
1347
|
let c = e + 1;
|
|
@@ -1363,7 +1363,7 @@ function rn(u, e, n, t) {
|
|
|
1363
1363
|
r++;
|
|
1364
1364
|
}
|
|
1365
1365
|
let a = ku(u, e + 1), s = a.split("|");
|
|
1366
|
-
const
|
|
1366
|
+
const l = [];
|
|
1367
1367
|
for (let k = 0; k < s.length; k++) {
|
|
1368
1368
|
const g = s[k].trim();
|
|
1369
1369
|
if (!g) {
|
|
@@ -1373,13 +1373,13 @@ function rn(u, e, n, t) {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
if (!/^:?-+:?$/.test(g))
|
|
1375
1375
|
return !1;
|
|
1376
|
-
g.charCodeAt(g.length - 1) === 58 ?
|
|
1376
|
+
g.charCodeAt(g.length - 1) === 58 ? l.push(g.charCodeAt(0) === 58 ? "center" : "right") : g.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
1377
1377
|
}
|
|
1378
1378
|
if (a = ku(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
1379
1379
|
return !1;
|
|
1380
|
-
s =
|
|
1381
|
-
const
|
|
1382
|
-
if (
|
|
1380
|
+
s = Gu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
1381
|
+
const f = s.length;
|
|
1382
|
+
if (f === 0 || f !== l.length)
|
|
1383
1383
|
return !1;
|
|
1384
1384
|
if (t)
|
|
1385
1385
|
return !0;
|
|
@@ -1387,44 +1387,44 @@ function rn(u, e, n, t) {
|
|
|
1387
1387
|
u.parentType = "table";
|
|
1388
1388
|
const h = u.md.block.ruler.getRules("blockquote"), d = u.push("table_open", "table", 1), p = [e, 0];
|
|
1389
1389
|
d.map = p;
|
|
1390
|
-
const
|
|
1391
|
-
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1390
|
+
const m = u.push("thead_open", "thead", 1);
|
|
1391
|
+
m.map = [e, e + 1];
|
|
1392
|
+
const C = u.push("tr_open", "tr", 1);
|
|
1393
|
+
C.map = [e, e + 1];
|
|
1394
1394
|
for (let k = 0; k < s.length; k++) {
|
|
1395
1395
|
const g = u.push("th_open", "th", 1);
|
|
1396
|
-
|
|
1397
|
-
const
|
|
1398
|
-
|
|
1396
|
+
l[k] && (g.attrs = [["style", "text-align:" + l[k]]]);
|
|
1397
|
+
const D = u.push("inline", "", 0);
|
|
1398
|
+
D.content = s[k].trim(), D.children = [], u.push("th_close", "th", -1);
|
|
1399
1399
|
}
|
|
1400
1400
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
1401
|
-
let
|
|
1401
|
+
let x, _ = 0;
|
|
1402
1402
|
for (c = e + 2; c < n && !(u.sCount[c] < u.blkIndent); c++) {
|
|
1403
1403
|
let k = !1;
|
|
1404
|
-
for (let
|
|
1405
|
-
if (h[
|
|
1404
|
+
for (let D = 0, y = h.length; D < y; D++)
|
|
1405
|
+
if (h[D](u, c, n, !0)) {
|
|
1406
1406
|
k = !0;
|
|
1407
1407
|
break;
|
|
1408
1408
|
}
|
|
1409
|
-
if (k || (a = ku(u, c).trim(), !a) || u.sCount[c] - u.blkIndent >= 4 || (s =
|
|
1409
|
+
if (k || (a = ku(u, c).trim(), !a) || u.sCount[c] - u.blkIndent >= 4 || (s = Gu(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), _ += f - s.length, _ > tn))
|
|
1410
1410
|
break;
|
|
1411
1411
|
if (c === e + 2) {
|
|
1412
|
-
const
|
|
1413
|
-
|
|
1412
|
+
const D = u.push("tbody_open", "tbody", 1);
|
|
1413
|
+
D.map = x = [e + 2, 0];
|
|
1414
1414
|
}
|
|
1415
1415
|
const g = u.push("tr_open", "tr", 1);
|
|
1416
1416
|
g.map = [c, c + 1];
|
|
1417
|
-
for (let
|
|
1417
|
+
for (let D = 0; D < f; D++) {
|
|
1418
1418
|
const y = u.push("td_open", "td", 1);
|
|
1419
|
-
|
|
1419
|
+
l[D] && (y.attrs = [["style", "text-align:" + l[D]]]);
|
|
1420
1420
|
const w = u.push("inline", "", 0);
|
|
1421
|
-
w.content = s[
|
|
1421
|
+
w.content = s[D] ? s[D].trim() : "", w.children = [], u.push("td_close", "td", -1);
|
|
1422
1422
|
}
|
|
1423
1423
|
u.push("tr_close", "tr", -1);
|
|
1424
1424
|
}
|
|
1425
|
-
return
|
|
1425
|
+
return x && (u.push("tbody_close", "tbody", -1), x[1] = c), u.push("table_close", "table", -1), p[1] = c, u.parentType = b, u.line = c, !0;
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function on(u, e, n) {
|
|
1428
1428
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
1429
1429
|
return !1;
|
|
1430
1430
|
let t = e + 1, c = t;
|
|
@@ -1444,7 +1444,7 @@ function tn(u, e, n) {
|
|
|
1444
1444
|
return r.content = u.getLines(e, c, 4 + u.blkIndent, !1) + `
|
|
1445
1445
|
`, r.map = [e, u.line], !0;
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function an(u, e, n, t) {
|
|
1448
1448
|
let c = u.bMarks[e] + u.tShift[e], r = u.eMarks[e];
|
|
1449
1449
|
if (u.sCount[e] - u.blkIndent >= 4 || c + 3 > r)
|
|
1450
1450
|
return !1;
|
|
@@ -1456,29 +1456,29 @@ function cn(u, e, n, t) {
|
|
|
1456
1456
|
let a = c - o;
|
|
1457
1457
|
if (a < 3)
|
|
1458
1458
|
return !1;
|
|
1459
|
-
const s = u.src.slice(o, c),
|
|
1460
|
-
if (i === 96 &&
|
|
1459
|
+
const s = u.src.slice(o, c), l = u.src.slice(c, r);
|
|
1460
|
+
if (i === 96 && l.indexOf(String.fromCharCode(i)) >= 0)
|
|
1461
1461
|
return !1;
|
|
1462
1462
|
if (t)
|
|
1463
1463
|
return !0;
|
|
1464
|
-
let
|
|
1465
|
-
for (;
|
|
1466
|
-
if (u.src.charCodeAt(c) === i && !(u.sCount[
|
|
1464
|
+
let f = e, b = !1;
|
|
1465
|
+
for (; f++, !(f >= n || (c = o = u.bMarks[f] + u.tShift[f], r = u.eMarks[f], c < r && u.sCount[f] < u.blkIndent)); )
|
|
1466
|
+
if (u.src.charCodeAt(c) === i && !(u.sCount[f] - u.blkIndent >= 4) && (c = u.skipChars(c, i), !(c - o < a) && (c = u.skipSpaces(c), !(c < r)))) {
|
|
1467
1467
|
b = !0;
|
|
1468
1468
|
break;
|
|
1469
1469
|
}
|
|
1470
|
-
a = u.sCount[e], u.line =
|
|
1470
|
+
a = u.sCount[e], u.line = f + (b ? 1 : 0);
|
|
1471
1471
|
const h = u.push("fence", "code", 0);
|
|
1472
|
-
return h.info =
|
|
1472
|
+
return h.info = l, h.content = u.getLines(e + 1, f, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function sn(u, e, n, t) {
|
|
1475
1475
|
let c = u.bMarks[e] + u.tShift[e], r = u.eMarks[e];
|
|
1476
1476
|
const i = u.lineMax;
|
|
1477
1477
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(c) !== 62)
|
|
1478
1478
|
return !1;
|
|
1479
1479
|
if (t)
|
|
1480
1480
|
return !0;
|
|
1481
|
-
const o = [], a = [], s = [],
|
|
1481
|
+
const o = [], a = [], s = [], l = [], f = u.md.block.ruler.getRules("blockquote"), b = u.parentType;
|
|
1482
1482
|
u.parentType = "blockquote";
|
|
1483
1483
|
let h = !1, d;
|
|
1484
1484
|
for (d = e; d < n; d++) {
|
|
@@ -1486,8 +1486,8 @@ function on(u, e, n, t) {
|
|
|
1486
1486
|
if (c = u.bMarks[d] + u.tShift[d], r = u.eMarks[d], c >= r)
|
|
1487
1487
|
break;
|
|
1488
1488
|
if (u.src.charCodeAt(c++) === 62 && !_) {
|
|
1489
|
-
let g = u.sCount[d] + 1,
|
|
1490
|
-
u.src.charCodeAt(c) === 32 ? (c++, g++, y = !1,
|
|
1489
|
+
let g = u.sCount[d] + 1, D, y;
|
|
1490
|
+
u.src.charCodeAt(c) === 32 ? (c++, g++, y = !1, D = !0) : u.src.charCodeAt(c) === 9 ? (D = !0, (u.bsCount[d] + g) % 4 === 3 ? (c++, g++, y = !1) : y = !0) : D = !1;
|
|
1491
1491
|
let w = g;
|
|
1492
1492
|
for (o.push(u.bMarks[d]), u.bMarks[d] = c; c < r; ) {
|
|
1493
1493
|
const $ = u.src.charCodeAt(c);
|
|
@@ -1497,36 +1497,36 @@ function on(u, e, n, t) {
|
|
|
1497
1497
|
break;
|
|
1498
1498
|
c++;
|
|
1499
1499
|
}
|
|
1500
|
-
h = c >= r, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (
|
|
1500
|
+
h = c >= r, a.push(u.bsCount[d]), u.bsCount[d] = u.sCount[d] + 1 + (D ? 1 : 0), s.push(u.sCount[d]), u.sCount[d] = w - g, l.push(u.tShift[d]), u.tShift[d] = c - u.bMarks[d];
|
|
1501
1501
|
continue;
|
|
1502
1502
|
}
|
|
1503
1503
|
if (h)
|
|
1504
1504
|
break;
|
|
1505
1505
|
let k = !1;
|
|
1506
|
-
for (let g = 0,
|
|
1507
|
-
if (
|
|
1506
|
+
for (let g = 0, D = f.length; g < D; g++)
|
|
1507
|
+
if (f[g](u, d, n, !0)) {
|
|
1508
1508
|
k = !0;
|
|
1509
1509
|
break;
|
|
1510
1510
|
}
|
|
1511
1511
|
if (k) {
|
|
1512
|
-
u.lineMax = d, u.blkIndent !== 0 && (o.push(u.bMarks[d]), a.push(u.bsCount[d]),
|
|
1512
|
+
u.lineMax = d, u.blkIndent !== 0 && (o.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
1513
1513
|
break;
|
|
1514
1514
|
}
|
|
1515
|
-
o.push(u.bMarks[d]), a.push(u.bsCount[d]),
|
|
1515
|
+
o.push(u.bMarks[d]), a.push(u.bsCount[d]), l.push(u.tShift[d]), s.push(u.sCount[d]), u.sCount[d] = -1;
|
|
1516
1516
|
}
|
|
1517
1517
|
const p = u.blkIndent;
|
|
1518
1518
|
u.blkIndent = 0;
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1525
|
-
for (let _ = 0; _ <
|
|
1526
|
-
u.bMarks[_ + e] = o[_], u.tShift[_ + e] =
|
|
1519
|
+
const m = u.push("blockquote_open", "blockquote", 1);
|
|
1520
|
+
m.markup = ">";
|
|
1521
|
+
const C = [e, 0];
|
|
1522
|
+
m.map = C, u.md.block.tokenize(u, e, d);
|
|
1523
|
+
const x = u.push("blockquote_close", "blockquote", -1);
|
|
1524
|
+
x.markup = ">", u.lineMax = i, u.parentType = b, C[1] = u.line;
|
|
1525
|
+
for (let _ = 0; _ < l.length; _++)
|
|
1526
|
+
u.bMarks[_ + e] = o[_], u.tShift[_ + e] = l[_], u.sCount[_ + e] = s[_], u.bsCount[_ + e] = a[_];
|
|
1527
1527
|
return u.blkIndent = p, !0;
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1529
|
+
function ln(u, e, n, t) {
|
|
1530
1530
|
const c = u.eMarks[e];
|
|
1531
1531
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
1532
1532
|
return !1;
|
|
@@ -1549,7 +1549,7 @@ function an(u, e, n, t) {
|
|
|
1549
1549
|
const a = u.push("hr", "hr", 0);
|
|
1550
1550
|
return a.map = [e, u.line], a.markup = Array(o + 1).join(String.fromCharCode(i)), !0;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function Wu(u, e) {
|
|
1553
1553
|
const n = u.eMarks[e];
|
|
1554
1554
|
let t = u.bMarks[e] + u.tShift[e];
|
|
1555
1555
|
const c = u.src.charCodeAt(t++);
|
|
@@ -1562,7 +1562,7 @@ function Gu(u, e) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
return t;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function Ju(u, e) {
|
|
1566
1566
|
const n = u.bMarks[e] + u.tShift[e], t = u.eMarks[e];
|
|
1567
1567
|
let c = n;
|
|
1568
1568
|
if (c + 1 >= t)
|
|
@@ -1584,34 +1584,34 @@ function Wu(u, e) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
return c < t && (r = u.src.charCodeAt(c), !E(r)) ? -1 : c;
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function fn(u, e) {
|
|
1588
1588
|
const n = u.level + 2;
|
|
1589
1589
|
for (let t = e + 2, c = u.tokens.length - 2; t < c; t++)
|
|
1590
1590
|
u.tokens[t].level === n && u.tokens[t].type === "paragraph_open" && (u.tokens[t + 2].hidden = !0, u.tokens[t].hidden = !0, t += 2);
|
|
1591
1591
|
}
|
|
1592
|
-
function
|
|
1592
|
+
function dn(u, e, n, t) {
|
|
1593
1593
|
let c, r, i, o, a = e, s = !0;
|
|
1594
1594
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
1595
1595
|
return !1;
|
|
1596
|
-
let
|
|
1597
|
-
t && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (
|
|
1598
|
-
let
|
|
1599
|
-
if ((h =
|
|
1600
|
-
if (
|
|
1601
|
-
} else if ((h =
|
|
1602
|
-
|
|
1596
|
+
let l = !1;
|
|
1597
|
+
t && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
|
|
1598
|
+
let f, b, h;
|
|
1599
|
+
if ((h = Ju(u, a)) >= 0) {
|
|
1600
|
+
if (f = !0, i = u.bMarks[a] + u.tShift[a], b = Number(u.src.slice(i, h - 1)), l && b !== 1) return !1;
|
|
1601
|
+
} else if ((h = Wu(u, a)) >= 0)
|
|
1602
|
+
f = !1;
|
|
1603
1603
|
else
|
|
1604
1604
|
return !1;
|
|
1605
|
-
if (
|
|
1605
|
+
if (l && u.skipSpaces(h) >= u.eMarks[a])
|
|
1606
1606
|
return !1;
|
|
1607
1607
|
if (t)
|
|
1608
1608
|
return !0;
|
|
1609
1609
|
const d = u.src.charCodeAt(h - 1), p = u.tokens.length;
|
|
1610
|
-
|
|
1611
|
-
const
|
|
1612
|
-
o.map =
|
|
1613
|
-
let
|
|
1614
|
-
const
|
|
1610
|
+
f ? (o = u.push("ordered_list_open", "ol", 1), b !== 1 && (o.attrs = [["start", b]])) : o = u.push("bullet_list_open", "ul", 1);
|
|
1611
|
+
const m = [a, 0];
|
|
1612
|
+
o.map = m, o.markup = String.fromCharCode(d);
|
|
1613
|
+
let C = !1;
|
|
1614
|
+
const x = u.md.block.ruler.getRules("list"), _ = u.parentType;
|
|
1615
1615
|
for (u.parentType = "list"; a < n; ) {
|
|
1616
1616
|
r = h, c = u.eMarks[a];
|
|
1617
1617
|
const k = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
|
@@ -1626,73 +1626,73 @@ function fn(u, e, n, t) {
|
|
|
1626
1626
|
break;
|
|
1627
1627
|
r++;
|
|
1628
1628
|
}
|
|
1629
|
-
const
|
|
1629
|
+
const D = r;
|
|
1630
1630
|
let y;
|
|
1631
|
-
|
|
1631
|
+
D >= c ? y = 1 : y = g - k, y > 4 && (y = 1);
|
|
1632
1632
|
const w = k + y;
|
|
1633
1633
|
o = u.push("list_item_open", "li", 1), o.markup = String.fromCharCode(d);
|
|
1634
1634
|
const $ = [a, 0];
|
|
1635
|
-
o.map = $,
|
|
1635
|
+
o.map = $, f && (o.info = u.src.slice(i, h - 1));
|
|
1636
1636
|
const j = u.tight, J = u.tShift[a], pu = u.sCount[a], xu = u.listIndent;
|
|
1637
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = w, u.tight = !0, u.tShift[a] =
|
|
1637
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = w, u.tight = !0, u.tShift[a] = D - u.bMarks[a], u.sCount[a] = g, D >= c && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, n) : u.md.block.tokenize(u, a, n, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = xu, u.tShift[a] = J, u.sCount[a] = pu, u.tight = j, o = u.push("list_item_close", "li", -1), o.markup = String.fromCharCode(d), a = u.line, $[1] = a, a >= n || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
1638
1638
|
break;
|
|
1639
1639
|
let Q = !1;
|
|
1640
|
-
for (let U = 0,
|
|
1641
|
-
if (
|
|
1640
|
+
for (let U = 0, Ie = x.length; U < Ie; U++)
|
|
1641
|
+
if (x[U](u, a, n, !0)) {
|
|
1642
1642
|
Q = !0;
|
|
1643
1643
|
break;
|
|
1644
1644
|
}
|
|
1645
1645
|
if (Q)
|
|
1646
1646
|
break;
|
|
1647
|
-
if (
|
|
1648
|
-
if (h =
|
|
1647
|
+
if (f) {
|
|
1648
|
+
if (h = Ju(u, a), h < 0)
|
|
1649
1649
|
break;
|
|
1650
1650
|
i = u.bMarks[a] + u.tShift[a];
|
|
1651
|
-
} else if (h =
|
|
1651
|
+
} else if (h = Wu(u, a), h < 0)
|
|
1652
1652
|
break;
|
|
1653
1653
|
if (d !== u.src.charCodeAt(h - 1))
|
|
1654
1654
|
break;
|
|
1655
1655
|
}
|
|
1656
|
-
return
|
|
1656
|
+
return f ? o = u.push("ordered_list_close", "ol", -1) : o = u.push("bullet_list_close", "ul", -1), o.markup = String.fromCharCode(d), m[1] = a, u.line = a, u.parentType = _, s && fn(u, p), !0;
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function hn(u, e, n, t) {
|
|
1659
1659
|
let c = u.bMarks[e] + u.tShift[e], r = u.eMarks[e], i = e + 1;
|
|
1660
1660
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(c) !== 91)
|
|
1661
1661
|
return !1;
|
|
1662
|
-
function o(
|
|
1662
|
+
function o(x) {
|
|
1663
1663
|
const _ = u.lineMax;
|
|
1664
|
-
if (
|
|
1664
|
+
if (x >= _ || u.isEmpty(x))
|
|
1665
1665
|
return null;
|
|
1666
1666
|
let k = !1;
|
|
1667
|
-
if (u.sCount[
|
|
1667
|
+
if (u.sCount[x] - u.blkIndent > 3 && (k = !0), u.sCount[x] < 0 && (k = !0), !k) {
|
|
1668
1668
|
const y = u.md.block.ruler.getRules("reference"), w = u.parentType;
|
|
1669
1669
|
u.parentType = "reference";
|
|
1670
1670
|
let $ = !1;
|
|
1671
1671
|
for (let j = 0, J = y.length; j < J; j++)
|
|
1672
|
-
if (y[j](u,
|
|
1672
|
+
if (y[j](u, x, _, !0)) {
|
|
1673
1673
|
$ = !0;
|
|
1674
1674
|
break;
|
|
1675
1675
|
}
|
|
1676
1676
|
if (u.parentType = w, $)
|
|
1677
1677
|
return null;
|
|
1678
1678
|
}
|
|
1679
|
-
const g = u.bMarks[
|
|
1680
|
-
return u.src.slice(g,
|
|
1679
|
+
const g = u.bMarks[x] + u.tShift[x], D = u.eMarks[x];
|
|
1680
|
+
return u.src.slice(g, D + 1);
|
|
1681
1681
|
}
|
|
1682
1682
|
let a = u.src.slice(c, r + 1);
|
|
1683
1683
|
r = a.length;
|
|
1684
1684
|
let s = -1;
|
|
1685
1685
|
for (c = 1; c < r; c++) {
|
|
1686
|
-
const
|
|
1687
|
-
if (
|
|
1686
|
+
const x = a.charCodeAt(c);
|
|
1687
|
+
if (x === 91)
|
|
1688
1688
|
return !1;
|
|
1689
|
-
if (
|
|
1689
|
+
if (x === 93) {
|
|
1690
1690
|
s = c;
|
|
1691
1691
|
break;
|
|
1692
|
-
} else if (
|
|
1692
|
+
} else if (x === 10) {
|
|
1693
1693
|
const _ = o(i);
|
|
1694
1694
|
_ !== null && (a += _, r = a.length, i++);
|
|
1695
|
-
} else if (
|
|
1695
|
+
} else if (x === 92 && (c++, c < r && a.charCodeAt(c) === 10)) {
|
|
1696
1696
|
const _ = o(i);
|
|
1697
1697
|
_ !== null && (a += _, r = a.length, i++);
|
|
1698
1698
|
}
|
|
@@ -1700,53 +1700,53 @@ function ln(u, e, n, t) {
|
|
|
1700
1700
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
1701
1701
|
return !1;
|
|
1702
1702
|
for (c = s + 2; c < r; c++) {
|
|
1703
|
-
const
|
|
1704
|
-
if (
|
|
1703
|
+
const x = a.charCodeAt(c);
|
|
1704
|
+
if (x === 10) {
|
|
1705
1705
|
const _ = o(i);
|
|
1706
1706
|
_ !== null && (a += _, r = a.length, i++);
|
|
1707
|
-
} else if (!E(
|
|
1707
|
+
} else if (!E(x)) break;
|
|
1708
1708
|
}
|
|
1709
|
-
const
|
|
1710
|
-
if (!
|
|
1709
|
+
const l = u.md.helpers.parseLinkDestination(a, c, r);
|
|
1710
|
+
if (!l.ok)
|
|
1711
1711
|
return !1;
|
|
1712
|
-
const
|
|
1713
|
-
if (!u.md.validateLink(
|
|
1712
|
+
const f = u.md.normalizeLink(l.str);
|
|
1713
|
+
if (!u.md.validateLink(f))
|
|
1714
1714
|
return !1;
|
|
1715
|
-
c =
|
|
1715
|
+
c = l.pos;
|
|
1716
1716
|
const b = c, h = i, d = c;
|
|
1717
1717
|
for (; c < r; c++) {
|
|
1718
|
-
const
|
|
1719
|
-
if (
|
|
1718
|
+
const x = a.charCodeAt(c);
|
|
1719
|
+
if (x === 10) {
|
|
1720
1720
|
const _ = o(i);
|
|
1721
1721
|
_ !== null && (a += _, r = a.length, i++);
|
|
1722
|
-
} else if (!E(
|
|
1722
|
+
} else if (!E(x)) break;
|
|
1723
1723
|
}
|
|
1724
1724
|
let p = u.md.helpers.parseLinkTitle(a, c, r);
|
|
1725
1725
|
for (; p.can_continue; ) {
|
|
1726
|
-
const
|
|
1727
|
-
if (
|
|
1728
|
-
a +=
|
|
1729
|
-
}
|
|
1730
|
-
let
|
|
1731
|
-
for (c < r && d !== c && p.ok ? (
|
|
1732
|
-
const
|
|
1733
|
-
if (!E(
|
|
1726
|
+
const x = o(i);
|
|
1727
|
+
if (x === null) break;
|
|
1728
|
+
a += x, c = r, r = a.length, i++, p = u.md.helpers.parseLinkTitle(a, c, r, p);
|
|
1729
|
+
}
|
|
1730
|
+
let m;
|
|
1731
|
+
for (c < r && d !== c && p.ok ? (m = p.str, c = p.pos) : (m = "", c = b, i = h); c < r; ) {
|
|
1732
|
+
const x = a.charCodeAt(c);
|
|
1733
|
+
if (!E(x))
|
|
1734
1734
|
break;
|
|
1735
1735
|
c++;
|
|
1736
1736
|
}
|
|
1737
|
-
if (c < r && a.charCodeAt(c) !== 10 &&
|
|
1738
|
-
for (
|
|
1739
|
-
const
|
|
1740
|
-
if (!E(
|
|
1737
|
+
if (c < r && a.charCodeAt(c) !== 10 && m)
|
|
1738
|
+
for (m = "", c = b, i = h; c < r; ) {
|
|
1739
|
+
const x = a.charCodeAt(c);
|
|
1740
|
+
if (!E(x))
|
|
1741
1741
|
break;
|
|
1742
1742
|
c++;
|
|
1743
1743
|
}
|
|
1744
1744
|
if (c < r && a.charCodeAt(c) !== 10)
|
|
1745
1745
|
return !1;
|
|
1746
|
-
const
|
|
1747
|
-
return
|
|
1746
|
+
const C = fu(a.slice(1, s));
|
|
1747
|
+
return C ? (t || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: m, href: f }), u.line = i), !0) : !1;
|
|
1748
1748
|
}
|
|
1749
|
-
const
|
|
1749
|
+
const bn = [
|
|
1750
1750
|
"address",
|
|
1751
1751
|
"article",
|
|
1752
1752
|
"aside",
|
|
@@ -1809,16 +1809,16 @@ const dn = [
|
|
|
1809
1809
|
"tr",
|
|
1810
1810
|
"track",
|
|
1811
1811
|
"ul"
|
|
1812
|
-
],
|
|
1812
|
+
], pn = "[a-zA-Z_:][a-zA-Z0-9:._-]*", xn = "[^\"'=<>`\\x00-\\x20]+", mn = "'[^']*'", _n = '"[^"]*"', kn = "(?:" + xn + "|" + mn + "|" + _n + ")", gn = "(?:\\s+" + pn + "(?:\\s*=\\s*" + kn + ")?)", pe = "<[A-Za-z][A-Za-z0-9\\-]*" + gn + "*\\s*\\/?>", xe = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Cn = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Dn = "<[?][\\s\\S]*?[?]>", En = "<![A-Za-z][^>]*>", yn = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", An = new RegExp("^(?:" + pe + "|" + xe + "|" + Cn + "|" + Dn + "|" + En + "|" + yn + ")"), Fn = new RegExp("^(?:" + pe + "|" + xe + ")"), H = [
|
|
1813
1813
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
1814
1814
|
[/^<!--/, /-->/, !0],
|
|
1815
1815
|
[/^<\?/, /\?>/, !0],
|
|
1816
1816
|
[/^<![A-Z]/, />/, !0],
|
|
1817
1817
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
1818
|
-
[new RegExp("^</?(" +
|
|
1819
|
-
[new RegExp(
|
|
1818
|
+
[new RegExp("^</?(" + bn.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
1819
|
+
[new RegExp(Fn.source + "\\s*$"), /^$/, !1]
|
|
1820
1820
|
];
|
|
1821
|
-
function
|
|
1821
|
+
function wn(u, e, n, t) {
|
|
1822
1822
|
let c = u.bMarks[e] + u.tShift[e], r = u.eMarks[e];
|
|
1823
1823
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(c) !== 60)
|
|
1824
1824
|
return !1;
|
|
@@ -1839,10 +1839,10 @@ function Fn(u, e, n, t) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
1841
|
u.line = a;
|
|
1842
|
-
const
|
|
1843
|
-
return
|
|
1842
|
+
const l = u.push("html_block", "", 0);
|
|
1843
|
+
return l.map = [e, a], l.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function vn(u, e, n, t) {
|
|
1846
1846
|
let c = u.bMarks[e] + u.tShift[e], r = u.eMarks[e];
|
|
1847
1847
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
1848
1848
|
return !1;
|
|
@@ -1861,12 +1861,12 @@ function An(u, e, n, t) {
|
|
|
1861
1861
|
a > c && E(u.src.charCodeAt(a - 1)) && (r = a), u.line = e + 1;
|
|
1862
1862
|
const s = u.push("heading_open", "h" + String(o), 1);
|
|
1863
1863
|
s.markup = "########".slice(0, o), s.map = [e, u.line];
|
|
1864
|
-
const
|
|
1865
|
-
|
|
1866
|
-
const
|
|
1867
|
-
return
|
|
1864
|
+
const l = u.push("inline", "", 0);
|
|
1865
|
+
l.content = du(u.src.slice(c, r)), l.map = [e, u.line], l.children = [];
|
|
1866
|
+
const f = u.push("heading_close", "h" + String(o), -1);
|
|
1867
|
+
return f.markup = "########".slice(0, o), !0;
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function Sn(u, e, n) {
|
|
1870
1870
|
const t = u.md.block.ruler.getRules("paragraph");
|
|
1871
1871
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
1872
1872
|
return !1;
|
|
@@ -1901,20 +1901,20 @@ function wn(u, e, n) {
|
|
|
1901
1901
|
u.line = o + 1;
|
|
1902
1902
|
const s = u.push("heading_open", "h" + String(r), 1);
|
|
1903
1903
|
s.markup = String.fromCharCode(i), s.map = [e, u.line];
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1906
|
-
const
|
|
1907
|
-
return
|
|
1904
|
+
const l = u.push("inline", "", 0);
|
|
1905
|
+
l.content = a, l.map = [e, u.line - 1], l.children = [];
|
|
1906
|
+
const f = u.push("heading_close", "h" + String(r), -1);
|
|
1907
|
+
return f.markup = String.fromCharCode(i), u.parentType = c, !0;
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function Tn(u, e, n) {
|
|
1910
1910
|
const t = u.md.block.ruler.getRules("paragraph"), c = u.parentType;
|
|
1911
1911
|
let r = e + 1;
|
|
1912
1912
|
for (u.parentType = "paragraph"; r < n && !u.isEmpty(r); r++) {
|
|
1913
1913
|
if (u.sCount[r] - u.blkIndent > 3 || u.sCount[r] < 0)
|
|
1914
1914
|
continue;
|
|
1915
1915
|
let s = !1;
|
|
1916
|
-
for (let
|
|
1917
|
-
if (t[
|
|
1916
|
+
for (let l = 0, f = t.length; l < f; l++)
|
|
1917
|
+
if (t[l](u, r, n, !0)) {
|
|
1918
1918
|
s = !0;
|
|
1919
1919
|
break;
|
|
1920
1920
|
}
|
|
@@ -1931,17 +1931,17 @@ function vn(u, e, n) {
|
|
|
1931
1931
|
const ou = [
|
|
1932
1932
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
1933
1933
|
// which can be terminated by this one.
|
|
1934
|
-
["table",
|
|
1935
|
-
["code",
|
|
1936
|
-
["fence",
|
|
1937
|
-
["blockquote",
|
|
1938
|
-
["hr",
|
|
1939
|
-
["list",
|
|
1940
|
-
["reference",
|
|
1941
|
-
["html_block",
|
|
1942
|
-
["heading",
|
|
1943
|
-
["lheading",
|
|
1944
|
-
["paragraph",
|
|
1934
|
+
["table", cn, ["paragraph", "reference"]],
|
|
1935
|
+
["code", on],
|
|
1936
|
+
["fence", an, ["paragraph", "reference", "blockquote", "list"]],
|
|
1937
|
+
["blockquote", sn, ["paragraph", "reference", "blockquote", "list"]],
|
|
1938
|
+
["hr", ln, ["paragraph", "reference", "blockquote", "list"]],
|
|
1939
|
+
["list", dn, ["paragraph", "reference", "blockquote"]],
|
|
1940
|
+
["reference", hn],
|
|
1941
|
+
["html_block", wn, ["paragraph", "reference", "blockquote"]],
|
|
1942
|
+
["heading", vn, ["paragraph", "reference", "blockquote"]],
|
|
1943
|
+
["lheading", Sn],
|
|
1944
|
+
["paragraph", Tn]
|
|
1945
1945
|
];
|
|
1946
1946
|
function hu() {
|
|
1947
1947
|
this.ruler = new v();
|
|
@@ -1958,8 +1958,8 @@ hu.prototype.tokenize = function(u, e, n) {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
const a = u.line;
|
|
1960
1960
|
let s = !1;
|
|
1961
|
-
for (let
|
|
1962
|
-
if (s = t[
|
|
1961
|
+
for (let l = 0; l < c; l++)
|
|
1962
|
+
if (s = t[l](u, i, n, !1), s) {
|
|
1963
1963
|
if (a >= u.line)
|
|
1964
1964
|
throw new Error("block rule didn't increment state.line");
|
|
1965
1965
|
break;
|
|
@@ -1979,12 +1979,12 @@ function ru(u, e, n, t) {
|
|
|
1979
1979
|
this.src = u, this.env = n, this.md = e, this.tokens = t, this.tokens_meta = Array(t.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;
|
|
1980
1980
|
}
|
|
1981
1981
|
ru.prototype.pushPending = function() {
|
|
1982
|
-
const u = new
|
|
1982
|
+
const u = new z("text", "", 0);
|
|
1983
1983
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
1984
1984
|
};
|
|
1985
1985
|
ru.prototype.push = function(u, e, n) {
|
|
1986
1986
|
this.pending && this.pushPending();
|
|
1987
|
-
const t = new
|
|
1987
|
+
const t = new z(u, e, n);
|
|
1988
1988
|
let c = null;
|
|
1989
1989
|
return n < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), t.level = this.level, n > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], c = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(t), this.tokens_meta.push(c), t;
|
|
1990
1990
|
};
|
|
@@ -1996,8 +1996,8 @@ ru.prototype.scanDelims = function(u, e) {
|
|
|
1996
1996
|
else if (u === 1)
|
|
1997
1997
|
c = this.src.charCodeAt(0), (c & 63488) === 55296 && (c = 65533);
|
|
1998
1998
|
else if (c = this.src.charCodeAt(u - 1), (c & 64512) === 56320) {
|
|
1999
|
-
const
|
|
2000
|
-
c = (
|
|
1999
|
+
const m = this.src.charCodeAt(u - 2);
|
|
2000
|
+
c = (m & 64512) === 55296 ? 65536 + (m - 55296 << 10) + (c - 56320) : 65533;
|
|
2001
2001
|
} else (c & 64512) === 55296 && (c = 65533);
|
|
2002
2002
|
let r = u;
|
|
2003
2003
|
for (; r < n && this.src.charCodeAt(r) === t; )
|
|
@@ -2005,14 +2005,14 @@ ru.prototype.scanDelims = function(u, e) {
|
|
|
2005
2005
|
const i = r - u;
|
|
2006
2006
|
let o = r < n ? this.src.charCodeAt(r) : 32;
|
|
2007
2007
|
if ((o & 64512) === 55296) {
|
|
2008
|
-
const
|
|
2009
|
-
o = (
|
|
2008
|
+
const m = this.src.charCodeAt(r + 1);
|
|
2009
|
+
o = (m & 64512) === 56320 ? 65536 + (o - 55296 << 10) + (m - 56320) : 65533;
|
|
2010
2010
|
} else (o & 64512) === 56320 && (o = 65533);
|
|
2011
|
-
const a = uu(c) || Y(c), s = uu(o) || Y(o),
|
|
2011
|
+
const a = uu(c) || Y(c), s = uu(o) || Y(o), l = K(c), f = K(o), b = !f && (!s || l || a), h = !l && (!a || f || s);
|
|
2012
2012
|
return { can_open: b && (e || !h || a), can_close: h && (e || !b || s), length: i };
|
|
2013
2013
|
};
|
|
2014
|
-
ru.prototype.Token =
|
|
2015
|
-
function
|
|
2014
|
+
ru.prototype.Token = z;
|
|
2015
|
+
function zn(u) {
|
|
2016
2016
|
switch (u) {
|
|
2017
2017
|
case 10:
|
|
2018
2018
|
case 33:
|
|
@@ -2042,18 +2042,18 @@ function Sn(u) {
|
|
|
2042
2042
|
return !1;
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2045
|
+
function $n(u, e) {
|
|
2046
2046
|
let n = u.pos;
|
|
2047
|
-
for (; n < u.posMax && !
|
|
2047
|
+
for (; n < u.posMax && !zn(u.src.charCodeAt(n)); )
|
|
2048
2048
|
n++;
|
|
2049
2049
|
return n === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, n)), u.pos = n, !0);
|
|
2050
2050
|
}
|
|
2051
|
-
const
|
|
2052
|
-
function
|
|
2051
|
+
const Mn = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2052
|
+
function Bn(u, e) {
|
|
2053
2053
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2054
2054
|
const n = u.pos, t = u.posMax;
|
|
2055
2055
|
if (n + 3 > t || u.src.charCodeAt(n) !== 58 || u.src.charCodeAt(n + 1) !== 47 || u.src.charCodeAt(n + 2) !== 47) return !1;
|
|
2056
|
-
const c = u.pending.match(
|
|
2056
|
+
const c = u.pending.match(Mn);
|
|
2057
2057
|
if (!c) return !1;
|
|
2058
2058
|
const r = c[1], i = u.md.linkify.matchAtStart(u.src.slice(n - r.length));
|
|
2059
2059
|
if (!i) return !1;
|
|
@@ -2067,16 +2067,16 @@ function $n(u, e) {
|
|
|
2067
2067
|
if (!u.md.validateLink(s)) return !1;
|
|
2068
2068
|
if (!e) {
|
|
2069
2069
|
u.pending = u.pending.slice(0, -r.length);
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2070
|
+
const l = u.push("link_open", "a", 1);
|
|
2071
|
+
l.attrs = [["href", s]], l.markup = "linkify", l.info = "auto";
|
|
2072
|
+
const f = u.push("text", "", 0);
|
|
2073
|
+
f.content = u.md.normalizeLinkText(o);
|
|
2074
2074
|
const b = u.push("link_close", "a", -1);
|
|
2075
2075
|
b.markup = "linkify", b.info = "auto";
|
|
2076
2076
|
}
|
|
2077
2077
|
return u.pos += o.length - r.length, !0;
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2079
|
+
function In(u, e) {
|
|
2080
2080
|
let n = u.pos;
|
|
2081
2081
|
if (u.src.charCodeAt(n) !== 10)
|
|
2082
2082
|
return !1;
|
|
@@ -2095,13 +2095,13 @@ function Bn(u, e) {
|
|
|
2095
2095
|
n++;
|
|
2096
2096
|
return u.pos = n, !0;
|
|
2097
2097
|
}
|
|
2098
|
-
const
|
|
2098
|
+
const Mu = [];
|
|
2099
2099
|
for (let u = 0; u < 256; u++)
|
|
2100
|
-
|
|
2100
|
+
Mu.push(0);
|
|
2101
2101
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2102
|
-
|
|
2102
|
+
Mu[u.charCodeAt(0)] = 1;
|
|
2103
2103
|
});
|
|
2104
|
-
function
|
|
2104
|
+
function Rn(u, e) {
|
|
2105
2105
|
let n = u.pos;
|
|
2106
2106
|
const t = u.posMax;
|
|
2107
2107
|
if (u.src.charCodeAt(n) !== 92 || (n++, n >= t)) return !1;
|
|
@@ -2126,11 +2126,11 @@ function In(u, e) {
|
|
|
2126
2126
|
const i = "\\" + r;
|
|
2127
2127
|
if (!e) {
|
|
2128
2128
|
const o = u.push("text_special", "", 0);
|
|
2129
|
-
c < 256 &&
|
|
2129
|
+
c < 256 && Mu[c] !== 0 ? o.content = r : o.content = i, o.markup = i, o.info = "escape";
|
|
2130
2130
|
}
|
|
2131
2131
|
return u.pos = n + 1, !0;
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function qn(u, e) {
|
|
2134
2134
|
let n = u.pos;
|
|
2135
2135
|
if (u.src.charCodeAt(n) !== 96)
|
|
2136
2136
|
return !1;
|
|
@@ -2146,19 +2146,19 @@ function Mn(u, e) {
|
|
|
2146
2146
|
for (; (s = u.src.indexOf("`", a)) !== -1; ) {
|
|
2147
2147
|
for (a = s + 1; a < r && u.src.charCodeAt(a) === 96; )
|
|
2148
2148
|
a++;
|
|
2149
|
-
const
|
|
2150
|
-
if (
|
|
2149
|
+
const l = a - s;
|
|
2150
|
+
if (l === o) {
|
|
2151
2151
|
if (!e) {
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2152
|
+
const f = u.push("code_inline", "code", 0);
|
|
2153
|
+
f.markup = i, f.content = u.src.slice(n, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2154
2154
|
}
|
|
2155
2155
|
return u.pos = a, !0;
|
|
2156
2156
|
}
|
|
2157
|
-
u.backticks[
|
|
2157
|
+
u.backticks[l] = s;
|
|
2158
2158
|
}
|
|
2159
2159
|
return u.backticksScanned = !0, e || (u.pending += i), u.pos += o, !0;
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function Pn(u, e) {
|
|
2162
2162
|
const n = u.pos, t = u.src.charCodeAt(n);
|
|
2163
2163
|
if (e || t !== 126)
|
|
2164
2164
|
return !1;
|
|
@@ -2181,7 +2181,7 @@ function qn(u, e) {
|
|
|
2181
2181
|
});
|
|
2182
2182
|
return u.pos += c.length, !0;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function Qu(u, e) {
|
|
2185
2185
|
let n;
|
|
2186
2186
|
const t = [], c = e.length;
|
|
2187
2187
|
for (let r = 0; r < c; r++) {
|
|
@@ -2199,17 +2199,17 @@ function Ju(u, e) {
|
|
|
2199
2199
|
i--, r !== i && (n = u.tokens[i], u.tokens[i] = u.tokens[r], u.tokens[r] = n);
|
|
2200
2200
|
}
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function Ln(u) {
|
|
2203
2203
|
const e = u.tokens_meta, n = u.tokens_meta.length;
|
|
2204
|
-
|
|
2204
|
+
Qu(u, u.delimiters);
|
|
2205
2205
|
for (let t = 0; t < n; t++)
|
|
2206
|
-
e[t] && e[t].delimiters &&
|
|
2206
|
+
e[t] && e[t].delimiters && Qu(u, e[t].delimiters);
|
|
2207
2207
|
}
|
|
2208
|
-
const
|
|
2209
|
-
tokenize:
|
|
2210
|
-
postProcess:
|
|
2208
|
+
const me = {
|
|
2209
|
+
tokenize: Pn,
|
|
2210
|
+
postProcess: Ln
|
|
2211
2211
|
};
|
|
2212
|
-
function
|
|
2212
|
+
function On(u, e) {
|
|
2213
2213
|
const n = u.pos, t = u.src.charCodeAt(n);
|
|
2214
2214
|
if (e || t !== 95 && t !== 42)
|
|
2215
2215
|
return !1;
|
|
@@ -2239,7 +2239,7 @@ function Pn(u, e) {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
return u.pos += c.length, !0;
|
|
2241
2241
|
}
|
|
2242
|
-
function
|
|
2242
|
+
function Xu(u, e) {
|
|
2243
2243
|
const n = e.length;
|
|
2244
2244
|
for (let t = n - 1; t >= 0; t--) {
|
|
2245
2245
|
const c = e[t];
|
|
@@ -2253,55 +2253,55 @@ function Qu(u, e) {
|
|
|
2253
2253
|
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[t - 1].token].content = "", u.tokens[e[c.end + 1].token].content = "", t--);
|
|
2254
2254
|
}
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2256
|
+
function Nn(u) {
|
|
2257
2257
|
const e = u.tokens_meta, n = u.tokens_meta.length;
|
|
2258
|
-
|
|
2258
|
+
Xu(u, u.delimiters);
|
|
2259
2259
|
for (let t = 0; t < n; t++)
|
|
2260
|
-
e[t] && e[t].delimiters &&
|
|
2260
|
+
e[t] && e[t].delimiters && Xu(u, e[t].delimiters);
|
|
2261
2261
|
}
|
|
2262
|
-
const
|
|
2263
|
-
tokenize:
|
|
2264
|
-
postProcess:
|
|
2262
|
+
const _e = {
|
|
2263
|
+
tokenize: On,
|
|
2264
|
+
postProcess: Nn
|
|
2265
2265
|
};
|
|
2266
|
-
function
|
|
2266
|
+
function jn(u, e) {
|
|
2267
2267
|
let n, t, c, r, i = "", o = "", a = u.pos, s = !0;
|
|
2268
2268
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2269
2269
|
return !1;
|
|
2270
|
-
const
|
|
2270
|
+
const l = u.pos, f = u.posMax, b = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
2271
2271
|
if (h < 0)
|
|
2272
2272
|
return !1;
|
|
2273
2273
|
let d = h + 1;
|
|
2274
|
-
if (d <
|
|
2275
|
-
for (s = !1, d++; d <
|
|
2274
|
+
if (d < f && u.src.charCodeAt(d) === 40) {
|
|
2275
|
+
for (s = !1, d++; d < f && (n = u.src.charCodeAt(d), !(!E(n) && n !== 10)); d++)
|
|
2276
2276
|
;
|
|
2277
|
-
if (d >=
|
|
2277
|
+
if (d >= f)
|
|
2278
2278
|
return !1;
|
|
2279
2279
|
if (a = d, c = u.md.helpers.parseLinkDestination(u.src, d, u.posMax), c.ok) {
|
|
2280
|
-
for (i = u.md.normalizeLink(c.str), u.md.validateLink(i) ? d = c.pos : i = "", a = d; d <
|
|
2280
|
+
for (i = u.md.normalizeLink(c.str), u.md.validateLink(i) ? d = c.pos : i = "", a = d; d < f && (n = u.src.charCodeAt(d), !(!E(n) && n !== 10)); d++)
|
|
2281
2281
|
;
|
|
2282
|
-
if (c = u.md.helpers.parseLinkTitle(u.src, d, u.posMax), d <
|
|
2283
|
-
for (o = c.str, d = c.pos; d <
|
|
2282
|
+
if (c = u.md.helpers.parseLinkTitle(u.src, d, u.posMax), d < f && a !== d && c.ok)
|
|
2283
|
+
for (o = c.str, d = c.pos; d < f && (n = u.src.charCodeAt(d), !(!E(n) && n !== 10)); d++)
|
|
2284
2284
|
;
|
|
2285
2285
|
}
|
|
2286
|
-
(d >=
|
|
2286
|
+
(d >= f || u.src.charCodeAt(d) !== 41) && (s = !0), d++;
|
|
2287
2287
|
}
|
|
2288
2288
|
if (s) {
|
|
2289
2289
|
if (typeof u.env.references > "u")
|
|
2290
2290
|
return !1;
|
|
2291
|
-
if (d <
|
|
2292
|
-
return u.pos =
|
|
2291
|
+
if (d < f && u.src.charCodeAt(d) === 91 ? (a = d + 1, d = u.md.helpers.parseLinkLabel(u, d), d >= 0 ? t = u.src.slice(a, d++) : d = h + 1) : d = h + 1, t || (t = u.src.slice(b, h)), r = u.env.references[fu(t)], !r)
|
|
2292
|
+
return u.pos = l, !1;
|
|
2293
2293
|
i = r.href, o = r.title;
|
|
2294
2294
|
}
|
|
2295
2295
|
if (!e) {
|
|
2296
2296
|
u.pos = b, u.posMax = h;
|
|
2297
|
-
const p = u.push("link_open", "a", 1),
|
|
2298
|
-
p.attrs =
|
|
2297
|
+
const p = u.push("link_open", "a", 1), m = [["href", i]];
|
|
2298
|
+
p.attrs = m, o && m.push(["title", o]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2299
2299
|
}
|
|
2300
|
-
return u.pos = d, u.posMax =
|
|
2300
|
+
return u.pos = d, u.posMax = f, !0;
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2303
|
-
let n, t, c, r, i, o, a, s,
|
|
2304
|
-
const
|
|
2302
|
+
function Hn(u, e) {
|
|
2303
|
+
let n, t, c, r, i, o, a, s, l = "";
|
|
2304
|
+
const f = u.pos, b = u.posMax;
|
|
2305
2305
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
2306
2306
|
return !1;
|
|
2307
2307
|
const h = u.pos + 2, d = u.md.helpers.parseLinkLabel(u, u.pos + 1, !1);
|
|
@@ -2312,7 +2312,7 @@ function Nn(u, e) {
|
|
|
2312
2312
|
;
|
|
2313
2313
|
if (r >= b)
|
|
2314
2314
|
return !1;
|
|
2315
|
-
for (s = r, o = u.md.helpers.parseLinkDestination(u.src, r, u.posMax), o.ok && (
|
|
2315
|
+
for (s = r, o = u.md.helpers.parseLinkDestination(u.src, r, u.posMax), o.ok && (l = u.md.normalizeLink(o.str), u.md.validateLink(l) ? r = o.pos : l = ""), s = r; r < b && (n = u.src.charCodeAt(r), !(!E(n) && n !== 10)); r++)
|
|
2316
2316
|
;
|
|
2317
2317
|
if (o = u.md.helpers.parseLinkTitle(u.src, r, u.posMax), r < b && s !== r && o.ok)
|
|
2318
2318
|
for (a = o.str, r = o.pos; r < b && (n = u.src.charCodeAt(r), !(!E(n) && n !== 10)); r++)
|
|
@@ -2320,14 +2320,14 @@ function Nn(u, e) {
|
|
|
2320
2320
|
else
|
|
2321
2321
|
a = "";
|
|
2322
2322
|
if (r >= b || u.src.charCodeAt(r) !== 41)
|
|
2323
|
-
return u.pos =
|
|
2323
|
+
return u.pos = f, !1;
|
|
2324
2324
|
r++;
|
|
2325
2325
|
} else {
|
|
2326
2326
|
if (typeof u.env.references > "u")
|
|
2327
2327
|
return !1;
|
|
2328
|
-
if (r < b && u.src.charCodeAt(r) === 91 ? (s = r + 1, r = u.md.helpers.parseLinkLabel(u, r), r >= 0 ? c = u.src.slice(s, r++) : r = d + 1) : r = d + 1, c || (c = u.src.slice(h, d)), i = u.env.references[
|
|
2329
|
-
return u.pos =
|
|
2330
|
-
|
|
2328
|
+
if (r < b && u.src.charCodeAt(r) === 91 ? (s = r + 1, r = u.md.helpers.parseLinkLabel(u, r), r >= 0 ? c = u.src.slice(s, r++) : r = d + 1) : r = d + 1, c || (c = u.src.slice(h, d)), i = u.env.references[fu(c)], !i)
|
|
2329
|
+
return u.pos = f, !1;
|
|
2330
|
+
l = i.href, a = i.title;
|
|
2331
2331
|
}
|
|
2332
2332
|
if (!e) {
|
|
2333
2333
|
t = u.src.slice(h, d);
|
|
@@ -2338,13 +2338,13 @@ function Nn(u, e) {
|
|
|
2338
2338
|
u.env,
|
|
2339
2339
|
p
|
|
2340
2340
|
);
|
|
2341
|
-
const
|
|
2342
|
-
|
|
2341
|
+
const m = u.push("image", "img", 0), C = [["src", l], ["alt", ""]];
|
|
2342
|
+
m.attrs = C, m.children = p, m.content = t, a && C.push(["title", a]);
|
|
2343
2343
|
}
|
|
2344
2344
|
return u.pos = r, u.posMax = b, !0;
|
|
2345
2345
|
}
|
|
2346
|
-
const
|
|
2347
|
-
function
|
|
2346
|
+
const Un = /^([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])?)*)$/, Zn = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2347
|
+
function Vn(u, e) {
|
|
2348
2348
|
let n = u.pos;
|
|
2349
2349
|
if (u.src.charCodeAt(n) !== 60)
|
|
2350
2350
|
return !1;
|
|
@@ -2356,7 +2356,7 @@ function Un(u, e) {
|
|
|
2356
2356
|
if (i === 62) break;
|
|
2357
2357
|
}
|
|
2358
2358
|
const r = u.src.slice(t + 1, n);
|
|
2359
|
-
if (
|
|
2359
|
+
if (Zn.test(r)) {
|
|
2360
2360
|
const i = u.md.normalizeLink(r);
|
|
2361
2361
|
if (!u.md.validateLink(i))
|
|
2362
2362
|
return !1;
|
|
@@ -2370,7 +2370,7 @@ function Un(u, e) {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
return u.pos += r.length + 2, !0;
|
|
2372
2372
|
}
|
|
2373
|
-
if (
|
|
2373
|
+
if (Un.test(r)) {
|
|
2374
2374
|
const i = u.md.normalizeLink("mailto:" + r);
|
|
2375
2375
|
if (!u.md.validateLink(i))
|
|
2376
2376
|
return !1;
|
|
@@ -2386,51 +2386,51 @@ function Un(u, e) {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
return !1;
|
|
2388
2388
|
}
|
|
2389
|
-
function
|
|
2389
|
+
function Gn(u) {
|
|
2390
2390
|
return /^<a[>\s]/i.test(u);
|
|
2391
2391
|
}
|
|
2392
|
-
function
|
|
2392
|
+
function Wn(u) {
|
|
2393
2393
|
return /^<\/a\s*>/i.test(u);
|
|
2394
2394
|
}
|
|
2395
|
-
function
|
|
2395
|
+
function Jn(u) {
|
|
2396
2396
|
const e = u | 32;
|
|
2397
2397
|
return e >= 97 && e <= 122;
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function Qn(u, e) {
|
|
2400
2400
|
if (!u.md.options.html)
|
|
2401
2401
|
return !1;
|
|
2402
2402
|
const n = u.posMax, t = u.pos;
|
|
2403
2403
|
if (u.src.charCodeAt(t) !== 60 || t + 2 >= n)
|
|
2404
2404
|
return !1;
|
|
2405
2405
|
const c = u.src.charCodeAt(t + 1);
|
|
2406
|
-
if (c !== 33 && c !== 63 && c !== 47 && !
|
|
2406
|
+
if (c !== 33 && c !== 63 && c !== 47 && !Jn(c))
|
|
2407
2407
|
return !1;
|
|
2408
|
-
const r = u.src.slice(t).match(
|
|
2408
|
+
const r = u.src.slice(t).match(An);
|
|
2409
2409
|
if (!r)
|
|
2410
2410
|
return !1;
|
|
2411
2411
|
if (!e) {
|
|
2412
2412
|
const i = u.push("html_inline", "", 0);
|
|
2413
|
-
i.content = r[0],
|
|
2413
|
+
i.content = r[0], Gn(i.content) && u.linkLevel++, Wn(i.content) && u.linkLevel--;
|
|
2414
2414
|
}
|
|
2415
2415
|
return u.pos += r[0].length, !0;
|
|
2416
2416
|
}
|
|
2417
|
-
const
|
|
2418
|
-
function
|
|
2417
|
+
const Xn = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Kn = /^&([a-z][a-z0-9]{1,31});/i;
|
|
2418
|
+
function Yn(u, e) {
|
|
2419
2419
|
const n = u.pos, t = u.posMax;
|
|
2420
2420
|
if (u.src.charCodeAt(n) !== 38 || n + 1 >= t) return !1;
|
|
2421
2421
|
if (u.src.charCodeAt(n + 1) === 35) {
|
|
2422
|
-
const r = u.src.slice(n).match(
|
|
2422
|
+
const r = u.src.slice(n).match(Xn);
|
|
2423
2423
|
if (r) {
|
|
2424
2424
|
if (!e) {
|
|
2425
2425
|
const i = r[1][0].toLowerCase() === "x" ? parseInt(r[1].slice(1), 16) : parseInt(r[1], 10), o = u.push("text_special", "", 0);
|
|
2426
|
-
o.content =
|
|
2426
|
+
o.content = zu(i) ? X(i) : X(65533), o.markup = r[0], o.info = "entity";
|
|
2427
2427
|
}
|
|
2428
2428
|
return u.pos += r[0].length, !0;
|
|
2429
2429
|
}
|
|
2430
2430
|
} else {
|
|
2431
|
-
const r = u.src.slice(n).match(
|
|
2431
|
+
const r = u.src.slice(n).match(Kn);
|
|
2432
2432
|
if (r) {
|
|
2433
|
-
const i =
|
|
2433
|
+
const i = m0(r[0]);
|
|
2434
2434
|
if (i !== r[0]) {
|
|
2435
2435
|
if (!e) {
|
|
2436
2436
|
const o = u.push("text_special", "", 0);
|
|
@@ -2442,7 +2442,7 @@ function Xn(u, e) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
return !1;
|
|
2444
2444
|
}
|
|
2445
|
-
function
|
|
2445
|
+
function Ku(u) {
|
|
2446
2446
|
const e = {}, n = u.length;
|
|
2447
2447
|
if (!n) return;
|
|
2448
2448
|
let t = 0, c = -2;
|
|
@@ -2452,28 +2452,28 @@ function Xu(u) {
|
|
|
2452
2452
|
if (r.push(0), (u[t].marker !== o.marker || c !== o.token - 1) && (t = i), c = o.token, o.length = o.length || 0, !o.close) continue;
|
|
2453
2453
|
e.hasOwnProperty(o.marker) || (e[o.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
2454
2454
|
const a = e[o.marker][(o.open ? 3 : 0) + o.length % 3];
|
|
2455
|
-
let s = t - r[t] - 1,
|
|
2455
|
+
let s = t - r[t] - 1, l = s;
|
|
2456
2456
|
for (; s > a; s -= r[s] + 1) {
|
|
2457
|
-
const
|
|
2458
|
-
if (
|
|
2457
|
+
const f = u[s];
|
|
2458
|
+
if (f.marker === o.marker && f.open && f.end < 0) {
|
|
2459
2459
|
let b = !1;
|
|
2460
|
-
if ((
|
|
2460
|
+
if ((f.close || o.open) && (f.length + o.length) % 3 === 0 && (f.length % 3 !== 0 || o.length % 3 !== 0) && (b = !0), !b) {
|
|
2461
2461
|
const h = s > 0 && !u[s - 1].open ? r[s - 1] + 1 : 0;
|
|
2462
|
-
r[i] = i - s + h, r[s] = h, o.open = !1,
|
|
2462
|
+
r[i] = i - s + h, r[s] = h, o.open = !1, f.end = i, f.close = !1, l = -1, c = -2;
|
|
2463
2463
|
break;
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
|
-
|
|
2467
|
+
l !== -1 && (e[o.marker][(o.open ? 3 : 0) + (o.length || 0) % 3] = l);
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function ur(u) {
|
|
2471
2471
|
const e = u.tokens_meta, n = u.tokens_meta.length;
|
|
2472
|
-
|
|
2472
|
+
Ku(u.delimiters);
|
|
2473
2473
|
for (let t = 0; t < n; t++)
|
|
2474
|
-
e[t] && e[t].delimiters &&
|
|
2474
|
+
e[t] && e[t].delimiters && Ku(e[t].delimiters);
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function er(u) {
|
|
2477
2477
|
let e, n, t = 0;
|
|
2478
2478
|
const c = u.tokens, r = u.tokens.length;
|
|
2479
2479
|
for (e = n = 0; e < r; e++)
|
|
@@ -2481,25 +2481,25 @@ function Yn(u) {
|
|
|
2481
2481
|
e !== n && (c.length = n);
|
|
2482
2482
|
}
|
|
2483
2483
|
const gu = [
|
|
2484
|
-
["text",
|
|
2485
|
-
["linkify",
|
|
2486
|
-
["newline",
|
|
2487
|
-
["escape",
|
|
2488
|
-
["backticks",
|
|
2489
|
-
["strikethrough",
|
|
2490
|
-
["emphasis",
|
|
2491
|
-
["link",
|
|
2492
|
-
["image",
|
|
2493
|
-
["autolink",
|
|
2494
|
-
["html_inline",
|
|
2495
|
-
["entity",
|
|
2484
|
+
["text", $n],
|
|
2485
|
+
["linkify", Bn],
|
|
2486
|
+
["newline", In],
|
|
2487
|
+
["escape", Rn],
|
|
2488
|
+
["backticks", qn],
|
|
2489
|
+
["strikethrough", me.tokenize],
|
|
2490
|
+
["emphasis", _e.tokenize],
|
|
2491
|
+
["link", jn],
|
|
2492
|
+
["image", Hn],
|
|
2493
|
+
["autolink", Vn],
|
|
2494
|
+
["html_inline", Qn],
|
|
2495
|
+
["entity", Yn]
|
|
2496
2496
|
], Cu = [
|
|
2497
|
-
["balance_pairs",
|
|
2498
|
-
["strikethrough",
|
|
2499
|
-
["emphasis",
|
|
2497
|
+
["balance_pairs", ur],
|
|
2498
|
+
["strikethrough", me.postProcess],
|
|
2499
|
+
["emphasis", _e.postProcess],
|
|
2500
2500
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
2501
2501
|
// rule below merges unused segments back with the rest of the text
|
|
2502
|
-
["fragments_join",
|
|
2502
|
+
["fragments_join", er]
|
|
2503
2503
|
];
|
|
2504
2504
|
function tu() {
|
|
2505
2505
|
this.ruler = new v();
|
|
@@ -2557,9 +2557,9 @@ tu.prototype.parse = function(u, e, n, t) {
|
|
|
2557
2557
|
r[o](c);
|
|
2558
2558
|
};
|
|
2559
2559
|
tu.prototype.State = ru;
|
|
2560
|
-
function
|
|
2560
|
+
function nr(u) {
|
|
2561
2561
|
const e = {};
|
|
2562
|
-
u = u || {}, e.src_Any =
|
|
2562
|
+
u = u || {}, e.src_Any = te.source, e.src_Cc = ce.source, e.src_Z = ie.source, e.src_P = Su.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
2563
2563
|
const n = "[><|]";
|
|
2564
2564
|
return e.src_pseudo_letter = `(?:(?!${n}|${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}|[@/\\[\\]()]).){1,50}@)?`, 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 = `(?=$|${n}|${e.src_ZPCc})(?!${u["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${e.src_ZPCc}))`, e.src_path = `(?:[/?#](?:(?!${e.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${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
|
|
2565
2565
|
`,(?!${e.src_ZCc}|$)|;(?!${e.src_ZCc}|$)|\\!+(?!${e.src_ZCc}|[!]|$)|\\?(?!${e.src_ZCc}|[?]|$))+|\\/)?`, e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -2569,7 +2569,7 @@ function ur(u) {
|
|
|
2569
2569
|
// but can start with > (markdown blockquote)
|
|
2570
2570
|
`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${e.src_ZPCc}))((?![$+<=>^\`||])${e.tpl_host_port_no_ip_fuzzy_strict}${e.src_path})`, e;
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function Fu(u) {
|
|
2573
2573
|
return Array.prototype.slice.call(arguments, 1).forEach(function(n) {
|
|
2574
2574
|
n && Object.keys(n).forEach(function(t) {
|
|
2575
2575
|
u[t] = n[t];
|
|
@@ -2579,32 +2579,32 @@ function Au(u) {
|
|
|
2579
2579
|
function bu(u) {
|
|
2580
2580
|
return Object.prototype.toString.call(u);
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function rr(u) {
|
|
2583
2583
|
return bu(u) === "[object String]";
|
|
2584
2584
|
}
|
|
2585
|
-
function
|
|
2585
|
+
function tr(u) {
|
|
2586
2586
|
return bu(u) === "[object Object]";
|
|
2587
2587
|
}
|
|
2588
|
-
function
|
|
2588
|
+
function cr(u) {
|
|
2589
2589
|
return bu(u) === "[object RegExp]";
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function Yu(u) {
|
|
2592
2592
|
return bu(u) === "[object Function]";
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function or(u) {
|
|
2595
2595
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
2596
2596
|
}
|
|
2597
|
-
const
|
|
2597
|
+
const ke = {
|
|
2598
2598
|
fuzzyLink: !0,
|
|
2599
2599
|
fuzzyEmail: !0,
|
|
2600
2600
|
fuzzyIP: !1
|
|
2601
2601
|
};
|
|
2602
|
-
function
|
|
2602
|
+
function ir(u) {
|
|
2603
2603
|
return Object.keys(u || {}).reduce(function(e, n) {
|
|
2604
|
-
return e ||
|
|
2604
|
+
return e || ke.hasOwnProperty(n);
|
|
2605
2605
|
}, !1);
|
|
2606
2606
|
}
|
|
2607
|
-
const
|
|
2607
|
+
const ar = {
|
|
2608
2608
|
"http:": {
|
|
2609
2609
|
validate: function(u, e, n) {
|
|
2610
2610
|
const t = u.slice(e);
|
|
@@ -2636,21 +2636,21 @@ const or = {
|
|
|
2636
2636
|
)), n.re.mailto.test(t) ? t.match(n.re.mailto)[0].length : 0;
|
|
2637
2637
|
}
|
|
2638
2638
|
}
|
|
2639
|
-
},
|
|
2640
|
-
function
|
|
2639
|
+
}, sr = "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]", lr = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
2640
|
+
function fr(u) {
|
|
2641
2641
|
return function(e, n) {
|
|
2642
2642
|
const t = e.slice(n);
|
|
2643
2643
|
return u.test(t) ? t.match(u)[0].length : 0;
|
|
2644
2644
|
};
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function ue() {
|
|
2647
2647
|
return function(u, e) {
|
|
2648
2648
|
e.normalize(u);
|
|
2649
2649
|
};
|
|
2650
2650
|
}
|
|
2651
2651
|
function su(u) {
|
|
2652
|
-
const e = u.re =
|
|
2653
|
-
u.onCompile(), u.__tlds_replaced__ || n.push(
|
|
2652
|
+
const e = u.re = nr(u.__opts__), n = u.__tlds__.slice();
|
|
2653
|
+
u.onCompile(), u.__tlds_replaced__ || n.push(sr), n.push(e.src_xn), e.src_tlds = n.join("|");
|
|
2654
2654
|
function t(o) {
|
|
2655
2655
|
return o.replace("%TLDS%", e.src_tlds);
|
|
2656
2656
|
}
|
|
@@ -2665,40 +2665,40 @@ function su(u) {
|
|
|
2665
2665
|
if (a === null)
|
|
2666
2666
|
return;
|
|
2667
2667
|
const s = { validate: null, link: null };
|
|
2668
|
-
if (u.__compiled__[o] = s,
|
|
2669
|
-
|
|
2668
|
+
if (u.__compiled__[o] = s, tr(a)) {
|
|
2669
|
+
cr(a.validate) ? s.validate = fr(a.validate) : Yu(a.validate) ? s.validate = a.validate : r(o, a), Yu(a.normalize) ? s.normalize = a.normalize : a.normalize ? r(o, a) : s.normalize = ue();
|
|
2670
2670
|
return;
|
|
2671
2671
|
}
|
|
2672
|
-
if (
|
|
2672
|
+
if (rr(a)) {
|
|
2673
2673
|
c.push(o);
|
|
2674
2674
|
return;
|
|
2675
2675
|
}
|
|
2676
2676
|
r(o, a);
|
|
2677
2677
|
}), c.forEach(function(o) {
|
|
2678
2678
|
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);
|
|
2679
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
|
2679
|
+
}), u.__compiled__[""] = { validate: null, normalize: ue() };
|
|
2680
2680
|
const i = Object.keys(u.__compiled__).filter(function(o) {
|
|
2681
2681
|
return o.length > 0 && u.__compiled__[o];
|
|
2682
|
-
}).map(
|
|
2682
|
+
}).map(or).join("|");
|
|
2683
2683
|
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(
|
|
2684
2684
|
`(${u.re.schema_test.source})|(${u.re.host_fuzzy_test.source})|@`,
|
|
2685
2685
|
"i"
|
|
2686
2686
|
);
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function ge(u, e, n, t) {
|
|
2689
2689
|
const c = u.slice(n, t);
|
|
2690
2690
|
this.schema = e.toLowerCase(), this.index = n, this.lastIndex = t, this.raw = c, this.text = c, this.url = c;
|
|
2691
2691
|
}
|
|
2692
2692
|
function S(u, e) {
|
|
2693
2693
|
if (!(this instanceof S))
|
|
2694
2694
|
return new S(u, e);
|
|
2695
|
-
e ||
|
|
2695
|
+
e || ir(u) && (e = u, u = {}), this.__opts__ = Fu({}, ke, e), this.__schemas__ = Fu({}, ar, u), this.__compiled__ = {}, this.__tlds__ = lr, this.__tlds_replaced__ = !1, this.re = {}, su(this);
|
|
2696
2696
|
}
|
|
2697
2697
|
S.prototype.add = function(e, n) {
|
|
2698
2698
|
return this.__schemas__[e] = n, su(this), this;
|
|
2699
2699
|
};
|
|
2700
2700
|
S.prototype.set = function(e) {
|
|
2701
|
-
return this.__opts__ =
|
|
2701
|
+
return this.__opts__ = Fu(this.__opts__, e), this;
|
|
2702
2702
|
};
|
|
2703
2703
|
S.prototype.test = function(e) {
|
|
2704
2704
|
if (!e.length)
|
|
@@ -2746,20 +2746,20 @@ S.prototype.match = function(e) {
|
|
|
2746
2746
|
index: i.index + i[1].length,
|
|
2747
2747
|
lastIndex: i.index + i[0].length
|
|
2748
2748
|
});
|
|
2749
|
-
const
|
|
2750
|
-
let
|
|
2749
|
+
const l = [0, 0, 0];
|
|
2750
|
+
let f = 0;
|
|
2751
2751
|
for (; ; ) {
|
|
2752
2752
|
const b = [
|
|
2753
|
-
t[
|
|
2754
|
-
r[
|
|
2755
|
-
c[
|
|
2753
|
+
t[l[0]],
|
|
2754
|
+
r[l[1]],
|
|
2755
|
+
c[l[2]]
|
|
2756
2756
|
], h = s(s(b[0], b[1]), b[2]);
|
|
2757
2757
|
if (!h)
|
|
2758
2758
|
break;
|
|
2759
|
-
if (h === b[0] ?
|
|
2759
|
+
if (h === b[0] ? l[0]++ : h === b[1] ? l[1]++ : l[2]++, h.index < f)
|
|
2760
2760
|
continue;
|
|
2761
|
-
const d = new
|
|
2762
|
-
this.__compiled__[d.schema].normalize(d, this), n.push(d),
|
|
2761
|
+
const d = new ge(e, h.schema, h.index, h.lastIndex);
|
|
2762
|
+
this.__compiled__[d.schema].normalize(d, this), n.push(d), f = h.lastIndex;
|
|
2763
2763
|
}
|
|
2764
2764
|
return n.length ? n : null;
|
|
2765
2765
|
};
|
|
@@ -2769,7 +2769,7 @@ S.prototype.matchAtStart = function(e) {
|
|
|
2769
2769
|
if (!n) return null;
|
|
2770
2770
|
const t = this.testSchemaAt(e, n[2], n[0].length);
|
|
2771
2771
|
if (!t) return null;
|
|
2772
|
-
const c = new
|
|
2772
|
+
const c = new ge(e, n[2], n.index + n[1].length, n.index + n[0].length + t);
|
|
2773
2773
|
return this.__compiled__[c.schema].normalize(c, this), c;
|
|
2774
2774
|
};
|
|
2775
2775
|
S.prototype.tlds = function(e, n) {
|
|
@@ -2782,29 +2782,29 @@ S.prototype.normalize = function(e) {
|
|
|
2782
2782
|
};
|
|
2783
2783
|
S.prototype.onCompile = function() {
|
|
2784
2784
|
};
|
|
2785
|
-
const Z = 2147483647, B = 36,
|
|
2785
|
+
const Z = 2147483647, B = 36, Bu = 1, eu = 26, dr = 38, hr = 700, Ce = 72, De = 128, Ee = "-", br = /^xn--/, pr = /[^\0-\x7F]/, xr = /[\x2E\u3002\uFF0E\uFF61]/g, mr = {
|
|
2786
2786
|
overflow: "Overflow: input needs wider integers to process",
|
|
2787
2787
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2788
2788
|
"invalid-input": "Invalid input"
|
|
2789
|
-
}, Du = B -
|
|
2789
|
+
}, Du = B - Bu, I = Math.floor, Eu = String.fromCharCode;
|
|
2790
2790
|
function L(u) {
|
|
2791
|
-
throw new RangeError(
|
|
2791
|
+
throw new RangeError(mr[u]);
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function _r(u, e) {
|
|
2794
2794
|
const n = [];
|
|
2795
2795
|
let t = u.length;
|
|
2796
2796
|
for (; t--; )
|
|
2797
2797
|
n[t] = e(u[t]);
|
|
2798
2798
|
return n;
|
|
2799
2799
|
}
|
|
2800
|
-
function
|
|
2800
|
+
function ye(u, e) {
|
|
2801
2801
|
const n = u.split("@");
|
|
2802
2802
|
let t = "";
|
|
2803
|
-
n.length > 1 && (t = n[0] + "@", u = n[1]), u = u.replace(
|
|
2804
|
-
const c = u.split("."), r =
|
|
2803
|
+
n.length > 1 && (t = n[0] + "@", u = n[1]), u = u.replace(xr, ".");
|
|
2804
|
+
const c = u.split("."), r = _r(c, e).join(".");
|
|
2805
2805
|
return t + r;
|
|
2806
2806
|
}
|
|
2807
|
-
function
|
|
2807
|
+
function Ae(u) {
|
|
2808
2808
|
const e = [];
|
|
2809
2809
|
let n = 0;
|
|
2810
2810
|
const t = u.length;
|
|
@@ -2818,78 +2818,78 @@ function y0(u) {
|
|
|
2818
2818
|
}
|
|
2819
2819
|
return e;
|
|
2820
2820
|
}
|
|
2821
|
-
const
|
|
2821
|
+
const kr = (u) => String.fromCodePoint(...u), gr = function(u) {
|
|
2822
2822
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : B;
|
|
2823
|
-
},
|
|
2823
|
+
}, ee = function(u, e) {
|
|
2824
2824
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
2825
|
-
},
|
|
2825
|
+
}, Fe = function(u, e, n) {
|
|
2826
2826
|
let t = 0;
|
|
2827
|
-
for (u = n ? I(u /
|
|
2827
|
+
for (u = n ? I(u / hr) : u >> 1, u += I(u / e); u > Du * eu >> 1; t += B)
|
|
2828
2828
|
u = I(u / Du);
|
|
2829
|
-
return I(t + (Du + 1) * u / (u +
|
|
2830
|
-
},
|
|
2829
|
+
return I(t + (Du + 1) * u / (u + dr));
|
|
2830
|
+
}, we = function(u) {
|
|
2831
2831
|
const e = [], n = u.length;
|
|
2832
|
-
let t = 0, c =
|
|
2832
|
+
let t = 0, c = De, r = Ce, i = u.lastIndexOf(Ee);
|
|
2833
2833
|
i < 0 && (i = 0);
|
|
2834
2834
|
for (let o = 0; o < i; ++o)
|
|
2835
2835
|
u.charCodeAt(o) >= 128 && L("not-basic"), e.push(u.charCodeAt(o));
|
|
2836
2836
|
for (let o = i > 0 ? i + 1 : 0; o < n; ) {
|
|
2837
2837
|
const a = t;
|
|
2838
|
-
for (let
|
|
2838
|
+
for (let l = 1, f = B; ; f += B) {
|
|
2839
2839
|
o >= n && L("invalid-input");
|
|
2840
|
-
const b =
|
|
2841
|
-
b >= B && L("invalid-input"), b > I((Z - t) /
|
|
2842
|
-
const h =
|
|
2840
|
+
const b = gr(u.charCodeAt(o++));
|
|
2841
|
+
b >= B && L("invalid-input"), b > I((Z - t) / l) && L("overflow"), t += b * l;
|
|
2842
|
+
const h = f <= r ? Bu : f >= r + eu ? eu : f - r;
|
|
2843
2843
|
if (b < h)
|
|
2844
2844
|
break;
|
|
2845
2845
|
const d = B - h;
|
|
2846
|
-
|
|
2846
|
+
l > I(Z / d) && L("overflow"), l *= d;
|
|
2847
2847
|
}
|
|
2848
2848
|
const s = e.length + 1;
|
|
2849
|
-
r =
|
|
2849
|
+
r = Fe(t - a, s, a == 0), I(t / s) > Z - c && L("overflow"), c += I(t / s), t %= s, e.splice(t++, 0, c);
|
|
2850
2850
|
}
|
|
2851
2851
|
return String.fromCodePoint(...e);
|
|
2852
|
-
},
|
|
2852
|
+
}, ve = function(u) {
|
|
2853
2853
|
const e = [];
|
|
2854
|
-
u =
|
|
2854
|
+
u = Ae(u);
|
|
2855
2855
|
const n = u.length;
|
|
2856
|
-
let t =
|
|
2856
|
+
let t = De, c = 0, r = Ce;
|
|
2857
2857
|
for (const a of u)
|
|
2858
2858
|
a < 128 && e.push(Eu(a));
|
|
2859
2859
|
const i = e.length;
|
|
2860
2860
|
let o = i;
|
|
2861
|
-
for (i && e.push(
|
|
2861
|
+
for (i && e.push(Ee); o < n; ) {
|
|
2862
2862
|
let a = Z;
|
|
2863
|
-
for (const
|
|
2864
|
-
|
|
2863
|
+
for (const l of u)
|
|
2864
|
+
l >= t && l < a && (a = l);
|
|
2865
2865
|
const s = o + 1;
|
|
2866
2866
|
a - t > I((Z - c) / s) && L("overflow"), c += (a - t) * s, t = a;
|
|
2867
|
-
for (const
|
|
2868
|
-
if (
|
|
2869
|
-
let
|
|
2867
|
+
for (const l of u)
|
|
2868
|
+
if (l < t && ++c > Z && L("overflow"), l === t) {
|
|
2869
|
+
let f = c;
|
|
2870
2870
|
for (let b = B; ; b += B) {
|
|
2871
|
-
const h = b <= r ?
|
|
2872
|
-
if (
|
|
2871
|
+
const h = b <= r ? Bu : b >= r + eu ? eu : b - r;
|
|
2872
|
+
if (f < h)
|
|
2873
2873
|
break;
|
|
2874
|
-
const d =
|
|
2874
|
+
const d = f - h, p = B - h;
|
|
2875
2875
|
e.push(
|
|
2876
|
-
Eu(
|
|
2877
|
-
),
|
|
2876
|
+
Eu(ee(h + d % p, 0))
|
|
2877
|
+
), f = I(d / p);
|
|
2878
2878
|
}
|
|
2879
|
-
e.push(Eu(
|
|
2879
|
+
e.push(Eu(ee(f, 0))), r = Fe(c, s, o === i), c = 0, ++o;
|
|
2880
2880
|
}
|
|
2881
2881
|
++c, ++t;
|
|
2882
2882
|
}
|
|
2883
2883
|
return e.join("");
|
|
2884
|
-
},
|
|
2885
|
-
return
|
|
2886
|
-
return
|
|
2884
|
+
}, Cr = function(u) {
|
|
2885
|
+
return ye(u, function(e) {
|
|
2886
|
+
return br.test(e) ? we(e.slice(4).toLowerCase()) : e;
|
|
2887
2887
|
});
|
|
2888
|
-
},
|
|
2889
|
-
return
|
|
2890
|
-
return
|
|
2888
|
+
}, Dr = function(u) {
|
|
2889
|
+
return ye(u, function(e) {
|
|
2890
|
+
return pr.test(e) ? "xn--" + ve(e) : e;
|
|
2891
2891
|
});
|
|
2892
|
-
},
|
|
2892
|
+
}, Se = {
|
|
2893
2893
|
/**
|
|
2894
2894
|
* A string representing the current Punycode.js version number.
|
|
2895
2895
|
* @memberOf punycode
|
|
@@ -2904,14 +2904,14 @@ const mr = (u) => String.fromCodePoint(...u), _r = function(u) {
|
|
|
2904
2904
|
* @type Object
|
|
2905
2905
|
*/
|
|
2906
2906
|
ucs2: {
|
|
2907
|
-
decode:
|
|
2908
|
-
encode:
|
|
2907
|
+
decode: Ae,
|
|
2908
|
+
encode: kr
|
|
2909
2909
|
},
|
|
2910
|
-
decode:
|
|
2911
|
-
encode:
|
|
2912
|
-
toASCII:
|
|
2913
|
-
toUnicode:
|
|
2914
|
-
},
|
|
2910
|
+
decode: we,
|
|
2911
|
+
encode: ve,
|
|
2912
|
+
toASCII: Dr,
|
|
2913
|
+
toUnicode: Cr
|
|
2914
|
+
}, Er = {
|
|
2915
2915
|
options: {
|
|
2916
2916
|
// Enable HTML tags in source
|
|
2917
2917
|
html: !1,
|
|
@@ -2947,7 +2947,7 @@ const mr = (u) => String.fromCodePoint(...u), _r = function(u) {
|
|
|
2947
2947
|
block: {},
|
|
2948
2948
|
inline: {}
|
|
2949
2949
|
}
|
|
2950
|
-
},
|
|
2950
|
+
}, yr = {
|
|
2951
2951
|
options: {
|
|
2952
2952
|
// Enable HTML tags in source
|
|
2953
2953
|
html: !1,
|
|
@@ -3002,7 +3002,7 @@ const mr = (u) => String.fromCodePoint(...u), _r = function(u) {
|
|
|
3002
3002
|
]
|
|
3003
3003
|
}
|
|
3004
3004
|
}
|
|
3005
|
-
},
|
|
3005
|
+
}, Ar = {
|
|
3006
3006
|
options: {
|
|
3007
3007
|
// Enable HTML tags in source
|
|
3008
3008
|
html: !0,
|
|
@@ -3076,47 +3076,47 @@ const mr = (u) => String.fromCodePoint(...u), _r = function(u) {
|
|
|
3076
3076
|
]
|
|
3077
3077
|
}
|
|
3078
3078
|
}
|
|
3079
|
-
},
|
|
3080
|
-
default:
|
|
3081
|
-
zero:
|
|
3082
|
-
commonmark:
|
|
3083
|
-
},
|
|
3084
|
-
function
|
|
3079
|
+
}, Fr = {
|
|
3080
|
+
default: Er,
|
|
3081
|
+
zero: yr,
|
|
3082
|
+
commonmark: Ar
|
|
3083
|
+
}, wr = /^(vbscript|javascript|file|data):/, vr = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3084
|
+
function Sr(u) {
|
|
3085
3085
|
const e = u.trim().toLowerCase();
|
|
3086
|
-
return
|
|
3086
|
+
return wr.test(e) ? vr.test(e) : !0;
|
|
3087
3087
|
}
|
|
3088
|
-
const
|
|
3089
|
-
function
|
|
3088
|
+
const Te = ["http:", "https:", "mailto:"];
|
|
3089
|
+
function Tr(u) {
|
|
3090
3090
|
const e = vu(u, !0);
|
|
3091
|
-
if (e.hostname && (!e.protocol ||
|
|
3091
|
+
if (e.hostname && (!e.protocol || Te.indexOf(e.protocol) >= 0))
|
|
3092
3092
|
try {
|
|
3093
|
-
e.hostname =
|
|
3093
|
+
e.hostname = Se.toASCII(e.hostname);
|
|
3094
3094
|
} catch {
|
|
3095
3095
|
}
|
|
3096
3096
|
return nu(wu(e));
|
|
3097
3097
|
}
|
|
3098
|
-
function
|
|
3098
|
+
function zr(u) {
|
|
3099
3099
|
const e = vu(u, !0);
|
|
3100
|
-
if (e.hostname && (!e.protocol ||
|
|
3100
|
+
if (e.hostname && (!e.protocol || Te.indexOf(e.protocol) >= 0))
|
|
3101
3101
|
try {
|
|
3102
|
-
e.hostname =
|
|
3102
|
+
e.hostname = Se.toUnicode(e.hostname);
|
|
3103
3103
|
} catch {
|
|
3104
3104
|
}
|
|
3105
3105
|
return V(wu(e), V.defaultChars + "%");
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3108
|
-
if (!(this instanceof
|
|
3109
|
-
return new
|
|
3110
|
-
e ||
|
|
3107
|
+
function T(u, e) {
|
|
3108
|
+
if (!(this instanceof T))
|
|
3109
|
+
return new T(u, e);
|
|
3110
|
+
e || Tu(u) || (e = u || {}, u = "default"), this.inline = new tu(), this.block = new hu(), this.core = new $u(), this.renderer = new W(), this.linkify = new S(), this.validateLink = Sr, this.normalizeLink = Tr, this.normalizeLinkText = zr, this.utils = M0, this.helpers = lu({}, q0), this.options = {}, this.configure(u), e && this.set(e);
|
|
3111
3111
|
}
|
|
3112
|
-
|
|
3113
|
-
return
|
|
3112
|
+
T.prototype.set = function(u) {
|
|
3113
|
+
return lu(this.options, u), this;
|
|
3114
3114
|
};
|
|
3115
|
-
|
|
3115
|
+
T.prototype.configure = function(u) {
|
|
3116
3116
|
const e = this;
|
|
3117
|
-
if (
|
|
3117
|
+
if (Tu(u)) {
|
|
3118
3118
|
const n = u;
|
|
3119
|
-
if (u =
|
|
3119
|
+
if (u = Fr[n], !u)
|
|
3120
3120
|
throw new Error('Wrong `markdown-it` preset "' + n + '", check name');
|
|
3121
3121
|
}
|
|
3122
3122
|
if (!u)
|
|
@@ -3125,7 +3125,7 @@ z.prototype.configure = function(u) {
|
|
|
3125
3125
|
u.components[n].rules && e[n].ruler.enableOnly(u.components[n].rules), u.components[n].rules2 && e[n].ruler2.enableOnly(u.components[n].rules2);
|
|
3126
3126
|
}), this;
|
|
3127
3127
|
};
|
|
3128
|
-
|
|
3128
|
+
T.prototype.enable = function(u, e) {
|
|
3129
3129
|
let n = [];
|
|
3130
3130
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(c) {
|
|
3131
3131
|
n = n.concat(this[c].ruler.enable(u, !0));
|
|
@@ -3137,7 +3137,7 @@ z.prototype.enable = function(u, e) {
|
|
|
3137
3137
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + t);
|
|
3138
3138
|
return this;
|
|
3139
3139
|
};
|
|
3140
|
-
|
|
3140
|
+
T.prototype.disable = function(u, e) {
|
|
3141
3141
|
let n = [];
|
|
3142
3142
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(c) {
|
|
3143
3143
|
n = n.concat(this[c].ruler.disable(u, !0));
|
|
@@ -3149,28 +3149,28 @@ z.prototype.disable = function(u, e) {
|
|
|
3149
3149
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + t);
|
|
3150
3150
|
return this;
|
|
3151
3151
|
};
|
|
3152
|
-
|
|
3152
|
+
T.prototype.use = function(u) {
|
|
3153
3153
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3154
3154
|
return u.apply(u, e), this;
|
|
3155
3155
|
};
|
|
3156
|
-
|
|
3156
|
+
T.prototype.parse = function(u, e) {
|
|
3157
3157
|
if (typeof u != "string")
|
|
3158
3158
|
throw new Error("Input data should be a String");
|
|
3159
3159
|
const n = new this.core.State(u, this, e);
|
|
3160
3160
|
return this.core.process(n), n.tokens;
|
|
3161
3161
|
};
|
|
3162
|
-
|
|
3162
|
+
T.prototype.render = function(u, e) {
|
|
3163
3163
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
3164
3164
|
};
|
|
3165
|
-
|
|
3165
|
+
T.prototype.parseInline = function(u, e) {
|
|
3166
3166
|
const n = new this.core.State(u, this, e);
|
|
3167
3167
|
return n.inlineMode = !0, this.core.process(n), n.tokens;
|
|
3168
3168
|
};
|
|
3169
|
-
|
|
3169
|
+
T.prototype.renderInline = function(u, e) {
|
|
3170
3170
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3171
3171
|
};
|
|
3172
3172
|
const iu = /* @__PURE__ */ Symbol("markdown-it-deflist.ddDepth");
|
|
3173
|
-
function
|
|
3173
|
+
function $r(u) {
|
|
3174
3174
|
const e = u.utils.isSpace;
|
|
3175
3175
|
function n(r, i) {
|
|
3176
3176
|
let o = r.bMarks[i] + r.tShift[i];
|
|
@@ -3180,17 +3180,17 @@ function zr(u) {
|
|
|
3180
3180
|
const s = r.src.charCodeAt(o++);
|
|
3181
3181
|
if (s !== 126 && s !== 58)
|
|
3182
3182
|
return -1;
|
|
3183
|
-
const
|
|
3184
|
-
return o < a && o ===
|
|
3183
|
+
const l = r.skipSpaces(o);
|
|
3184
|
+
return o < a && o === l ? -1 : o;
|
|
3185
3185
|
}
|
|
3186
3186
|
function t(r, i, o, a) {
|
|
3187
3187
|
let s = -1;
|
|
3188
|
-
for (let
|
|
3189
|
-
const
|
|
3190
|
-
if (!(
|
|
3188
|
+
for (let l = i; l < o; l++) {
|
|
3189
|
+
const f = r.tokens[l];
|
|
3190
|
+
if (!(f.level !== a || !f.block || f.nesting < 0)) {
|
|
3191
3191
|
if (s >= 0)
|
|
3192
3192
|
return;
|
|
3193
|
-
s =
|
|
3193
|
+
s = l;
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
3196
|
s < 0 || r.tokens[s].type !== "paragraph_open" || (r.tokens[s + 2].hidden = !0, r.tokens[s].hidden = !0);
|
|
@@ -3201,54 +3201,54 @@ function zr(u) {
|
|
|
3201
3201
|
let s = i + 1;
|
|
3202
3202
|
if (s >= o)
|
|
3203
3203
|
return !1;
|
|
3204
|
-
let
|
|
3205
|
-
if (r.isEmpty(s) && (s++,
|
|
3204
|
+
let l = !0;
|
|
3205
|
+
if (r.isEmpty(s) && (s++, l = !1, s >= o) || r.sCount[s] < r.blkIndent)
|
|
3206
3206
|
return !1;
|
|
3207
|
-
let
|
|
3208
|
-
if (
|
|
3207
|
+
let f = n(r, s);
|
|
3208
|
+
if (f < 0)
|
|
3209
3209
|
return !1;
|
|
3210
3210
|
const b = r.push("dl_open", "dl", 1), h = [i, 0];
|
|
3211
3211
|
b.map = h;
|
|
3212
3212
|
let d = i, p = s;
|
|
3213
3213
|
u:
|
|
3214
3214
|
for (; ; ) {
|
|
3215
|
-
const
|
|
3216
|
-
|
|
3217
|
-
const
|
|
3218
|
-
for (
|
|
3215
|
+
const m = r.push("dt_open", "dt", 1);
|
|
3216
|
+
m.map = [d, d];
|
|
3217
|
+
const C = r.push("inline", "", 0);
|
|
3218
|
+
for (C.map = [d, d], C.content = r.getLines(d, d + 1, r.blkIndent, !1).trim(), C.children = [], r.push("dt_close", "dt", -1); ; ) {
|
|
3219
3219
|
const _ = r.tokens.length, k = r.push("dd_open", "dd", 1), g = [s, 0];
|
|
3220
3220
|
k.map = g;
|
|
3221
|
-
let
|
|
3221
|
+
let D = f;
|
|
3222
3222
|
const y = r.eMarks[p];
|
|
3223
|
-
let w = r.sCount[p] +
|
|
3224
|
-
for (;
|
|
3225
|
-
const Q = r.src.charCodeAt(
|
|
3223
|
+
let w = r.sCount[p] + f - (r.bMarks[p] + r.tShift[p]);
|
|
3224
|
+
for (; D < y; ) {
|
|
3225
|
+
const Q = r.src.charCodeAt(D);
|
|
3226
3226
|
if (e(Q))
|
|
3227
3227
|
Q === 9 ? w += 4 - w % 4 : w++;
|
|
3228
3228
|
else
|
|
3229
3229
|
break;
|
|
3230
|
-
|
|
3230
|
+
D++;
|
|
3231
3231
|
}
|
|
3232
|
-
|
|
3232
|
+
f = D;
|
|
3233
3233
|
const $ = r.tight, j = r.blkIndent, J = r.tShift[p], pu = r.sCount[p], xu = r.parentType;
|
|
3234
|
-
if (r.blkIndent = r.sCount[p] + 2, r.tShift[p] =
|
|
3234
|
+
if (r.blkIndent = r.sCount[p] + 2, r.tShift[p] = f - r.bMarks[p], r.sCount[p] = w, r.tight = !0, r.parentType = "deflist", r.env[iu] = (r.env[iu] || 0) + 1, r.md.block.tokenize(r, p, o, !0), r.env[iu]--, l && t(r, _, r.tokens.length, k.level + 1), r.tShift[p] = J, r.sCount[p] = pu, r.tight = $, r.parentType = xu, r.blkIndent = j, r.push("dd_close", "dd", -1), g[1] = s = r.line, s >= o || r.sCount[s] < r.blkIndent)
|
|
3235
3235
|
break u;
|
|
3236
|
-
if (
|
|
3236
|
+
if (f = n(r, s), f < 0)
|
|
3237
3237
|
break;
|
|
3238
3238
|
p = s;
|
|
3239
3239
|
}
|
|
3240
3240
|
if (s >= o || (d = s, r.isEmpty(d)) || r.sCount[d] < r.blkIndent || (p = d + 1, p >= o))
|
|
3241
3241
|
break;
|
|
3242
|
-
const
|
|
3243
|
-
if (
|
|
3242
|
+
const x = r.isEmpty(p);
|
|
3243
|
+
if (x && p++, p >= o || r.sCount[p] < r.blkIndent || (f = n(r, p), f < 0))
|
|
3244
3244
|
break;
|
|
3245
|
-
|
|
3245
|
+
l = !x;
|
|
3246
3246
|
}
|
|
3247
3247
|
return r.push("dl_close", "dl", -1), h[1] = s, r.line = s, !0;
|
|
3248
3248
|
}
|
|
3249
3249
|
u.block.ruler.before("paragraph", "deflist", c, { alt: ["paragraph", "reference", "blockquote"] });
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3251
|
+
function Mr(u) {
|
|
3252
3252
|
function e(t, c) {
|
|
3253
3253
|
const r = t.pos, i = t.src.charCodeAt(r);
|
|
3254
3254
|
if (c || i !== 43)
|
|
@@ -3259,16 +3259,16 @@ function Tr(u) {
|
|
|
3259
3259
|
if (a < 2)
|
|
3260
3260
|
return !1;
|
|
3261
3261
|
if (a % 2) {
|
|
3262
|
-
const f = t.push("text", "", 0);
|
|
3263
|
-
f.content = s, a--;
|
|
3264
|
-
}
|
|
3265
|
-
for (let f = 0; f < a; f += 2) {
|
|
3266
3262
|
const l = t.push("text", "", 0);
|
|
3267
|
-
l.content = s
|
|
3263
|
+
l.content = s, a--;
|
|
3264
|
+
}
|
|
3265
|
+
for (let l = 0; l < a; l += 2) {
|
|
3266
|
+
const f = t.push("text", "", 0);
|
|
3267
|
+
f.content = s + s, !(!o.can_open && !o.can_close) && t.delimiters.push({
|
|
3268
3268
|
marker: i,
|
|
3269
3269
|
length: 0,
|
|
3270
3270
|
// disable "rule of 3" length checks meant for emphasis
|
|
3271
|
-
jump:
|
|
3271
|
+
jump: l / 2,
|
|
3272
3272
|
// 1 delimiter = 2 characters
|
|
3273
3273
|
token: t.tokens.length - 1,
|
|
3274
3274
|
end: -1,
|
|
@@ -3285,8 +3285,8 @@ function Tr(u) {
|
|
|
3285
3285
|
const s = c[a];
|
|
3286
3286
|
if (s.marker !== 43 || s.end === -1)
|
|
3287
3287
|
continue;
|
|
3288
|
-
const
|
|
3289
|
-
r = t.tokens[s.token], r.type = "ins_open", r.tag = "ins", r.nesting = 1, r.markup = "++", r.content = "", r = t.tokens[
|
|
3288
|
+
const l = c[s.end];
|
|
3289
|
+
r = t.tokens[s.token], r.type = "ins_open", r.tag = "ins", r.nesting = 1, r.markup = "++", r.content = "", r = t.tokens[l.token], r.type = "ins_close", r.tag = "ins", r.nesting = -1, r.markup = "++", r.content = "", t.tokens[l.token - 1].type === "text" && t.tokens[l.token - 1].content === "+" && i.push(l.token - 1);
|
|
3290
3290
|
}
|
|
3291
3291
|
for (; i.length; ) {
|
|
3292
3292
|
const a = i.pop();
|
|
@@ -3303,7 +3303,7 @@ function Tr(u) {
|
|
|
3303
3303
|
c[i] && c[i].delimiters && n(t, c[i].delimiters);
|
|
3304
3304
|
});
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function Br(u) {
|
|
3307
3307
|
function e(t, c) {
|
|
3308
3308
|
const r = t.pos, i = t.src.charCodeAt(r);
|
|
3309
3309
|
if (c || i !== 61)
|
|
@@ -3314,16 +3314,16 @@ function $r(u) {
|
|
|
3314
3314
|
if (a < 2)
|
|
3315
3315
|
return !1;
|
|
3316
3316
|
if (a % 2) {
|
|
3317
|
-
const f = t.push("text", "", 0);
|
|
3318
|
-
f.content = s, a--;
|
|
3319
|
-
}
|
|
3320
|
-
for (let f = 0; f < a; f += 2) {
|
|
3321
3317
|
const l = t.push("text", "", 0);
|
|
3322
|
-
l.content = s
|
|
3318
|
+
l.content = s, a--;
|
|
3319
|
+
}
|
|
3320
|
+
for (let l = 0; l < a; l += 2) {
|
|
3321
|
+
const f = t.push("text", "", 0);
|
|
3322
|
+
f.content = s + s, !(!o.can_open && !o.can_close) && t.delimiters.push({
|
|
3323
3323
|
marker: i,
|
|
3324
3324
|
length: 0,
|
|
3325
3325
|
// disable "rule of 3" length checks meant for emphasis
|
|
3326
|
-
jump:
|
|
3326
|
+
jump: l / 2,
|
|
3327
3327
|
// 1 delimiter = 2 characters
|
|
3328
3328
|
token: t.tokens.length - 1,
|
|
3329
3329
|
end: -1,
|
|
@@ -3339,10 +3339,10 @@ function $r(u) {
|
|
|
3339
3339
|
const a = c[o];
|
|
3340
3340
|
if (a.marker !== 61 || a.end === -1)
|
|
3341
3341
|
continue;
|
|
3342
|
-
const s = c[a.end],
|
|
3343
|
-
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3342
|
+
const s = c[a.end], l = t.tokens[a.token];
|
|
3343
|
+
l.type = "mark_open", l.tag = "mark", l.nesting = 1, l.markup = "==", l.content = "";
|
|
3344
|
+
const f = t.tokens[s.token];
|
|
3345
|
+
f.type = "mark_close", f.tag = "mark", f.nesting = -1, f.markup = "==", f.content = "", t.tokens[s.token - 1].type === "text" && t.tokens[s.token - 1].content === "=" && r.push(s.token - 1);
|
|
3346
3346
|
}
|
|
3347
3347
|
for (; r.length; ) {
|
|
3348
3348
|
const o = r.pop();
|
|
@@ -3362,8 +3362,8 @@ function $r(u) {
|
|
|
3362
3362
|
r[c] && r[c].delimiters && n(t, r[c].delimiters);
|
|
3363
3363
|
});
|
|
3364
3364
|
}
|
|
3365
|
-
const
|
|
3366
|
-
function
|
|
3365
|
+
const Ir = /\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;
|
|
3366
|
+
function Rr(u, e) {
|
|
3367
3367
|
const n = u.posMax, t = u.pos;
|
|
3368
3368
|
if (u.src.charCodeAt(t) !== 126 || e || t + 2 >= n)
|
|
3369
3369
|
return !1;
|
|
@@ -3385,14 +3385,14 @@ function Ir(u, e) {
|
|
|
3385
3385
|
const i = u.push("sub_open", "sub", 1);
|
|
3386
3386
|
i.markup = "~";
|
|
3387
3387
|
const o = u.push("text", "", 0);
|
|
3388
|
-
o.content = r.replace(
|
|
3388
|
+
o.content = r.replace(Ir, "$1");
|
|
3389
3389
|
const a = u.push("sub_close", "sub", -1);
|
|
3390
3390
|
return a.markup = "~", u.pos = u.posMax + 1, u.posMax = n, !0;
|
|
3391
3391
|
}
|
|
3392
|
-
function
|
|
3393
|
-
u.inline.ruler.after("emphasis", "sub",
|
|
3392
|
+
function qr(u) {
|
|
3393
|
+
u.inline.ruler.after("emphasis", "sub", Rr);
|
|
3394
3394
|
}
|
|
3395
|
-
const
|
|
3395
|
+
const Pr = ["gray", "yellow", "orange", "red", "green", "blue", "violet"], Lr = {
|
|
3396
3396
|
gray: "--markdown-editor-color-gray",
|
|
3397
3397
|
yellow: "--markdown-editor-color-yellow",
|
|
3398
3398
|
orange: "--markdown-editor-color-orange",
|
|
@@ -3401,53 +3401,100 @@ const qr = ["gray", "yellow", "orange", "red", "green", "blue", "violet"], Rr =
|
|
|
3401
3401
|
blue: "--markdown-editor-color-blue",
|
|
3402
3402
|
violet: "--markdown-editor-color-violet"
|
|
3403
3403
|
};
|
|
3404
|
-
function
|
|
3405
|
-
return
|
|
3404
|
+
function ze(u) {
|
|
3405
|
+
return Pr.includes(u);
|
|
3406
3406
|
}
|
|
3407
|
-
function
|
|
3408
|
-
const e =
|
|
3409
|
-
return `var(${
|
|
3407
|
+
function Or(u) {
|
|
3408
|
+
const e = ze(u) ? u : "gray";
|
|
3409
|
+
return `var(${Lr[e]})`;
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Nr(u) {
|
|
3412
3412
|
return u.inline.ruler.before("emphasis", "color", (e, n) => {
|
|
3413
3413
|
const t = e.pos;
|
|
3414
|
-
if (e.src[t] !== "{" ||
|
|
3414
|
+
if (e.src[t] !== "{" || $e(e.src, t)) return !1;
|
|
3415
3415
|
const c = e.src.indexOf("}", t + 1);
|
|
3416
3416
|
if (c < 0 || e.src[c + 1] !== "(") return !1;
|
|
3417
3417
|
const r = e.src.slice(t + 1, c);
|
|
3418
|
-
if (!
|
|
3419
|
-
const i = c + 2, o =
|
|
3418
|
+
if (!ze(r)) return !1;
|
|
3419
|
+
const i = c + 2, o = jr(e.src, i, e.posMax);
|
|
3420
3420
|
if (o < 0) return !1;
|
|
3421
3421
|
if (!n) {
|
|
3422
3422
|
const a = e.push("color_open", "span", 1);
|
|
3423
|
-
a.attrSet("style", `color: ${
|
|
3423
|
+
a.attrSet("style", `color: ${Or(r)}`), a.meta = { color: r };
|
|
3424
3424
|
const s = e.posMax;
|
|
3425
3425
|
e.pos = i, e.posMax = o, e.md.inline.tokenize(e), e.posMax = s, e.push("color_close", "span", -1);
|
|
3426
3426
|
}
|
|
3427
3427
|
return e.pos = o + 1, !0;
|
|
3428
3428
|
}), u;
|
|
3429
3429
|
}
|
|
3430
|
-
function
|
|
3430
|
+
function jr(u, e, n) {
|
|
3431
3431
|
let t = 1;
|
|
3432
3432
|
for (let c = e; c < n; c += 1)
|
|
3433
|
-
if (
|
|
3433
|
+
if (!$e(u, c) && (u[c] === "(" && (t += 1), u[c] === ")" && (t -= 1), t === 0))
|
|
3434
3434
|
return c;
|
|
3435
3435
|
return -1;
|
|
3436
3436
|
}
|
|
3437
|
-
function
|
|
3437
|
+
function $e(u, e) {
|
|
3438
3438
|
let n = 0;
|
|
3439
3439
|
for (let t = e - 1; t >= 0 && u[t] === "\\"; t -= 1) n += 1;
|
|
3440
3440
|
return n % 2 === 1;
|
|
3441
3441
|
}
|
|
3442
|
-
const
|
|
3443
|
-
|
|
3442
|
+
const Hr = ["gray", "yellow", "orange", "red", "green", "blue", "violet"], Ur = {
|
|
3443
|
+
gray: "--markdown-editor-background-color-gray",
|
|
3444
|
+
yellow: "--markdown-editor-background-color-yellow",
|
|
3445
|
+
orange: "--markdown-editor-background-color-orange",
|
|
3446
|
+
red: "--markdown-editor-background-color-red",
|
|
3447
|
+
green: "--markdown-editor-background-color-green",
|
|
3448
|
+
blue: "--markdown-editor-background-color-blue",
|
|
3449
|
+
violet: "--markdown-editor-background-color-violet"
|
|
3450
|
+
};
|
|
3451
|
+
function Me(u) {
|
|
3452
|
+
return Hr.includes(u);
|
|
3453
|
+
}
|
|
3454
|
+
function Zr(u) {
|
|
3455
|
+
const e = Me(u) ? u : "gray";
|
|
3456
|
+
return `var(${Ur[e]})`;
|
|
3457
|
+
}
|
|
3458
|
+
function Vr(u) {
|
|
3459
|
+
return u.inline.ruler.before("emphasis", "background_color", (e, n) => {
|
|
3460
|
+
const t = e.pos;
|
|
3461
|
+
if (e.src[t] !== "{" || Be(e.src, t)) return !1;
|
|
3462
|
+
const c = e.src.indexOf("}", t + 1);
|
|
3463
|
+
if (c < 0 || e.src[c + 1] !== "(") return !1;
|
|
3464
|
+
const r = e.src.slice(t + 4, c);
|
|
3465
|
+
if (!e.src.startsWith("{bg-", t) || !Me(r)) return !1;
|
|
3466
|
+
const i = c + 2, o = Gr(e.src, i, e.posMax);
|
|
3467
|
+
if (o < 0) return !1;
|
|
3468
|
+
if (!n) {
|
|
3469
|
+
const a = e.push("background_color_open", "span", 1);
|
|
3470
|
+
a.attrSet("style", `background-color: ${Zr(r)}`), a.meta = { color: r };
|
|
3471
|
+
const s = e.posMax;
|
|
3472
|
+
e.pos = i, e.posMax = o, e.md.inline.tokenize(e), e.posMax = s, e.push("background_color_close", "span", -1);
|
|
3473
|
+
}
|
|
3474
|
+
return e.pos = o + 1, !0;
|
|
3475
|
+
}), u;
|
|
3476
|
+
}
|
|
3477
|
+
function Gr(u, e, n) {
|
|
3478
|
+
let t = 1;
|
|
3479
|
+
for (let c = e; c < n; c += 1)
|
|
3480
|
+
if (!Be(u, c) && (u[c] === "(" && (t += 1), u[c] === ")" && (t -= 1), t === 0))
|
|
3481
|
+
return c;
|
|
3482
|
+
return -1;
|
|
3483
|
+
}
|
|
3484
|
+
function Be(u, e) {
|
|
3485
|
+
let n = 0;
|
|
3486
|
+
for (let t = e - 1; t >= 0 && u[t] === "\\"; t -= 1) n += 1;
|
|
3487
|
+
return n % 2 === 1;
|
|
3488
|
+
}
|
|
3489
|
+
const M = new T().utils.escapeHtml;
|
|
3490
|
+
function Wr(u) {
|
|
3444
3491
|
u.inline.ruler.after("backticks", "inline_math", (e, n) => {
|
|
3445
|
-
if (e.src[e.pos] !== "$" || e.src[e.pos + 1] === "$" ||
|
|
3492
|
+
if (e.src[e.pos] !== "$" || e.src[e.pos + 1] === "$" || re(e.src, e.pos))
|
|
3446
3493
|
return !1;
|
|
3447
3494
|
let t = e.pos + 1;
|
|
3448
3495
|
for (; t < e.posMax; ) {
|
|
3449
3496
|
if (t = e.src.indexOf("$", t), t < 0 || t >= e.posMax) return !1;
|
|
3450
|
-
if (!
|
|
3497
|
+
if (!re(e.src, t)) break;
|
|
3451
3498
|
t += 1;
|
|
3452
3499
|
}
|
|
3453
3500
|
if (t <= e.pos + 1 || /\s/.test(e.src[e.pos + 1] ?? "") || /\s/.test(e.src[t - 1] ?? ""))
|
|
@@ -3476,10 +3523,10 @@ function Nr(u) {
|
|
|
3476
3523
|
const a = e.push("math_block", "", 0);
|
|
3477
3524
|
a.content = e.getLines(n + 1, o, 0, !1).trim();
|
|
3478
3525
|
}
|
|
3479
|
-
return e.line = o + 1, !0;
|
|
3526
|
+
return c || (e.line = o + 1), !0;
|
|
3480
3527
|
});
|
|
3481
3528
|
}
|
|
3482
|
-
function
|
|
3529
|
+
function Jr(u) {
|
|
3483
3530
|
u.block.ruler.before("fence", "yfm_html_block", (e, n, t, c) => {
|
|
3484
3531
|
if (e.getLines(n, n + 1, 0, !1).trim() !== ":::html") return !1;
|
|
3485
3532
|
let r = n + 1;
|
|
@@ -3489,21 +3536,21 @@ function jr(u) {
|
|
|
3489
3536
|
const i = e.push("yfm_html_block", "", 0);
|
|
3490
3537
|
i.content = e.getLines(n + 1, r, 0, !1).trim();
|
|
3491
3538
|
}
|
|
3492
|
-
return e.line = r + 1, !0;
|
|
3539
|
+
return c || (e.line = r + 1), !0;
|
|
3493
3540
|
}), u.block.ruler.before("fence", "directive", (e, n, t, c) => {
|
|
3494
|
-
const i = e.getLines(n, n + 1, 0, !1).trim().match(/^:::\s*(\w+)\s*$/);
|
|
3541
|
+
const i = e.getLines(n, n + 1, 0, !1).trim().match(/^:::\s*(\w+)(?:\s+(\{.*\}))?\s*$/);
|
|
3495
3542
|
if (i === null) return !1;
|
|
3496
3543
|
let o = n + 1;
|
|
3497
3544
|
for (; o < t && e.getLines(o, o + 1, 0, !1).trim() !== ":::"; ) o += 1;
|
|
3498
3545
|
if (o === t) return !1;
|
|
3499
3546
|
if (!c) {
|
|
3500
3547
|
const a = e.push("directive", "", 0);
|
|
3501
|
-
a.info = i[1] ?? "note", a.content = e.getLines(n + 1, o, 0, !1).trim();
|
|
3548
|
+
a.info = `${i[1] ?? "note"}\0${i[2] ?? ""}`, a.meta = { rawAttrs: i[2] ?? "" }, a.attrSet("data-raw-attrs", i[2] ?? ""), a.content = e.getLines(n + 1, o, 0, !1).trim();
|
|
3502
3549
|
}
|
|
3503
3550
|
return e.line = o + 1, !0;
|
|
3504
3551
|
});
|
|
3505
3552
|
}
|
|
3506
|
-
function
|
|
3553
|
+
function Qr(u) {
|
|
3507
3554
|
u.core.ruler.after("block", "mermaid_fences", (e) => {
|
|
3508
3555
|
for (const n of e.tokens)
|
|
3509
3556
|
n.type === "fence" && n.info.trim() === "mermaid" && (n.type = "mermaid");
|
|
@@ -3524,7 +3571,7 @@ function Hr(u) {
|
|
|
3524
3571
|
}
|
|
3525
3572
|
}
|
|
3526
3573
|
const i = t?.children;
|
|
3527
|
-
i != null &&
|
|
3574
|
+
i != null && Xr(i);
|
|
3528
3575
|
}
|
|
3529
3576
|
});
|
|
3530
3577
|
}
|
|
@@ -3532,7 +3579,7 @@ function yu(u, e) {
|
|
|
3532
3579
|
const n = [];
|
|
3533
3580
|
u.md.inline.parse(e.content, u.md, u.env, n), e.children = n;
|
|
3534
3581
|
}
|
|
3535
|
-
function
|
|
3582
|
+
function Xr(u) {
|
|
3536
3583
|
for (let e = 0; e < u.length; e += 1) {
|
|
3537
3584
|
const n = u[e], t = u[e + 1];
|
|
3538
3585
|
if (n?.type === "image" && t?.type === "text") {
|
|
@@ -3554,7 +3601,7 @@ function Ur(u) {
|
|
|
3554
3601
|
}
|
|
3555
3602
|
}
|
|
3556
3603
|
}
|
|
3557
|
-
function
|
|
3604
|
+
function Kr(u) {
|
|
3558
3605
|
u.core.ruler.after("renderer_extensions", "quote_links", (e) => {
|
|
3559
3606
|
for (let n = 0; n < e.tokens.length; n += 1) {
|
|
3560
3607
|
const t = e.tokens[n], c = e.tokens[n + 1], r = e.tokens[n + 2], i = e.tokens[n + 3];
|
|
@@ -3562,145 +3609,170 @@ function Zr(u) {
|
|
|
3562
3609
|
continue;
|
|
3563
3610
|
const o = r.content.match(/^\[([^\]]+)]\(([^)]+)\)\{data-quotelink=true}$/);
|
|
3564
3611
|
o === null || e.tokens.findIndex(
|
|
3565
|
-
(s,
|
|
3612
|
+
(s, l) => l > n && s.type === "blockquote_close"
|
|
3566
3613
|
) < 0 || (t.attrSet("cite", o[2] ?? ""), t.attrSet("data-content", o[1] ?? ""), t.attrSet("data-quote-link", ""), e.tokens.splice(n + 1, 3));
|
|
3567
3614
|
}
|
|
3568
3615
|
});
|
|
3569
3616
|
}
|
|
3570
|
-
function
|
|
3571
|
-
u.renderer.rules.inline_math = (
|
|
3572
|
-
`, u.renderer.rules.yfm_html_block = (
|
|
3573
|
-
`, u.renderer.rules.directive = (
|
|
3574
|
-
const
|
|
3575
|
-
|
|
3576
|
-
` : `<div data-directive="${P(i?.info || "note")}">${P(i?.content ?? "")}</div>
|
|
3617
|
+
function Yr(u, e) {
|
|
3618
|
+
u.renderer.rules.inline_math = (r, i, o, a) => ne(r[i]?.content ?? "", !1, a.features), u.renderer.rules.math_block = (r, i, o, a) => ne(r[i]?.content ?? "", !0, a.features), u.renderer.rules.mermaid = (r, i, o, a) => `<div data-mermaid${a.features?.mermaid === void 0 ? "" : ' aria-busy="true"'}><pre>${M(r[i]?.content ?? "")}</pre></div>
|
|
3619
|
+
`, u.renderer.rules.yfm_html_block = (r, i) => `<p data-yfm-html>:::html<br>${M(r[i]?.content ?? "")}<br>:::</p>
|
|
3620
|
+
`, u.renderer.rules.directive = (r, i) => {
|
|
3621
|
+
const o = r[i], [a = "note", s = ""] = (o?.info ?? "note").split("\0", 2);
|
|
3622
|
+
if (a === "html") return `${o?.content ?? ""}
|
|
3577
3623
|
`;
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3624
|
+
const l = s;
|
|
3625
|
+
let f = {};
|
|
3626
|
+
const b = e[a];
|
|
3627
|
+
if (l && b?.parseAttributes !== void 0)
|
|
3628
|
+
try {
|
|
3629
|
+
f = b.parseAttributes(l.slice(1, -1));
|
|
3630
|
+
} catch {
|
|
3631
|
+
}
|
|
3632
|
+
return `<div data-directive="${M(a)}" data-directive-attrs="${M(encodeURIComponent(JSON.stringify(f)))}">${M(o?.content ?? "")}</div>
|
|
3633
|
+
`;
|
|
3634
|
+
}, u.renderer.rules.html_block = (r, i) => `<div data-raw-html>${M(r[i]?.content ?? "")}</div>
|
|
3635
|
+
`, u.renderer.rules.html_inline = (r, i) => ut(r[i]?.content ?? "");
|
|
3636
|
+
const n = u.renderer.rules.image;
|
|
3637
|
+
u.renderer.rules.image = (r, i, o, a, s) => {
|
|
3638
|
+
const l = r[i], f = l?.attrGet("width"), b = l?.attrGet("height"), h = l?.attrGet("data-image-object-fit"), d = [];
|
|
3639
|
+
return f != null && /^\d+%?$/.test(f) && d.push(`width: ${f.endsWith("%") ? f : `${f}px`}`), b != null && /^\d+$/.test(b) && d.push(`height: ${b}px`), h != null && d.push(`object-fit: ${h}`), d.length > 0 && l?.attrSet("style", d.join("; ")), n?.(r, i, o, a, s) ?? s.renderToken(r, i, o);
|
|
3584
3640
|
};
|
|
3585
|
-
const
|
|
3586
|
-
u.renderer.rules.heading_open = (
|
|
3587
|
-
const
|
|
3588
|
-
let
|
|
3589
|
-
for (; (
|
|
3590
|
-
|
|
3591
|
-
return
|
|
3592
|
-
}, u.renderer.rules.heading_close = (
|
|
3593
|
-
const
|
|
3594
|
-
return
|
|
3641
|
+
const t = u.renderer.rules.heading_open ?? ((r, i, o, a, s) => s.renderToken(r, i, o)), c = u.renderer.rules.heading_close ?? ((r, i, o, a, s) => s.renderToken(r, i, o));
|
|
3642
|
+
u.renderer.rules.heading_open = (r, i, o, a, s) => {
|
|
3643
|
+
const l = r[i], f = Number(l?.tag.slice(1)) || 1, b = a.foldingHeadings ??= [];
|
|
3644
|
+
let h = "";
|
|
3645
|
+
for (; (b.at(-1) ?? 0) >= f; )
|
|
3646
|
+
b.pop(), h += "</details>";
|
|
3647
|
+
return l?.attrGet("data-folding") === "true" && (b.push(f), h += "<details data-folding-section open><summary>"), h + t(r, i, o, a, s);
|
|
3648
|
+
}, u.renderer.rules.heading_close = (r, i, o, a, s) => {
|
|
3649
|
+
const l = r[i - 2];
|
|
3650
|
+
return c(r, i, o, a, s) + (l?.attrGet("data-folding") === "true" ? "</summary>" : "");
|
|
3595
3651
|
};
|
|
3596
3652
|
}
|
|
3597
|
-
function
|
|
3653
|
+
function ne(u, e, n) {
|
|
3598
3654
|
try {
|
|
3599
3655
|
if (n?.math !== void 0) return n.math.renderToString(u, e);
|
|
3600
3656
|
} catch {
|
|
3601
|
-
return `<${e ? "pre" : "span"} data-math-error>${
|
|
3657
|
+
return `<${e ? "pre" : "span"} data-math-error>${M(e ? `$$
|
|
3602
3658
|
${u}
|
|
3603
3659
|
$$` : `$${u}$`)}</${e ? "pre" : "span"}>`;
|
|
3604
3660
|
}
|
|
3605
|
-
return `<${e ? "pre" : "span"} data-math-fallback>${
|
|
3661
|
+
return `<${e ? "pre" : "span"} data-math-fallback>${M(e ? `$$
|
|
3606
3662
|
${u}
|
|
3607
3663
|
$$` : `$${u}$`)}</${e ? "pre" : "span"}>`;
|
|
3608
3664
|
}
|
|
3609
|
-
function
|
|
3665
|
+
function ut(u) {
|
|
3610
3666
|
if (/^<\/?u>$/.test(u) || u === "</span>") return u;
|
|
3611
3667
|
const e = u.match(/^<span style="color:\s*([^";<>]+)">$/i)?.[1]?.trim();
|
|
3612
|
-
return e !== void 0 && /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\([^;<>]+\)|[a-z]+)$/i.test(e) ? `<span style="color: ${
|
|
3668
|
+
return e !== void 0 && /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\([^;<>]+\)|[a-z]+)$/i.test(e) ? `<span style="color: ${M(e)}">` : M(u);
|
|
3613
3669
|
}
|
|
3614
|
-
function
|
|
3670
|
+
function re(u, e) {
|
|
3615
3671
|
let n = 0;
|
|
3616
3672
|
for (let t = e - 1; t >= 0 && u[t] === "\\"; t -= 1) n += 1;
|
|
3617
3673
|
return n % 2 === 1;
|
|
3618
3674
|
}
|
|
3619
|
-
function
|
|
3620
|
-
const
|
|
3621
|
-
return
|
|
3675
|
+
function et(u = {}) {
|
|
3676
|
+
const e = new T("commonmark", { html: !0 }).enable("table").enable("strikethrough").use($r).use(Br).use(qr).use(Mr);
|
|
3677
|
+
return Wr(e), Jr(e), Qr(e), Kr(e), Vr(e), Nr(e), Yr(e, u), e;
|
|
3678
|
+
}
|
|
3679
|
+
function nt(u, e = {}, n = {}) {
|
|
3680
|
+
const t = {
|
|
3681
|
+
features: e
|
|
3682
|
+
}, c = et(n).render(u, t), r = t.foldingHeadings?.length ?? 0;
|
|
3683
|
+
return c + "</details>".repeat(r);
|
|
3622
3684
|
}
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3685
|
+
function rt(u) {
|
|
3686
|
+
if (u?.html !== void 0) {
|
|
3687
|
+
console.error('The "html" Markdown directive is reserved and will be ignored.');
|
|
3688
|
+
const { html: e, ...n } = u;
|
|
3689
|
+
return n;
|
|
3690
|
+
}
|
|
3691
|
+
return u ?? {};
|
|
3627
3692
|
}
|
|
3628
|
-
const
|
|
3693
|
+
const tt = ["innerHTML"];
|
|
3694
|
+
let ct = 0;
|
|
3695
|
+
const ot = /* @__PURE__ */ Re({
|
|
3629
3696
|
name: "MarkdownRenderer",
|
|
3630
3697
|
__name: "MarkdownRenderer",
|
|
3631
3698
|
props: {
|
|
3632
3699
|
content: {},
|
|
3633
|
-
|
|
3700
|
+
directives: {},
|
|
3634
3701
|
features: {}
|
|
3635
3702
|
},
|
|
3636
3703
|
setup(u) {
|
|
3637
|
-
const e = u, n =
|
|
3638
|
-
let
|
|
3639
|
-
function
|
|
3640
|
-
for (const
|
|
3641
|
-
|
|
3642
|
-
}
|
|
3643
|
-
function
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3704
|
+
const e = u, n = qe(), t = Pe()?.appContext, c = Iu(() => rt(e.directives)), r = Iu(() => nt(e.content, e.features, c.value)), i = r.value;
|
|
3705
|
+
let o = 0, a = !1, s = [];
|
|
3706
|
+
function l() {
|
|
3707
|
+
for (const d of s) Ru(null, d);
|
|
3708
|
+
s = [];
|
|
3709
|
+
}
|
|
3710
|
+
function f() {
|
|
3711
|
+
l();
|
|
3712
|
+
for (const d of n.value?.querySelectorAll("[data-directive]") ?? []) {
|
|
3713
|
+
const p = d.dataset.directive ?? "", m = c.value[p];
|
|
3714
|
+
if (m === void 0) continue;
|
|
3715
|
+
const C = d.textContent ?? "";
|
|
3716
|
+
d.replaceChildren();
|
|
3717
|
+
const x = {
|
|
3718
|
+
attrs: JSON.parse(decodeURIComponent(d.dataset.directiveAttrs ?? "%7B%7D")),
|
|
3719
|
+
content: C,
|
|
3720
|
+
name: p,
|
|
3721
|
+
readonly: !0,
|
|
3722
|
+
updateContent: () => {
|
|
3723
|
+
},
|
|
3724
|
+
updateAttrs: () => {
|
|
3725
|
+
}
|
|
3726
|
+
}, _ = Ze(m.component, x);
|
|
3727
|
+
_.appContext = t ?? null, Ru(_, d), s.push(d);
|
|
3728
|
+
}
|
|
3657
3729
|
}
|
|
3658
|
-
async function
|
|
3659
|
-
const
|
|
3660
|
-
if (
|
|
3661
|
-
|
|
3730
|
+
async function b() {
|
|
3731
|
+
const d = o, p = () => !a && d === o, m = [...n.value?.querySelectorAll("[data-mermaid]") ?? []];
|
|
3732
|
+
if (m.length === 0) return;
|
|
3733
|
+
if (e.features?.mermaid === void 0) {
|
|
3734
|
+
for (const x of m) x.removeAttribute("aria-busy");
|
|
3735
|
+
return;
|
|
3736
|
+
}
|
|
3737
|
+
let C;
|
|
3662
3738
|
try {
|
|
3663
|
-
|
|
3739
|
+
if (C = await e.features.mermaid.load(), !p()) return;
|
|
3740
|
+
C.initialize({ securityLevel: "strict", startOnLoad: !1 });
|
|
3664
3741
|
} catch {
|
|
3742
|
+
if (p()) for (const x of m) x.removeAttribute("aria-busy");
|
|
3665
3743
|
return;
|
|
3666
3744
|
}
|
|
3667
|
-
for (const
|
|
3668
|
-
if (
|
|
3669
|
-
const
|
|
3745
|
+
for (const x of m) {
|
|
3746
|
+
if (!p()) return;
|
|
3747
|
+
const _ = x.querySelector("pre")?.textContent ?? "";
|
|
3670
3748
|
try {
|
|
3671
|
-
const { bindFunctions:
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
);
|
|
3675
|
-
if (i || l !== r || !d.isConnected) return;
|
|
3676
|
-
d.innerHTML = D, d.removeAttribute("aria-busy"), x?.(d);
|
|
3749
|
+
const { bindFunctions: k, svg: g } = await C.render(`markdown-renderer-mermaid-${++ct}`, _);
|
|
3750
|
+
if (!p()) return;
|
|
3751
|
+
x.innerHTML = g, x.removeAttribute("aria-busy"), k?.(x);
|
|
3677
3752
|
} catch {
|
|
3678
|
-
|
|
3753
|
+
if (!p()) return;
|
|
3754
|
+
x.removeAttribute("aria-busy"), x.setAttribute("data-mermaid-error", "");
|
|
3679
3755
|
}
|
|
3680
3756
|
}
|
|
3681
3757
|
}
|
|
3682
|
-
|
|
3683
|
-
()
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
),
|
|
3688
|
-
s(), f();
|
|
3689
|
-
}), O0(() => {
|
|
3690
|
-
i = !0, r += 1, a();
|
|
3691
|
-
}), (l, b) => (N0(), j0("div", {
|
|
3758
|
+
function h() {
|
|
3759
|
+
o += 1, l(), n.value !== void 0 && (n.value.innerHTML = r.value, f(), b());
|
|
3760
|
+
}
|
|
3761
|
+
return Le(() => [e.content, e.directives, e.features], h, { deep: !0 }), Oe(h), Ne(() => {
|
|
3762
|
+
a = !0, o += 1, l();
|
|
3763
|
+
}), (d, p) => (je(), He("div", {
|
|
3692
3764
|
ref_key: "root",
|
|
3693
3765
|
ref: n,
|
|
3694
3766
|
class: "markdown-renderer",
|
|
3695
|
-
innerHTML:
|
|
3696
|
-
}, null, 8,
|
|
3767
|
+
innerHTML: Ue(i)
|
|
3768
|
+
}, null, 8, tt));
|
|
3697
3769
|
}
|
|
3698
|
-
}),
|
|
3770
|
+
}), it = (u, e) => {
|
|
3699
3771
|
const n = u.__vccOpts || u;
|
|
3700
3772
|
for (const [t, c] of e)
|
|
3701
3773
|
n[t] = c;
|
|
3702
3774
|
return n;
|
|
3703
|
-
},
|
|
3775
|
+
}, st = /* @__PURE__ */ it(ot, [["__scopeId", "data-v-f4c7d9b0"]]);
|
|
3704
3776
|
export {
|
|
3705
|
-
|
|
3777
|
+
st as MarkdownRenderer
|
|
3706
3778
|
};
|