@oomol-lab/open-flow 0.1.0-beta.2 → 0.1.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{_virtual_open-flow-twemoji-DJwKsM_w.js → _virtual_open-flow-twemoji-CpHJOEsk.js} +4028 -2
- package/dist/browser/carbon-Cn-DTyjG.js +54 -0
- package/dist/browser/createResourceDialog-DlrAMxmo.js +110 -0
- package/dist/browser/dist-B_T-OpQp.js +4 -0
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/{dist-CPuF50D9.js → dist-D1VYgicl.js} +426 -305
- package/dist/browser/dist-DSe6KRsr.js +1224 -0
- package/dist/browser/dist-DYjIVIZC.js +795 -0
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/{dist-CJpzJrLM.js → dist-DwvhuMxw.js} +894 -895
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
- package/dist/browser/{dist-DUzA0Ukh.js → dist-TJfrvoIQ.js} +141 -142
- package/dist/browser/{esm-B_PbUobB.js → esm-B7A42FzW.js} +68 -59
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +20 -6
- package/dist/browser/flow-authoring.d.ts +1 -1
- package/dist/browser/flow-authoring.js +5405 -286
- package/dist/browser/flow-change-schema.d.ts +6 -0
- package/dist/browser/flow-change.d.ts +173 -14
- package/dist/browser/flow-change.js +5271 -114
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-jX3KYcb0.js +11020 -0
- package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-BBqQIOCR.js} +1020 -4104
- package/dist/browser/flowWorkspace-BIYwslVl.js +148497 -0
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +33 -0
- package/dist/browser/{diagnostics-giPSzyMo.js → i18n-CVBh0Ni1.js} +3390 -5715
- package/dist/browser/inputValues-BWfRHJWC.js +43 -0
- package/dist/browser/{languages-DgJehE1g.js → languages-C0zQ4GSo.js} +5 -25
- package/dist/browser/licenses.md +149 -700
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BBgH9ZIV.js} +41 -41
- package/dist/browser/theme.css +461 -34
- package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-DnAmJCzu.js} +70 -71
- package/dist/browser/ui-input.d.ts +3 -0
- package/dist/browser/ui-label.d.ts +3 -0
- package/dist/browser/ui-textarea.d.ts +3 -0
- package/dist/browser/ui.css +2 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +12 -0
- package/dist/browser/ui.js +2598 -0
- package/dist/browser/useValueChanged-BY05Usw-.js +2944 -0
- package/dist/browser/workbench-contract.d.ts +8 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +2043 -1327
- package/dist/browser/workbenchSelect-CwP6rphY.js +11666 -0
- package/dist/common/control-api-conformance.d.ts +7 -0
- package/dist/common/control-api-conformance.js +5568 -166
- package/dist/common/control-api-errors.d.ts +9 -0
- package/dist/common/control-api.d.ts +309 -38
- package/dist/common/control-api.js +5817 -576
- package/dist/common/control-requests.d.ts +68 -0
- package/dist/common/control-requests.js +4950 -0
- package/dist/common/engine-contract.d.ts +3 -1
- package/dist/common/flow-agent.d.ts +10 -0
- package/dist/common/flow-encoding.d.ts +5 -2
- package/dist/common/flow-encoding.js +4820 -66
- package/dist/common/flow-graph.d.ts +6 -0
- package/dist/common/flow-json.d.ts +2 -0
- package/dist/common/flow-modules.d.ts +20 -0
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-schema.d.ts +8 -0
- package/dist/common/flow-semantics.d.ts +10 -6
- package/dist/common/flow-semantics.js +9982 -1701
- package/dist/common/integration-trigger.d.ts +24 -1
- package/dist/common/integration-trigger.js +188 -52
- package/dist/common/mcp-conformance.d.ts +2 -0
- package/dist/common/mcp.d.ts +765 -0
- package/dist/common/mcp.js +6477 -0
- package/dist/common/provider-triggers.js +5996 -993
- package/dist/common/run-events.d.ts +2 -2
- package/dist/common/run-events.js +12 -17
- package/dist/common/run-lifecycle.d.ts +21 -2
- package/dist/common/run-lifecycle.js +83 -2
- package/dist/common/run-results.d.ts +57 -0
- package/dist/common/runtime-contract.d.ts +36 -3
- package/dist/common/runtime-contract.js +227 -19
- package/dist/common/scheduler.d.ts +77 -18
- package/dist/common/scheduler.js +8259 -248
- package/dist/index.d.ts +6 -5
- package/package.json +21 -1
- package/dist/browser/carbon-DMCVsjHo.js +0 -53
- package/dist/browser/createResourceDialog-BkZns-oZ.js +0 -504
- package/dist/browser/dist-BMqL-qR5.js +0 -1894
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/flowWorkspace-DAMLVMcF.js +0 -47584
- package/dist/browser/getPseudoElementBounds-ESJExRFX.js +0 -7642
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as be } from "./dist-CPuF50D9.js";
|
|
1
|
+
import { a as e, b as t, l as n, o as r } from "./dist-Mecbzdl2.js";
|
|
2
|
+
import { b as i, r as a } from "./dist-BKuSVKCC.js";
|
|
3
|
+
import { B as o, C as s, E as c, F as l, G as u, H as d, I as f, M as p, N as m, O as h, R as g, U as ee, V as _, W as v, a as te, f as ne, g as re, i as ie, l as ae, o as y, r as oe, s as se, u as ce, v as b, y as le, z as x } from "./dist-DxahK_I8.js";
|
|
4
|
+
import { t as ue } from "./dist-D1VYgicl.js";
|
|
5
|
+
import { i as de, n as S, r as fe, t as pe } from "./dist-By46o5UV.js";
|
|
6
|
+
import { a as me, i as he, n as ge, o as _e, r as ve } from "./dist-TJfrvoIQ.js";
|
|
8
7
|
//#region ../../node_modules/.bun/@lezer+markdown@1.7.2/node_modules/@lezer/markdown/dist/index.js
|
|
9
|
-
var
|
|
8
|
+
var ye = class e {
|
|
10
9
|
static create(t, n, r, i, a) {
|
|
11
10
|
let o = i + (i << 8) + t + (n << 4) | 0;
|
|
12
11
|
return new e(t, n, r, o, a, [], []);
|
|
13
12
|
}
|
|
14
13
|
constructor(e, t, n, r, i, a, o) {
|
|
15
|
-
this.type = e, this.value = t, this.from = n, this.hash = r, this.end = i, this.children = a, this.positions = o, this.hashProp = [[
|
|
14
|
+
this.type = e, this.value = t, this.from = n, this.hash = r, this.end = i, this.children = a, this.positions = o, this.hashProp = [[x.contextHash, r]];
|
|
16
15
|
}
|
|
17
16
|
addChild(e, t) {
|
|
18
|
-
e.prop(
|
|
17
|
+
e.prop(x.contextHash) != this.hash && (e = new v(e.type, e.children, e.positions, e.length, this.hashProp)), this.children.push(e), this.positions.push(t);
|
|
19
18
|
}
|
|
20
19
|
toTree(e, t = this.end) {
|
|
21
20
|
let n = this.children.length - 1;
|
|
22
|
-
return n >= 0 && (t = Math.max(t, this.positions[n] + this.children[n].length + this.from)), new
|
|
21
|
+
return n >= 0 && (t = Math.max(t, this.positions[n] + this.children[n].length + this.from)), new v(e.types[this.type], this.children, this.positions, t - this.from).balance({ makeTree: (e, t, n) => new v(_.none, e, t, n, this.hashProp) });
|
|
23
22
|
}
|
|
24
|
-
},
|
|
23
|
+
}, C;
|
|
25
24
|
(function(e) {
|
|
26
25
|
e[e.Document = 1] = "Document", e[e.CodeBlock = 2] = "CodeBlock", e[e.FencedCode = 3] = "FencedCode", e[e.Blockquote = 4] = "Blockquote", e[e.HorizontalRule = 5] = "HorizontalRule", e[e.BulletList = 6] = "BulletList", e[e.OrderedList = 7] = "OrderedList", e[e.ListItem = 8] = "ListItem", e[e.ATXHeading1 = 9] = "ATXHeading1", e[e.ATXHeading2 = 10] = "ATXHeading2", e[e.ATXHeading3 = 11] = "ATXHeading3", e[e.ATXHeading4 = 12] = "ATXHeading4", e[e.ATXHeading5 = 13] = "ATXHeading5", e[e.ATXHeading6 = 14] = "ATXHeading6", e[e.SetextHeading1 = 15] = "SetextHeading1", e[e.SetextHeading2 = 16] = "SetextHeading2", e[e.HTMLBlock = 17] = "HTMLBlock", e[e.LinkReference = 18] = "LinkReference", e[e.Paragraph = 19] = "Paragraph", e[e.CommentBlock = 20] = "CommentBlock", e[e.ProcessingInstructionBlock = 21] = "ProcessingInstructionBlock", e[e.Escape = 22] = "Escape", e[e.Entity = 23] = "Entity", e[e.HardBreak = 24] = "HardBreak", e[e.Emphasis = 25] = "Emphasis", e[e.StrongEmphasis = 26] = "StrongEmphasis", e[e.Link = 27] = "Link", e[e.Image = 28] = "Image", e[e.InlineCode = 29] = "InlineCode", e[e.HTMLTag = 30] = "HTMLTag", e[e.Comment = 31] = "Comment", e[e.ProcessingInstruction = 32] = "ProcessingInstruction", e[e.Autolink = 33] = "Autolink", e[e.HeaderMark = 34] = "HeaderMark", e[e.QuoteMark = 35] = "QuoteMark", e[e.ListMark = 36] = "ListMark", e[e.LinkMark = 37] = "LinkMark", e[e.EmphasisMark = 38] = "EmphasisMark", e[e.CodeMark = 39] = "CodeMark", e[e.CodeText = 40] = "CodeText", e[e.CodeInfo = 41] = "CodeInfo", e[e.LinkTitle = 42] = "LinkTitle", e[e.LinkLabel = 43] = "LinkLabel", e[e.URL = 44] = "URL";
|
|
27
|
-
})(
|
|
28
|
-
var
|
|
26
|
+
})(C ||= {});
|
|
27
|
+
var be = class {
|
|
29
28
|
constructor(e, t) {
|
|
30
29
|
this.start = e, this.content = t, this.marks = [], this.parsers = [];
|
|
31
30
|
}
|
|
32
|
-
},
|
|
31
|
+
}, xe = class {
|
|
33
32
|
constructor() {
|
|
34
33
|
this.text = "", this.baseIndent = 0, this.basePos = 0, this.depth = 0, this.markers = [], this.pos = 0, this.indent = 0, this.next = -1;
|
|
35
34
|
}
|
|
@@ -41,7 +40,7 @@ var Se = class {
|
|
|
41
40
|
this.indent = this.countIndent(e, this.pos, this.indent), this.pos = e, this.next = e == this.text.length ? -1 : this.text.charCodeAt(e);
|
|
42
41
|
}
|
|
43
42
|
skipSpace(e) {
|
|
44
|
-
return
|
|
43
|
+
return T(this.text, e);
|
|
45
44
|
}
|
|
46
45
|
reset(e) {
|
|
47
46
|
for (this.text = e, this.baseIndent = this.basePos = this.pos = this.indent = 0, this.forwardInner(), this.depth = 1; this.markers.length;) this.markers.pop();
|
|
@@ -71,37 +70,37 @@ var Se = class {
|
|
|
71
70
|
return e + this.text.slice(this.basePos);
|
|
72
71
|
}
|
|
73
72
|
};
|
|
74
|
-
function
|
|
73
|
+
function Se(e, t, n) {
|
|
75
74
|
if (n.pos == n.text.length || e != t.block && n.indent >= t.stack[n.depth + 1].value + n.baseIndent) return !0;
|
|
76
75
|
if (n.indent >= n.baseIndent + 4) return !1;
|
|
77
|
-
let r = (e.type ==
|
|
78
|
-
return r > 0 && (e.type !=
|
|
76
|
+
let r = (e.type == C.OrderedList ? Oe : D)(n, t, !1);
|
|
77
|
+
return r > 0 && (e.type != C.BulletList || E(n, t, !1) < 0) && n.text.charCodeAt(n.pos + r - 1) == e.value;
|
|
79
78
|
}
|
|
80
|
-
var
|
|
81
|
-
[
|
|
82
|
-
return n.next == 62 && (n.markers.push(
|
|
79
|
+
var Ce = {
|
|
80
|
+
[C.Blockquote](e, t, n) {
|
|
81
|
+
return n.next == 62 && (n.markers.push(P(C.QuoteMark, t.lineStart + n.pos, t.lineStart + n.pos + 1)), n.moveBase(n.pos + (w(n.text.charCodeAt(n.pos + 1)) ? 2 : 1)), e.end = t.lineStart + n.text.length, !0);
|
|
83
82
|
},
|
|
84
|
-
[
|
|
83
|
+
[C.ListItem](e, t, n) {
|
|
85
84
|
return n.indent < n.baseIndent + e.value && n.next > -1 ? !1 : (n.moveBaseColumn(n.baseIndent + e.value), !0);
|
|
86
85
|
},
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
86
|
+
[C.OrderedList]: Se,
|
|
87
|
+
[C.BulletList]: Se,
|
|
88
|
+
[C.Document]() {
|
|
90
89
|
return !0;
|
|
91
90
|
}
|
|
92
91
|
};
|
|
93
|
-
function
|
|
92
|
+
function w(e) {
|
|
94
93
|
return e == 32 || e == 9 || e == 10 || e == 13;
|
|
95
94
|
}
|
|
96
|
-
function
|
|
97
|
-
for (; t < e.length &&
|
|
95
|
+
function T(e, t = 0) {
|
|
96
|
+
for (; t < e.length && w(e.charCodeAt(t));) t++;
|
|
98
97
|
return t;
|
|
99
98
|
}
|
|
100
|
-
function
|
|
101
|
-
for (; t > n &&
|
|
99
|
+
function we(e, t, n) {
|
|
100
|
+
for (; t > n && w(e.charCodeAt(t - 1));) t--;
|
|
102
101
|
return t;
|
|
103
102
|
}
|
|
104
|
-
function
|
|
103
|
+
function Te(e) {
|
|
105
104
|
if (e.next != 96 && e.next != 126) return -1;
|
|
106
105
|
let t = e.pos + 1;
|
|
107
106
|
for (; t < e.text.length && e.text.charCodeAt(t) == e.next;) t++;
|
|
@@ -111,35 +110,35 @@ function De(e) {
|
|
|
111
110
|
}
|
|
112
111
|
return t;
|
|
113
112
|
}
|
|
114
|
-
function
|
|
113
|
+
function Ee(e) {
|
|
115
114
|
return e.next == 62 ? e.text.charCodeAt(e.pos + 1) == 32 ? 2 : 1 : -1;
|
|
116
115
|
}
|
|
117
|
-
function
|
|
116
|
+
function E(e, t, n) {
|
|
118
117
|
if (e.next != 42 && e.next != 45 && e.next != 95) return -1;
|
|
119
118
|
let r = 1;
|
|
120
119
|
for (let t = e.pos + 1; t < e.text.length; t++) {
|
|
121
120
|
let n = e.text.charCodeAt(t);
|
|
122
121
|
if (n == e.next) r++;
|
|
123
|
-
else if (!
|
|
122
|
+
else if (!w(n)) return -1;
|
|
124
123
|
}
|
|
125
|
-
return n && e.next == 45 &&
|
|
124
|
+
return n && e.next == 45 && Ae(e) > -1 && e.depth == t.stack.length && t.parser.leafBlockParsers.indexOf(Be.SetextHeading) > -1 || r < 3 ? -1 : 1;
|
|
126
125
|
}
|
|
127
|
-
function
|
|
126
|
+
function De(e, t) {
|
|
128
127
|
for (let n = e.stack.length - 1; n >= 0; n--) if (e.stack[n].type == t) return !0;
|
|
129
128
|
return !1;
|
|
130
129
|
}
|
|
131
|
-
function
|
|
132
|
-
return (e.next == 45 || e.next == 43 || e.next == 42) && (e.pos == e.text.length - 1 ||
|
|
130
|
+
function D(e, t, n) {
|
|
131
|
+
return (e.next == 45 || e.next == 43 || e.next == 42) && (e.pos == e.text.length - 1 || w(e.text.charCodeAt(e.pos + 1))) && (!n || De(t, C.BulletList) || e.skipSpace(e.pos + 2) < e.text.length) ? 1 : -1;
|
|
133
132
|
}
|
|
134
|
-
function
|
|
133
|
+
function Oe(e, t, n) {
|
|
135
134
|
let r = e.pos, i = e.next;
|
|
136
135
|
for (; i >= 48 && i <= 57;) {
|
|
137
136
|
if (r++, r == e.text.length) return -1;
|
|
138
137
|
i = e.text.charCodeAt(r);
|
|
139
138
|
}
|
|
140
|
-
return r == e.pos || r > e.pos + 9 || i != 46 && i != 41 || r < e.text.length - 1 && !
|
|
139
|
+
return r == e.pos || r > e.pos + 9 || i != 46 && i != 41 || r < e.text.length - 1 && !w(e.text.charCodeAt(r + 1)) || n && !De(t, C.OrderedList) && (e.skipSpace(r + 1) == e.text.length || r > e.pos + 1 || e.next != 49) ? -1 : r + 1 - e.pos;
|
|
141
140
|
}
|
|
142
|
-
function
|
|
141
|
+
function ke(e) {
|
|
143
142
|
if (e.next != 35) return -1;
|
|
144
143
|
let t = e.pos + 1;
|
|
145
144
|
for (; t < e.text.length && e.text.charCodeAt(t) == 35;) t++;
|
|
@@ -147,120 +146,120 @@ function Ae(e) {
|
|
|
147
146
|
let n = t - e.pos;
|
|
148
147
|
return n > 6 ? -1 : n;
|
|
149
148
|
}
|
|
150
|
-
function
|
|
149
|
+
function Ae(e) {
|
|
151
150
|
if (e.next != 45 && e.next != 61 || e.indent >= e.baseIndent + 4) return -1;
|
|
152
151
|
let t = e.pos + 1;
|
|
153
152
|
for (; t < e.text.length && e.text.charCodeAt(t) == e.next;) t++;
|
|
154
153
|
let n = t;
|
|
155
|
-
for (; t < e.text.length &&
|
|
154
|
+
for (; t < e.text.length && w(e.text.charCodeAt(t));) t++;
|
|
156
155
|
return t == e.text.length ? n : -1;
|
|
157
156
|
}
|
|
158
|
-
var
|
|
157
|
+
var je = /^[ \t]*$/, Me = /-->/, Ne = /\?>/, Pe = [
|
|
159
158
|
[/^<(?:script|pre|style)(?:\s|>|$)/i, /<\/(?:script|pre|style)>/i],
|
|
160
|
-
[/^\s*<!--/,
|
|
161
|
-
[/^\s*<\?/,
|
|
159
|
+
[/^\s*<!--/, Me],
|
|
160
|
+
[/^\s*<\?/, Ne],
|
|
162
161
|
[/^\s*<![A-Z]/, />/],
|
|
163
162
|
[/^\s*<!\[CDATA\[/, /\]\]>/],
|
|
164
|
-
[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,
|
|
165
|
-
[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,
|
|
163
|
+
[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i, je],
|
|
164
|
+
[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i, je]
|
|
166
165
|
];
|
|
167
|
-
function
|
|
166
|
+
function Fe(e, t, n) {
|
|
168
167
|
if (e.next != 60) return -1;
|
|
169
168
|
let r = e.text.slice(e.pos);
|
|
170
|
-
for (let e = 0, t =
|
|
169
|
+
for (let e = 0, t = Pe.length - +!!n; e < t; e++) if (Pe[e][0].test(r)) return e;
|
|
171
170
|
return -1;
|
|
172
171
|
}
|
|
173
|
-
function
|
|
172
|
+
function Ie(e, t) {
|
|
174
173
|
let n = e.countIndent(t, e.pos, e.indent), r = e.skipSpace(t), i = e.countIndent(r, t, n);
|
|
175
174
|
return i >= n + 5 || r == e.text.length ? n + 1 : i;
|
|
176
175
|
}
|
|
177
|
-
function
|
|
176
|
+
function O(e, t, n) {
|
|
178
177
|
let r = e.length - 1;
|
|
179
|
-
r >= 0 && e[r].to == t && e[r].type ==
|
|
178
|
+
r >= 0 && e[r].to == t && e[r].type == C.CodeText ? e[r].to = n : e.push(P(C.CodeText, t, n));
|
|
180
179
|
}
|
|
181
|
-
var
|
|
180
|
+
var k = {
|
|
182
181
|
LinkReference: void 0,
|
|
183
182
|
IndentedCode(e, t) {
|
|
184
183
|
let n = t.baseIndent + 4;
|
|
185
184
|
if (t.indent < n) return !1;
|
|
186
185
|
let r = t.findColumn(n), i = e.lineStart + r, a = e.lineStart + t.text.length, o = [], s = [];
|
|
187
|
-
for (
|
|
188
|
-
|
|
186
|
+
for (O(o, i, a); e.nextLine() && t.depth >= e.stack.length;) if (t.pos == t.text.length) {
|
|
187
|
+
O(s, e.lineStart - 1, e.lineStart);
|
|
189
188
|
for (let e of t.markers) s.push(e);
|
|
190
189
|
} else if (t.indent < n) break;
|
|
191
190
|
else {
|
|
192
191
|
if (s.length) {
|
|
193
|
-
for (let e of s) e.type ==
|
|
192
|
+
for (let e of s) e.type == C.CodeText ? O(o, e.from, e.to) : o.push(e);
|
|
194
193
|
s = [];
|
|
195
194
|
}
|
|
196
|
-
|
|
195
|
+
O(o, e.lineStart - 1, e.lineStart);
|
|
197
196
|
for (let e of t.markers) o.push(e);
|
|
198
197
|
a = e.lineStart + t.text.length;
|
|
199
198
|
let n = e.lineStart + t.findColumn(t.baseIndent + 4);
|
|
200
|
-
n < a &&
|
|
199
|
+
n < a && O(o, n, a);
|
|
201
200
|
}
|
|
202
|
-
return s.length && (s = s.filter((e) => e.type !=
|
|
201
|
+
return s.length && (s = s.filter((e) => e.type != C.CodeText), s.length && (t.markers = s.concat(t.markers))), e.addNode(e.buffer.writeElements(o, -i).finish(C.CodeBlock, a - i), i), !0;
|
|
203
202
|
},
|
|
204
203
|
FencedCode(e, t) {
|
|
205
|
-
let n =
|
|
204
|
+
let n = Te(t);
|
|
206
205
|
if (n < 0) return !1;
|
|
207
|
-
let r = e.lineStart + t.pos, i = t.next, a = n - t.pos, o = t.skipSpace(n), s =
|
|
208
|
-
o < s && c.push(
|
|
206
|
+
let r = e.lineStart + t.pos, i = t.next, a = n - t.pos, o = t.skipSpace(n), s = we(t.text, t.text.length, o), c = [P(C.CodeMark, r, r + a)];
|
|
207
|
+
o < s && c.push(P(C.CodeInfo, e.lineStart + o, e.lineStart + s));
|
|
209
208
|
for (let n = !0, r = !0, o = !1; e.nextLine() && t.depth >= e.stack.length; n = !1) {
|
|
210
209
|
let s = t.pos;
|
|
211
210
|
if (t.indent - t.baseIndent < 4) for (; s < t.text.length && t.text.charCodeAt(s) == i;) s++;
|
|
212
211
|
if (s - t.pos >= a && t.skipSpace(s) == t.text.length) {
|
|
213
212
|
for (let e of t.markers) c.push(e);
|
|
214
|
-
r && o &&
|
|
213
|
+
r && o && O(c, e.lineStart - 1, e.lineStart), c.push(P(C.CodeMark, e.lineStart + t.pos, e.lineStart + s)), e.nextLine();
|
|
215
214
|
break;
|
|
216
215
|
}
|
|
217
216
|
{
|
|
218
|
-
o = !0, n || (
|
|
217
|
+
o = !0, n || (O(c, e.lineStart - 1, e.lineStart), r = !1);
|
|
219
218
|
for (let e of t.markers) c.push(e);
|
|
220
219
|
let i = e.lineStart + t.basePos, a = e.lineStart + t.text.length;
|
|
221
|
-
i < a && (
|
|
220
|
+
i < a && (O(c, i, a), r = !1);
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
|
-
return e.addNode(e.buffer.writeElements(c, -r).finish(
|
|
223
|
+
return e.addNode(e.buffer.writeElements(c, -r).finish(C.FencedCode, e.prevLineEnd() - r), r), !0;
|
|
225
224
|
},
|
|
226
225
|
Blockquote(e, t) {
|
|
227
|
-
let n =
|
|
228
|
-
return n < 0 ? !1 : (e.startContext(
|
|
226
|
+
let n = Ee(t);
|
|
227
|
+
return n < 0 ? !1 : (e.startContext(C.Blockquote, t.pos), e.addNode(C.QuoteMark, e.lineStart + t.pos, e.lineStart + t.pos + 1), t.moveBase(t.pos + n), null);
|
|
229
228
|
},
|
|
230
229
|
HorizontalRule(e, t) {
|
|
231
|
-
if (
|
|
230
|
+
if (E(t, e, !1) < 0) return !1;
|
|
232
231
|
let n = e.lineStart + t.pos;
|
|
233
|
-
return e.nextLine(), e.addNode(
|
|
232
|
+
return e.nextLine(), e.addNode(C.HorizontalRule, n), !0;
|
|
234
233
|
},
|
|
235
234
|
BulletList(e, t) {
|
|
236
|
-
let n =
|
|
235
|
+
let n = D(t, e, !1);
|
|
237
236
|
if (n < 0) return !1;
|
|
238
|
-
e.block.type !=
|
|
239
|
-
let r =
|
|
240
|
-
return e.startContext(
|
|
237
|
+
e.block.type != C.BulletList && e.startContext(C.BulletList, t.basePos, t.next);
|
|
238
|
+
let r = Ie(t, t.pos + 1);
|
|
239
|
+
return e.startContext(C.ListItem, t.basePos, r - t.baseIndent), e.addNode(C.ListMark, e.lineStart + t.pos, e.lineStart + t.pos + n), t.moveBaseColumn(r), null;
|
|
241
240
|
},
|
|
242
241
|
OrderedList(e, t) {
|
|
243
|
-
let n =
|
|
242
|
+
let n = Oe(t, e, !1);
|
|
244
243
|
if (n < 0) return !1;
|
|
245
|
-
e.block.type !=
|
|
246
|
-
let r =
|
|
247
|
-
return e.startContext(
|
|
244
|
+
e.block.type != C.OrderedList && e.startContext(C.OrderedList, t.basePos, t.text.charCodeAt(t.pos + n - 1));
|
|
245
|
+
let r = Ie(t, t.pos + n);
|
|
246
|
+
return e.startContext(C.ListItem, t.basePos, r - t.baseIndent), e.addNode(C.ListMark, e.lineStart + t.pos, e.lineStart + t.pos + n), t.moveBaseColumn(r), null;
|
|
248
247
|
},
|
|
249
248
|
ATXHeading(e, t) {
|
|
250
|
-
let n =
|
|
249
|
+
let n = ke(t);
|
|
251
250
|
if (n < 0) return !1;
|
|
252
|
-
let r = t.pos, i = e.lineStart + r, a =
|
|
251
|
+
let r = t.pos, i = e.lineStart + r, a = we(t.text, t.text.length, r), o = a;
|
|
253
252
|
for (; o > r && t.text.charCodeAt(o - 1) == t.next;) o--;
|
|
254
|
-
(o == a || o == r || !
|
|
255
|
-
let s = e.buffer.write(
|
|
256
|
-
o < t.text.length && s.write(
|
|
257
|
-
let c = s.finish(
|
|
253
|
+
(o == a || o == r || !w(t.text.charCodeAt(o - 1))) && (o = t.text.length);
|
|
254
|
+
let s = e.buffer.write(C.HeaderMark, 0, n).writeElements(e.parser.parseInline(t.text.slice(r + n + 1, o), i + n + 1), -i);
|
|
255
|
+
o < t.text.length && s.write(C.HeaderMark, o - r, a - r);
|
|
256
|
+
let c = s.finish(C.ATXHeading1 - 1 + n, t.text.length - r);
|
|
258
257
|
return e.nextLine(), e.addNode(c, i), !0;
|
|
259
258
|
},
|
|
260
259
|
HTMLBlock(e, t) {
|
|
261
|
-
let n =
|
|
260
|
+
let n = Fe(t, e, !1);
|
|
262
261
|
if (n < 0) return !1;
|
|
263
|
-
let r = e.lineStart + t.pos, i =
|
|
262
|
+
let r = e.lineStart + t.pos, i = Pe[n][1], a = [], o = i != je;
|
|
264
263
|
for (; !i.test(t.text) && e.nextLine();) {
|
|
265
264
|
if (t.depth < e.stack.length) {
|
|
266
265
|
o = !1;
|
|
@@ -269,11 +268,11 @@ var O = {
|
|
|
269
268
|
for (let e of t.markers) a.push(e);
|
|
270
269
|
}
|
|
271
270
|
o && e.nextLine();
|
|
272
|
-
let s = i ==
|
|
271
|
+
let s = i == Me ? C.CommentBlock : i == Ne ? C.ProcessingInstructionBlock : C.HTMLBlock, c = e.prevLineEnd();
|
|
273
272
|
return e.addNode(e.buffer.writeElements(a, -r).finish(s, c - r), r), !0;
|
|
274
273
|
},
|
|
275
274
|
SetextHeading: void 0
|
|
276
|
-
},
|
|
275
|
+
}, Le = class {
|
|
277
276
|
constructor(e) {
|
|
278
277
|
this.stage = 0, this.elts = [], this.pos = 0, this.start = e.start, this.advance(e.content);
|
|
279
278
|
}
|
|
@@ -283,10 +282,10 @@ var O = {
|
|
|
283
282
|
return i > -1 && i < r.length && this.complete(e, n, i);
|
|
284
283
|
}
|
|
285
284
|
finish(e, t) {
|
|
286
|
-
return (this.stage == 2 || this.stage == 3) &&
|
|
285
|
+
return (this.stage == 2 || this.stage == 3) && T(t.content, this.pos) == t.content.length && this.complete(e, t, t.content.length);
|
|
287
286
|
}
|
|
288
287
|
complete(e, t, n) {
|
|
289
|
-
return e.addLeafElement(t,
|
|
288
|
+
return e.addLeafElement(t, P(C.LinkReference, this.start, this.start + n, this.elts)), !0;
|
|
290
289
|
}
|
|
291
290
|
nextStage(e) {
|
|
292
291
|
return e ? (this.pos = e.to - this.start, this.elts.push(e), this.stage++, !0) : (e === !1 && (this.stage = -1), !1);
|
|
@@ -294,63 +293,63 @@ var O = {
|
|
|
294
293
|
advance(e) {
|
|
295
294
|
for (;;) if (this.stage == -1) return -1;
|
|
296
295
|
else if (this.stage == 0) {
|
|
297
|
-
if (!this.nextStage(
|
|
296
|
+
if (!this.nextStage(rt(e, this.pos, this.start, !0))) return -1;
|
|
298
297
|
if (e.charCodeAt(this.pos) != 58) return this.stage = -1;
|
|
299
|
-
this.elts.push(
|
|
298
|
+
this.elts.push(P(C.LinkMark, this.pos + this.start, this.pos + this.start + 1)), this.pos++;
|
|
300
299
|
} else if (this.stage == 1) {
|
|
301
|
-
if (!this.nextStage(
|
|
300
|
+
if (!this.nextStage(tt(e, T(e, this.pos), this.start))) return -1;
|
|
302
301
|
} else if (this.stage == 2) {
|
|
303
|
-
let t =
|
|
302
|
+
let t = T(e, this.pos), n = 0;
|
|
304
303
|
if (t > this.pos) {
|
|
305
|
-
let r =
|
|
304
|
+
let r = nt(e, t, this.start);
|
|
306
305
|
if (r) {
|
|
307
|
-
let t =
|
|
306
|
+
let t = Re(e, r.to - this.start);
|
|
308
307
|
t > 0 && (this.nextStage(r), n = t);
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
|
-
return n ||=
|
|
312
|
-
} else return
|
|
310
|
+
return n ||= Re(e, this.pos), n > 0 && n < e.length ? n : -1;
|
|
311
|
+
} else return Re(e, this.pos);
|
|
313
312
|
}
|
|
314
313
|
};
|
|
315
|
-
function
|
|
314
|
+
function Re(e, t) {
|
|
316
315
|
for (; t < e.length; t++) {
|
|
317
316
|
let n = e.charCodeAt(t);
|
|
318
317
|
if (n == 10) break;
|
|
319
|
-
if (!
|
|
318
|
+
if (!w(n)) return -1;
|
|
320
319
|
}
|
|
321
320
|
return t;
|
|
322
321
|
}
|
|
323
|
-
var
|
|
322
|
+
var ze = class {
|
|
324
323
|
nextLine(e, t, n) {
|
|
325
|
-
let r = t.depth < e.stack.length ? -1 :
|
|
324
|
+
let r = t.depth < e.stack.length ? -1 : Ae(t), i = t.next;
|
|
326
325
|
if (r < 0) return !1;
|
|
327
|
-
let a =
|
|
328
|
-
return e.nextLine(), e.addLeafElement(n,
|
|
326
|
+
let a = P(C.HeaderMark, e.lineStart + t.pos, e.lineStart + r);
|
|
327
|
+
return e.nextLine(), e.addLeafElement(n, P(i == 61 ? C.SetextHeading1 : C.SetextHeading2, n.start, e.prevLineEnd(), [...e.parser.parseInline(n.content, n.start), a])), !0;
|
|
329
328
|
}
|
|
330
329
|
finish() {
|
|
331
330
|
return !1;
|
|
332
331
|
}
|
|
333
|
-
},
|
|
332
|
+
}, Be = {
|
|
334
333
|
LinkReference(e, t) {
|
|
335
|
-
return t.content.charCodeAt(0) == 91 ? new
|
|
334
|
+
return t.content.charCodeAt(0) == 91 ? new Le(t) : null;
|
|
336
335
|
},
|
|
337
336
|
SetextHeading() {
|
|
338
|
-
return new
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
(e, t) =>
|
|
342
|
-
(e, t) =>
|
|
343
|
-
(e, t) =>
|
|
344
|
-
(e, t) =>
|
|
337
|
+
return new ze();
|
|
338
|
+
}
|
|
339
|
+
}, Ve = [
|
|
340
|
+
(e, t) => ke(t) >= 0,
|
|
341
|
+
(e, t) => Te(t) >= 0,
|
|
342
|
+
(e, t) => Ee(t) >= 0,
|
|
343
|
+
(e, t) => D(t, e, !0) >= 0,
|
|
344
|
+
(e, t) => Oe(t, e, !0) >= 0,
|
|
345
345
|
(e, t) => E(t, e, !0) >= 0,
|
|
346
|
-
(e, t) =>
|
|
347
|
-
|
|
348
|
-
], Ue = {
|
|
346
|
+
(e, t) => Fe(t, e, !0) >= 0
|
|
347
|
+
], He = {
|
|
349
348
|
text: "",
|
|
350
349
|
end: 0
|
|
351
|
-
},
|
|
350
|
+
}, Ue = class {
|
|
352
351
|
constructor(e, t, n, r) {
|
|
353
|
-
this.parser = e, this.input = t, this.ranges = r, this.line = new
|
|
352
|
+
this.parser = e, this.input = t, this.ranges = r, this.line = new xe(), this.atEnd = !1, this.reusePlaceholders = /* @__PURE__ */ new Map(), this.stoppedAt = null, this.rangeI = 0, this.to = r[r.length - 1].to, this.lineStart = this.absoluteLineStart = this.absoluteLineEnd = r[0].from, this.block = ye.create(C.Document, 0, this.lineStart, 0, 0), this.stack = [this.block], this.fragments = n.length ? new st(n, t) : null, this.readLine();
|
|
354
353
|
}
|
|
355
354
|
get parsedPos() {
|
|
356
355
|
return this.absoluteLineStart;
|
|
@@ -384,7 +383,7 @@ var Be = class {
|
|
|
384
383
|
break;
|
|
385
384
|
}
|
|
386
385
|
if (e.pos == e.text.length) return this.nextLine() ? null : this.finish();
|
|
387
|
-
let t = new
|
|
386
|
+
let t = new be(this.lineStart + e.pos, e.text.slice(e.pos));
|
|
388
387
|
for (let e of this.parser.leafBlockParsers) if (e) {
|
|
389
388
|
let n = e(this, t);
|
|
390
389
|
n && t.parsers.push(n);
|
|
@@ -406,7 +405,7 @@ var Be = class {
|
|
|
406
405
|
reuseFragment(e) {
|
|
407
406
|
if (!this.fragments.moveTo(this.absoluteLineStart + e, this.absoluteLineStart) || !this.fragments.matches(this.block.hash)) return !1;
|
|
408
407
|
let t = this.fragments.takeNodes(this);
|
|
409
|
-
return t ? (this.absoluteLineStart += t, this.lineStart =
|
|
408
|
+
return t ? (this.absoluteLineStart += t, this.lineStart = ct(this.absoluteLineStart, this.ranges), this.moveRangeI(), this.absoluteLineStart < this.to ? (this.lineStart++, this.absoluteLineStart++, this.readLine()) : (this.atEnd = !0, this.readLine()), !0) : !1;
|
|
410
409
|
}
|
|
411
410
|
get depth() {
|
|
412
411
|
return this.stack.length;
|
|
@@ -424,7 +423,7 @@ var Be = class {
|
|
|
424
423
|
for (; this.rangeI < this.ranges.length - 1 && this.absoluteLineStart >= this.ranges[this.rangeI].to;) this.rangeI++, this.absoluteLineStart = Math.max(this.absoluteLineStart, this.ranges[this.rangeI].from);
|
|
425
424
|
}
|
|
426
425
|
scanLine(e) {
|
|
427
|
-
let t =
|
|
426
|
+
let t = He;
|
|
428
427
|
if (t.end = e, e >= this.to) t.text = "";
|
|
429
428
|
else if (t.text = this.lineChunkAt(e), t.end += t.text.length, this.ranges.length > 1) {
|
|
430
429
|
let e = this.absoluteLineStart, n = this.rangeI;
|
|
@@ -440,7 +439,7 @@ var Be = class {
|
|
|
440
439
|
let { line: e } = this, { text: t, end: n } = this.scanLine(this.absoluteLineStart);
|
|
441
440
|
for (this.absoluteLineEnd = n, e.reset(t); e.depth < this.stack.length; e.depth++) {
|
|
442
441
|
let t = this.stack[e.depth], n = this.parser.skipContextMarkup[t.type];
|
|
443
|
-
if (!n) throw Error("Unhandled block context " +
|
|
442
|
+
if (!n) throw Error("Unhandled block context " + C[t.type]);
|
|
444
443
|
let r = this.line.markers.length;
|
|
445
444
|
if (!n(t, this, e)) {
|
|
446
445
|
this.line.markers.length > r && (t.end = this.line.markers[this.line.markers.length - 1].to), e.forward();
|
|
@@ -462,19 +461,19 @@ var Be = class {
|
|
|
462
461
|
return this.atEnd ? this.lineStart : this.lineStart - 1;
|
|
463
462
|
}
|
|
464
463
|
startContext(e, t, n = 0) {
|
|
465
|
-
this.block =
|
|
464
|
+
this.block = ye.create(e, n, this.lineStart + t, this.block.hash, this.lineStart + this.line.text.length), this.stack.push(this.block);
|
|
466
465
|
}
|
|
467
466
|
startComposite(e, t, n = 0) {
|
|
468
467
|
this.startContext(this.parser.getNodeType(e), t, n);
|
|
469
468
|
}
|
|
470
469
|
addNode(e, t, n) {
|
|
471
|
-
typeof e == "number" && (e = new
|
|
470
|
+
typeof e == "number" && (e = new v(this.parser.nodeSet.types[e], M, M, (n ?? this.prevLineEnd()) - t)), this.block.addChild(e, t - this.block.from);
|
|
472
471
|
}
|
|
473
472
|
addElement(e) {
|
|
474
473
|
this.block.addChild(e.toTree(this.parser.nodeSet), e.from - this.block.from);
|
|
475
474
|
}
|
|
476
475
|
addLeafElement(e, t) {
|
|
477
|
-
this.addNode(this.buffer.writeElements(
|
|
476
|
+
this.addNode(this.buffer.writeElements(at(t.children, e.marks), -t.from).finish(t.type, t.to - t.from), t.from);
|
|
478
477
|
}
|
|
479
478
|
finishContext() {
|
|
480
479
|
let e = this.stack.pop(), t = this.stack[this.stack.length - 1];
|
|
@@ -485,91 +484,91 @@ var Be = class {
|
|
|
485
484
|
return this.addGaps(this.block.toTree(this.parser.nodeSet, this.lineStart));
|
|
486
485
|
}
|
|
487
486
|
addGaps(e) {
|
|
488
|
-
return this.ranges.length > 1 ?
|
|
487
|
+
return this.ranges.length > 1 ? We(this.ranges, 0, e.topNode, this.ranges[0].from, this.reusePlaceholders) : e;
|
|
489
488
|
}
|
|
490
489
|
finishLeaf(e) {
|
|
491
490
|
for (let t of e.parsers) if (t.finish(this, e)) return;
|
|
492
|
-
let t =
|
|
493
|
-
this.addNode(this.buffer.writeElements(t, -e.start).finish(
|
|
491
|
+
let t = at(this.parser.parseInline(e.content, e.start), e.marks);
|
|
492
|
+
this.addNode(this.buffer.writeElements(t, -e.start).finish(C.Paragraph, e.content.length), e.start);
|
|
494
493
|
}
|
|
495
494
|
elt(e, t, n, r) {
|
|
496
|
-
return typeof e == "string" ?
|
|
495
|
+
return typeof e == "string" ? P(this.parser.getNodeType(e), t, n, r) : new Ye(e, t);
|
|
497
496
|
}
|
|
498
497
|
get buffer() {
|
|
499
|
-
return new
|
|
498
|
+
return new Je(this.parser.nodeSet);
|
|
500
499
|
}
|
|
501
500
|
};
|
|
502
|
-
function
|
|
503
|
-
let
|
|
504
|
-
function
|
|
505
|
-
for (; i ? n >=
|
|
506
|
-
let i = e[t + 1].from -
|
|
507
|
-
r += i, n += i, t++,
|
|
501
|
+
function We(e, t, n, r, i) {
|
|
502
|
+
let a = e[t].to, o = [], s = [], c = n.from + r;
|
|
503
|
+
function l(n, i) {
|
|
504
|
+
for (; i ? n >= a : n > a;) {
|
|
505
|
+
let i = e[t + 1].from - a;
|
|
506
|
+
r += i, n += i, t++, a = e[t].to;
|
|
508
507
|
}
|
|
509
508
|
}
|
|
510
|
-
for (let
|
|
511
|
-
u
|
|
512
|
-
let n =
|
|
513
|
-
f ? d = f :
|
|
509
|
+
for (let u = n.firstChild; u; u = u.nextSibling) {
|
|
510
|
+
l(u.from + r, !0);
|
|
511
|
+
let n = u.from + r, d, f = i.get(u.tree);
|
|
512
|
+
f ? d = f : u.to + r > a ? (d = We(e, t, u, r, i), l(u.to + r, !1)) : d = u.toTree(), o.push(d), s.push(n - c);
|
|
514
513
|
}
|
|
515
|
-
return
|
|
514
|
+
return l(n.to + r, !1), new v(n.type, o, s, n.to + r - c, n.tree ? n.tree.propValues : void 0);
|
|
516
515
|
}
|
|
517
|
-
var
|
|
516
|
+
var Ge = class e extends ee {
|
|
518
517
|
constructor(e, t, n, r, i, a, o, s, c) {
|
|
519
518
|
super(), this.nodeSet = e, this.blockParsers = t, this.leafBlockParsers = n, this.blockNames = r, this.endLeafBlock = i, this.skipContextMarkup = a, this.inlineParsers = o, this.inlineNames = s, this.wrappers = c, this.nodeTypes = Object.create(null);
|
|
520
519
|
for (let t of e.types) this.nodeTypes[t.name] = t.id;
|
|
521
520
|
}
|
|
522
521
|
createParse(e, t, n) {
|
|
523
|
-
let r = new
|
|
522
|
+
let r = new Ue(this, e, t, n);
|
|
524
523
|
for (let i of this.wrappers) r = i(r, e, t, n);
|
|
525
524
|
return r;
|
|
526
525
|
}
|
|
527
|
-
configure(
|
|
528
|
-
let
|
|
529
|
-
if (!
|
|
530
|
-
let { nodeSet:
|
|
531
|
-
if (
|
|
532
|
-
|
|
533
|
-
let e =
|
|
534
|
-
for (let
|
|
535
|
-
let { name: n, block: a, composite: o, style:
|
|
526
|
+
configure(t) {
|
|
527
|
+
let n = Ke(t);
|
|
528
|
+
if (!n) return this;
|
|
529
|
+
let { nodeSet: r, skipContextMarkup: i } = this, a = this.blockParsers.slice(), s = this.leafBlockParsers.slice(), c = this.blockNames.slice(), u = this.inlineParsers.slice(), d = this.inlineNames.slice(), f = this.endLeafBlock.slice(), p = this.wrappers;
|
|
530
|
+
if (A(n.defineNodes)) {
|
|
531
|
+
i = Object.assign({}, i);
|
|
532
|
+
let e = r.types.slice(), t;
|
|
533
|
+
for (let r of n.defineNodes) {
|
|
534
|
+
let { name: n, block: a, composite: o, style: s } = typeof r == "string" ? { name: r } : r;
|
|
536
535
|
if (e.some((e) => e.name == n)) continue;
|
|
537
|
-
o && (
|
|
538
|
-
let
|
|
536
|
+
o && (i[e.length] = (e, t, n) => o(t, n, e.value));
|
|
537
|
+
let c = e.length, l = o ? ["Block", "BlockContext"] : a ? c >= C.ATXHeading1 && c <= C.SetextHeading2 ? [
|
|
539
538
|
"Block",
|
|
540
539
|
"LeafBlock",
|
|
541
540
|
"Heading"
|
|
542
541
|
] : ["Block", "LeafBlock"] : void 0;
|
|
543
|
-
e.push(
|
|
544
|
-
id:
|
|
542
|
+
e.push(_.define({
|
|
543
|
+
id: c,
|
|
545
544
|
name: n,
|
|
546
|
-
props:
|
|
547
|
-
})),
|
|
545
|
+
props: l && [[x.group, l]]
|
|
546
|
+
})), s && (t ||= {}, Array.isArray(s) || s instanceof m ? t[n] = s : Object.assign(t, s));
|
|
548
547
|
}
|
|
549
|
-
|
|
548
|
+
r = new o(e), t && (r = r.extend(l(t)));
|
|
550
549
|
}
|
|
551
|
-
if (
|
|
550
|
+
if (A(n.props) && (r = r.extend(...n.props)), A(n.remove)) for (let e of n.remove) {
|
|
552
551
|
let t = this.blockNames.indexOf(e), n = this.inlineNames.indexOf(e);
|
|
553
|
-
t > -1 && (
|
|
552
|
+
t > -1 && (a[t] = s[t] = void 0), n > -1 && (u[n] = void 0);
|
|
554
553
|
}
|
|
555
|
-
if (
|
|
556
|
-
let t =
|
|
557
|
-
if (t > -1)
|
|
554
|
+
if (A(n.parseBlock)) for (let e of n.parseBlock) {
|
|
555
|
+
let t = c.indexOf(e.name);
|
|
556
|
+
if (t > -1) a[t] = e.parse, s[t] = e.leaf;
|
|
558
557
|
else {
|
|
559
|
-
let t = e.before ?
|
|
560
|
-
|
|
558
|
+
let t = e.before ? j(c, e.before) : e.after ? j(c, e.after) + 1 : c.length - 1;
|
|
559
|
+
a.splice(t, 0, e.parse), s.splice(t, 0, e.leaf), c.splice(t, 0, e.name);
|
|
561
560
|
}
|
|
562
|
-
e.endLeaf &&
|
|
561
|
+
e.endLeaf && f.push(e.endLeaf);
|
|
563
562
|
}
|
|
564
|
-
if (
|
|
565
|
-
let t =
|
|
566
|
-
if (t > -1)
|
|
563
|
+
if (A(n.parseInline)) for (let e of n.parseInline) {
|
|
564
|
+
let t = d.indexOf(e.name);
|
|
565
|
+
if (t > -1) u[t] = e.parse;
|
|
567
566
|
else {
|
|
568
|
-
let t = e.before ?
|
|
569
|
-
|
|
567
|
+
let t = e.before ? j(d, e.before) : e.after ? j(d, e.after) + 1 : d.length - 1;
|
|
568
|
+
u.splice(t, 0, e.parse), d.splice(t, 0, e.name);
|
|
570
569
|
}
|
|
571
570
|
}
|
|
572
|
-
return
|
|
571
|
+
return n.wrap && (p = p.concat(n.wrap)), new e(r, a, s, c, f, i, u, d, p);
|
|
573
572
|
}
|
|
574
573
|
getNodeType(e) {
|
|
575
574
|
let t = this.nodeTypes[e];
|
|
@@ -577,7 +576,7 @@ var Ke = class e extends o {
|
|
|
577
576
|
return t;
|
|
578
577
|
}
|
|
579
578
|
parseInline(e, t) {
|
|
580
|
-
let n = new
|
|
579
|
+
let n = new it(this, e, t);
|
|
581
580
|
outer: for (let e = t; e < n.end;) {
|
|
582
581
|
let t = n.char(e);
|
|
583
582
|
for (let r of this.inlineParsers) if (r) {
|
|
@@ -592,17 +591,17 @@ var Ke = class e extends o {
|
|
|
592
591
|
return n.resolveMarkers(0);
|
|
593
592
|
}
|
|
594
593
|
};
|
|
595
|
-
function
|
|
594
|
+
function A(e) {
|
|
596
595
|
return e != null && e.length > 0;
|
|
597
596
|
}
|
|
598
|
-
function
|
|
597
|
+
function Ke(e) {
|
|
599
598
|
if (!Array.isArray(e)) return e;
|
|
600
599
|
if (e.length == 0) return null;
|
|
601
|
-
let t =
|
|
600
|
+
let t = Ke(e[0]);
|
|
602
601
|
if (e.length == 1) return t;
|
|
603
|
-
let n =
|
|
602
|
+
let n = Ke(e.slice(1));
|
|
604
603
|
if (!n || !t) return t || n;
|
|
605
|
-
let r = (e, t) => (e ||
|
|
604
|
+
let r = (e, t) => (e || M).concat(t || M), i = t.wrap, a = n.wrap;
|
|
606
605
|
return {
|
|
607
606
|
props: r(t.props, n.props),
|
|
608
607
|
defineNodes: r(t.defineNodes, n.defineNodes),
|
|
@@ -612,19 +611,19 @@ function qe(e) {
|
|
|
612
611
|
wrap: i ? a ? (e, t, n, r) => i(a(e, t, n, r), t, n, r) : i : a
|
|
613
612
|
};
|
|
614
613
|
}
|
|
615
|
-
function
|
|
614
|
+
function j(e, t) {
|
|
616
615
|
let n = e.indexOf(t);
|
|
617
616
|
if (n < 0) throw RangeError(`Position specified relative to unknown parser ${t}`);
|
|
618
617
|
return n;
|
|
619
618
|
}
|
|
620
|
-
var
|
|
621
|
-
for (let e = 1, t; t =
|
|
619
|
+
var qe = [_.none];
|
|
620
|
+
for (let e = 1, t; t = C[e]; e++) qe[e] = _.define({
|
|
622
621
|
id: e,
|
|
623
622
|
name: t,
|
|
624
|
-
props: e >=
|
|
623
|
+
props: e >= C.Escape ? [] : [[x.group, e in Ce ? ["Block", "BlockContext"] : ["Block", "LeafBlock"]]],
|
|
625
624
|
top: t == "Document"
|
|
626
625
|
});
|
|
627
|
-
var
|
|
626
|
+
var M = [], Je = class {
|
|
628
627
|
constructor(e) {
|
|
629
628
|
this.nodeSet = e, this.content = [], this.nodes = [];
|
|
630
629
|
}
|
|
@@ -636,7 +635,7 @@ var j = [], Ye = class {
|
|
|
636
635
|
return this;
|
|
637
636
|
}
|
|
638
637
|
finish(e, t) {
|
|
639
|
-
return
|
|
638
|
+
return v.build({
|
|
640
639
|
buffer: this.content,
|
|
641
640
|
nodeSet: this.nodeSet,
|
|
642
641
|
reused: this.nodes,
|
|
@@ -644,8 +643,8 @@ var j = [], Ye = class {
|
|
|
644
643
|
length: t
|
|
645
644
|
});
|
|
646
645
|
}
|
|
647
|
-
},
|
|
648
|
-
constructor(e, t, n, r =
|
|
646
|
+
}, N = class {
|
|
647
|
+
constructor(e, t, n, r = M) {
|
|
649
648
|
this.type = e, this.from = t, this.to = n, this.children = r;
|
|
650
649
|
}
|
|
651
650
|
writeTo(e, t) {
|
|
@@ -653,9 +652,9 @@ var j = [], Ye = class {
|
|
|
653
652
|
e.writeElements(this.children, t), e.content.push(this.type, this.from + t, this.to + t, e.content.length + 4 - n);
|
|
654
653
|
}
|
|
655
654
|
toTree(e) {
|
|
656
|
-
return new
|
|
655
|
+
return new Je(e).writeElements(this.children, -this.from).finish(this.type, this.to - this.from);
|
|
657
656
|
}
|
|
658
|
-
},
|
|
657
|
+
}, Ye = class {
|
|
659
658
|
constructor(e, t) {
|
|
660
659
|
this.tree = e, this.from = t;
|
|
661
660
|
}
|
|
@@ -666,7 +665,7 @@ var j = [], Ye = class {
|
|
|
666
665
|
return this.tree.type.id;
|
|
667
666
|
}
|
|
668
667
|
get children() {
|
|
669
|
-
return
|
|
668
|
+
return M;
|
|
670
669
|
}
|
|
671
670
|
writeTo(e, t) {
|
|
672
671
|
e.nodes.push(this.tree), e.content.push(e.nodes.length - 1, this.from + t, this.to + t, -1);
|
|
@@ -675,34 +674,34 @@ var j = [], Ye = class {
|
|
|
675
674
|
return this.tree;
|
|
676
675
|
}
|
|
677
676
|
};
|
|
678
|
-
function
|
|
679
|
-
return new
|
|
677
|
+
function P(e, t, n, r) {
|
|
678
|
+
return new N(e, t, n, r);
|
|
680
679
|
}
|
|
681
|
-
var
|
|
680
|
+
var Xe = {
|
|
682
681
|
resolve: "Emphasis",
|
|
683
682
|
mark: "EmphasisMark"
|
|
684
|
-
},
|
|
683
|
+
}, Ze = {
|
|
685
684
|
resolve: "Emphasis",
|
|
686
685
|
mark: "EmphasisMark"
|
|
687
|
-
},
|
|
686
|
+
}, F = {}, I = {}, L = class {
|
|
688
687
|
constructor(e, t, n, r) {
|
|
689
688
|
this.type = e, this.from = t, this.to = n, this.side = r;
|
|
690
689
|
}
|
|
691
|
-
},
|
|
690
|
+
}, Qe = "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", R = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;
|
|
692
691
|
try {
|
|
693
|
-
|
|
692
|
+
R = /* @__PURE__ */ RegExp("[\\p{S}|\\p{P}]", "u");
|
|
694
693
|
} catch {}
|
|
695
|
-
var
|
|
694
|
+
var $e = {
|
|
696
695
|
Escape(e, t, n) {
|
|
697
696
|
if (t != 92 || n == e.end - 1) return -1;
|
|
698
697
|
let r = e.char(n + 1);
|
|
699
|
-
for (let t = 0; t < 32; t++) if (
|
|
698
|
+
for (let t = 0; t < 32; t++) if (Qe.charCodeAt(t) == r) return e.append(P(C.Escape, n, n + 2));
|
|
700
699
|
return -1;
|
|
701
700
|
},
|
|
702
701
|
Entity(e, t, n) {
|
|
703
702
|
if (t != 38) return -1;
|
|
704
703
|
let r = /^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(n + 1, n + 31));
|
|
705
|
-
return r ? e.append(
|
|
704
|
+
return r ? e.append(P(C.Entity, n, n + 1 + r[0].length)) : -1;
|
|
706
705
|
},
|
|
707
706
|
InlineCode(e, t, n) {
|
|
708
707
|
if (t != 96 || n && e.char(n - 1) == 96) return -1;
|
|
@@ -710,57 +709,57 @@ var et = {
|
|
|
710
709
|
for (; r < e.end && e.char(r) == 96;) r++;
|
|
711
710
|
let i = r - n, a = 0;
|
|
712
711
|
for (; r < e.end; r++) if (e.char(r) == 96) {
|
|
713
|
-
if (a++, a == i && e.char(r + 1) != 96) return e.append(
|
|
712
|
+
if (a++, a == i && e.char(r + 1) != 96) return e.append(P(C.InlineCode, n, r + 1, [P(C.CodeMark, n, n + i), P(C.CodeMark, r + 1 - i, r + 1)]));
|
|
714
713
|
} else a = 0;
|
|
715
714
|
return -1;
|
|
716
715
|
},
|
|
717
716
|
HTMLTag(e, t, n) {
|
|
718
717
|
if (t != 60 || n == e.end - 1) return -1;
|
|
719
718
|
let r = e.slice(n + 1, e.end), i = /^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);
|
|
720
|
-
if (i) return e.append(
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
719
|
+
if (i) return e.append(P(C.Autolink, n, n + 1 + i[0].length, [
|
|
720
|
+
P(C.LinkMark, n, n + 1),
|
|
721
|
+
P(C.URL, n + 1, n + i[0].length),
|
|
722
|
+
P(C.LinkMark, n + i[0].length, n + 1 + i[0].length)
|
|
724
723
|
]));
|
|
725
724
|
let a = /^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);
|
|
726
|
-
if (a) return e.append(
|
|
725
|
+
if (a) return e.append(P(C.Comment, n, n + 1 + a[0].length));
|
|
727
726
|
let o = /^\?[^]*?\?>/.exec(r);
|
|
728
|
-
if (o) return e.append(
|
|
727
|
+
if (o) return e.append(P(C.ProcessingInstruction, n, n + 1 + o[0].length));
|
|
729
728
|
let s = /^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);
|
|
730
|
-
return s ? e.append(
|
|
729
|
+
return s ? e.append(P(C.HTMLTag, n, n + 1 + s[0].length)) : -1;
|
|
731
730
|
},
|
|
732
731
|
Emphasis(e, t, n) {
|
|
733
732
|
if (t != 95 && t != 42) return -1;
|
|
734
733
|
let r = n + 1;
|
|
735
734
|
for (; e.char(r) == t;) r++;
|
|
736
|
-
let i = e.slice(n - 1, n), a = e.slice(r, r + 1), o =
|
|
737
|
-
return e.append(new
|
|
735
|
+
let i = e.slice(n - 1, n), a = e.slice(r, r + 1), o = R.test(i), s = R.test(a), c = /\s|^$/.test(i), l = /\s|^$/.test(a), u = !l && (!s || c || o), d = !c && (!o || l || s), f = u && (t == 42 || !d || o), p = d && (t == 42 || !u || s);
|
|
736
|
+
return e.append(new L(t == 95 ? Xe : Ze, n, r, !!f | (p ? 2 : 0)));
|
|
738
737
|
},
|
|
739
738
|
HardBreak(e, t, n) {
|
|
740
|
-
if (t == 92 && e.char(n + 1) == 10) return e.append(
|
|
739
|
+
if (t == 92 && e.char(n + 1) == 10) return e.append(P(C.HardBreak, n, n + 2));
|
|
741
740
|
if (t == 32) {
|
|
742
741
|
let t = n + 1;
|
|
743
742
|
for (; e.char(t) == 32;) t++;
|
|
744
|
-
if (e.char(t) == 10 && t >= n + 2) return e.append(
|
|
743
|
+
if (e.char(t) == 10 && t >= n + 2) return e.append(P(C.HardBreak, n, t + 1));
|
|
745
744
|
}
|
|
746
745
|
return -1;
|
|
747
746
|
},
|
|
748
747
|
Link(e, t, n) {
|
|
749
|
-
return t == 91 ? e.append(new
|
|
748
|
+
return t == 91 ? e.append(new L(F, n, n + 1, 1)) : -1;
|
|
750
749
|
},
|
|
751
750
|
Image(e, t, n) {
|
|
752
|
-
return t == 33 && e.char(n + 1) == 91 ? e.append(new I
|
|
751
|
+
return t == 33 && e.char(n + 1) == 91 ? e.append(new L(I, n, n + 2, 1)) : -1;
|
|
753
752
|
},
|
|
754
753
|
LinkEnd(e, t, n) {
|
|
755
754
|
if (t != 93) return -1;
|
|
756
755
|
for (let t = e.parts.length - 1; t >= 0; t--) {
|
|
757
756
|
let r = e.parts[t];
|
|
758
|
-
if (r instanceof
|
|
757
|
+
if (r instanceof L && (r.type == F || r.type == I)) {
|
|
759
758
|
if (!r.side || e.skipSpace(r.to) == n && !/[(\[]/.test(e.slice(n + 1, n + 2))) return e.parts[t] = null, -1;
|
|
760
|
-
let i = e.takeContent(t), a = e.parts[t] =
|
|
761
|
-
if (r.type ==
|
|
759
|
+
let i = e.takeContent(t), a = e.parts[t] = et(e, i, r.type == F ? C.Link : C.Image, r.from, n + 1);
|
|
760
|
+
if (r.type == F) for (let n = 0; n < t; n++) {
|
|
762
761
|
let t = e.parts[n];
|
|
763
|
-
t instanceof
|
|
762
|
+
t instanceof L && t.type == F && (t.side = 0);
|
|
764
763
|
}
|
|
765
764
|
return a.to;
|
|
766
765
|
}
|
|
@@ -768,22 +767,22 @@ var et = {
|
|
|
768
767
|
return -1;
|
|
769
768
|
}
|
|
770
769
|
};
|
|
771
|
-
function
|
|
770
|
+
function et(e, t, n, r, i) {
|
|
772
771
|
let { text: a } = e, o = e.char(i), s = i;
|
|
773
|
-
if (t.unshift(
|
|
774
|
-
let n = e.skipSpace(i + 1), r =
|
|
775
|
-
r && (n = e.skipSpace(r.to), n != r.to && (o =
|
|
772
|
+
if (t.unshift(P(C.LinkMark, r, r + (n == C.Image ? 2 : 1))), t.push(P(C.LinkMark, i - 1, i)), o == 40) {
|
|
773
|
+
let n = e.skipSpace(i + 1), r = tt(a, n - e.offset, e.offset), o;
|
|
774
|
+
r && (n = e.skipSpace(r.to), n != r.to && (o = nt(a, n - e.offset, e.offset), o && (n = e.skipSpace(o.to)))), e.char(n) == 41 && (t.push(P(C.LinkMark, i, i + 1)), s = n + 1, r && t.push(r), o && t.push(o), t.push(P(C.LinkMark, n, s)));
|
|
776
775
|
} else if (o == 91) {
|
|
777
|
-
let n =
|
|
776
|
+
let n = rt(a, i - e.offset, e.offset, !1);
|
|
778
777
|
n && (t.push(n), s = n.to);
|
|
779
778
|
}
|
|
780
|
-
return
|
|
779
|
+
return P(n, r, s, t);
|
|
781
780
|
}
|
|
782
|
-
function
|
|
781
|
+
function tt(e, t, n) {
|
|
783
782
|
if (e.charCodeAt(t) == 60) {
|
|
784
783
|
for (let r = t + 1; r < e.length; r++) {
|
|
785
784
|
let i = e.charCodeAt(r);
|
|
786
|
-
if (i == 62) return
|
|
785
|
+
if (i == 62) return P(C.URL, t + n, r + 1 + n);
|
|
787
786
|
if (i == 60 || i == 10) return !1;
|
|
788
787
|
}
|
|
789
788
|
return null;
|
|
@@ -792,7 +791,7 @@ function nt(e, t, n) {
|
|
|
792
791
|
let r = 0, i = t;
|
|
793
792
|
for (let t = !1; i < e.length; i++) {
|
|
794
793
|
let n = e.charCodeAt(i);
|
|
795
|
-
if (
|
|
794
|
+
if (w(n)) break;
|
|
796
795
|
if (t) t = !1;
|
|
797
796
|
else if (n == 40) r++;
|
|
798
797
|
else if (n == 41) {
|
|
@@ -800,34 +799,34 @@ function nt(e, t, n) {
|
|
|
800
799
|
r--;
|
|
801
800
|
} else n == 92 && (t = !0);
|
|
802
801
|
}
|
|
803
|
-
return i > t ?
|
|
802
|
+
return i > t ? P(C.URL, t + n, i + n) : i == e.length && null;
|
|
804
803
|
}
|
|
805
804
|
}
|
|
806
|
-
function
|
|
805
|
+
function nt(e, t, n) {
|
|
807
806
|
let r = e.charCodeAt(t);
|
|
808
807
|
if (r != 39 && r != 34 && r != 40) return !1;
|
|
809
808
|
let i = r == 40 ? 41 : r;
|
|
810
809
|
for (let r = t + 1, a = !1; r < e.length; r++) {
|
|
811
810
|
let o = e.charCodeAt(r);
|
|
812
811
|
if (a) a = !1;
|
|
813
|
-
else if (o == i) return
|
|
812
|
+
else if (o == i) return P(C.LinkTitle, t + n, r + 1 + n);
|
|
814
813
|
else o == 92 && (a = !0);
|
|
815
814
|
}
|
|
816
815
|
return null;
|
|
817
816
|
}
|
|
818
|
-
function
|
|
817
|
+
function rt(e, t, n, r) {
|
|
819
818
|
for (let i = !1, a = t + 1, o = Math.min(e.length, a + 999); a < o; a++) {
|
|
820
819
|
let o = e.charCodeAt(a);
|
|
821
820
|
if (i) i = !1;
|
|
822
|
-
else if (o == 93) return !r &&
|
|
821
|
+
else if (o == 93) return !r && P(C.LinkLabel, t + n, a + 1 + n);
|
|
823
822
|
else {
|
|
824
|
-
if (r && !
|
|
823
|
+
if (r && !w(o) && (r = !1), o == 91) return !1;
|
|
825
824
|
o == 92 && (i = !0);
|
|
826
825
|
}
|
|
827
826
|
}
|
|
828
827
|
return null;
|
|
829
828
|
}
|
|
830
|
-
var
|
|
829
|
+
var it = class {
|
|
831
830
|
constructor(e, t, n) {
|
|
832
831
|
this.parser = e, this.text = t, this.offset = n, this.parts = [];
|
|
833
832
|
}
|
|
@@ -844,12 +843,12 @@ var at = class {
|
|
|
844
843
|
return this.parts.push(e), e.to;
|
|
845
844
|
}
|
|
846
845
|
addDelimiter(e, t, n, r, i) {
|
|
847
|
-
return this.append(new
|
|
846
|
+
return this.append(new L(e, t, n, !!r | (i ? 2 : 0)));
|
|
848
847
|
}
|
|
849
848
|
get hasOpenLink() {
|
|
850
849
|
for (let e = this.parts.length - 1; e >= 0; e--) {
|
|
851
850
|
let t = this.parts[e];
|
|
852
|
-
if (t instanceof
|
|
851
|
+
if (t instanceof L && (t.type == F || t.type == I)) return !0;
|
|
853
852
|
}
|
|
854
853
|
return !1;
|
|
855
854
|
}
|
|
@@ -859,11 +858,11 @@ var at = class {
|
|
|
859
858
|
resolveMarkers(e) {
|
|
860
859
|
for (let t = e; t < this.parts.length; t++) {
|
|
861
860
|
let n = this.parts[t];
|
|
862
|
-
if (!(n instanceof
|
|
863
|
-
let r = n.type ==
|
|
861
|
+
if (!(n instanceof L && n.type.resolve && n.side & 2)) continue;
|
|
862
|
+
let r = n.type == Xe || n.type == Ze, i = n.to - n.from, a, o = t - 1;
|
|
864
863
|
for (; o >= e; o--) {
|
|
865
864
|
let e = this.parts[o];
|
|
866
|
-
if (e instanceof
|
|
865
|
+
if (e instanceof L && e.side & 1 && e.type == n.type && !(r && (n.side & 1 || e.side & 2) && (e.to - e.from + i) % 3 == 0 && ((e.to - e.from) % 3 || i % 3))) {
|
|
867
866
|
a = e;
|
|
868
867
|
break;
|
|
869
868
|
}
|
|
@@ -875,22 +874,22 @@ var at = class {
|
|
|
875
874
|
l = a.to - e, u = n.from + e, s = e == 1 ? "Emphasis" : "StrongEmphasis";
|
|
876
875
|
}
|
|
877
876
|
a.type.mark && c.push(this.elt(a.type.mark, l, a.to));
|
|
878
|
-
for (let e = o + 1; e < t; e++) this.parts[e] instanceof
|
|
877
|
+
for (let e = o + 1; e < t; e++) this.parts[e] instanceof N && c.push(this.parts[e]), this.parts[e] = null;
|
|
879
878
|
n.type.mark && c.push(this.elt(n.type.mark, n.from, u));
|
|
880
879
|
let d = this.elt(s, l, u, c);
|
|
881
|
-
this.parts[o] = r && a.from != l ? new
|
|
880
|
+
this.parts[o] = r && a.from != l ? new L(a.type, a.from, l, a.side) : null, (this.parts[t] = r && n.to != u ? new L(n.type, u, n.to, n.side) : null) ? this.parts.splice(t, 0, d) : this.parts[t] = d;
|
|
882
881
|
}
|
|
883
882
|
let t = [];
|
|
884
883
|
for (let n = e; n < this.parts.length; n++) {
|
|
885
884
|
let e = this.parts[n];
|
|
886
|
-
e instanceof
|
|
885
|
+
e instanceof N && t.push(e);
|
|
887
886
|
}
|
|
888
887
|
return t;
|
|
889
888
|
}
|
|
890
889
|
findOpeningDelimiter(e) {
|
|
891
890
|
for (let t = this.parts.length - 1; t >= 0; t--) {
|
|
892
891
|
let n = this.parts[t];
|
|
893
|
-
if (n instanceof
|
|
892
|
+
if (n instanceof L && n.type == e && n.side & 1) return t;
|
|
894
893
|
}
|
|
895
894
|
return null;
|
|
896
895
|
}
|
|
@@ -900,17 +899,17 @@ var at = class {
|
|
|
900
899
|
}
|
|
901
900
|
getDelimiterAt(e) {
|
|
902
901
|
let t = this.parts[e];
|
|
903
|
-
return t instanceof
|
|
902
|
+
return t instanceof L ? t : null;
|
|
904
903
|
}
|
|
905
904
|
skipSpace(e) {
|
|
906
|
-
return
|
|
905
|
+
return T(this.text, e - this.offset) + this.offset;
|
|
907
906
|
}
|
|
908
907
|
elt(e, t, n, r) {
|
|
909
|
-
return typeof e == "string" ?
|
|
908
|
+
return typeof e == "string" ? P(this.parser.getNodeType(e), t, n, r) : new Ye(e, t);
|
|
910
909
|
}
|
|
911
910
|
};
|
|
912
|
-
|
|
913
|
-
function
|
|
911
|
+
it.linkStart = F, it.imageStart = I;
|
|
912
|
+
function at(e, t) {
|
|
914
913
|
if (!t.length) return e;
|
|
915
914
|
if (!e.length) return t;
|
|
916
915
|
let n = e.slice(), r = 0;
|
|
@@ -918,17 +917,17 @@ function ot(e, t) {
|
|
|
918
917
|
for (; r < n.length && n[r].to < e.to;) r++;
|
|
919
918
|
if (r < n.length && n[r].from < e.from) {
|
|
920
919
|
let t = n[r];
|
|
921
|
-
t instanceof
|
|
920
|
+
t instanceof N && (n[r] = new N(t.type, t.from, t.to, at(t.children, [e])));
|
|
922
921
|
} else n.splice(r++, 0, e);
|
|
923
922
|
}
|
|
924
923
|
return n;
|
|
925
924
|
}
|
|
926
|
-
var
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
],
|
|
925
|
+
var ot = [
|
|
926
|
+
C.CodeBlock,
|
|
927
|
+
C.ListItem,
|
|
928
|
+
C.OrderedList,
|
|
929
|
+
C.BulletList
|
|
930
|
+
], st = class {
|
|
932
931
|
constructor(e, t) {
|
|
933
932
|
this.fragments = e, this.input = t, this.i = 0, this.fragment = null, this.fragmentEnd = -1, this.cursor = null, e.length && (this.fragment = e[this.i++]);
|
|
934
933
|
}
|
|
@@ -954,28 +953,28 @@ var st = [
|
|
|
954
953
|
}
|
|
955
954
|
matches(e) {
|
|
956
955
|
let t = this.cursor.tree;
|
|
957
|
-
return t && t.prop(
|
|
956
|
+
return t && t.prop(x.contextHash) == e;
|
|
958
957
|
}
|
|
959
958
|
takeNodes(e) {
|
|
960
|
-
let t = this.cursor, n = this.fragment.offset, r = this.fragmentEnd - +!!this.fragment.openEnd,
|
|
959
|
+
let t = this.cursor, n = this.fragment.offset, r = this.fragmentEnd - +!!this.fragment.openEnd, i = e.absoluteLineStart, a = i, o = e.block.children.length, s = a, c = o;
|
|
961
960
|
for (;;) {
|
|
962
961
|
if (t.to - n > r) {
|
|
963
962
|
if (t.type.isAnonymous && t.firstChild()) continue;
|
|
964
963
|
break;
|
|
965
964
|
}
|
|
966
|
-
let
|
|
967
|
-
if (t.to - n <= e.ranges[e.rangeI].to) e.addNode(t.tree,
|
|
965
|
+
let i = ct(t.from - n, e.ranges);
|
|
966
|
+
if (t.to - n <= e.ranges[e.rangeI].to) e.addNode(t.tree, i);
|
|
968
967
|
else {
|
|
969
|
-
let n = new
|
|
970
|
-
e.reusePlaceholders.set(n, t.tree), e.addNode(n,
|
|
968
|
+
let n = new v(e.parser.nodeSet.types[C.Paragraph], [], [], 0, e.block.hashProp);
|
|
969
|
+
e.reusePlaceholders.set(n, t.tree), e.addNode(n, i);
|
|
971
970
|
}
|
|
972
|
-
if (t.type.is("Block") && (
|
|
971
|
+
if (t.type.is("Block") && (ot.indexOf(t.type.id) < 0 ? (a = t.to - n, o = e.block.children.length) : (a = s, o = c), s = t.to - n, c = e.block.children.length), !t.nextSibling()) break;
|
|
973
972
|
}
|
|
974
|
-
for (; e.block.children.length >
|
|
975
|
-
return
|
|
973
|
+
for (; e.block.children.length > o;) e.block.children.pop(), e.block.positions.pop();
|
|
974
|
+
return a - i;
|
|
976
975
|
}
|
|
977
976
|
};
|
|
978
|
-
function
|
|
977
|
+
function ct(e, t) {
|
|
979
978
|
let n = e;
|
|
980
979
|
for (let r = 1; r < t.length; r++) {
|
|
981
980
|
let i = t[r - 1].to, a = t[r].from;
|
|
@@ -983,31 +982,31 @@ function lt(e, t) {
|
|
|
983
982
|
}
|
|
984
983
|
return n;
|
|
985
984
|
}
|
|
986
|
-
var
|
|
987
|
-
"Blockquote/...":
|
|
988
|
-
HorizontalRule:
|
|
989
|
-
"ATXHeading1/... SetextHeading1/...":
|
|
990
|
-
"ATXHeading2/... SetextHeading2/...":
|
|
991
|
-
"ATXHeading3/...":
|
|
992
|
-
"ATXHeading4/...":
|
|
993
|
-
"ATXHeading5/...":
|
|
994
|
-
"ATXHeading6/...":
|
|
995
|
-
"Comment CommentBlock":
|
|
996
|
-
Escape:
|
|
997
|
-
Entity:
|
|
998
|
-
"Emphasis/...":
|
|
999
|
-
"StrongEmphasis/...":
|
|
1000
|
-
"Link/... Image/...":
|
|
1001
|
-
"OrderedList/... BulletList/...":
|
|
1002
|
-
"BlockQuote/...":
|
|
1003
|
-
"InlineCode CodeText":
|
|
1004
|
-
"URL Autolink":
|
|
1005
|
-
"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":
|
|
1006
|
-
"CodeInfo LinkLabel":
|
|
1007
|
-
LinkTitle:
|
|
1008
|
-
Paragraph:
|
|
1009
|
-
}),
|
|
1010
|
-
function
|
|
985
|
+
var lt = l({
|
|
986
|
+
"Blockquote/...": f.quote,
|
|
987
|
+
HorizontalRule: f.contentSeparator,
|
|
988
|
+
"ATXHeading1/... SetextHeading1/...": f.heading1,
|
|
989
|
+
"ATXHeading2/... SetextHeading2/...": f.heading2,
|
|
990
|
+
"ATXHeading3/...": f.heading3,
|
|
991
|
+
"ATXHeading4/...": f.heading4,
|
|
992
|
+
"ATXHeading5/...": f.heading5,
|
|
993
|
+
"ATXHeading6/...": f.heading6,
|
|
994
|
+
"Comment CommentBlock": f.comment,
|
|
995
|
+
Escape: f.escape,
|
|
996
|
+
Entity: f.character,
|
|
997
|
+
"Emphasis/...": f.emphasis,
|
|
998
|
+
"StrongEmphasis/...": f.strong,
|
|
999
|
+
"Link/... Image/...": f.link,
|
|
1000
|
+
"OrderedList/... BulletList/...": f.list,
|
|
1001
|
+
"BlockQuote/...": f.quote,
|
|
1002
|
+
"InlineCode CodeText": f.monospace,
|
|
1003
|
+
"URL Autolink": f.url,
|
|
1004
|
+
"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark": f.processingInstruction,
|
|
1005
|
+
"CodeInfo LinkLabel": f.labelName,
|
|
1006
|
+
LinkTitle: f.string,
|
|
1007
|
+
Paragraph: f.content
|
|
1008
|
+
}), ut = new Ge(new o(qe).extend(lt), Object.keys(k).map((e) => k[e]), Object.keys(k).map((e) => Be[e]), Object.keys(k), Ve, Ce, Object.keys($e).map((e) => $e[e]), Object.keys($e), []);
|
|
1009
|
+
function dt(e, t, n) {
|
|
1011
1010
|
let r = [];
|
|
1012
1011
|
for (let i = e.firstChild, a = t;; i = i.nextSibling) {
|
|
1013
1012
|
let e = i ? i.from : n;
|
|
@@ -1019,51 +1018,51 @@ function ft(e, t, n) {
|
|
|
1019
1018
|
}
|
|
1020
1019
|
return r;
|
|
1021
1020
|
}
|
|
1022
|
-
function
|
|
1023
|
-
let { codeParser:
|
|
1024
|
-
return { wrap:
|
|
1021
|
+
function ft(e) {
|
|
1022
|
+
let { codeParser: t, htmlParser: n } = e;
|
|
1023
|
+
return { wrap: u((e, r) => {
|
|
1025
1024
|
let i = e.type.id;
|
|
1026
|
-
if (
|
|
1027
|
-
let
|
|
1028
|
-
if (i ==
|
|
1029
|
-
let
|
|
1030
|
-
|
|
1025
|
+
if (t && (i == C.CodeBlock || i == C.FencedCode)) {
|
|
1026
|
+
let n = "";
|
|
1027
|
+
if (i == C.FencedCode) {
|
|
1028
|
+
let t = e.node.getChild(C.CodeInfo);
|
|
1029
|
+
t && (n = r.read(t.from, t.to));
|
|
1031
1030
|
}
|
|
1032
|
-
let a = n
|
|
1031
|
+
let a = t(n);
|
|
1033
1032
|
if (a) return {
|
|
1034
1033
|
parser: a,
|
|
1035
|
-
overlay: (e) => e.type.id ==
|
|
1036
|
-
bracketed: i ==
|
|
1034
|
+
overlay: (e) => e.type.id == C.CodeText,
|
|
1035
|
+
bracketed: i == C.FencedCode
|
|
1037
1036
|
};
|
|
1038
|
-
} else if (
|
|
1039
|
-
parser:
|
|
1040
|
-
overlay:
|
|
1037
|
+
} else if (n && (i == C.HTMLBlock || i == C.HTMLTag || i == C.CommentBlock)) return {
|
|
1038
|
+
parser: n,
|
|
1039
|
+
overlay: dt(e.node, e.from, e.to)
|
|
1041
1040
|
};
|
|
1042
1041
|
return null;
|
|
1043
1042
|
}) };
|
|
1044
1043
|
}
|
|
1045
|
-
var
|
|
1044
|
+
var pt = {
|
|
1046
1045
|
resolve: "Strikethrough",
|
|
1047
1046
|
mark: "StrikethroughMark"
|
|
1048
|
-
},
|
|
1047
|
+
}, mt = {
|
|
1049
1048
|
defineNodes: [{
|
|
1050
1049
|
name: "Strikethrough",
|
|
1051
|
-
style: { "Strikethrough/...":
|
|
1050
|
+
style: { "Strikethrough/...": f.strikethrough }
|
|
1052
1051
|
}, {
|
|
1053
1052
|
name: "StrikethroughMark",
|
|
1054
|
-
style:
|
|
1053
|
+
style: f.processingInstruction
|
|
1055
1054
|
}],
|
|
1056
1055
|
parseInline: [{
|
|
1057
1056
|
name: "Strikethrough",
|
|
1058
1057
|
parse(e, t, n) {
|
|
1059
1058
|
if (t != 126 || e.char(n + 1) != 126 || e.char(n + 2) == 126) return -1;
|
|
1060
|
-
let r = e.slice(n - 1, n), i = e.slice(n + 2, n + 3), a = /\s|^$/.test(r), o = /\s|^$/.test(i), s =
|
|
1061
|
-
return e.addDelimiter(
|
|
1059
|
+
let r = e.slice(n - 1, n), i = e.slice(n + 2, n + 3), a = /\s|^$/.test(r), o = /\s|^$/.test(i), s = R.test(r), c = R.test(i);
|
|
1060
|
+
return e.addDelimiter(pt, n, n + 2, !o && (!c || a || s), !a && (!s || o || c));
|
|
1062
1061
|
},
|
|
1063
1062
|
after: "Emphasis"
|
|
1064
1063
|
}]
|
|
1065
1064
|
};
|
|
1066
|
-
function
|
|
1065
|
+
function z(e, t, n = 0, r, i = 0) {
|
|
1067
1066
|
let a = 0, o = !0, s = -1, c = -1, l = !1, u = () => {
|
|
1068
1067
|
r.push(e.elt("TableCell", i + s, i + c, e.parser.parseInline(t.slice(s, c), i + s)));
|
|
1069
1068
|
};
|
|
@@ -1073,7 +1072,7 @@ function R(e, t, n = 0, r, i = 0) {
|
|
|
1073
1072
|
}
|
|
1074
1073
|
return s > -1 && (a++, r && u()), a;
|
|
1075
1074
|
}
|
|
1076
|
-
function
|
|
1075
|
+
function ht(e, t) {
|
|
1077
1076
|
for (let n = t; n < e.length; n++) {
|
|
1078
1077
|
let t = e.charCodeAt(n);
|
|
1079
1078
|
if (t == 124) return !0;
|
|
@@ -1081,7 +1080,7 @@ function gt(e, t) {
|
|
|
1081
1080
|
}
|
|
1082
1081
|
return !1;
|
|
1083
1082
|
}
|
|
1084
|
-
var
|
|
1083
|
+
var gt = /^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/, _t = class {
|
|
1085
1084
|
constructor() {
|
|
1086
1085
|
this.rows = null;
|
|
1087
1086
|
}
|
|
@@ -1089,20 +1088,20 @@ var _t = /^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/, vt = class {
|
|
|
1089
1088
|
if (this.rows == null) {
|
|
1090
1089
|
this.rows = !1;
|
|
1091
1090
|
let r;
|
|
1092
|
-
if ((t.next == 45 || t.next == 58 || t.next == 124) &&
|
|
1091
|
+
if ((t.next == 45 || t.next == 58 || t.next == 124) && gt.test(r = t.text.slice(t.pos))) {
|
|
1093
1092
|
let i = [];
|
|
1094
|
-
|
|
1093
|
+
z(e, n.content, 0, i, n.start) == z(e, r, 0) && (this.rows = [e.elt("TableHeader", n.start, n.start + n.content.length, i), e.elt("TableDelimiter", e.lineStart + t.pos, e.lineStart + t.text.length)]);
|
|
1095
1094
|
}
|
|
1096
1095
|
} else if (this.rows) {
|
|
1097
1096
|
let n = [];
|
|
1098
|
-
|
|
1097
|
+
z(e, t.text, t.pos, n, e.lineStart), this.rows.push(e.elt("TableRow", e.lineStart + t.pos, e.lineStart + t.text.length, n));
|
|
1099
1098
|
}
|
|
1100
1099
|
return !1;
|
|
1101
1100
|
}
|
|
1102
1101
|
finish(e, t) {
|
|
1103
1102
|
return this.rows ? (e.addLeafElement(t, e.elt("Table", t.start, t.start + t.content.length, this.rows)), !0) : !1;
|
|
1104
1103
|
}
|
|
1105
|
-
},
|
|
1104
|
+
}, vt = {
|
|
1106
1105
|
defineNodes: [
|
|
1107
1106
|
{
|
|
1108
1107
|
name: "Table",
|
|
@@ -1110,134 +1109,134 @@ var _t = /^[>\s]*\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/, vt = class {
|
|
|
1110
1109
|
},
|
|
1111
1110
|
{
|
|
1112
1111
|
name: "TableHeader",
|
|
1113
|
-
style: { "TableHeader/...":
|
|
1112
|
+
style: { "TableHeader/...": f.heading }
|
|
1114
1113
|
},
|
|
1115
1114
|
"TableRow",
|
|
1116
1115
|
{
|
|
1117
1116
|
name: "TableCell",
|
|
1118
|
-
style:
|
|
1117
|
+
style: f.content
|
|
1119
1118
|
},
|
|
1120
1119
|
{
|
|
1121
1120
|
name: "TableDelimiter",
|
|
1122
|
-
style:
|
|
1121
|
+
style: f.processingInstruction
|
|
1123
1122
|
}
|
|
1124
1123
|
],
|
|
1125
1124
|
parseBlock: [{
|
|
1126
1125
|
name: "Table",
|
|
1127
1126
|
leaf(e, t) {
|
|
1128
|
-
return
|
|
1127
|
+
return ht(t.content, 0) ? new _t() : null;
|
|
1129
1128
|
},
|
|
1130
1129
|
endLeaf(e, t, n) {
|
|
1131
|
-
if (n.parsers.some((e) => e instanceof
|
|
1130
|
+
if (n.parsers.some((e) => e instanceof _t) || !ht(t.text, t.basePos)) return !1;
|
|
1132
1131
|
let r = e.peekLine();
|
|
1133
|
-
return
|
|
1132
|
+
return gt.test(r) && z(e, t.text, t.basePos) == z(e, r, t.basePos);
|
|
1134
1133
|
},
|
|
1135
1134
|
before: "SetextHeading"
|
|
1136
1135
|
}]
|
|
1137
|
-
},
|
|
1136
|
+
}, yt = class {
|
|
1138
1137
|
nextLine() {
|
|
1139
1138
|
return !1;
|
|
1140
1139
|
}
|
|
1141
1140
|
finish(e, t) {
|
|
1142
1141
|
return e.addLeafElement(t, e.elt("Task", t.start, t.start + t.content.length, [e.elt("TaskMarker", t.start, t.start + 3), ...e.parser.parseInline(t.content.slice(3), t.start + 3)])), !0;
|
|
1143
1142
|
}
|
|
1144
|
-
},
|
|
1143
|
+
}, bt = {
|
|
1145
1144
|
defineNodes: [{
|
|
1146
1145
|
name: "Task",
|
|
1147
1146
|
block: !0,
|
|
1148
|
-
style:
|
|
1147
|
+
style: f.list
|
|
1149
1148
|
}, {
|
|
1150
1149
|
name: "TaskMarker",
|
|
1151
|
-
style:
|
|
1150
|
+
style: f.atom
|
|
1152
1151
|
}],
|
|
1153
1152
|
parseBlock: [{
|
|
1154
1153
|
name: "TaskList",
|
|
1155
1154
|
leaf(e, t) {
|
|
1156
|
-
return /^\[[ xX]\][ \t]/.test(t.content) && e.parentType().name == "ListItem" ? new
|
|
1155
|
+
return /^\[[ xX]\][ \t]/.test(t.content) && e.parentType().name == "ListItem" ? new yt() : null;
|
|
1157
1156
|
},
|
|
1158
1157
|
after: "SetextHeading"
|
|
1159
1158
|
}]
|
|
1160
|
-
},
|
|
1161
|
-
function
|
|
1159
|
+
}, xt = /(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy, St = /[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy, Ct = /[\w-]+\.[\w-]+($|[/:])/, wt = /[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy, Tt = /\/[a-zA-Z\d@.]+/gy;
|
|
1160
|
+
function Et(e, t, n, r) {
|
|
1162
1161
|
let i = 0;
|
|
1163
1162
|
for (let a = t; a < n; a++) e[a] == r && i++;
|
|
1164
1163
|
return i;
|
|
1165
1164
|
}
|
|
1166
|
-
function
|
|
1167
|
-
|
|
1168
|
-
let n =
|
|
1169
|
-
if (!n ||
|
|
1165
|
+
function Dt(e, t) {
|
|
1166
|
+
St.lastIndex = t;
|
|
1167
|
+
let n = St.exec(e);
|
|
1168
|
+
if (!n || Ct.exec(n[0])[0].indexOf("_") > -1) return -1;
|
|
1170
1169
|
let r = t + n[0].length;
|
|
1171
1170
|
for (;;) {
|
|
1172
1171
|
let n = e[r - 1], i;
|
|
1173
|
-
if (/[?!.,:*_~]/.test(n) || n == ")" &&
|
|
1172
|
+
if (/[?!.,:*_~]/.test(n) || n == ")" && Et(e, t, r, ")") > Et(e, t, r, "(")) r--;
|
|
1174
1173
|
else if (n == ";" && (i = /&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t, r)))) r = t + i.index;
|
|
1175
1174
|
else break;
|
|
1176
1175
|
}
|
|
1177
1176
|
return r;
|
|
1178
1177
|
}
|
|
1179
|
-
function
|
|
1180
|
-
|
|
1181
|
-
let n =
|
|
1178
|
+
function Ot(e, t) {
|
|
1179
|
+
wt.lastIndex = t;
|
|
1180
|
+
let n = wt.exec(e);
|
|
1182
1181
|
if (!n) return -1;
|
|
1183
1182
|
let r = n[0][n[0].length - 1];
|
|
1184
1183
|
return r == "_" || r == "-" ? -1 : t + n[0].length - +(r == ".");
|
|
1185
1184
|
}
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1185
|
+
var kt = [
|
|
1186
|
+
vt,
|
|
1187
|
+
bt,
|
|
1188
|
+
mt,
|
|
1190
1189
|
{ parseInline: [{
|
|
1191
1190
|
name: "Autolink",
|
|
1192
1191
|
parse(e, t, n) {
|
|
1193
1192
|
let r = n - e.offset;
|
|
1194
1193
|
if (r && /\w/.test(e.text[r - 1])) return -1;
|
|
1195
|
-
|
|
1196
|
-
let i =
|
|
1197
|
-
return !i || (i[1] || i[2] ? (a =
|
|
1194
|
+
xt.lastIndex = r;
|
|
1195
|
+
let i = xt.exec(e.text), a = -1;
|
|
1196
|
+
return !i || (i[1] || i[2] ? (a = Dt(e.text, r + i[0].length), a > -1 && e.hasOpenLink && (a = r + /([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r, a))[0].length)) : i[3] ? a = Ot(e.text, r) : (a = Ot(e.text, r + i[0].length), a > -1 && i[0] == "xmpp:" && (Tt.lastIndex = a, i = Tt.exec(e.text), i && (a = i.index + i[0].length))), a < 0) ? -1 : (e.addElement(e.elt("URL", n, a + e.offset)), a + e.offset);
|
|
1198
1197
|
}
|
|
1199
1198
|
}] }
|
|
1200
1199
|
];
|
|
1201
|
-
function
|
|
1200
|
+
function At(e, t, n) {
|
|
1202
1201
|
return (r, i, a) => {
|
|
1203
1202
|
if (i != e || r.char(a + 1) == e) return -1;
|
|
1204
1203
|
let o = [r.elt(n, a, a + 1)];
|
|
1205
1204
|
for (let i = a + 1; i < r.end; i++) {
|
|
1206
1205
|
let s = r.char(i);
|
|
1207
1206
|
if (s == e) return r.addElement(r.elt(t, a, i + 1, o.concat(r.elt(n, i, i + 1))));
|
|
1208
|
-
if (s == 92 && o.push(r.elt("Escape", i, i++ + 2)),
|
|
1207
|
+
if (s == 92 && o.push(r.elt("Escape", i, i++ + 2)), w(s)) break;
|
|
1209
1208
|
}
|
|
1210
1209
|
return -1;
|
|
1211
1210
|
};
|
|
1212
1211
|
}
|
|
1213
|
-
var
|
|
1212
|
+
var jt = {
|
|
1214
1213
|
defineNodes: [{
|
|
1215
1214
|
name: "Superscript",
|
|
1216
|
-
style:
|
|
1215
|
+
style: f.special(f.content)
|
|
1217
1216
|
}, {
|
|
1218
1217
|
name: "SuperscriptMark",
|
|
1219
|
-
style:
|
|
1218
|
+
style: f.processingInstruction
|
|
1220
1219
|
}],
|
|
1221
1220
|
parseInline: [{
|
|
1222
1221
|
name: "Superscript",
|
|
1223
|
-
parse:
|
|
1222
|
+
parse: At(94, "Superscript", "SuperscriptMark")
|
|
1224
1223
|
}]
|
|
1225
|
-
},
|
|
1224
|
+
}, Mt = {
|
|
1226
1225
|
defineNodes: [{
|
|
1227
1226
|
name: "Subscript",
|
|
1228
|
-
style:
|
|
1227
|
+
style: f.special(f.content)
|
|
1229
1228
|
}, {
|
|
1230
1229
|
name: "SubscriptMark",
|
|
1231
|
-
style:
|
|
1230
|
+
style: f.processingInstruction
|
|
1232
1231
|
}],
|
|
1233
1232
|
parseInline: [{
|
|
1234
1233
|
name: "Subscript",
|
|
1235
|
-
parse:
|
|
1234
|
+
parse: At(126, "Subscript", "SubscriptMark")
|
|
1236
1235
|
}]
|
|
1237
|
-
},
|
|
1236
|
+
}, Nt = {
|
|
1238
1237
|
defineNodes: [{
|
|
1239
1238
|
name: "Emoji",
|
|
1240
|
-
style:
|
|
1239
|
+
style: f.character
|
|
1241
1240
|
}],
|
|
1242
1241
|
parseInline: [{
|
|
1243
1242
|
name: "Emoji",
|
|
@@ -1246,7 +1245,7 @@ var Mt = {
|
|
|
1246
1245
|
return t != 58 || !(r = /^[a-zA-Z_0-9]+:/.exec(e.slice(n + 1, e.end))) ? -1 : e.addElement(e.elt("Emoji", n, n + 1 + r[0].length));
|
|
1247
1246
|
}
|
|
1248
1247
|
}]
|
|
1249
|
-
},
|
|
1248
|
+
}, Pt = 55, Ft = 1, It = 56, Lt = 2, Rt = 57, zt = 3, Bt = 4, Vt = 5, Ht = 6, Ut = 7, Wt = 8, Gt = 9, Kt = 10, qt = 11, Jt = 12, Yt = 13, Xt = 58, Zt = 14, Qt = 15, $t = 59, en = 21, tn = 23, nn = 24, rn = 25, B = 27, an = 28, on = 29, sn = 32, cn = 35, ln = 37, un = 38, dn = 0, fn = 1, pn = {
|
|
1250
1249
|
area: !0,
|
|
1251
1250
|
base: !0,
|
|
1252
1251
|
br: !0,
|
|
@@ -1265,7 +1264,7 @@ var Mt = {
|
|
|
1265
1264
|
track: !0,
|
|
1266
1265
|
wbr: !0,
|
|
1267
1266
|
menuitem: !0
|
|
1268
|
-
},
|
|
1267
|
+
}, mn = {
|
|
1269
1268
|
dd: !0,
|
|
1270
1269
|
li: !0,
|
|
1271
1270
|
optgroup: !0,
|
|
@@ -1278,7 +1277,7 @@ var Mt = {
|
|
|
1278
1277
|
tfoot: !0,
|
|
1279
1278
|
th: !0,
|
|
1280
1279
|
tr: !0
|
|
1281
|
-
},
|
|
1280
|
+
}, hn = {
|
|
1282
1281
|
dd: {
|
|
1283
1282
|
dd: !0,
|
|
1284
1283
|
dt: !0
|
|
@@ -1349,99 +1348,99 @@ var Mt = {
|
|
|
1349
1348
|
},
|
|
1350
1349
|
tr: { tr: !0 }
|
|
1351
1350
|
};
|
|
1352
|
-
function
|
|
1351
|
+
function gn(e) {
|
|
1353
1352
|
return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
|
|
1354
1353
|
}
|
|
1355
|
-
var
|
|
1356
|
-
function
|
|
1354
|
+
var _n = null, vn = null, yn = 0;
|
|
1355
|
+
function bn(e, t) {
|
|
1357
1356
|
let n = e.pos + t;
|
|
1358
|
-
if (
|
|
1357
|
+
if (yn == n && vn == e) return _n;
|
|
1359
1358
|
let r = e.peek(t), i = "";
|
|
1360
|
-
for (;
|
|
1361
|
-
return
|
|
1359
|
+
for (; gn(r);) i += String.fromCharCode(r), r = e.peek(++t);
|
|
1360
|
+
return vn = e, yn = n, _n = i ? i.toLowerCase() : r == Cn || r == wn ? void 0 : null;
|
|
1362
1361
|
}
|
|
1363
|
-
var
|
|
1364
|
-
function
|
|
1362
|
+
var xn = 60, V = 62, Sn = 47, Cn = 63, wn = 33, Tn = 45;
|
|
1363
|
+
function En(e, t) {
|
|
1365
1364
|
this.name = e, this.parent = t;
|
|
1366
1365
|
}
|
|
1367
|
-
var
|
|
1366
|
+
var Dn = [
|
|
1367
|
+
Ht,
|
|
1368
|
+
Kt,
|
|
1368
1369
|
Ut,
|
|
1369
|
-
qt,
|
|
1370
1370
|
Wt,
|
|
1371
|
-
Gt
|
|
1372
|
-
|
|
1373
|
-
], kn = new m({
|
|
1371
|
+
Gt
|
|
1372
|
+
], On = new pe({
|
|
1374
1373
|
start: null,
|
|
1375
1374
|
shift(e, t, n, r) {
|
|
1376
|
-
return
|
|
1375
|
+
return Dn.indexOf(t) > -1 ? new En(bn(r, 1) || "", e) : e;
|
|
1377
1376
|
},
|
|
1378
1377
|
reduce(e, t) {
|
|
1379
|
-
return t ==
|
|
1378
|
+
return t == en && e ? e.parent : e;
|
|
1380
1379
|
},
|
|
1381
1380
|
reuse(e, t, n, r) {
|
|
1382
1381
|
let i = t.type.id;
|
|
1383
|
-
return i ==
|
|
1382
|
+
return i == Ht || i == ln ? new En(bn(r, 1) || "", e) : e;
|
|
1384
1383
|
},
|
|
1385
1384
|
strict: !1
|
|
1386
|
-
}),
|
|
1387
|
-
if (e.next !=
|
|
1388
|
-
e.next < 0 && t.context && e.acceptToken(
|
|
1385
|
+
}), kn = new S((e, t) => {
|
|
1386
|
+
if (e.next != xn) {
|
|
1387
|
+
e.next < 0 && t.context && e.acceptToken(Xt);
|
|
1389
1388
|
return;
|
|
1390
1389
|
}
|
|
1391
1390
|
e.advance();
|
|
1392
|
-
let n = e.next ==
|
|
1391
|
+
let n = e.next == Sn;
|
|
1393
1392
|
n && e.advance();
|
|
1394
|
-
let r =
|
|
1393
|
+
let r = bn(e, 0);
|
|
1395
1394
|
if (r === void 0) return;
|
|
1396
|
-
if (!r) return e.acceptToken(n ?
|
|
1395
|
+
if (!r) return e.acceptToken(n ? Qt : Zt);
|
|
1397
1396
|
let i = t.context ? t.context.name : null;
|
|
1398
1397
|
if (n) {
|
|
1399
|
-
if (r == i) return e.acceptToken(
|
|
1400
|
-
if (i &&
|
|
1401
|
-
if (t.dialectEnabled(
|
|
1398
|
+
if (r == i) return e.acceptToken(qt);
|
|
1399
|
+
if (i && mn[i]) return e.acceptToken(Xt, -2);
|
|
1400
|
+
if (t.dialectEnabled(dn)) return e.acceptToken(Jt);
|
|
1402
1401
|
for (let e = t.context; e; e = e.parent) if (e.name == r) return;
|
|
1403
|
-
e.acceptToken(
|
|
1402
|
+
e.acceptToken(Yt);
|
|
1404
1403
|
} else {
|
|
1405
|
-
if (r == "script") return e.acceptToken(
|
|
1406
|
-
if (r == "style") return e.acceptToken(
|
|
1407
|
-
if (r == "textarea") return e.acceptToken(
|
|
1408
|
-
if (
|
|
1409
|
-
i &&
|
|
1404
|
+
if (r == "script") return e.acceptToken(Ut);
|
|
1405
|
+
if (r == "style") return e.acceptToken(Wt);
|
|
1406
|
+
if (r == "textarea") return e.acceptToken(Gt);
|
|
1407
|
+
if (pn.hasOwnProperty(r)) return e.acceptToken(Kt);
|
|
1408
|
+
i && hn[i] && hn[i][r] ? e.acceptToken(Xt, -1) : e.acceptToken(Ht);
|
|
1410
1409
|
}
|
|
1411
|
-
}, { contextual: !0 }),
|
|
1410
|
+
}, { contextual: !0 }), An = new S((e) => {
|
|
1412
1411
|
for (let t = 0, n = 0;; n++) {
|
|
1413
1412
|
if (e.next < 0) {
|
|
1414
|
-
n && e.acceptToken(
|
|
1413
|
+
n && e.acceptToken($t);
|
|
1415
1414
|
break;
|
|
1416
1415
|
}
|
|
1417
|
-
if (e.next ==
|
|
1418
|
-
else if (e.next ==
|
|
1419
|
-
n >= 3 && e.acceptToken(
|
|
1416
|
+
if (e.next == Tn) t++;
|
|
1417
|
+
else if (e.next == V && t >= 2) {
|
|
1418
|
+
n >= 3 && e.acceptToken($t, -2);
|
|
1420
1419
|
break;
|
|
1421
1420
|
} else t = 0;
|
|
1422
1421
|
e.advance();
|
|
1423
1422
|
}
|
|
1424
1423
|
});
|
|
1425
|
-
function
|
|
1424
|
+
function jn(e) {
|
|
1426
1425
|
for (; e; e = e.parent) if (e.name == "svg" || e.name == "math") return !0;
|
|
1427
1426
|
return !1;
|
|
1428
1427
|
}
|
|
1429
|
-
var
|
|
1430
|
-
if (e.next ==
|
|
1431
|
-
let n = t.dialectEnabled(
|
|
1432
|
-
e.acceptToken(n ?
|
|
1433
|
-
} else e.next ==
|
|
1428
|
+
var Mn = new S((e, t) => {
|
|
1429
|
+
if (e.next == Sn && e.peek(1) == V) {
|
|
1430
|
+
let n = t.dialectEnabled(fn) || jn(t.context);
|
|
1431
|
+
e.acceptToken(n ? Vt : Bt, 2);
|
|
1432
|
+
} else e.next == V && e.acceptToken(Bt, 1);
|
|
1434
1433
|
});
|
|
1435
|
-
function
|
|
1434
|
+
function Nn(e, t, n) {
|
|
1436
1435
|
let r = 2 + e.length;
|
|
1437
|
-
return new
|
|
1436
|
+
return new S((i) => {
|
|
1438
1437
|
for (let a = 0, o = 0, s = 0;; s++) {
|
|
1439
1438
|
if (i.next < 0) {
|
|
1440
1439
|
s && i.acceptToken(t);
|
|
1441
1440
|
break;
|
|
1442
1441
|
}
|
|
1443
|
-
if (a == 0 && i.next ==
|
|
1444
|
-
else if (a == r && i.next ==
|
|
1442
|
+
if (a == 0 && i.next == xn || a == 1 && i.next == Sn || a >= 2 && a < r && i.next == e.charCodeAt(a - 2)) a++, o++;
|
|
1443
|
+
else if (a == r && i.next == V) {
|
|
1445
1444
|
s > o ? i.acceptToken(t, -o) : i.acceptToken(n, -(o - 2));
|
|
1446
1445
|
break;
|
|
1447
1446
|
} else if ((i.next == 10 || i.next == 13) && s) {
|
|
@@ -1452,26 +1451,26 @@ function Pn(e, t, n) {
|
|
|
1452
1451
|
}
|
|
1453
1452
|
});
|
|
1454
1453
|
}
|
|
1455
|
-
var
|
|
1456
|
-
"Text RawText IncompleteTag IncompleteCloseTag":
|
|
1457
|
-
"StartTag StartCloseTag SelfClosingEndTag EndTag":
|
|
1458
|
-
TagName:
|
|
1459
|
-
"MismatchedCloseTag/TagName": [
|
|
1460
|
-
AttributeName:
|
|
1461
|
-
"AttributeValue UnquotedAttributeValue":
|
|
1462
|
-
Is:
|
|
1463
|
-
"EntityReference CharacterReference":
|
|
1464
|
-
Comment:
|
|
1465
|
-
ProcessingInst:
|
|
1466
|
-
DoctypeDecl:
|
|
1467
|
-
}),
|
|
1454
|
+
var Pn = Nn("script", Pt, Ft), Fn = Nn("style", It, Lt), In = Nn("textarea", Rt, zt), Ln = l({
|
|
1455
|
+
"Text RawText IncompleteTag IncompleteCloseTag": f.content,
|
|
1456
|
+
"StartTag StartCloseTag SelfClosingEndTag EndTag": f.angleBracket,
|
|
1457
|
+
TagName: f.tagName,
|
|
1458
|
+
"MismatchedCloseTag/TagName": [f.tagName, f.invalid],
|
|
1459
|
+
AttributeName: f.attributeName,
|
|
1460
|
+
"AttributeValue UnquotedAttributeValue": f.attributeValue,
|
|
1461
|
+
Is: f.definitionOperator,
|
|
1462
|
+
"EntityReference CharacterReference": f.character,
|
|
1463
|
+
Comment: f.blockComment,
|
|
1464
|
+
ProcessingInst: f.processingInstruction,
|
|
1465
|
+
DoctypeDecl: f.documentMeta
|
|
1466
|
+
}), Rn = fe.deserialize({
|
|
1468
1467
|
version: 14,
|
|
1469
1468
|
states: ",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb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hUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
|
|
1472
1471
|
nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
|
|
1473
1472
|
maxTerm: 68,
|
|
1474
|
-
context:
|
|
1473
|
+
context: On,
|
|
1475
1474
|
nodeProps: [
|
|
1476
1475
|
[
|
|
1477
1476
|
"closedBy",
|
|
@@ -1553,17 +1552,17 @@ var Fn = Pn("script", Ft, It), In = Pn("style", Lt, Rt), Ln = Pn("textarea", zt,
|
|
|
1553
1552
|
""
|
|
1554
1553
|
]
|
|
1555
1554
|
],
|
|
1556
|
-
propSources: [
|
|
1555
|
+
propSources: [Ln],
|
|
1557
1556
|
skippedNodes: [0],
|
|
1558
1557
|
repeatNodeCount: 9,
|
|
1559
1558
|
tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%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<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
|
|
1560
1559
|
tokenizers: [
|
|
1560
|
+
Pn,
|
|
1561
1561
|
Fn,
|
|
1562
1562
|
In,
|
|
1563
|
-
|
|
1564
|
-
|
|
1563
|
+
Mn,
|
|
1564
|
+
kn,
|
|
1565
1565
|
An,
|
|
1566
|
-
jn,
|
|
1567
1566
|
0,
|
|
1568
1567
|
1,
|
|
1569
1568
|
2,
|
|
@@ -1578,41 +1577,41 @@ var Fn = Pn("script", Ft, It), In = Pn("style", Lt, Rt), Ln = Pn("textarea", zt,
|
|
|
1578
1577
|
},
|
|
1579
1578
|
tokenPrec: 517
|
|
1580
1579
|
});
|
|
1581
|
-
function
|
|
1580
|
+
function zn(e, t) {
|
|
1582
1581
|
let n = Object.create(null);
|
|
1583
|
-
for (let r of e.getChildren(
|
|
1584
|
-
let e = r.getChild(
|
|
1585
|
-
e && (n[t.read(e.from, e.to)] = i ? i.type.id ==
|
|
1582
|
+
for (let r of e.getChildren(nn)) {
|
|
1583
|
+
let e = r.getChild(rn), i = r.getChild(B) || r.getChild(an);
|
|
1584
|
+
e && (n[t.read(e.from, e.to)] = i ? i.type.id == B ? t.read(i.from + 1, i.to - 1) : t.read(i.from, i.to) : "");
|
|
1586
1585
|
}
|
|
1587
1586
|
return n;
|
|
1588
1587
|
}
|
|
1589
|
-
function
|
|
1590
|
-
let n = e.getChild(
|
|
1588
|
+
function Bn(e, t) {
|
|
1589
|
+
let n = e.getChild(tn);
|
|
1591
1590
|
return n ? t.read(n.from, n.to) : " ";
|
|
1592
1591
|
}
|
|
1593
|
-
function
|
|
1592
|
+
function Vn(e, t, n) {
|
|
1594
1593
|
let r;
|
|
1595
|
-
for (let i of n) if (!i.attrs || i.attrs(r ||=
|
|
1594
|
+
for (let i of n) if (!i.attrs || i.attrs(r ||= zn(e.node.parent.firstChild, t))) return {
|
|
1596
1595
|
parser: i.parser,
|
|
1597
1596
|
bracketed: !0
|
|
1598
1597
|
};
|
|
1599
1598
|
return null;
|
|
1600
1599
|
}
|
|
1601
|
-
function
|
|
1602
|
-
let
|
|
1603
|
-
for (let
|
|
1604
|
-
let
|
|
1605
|
-
for (let e of
|
|
1606
|
-
return
|
|
1607
|
-
let
|
|
1608
|
-
if (
|
|
1609
|
-
if (
|
|
1610
|
-
if (
|
|
1611
|
-
if (
|
|
1612
|
-
let n = e.node, r = n.firstChild, i = r &&
|
|
1600
|
+
function Hn(e = [], t = []) {
|
|
1601
|
+
let n = [], r = [], i = [], a = [];
|
|
1602
|
+
for (let t of e) (t.tag == "script" ? n : t.tag == "style" ? r : t.tag == "textarea" ? i : a).push(t);
|
|
1603
|
+
let o = t.length ? Object.create(null) : null;
|
|
1604
|
+
for (let e of t) (o[e.name] || (o[e.name] = [])).push(e);
|
|
1605
|
+
return u((e, t) => {
|
|
1606
|
+
let s = e.type.id;
|
|
1607
|
+
if (s == on) return Vn(e, t, n);
|
|
1608
|
+
if (s == sn) return Vn(e, t, r);
|
|
1609
|
+
if (s == cn) return Vn(e, t, i);
|
|
1610
|
+
if (s == en && a.length) {
|
|
1611
|
+
let n = e.node, r = n.firstChild, i = r && Bn(r, t), o;
|
|
1613
1612
|
if (i) {
|
|
1614
|
-
for (let e of
|
|
1615
|
-
let t = n.lastChild, i = t.type.id ==
|
|
1613
|
+
for (let e of a) if (e.tag == i && (!e.attrs || e.attrs(o ||= zn(r, t)))) {
|
|
1614
|
+
let t = n.lastChild, i = t.type.id == un ? t.from : n.to;
|
|
1616
1615
|
if (i > r.to) return {
|
|
1617
1616
|
parser: e.parser,
|
|
1618
1617
|
overlay: [{
|
|
@@ -1623,14 +1622,14 @@ function Un(t = [], n = []) {
|
|
|
1623
1622
|
}
|
|
1624
1623
|
}
|
|
1625
1624
|
}
|
|
1626
|
-
if (
|
|
1625
|
+
if (o && s == nn) {
|
|
1627
1626
|
let n = e.node, r;
|
|
1628
1627
|
if (r = n.firstChild) {
|
|
1629
|
-
let e =
|
|
1628
|
+
let e = o[t.read(r.from, r.to)];
|
|
1630
1629
|
if (e) for (let r of e) {
|
|
1631
|
-
if (r.tagName && r.tagName !=
|
|
1630
|
+
if (r.tagName && r.tagName != Bn(n.parent, t)) continue;
|
|
1632
1631
|
let e = n.lastChild;
|
|
1633
|
-
if (e.type.id ==
|
|
1632
|
+
if (e.type.id == B) {
|
|
1634
1633
|
let t = e.from + 1, n = e.lastChild, i = e.to - (n && n.isError ? 0 : 1);
|
|
1635
1634
|
if (i > t) return {
|
|
1636
1635
|
parser: r.parser,
|
|
@@ -1640,7 +1639,7 @@ function Un(t = [], n = []) {
|
|
|
1640
1639
|
}],
|
|
1641
1640
|
bracketed: !0
|
|
1642
1641
|
};
|
|
1643
|
-
} else if (e.type.id ==
|
|
1642
|
+
} else if (e.type.id == an) return {
|
|
1644
1643
|
parser: r.parser,
|
|
1645
1644
|
overlay: [{
|
|
1646
1645
|
from: e.from,
|
|
@@ -1655,7 +1654,7 @@ function Un(t = [], n = []) {
|
|
|
1655
1654
|
}
|
|
1656
1655
|
//#endregion
|
|
1657
1656
|
//#region ../../node_modules/.bun/@lezer+css@1.3.6/node_modules/@lezer/css/dist/index.js
|
|
1658
|
-
var
|
|
1657
|
+
var Un = 148, Wn = 1, Gn = 149, Kn = 150, qn = 2, Jn = 151, Yn = 3, Xn = 4, Zn = [
|
|
1659
1658
|
9,
|
|
1660
1659
|
10,
|
|
1661
1660
|
11,
|
|
@@ -1681,82 +1680,82 @@ var Wn = 148, Gn = 1, Kn = 149, qn = 150, Jn = 2, Yn = 151, Xn = 3, Zn = 4, Qn =
|
|
|
1681
1680
|
8239,
|
|
1682
1681
|
8287,
|
|
1683
1682
|
12288
|
|
1684
|
-
],
|
|
1685
|
-
function
|
|
1683
|
+
], Qn = 58, $n = 40, er = 95, tr = 91, H = 45, nr = 46, rr = 35, ir = 37, ar = 38, or = 92, sr = 10, cr = 42;
|
|
1684
|
+
function U(e) {
|
|
1686
1685
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 161;
|
|
1687
1686
|
}
|
|
1688
|
-
function
|
|
1687
|
+
function lr(e) {
|
|
1689
1688
|
return e >= 48 && e <= 57;
|
|
1690
1689
|
}
|
|
1691
|
-
function
|
|
1692
|
-
return
|
|
1690
|
+
function ur(e) {
|
|
1691
|
+
return lr(e) || e >= 97 && e <= 102 || e >= 65 && e <= 70;
|
|
1693
1692
|
}
|
|
1694
|
-
var
|
|
1693
|
+
var dr = (e, t, n) => (r, i) => {
|
|
1695
1694
|
for (let a = !1, o = 0, s = 0;; s++) {
|
|
1696
1695
|
let { next: c } = r;
|
|
1697
|
-
if (
|
|
1698
|
-
else if (c ==
|
|
1699
|
-
if (r.advance(),
|
|
1696
|
+
if (U(c) || c == H || c == er || a && lr(c)) !a && (c != H || s > 0) && (a = !0), o === s && c == H && o++, r.advance();
|
|
1697
|
+
else if (c == or && r.peek(1) != sr) {
|
|
1698
|
+
if (r.advance(), ur(r.next)) {
|
|
1700
1699
|
do
|
|
1701
1700
|
r.advance();
|
|
1702
|
-
while (
|
|
1701
|
+
while (ur(r.next));
|
|
1703
1702
|
r.next == 32 && r.advance();
|
|
1704
1703
|
} else r.next > -1 && r.advance();
|
|
1705
1704
|
a = !0;
|
|
1706
1705
|
} else {
|
|
1707
|
-
a && r.acceptToken(o == 2 && i.canShift(
|
|
1706
|
+
a && r.acceptToken(o == 2 && i.canShift(qn) ? t : c == $n ? n : e);
|
|
1708
1707
|
break;
|
|
1709
1708
|
}
|
|
1710
1709
|
}
|
|
1711
|
-
},
|
|
1712
|
-
if (
|
|
1710
|
+
}, fr = new S(dr(Gn, qn, Kn), { contextual: !0 }), pr = new S(dr(Jn, Yn, Xn), { contextual: !0 }), mr = new S((e) => {
|
|
1711
|
+
if (Zn.includes(e.peek(-1))) {
|
|
1713
1712
|
let { next: t } = e;
|
|
1714
|
-
(
|
|
1713
|
+
(U(t) || t == er || t == rr || t == nr || t == cr || t == tr || t == Qn && U(e.peek(1)) || t == H || t == ar) && e.acceptToken(Un);
|
|
1715
1714
|
}
|
|
1716
|
-
}),
|
|
1717
|
-
if (!
|
|
1715
|
+
}), hr = new S((e) => {
|
|
1716
|
+
if (!Zn.includes(e.peek(-1))) {
|
|
1718
1717
|
let { next: t } = e;
|
|
1719
|
-
if (t ==
|
|
1718
|
+
if (t == ir && (e.advance(), e.acceptToken(Wn)), U(t)) {
|
|
1720
1719
|
do
|
|
1721
1720
|
e.advance();
|
|
1722
|
-
while (
|
|
1723
|
-
e.acceptToken(
|
|
1721
|
+
while (U(e.next) || lr(e.next));
|
|
1722
|
+
e.acceptToken(Wn);
|
|
1724
1723
|
}
|
|
1725
1724
|
}
|
|
1726
|
-
}),
|
|
1727
|
-
"AtKeyword import charset namespace keyframes media supports font-feature-values":
|
|
1728
|
-
"from to selector scope MatchFlag":
|
|
1729
|
-
NamespaceName:
|
|
1730
|
-
KeyframeName:
|
|
1731
|
-
KeyframeRangeName:
|
|
1732
|
-
TagName:
|
|
1733
|
-
ClassName:
|
|
1734
|
-
PseudoClassName:
|
|
1735
|
-
IdName:
|
|
1736
|
-
"FeatureName PropertyName":
|
|
1737
|
-
AttributeName:
|
|
1738
|
-
NumberLiteral:
|
|
1739
|
-
KeywordQuery:
|
|
1740
|
-
UnaryQueryOp:
|
|
1741
|
-
"CallTag ValueName FontName":
|
|
1742
|
-
VariableName:
|
|
1743
|
-
Callee:
|
|
1744
|
-
Unit:
|
|
1745
|
-
"UniversalSelector NestingSelector":
|
|
1746
|
-
"MatchOp CompareOp":
|
|
1747
|
-
"ChildOp SiblingOp, LogicOp":
|
|
1748
|
-
BinOp:
|
|
1749
|
-
Important:
|
|
1750
|
-
Comment:
|
|
1751
|
-
ColorLiteral:
|
|
1752
|
-
"ParenthesizedContent StringLiteral":
|
|
1753
|
-
":":
|
|
1754
|
-
"PseudoOp #":
|
|
1755
|
-
"; , |":
|
|
1756
|
-
"( )":
|
|
1757
|
-
"[ ]":
|
|
1758
|
-
"{ }":
|
|
1759
|
-
}),
|
|
1725
|
+
}), gr = l({
|
|
1726
|
+
"AtKeyword import charset namespace keyframes media supports font-feature-values": f.definitionKeyword,
|
|
1727
|
+
"from to selector scope MatchFlag": f.keyword,
|
|
1728
|
+
NamespaceName: f.namespace,
|
|
1729
|
+
KeyframeName: f.labelName,
|
|
1730
|
+
KeyframeRangeName: f.operatorKeyword,
|
|
1731
|
+
TagName: f.tagName,
|
|
1732
|
+
ClassName: f.className,
|
|
1733
|
+
PseudoClassName: f.constant(f.className),
|
|
1734
|
+
IdName: f.labelName,
|
|
1735
|
+
"FeatureName PropertyName": f.propertyName,
|
|
1736
|
+
AttributeName: f.attributeName,
|
|
1737
|
+
NumberLiteral: f.number,
|
|
1738
|
+
KeywordQuery: f.keyword,
|
|
1739
|
+
UnaryQueryOp: f.operatorKeyword,
|
|
1740
|
+
"CallTag ValueName FontName": f.atom,
|
|
1741
|
+
VariableName: f.variableName,
|
|
1742
|
+
Callee: f.operatorKeyword,
|
|
1743
|
+
Unit: f.unit,
|
|
1744
|
+
"UniversalSelector NestingSelector": f.definitionOperator,
|
|
1745
|
+
"MatchOp CompareOp": f.compareOperator,
|
|
1746
|
+
"ChildOp SiblingOp, LogicOp": f.logicOperator,
|
|
1747
|
+
BinOp: f.arithmeticOperator,
|
|
1748
|
+
Important: f.modifier,
|
|
1749
|
+
Comment: f.blockComment,
|
|
1750
|
+
ColorLiteral: f.color,
|
|
1751
|
+
"ParenthesizedContent StringLiteral": f.string,
|
|
1752
|
+
":": f.punctuation,
|
|
1753
|
+
"PseudoOp #": f.derefOperator,
|
|
1754
|
+
"; , |": f.separator,
|
|
1755
|
+
"( )": f.paren,
|
|
1756
|
+
"[ ]": f.squareBracket,
|
|
1757
|
+
"{ }": f.brace
|
|
1758
|
+
}), _r = {
|
|
1760
1759
|
__proto__: null,
|
|
1761
1760
|
lang: 44,
|
|
1762
1761
|
"nth-child": 44,
|
|
@@ -1770,19 +1769,19 @@ var fr = (e, t, n) => (r, i) => {
|
|
|
1770
1769
|
"url-prefix": 158,
|
|
1771
1770
|
domain: 158,
|
|
1772
1771
|
regexp: 158
|
|
1773
|
-
},
|
|
1772
|
+
}, vr = {
|
|
1774
1773
|
__proto__: null,
|
|
1775
1774
|
or: 104,
|
|
1776
1775
|
and: 104,
|
|
1777
1776
|
not: 112,
|
|
1778
1777
|
only: 112,
|
|
1779
1778
|
layer: 212
|
|
1780
|
-
},
|
|
1779
|
+
}, yr = {
|
|
1781
1780
|
__proto__: null,
|
|
1782
1781
|
selector: 118,
|
|
1783
1782
|
style: 124,
|
|
1784
1783
|
layer: 208
|
|
1785
|
-
},
|
|
1784
|
+
}, br = {
|
|
1786
1785
|
__proto__: null,
|
|
1787
1786
|
"@import": 204,
|
|
1788
1787
|
"@media": 216,
|
|
@@ -1792,10 +1791,10 @@ var fr = (e, t, n) => (r, i) => {
|
|
|
1792
1791
|
"@supports": 242,
|
|
1793
1792
|
"@scope": 246,
|
|
1794
1793
|
"@font-feature-values": 252
|
|
1795
|
-
},
|
|
1794
|
+
}, xr = {
|
|
1796
1795
|
__proto__: null,
|
|
1797
1796
|
to: 249
|
|
1798
|
-
},
|
|
1797
|
+
}, Sr = fe.deserialize({
|
|
1799
1798
|
version: 14,
|
|
1800
1799
|
states: "MrQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FqO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#ERO'dQdO'#ETO'oQdO'#E[O'oQdO'#E_OOQP'#Fq'#FqO)RQhO'#FQOOQS'#Fp'#FpOOQS'#FT'#FTQYQdOOO)YQdO'#EeO*iQhO'#EkO)YQdO'#EmO*pQdO'#EoO*{QdO'#ErO)}QhO'#ExO+TQdO'#EzO+`QdO'#E}O+eQaO'#CfO+lQ`O'#EbO+qQ`O'#F}O+|QdO'#F}QOQ`OOP,WO&jO'#CaPOOO)CA`)CA`OOQP'#Ci'#C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i) => {
|
|
|
1856
1855
|
specialized: [
|
|
1857
1856
|
{
|
|
1858
1857
|
term: 150,
|
|
1859
|
-
get: (e) =>
|
|
1858
|
+
get: (e) => _r[e] || -1
|
|
1860
1859
|
},
|
|
1861
1860
|
{
|
|
1862
1861
|
term: 151,
|
|
1863
|
-
get: (e) =>
|
|
1862
|
+
get: (e) => vr[e] || -1
|
|
1864
1863
|
},
|
|
1865
1864
|
{
|
|
1866
1865
|
term: 4,
|
|
1867
|
-
get: (e) =>
|
|
1866
|
+
get: (e) => yr[e] || -1
|
|
1868
1867
|
},
|
|
1869
1868
|
{
|
|
1870
1869
|
term: 28,
|
|
1871
|
-
get: (e) =>
|
|
1870
|
+
get: (e) => br[e] || -1
|
|
1872
1871
|
},
|
|
1873
1872
|
{
|
|
1874
1873
|
term: 149,
|
|
1875
|
-
get: (e) =>
|
|
1874
|
+
get: (e) => xr[e] || -1
|
|
1876
1875
|
}
|
|
1877
1876
|
],
|
|
1878
1877
|
tokenPrec: 2444
|
|
1879
|
-
}),
|
|
1880
|
-
function
|
|
1881
|
-
if (!
|
|
1878
|
+
}), Cr = null;
|
|
1879
|
+
function wr() {
|
|
1880
|
+
if (!Cr && typeof document == "object" && document.body) {
|
|
1882
1881
|
let { style: e } = document.body, t = [], n = /* @__PURE__ */ new Set();
|
|
1883
1882
|
for (let r in e) r != "cssText" && r != "cssFloat" && typeof e[r] == "string" && (/[A-Z]/.test(r) && (r = r.replace(/[A-Z]/g, (e) => "-" + e.toLowerCase())), n.has(r) || (t.push(r), n.add(r)));
|
|
1884
|
-
|
|
1883
|
+
Cr = t.sort().map((e) => ({
|
|
1885
1884
|
type: "property",
|
|
1886
1885
|
label: e,
|
|
1887
1886
|
apply: e + ": "
|
|
1888
1887
|
}));
|
|
1889
1888
|
}
|
|
1890
|
-
return
|
|
1889
|
+
return Cr || [];
|
|
1891
1890
|
}
|
|
1892
|
-
var
|
|
1891
|
+
var Tr = /*@__PURE__*/ (/* @__PURE__ */ "active.after.any-link.autofill.backdrop.before.checked.cue.default.defined.disabled.empty.enabled.file-selector-button.first.first-child.first-letter.first-line.first-of-type.focus.focus-visible.focus-within.fullscreen.has.host.host-context.hover.in-range.indeterminate.invalid.is.lang.last-child.last-of-type.left.link.marker.modal.not.nth-child.nth-last-child.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.part.placeholder.placeholder-shown.read-only.read-write.required.right.root.scope.selection.slotted.target.target-text.valid.visited.where".split(".")).map((e) => ({
|
|
1893
1892
|
type: "class",
|
|
1894
1893
|
label: e
|
|
1895
|
-
})),
|
|
1894
|
+
})), Er = /*@__PURE__*/ (/* @__PURE__ */ "above.absolute.activeborder.additive.activecaption.after-white-space.ahead.alias.all.all-scroll.alphabetic.alternate.always.antialiased.appworkspace.asterisks.attr.auto.auto-flow.avoid.avoid-column.avoid-page.avoid-region.axis-pan.background.backwards.baseline.below.bidi-override.blink.block.block-axis.bold.bolder.border.border-box.both.bottom.break.break-all.break-word.bullets.button.button-bevel.buttonface.buttonhighlight.buttonshadow.buttontext.calc.capitalize.caps-lock-indicator.caption.captiontext.caret.cell.center.checkbox.circle.cjk-decimal.clear.clip.close-quote.col-resize.collapse.color.color-burn.color-dodge.column.column-reverse.compact.condensed.contain.content.contents.content-box.context-menu.continuous.copy.counter.counters.cover.crop.cross.crosshair.currentcolor.cursive.cyclic.darken.dashed.decimal.decimal-leading-zero.default.default-button.dense.destination-atop.destination-in.destination-out.destination-over.difference.disc.discard.disclosure-closed.disclosure-open.document.dot-dash.dot-dot-dash.dotted.double.down.e-resize.ease.ease-in.ease-in-out.ease-out.element.ellipse.ellipsis.embed.end.ethiopic-abegede-gez.ethiopic-halehame-aa-er.ethiopic-halehame-gez.ew-resize.exclusion.expanded.extends.extra-condensed.extra-expanded.fantasy.fast.fill.fill-box.fixed.flat.flex.flex-end.flex-start.footnotes.forwards.from.geometricPrecision.graytext.grid.groove.hand.hard-light.help.hidden.hide.higher.highlight.highlighttext.horizontal.hsl.hsla.hue.icon.ignore.inactiveborder.inactivecaption.inactivecaptiontext.infinite.infobackground.infotext.inherit.initial.inline.inline-axis.inline-block.inline-flex.inline-grid.inline-table.inset.inside.intrinsic.invert.italic.justify.keep-all.landscape.large.larger.left.level.lighter.lighten.line-through.linear.linear-gradient.lines.list-item.listbox.listitem.local.logical.loud.lower.lower-hexadecimal.lower-latin.lower-norwegian.lowercase.ltr.luminosity.manipulation.match.matrix.matrix3d.medium.menu.menutext.message-box.middle.min-intrinsic.mix.monospace.move.multiple.multiple_mask_images.multiply.n-resize.narrower.ne-resize.nesw-resize.no-close-quote.no-drop.no-open-quote.no-repeat.none.normal.not-allowed.nowrap.ns-resize.numbers.numeric.nw-resize.nwse-resize.oblique.opacity.open-quote.optimizeLegibility.optimizeSpeed.outset.outside.outside-shape.overlay.overline.padding.padding-box.painted.page.paused.perspective.pinch-zoom.plus-darker.plus-lighter.pointer.polygon.portrait.pre.pre-line.pre-wrap.preserve-3d.progress.push-button.radial-gradient.radio.read-only.read-write.read-write-plaintext-only.rectangle.region.relative.repeat.repeating-linear-gradient.repeating-radial-gradient.repeat-x.repeat-y.reset.reverse.rgb.rgba.ridge.right.rotate.rotate3d.rotateX.rotateY.rotateZ.round.row.row-resize.row-reverse.rtl.run-in.running.s-resize.sans-serif.saturation.scale.scale3d.scaleX.scaleY.scaleZ.screen.scroll.scrollbar.scroll-position.se-resize.self-start.self-end.semi-condensed.semi-expanded.separate.serif.show.single.skew.skewX.skewY.skip-white-space.slide.slider-horizontal.slider-vertical.sliderthumb-horizontal.sliderthumb-vertical.slow.small.small-caps.small-caption.smaller.soft-light.solid.source-atop.source-in.source-out.source-over.space.space-around.space-between.space-evenly.spell-out.square.start.static.status-bar.stretch.stroke.stroke-box.sub.subpixel-antialiased.svg_masks.super.sw-resize.symbolic.symbols.system-ui.table.table-caption.table-cell.table-column.table-column-group.table-footer-group.table-header-group.table-row.table-row-group.text.text-bottom.text-top.textarea.textfield.thick.thin.threeddarkshadow.threedface.threedhighlight.threedlightshadow.threedshadow.to.top.transform.translate.translate3d.translateX.translateY.translateZ.transparent.ultra-condensed.ultra-expanded.underline.unidirectional-pan.unset.up.upper-latin.uppercase.url.var.vertical.vertical-text.view-box.visible.visibleFill.visiblePainted.visibleStroke.visual.w-resize.wait.wave.wider.window.windowframe.windowtext.words.wrap.wrap-reverse.x-large.x-small.xor.xx-large.xx-small".split(".")).map((e) => ({
|
|
1896
1895
|
type: "keyword",
|
|
1897
1896
|
label: e
|
|
1898
1897
|
})).concat(/*@__PURE__*/ (/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.grey.green.greenyellow.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen".split(".")).map((e) => ({
|
|
1899
1898
|
type: "constant",
|
|
1900
1899
|
label: e
|
|
1901
|
-
}))),
|
|
1900
|
+
}))), Dr = /*@__PURE__*/ (/* @__PURE__ */ "a.abbr.address.article.aside.b.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.dd.del.details.dfn.dialog.div.dl.dt.em.figcaption.figure.footer.form.header.hgroup.h1.h2.h3.h4.h5.h6.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.meter.nav.ol.output.p.pre.ruby.section.select.small.source.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.tr.u.ul".split(".")).map((e) => ({
|
|
1902
1901
|
type: "type",
|
|
1903
1902
|
label: e
|
|
1904
|
-
})),
|
|
1903
|
+
})), Or = /*@__PURE__*/ [
|
|
1905
1904
|
"@charset",
|
|
1906
1905
|
"@color-profile",
|
|
1907
1906
|
"@container",
|
|
@@ -1924,33 +1923,33 @@ var Er = /*@__PURE__*/ (/* @__PURE__ */ "active.after.any-link.autofill.backdrop
|
|
|
1924
1923
|
].map((e) => ({
|
|
1925
1924
|
type: "keyword",
|
|
1926
1925
|
label: e
|
|
1927
|
-
})),
|
|
1928
|
-
function
|
|
1926
|
+
})), W = /^(\w[\w-]*|-\w[\w-]*|)$/, kr = /^-(-[\w-]*)?$/;
|
|
1927
|
+
function Ar(e, t) {
|
|
1929
1928
|
if ((e.name == "(" || e.type.isError) && (e = e.parent || e), e.name != "ArgList") return !1;
|
|
1930
1929
|
let n = e.parent?.firstChild;
|
|
1931
1930
|
return n?.name == "Callee" && t.sliceString(n.from, n.to) == "var";
|
|
1932
1931
|
}
|
|
1933
|
-
var
|
|
1934
|
-
function
|
|
1932
|
+
var jr = /*@__PURE__*/ new d(), Mr = ["Declaration"];
|
|
1933
|
+
function Nr(e) {
|
|
1935
1934
|
for (let t = e;;) {
|
|
1936
1935
|
if (t.type.isTop) return t;
|
|
1937
1936
|
if (!(t = t.parent)) return e;
|
|
1938
1937
|
}
|
|
1939
1938
|
}
|
|
1940
|
-
function
|
|
1939
|
+
function Pr(e, t, n) {
|
|
1941
1940
|
if (t.to - t.from > 4096) {
|
|
1942
|
-
let r =
|
|
1941
|
+
let r = jr.get(t);
|
|
1943
1942
|
if (r) return r;
|
|
1944
|
-
let i = [],
|
|
1945
|
-
if (
|
|
1946
|
-
for (let t of
|
|
1947
|
-
while (
|
|
1948
|
-
return
|
|
1943
|
+
let i = [], a = /* @__PURE__ */ new Set(), o = t.cursor(g.IncludeAnonymous);
|
|
1944
|
+
if (o.firstChild()) do
|
|
1945
|
+
for (let t of Pr(e, o.node, n)) a.has(t.label) || (a.add(t.label), i.push(t));
|
|
1946
|
+
while (o.nextSibling());
|
|
1947
|
+
return jr.set(t, i), i;
|
|
1949
1948
|
}
|
|
1950
1949
|
{
|
|
1951
1950
|
let r = [], i = /* @__PURE__ */ new Set();
|
|
1952
1951
|
return t.cursor().iterate((t) => {
|
|
1953
|
-
if (n(t) && t.matchContext(
|
|
1952
|
+
if (n(t) && t.matchContext(Mr) && t.node.nextSibling?.name == ":") {
|
|
1954
1953
|
let n = e.sliceString(t.from, t.to);
|
|
1955
1954
|
i.has(n) || (i.add(n), r.push({
|
|
1956
1955
|
label: n,
|
|
@@ -1960,63 +1959,63 @@ function Fr(e, t, n) {
|
|
|
1960
1959
|
}), r;
|
|
1961
1960
|
}
|
|
1962
1961
|
}
|
|
1963
|
-
var
|
|
1964
|
-
let { state: n, pos: r } = t, i =
|
|
1962
|
+
var Fr = /*@__PURE__*/ ((e) => (t) => {
|
|
1963
|
+
let { state: n, pos: r } = t, i = p(n).resolveInner(r, -1), a = i.type.isError && i.from == i.to - 1 && n.doc.sliceString(i.from, i.to) == "-";
|
|
1965
1964
|
if (i.name == "PropertyName" || (a || i.name == "TagName") && /^(Block|Styles)$/.test(i.resolve(i.to).name)) return {
|
|
1966
1965
|
from: i.from,
|
|
1967
|
-
options:
|
|
1968
|
-
validFor:
|
|
1966
|
+
options: wr(),
|
|
1967
|
+
validFor: W
|
|
1969
1968
|
};
|
|
1970
1969
|
if (i.name == "ValueName") return {
|
|
1971
1970
|
from: i.from,
|
|
1972
|
-
options:
|
|
1973
|
-
validFor:
|
|
1971
|
+
options: Er,
|
|
1972
|
+
validFor: W
|
|
1974
1973
|
};
|
|
1975
1974
|
if (i.name == "PseudoClassName") return {
|
|
1976
1975
|
from: i.from,
|
|
1977
|
-
options:
|
|
1978
|
-
validFor:
|
|
1976
|
+
options: Tr,
|
|
1977
|
+
validFor: W
|
|
1979
1978
|
};
|
|
1980
|
-
if (e(i) || (t.explicit || a) &&
|
|
1979
|
+
if (e(i) || (t.explicit || a) && Ar(i, n.doc)) return {
|
|
1981
1980
|
from: e(i) || a ? i.from : r,
|
|
1982
|
-
options:
|
|
1983
|
-
validFor:
|
|
1981
|
+
options: Pr(n.doc, Nr(i), e),
|
|
1982
|
+
validFor: kr
|
|
1984
1983
|
};
|
|
1985
1984
|
if (i.name == "TagName") {
|
|
1986
1985
|
for (let { parent: e } = i; e; e = e.parent) if (e.name == "Block") return {
|
|
1987
1986
|
from: i.from,
|
|
1988
|
-
options:
|
|
1989
|
-
validFor:
|
|
1987
|
+
options: wr(),
|
|
1988
|
+
validFor: W
|
|
1990
1989
|
};
|
|
1991
1990
|
return {
|
|
1992
1991
|
from: i.from,
|
|
1993
|
-
options:
|
|
1994
|
-
validFor:
|
|
1992
|
+
options: Dr,
|
|
1993
|
+
validFor: W
|
|
1995
1994
|
};
|
|
1996
1995
|
}
|
|
1997
1996
|
if (i.name == "AtKeyword") return {
|
|
1998
1997
|
from: i.from,
|
|
1999
|
-
options:
|
|
2000
|
-
validFor:
|
|
1998
|
+
options: Or,
|
|
1999
|
+
validFor: W
|
|
2001
2000
|
};
|
|
2002
2001
|
if (!t.explicit) return null;
|
|
2003
2002
|
let o = i.resolve(r), s = o.childBefore(r);
|
|
2004
2003
|
return s && s.name == ":" && o.name == "PseudoClassSelector" ? {
|
|
2005
2004
|
from: r,
|
|
2006
|
-
options:
|
|
2007
|
-
validFor:
|
|
2005
|
+
options: Tr,
|
|
2006
|
+
validFor: W
|
|
2008
2007
|
} : s && s.name == ":" && o.name == "Declaration" || o.name == "ArgList" ? {
|
|
2009
2008
|
from: r,
|
|
2010
|
-
options:
|
|
2011
|
-
validFor:
|
|
2009
|
+
options: Er,
|
|
2010
|
+
validFor: W
|
|
2012
2011
|
} : o.name == "Block" || o.name == "Styles" ? {
|
|
2013
2012
|
from: r,
|
|
2014
|
-
options:
|
|
2015
|
-
validFor:
|
|
2013
|
+
options: wr(),
|
|
2014
|
+
validFor: W
|
|
2016
2015
|
} : null;
|
|
2017
|
-
})((e) => e.name == "VariableName"),
|
|
2016
|
+
})((e) => e.name == "VariableName"), G = /*@__PURE__*/ oe.define({
|
|
2018
2017
|
name: "css",
|
|
2019
|
-
parser: /*@__PURE__*/
|
|
2018
|
+
parser: /*@__PURE__*/ Sr.configure({ props: [/*@__PURE__*/ s.add({ Declaration: /*@__PURE__*/ ce() }), /*@__PURE__*/ b.add({ "Block KeyframeList": re })] }),
|
|
2020
2019
|
languageData: {
|
|
2021
2020
|
commentTokens: { block: {
|
|
2022
2021
|
open: "/*",
|
|
@@ -2026,42 +2025,42 @@ var Ir = /*@__PURE__*/ ((e) => (t) => {
|
|
|
2026
2025
|
wordChars: "-"
|
|
2027
2026
|
}
|
|
2028
2027
|
});
|
|
2029
|
-
function
|
|
2030
|
-
return new y(
|
|
2028
|
+
function Ir() {
|
|
2029
|
+
return new y(G, G.data.of({ autocomplete: Fr }));
|
|
2031
2030
|
}
|
|
2032
2031
|
//#endregion
|
|
2033
2032
|
//#region ../../node_modules/.bun/@codemirror+lang-html@6.4.12/node_modules/@codemirror/lang-html/dist/index.js
|
|
2034
|
-
var
|
|
2033
|
+
var K = [
|
|
2035
2034
|
"_blank",
|
|
2036
2035
|
"_self",
|
|
2037
2036
|
"_top",
|
|
2038
2037
|
"_parent"
|
|
2039
|
-
],
|
|
2038
|
+
], Lr = [
|
|
2040
2039
|
"ascii",
|
|
2041
2040
|
"utf-8",
|
|
2042
2041
|
"utf-16",
|
|
2043
2042
|
"latin1",
|
|
2044
2043
|
"latin1"
|
|
2045
|
-
],
|
|
2044
|
+
], Rr = [
|
|
2046
2045
|
"get",
|
|
2047
2046
|
"post",
|
|
2048
2047
|
"put",
|
|
2049
2048
|
"delete"
|
|
2050
|
-
],
|
|
2049
|
+
], zr = [
|
|
2051
2050
|
"application/x-www-form-urlencoded",
|
|
2052
2051
|
"multipart/form-data",
|
|
2053
2052
|
"text/plain"
|
|
2054
|
-
],
|
|
2053
|
+
], q = ["true", "false"], J = {}, Br = {
|
|
2055
2054
|
a: { attrs: {
|
|
2056
2055
|
href: null,
|
|
2057
2056
|
ping: null,
|
|
2058
2057
|
type: null,
|
|
2059
2058
|
media: null,
|
|
2060
|
-
target:
|
|
2059
|
+
target: K,
|
|
2061
2060
|
hreflang: null
|
|
2062
2061
|
} },
|
|
2063
|
-
abbr:
|
|
2064
|
-
address:
|
|
2062
|
+
abbr: J,
|
|
2063
|
+
address: J,
|
|
2065
2064
|
area: { attrs: {
|
|
2066
2065
|
alt: null,
|
|
2067
2066
|
coords: null,
|
|
@@ -2078,8 +2077,8 @@ var G = [
|
|
|
2078
2077
|
"poly"
|
|
2079
2078
|
]
|
|
2080
2079
|
} },
|
|
2081
|
-
article:
|
|
2082
|
-
aside:
|
|
2080
|
+
article: J,
|
|
2081
|
+
aside: J,
|
|
2083
2082
|
audio: { attrs: {
|
|
2084
2083
|
src: null,
|
|
2085
2084
|
mediagroup: null,
|
|
@@ -2093,16 +2092,16 @@ var G = [
|
|
|
2093
2092
|
loop: ["loop"],
|
|
2094
2093
|
controls: ["controls"]
|
|
2095
2094
|
} },
|
|
2096
|
-
b:
|
|
2095
|
+
b: J,
|
|
2097
2096
|
base: { attrs: {
|
|
2098
2097
|
href: null,
|
|
2099
|
-
target:
|
|
2098
|
+
target: K
|
|
2100
2099
|
} },
|
|
2101
|
-
bdi:
|
|
2102
|
-
bdo:
|
|
2100
|
+
bdi: J,
|
|
2101
|
+
bdo: J,
|
|
2103
2102
|
blockquote: { attrs: { cite: null } },
|
|
2104
|
-
body:
|
|
2105
|
-
br:
|
|
2103
|
+
body: J,
|
|
2104
|
+
br: J,
|
|
2106
2105
|
button: { attrs: {
|
|
2107
2106
|
form: null,
|
|
2108
2107
|
formaction: null,
|
|
@@ -2110,10 +2109,10 @@ var G = [
|
|
|
2110
2109
|
value: null,
|
|
2111
2110
|
autofocus: ["autofocus"],
|
|
2112
2111
|
disabled: ["autofocus"],
|
|
2113
|
-
formenctype:
|
|
2114
|
-
formmethod:
|
|
2112
|
+
formenctype: zr,
|
|
2113
|
+
formmethod: Rr,
|
|
2115
2114
|
formnovalidate: ["novalidate"],
|
|
2116
|
-
formtarget:
|
|
2115
|
+
formtarget: K,
|
|
2117
2116
|
type: [
|
|
2118
2117
|
"submit",
|
|
2119
2118
|
"reset",
|
|
@@ -2124,10 +2123,10 @@ var G = [
|
|
|
2124
2123
|
width: null,
|
|
2125
2124
|
height: null
|
|
2126
2125
|
} },
|
|
2127
|
-
caption:
|
|
2128
|
-
center:
|
|
2129
|
-
cite:
|
|
2130
|
-
code:
|
|
2126
|
+
caption: J,
|
|
2127
|
+
center: J,
|
|
2128
|
+
cite: J,
|
|
2129
|
+
code: J,
|
|
2131
2130
|
col: { attrs: { span: null } },
|
|
2132
2131
|
colgroup: { attrs: { span: null } },
|
|
2133
2132
|
command: { attrs: {
|
|
@@ -2150,17 +2149,17 @@ var G = [
|
|
|
2150
2149
|
multiple: ["multiple"]
|
|
2151
2150
|
} },
|
|
2152
2151
|
datalist: { attrs: { data: null } },
|
|
2153
|
-
dd:
|
|
2152
|
+
dd: J,
|
|
2154
2153
|
del: { attrs: {
|
|
2155
2154
|
cite: null,
|
|
2156
2155
|
datetime: null
|
|
2157
2156
|
} },
|
|
2158
2157
|
details: { attrs: { open: ["open"] } },
|
|
2159
|
-
dfn:
|
|
2160
|
-
div:
|
|
2161
|
-
dl:
|
|
2162
|
-
dt:
|
|
2163
|
-
em:
|
|
2158
|
+
dfn: J,
|
|
2159
|
+
div: J,
|
|
2160
|
+
dl: J,
|
|
2161
|
+
dt: J,
|
|
2162
|
+
em: J,
|
|
2164
2163
|
embed: { attrs: {
|
|
2165
2164
|
src: null,
|
|
2166
2165
|
type: null,
|
|
@@ -2173,25 +2172,25 @@ var G = [
|
|
|
2173
2172
|
form: null,
|
|
2174
2173
|
name: null
|
|
2175
2174
|
} },
|
|
2176
|
-
figcaption:
|
|
2177
|
-
figure:
|
|
2178
|
-
footer:
|
|
2175
|
+
figcaption: J,
|
|
2176
|
+
figure: J,
|
|
2177
|
+
footer: J,
|
|
2179
2178
|
form: { attrs: {
|
|
2180
2179
|
action: null,
|
|
2181
2180
|
name: null,
|
|
2182
|
-
"accept-charset":
|
|
2181
|
+
"accept-charset": Lr,
|
|
2183
2182
|
autocomplete: ["on", "off"],
|
|
2184
|
-
enctype:
|
|
2185
|
-
method:
|
|
2183
|
+
enctype: zr,
|
|
2184
|
+
method: Rr,
|
|
2186
2185
|
novalidate: ["novalidate"],
|
|
2187
|
-
target:
|
|
2186
|
+
target: K
|
|
2188
2187
|
} },
|
|
2189
|
-
h1:
|
|
2190
|
-
h2:
|
|
2191
|
-
h3:
|
|
2192
|
-
h4:
|
|
2193
|
-
h5:
|
|
2194
|
-
h6:
|
|
2188
|
+
h1: J,
|
|
2189
|
+
h2: J,
|
|
2190
|
+
h3: J,
|
|
2191
|
+
h4: J,
|
|
2192
|
+
h5: J,
|
|
2193
|
+
h6: J,
|
|
2195
2194
|
head: { children: [
|
|
2196
2195
|
"title",
|
|
2197
2196
|
"base",
|
|
@@ -2202,11 +2201,11 @@ var G = [
|
|
|
2202
2201
|
"noscript",
|
|
2203
2202
|
"command"
|
|
2204
2203
|
] },
|
|
2205
|
-
header:
|
|
2206
|
-
hgroup:
|
|
2207
|
-
hr:
|
|
2204
|
+
header: J,
|
|
2205
|
+
hgroup: J,
|
|
2206
|
+
hr: J,
|
|
2208
2207
|
html: { attrs: { manifest: null } },
|
|
2209
|
-
i:
|
|
2208
|
+
i: J,
|
|
2210
2209
|
iframe: { attrs: {
|
|
2211
2210
|
src: null,
|
|
2212
2211
|
srcdoc: null,
|
|
@@ -2257,10 +2256,10 @@ var G = [
|
|
|
2257
2256
|
autofocus: ["autofocus"],
|
|
2258
2257
|
checked: ["checked"],
|
|
2259
2258
|
disabled: ["disabled"],
|
|
2260
|
-
formenctype:
|
|
2261
|
-
formmethod:
|
|
2259
|
+
formenctype: zr,
|
|
2260
|
+
formmethod: Rr,
|
|
2262
2261
|
formnovalidate: ["novalidate"],
|
|
2263
|
-
formtarget:
|
|
2262
|
+
formtarget: K,
|
|
2264
2263
|
multiple: ["multiple"],
|
|
2265
2264
|
readonly: ["readonly"],
|
|
2266
2265
|
required: ["required"],
|
|
@@ -2294,7 +2293,7 @@ var G = [
|
|
|
2294
2293
|
cite: null,
|
|
2295
2294
|
datetime: null
|
|
2296
2295
|
} },
|
|
2297
|
-
kbd:
|
|
2296
|
+
kbd: J,
|
|
2298
2297
|
keygen: { attrs: {
|
|
2299
2298
|
challenge: null,
|
|
2300
2299
|
form: null,
|
|
@@ -2307,7 +2306,7 @@ var G = [
|
|
|
2307
2306
|
for: null,
|
|
2308
2307
|
form: null
|
|
2309
2308
|
} },
|
|
2310
|
-
legend:
|
|
2309
|
+
legend: J,
|
|
2311
2310
|
li: { attrs: { value: null } },
|
|
2312
2311
|
link: { attrs: {
|
|
2313
2312
|
href: null,
|
|
@@ -2322,7 +2321,7 @@ var G = [
|
|
|
2322
2321
|
]
|
|
2323
2322
|
} },
|
|
2324
2323
|
map: { attrs: { name: null } },
|
|
2325
|
-
mark:
|
|
2324
|
+
mark: J,
|
|
2326
2325
|
menu: { attrs: {
|
|
2327
2326
|
label: null,
|
|
2328
2327
|
type: [
|
|
@@ -2333,7 +2332,7 @@ var G = [
|
|
|
2333
2332
|
} },
|
|
2334
2333
|
meta: { attrs: {
|
|
2335
2334
|
content: null,
|
|
2336
|
-
charset:
|
|
2335
|
+
charset: Lr,
|
|
2337
2336
|
name: [
|
|
2338
2337
|
"viewport",
|
|
2339
2338
|
"application-name",
|
|
@@ -2357,8 +2356,8 @@ var G = [
|
|
|
2357
2356
|
max: null,
|
|
2358
2357
|
optimum: null
|
|
2359
2358
|
} },
|
|
2360
|
-
nav:
|
|
2361
|
-
noscript:
|
|
2359
|
+
nav: J,
|
|
2360
|
+
noscript: J,
|
|
2362
2361
|
object: { attrs: {
|
|
2363
2362
|
data: null,
|
|
2364
2363
|
type: null,
|
|
@@ -2404,29 +2403,29 @@ var G = [
|
|
|
2404
2403
|
form: null,
|
|
2405
2404
|
name: null
|
|
2406
2405
|
} },
|
|
2407
|
-
p:
|
|
2406
|
+
p: J,
|
|
2408
2407
|
param: { attrs: {
|
|
2409
2408
|
name: null,
|
|
2410
2409
|
value: null
|
|
2411
2410
|
} },
|
|
2412
|
-
pre:
|
|
2411
|
+
pre: J,
|
|
2413
2412
|
progress: { attrs: {
|
|
2414
2413
|
value: null,
|
|
2415
2414
|
max: null
|
|
2416
2415
|
} },
|
|
2417
2416
|
q: { attrs: { cite: null } },
|
|
2418
|
-
rp:
|
|
2419
|
-
rt:
|
|
2420
|
-
ruby:
|
|
2421
|
-
samp:
|
|
2417
|
+
rp: J,
|
|
2418
|
+
rt: J,
|
|
2419
|
+
ruby: J,
|
|
2420
|
+
samp: J,
|
|
2422
2421
|
script: { attrs: {
|
|
2423
2422
|
type: ["text/javascript"],
|
|
2424
2423
|
src: null,
|
|
2425
2424
|
async: ["async"],
|
|
2426
2425
|
defer: ["defer"],
|
|
2427
|
-
charset:
|
|
2426
|
+
charset: Lr
|
|
2428
2427
|
} },
|
|
2429
|
-
section:
|
|
2428
|
+
section: J,
|
|
2430
2429
|
select: { attrs: {
|
|
2431
2430
|
form: null,
|
|
2432
2431
|
name: null,
|
|
@@ -2436,30 +2435,30 @@ var G = [
|
|
|
2436
2435
|
multiple: ["multiple"]
|
|
2437
2436
|
} },
|
|
2438
2437
|
slot: { attrs: { name: null } },
|
|
2439
|
-
small:
|
|
2438
|
+
small: J,
|
|
2440
2439
|
source: { attrs: {
|
|
2441
2440
|
src: null,
|
|
2442
2441
|
type: null,
|
|
2443
2442
|
media: null
|
|
2444
2443
|
} },
|
|
2445
|
-
span:
|
|
2446
|
-
strong:
|
|
2444
|
+
span: J,
|
|
2445
|
+
strong: J,
|
|
2447
2446
|
style: { attrs: {
|
|
2448
2447
|
type: ["text/css"],
|
|
2449
2448
|
media: null,
|
|
2450
2449
|
scoped: null
|
|
2451
2450
|
} },
|
|
2452
|
-
sub:
|
|
2453
|
-
summary:
|
|
2454
|
-
sup:
|
|
2455
|
-
table:
|
|
2456
|
-
tbody:
|
|
2451
|
+
sub: J,
|
|
2452
|
+
summary: J,
|
|
2453
|
+
sup: J,
|
|
2454
|
+
table: J,
|
|
2455
|
+
tbody: J,
|
|
2457
2456
|
td: { attrs: {
|
|
2458
2457
|
colspan: null,
|
|
2459
2458
|
rowspan: null,
|
|
2460
2459
|
headers: null
|
|
2461
2460
|
} },
|
|
2462
|
-
template:
|
|
2461
|
+
template: J,
|
|
2463
2462
|
textarea: { attrs: {
|
|
2464
2463
|
dirname: null,
|
|
2465
2464
|
form: null,
|
|
@@ -2474,7 +2473,7 @@ var G = [
|
|
|
2474
2473
|
required: ["required"],
|
|
2475
2474
|
wrap: ["soft", "hard"]
|
|
2476
2475
|
} },
|
|
2477
|
-
tfoot:
|
|
2476
|
+
tfoot: J,
|
|
2478
2477
|
th: { attrs: {
|
|
2479
2478
|
colspan: null,
|
|
2480
2479
|
rowspan: null,
|
|
@@ -2486,10 +2485,10 @@ var G = [
|
|
|
2486
2485
|
"colgroup"
|
|
2487
2486
|
]
|
|
2488
2487
|
} },
|
|
2489
|
-
thead:
|
|
2488
|
+
thead: J,
|
|
2490
2489
|
time: { attrs: { datetime: null } },
|
|
2491
|
-
title:
|
|
2492
|
-
tr:
|
|
2490
|
+
title: J,
|
|
2491
|
+
tr: J,
|
|
2493
2492
|
track: { attrs: {
|
|
2494
2493
|
src: null,
|
|
2495
2494
|
label: null,
|
|
@@ -2510,7 +2509,7 @@ var G = [
|
|
|
2510
2509
|
"ul",
|
|
2511
2510
|
"ol"
|
|
2512
2511
|
] },
|
|
2513
|
-
var:
|
|
2512
|
+
var: J,
|
|
2514
2513
|
video: { attrs: {
|
|
2515
2514
|
src: null,
|
|
2516
2515
|
poster: null,
|
|
@@ -2527,11 +2526,11 @@ var G = [
|
|
|
2527
2526
|
muted: ["muted"],
|
|
2528
2527
|
controls: ["controls"]
|
|
2529
2528
|
} },
|
|
2530
|
-
wbr:
|
|
2531
|
-
},
|
|
2529
|
+
wbr: J
|
|
2530
|
+
}, Vr = {
|
|
2532
2531
|
accesskey: null,
|
|
2533
2532
|
class: null,
|
|
2534
|
-
contenteditable:
|
|
2533
|
+
contenteditable: q,
|
|
2535
2534
|
contextmenu: null,
|
|
2536
2535
|
dir: [
|
|
2537
2536
|
"ltr",
|
|
@@ -2575,9 +2574,9 @@ var G = [
|
|
|
2575
2574
|
"tr",
|
|
2576
2575
|
"zh"
|
|
2577
2576
|
],
|
|
2578
|
-
spellcheck:
|
|
2579
|
-
autocorrect:
|
|
2580
|
-
autocapitalize:
|
|
2577
|
+
spellcheck: q,
|
|
2578
|
+
autocorrect: q,
|
|
2579
|
+
autocapitalize: q,
|
|
2581
2580
|
style: null,
|
|
2582
2581
|
tabindex: null,
|
|
2583
2582
|
title: null,
|
|
@@ -2599,14 +2598,14 @@ var G = [
|
|
|
2599
2598
|
],
|
|
2600
2599
|
role: /*@__PURE__*/ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
2601
2600
|
"aria-activedescendant": null,
|
|
2602
|
-
"aria-atomic":
|
|
2601
|
+
"aria-atomic": q,
|
|
2603
2602
|
"aria-autocomplete": [
|
|
2604
2603
|
"inline",
|
|
2605
2604
|
"list",
|
|
2606
2605
|
"both",
|
|
2607
2606
|
"none"
|
|
2608
2607
|
],
|
|
2609
|
-
"aria-busy":
|
|
2608
|
+
"aria-busy": q,
|
|
2610
2609
|
"aria-checked": [
|
|
2611
2610
|
"true",
|
|
2612
2611
|
"false",
|
|
@@ -2615,7 +2614,7 @@ var G = [
|
|
|
2615
2614
|
],
|
|
2616
2615
|
"aria-controls": null,
|
|
2617
2616
|
"aria-describedby": null,
|
|
2618
|
-
"aria-disabled":
|
|
2617
|
+
"aria-disabled": q,
|
|
2619
2618
|
"aria-dropeffect": null,
|
|
2620
2619
|
"aria-expanded": [
|
|
2621
2620
|
"true",
|
|
@@ -2628,8 +2627,8 @@ var G = [
|
|
|
2628
2627
|
"false",
|
|
2629
2628
|
"undefined"
|
|
2630
2629
|
],
|
|
2631
|
-
"aria-haspopup":
|
|
2632
|
-
"aria-hidden":
|
|
2630
|
+
"aria-haspopup": q,
|
|
2631
|
+
"aria-hidden": q,
|
|
2633
2632
|
"aria-invalid": [
|
|
2634
2633
|
"true",
|
|
2635
2634
|
"false",
|
|
@@ -2644,8 +2643,8 @@ var G = [
|
|
|
2644
2643
|
"polite",
|
|
2645
2644
|
"assertive"
|
|
2646
2645
|
],
|
|
2647
|
-
"aria-multiline":
|
|
2648
|
-
"aria-multiselectable":
|
|
2646
|
+
"aria-multiline": q,
|
|
2647
|
+
"aria-multiselectable": q,
|
|
2649
2648
|
"aria-owns": null,
|
|
2650
2649
|
"aria-posinset": null,
|
|
2651
2650
|
"aria-pressed": [
|
|
@@ -2654,9 +2653,9 @@ var G = [
|
|
|
2654
2653
|
"mixed",
|
|
2655
2654
|
"undefined"
|
|
2656
2655
|
],
|
|
2657
|
-
"aria-readonly":
|
|
2656
|
+
"aria-readonly": q,
|
|
2658
2657
|
"aria-relevant": null,
|
|
2659
|
-
"aria-required":
|
|
2658
|
+
"aria-required": q,
|
|
2660
2659
|
"aria-selected": [
|
|
2661
2660
|
"true",
|
|
2662
2661
|
"false",
|
|
@@ -2673,54 +2672,54 @@ var G = [
|
|
|
2673
2672
|
"aria-valuemin": null,
|
|
2674
2673
|
"aria-valuenow": null,
|
|
2675
2674
|
"aria-valuetext": null
|
|
2676
|
-
},
|
|
2677
|
-
for (let e of
|
|
2678
|
-
var
|
|
2675
|
+
}, Hr = /*@__PURE__*/ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e) => "on" + e);
|
|
2676
|
+
for (let e of Hr) Vr[e] = null;
|
|
2677
|
+
var Y = class {
|
|
2679
2678
|
constructor(e, t) {
|
|
2680
2679
|
this.tags = {
|
|
2681
|
-
...
|
|
2680
|
+
...Br,
|
|
2682
2681
|
...e
|
|
2683
2682
|
}, this.globalAttrs = {
|
|
2684
|
-
...
|
|
2683
|
+
...Vr,
|
|
2685
2684
|
...t
|
|
2686
2685
|
}, this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs);
|
|
2687
2686
|
}
|
|
2688
2687
|
};
|
|
2689
|
-
|
|
2690
|
-
function
|
|
2688
|
+
Y.default = /*@__PURE__*/ new Y();
|
|
2689
|
+
function X(e, t, n = e.length) {
|
|
2691
2690
|
if (!t) return "";
|
|
2692
2691
|
let r = t.firstChild, i = r && r.getChild("TagName");
|
|
2693
2692
|
return i ? e.sliceString(i.from, Math.min(i.to, n)) : "";
|
|
2694
2693
|
}
|
|
2695
|
-
function
|
|
2694
|
+
function Z(e, t = !1) {
|
|
2696
2695
|
for (; e; e = e.parent) if (e.name == "Element") {
|
|
2697
2696
|
if (t) t = !1;
|
|
2698
2697
|
else return e;
|
|
2699
2698
|
}
|
|
2700
2699
|
return null;
|
|
2701
2700
|
}
|
|
2702
|
-
function
|
|
2703
|
-
return n.tags[
|
|
2701
|
+
function Ur(e, t, n) {
|
|
2702
|
+
return n.tags[X(e, Z(t))]?.children || n.allTags;
|
|
2704
2703
|
}
|
|
2705
|
-
function
|
|
2704
|
+
function Wr(e, t) {
|
|
2706
2705
|
let n = [];
|
|
2707
|
-
for (let r =
|
|
2708
|
-
let i =
|
|
2706
|
+
for (let r = Z(t); r && !r.type.isTop; r = Z(r.parent)) {
|
|
2707
|
+
let i = X(e, r);
|
|
2709
2708
|
if (i && r.lastChild.name == "CloseTag") break;
|
|
2710
2709
|
i && n.indexOf(i) < 0 && (t.name == "EndTag" || t.from >= r.firstChild.to) && n.push(i);
|
|
2711
2710
|
}
|
|
2712
2711
|
return n;
|
|
2713
2712
|
}
|
|
2714
|
-
var
|
|
2715
|
-
function
|
|
2716
|
-
let a = /\s*>/.test(e.sliceDoc(i, i + 5)) ? "" : ">", o =
|
|
2713
|
+
var Gr = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
2714
|
+
function Kr(e, t, n, r, i) {
|
|
2715
|
+
let a = /\s*>/.test(e.sliceDoc(i, i + 5)) ? "" : ">", o = Z(n, n.name == "StartTag" || n.name == "TagName");
|
|
2717
2716
|
return {
|
|
2718
2717
|
from: r,
|
|
2719
2718
|
to: i,
|
|
2720
|
-
options:
|
|
2719
|
+
options: Ur(e.doc, o, t).map((e) => ({
|
|
2721
2720
|
label: e,
|
|
2722
2721
|
type: "type"
|
|
2723
|
-
})).concat(
|
|
2722
|
+
})).concat(Wr(e.doc, n).map((e, t) => ({
|
|
2724
2723
|
label: "/" + e,
|
|
2725
2724
|
apply: "/" + e + a,
|
|
2726
2725
|
type: "type",
|
|
@@ -2729,27 +2728,27 @@ function qr(e, t, n, r, i) {
|
|
|
2729
2728
|
validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
2730
2729
|
};
|
|
2731
2730
|
}
|
|
2732
|
-
function
|
|
2731
|
+
function qr(e, t, n, r) {
|
|
2733
2732
|
let i = /\s*>/.test(e.sliceDoc(r, r + 5)) ? "" : ">";
|
|
2734
2733
|
return {
|
|
2735
2734
|
from: n,
|
|
2736
2735
|
to: r,
|
|
2737
|
-
options:
|
|
2736
|
+
options: Wr(e.doc, t).map((e, t) => ({
|
|
2738
2737
|
label: e,
|
|
2739
2738
|
apply: e + i,
|
|
2740
2739
|
type: "type",
|
|
2741
2740
|
boost: 99 - t
|
|
2742
2741
|
})),
|
|
2743
|
-
validFor:
|
|
2742
|
+
validFor: Gr
|
|
2744
2743
|
};
|
|
2745
2744
|
}
|
|
2746
|
-
function
|
|
2745
|
+
function Jr(e, t, n, r) {
|
|
2747
2746
|
let i = [], a = 0;
|
|
2748
|
-
for (let r of
|
|
2747
|
+
for (let r of Ur(e.doc, n, t)) i.push({
|
|
2749
2748
|
label: "<" + r,
|
|
2750
2749
|
type: "type"
|
|
2751
2750
|
});
|
|
2752
|
-
for (let t of
|
|
2751
|
+
for (let t of Wr(e.doc, n)) i.push({
|
|
2753
2752
|
label: "</" + t + ">",
|
|
2754
2753
|
type: "type",
|
|
2755
2754
|
boost: 99 - a++
|
|
@@ -2761,8 +2760,8 @@ function Yr(e, t, n, r) {
|
|
|
2761
2760
|
validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
2762
2761
|
};
|
|
2763
2762
|
}
|
|
2764
|
-
function
|
|
2765
|
-
let a =
|
|
2763
|
+
function Yr(e, t, n, r, i) {
|
|
2764
|
+
let a = Z(n), o = a ? t.tags[X(e.doc, a)] : null, s = o && o.attrs ? Object.keys(o.attrs) : [];
|
|
2766
2765
|
return {
|
|
2767
2766
|
from: r,
|
|
2768
2767
|
to: i,
|
|
@@ -2770,15 +2769,15 @@ function Xr(e, t, n, r, i) {
|
|
|
2770
2769
|
label: e,
|
|
2771
2770
|
type: "property"
|
|
2772
2771
|
})),
|
|
2773
|
-
validFor:
|
|
2772
|
+
validFor: Gr
|
|
2774
2773
|
};
|
|
2775
2774
|
}
|
|
2776
|
-
function
|
|
2775
|
+
function Xr(e, t, n, r, i) {
|
|
2777
2776
|
let a = n.parent?.getChild("AttributeName"), o = [], s;
|
|
2778
2777
|
if (a) {
|
|
2779
2778
|
let c = e.sliceDoc(a.from, a.to), l = t.globalAttrs[c];
|
|
2780
2779
|
if (!l) {
|
|
2781
|
-
let r =
|
|
2780
|
+
let r = Z(n), i = r ? t.tags[X(e.doc, r)] : null;
|
|
2782
2781
|
l = i?.attrs && i.attrs[c];
|
|
2783
2782
|
}
|
|
2784
2783
|
if (l) {
|
|
@@ -2798,69 +2797,69 @@ function Zr(e, t, n, r, i) {
|
|
|
2798
2797
|
validFor: s
|
|
2799
2798
|
};
|
|
2800
2799
|
}
|
|
2801
|
-
function
|
|
2802
|
-
let { state: n, pos: r } = t, i =
|
|
2800
|
+
function Zr(e, t) {
|
|
2801
|
+
let { state: n, pos: r } = t, i = p(n).resolveInner(r, -1), a = i.resolve(r);
|
|
2803
2802
|
for (let e = r, t; a == i && (t = i.childBefore(e));) {
|
|
2804
2803
|
let n = t.lastChild;
|
|
2805
2804
|
if (!n || !n.type.isError || n.from < n.to) break;
|
|
2806
2805
|
a = i = t, e = n.from;
|
|
2807
2806
|
}
|
|
2808
|
-
return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ?
|
|
2807
|
+
return i.name == "TagName" ? i.parent && /CloseTag$/.test(i.parent.name) ? qr(n, i, i.from, r) : Kr(n, e, i, i.from, r) : i.name == "StartTag" || i.name == "IncompleteTag" ? Kr(n, e, i, r, r) : i.name == "StartCloseTag" || i.name == "IncompleteCloseTag" ? qr(n, i, r, r) : i.name == "OpenTag" || i.name == "SelfClosingTag" || i.name == "AttributeName" ? Yr(n, e, i, i.name == "AttributeName" ? i.from : r, r) : i.name == "Is" || i.name == "AttributeValue" || i.name == "UnquotedAttributeValue" ? Xr(n, e, i, i.name == "Is" ? r : i.from, r) : t.explicit && (a.name == "Element" || a.name == "Text" || a.name == "Document") ? Jr(n, e, i, r) : null;
|
|
2809
2808
|
}
|
|
2810
|
-
function
|
|
2811
|
-
return
|
|
2809
|
+
function Qr(e) {
|
|
2810
|
+
return Zr(Y.default, e);
|
|
2812
2811
|
}
|
|
2813
|
-
function
|
|
2814
|
-
let { extraTags: t, extraGlobalAttributes: n } = e, r = n || t ? new
|
|
2815
|
-
return (e) =>
|
|
2812
|
+
function $r(e) {
|
|
2813
|
+
let { extraTags: t, extraGlobalAttributes: n } = e, r = n || t ? new Y(t, n) : Y.default;
|
|
2814
|
+
return (e) => Zr(r, e);
|
|
2816
2815
|
}
|
|
2817
|
-
var
|
|
2816
|
+
var ei = /*@__PURE__*/ ve.parser.configure({ top: "SingleExpression" }), ti = [
|
|
2818
2817
|
{
|
|
2819
2818
|
tag: "script",
|
|
2820
2819
|
attrs: (e) => e.type == "text/typescript" || e.lang == "ts",
|
|
2821
|
-
parser:
|
|
2820
|
+
parser: _e.parser
|
|
2822
2821
|
},
|
|
2823
2822
|
{
|
|
2824
2823
|
tag: "script",
|
|
2825
2824
|
attrs: (e) => e.type == "text/babel" || e.type == "text/jsx",
|
|
2826
|
-
parser:
|
|
2825
|
+
parser: he.parser
|
|
2827
2826
|
},
|
|
2828
2827
|
{
|
|
2829
2828
|
tag: "script",
|
|
2830
2829
|
attrs: (e) => e.type == "text/typescript-jsx",
|
|
2831
|
-
parser:
|
|
2830
|
+
parser: me.parser
|
|
2832
2831
|
},
|
|
2833
2832
|
{
|
|
2834
2833
|
tag: "script",
|
|
2835
2834
|
attrs(e) {
|
|
2836
2835
|
return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type);
|
|
2837
2836
|
},
|
|
2838
|
-
parser:
|
|
2837
|
+
parser: ei
|
|
2839
2838
|
},
|
|
2840
2839
|
{
|
|
2841
2840
|
tag: "script",
|
|
2842
2841
|
attrs(e) {
|
|
2843
2842
|
return !e.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type);
|
|
2844
2843
|
},
|
|
2845
|
-
parser:
|
|
2844
|
+
parser: ve.parser
|
|
2846
2845
|
},
|
|
2847
2846
|
{
|
|
2848
2847
|
tag: "style",
|
|
2849
2848
|
attrs(e) {
|
|
2850
2849
|
return (!e.lang || e.lang == "css") && (!e.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type));
|
|
2851
2850
|
},
|
|
2852
|
-
parser:
|
|
2851
|
+
parser: G.parser
|
|
2853
2852
|
}
|
|
2854
|
-
],
|
|
2853
|
+
], ni = /*@__PURE__*/ [{
|
|
2855
2854
|
name: "style",
|
|
2856
|
-
parser: /*@__PURE__*/
|
|
2857
|
-
}].concat(/*@__PURE__*/
|
|
2855
|
+
parser: /*@__PURE__*/ G.parser.configure({ top: "Styles" })
|
|
2856
|
+
}].concat(/*@__PURE__*/ Hr.map((e) => ({
|
|
2858
2857
|
name: e,
|
|
2859
|
-
parser:
|
|
2860
|
-
}))),
|
|
2858
|
+
parser: ve.parser
|
|
2859
|
+
}))), ri = /*@__PURE__*/ oe.define({
|
|
2861
2860
|
name: "html",
|
|
2862
|
-
parser: /*@__PURE__*/
|
|
2863
|
-
/*@__PURE__*/
|
|
2861
|
+
parser: /*@__PURE__*/ Rn.configure({ props: [
|
|
2862
|
+
/*@__PURE__*/ s.add({
|
|
2864
2863
|
Element(e) {
|
|
2865
2864
|
let t = /^(\s*)(<\/)?/.exec(e.textAfter);
|
|
2866
2865
|
return e.node.to <= e.pos + t[0].length ? e.continue() : e.lineIndent(e.node.from) + (t[2] ? 0 : e.unit);
|
|
@@ -2886,7 +2885,7 @@ var ti = /*@__PURE__*/ re.parser.configure({ top: "SingleExpression" }), ni = [
|
|
|
2886
2885
|
to: n.name == "CloseTag" ? n.from : e.to
|
|
2887
2886
|
};
|
|
2888
2887
|
} }),
|
|
2889
|
-
/*@__PURE__*/
|
|
2888
|
+
/*@__PURE__*/ ae.add({ "OpenTag CloseTag": (e) => e.getChild("TagName") })
|
|
2890
2889
|
] }),
|
|
2891
2890
|
languageData: {
|
|
2892
2891
|
commentTokens: { block: {
|
|
@@ -2896,97 +2895,97 @@ var ti = /*@__PURE__*/ re.parser.configure({ top: "SingleExpression" }), ni = [
|
|
|
2896
2895
|
indentOnInput: /^\s*<\/\w+\W$/,
|
|
2897
2896
|
wordChars: "-_"
|
|
2898
2897
|
}
|
|
2899
|
-
}),
|
|
2900
|
-
function
|
|
2898
|
+
}), Q = /*@__PURE__*/ ri.configure({ wrap: /*@__PURE__*/ Hn(ti, ni) });
|
|
2899
|
+
function ii(e = {}) {
|
|
2901
2900
|
let t = "", n;
|
|
2902
|
-
e.matchClosingTags === !1 && (t = "noMatch"), e.selfClosingTags === !0 && (t = (t ? t + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (n =
|
|
2903
|
-
let r = n ?
|
|
2901
|
+
e.matchClosingTags === !1 && (t = "noMatch"), e.selfClosingTags === !0 && (t = (t ? t + " " : "") + "selfClosing"), (e.nestedLanguages && e.nestedLanguages.length || e.nestedAttributes && e.nestedAttributes.length) && (n = Hn((e.nestedLanguages || []).concat(ti), (e.nestedAttributes || []).concat(ni)));
|
|
2902
|
+
let r = n ? ri.configure({
|
|
2904
2903
|
wrap: n,
|
|
2905
2904
|
dialect: t
|
|
2906
|
-
}) : t ?
|
|
2905
|
+
}) : t ? Q.configure({ dialect: t }) : Q;
|
|
2907
2906
|
return new y(r, [
|
|
2908
|
-
|
|
2909
|
-
e.autoCloseTags === !1 ? [] :
|
|
2910
|
-
|
|
2911
|
-
|
|
2907
|
+
Q.data.of({ autocomplete: $r(e) }),
|
|
2908
|
+
e.autoCloseTags === !1 ? [] : si,
|
|
2909
|
+
ge().support,
|
|
2910
|
+
Ir().support
|
|
2912
2911
|
]);
|
|
2913
2912
|
}
|
|
2914
|
-
var
|
|
2915
|
-
function
|
|
2913
|
+
var ai = /*@__PURE__*/ new Set(/*@__PURE__*/ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
|
|
2914
|
+
function oi(e, t, n) {
|
|
2916
2915
|
for (;;) {
|
|
2917
2916
|
if (t.lastChild?.name != "CloseTag") return !1;
|
|
2918
2917
|
let r = t.parent;
|
|
2919
|
-
if (!r ||
|
|
2918
|
+
if (!r || X(e, r) != n) return !0;
|
|
2920
2919
|
t = r;
|
|
2921
2920
|
}
|
|
2922
2921
|
}
|
|
2923
|
-
var
|
|
2924
|
-
if (
|
|
2925
|
-
let
|
|
2926
|
-
let
|
|
2927
|
-
if (
|
|
2928
|
-
let
|
|
2929
|
-
if ((
|
|
2930
|
-
range:
|
|
2922
|
+
var si = /*@__PURE__*/ a.inputHandler.of((t, n, r, i, a) => {
|
|
2923
|
+
if (t.composing || t.state.readOnly || n != r || i != ">" && i != "/" || !Q.isActiveAt(t.state, n, -1)) return !1;
|
|
2924
|
+
let o = a(), { state: s } = o, c = s.changeByRange((t) => {
|
|
2925
|
+
let n = s.doc.sliceString(t.from - 1, t.to) == i, { head: r } = t, a = p(s).resolveInner(r, -1), o;
|
|
2926
|
+
if (n && i == ">" && a.name == "EndTag") {
|
|
2927
|
+
let e = a.parent;
|
|
2928
|
+
if ((o = X(s.doc, e.parent, r)) && !ai.has(o) && !oi(s.doc, e.parent, o)) return {
|
|
2929
|
+
range: t,
|
|
2931
2930
|
changes: {
|
|
2932
|
-
from:
|
|
2933
|
-
to:
|
|
2934
|
-
insert: `</${
|
|
2931
|
+
from: r,
|
|
2932
|
+
to: r + +(s.doc.sliceString(r, r + 1) === ">"),
|
|
2933
|
+
insert: `</${o}>`
|
|
2935
2934
|
}
|
|
2936
2935
|
};
|
|
2937
|
-
} else if (
|
|
2938
|
-
let
|
|
2939
|
-
if (
|
|
2940
|
-
let
|
|
2936
|
+
} else if (n && i == "/" && a.name == "IncompleteCloseTag") {
|
|
2937
|
+
let t = a.parent;
|
|
2938
|
+
if (a.from == r - 2 && t.lastChild?.name != "CloseTag" && (o = X(s.doc, t, r)) && !ai.has(o)) {
|
|
2939
|
+
let t = r + +(s.doc.sliceString(r, r + 1) === ">"), n = `${o}>`;
|
|
2941
2940
|
return {
|
|
2942
|
-
range:
|
|
2941
|
+
range: e.cursor(r + n.length, -1),
|
|
2943
2942
|
changes: {
|
|
2944
|
-
from:
|
|
2945
|
-
to:
|
|
2946
|
-
insert:
|
|
2943
|
+
from: r,
|
|
2944
|
+
to: t,
|
|
2945
|
+
insert: n
|
|
2947
2946
|
}
|
|
2948
2947
|
};
|
|
2949
2948
|
}
|
|
2950
2949
|
}
|
|
2951
|
-
return { range:
|
|
2950
|
+
return { range: t };
|
|
2952
2951
|
});
|
|
2953
|
-
return !
|
|
2952
|
+
return !c.changes.empty && (t.dispatch([o, s.update(c, {
|
|
2954
2953
|
userEvent: "input.complete",
|
|
2955
2954
|
scrollIntoView: !0
|
|
2956
2955
|
})]), !0);
|
|
2957
|
-
}),
|
|
2956
|
+
}), ci = /*@__PURE__*/ ne({ commentTokens: { block: {
|
|
2958
2957
|
open: "<!--",
|
|
2959
2958
|
close: "-->"
|
|
2960
|
-
} } }),
|
|
2961
|
-
/*@__PURE__*/ b.add((e) => !e.is("Block") || e.is("Document") ||
|
|
2959
|
+
} } }), li = /*@__PURE__*/ new x(), ui = /*@__PURE__*/ ut.configure({ props: [
|
|
2960
|
+
/*@__PURE__*/ b.add((e) => !e.is("Block") || e.is("Document") || di(e) != null || fi(e) ? void 0 : (e, t) => ({
|
|
2962
2961
|
from: t.doc.lineAt(e.from).to,
|
|
2963
2962
|
to: e.to
|
|
2964
2963
|
})),
|
|
2965
|
-
/*@__PURE__*/
|
|
2966
|
-
/*@__PURE__*/
|
|
2967
|
-
/*@__PURE__*/
|
|
2964
|
+
/*@__PURE__*/ li.add(di),
|
|
2965
|
+
/*@__PURE__*/ s.add({ Document: () => null }),
|
|
2966
|
+
/*@__PURE__*/ h.add({ Document: ci })
|
|
2968
2967
|
] });
|
|
2969
|
-
function
|
|
2968
|
+
function di(e) {
|
|
2970
2969
|
let t = /^(?:ATX|Setext)Heading(\d)$/.exec(e.name);
|
|
2971
2970
|
return t ? +t[1] : void 0;
|
|
2972
2971
|
}
|
|
2973
|
-
function
|
|
2972
|
+
function fi(e) {
|
|
2974
2973
|
return e.name == "OrderedList" || e.name == "BulletList";
|
|
2975
2974
|
}
|
|
2976
|
-
function
|
|
2975
|
+
function pi(e, t) {
|
|
2977
2976
|
let n = e;
|
|
2978
2977
|
for (;;) {
|
|
2979
2978
|
let e = n.nextSibling, r;
|
|
2980
|
-
if (!e || (r =
|
|
2979
|
+
if (!e || (r = di(e.type)) != null && r <= t) break;
|
|
2981
2980
|
n = e;
|
|
2982
2981
|
}
|
|
2983
2982
|
return n.to;
|
|
2984
2983
|
}
|
|
2985
|
-
var
|
|
2986
|
-
for (let r =
|
|
2987
|
-
let e = r.type.prop(
|
|
2984
|
+
var mi = /*@__PURE__*/ le.of((e, t, n) => {
|
|
2985
|
+
for (let r = p(e).resolveInner(n, -1); r && !(r.from < t); r = r.parent) {
|
|
2986
|
+
let e = r.type.prop(li);
|
|
2988
2987
|
if (e == null) continue;
|
|
2989
|
-
let t =
|
|
2988
|
+
let t = pi(r, e);
|
|
2990
2989
|
if (t > n) return {
|
|
2991
2990
|
from: n,
|
|
2992
2991
|
to: t
|
|
@@ -2994,30 +2993,30 @@ var hi = /*@__PURE__*/ de.of((e, t, n) => {
|
|
|
2994
2993
|
}
|
|
2995
2994
|
return null;
|
|
2996
2995
|
});
|
|
2997
|
-
function
|
|
2998
|
-
return new
|
|
2996
|
+
function hi(e) {
|
|
2997
|
+
return new ie(ci, e, [], "markdown");
|
|
2999
2998
|
}
|
|
3000
|
-
var
|
|
3001
|
-
|
|
3002
|
-
Nt,
|
|
2999
|
+
var gi = /*@__PURE__*/ hi(ui), $ = /*@__PURE__*/ hi(/* @__PURE__ */ ui.configure([
|
|
3000
|
+
kt,
|
|
3003
3001
|
Mt,
|
|
3004
|
-
|
|
3002
|
+
jt,
|
|
3003
|
+
Nt,
|
|
3005
3004
|
{ props: [/*@__PURE__*/ b.add({ Table: (e, t) => ({
|
|
3006
3005
|
from: t.doc.lineAt(e.from).to,
|
|
3007
3006
|
to: e.to
|
|
3008
3007
|
}) })] }
|
|
3009
3008
|
]));
|
|
3010
|
-
function
|
|
3009
|
+
function _i(e, t) {
|
|
3011
3010
|
return (n) => {
|
|
3012
3011
|
if (n && e) {
|
|
3013
3012
|
let t = null;
|
|
3014
|
-
if (n = /\S*/.exec(n)[0], t = typeof e == "function" ? e(n) :
|
|
3013
|
+
if (n = /\S*/.exec(n)[0], t = typeof e == "function" ? e(n) : te.matchLanguageName(e, n, !0), t instanceof te) return t.support ? t.support.language.parser : se.getSkippingParser(t.load());
|
|
3015
3014
|
if (t) return t.parser;
|
|
3016
3015
|
}
|
|
3017
3016
|
return t ? t.parser : null;
|
|
3018
3017
|
};
|
|
3019
3018
|
}
|
|
3020
|
-
var
|
|
3019
|
+
var vi = class {
|
|
3021
3020
|
constructor(e, t, n, r, i, a, o) {
|
|
3022
3021
|
this.node = e, this.from = t, this.to = n, this.spaceBefore = r, this.spaceAfter = i, this.type = a, this.item = o;
|
|
3023
3022
|
}
|
|
@@ -3031,11 +3030,11 @@ var yi = class {
|
|
|
3031
3030
|
return n + (t ? this.spaceAfter : "");
|
|
3032
3031
|
}
|
|
3033
3032
|
marker(e, t) {
|
|
3034
|
-
let n = this.node.name == "OrderedList" ? String(+
|
|
3033
|
+
let n = this.node.name == "OrderedList" ? String(+bi(this.item, e)[2] + t) : "";
|
|
3035
3034
|
return this.spaceBefore + n + this.type + this.spaceAfter;
|
|
3036
3035
|
}
|
|
3037
3036
|
};
|
|
3038
|
-
function
|
|
3037
|
+
function yi(e, t) {
|
|
3039
3038
|
let n = [], r = [];
|
|
3040
3039
|
for (let t = e; t; t = t.parent) {
|
|
3041
3040
|
if (t.name == "FencedCode") return r;
|
|
@@ -3043,26 +3042,26 @@ function bi(e, t) {
|
|
|
3043
3042
|
}
|
|
3044
3043
|
for (let e = n.length - 1; e >= 0; e--) {
|
|
3045
3044
|
let i = n[e], a, o = t.lineAt(i.from), s = i.from - o.from;
|
|
3046
|
-
if (i.name == "Blockquote" && (a = /^ *>( ?)/.exec(o.text.slice(s)))) r.push(new
|
|
3045
|
+
if (i.name == "Blockquote" && (a = /^ *>( ?)/.exec(o.text.slice(s)))) r.push(new vi(i, s, s + a[0].length, "", a[1], ">", null));
|
|
3047
3046
|
else if (i.name == "ListItem" && i.parent.name == "OrderedList" && (a = /^( *)\d+([.)])( *)/.exec(o.text.slice(s)))) {
|
|
3048
3047
|
let e = a[3], t = a[0].length;
|
|
3049
|
-
e.length >= 4 && (e = e.slice(0, e.length - 4), t -= 4), r.push(new
|
|
3048
|
+
e.length >= 4 && (e = e.slice(0, e.length - 4), t -= 4), r.push(new vi(i.parent, s, s + t, a[1], e, a[2], i));
|
|
3050
3049
|
} else if (i.name == "ListItem" && i.parent.name == "BulletList" && (a = /^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(s)))) {
|
|
3051
3050
|
let e = a[4], t = a[0].length;
|
|
3052
3051
|
e.length > 4 && (e = e.slice(0, e.length - 4), t -= 4);
|
|
3053
3052
|
let n = a[2];
|
|
3054
|
-
a[3] && (n += a[3].replace(/[xX]/, " ")), r.push(new
|
|
3053
|
+
a[3] && (n += a[3].replace(/[xX]/, " ")), r.push(new vi(i.parent, s, s + t, a[1], e, n, i));
|
|
3055
3054
|
}
|
|
3056
3055
|
}
|
|
3057
3056
|
return r;
|
|
3058
3057
|
}
|
|
3059
|
-
function
|
|
3058
|
+
function bi(e, t) {
|
|
3060
3059
|
return /^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from, e.from + 10));
|
|
3061
3060
|
}
|
|
3062
|
-
function
|
|
3061
|
+
function xi(e, t, n, r = 0) {
|
|
3063
3062
|
for (let i = -1, a = e;;) {
|
|
3064
3063
|
if (a.name == "ListItem") {
|
|
3065
|
-
let e =
|
|
3064
|
+
let e = bi(a, t), o = +e[2];
|
|
3066
3065
|
if (i >= 0) {
|
|
3067
3066
|
if (o != i + 1) return;
|
|
3068
3067
|
n.push({
|
|
@@ -3078,175 +3077,175 @@ function Si(e, t, n, r = 0) {
|
|
|
3078
3077
|
a = e;
|
|
3079
3078
|
}
|
|
3080
3079
|
}
|
|
3081
|
-
function
|
|
3082
|
-
let
|
|
3083
|
-
if (!
|
|
3084
|
-
let
|
|
3085
|
-
for (let e =
|
|
3086
|
-
return
|
|
3087
|
-
}
|
|
3088
|
-
var
|
|
3089
|
-
let
|
|
3090
|
-
if (!
|
|
3091
|
-
let
|
|
3092
|
-
for (;
|
|
3093
|
-
if (!
|
|
3094
|
-
let
|
|
3095
|
-
if (
|
|
3096
|
-
let
|
|
3097
|
-
if (
|
|
3098
|
-
if (
|
|
3099
|
-
let
|
|
3100
|
-
if (
|
|
3101
|
-
let
|
|
3102
|
-
|
|
3103
|
-
let
|
|
3104
|
-
from:
|
|
3105
|
-
to:
|
|
3106
|
-
insert:
|
|
3080
|
+
function Si(e, n) {
|
|
3081
|
+
let r = /^[ \t]*/.exec(e)[0].length;
|
|
3082
|
+
if (!r || n.facet(c) != " ") return e;
|
|
3083
|
+
let i = t(e, 4, r), a = "";
|
|
3084
|
+
for (let e = i; e > 0;) e >= 4 ? (a += " ", e -= 4) : (a += " ", e--);
|
|
3085
|
+
return a + e.slice(r);
|
|
3086
|
+
}
|
|
3087
|
+
var Ci = (n = {}) => ({ state: r, dispatch: i }) => {
|
|
3088
|
+
let a = p(r), { doc: o } = r, s = null, c = r.changeByRange((i) => {
|
|
3089
|
+
if (!i.empty || !$.isActiveAt(r, i.from, -1) && !$.isActiveAt(r, i.from, 1)) return s = { range: i };
|
|
3090
|
+
let c = i.from, l = o.lineAt(c), u = yi(a.resolveInner(c, -1), o);
|
|
3091
|
+
for (; u.length && u[u.length - 1].from > c - l.from;) u.pop();
|
|
3092
|
+
if (!u.length) return s = { range: i };
|
|
3093
|
+
let d = u[u.length - 1];
|
|
3094
|
+
if (d.to - d.spaceAfter.length > c - l.from) return s = { range: i };
|
|
3095
|
+
let f = c >= d.to - d.spaceAfter.length && !/\S/.test(l.text.slice(d.to));
|
|
3096
|
+
if (d.item && f) {
|
|
3097
|
+
if (d.item.from < l.from && !/^[\s>]*$/.test(l.text.slice(0, d.to))) return s = { range: i };
|
|
3098
|
+
let t = d.node.firstChild, a = d.node.getChild("ListItem", "ListItem");
|
|
3099
|
+
if (t.to >= c || a && a.to < c || l.from > 0 && !/[^\s>]/.test(o.lineAt(l.from - 1).text) || n.nonTightLists === !1) {
|
|
3100
|
+
let t = u.length > 1 ? u[u.length - 2] : null, n, r = "";
|
|
3101
|
+
t && t.item ? (n = l.from + t.from, r = t.marker(o, 1)) : n = l.from + (t ? t.to : 0);
|
|
3102
|
+
let i = [{
|
|
3103
|
+
from: n,
|
|
3104
|
+
to: c,
|
|
3105
|
+
insert: r
|
|
3107
3106
|
}];
|
|
3108
|
-
return
|
|
3109
|
-
range:
|
|
3110
|
-
changes:
|
|
3107
|
+
return d.node.name == "OrderedList" && xi(d.item, o, i, -2), t && t.node.name == "OrderedList" && xi(t.item, o, i), {
|
|
3108
|
+
range: e.cursor(n + r.length),
|
|
3109
|
+
changes: i
|
|
3111
3110
|
};
|
|
3112
3111
|
}
|
|
3113
3112
|
{
|
|
3114
|
-
let
|
|
3113
|
+
let t = Di(u, r, l);
|
|
3115
3114
|
return {
|
|
3116
|
-
range:
|
|
3115
|
+
range: e.cursor(c + t.length + 1),
|
|
3117
3116
|
changes: {
|
|
3118
|
-
from:
|
|
3119
|
-
insert:
|
|
3117
|
+
from: l.from,
|
|
3118
|
+
insert: t + r.lineBreak
|
|
3120
3119
|
}
|
|
3121
3120
|
};
|
|
3122
3121
|
}
|
|
3123
3122
|
}
|
|
3124
|
-
if (
|
|
3125
|
-
let e =
|
|
3126
|
-
if (
|
|
3127
|
-
let
|
|
3128
|
-
from: e.from +
|
|
3123
|
+
if (d.node.name == "Blockquote" && f && l.from) {
|
|
3124
|
+
let e = o.lineAt(l.from - 1), t = />\s*$/.exec(e.text);
|
|
3125
|
+
if (t && t.index == d.from) {
|
|
3126
|
+
let n = r.changes([{
|
|
3127
|
+
from: e.from + t.index,
|
|
3129
3128
|
to: e.to
|
|
3130
3129
|
}, {
|
|
3131
|
-
from:
|
|
3132
|
-
to:
|
|
3130
|
+
from: l.from + d.from,
|
|
3131
|
+
to: l.to
|
|
3133
3132
|
}]);
|
|
3134
3133
|
return {
|
|
3135
|
-
range:
|
|
3136
|
-
changes:
|
|
3134
|
+
range: i.map(n),
|
|
3135
|
+
changes: n
|
|
3137
3136
|
};
|
|
3138
3137
|
}
|
|
3139
3138
|
}
|
|
3140
|
-
let
|
|
3141
|
-
|
|
3142
|
-
let
|
|
3143
|
-
if (!
|
|
3144
|
-
let
|
|
3145
|
-
for (;
|
|
3146
|
-
return
|
|
3147
|
-
from:
|
|
3148
|
-
to:
|
|
3149
|
-
insert:
|
|
3139
|
+
let p = [];
|
|
3140
|
+
d.node.name == "OrderedList" && xi(d.item, o, p);
|
|
3141
|
+
let m = d.item && d.item.from < l.from, h = "";
|
|
3142
|
+
if (!m || /^[\s\d.)\-+*>]*/.exec(l.text)[0].length >= d.to) for (let e = 0, n = u.length - 1; e <= n; e++) h += e == n && !m ? u[e].marker(o, 1) : u[e].blank(e < n ? t(l.text, 4, u[e + 1].from) - h.length : null);
|
|
3143
|
+
let g = c;
|
|
3144
|
+
for (; g > l.from && /\s/.test(l.text.charAt(g - l.from - 1));) g--;
|
|
3145
|
+
return h = Si(h, r), Ei(d.node, r.doc) && (h = Di(u, r, l) + r.lineBreak + h), p.push({
|
|
3146
|
+
from: g,
|
|
3147
|
+
to: c,
|
|
3148
|
+
insert: r.lineBreak + h
|
|
3150
3149
|
}), {
|
|
3151
|
-
range:
|
|
3152
|
-
changes:
|
|
3150
|
+
range: e.cursor(g + h.length + 1),
|
|
3151
|
+
changes: p
|
|
3153
3152
|
};
|
|
3154
3153
|
});
|
|
3155
|
-
return !
|
|
3154
|
+
return !s && (i(r.update(c, {
|
|
3156
3155
|
scrollIntoView: !0,
|
|
3157
3156
|
userEvent: "input"
|
|
3158
3157
|
})), !0);
|
|
3159
|
-
},
|
|
3160
|
-
function
|
|
3158
|
+
}, wi = /*@__PURE__*/ Ci();
|
|
3159
|
+
function Ti(e) {
|
|
3161
3160
|
return e.name == "QuoteMark" || e.name == "ListMark";
|
|
3162
3161
|
}
|
|
3163
|
-
function
|
|
3162
|
+
function Ei(e, t) {
|
|
3164
3163
|
if (e.name != "OrderedList" && e.name != "BulletList") return !1;
|
|
3165
3164
|
let n = e.firstChild, r = e.getChild("ListItem", "ListItem");
|
|
3166
3165
|
if (!r) return !1;
|
|
3167
3166
|
let i = t.lineAt(n.to), a = t.lineAt(r.from), o = /^[\s>]*$/.test(i.text);
|
|
3168
3167
|
return i.number + +!o < a.number;
|
|
3169
3168
|
}
|
|
3170
|
-
function
|
|
3171
|
-
let
|
|
3172
|
-
for (let
|
|
3173
|
-
return
|
|
3169
|
+
function Di(e, n, r) {
|
|
3170
|
+
let i = "";
|
|
3171
|
+
for (let n = 0, a = e.length - 2; n <= a; n++) i += e[n].blank(n < a ? t(r.text, 4, e[n + 1].from) - i.length : null, n < a);
|
|
3172
|
+
return Si(i, n);
|
|
3174
3173
|
}
|
|
3175
|
-
function
|
|
3174
|
+
function Oi(e, t) {
|
|
3176
3175
|
let n = e.resolveInner(t, -1), r = t;
|
|
3177
|
-
|
|
3178
|
-
for (let e; e = n.childBefore(r);) if (
|
|
3176
|
+
Ti(n) && (r = n.from, n = n.parent);
|
|
3177
|
+
for (let e; e = n.childBefore(r);) if (Ti(e)) r = e.from;
|
|
3179
3178
|
else if (e.name == "OrderedList" || e.name == "BulletList") n = e.lastChild, r = n.to;
|
|
3180
3179
|
else break;
|
|
3181
3180
|
return n;
|
|
3182
3181
|
}
|
|
3183
|
-
var
|
|
3184
|
-
let
|
|
3185
|
-
let
|
|
3186
|
-
if (
|
|
3187
|
-
let
|
|
3188
|
-
if (
|
|
3189
|
-
let
|
|
3190
|
-
if (
|
|
3191
|
-
range:
|
|
3182
|
+
var ki = ({ state: n, dispatch: r }) => {
|
|
3183
|
+
let i = p(n), a = null, o = n.changeByRange((r) => {
|
|
3184
|
+
let o = r.from, { doc: s } = n;
|
|
3185
|
+
if (r.empty && $.isActiveAt(n, r.from)) {
|
|
3186
|
+
let r = s.lineAt(o), a = yi(Oi(i, o), s);
|
|
3187
|
+
if (a.length) {
|
|
3188
|
+
let i = a[a.length - 1], s = i.to - i.spaceAfter.length + +!!i.spaceAfter;
|
|
3189
|
+
if (o - r.from > s && !/\S/.test(r.text.slice(s, o - r.from))) return {
|
|
3190
|
+
range: e.cursor(r.from + s),
|
|
3192
3191
|
changes: {
|
|
3193
|
-
from:
|
|
3194
|
-
to:
|
|
3192
|
+
from: r.from + s,
|
|
3193
|
+
to: o
|
|
3195
3194
|
}
|
|
3196
3195
|
};
|
|
3197
|
-
if (
|
|
3198
|
-
let
|
|
3199
|
-
if (
|
|
3200
|
-
let
|
|
3201
|
-
return
|
|
3202
|
-
range:
|
|
3196
|
+
if (o - r.from == s && (i.item && r.from <= i.item.from || /^[\s>]*$/.test(r.text.slice(0, i.to)))) {
|
|
3197
|
+
let a = r.from + i.from;
|
|
3198
|
+
if (i.item && i.node.from < i.item.from && /\S/.test(r.text.slice(i.from, i.to))) {
|
|
3199
|
+
let o = i.blank(t(r.text, 4, i.to) - t(r.text, 4, i.from));
|
|
3200
|
+
return a == r.from && (o = Si(o, n)), {
|
|
3201
|
+
range: e.cursor(a + o.length),
|
|
3203
3202
|
changes: {
|
|
3204
|
-
from:
|
|
3205
|
-
to:
|
|
3206
|
-
insert:
|
|
3203
|
+
from: a,
|
|
3204
|
+
to: r.from + i.to,
|
|
3205
|
+
insert: o
|
|
3207
3206
|
}
|
|
3208
3207
|
};
|
|
3209
3208
|
}
|
|
3210
|
-
if (
|
|
3211
|
-
range:
|
|
3209
|
+
if (a < o) return {
|
|
3210
|
+
range: e.cursor(a),
|
|
3212
3211
|
changes: {
|
|
3213
|
-
from:
|
|
3214
|
-
to:
|
|
3212
|
+
from: a,
|
|
3213
|
+
to: o
|
|
3215
3214
|
}
|
|
3216
3215
|
};
|
|
3217
3216
|
}
|
|
3218
3217
|
}
|
|
3219
3218
|
}
|
|
3220
|
-
return
|
|
3219
|
+
return a = { range: r };
|
|
3221
3220
|
});
|
|
3222
|
-
return !
|
|
3221
|
+
return !a && (r(n.update(o, {
|
|
3223
3222
|
scrollIntoView: !0,
|
|
3224
3223
|
userEvent: "delete"
|
|
3225
3224
|
})), !0);
|
|
3226
|
-
},
|
|
3225
|
+
}, Ai = [{
|
|
3227
3226
|
key: "Enter",
|
|
3228
|
-
run:
|
|
3227
|
+
run: wi
|
|
3229
3228
|
}, {
|
|
3230
3229
|
key: "Backspace",
|
|
3231
|
-
run:
|
|
3232
|
-
}],
|
|
3233
|
-
function
|
|
3234
|
-
let { codeLanguages: t, defaultCodeLanguage:
|
|
3235
|
-
if (!(
|
|
3236
|
-
let
|
|
3237
|
-
|
|
3238
|
-
let
|
|
3239
|
-
|
|
3240
|
-
codeParser:
|
|
3241
|
-
htmlParser:
|
|
3242
|
-
})),
|
|
3243
|
-
let
|
|
3244
|
-
return
|
|
3245
|
-
}
|
|
3246
|
-
function
|
|
3230
|
+
run: ki
|
|
3231
|
+
}], ji = /*@__PURE__*/ ii({ matchClosingTags: !1 });
|
|
3232
|
+
function Mi(e = {}) {
|
|
3233
|
+
let { codeLanguages: t, defaultCodeLanguage: r, addKeymap: a = !0, base: { parser: o } = gi, completeHTMLTags: s = !0, pasteURLAsLink: c = !0, htmlTagLanguage: l = ji } = e;
|
|
3234
|
+
if (!(o instanceof Ge)) throw RangeError("Base parser provided to `markdown` should be a Markdown parser");
|
|
3235
|
+
let u = e.extensions ? [e.extensions] : [], d = [l.support, mi], f;
|
|
3236
|
+
c && d.push(Li), r instanceof y ? (d.push(r.support), f = r.language) : r && (f = r);
|
|
3237
|
+
let p = t || f ? _i(t, f) : void 0;
|
|
3238
|
+
u.push(ft({
|
|
3239
|
+
codeParser: p,
|
|
3240
|
+
htmlParser: l.language.parser
|
|
3241
|
+
})), a && d.push(n.high(i.of(Ai)));
|
|
3242
|
+
let m = hi(o.configure(u));
|
|
3243
|
+
return s && d.push(m.data.of({ autocomplete: Ni })), new y(m, d);
|
|
3244
|
+
}
|
|
3245
|
+
function Ni(e) {
|
|
3247
3246
|
let { state: t, pos: n } = e, r = /<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n - 25, n));
|
|
3248
3247
|
if (!r) return null;
|
|
3249
|
-
let i =
|
|
3248
|
+
let i = p(t).resolveInner(n, -1);
|
|
3250
3249
|
for (; i && !i.type.isTop;) {
|
|
3251
3250
|
if (i.name == "CodeBlock" || i.name == "FencedCode" || i.name == "ProcessingInstructionBlock" || i.name == "CommentBlock" || i.name == "Link" || i.name == "Image") return null;
|
|
3252
3251
|
i = i.parent;
|
|
@@ -3258,18 +3257,18 @@ function Pi(e) {
|
|
|
3258
3257
|
validFor: /^<[:\-\.\w\u00b7-\uffff]*$/
|
|
3259
3258
|
};
|
|
3260
3259
|
}
|
|
3261
|
-
var
|
|
3260
|
+
var Pi = null;
|
|
3262
3261
|
function Fi() {
|
|
3263
|
-
if (
|
|
3264
|
-
let e =
|
|
3265
|
-
return
|
|
3262
|
+
if (Pi) return Pi;
|
|
3263
|
+
let e = Qr(new ue(r.create({ extensions: ji }), 0, !0));
|
|
3264
|
+
return Pi = e ? e.options : [];
|
|
3266
3265
|
}
|
|
3267
|
-
var Ii = /code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i, Li = /*@__PURE__*/
|
|
3266
|
+
var Ii = /code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i, Li = /*@__PURE__*/ a.domEventHandlers({ paste: (e, t) => {
|
|
3268
3267
|
let { main: n } = t.state.selection;
|
|
3269
3268
|
if (n.empty) return !1;
|
|
3270
3269
|
let r = e.clipboardData?.getData("text/plain");
|
|
3271
|
-
if (!r || !/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r) || (/^www\./.test(r) && (r = "https://" + r),
|
|
3272
|
-
let i =
|
|
3270
|
+
if (!r || !/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r) || (/^www\./.test(r) && (r = "https://" + r), !$.isActiveAt(t.state, n.from, 1))) return !1;
|
|
3271
|
+
let i = p(t.state), a = !1;
|
|
3273
3272
|
return i.iterate({
|
|
3274
3273
|
from: n.from,
|
|
3275
3274
|
to: n.to,
|
|
@@ -3292,4 +3291,4 @@ var Ii = /code|horizontalrule|html|link|comment|processing|escape|entity|image|m
|
|
|
3292
3291
|
}), !0);
|
|
3293
3292
|
} });
|
|
3294
3293
|
//#endregion
|
|
3295
|
-
export {
|
|
3294
|
+
export { gi as commonmarkLanguage, ki as deleteMarkupBackward, wi as insertNewlineContinueMarkup, Ci as insertNewlineContinueMarkupCommand, Mi as markdown, Ai as markdownKeymap, $ as markdownLanguage, Li as pasteURLAsLink };
|